1 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
3 * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a
6 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
8 * basic-block.h (insert_insn_end_bb_new): Delete.
9 * cfgrtl.c (insert_insn_end_bb_new): Likewise.
11 2010-11-02 Uros Bizjak <ubizjak@gmail.com>
12 H.J. Lu <hongjiu.lu@intel.com>
14 * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
15 (ix86_split_call_pop_vzeroupper): Likewise.
17 * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
18 (ix86_expand_call): Conditionally decorate calls with
19 UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
20 (ix86_split_call_vzeroupper): New.
21 (ix86_split_call_pop_vzeroupper): Likewise.
23 * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
24 (*call_pop_0_vzeroupper): New insn_and_split pattern.
25 (*call_pop_1_vzeroupper): Likewise.
26 (*sibcall_pop_1_vzeroupper): Likewise.
27 (*call_0_vzeroupper): Likewise.
28 (*call_1_vzeroupper): Likewise.
29 (*sibcall_1_vzeroupper): Likewise.
30 (*call_1_rex64_vzeroupper): Likewise.
31 (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
32 (*call_1_rex64_large_vzeroupper): Likewise.
33 (*sibcall_1_rex64_vzeroupper): Likewise.
34 (*call_value_pop_0_vzeroupper): Likewise.
35 (*call_value_pop_1_vzeroupper): Likewise.
36 (*sibcall_value_pop_1_vzeroupper): Likewise.
37 (*call_value_0_vzeroupper): Likewise.
38 (*call_value_0_rex64_vzeroupper): Likewise.
39 (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
40 (*call_value_1_vzeroupper): Likewise.
41 (*sibcall_value_1_vzeroupper): Likewise.
42 (*call_value_1_rex64_vzeroupper): Likewise.
43 (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
44 (*call_value_1_rex64_large_vzeroupper): Likewise.
45 (*sibcall_value_1_rex64_vzeroupper): Likewise.
47 2010-11-02 Ian Lance Taylor <iant@google.com>
50 * config.gcc: Revert last patch: set lto_binary_reader.
52 2010-11-02 Richard Guenther <rguenther@suse.de>
54 PR tree-optimization/46149
55 * tree-ssa-structalias.c (get_constraint_for_1): Properly handle
56 non-indirect MEM_REF variants.
58 2010-11-02 Richard Guenther <rguenther@suse.de>
60 PR tree-optimization/46216
61 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
62 Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
64 2010-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66 * configure.ac (*-*-irix6*): Disable set_have_as_tls.
68 * configure: Regenerate.
70 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
72 * config/i386/driver-i386.c (host_detect_local_cpu): Updated
73 for Intel Core 2 and Core i7.
75 2010-11-02 Maxim Kuvyrkov <maxim@codesourcery.com>
77 Model decoder of Core 2/i7 for multipass scheduling.
79 * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
80 New type to hold target-specific data for multipass scheduling.
81 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
82 * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
84 (core2i7_secondary_decoder_max_insn_size,)
85 (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
87 ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
88 ([_]ix86_first_cycle_multipass_data): New static variable.
89 (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
90 Implement targetm.sched hooks.
91 (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
93 (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
94 Implement new targetm.sched hooks.
95 (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
96 targetm.sched hook to install multipass scheduling hooks on demand.
98 * doc/tm.texi.in: Document new targetm.sched hooks.
99 * doc/tm.texi: Regenerate.
101 * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
102 (first_cycle_multipass_data_t): New typedef.
103 (struct choice_entry: target_data): New field.
104 (max_issue): Add first_cycle_insn_p parameter. Call new target hooks
105 to allow target model restrictions not represented in DFA.
106 (choose_ready, schedule_block): Update.
107 (sched_extend_ready_list, sched_finish_ready_list): Call new target
108 hooks to initialize target-specific data for multipass scheduling.
109 * sched-int.h (max_issue): Update declaration.
110 * sel-sched.c (choose_best_insn): Update.
111 * target.def (first_cycle_multipass_{begin, issue, backtrack},)
112 (first_cycle_multipass_{init, fini}): Define and document new
115 2010-11-02 Richard Guenther <rguenther@suse.de>
117 PR tree-optimization/46184
118 * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
119 input vector type from the reduction operand as well.
121 2010-11-02 Richard Guenther <rguenther@suse.de>
123 PR tree-optimization/46177
124 * tree-loop-distribution.c (prop_phis): Use
125 mark_virtual_phi_result_for_renaming.
127 2010-11-02 Martin Jambor <mjambor@suse.cz>
130 * tree.c (get_binfo_at_offset): Bail out on artificial
131 fields. Identify primary bases according to their offsets.
133 2010-11-02 Martin Jambor <mjambor@suse.cz>
135 PR tree-optimization/45875
136 * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
137 (gimple_get_relevant_ref_binfo): Detect primary bases according to
140 2010-11-02 Ian Lance Taylor <iant@google.com>
142 * doc/install.texi (Configuration): Note in two places that Java
143 is not enabled by default.
145 2010-11-02 Ian Lance Taylor <iant@google.com>
147 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
148 (Configuration): Mention --disable-lto. Remove --with-libelf
151 2010-11-02 Ian Lance Taylor <iant@google.com>
153 * configure.ac: Remove elf_getshdrstrndx test. Don't substitute
154 LTO_BINARY_READER or LTO_USE_LIBELF. Remove LIBELFLIBS and
155 LIBELFINC. Remove HAVE_libelf.
156 * config.gcc: Don't set lto_binary_reader.
157 * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
158 (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
159 (LIBS): Remove $(LIBELFLIBS).
160 (INCLUDES): Remove $(LIBELFINC).
161 * configure: Rebuild.
162 * config.in: Rebuild.
164 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
166 * config/microblaze/microblaze-protos.h (function_arg): Delete.
167 (function_arg_advance): Delete.
168 * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
169 (FUNCTION_ARG): Delete.
170 * config/microblaze/microblaze.c (function_arg_advance): Rename to...
171 (microblaze_function_arg_advance): ...this. Make static. Take a
172 const_tree and a bool.
173 (function-arg): Rename to...
174 (microblaze_function_arg): ...this. Make static. Take a const_tree
176 (microblaze_expand_prologue): Call targetm.calls.function_arg and
177 targetm.calls.function_arg_advance.
178 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
180 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
182 Merge from FSF "apple/trunk" branch.
184 * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
185 * config/darwin.opt: .. to here.
186 (matt-stubs): New option.
187 * config/i386/darwin.opt: Delete.
188 * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
189 (MACHO_DYNAMIC_NO_PIC_P): New.
190 (MACHOPIC_INDIRECT): New.
191 (MACHOPIC_PURE): New.
192 * config/i386/darwin.h (DARWIN_X86) Define to 1.
193 (MACHOPIC_ATT_STUB): New.
194 (CC1_SPEC): Do not remove mdynamic-no-pic.
195 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
196 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
197 (FUNCTION_PROFILER): Correct over-length line.
198 (SUBTARGET_OVERRIDE_OPTIONS): New.
199 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
200 * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
201 (legitimate_constant_p): Handle mdynamic-no-pic.
202 (ix86_legitimate_address_p): Likewise.
203 (ix86_legitimize_address): Likewise.
204 (ix86_expand_move): Likewise.
205 (machopic_output_stub): Update for ATT-style stubs and
207 * config/darwin-protos.h (machopic_symbol_defined_p): New.
208 * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
209 TARGET_DYNAMIC_NO_PIC: Remove.
210 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
211 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
212 * config/rs6000/rs6000.c (darwin_rs6000_override_options):
213 Remove handling of mdynamic-no-pic.
214 * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
216 (machopic_symbol_defined_p): Do not try to use current_function_decl
217 when generating _get_pc thunks within stubs.
218 (machopic_indirect_data_reference): Rework for direct conditionals
219 rather than #ifdefs, add x86 mdynamic-no-pic
220 (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
222 (darwin_override_options): Handle mdynamic-no-pic here.
223 * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
224 (machopic_lazy_symbol_ptr3_section): New.
225 (machopic_picsymbol_stub2_section): New.
226 (machopic_picsymbol_stub3_section): New.
227 * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
228 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
229 (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
230 Moved common definition from x86 and rs6000.
231 (MACHO_DYNAMIC_NO_PIC_P): Override value.
232 (MACHOPIC_INDIRECT): Likewise.
233 (MACHOPIC_PURE): Likewise.
234 * config.gcc (x86-darwin-*): Remove darwin.opt.
236 2010-11-02 Jakub Jelinek <jakub@redhat.com>
239 * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
240 instead of gsi_last_bb.
242 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
243 Maxim Kuvyrkov <maxim@codesourcery.com>
245 * config/i386/i386.c (cpu_names): Add "corei7".
246 * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
248 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
249 Maxim Kuvyrkov <maxim@codesourcery.com>
251 Tune alignment for Intel Core i7
253 * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
254 (enum processor_type): Update comment. Add entries for Core i7.
255 * config/i386-c.c (ix86_target_macros_internal): Update.
256 * config/i386.c (m_COREI7{_32,_64}): New macros.
257 (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
258 (processor_target_table): Tune alignment for Core i7.
259 (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
261 * doc/invoke.texi: Document "corei7" option value.
263 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
264 Maxim Kuvyrkov <maxim@codesourcery.com>
265 H.J. Lu <hjl.tools@gmail.com>
267 Basic support for Intel Core i7
269 * i386.c (ix86_option_override_internal): Add entry for corei7, use
270 generic tuning. Use generic32 when compiling for 32-bit ABI.
272 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
274 * config/darwin.c (darwin_asm_named_section): Check for __DWARF
275 sections and call darwin_asm_dwarf_section() to handle them.
276 (darwin_asm_dwarf_section): New.
277 (darwin_file_start): Remove code emitting dwarf section symbols.
279 2010-11-02 Chung-Lin Tang <cltang@codesourcery.com>
281 * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
282 explicitly disable stack protection when building libgcc.
283 (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
285 2010-11-01 Jason Merrill <jason@redhat.com>
287 * fold-const.c (fold_indirect_ref_1): Handle folding
288 POINTER_PLUS_EXPR to ARRAY_REF.
290 2010-11-01 Kaz Kojima <kkojima@gcc.gnu.org>
292 * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
293 (sh_delegitimize_address): New function.
295 2010-11-01 Joseph Myers <joseph@codesourcery.com>
297 * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
298 * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
299 (CC1_SPEC): Don't handle -target.
300 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
302 * config/darwin.opt (Zallowable_client, Zbundle_loader,
303 Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
304 Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
305 Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
306 Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
307 Zweak_reference_mismatches, client_name, compatibility_version,
308 current_version, dylinker_install_name, pagezero_size,
309 read_only_relocs, seg1addr, segs_read_only_addr,
310 segs_read_write_addr, sub_library, sub_umbrella): New.
311 * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
312 * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
313 * config/freebsd.opt: New.
314 * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
315 * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
316 * config/rpath.opt: New.
317 * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
318 (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
321 2010-11-01 Joseph Myers <joseph@codesourcery.com>
323 * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
324 * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
325 (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
326 * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
327 (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
328 Document that options in .opt files do not need to be included.
329 * doc/tm.texi: Regenerate.
330 * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
331 * opts-common.c: Update comment on tm.h include.
332 (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
333 * system.h (SWITCH_TAKES_ARG): Poison.
334 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
335 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
337 (LINK_COMMAND_SPEC_A): Don't include %{x}.
338 * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
339 * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
340 * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
341 * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
342 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
343 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
344 * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
345 * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
346 * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
347 * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
348 * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
349 * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
350 * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
351 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
352 * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
353 * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
354 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
355 * config/score/score.h (SWITCH_TAKES_ARG): Remove.
356 * config/sol2.h (SWITCH_TAKES_ARG): Remove.
357 * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
358 * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
359 * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
360 * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
362 2010-11-01 Paul Koning <ni1d@arrl.net>
364 * config/pdp11/pdp11.md: Use iterators.
365 (addqi3, subqi3, iorsi3, xorsi3): Delete.
367 2010-11-01 Steve Ellcey <sje@cup.hp.com>
369 * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
371 * libgcov.c (__gcov_indirect_call_profiler): Set
372 VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
373 defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
375 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
377 PR tree-optimization/46259
380 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
382 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
383 build_vector_from_val.
385 2010-11-01 DJ Delorie <dj@redhat.com>
387 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
388 as well as an assertion.
390 2010-11-01 Paul Koning <ni1d@arrl.net>
392 * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
393 complex modes in memory.
395 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
397 * tree.c (build_vector_from_val): Use useless_type_conversion_p.
399 2010-11-01 Jakub Jelinek <jakub@redhat.com>
402 * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
403 (cfa_base_offset): New variable.
404 (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
405 (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
407 (vt_init_cfa_base): Initialize cfa_base_offset.
409 2010-11-01 Alan Modra <amodra@gmail.com>
412 * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
414 (stack_info): New file scope var.
415 (rs6000_init_machine_status): Init stack_info.
416 (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
417 SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
418 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
419 (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
420 SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
421 REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this. Update all refs.
422 (rs6000_savres_strategy): Rewrite.
423 (rs6000_stack_info): Use "stack_info" in place of local "info".
424 Return cached stack info when reload_completed unless ENABLE_CHECKING
425 in which case confirm newly calculated stack info matches old info.
426 Delay calculation of lr_save_p, set it for out of line gp save/restore
427 as well as fp. Call rs6000_savres_strategy from here..
428 (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
429 (rs6000_output_function_prologue): Use info->savres_strategy to
430 determine whether fp save/restore externs need to be emitted.
432 2010-10-31 Jason Merrill <jason@redhat.com>
434 * tree.h (EXPR_LOC_OR_HERE): New macro.
435 * builtins.c (c_strlen): Use it.
436 * c-decl.c (build_enumerator): Likewise.
437 * gimplify.c (internal_get_tmp_var): Likewise.
438 (shortcut_cond_expr): Likewise.
439 (gimplify_one_sizepos): Likewise.
441 2010-10-31 Richard Henderson <rth@redhat.com>
443 * config/i386/cygming.h (TARGET_SEH): New.
444 (MAX_STACK_ALIGNMENT): New. Disable alignment for SEH.
445 (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
446 TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
447 (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
448 (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
449 (ASM_DECLARE_FUNCTION_SIZE): New.
450 * config/i386/i386-protos.h: Update.
451 * config/i386/i386.c (ix86_option_override_internal): Enable
452 flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
453 restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
454 (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
455 (ix86_compute_frame_layout): For SEH, disable
456 use_fast_prologue_epilogue, move frame pointer to the end of
457 the frame. Initialize hfp_save_offset.
458 (ix86_expand_prologue): Honor hfp_save_offset. Emit blockage
459 at end of prologue for SEH.
460 (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
461 emit blockage at beginning of epilogue.
462 (ix86_expand_binary_operator): After reload, emit LEA if needed.
463 (ix86_output_call_insn): New.
464 * config/i386/i386.h (TARGET_SEH): New.
465 (struct machine_function): Add member seh.
466 * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
467 * config/i386/winnt.c (struct seh_frame_state): New.
468 (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
469 seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
470 seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
471 i386_pe_start_function, i386_pe_end_function): New.
473 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
474 as CFA_STORE in rules 12 and 13.
476 2010-10-31 Uros Bizjak <ubizjak@gmail.com>
478 PR tree-optimization/46142
479 * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
480 accommodate third function argument.
482 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
484 * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
486 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
488 * fold-const.c (build_zero_vector): Use build_vector_from_val.
489 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
490 (get_initial_def_for_reduction): Likewise.
491 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
492 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
493 * tree.c (build_one_cst): Likewise.
494 (build_vector_from_val): Use types_compatible_p for assert.
496 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
498 * emit-rtl.c (mark_used_flags): New function.
499 (set_used_flags, reset_used_flags): Call it.
501 2010-10-30 Uros Bizjak <ubizjak@gmail.com>
504 * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
505 determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
507 2010-10-30 H.J. Lu <hongjiu.lu@intel.com>
510 * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
511 (ix86_compat_aligned_value_p): This.
512 (ix86_old_function_arg_boundary): Renamed to ...
513 (ix86_compat_function_arg_boundary): This. Updated.
514 (ix86_contains_aligned_value_p): New.
515 (ix86_function_arg_boundary): Align long double parameters on
516 stack to 4byte in 32bit.
518 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
520 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
521 * c-parser.c (c_parser_objc_at_property_declaration): Removed
522 parsing of RID_COPIES and RID_IVAR. Updated call to
523 objc_add_property_declaration.
524 * c-typecheck.c (build_component_ref): Call
525 objc_maybe_build_component_ref instead of objc_build_setter_call.
526 Use objc_is_property_ref to improve Objective-C checks.
527 (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
528 of objc_build_getter_call.
530 2010-10-29 Paul Koning <ni1d@arrl.net>
532 * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
533 REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
534 REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
535 (REG_OK_STRICT): Move description.
537 2010-10-29 Paul Koning <ni1d@arrl.net>
539 * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
541 2010-10-29 Paul Koning <ni1d@arrl.net>
543 * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
545 2010-10-29 Paul Koning <ni1d@arrl.net>
548 * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
550 2010-10-29 Richard Henderson <rth@redhat.com>
553 * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
556 2010-10-29 Paul Koning <ni1d@arrl.net>
558 * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
559 register to register move.
561 2010-10-29 Paul Koning <ni1d@arrl.net>
563 * config/pdp11/pdp11.c (print_operand_address): Correct handling
564 of integer constant addresses, delete vax-only logic.
566 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
568 * config/picochip/picochip.c (picochip_is_short_branch): Simplify
569 a conditional expression.
571 2010-10-29 Paul Koning <ni1d@arrl.net>
573 * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
574 instruction encoding.
576 2010-10-29 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
577 Andrew Pinski <pinskia@gmail.com>
579 * tree.h (build_vector_from_val): Declare.
580 * tree.c (build_vector_from_val): New function.
581 * c-typeck.c (build_binary_op): Handle vector shifting.
582 * doc/extend.texi: Description of the vector shifting operation.
584 2010-10-29 Paul Koning <pkoning@equallogic.com>
586 * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
587 pdp11_secondary_memory_needed): Declare.
588 * config/pdp11/predicates.md (float_operand): New predicate.
589 * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
590 (cbranchdf4, movdf): Change predicate.
591 (movsf): Handle FPU register case.
592 (truncdfsf2, extendsfdf2): Add FPU register case.
593 * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
594 TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
595 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
596 (pdp11_register_move_cost): Update cost matrix.
597 (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
598 pdp11_preferred_output_reload_class, pdp11_secondary_reload,
599 pdp11_secondary_memory_needed): New function.
600 (pdp11_return_in_memory): Add other float types.
601 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
602 (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
603 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
604 REGISTER_MOVE_COST): Delete.
605 (BASE_RETURN_VALUE_REG): Add other float types.
607 2010-10-29 Nick Clifton<nickc@redhat.com>
609 * doc/invoke.texi: Document -mam34 and -mtune options.
610 * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
611 (mn10300_tune_cpu): New variable.
612 (mn10300_handle_option): Handle -mam34 and -mtune options.
613 (mn10300_option_override): Convert tune string into tune cpu variable.
614 (mn10300_legitimate_constant_p): Delete unused local variable.
615 (is_load_insn): New function.
616 (is_store_insn): New function.
617 (mn10300_adjust_schedule_cost): New function.
618 (TARGET_SCHED_ADJUST_COST): Define.
619 * config/mn10300/mn10300.opt (mam34): New option.
621 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
622 (enum processor_type): Add AM34.
623 (TARGET_AM34): Define.
624 * config/mn10300/mn10300.md (attr cpu): Add am34.
625 Add pipeline description.
626 (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
627 Remove unneeded alternatives. Add timing attribute.
628 (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
629 mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
630 mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
631 mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
632 mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
633 bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
634 bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
635 float_conditional_branch, jump, indirect_jump, tablejump,
636 call_internal, call_value_internal, zero_extendqisi2_am33,
637 zero_extendqisi2_mn10300, zero_extendhisi2_am33,
638 zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
639 extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
640 mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
641 mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
642 addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
643 fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
644 return_internal_regs, store_movm, return, call_next_insn):
645 Add timing attribute.
646 (am33_subsi3): Add missing clobber of CC_REG.
647 (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
648 (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
649 subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
650 extendqisi2): Fix predicates.
651 (call_internal, call_internal_value): Separate alternatives.
652 * config/mn10300/t-mn10300: Add AM34 multilib.
654 2010-10-29 Paolo Bonzini <bonzini@gnu.org>
656 * config/sh/sh.c (sh_promote_function_mode): Use
657 default_promote_function_mode if !sh_promote_prototypes.
659 2010-10-28 Paolo Bonzini <bonzini@gnu.org>
661 * recog.c (split_all_insns): Remove dead code.
663 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
665 * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
667 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
669 * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
670 (FUNCTION_ARG_ADVANCE): Delete.
671 * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
673 (cris_function_incoming_arg, cris_function_arg_advance): New functions.
674 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
675 (TARGET_FUNCTION_ARG_ADVANCE): Define.
677 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
679 * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
680 * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
681 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
682 Take a const_tree and a bool.
683 (mcore_function_arg_advance): New function.
684 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
686 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
688 * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
689 * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
690 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
691 Take a const_tree and a bool.
692 (mcore_function_arg_advance): New function.
693 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
695 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
697 * config/h8300/h8300-protos.h (function_arg): Delete.
698 * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
699 * config/h8300/h8300.c (function_arg): Rename to...
700 (h8300_function_arg): ...this. Make static. Take a const_tree and
702 (h8300_function_arg_advance): New function.
703 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
705 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
707 * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
709 * config/arc/arc.c (arc_function_arg): ...here and...
710 (arc_function_arg_advance): ...here. New functions.
711 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
713 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
715 * config/crx/crx-protos.h (crx_function_arg): Delete.
716 (crx_function_arg_advance): Delete.
717 * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
718 * config/crx/crx.c (crx_function_arg): Make static. Take a
719 const_tree and a bool.
720 (crx_function_arg_advance): Make static. Take a const_tree and a bool.
721 (enough_regs_for_param): Take a const_tree.
722 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
724 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
726 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
727 (m68hc11_function_arg_advance): Delete.
728 * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
729 (FUNCTION_ARG_ADVANCE): Delete.
730 * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
731 Take a const_tree and a bool.
732 (m68hc11_function_arg_advance): Likewise.
733 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
735 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
737 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
738 (xstormy16_function_arg_advance): Delete.
739 * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
740 (FUNCTION_ARG_ADVANCE): Delete.
741 * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
742 Take a const_tree and a bool.
743 (xstormy16_function_arg_advance): Likewise. Return void, updating
744 the CUM parameter instead.
745 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
747 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
749 * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
750 * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
751 (MOXIE_FUNCTION_ARG_SIZE): Move to...
752 * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
753 (moxie_function_arg): Make static. Take a const_tree and a bool.
754 (moxie_function_arg_advance): New function.
755 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
757 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
759 * config/mn10300/mn10300-protos.h (function_arg): Delete.
760 * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
761 (FUNCTION_ARG_ADVANCE): Delete.
762 * config/mn10300/mn10300.c (function_arg): Rename to...
763 (mn10300_function_arg): ...this. Make static. Take a const_tree
765 (mn10300_function_arg_advance): New function.
766 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
768 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
770 * config/iq2000/iq2000-protos.h (function_arg): Delete.
771 (function_arg_advance): Delete.
772 * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
773 * config/iq2000/iq2000.c (function_arg): Rename to...
774 (iq2000_function_arg): ...this. Make static. Take a const_tree and
776 (function_arg_advance): Rename to...
777 (iq2000_function_arg_advance): ...this. Make static. Take a
778 const_tree and a bool.
779 (iq2000_expand_prologue): Call iq2000_function_arg_advance and
781 (iq2000_pass_by_reference): Call iq2000_function_arg).
782 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
784 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
786 * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
787 * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
788 * config/fr30/fr30.c (fr30_num_arg_regs): Make static. Take a
790 (fr30_function_arg): New function.
791 (fr30_function_arg_advance): New function.
792 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
794 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
796 * config/frv/frv-protos.h (frv_function_arg): Delete.
797 (frv_function_arg_advance): Delete.
798 * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
799 * config/frv/frv.c (frv_function_arg): Rename to...
800 (frv_function_arg_1): Make static. Take const_tree and bool arguments.
801 (frv_function_arg, frv_function_incoming_arg): New functions.
802 (frv_function_arg_advance): Make static. Take a const_tree and a bool.
803 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
804 (TARGET_FUNCTION_ARG_ADVANCE): Define.
806 2010-10-28 Uros Bizjak <ubizjak@gmail.com>
809 * config/i386/sse.md (sse_movhlps_exp): Use destination
810 returned from ix86_fixup_binary_operands to expand insn.
811 (sse_movlhps_exp): Ditto.
812 (sse_loadhps_exp): Ditto.
813 (sse_loadlps_exp): Ditto.
814 (sse2_loadhpd_exp): Ditto.
815 (sse2_loadlpd_exp): Ditto.
817 2010-10-28 Andrew Stubbs <ams@codesourcery.com>
819 * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
822 2010-10-28 Eric Botcazou <ebotcazou@adacore.com>
824 * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
825 arithmetics in masking operations.
826 (contains_muldiv): Likewise.
827 (try_combine): Likewise.
828 (find_split_point): Likewise.
829 (combine_simplify_rtx): Likewise.
830 (simplify_if_then_else): Likewise.
831 (simplify_set): Likewise.
832 (expand_compound_operation): Likewise.
833 (expand_field_assignment): Likewise.
834 (make_extraction): Likewise.
835 (extract_left_shift): Likewise.
836 (make_compound_operation): Likewise.
837 (force_to_mode): Likewise.
838 (make_field_assignment): Likewise.
839 (reg_nonzero_bits_for_combine): Likewise.
840 (simplify_shift_const_1): Likewise.
841 (simplify_comparison): Likewise.
843 2010-10-27 Nathan Froyd <froydnj@codesourcery.com>
845 * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
846 (ia64_function_arg_advance): Delete.
847 * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
848 (FUNCTION_ARG_ADVANCE): Delete.
849 * config/ia64/ia64.c (ia64_function_arg): Rename to...
850 (ia64_function_arg_1): ...this. Make static. Take const_tree and
852 (ia64_function_arg, ia64_function_incoming_arg): New functions.
853 (ia64_function_arg_advance): Make static. Take a const_tree and
855 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
856 (TARGET_FUNCTION_ARG_ADVANCE): Define.
858 2010-10-27 Steve Ellcey <sje@cup.hp.com>
860 * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
861 (TARGET_GET_RAW_ARG_MODE): New.
862 * doc/tm.texi: Regenerate.
863 * target.def (get_raw_result_mode): New.
864 (get_raw_arg_mode): New.
865 * targhooks.c (default_get_reg_raw_mode): New.
866 * targhooks.h (default_get_reg_raw_mode): New.
867 * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
868 (apply_result_size): Ditto.
869 * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
870 (TARGET_GET_RAW_RESULT_MODE): Define.
871 (TARGET_GET_RAW_ARG_MODE): Ditto.
873 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
875 * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
876 for newer Solaris 10 release.
877 (sparc_fallback_frame_state): Likewise.
879 2010-10-27 Jason Merrill <jason@redhat.com>
881 * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
884 2010-10-27 Jie Zhang <jie@codesourcery.com>
885 Maxim Kuvyrkov <maxim@codesourcery.com>
887 * haifa-sched.c (ISSUE_POINTS): Remove.
888 (max_issue): Don't issue more than issue_rate instructions.
890 2010-10-27 Ian Lance Taylor <iant@google.com>
893 * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
894 (split_stack_return): Replace UNSPEC_STACK_CHECK with
895 UNSPECV_SPLIT_STACK_RETURN.
897 2010-10-27 H.J. Lu <hongjiu.lu@intel.com>
899 * config/i386/i386-protos.h (init_cumulative_args): Add an int.
901 * config/i386/i386.c (block_info): New.
902 (BLOCK_INFO): Likewise.
903 (call_avx256_state): Likewise.
904 (check_avx256_stores): Likewise.
905 (move_or_delete_vzeroupper_2): Likewise.
906 (move_or_delete_vzeroupper_1): Likewise.
907 (move_or_delete_vzeroupper): Likewise.
908 (use_avx256_p): Likewise.
909 (function_pass_avx256_p): Likewise.
910 (flag_opts): Add -mvzeroupper.
911 (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
912 default for TARGET_AVX. Turn off MASK_VZEROUPPER if TARGET_AVX
914 (ix86_function_ok_for_sibcall): Disable sibcall if we need to
916 (init_cumulative_args): Add an int to indicate caller. Set
917 use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
918 based on return type.
919 (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
920 caller_pass_avx256_p based on argument type.
921 (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
922 is used, but not returned by caller.
923 (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
924 (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
926 (ix86_minimum_alignment): Likewise.
927 (ix86_expand_special_args_builtin): Set target to
928 GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
929 (ix86_reorg): Run the vzeroupper optimization if needed.
931 * config/i386/i386.h (ix86_args): Add caller.
932 (INIT_CUMULATIVE_ARGS): Updated.
933 (machine_function): Add use_vzeroupper_p, use_avx256_p,
934 caller_pass_avx256_p, caller_return_avx256_p,
935 callee_pass_avx256_p and callee_return_avx256_p.
937 * config/i386/i386.opt (-mvzeroupper): New.
939 * config/i386/predicates.md (vzeroupper_operation): Removed.
941 * config/i386/sse.md (avx_vzeroupper): Removed.
942 (*avx_vzeroupper): Removed.
943 (avx_vzeroupper): New.
945 * doc/invoke.texi: Document -mvzeroupper.
947 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
949 * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
950 * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
951 * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
953 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
954 Olivier Hainque <hainque@adacore.com>
956 * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
957 of EBP. Do not restore reg #9. Remove +1 adjustment to EIP and set
958 fs->signal_frame instead.
960 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
962 * c-parser.c (cp_parser_objc_at_property_declaration): Removed
963 parsing of RID_COPIES and RID_IVAR.
965 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
967 * c-parser.c (c_parser_objc_at_property_declaration): Recognize
968 RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
969 Do not use objc_set_property_attr, but use local variables
970 instead. Detect repeated usage of setter, getter and ivar
971 attributes. Improved error processing when a setter name does not
972 end in ':'. Do not check for CPP_CLOSE_PAREN after we determined
973 that the token is a keyword. Updated call to
974 objc_add_property_declaration.
976 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
978 * c-parser.c (c_parser_objc_at_property): Renamed to
979 c_parser_objc_at_property_declaration. Updated calls to
980 objc_add_property_variable, now objc_add_property_declaration.
981 Code rewritten to be much more robust in recovering from syntax
982 errors. Added comments.
983 (c_parser_objc_property_attrlist): Removed.
984 (c_parser_external_declaration): Updated calls to
985 c_parser_objc_at_property, now
986 c_parser_objc_at_property_declaration.
987 (c_parser_objc_methodprotolist): Same change.
989 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
991 * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
993 2010-10-26 Jan Hubicka <jh@suse.cz>
995 * ipa.c (process_references): Enqueue all referenced nodes;
996 mark as reachable only non-external nodes.
997 (cgraph_remove_unreachable_nodes): All referenced nodes should
998 be enqueued; remove bogues node->needed check.
1000 2010-10-26 Jan Hubicka <jh@suse.cz>
1002 * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
1005 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
1007 * config/i386/i386.md (split_stack_return): Replace
1008 unspec_volatile with unspec.
1010 2010-10-26 Jonathan Wakely <jwakely.gcc@gmail.com>
1012 * doc/install.texi: Fix typo in --with-sysroot description.
1014 2010-10-26 Jan Hubicka <jh@suse.cz>
1016 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1017 Use info provided by linker plugin.
1019 2010-10-26 Jason Merrill <jason@redhat.com>
1021 * varasm.c (constructor_static_from_elts_p): Don't require a
1022 CONSTRUCTOR to have elements to be suitable for static
1023 initialization. Allow ARRAY_TYPE as well.
1025 2010-10-26 Jan Hubicka <jh@suse.cz>
1028 * cgraph.c (cgraph_set_readonly_flag): Rename to...
1029 (cgraph_set_const_flags) ... this one; get also looping argument;
1030 clear constructor/destructor flags.
1031 (cgraph_set_pure_flag): Likewise.
1032 (cgraph_set_looping_const_or_pure_flag): Remove.
1033 (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
1034 to optimize away static ctors/dtors; it does not work on inline clones;
1035 external functions can always be rmeoved.
1036 (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
1037 inline clones; in LTO external functions always can go.
1038 (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
1039 (cgraph_mark_address_taken_node): Assert that we are not taking
1040 address of inline clone.
1041 (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
1043 * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
1045 (ipcp_initialize_node_lattices): Only local functions can be
1046 handled without cloning.
1047 * cgraph.h (cgraph_set_readonly_flag,
1048 cgraph_set_looping_const_or_pure_flag): Remove.
1049 (cgraph_set_const_flag): Declare.
1050 (cgraph_set_pure_flag): Update.
1051 * ipa-pure-const (propagate_pure_const, local_pure_const): Update
1053 * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
1054 look at inline clones; fix handling of external definitions.
1055 (cgraph_postorder): Do not look at inline clones in the first pass.
1056 (function_and_variable_visibility): Drop constructors/destructor
1057 flags at pure and const functions.
1058 * tree-profile.c (tree_profiling): Update.
1059 * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
1060 address taken; external functions do not account to whole program size.
1061 (cgraph_decide_inlining): Likewise; do not try to inline
1062 functions already inlined.
1064 2010-10-26 Jie Zhang <jie@codesourcery.com>
1066 * doc/invoke.texi: Improve documentation of
1067 -fstrict-volatile-bitfields.
1069 2010-10-26 Ira Rosen <irar@il.ibm.com>
1071 PR tree-optimization/46167
1072 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
1073 is basic block for the statement.
1075 2010-10-26 Paul Koning <ni1d@arrl.net>
1077 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
1078 current definition of struct_real_format.
1080 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
1083 * config/i386/i386.c (ix86_old_function_arg_boundary): New.
1084 (ix86_function_arg_boundary): Always align parameters on stack
1085 in 64bit and align parameters with alignment >= 16byte on stack
1086 in 32bit. Warn alignment change.
1088 2010-10-26 Ian Lance Taylor <iant@google.com>
1091 * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
1094 2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1096 Implement opaque-enum-specifiesr for C++0x
1097 * tree.h (ENUM_IS_OPAQUE): New.
1098 * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
1100 2010-10-26 Jie Zhang <jie@codesourcery.com>
1102 * stor-layout.c (layout_decl): Use the field's type to
1103 determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
1104 * config/arm/arm.c (arm_override_options): Default to
1105 -fstrict-volatile-bitfields.
1107 2010-10-25 Paul Koning <ni1d@arrl.net>
1109 * config/pdp11/pdp11.md: Add define_constants for register
1110 numbers, branch offset limits.
1111 * config/pdp11/pdp11.c: Use named constants instead of numbers.
1112 * config/pdp11.pdp11.h: Ditto.
1114 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
1116 * configure.ac: Use $cpu_type instead of $target to define the nop.
1117 * configure: Regenerate.
1119 2010-10-25 Jie Zhang <jie@codesourcery.com>
1121 * combine.c (try_combine): If insns need to be kept around, check that
1122 they can be copied in the merged instruction.
1124 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
1126 * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
1128 (convert_regs_2): Likewise. Adjust calls to convert_regs_1.
1129 (convert_regs): Adjust calls to convert_regs_2. Clean up the CFG if
1130 it has been modified.
1132 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
1134 * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
1136 2010-10-24 Paul Koning <ni1d@arrl.net>
1138 * config/pdp11/pdp11.md: Change length attribute to be in bytes.
1139 * config/pdp11/pdp11.c (output_jump): Ditto.
1141 2010-10-24 Ian Lance Taylor <iant@google.com>
1143 * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
1145 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
1147 * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
1148 least one insn with a locus corresponding to an edge's goto_locus,
1149 disregard non-fallthru edges to the exit block and merge the blocks
1150 created for the same goto_locus.
1152 2010-10-23 Joseph Myers <joseph@codesourcery.com>
1154 * gcc.c (n_switches_alloc_debug_check): New.
1155 (set_option_handlers): New.
1156 (process_command): Use set_option_handlers.
1157 (do_self_spec): Pass spec-generated options through option handlers.
1158 (main): Also save and restore n_switches_alloc when swapping
1161 2010-10-23 Richard Henderson <rth@redhat.com>
1164 * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
1165 (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
1166 Honor matching operands when splitting to XOR.
1168 2010-10-23 Ian Lance Taylor <iant@google.com>
1170 * tree-vrp.c (extract_range_from_binary_expr): If
1171 flag_non_call_exceptions don't eliminate division by zero.
1172 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1174 2010-10-23 Nathan Froyd <froydnj@codesourcery.com>
1176 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
1177 __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
1178 __ORDER_PDP_ENDIAN__.
1179 * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1180 (struct DWstruct): Define based on __BYTE_ORDER__.
1181 * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1182 (struct INTstruct): Define based on __BYTE_ORDER__.
1183 * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1184 (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
1185 * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
1186 * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1187 * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1188 * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1189 * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1190 * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1191 * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1192 * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1193 * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1194 * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1195 * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1196 * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1197 * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1198 * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1199 * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1200 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1201 * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1202 * doc/tm.texi: Regenerate.
1203 * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
1204 (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
1206 2010-10-23 Jie Zhang <jie@codesourcery.com>
1208 PR rtl-optimization/37360
1209 * config/mips/mips.c (cached_can_issue_more): New local variable.
1210 (mips_sched_reorder_1): New.
1211 (mips_sched_reorder): Use mips_sched_reorder_1.
1212 (mips_sched_reorder2): New.
1213 (mips_variable_issue): Set cached_can_issue_more.
1214 (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
1215 instead of mips_sched_reorder.
1218 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
1219 PR rtl-optimization/37360
1220 * haifa-sched.c (max_issue): Do not assert that we never issue more
1221 insns than issue_rate. Add comment.
1223 2010-10-22 Eric Botcazou <ebotcazou@adacore.com>
1225 * gimplify.c (gimplify_variable_sized_compare): Preserve the source
1226 location info of the expression.
1228 2010-10-22 DJ Delorie <dj@redhat.com>
1230 * doc/extend.texi (Named Address Spaces): Document the M32C named
1233 * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
1234 __far address space.
1235 * config/m32c/m32c.h (ADDR_SPACE_FAR): New. Add support for
1236 "__far" address space for R8C and M16C processor variants.
1237 * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
1238 (far_addr_space_p): New.
1239 (encode_pattern_1): Add sign and zero extend support.
1240 (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
1241 (m32c_extra_constraint_p2): Add SF constraint.
1242 (m32c_legitimate_address_p): Support __far addresses.
1243 (m32c_addr_space_pointer_mode): New.
1244 (m32c_addr_space_address_mode): New.
1245 (m32c_addr_space_legitimate_address_p): New.
1246 (m32c_addr_space_legitimize_address): New.
1247 (m32c_addr_space_subset_p): New.
1248 (m32c_addr_space_convert): New.
1249 (conversions): Add __far operand patterns.
1250 (m32c_prepare_move): Force constants into registers for __far moves.
1251 (m32c_split_move): __far moves are always split.
1252 * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
1253 * config/m32c/mov.md (mov<mode>_far_op1): New.
1254 (mov<mode>_far_op2): New.
1255 (movqi_op): Add __far (SF) support.
1256 (movhi_op): Likewise.
1257 (movsi_splittable): Split A1A0 also.
1259 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1260 Andrew Pinski <pinskia@gmail.com>
1262 * c-typeck.c (build_array_ref): Handle subscripting of vectors.
1263 * doc/extend.texi: New paragraph
1265 2010-10-22 Paul Koning <ni1d@arrl.net>
1267 * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
1269 2010-10-22 DJ Delorie <dj@redhat.com>
1271 * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
1273 2010-10-22 Paul Koning <ni1d@arrl.net>
1275 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
1277 2010-10-22 Richard Henderson <rth@redhat.com>
1279 * config/i386/i386.c (ix86_builtin_vectorized_function): Add
1280 cases for __builtin_fma and __builtin_fmaf.
1282 2010-10-22 Richard Henderson <rth@redhat.com>
1284 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
1285 NEG+USE for vectors as well.
1286 * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
1289 2010-10-22 Joseph Myers <joseph@codesourcery.com>
1291 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
1292 SWITCH_CURTAILS_COMPILATION): Remove.
1293 * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
1294 * doc/tm.texi: Regenerate.
1295 * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
1297 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
1299 * config/i386/bdver1.md: New file.
1300 * config/i386/i386.md (include "bdver1.md"): Invoke the
1301 pipeline description for bdver1.
1302 (x86_sahf_1): Add "bdver1_decode" attribute.
1303 (*cmpfp_i_mixed): Likewise.
1304 (*cmpfp_i_sse): Likewise.
1305 (*cmpfp_i_i387): Likewise.
1306 (*cmpfp_iu_mixed): Likewise.
1307 (*cmpfp_iu_sse): Likewise.
1308 (*cmpfp_iu_387): Likewise.
1309 (*swap<mode>,*swap<mode>_1): Likewise.
1310 (fixuns_trunc<mode>hi2): Likewise.
1311 (fix_trunc<mode>si_sse): Likewise.
1312 (x86_fnstcw_1): Likewise.
1313 (x86_fldcw_1): Likewise.
1314 (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
1315 (*floatsi<mode>2_vector_mixed): Likewise.
1316 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
1317 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
1318 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
1319 (*floatsi<mode>2_vector_sse_with_temp): Likewise.
1320 (*floatsi<mode>2_vector_sse): Likewise.
1321 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
1322 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
1323 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
1324 (*mul<mode>3_1): Likewise.
1325 (*mulsi3_1_zext): Likewise.
1326 (*mulhi3_1): Likewise.
1327 (*mulqi3_1): Likewise.
1328 (*<u>mul<mode><dwi>3_1): Likewise.
1329 (*<u>mulqihi3_1): Likewise.
1330 (*<s>muldi3_highpart_1): Likewise.
1331 (*<s>mulsi3_highpart_1): Likewise.
1332 (*<s>mulsi3_highpart_zext): Likewise.
1333 (x86_64_shld): Likewise.
1334 (x86_shld): Likewise.
1335 (x86_64_shrd): Likewise.
1336 (x86_shrd): Likewise.
1337 (sqrtxf2): Likewise.
1338 (sqrt_extend<mode>xf2_i387): Likewise.
1339 (*sqrt<mode>2_sse): Likewise.
1340 * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
1341 (sse_cvtsi2ssq): Likewise.
1342 (sse_cvtss2si): Likewise.
1343 (sse_cvtss2si_2): Likewise.
1344 (sse_cvtss2siq): Likewise.
1345 (sse_cvtss2siq_2): Likewise.
1346 (sse_cvttss2si): Likewise.
1347 (sse_cvttss2siq): Likewise.
1348 (sse2_cvtpi2pd): Likewise.
1349 (sse2_cvttpd2pi): Likewise.
1350 (sse2_cvtsi2sd): Likewise.
1351 (sse2_cvtsi2sdq): Likewise.
1352 (sse2_cvtsd2si): Likewise.
1353 (sse2_cvtsd2si_2): Likewise.
1354 (sse2_cvtsd2siq): Likewise.
1355 (sse2_cvtsd2siq_2): Likewise.
1356 (sse2_cvttsd2si): Likewise.
1357 (sse2_cvttsd2siq): Likewise.
1358 (*sse2_cvtpd2dq): Likewise.
1359 (*sse2_cvttpd2dq): Likewise.
1360 (sse2_cvtsd2ss): Likewise.
1361 (sse2_cvtss2sd): Likewise.
1362 (*sse2_cvtpd2ps): Likewise.
1363 (sse2_cvtps2pd): Likewise.
1365 2010-10-22 Richard Guenther <rguenther@suse.de>
1368 * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
1369 remove the virtual operands if they are not needed.
1371 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
1373 * config/i386/i386.c (processor_costs bdver1_cost): Update
1374 insn costs and architectural parameters for bdver1.
1376 2010-10-22 Richard Guenther <rguenther@suse.de>
1378 * gimple.h (gimple_register_canonical_type): Declare.
1379 * gimple.c (gimple_canonical_types): New global hashtable.
1380 (struct gimple_type_leader_entry_s): New type.
1381 (gimple_type_leader): New global cache.
1382 (gimple_lookup_type_leader): New function.
1383 (gtc_visit): Query the proper cache.
1384 (gimple_types_compatible_p): Likewise.
1385 (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
1386 (gimple_canonical_type_eq): New function.
1387 (gimple_register_canonical_type): Likewise.
1388 (print_gimple_types_stats): Adjust for gimple_canonical_types.
1389 (free_gimple_type_tables): Likewise. Free gimple_type_leader.
1390 * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
1391 gimple_types_compatible_p for LTO.
1393 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
1396 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
1397 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
1398 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
1399 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
1400 (<sse>_movu<ssemodesuffix>): New expander.
1401 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
1402 (avx_movdqu<avxmodesuffix>): New expander.
1403 (*sse2_movdqu): Rename from sse2_movdqu.
1404 (sse2_movdqu): New expander.
1406 2010-10-22 Richard Guenther <rguenther@suse.de>
1408 PR tree-optimization/45720
1409 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
1410 Handle negative step.
1411 (vect_enhance_data_refs_alignment): Likewise.
1412 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
1413 (vect_create_cond_for_align_checks): Likewise.
1414 (vect_create_cond_for_alias_checks): Likewise.
1416 2010-10-22 Ira Rosen <irar@il.ibm.com>
1418 PR tree-optimization/46126
1419 * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
1420 vectorizable_shift in case of basic block vectorization.
1422 2010-10-22 Joseph Myers <joseph@codesourcery.com>
1424 * target.h (enum opt_levels, struct default_options): New.
1425 * target.def (handle_ofast): Remove hook.
1426 (target_option.optimization): Change to
1427 target_option.optimization_table.
1428 * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
1429 TARGET_OPTION_OPTIMIZATION_TABLE.
1430 (CAN_DEBUG_WITHOUT_FP): Remove.
1431 * doc/tm.texi: Regenerate.
1432 * opts.c (maybe_default_option, maybe_default_options,
1433 default_options_table): New.
1434 (default_options_optimization): Take extra parameters. Don't
1435 assert that global_options and global_options_set are in use. Use
1436 maybe_default_options.
1437 (decode_options): Pass extra parameters to
1438 default_options_optimization.
1439 * common.opt (falign-loops): Use value 0 with Var.
1440 (frerun-cse-after-loop, ftree-ter): Remove Init.
1441 * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
1442 TARGET_OPTION_OPTIMIZATION): Remove.
1443 * targhooks.c (empty_optimization_table): New.
1444 * targhooks.h (empty_optimization_table): Declare.
1445 * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
1446 * config/alpha/alpha.c (alpha_option_optimization_table,
1447 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1448 * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
1449 * config/arm/arm.c (arm_option_optimization: Change to
1450 arm_option_optimization_table.
1451 (TARGET_OPTION_OPTIMIZATION): Change to
1452 TARGET_OPTION_OPTIMIZATION_TABLE.
1453 * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
1454 * config/avr/avr.c (avr_option_optimization_table,
1455 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1456 * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
1457 * config/cris/cris.c (cris_option_optimization): Change to
1458 cris_option_optimization_table.
1459 (TARGET_OPTION_OPTIMIZATION): Change to
1460 TARGET_OPTION_OPTIMIZATION_TABLE.
1461 * config/crx/crx.c (crx_option_optimization): Change to
1462 crx_option_optimization_table.
1463 (TARGET_OPTION_OPTIMIZATION): Change to
1464 TARGET_OPTION_OPTIMIZATION_TABLE.
1465 * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
1466 * config/fr30/fr30.c (fr30_option_optimization_table,
1467 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1468 * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
1469 * config/frv/frv.c (frv_option_optimization_table,
1470 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1471 * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
1472 * config/h8300/h8300.c (h8300_option_optimization): Change to
1473 h8300_option_optimization_table.
1474 (TARGET_OPTION_OPTIMIZATION): Change to
1475 TARGET_OPTION_OPTIMIZATION_TABLE.
1476 * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
1477 * config/i386/i386.c (ix86_option_optimization): Change to
1478 ix86_option_optimization_table.
1479 (TARGET_OPTION_OPTIMIZATION): Change to
1480 TARGET_OPTION_OPTIMIZATION_TABLE.
1481 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
1483 * config/ia64/ia64.c (ia64_option_optimization): Change to
1484 ia64_option_optimization_table.
1485 (TARGET_OPTION_OPTIMIZATION): Change to
1486 TARGET_OPTION_OPTIMIZATION_TABLE.
1487 * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
1488 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
1490 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1491 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1492 * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
1493 * config/lm32/lm32.c (lm32_option_optimization_table,
1494 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1495 * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
1496 * config/m32r/m32r.c (m32r_option_optimization): Change to
1497 m32r_option_optimization_table.
1498 (TARGET_OPTION_OPTIMIZATION): Change to
1499 TARGET_OPTION_OPTIMIZATION_TABLE.
1500 * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
1501 CAN_DEBUG_WITHOUT_FP): Remove.
1502 * config/mcore/mcore.c (mcore_option_optimization): Change to
1503 mcore_option_optimization_table.
1504 (TARGET_OPTION_OPTIMIZATION): Change to
1505 TARGET_OPTION_OPTIMIZATION_TABLE.
1506 * config/mep/mep.c (mep_option_optimization): Change to
1507 mep_option_optimization_table.
1508 (TARGET_OPTION_OPTIMIZATION): Change to
1509 TARGET_OPTION_OPTIMIZATION_TABLE.
1510 * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
1511 * config/microblaze/microblaze.c
1512 (microblaze_option_optimization_table,
1513 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1514 * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
1515 * config/mips/mips.c (mips_option_optimization_table,
1516 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1517 * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
1518 * config/mmix/mmix.c (mmix_option_optimization): Change to
1519 mmix_option_optimization_table.
1520 (TARGET_OPTION_OPTIMIZATION): Change to
1521 TARGET_OPTION_OPTIMIZATION_TABLE.
1522 * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
1523 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1524 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1525 * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
1526 * config/pa/pa.c (pa_option_optimization_table,
1527 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1528 * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
1529 * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
1530 pdp11_option_optimization_table.
1531 (TARGET_OPTION_OPTIMIZATION): Change to
1532 TARGET_OPTION_OPTIMIZATION_TABLE.
1533 * config/picochip/picochip.c (picochip_option_optimization_table,
1534 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1535 * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
1536 * config/rs6000/rs6000.c (rs6000_option_optimization_table,
1537 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1538 * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
1539 * config/rx/rx.c (rx_option_optimization_table,
1540 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1541 * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
1542 * config/s390/s390.c (s390_option_optimization): Change to
1543 s390_option_optimization_table.
1544 (s390_option_override): Update comment.
1545 (TARGET_OPTION_OPTIMIZATION): Change to
1546 TARGET_OPTION_OPTIMIZATION_TABLE.
1547 * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
1548 * config/score/score.c (score_option_optimization_table,
1549 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1550 * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
1551 * config/sh/sh.c (sh_option_optimization): Change to
1552 sh_option_optimization_table.
1553 (TARGET_OPTION_OPTIMIZATION): Change to
1554 TARGET_OPTION_OPTIMIZATION_TABLE.
1555 (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
1556 (sh_option_override, expand_block_move, multcosts, find_barrier,
1557 barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
1558 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
1559 (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
1560 STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
1561 instead of TARGET_SMALLCODE.
1562 * config/sh/sh.opt (mspace): Make into an alias for -Os.
1563 * config/sparc/sparc.c (sparc_option_optimization_table,
1564 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1565 * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
1566 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1567 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1568 * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
1569 * config/v850/v850.c (v850_option_optimization): Change to
1570 v850_option_optimization_table.
1571 (TARGET_OPTION_OPTIMIZATION): Change to
1572 TARGET_OPTION_OPTIMIZATION_TABLE.
1573 * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
1574 * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
1575 xtensa_option_optimization_table.
1576 (TARGET_OPTION_OPTIMIZATION): Change to
1577 TARGET_OPTION_OPTIMIZATION_TABLE.
1578 * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
1580 2010-10-21 Iain Sandoe <iains@gcc.gnu.org>
1582 Based on the CFString implementation in FSF apple/trunk branch.
1584 * target.def (objc_construct_string): New Hook.
1585 * doc/tm.texi (objc_construct_string): Document.
1586 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
1587 * config/t-darwin: Amend build rules for darwin.o.
1588 * config/darwin.opt: Add cfstrings flags.
1589 * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
1590 (darwin_objc_construct_string): New.
1591 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
1592 * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
1593 * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
1594 (darwin_fold_builtin): Likewise.
1595 (darwin_build_constant_cfstring): Likewise.
1596 (darwin_objc_construct_string): Likewise.
1597 (darwin_cfstring_p): Likewise.
1598 (darwin_enter_string_into_cfstring_table): Likewise.
1599 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
1600 * config/darwin.c (darwin_running_cxx): New var.
1601 (machopic_select_section): Return cfstring_constant_object_section.
1602 (darwin_override_options): Set darwin_running_cxx.
1603 (add_builtin_field_decl): New.
1604 (darwin_init_cfstring_builtins): New.
1605 (darwin_build_constant_cfstring): New.
1606 (darwin_fold_builtin): New.
1607 (cfstring_hash): New.
1609 (darwin_enter_string_into_cfstring_table): New.
1610 * config/darwin-sections.def (cfstring_constant_object_section): New.
1611 * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
1612 (TARGET_OBJC_CONSTRUCT_STRING): Define.
1614 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1616 * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
1617 TYPE_STUB_DECL instead of TREE_CHAIN.
1618 * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
1619 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
1620 * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
1621 * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
1622 * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
1623 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
1625 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
1627 2010-10-22 Jie Zhang <jie@codesourcery.com>
1629 * expr.c (emit_group_load_1): Update calls to extract_bit_field.
1630 (copy_blkmode_from_reg): Likewise.
1631 (read_complex_part): Likewise.
1632 (expand_expr_real_1): Calculate packedp and pass it to
1634 * expr.h (extract_bit_field): Update declaration.
1635 * calls.c (store_unaligned_arguments_into_pseudos): Update call
1636 to extract_bit_field.
1637 * expmed.c (extract_fixed_bit_field): Update calls to
1638 extract_fixed_bit_field.
1639 (store_split_bit_field): Likewise.
1640 (extract_bit_field_1): Add new argument packedp.
1641 (extract_bit_field): Add new argument packedp.
1642 (extract_fixed_bit_field): Add new argument packedp and let
1643 packed attribute override volatile.
1644 * stmt.c (expand_return): Update call to extract_bit_field.
1646 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1648 * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
1650 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1652 * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
1653 of gcc_checking_assert.
1654 * sel-sched.c (code_motion_process_successors): Likewise.
1656 2010-10-21 Eric Botcazou <ebotcazou@adacore.com>
1658 * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
1659 when stopping because of a different locus on edge or insn.
1660 (try_optimize_cfg): Add comment.
1661 * cfgrtl.c (rtl_merge_blocks): Tweak log message. If the destination
1662 block is a forwarder block, propagate locus on the edge.
1663 (cfg_layout_merge_blocks): Likewise.
1665 2010-10-21 Uros Bizjak <ubizjak@gmail.com>
1668 * config/i386/i386.md (*pushti2): New insn pattern.
1669 (pushti2 splitter): New insn splitter.
1670 (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
1673 2010-10-21 Paul Koning <ni1d@arrl.net>
1675 * config/pdp11/pdp11-protos.md (arith_operand,
1676 const_immediate_operand, expand_shift_operand,
1677 immediate15_operand): Delete
1678 * config/pdp11/pdp11.c: Ditto.
1679 * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
1680 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
1681 EXTRA_CONSTRAINT): Delete.
1682 * config/pdp11/pdp11.md (various): Use standard constraints
1683 instead of removed ones.
1684 * config/pdp11/constraints.md: New file.
1685 * config/pdp11/predicates.md: New file.
1687 2010-10-21 Bingfeng Mei <bmei@broadcom.com>
1690 * alias.c (true_dependence_1): Remove obsolete check for QImode.
1691 (may_alias_p): Ditto.
1693 2010-10-21 Martin Jambor <mjambor@suse.cz>
1695 PR tree-optimization/45875
1696 * tree.c (get_binfo_at_offset): Remove initial zero offset test.
1698 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1700 * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
1702 (create_new_def_for): Likewise.
1704 2010-10-21 Nick Clifton <nickc@redhat.com>
1706 * config/mn10300/mn10300.c: Fold code to 80-character width.
1707 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
1708 MEM, CONST_INT and CONST_DOUBLE.
1709 (targetm): Move initialization to end of file.
1710 (print_operand): Rename to mn10300_print_operand.
1711 (print_operand_address): Rename to mn10300_print_operand_address.
1712 (can_use_return_insn): Rename to mn10300_can_use_return_insn.
1713 (expand_prologue): Rename to mn10300_expand_prologue.
1714 (expand_epilogue): Rename to mn10300_expand_epilogue.
1715 (initial_offset): Rename to mn10300_initial_offset.
1716 (function_arg): Rename to mn10300_function_arg.
1717 (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
1718 (symbolic_operand): Rename to mn10300_symbolic_operand.
1719 (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
1720 (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
1721 * config/mn10300/mn10300-protos.h: Update prototypes.
1722 * config/mn10300/mn10300.h: Fold code to 80-character width.
1723 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
1724 MEM, CONST_INT and CONST_DOUBLE.
1725 (CPP_SPEC): Move to...
1726 (TARGET_CPU_CPP_BUILTINS): ... here.
1727 * config/mn10300/mn10300.md: Fold code to 80-character width.
1728 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
1729 MEM, CONST_INT and CONST_DOUBLE.
1731 2010-10-21 Ira Rosen <irar@il.ibm.com>
1733 PR tree-optimization/46049
1734 PR tree-optimization/46052
1735 * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
1736 (vect_get_slp_defs): Add arguments.
1737 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
1738 operands to vect_get_slp_defs.
1739 (vectorizable_reduction): Fix comment, pass scalar operands to
1741 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
1742 type to determine number of units in the created vector.
1743 (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
1744 (vectorizable_conversion): Fix comment.
1745 (vectorizable_shift): New function.
1746 (vectorizable_operation): Move code that handles shifts to
1748 (vectorizable_type_demotion): Fix comment, pass scalar operands to
1750 (vectorizable_type_promotion, vectorizable_store): Likewise.
1751 (vectorizable_condition): Fix comment.
1752 (vect_analyze_stmt): Call vectorizable_shift.
1753 (vect_transform_stmt): Likewise.
1754 * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
1755 Use it as the operand to create vectors for, except reduction
1756 initial definition and store. Use operands type.
1757 (vect_get_slp_defs): Add new arguments. Pass them to
1758 vect_get_constant_vectors.
1760 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1762 * basic-block.h (single_succ_edge): Use gcc_checking_assert.
1763 (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
1764 * cfghooks.c (fixup_reorder_chain): Likewise.
1765 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
1766 * cgraph.c (cgraph_add_thunk): Likewise.
1767 (cgraph_create_edge_1): Likewise.
1768 (cgraph_create_virtual_clone): Likewise.
1769 * ddg.c (add_cross_iteration_register_deps): Likewise.
1770 * dwarf2out.c (modified_type_die): Likewise.
1771 * emit-rtl.c (set_mem_alias_set): Likewise.
1772 * ggc-zone.c (zone_allocate_marks): Likewise.
1773 * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
1774 * gimple.c (iterative_hash_gimple_type): Likewise.
1775 * graphite-scop-detection.c (create_single_entry_edge): Likewise.
1776 (create_single_exit_edge): Likewise.
1777 * haifa-sched.c (choose_ready): Likewise.
1778 * lto-streamer-in.c (input_gimple_stmt): Likewise.
1779 * passes.c (execute_todo): Likewise.
1780 * sched-ebb.c (begin_schedule_ready): Likewise.
1781 * sel-sched.c (code_motion_process_successors): Likewise.
1782 * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
1783 * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
1784 * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
1785 (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
1786 * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
1787 * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
1788 (ssa_conflicts_add): Likewise.
1789 * tree-ssa-copy.c (replace_exp): Likewise.
1790 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
1791 * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
1792 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
1793 * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
1794 (compute_antic): Likewise.
1795 * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
1796 (add_dependence): Likewise.
1797 (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
1798 * tree-vrp.c (supports_overflow_infinity): Likewise.
1799 (make_overflow_infinity, negative_overflow_infinity): Likewise.
1800 (avoid_overflow_infinity, register_new_assert_for): Likewise.
1801 (process_assert_insertions_for): Likewise.
1802 * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
1803 (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
1804 (intersect_loc_chains, variable_merge_over_cur): Likewise.
1806 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1808 * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
1809 * reload1.c (has_nonexceptional_receiver): Likewise.
1810 * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
1811 (create_new_def_for): Likewise.
1812 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
1813 (merge_phi_nodes): Likewise.
1814 (has_abnormal_incoming_edge_p): Delete.
1816 2010-10-21 H.J. Lu <hongjiu.lu@intel.com>
1818 * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
1820 2010-10-21 Richard Guenther <rguenther@suse.de>
1821 Michael Matz <matz@suse.de>
1823 PR tree-optimization/45764
1824 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
1825 Adjust initial misalignment for negative DR_STEP.
1826 (vect_find_same_alignment_drs): Two DRs with different DR_STEP
1827 do not have the same alignment over the whole iteration domain.
1829 2010-10-21 Richard Guenther <rguenther@suse.de>
1831 PR tree-optimization/46111
1832 * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
1834 2010-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1836 * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
1838 2010-10-21 Tristan Gingold <gingold@adacore.com>
1840 * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
1841 * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
1843 2010-10-21 Tristan Gingold <gingold@adacore.com>
1845 * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
1847 * config/alpha/alpha.c (alpha_function_arg): Adjust call.
1849 2010-10-21 Tristan Gingold <gingold@adacore.com>
1851 * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
1852 * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
1854 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
1856 * basic-block.h (find_fallthru_edge): Define.
1857 * cfgcleanup.c (merge_blocks_move): Use it.
1858 (try_crossjump_bb): Likewise.
1859 * cfglayout.c (fixup_reorder_chains): Likewise.
1860 (fixup_fallthru_exit_predecessor): Likewise.
1861 * cfgrtl.c (rtl_split_edge): Likewise.
1862 (rtl_verify_flow_info): Likewise.
1863 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1864 * gimple-pretty-print.c (dump_implicit_edges): Likewise.
1865 * ifcvt.c (block_fallthru): Likewise.
1866 * reload1.c (fixup_abnormal_edges): Likewise.
1867 * sched-ebb.c (being_schedule_ready): Likewise.
1868 (schedule_ebb): Likwise.
1869 * sched-rgn.c (find_single_block_region): Likewise.
1870 * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
1871 * tree-complex.c (expand_complex_move): Likewise.
1872 * sched-int.h (find_fallthru_edge): Rename to...
1873 (find_fallthru_edge_from): ...this.
1874 * haifa-sched.c (find_fallthru_edge): Rename to...
1875 (find_fallthru_edge_from): ...this. Use new find_fallthru_edge.
1876 (init_before_recovery): Call find_fallthru_edge_from.
1877 * sel-sched-ir.c (merge_fences): Likewise.
1878 * sel-sched.c (in_fallthru_bb_p): Likewise.
1879 (move_cond_jump): Likewise.
1881 2010-10-20 Paul Koning <ni1d@arrl.net>
1883 * config/pdp11/pdp11.md (various): Fix conditions on a number of
1884 insn to check for target 11/40 or higher.
1886 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1888 * parser.c (c_parser_objc_method_type): Mark inline. Return a
1889 bool instead of a tree.
1890 (c_parser_objc_method_decl): Added bool argument. Updated call to
1891 objc_build_method_signature.
1892 (c_parser_objc_method_definition): Do not call
1893 objc_set_method_type. Updated calls to c_parser_objc_method_type,
1894 c_parser_objc_method_decl and objc_start_method_definition.
1895 (c_parser_objc_methodproto): Do not call objc_set_method_type.
1896 Updated calls to c_parser_objc_method_type,
1897 c_parser_objc_method_decl and objc_add_method_declaration.
1899 2010-10-20 Jakub Jelinek <jakub@redhat.com>
1901 PR tree-optimization/45919
1902 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
1905 PR tree-optimization/46066
1906 * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
1907 instead of gsi_last_bb.
1909 2010-10-20 DJ Delorie <dj@redhat.com>
1911 * config/m32c/m32c.c (m32c_option_override): Always disable
1912 function-cse in 16-bit mode. Indirect calls are always worse than
1913 direct calls as there is no 16-bit indirect call opcode.
1914 (m32c_override_options_after_change): New, likewise.
1916 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
1918 * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
1919 emitting the conditional move in the inner mode of the SUBREG.
1921 2010-10-20 Anatoly Sokolov <aesok@post.ru>
1923 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
1924 * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
1925 * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
1926 (ia64_preferred_reload_class): Make static. Change rclass argument
1927 and result types from enum reg_class to reg_class_t.
1929 2010-10-20 Pat Haugen <pthaugen@us.ibm.com>
1931 * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
1932 call for single operand expression.
1934 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
1936 * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
1937 if there is a call statement to pure or const function in the block.
1939 2010-10-20 Paul Koning <pkoning@equallogic.com>
1941 Fix several build errors for pdp11 target.
1942 * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
1943 (cbranchdf4): Conditional on TARGET_FPU.
1944 (movdf): Ditto; correct alternatives check.
1945 (movmemhi): Fix predicate and constraint.
1946 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
1948 2010-10-20 Richard Guenther <rguenther@suse.de>
1951 * lto-streamer-out.c (output_gimple_stmt): Fix typo.
1952 * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
1953 (verify_gimple_assign_single): Disable ADDR_EXPR type check
1956 2010-10-20 Vladimir Makarov <vmakarov@redhat.com>
1959 * ira-emit.c (store_can_be_removed_p): Return false instead of
1962 2010-10-20 Dmitry Melnik <dm@ispras.ru>
1964 * fold-const.c (fold_binary_loc): New transformation.
1966 2010-10-20 H.J. Lu <hongjiu.lu@intel.com>
1969 * config/i386/sse.md (reduc_splus_v8sf): Updated.
1970 (reduc_splus_v4df): Likewise.
1972 2010-10-20 Richard Guenther <rguenther@suse.de>
1974 PR tree-optimization/45860
1975 * tree-ssa-phiopt.c (cond_store_replacement): Do not do
1976 conditional store replacement for non-register type stores.
1978 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
1980 * stor-layout.c (skip_simple_constant_arithmetic): New function.
1981 (self_referential_size): Use it instead of skip_simple_arithmetic.
1983 2010-10-20 Olivier Hainque <hainque@adacore.com>
1985 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
1986 If the current function calls eh_return, claim live all registers
1987 that we need to check for liveness otherwise.
1989 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1991 * c-decl.c (c_write_global_declarations): Call
1992 objc_write_global_declarations when compiling Objective-C.
1993 * c-lang.c (finish_file): Removed.
1995 2010-10-19 DJ Delorie <dj@redhat.com>
1997 * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
1998 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
1999 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
2000 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
2001 * doc/tm.texi: Regenerate.
2002 * targhooks.h (default_label_align_after_barrier_max_skip,
2003 default_loop_align_max_skip, default_label_align_max_skip,
2004 default_jump_align_max_skip): Declare.
2005 * target.def (label_align_after_barrier_max_skip): New.
2006 (loop_align_max_skip): New.
2007 (label_align_max_skip): New.
2008 (jump_align_max_skip): New.
2009 * system.h (poison): Add those macros to the list.
2010 * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
2011 (LOOP_ALIGN_MAX_SKIP): Remove.
2012 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
2013 (JUMP_ALIGN_MAX_SKIP): Remove.
2014 (default_label_align_after_barrier_max_skip): New.
2015 (default_loop_align_max_skip): New.
2016 (default_label_align_max_skip): New.
2017 (default_jump_align_max_skip): New.
2018 (compute_alignments): Use the new hooks.
2019 (shorten_branches): Likewise.
2021 2010-10-19 Richard Henderson <rth@redhat.com>
2023 * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
2024 * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
2025 (fma4i_fmadd_<mode>): New.
2026 (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
2027 fma4_fm*_<mode> and adjust to be pre-reload splitters to the
2028 standard fma patterns.
2029 (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
2031 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
2032 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
2033 (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
2035 2010-10-19 Paul Koning <pkoning@equallogic.com>
2037 * lower-subreg.c (resolve_shift_zext): Delete conditional code for
2038 WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
2040 2010-10-19 Richard Henderson <rth@redhat.com>
2042 * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
2043 (fmadf4, *fmsdf4, *nfmadf4): New.
2044 (fmaxf4, *fmsxf4, *nfmaxf4): New.
2046 2010-10-19 Michael Eager <eager@eagercon.com>
2048 * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
2049 Use sjlj unwind info for exceptions.
2051 2010-10-19 Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
2054 * dwarf2out.c (add_calling_convention_attribute): Flag main
2055 Fortran subroutine with DW_AT_main_subprogram.
2057 2010-10-19 Nick Clifton <nickc@redhat.com>
2059 * config/rx/rx.c (rx_function_value): Small integer types are
2061 (rx_promote_function_mode): New function.
2062 (TARGET_PROMOTE_FUNCTION_MODE): Define.
2064 2010-10-19 Nick Clifton <nickc@redhat.com>
2066 * config/mep/mep.c (mep_print_operand): Use
2067 targetm.strip_name_encoding.
2068 (mep_output_aligned_common): Likewise.
2070 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
2072 * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
2074 2010-10-18 Richard Henderson <rth@redhat.com>
2076 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
2077 (fma (neg a) (neg b) c) and (fma a (neg b) c).
2079 2010-10-18 Richard Henderson <rth@redhat.com>
2081 * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
2082 IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
2083 IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
2084 IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
2085 IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
2086 IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
2087 IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
2088 IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
2089 IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
2090 IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
2091 (bdesc_multi_arg): Remove the corresponding builtins.
2092 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
2093 (UNSPEC_FMA4_FMSUBADD): Remove.
2094 (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
2095 * config/i386/sse.md (FMA4MODEF4): Remove.
2097 (fma<mode>4): New expander.
2098 (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
2099 and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
2100 (*fma4i_fmsub_<mode>): Similarly.
2101 (*fma4i_fnmadd_<mode>): Similarly.
2102 (*fma4i_fnmsub_<mode>): Similarly.
2103 (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
2104 with the first operand.
2105 (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
2106 of explicit arithmetic. Macroize with AVXMODEF2P.
2107 (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
2108 (xop_frcz<mode>2): Macroize with FMAMODE.
2109 (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
2111 * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
2113 (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
2114 (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
2115 (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
2116 (_mm256_msub_ps, _mm256_msub_pd): Likewise.
2117 (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
2118 (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
2119 (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
2120 (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
2122 2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
2124 PR rtl-optimization/45966
2125 * combine.c (try_combine): If added_sets_2, deal with the case
2126 where i0 feeds i1 and i1 feeds i2.
2128 2010-10-18 Jan Hubicka <jh@suse.cz>
2130 * ipa.c (cgraph_externally_visible_p): Handle externally visible and
2131 preserve flags before trying to guess on visibility.
2132 (varpool_externally_visible_p): New function.
2133 (function_and_variable_visibility): Use it.
2135 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2137 Implemented parsing @synthesize and @dynamic for Objective-C.
2138 * c-parser.c (c_parser_external_declaration): Recognize
2139 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2140 (c_parser_objc_at_synthesize_declaration): New.
2141 (c_parser_objc_at_dynamic_declaration): New.
2143 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2145 * c-parser.c (c_parser_objc_class_declaration): After finding an
2146 error, parse the whole declaration then reset parser->error.
2148 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2151 * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
2152 * builtins.c (mode_has_fma): Ditto.
2154 2010-10-18 Steve Ellcey <sje@cup.hp.com>
2158 * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
2160 2010-10-18 Joseph Myers <joseph@codesourcery.com>
2162 * config/i386/i386.c (ix86_option_override_internal): Define and
2163 use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
2165 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2166 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
2168 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2170 Merge from 'apple/trunk' branch on FSF servers.
2171 * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
2172 following Objective-C change:
2174 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
2177 * c-parse.in (objc_quals): Build objc qualifier list same way
2180 2010-10-18 Jan Hubicka <jh@suse.cz>
2182 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
2183 function_and_variable_visibility): Revert accidental commit.
2185 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2187 Merge from 'apple/trunk' branch on FSF servers.
2188 * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
2189 the following Objective-C change:
2191 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
2194 * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
2195 'volatilized' type used in a typeof operator.
2197 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
2199 * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
2200 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
2201 rewrite modelled on gimple_purge_dead_eh_edges.
2202 (gimple_purge_all_dead_abnormal_call_edges): New function.
2203 * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
2204 directly instead of through gimple_purge_dead_abnormal_call_edges.
2205 * tree-ssa-pre.c (need_ab_cleanup): New static variable.
2206 (eliminate): Set bit in need_ab_cleanup for the basic block if we have
2207 removed AB side-effects from one of its statements.
2208 (init_pre): Initialize need_ab_cleanup.
2209 (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
2210 are set in need_ab_cleanup. Free need_ab_cleanup afterward.
2212 2010-10-18 Jakub Jelinek <jakub@redhat.com>
2215 * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
2216 on computed goto argument.
2218 2010-10-18 Richard Guenther <rguenther@suse.de>
2220 PR tree-optimization/45967
2221 * tree-ssa-structalias.c (type_could_have_pointers): Remove.
2222 (could_have_pointers): Likewise.
2223 (handle_rhs_call, handle_const_call, handle_pure_call,
2224 find_func_aliases, intra_create_variable_infos): Remove calls to them.
2225 (struct fieldoff): Add must_have_pointers field.
2226 (type_must_have_pointers): New function.
2227 (field_must_have_pointers): Likewise.
2228 (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
2229 Adjust field merging.
2230 (create_function_info_for): May-have-pointers of varinfo is
2232 (create_variable_info_for_1): Likewise.
2234 2010-10-18 Tejas Belagod <tejas.belagod@arm.com>
2236 * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
2237 of operands to vec_concat.
2239 2010-10-18 Richard Guenther <rguenther@suse.de>
2242 * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
2243 also clear references to entries of it.
2245 2010-10-18 Andi Kleen <ak@linux.intel.com>
2248 * gccbug.in: Remove.
2249 * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
2250 (doc, distclean, install-common): Remove reference to gccbug.
2251 * configure: Regenerate.
2252 * configure.ac (all_outputs): Remove gccbug.
2253 * doc/configfiles.texi: Remove references to gccbug.
2254 * doc/sourcebuild.texi: Dito.
2256 2010-10-18 Jakub Jelinek <jakub@redhat.com>
2259 * fold-const.c (fold_binary_loc): If integer_pow2p has
2260 TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
2262 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
2263 Jeremie Salvucci <jeremie.salvucci@free.fr>
2265 * gengtype.c (verbosity_level): Add variable.
2266 (set_gc_used): Count variables for verbosity.
2267 (close_output_files): Backing up files, counting written ones
2269 (write_types): Count emitted functions for verbosity. Added
2271 (write_enum_defn): Count structures for verbosity. Added debug
2273 (gengtype_long_options): Add "verbose" & "backupdir".
2274 (print_usage): Ditto.
2275 (main): Verbose display of parsed files.
2277 * gengtype.h (verbosity_level): Add declaration.
2279 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
2281 * gengtype.c (parse_program_options): Add allocation of
2282 plugin_files, and correct test on nb_plugin_files.
2284 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2286 Merge from 'apple/trunk' branch on FSF servers.
2288 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2291 * c-decl.c (undeclared_variable): Issue diagnostic on
2292 private 'ivar' access.
2294 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
2297 * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
2298 generated sequence to match *avx_vperm2f128<mode>_nozero.
2299 (vec_interleave_lowv4df): Ditto.
2300 (vec_interleave_highv8sf): Ditto.
2301 (vec_interleave_lowv8sf): Ditto.
2303 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
2305 * libgcov.c (create_file_directory): Enable it for win32 case.
2306 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
2307 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
2308 (GCOV_PREFIX_SKIP): Likewise.
2310 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2312 * doc/objc.texi (GNU Objective-C runtime API): New section.
2313 (Modern GNU Objective-C runtime API): New section.
2314 (Traditional GNU Objective-C runtime API): New section.
2315 (Executing code before main): Mention that this section is
2316 specific to the GNU Objective-C runtime.
2317 (Garbage Collection): Same.
2319 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
2321 * c-parser.c (c_parser_for_statement): Move initialization of
2322 cond and incr before if.
2324 2010-10-17 Anatoly Sokolov <aesok@post.ru>
2326 * target.def (preferred_output_reload_class): New hook.
2327 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
2328 * doc/tm.texi: Regenerate.
2329 * targhooks.c (default_preferred_output_reload_class): New function.
2330 * targhooks.h (default_preferred_output_reload_class): Declare.
2331 * reload.c (find_dummy_reload): Change rclass argument type from
2332 enum reg_class to reg_class_t. Change this_alternative array type
2333 from enum reg_class to reg_class_t.
2334 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
2335 (push_reload): Change preferred_class variable type to reg_class_t.
2336 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
2337 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
2338 argument type from enum reg_class to reg_class_t. Use
2339 HARD_REGISTER_NUM_P predicate.
2340 * recog.h (reg_fits_class_p): Update prototype.
2342 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2343 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
2345 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
2346 static. Change regclass argument and result types from enum reg_class
2348 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2350 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2352 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
2353 visibility enum, and handle @package.
2355 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2357 * doc/objc.texi (What you can and what you cannot do in +load):
2358 Document that sending messages to constant string objects in +load
2359 is not guaranteed to work.
2361 2010-10-16 Jan Hubicka <jh@suse.cz>
2364 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
2365 existence of refrences before removing the function.
2367 2010-10-16 Jan Hubicka <jh@suse.cz>
2369 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
2370 only_called_at_startup and only_called_at_exit.
2371 (cgraph_propagate_frequency): Compute only_called_at_startup and
2372 only_called_at_exit.
2373 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
2374 only_called_at_exit.
2375 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
2377 * predict.c (compute_function_frequency): Initialize the new flags.
2379 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
2381 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
2382 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
2383 on the bounds of its domain.
2384 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
2386 2010-10-16 Anatoly Sokolov <aesok@post.ru>
2388 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
2389 * config/avr/avr-protos.h (preferred_reload_class): Remove.
2390 * config/avr/avr.c (preferred_reload_class): Remove.
2391 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
2392 * config/pa/pa.c (emit_move_sequence): Update comment
2393 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
2394 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
2395 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
2396 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
2397 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
2398 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
2399 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
2400 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
2401 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
2402 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
2403 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
2404 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
2405 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
2407 2010-10-16 Joseph Myers <joseph@codesourcery.com>
2409 * opts.c (set_fast_math_flags,
2410 set_unsafe_math_optimizations_flags): Make static.
2411 * toplev.h (set_fast_math_flags,
2412 set_unsafe_math_optimizations_flags): Remove prototypes.
2414 2010-10-16 Joseph Myers <joseph@codesourcery.com>
2416 * config/arm/arm.c (arm_option_optimization): Set
2417 flag_section_anchors to 1 not 2.
2418 * config/i386/i386.c (ix86_option_override_internal): Check
2419 global_options_set.x_flag_zee and
2420 global_options_set.x_flag_omit_frame_pointer.
2421 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
2423 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
2424 global_options_set.x_flag_omit_frame_pointer.
2425 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
2426 opts->x_flag_section_anchors to 1 not 2.
2427 * config/sh/sh.c (sh_option_optimization): Don't set
2428 flag_schedule_insns to 2.
2429 (sh_option_override): Check
2430 global_options_set.x_flag_schedule_insns.
2431 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
2433 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
2435 * configure.ac: Make sure inhibit_libc remains false for mingw targets
2437 * configure: Regenerated.
2439 2010-10-15 Xinliang David Li <davidxl@google.com>
2441 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
2443 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
2444 into a recursive function.
2446 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
2448 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
2449 (*movdfcc_1): ditto.
2451 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2453 * target.def (target_option.init_struct): New hook.
2454 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
2455 * doc/tm.texi: Regenerate.
2456 * hooks.c (hook_void_gcc_optionsp): New.
2457 * hooks.h (hook_void_gcc_optionsp): Declare.
2458 * langhooks-def.h (lhd_init_options_struct): Remove.
2459 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
2460 * langhooks.c (lhd_init_options_struct): Remove.
2461 * opts.c (init_options_struct): Also call
2462 targetm.target_option.init_struct.
2463 * config/i386/i386.c (ix86_option_init_struct,
2464 TARGET_OPTION_INIT_STRUCT): New.
2465 (ix86_option_optimization): Move some settings to
2466 ix86_option_init_struct.
2467 * config/pdp11/pdp11.c (pdp11_option_init_struct,
2468 TARGET_OPTION_INIT_STRUCT): New.
2469 (pdp11_option_optimization): Move some settings to
2470 pdp11_option_init_struct.
2471 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
2472 rs6000_option_init_struct. Use options structure pointer.
2473 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
2474 * config/s390/s390.c (s390_option_init_struct,
2475 TARGET_OPTION_INIT_STRUCT): New.
2476 (s390_option_optimization): Don't set
2477 flag_asynchronous_unwind_tables here.
2478 * config/sh/sh.c (sh_option_init_struct,
2479 TARGET_OPTION_INIT_STRUCT): New.
2480 (sh_option_optimization): Don't set flag_finite_math_only here.
2481 * config/spu/spu.c (spu_option_optimization): Replace by
2482 spu_option_optimization. Use options structure pointer.
2483 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
2485 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2487 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
2489 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
2490 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
2491 (Standard names): Document fma.
2493 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
2494 __FP_FAST_FMAF, __FP_FAST_FMAL.
2496 * builitns.c (expand_builtin_mathfn_ternary): New function for
2497 expanding ternary math functions, like fma.
2498 (expand_builtin): Call it for the fma builtins.
2500 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
2503 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
2504 vectorizable functions to support vectorizing fma.
2506 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
2507 Handle fma builtins.
2509 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
2510 (UNSPEC_VSX_MSUB): Ditto.
2511 (UNSPEC_VSX_NMADD): Ditto.
2512 (UNSPEC_VSX_NMSUB): Ditto.
2513 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
2514 of UNSPEC. Renumber combiner patterns.
2515 (vsx_fmsub<mode>4*): Ditto.
2516 (vsx_fnmadd<mode>4*): Ditto.
2517 (vsx_fnmsub<mode>4*): Ditto.
2519 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
2520 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
2521 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
2522 (altivec_vmaddfp_1): Ditto.
2523 (altivec_vmaddfp_2): Ditto.
2524 (atlivec_mulv4sf3): Ditto.
2525 (altivec_vnmsubfp): Ditto.
2526 (altivec_vnmsubfp_1): Ditto.
2527 (altivec_vnmsubfp_2): Ditto.
2528 (altivec_vnmsubfp_3): Delete.
2530 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
2531 (fmasf4_fpr): Ditto.
2532 (fmssf4_fpr): Ditto.
2533 (fnmasf4_fpr): Ditto.
2534 (fnmssf4_fpr): Ditto.
2536 (fmadf4_fpr): Ditto.
2537 (fmsdf4_fpr): Ditto.
2538 (fnmadf4_fpr): Ditto.
2539 (fnmsdf4_fpr): Ditto.
2541 * optabs.h (OTI_fma): Add fma optab.
2544 * genopinit.c (optabs): Set fma optab.
2546 * rtl.def (FMA): Add FMA rtl.
2548 * tree.h (mode_has_fma): New function to return if MODE supports a
2549 fast multiply and add instruction.
2550 * builtins.c (mode_has_fma): Ditto.
2552 2010-10-15 Jan Hubicka <jh@suse.cz>
2554 * lto-streamer-out.c (write_symbol): Use pointer set of seen
2555 objects instead of bitmap.
2556 (produce_symtab): Likewise; output defined symbols first.
2558 2010-10-15 Jie Zhang <jie@codesourcery.com>
2560 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
2561 Option Summary and Index.
2563 2010-10-15 Richard Guenther <rguenther@suse.de>
2565 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
2566 for automatic variables again.
2568 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2570 * doc/extend.texi (Variable Length): Don't refer to VLAs not
2573 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2575 * config/rx/rx.c (rx_option_optimization): Change to
2576 rx_override_options_after_change. Don't change
2577 flag_lto_compression_level. Don't check for changes to whether
2578 FPU instructions can be used. Check and set only
2579 flag_finite_math_only, not other fast-math flags.
2580 (rx_option_override): Call rx_override_options_after_change.
2581 (TARGET_OPTION_OPTIMIZATION): Remove.
2582 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
2584 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2586 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
2587 disable section anchors for lang_hooks.name[4] != 'O'.
2589 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2591 * config/frv/frv.c (frv_option_optimization,
2592 TARGET_OPTION_OPTIMIZATION): Remove.
2593 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
2595 2010-10-15 Michael Matz <matz@suse.de>
2597 * cgraphunit.c (clone_of_p): Define unconditionally.
2599 2010-10-15 Richard Guenther <rguenther@suse.de>
2602 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
2604 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
2606 * ifcvt.c (find_active_insn_before): New function.
2607 (find_active_insn_after): New function.
2608 (cond_exec_process_if_block): Use new functions to replace
2609 prev_active_insn() and next_active_insn().
2611 2010-10-14 Yao Qi <yao@codesourcery.com>
2614 * config/arm/arm.c (arm_build_builtin_va_list): Assign
2615 va_list_name to TYPE_STUB_DECL (va_list_type).
2617 2010-10-14 Jan Hubicka <jh@suse.cz>
2620 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
2621 redirected to clone, be happy.
2622 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
2623 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
2624 former_clone_of unconditionally.
2626 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2628 Merge from FSF apple 'trunk' branch.
2629 2006 Fariborz Jahanian <fjahanian@apple.com>
2631 Radars 4436866, 4505126, 4506903, 4517826
2632 * c-parser.c (c_parser, objc_property_attr_context) New flag.
2633 (c_lex_one_token): Handle property attributes.
2634 (c_parser_external_declaration): Handle @property.
2635 (c_parser_declaration_or_fndef): Warn on invalid attributes before
2636 @alias, @class, @end and @property objc keywords.
2637 (c_parser_objc_methodprotolist): Handle @property.
2638 (c_parser_objc_property_attrlist): New.
2639 (c_parser_objc_at_property): New.
2640 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
2641 (build_modify_expr): Likewise.
2643 2010-10-14 Jakub Jelinek <jakub@redhat.com>
2645 PR tree-optimization/46008
2646 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
2648 2010-10-14 Richard Guenther <rguenther@suse.de>
2650 PR tree-optimization/44913
2651 * tree-data-ref.c (disjoint_objects_p): Remove.
2652 (dr_may_alias_p): Simplify. Only hand the base object to
2654 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2655 some more trees, bail out instead of asserting.
2656 (ptr_derefs_may_alias_p): Likewise. Export.
2657 (refs_may_alias_p_1): Handle STRING_CSTs.
2658 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
2660 2010-10-14 Joseph Myers <joseph@codesourcery.com>
2663 * c-typeck.c (build_binary_op): Don't try to compute a semantic
2664 type with excess precision for boolean operations.
2666 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
2667 Basile Starynkevitch <basile@starynkevitch.net>
2669 * gengtype.c: Include getopt.h and version.h.
2671 (lang_bitmap, struct outf, outf_p)
2672 (get_output_file_with_visibility, oprintf): Definitions moved to
2674 (output_files, header_file, srcdir, srcdir_len, this_file)
2675 (do_dump): No more static variables.
2677 (dbgprint_count_type_at): Added new function.
2678 (gengtype_long_options): New.
2679 (print_usage, print_version, parse_program_options): New.
2680 (main): Call parse_program_options, and removed old option
2681 handling code. Added some debug output.
2683 * gengtype.h: Updated copyright year.
2684 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
2685 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
2686 Moved from gengtype.c to here.
2687 (do_debug, read_state_filename, write_state_filename): New variables.
2688 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
2691 (REVISION): Always defined.
2692 (version.o): Removed ifdef REVISION_c.
2693 (s-gtype): Pass arguments to build/gengtype program.
2694 (build/version.o): Added building rule.
2695 (build/gengtype$(build_exeext)): Added build/version.o.
2697 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2699 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
2700 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
2703 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
2705 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
2706 may_trap_or_fault_p instead of may_trap_p predicate.
2707 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
2708 (substitute_placeholder_in_expr): Likewise.
2709 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
2710 flag on MEM_REF nodes.
2711 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
2712 flags on INDIRECT_REF nodes.
2714 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
2716 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
2717 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
2718 (arm*-*-eabi*) <tm_file>: Likewise.
2719 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
2720 (frv-*-*linux*) <tm_file>: Likewise.
2721 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
2722 and associated helper macros.
2723 * config/frv/frv-abi.h: Delete.
2725 2010-10-14 Richard Guenther <rguenther@suse.de>
2728 * tree.def (NULLPTR_TYPE): New tree code.
2729 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
2730 * dwarf2out.c (is_base_type): Likewise.
2731 (gen_type_die_with_usage): Likewise.
2732 * sdbout.c (plain_type_1): Likewise.
2733 * tree.c (build_int_cst_wide): Likewise.
2734 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
2736 2010-10-14 Joseph Myers <joseph@codesourcery.com>
2738 * params.c (params_finished): New.
2739 (add_params): Assert !params_finished.
2740 (finish_params): New.
2741 (set_param_value_internal): Take params and params_set
2742 parameters. Assert params_finished.
2743 (set_param_value, maybe_set_param_value): Take params and
2744 params_set parameters. Update calls to set_param_value_internal.
2745 (set_default_param_value): Assert !params_finished. Don't use
2746 set_param_value_internal.
2747 (default_param_value, init_param_values): New.
2748 * params.h (struct param_info): Change value to default_value.
2750 (set_param_value, maybe_set_param_value): Add params and
2751 params_set parameters.
2752 (PARAM_VALUE): Get parameters from global_options.
2753 (PARAM_SET_P): Remove.
2754 (finish_params, default_param_value, init_param_values): New.
2755 * common.opt (param_values): New Variable.
2756 * config/arm/arm.c (arm_option_override): Pass extra arguments to
2757 maybe_set_param_value.
2758 * config/i386/i386.c (ix86_option_override_internal): Pass extra
2759 arguments to maybe_set_param_value.
2760 * config/picochip/picochip.c (picochip_option_override): Pass
2761 extra arguments to maybe_set_param_value.
2762 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
2763 extra arguments to maybe_set_param_value.
2764 * config/s390/s390.c (s390_option_override): Use
2765 maybe_set_param_value instead of set_param_value. Pass extra
2766 arguments to maybe_set_param_value.
2767 * config/sparc/sparc.c (sparc_option_override): Pass extra
2768 arguments to maybe_set_param_value.
2769 * config/spu/spu.c (spu_option_override): Pass extra arguments to
2770 maybe_set_param_value.
2771 * opts.c (handle_param): Take opts and opts_set parameters.
2772 Update call to set_param_value.
2773 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
2774 initial_loop_invariant_max_bbs_in_loop): Remove.
2775 (init_options_once): Don't set them.
2776 (init_options_struct): Initialize parameters structures.
2777 (default_options_optimization): Use default_param_value when
2778 restoring defaults. Update calls to maybe_set_param_value.
2779 (finish_options): Update calls to maybe_set_param_value.
2780 (common_handle_option): Update calls to handle_param and
2782 * toplev.c (DEFPARAM): Update definition for changes to param_info.
2783 (general_init): Call finish_params.
2785 2010-10-14 Nick Clifton <nickc@redhat.com>
2787 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
2788 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
2789 (FIRST_PSEUDO_REGISTER): Increase by one.
2790 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
2791 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
2792 (MODES_TIEABLE): Call mn10300_modes_tieable.
2793 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
2794 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
2795 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
2796 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
2797 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
2798 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
2799 (mn10300_cc_status_mdep): Delete.
2800 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
2801 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
2802 the combine-stack-adjust pass.
2803 (print_operand): Use the mode of the comparison operation to
2804 select the comparison suffix.
2805 (notice_update_cc): Delete.
2806 (mn10300_secondary_reload_class): Remove test for stack pointer
2808 (output_tst): Rename to mn10300_output_cmp.
2809 (impossible_plus_operand): Move into predicates.md.
2810 (mn10300_legitimize_address): Make static.
2811 (mn10300_legitimate_address_p): Make static. Only allow SI sized
2812 constant pic operands.
2813 (mn10300_legitimate_constant_p): New function.
2814 (mn10300_case_values_threshold): Make static.
2815 (mn10300_hard_regno_mode_ok): New function.
2816 (mn10300_modes_tieable): New function.
2817 (mn10300_select_cc_mode): New function.
2818 * config/mn10300/predicates.md (impossible_plus_operand): Define.
2819 * config/mn10300/mn10300-protos.h: Tidy.
2820 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
2821 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
2822 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
2823 with clobbers or sets of CC_REG.
2825 (mov*): Remove use of CLR instruction.
2826 (cbranch_si4_<code>): New pattern/split.
2827 (integer_conditional_branch): New pattern.
2828 (cbranch_sf4_<code>): New pattern/split.
2829 (float_conditional_branch): New pattern.
2830 (casesi): Use addsi3 pattern instead of movsi pattern to add and
2831 move a value at the same time.
2832 (cc0 peepholes): Remove.
2834 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
2836 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
2837 on RTX_FRAME_RELATED_P insns and the insn to which
2838 NOTE_INSN_EPILOGUE_BEG is attached.
2839 * sched-vis.c (print_value): Allow NULL value.
2841 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
2843 PR rtl-optimization/45570
2844 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
2845 assert that we are pipelining outer loops. Allow returning
2848 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
2850 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
2851 (tidy_control_flow): Tidy vertical space.
2852 (sel_remove_bb): New variable idx. Use it to remember the basic
2853 block index before deleting the block.
2854 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
2855 (sel_merge_blocks): ... here.
2856 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
2858 2010-10-14 Jakub Jelinek <jakub@redhat.com>
2860 * cse.c (is_dead_reg): Change into inline function that is not
2861 called through for_each_rtx.
2862 (set_live_p): Adjust caller.
2863 (insn_live_p): Don't reset DEBUG_INSNs here.
2864 (struct dead_debug_insn_data): New data.
2865 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
2866 (delete_trivially_dead_insns): If there is just one setter for the
2867 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
2868 and add DEBUG_INSN for it right before the removed setter and
2869 use the DEBUG_EXPR instead of the dead pseudo.
2871 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
2873 * et-forest.c (et_nca): Return NULL immediately when
2874 the dominance forest has disjoint components.
2876 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
2878 * ira.c (setup_class_hard_regs): Fix typo in indexing
2879 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
2881 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
2883 * graph.c (inbb): New variable.
2884 (start_bb): Set inbb to 1 if output is inside of a building block.
2885 (end_bb): Check if output is inside of a building block.
2887 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
2889 PR rtl-optimization/45912
2890 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
2891 regno of registers instead of their index to compute the alignment.
2893 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
2895 * config/i386/i386.c (ix86_build_const_vector): Check vector
2896 mode instead of scalar mode.
2897 (ix86_build_signbit_mask): Likewise.
2898 (ix86_expand_fp_absneg_operator): Updated.
2899 (ix86_expand_copysign): Likewise.
2900 (ix86_expand_int_vcond): Likewise.
2901 (ix86_emit_swdivsf): Likewise.
2902 (ix86_sse_copysign_to_positive): Likewise.
2903 (ix86_expand_sse_fabs): Likewise.
2904 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
2905 * config/i386/sse.md (copysign<mode>3): Likewise.
2906 (sse2_cvtudq2ps): Likewise.
2907 (vec_unpacku_float_hi_v4si): Likewise.
2908 (vec_unpacku_float_lo_v4si): Likewise.
2910 * config/i386/i386.c (ix86_builtins): Add
2911 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
2912 (bdesc_args): Likewise.
2913 (ix86_builtin_vectorized_function): Support
2914 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
2915 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
2916 and IX86_BUILTIN_CVTPS2DQ256.
2917 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
2919 * config/i386/sse.md (STORENT_MODE): New.
2920 (VEC_FLOAT_MODE): Likewise.
2921 (VEC_EXTRACT_MODE): Likewise.
2922 (*avx_cvtdq2pd256_2): Likewise.
2923 (vec_pack_trunc_v4df): Likewise.
2924 (vec_interleave_highv8sf): Likewise.
2925 (vec_interleave_lowv8sf): Likewise.
2926 (storent<mode>): Macroized.
2927 (<code><mode>2: absneg): Likewise.
2928 (copysign<mode>3): Likewise.
2929 (vec_extract<mode>): Likewise.
2932 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
2935 2010-10-13 Richard Guenther <rguenther@suse.de>
2936 H.J. Lu <hongjiu.lu@intel.com>
2938 * config/i386/sse.md (reduc_splus_v8sf): Add.
2939 (reduc_splus_v4df): Likewise.
2940 (vec_unpacks_hi_v8sf): Likewise.
2941 (vec_unpacks_lo_v8sf): Likewise.
2942 (*avx_cvtps2pd256_2): Likewise.
2943 (vec_unpacks_float_hi_v8si): Likewise.
2944 (vec_unpacks_float_lo_v8si): Likewise.
2945 (vec_interleave_highv4df): Likewise.
2946 (vec_interleave_lowv4df): Likewise.
2948 2010-10-13 Richard Guenther <rguenther@suse.de>
2951 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
2952 alone if there are no virtual methods.
2954 2010-10-13 Richard Henderson <rth@redhat.com>
2956 * expr.c (build_personality_function): Take parameter LANG instead
2957 of parameter NAME. Build the name based on the lang prefix and the
2958 unwind method in use.
2959 * tree.c (lhd_gcc_personality): Update call to
2960 build_personality_function.
2962 2010-10-13 Richard Guenther <rguenther@suse.de>
2965 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
2967 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
2969 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
2970 Canonicalize input operands of ASM_OPERANDS insns.
2972 2010-10-13 Richard Guenther <rguenther@suse.de>
2974 PR tree-optimization/45788
2975 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
2976 EH update until fixup-cfg.
2978 2010-10-13 Julian Brown <julian@codesourcery.com>
2980 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
2981 from CORE_REGS and GENERAL_REGS classes.
2982 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
2983 final constraint for register preferencing.
2985 2010-10-13 Richard Guenther <rguenther@suse.de>
2987 PR tree-optimization/45970
2988 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
2989 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
2990 (stmt_kills_ref_p): Likewise.
2991 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
2993 2010-10-13 Richard Guenther <rguenther@suse.de>
2995 PR tree-optimization/45982
2996 * tree-ssa-structalias.c (make_constraints_to): New function.
2997 (make_constraint_to): Implement in terms of make_constraints_to.
2998 (find_func_aliases): Properly make return values of pure/const
2999 functions escape if they assign to sth that is not a pointer.
3001 2010-10-13 Richard Guenther <rguenther@suse.de>
3004 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
3005 Fixup the CFG when EH was fixed up.
3007 2010-10-13 Ira Rosen <irar@il.ibm.com>
3009 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
3010 Use operand's type for POINTER_PLUS_EXPR.
3012 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
3014 * c-parser.c (c_parser_for_statement): Initialize incr.
3016 2010-10-12 Xinliang David Li <davidxl@google.com>
3018 PR tree-optimization/45972
3019 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
3020 with too many arguments.
3022 2010-10-12 Jakub Jelinek <jakub@redhat.com>
3025 * tree-ssa-forwprop.c: Include expr.h.
3026 (constant_pointer_difference, simplify_builtin_call): New functions.
3027 (tree_ssa_forward_propagate_single_use_vars): Call
3028 simplify_builtin_call on builtin calls.
3030 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
3032 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
3033 (*adddi3_extend_sp32): Likewise.
3034 (*subdi3_insn_sp32): Likewise.
3035 (*subdi3_extend_sp32): Likewise.
3036 (*negdi2_sp32): Use negative test for consistency.
3038 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
3040 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
3041 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3042 * config/fixed-bit.h: Likewise.
3043 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3044 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3045 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
3046 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
3047 (DF_SIZE): Likewise.
3048 * doc/tm.texi: Regenerate.
3050 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
3052 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
3053 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
3054 (*isel_reversed_unsigned_<mode>): New.
3055 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
3056 as valid comparisons and adjust operands and output appropriately.
3057 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
3059 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
3061 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
3062 DATA_ALIGNMENT and add COND parameter. Update comments above.
3063 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
3064 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
3066 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
3069 * exec-tool.in: Support '-plugin' as the second option to the linker.
3071 2010-10-12 Richard Henderson <rth@redhat.com>
3074 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
3075 (expand_stack_vars): Assert large base allocated when used.
3077 2010-10-12 Richard Guenther <rguenther@suse.de>
3079 * tree-ssa-structalias.c (get_constraint_for_1): Constants
3080 only point to nonlocal, not anything.
3082 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
3084 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
3085 unwind info for exceptions.
3087 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3090 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
3091 Document optional target selector.
3093 2010-10-12 Joseph Myers <joseph@codesourcery.com>
3095 * flag-types.h: New.
3096 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
3097 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
3099 (OPTIONS_H): Define.
3100 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
3102 * configure.ac (tm_include_list): Include options.h not flags.h.
3103 * configure: Regenerate.
3104 * flags.h: Include flag-types.h. Include options.h at top of file
3106 (enum debug_info_type, enum debug_info_level, enum
3107 debug_info_usage, enum symbol_visibility, struct visibility_flags,
3108 enum ira_algorithm, enum ira_region, enum excess_precision, enum
3109 graph_dump_types, enum stack_check_type,
3110 enum warn_strict_overflow_code): Move to flag-types.h
3111 * opth-gen.awk: Include flag-types.h in options.h.
3113 2010-10-12 Jakub Jelinek <jakub@redhat.com>
3115 * expr.c (store_expr): Share code for STRING_CST and
3116 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
3117 check if target is a MEM.
3119 * rtl.h: Include hashtab.h.
3120 (iterative_hash_rtx): New prototype.
3121 * rtl.c (iterative_hash_rtx): New function.
3122 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
3123 (output_loc_list): Return immediately if emitted is set, set it.
3124 (hash_loc_operands, hash_locs, hash_loc_list,
3125 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
3126 optimize_location_lists_1, optimize_location_lists): New function.
3127 (dwarf2out_finish): Call optimize_location_lists.
3128 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
3130 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3134 * Makefile.in ($(lang_checks_parallel))
3135 ($(lang_checks_parallelized)): Use single quotes for
3136 $(RUNTESTFLAGS), to allow passing quoted content.
3138 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3140 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
3141 actual_oldval. Use __builtin_expect.
3142 (SUBWORD_VAL_CAS): Likewise.
3144 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
3146 * recog.c (nonmemory_operand): Call immediate_operand for
3147 CONSTANT_P operands.
3149 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
3151 * config/i386/i386.md (movmem<mode>): Macroize expander from
3152 movmem{si,di} using SWI48 mode iterator.
3153 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
3154 *strmovsi_rex_1 using P mode iterator.
3155 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
3156 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
3157 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
3158 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
3159 (setmem<mode>): Macroize expander from setmem{si,di} using
3160 SWI48 mode iterator.
3161 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
3162 *strsetsi_rex_1 using P mode iterator.
3163 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
3164 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
3165 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
3166 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
3167 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
3168 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
3169 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
3171 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
3172 *strlenqi_rex_1 using P mode iterator.
3174 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
3177 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
3179 (mark_ref_live, mark_ref_dead): Use them.
3180 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
3181 Save the original reg, and use the new functions.
3182 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
3184 (check_and_make_def_conflict): Save the original reg.
3186 2010-10-11 Martin Jambor <mjambor@suse.cz>
3189 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
3192 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3194 * Makefile.in ($(lang_checks_parallel))
3195 ($(lang_checks_parallelized)): Use single quotes for
3196 $(RUNTESTFLAGS), to allow passing quoted content.
3199 * opt-functions.awk (BEGIN): New section.
3200 (lower, upper, digit, alnum): New variables.
3201 (static_var, opt_sanitized_name): Use alnum instead of character
3202 classes, for non-C locale.
3203 * optc-gen.awk: Likewise.
3204 * opth-gen.awk: Likewise.
3206 2010-10-11 Anatoly Sokolov <aesok@post.ru>
3208 * target.def (preferred_reload_class): New hook.
3209 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
3210 * doc/tm.texi: Regenerate.
3211 * targhooks.c (default_preferred_reload_class): New function.
3212 * targhooks.h (default_preferred_reload_class): Declare.
3213 * reload.c (find_dummy_reload): Change preferred_class variable type
3214 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
3216 (find_reloads): Change goal_alternative array type from int to
3217 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
3218 (push_reload, find_reloads_address_part): Use
3219 TARGET_PREFERRED_RELOAD_CLASS target hook.
3220 * reload1.c (emit_input_reload_insns): Ditto.
3221 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
3222 hook. Change rclass argument and secondary_class variable types from
3223 'enum reg_class' to reg_class_t.
3225 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
3226 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
3227 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
3228 Change regclass argument and result types from enum reg_class to
3230 (TARGET_PREFERRED_RELOAD_CLASS): Define.
3232 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
3234 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
3235 in masking operations.
3236 (simplify_const_unary_operation): Likewise.
3237 (simplify_binary_operation_1): Likewise.
3238 (simplify_const_binary_operation): Likewise.
3239 (simplify_const_relational_operation): Likewise.
3240 (simplify_ternary_operation): Likewise.
3241 (simplify_immed_subreg): Likewise.
3243 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3246 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
3247 (TARGET_SUPPORTS_WEAK): New.
3248 * doc/tm.texi: Regenerate.
3249 * defaults.h (SUPPORTS_WEAK): Update comment.
3250 (TARGET_SUPPORTS_WEAK): New.
3251 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
3252 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
3254 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
3255 make_decl_one_only): Likewise.
3256 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
3257 TARGET_SUPPORTS_WEAK.
3258 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
3259 instead of SUPPORTS_WEAK.
3261 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3263 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
3265 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
3267 * vec.h (VEC_qsort): Define.
3268 * dbxout.c (output_used_types): Use it.
3269 * df-scan.c (df_sort_and_compress_refs): Likewise.
3270 (df_sort_and_compress_mws): Likewise.
3271 * genautomata.c (uniq_sort_alt_states): Likewise.
3272 (evaluate_equiv_classes): Likewise.
3273 (output_trans_table): Likewise.
3274 (output_state): Likewise.
3275 * gimplify.c (compare_case_labels): Likewise.
3276 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
3277 * ipa.c (build_cdtor_fns): Likewise.
3278 * lto.c (lto_wpa_write_files): Likewise.
3279 * sel-sched.c (fill_vec_av_set): Likewise.
3280 * tree-predcom.c (determine_roots_comp): Likewise.
3281 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
3282 (splice_param_accesses): Likewise.
3283 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
3284 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
3285 (reassociate_bb): Likewise.
3286 * tree-ssa-sccvn.c (sort_scc): Likewise.
3287 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
3289 2010-10-11 Ian Lance Taylor <iant@google.com>
3291 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
3292 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
3293 TREE_THIS_NOTRAP when appropriate.
3294 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
3295 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
3296 newly created MEM_REF.
3298 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
3300 Nathan Froyds patch to hooks FUNCTION_ARG etc.
3301 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
3302 (picochip_incoming_function_arg): Delete.
3303 (picochip_arg_advance): Delete.
3304 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
3305 (FUNCTION_INCOMING_ARG): Delete.
3306 (FUNCTION_ARG_ADVANCE): Delete.
3307 * config/picochip/picochip.c (picochip_function_arg): Take a
3308 const_tree and a bool.
3309 (picochip_incoming_function_arg): Likewise.
3310 (picochip_arg_advance): Likewise.
3311 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3312 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3314 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3317 * ipa.c (build_cdtor): Delete endless loop.
3319 2010-10-07 Andi Kleen <ak@linux.intel.com>
3321 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
3323 (checksum-options): Add.
3324 (cc1-dummy): Remove.
3325 (cc1-checksum): Change to run checksum over object files
3327 * dummy-checksum.c: Remove.
3328 * genchecksum.c: Update copyright.
3329 (usage): Allow multiple arguments.
3331 (dosum): Change for incremental checksum. Remove C output.
3332 (main): Iterate over all argument files. Add C output.
3334 2010-10-11 Joseph Myers <joseph@codesourcery.com>
3336 * params.c (set_param_value_internal): New.
3337 (set_param_value): Use set_param_value_internal.
3338 (maybe_set_param_value, set_default_param_value): New.
3339 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
3340 (maybe_set_param_value, set_default_param_value): Declare.
3341 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
3342 * config/i386/i386.c (ix86_option_override_internal): Use
3343 maybe_set_param_value.
3344 * config/ia64/ia64.c (ia64_option_default_params,
3345 TARGET_OPTION_DEFAULT_PARAMS): New.
3346 (ia64_option_optimization): Move some code to
3347 ia64_option_default_params.
3348 * config/picochip/picochip.c (picochip_option_override): Use
3349 maybe_set_param_value.
3350 * config/rs6000/rs6000.c (rs6000_option_default_params,
3351 TARGET_OPTION_DEFAULT_PARAMS): New.
3352 (rs6000_option_override_internal): Use maybe_set_param_value.
3353 (rs6000_option_optimization): Move some code to
3354 rs6000_option_default_params.
3355 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
3356 * config/sh/sh.c (sh_option_default_params,
3357 TARGET_OPTION_DEFAULT_PARAMS): New.
3358 (sh_option_optimization): Move some code to sh_option_default_params.
3359 * config/sparc/sparc.c (sparc_option_override): Use
3360 maybe_set_param_value.
3361 * config/spu/spu.c (spu_option_default_params,
3362 TARGET_OPTION_DEFAULT_PARAMS): New.
3363 (spu_option_optimization): Move some code to spu_option_default_params.
3364 (spu_option_override): Use maybe_set_param_value.
3365 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
3366 * doc/tm.texi: Regenerate.
3367 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
3368 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
3370 (default_options_optimization): Use maybe_set_param_value.
3371 (finish_options): Use maybe_set_param_value.
3372 * target.def (target_option.default_params): New hook.
3373 * toplev.c (general_init): Call targetm.target_option.default_params.
3375 2010-10-11 Ira Rosen <irar@il.ibm.com>
3377 PR tree-optimization/45902
3378 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
3379 vector type for constants, unless it's a pointer.
3381 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3383 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
3385 2010-10-11 Jakub Jelinek <jakub@redhat.com>
3388 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
3389 (ix86_delegitimize_address): Use it.
3391 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
3393 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
3395 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
3397 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
3398 to cum struct in the call to function_arg_advance.
3399 (alpha_function_arg_advance): Mark named as unused.
3401 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
3403 * config/mips/mips.c (mips_handle_option): Make "value" with
3406 2010-10-09 Richard Henderson <rth@redhat.com>
3409 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
3410 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
3411 required_align, tidy the code a bit. Emit split_stack code in the
3412 right place. Mark the return value with the alignment properly.
3413 * expr.h (allocate_dynamic_stack_space): Update decl.
3414 * builtins.c (expand_builtin_apply): Update call to
3415 allocate_dynamic_stack_space.
3416 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
3417 * calls.c (initialize_argument_information): Update call to
3418 allocate_dynamic_stack_space.
3419 (expand_call): Likewise.
3421 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
3422 Don't update_stack_alignment here.
3423 (alloc_stack_frame_space): Make ALIGN unsigned.
3424 (stack_var_cmp): Sort by alignment too.
3425 (partition_stack_vars): Don't merge large and small alignment vars.
3426 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
3427 Take care when BASE is not virtual_stack_vars_rtx.
3428 (expand_stack_vars): Allocate dynamic stack space for large
3429 alignment variables.
3430 (expand_one_stack_var): Update all to expand_one_stack_var_at.
3431 (defer_stack_allocation): True for large alignment vars.
3432 (update_stack_alignment): Merge into ...
3433 (expand_one_var): ... here.
3434 (gimple_expand_cfg): Place code from expand_stack_vars.
3436 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3438 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3439 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
3440 (pdp11_function_arg_advance): New function.
3441 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3443 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3445 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
3446 * libgcc2.c: Likewise.
3448 2010-10-09 Richard Guenther <rguenther@suse.de>
3451 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
3452 Properly check if a decl is an automatic var.
3454 2010-10-09 Richard Guenther <rguenther@suse.de>
3457 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
3459 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3461 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
3462 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3463 * config/mmix/mmix.c (mmix_function_arg): Rename to...
3464 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
3466 (mmix_function_arg): New function.
3467 (mmix_function_incoming_arg): New function.
3468 (mmix_function_arg_advance): New function.
3469 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3470 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3472 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3474 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3475 * config/vax/vax.c (vax_function_arg): New function.
3476 (vax_function_arg_advance): New function.
3477 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3479 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3481 * config/pa/pa-protos.h (function_arg): Delete.
3482 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3483 * config/pa/pa.c (function_arg): Rename to...
3484 (pa_function_arg): ...this. Make static. Take a const_tree and
3486 (pa_function_arg_advance): New function.
3487 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3489 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3491 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3492 * config/m68k/m68k.c (m68k_function_arg): New function.
3493 (m68k_function_arg_advance): New function.
3494 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3496 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3498 * config/avr/avr-protos.h (function_arg): Delete.
3499 (function_arg_advance): Delete.
3500 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3501 * config/avr/avr.c (function_arg): Rename to...
3502 (avr_function_arg): ...this. Make static. Take a const_tree and
3504 (function_arg_advance): Rename to...
3505 (avr_function_arg_advance): ...this. Make static. Take a
3506 const_tree and a bool.
3507 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3509 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3511 * config/alpha/alpha-protos.h (function_arg): Delete.
3512 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3513 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
3514 * config/alpha/alpha.c (function_arg): Rename to...
3515 (alpha_function_arg): ...this. Make static. Take a const_tree and
3516 a bool. Delete TARGET_ABI_UNICOSMK code.
3517 (alpha_function_arg_advance): New function.
3518 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3520 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3522 * config/mep/mep-protos.h (mep_function_arg): Delete.
3523 (mep_function_arg_advance): Delete.
3524 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3525 * config/mep/mep.c (mep_function_arg): Make static. Take a
3526 const_tree and a bool.
3527 (mep_function_arg_advance): Likewise.
3528 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3530 2010-10-09 Richard Guenther <rguenther@suse.de>
3532 PR tree-optimization/45945
3533 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
3535 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
3537 PR tree-optimization/45612
3538 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
3539 Test LABEL_DECLs as well. Fix formatting issues.
3540 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
3541 whose label is present in NON_SSA_VARS.
3542 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
3543 as well. Fix formatting issues.
3544 (visit_bb): Fix typos and formatting issue.
3546 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3548 PR tree-optimization/45950
3549 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
3550 before initializing vno->op.
3552 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
3554 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
3555 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
3557 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
3560 * config/i386/i386.c (ix86_binary_operator_ok): Support
3561 "andhi/andsi/anddi" as a zero-extending move.
3563 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3565 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
3566 into a temporary array.
3568 2010-10-08 Jakub Jelinek <jakub@redhat.com>
3570 PR tree-optimization/45903
3571 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
3572 of {A,L}SHIFTRT of MEM.
3574 2010-10-08 Richard Guenther <rguenther@suse.de>
3576 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
3577 Re-construct BLOCK_VARS.
3578 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
3579 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
3580 * tree.c (free_lang_data_in_block): Remove.
3581 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
3582 Do not touch the BLOCK tree.
3583 * expr.c (expand_expr_real_1): Allow externals.
3585 2010-10-08 Richard Guenther <rguenther@suse.de>
3587 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
3588 Do not output BLOCK_SUBBLOCKS.
3589 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
3590 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
3591 Re-construct BLOCK_SUBBLOCKS of parent block.
3592 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
3593 for BINFO_BASE_ACCESSES.
3595 2010-10-08 Joseph Myers <joseph@codesourcery.com>
3597 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
3598 (TREE_H): Include $(FLAGS_H) instead of options.h.
3599 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
3600 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
3601 * common.opt (flag_complex_method, flag_evaluation_order,
3602 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
3603 Variable declarations.
3604 * configure.ac (tm_include_list): Include flags.h instead of options.h.
3605 * configure: Regenerate.
3606 * flags.h: Condition out contents for target libraries. Include
3607 options.h at end of file.
3608 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
3609 flag_evaluation_order, flag_warn_unused_result): Remove.
3610 * gcc.c (main): Intialize global_options with global_options_init.
3611 * langhooks-def.h (lhd_init_options_struct): Declare.
3612 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
3613 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
3614 * langhooks.c (lhd_init_options_struct): New.
3615 * langhooks.h (struct lang_hooks): Add init_options_struct.
3616 Update comment on init_options.
3617 * optc-gen.awk: Generate initializer for global_options_init, not
3619 * opth-gen.awk: Condition out structure declarations for target
3620 libraries. Declare global_options_init.
3621 * opts-common.c: Include flags.h instead of options.h.
3622 * opts.c (flag_warn_unused_result): Remove.
3623 (read_cmdline_options): Take gcc_options parameters. Pass them to
3624 read_cmdline_option.
3625 (initial_lang_mask, initial_min_crossjump_insns,
3626 initial_max_fields_for_field_sensitive,
3627 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
3628 (init_options_once): New. Split out of decode_options.
3629 (init_options_struct): New. Split out of decode_options.
3630 (decode_cmdline_options_to_array_default_mask): New.
3631 (default_options_optimization): New. Split out of decode_options.
3632 (decode_options): Move most code to other functions. Update call
3633 to read_cmdline_options.
3634 (finish_options): New. Split out of decode_options.
3635 * opts.h (decode_options): Add gcc_options parameters.
3636 (init_options_once, init_options_struct,
3637 decode_cmdline_options_to_array_default_mask): New.
3638 * toplev.c (flag_complex_method, flag_ira_algorithm,
3639 flag_ira_region, flag_evaluation_order): Remove.
3640 (general_init): Use global_options_init for initial flag values
3642 (toplev_main): Call init_options_once, init_options_struct,
3643 lang_hooks.init_options_struct,
3644 decode_cmdline_options_to_array_default_mask and
3645 lang_hooks.init_option before decode_options. Update arguments to
3647 * tree.h: Include flags.h instead of options.h.
3649 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3651 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3653 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3655 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
3657 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
3658 (FUNCTION_INCOMING_ARG): Delete.
3659 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
3660 (function_arg_slotno): Likewise. Take bool arguments.
3661 (sparc_arg_partial_bytes): Update call to it.
3662 (function_arg): Rename to...
3663 (sparc_function_arg_1): ...this. Take bool arguments.
3664 (sparc_function_arg, sparc_function_incoming_arg): New functions.
3665 (function_arg_advance): Rename to...
3666 (sparc_function_arg_advance): ...this. Take bool argument.
3667 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
3668 (TARGET_FUNCTION_INCOMING_ARG): Define.
3670 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3672 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
3674 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3675 * config/bfin/bfin.c (function_arg_advance): Rename to...
3676 (bfin_function_arg_advance): ...this. Make static. Take const_tree
3678 (function_arg): Rename to...
3679 (bfin_function_arg): ...this. Make static. Take const_tree and bool
3681 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3683 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3685 * config/score/score-protos.h (score_function_arg): Delete.
3686 (score_function_arg_advance): Delete.
3687 * config/score/score3.h (score3_function_arg_advance): Take a
3688 const_tree and a bool.
3689 (score3_function_arg): Likewise.
3690 * config/score/score7.h (score7_function_arg_advance): Likewise.
3691 (score7_function_arg): Likewise.
3692 * config/score/score3.c (score3_classify_arg): Likewise.
3693 (score3_function_arg_advance, score3_function_arg): Likewise.
3694 * config/score/score7.c (score7_classify_arg): Likewise.
3695 (score7_function_arg_advance, score7_function_arg): Likewise.
3696 * config/score/score.c (score_function_arg_advance): Likewise.
3697 (score_function_arg): Likewise. De-const-ify `cum' argument.
3698 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3700 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3702 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
3703 (s390_function_arg): Delete.
3704 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3705 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
3706 (s390_function_arg_integer): Likewise.
3707 (s390_function_arg_advance): Make static. Take a const_tree and
3709 (s390_function_arg): Likewise.
3710 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3712 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3714 * config/spu/spu-protos.h (spu_function_arg): Delete.
3715 * config/spu/spu.h (FUNCTION_ARG): Delete.
3716 (FUNCTION_ARG_ADVANCE): Move code to ...
3717 * config/spu/spu.c (spu_function_arg_advance): New function.
3718 (spu_function_arg): Make static. Take a const_tree and a bool.
3719 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
3720 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3722 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3724 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3726 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3728 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
3729 (init_vn_nary_op_from_op): New function.
3730 (init_vn_nary_op_from_stmt): New function.
3731 (vn_nary_op_lookup_1): New function.
3732 (sizeof_vn_nary_op): New function.
3733 (alloc_vn_nary_op_noinit): New function.
3734 (alloc_vn_nary_op): New function.
3735 (vn_nary_op_insert_into): New function.
3736 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
3737 (vn_nary_op_lookup): Likewise.
3738 (vn_nary_op_lookup_stmt): Likewise.
3739 (vn_nary_op_insert_pieces): Likewise.
3740 (vn_nary_op_insert): Likewise.
3741 (vn_nary_op_insert_stmt): Likewise.
3742 (copy_nary): Likewise.
3743 (set_value_id_for_result): New function.
3744 (set_hashtable_value_ids): Call it.
3746 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3748 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3749 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
3751 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3753 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
3754 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3756 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
3759 * cse.c (cse_extended_basic_block): Preserve cc0 info across
3760 debug isnsn. Skip them when searching for cc0 setter.
3761 (set_live_p): Skip debug insns when searching for cc0 user.
3763 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
3769 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
3770 type of MEM_REFs to INTEGER_CSTs.
3772 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
3774 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
3775 m68hc11_print_operand_address.
3777 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
3779 * builtins.c (rewrite_call_expr): Move code to...
3780 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
3781 (rewrite_call_expr_array): New function.
3782 (fold_builtin_sprintf_chk_1): New function.
3783 (fold_builtin_sprintf_chk): Call it.
3784 (gimple_fold_builtin_sprintf_chk): Likewise.
3785 (fold_builtin_snprintf_chk_1): New function.
3786 (fold_builtin_snprintf_chk): Call it.
3787 (gimple_fold_builtin_snprintf_chk): Likewise.
3788 (gimple_rewrite_call_expr): Delete.
3790 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
3792 * config.host: Update copyright year.
3794 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
3796 * config.host (host_lto_plugin_soname): New shell variable.
3797 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
3798 * config.in: Regenerate.
3799 * configure: Regenerate.
3800 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
3801 LTO plugin shared library.
3803 2010-10-07 Richard Henderson <rth@redhat.com>
3805 * target.h (enum unwind_info_type): Move ...
3806 * coretypes.h: ... here.
3808 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
3810 * doc/objc.texi (Fast enumeration protocol): Mention that
3811 'unsigned int' can also be used instead of 'unsigned long' in
3812 countByEnumeratingWithState:objects:count:.
3814 2010-10-07 Martin Jambor <mjambor@suse.cz>
3816 * tree-sra.c (struct access): New field grp_assignment_write.
3817 (dump_access): Dump grp_assignment_write.
3818 (build_accesses_from_assign): Set grp_assignment_write.
3819 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
3820 (mark_read_status): Renamed to mark_rw_status, individual values
3822 (analyze_access_subtree): Changed type of mark_write to
3823 mark_read_status. Fixed propagating of mark_read and
3824 mark_write. Changed benefit estimate. Updated comment.
3826 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
3829 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
3830 check for vectype_out returned by get_vectype_for_scalar_type().
3832 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
3835 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
3836 constraint, add register specifier in instruction template.
3837 (neon_vec_pack_trunc_<mode>): Likewise.
3838 (neon_vec_<US>mult_<mode>): Add register specifier to
3839 instruction template.
3841 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
3843 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
3845 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
3846 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
3847 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
3848 (cygwin2.o): Likewise.
3849 * config/i386/cygwin1.c: Delete file.
3850 * config/i386/cygwin2.c: Likewise.
3851 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
3852 make all {%!mno-cygwin} ones unconditional.
3853 (STARTFILE_SPEC): Likewise.
3854 (REAL_LIBGCC_SPEC): Likewise.
3855 (LIB_SPEC): Likewise.
3856 (CXX_WRAP_SPEC): Likewise.
3857 (LINK_SPEC): Likewise.
3858 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
3859 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
3860 (cygwin_gplusplus_include_dir): Delete now-unused array.
3861 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
3862 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
3863 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
3864 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
3865 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
3866 (cygwin_local_include_dir): Delete now-unused array.
3867 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
3868 (cygwin_cross_include_dir): Delete now-unused array.
3869 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
3870 (cygwin_tool_include_dir): Delete now-unused array.
3871 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
3872 (cygwin_standard_include_dir): Delete now-unused array.
3873 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
3874 (GEN_CVT_ARRAY): Delete now-unused macro definition.
3875 (cvt_to_mingw): Delete now-unused array.
3876 (mingw_scan): Remove prototype of deleted function.
3877 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
3878 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
3879 * doc/invoke.texi (-mcygwin): Don't document removed option.
3880 (-mno-cygwin): Likewise.
3882 2010-10-07 Richard Guenther <rguenther@suse.de>
3884 * machmode.h (mode_for_vector): Declare.
3885 * stor-layout.c (mode_for_vector): New function, split out from ...
3886 (layout_type): ... here.
3887 * tree-vectorizer.h (current_vector_size): Declare.
3888 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
3889 mask vector type is available.
3890 (get_vectype_for_scalar_type): Rename to ...
3891 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
3893 (get_vectype_for_scalar_type): New wrapper around
3894 get_vectype_for_scalar_type_and_size using current_vector_size.
3895 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
3896 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
3897 of vect_analyze_loop here.
3898 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
3899 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
3901 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
3902 V8SF to V8SI conversion builtin.
3904 2010-10-07 Richard Guenther <rguenther@suse.de>
3906 * target.def (autovectorize_vector_sizes): New target hook.
3907 * targhooks.c (default_autovectorize_vector_sizes): New function.
3908 * targhooks.h (default_autovectorize_vector_sizes): Declare.
3909 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3911 * doc/tm.texi: Update.
3912 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
3913 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
3915 2010-10-07 Richard Guenther <rguenther@suse.de>
3917 * target.def (units_per_simd_word): Rename to ...
3918 (preferred_simd_mode): ... this. Return mode instead of size.
3919 * targhooks.c (default_units_per_simd_word): Rename to ...
3920 (default_preferred_simd_mode): ... this. Return word_mode.
3921 * targhooks.h (default_preferred_simd_mode): Declare.
3922 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
3923 (arm_preferred_simd_mode): ... this. Re-implement.
3924 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
3925 (ix86_preferred_simd_mode): ... this. Re-implement.
3926 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
3927 (sparc_preferred_simd_mode): ... this. Re-implement.
3928 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
3929 (mips_preferred_simd_mode): ... this. Re-implement.
3930 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
3931 (rs6000_preferred_simd_mode): ... this. Re-implement.
3932 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
3933 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
3934 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
3935 * doc/tm.texi: Update.
3937 2010-10-07 Richard Guenther <rguenther@suse.de>
3940 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
3943 2010-10-07 Alan Modra <amodra@gmail.com>
3945 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
3946 rather than sign extension by hand.
3948 2010-10-07 Jan Hubicka <jh@suse.cz>
3951 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
3953 2010-10-07 Richard Guenther <rguenther@suse.de>
3956 * configure.ac: Fix typo.
3957 * configure: Regenerated.
3959 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3961 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
3962 define_builtin_std where it's unnecessary.
3963 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
3965 2010-10-06 Anatoly Sokolov <aesok@post.ru>
3967 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
3968 * doc/tm.texi.in: Regenerate.
3969 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
3970 * targhooks.c (default_class_likely_spilled_p): Don't use the
3971 CLASS_LIKELY_SPILLED_P macro.
3973 * config/arm/arm.md: Update comment.
3975 2010-10-06 Jan Hubicka <jh@suse.cz>
3977 * ipa.c (cgraph_remove_unreachable_nodes): External references can
3979 (cgraph_externally_visible_p): We can not bring local comdats that
3980 are known to linker; fix handling of internal visibility.
3981 (function_and_variable_visibility): Likewise.
3983 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
3985 PR rtl-optimization/45394
3986 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
3987 (struct rtx_subst_pair): Remove AFTER field.
3988 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
3989 (propagate_for_debug): Remove MOVE parameter and adjust.
3990 (try_combine): In the special case where I2 is a PARALLEL, combine only
3991 destinations of SETs and set I2SRC to the I2 source.
3992 Adjust calls to propagate_for_debug throughout.
3993 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
3996 2010-10-06 Olivier Hainque <hainque@adacore.com>
3998 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
3999 switch on insn codes as sequence of ifs.
4001 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
4003 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
4004 be UI_NONE for picochip.
4005 (picochip_option_override): Do not disable exception flags.
4006 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
4009 2010-10-06 Richard Guenther <rguenther@suse.de>
4011 * Makefile.in (regmove.o): Depend on $(TARGET_H).
4013 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4015 Implemented fast enumeration for Objective-C.
4016 * c-parser.c (objc_could_be_foreach_context): New.
4017 (c_lex_one_token): Recognize RID_IN keyword in a potential
4018 Objective-C foreach context.
4019 (c_parser_declaration_or_fndef): Added parameter. Accept
4020 Objective-C RID_IN keyword as terminating a declaration; in that
4021 case, return the declaration in the new parameter.
4022 (c_parser_extenral_declaration): Updated calls to
4023 c_parser_declaration_or_fndef.
4024 (c_parser_declaration_or_fndef): Same change.
4025 (c_parser_compound_statement_nostart): Same change.
4026 (c_parser_label): Same change.
4027 (c_parser_objc_methodprotolist): Same change.
4028 (c_parser_omp_for_loop): Same change.
4029 (c_parser_for_statement): Detect and parse Objective-C foreach
4031 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
4032 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
4033 fast enumeration parsing code to turn off the c99 error but still
4034 perform checks on the loop declarations.
4035 * c-tree.h (check_for_loop_decls): Updated declaration.
4036 * doc/objc.texi: Document fast enumeration.
4038 2010-10-06 Nick Clifton <nickc@redhat.com>
4040 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
4041 (MDR_REGNUM): Define.
4042 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
4043 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
4044 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
4045 (REGISTER_NAMES): Add MDR.
4046 (DWARF2_DEBUGGING_INFO): Define to 1.
4047 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4048 (F): New function. Sets RTX_FRAME_RELATED_P.
4049 (mn10300_gen_multiple_store): Use F.
4050 (expand_prologue): Use F. Use gen_movsf() to push floating
4052 (expand_epilogue): Use gen_movsf() to pop floating point registers.
4053 (mn10300_option_override): Disable combine stack adjust pass.
4055 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
4058 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
4059 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
4061 2010-10-06 Jakub Jelinek <jakub@redhat.com>
4063 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
4064 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
4065 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
4066 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
4067 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
4068 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
4069 BUILT_IN_TOUPPER): Mark as leaf.
4072 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
4073 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
4074 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
4075 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
4076 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
4077 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
4078 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
4080 2010-10-05 Anatoly Sokolov <aesok@post.ru>
4082 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
4083 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4084 (m68hc11_class_likely_spilled_p): New function.
4086 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
4088 * c-parser.c (c_parser_objc_method_definition): Updated comment.
4090 2010-10-05 Jan Hubicka <jh@suse.cz>
4092 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
4094 * opts.c (decode_options): Handle lto partitions.
4095 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
4096 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
4098 2010-10-05 Jan Hubicka <jh@suse.cz>
4100 * cgraphunit.c (assemble_function): Output thunks and aliases before
4101 the function itself.
4103 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
4105 * config/picochip/picochip.c (picochip_option_override): Disable
4106 exception flags for picochip.
4108 2010-10-05 Joseph Myers <joseph@codesourcery.com>
4110 * opts-common.c (handle_option, handle_generated_option,
4111 read_cmdline_option, set_option): Add diagnostic_context
4112 parameter. Update calls among these functions.
4113 (set_option): Don't use global_dc.
4114 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
4115 (decode_options): Pass global_dc to enable_warning_as_error.
4116 (common_handle_option): Pass global_dc to enable_warning_as_error.
4117 (enable_warning_as_error): Add diagnostic_context parameter.
4118 Document parameters. Don't use global_dc. Pass
4119 diagnostic_context parameter to handle_generated_option.
4120 * opts.h (set_option, handle_option, handle_generated_option,
4121 read_cmdline_option, enable_warning_as_error): Add
4122 diagnostic_context parameter.
4123 * Makefile.in (lto-opts.o): Update dependencies.
4124 * coretypes.h (struct diagnostic_context, diagnostic_context):
4126 * diagnostic.h (diagnostic_context): Don't declare typedef here.
4127 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
4128 * langhooks-def.h (struct diagnostic_context): Don't declare here.
4129 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
4130 using diagnostic_context typedef.
4131 * langhooks.c (lhd_initialize_diagnostics): Declare using
4132 diagnostic_context typedef.
4133 * langhooks.h (struct diagnostic_context): Don't declare here.
4134 (initialize_diagnostics, print_error_function): Declare using
4135 diagnostic_context typedef.
4136 * lto-opts.c: Include diagnostic.h.
4137 (lto_reissue_options): Pass global_dc to set_option. Pass
4138 DK_UNSPECIFIED not 0.
4139 * plugin.c (plugins_internal_error_function): Declare using
4140 diagnostic_context typedef.
4141 * plugin.h (struct diagnostic_context): Don't declare here.
4142 (plugins_internal_error_function): Declare using
4143 diagnostic_context typedef.
4145 2010-10-05 Olivier Hainque <hainque@adacore.com>
4146 Nicolas Roche <roche@adacore.com>
4148 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
4149 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
4151 2010-10-05 Ira Rosen <irar@il.ibm.com>
4153 PR tree-optimization/45752
4154 * tree-vect-slp.c (vect_get_mask_element): Remove static
4155 variables, make them function arguments.
4156 (vect_transform_slp_perm_load): Pass new arguments to
4157 vect_get_mask_element.
4159 2010-10-05 Richard Guenther <rguenther@suse.de>
4161 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
4162 (gimple_mod_pow2): Likewise.
4163 (gimple_mod_subtract): Likewise.
4164 (gimple_ic): Likewise.
4165 (gimple_stringop_fixed_value): Likewise.
4166 * tree-profile.c (tree_init_edge_profiler): Mark profile
4167 functions nothrow and leaf.
4168 (add_abnormal_goto_call_edges): Remove.
4169 (tree_gen_edge_profiler): Work on SSA form.
4170 (tree_gen_ic_profiler): Likewise. Simplify.
4171 (do_tree_profiling): Update SSA form.
4172 (pass_tree_profile): Remove.
4173 (do_tree_profiling): Likewise.
4174 (gate_tree_profile_ipa): New function.
4175 (pass_ipa_tree_profile): New.
4176 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
4177 state of instrumented functions.
4178 * passes.c (init_optimization_passes): Remove early non-SSA
4179 inlining. Move profiling after early optimizations.
4180 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
4181 (pass_ipa_early_inline): Likewise.
4182 * tree-pass.h (pass_ipa_early_inline): Remove.
4183 (pass_tree_profile): Likewise.
4184 (pass_ipa_tree_profile): Declare.
4186 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4187 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
4189 * gcc/config/s390/s390.c (z196_cost): New.
4190 (s390_handle_arch_option): Add -march=z196.
4191 (s390_option_override): Use the new cost function and use the z10
4192 defaults also for z196.
4193 (legitimate_reload_constant_p): Adjust comment.
4194 (legitimate_reload_fp_constant_p): New function.
4195 (s390_preferred_reload_class): Distingiush between FP and Int constants.
4196 (preferred_la_operand_p): Avoid la with index on z196.
4197 (s390_adjust_priority): Trigger also for z196.
4198 (s390_issue_rate): Issue rate for z196 is 3.
4199 (s390_z10_fix_long_loop_prediction): Rename to ...
4200 (s390_fix_long_loop_prediction): ... this.
4201 (s390_reorg): Apply the z10 adjustments also for z196.
4202 (s390_loop_unroll_adjust): Do this also for z196.
4203 * gcc/config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
4204 (enum processor_flags): Add PF_Z196.
4205 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
4206 (TARGET_CPU_Z196, TARGET_Z196): New macros.
4207 * gcc/config.gcc: Enable z196 for --with-arch.
4208 * gcc/config/s390/2817.md: New file.
4209 * gcc/config/s390/2084.md: New type for multiply and add.
4210 * gcc/config/s390/2097.md: Likewise.
4211 * gcc/config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
4212 (UNSPECV_ATOMIC_OP): New constants.
4213 (fmadddf, fmaddsf): New values for type attribute.
4214 (z196prop): New insn attribute.
4215 (cpu, cpu_facility): Add z196.
4216 (ATOMIC_Z196): New code iterator.
4217 (noxa): New code attribute.
4218 (gk): New mode attribute.
4219 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
4220 Support load zero for fp constants.
4221 (fixuns_truncdddi2, fixuns_trunctddi2)
4222 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
4224 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
4225 (popcounthi2, popcountqi2): New expander.
4226 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
4227 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
4228 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
4230 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
4231 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
4232 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
4233 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
4234 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
4235 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
4236 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
4237 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
4238 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
4239 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
4240 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
4241 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
4242 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
4243 Support new z196 instructions.
4245 2010-10-05 Richard Guenther <rguenther@suse.de>
4248 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
4249 case where gimplification optimizes away the stmt.
4251 2010-10-04 Jakub Jelinek <jakub@redhat.com>
4254 * var-tracking.c (strip_pointer_flags): New function.
4255 (emit_note_insn_var_location): If rtx_equal_p check failed,
4256 retry on locations simplified with simplify_replace_fn_rtx
4257 and strip_pointer_flags as its callback.
4259 2010-10-04 Jan Hubicka <jh@suse.cz>
4261 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
4262 (can_refer_decl_in_current_unit_p): ... this one; reverse return
4263 value; handle comdats too.
4264 (canonicalize_constructor_val): Use it; handle function_decls
4266 (gimple_fold_obj_type_ref_known_binfo): Likewise.
4267 * gimple.c (get_base_address): Accept all kinds of decls.
4269 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4271 * flags.h (g_switch_value, g_switch_set): Remove.
4272 * opts.c (g_switch_value, g_switch_set): Remove.
4273 * config/g.opt (G): Add Var(g_switch_value).
4274 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
4275 (alpha_option_override): Check global_options_set.x_g_switch_value
4276 instead of g_switch_set.
4277 (alpha_in_small_data_p): Remove cast in comparison with
4279 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
4280 g_switch_value to unsigned HOST_WIDE_INT.
4281 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
4282 with g_switch_value.
4283 (frv_handle_option): Don't handle -G here.
4284 (frv_option_override): Check global_options_set.x_g_switch_value
4285 instead of g_switch_set. Don't modify g_switch_set.
4286 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
4287 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
4288 g_switch_value to unsigned HOST_WIDE_INT.
4289 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
4290 (ia64_option_override): Check global_options_set.x_g_switch_value
4291 instead of g_switch_set.
4292 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
4294 (lm32_in_small_data_p): Remove cast in comparison with
4296 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
4297 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
4299 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
4300 (m32r_init): Check global_options_set.x_g_switch_value instead of
4302 (m32r_in_small_data_p): Remove cast in comparison with
4304 (m32r_file_start): Format g_switch_value with %d.
4305 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
4306 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
4307 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
4309 (microblaze_option_override): Check
4310 global_options_set.x_g_switch_value instead of g_switch_set.
4311 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
4312 (mips_option_override): Check global_options_set.x_g_switch_value
4313 instead of g_switch_set.
4314 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
4315 (rs6000_file_start): Format g_switch_value with %d.
4316 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
4317 comparisons with g_switch_value.
4318 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
4319 global_options_set.x_g_switch_value instead of g_switch_set.
4320 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4321 global_options_set.x_g_switch_value instead of g_switch_set.
4322 * config/score/score.c (score_handle_option): Don't handle -G here.
4323 * config/score/score3.c (score3_option_override): Check
4324 global_options_set.x_g_switch_value instead of g_switch_set.
4325 * config/score/score7.c (score7_option_override): Check
4326 global_options_set.x_g_switch_value instead of g_switch_set.
4328 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
4330 * common.opt (fira-coalesce): Remove.
4332 * doc/invoke.texi (flag_ira_coalesce): Remove.
4334 * ira-color.c (allocno_coalesced_p): Move before
4335 copy_freq_compare_func.
4336 processed_coalesced_allocno_bitmap): Ditto.
4337 (update_conflict_hard_regno_costs): Don't use
4338 ALLOCNO_FIRST_COALESCED_ALLOCNO.
4339 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
4340 (assign_hard_reg): Assume no coalesced allocnos.
4341 (get_coalesced_allocnos_attributes): Remove.
4342 (bucket_allocno_compare_func): Assume no coalesced allocnos.
4343 (push_allocno_to_stack): Ditto.
4344 (remove_allocno_from_bucket_and_push): Use
4345 ira_print_expanded_allocno instead of print_coalesced_allocno.
4346 (push_allocnos_to_stack): Assume uncoalesced allocnos.
4347 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
4348 all_conflicting_hard_regs.
4349 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
4350 (setup_allocno_left_conflicts_size): Ditto.
4351 (put_allocno_into_bucket): Ditto.
4352 (copy_freq_compare_func): Remove.
4353 (copy_freq_compare_func, merge_allocnos): Move before
4354 coalesced_pseudo_reg_freq_compare.
4355 coalesced_allocno_conflict_p): Ditto.
4356 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
4357 parameter. Assume it true.
4358 (color_allocnos): Assume uncoalesced allocnos. Use
4359 ira_print_expanded_allocno instead of print_coalesced_allocno.
4360 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
4363 * ira.c: Remove comment about coalescing.
4365 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4367 * config/mips/mips.h (target_flags_explicit): Declare for
4370 2010-10-04 Andi Kleen <ak@linux.intel.com>
4372 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
4373 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
4375 2010-10-04 Matthias Klose <doko@ubuntu.com>
4377 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
4378 multilib osdirname if it exists.
4379 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
4381 2010-10-04 Jakub Jelinek <jakub@redhat.com>
4384 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
4385 arg0's type or its unsigned counterpart as utype. Convert
4386 arg1 to utype unconditionally.
4388 2010-10-04 Julian Brown <julian@codesourcery.com>
4390 * expr.c (expand_assignment): Add assertion to prevent emitting
4391 null rtx for movmisalign pattern.
4392 (expand_expr_real_1): Likewise.
4393 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
4394 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
4395 (arm_vector_alignment_reachable): New.
4396 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
4397 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
4398 (arm_print_operand): Include alignment qualifier in %A.
4399 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
4400 (movmisalign<mode>): New expander.
4401 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
4404 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4406 * optc-gen.awk: Define global_options_set. Don't define
4407 target_flags_explicit.
4408 * opth-gen.awk: Declare global_options_set. Define
4409 target_flags_explicit as macro.
4410 * opts-common.c (handle_option): Take opts_set and generated_p
4412 (handle_generated_option, read_cmdline_option, set_option): Take
4414 (set_option): Use opts_set instead of hardcoding target_flags and
4415 target_flags_explicit.
4416 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
4417 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
4418 flag_value_profile_transformations_set, flag_peel_loops_set,
4419 flag_branch_probabilities_set, flag_inline_functions_set,
4420 flag_ipa_cp_set, flag_ipa_cp_clone_set,
4421 flag_predictive_commoning_set, flag_unswitch_loops_set,
4422 flag_gcse_after_reload_set): Remove.
4423 (common_handle_option, lang_handle_option, target_handle_option):
4424 Take opts_set parameter. Assert that it is &global_options_set.
4425 (common_handle_option): Don't set _set variables. Check opts_set
4426 instead of such variables.
4427 (enable_warning_as_error): Pass &global_options_set to
4428 handle_generated_option.
4429 * opts.h (cl_option_handler_func.handler, set_option,
4430 handle_option, handle_generated_option, read_cmdline_option): Add
4431 opts_set parameters.
4432 (handle_option): Add generated_p parameter.
4433 * config/i386/i386.c (ix86_function_specific_save,
4434 ix86_function_specific_restore): Updat for renaming of
4435 target_flags_explicit field.
4436 * config/i386/i386.opt (target_flags_explicit): Rename to
4437 ix86_target_flags_explicit.
4438 * config/ia64/ia64.c (ia64_override_options_after_change): Check
4439 global_options_set.x_flag_selective_scheduling and
4440 global_options_set.x_flag_selective_scheduling2, not
4441 sel_sched_switch_set.
4442 * flags.h (sel_sched_switch_set,
4443 flag_speculative_prefetching_set): Remove.
4444 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
4445 that it is &global_options_set.
4446 (process_command): Pass &global_options_set to read_cmdline_option.
4447 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
4449 * toplev.c (target_flags_explicit): Remove.
4451 2010-10-04 Jan Hubicka <jh@suse.cz>
4454 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
4455 use get_ref_base_and_offset to handle references.
4456 (fold_const_aggregate_ref): Update.
4458 2010-10-04 Martin Jambor <mjambor@suse.cz>
4460 PR tree-optimization/45572
4461 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
4462 ipa_check_create_node_params.
4463 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
4465 2010-10-04 Yao Qi <yao@codesourcery.com>
4467 * doc/passes.texi: Clean up.
4469 2010-10-03 Ian Lance Taylor <iant@google.com>
4471 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
4472 referring to a field using a typedef name.
4473 (find_anonymous_field_with_type): New static function.
4474 (convert_to_anonymous_field): New static function.
4475 (convert_for_assignment): If -fplan9-extensions, permit converting
4476 pointer to struct to pointer to anonymous field.
4477 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
4478 (is_duplicate_field): New static function.
4479 (detect_field_duplicates_hash): If -fplan9-extensions, check for
4480 typedef names duplicating field names.
4481 (detect_field_duplicates): Likewise.
4482 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
4483 (C Dialect Options): Document -fplan9-extensions.
4484 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
4486 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
4488 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
4490 (vect_create_data_ref_ptr): Likewise.
4491 * tree-vect-stmts.c (vectorizable_store): Likewise.
4492 (perm_mask_for_reverse): Likewise.
4493 (reverse_vec_elements): Likewise.
4494 (vectorizable_load): Likewise.
4496 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4498 * cppbuiltin.c: New file.
4499 * cppbuiltin.h: New file.
4500 * Makefile.in: Take into account cppbuiltin.{h,c}.
4502 2010-10-03 Andi Kleen <ak@linux.intel.com>
4504 * lto-cgraph.c (input_cgraph): Check for missing sections.
4506 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
4508 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
4509 to nonimmediate_operand. Force operand 2 to register when allowed.
4510 (*<shiftrt_insn><mode>3_mask): Ditto.
4511 (*<rotate_insn><mode>3_mask): Ditto.
4513 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
4515 PR tree-optimization/45720
4516 PR tree-optimization/45764
4517 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
4518 Don't accept backwards consecutive accesses.
4519 (vect_create_data_ref_ptr): Disallow negative steps.
4521 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
4522 (perm_mask_for_reverse): Removed.
4523 (reverse_vec_elements): Likewise.
4524 (vectorizable_load): Don't handle negative steps.
4526 2010-10-02 Jan Hubicka <jh@suse.cz>
4528 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
4529 call destination is known.
4531 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4534 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
4537 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4539 * doc/install.texi (Configuration): Document build_configargs,
4540 host_configargs, target_configargs.
4542 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
4544 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
4545 (*<shiftrt_insn><mode>3_mask): Ditto.
4546 (*<rotate_insn><mode>3_mask): Ditto.
4548 2010-10-01 Steve Ellcey <sje@cup.hp.com>
4550 PR tree-optimization/44716
4551 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
4552 (HOT_TEXT_SECTION_NAME): Define.
4554 2010-10-01 Nick Clifton <nickc@redhat.com>
4556 * common.opt: Add -fcombine-stack-adjustments.
4557 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
4558 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
4559 flag_combine_stack_adjustments.
4560 * doc/invoke.texi: Document the new option.
4562 2010-10-01 Richard Guenther <rguenther@suse.de>
4564 PR tree-optimization/45854
4565 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
4567 2010-10-01 Anthony Green <green@moxielogic.com>
4569 * config.gcc: Fix moxie-*-rtems* configuration.
4571 2010-10-01 Richard Guenther <rguenther@suse.de>
4573 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
4574 (gen_decl_die): Likewise.
4576 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4578 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
4579 to the function code for SPU MD builtins.
4580 (spu_expand_builtin): Update.
4581 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
4583 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4585 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
4586 sjlj_except_unwind_info.
4588 2010-10-01 Tristan Gingold <gingold@adacore.com>
4590 * configure.ac: Define the nop insn for avr*-*-*
4591 * configure: Regenerate.
4593 2010-10-01 Alan Modra <amodra@gmail.com>
4596 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
4597 extend toc_restore_insn.
4599 2010-09-30 Richard Guenther <rguenther@suse.de>
4601 PR tree-optimization/43959
4602 * function.c (gimplify_parameters): Use create_tmp_reg instead of
4605 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
4607 * config/sh/sh.c (sh_expand_prologue): Set
4608 current_function_static_stack_size.
4610 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4612 * configure.ac: Check for Solaris 8 ld with .hidden support.
4613 * configure: Regenerate.
4615 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4618 * graphite.c (graphite_initialize): Call scev_reset.
4620 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4622 * sese.h (scev_analyzable_p): Return false for real or floating
4623 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
4625 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4627 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
4629 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
4631 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
4632 Do not allocate ub_expr, it is passed in initialized.
4634 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4636 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
4637 (build_cloog_prog): Dump CLooG input file when
4638 flag_graphite_dump_cloog is set. This is disabled on trunk.
4639 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
4641 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4643 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
4644 verify_dominators for CDI_POST_DOMINATORS.
4645 * sese.h: Remove comment about CDI_POST_DOMINATORS.
4646 (recompute_all_dominators): Remove call to free_dominance_info
4647 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
4648 for CDI_POST_DOMINATORS.
4650 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4652 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
4653 over pbb_dim_iter_domain.
4655 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4657 * graphite-flattening.c: Fix comments.
4659 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4661 * Makefile.in (OBJS-common): Add graphite-flattening.o.
4662 (graphite-flattening.o): New rule.
4663 * common.opt (floop-flatten): New flag.
4664 * doc/invoke.texi (-floop-flatten): Documented.
4665 * graphite-flattening.c: New.
4666 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
4667 * graphite-poly.h (flatten_all_loops): Declared.
4668 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
4669 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
4670 is set, also set flag_graphite.
4672 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4674 * graphite-poly.c (cloog_checksum): New.
4675 * graphite-poly.h (cloog_checksum): Declared.
4677 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4679 * graphite-poly.c (pbb_number_of_iterations): Removed.
4680 (pbb_number_of_iterations_at_time): Correctly compute the number
4681 of iterations in the transformed loop.
4682 * graphite-poly.h (pbb_number_of_iterations): Removed.
4684 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4686 * graphite-poly.h (lst_update_scattering_seq): Removed.
4687 (lst_update_scattering): Correctly handle outermost loop dewey
4690 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4692 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
4693 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
4694 * graphite-poly.h (lst_niter_for_loop): New.
4696 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4698 * graphite-poly.c (apply_poly_transforms): Do not abort when the
4699 transform read from disk is not legal. Call fatal_error instead.
4701 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4703 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
4704 (print_scop_header): Removed. Inlined in the only call place...
4705 (print_scop): ... here.
4707 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4709 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
4711 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4713 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
4715 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4717 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
4718 (dot_deps_stmt): Same.
4719 * graphite-poly.c (dot_lst): Same.
4721 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4723 * graphite-blocking.c (scop_do_strip_mine): Do not call
4724 graphite_legal_transform.
4725 (scop_do_block): Same.
4727 2010-09-30 Vladimir Kargov <kargov@gmail.com>
4729 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
4732 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4734 * tree-scalar-evolution.c (instantiate_array_ref): New.
4735 (instantiate_scev_r): Also handle ARRAY_REFs.
4737 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4739 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4740 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
4741 RESULT_DECL, and FIELD_DECL. Return false for an
4742 SSA_NAME_IS_DEFAULT_DEF.
4743 (compute_scalar_evolution_in_loop): Do not further analyze the
4744 scalar evolution when no_evolution_in_loop_p returns true.
4746 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4748 * tree-chrec.h (evolution_function_is_affine_p): Do not check
4749 whether CHREC_LEFT is invariant. A function is affine when
4750 CHREC_RIGHT is invariant.
4752 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4754 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
4756 (rewrite_degenerate_phi): Same.
4757 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
4759 2010-09-30 Vladimir Kargov <kargov@gmail.com>
4761 * graphite-scop-detection.c (graphite_can_represent_scev,
4762 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
4763 graphite_can_represent_loop): Remove outermost_loop.
4765 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4768 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
4769 handle GIMPLE_CALLs with no LHS.
4771 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4773 * graphite-poly.c (init_graphite_out_file): New.
4774 (init_graphite_in_file): New.
4775 (apply_poly_transforms): Updated to enable reading and writing of
4776 multiple scop files.
4778 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
4780 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
4783 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4785 * graphite-clast-to-gimple.c (precision_for_value): Adjust
4786 computation of precision by 1.
4788 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4790 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
4791 (openscop_read_polyhedron_matrix): New.
4792 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
4793 (openscop_read_N_int): Same.
4794 * graphite-poly.c (openscop_read_N_int): New.
4795 (openscop_read_one_int): New.
4796 (openscop_read_N_string): New.
4797 (openscop_read_one_string): New.
4798 (openscop_read_powerset_matrix): New.
4799 (graphite_read_transforms): Remove.
4800 (graphite_read_scatt): New.
4801 (graphite_read_scop_file): New.
4802 (apply_poly_transforms): Updated to call graphite_read_scop_file.
4804 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4806 * graphite-poly.c: Change include order.
4808 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4810 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
4811 (cloog_matrix_nrows): New.
4813 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4815 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
4817 * graphite-poly.c (openscop_print_scattering_function_1): Same.
4818 (print_scattering_function_1): Same.
4819 (openscop_print_pbb_domain): Same.
4820 (openscop_print_scop_context): Same.
4821 (print_scop_context): Same.
4823 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4825 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
4826 (openscop_print_pdr_polyhedron): Print pph.
4828 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4830 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
4831 priority signed types.
4833 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4835 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
4836 the call to lang_hooks.types.type_for_size. Call
4837 build_nonstandard_integer_type.
4839 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4841 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
4842 (openscop_print_polyhedron_matrix): New.
4843 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
4844 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
4845 (openscop_print_pdr_powerset): New.
4846 (openscop_print_powerset_matrix): New.
4847 (openscop_print_scattering_function_1): New.
4848 (print_scattering_function): Add support for scattering names and
4850 (graphite_write_transforms): Remove.
4851 (print_pdr_access_layout): Updated to support OpenScop format.
4853 (openscop_print_pbb_domain): New.
4854 (print_pbb_body): Added a parameter to allow indicating that pbb_body
4856 (print_pbb): Updated to call the new print_pbb_body.
4857 (openscop_print_scop_context): New.
4858 (print_scop_header): New.
4859 (print_scop): Updated to call print_scop_header.
4860 * graphite-poly.h: Document OpenScop format.
4862 2010-09-30 Anatoly Sokolov <aesok@post.ru>
4864 * config/cris/m32c.c (cris_memory_move_cost): New.
4865 (cris_register_move_cost): Make static. Change arguments type from
4866 enum reg_class to reg_class_t.
4867 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4868 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4869 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
4871 2010-09-30 Jakub Jelinek <jakub@redhat.com>
4874 * config/i386/i386.c (ix86_gimplify_va_arg): Use
4875 INTVAL (XEXP (slot, 1)) as prev_size.
4877 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
4880 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
4881 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
4883 * config/rs6000/option-defaults.h (toplevel): Change #if
4884 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
4885 global option changes.
4887 2010-09-30 Jakub Jelinek <jakub@redhat.com>
4889 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
4891 PR tree-optimization/31261
4892 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
4893 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
4895 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4898 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
4899 special-casing for generators and turn into ...
4900 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
4901 rule, for better error messages in case of toplevel dependency errors.
4902 (genprog): Add hooks, rename to ...
4903 (genprogerr): ... this, and let genprog also contain check,
4905 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
4906 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
4907 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
4909 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
4910 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4912 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
4913 for GMP, MPFR and MPC.
4915 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4917 * config/sparc/sparc.opt (mimpure-text): Move ...
4918 * config/sol2.opt: ... here. Correct description.
4919 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
4920 * doc/invoke.texi (Option Summary, SPARC Options): Move
4921 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
4922 (Option Summary, Solaris 2 Options): ... here.
4923 (Submodel Options, Solaris 2 Options): New menu entry.
4924 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
4925 (Solaris 2 Options): ... here.
4927 2010-09-30 Michael Eager <eager@eagercon.com>
4929 * extend.texi (interrupt_handler): Add MicroBlaze to list.
4930 (save_volatiles): Describe option for MicroBlaze.
4931 * invoke.texi: Add MicroBlaze Options.
4932 * contrib.texi: Add acknowledgment.
4933 * md.texi: Add MicroBlaze d and z constraints.
4934 * install.texi: Add microblaze-*-elf.
4935 * configure.ac: Add microblaze-*-* to target list.
4936 * configure: Regenerate.
4937 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
4938 * config/microblaze/microblaze-protos.h: New.
4939 * config/microblaze/crti.s: New.
4940 * config/microblaze/predicates.md: New.
4941 * config/microblaze/linux.h: New.
4942 * config/microblaze/microblaze.md: New.
4943 * config/microblaze/constraints.md: New.
4944 * config/microblaze/crtn.s: New.
4945 * config/microblaze/microblaze.opt: New.
4946 * config/microblaze/microblaze-c.c: New.
4947 * config/microblaze/t-microblaze: New.
4948 * config/microblaze/microblaze.c: New.
4949 * config/microblaze/microblaze.h: New.
4951 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4953 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
4954 parse @optional/@required and set the flags as appropriate.
4956 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
4958 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
4960 2010-09-30 Joseph Myers <joseph@codesourcery.com>
4962 * opt-functions.awk (static_var): Update comment.
4963 (var_ref): Return offsetof expression or -1, not variable address.
4964 * optc-gen.awk: Generate structure field initializers instead of
4965 static variables. Expect -1 for missing variables instead of null
4966 pointer. Add gcc_options parameters to generated functions.
4967 * opth-gen.awk: Generate structure fields for static variables.
4968 Add gcc_options parameters to generated functions.
4969 * common.opt (optimize, optimize_size): Add variables.
4970 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
4971 &global_options to cl_target_option_restore.
4972 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
4973 &global_options to cl_optimization_restore, cl_target_option_save
4974 and cl_target_option_restore.
4975 (ix86_set_current_function): Pass &global_options to
4976 cl_target_option_restore.
4977 * config/pdp11/pdp11.h (optimize): Remove.
4978 * config/rs6000/rs6000.h (optimize): Remove.
4979 * config/sh/sh.h (optimize): Remove.
4980 * config/xtensa/xtensa.h (optimize): Remove.
4981 * coretypes.h (struct gcc_options): Declare.
4982 * diagnostic.c (diagnostic_initialize): Initialize
4983 context->option_state.
4984 (diagnostic_report_diagnostic): Pass option_state to
4985 option_enabled hook.
4986 * diagnostic.h (diagnostic_context.option_enabled): Add void *
4988 (diagnostic_context.option_state): New field.
4989 * final.c (final_start_function, final, final_scan_insn): Rename
4990 optimize parameter to optimize_p.
4991 * flags.h (optimize, optimize_size): Remove.
4992 * function.c (invoke_set_current_function_hook): Pass
4993 &global_options to cl_optimization_restore.
4994 * gcc.c (driver_handle_option): Take gcc_options parameter.
4995 Assert that it is &global_options.
4996 (process_command): Pass &global_options to read_cmdline_option.
4997 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
4999 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
5000 &global_options to set_option.
5001 * opts-common.c (handle_option, handle_generated_option,
5002 read_cmdline_option, set_option): Take explicit gcc_options
5003 parameters. Use option_flag_var.
5004 (option_flag_var): New.
5005 * opts.c (common_handle_option, lang_handle_option,
5006 target_handle_option): Take gcc_options parameter. Assert that it
5008 (read_cmdline_options): Pass &global_options to read_cmdline_option.
5009 (print_filtered_help): Use option_flag_var. Pass &global_options
5011 (common_handle_option): Use option_flag_var.
5012 (option_enabled): Take opts parameter. Use option_flag_var.
5013 (get_option_state): Take gcc_options parameter. Use
5014 option_flag_var. Pass gcc_options parameter to option_enabled.
5015 (enable_warning_as_error): Pass &global_options to
5016 handle_generated_option.
5017 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
5018 (cl_option_handler_func.handler): Take gcc_options parameter.
5019 (option_enabled, get_option_state, set_option, handle_option,
5020 handle_generated_option, read_cmdline_option): Take gcc_options
5022 * toplev.c (optimize, optimize_size): Remove.
5023 (print_switch_values): Pass &global_options to option_enabled.
5024 (option_affects_pch_p): Use option_flag_var. Pass &global_options
5025 to get_option_state.
5026 (general_init): Initialize global_dc->option_state.
5027 * tree.c (build_optimization_node): Pass &global_options to
5028 cl_optimization_save.
5029 (build_target_option_node): Pass &global_options to
5030 cl_target_option_save.
5032 2010-09-30 Martin Jambor <mjambor@suse.cz>
5034 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
5035 zero sized bit-fields.
5037 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5039 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
5040 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
5041 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
5042 (c_parser_objc_class_declaration): Same change.
5043 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
5044 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
5045 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
5046 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
5047 and RID_AT_PUBLIC instead of RID_PUBLIC.
5048 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
5049 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
5051 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
5053 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
5054 Add links to current providers of packages for Solaris and IRIX.
5056 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5058 Merge from 'apple/trunk' branch on FSF servers.
5059 * c-parser.c: Applied change originally in c-parse.in.
5061 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5064 * c-decl.c (start_decl): Check for redeclaration of class name.
5065 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
5067 2010-09-29 Steve Ellcey <sje@cup.hp.com>
5069 * config/ia64/ia64.c (ia64_builtin_decl): New.
5070 (TARGET_BUILTIN_DECL): Define.
5071 (ia64_builtins): New.
5072 (ia64_init_builtins): Save decls in ia64_builtins.
5074 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
5077 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
5078 (move2add_use_add3_insn): Likewise.
5079 (reload_cse_move2add): Likewise.
5080 * rtlanal.c (get_full_rtx_cost): New function.
5081 * rtl.h (struct full_rtx_costs): New.
5082 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
5083 costs_add_n_insns): New inline functions.
5084 (get_full_rtx_cost): Declare.
5087 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
5088 invariants. Check for reg_equiv_invariant.
5089 (reload): Assert that spilled_pseudos is empty when returning.
5091 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
5093 * config/i386/mingw32.h (TARGET_64BIT): replaced by
5094 TARGET_64BIT_DEFAULT in #if check.
5096 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
5098 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
5100 2010-09-29 Mike Stump <mikestump@comcast.net>
5102 * config/darwin.h (flag_mkernel): Remove.
5103 (flag_apple_kext): Likewise.
5105 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5106 Jack Howarth <howarth@bromo.med.uc.edu>
5108 * config/darwin.opt (undefined): Add.
5110 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
5113 * configure.ac: Add --enable-indirect-function option.
5114 * config.gcc: Add default_gnu_indirect_function.
5115 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
5116 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
5117 * varasm.c (do_assemble_alias): Adjust for macro name change.
5118 * configure: Rebuilt.
5119 * doc/install.texi: Document --enable-indirect-function.
5121 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5123 * doc/options.texi (Variable, Var, Init): Update documentation
5124 without reference to VarExists.
5125 (VarExists): Remove.
5126 * common.opt, config/i386/i386.opt, config/linux.opt,
5127 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
5128 Don't use VarExists.
5130 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5132 * optc-gen.awk: Generate global_options initializer instead of
5133 individual variables. Add x_ prefix to names of structure members.
5134 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
5135 names of structure members.
5136 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5137 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
5138 * doc/tm.texi: Regenerate.
5139 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5140 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
5141 * c-parser.c (disable_extension_diagnostics,
5142 restore_extension_diagnostics): Update names of cpp_options members.
5143 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5144 * common.opt (fcompare-debug-second): Don't use Var.
5145 * config/alpha/alpha.h (target_flags): Remove.
5146 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5147 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
5148 * config/bfin/bfin.h (target_flags): Remove.
5149 * config/cris/cris.h (target_flags): Remove.
5150 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
5151 cl_target_option members.
5152 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
5153 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
5154 ix86_can_inline_p): Update names of cl_target_option members.
5155 * config/i386/i386.h (ix86_isa_flags): Remove.
5156 * config/lm32/lm32.h (target_flags): Remove.
5157 * config/mcore/mcore.h (mcore_stack_increment): Remove.
5158 * config/mcore/mcore.md (addsi3): Remove extern declaration of
5159 flag_omit_frame_pointer.
5160 * config/mep/mep.h (target_flags): Remove.
5161 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5162 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
5163 * config/mmix/mmix.h (target_flags): Remove.
5164 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
5165 flag_expensive_optimizations): Remove.
5166 * config/s390/s390.h (flag_pic): Remove.
5167 * config/score/score-conv.h (target_flags): Remove.
5168 * config/sh/sh.h (sh_fixed_range_str): Remove.
5169 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
5170 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
5171 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5172 * diagnostic.c (diagnostic_initialize): Update names of
5173 diagnostic_context members.
5174 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
5175 warn_system_headers.
5176 (diagnostic_report_warnings_p): Update for new names.
5177 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
5178 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
5179 HARD_FRAME_POINTER_IS_ARG_POINTER.
5180 * flags.h (flag_compare_debug): Declare.
5181 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5182 * opts.c (flag_compare_debug): Define.
5183 (common_handle_option): Update names of diagnostic_context
5184 members. Handle -fcompare-debug-second.
5185 (fast_math_flags_struct_set_p): Update names of cl_optimization
5187 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5188 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5189 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5190 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5191 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5192 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5193 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
5194 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5195 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
5197 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
5199 * config/picochip/picochip.c (picochip_output_internal_label):
5200 This function can now be called for debug CFI labels, which can come
5201 in the middle of a vliw instruction. Postpone until end of vliw.
5203 2010-09-29 Richard Guenther <rguenther@suse.de>
5205 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
5206 (DECL_FILE_SCOPE_P): Use it.
5207 (TYPE_FILE_SCOPE_P): New macro.
5209 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5211 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
5212 a CPP_NAME which is a reserved word, clearly separate cases for
5213 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
5215 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5217 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
5218 token->value with the canonical spelling. Do exactly like C and
5219 C++ and leave it as it is.
5221 2010-09-28 Richard Henderson <rth@redhat.com>
5223 * config/alpha/alpha.c (alpha_builtins): New.
5224 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
5225 (alpha_builtin_function): New.
5226 (alpha_add_builtins, alpha_init_builtins): Use it.
5228 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
5230 * doc/standards.texi (Standards): Expanded the section on
5231 Objective-C and Objective-C++.
5233 2010-09-28 DJ Delorie <dj@redhat.com>
5236 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
5239 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5241 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
5242 attributes on methods.
5243 (c_parser_objc_method_definition): Handle attributes.
5244 (c_parser_objc_methodproto): Likewise.
5245 (c_parser_objc_maybe_method_attributes): New.
5246 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
5247 missing definition, similar to that in ObjC++.
5249 2010-09-28 Richard Henderson <rth@redhat.com>
5251 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
5252 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
5253 (CONFIG_SJLJ_EXCEPTIONS): Remove.
5254 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
5255 (STACK_CHECK_PROTECT): Likewise.
5256 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
5257 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
5258 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
5259 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
5260 (dwarf2out_assembly_start): Likewise.
5261 * except.c (init_eh): Use targetm.except_unwind_info.
5262 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
5263 (output_one_function_exception_table): Likewise.
5264 * final.c: Unconditionally include dwarf2out.h.
5265 (final_start_function): Unconditionally call dwarf2out routines.
5266 (final_end_function, final_scan_insn): Likewise.
5267 * function.c (expand_function_end): Use targetm.except_unwind_info.
5268 * opts.c (decode_options): Use targetm.except_unwind_info.
5269 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
5270 * target.def (debug_unwind_info, except_unwind_info): New.
5271 * target.h (enum unwind_info_type): New.
5272 * targhooks.c (default_debug_unwind_info): New.
5273 (default_except_unwind_info): New.
5274 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
5275 * targhooks.h: Declare them.
5276 * tree-tailcall.c: Include "target.h"
5277 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
5278 * Makefile.in (tree-tailcall.o): Update.
5279 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
5280 (lhd_gcc_personality): Likewise.
5282 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
5283 (TARGET_EXCEPT_UNWIND_INFO): New.
5284 (DWARF2_UNWIND_INFO): Update.
5285 (TARGET_DEBUG_UNWIND_INFO): New.
5286 * doc/tm.texi: Rebuild.
5288 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
5289 targetm.except_unwind_info.
5291 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
5292 (arm_except_unwind_info): New.
5293 (arm_compute_func_type): Use it.
5294 (arm_expand_prologue, thumb_pushpop): Likewise.
5295 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
5296 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
5297 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
5298 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
5299 (DWARF2_UNWIND_INFO): Remove.
5300 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
5301 (ARM_EABI_UNWIND_TABLES): Remove.
5303 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
5304 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
5305 (ia64_except_unwind_info): New.
5306 (ia64_output_function_prologue): Use it.
5307 (ia64_add_bundle_selector_before): Likewise.
5308 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
5309 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
5310 (TARGET_UNWIND_INFO): Remove.
5312 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
5314 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5316 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
5317 (c_parser_objc_protocol_definition): Likewise.
5318 (c_parser_external_declaration): Provide dummy attribute arguments.
5319 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
5320 (c_parser_objc_class_definition): Handle attributes.
5321 (c_parser_objc_protocol_definition): Likewise.
5323 2010-09-28 Tobias Burnus <burnus@net-b.de>
5327 * toplev.h (save_decoded_options, save_decoded_options_count):
5328 New global variables.
5329 * toplev.c (save_decoded_options, save_decoded_options_count):
5332 2010-09-28 Ian Lance Taylor <iant@google.com>
5334 * config/i386/i386.c (ix86_supports_split_stack): Test
5335 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
5337 2010-09-28 Ian Lance Taylor <iant@google.com>
5340 * opts.c (decode_options): Don't test whether the target supports
5341 split stack if flag_split_stack == 0.
5343 2010-09-28 Jan Hubicka <jh@suse.cz>
5345 * builtin-attrs.def (ATTR_LEAF): New attribute.
5346 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
5347 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
5348 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
5349 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
5350 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
5351 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
5352 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
5353 * sync-builtins.def: Annotate all builtins by leaf.
5354 * omp-builtins.def: Annotate all builtins by leaf.
5355 * builtins.def: Annotate relevant builtins with leaf attribute.
5356 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
5357 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
5360 2010-09-28 Jan Hubicka <jh@suse.cz>
5362 * tree-ssa-ccp.c (fold_ctor_reference): New function.
5363 (fold_const_aggregate_ref): Use it.
5364 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
5365 into external static.
5367 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5370 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
5371 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
5372 (ix86_solaris_return_in_memory): Remove.
5373 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
5374 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
5375 (TARGET_SUBTARGET_DEFAULT): Redefine.
5376 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
5377 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
5378 (TARGET_SUBTARGET_DEFAULT): Redefine.
5379 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
5381 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
5383 2010-09-29 Alan Modra <amodra@gmail.com>
5386 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
5387 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
5388 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
5390 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
5391 (rs6000_emit_prologue): Don't just create frame save info for r2,
5394 2010-09-28 Richard Henderson <rth@redhat.com>
5396 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
5397 when 8 bytes are requested.
5399 2010-09-28 Tristan Gingold <gingold@adacore.com>
5401 * config/avr/avr.c (expand_prologue): Set
5402 current_function_static_stack_size.
5404 2010-09-28 Tristan Gingold <gingold@adacore.com>
5406 * config/alpha/alpha.md: Change the initial condition of the
5409 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
5411 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
5412 Split from *avx_<maxmin:code><mode>3.
5413 (*avx_<smaxmin:code><mode>3): Ditto.
5414 * config/i386/i386.md (maxmin): Remove code iterator.
5416 2010-09-27 Ian Lance Taylor <iant@google.com>
5418 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
5419 requires assembler support for CFI directives.
5421 2010-09-27 Richard Henderson <rth@redhat.com>
5423 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
5425 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
5427 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
5428 that AFTER is not in the range FROM..TO, inclusive.
5430 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
5431 Bernd Schmidt <bernds@codesourcery.com>
5433 PR rtl-optimization/45792
5434 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
5435 If not all insns are to be merged, for each edge, stash the
5436 next candidate after the to-be-merged insns before doing the
5437 merge, and use them for the retry at the new insertion point.
5438 Handle CC0 targets when retrying.
5440 2010-09-27 Ian Lance Taylor <iant@google.com>
5442 * common.opt (fsplit-stack): New option.
5443 * opts.c (decode_options): Set flag_split_stack to final value.
5444 * target.def (supports_split_stack): New hook.
5445 * gcc.c (STACK_SPLIT_SPEC): Define.
5446 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
5447 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
5448 (Code Gen Options): Document -fsplit-stack.
5449 * doc/extend.texi (Function Attributes): Mention no_split_stack.
5450 (Function Attributes): Document no_split_stack.
5451 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
5452 TARGET_SUPPORTS_SPLIT_STACK.
5453 * doc/tm.texi: Rebuild.
5454 * function.c (thread_prologue_and_epilogue_insns): If
5455 flag_split_stack, add split stack prologue.
5456 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
5457 * varasm.c (saw_no_split_stack): New static variable.
5458 (assemble_start_function): Set saw_no_split_stack if the function
5459 has the no_split_stack attribute.
5460 (file_end_indicate_split_stack): New function.
5461 * output.h (file_end_indicate_split_stack): Declare.
5462 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
5464 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
5466 * config/i386/i386.c (ix86_option_override_internal): Don't set
5467 expand_builtin_va_start to NULL if -fsplit-stack.
5468 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
5470 (ix86_va_start): If -fsplit-stack, get overflow pointer from
5471 scratch register set by prologue.
5472 (ix86_code_end): If -fsplit-stack, call
5473 file_end_indicate_split_stack.
5474 (ix86_supports_split_stack): New static function.
5475 (SPLIT_STACK_AVAILABLE): Define.
5476 (split_stack_prologue_scratch_regno): New static function.
5477 (split_stack_fn): New static variable.
5478 (ix86_expand_split_stack_prologue): New function.
5479 (ix86_live_on_entry): New static function.
5480 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
5481 (output_pic_addr_const): Likewise.
5482 (i386_asm_output_addr_const_extra): Likewise.
5483 (ix86_expand_call): Change return type to rtx. Return the new
5485 (TARGET_SUPPORTS_SPLIT_STACK): Define.
5486 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
5487 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
5488 (split_stack_prologue, split_stack_return): New insns.
5489 (split_stack_space_check): New insn.
5490 * config/i386/i386.h (struct machine_function): Add
5491 split_stack_varargs_pointer field.
5492 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
5493 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
5494 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
5495 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
5496 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
5498 (ix86_expand_call): Update declaration.
5500 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5502 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
5503 code. Added byref, which was missing in the list of codes.
5504 Explain that enumeration values are encoded as the integer type
5505 that the compiler uses to store them. Explain and make examples
5506 of how 'const' interacts with pointers, and the complication of
5507 the encoding of 'const char *'.
5508 (Legacy type encoding): New subsection, explaining that GCC emits
5509 incorrect type encodings for the NeXT runtime for compatibility
5511 (@@encode): New subsection, explaining @encode and particularly
5512 that protocol qualifiers are not recognized inside an @encode()
5514 (Method signatures): New subsection, explaining how method
5515 signatures are encoded.
5517 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5519 Merge from 'apple/trunk' branch on FSF servers. Removed small
5520 change in build_conditional_expr that had been added when fixing
5521 PR objc/27377 and which did the same check in a less complete way.
5523 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5526 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
5527 looking for objective-c common pointer types.
5529 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5532 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
5533 use their ObjC common type.
5535 2010-09-27 Richard Guenther <rguenther@suse.de>
5537 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
5539 2010-09-27 Jie Zhang <jie@codesourcery.com>
5541 * print-tree.c (print_node): Print in-constant-pool.
5543 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
5545 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
5546 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
5547 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
5548 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
5550 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
5552 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
5553 from pro_epilogue_adjust_stack_<mode>_{1,2}.
5554 (pro_epilogue_adjust_stack_<mode>_add): Rename from
5555 pro_epilogue_adjust_stack_<mode>_3.
5556 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
5557 renamed pro_epilogue_adjust_stack_{si,di}_add.
5558 (ix86_expand_prologue): Use indirect functions. Update for renamed
5559 pro_epilogue_adjust_stack_{si,di}_sub.
5561 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
5563 * config/i386/i386.md (movmsk_df): New insn.
5564 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
5565 sequence for TARGET_SSE_MATH.
5567 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
5569 * config/mips/mips.c (mips_builtin_decls): Declare.
5570 (mips_init_builtins): Store function declarations in
5572 (mips_builtin_decl): New function.
5573 (TARGET_BUILTIN_DECL): Define.
5575 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
5576 Richard Henderson <rth@redhat.com>
5578 * config/i386/cygwin.asm: Include auto-host.h.
5579 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
5580 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
5581 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
5582 alignment code from the 64-bit path. Use gas local labels.
5583 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
5584 from _di_2. Remove the useless constant integer argument.
5585 (pro_epilogue_adjust_stack_<mode>_3): New.
5586 (allocate_stack_worker_probe_<mode>): Macroize from
5587 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
5588 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
5589 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
5590 (__chkstk_ms): New function.
5591 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
5592 * gcc/config/i386/t-interix: Likewise.
5593 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
5594 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
5595 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
5596 * configure, config.in: Rebuild.
5598 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
5600 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
5601 statements because of the return slot optimization.
5603 2010-09-25 Anatoly Sokolov <aesok@post.ru>
5605 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
5606 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
5607 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5608 (class_likely_spilled_p): Rename to...
5609 (avr_class_likely_spilled_p): ...this. Make static. Change argument
5610 type to reg_class_t.
5612 2010-09-24 Jan Hubicka <jh@suse.cz>
5614 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
5615 (lto_symtab_resolve_symbols): Set it.
5616 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
5617 store resolution field in cgraph/varpool.
5618 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
5619 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
5620 (cgraph_dump_node): Drop used_from_object_file.
5621 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
5622 (cgraph_function_body_availability): Use decl_replaceable_p.
5623 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
5624 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
5625 cgraph_used_from_object_file_p.
5626 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
5627 cgraph_used_from_object_file_p.
5628 (resolution_used_from_other_file_p): New functoin.
5629 (cgraph_used_from_object_file_p): New predicate.
5630 * cgraph.h: Include plugin-api.h
5631 (struct cgraph_local_info): Remove used_from_object_file.
5632 (struct cgraph_node): Add resolution field.
5633 (struct varpool_node): Likewise; remove used_from_object_file;
5634 reove const_value_known.
5635 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
5636 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
5637 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
5638 varpool_used_from_object_file_p): Declare.
5639 (varpool_get_node, varpool_extra_name_alias): Update prototype.
5640 * tree.h (DECL_REPLACEABLE_P): Remove.
5641 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
5642 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
5643 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
5644 input_overwrite_node, input_node, input_varpool_node): Stream
5646 * expr.c (expand_expr_real_1): Use const_value_known_p
5647 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
5649 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
5650 (function_and_variable_visibility): Set resolution for local vars
5651 and functions; use varpool_used_from_object_file_p.
5652 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
5654 (default_binds_local_p_1): Use resolutoin info.
5655 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
5656 * varpool.c (varpool_get_node): Constify.
5657 (const_value_known_p): Do not use vnode->const_value_known;
5658 use decl_replaceable_p.
5659 (varpool_finalize_decl): Do not set const_value_known.
5660 (cgraph_variable_initializer_availability): Use decl_replaceable_p
5661 (varpool_extra_name_alias): Return new node.
5662 (varpool_used_from_object_file_p): New function.
5664 2010-09-24 Richard Henderson <rth@redhat.com>
5666 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
5667 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
5668 (do_spill): Use REG_CFA_OFFSET.
5669 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
5671 (ia64_expand_epilogue): Likewise.
5672 (process_set): Split into ...
5673 (process_cfa_adjust_cfa): this,
5674 (process_cfa_register): this,
5675 (process_cfa_offset): and this new function.
5676 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
5677 instead of REG_FRAME_RELATED_EXPR.
5679 2010-09-24 Olivier Hainque <hainque@adacore.com>
5681 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
5683 2010-09-24 Jan Hubicka <jh@suse.cz>
5685 * doc/extend.texi: (attribute leaf): Document.
5686 * tree.c (local_define_builtin): Handle ECF_LEAF.
5687 (build_common_builtin_nodes): Set ECF_LEAF where needed.
5688 * tree.h (ECF_LEAF): New.
5689 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
5690 overwrittable and unavailable functions.
5691 (ipa_init): Put all_module_statics into optimization_summary_obstack.
5692 (copy_global_bitmap): Do not copy all_module_statics.
5693 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
5694 (propagate): Handle overwritable and unavailable leaf functions;
5695 initialize global info for overwritable and unavailable leaf functions;
5696 do not free all module statics.
5697 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
5699 * calls.c (flags_from_decl_or_type): Handle leaf.
5700 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
5703 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
5705 * gengtype.c: Reindented.
5706 * gengtype.h: Reindented.
5707 * gengtype-parse.c: Reindented.
5709 2010-09-24 Jan Hubicka <jh@suse.cz>
5711 PR tree-optimization/45738
5712 PR tree-optimization/45741
5713 * expr.c (string_constant): Allow CONST_DECL too;
5714 check that DECL_INITIAL is set.
5715 * varpool.c (const_value_known_p): Only look into VAR_DECL
5718 2010-09-24 Joseph Myers <joseph@codesourcery.com>
5720 * common.opt (undef): New.
5722 2010-09-24 Jakub Jelinek <jakub@redhat.com>
5725 * rtl.h (enum global_rtl_index): Add
5726 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
5727 (LAST_VIRTUAL_POINTER_REGISTER): Define.
5728 (virtual_preferred_stack_boundary_rtx,
5729 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
5730 (LAST_VIRTUAL_REGISTER): Increase by one.
5731 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
5732 instead of LAST_VIRTUAL_REGISTER.
5733 * function.c (instantiate_new_reg): Handle
5734 virtual_preferred_stack_boundary_rtx.
5735 * emit-rtl.c (init_virtual_regs): Handle
5736 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
5737 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
5738 * explow.c (round_push): If crtl->preferred_stack_boundary
5739 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
5740 virtual_preferred_stack_boundary_rtx alignment instead of
5741 crtl->preferred_stack_boundary alignment.
5742 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
5743 macros. Never decrease crtl->preferred_stack_boundary,
5744 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
5745 instead of PREFERRED_STACK_BOUNDARY. Don't modify
5746 stack_pointer_delta in dynamic allocation, even when size
5748 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
5750 * print-rtl.c (print_rtx): Handle
5751 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
5752 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
5753 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
5754 * config/frv/frv.c (frv_emit_movsi): Likewise.
5755 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
5756 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
5760 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
5763 * calls.c (expand_call): Make sure that all variable sized
5764 adjustments are multiple of preferred stack boundary after
5767 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
5768 Dominique Dhumieres <dominiq@lps.ens.fr>
5771 * gcc/config/darwin-driver.c (darwin_default_min_version):
5772 Adjust size passed to memcpy in two places.
5774 2010-09-24 Richard Guenther <rguenther@suse.de>
5776 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
5777 Make sure to not call set_type_context with error_mark_node.
5778 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
5780 2010-09-24 Richard Guenther <rguenther@suse.de>
5782 * Makefile.in (OBJS-onestep): Remove.
5783 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
5784 (libbackend.a): Remove onestep support.
5785 (libbackend.o): Remove.
5786 * configure.ac (--enable-intermodule): Remove.
5787 * configure: Regenerate.
5789 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
5791 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
5792 reaching the end of a block if it occurs at a DEBUG_INSN.
5794 2010-09-09 Tristan Gingold <gingold@adacore.com>
5797 * config/vms/vms-crt0-64.c: Removed.
5798 * config/vms/vms-crt0.c: Removed.
5799 * config/vms/vms-psxcrt0-64.c: Removed.
5800 * config/vms/vms-psxcrt0.c: Removed.
5801 * config/vms/vms-ucrt0.c: New file.
5802 * config/vms/t-vms64: Removed.
5803 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
5804 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
5805 * config.gcc (alpha-dec-vms): Use t-vms.
5807 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
5809 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
5810 underfull hbox in DVI output.
5811 (-fobjc-class-cxx-cdtors): Same change.
5812 (-fobjc-exceptions): Tidied up documentation. Explain what the
5813 option does, but moved the (lenghty) description of the exception
5814 syntax into objc.texi.
5815 (-fobjc-gc): Explain that the option is not useful with the GNU
5817 (-fzero-link): Explain that the GNU runtime always works in
5819 * doc/objc.texi: All sections: simplified @node declarations
5820 removing specification of next, previous, up node.
5821 (Objective-C): Updated introduction.
5822 (Garbage Collection): Updated. The bohem-gc library is now
5823 included in gcc itself. Mention that this section only applies to
5824 the GNU Objective-C runtime.
5825 (compatibility_alias): Small tidy up.
5826 (Exceptions): New section mostly containing text previously in the
5827 description of the -fobjc-exception command-line option.
5828 (Synchronization): Same.
5830 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
5832 * config/i386/i386.md (ix86_code_end): Move the initialization of
5833 xops array near the consumer. Use AX_REG and SP_REG instead of
5834 numerical constants.
5836 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
5838 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
5839 method [methodname]' for an Objective-C method instead of the less
5840 satisfactory 'too many arguments to function' (with no method name).
5842 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
5844 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
5845 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
5846 (execute_update_addresses_taken): Remove parameter. Execute the
5847 optimization unconditionally.
5848 * passes.c (execute_function_todo): Call execute_update_addresses_taken
5849 unconditionally if TODO_rebuild_alias is set, else only when optimizing
5850 if TODO_update_address_taken is set.
5852 2010-09-23 Anatoly Sokolov <aesok@post.ru>
5854 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5855 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
5856 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5857 (arm_output_addr_const_extra): Make static.
5859 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
5861 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
5862 define as unspec_volatile.
5863 ("nops"): Define as unspec_volatile. Use fputs to write to
5864 asm_out_file directly. Output NOPs on separate lines using while loop.
5865 * config/i386/i386.c (ix86_code_end): Use fputs to write to
5866 asm_out_file directly. Output NOPs on separate lines using while loop.
5868 2010-09-23 Richard Guenther <rguenther@suse.de>
5870 PR tree-optimization/45565
5871 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
5872 Make sure to adjust the fndecl before replacing the stmt.
5874 2010-09-23 Richard Guenther <rguenther@suse.de>
5877 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
5878 gimplifying MEM_REF.
5880 2010-09-23 Alan Modra <amodra@gmail.com>
5882 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
5883 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
5885 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
5887 PR rtl-optimization/44374
5888 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
5889 * df-core.c (df_set_bb_dirty): Set it.
5890 * ifcvt.c (find_memory): Remove function.
5891 (dead_or_predicable): Use can_move_insns_across.
5892 * df.h (can_move_insns_across): Declare function.
5893 * cfgcleanup.c (block_was_dirty): New static variable.
5894 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
5895 than df_get_bb_dirty.
5896 (try_head_merge_bb): New static function.
5897 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
5899 * df-problems.c: Include "target.h"
5900 (df_simulate_find_uses): New static function.
5901 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
5902 (find_memory, find_memory_store): New static functions.
5903 (can_move_insns_across): New function.
5904 * Makefile.in (df-problems.o): Update dependencies.
5906 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
5909 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
5910 is specified and the suffix of the file isn't ".c".
5911 * config/sparc/linux64.h (ASM_SPEC): Likewise.
5913 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5915 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
5916 * doc/cppopts.texi: Fix markup of index entry.
5917 * doc/extend.texi (Constructing Calls): Fix markup of
5918 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
5919 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
5920 (Vague Linkage, C++ Attributes): Fix markup of index entries and
5922 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
5924 (C Dialect Options, C++ Dialect Options, Warning Options)
5925 (Debugging Options, Spec Files, Darwin Options)
5926 (i386 and x86-64 Options, MIPS Options)
5927 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
5928 index entries, avoid abbreviations, allow URLs to wrap, avoid
5929 long lines, avoid overlong pages from long @itemx lists.
5930 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
5931 * doc/standards.texi (Standards): Likewise.
5932 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
5934 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5936 * opts-common.c (prune_options): Make static. Work with decoded
5938 (decode_cmdline_options_to_array): Call prune_options. Don't
5939 resize option array here.
5940 * opts.h (prune_options): Remove prototype.
5941 * gcc.c (process_command): Take decoded options; don't call
5942 decode_cmdline_options_to_array here. Use decoded options for argv[0].
5943 (main): Call decode_cmdline_options_to_array here instead of
5944 prune_options. Update call to process_command.
5945 * config/darwin-driver.c: Include opts.h.
5946 (darwin_default_min_version): Work with decoded options. Don't
5947 handle -b or -V here.
5948 * config/darwin.h (darwin_default_min_version): Update prototype.
5949 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
5950 darwin_default_min_version.
5951 * config/i386/cygwin.h (mingw_scan): Update prototype.
5952 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
5953 * config/i386/cygwin1.c: Include opts.h.
5954 (mingw_scan): Work with decoded options.
5955 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
5956 * config/t-darwin (darwin-driver.o): Update dependencies.
5958 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5960 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
5961 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
5962 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
5963 -force-link, -force-link=, -language, -language=,
5964 -library-directory, -library-directory=, -no-canonical-prefixes,
5965 -no-standard-libraries, -no-warnings, -optimize, -output,
5966 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
5967 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
5968 -print-file-name=, -print-libgcc-file-name,
5969 -print-multi-directory, -print-multi-lib,
5970 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
5971 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
5972 -profile, -save-temps, -shared, -specs, -specs=, -static,
5973 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
5975 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
5976 * gcc.c (A Short Introduction to Adding a Command-Line Option):
5978 (cc1_options): Correct specs for passing down --help,
5979 --target-help and --help=*. Add spec for passing down --version.
5980 (struct option_map, option_map, target_option_translations,
5981 translate_options): Remove.
5982 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
5983 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
5984 OPT_fhelp_ and OPT_ftarget_help.
5985 (process_command): Don't call translate_options. Call
5986 decode_cmdline_options_to_array before checking for
5987 -no-canonical-prefixes using decoded options.
5988 * opts-common.c (tm.h): Update comment on #include.
5989 (find_opt): Allow abbreviations of long options.
5990 (struct option_map, option_map): New.
5991 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
5993 (target_option_translations): New.
5994 (decode_cmdline_options_to_array): Handle
5995 TARGET_OPTION_TRANSLATE_TABLE in driver.
5996 * opts.c (common_handle_option): Don't handle OPT_fhelp,
5997 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
5999 2010-09-22 Richard Guenther <rguenther@suse.de>
6001 * tree-inline.c (optimize_inline_calls): Schedule cleanups
6002 only if we inlined something. Block compaction and conditional
6003 folding are done by cfg cleanup. Schedule update-address-taken.
6004 (tree_function_versioning): Remove redundant call to number_blocks.
6005 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
6006 folding is done by cfg cleanup.
6007 * passes.c (init_optimization_passes): Remove update-address-taken
6008 pass after IPA inlining.
6010 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6012 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
6013 to update conditions. Fix reg_mode[] check.
6015 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
6017 * config/picochip/picochip.md (movhicc): Use expand to check whether
6018 movhicc is available and split it after reload.
6020 2010-09-22 Richard Guenther <rguenther@suse.de>
6022 * tree-ssanames.c (release_dead_ssa_names): Do not remove
6024 * passes.c (init_optimization_passes): Remove early CFG cleanup.
6025 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
6026 (pass_cleanup_cfg): Likewise.
6027 (execute_fixup_cfg): Cleanup.
6028 * tree-pass.h (pass_cleanup_cfg): Remove.
6030 2010-09-22 Martin Jambor <mjambor@suse.cz>
6032 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
6033 builtins if it is true.
6034 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
6037 2010-09-22 Martin Jambor <mjambor@suse.cz>
6039 * tree-sra.c (struct access): New field grp_no_warning.
6040 (create_access_replacement): Set TREE_NO_WARNING according to
6042 (create_artificial_child_access): Use build_ref_for_model and set
6043 grp_no_warning if build_user_friendly_ref_for_offset fails.
6044 (propagate_subaccesses_across_link): Likewise.
6046 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
6049 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
6052 2010-09-22 Tristan Gingold <gingold@adacore.com>
6054 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
6056 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
6058 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
6059 * config/i386/i386.c (decide_alg): Update for rename.
6061 2010-09-22 Jakub Jelinek <jakub@redhat.com>
6063 PR rtl-optimization/45739
6064 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
6065 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
6067 2010-09-21 Anatoly Sokolov <aesok@post.ru>
6069 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
6070 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
6072 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
6073 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6075 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6078 * c-parser.c (c_parser_objc_method_definition): Check the return
6079 value of objc_start_method_definition and if false is returned,
6080 parse the method definition but emit no code.
6082 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6085 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
6086 call objc_get_interface_ivars ().
6088 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
6091 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
6092 static chain-register is used for 64-bit.
6094 2010-09-21 Richard Guenther <rguenther@suse.de>
6096 * dwarf2out.c (is_cu_die): New function.
6097 (add_pubtype): Use it.
6098 (gen_subprogram_die): Likewise.
6099 (gen_struct_or_union_type_die): Likewise.
6100 (dwarf2out_finish): Likewise.
6101 (comp_unit_die): Rename to ...
6102 (single_comp_unit_die): ... this.
6103 (comp_unit_die): New function lazily constructing and
6104 returning single_comp_unit_die.
6105 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
6106 base_type_die, subrange_type_die, modified_type_die,
6107 lower_bound_default, add_bound_info, add_prototyped_attribute,
6108 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
6109 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
6110 force_decl_die, gen_namespace_die, dwarf2out_decl,
6111 dwarf2out_start_source_file, dwarf2out_end_source_file,
6112 prune_unused_types, dwarf2out_finish): Use it.
6113 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
6114 the global list of translation-unit decls.
6115 (dwarf2out_init): Do not create single_comp_unit_die here.
6116 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
6118 2010-09-21 Richard Guenther <rguenther@suse.de>
6120 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
6123 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
6125 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
6126 (qhs_extenddi_cstr): Likewise.
6127 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
6128 them for the source operand.
6130 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
6132 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
6133 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
6134 (ix86_split_ashr): Ditto.
6135 (ix86_split_lshr): Ditto.
6137 2010-09-21 Richard Guenther <rguenther@suse.de>
6139 PR tree-optimization/45580
6140 * tree-ssa-propagate.c (substitute_and_fold): Always replace
6142 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
6143 virtuals fold the call into a regular indirect one.
6145 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
6147 PR rtl-optimization/42775
6148 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
6149 scheduling is enabled.
6151 2010-09-20 Jakub Jelinek <jakub@redhat.com>
6153 PR rtl-optimization/45728
6154 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
6155 gen_lowpart_common first and if that fails, force_reg first
6156 before calling gen_lowpart.
6159 * cfgexpand.c (expand_one_stack_var_at): Use
6160 crtl->max_used_stack_slot_alignment as max_align, instead
6161 of maximum of that and PREFERRED_STACK_BOUNDARY.
6162 Don't call update_stack_alignment.
6164 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
6166 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
6167 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
6168 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
6169 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
6170 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
6171 (build_nonstandard_integer_type): Likewise.
6172 (build_range_type_1): New function, built from...
6173 (build_range_type): ...this. Call build_range_type_1.
6174 (build_nonshared_range_type): New function.
6175 (build_array_type_1): New function, built from...
6176 (build_array_type: ...this. Call build_array_type_1.
6177 (build_nonshared_array_type): New function.
6178 * tree.h (build_nonshared_range_type): Declare.
6179 (build_nonshared_array_type): Likewise.
6181 2010-09-20 Anatoly Sokolov <aesok@post.ru>
6183 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
6184 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6185 (arm_class_likely_spilled_p): New function.
6187 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
6189 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
6191 (ix86_split_ashl): Ditto.
6192 (ix86_split_ashr): Ditto.
6193 (ix86_split_lshr): Ditto.
6194 (ix86_adjust_counter): Ditto.
6196 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
6198 * c-family/c-common.h (constant_string_class): Documented with
6199 comment identical to the one already in c-common.c.
6201 2010-09-20 Jakub Jelinek <jakub@redhat.com>
6203 * dwarf2out.c (any_cfis_emitted): New static variable.
6204 (add_fde_cfi): Set it.
6205 (dwarf2out_frame_debug): Clear it before processing,
6206 if it is set afterwards, flush any queued reg saves.
6209 * dwarf2out.c (add_accessibility_attribute): Assume
6210 DW_ACCESS_private as the default for dwarf_version > 2
6211 and DW_TAG_class_type parent.
6212 (gen_inheritance_die): Assume DW_ACCESS_public as the default
6213 for dwarf_version > 2 and parent other than DW_TAG_class_type.
6215 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
6218 * arm.md (arm_movt): Only enable on machines with MOVT.
6220 2010-09-20 Jie Zhang <jie@codesourcery.com>
6222 * config/arm/arm.c (arm_address_offset_is_imm): New.
6223 (arm_early_store_addr_dep): New.
6224 (arm_early_load_addr_dep): New.
6225 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
6226 (arm_early_load_addr_dep): Declare.
6227 (arm_address_offset_is_imm): Declare.
6228 * config/arm/cortex-m4.md: New file.
6229 * config/arm/cortex-m4-fpu.md: New file.
6230 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
6231 (attr generic_sched): Exclude cortexm4.
6232 (attr generic_vfp): Exclude cortexm4.
6234 2010-09-20 Richard Guenther <rguenther@suse.de>
6237 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
6239 2010-09-20 Jan Hubicka <jh@suse.cz>
6241 PR tree-optimize/45605
6242 * cgraph.h (const_value_known_p): Declare.
6243 (varpool_decide_const_value_known): Remove.
6244 * tree-ssa-ccp.c (get_base_constructor): Use it.
6245 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
6246 * expr.c (string_constant): Likewise.
6247 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
6248 * ipa.c (ipa_discover_readonly_nonaddressable_var,
6249 function_and_variable_visibility): Likewise.
6250 * gimplify.c (gimplify_call_expr): Likewise.
6251 * gimple-fold.c (get_symbol_constant_value): Likewise.
6252 * varpool.c (varpool_decide_const_value_known): Replace by...
6253 (const_value_known_p): ... this one; handle other kinds of DECLs
6254 too and work for automatic vars.
6255 (varpool_finalize_decl): Use const_value_known_p.
6257 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
6260 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
6262 2010-09-20 Richard Guenther <rguenther@suse.de>
6264 PR tree-optimization/45705
6265 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
6267 2010-09-20 Jakub Jelinek <jakub@redhat.com>
6269 PR rtl-optimization/45695
6270 * combine.c (try_combine): When splitting a two set pattern,
6271 make sure the pattern which will be put into i2 doesn't use REGs
6272 or MEMs set by insns in between i2 and i3.
6274 2010-09-19 Jan Hubicka <jh@suse.cz>
6277 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
6278 processing same node twice.
6280 2010-09-19 Anatoly Sokolov <aesok@post.ru>
6282 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
6283 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6284 (bfin_class_likely_spilled_p): New function
6286 2010-09-19 Ira Rosen <irar@il.ibm.com>
6288 PR tree-optimization/45714
6289 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
6290 created in vectorizable_call instead of the original statement in
6293 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
6295 * config/i386/i386-protos.h (split_double_mode): New prototype.
6296 (split_di, split_ti): Remove prototypes.
6297 * config/i386/i386.c (split_double_mode): New function.
6298 (split_di, split_ti): Remove.
6299 (ix86_expand_branch): Use split_double_mode.
6300 (ix86_split_to_parts): Ditto.
6301 (ix86_split_ashl): Ditto.
6302 (ix86_split_ashr): Ditto.
6303 (ix86_split_lshr): Ditto.
6304 (ix86_force_to_memory): Ditto.
6305 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
6307 2010-09-18 Jan Hubicka <jh@suse.cz>
6309 PR tree-optimization/45453
6310 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
6311 virtual functions are reachable.
6312 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
6313 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
6314 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
6315 when modifying function.
6317 2010-09-18 Jan Hubicka <jh@suse.cz>
6319 PR tree-optimization/45605
6320 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
6321 * gimple-fold.c (static_object_in_other_unit_p): New function.
6322 (canonicalize_constructor_val): Use it.
6323 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
6325 (gimple_fold_obj_type_ref_known_binfo): Use
6326 static_object_in_other_unit_p.
6328 2010-09-18 Richard Guenther <rguenther@suse.de>
6330 PR tree-optimization/45709
6331 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
6332 insertions until after all PHI nodes of the block are processed.
6334 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
6336 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
6338 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
6340 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
6342 2010-09-18 Richard Guenther <rguenther@suse.de>
6344 PR tree-optimization/45709
6345 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
6347 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
6349 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
6350 (dot_deps_stmt): Same.
6351 * graphite-poly.c (dot_lst): Same.
6352 * graphite-scop-detection.c (dot_all_scops): Same.
6355 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
6358 2009-12-16 Ben Elliston <bje@au.ibm.com>
6360 * tree-data-ref.c (dot_rdg_1): Added back.
6361 (dot_rdg): Same. Added "#if 0" around system call.
6363 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6364 Richard Henderson <rth@redhat.com>
6366 * config/i386/i386.c (initial_ix86_tune_features): Add
6367 X86_TUNE_PAD_SHORT_FUNCTION.
6368 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
6369 (ix86_count_insn): New.
6370 (ix86_pad_short_function): Likewise.
6371 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
6373 * config/i386/i386.h (ix86_tune_indices): Add
6374 X86_TUNE_PAD_SHORT_FUNCTION.
6375 (TARGET_PAD_SHORT_FUNCTION): New.
6377 * config/i386/i386.md (UNSPEC_NOPS): New.
6380 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6383 * calls.c (expand_call): Make sure that all variable sized
6384 adjustments are multiple of preferred stack boundary after
6387 2010-09-17 DJ Delorie <dj@redhat.com>
6389 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
6390 passed an invalid value, print an error instead of ICEing.
6391 (valid_psw_flag): New.
6392 (rx_expand_builtin): Call it for setpsw/clrpsw.
6393 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
6395 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
6396 (bitclr_in_memory): Likewise.
6397 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
6399 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6402 * cfgexpand.c (update_stack_alignment): New.
6403 (get_decl_align_unit): Use it.
6404 (expand_one_stack_var_at): Call update_stack_alignment.
6406 2010-09-17 Richard Guenther <rguenther@suse.de>
6408 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
6409 Properly copy the read string.
6411 2010-09-17 Joseph Myers <joseph@codesourcery.com>
6413 * doc/options.texi (Variable): Document.
6414 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
6415 generate target_flags declarations explicitly. Don't define
6416 VarExists variables for the driver.
6417 * common.opt (target_flags): New Variable record.
6418 (flag_dump_unnumbered, flag_dump_unnumbered_links,
6419 flag_var_tracking, flag_var_tracking_assignments,
6420 flag_var_tracking_assignments_toggle): Don't mark variables with
6422 * config/i386/i386.c (ix86_isa_flags): Don't define here.
6423 * config/i386/i386.opt (ix86_isa_flags): Define here.
6424 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
6425 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
6427 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
6428 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
6429 Only define for generator programs.
6430 * rtlanal.c (target_flags): Remove.
6431 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
6432 flag_var_tracking_assignments_toggle): Remove.
6434 2010-09-17 Michael Matz <matz@suse.de>
6436 PR tree-optimization/43432
6437 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
6438 Accept backwards consecutive accesses.
6439 (vect_create_data_ref_ptr): If step is negative generate
6441 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
6442 (perm_mask_for_reverse, reverse_vec_elements): New functions.
6443 (vectorizable_load): Handle loads with negative steps when easily
6446 2010-09-03 Jan Hubicka <jh@suse.cz>
6448 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
6450 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
6452 * config/v850/v850.c (v850_function_value_regno_p): Make static.
6453 Adjust comments. Declare.
6454 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
6455 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
6457 2010-09-17 Richard Guenther <rguenther@suse.de>
6459 * common.opt (combine): Remove.
6460 * gcc.c (default_compilers): Remove specs testing combine.
6461 The C compilers no longer can combine.
6462 (option_map): Remove -combine.
6463 (display_help): Remove -combine.
6464 (driver_handle_option): Remove OPT_combine handling.
6465 (compile_input_file_p): Remove.
6466 (do_spec): Remove code concerning combine.
6468 * doc/invoke.texi: Remove traces of -combine.
6469 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
6471 2010-09-17 Richard Guenther <rguenther@suse.de>
6474 * builtins.c (fold_builtin_memory_op): Always properly adjust
6475 alignment of memory accesses.
6477 2010-09-16 Jan Hubicka <jh@suse.cz>
6479 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
6482 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
6484 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
6486 * config/i386/i386.c (predict_jump): Add prototype.
6487 (flag_opts): Add -m8bit-idiv.
6488 (ix86_split_idivmod): New.
6490 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
6491 Add 2 splitters for SI/DI mode divide.
6492 (divmod<mode>4_1): New pattern.
6493 (udivmod<mode>4_1): Likewise.
6494 (testdi_ccno_1): Likewise.
6496 * config/i386/i386.opt (m8bit-idiv): New.
6498 * doc/invoke.texi: Document -m8bit-idiv.
6500 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
6503 * config/i386/i386.c (min_insn_size): Moved out of the
6504 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
6506 2010-09-16 Jan Hubicka <jh@suse.cz>
6508 * lto-cgraph.c (lto_output_node): Fix handling of clones.
6509 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
6510 unreachable clones with reachable clones.
6511 * tree-inline.c (copy_bb): Fix sanity checking when producing
6514 2010-09-16 Anatoly Sokolov <aesok@post.ru>
6516 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
6517 (TARGET_MEMORY_MOVE_COST): Define.
6518 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
6520 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
6522 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
6523 maybe_tidy_empty_bb.
6526 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
6527 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
6529 2010-09-16 Joseph Myers <joseph@codesourcery.com>
6531 * target.def (target_option.optimization): New hook.
6532 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
6533 TARGET_OPTION_OPTIMIZATION hook.
6534 * doc/tm.texi: Regenerate.
6535 * hooks.c (hook_void_int_int): New.
6536 * hooks.h (hook_void_int_int): Declare.
6537 * opts.c: Don't include tm_p.h.
6538 (decode_options): Use targetm.target_option.optimization instead
6539 of OPTIMIZATION_OPTIONS.
6540 * system.h (OPTIMIZATION_OPTIONS): Poison.
6541 * config/arm/arm-protos.h (arm_optimization_options): Remove.
6542 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
6543 (arm_optimization_options): Rename to arm_option_optimization.
6545 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
6546 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
6547 (cris_option_optimization): New.
6548 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
6549 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
6550 (crx_option_optimization): New.
6551 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
6552 * config/frv/frv-protos.h (frv_optimization_options): Remove.
6553 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
6554 (frv_optimization_options): Rename to frv_option_optimization.
6556 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
6557 * config/h8300/h8300.c (h8300_option_optimization): New.
6558 (TARGET_OPTION_OPTIMIZATION): Define.
6559 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
6560 * config/i386/i386-protos.h (optimization_options): Remove.
6561 * config/i386/i386.c (optimization_options): Rename to
6562 ix86_option_optimization. Make static.
6563 (TARGET_OPTION_OPTIMIZATION): Define.
6564 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
6565 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
6566 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
6567 (ia64_optimization_options): Rename to ia64_option_optimization.
6568 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
6569 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
6570 commented-out definition.
6571 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
6572 instead of OPTIMIZATION_OPTIONS.
6573 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
6574 (m32r_option_optimization): New.
6575 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
6576 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
6578 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
6579 (mcore_option_optimization): New.
6580 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
6581 * config/mep/mep-protos.h (mep_optimization_options): Remove.
6582 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
6583 (mep_optimization_options): Rename to mep_option_optimization.
6584 Make static. Take unused level and size parameters.
6585 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
6586 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
6587 (mmix_option_optimization): New.
6588 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
6589 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
6590 (pdp11_option_optimization): New.
6591 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
6592 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
6593 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
6594 (optimization_options): Rename to rs6000_option_optimization.
6596 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
6597 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
6598 * config/rx/rx.c (rx_set_optimization_options): Rename to
6599 rx_option_optimization. Make static. Take unused level and size
6601 (TARGET_OPTION_OPTIMIZATION): Define.
6602 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
6603 * config/s390/s390-protos.h (optimization_options): Remove.
6604 * config/s390/s390.c (optimization_options): Rename to
6605 s390_option_optimization. Make static. Don't mark size parameter
6607 (TARGET_OPTION_OPTIMIZATION): Define.
6608 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
6609 * config/sh/sh-protos.h (sh_optimization_options): Remove.
6610 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
6611 (sh_optimization_options): Rename to sh_option_optimization. Make
6612 static. Don't mark parameters unused.
6613 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
6614 * config/spu/spu-protos.h (spu_optimization_options): Remove.
6615 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
6616 (spu_optimization_options): Rename to spu_option_optimization.
6618 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
6619 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
6620 (v850_option_optimization): New.
6621 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
6622 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
6623 (xtensa_option_optimization): New.
6624 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
6626 2010-09-16 Joseph Myers <joseph@codesourcery.com>
6628 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
6629 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
6630 * doc/tm.texi: Regenerate.
6631 * system.h (OVERRIDE_OPTIONS): Poison.
6632 * target.def (override): Default to hook_void_void.
6633 * targhooks.c (default_target_option_override): Remove.
6634 * genmodes.c, machmode.def: Update comments mentioning
6636 * config/alpha/alpha-modes.def: Update comment mentioning
6637 alpha_override_options.
6638 * config/alpha/alpha-protos.h (override_options): Remove.
6639 * config/alpha/alpha.c (override_options): Rename to
6640 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
6641 (TARGET_OPTION_OVERRIDE): Define.
6642 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
6643 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
6644 of OVERRIDE_OPTIONS.
6645 * config/arc/arc-protos.h (arc_init): Remove.
6646 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
6647 (arc_init): Rename to arc_option_override. Make static.
6648 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
6649 (OVERRIDE_OPTIONS): Remove.
6650 * config/arm/arm-protos.h (arm_override_options): Remove.
6651 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
6652 (arm_override_options): Rename to arm_option_override. Make
6653 static. Call SUBTARGET_OVERRIDE_OPTIONS.
6654 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
6655 * config/arm/arm.md: Update comment referring to arm_override_options.
6656 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
6657 instead of OVERRIDE_OPTIONS.
6658 * config/avr/avr-protos.h (avr_override_options): Remove.
6659 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
6660 (avr_override_options): Rename to avr_option_override. Make static.
6661 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
6662 * config/bfin/bfin-protos.h (override_options): Remove (twice).
6663 * config/bfin/bfin.c (override_options): Rename to
6664 bfin_option_override. Make static.
6665 (TARGET_OPTION_OVERRIDE): Define.
6666 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
6667 * config/cris/cris-protos.h (cris_override_options): Remove.
6668 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
6669 (cris_override_options): Rename to cris_option_override. Make static.
6670 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
6671 * config/frv/frv-protos.h (frv_override_options): Remove.
6672 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
6673 (frv_override_options): Rename to frv_option_override. Make static.
6674 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
6675 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
6676 * config/h8300/h8300.c (h8300_init_once): Rename to
6677 h8300_option_override. Make static.
6678 (TARGET_OPTION_OVERRIDE): Define.
6679 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
6680 * config/i386/i386-protos.h (override_options): Remove.
6681 * config/i386/i386.c (override_options): Rename to
6682 ix86_option_override_internal. Make static. Comments referring
6683 to this function and callers changed.
6684 (ix86_option_override): New.
6685 (TARGET_OPTION_OVERRIDE): Define.
6686 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
6687 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
6688 * config/ia64/ia64.c (ia64_file_start): Update comment referring
6689 to ia64_override_options.
6690 * config/iq2000/iq2000-protos.h (override_options): Remove.
6691 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
6692 (override_options): Rename to iq2000_option_override. Make static.
6693 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
6694 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
6695 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
6696 (lm32_override_options): Rename to lm32_option_override. Make static.
6697 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
6698 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
6699 (m32r_option_override): New.
6700 (m32r_init): Update comment.
6701 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
6702 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
6703 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
6704 (m68hc11_override_options): Rename to m68hc11_option_override.
6705 Make static. Return void.
6706 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
6707 * config/m68k/m68k-protos.h (override_options): Remove.
6708 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
6709 (override_options): Rename to m68k_option_override. Make static.
6710 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
6711 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
6712 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
6713 (mcore_override_options): Rename to mcore_option_override. Make
6715 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
6716 * config/mep/mep-protos.h (mep_override_options): Remove.
6717 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
6718 (mep_override_options): Rename to mep_option_override. Make static.
6719 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
6720 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
6721 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
6722 (mmix_override_options): Rename to mmix_option_override. Make static.
6723 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
6724 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
6725 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
6726 (mn10300_override_options): Rename to mn10300_option_override.
6728 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
6729 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
6730 * config/moxie/moxie.c (moxie_override_options): Rename to
6731 moxie_option_override. Make static.
6732 (TARGET_OPTION_OVERRIDE): Define.
6733 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
6734 * config/picochip/picochip-protos.h (picochip_override_options):
6735 Remove. Update comment referring to picochip_override_options.
6736 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
6737 (picochip_override_options): Rename to picochip_option_override.
6738 Make static. Update comment and definition of
6739 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
6740 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
6741 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6742 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6743 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6744 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6745 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6746 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
6747 instead of OVERRIDE_OPTIONS.
6748 * config/rs6000/rs6000-modes.def: Update comment referring to
6749 rs6000_override_options.
6750 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
6751 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
6752 (rs6000_override_options): Rename to
6753 rs6000_option_override_internal. Make static. Commented
6754 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
6755 (rs6000_option_override): New.
6756 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
6757 instead of OVERRIDE_OPTIONS.
6758 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6759 * config/s390/s390-protos.h (override_options): Remove.
6760 * config/s390/s390.c (override_options): Rename to
6761 s390_option_override. Make static.
6762 (TARGET_OPTION_OVERRIDE): Define.
6763 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
6764 * config/score/score-protos.h (score_override_options): Remove.
6765 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
6766 (score_override_options): Rename to score_option_override. Make
6768 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
6769 Update comment referring to override_options.
6770 * config/score/score3.c (score3_override_options): Rename to
6771 score3_option_override.
6772 * config/score/score3.h (score3_override_options): Rename to
6773 score3_option_override.
6774 * config/score/score7.c (score7_override_options): Rename to
6775 score7_option_override.
6776 * config/score/score7.h (score7_override_options): Rename to
6777 score7_option_override.
6778 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
6779 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
6780 (sparc_override_options): Rename to sparc_option_override. Make
6781 static. Call SUBTARGET_OVERRIDE_OPTIONS.
6782 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
6783 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
6784 instead of OVERRIDE_OPTIONS.
6785 * config/spu/spu-protos.h (spu_override_options): Remove.
6786 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
6787 (spu_override_options): Rename to spu_option_override. Make
6789 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
6790 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
6792 * config/vax/vax-protos.h (override_options): Remove.
6793 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
6794 (override_options): Rename to vax_option_override. Make static.
6795 Call SUBTARGET_OVERRIDE_OPTIONS.
6796 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
6797 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
6798 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
6799 * config/xtensa/xtensa-protos.h (override_options): Remove.
6800 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
6801 (override_options): Rename to xtensa_option_override. Make static.
6802 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
6804 2010-09-16 Richard Guenther <rguenther@suse.de>
6806 PR tree-optimization/45623
6807 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
6808 (get_constraint_for_component_ref): If computing a constraint
6809 for the rhs handle type punning through unions.
6810 (get_constraint_for_address_of): Adjust.
6811 (get_constraint_for_1): Likewise.
6812 (get_constraint_for): Likewise.
6813 (get_constraint_for_rhs): New function.
6814 (do_structure_copy): Adjust.
6815 (make_constraint_to): Likewise.
6816 (handle_const_call): Likewise.
6817 (find_func_aliases): Likewise.
6818 (process_ipa_clobber): Likewise.
6819 (create_variable_info_for): Likewise.
6821 2010-09-16 Ira Rosen <irar@il.ibm.com>
6823 * tree-vectorizer.c: Fix documentation.
6824 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
6825 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
6826 is_pattern_stmt_p, is_loop_header_bb_p,
6827 stmt_vinfo_set_inside_of_loop_cost,
6828 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
6829 known_alignment_for_access_p): Likewise.
6830 * tree-vect-loop.c: Fix documentation.
6831 (vect_get_cost): Start function name from new line.
6832 * tree-vect-data-refs.c: Fix documentation.
6833 * tree-vect_stmts.c: Likewise.
6834 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
6835 (vectorizable_store): Free vec_oprnds if allocated.
6836 (vectorizable_condition): Initialize several variables to avoid
6838 * tree-vect-slp.c: Fix documentation.
6840 2010-09-16 Richard Guenther <rguenther@suse.de>
6842 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
6843 is TS_TRANSLATION_UNIT_DECL.
6844 (initialize_tree_contains_struct): Adjust.
6845 (all_translation_units): New global vector.
6846 (build_translation_unit_decl): New function.
6847 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
6848 (struct tree_translation_unit_decl): New.
6849 (all_translation_units): Declare.
6850 (union tree_node): Add translation_unit_decl member.
6851 (build_translation_unit_decl): Declare.
6852 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
6853 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
6855 (pack_value_fields): Call it.
6856 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
6857 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
6858 (lto_output_tree_pointers): Call it.
6859 * lto-streamer-in.c (lto_input_tree_ref): Handle references
6860 to TRANSLATION_UNIT_DECL.
6861 (unpack_ts_translation_unit_decl_value_fields): New function.
6862 (unpack_value_fields): Call it.
6863 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
6864 (lto_input_tree_pointers): Call it.
6865 * lto-streamer.c (check_handled_ts_structures): Adjust.
6866 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
6867 * c-decl.c (all_translation_units): Remove.
6868 (pop_scope): Use build_translation_unit_decl.
6869 (collect_all_refs): Adjust.
6870 (for_each_global_decl): Likewise.
6871 (c_write_global_declarations): Likewise.
6873 2010-09-16 Jakub Jelinek <jakub@redhat.com>
6876 * fold-const.c (fold_checksum_tree): Change slot from const void **
6877 to void **, use CONST_CAST_TREE to store into *slot.
6879 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
6881 * config/i386/i386.md: Remove unneeded empty conditions and
6882 preparation statements from expanders.
6883 * config/i386/mmx.md: Ditto.
6884 * config/i386/sse.md: Ditto.
6886 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
6888 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
6890 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
6892 PR rtl-optimization/45593
6893 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
6894 insns that were in delay slots as stand-alone insns.
6896 2010-09-15 Ian Lance Taylor <iant@google.com>
6898 * incpath.c (remove_duplicates): If name is not a directory, issue
6899 a warning rather than an error.
6901 2010-09-15 Martin Jambor <mjambor@suse.cz>
6904 * tree-sra.c (create_access): Check for bit-fields directly.
6906 2010-09-15 Jakub Jelinek <jakub@redhat.com>
6908 PR tree-optimization/45633
6909 * tree-cfg.c (verify_gimple_assign_binary): Allow
6910 MINUS_EXPR with lhs and rhs1 pointer vector and
6911 rhs2 sizetype vector.
6912 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
6913 or vector pointer use TER to optimize pointer subtraction.
6915 2010-09-15 Jie Zhang <jie@codesourcery.com>
6917 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
6920 2010-09-15 Ian Lance Taylor <iant@google.com>
6922 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
6924 2010-09-15 Ian Lance Taylor <iant@google.com>
6926 * function.c (get_arg_pointer_save_area): Set
6927 arg_pointer_save_area_init to true.
6929 2010-09-15 Martin Jambor <mjambor@suse.cz>
6931 * tree-sra.c (generate_subtree_copies): Updated comment.
6932 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
6933 obtained from the statement iterator instead.
6934 (load_assign_lhs_subreplacements): Removed parameters lhs and
6935 right_offset, which is obtained from top_racc instead. Parameter lacc
6936 is now expected to be the root of the processed tree rather than root's
6937 first child. Updated all callers.
6939 2010-09-15 Joseph Myers <joseph@codesourcery.com>
6941 * config/pdp11/pdp11.c (register_move_cost): Rename to
6942 pdp11_register_move_cost.
6943 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
6944 pdp11_register_move_cost.
6945 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
6946 pdp11_register_move_cost instead of register_move_cost.
6948 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
6950 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
6951 pattern for vmovn. Expansion in case of non
6952 -mvectorize-with-neon-quad.
6953 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
6954 non- -mvectorize-with-neon-quad case.
6955 (move_lo_quad_<mode>): New expansion to vmov into low part.
6956 (move_hi_quad_<mode>): New expansion to vmov into high part.
6957 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
6958 (move_lo_quad_v4sf): Likewise.
6959 (move_lo_quad_v8hi): Likewise.
6960 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
6962 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
6964 * config/arm/iterators.md (ANY128): New mode iterator.
6965 (V_narrow_pack): New mode attribute.
6966 (V_HALF): Add attribute.
6967 (V_DOUBLE): Add attribute.
6968 (V_mode_nunits): Add attribute.
6970 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
6972 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
6973 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
6975 2010-09-15 Olivier Hainque <hainque@adacore.com>
6976 Jose Ruiz <ruiz@adacore.com>
6978 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
6979 * config/alpha/osf5-unwind.h: New file.
6981 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6984 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
6985 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
6986 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
6988 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6990 * c-lang.h (struct lang_type): Add variable_size GTY option.
6992 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6995 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
6997 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6999 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
7000 result isn't used in memory address.
7002 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7004 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
7005 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
7006 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
7007 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
7008 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
7009 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
7011 * target.def: Add units_per_simd_word to vectorize.
7013 * targhooks.c (default_units_per_simd_word): New.
7014 * targhooks.h (default_units_per_simd_word): Likewise.
7015 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
7016 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7017 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
7018 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7019 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
7020 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7021 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
7022 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7024 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
7025 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
7027 * tree-vect-stmts.c: Don't include "tm_p.h".
7028 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
7029 with targetm.vectorize.units_per_simd_word.
7031 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
7033 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
7035 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
7036 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
7038 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
7039 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
7041 * doc/tm.texi: Regenerated.
7043 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7045 * tree-vect-stmts.c: Include "tm_p.h".
7047 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
7050 2010-09-14 Martin Jambor <mjambor@suse.cz>
7052 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
7053 location of generated statement. Changed all callers.
7054 (build_ref_for_model): New parameter loc which used to set location of
7055 all generated expressions. Changed all callers.
7056 (generate_subtree_copies): Likewise.
7057 (init_subtree_with_zero): Likewise.
7058 (sra_modify_expr): Set locations of all generated statements and
7059 expressions to the location the original statement.
7060 (handle_unscalarized_data_in_subtree): Likewise.
7061 (load_assign_lhs_subreplacements): Likewise.
7062 (sra_modify_constructor_assign): Likewise.
7063 (sra_modify_assign): Likewise.
7065 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
7070 * doc/install.texi (sparc*-*-*): New section.
7071 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
7073 2010-09-14 Jakub Jelinek <jakub@redhat.com>
7076 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
7077 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
7078 (expand_builtin): Adjust caller.
7079 (expand_builtin_unop): Only use subtarget if it has the right mode.
7081 2010-09-14 Tristan Gingold <gingold@adacore.com>
7083 * configure.ac (plugins): Fix typos.
7084 * configure: Regenerate.
7086 2010-09-14 Jakub Jelinek <jakub@redhat.com>
7089 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
7090 gen_type_die for function/method return type.
7092 2010-09-14 Ira Rosen <irar@il.ibm.com>
7094 PR tree-optimization/45470
7095 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7096 can throw an exception.
7097 * tree-vect-stmts.c (vectorizable_call): Likewise.
7099 2010-09-14 DJ Delorie <dj@redhat.com>
7102 * config/mep/mep-protos.h (mep_save_register_info,
7103 mep_reinit_regs, mep_init_regs): Declare.
7105 * config/mep/mep.c: Move all target definitions to the end of the
7106 file to avoid the need for duplicate declarations.
7107 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
7108 (mep_reorg_erepeat): Remove unused variables.
7109 (mep_expand_builtin): Likewise.
7111 * config/mep/mep-pragma.c: Don't include rtl.h.
7112 (INVALID_REGNUM): New.
7113 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
7115 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
7116 Avoid enum/integer math.
7118 2010-09-13 Joseph Myers <joseph@codesourcery.com>
7121 * config/mep/t-mep (GTM_H): Add insn-constants.h.
7122 * config/mep/mep.c (mep_conditional_register_usage): Take no
7124 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
7126 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
7127 call to mep_conditional_register_usage.
7129 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
7132 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
7135 2010-09-13 Jakub Jelinek <jakub@redhat.com>
7137 PR rtl-optimization/45617
7138 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
7139 even if low N bits of X aren't known to be zero.
7141 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
7143 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
7145 * config/i386/i386.c (initial_ix86_tune_features): Add
7146 X86_TUNE_VECTORIZE_DOUBLE.
7147 (ix86_units_per_simd_word): New.
7149 * config/i386/i386.h (ix86_tune_indices): Add
7150 X86_TUNE_VECTORIZE_DOUBLE.
7151 (TARGET_VECTORIZE_DOUBLE): New.
7152 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
7154 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
7156 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
7157 (new_temp_expr_table): Allocate call_cnt vector.
7158 (free_temp_expr_table): Free it.
7159 (process_replaceable): Add call_cnt parm and set in vector.
7160 (find_replaceable_in_bb): Skip replacement if def/use span a call.
7161 (debug_ter): Dump call_cnt value, remove stderr uses.
7163 2010-09-13 Jan Hubicka <jh@suse.cz>
7165 * tree.c (build_zero_cst): New.
7166 * tree.h (build_zero_cst): Declare.
7167 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
7168 (get_base_constructor): Break out from ...
7169 (fold_const_aggregate_ref): Here; handle empty constructors.
7171 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
7173 * config/arm/arm.md: (define_attr "conds"): Update comment.
7174 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
7175 conds attribute to clob.
7176 (arm_sync_compare_and_swapsi): Likewise.
7177 (arm_sync_compare_and_swap<mode>): Likewise.
7178 (arm_sync_lock_test_and_setsi): Likewise.
7179 (arm_sync_lock_test_and_set<mode>): Likewise.
7180 (arm_sync_new_<sync_optab>si): Likewise.
7181 (arm_sync_new_nandsi): Likewise.
7182 (arm_sync_new_<sync_optab><mode>): Likewise.
7183 (arm_sync_new_nand<mode>): Likewise.
7184 (arm_sync_old_<sync_optab>si): Likewise.
7185 (arm_sync_old_nandsi): Likewise.
7186 (arm_sync_old_<sync_optab><mode>): Likewise.
7187 (arm_sync_old_nand<mode>): Likewise.
7189 2010-09-13 Olivier Hainque <hainque@adacore.com>
7191 * fwprop.c (forward_propagate_and_simplify): Only attach a
7192 REG_EQUAL note to an insn if the destination is a register.
7193 * gcse.c (try_replace_reg): Likewise.
7195 2010-09-13 Richard Guenther <rguenther@suse.de>
7197 PR tree-optimization/45611
7198 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
7199 (copy_ref_info): Likewise.
7201 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
7206 * tree-pretty-print.c (dump_generic_node): Disregard top-level
7207 types of MEM_REF pointer types to the same type.
7209 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
7211 PR rtl-optimization/41087
7212 * ifcvt.c (noce_get_condition): Don't allow conditions with
7215 2010-09-12 Anatoly Sokolov <aesok@post.ru>
7217 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7218 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
7219 * config/frv/frv.c (frv_register_move_cost): Make static. Change
7220 arguments type to reg_class_t. Add mode argument.
7221 (frv_memory_move_cost): New.
7222 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
7224 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
7226 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
7227 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
7229 2010-09-10 Jan Hubicka <jh@suse.cz>
7231 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
7233 2010-09-10 Richard Guenther <rguenther@suse.de>
7235 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
7236 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
7237 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
7238 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
7239 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
7241 2010-09-10 Richard Guenther <rguenther@suse.de>
7243 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
7244 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
7245 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
7246 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
7248 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
7251 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
7252 of string folding is of integral type.
7254 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
7256 * doc/invoke.texi (-x): Fix typo.
7258 2010-09-10 Richard Guenther <rguenther@suse.de>
7261 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
7262 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7263 Output DECL_DEBUG_EXPR.
7264 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7265 Input DECL_DEBUG_EXPR.
7267 2010-09-10 Richard Guenther <rguenther@suse.de>
7269 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
7270 (build_index_type): Implement in terms of build_range_type.
7271 (build_range_type): Do not allow NULL_TREE type, improve
7272 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
7274 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
7275 create a distinct copy of the type.
7277 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
7279 * configure: Regenerated.
7280 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
7282 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7284 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
7285 * config/arm/cortex-a9-neon.md: New and partially generated.
7286 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
7288 2010-09-10 Richard Guenther <rguenther@suse.de>
7290 * tree.h (build_index_2_type): Remove.
7291 * tree.c (build_index_2_type): Remove.
7293 2010-09-10 Jakub Jelinek <jakub@redhat.com>
7296 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
7297 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
7298 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
7300 2010-09-10 Martin Jambor <mjambor@suse.cz>
7302 PR tree-optimization/44972
7303 * tree-sra.c: Include toplev.h.
7304 (build_ref_for_offset): Entirely reimplemented.
7305 (build_ref_for_model): New function.
7306 (build_user_friendly_ref_for_offset): New function.
7307 (analyze_access_subtree): Removed build_ref_for_offset check.
7308 (propagate_subaccesses_across_link): Likewise.
7309 (create_artificial_child_access): Use
7310 build_user_friendly_ref_for_offset.
7311 (propagate_subaccesses_across_link): Likewise.
7312 (ref_expr_for_all_replacements_p): Removed.
7313 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
7314 (sra_modify_expr): Use build_ref_for_model.
7315 (load_assign_lhs_subreplacements): Likewise.
7316 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
7317 checks for return values of build_ref_for_offset.
7318 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
7319 build_ref_for_offset.
7320 * ipa-prop.h: Include gimple.h
7321 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
7322 (ipa_analyze_indirect_call_uses): Update comment.
7323 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
7324 (IPA_PROP_H): Likewise.
7326 2010-09-10 Martin Jambor <mjambor@suse.cz>
7328 PR tree-optimization/44972
7329 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
7330 calling build_ref_for_offset.
7332 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7334 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
7335 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
7336 * config/arm/arm-tune.md: Regenerate.
7337 * doc/invoke.texi (ARM Options): Document it.
7339 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
7341 * config/i386/i386.c: Include sched-int.h.
7342 (TARGET_SCHED_DISPATCH): Defined.
7343 (TARGET_SCHED_DISPATCH_DO): Defined.
7344 (DISPATCH_WINDOW_SIZE): Defined.
7345 (MAX_DISPATCH_WINDOWS): Defined.
7346 (MAX_INSN): Defined.
7348 (MAX_IMM_SIZE): Defined.
7349 (MAX_IMM_32): Defined.
7350 (MAX_IMM_64): Defined.
7351 (MAX_LOAD): Defined.
7352 (MAX_STORE): Defined.
7354 (dispatch_group): New.
7355 (num_allowable_groups): New.
7357 (sched_insn_info_s): New.
7358 (dispatch_windows_s): New.
7360 (dispatch_window_list): New.
7361 (dispatch_window_list1): New.
7362 (get_mem_group): New.
7364 (dispatch_violation): New.
7368 (allocate_window): New.
7369 (init_dispatch_sched): New.
7370 (is_end_basic_block): New.
7371 (process_end_window): New.
7372 (allocate_next_window): New.
7373 (find_constant_1): New.
7374 (find_constant): New.
7375 (get_num_immediates): New.
7376 (has_immediate): New.
7377 (get_insn_path): New.
7378 (get_insn_group): New.
7379 (count_num_restricted): New.
7380 (fits_dispatch_window): New.
7381 (add_insn_window): New.
7382 (add_to_dispatch_window): New.
7383 (debug_dispatch_window_file): New.
7384 (debug_dispatch_window): New.
7385 (debug_insn_dispatch_info_file): New.
7386 (debug_ready_dispatch): New.
7388 (has_dispatch): New.
7389 * config/i386/i386.h (debug_ready_dispatch): Declared.
7390 (debug_dispatch_window): Declared.
7391 * config/i386/i386.opt (mdispatch-scheduler): New flag.
7392 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
7393 (TARGET_SCHED_DISPATCH_DO): New.
7394 * doc/tm.texi: Regererated.
7395 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
7396 ready_remove_first_dispatch
7397 (schedule_block): Call targetm.sched.dispatch and
7398 targetm.sched.dispatch_do.
7399 (sched_init): Call targetm.sched.dispatch and
7400 targetm.sched.dispatch_do.
7401 (ready_remove_first_dispatch): New.
7402 (number_in_ready): New.
7403 (get_ready_element): New.
7404 * hooks.c (hook_bool_rtx_int_false): New.
7405 (hook_void_rtx_int): New.
7406 * hooks.h (hook_bool_rtx_int_false): Declared.
7407 (hook_void_rtx_int): Declared.
7408 * sched-int.h (IS_DISPATCH_ON): Defined.
7410 (DISPATCH_VIOLATION): Defined.
7411 (FITS_DISPATCH_WINDOW): Defined.
7412 (DISPATCH_INIT): Defined.
7413 (ADD_TO_DISPATCH_WINDOW): Defined.
7414 (get_ready_element): Declared.
7415 (number_in_ready): Declared.
7416 * target.def (dispatch): Defined.
7417 (dispatch_do): Defined.
7419 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
7422 * reload1.c (merge_assigned_reloads): Remove.
7423 (reload_as_needed): Don't call it.
7425 2010-09-09 Anatoly Sokolov <aesok@post.ru>
7427 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
7428 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7429 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7431 2010-09-09 Matthias Klose <doko@ubuntu.com>
7434 * configure.ac (--enable-plugin): Enhance for cross builds.
7435 * configure: Regenerate.
7437 2010-09-09 Jan Hubicka <jh@suse.cz>
7439 PR tree-optimization/45598
7440 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
7441 string folding is of integral type.
7443 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
7445 * configure.ac (gnu_indirect_function): New test.
7446 * configure: Rebuilt.
7447 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
7448 * defaults.h (IFUNC_ASM_TYPE): Provide default.
7450 * doc/extend.texi (Function Attributes): Document ifunc.
7451 * varasm.c (do_assemble_alias): Deal with ifuncs too.
7453 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
7455 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
7456 epilogue instruction move.
7458 2010-09-09 Jan Hubicka <jh@suse.cz>
7460 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
7461 command line to allow more partitions than input files.
7463 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
7466 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
7468 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
7471 * ira.c (pseudo_for_reload_consideration_p): Don't use
7472 flag_ira_share_spill_slots.
7474 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7476 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
7477 point zero operands that fit into a single GPR.
7478 (s390_preferred_reload_class): Ensure we only return general-purpose
7480 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
7481 floating-point zero operands into GPRs.
7482 ("*mov<mode>_64"): Likewise.
7483 ("mov<mode>"): Likewise using lhi.
7485 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7487 * config/s390/s390.c (s390_symref_operand_p): Return false for
7488 literal pool references.
7489 (s390_check_qrst_address): Update caller.
7491 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
7493 * config/i386/predicates.md (ext_register_operand): Check that
7494 SUBREG_REG is really a register before looking for REGNO.
7495 (reg_not_xmm0_operand): Handle SUBREGs correctly.
7496 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
7498 2010-09-09 Jakub Jelinek <jakub@redhat.com>
7500 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
7501 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
7502 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
7503 * print-rtl.c (print_rtx): Likewise.
7504 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
7505 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
7506 for ADDR_EXPR with non-addressable object.
7507 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
7508 (struct dw_val_struct): Add v.val_decl_ref.
7509 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
7510 Handle DW_OP_GNU_implicit_pointer.
7511 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
7512 (get_ref_die_offset_label): New function.
7513 (implicit_ptr_descriptor): New function.
7514 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
7515 (loc_descriptor): Likewise.
7516 (gen_variable_die): Put even definitions into decl_die_table.
7517 (resolve_addr_in_expr): Resolve still unresolved
7518 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
7520 (dwarf2out_finish): Call output_location_lists after outputting
7521 .debug_info and .debug_abbrev instead of before.
7523 2010-09-09 Roland McGrath <roland@redhat.com>
7525 * dwarf2out.c (DWARF_REF_SIZE): Define.
7526 (size_of_loc_descr): Use it for DW_OP_call_ref.
7528 2010-09-09 Alan Modra <amodra@gmail.com>
7530 * doc/invoke.text: Reinstate mcmodel=medium.
7531 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
7532 CMODEL_MEDIUM as default.
7533 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
7534 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
7535 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
7536 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
7538 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7541 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
7542 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
7543 (builtin_longjmp): Likewise.
7544 (allocate_stack): Use hard_frame_pointer_rtx instead of
7546 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
7547 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
7548 (pa_can_eliminate): Likewise.
7549 (TARGET_INTERNAL_ARG_POINTER): Define.
7550 (TARGET_CAN_ELIMINATE): Define.
7551 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
7553 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
7554 (pa_internal_arg_pointer, pa_can_eliminate,
7555 pa_initial_elimination_offset): New.
7556 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
7557 (HARD_FRAME_POINTER_REGNUM): Set to register three.
7558 (INITIAL_FRAME_POINTER_OFFSET): Delete.
7559 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
7561 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
7562 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
7563 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
7564 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
7565 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
7566 new soft frame pointer.
7567 * config/pa/pa64-regs.h: Likewise.
7569 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
7571 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
7573 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
7575 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
7578 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
7580 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
7584 * tree-pretty-print.c (dump_generic_node): Disregard top-level
7585 qualifiers in otherwise equal MEM_REF pointer types.
7586 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
7587 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
7589 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7592 * config/arm/arm.md (bswapsi2): Handle condition correctly
7593 for armv6 and optimize_size.
7595 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7598 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
7600 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
7602 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
7603 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
7604 ix86_expand_strlen, legitimate_pic_address_disp_p,
7605 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
7606 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
7607 ix86_check_movabs, ix86_secondary_memory_needed): Change function
7609 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
7610 return_in_memory_ms_64, ix86_check_movabs,
7611 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
7612 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
7613 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
7614 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
7615 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
7616 ix86_secondary_memory_needed): Change to bool. Return
7617 "true" and "false" values.
7618 * config/i386/i386.md: Return "true" and "false" values.
7620 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7622 * doc/sourcebuild.texi (Effective-Target Keywords): Document
7623 run_expensive_tests.
7625 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7627 * toplev.c (output_stack_usage): Use lbasename instead of basename.
7629 2010-09-08 Martin Jambor <mjambor@suse.cz>
7632 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
7635 2010-09-08 Richard Guenther <rguenther@suse.de>
7637 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
7639 (iterative_hash_gimple_type): Likewise.
7640 (gimple_type_hash): Likewise.
7641 (gimple_register_type): Likewise.
7642 (print_gimple_types_stats): Likewise.
7643 (free_gimple_type_tables): Likewise.
7645 2010-09-08 Michael Matz <matz@suse.de>
7647 PR tree-optimization/43430
7648 * tree-vect-stmts.c (vectorizable_condition): Support multiple
7649 copies for conditional statements if it's not part of a reduction.
7651 2010-09-08 Michael Matz <matz@suse.de>
7653 PR tree-optimization/33244
7654 * tree-ssa-sink.c (statement_sink_location): Don't sink into
7657 2010-09-08 Richard Guenther <rguenther@suse.de>
7659 PR tree-optimization/45578
7660 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
7661 Be more careful when transfering alignment information to
7662 the new induction variable.
7663 (copy_ref_info): Likewise.
7665 2010-09-08 Richard Guenther <rguenther@suse.de>
7667 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
7668 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
7670 2010-09-08 Arnaud Charlet <charlet@adacore.com>
7672 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
7673 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
7675 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
7678 * doc/md.texi: Fixed modes on several standard pattern names.
7680 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
7682 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
7683 (ashl<mode>3): ...this.
7684 (loongson_psra<V_suffix>): Rename to...
7685 (ashr<mode>3): ...this.
7686 (loongson_psrl<V_suffix>): Rename to...
7687 (lshr<mode>3): ...this.
7688 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
7689 (CODE_FOR_loongson_psllw): Define.
7690 (CODE_FOR_loongson_psrlh): Define.
7691 (CODE_FOR_loongson_psrlw): Define.
7692 (CODE_FOR_loongson_psrah): Define.
7693 (CODE_FOR_loongson_psraw): Define.
7695 2010-09-07 Richard Henderson <rth@redhat.com>
7697 * tree-vect-data-refs.c: Include tm_p.h.
7698 * Makefile.in (tree-vect-data-refs.o): Update deps.
7699 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
7700 Move delarations outside #ifdef RTX_CODE.
7702 2010-09-07 Richard Henderson <rth@redhat.com>
7704 * final.c (rest_of_handle_final): Unconditionally do
7705 output_function_exception_table before assemble_end_function.
7707 2010-09-07 Jan Hubicka <jh@suse.cz>
7709 * tree-inline.c (tree_inlinable_function_p): Do not test
7711 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
7712 update_callee_keys, cgraph_decide_inlining): Test function availability.
7713 * cif-code.def (OVERWRITABLE): New code.
7715 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
7716 Jack Howarth <howarth@bromo.med.uc.edu>
7721 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
7722 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
7723 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
7726 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
7728 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
7729 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
7731 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
7733 * config.gcc: Don't append t-android for Android targets.
7735 * config/t-android: Removed.
7737 2010-09-07 Richard Henderson <rth@redhat.com>
7739 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
7740 * doc/tm.texi.in: Add doc marker.
7741 * doc/tm.texi: Rebuild.
7742 * except.c (switch_to_exception_section): Always build.
7743 (output_one_function_exception_table): Move section switch,
7744 personality output, and label output ...
7745 (output_function_exception_table): ... here. Use the new
7748 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
7749 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
7750 TARGET_ASM_INIT_SECTIONS): New.
7751 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
7753 (TARGET_ASM_UNWIND_EMIT): Update to match.
7754 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
7756 * config/arm/arm.c (arm_asm_emit_except_personality): New.
7757 (arm_asm_init_sections): New.
7758 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
7760 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7762 * config/arm/arm.md: Remove unused variable.
7764 2010-09-07 Anatoly Sokolov <aesok@post.ru>
7766 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7767 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
7768 (m32r_memory_move_cost): New function.
7770 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
7772 * config.gcc: Append t-android for Android targets.
7774 * config/t-android: New.
7776 2010-09-07 Richard Henderson <rth@redhat.com>
7778 * target.def (unwind_emit_before_insn): New hook.
7779 * doc/tm.texi.in: Add @hook marker for it.
7780 * doc/tm.texi: Rebuild.
7781 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
7783 2010-09-07 Martin Jambor <mjambor@suse.cz>
7786 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
7787 are any type attributes.
7789 2010-09-07 Jan Hubicka <jh@suse.cz>
7791 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
7792 array_ref_low_bound in string access folding.
7794 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
7797 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
7798 eh_return fixup sequence.
7800 2010-09-07 Jan Hubicka <jh@suse.cz>
7802 * gimple-fold.c (maybe_fold_reference): Verify that operand is
7803 gimple_min_invariant.
7805 2010-09-07 Richard Guenther <rguenther@suse.de>
7808 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
7809 nor CONSTRUCTOR can trap.
7810 * tree-complex.c (update_complex_assignment): Update EH info.
7812 2010-09-07 Richard Guenther <rguenther@suse.de>
7815 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
7816 * passes.c (execute_function_todo): Do not verify anything if
7819 2010-09-07 Richard Guenther <rguenther@suse.de>
7821 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
7823 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
7826 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
7827 New define_mode_attrs.
7828 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
7829 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
7830 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
7831 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
7832 Remove pool_range attribute.
7833 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
7834 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
7835 pool_range and neg_pool_range attributes.
7836 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
7837 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
7838 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
7840 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
7842 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
7845 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
7848 * config/i386/mmx.md (*mov<mode>_internal_rex64,
7849 *mov<mode>_internal_avx, *mov<mode>_internal,
7850 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
7851 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
7853 2010-09-06 Mark Mitchell <mark@codesourcery.com>
7855 * c-typeck.c (do_warn_double_promotion): Remove.
7856 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
7859 2010-09-06 Anatoly Sokolov <aesok@post.ru>
7861 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
7862 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
7863 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
7864 argument type to reg_class_t. Change result type to bool.
7865 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7867 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
7870 * gthr-posix.h (__gthread_objc_thread_detach): Use
7871 _objc_thread_attribs when detaching a thread.
7872 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
7874 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
7877 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
7878 * configure: Regenerated.
7880 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7882 * combine.c (try_combine): Set subst_low_luid to i0.
7884 2010-09-06 Richard Guenther <rguenther@suse.de>
7886 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
7887 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
7888 (build_aligned_type): Declare.
7889 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
7890 (check_aligned_type): New function.
7891 (build_aligned_type): Likewise.
7892 * expr.c (expand_assignment): Handle misaligned stores via
7893 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
7894 (expand_expr_real_1): Likewise.
7895 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
7896 * tree-vect-stmts.c (vectorizable_store): Do not build
7897 MISALIGNED_INDIRECT_REF but initialize alignment information.
7898 (vectorizable_load): Likewise.
7899 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
7901 * cfgexpand.c (expand_debug_expr): Likewise.
7902 * dwarf2out.c (loc_list_from_tree): Likewise.
7903 * fold-const.c (maybe_lvalue_p): Likewise.
7904 (operand_equal_p): Likewise.
7905 (build_fold_addr_expr_with_type_loc): Likewise.
7906 * gimplify.c (gimplify_addr_expr): Likewise.
7907 (gimplify_expr): Likewise.
7908 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
7909 (verify_gimple_assign_single): Likewise.
7910 * tree-dump.c (dequeue_and_dump): Likewise.
7911 (tree_could_trap_p): Likewise.
7912 * tree-predcom.c (ref_at_iteration): Likewise.
7913 * tree-pretty-print.c (dump_generic_node): Likewise.
7914 (op_code_prio): Likewise.
7915 (op_symbol_code): Likewise.
7916 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
7917 * tree-ssa-loop-im.c (for_each_index): Likewise.
7918 (gen_lsm_tmp_name): Likewise.
7919 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
7920 (find_interesting_uses_address): Likewise.
7921 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
7922 * tree-ssa-operands.c (get_expr_operands): Likewise.
7923 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7924 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
7925 (ao_ref_init_from_vn_reference): Likewise.
7926 * tree.c (staticp): Likewise.
7927 (build1_stat): Likewise.
7928 (reference_alias_ptr_type): Likewise.
7929 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7930 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
7931 MISALIGNED_INDIRECT_REF handling.
7933 2010-09-06 Richard Guenther <rguenther@suse.de>
7935 PR tree-optimization/45534
7936 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
7937 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
7939 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
7940 valid on the target.
7942 2010-09-06 Andreas Schwab <schwab@redhat.com>
7944 * configure.ac: Quote argument of AC_MSG_WARN.
7945 * configure: Regenerate.
7947 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
7949 * sel-sched.c (move_cond_jump): Correct arguments to
7950 maybe_tidy_empty_bb.
7951 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
7953 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
7955 PR rtl-optimization/44919
7956 * sel-sched.c (move_cond_jump): Remove assert, check that
7957 the several blocks case can only happen with mutually exclusive
7958 insns instead. Rewrite the movement code to support moving through
7959 several basic blocks.
7961 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
7963 * config/i386/i386.md (iptrsize): New mode attribute.
7965 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
7967 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
7968 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
7969 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
7970 (stack_tls_protect_set_<mode>): Ditto from
7971 stack_tls_protect_set_{si,di}. Use %@ to output segment register
7972 of thread base pointer load.
7973 (stack_tls_protect_test_<mode>): Ditto from
7974 stack_tls_protect_test_{si,di}. Use %@ to output segment register
7975 of thread base pointer load.
7976 (stack_protect_set): Rewrite using indirect functions.
7977 (stack_protect_test): Ditto.
7978 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
7979 (ix86_print_operand): Handle '@'.
7981 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
7983 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
7986 2010-09-05 Mark Mitchell <mark@codesourcery.com>
7988 * doc/invoke.texi: Document -Wdouble-promotion.
7989 * c-typeck.c (convert_arguments): Check for implicit conversions
7990 from float to double.
7991 (do_warn_double_promotion): New function.
7992 (build_conditional_expr): Use it.
7993 (build_binary_op): Likewise.
7995 2010-09-05 Richard Guenther <rguenther@suse.de>
7997 PR tree-optimization/45535
7998 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
7999 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
8001 (indirect_refs_may_alias_p): Likewise.
8003 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
8005 * config/sh/sh.c (sh_option_override): Make static.
8006 Adjust comments. Declare.
8007 (sh_function_value_regno_p): Likewise.
8008 (sh_register_move_cost): Modify the arguments, make static.
8009 Adjust comments. Declare.
8010 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
8011 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8012 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
8013 REGISTER_MOVE_COST): Delete.
8014 * config/sh/sh-protos.h (sh_override_options): Delete.
8015 (sh_register_move_cost): Delete.
8016 (sh_function_value_regno_p): Delete.
8018 2010-09-04 Anatoly Sokolov <aesok@post.ru>
8020 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
8021 m32r_function_value_regno_p): New functions.
8022 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8023 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
8024 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
8025 FUNCTION_VALUE_REGNO_P): Remove.
8027 2010-09-04 Jan Hubicka <jh@suse.cz>
8029 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
8030 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
8031 fold_read_from_constant_string.
8033 * gimple.h (canonicalize_constructor_val): Declare.
8034 * gimple-fold.c (canonicalize_constructor_val): New function.
8035 (get_symbol_constant_value):Use it.
8036 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
8038 2010-09-04 Jan Hubicka <jh@suse.cz>
8040 * tree-switch-conversion.c (build_one_array): Set constructor to be
8042 * varpool.c (varpool_finalize_decl): Compute const_value_known.
8044 2010-09-04 Richard Guenther <rguenther@suse.de>
8047 * tree-flow.h (force_gimple_operand_1): Declare.
8048 (force_gimple_operand_gsi_1): Likewise.
8049 * gimplify.c (force_gimple_operand_1): New worker taking a
8050 gimple predicate for ...
8051 (force_gimple_operand): ... which now wraps it.
8052 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
8053 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
8055 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
8056 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
8057 (create_mem_ref): Likewise.
8059 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
8061 * config/i386/predicates.md (sse_reg_operand): New predicate.
8062 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
8063 predicate for operand 1.
8064 (XFmode push splitter): Use fp_register_operand predicate
8066 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
8067 (SF-DF float_extend push splitter): Add reload_completed insn
8069 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
8070 MODEF mode macro. Add reload_completed insn predicate.
8072 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
8074 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
8075 (struct df_extract_ref): Remove.
8076 (union df_ref_d): Remove extract_ref member.
8077 (df_ref_create): Remove last three arguments.
8078 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
8079 * df-scan.c (df_ref_record): Remove last three arguments, do not
8080 pass them to df_ref_create_structure.
8081 (df_uses_record): Remove first and last three arguments. Replace
8082 first argument with DF_REF_REGULAR, adjust calls to remove the
8083 width, offset and mode. Always call recursively on the second
8084 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
8085 (df_ref_create_structure): Remove first argument.
8086 (struct df_scan_problem_data): Remove ref_extract_pool.
8087 (df_scan_free_internal): Do not free it.
8088 (df_scan_alloc): Do not allocate it.
8089 (df_ref_create): Remove last three arguments, do not pass them to
8090 df_ref_create_structure.
8091 (df_free_ref): Remove DF_REF_EXTRACT case.
8092 (df_notes_rescan): Adjust call to df_uses_record.
8093 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
8094 Remove DF_REF_EXTRACT case.
8095 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
8096 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
8097 and SUBREG definitions.
8098 (df_get_conditional_uses): Remove references to width/offset/mode,
8099 adjust call to df_ref_create_structure.
8100 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
8101 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
8102 calls to df_uses_record and df_ref_record.
8103 * fwprop.c (update_df): Remove references to width/offset/mode,
8104 adjust call to df_ref_create.
8106 2010-09-03 Jan Hubicka <jh@suse.cz>
8108 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
8109 (build_cdtor_fns): Update use of build_cdtor.
8111 2010-09-03 Joseph Myers <joseph@codesourcery.com>
8113 * doc/options.texi (SeparateAlias): Document.
8114 * opt-functions.awk (switch_flags): Handle SeparateAlias.
8115 * opth-gen.awk: Generate enumeration names for options marked
8116 SeparateAlias, but not for those marked Ignore.
8117 * opts-common.c (generate_canonical_option): Don't output separate
8118 argument for options marked CL_SEPARATE_ALIAS.
8119 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
8120 * opts.h (CL_SEPARATE_ALIAS): New.
8121 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
8122 CL_COMMON): Adjust definitions.
8123 * config/i386/darwin.opt, config/mips/sde.opt: New.
8124 * common.opt (fdump-final-insns): New.
8125 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
8127 (mips*-sde-elf*): Add mips/sde.opt.
8128 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
8129 -mno-data-in-code and -mcode-xonly here.
8130 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
8131 * gcc.c (option_map): Add "j" to --dump entry.
8132 (translate_options): Don't translate -d to -foutput-class-dir= here.
8134 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
8136 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
8138 (compute_all_dependences): Same.
8139 (create_rdg_edge_for_ddr): Same.
8140 * tree-data-ref.h (DR_IS_WRITE): New.
8141 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
8142 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
8143 (write_memrefs_written_at_least_once): Same.
8144 * tree-predcom.c (suitable_component_p): Same.
8145 (determine_roots_comp): Same.
8146 (execute_load_motion): Same.
8147 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
8148 (vect_enhance_data_refs_alignment): Same.
8149 (vect_analyze_group_access): Same.
8151 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
8154 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
8155 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
8157 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
8159 * dwarf2out.c (file scope): Remove #if0'd code.
8160 (gen_subprogram_die): Same.
8162 2010-09-03 Jakub Jelinek <jakub@redhat.com>
8165 * dwarf2out.c (flush_queued_reg_saves): Rename to...
8166 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
8167 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
8168 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
8169 * config/i386/i386.c (output_set_got): Call it.
8171 2010-09-03 Michael Matz <matz@suse.de>
8174 * tree-sra.c (sra_modify_assign): If we modify the statement,
8177 * tree-ssa.c (verify_ssa): Check number of operands and links
8178 per statement to agree.
8180 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
8181 Iain Sandoe <iains@gcc.gnu.org>
8184 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
8185 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
8186 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
8188 2010-09-03 Richard Guenther <rguenther@suse.de>
8190 * lto-streamer-out.c (output_function): Output function
8192 * lto-streamer-in.c (input_function): Input function start
8195 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8197 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
8198 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
8199 * configure: Regenerate.
8200 * aclocal.m4: Regenerate.
8202 2010-09-03 Jan Hubicka <jh@suse.cz>
8205 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
8206 on functions/variables in other partition.
8208 2010-09-03 Jan Hubicka <jh@suse.cz>
8210 * cgraph.h (struct varpool_node): Add const_value_known.
8211 (varpool_decide_const_value_known): Declare.
8212 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
8213 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
8214 (input_varpool_node): Restore const_value_known.
8215 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
8216 initializer folding.
8217 * ipa.c (ipa_discover_readonly_nonaddressable_var,
8218 function_and_variable_visibility): Compute const_value_known.
8219 * gimple-fold.c (get_symbol_constant_value): Use varpool for
8220 initializer folding.
8221 * varpool.c (varpool_decide_const_value_known): New function.
8223 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
8225 * config/i386/i386.md: Remove empty preparation statements
8228 2010-09-03 Jan Hubicka <jh@suse.cz>
8230 * passes.c (rest_of_decl_compilation): Do not add local vars into
8232 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
8233 static or extern vars are in varpool.
8234 (varpool_finalize_decl): Sanity check that only static vars are
8237 2010-09-03 Jakub Jelinek <jakub@redhat.com>
8240 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
8241 not just generic vectors with BLKmode.
8243 2010-09-03 Richard Guenther <rguenther@suse.de>
8245 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
8246 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
8247 * tree.h (TMR_SYMBOL): Remove.
8248 (TMR_BASE, TMR_OFFSET): Adjust.
8250 * alias.c (ao_ref_from_mem): Use TMR_BASE.
8251 * builtins.c (get_object_alignment): Merge TMR_BASE and
8252 TMR_SYMBOL handling.
8253 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
8254 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
8255 handling. Also allow TARGET_MEM_REF as base address.
8256 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
8257 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
8258 base. Gimplify TMR_INDEX2.
8259 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
8260 * tree-dfa.c (get_ref_base_and_extent): Likewise.
8261 (get_addr_base_and_unit_offset): Likewise.
8262 * tree-eh.c (tree_could_trap_p): Likewise.
8263 * tree-pretty-print.c (dump_generic_node): Likewise.
8264 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
8265 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
8267 (get_address_description): Reconstruct addres description
8268 from merged TMR_BASE and TMR_INDEX2.
8269 (maybe_fold_tmr): Fold propagated addresses.
8270 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
8271 MEM_REF and TARGET_MEM_REF paths.
8272 (indirect_refs_may_alias_p): Likewise.
8273 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
8274 instead of TMR_SYMBOL.
8275 * tree-ssa-operands.c (get_tmr_operands): Simplify.
8276 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
8277 according to changes ...
8278 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
8279 Split TARGET_MEM_REF into two fields plus the base.
8280 * tree.c (mem_ref_offset): Simplify.
8281 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
8282 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
8283 Strip NOPs when folding MEM_REF addresses.
8284 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
8285 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
8286 (fold_gimple_assign): ... not here.
8288 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
8290 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
8291 * config/mips/mips.c (mips_shift_truncation_mask): New function.
8292 (TARGET_SHIFT_TRUNCATION_MASK): Define.
8294 2010-09-02 Richard Henderson <rth@redhat.com>
8296 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
8297 instead of readelf in the test.
8298 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
8299 in the .debug_frame section for coff targets.
8300 * configure: Rebuild.
8302 2010-09-02 Anatoly Sokolov <aesok@post.ru>
8304 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
8305 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
8306 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8307 (m32c_class_likely_spilled_p): Make static. Change argument type to
8308 reg_class_t. Change result type to bool.
8310 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8312 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
8313 to convert (double)(long) into a single FRIZ instruction or not
8314 when -ffast-math is used.
8316 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
8317 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
8318 or FRIZ instruction if -ffast-math.
8319 * config/rs6000/rs6000.md (friz): Ditto.
8321 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
8323 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8325 * opth-gen.awk (quote, comma): Remove unused variables.
8327 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
8329 * arm.c (arm_override_options): Correct fall-back code to use
8330 SUBTARGET_CPU_DEFAULT.
8332 2010-09-02 Julian Brown <julian@codesourcery.com>
8334 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
8336 (vcond<mode>, vcondu<mode>): New expanders.
8337 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
8338 comparisons with zero.
8339 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
8340 * config/arm/constraints.md (Dz): New constraint.
8342 2010-09-02 Anatoly Sokolov <aesok@post.ru>
8344 * target.def (class_likely_spilled_p): New hook.
8345 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
8346 * doc/tm.texi: Regenerate.
8347 * targhooks.c (default_class_likely_spilled_p): New function.
8348 * targhooks.h (default_class_likely_spilled_p): Declare.
8349 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
8350 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
8351 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
8352 Use fixed_reg_set instead of fixed_regs.
8353 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
8354 * calls.c (avoid_likely_spilled_reg): Ditto.
8355 * ira-conflicts.c (ira_build_conflicts): Ditto.
8356 * ira.c (update_equiv_regs): Ditto.
8357 * mode-switching.c (create_pre_exit): Ditto.
8358 * regmove.c (find_matches): Ditto.
8359 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
8360 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
8361 (small_register_class_p): New inline function.
8362 (push_secondary_reload, find_reusable_reload, find_reloads): Use
8363 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
8365 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
8366 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
8367 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8369 2010-09-02 Richard Guenther <rguenther@suse.de>
8371 PR tree-optimization/44937
8372 PR tree-optimization/45412
8373 * ipa-split.c (split_function): Properly remove PHI nodes.
8375 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8377 * opts.h (struct cl_option): Add warn_message field.
8378 (struct cl_decoded_option): Add warn_message field.
8379 * doc/options.texi (Ignore, Warn): Document.
8380 * opt-functions.awk (needs_state_p): Don't consider aliases or
8381 ignored options to need state saved.
8382 * optc-gen.awk: Handle Warn and Ignore.
8383 * opth-gen.awk: Output OPT_SPECIAL_ignore.
8384 * opts-common.c (decode_cmdline_option): Set warn_message field.
8385 Handle ignored options.
8386 (decode_cmdline_options_to_array, generate_option,
8387 generate_option_input_file): Set warn_message field.
8388 (read_cmdline_option): Generate warnings from warn_message field.
8389 Handle ignored options.
8390 * common.opt (Wunreachable-code, fargument-alias,
8391 fargument-noalias, fargument-noalias-global,
8392 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
8393 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
8394 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
8395 ftree-salias): Mark Ignore.
8396 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
8397 -mintel-syntax and -mno-intel-syntax here.
8398 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
8400 * opts.c (common_handle_option): Don't handle options marked as
8402 (enable_warning_as_error): Handle ignored options.
8404 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8407 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
8408 alias_target fields.
8409 * opt-functions.awk (opt_sanitized_name): Don't handle
8410 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
8411 * optc-gen.awk: Generate alias fields.
8412 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
8413 Don't generate such constants for aliases.
8414 * opts-common.c (generate_canonical_option): New.
8415 (decode_cmdline_option): Handle aliases. Use
8416 generate_canonical_option for known options instead of copying the
8418 * doc/options.texi (Alias): Document.
8419 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
8420 fstack-check, specs): Mark as aliases.
8421 * gcc.c (driver_handle_option): Canonicalize -L options to joined
8423 (driver_handle_option): Don't handle OPT_specs.
8424 * opts.c (common_handle_option): Don't handle options marked as
8426 (enable_warning_as_error): Handle aliases.
8427 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
8428 OPT_Wlarger_than_eq.
8429 * tree-optimize.c (tree_rest_of_compilation): Use
8430 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
8432 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
8434 * config/i386/i386.md (nonmemory_operand): New mode attribute.
8435 (push memory peephole2): Macroize peepholes using SWI mode iterator.
8436 (move immediate to memory peephole2): Macroize peepholes using
8437 SWI124 mode iterator.
8438 (non-pairable NOT peephole2): Macroize peepholes using SWI124
8440 (simple lea add peephole2): Macroize peepholes using SWI48
8442 (simple lea mult peephole2): Ditto.
8443 (imul by 3,5,9 to lea peephole2): Ditto.
8444 (mov $-1, reg peephole2): Macroize peepholes using SWI248
8446 (imul $32bit_imm,mem,reg peephole2): Ditto.
8447 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
8449 2010-09-02 Ian Bolton <ian.bolton@arm.com>
8451 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
8453 2010-09-02 Olivier Hainque <hainque@adacore.com>
8456 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
8457 (allocno_priority_compare_func): Use it instead of a straight
8458 difference computation over priorities.
8460 2010-09-02 Andi Kleen <ak@linux.intel.com>
8462 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
8464 2010-09-02 Ira Rosen <irar@il.ibm.com>
8466 * tree-vectorizer.h (get_later_stmt): New function.
8467 (vect_analyze_data_ref_dependences): Add argument.
8468 * tree-vect-loop.c (vect_analyze_loop): Update call to
8469 vect_analyze_data_ref_dependences.
8470 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
8472 (vect_analyze_data_ref_dependence): Add argument for basic block
8473 dependencies. Check dependencies in basic block vectorization.
8474 (vect_analyze_data_ref_dependences): Add argument and update call to
8475 vect_analyze_data_ref_dependences.
8476 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
8477 (vect_bb_vectorizable_with_dependencies): New.
8478 (vect_slp_analyze_bb): Check dependencies in basic block.
8479 (vect_schedule_slp_instance): Insert stores before the last store in
8482 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
8485 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
8486 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
8488 2010-09-01 Jakub Jelinek <jakub@redhat.com>
8491 * bb-reorder.c (add_labels_and_missing_jumps): Treat
8492 bbs ending with throwing insns like blocks ending with a call.
8493 (fix_up_fall_thru_edges): Likewise.
8495 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
8497 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
8498 (m32c_function_arg_advance): Delete.
8499 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8500 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
8501 comments. Take a const_tree and a bool. Declare.
8502 (m32c_function_arg_advance): Likewise.
8503 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8505 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
8508 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
8509 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
8510 * config/i386/mingw32.h: ... here.
8512 2010-09-01 Andi Kleen <ak@linux.intel.com>
8515 * lto-streamer-in.c (lto_input_ts_target_option): Add.
8516 (lto_input_tree_pointers): Call lto_input_ts_target_option.
8517 * lto-streamer-out (lto_output_ts_target_option): Add.
8518 (lto_output_tree_pointers): Call lto_output_ts_target_option.
8520 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
8523 * config/i386/cygwin.h: Change order of specified import libraries.
8524 * config/i386/mingw32.h: Likewise.
8525 * config/i386/t-cygwin: Likewise.
8526 * config/i386/t-mingw32: Likewise.
8527 * config/i386/t-mingw-w32: Likewise.
8528 * config/i386/t-mingw-w64: Likewise.
8530 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8532 * config/arm/neon-schedgen.ml (core): New type.
8533 (allCores): List of supported cores.
8534 (availability_table): Add supported cores.
8535 (collate_bypasses): Accept core as a parameter.
8536 (worst_case_latencies_and_bypasses): Accept core as a parameter.
8537 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
8538 and coreStr to get tune attribute and prefix for functional units.
8539 (emit_bypasses): Accept core name and use it.
8540 (calculate_per_core_availability_table): New.
8542 (calculate_core_availability_table): New.
8543 (main): Use calculate_core_availablity_table.
8544 * config/arm/cortex-a8-neon.md: Update copyright year.
8545 Regenerated from ml file and merged in.
8546 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
8549 2010-09-01 Ian Bolton <ian.bolton@arm.com>
8551 * Makefile.in (tree-switch-conversion.o): Update dependencies.
8553 2010-09-01 Richard Guenther <rguenther@suse.de>
8555 * alias.c (ao_ref_from_mem): Adjust.
8556 * builtins.c (get_object_alignment): Likewise.
8557 * cfgexpand.c (expand_debug_expr): Likewise.
8558 * gimple.c (get_base_address): Likewise.
8559 * tree-dfa.c (get_ref_base_and_extent): Likewise.
8560 (get_addr_base_and_unit_offset): Likewise. Fix for
8561 both TMR_SYMBOL and TMR_BASE being set.
8562 * tree-eh.c (tree_could_trap_p): Likewise.
8563 * gimplify.c (gimplify_expr): Do not attempt to gimplify
8564 TMR_SYMBOL. Always gimplify TMR_BASE.
8565 * tree-cfg.c (verify_types_in_gimple_reference): Verify
8566 TMR_BASE if there is a TMR_SYMBOL.
8567 * tree-pretty-print.c (dump_generic_node): Adjust.
8568 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
8569 (tree_mem_ref_addr): Likewise.
8570 (create_mem_ref_raw): Likewise.
8571 (move_fixed_address_to_symbol): Likewise.
8572 (create_mem_ref): Likewise.
8573 (dump_mem_address): Likewise.
8574 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
8575 Fix for both TMR_SYMBOL and TMR_BASE being set.
8576 (indirect_refs_may_alias_p): Likewise.
8577 * tree-ssa-operands.c (get_tmr_operands): Adjust.
8578 * tree.def (TARGET_MEM_REF): Adjust documentation.
8580 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
8582 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
8583 Rename from X86_TUNE_ADD_ESP_4.
8584 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
8585 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
8586 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
8587 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
8588 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
8589 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
8590 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
8591 * config/i386/i386.c (initial_ix86_tune_features)
8592 <X86_TUNE_SINGLE_POP>: Invert members.
8593 <X86_TUNE_DOUBLE_POP>: Ditto.
8594 <X86_TUNE_SINGLE_PUSH>: Ditto.
8595 <X86_TUNE_DOUBLE_PUSH>: Ditto.
8596 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
8598 (push peephole2 patterns): Macroize peepholes using P mode iterator.
8599 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
8600 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
8601 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
8603 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
8605 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
8606 a volatile LHS if the constructor has only one element.
8608 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
8611 * tree.c (stdarg_p): Make fntype parameter const.
8612 * tree.h (stdarg_p): Likewise.
8613 (function_args_iterator): Remove unused fntype field.
8614 (function_args_iter_init): Do not initialize fntype
8615 field. Make fntype parameter const.
8617 2010-09-01 Richard Guenther <rguenther@suse.de>
8619 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
8621 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
8622 (execute_vrp): Compute number of iteration estimates.
8623 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
8624 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
8625 * tree-data-ref.c (estimated_loop_iterations): Adjust.
8626 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
8627 Infer loop bounds from undefined behavior based on a new parameter.
8628 (estimate_numbers_of_iterations): Likewise.
8629 (scev_probably_wraps_p): Adjust.
8630 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
8632 2010-09-01 Nick Clifton <nickc@redhat.com>
8634 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
8636 (xstormy16_legitimate_address_p): Use true and false instead of 1
8638 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
8639 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
8641 (xstormy16_expand_call): Fix comment at start of function.
8643 2010-09-01 Nick Clifton <nickc@redhat.com>
8645 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
8646 when pushing accumulator register.
8647 (rx_get_stack_layout): Always save call clobbered registers inside
8649 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
8651 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
8653 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
8654 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
8656 * libgcc-std.ver (GCC_4.6.0): Define version.
8658 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
8660 * tree-nested.c (convert_all_function_calls): Iterate until after the
8661 sum of static chains in the nest doesn't change.
8663 2010-08-31 Anatoly Sokolov <aesok@post.ru>
8665 * config/m32c/m32c.c (classes_intersect): Remove.
8666 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
8667 reg_classes_intersect_p instead of classes_intersect.
8668 (class_can_hold_mode): Change arguments type from enum reg_class to
8669 reg_class_t. Use reg_class_contents instead of class_contents.
8670 (m32c_register_move_cost): Make static. Change arguments type from
8671 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
8672 classes_intersect. Use reg_class_contents instead of class_contents.
8673 (m32c_memory_move_cost): Make static. Change arguments type from
8674 enum reg_class to reg_class_t.
8675 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8676 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8677 * config/m32c/m32c-protos.h (m32c_register_move_cost,
8678 m32c_memory_move_cost): Remove.
8680 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8682 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
8683 (arm_function_arg): Delete.
8684 (arm_needs_doubleword_align): Take a const_tree.
8685 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8686 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
8687 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
8688 (arm_function_arg): Make static. Take a const_tree and a bool.
8689 (arm_function_arg_advance): Likewise.
8690 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8692 2010-08-31 Andi Kleen <ak@linux.intel.com>
8694 * common.opt (fwhopr=): Update for -fwhopr=jobserver
8695 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
8696 * lto-wrapper.c (run_gcc): Add jobserver mode.
8697 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
8700 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
8702 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
8704 (*popdi1_epilogue): Ditto.
8705 (*popsi1_epilogue): Ditto.
8706 (popsi, popdi peephole2 patterns): Update peepholes for changed
8707 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
8709 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
8710 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
8712 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
8713 (override_options): Do not initialize removed ix86_gen_pop1.
8714 (gen_pop): New static function.
8715 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
8716 (release_scratch_register_on_entry): Ditto.
8717 (ix86_restore_reg_using_pop): Ditto.
8718 (ix86_expand_epilogue): Ditto.
8720 2010-08-31 Jakub Jelinek <jakub@redhat.com>
8723 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
8725 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8727 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
8730 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8732 * doc/extend.texi: Fix documentation of the return value of
8733 __builtin_choose_expr.
8735 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8737 * config/v850/v850-protos.h (function_arg): Delete.
8738 * config/v850/v850.h (FUNCTION_ARG): Delete.
8739 (FUNCTION_ARG_ADVANCE): Move code to...
8740 * config/v850/v850.c (v850_function_arg_advance): ...here.
8741 (v850_function_arg): Make static. Take a const_tree and a bool.
8742 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8744 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8746 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
8748 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
8750 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
8752 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
8754 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8756 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8758 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
8760 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8761 * config/rx/rx.c (rx_function_arg_size): Make static.
8762 (rx_function_arg): Likewise.
8763 (rx_function_arg_advance): New function.
8764 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8766 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
8768 * config/arm/arm.c (arm_override_options): Remove superfluous test.
8771 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
8773 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
8774 (dwarf2out_decl) <CONST_DECL>: Likewise.
8776 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
8779 * common.opt (-fstack-usage): New option.
8780 * doc/invoke.texi (Debugging options): Document it.
8781 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
8782 allocate_dynamic_stack_space.
8783 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
8784 and propagate it to allocate_dynamic_stack_space.
8785 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
8786 * calls.c (initialize_argument_information): Pass TRUE as 4th
8787 argument to allocate_dynamic_stack_space.
8788 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
8789 to 1 when pushing a variable-sized argument onto the stack. Pass
8790 TRUE as 4th argument to allocate_dynamic_stack_space.
8791 Update current_function_pushed_stack_size.
8792 (emit_library_call_value_1): Likewise.
8793 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
8794 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
8795 attempt to find an upper bound. Remove redundant code for the
8796 SETJMP_VIA_SAVE_AREA case.
8797 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
8798 * function.h (struct stack_usage): New structure.
8799 (current_function_static_stack_size): New macro.
8800 (current_function_dynamic_stack_size): Likewise.
8801 (current_function_pushed_stack_size): Likewise.
8802 (current_function_dynamic_alloc_count): Likewise.
8803 (current_function_has_unbounded_dynamic_stack_size): Likewise.
8804 (current_function_allocates_dynamic_stack_space): Likewise.
8805 (struct function): Add new field 'su'.
8806 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
8807 add the value of the dynamic offset to the dynamic stack usage.
8808 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
8809 for variable-sized objects.
8810 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
8811 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
8812 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
8813 BUILT_IN_ALLOCA for variable-sized objects.
8814 * output.h (output_stack_usage): Declare.
8815 * toplev.c (stack_usage_file): New file pointer.
8816 (output_stack_usage): New function.
8817 (open_auxiliary_file): Likewise.
8818 (lang_dependent_init): Open file if flag_stack_usage is set.
8819 (finalize): Close file if stack_usage_file is not null.
8820 * tree.h (ALLOCA_FOR_VAR_P): New macro.
8821 * config/alpha/alpha.c (compute_frame_size): New function.
8822 (alpha_expand_prologue): Use it.
8823 (alpha_start_function): Likewise.
8824 (alpha_expand_epilogue): Likewise. Set stack usage info.
8825 * config/i386/i386.c (ix86_expand_prologue): Likewise.
8826 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
8827 * config/mips/mips.c (mips_expand_prologue): Likewise.
8828 * config/pa/pa.c (hppa_expand_prologue): Likewise.
8829 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
8830 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
8832 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
8834 PR tree-optimization/45427
8835 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
8836 Handle the case that the exit is never taken correctly.
8837 (number_of_iterations_ne): Pass exit_must_be_taken to
8838 number_of_iterations_ne_max.
8840 2010-08-30 Catherine Moore <clm@codesourcery.com>
8842 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
8843 Infer -mdspr2 for the the 74K.
8845 2010-08-30 Jakub Jelinek <jakub@redhat.com>
8848 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
8851 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
8852 and TRUTH_{AND,OR,XOR}_EXPR.
8853 * c-parser.c (c_parser_omp_atomic): Handle boolean
8854 {PRE,POST}_{INC,DEC}REMENT.
8856 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
8858 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
8859 (function_arg): Delete.
8860 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8861 (FUNCTION_INCOMING_ARG): Delete.
8862 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
8863 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
8865 (function_arg): Rename to...
8866 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
8868 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
8869 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8870 (TARGET_FUNCTION_INCOMING_ARG): Define.
8872 2010-08-30 Richard Guenther <rguenther@suse.de>
8874 PR tree-optimization/21602
8875 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
8876 using points-to information.
8878 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
8880 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
8882 2010-08-30 Richard Guenther <rguenther@suse.de>
8884 PR tree-optimization/45449
8885 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
8888 2010-08-30 Joseph Myers <joseph@codesourcery.com>
8890 * opts.h (CL_ERR_NEGATIVE): Define.
8891 * opts.c (unknown_option_callback): Don't postpone warnings for
8892 options marked with CL_ERR_NEGATIVE.
8893 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
8894 for negative versions of CL_REJECT_NEGATIVE options.
8896 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
8898 * config/i386/i386.md (zero_extendsidi2_1): Rename from
8899 zero_extendsidi2_32.
8900 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
8901 using SWI12 mode iterator.
8902 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
8903 to define_insn_and_split pattern.
8904 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
8905 using SWI24 mode iterator.
8906 (*zero_extendqi<mode>2_and): Macroize insn from
8907 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
8908 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
8909 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
8910 SWI24 mode iterator.
8911 (*zero_extendqi<mode>2_movzbl): Ditto from
8912 *zero_extendqi{hi,si}2_movzbl.
8913 (extendsidi2_1): Rename from extendsidi2_32.
8914 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
8915 SWI12 mode iterator.
8917 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
8919 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
8920 general purpose registers.
8921 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
8922 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
8923 with general purpose registers and memory operands. Add associated
8924 CCImode post-reload splitter.
8925 * config/ia64/div.md: Change BImode to CCImode throughout.
8927 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
8929 * config/ia64/ia64.md (cstorebi4): Fix thinko.
8931 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
8933 * config/picochip/picochip.c (reorder_var_tracking_notes): This
8934 function was dropping debug insns which caused PR45299.
8936 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
8938 * config/i386/sse.md (extsuffix): New code attribute.
8939 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
8940 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
8941 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
8942 and sse4_1_zero_extendv4qiv4si2.
8943 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
8944 and sse4_1_zero_extendv2qiv2di2.
8945 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
8946 and sse4_1_zero_extendv4hiv4si2.
8947 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
8948 and sse4_1_zero_extendv2hiv2di2.
8949 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
8950 and sse4_1_zero_extendv2siv2di2
8952 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
8953 using any_extend code iterator.
8954 (*avx_<s>mulv8hi3_highpart): Macroize insn from
8955 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
8956 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
8958 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
8959 gen_sse4_1_sign_extend* functions.
8960 (struct builtin_description bdesc_args): Ditto.
8962 2010-08-27 Xinliang David Li <davidxl@google.com>
8965 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
8966 (iv_ca_set_no_cp): Update used inv expr count.
8967 (iv_ca_set_cp): Ditto.
8968 (iv_ca_new): Initialize new member.
8969 (iv_ca_free): Free memory.
8971 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
8973 * config/sh/sh-protos.h (sh_function_arg): Delete.
8974 (sh_function_arg_advance): Delete.
8975 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8976 (PASS_IN_REG_P): Eliminate cast.
8977 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
8978 const_tree and a bool.
8979 (sh_function_arg): Likewise.
8980 (sh_output_mi_thunk): Call sh_function_arg_advance) and
8982 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8984 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
8985 Kaz Kojima <kkojima@gcc.gnu.org>
8987 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
8989 (sh_expand_epilogue): Likewise.
8990 * config/sh/sh.md (movml_push_banked): New insn.
8991 (movml_pop_banked): Likewise.
8993 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
8995 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
8996 gen_regexp_oneof, gen_regexp_sequence): Use the string found
8997 in vector element 0 rather than the original string when there's
8999 (gen_regexp): Remove extra semicolon.
9001 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
9002 thumb2_movsf_vfp): Set attribute "insn".
9003 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
9004 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
9005 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
9006 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
9007 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
9008 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
9009 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
9010 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
9011 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
9012 if_not_arith, if_arith_not, cond_move_not): Likewise.
9014 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9016 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
9018 (rs6000_allocate_stack_temp): Ditto.
9019 (rs6000_expand_convert_si_to_sfdf): Ditto.
9021 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
9022 line. Update the options set if power6 or power7 server/embedded
9023 type options are used. If we give a warning for no vsx under
9024 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
9025 (rs6000_allocate_stack_temp): New function to allocate a stack
9026 tempoary and adjust the address so it meets either REG+OFFSET or
9027 REG+REG addressing requirements.
9028 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
9029 that they can be used with the LFIWAX/LFIWZX instrucitons.
9030 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
9031 converting signed/unsigned SImode to either SFmode/DFmode.
9033 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
9034 whether certain instructions can be generated.
9035 (TARGET_FCTIDZ): Ditto.
9036 (TARGET_STFIWX): Ditto.
9037 (TARGET_LFIWAX): Ditto.
9038 (TARGET_LFIWZX): Ditto.
9039 (TARGET_FCFIDS): Ditto.
9040 (TARGET_FCFIDU): Ditto.
9041 (TARGET_FCFIDUS): Ditto.
9042 (TARGET_FCTIDUZ): Ditto.
9043 (TARGET_FCTIWUZ): Ditto.
9045 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
9046 (UNSPEC_FCTID): Ditto.
9047 (UNSPEC_LFIWAX): Ditto.
9048 (UNSPEC_LFIWZX): Ditto.
9049 (UNSPEC_FCTIWUZ): Ditto.
9050 (rreg): Use correct constraints.
9051 (SI_CONVERT_FP): New mode attribute for floating point conversion
9053 (E500_CONVERT): Ditto.
9054 (lfiwax): New insns for converting from integer to floating point
9055 utilizing newer instructions. Attempt to optimize conversions
9056 that come from memory so that we don't load the value into a GPR,
9057 spill it to the stack and reload it into a FPR.
9058 (floatsi<mode>2_lfiwax): Ditto.
9059 (floatsi<mode>2_lfiwax_mem): Ditto.
9060 (floatsi<mode>2_lfiwax_mem2): Ditto.
9062 (floatunssi<mode>2_lfiwzx): Ditto.
9063 (floatunssi<mode>2_lfiwzx_mem): Ditto.
9064 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
9065 (floatdidf2_mem): Ditto.
9066 (floatunsdidf2_fcfidu): Ditto.
9067 (floatunsdidf2_mem): Ditto.
9068 (floatunsdisf2): Ditto.
9069 (floatunsdisf2_fcfidus): Ditto.
9070 (floatunsdisf2_mem): Ditto.
9071 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
9072 Use FCFID on 32-bit hosts that support it.
9073 (floatsidf2_internal): Ditto.
9074 (floatunssisf2): Ditto.
9075 (floatunssidf2): Ditto.
9076 (floatunssidf2_internal): Ditto.
9077 (floatsisf2): Ditto.
9078 (floatdidf2): Ditto.
9079 (floatdidf2_fpr): Ditto.
9080 (floatunsdidf2): Ditto.
9081 (floatdisf2): Ditto.
9082 (floatdisf2_fcfids): Ditto.
9083 (floatdisf2_internal1): Ditto.
9084 (fixuns_truncsfsi2): Delete, merge into common pattern for both
9085 SF/DF. Add power7 support.
9086 (fix_truncsfsi2): Ditto.
9087 (fixuns_truncdfsi2): Ditto.
9088 (fixuns_truncdfdi2): Ditto.
9089 (fix_truncdfsi2): Ditto.
9090 (fix_truncdfsi2_internal): Ditto.
9091 (fix_truncdfsi2_internal_gfxopt): Ditto.
9092 (fix_truncdfsi2_mfpgpr): Ditto.
9095 (btruncdf2_fpr): Ditto.
9098 (ceildf2_fpr): Ditto.
9101 (floordf2_fpr): Ditto.
9104 (rounddf2_fpr): Ditto.
9106 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
9107 (fix_trunc<mode>di2): Ditto.
9108 (fixuns_trunc<mode>si2): Ditto.
9109 (fixuns_trunc<mode>di2): Ditto.
9110 (fctiwz_<mode>): Ditto.
9111 (btrunc<mode>2): Ditto.
9112 (btrunc<mode>2_fpr): Ditto.
9113 (ceil<mode>2): Ditto.
9114 (ceil<mode>2_fpr): Ditto.
9115 (floor<mode>2): Ditto.
9116 (float<mode>2_fpr): Ditto.
9117 (round<mode>2): Ditto.
9118 (round<mode>2_fpr): Ditto.
9119 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
9120 (fixuns_trunc<mode>si2_stfiwx): Ditto.
9121 (fix_truncdfsi2_internal): Ditto.
9122 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
9123 converted value on stack, loaded into GPR, and then stored into
9124 the final destination.
9125 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
9127 (lrint<mode>di2): New insn, provide the lrint builtin functions.
9128 (ftruncdf2): Delete, unused.
9129 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
9131 * config/rs6000/vsx.md (toplevel): Update copyright year.
9132 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
9135 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
9136 Jeremie Salvucci <jeremie.salvucci@free.fr>
9138 * gengtype.c (output_type_enum): Test the right union member.
9140 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
9143 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
9144 operands for operand 1.
9145 (sse4_1_extendv4qiv4si2): Ditto.
9146 (sse4_1_extendv2qiv2di2): Ditto.
9147 (sse4_1_extendv4hiv4si2): Ditto.
9148 (sse4_1_extendv2hiv2di2): Ditto.
9149 (sse4_1_extendv2siv2di2): Ditto.
9150 (sse4_1_zero_extendv8qiv8hi2): Ditto.
9151 (sse4_1_zero_extendv4qiv4si2): Ditto.
9152 (sse4_1_zero_extendv2qiv2di2): Ditto.
9153 (sse4_1_zero_extendv4hiv4si2): Ditto.
9154 (sse4_1_zero_extendv2hiv2di2): Ditto.
9155 (sse4_1_zero_extendv2siv2di2): Ditto.
9156 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
9157 (*sse4_1_extendv4qiv4si2): Ditto.
9158 (*sse4_1_extendv2qiv2di2): Ditto.
9159 (*sse4_1_extendv4hiv4si2): Ditto.
9160 (*sse4_1_extendv2hiv2di2): Ditto.
9161 (*sse4_1_extendv2siv2di2): Ditto.
9162 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
9163 (*sse4_1_zero_extendv4qiv4si2): Ditto.
9164 (*sse4_1_zero_extendv2qiv2di2): Ditto.
9165 (*sse4_1_zero_extendv4hiv4si2): Ditto.
9166 (*sse4_1_zero_extendv2hiv2di2): Ditto.
9167 (*sse4_1_zero_extendv2siv2di2): Ditto.
9169 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
9171 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
9172 (mips_function_arg): Delete.
9173 (mips_function_arg_boundary): Take a const_tree.
9174 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
9175 (mips_arg_info): Likewise.
9176 (mips_setup_incoming_varargs): Call mips_function_arg_advance
9177 instead of FUNCTION_ARG_ADVANCE.
9178 (mips_function_arg_advance): Adjust prototype. Make static.
9179 (mips_function_arg): Likewise.
9180 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9181 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
9183 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
9185 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9186 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
9187 (function_arg): Delete.
9188 (function_arg_boundary): Take a const_tree.
9189 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
9190 (rs6000_spe_function_arg): Likewise.
9191 (rs6000_parm_start): Likewise.
9192 (rs6000_arg_size): Likewise.
9193 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
9194 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
9195 (rs6000_mixed_function_arg): Likewise.
9196 (function_arg): Rename to...
9197 (rs6000_function_arg): ...this.
9198 (function_arg_advance): Rename to...
9199 (rs6000_function_arg_advance_1): ...this
9200 (rs6000_function_arg_advance): New function. Call it.
9201 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
9202 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
9203 (rs6000_function_value): Likewise.
9204 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9206 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9208 * config/arm/arm.md (enabled): Test the value of arch_enabled
9209 rather than just using it.
9211 2010-08-27 Olivier Hainque <hainque@adacore.com>
9212 Eric Botcazou <ebotcazou@adacore.com>
9214 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
9215 cover all the possible offsets from this base.
9216 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
9218 2010-08-26 Jakub Jelinek <jakub@redhat.com>
9220 PR tree-optimization/44485
9221 * calls.c (flags_from_decl_or_type): For const or pure
9222 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
9223 together with ECF_CONST resp. ECF_PURE.
9224 * builtins.c (expand_builtin): Use flags_from_decl_or_type
9225 instead of querying flags directly.
9226 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
9227 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
9229 2010-08-26 Richard Guenther <rguenther@suse.de>
9231 PR tree-optimization/45255
9232 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
9233 and externals are also invariant.
9235 2010-08-25 Jakub Jelinek <jakub@redhat.com>
9237 PR rtl-optimization/44858
9238 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
9239 newi2pat, make sure they don't affect newpat.
9241 PR rtl-optimization/45400
9242 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
9243 SUBREG_REG if both modes are of MODE_INT class.
9245 2010-08-25 Julian Brown <julian@codesourcery.com>
9247 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
9248 * config/arm/arm.md (generic_sched): No for Cortex-A5.
9249 (generic_vfp): Likewise.
9250 (cortex-a5.md): Include.
9251 * config/arm/cortex-a5.md: New.
9253 2010-08-25 Richard Guenther <rguenther@suse.de>
9255 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
9256 * gimple.c (gimple_get_alias_set): Remove special handling
9259 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
9262 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
9263 dead_or_set_p when computing i0_feeds_i2_n.
9265 * combine.c (find_split_point): Undo canonicalization of multiply-add
9266 to (minus x (mult)) when it seems likely that this will increase the
9269 2010-08-25 Richard Guenther <rguenther@suse.de>
9272 * lto-streamer.c (lto_record_common_node): Do not mess with
9273 TYPE_CANONICAL when not in lto.
9274 * gimple.c (gimple_register_type): Likewise.
9276 2010-08-25 Richard Guenther <rguenther@suse.de>
9278 PR tree-optimization/45316
9279 * tree-ssa-pre.c (eliminate): Properly clean EH info.
9281 2010-08-25 Richard Guenther <rguenther@suse.de>
9283 PR tree-optimization/45393
9284 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
9285 and clean EH info. Avoid SSA update.
9286 (execute_cse_sincos): Cleanup the CFG if it has changed.
9288 2010-08-25 Richard Guenther <rguenther@suse.de>
9291 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
9292 TARGET_MEM_REF in alignment computation.
9294 2010-08-25 Jakub Jelinek <jakub@redhat.com>
9296 PR tree-optimization/45059
9297 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
9298 type conversions from newop{1,2}. Assert t is a comparison and
9299 newop{1,2} after the stripping are gimple vals.
9301 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
9303 * config/arm/iterators.md (VU, SE, V_widen_l): New.
9304 (V_unpack, US): New.
9305 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
9306 (vec_unpack<US>_lo_<mode>): Likewise.
9307 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
9308 (neon_vec_unpack<US>_lo_<mode>): Likewise.
9309 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
9310 (vec_widen_<US>mult_hi_<mode>): Likewise.
9311 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
9312 (neon_vec_<US>mult_hi_<mode>"): Likewise.
9313 (neon_unpack<US>_<mode>): Widening move intermediate step for
9314 vectorizing without -mvectorize-with-neon-quad.
9315 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
9316 for vectorizing without -mvectorize-with-neon-quad.
9317 * config/arm/predicates.md (vect_par_constant_high): Check for
9318 high-half lanes of a vector.
9319 (vect_par_constant_low): Check for low-half lanes of a vector.
9321 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
9323 * tree-if-conv.c (struct ifc_dr): New.
9325 (DR_WRITTEN_AT_LEAST_ONCE): New.
9326 (DR_RW_UNCONDITIONALLY): New.
9327 (memref_read_or_written_unconditionally): Use the cached values
9329 (write_memref_written_at_least_once): Same.
9330 (if_convertible_loop_p): Initialize and free DR->aux fields.
9332 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
9334 * gimple.c (gimple_could_trap_p_1): Not static anymore.
9335 Pass an extra bool parameter include_mem.
9336 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
9337 (gimple_assign_rhs_could_trap_p): Same.
9338 * gimple.h (gimple_could_trap_p_1): Declared.
9339 * tree-data-ref.h (same_data_refs_base_objects): New.
9340 (same_data_refs): New.
9341 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
9342 (write_memrefs_written_at_least_once): New.
9343 (ifcvt_memrefs_wont_trap): New.
9344 (operations_could_trap): New.
9345 (ifcvt_could_trap_p): New.
9346 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
9347 Gets a vector of data refs.
9348 (if_convertible_stmt_p): Same.
9349 (if_convertible_loop_p_1): New.
9350 (if_convertible_loop_p): Call if_convertible_loop_p_1.
9352 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
9354 * common.opt (ftree-loop-if-convert-stores): New flag.
9355 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
9356 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
9357 the created statement before GSI.
9358 (if_convertible_phi_p): Allow virtual phi nodes when
9359 flag_loop_if_convert_stores is set.
9360 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
9361 Do not handle types that do not match is_gimple_reg_type.
9362 Remove loop and bb parameters. Call gimple_could_trap_p instead of
9363 when flag_loop_if_convert_stores is set, as LHS can contain
9365 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
9366 to if_convertible_gimple_assign_stmt_p.
9367 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
9368 (replace_phi_with_cond_gimple_assign_stmt): Renamed
9369 predicate_scalar_phi. Do not handle virtual phi nodes.
9370 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
9371 Call predicate_scalar_phi.
9372 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
9373 just after the labels for flag_loop_if_convert_stores, otherwise
9374 insert the predicate in the end of the BB.
9375 (predicate_mem_writes): New.
9376 (combine_blocks): Call predicate_all_scalar_phis. When
9377 flag_loop_if_convert_stores is set, call predicate_mem_writes.
9378 (tree_if_conversion): Call mark_sym_for_renaming when
9379 flag_loop_if_convert_stores is set.
9380 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
9381 flag_loop_if_convert_stores is set.
9383 2010-08-24 Anatoly Sokolov <aesok@post.ru>
9385 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
9386 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
9387 (pa_function_value): Make static.
9388 (override_options): Rename to...
9389 (pa_option_override): ...this. Make static.
9390 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
9391 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
9392 TARGET_OPTION_OVERRIDE): Define.
9393 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
9394 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
9396 * config/pa/pa-protos.h (override_options): Remove.
9398 2010-08-24 Richard Guenther <rguenther@suse.de>
9401 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
9402 if addr->index is NULL or zero.
9403 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
9404 TARGET_MEM_REF more properly.
9405 (indirect_ref_may_alias_decl_p): Likewise.
9406 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
9407 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
9409 2010-08-23 Anatoly Sokolov <aesok@post.ru>
9411 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
9412 (m32c_override_options): Rename to...
9413 (m32c_option_override): ...this. Make static.
9414 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
9415 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
9417 * config/m32c/m32c-protos.h (m32c_override_options,
9418 m32c_function_value_regno_p): Remove.
9420 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
9422 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
9423 Fix a typo in a previous commit.
9425 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
9427 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
9428 Pre-initialize innerloop_iters to one.
9430 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
9432 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
9433 existing static function global.
9435 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
9436 is changed to global.
9438 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
9439 may_be_nonaddressable_p on base, and don't collect this reference
9440 if the address of the base could not be taken.
9442 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9444 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
9445 enable the compiler to autovectorize mathmetical functions for
9446 power7 using the Mathematical Acceleration Subsystem library.
9448 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
9449 handle which vector math library we have.
9450 (rs6000_override_options): Add -mveclibabi=mass support.
9451 (rs6000_builtin_vectorized_libmass): New function to handle auto
9452 vectorizing math functions that are in the MASS library.
9453 (rs6000_builtin_vectorized_function): Call it.
9455 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9458 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9461 * gthr-posix.h (__gthread_active_init): Delete.
9462 (__gthread_active_p): Do activity check here.
9463 Don't include errno.h on hppa-hpux. Update comment.
9464 * gthr-posix95.h (__gthread_active_init): Delete.
9465 (__gthread_active_p): Do activity check here.
9466 Don't include errno.h on hppa-hpux. Update comment.
9467 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
9468 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
9469 add -lpthread when -mt or -pthread is specified.
9470 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
9471 (LINK_GCC_C_SEQUENCE_SPEC): Define.
9472 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
9473 (stublib.c, pthread_default_stacksize_np-stub.o,
9474 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
9475 $(T)libgcc_stub.a): Add methods.
9476 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
9477 (stublib.c, pthread_default_stacksize_np-stub.o,
9478 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
9479 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9480 pthread_mutex_unlock): New stubs.
9482 2010-08-22 Joseph Myers <joseph@codesourcery.com>
9484 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
9485 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
9487 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
9488 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
9489 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
9490 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
9491 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
9493 * cppspec.c: Include opts.h.
9494 (lang_specific_driver): Use cl_decoded_option structures.
9495 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
9496 * doc/tm.texi: Regenerate.
9497 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
9498 (driver_handle_option): Allow driver options needing no special
9500 (process_command): Decode options before call to
9501 lang_specific_driver. Pass decoded options to
9502 lang_specific_driver.
9503 * gcc.h (lang_specific_driver): Update prototype.
9504 * gccspec.c: Include opts.h.
9505 (lang_specific_driver): Use cl_decoded_option structures.
9506 * opts-common.c (option_ok_for_language, generate_option,
9507 generate_option_input_file): New.
9508 (decode_cmdline_option): Use option_ok_for_language.
9509 (decode_cmdline_options_to_array): Use generate_option_input_file.
9510 (handle_generated_option): Use generate_option.
9511 * opts.h (generate_option, generate_option_input_file): Declare.
9513 2010-08-22 Anatoly Sokolov <aesok@post.ru>
9515 * config/mips/mips.c (mips_override_options): Rename to...
9516 (mips_option_override): ...this. Make static.
9517 (TARGET_OPTION_OVERRIDE): Define.
9518 (mips_in_small_data_p): Update comment.
9519 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
9520 (FIXED_REGISTERS): Update comment.
9521 * config/mips/mips-protos.h (mips_override_options): Remove.
9523 2010-08-21 Olivier Hainque <hainque@adacore.com>
9525 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
9527 2010-08-21 Olivier Hainque <hainque@adacore.com>
9529 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
9530 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
9532 2010-08-20 Jan Hubicka <jh@suse.cz>
9534 * tree-pass.h (pass_ipa_cdtor_merge): New function.
9535 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
9537 (record_cdtor_fn): Move to ipa.c; do not test for
9539 (build_cdtor): Move to ipa.c; add code avoiding construction
9540 when target have ctors/dtors and there is only one ctor/dtor at given
9542 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
9543 sort; reverse order of constructors.
9544 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
9545 (cgraph_finalize_function): Do not call record_cdtor_fn.
9546 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
9547 (cgraph_build_static_cdtor): Move to ipa.c.
9548 * ipa.c: Include target.h and tree-iterator.h.
9549 (cgraph_build_static_cdtor, static_ctors, static_dtors,
9550 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
9551 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
9552 pass_ipa_cdtor_merge): New.
9553 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
9554 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
9557 2010-08-20 Jan Hubicka <jh@suse.cz>
9561 * cgraph.h (cgraph_only_called_directly_p,
9562 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
9564 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
9566 (cgraph_finalize_function): Static cdtors are reachable.
9567 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
9569 2010-08-20 Jan Hubicka <jh@suse.cz>
9571 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
9573 * lto-streamer-out.c (lto_output): Likewise.
9574 * passes.c (ipa_write_optimization_summaries): Initialize statement
9577 2010-08-20 Olivier Hainque <hainque@adacore.com>
9579 * tree.h (alias_diag_flags): New enum.
9580 (alias_pair): Add an 'emitted_diags' field.
9581 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
9582 (assemble_alias): Initialize emitted_diags of new pairs.
9584 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
9586 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
9587 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9588 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9589 (STACK_CHECK_PROTECT): Define.
9590 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
9591 (output_probe_stack_range): Likewise.
9592 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
9593 builtin stack checking is enabled.
9594 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
9595 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
9596 (probe_stack_range): New insn.
9598 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
9601 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
9604 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
9607 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9610 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
9611 to cover zero extension into 64-bit register.
9612 (*sse2_pextrw): Likewise.
9613 (*sse4_1_pextrd_zext): New insn.
9615 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
9617 revert r163410, partially revert r163267.
9618 * config/rs6000/darwin.h (LIB_SPEC): Remove.
9619 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
9622 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9625 * builtins.c (expand_builtin): Don't optimize away
9626 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
9628 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
9630 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
9631 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
9632 alternative 1 of operand 2.
9634 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9635 Paolo Bonzini <bonzini@gnu.org>
9637 * simplify-rtx.c (simplify_unary_operation_1): Optimize
9638 (sign_extend (zero_extend (...)) and
9639 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
9641 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9643 PR rtl-optimization/45353
9644 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
9645 after bb_note is a BARRIER.
9647 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
9649 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
9652 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9653 Michael Matz <matz@suse.de>
9655 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
9657 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
9659 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
9660 (ggc_mark_roots): ...here.
9662 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
9664 * vec.h (FOR_EACH_VEC_ELT): Define.
9666 * cfgloop.c: Likewise.
9667 * cfgloopmanip.c: Likewise.
9668 * cgraph.c: Likewise.
9669 * cgraphunit.c: Likewise.
9670 * combine.c: Likewise.
9671 * config/bfin/bfin.c: Likewise.
9672 * config/mips/mips.c: Likewise.
9673 * config/rs6000/rs6000.c: Likewise.
9674 * dbxout.c: Likewise.
9675 * df-scan.c: Likewise.
9676 * dominance.c: Likewise.
9678 * dwarf2out.c: Likewise.
9679 * except.c: Likewise.
9681 * function.c: Likewise.
9683 * genattr.c: Likewise.
9684 * ggc-common.c: Likewise.
9685 * gimplify.c: Likewise.
9686 * graphite-blocking.c: Likewise.
9687 * graphite-clast-to-gimple.c: Likewise.
9688 * graphite-dependences.c: Likewise.
9689 * graphite-interchange.c: Likewise.
9690 * graphite-poly.c: Likewise.
9691 * graphite-scop-detection.c: Likewise.
9692 * graphite-sese-to-poly.c: Likewise.
9693 * graphite.c: Likewise.
9694 * haifa-sched.c: Likewise.
9695 * ifcvt.c: Likewise.
9696 * implicit-zee.c: Likewise.
9697 * ipa-prop.c: Likewise.
9698 * ipa-struct-reorg.c: Likewise.
9700 * ira-build.c: Likewise.
9701 * ira-color.c: Likewise.
9702 * ira-emit.c: Likewise.
9703 * lambda-code.c: Likewise.
9704 * loop-invariant.c: Likewise.
9705 * loop-unroll.c: Likewise.
9706 * lower-subreg.c: Likewise.
9707 * lto-cgraph.c: Likewise.
9708 * lto-opts.c: Likewise.
9709 * lto-streamer-in.c: Likewise.
9710 * lto-streamer-out.c: Likewise.
9711 * lto-streamer.c: Likewise.
9712 * lto-symtab.c: Likewise.
9713 * matrix-reorg.c: Likewise.
9715 * predict.c: Likewise.
9716 * print-tree.c: Likewise.
9717 * sdbout.c: Likewise.
9718 * sel-sched-dump.c: Likewise.
9719 * sel-sched-ir.c: Likewise.
9720 * sel-sched.c: Likewise.
9722 * stor-layout.c: Likewise.
9723 * tree-cfg.c: Likewise.
9724 * tree-cfgcleanup.c: Likewise.
9725 * tree-chrec.c: Likewise.
9726 * tree-data-ref.c: Likewise.
9727 * tree-emutls.c: Likewise.
9728 * tree-inline.c: Likewise.
9729 * tree-into-ssa.c: Likewise.
9730 * tree-loop-distribution.c: Likewise.
9731 * tree-loop-linear.c: Likewise.
9732 * tree-mudflap.c: Likewise.
9733 * tree-outof-ssa.c: Likewise.
9734 * tree-parloops.c: Likewise.
9735 * tree-predcom.c: Likewise.
9736 * tree-pretty-print.c: Likewise.
9737 * tree-scalar-evolution.c: Likewise.
9738 * tree-ssa-live.c: Likewise.
9739 * tree-ssa-loop-im.c: Likewise.
9740 * tree-ssa-loop-ivcanon.c: Likewise.
9741 * tree-ssa-loop-ivopts.c: Likewise.
9742 * tree-ssa-loop-manip.c: Likewise.
9743 * tree-ssa-loop-niter.c: Likewise.
9744 * tree-ssa-loop-prefetch.c: Likewise.
9745 * tree-ssa-phiprop.c: Likewise.
9746 * tree-ssa-pre.c: Likewise.
9747 * tree-ssa-reassoc.c: Likewise.
9748 * tree-ssa-sccvn.c: Likewise.
9749 * tree-ssa-structalias.c: Likewise.
9750 * tree-ssa.c: Likewise.
9751 * tree-vect-data-refs.c: Likewise.
9752 * tree-vect-loop-manip.c: Likewise.
9753 * tree-vect-loop.c: Likewise.
9754 * tree-vect-patterns.c: Likewise.
9755 * tree-vect-slp.c: Likewise.
9756 * tree-vect-stmts.c: Likewise.
9757 * tree-vrp.c: Likewise.
9759 * value-prof.c: Likewise.
9760 * var-tracking.c: Likewise.
9761 * varasm.c: Likewise.
9762 * vmsdbgout.c: Likewise.
9764 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
9765 Richard Guenther <richard.guenther@gmail.com>
9767 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
9768 copy the src value and return a copy.
9769 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
9770 (C++ Volatiles): Adjust to describe C++ semantics only.
9772 2010-08-20 Joseph Myers <joseph@codesourcery.com>
9774 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
9776 * doc/tm.texi: Regenerate.
9777 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
9778 * df-scan.c (df_get_exit_block_use_set), reginfo.c
9779 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
9780 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
9781 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
9784 2010-08-20 Olivier Hainque <hainque@adacore.com>
9786 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
9787 an extra nop past a sibling call at the very end.
9789 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
9792 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
9795 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
9797 * target.def (function_arg, function_incoming_arg): Remove const
9798 qualifier on CUMULATIVE_ARGS parameter.
9799 * targhooks.h (default_function_arg, default_function_incoming_arg):
9801 * targhooks.c (default_function_arg, default_function_incoming_arg):
9803 * config/i386/i386.c (ix86_function_arg): Likewise.
9805 2010-08-19 Jakub Jelinek <jakub@redhat.com>
9808 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
9809 SIGN_EXTENDs or ZERO_EXTENDs.
9811 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
9814 * combine.c (combine_validate_cost): New arg I0. All callers changed.
9815 Take its cost into account if nonnull.
9816 (insn_a_feeds_b): New static function.
9817 (combine_instructions): Look for four-insn combinations.
9818 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
9819 them into account when computing all_adjacent and looking for other
9821 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
9822 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
9823 (try_combine): New arg I0. Handle four-insn combinations.
9824 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
9827 2010-08-19 Jason Merrill <jason@redhat.com>
9830 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
9832 (gimplify_modify_expr_rhs): Adjust.
9834 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
9836 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
9838 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
9839 * dominance.c (iterate_fix_dominators): Likewise.
9840 * dse.c (set_usage_bits): Likewise.
9841 (set_position_unneeded, record_store): Likewise.
9842 * gimple-fold.c (get_maxval_strlen): Likewise.
9843 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
9844 * ipa-inline.c (update_caller_keys): Likewise.
9845 * ipa-split.c (verify_non_ssa_vars): Likewise.
9846 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
9847 (close_type_exposed_parameter, close_type_full_escape): Likewise.
9848 (close_addressof_down): Likewise.
9849 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
9850 (setup_allocno_left_conflicts_size): Likewise.
9851 (ira_reassign_conflict_allocnos): Likewise.
9852 (ira_reassign_pseudos): Likewise.
9853 * ira-emit.c (change_loop): Likewise.
9854 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
9855 * lto-streamer-out.c (write_symbol): Likewise.
9856 * predict.c (expr_expected_value_1): Likewise.
9857 * regstat.c (regstat_bb_compute_ri): Likewise.
9858 * sel-sched.c (create_block_for_bookkeeping): Likewise.
9859 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
9860 * stmt.c (expand_case): Likewise.
9861 * tree-eh.c (emit_eh_dispatch): Likewise.
9862 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
9863 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
9865 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
9866 (rdg_build_components): Likewise.
9867 * tree-object-size.c (collect_object_sizes_for): Likewise.
9868 * tree-sra.c (convert_callers): Likewise.
9869 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
9870 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
9871 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
9873 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
9875 * config/i386/i386.md (*lea_1): Use P mode iterator.
9876 (lea add splitter): Also handle DImode operands.
9877 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
9878 predicate. Do not use ix86_lea_for_add_ok.
9879 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
9880 (lea ashift splitter): Also handle DImode operands.
9881 (DImode lea ashift splitter): Remove splitter.
9883 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
9885 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
9886 ix86_binary_operator_ok.
9888 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
9890 PR rtl-optimization/44691
9891 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
9894 2010-08-19 Ian Bolton <ian.bolton@arm.com>
9897 * config/arm/arm.c (arm_output_epilogue): Ensure that return
9898 value of size 1-3 is handled correctly.
9900 2010-08-19 Ian Bolton <ian.bolton@arm.com>
9902 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
9903 type for the conditional has wide enough range.
9905 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
9908 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
9909 ix86_binary_operator_ok.
9911 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
9913 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
9914 <default>: Swap operands 1 and 2 for alternative 2 to use existing
9915 code to output insn mnemonic. Fix comment.
9916 (*addsi_1_zext): Add r-r-0 alternative 1.
9917 <TYPE_LEA>: Split insn to lea.
9918 <default>: Handle alternative 1.
9919 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
9920 multi-level if_then_else RTX to set "type" attribute.
9921 <default>: Handle alternative 2.
9922 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
9923 Use cond RTX instead of multi-level if_then_else RTX to set
9925 <default>: Handle alternatives 2 and 4.
9926 (lea splitters): Update calls to ix86_lea_for_add_ok.
9928 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
9930 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
9932 2010-08-18 Richard Guenther <rguenther@suse.de>
9934 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
9935 use operand helpers.
9937 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
9940 * optabs.c (expand_bool_compare_and_swap): Expand pending
9941 pops before trying the optab.
9943 2010-08-18 Yao Qi <yao@codesourcery.com>
9946 * config/arm/arm.c (output_move_double): Fix typo generating
9947 instructions ('ldr'->'str').
9949 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9951 PR rtl-optimization/42575
9952 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
9955 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
9957 * config/arm/arm-protos.h (arm_expand_sync): New.
9958 (arm_output_memory_barrier, arm_output_sync_insn): New.
9959 (arm_sync_loop_insns): New.
9960 * config/arm/arm.c (FL_ARCH7): New.
9961 (FL_FOR_ARCH7): Include FL_ARCH7.
9963 (arm_print_operand): Support %C markup.
9964 (arm_legitimize_sync_memory): New.
9965 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
9966 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
9967 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
9968 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
9969 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
9970 (arm_process_output_sync_insn, arm_output_sync_insn): New.
9971 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
9972 * config/arm/arm.h (struct arm_sync_generator): New.
9973 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
9974 (TARGET_HAVE_MEMORY_BARRIER): New.
9975 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
9976 * config/arm/arm.md: Include sync.md.
9977 (UNSPEC_MEMORY_BARRIER): New.
9978 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
9979 (VUNSPEC_SYNC_OP):New.
9980 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
9981 (sync_result, sync_memory, sync_required_value): New attributes.
9982 (sync_new_value, sync_t1, sync_t2): Likewise.
9983 (sync_release_barrier, sync_op): Likewise.
9984 (length): Add logic to length attribute defintion to call
9985 arm_sync_loop_insns when appropriate.
9986 * config/arm/sync.md: New file.
9988 2010-08-17 Jakub Jelinek <jakub@redhat.com>
9990 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
9991 ENABLE_TREE_CHECKING.
9992 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
9995 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
9997 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
9998 or optimizing for size, always avoid lea if possible.
10000 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
10002 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
10004 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
10005 Dunmmy function with NULL return unless the target is
10006 OSX >= 10.6 (Darwin10).
10008 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
10010 * gcc.c (spec_function): Add remove-outfile.
10011 (remove_outfile_spec_function): New function.
10012 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
10013 * invoke.texi (replace-outfile): Document.
10015 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
10018 * reginfo.c (globalize_reg): Reject stack registers.
10020 2010-08-17 Richard Guenther <rguenther@suse.de>
10022 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
10023 list of conditional equivalences.
10024 (free_all_edge_infos): Adjust.
10025 (record_equivalences_from_incoming_edge): Likewise.
10026 (record_cond): Likewise.
10027 (build_and_record_new_cond): Likewise.
10028 (record_conditions): Likewise.
10029 (dom_opt_leave_block): Likewise.
10031 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
10033 * doc/invoke.texi (ms-extension): Add documentation.
10035 2010-08-17 Richard Guenther <rguenther@suse.de>
10037 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
10039 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
10042 * c-decl.c (diagnose_uninitialized_cst_member): New function.
10043 (finish_decl): Use it to issue a -Wc++-compat warning about
10044 uninitialized const field in struct or union.
10046 (finish_struct): Use strip_array_types.
10048 2010-08-17 Jakub Jelinek <jakub@redhat.com>
10050 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
10052 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
10053 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
10054 call block_nreverse here.
10055 (blocks_nreverse): Rename decl temporary to block.
10057 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
10059 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
10060 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
10061 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
10062 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
10063 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
10064 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
10065 thumb2_iorsi3): Delete.
10066 (orsi_notsi_si): No longer a named pattern.
10067 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
10068 * config/arm/predicates.md (shift_amount_operand): New.
10069 (mult_operator): New.
10070 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
10071 attr enabled): New.
10072 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
10074 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
10075 (not_shiftsi_compare0): Likewise, renamed from
10076 arm_notsi_shiftsi_compare0.
10077 (not_shiftsi_compare0_scratch): Likweise, renamed from
10078 arm_notsi_shiftsi_compare0_scratch.
10079 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
10080 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
10081 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
10082 so that the register alternative is disabled when the shift_operator
10083 is MULT. Use "M" as the constraint for constants.
10084 (arith_shiftsi splitter): Enable for TARGET_32BIT.
10085 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
10086 constraint for constants.
10087 (arith_shiftsi_compare0_scratch): Likewise.
10088 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
10089 Handle Thumb2 alternative.
10091 2010-08-16 Joseph Myers <joseph@codesourcery.com>
10093 * doc/options.texi (NoDriverArg): Document.
10094 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
10096 * opt-functions.awk (switch_flags): Handle NoDriverArg.
10097 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
10098 marking for CL_NO_DRIVER_ARG options when in the driver.
10099 * opts.h (CL_NO_DRIVER_ARG): Define.
10100 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
10101 CL_COMMON): Update values.
10103 2010-08-16 Joseph Myers <joseph@codesourcery.com>
10105 * common.opt: Add driver options.
10106 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
10107 * doc/options.texi (Driver, RejectDriver): Document.
10108 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
10109 print_prog_name, print_multi_directory, print_sysroot,
10110 print_multi_os_directory, print_multi_lib,
10111 print_sysroot_headers_suffix, report_times, combine_flag,
10112 use_pipes, wrapper_string): Remove.
10113 (save_switch, driver_unknown_option_callback,
10114 driver_wrong_lang_callback, driver_post_handling_callback,
10115 driver_handle_option): New.
10116 (spec_lang, last_language_n_infiles): Make file-scope static
10117 instead of local to process_command.
10118 (process_command): Use decode_cmdline_options_to_array and
10119 read_cmdline_option for option processing. Compute have_c in
10120 prescan of decoded options.
10121 * opt-functions.awk (switch_flags): Handle Driver and
10123 (var_type, var_type_struct): Handle Separate options as generating
10124 const char * variables.
10125 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
10126 CL_TARGET to be passed by caller if required.
10127 (decode_cmdline_options_to_array): Update comment.
10128 * opts.c (complain_wrong_lang): Handle options only valid for the
10130 (decode_options): Update call to decode_cmdline_options_to_array.
10131 (print_filtered_help): Ignore driver-only options.
10132 (print_specific_help): Ignore CL_DRIVER.
10133 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
10134 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
10135 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
10138 2010-08-16 Richard Guenther <rguenther@suse.de>
10140 * tree-cfg.c (verify_types_in_gimple_reference): Verify
10141 TARGET_MEM_REF a bit.
10142 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
10143 (create_mem_ref_raw): Always create TMR_OFFSET, store the
10144 alias pointer type via it.
10145 (copy_mem_ref_info): Adjust.
10146 (maybe_fold_tmr): Likewise.
10147 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
10148 (reference_alias_ptr_type): Likewise.
10149 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
10150 adjust documentation of TMR_OFFSET operand.
10151 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
10152 use the alias pointer type.
10153 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
10154 initialize mem attrs but the TMR itself.
10155 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
10156 similar to MEM_REF.
10157 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
10158 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
10159 (unshare_and_remove_ssa_names): Likewise.
10160 (copy_ref_info): Adjust.
10161 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
10162 TARGET_MEM_REF case.
10163 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
10165 * tree.h (TMR_ORIGINAL): Remove.
10166 * gimple.c (get_base_address): For TARGET_MEM_REF with a
10167 symbol return that.
10168 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
10170 (get_addr_base_and_unit_offset): Likewise.
10171 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
10173 (indirect_ref_may_alias_decl_p): Likewise.
10174 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
10176 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
10178 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
10179 with GCC version 4.6, the default setting (when not optimizing
10180 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
10181 been changed to -fomit-frame-pointer.
10183 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
10185 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
10186 Darwin10. Do not link libgcc.a for Darwin >= 9.
10188 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
10190 * doc/invoke.texi (Warning Options): Fix terminology and markup
10191 in the description of how unknown warning options are handled.
10193 2010-08-15 Ira Rosen <irar@il.ibm.com>
10195 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
10197 (vect_supportable_dr_alignment): Check alignment for basic blocks.
10198 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
10200 (vect_bb_vectorization_profitable_p): New function.
10201 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
10202 check if it's worthwhile to vectorize the basic block.
10204 2010-08-14 Anatoly Sokolov <aesok@post.ru>
10206 * reload.h (register_move_cost, memory_move_secondary_cost,
10207 secondary_reload_class): Adjust prototype.
10208 * rtl.h (reg_class_subset_p): Adjust prototype.
10209 * reload.c (secondary_reload_class): Change arguments type from
10210 enum reg_class to reg_class_t. Change result type to reg_class_t.
10211 * reginfo.c (register_move_cost, reg_class_subset_p): Change
10212 arguments type from enum reg_class to reg_class_t.
10213 (memory_move_secondary_cost): Change arguments type from
10214 enum reg_class to reg_class_t. Change type of saved_flags to
10217 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10219 (mips_cost): Remove.
10220 (struct mips_rtx_cost_data): Moved to mips.c.
10221 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
10222 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
10223 (mips_cost): Make static.
10224 (mips_canonicalize_move_class): Change argument type to reg_class_t.
10225 Change result type to reg_class_t.
10226 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
10227 type from enum reg_class to reg_class_t.
10228 (mips_register_move_cost): Make static. Change arguments
10229 type from enum reg_class to reg_class_t.
10230 (mips_memory_move_cost): New function.
10231 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10233 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
10235 PR rtl-optimization/43358
10236 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
10237 of a single hard register, using simplify_subreg_regno to decide
10238 what that register should be.
10240 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
10242 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
10243 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
10244 (loongson_pmull<V_suffix>): Rename to...
10245 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
10247 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
10249 * configure.ac: Enable -fomit-frame-pointer on darwin
10250 which support dwarf2.
10251 * config/i386/i386.c (override_options): Same.
10253 2010-08-13 Jie Zhang <jie@codesourcery.com>
10255 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
10257 2010-08-12 Joseph Myers <joseph@codesourcery.com>
10259 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
10262 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
10264 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
10265 up dot_prod pattern searching if a stmt is outside the loop.
10267 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
10268 Uros Bizjak <ubizjak@gmail.com>
10270 * config.gcc: Handle --enable-frame-pointer.
10272 * configure.ac: Add --enable-frame-pointer.
10273 * configure: Regenerated.
10275 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
10276 (override_options): If not configured with --enable-frame-pointer,
10277 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
10278 optimizing for size), -fasynchronous-unwind-tables and
10279 -maccumulate-outgoing-args by default.
10281 2010-08-12 Jakub Jelinek <jakub@redhat.com>
10283 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
10285 PR middle-end/45262
10286 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
10287 -a overflows. Normalize the range.
10289 2010-08-12 Richard Guenther <rguenther@suse.de>
10291 PR tree-optimization/45232
10292 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
10293 for types with undefined overflow.
10294 (reassociate_bb): Allow re-associating of bit and min/max
10295 operations for types with undefined overflow.
10296 * tree-ssa-forwprop.c (associate_plusminus): New function.
10297 (tree_ssa_forward_propagate_single_use_vars): Call it.
10299 2010-08-12 Richard Guenther <rguenther@suse.de>
10301 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
10302 * tree-ssa-alias.c (get_ptr_info): Move ...
10303 * tree-ssanames.c (get_ptr_info): ... here. Initialize
10304 align and misalign fields conservatively.
10305 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
10306 derive alignment information.
10307 (evaluate_stmt): Derive alignment information from memory
10308 allocation functions.
10309 * tree.h (get_pointer_alignment): Make unsigned.
10310 * builtins.c (get_object_alignment): Use alignment information we
10311 have computed for pointers.
10312 (get_pointer_alignment): Likewise. Make conservative, return
10313 and unsigned value.
10314 (expand_builtin_strlen): Adjust.
10315 (expand_builtin_memcmp): Likewise.
10316 (expand_builtin_strcmp): Likewise.
10317 (expand_builtin_strncmp): Likewise.
10318 (get_builtin_sync_mem): Use at least mode alignment.
10319 (fold_builtin_memset): Adjust.
10320 (fold_builtin_memory_op): Likewise.
10321 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
10322 information also dump pointer alignment knowledge.
10323 (dump_gimple_stmt): Likewise.
10325 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
10327 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
10328 (EMPTY_FIELD_BOUNDARY): Remove.
10329 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
10331 2010-08-12 Jakub Jelinek <jakub@redhat.com>
10334 * caller-save.c (save_call_clobbered_regs): Only swap notes with
10335 DEBUG_INSNs if n_regs_saved.
10337 2010-08-12 Wei Guozhi <carrot@google.com>
10340 * config/arm/arm.md (andsi3): Change to zero extension if possible.
10341 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
10343 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
10345 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
10347 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
10349 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10351 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
10352 the case removed in the previous patch, when the only phi argument
10353 is defined in the same loop as the phi node itself. Handle it
10354 separately from the invariant case by both propagating it outside
10355 the region and replacing the phi node with an assign.
10357 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10359 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
10360 constant phi nodes with one argument are is_gimple_min_invariant
10361 and SSA_NAME_IS_DEFAULT_DEF.
10363 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10365 * graphite-cloog-util.c (oppose_constraint):
10366 Extend loop counter's value range (CLOOG_ORG).
10367 (cloog_matrix_to_ppl_constraint): Same.
10368 (new_Constraint_System_from_Cloog_matrix): Same.
10369 * graphite-cloog-compat.h (matrix_num_type): New.
10371 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10373 * graphite.c (graphite_initialize): Do not initialize
10374 CLooG and initialize the Parma Polyhedra Library
10375 manually when using CLOOG_ORG.
10376 (graphite_finalize): Do not finalize CLooG and finalize
10377 the Parma Polyhedra Library manually when using CLOOG_ORG.
10378 * graphite-cloog-compat.h (cloog_initialize): Hide function
10379 when using CLOOG_ORG.
10380 (cloog_finalize): Same.
10382 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10384 * graphite-clast-to-gimple.c (free_scattering): Change
10385 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
10387 (build_cloog_prog): Same.
10388 * graphite-cloog-compat.h (cloog_domain): Removed.
10389 (cloog_scattering): New.
10390 (cloog_set_domain): Removed.
10391 (cloog_set_scattering): New.
10392 (cloog_next_domain): Removed.
10393 (cloog_next_scattering): New.
10394 (cloog_set_next_domain): Removed.
10395 (cloog_set_next_scattering): New.
10396 (CloogScatteringList): New.
10397 (CloogScattering): New.
10398 (cloog_scattering_free): New.
10399 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
10400 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
10403 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10405 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
10407 (set_cloog_options): Same.
10408 (print_clast_stmt): Same.
10409 (scop_to_clast): Same.
10410 (print_generated_program): Same.
10412 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
10413 (scop_to_clast): Extend with CloogState.
10414 * graphite-cloog-util.c: Include graphite-cloog-compat.h
10415 (new_Cloog_Domain_from_ppl_Polyhedron):
10416 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
10417 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
10418 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10419 * graphite-cloog-util.h (build_cloog_prog): Same.
10420 * graphite-cloog-copat.h (build_cloog_prog): New.
10422 (cloog_state_malloc): New.
10423 (cloog_state_free): New.
10424 (cloog_loop_malloc): New.
10425 (cloog_options_malloc): New.
10426 (cloog_statement_alloc): New.
10427 (cloog_domain_from_cloog_matrix): New.
10428 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
10429 (new_Cloog_Domain_from_ppl_Polyhedron): New.
10431 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10433 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
10434 type of NAME now depends on used CLooG version.
10435 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
10436 (gcc_type_for_clast_expr): Same.
10437 (print_clast_stmt): Replace pprint with clast_pprint.
10438 * graphite-cloog-compat.h: Provide compatibility macros for
10440 (clast_name_p): New.
10441 (clast_expr_term): New.
10442 (clast_expr_red): New.
10443 (clast_expr_bin): New.
10444 (clast_pprint): New.
10446 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10448 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
10449 compatible to newer CLooG releases (CLOOG_ORG).
10450 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
10451 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
10452 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
10453 (build_cloog_prog) : New.
10454 (cloog_program_extract_scalars): New.
10455 (cloog_program_scatter): New.
10457 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10459 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
10460 conditionally (CLOOG_ORG).
10461 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
10462 (cloog_statement_usr): New.
10463 (cloog_domain): Same.
10464 (cloog_set_domain): Same.
10465 (cloog_next_domain): Same.
10466 (cloog_set_next_domain): Same.
10467 (cloog_program_nb_scattdims): Same.
10468 (cloog_program_set_nb_scattdims): Same.
10469 (cloog_program_names): Same.
10470 (cloog_program_set_names): Same.
10471 (cloog_program_set_context): Same.
10472 (cloog_program_set_loop): Same.
10473 (cloog_program_blocklist): Same.
10474 (cloog_program_set_blocklist): Same.
10475 (cloog_program_scaldims): Same.
10476 (cloog_program_set_scaldims): Same.
10477 (cloog_names_nb_parameters): Same.
10478 (cloog_names_set_nb_parameters): Same.
10479 (cloog_names_parameters): Same.
10480 (cloog_names_set_parameters): Same.
10481 (cloog_names_set_nb_iterators): Same.
10482 (cloog_names_set_iterators): Same.
10483 (cloog_names_set_nb_scattering): Same.
10484 (cloog_names_set_scattering): Same.
10485 (cloog_statement_set_usr): Same.
10486 (cloog_loop_set_next): Same.
10487 (cloog_loop_set_domain): Same.
10488 (cloog_loop_set_block): Same.
10489 (cloog_block_list_next): Same.
10490 (cloog_block_list_set_next):
10491 (cloog_block_list_set_block): Same.
10493 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10495 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
10497 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
10498 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
10499 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
10500 when something has been changed.
10501 (rewrite_commutative_reductions_out_of_ssa): Same.
10503 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10505 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
10506 handle the case when def is in the sese region.
10507 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
10508 for invariant expressions.
10509 (rewrite_cross_bb_phi_deps): Removed.
10510 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
10511 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
10512 rewrite_cross_bb_phi_deps.
10514 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10516 * graphite-sese-to-poly.c
10517 (rewrite_commutative_reductions_out_of_ssa_loop): Call
10518 scev_analyzable_p only on is_gimple_reg
10520 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10522 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
10523 (rewrite_close_phi_out_of_ssa): Propagate constant values or
10524 parametric expressions outside the scop region.
10525 (rewrite_cross_bb_scalar_deps): Same.
10526 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
10528 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10530 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
10531 SSA_NAME_DEF_STMT only on SSA_NAMEs.
10533 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10535 * tree-scalar-evolution.c (instantiate_scev_name): Do not
10536 instantiate default definitions.
10538 2010-08-11 Vladimir Kargov <kargov@gmail.com>
10539 Sebastian Pop <sebastian.pop@amd.com>
10541 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
10542 (loop_exits_from_bb_p): New.
10543 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
10544 (loop_exits_from_bb_p): Declared.
10545 * graphite-scop-detection.c (scopdet_basic_block_info): Call
10546 loop_exits_to_bb_p.
10548 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10550 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
10551 extra parameter for the region. Call scev_analyzable_p.
10552 (rewrite_reductions_out_of_ssa): Update call to
10553 rewrite_close_phi_out_of_ssa.
10554 (rewrite_cross_bb_phi_deps): Same.
10555 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
10556 parameter for the region. Call scev_analyzable_p.
10557 (rewrite_commutative_reductions_out_of_ssa): Update call to
10558 rewrite_commutative_reductions_out_of_ssa_loop.
10560 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10562 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
10564 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10566 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
10567 SSA scalar phi nodes that can be scev_analyzable_p.
10569 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10571 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
10572 handle SSA_NAME_IS_DEFAULT_DEF.
10574 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10576 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
10578 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10580 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
10581 case non close-phi nodes with one argument.
10583 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10585 * sese.h (scev_analyzable_p): Scevs could be expressions without
10586 chrecs and still be scev_analyzable_p.
10588 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10590 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10592 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10594 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
10595 * cfgloop.h (struct loop): Remove single_iv field.
10596 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
10597 (scop_canonicalize_loops): Removed.
10598 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
10599 over all the loop phi nodes in loop->header.
10600 (build_poly_scop): Remove use of scop_canonicalize_loops.
10602 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10604 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
10605 handle GIMPLE_CALL.
10607 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10609 * tree-chrec.c (chrec_apply): Should only apply to the specified
10610 variable. Also handle multivariate chains of recurrences that
10611 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
10613 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10615 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
10616 (debug_clast_name_indexes_1): Removed.
10617 (debug_clast_name_indexes): Removed.
10618 (pbb_to_depth_to_oldiv): Removed.
10619 (build_iv_mapping): Replace the use of rename_map with iv_map.
10620 (translate_clast_user): Remove uses of rename_map. Allocate and
10622 (translate_clast_for_loop): Remove uses of rename_map.
10623 (translate_clast_for): Same.
10624 (translate_clast_guard): Same.
10625 (translate_clast): Same.
10627 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
10628 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
10629 * sese.c (set_rename): Now static.
10630 (rename_variables_in_stmt): Removed.
10631 (rename_uses): New.
10632 (is_parameter): Removed.
10634 (expand_scalar_variables_call): Removed.
10635 (expand_scalar_variables_ssa_name): Removed.
10636 (expand_scalar_variables_expr): Removed.
10637 (expand_scalar_variables_stmt): Removed.
10638 (expand_scalar_variables): Removed.
10639 (rename_variables): Removed.
10640 (remove_condition): Removed.
10641 (get_true_edge_from_guard_bb): Removed.
10642 (get_false_edge_from_guard_bb): Removed.
10643 (struct igp): Removed.
10644 (default_before_guard): Removed.
10645 (convert_for_phi_arg): Removed.
10646 (add_guard_exit_phis): Removed.
10647 (insert_guard_phis): Removed.
10648 (graphite_copy_stmts_from_block): Now also uses iv_map and a
10649 region. Do not copy conditions. Do not copy induction variables.
10651 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
10652 the translated statement. Use the iv_map for the induction
10654 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
10655 (set_rename): Removed declaration.
10656 (scev_analyzable_p): ...here.
10657 * tree-chrec.c (chrec_apply_map): New.
10658 * tree-chrec.h (chrec_apply_map): Declared.
10660 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10662 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
10663 insert_loop_close_phis.
10664 * sese.c (name_defined_in_loop_p): Removed.
10665 (expr_defined_in_loop_p): Removed.
10666 (alive_after_loop): Removed.
10667 (close_phi_not_yet_inserted_p): Removed.
10668 (struct alep): Removed.
10669 (add_loop_exit_phis): Removed.
10670 (insert_loop_close_phis): Removed.
10672 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10674 * graphite-cloog-util.c
10675 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
10677 (psct_scattering_dim_for_loop_depth): Same.
10679 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10681 * graphite-cloog-util.h: Added cloog.h.
10682 * graphite-blocking.c: Removed cloog.h.
10683 * graphite-dependences.c: Same.
10684 * graphite-interchange.c: Same.
10685 * graphite-poly.c: Same.
10686 * graphite-ppl.c: Same.
10687 * graphite-scop-detection.c: Same.
10688 * graphite-sese-to-poly.c:
10690 Removed graphite-clast-to-gimple.h.
10691 (check_poly_representation): Removed (unused).
10692 * graphite-sese-to-poly.h
10693 (check_poly_representation): Removed (unused).
10695 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10697 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
10698 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
10699 (graphite-cloog-util.o): New.
10700 (graphite-ppl.o): Added graphite-cloog-util.h.
10701 * graphite-clast-to-gimple.c:
10702 Added graphite-cloog-util.h to include statements.
10703 * graphite-cloog-util.c: New.
10704 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
10705 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10706 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10707 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10708 (insert_constraint_into_matrix): Same.
10709 (ppl_Constrain_System_number_of_constraints): Same.
10710 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
10711 (oppose_constraint): Same.
10712 (cloog_matrix_to_ppl_constraint): Same.
10713 (new_Constraint_System_from_Cloog_Matrix): Same.
10714 * graphite-cloog-util.h: New.
10715 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
10716 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10717 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10718 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10719 (insert_constraint_into_matrix): Same.
10721 Added graphite-cloog-util.h to include statements.
10722 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
10723 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10724 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10725 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10726 (insert_constraint_into_matrix): Same.
10727 (ppl_Constrain_System_number_of_constraints): Same.
10728 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
10729 (oppose_constraint): Same.
10730 (cloog_matrix_to_ppl_constraint): Same.
10731 (new_Constraint_System_from_Cloog_Matrix): Same.
10733 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
10734 graphite-cloog-util.h.
10735 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10736 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10737 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10738 (insert_constraint_into_matrix): Same.
10740 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10742 * graphite-clast-to-gimple.c
10743 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
10744 (precision_for_interval): Same.
10745 (gcc_type_for_interval): Same.
10746 (compute_type_for_level): Same.
10747 * graphite-interchange.c
10748 (lst_interchange_profitable_p): Same.
10750 (psct_scattering_dim_for_loop_depth): Same.
10752 (ppl_max_for_le_pointset): Same.
10753 (ppl_min_for_le_pointset): Same.
10755 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10757 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
10758 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
10760 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10762 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
10763 rewrite_close_phi_out_of_ssa.
10765 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10767 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
10769 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10771 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
10773 * sese.c (debug_rename_map): Same.
10774 (get_rename): Same.
10775 (set_rename): Same.
10776 (rename_variables_in_stmt): Same.
10777 (expand_scalar_variables_call): Same.
10778 (expand_scalar_variables_ssa_name): Same.
10779 (expand_scalar_variables_expr): Same.
10780 (expand_scalar_variables_stmt): Same.
10781 (expand_scalar_variables): Same.
10782 (rename_variables): Same.
10783 (graphite_copy_stmts_from_block): Same.
10784 (copy_bb_and_scalar_dependences): Same.
10786 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10788 * graphite-clast-to-gimple.c (copy_renames): Removed.
10789 (translate_clast_for): Do not call copy_renames.
10790 (translate_clast_guard): Same.
10792 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10794 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
10795 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
10796 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
10797 before rewrite_cross_bb_scalar_deps.
10799 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10801 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
10802 Early return in when flag_associative_math is not set.
10804 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10806 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
10807 of SSA copies on edges except for loop->latch.
10809 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10811 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
10812 Split out of rewrite_reductions_out_of_ssa.
10813 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
10815 * graphite.c (graphite_transform_loops): Call it.
10817 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10819 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
10821 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
10823 * dbgcnt.def (graphite_scop): New counter.
10824 * graphite.c: Include dbgcnt.h.
10825 (graphite_transform_loops): Use new counter to limit transformations.
10826 * Makefile.in (graphite.o): Depend on DBGCNT_H.
10828 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10830 * passes.c (init_optimization_passes): Add pass_graphite.
10831 Schedule a pass_copy_prop before pass_graphite_transforms.
10832 * timevar.def (TV_GRAPHITE): Declared.
10833 * tree-pass.h (pass_graphite): Declared.
10834 * tree-ssa-loop.c (pass_graphite): New.
10836 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10838 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
10839 Remove calls to rename_nb_iterations and rename_sese_parameters.
10840 * graphite-clast-to-gimple.h (gloog): Update declaration.
10841 * graphite.c (graphite_transform_loops): Update call to gloog.
10842 * sese.c (rename_variables_in_expr): Removed.
10843 (rename_nb_iterations): Removed.
10844 (rename_sese_parameters): Removed.
10845 * sese.h (rename_nb_iterations): Removed.
10846 (rename_sese_parameters): Removed.
10848 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10850 * graphite-clast-to-gimple.c (gloog): Remove call to
10851 sese_adjust_liveout_phis.
10852 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
10853 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
10854 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
10855 rewrite_phi_out_of_ssa.
10856 * sese.c (get_vdef_before_sese): Removed.
10857 (sese_adjust_vphi): Removed.
10858 (sese_adjust_liveout_phis): Removed.
10859 * sese.h (sese_adjust_liveout_phis): Removed.
10861 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10863 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
10864 argument for the place after which to insert the out of SSA copy.
10865 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
10866 (rewrite_phi_out_of_ssa): Same.
10867 (rewrite_cross_bb_scalar_deps): Same.
10868 (insert_copyout): Removed.
10869 (insert_copyin): Removed.
10870 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
10871 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
10874 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10876 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
10877 (rewrite_reductions_out_of_ssa): Same.
10878 (rewrite_commutative_reductions_out_of_ssa): Same.
10879 (build_poly_scop): Do not call these functions.
10880 * graphite-sese-to-poly.h (build_poly_scop): Declared.
10881 (rewrite_reductions_out_of_ssa): Declared.
10882 (rewrite_commutative_reductions_out_of_ssa): Declared.
10883 * graphite.c (graphite_transform_loops): Call on every scop
10884 rewrite_commutative_reductions_out_of_ssa before calling
10885 rewrite_reductions_out_of_ssa and build_scop_bbs.
10887 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10889 * graphite-dependences.c (dot_deps): Make system call to dotty run
10891 (dot_deps_stmt): Same.
10892 * graphite-poly.c (dot_lst): Same.
10894 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10896 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
10897 phi_arg_in_outermost_loop.
10898 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
10899 (remove_invariant_phi): Same.
10901 2010-08-11 Anatoly Sokolov <aesok@post.ru>
10903 * target.def (output_addr_const_extra): New hook.
10904 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
10905 * doc/tm.texi: Regenerate.
10906 * targhooks.c (default_asm_output_addr_const_extra): New function.
10907 * targhooks.h (default_asm_output_addr_const_extra): Declare.
10908 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
10911 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10912 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
10913 * config/i386/i386.h (output_addr_const_extra): Rename to...
10914 (i386_asm_output_addr_const_extra): ...this. Make static.
10915 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10917 2010-08-11 Richard Henderson <rth@redhat.com>
10919 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
10921 2010-08-11 Nick Clifton <nickc@redhat.com>
10923 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
10924 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
10925 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
10926 stormy16-lib2-cmpsi.c.
10928 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
10931 2010-08-11 Joseph Myers <joseph@codesourcery.com>
10933 * opts.h (struct cl_option_handler_func): Make handler take
10934 cl_decoded_option structure as parameter, not individual elements.
10935 (struct cl_option_handlers): Make callbacks take cl_decoded_option
10936 structure as parameter, not individual elements.
10937 (handle_option): Take cl_decoded_option structure as parameter,
10938 not individual elements.
10939 (handle_generated_option): Declare.
10940 * opts-common.c (handle_option): Take cl_decoded_option structure
10941 as parameter, not individual elements. Update calls to callback
10942 and handler functions.
10943 (handle_generated_option): New.
10944 (read_cmdline_option): Update calls to callback functions and
10946 * opts.c (common_handle_option, complain_wrong_lang,
10947 unknown_option_callback, post_handling_callback,
10948 lang_handle_option, target_handle_option): Take cl_decoded_option
10949 structure as parameter, not individual elements.
10950 (lang_handle_option, target_handle_option, common_handle_option):
10951 Assert option has at most one argument.
10952 (enable_warning_as_error): Call handle_generated_option instead of
10953 handle_option. Do not pass -Werror argument as argument of
10956 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10958 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
10959 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
10960 (SUBWORD_BOOL_CAS): Likewise.
10961 (SUBWORD_SYNC_OP): Likewise.
10962 (SUBWORD_TEST_AND_SET): Likewise.
10963 (FETCH_AND_OP_WORD): Parenthesise INF_OP
10964 (SUBWORD_SYNC_OP): Likewise.
10965 (OP_AND_FETCH_WORD): Likewise.
10967 2010-08-10 Xinliang David Li <davidxl@google.com>
10969 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
10970 compute max/min offset in address.
10972 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
10974 * ira-live.c: Include sbitmap.h.
10975 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
10976 Compress live ranges even more.
10978 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
10980 * coverage.c (ctr_labels): Delete.
10982 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
10985 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
10986 test here from arm_gen_load_multiple_1.
10987 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
10988 multiple_operation_profitable_p.
10990 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
10992 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
10993 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
10995 2010-08-10 Richard Henderson <rth@redhat.com>
10997 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
10998 after saving registers. Assert that SSE registers are only saved
10999 with a sufficiently aligned frame.
11000 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
11001 remove stack_realign_fp handling.
11002 (ix86_expand_prologue): Save int registers before stack_realign_fp,
11003 and do not mark the stack alignment as frame related.
11004 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
11006 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
11007 saves when re-aligning the stack.
11009 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11011 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
11012 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
11013 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
11015 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11017 * dwarf2out.c (struct die_struct): Move die_tag to the end.
11019 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
11021 * config/arm/iterators.md: New file.
11022 * config/arm/arm.md: Include iterators.md.
11023 (QHSI): Move to new file.
11024 (LTUGEU, cnb, optab, ior_xor): Likewise.
11025 * config/arm/iwmmxt.md (VMMX): Move to new file.
11026 (VSHFT, MMX_char): Likewise.
11027 * config/arm/neon.md (VD): Move to new file.
11028 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
11029 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
11030 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
11031 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
11032 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
11033 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
11034 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
11035 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
11036 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
11037 (Is_d_reg, V_mode_nunits): Likewise.
11038 * config/arm/vec-common.md (VALL): Move to new file.
11039 (VALLW, VINT, VINTW): Likewise.
11041 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
11043 PR middle-end/45182
11044 * combine.c (make_compound_operation): Don't try to convert
11045 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
11047 2010-08-10 Richard Guenther <rguenther@suse.de>
11049 * tree.h (get_object_alignment): Adjust prototype.
11050 * builtins.c (get_object_alignment): Return unsigned int,
11051 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
11052 and TARGET_MEM_REF properly.
11053 (get_pointer_alignment): Adjust.
11054 * emit-rtl.c (get_mem_align_offset): Adjust comment.
11055 (set_mem_attributes_minus_bitpos): Adjust.
11056 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
11058 2010-08-10 Richard Guenther <rguenther@suse.de>
11060 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
11061 (copy_prop_visit_assignment): Simplify.
11062 (copy_prop_visit_stmt): Also visit assignments from
11064 (copy_prop_visit_phi_node): Use operand_equal_p.
11066 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11068 * ipa-split.c (find_split_points): Free stack.
11070 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11072 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
11073 * tree.c (tree_node_kind): Delete corresponding entries.
11075 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
11077 * alias.c (may_alias_p): Remove unused ret.
11079 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
11081 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
11082 alias_sets_conflict_p.
11083 (walk_mems_1): Moved from alias.c.
11084 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
11086 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
11087 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
11088 * alias.c (walk_mems_2): Moved to ddg.c.
11089 (walk_mems_1): Ditto.
11090 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
11092 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
11094 *(may_alias_p): New function to check whether two memory expression
11095 may alias or not. Currently used in buidling inter-iteration memory
11097 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
11098 (insn_alias_sets_conflict_p): Removed
11099 *rtl.h (may_alias_p): New function prototype.
11101 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11103 * tree.c (nreverse): Assert that we don't have a BLOCK.
11105 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11107 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
11108 * config/arm/arm.c (arm_get_pcs_model): Likewise.
11109 * config/avr/avr.c (init_cumulative_args): Likewise.
11110 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11111 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11112 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
11113 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
11114 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
11115 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11116 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
11117 * dwarf2out.c (gen_subprogram_die): Likewise.
11118 * function.c (allocate_struct_function): Likewise.
11119 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
11120 (deserves_ellipsis): Delete.
11122 2010-08-09 Richard Guenther <rguenther@suse.de>
11124 * tree-ssa-copy.c (cached_last_copy_of): Remove.
11125 (valueize_val): New function.
11126 (get_last_copy_of): Remove.
11127 (set_copy_of_val): Simplify.
11128 (dump_copy_of): Likewise.
11129 (copy_prop_visit_cond_stmt): Use valueize_val.
11130 (copy_prop_visit_phi_node): Properly handle unvisited names.
11131 Drop code managing copy-of chains.
11132 (init_copy_prop): Adjust.
11133 (fini_copy_prop): Likewise.
11134 (execute_copy_prop): Remove obsolete comment.
11136 2010-08-09 Richard Guenther <rguenther@suse.de>
11138 PR middle-end/44632
11139 * function.c (gimplify_parameters): Do not clear addressable
11140 bit of the original parameter.
11142 2010-08-09 Richard Guenther <rguenther@suse.de>
11144 PR middle-end/45212
11145 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
11146 alignment from MEM_REF offset only if we took it from the
11149 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
11151 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
11153 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
11155 * c-tree.h (build_arg_info): Declare.
11156 * c-decl.c (build_arg_info): Define.
11157 (get_parm_info): Call it. Delete initialization code.
11158 * c-parser.c (c_parser_parms_declarator): Likewise.
11159 (c_parser_parms_list_declaractor): Likewise.
11161 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
11163 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
11164 (struct c_arg_info): Change type of tags field.
11165 * c-decl.c (grokdeclarator): Update for changed type of tags field.
11166 (get_parm_info): Likewise.
11167 (store_parm_decls_newstyle): Likewise.
11169 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
11171 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
11172 (branch_island_list): Delete.
11173 (branch_islands): Declare.
11174 (add_compiler_branch_island): Adjust for branch_islands instead of
11175 branch_island_list.
11176 (macho_branch_islands): Likewise.
11177 (no_previous_def): Likewise.
11178 (get_prev_label): Likewise.
11180 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11183 * gthr-posix.h (__gthread_start): Delete.
11184 (__gthread_active_init): Use pthread_default_stacksize_np instead of
11185 pthread_create to determine if hpux pthreads are active.
11186 * gthr-posix95.h (__gthread_start): Delete.
11187 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
11189 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
11191 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
11192 _WIN64 not expanded.
11194 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
11195 H.J. Lu <hongjiu.lu@intel.com>
11198 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
11199 to output 32bit SFmode immediate as 8 byte sign extended value.
11201 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11203 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
11204 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
11205 (SUBWORD_BOOL_CAS): Likewise.
11206 (SUBWORD_SYNC_OP): Likewise.
11207 (SUBWORD_TEST_AND_SET): Likewise.
11208 (FETCH_AND_OP_WORD): Parenthesise INF_OP
11209 (SUBWORD_SYNC_OP): Likewise.
11210 (OP_AND_FETCH_WORD): Likewise.
11212 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11214 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
11215 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
11216 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
11217 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
11219 (cortex_a9_sched_adjust_cost): New function.
11220 (xscale_sched_adjust_cost): New function.
11221 * config/arm/arm-protos.h (struct tune_params): New field
11223 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
11225 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
11228 * config/sparc/sparc.c (function_arg_advance): Always take into account
11229 the padding, if any.
11231 2010-08-06 Richard Guenther <rguenther@suse.de>
11233 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
11234 (dump_lattice_value): Dump it.
11235 (get_default_value): Adjust.
11236 (get_constant_value): Likewise.
11237 (set_value_varying): Likewise.
11238 (set_lattice_value): Make sure to not go up the lattice
11239 with bitwise constant values.
11240 (get_value_for_expr): Handle ADDR_EXPRs.
11241 (value_to_double_int): New function.
11242 (get_value_from_alignment): Likewise.
11243 (do_dbg_cnt): Adjust.
11244 (ccp_lattice_meet): Handle partially constant values.
11245 (bit_value_unop_1): New function.
11246 (bit_value_binop_1): Likewise.
11247 (bit_value_unop): Likewise.
11248 (bit_value_binop): Likewise.
11249 (evaluate_stmt): Track partially constant values if
11250 flag_tree_bit_ccp is set.
11251 (ccp_fold_stmt): Dump if we folded a predicate.
11252 (ccp_visit_stmt): Adjust.
11253 * common.opt (ftree-bit-ccp): New flag.
11254 * doc/invoke.texi (ftree-bit-ccp): Document.
11255 * opts.c (decode_options): Enable bit-CCP at -O1.
11257 2010-08-06 Alan Modra <amodra@gmail.com>
11259 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
11260 and -mrelocatable-lib description.
11262 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
11264 From Martin Thuresson <martint@google.com>
11265 * postreload.c (reload_cse_simplify_operands): Use
11266 SET_REGNO_RAW instead of SET_REGNO.
11267 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
11269 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
11270 instead of SET_REGNO.
11271 * rtl.h (SET_REGNO_RAW): New macro.
11273 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
11275 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
11276 computations. Fix formatting issues.
11277 (num_sign_bit_copies1): Likewise.
11278 (canonicalize_condition): Likewise.
11280 2010-08-05 Richard Henderson <rth@redhat.com>
11282 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
11283 (floor_log2): Use clz_hwi.
11284 (exact_log2): Use ctz_hwi.
11285 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
11286 * builtins.c (fold_builtin_bitop): Use them.
11287 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11288 * combine.c (get_pos_from_mask): Use ctz_hwi.
11289 * double-int.c (double_int_ctz): Likewise.
11290 * explow.c (force_reg): Likewise.
11291 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
11293 2010-08-05 Richard Henderson <rth@redhat.com>
11296 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
11297 the alignment constant is properly sign-extended.
11299 2010-08-05 Richard Guenther <rguenther@suse.de>
11301 * expr.c (store_expr): Use emit_block_move only if both
11302 source and target are MEMs. Use store_bit_field if only
11303 the target is a MEM.
11305 2010-08-05 Richard Henderson <rth@redhat.com>
11308 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
11309 (INCOMING_RETURN_ADDR_RTX): Likewise.
11310 (dwarf2out_do_frame): Remove conditional compilation.
11311 (dwarf2out_frame_init): Likewise.
11313 2010-08-05 Nicolas Setton <setton@adacore.com>
11315 * gcov.c (flag_display_progress): New static variable.
11316 (main): Display progress info on standard output if requested.
11317 (options): Add -d/--display-progress.
11318 (print_usage): Print them.
11319 (process_args): Handle them.
11320 * doc/gcov.texi: Document them.
11322 2010-08-05 Martin Jambor <mjambor@suse.cz>
11324 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
11325 (ipcp_insert_stage): Redirect only edges not flagged with
11326 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
11327 discovered constants.
11329 2010-08-05 Martin Jambor <mjambor@suse.cz>
11331 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
11332 (struct ipa_param_descriptor): New fields types and
11333 cannot_devirtualize.
11334 (ipa_param_cannot_devirtualize_p): New function.
11335 (ipa_param_types_vec_empty): Likewise.
11336 (ipa_make_edge_direct_to_target): Declare.
11337 * ipa-cp.c: Fixed first stage driver name in initial comment,
11338 described devirtualization there too.
11339 (ipcp_analyze_node): Call ipa_analyze_params_uses.
11340 (ipcp_print_all_lattices): Print devirtualization info.
11341 (ipa_set_param_cannot_devirtualize): New function.
11342 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
11344 (ipcp_init_stage): Merged into...
11345 (ipcp_generate_summary): ...its caller.
11346 (ipcp_change_tops_to_bottom): Also process type lists.
11347 (ipcp_add_param_type): New function.
11348 (ipcp_copy_types): Likewise.
11349 (ipcp_propagate_types): Likewise.
11350 (ipcp_propagate_stage): Also propagate types.
11351 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
11352 Also return true if propagated types require it.
11353 (ipcp_update_callgraph): Dump redirection info.
11354 (ipcp_process_devirtualization_opportunities): New function.
11355 (ipcp_const_param_count): Include known type information.
11356 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
11357 on new node. Fixed formatting.
11358 * ipa-prop.c (make_edge_direct_to_target): Renamed to
11359 ipa_make_edge_direct_to_target and changed all callers. Made
11360 externally visible.
11361 (ipa_node_duplication_hook): Duplicate types vector.
11362 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
11363 redirect outgoing calls for which we can't get a decl from the
11364 statement. Check that we can get a decl from the call statement.
11365 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
11366 ipa_analyze_params_uses only when ipa-cp is disabled.
11367 * tree-inline.c (get_indirect_callee_fndecl): Removed.
11368 (expand_call_inline): Do not call get_indirect_callee_fndecl.
11369 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
11370 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
11372 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
11374 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
11375 temporary. Emit move from temporary to accum, so REG_EQUAL note will
11376 be attached to this insn in correct mode.
11378 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
11380 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
11381 using REGNO of base_reg directly.
11383 2010-08-05 Jie Zhang <jie@codesourcery.com>
11385 PR tree-optimization/45144
11386 * tree-sra.c (type_consists_of_records_p): Return false
11387 if the record contains bit-field.
11389 2010-08-04 Richard Henderson <rth@redhat.com>
11391 * config/i386/i386.c (struct ix86_frame): Remove padding and
11392 to_allocate members.
11393 (ix86_compute_frame_layout): Don't store them.
11394 (ix86_can_use_return_insn_p): Use a more direct and more obviously
11395 correct condition for the position of the stack pointer.
11396 (ix86_expand_prologue): Compute remaining stack allocation based
11397 on the ultimate stack pointer offset.
11398 (ix86_expand_epilogue): Use more obvious expressions testing for
11399 the stack pointer already pointing to the saved registers.
11401 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
11402 duplication deconstructing the frame pointer. Simplify
11403 deallocation of the local stack frame.
11405 * reg-notes.def (CFA_EXPRESSION): New.
11406 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
11407 (dwarf2out_frame_debug_cfa_expression): New.
11408 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
11410 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
11411 * config/i386/i386.c (ix86_expand_prologue): Set it.
11412 (ix86_expand_epilogue): Clear it.
11413 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
11414 context, add REG_CFA_EXPRESSION notes.
11416 * config/i386/i386.h (struct machine_frame_state): Rename from
11417 machine_cfa_state. Add members tracking SP and FP regardless
11418 of the current CFA register.
11419 (ix86_cfa_state): Remove.
11420 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
11421 and sse_reg_save_offset members.
11422 (ix86_compute_frame_layout): Set them.
11423 (gen_push): Increment sp_offset too.
11424 (choose_baseaddr_len, choose_baseaddr): New.
11425 (ix86_emit_save_reg_using_mov): New.
11426 (ix86_emit_save_regs_using_mov): Use it.
11427 (ix86_emit_save_sse_regs_using_mov): Likewise.
11428 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
11429 compare vs the saved red_zone_offset.
11430 (pro_epilogue_adjust_stack): Adjust sp_offset.
11431 (ix86_adjust_stack_and_probe): Likewise.
11432 (ix86_expand_prologue): Set up, use, and validate the new
11433 frame_state_info members. Use gen_frame_mem.
11434 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
11435 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
11436 new frame_state_info members.
11437 (ix86_emit_leave): Likewise.
11438 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
11439 out-of-range stack pointer offsets here.
11440 (ix86_emit_restore_sse_regs_using_mov): Likewise.
11441 (ix86_expand_epilogue): Use and validate the new frame_state_info
11442 members. Break up and simplify the logic selecting the
11443 restore_regs_via_mov code path. Ensure that there will be no
11444 out-of-range stack pointer offsets.
11446 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
11448 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
11449 argument name to reflect the expected tree; fix indentation.
11450 (ix86_asm_output_function_label): Output the entire 32-bit
11451 ms_hook here as bytes ...
11452 (ix86_expand_prologue): ... not here as insns. Attach the
11453 unwind info for the ms_hook to a blockage insn.
11454 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
11455 (ix86_ms_bitfield_layout_p): Fix indentation.
11456 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
11458 * config/i386/i386.c (ix86_using_red_zone): New.
11459 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
11460 ix86_expand_prologue, ix86_force_to_memory): Use it.
11462 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
11463 saving the int registers.
11465 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
11466 and DWARF2_UNWIND_INFO conditional compilation.
11468 2010-08-04 Richard Henderson <rth@redhat.com>
11471 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
11472 an is_naming_typedef_decl.
11474 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
11476 PR rtl-optimization/45162
11477 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
11478 * dce.c (word_dce_process_block): Likewise.
11480 2010-08-04 Steve Ellcey <sje@cup.hp.com>
11483 * config/ia64/constraints.md (Z): New.
11484 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
11485 (xfreg_or_signed_fp01_operand): New.
11486 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
11487 with fr_reg_or_signed_fp01_operand and constraint G with Z.
11492 (adddf3_trunc): Ditto.
11494 (*subdf3_trunc): Ditto.
11496 (*madddf4_trunc): Ditto.
11498 (*msubdf4_trunc): Ditto.
11499 (addxf3): Replace xfreg_or_fp01_operand with
11500 xfreg_or_signed_fp01_operand and constraint G with Z.
11501 (*addxf3_truncsf): Ditto.
11502 (*addxf3_truncdf): Ditto.
11504 (*subxf3_truncsf): Ditto.
11505 (*subxf3_truncdf): Ditto.
11507 (*maddxf4_truncsf): Ditto.
11508 (*maddxf4_truncdf): Ditto.
11510 (*msubxf4_truncsf): Ditto.
11511 (*msubxf4_truncdf): Ditto.
11513 2010-08-04 Richard Guenther <rguenther@suse.de>
11515 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
11516 if either alias-set is zero.
11518 2010-08-04 Richard Guenther <rguenther@suse.de>
11520 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
11521 * tree-ssa-ccp.c: ... here.
11522 * tree-ssa-copy.c: ... and here.
11523 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
11524 value_range_t): Move ...
11525 * tree-vrp.c: ... here.
11526 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
11527 (substitute_and_fold): Adjust prototype.
11528 * tree-ssa-propagate.c (replace_uses_in): Adjust.
11529 (replace_phi_args_in): Likewise.
11530 (substitute_and_fold): Take callback to query lattice instead
11531 of pointer to lattice. Replace SSA name defs with lattice
11533 * tree-ssa-ccp.c (ccp_finalize): Adjust.
11534 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
11535 (get_value): New function.
11536 (fini_copy_prop): Adjust.
11537 * tree-vrp.c (vrp_finalize): Adjust.
11539 2010-08-04 Richard Guenther <rguenther@suse.de>
11541 PR middle-end/45176
11542 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
11543 points-to set for original MEM_REF.
11545 2010-08-04 Richard Guenther <rguenther@suse.de>
11547 * tree-ssa-ccp.c (get_constant_value): New function.
11548 (get_rhs_assign_op_for_ccp): Remove.
11549 (valueize_op): New function.
11550 (ccp_fold): Use get_constant_value and valueize_op.
11551 (fold_const_aggregate_ref): Likewise.
11552 (ccp_fold_stmt): Likewise.
11553 (visit_assignment): Simplify.
11555 2010-08-04 Richard Guenther <rguenther@suse.de>
11557 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
11558 * double-int.h (double_int_ctz): Declare.
11559 * double-int.c (double_int_ctz): New function.
11561 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
11563 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
11565 picochip_expand_movmemhi : Expand movmem pattern.
11566 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
11568 * config/picochip/picochip.md (movmemhi) : New pattern.
11570 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
11572 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
11574 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
11576 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
11577 NEG as operand of a MULT by merging it with the other operand.
11578 * combine.c (make_compound_operation): Use trunc_int_for_mode when
11579 generating a MULT with constant. Canonicalize PLUS and MINUS involving
11581 * config/arm/constraints.md (M): Examine only 32 bits of a
11583 * config/arm/predicates.md (power_of_two_operand): Likewise.
11585 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11587 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
11590 2010-08-03 Jan Hubicka <jh@suse.cz>
11592 * ipa-split.c (struct split_point): Add split_part_set_retval.
11593 (find_retval): Forward declare.
11594 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
11595 (consider_split): Compute current->split_part_set_retval.
11596 (visit_bb): Do not look into return value.
11597 (split_function): Handle !split_part_set_retval
11599 2010-08-03 Martin Jambor <mjambor@suse.cz>
11601 * tree-sra.c (completely_scalarize_record): New parameter REF, create
11602 its own access->expr intead of using build_ref_for_offset.
11604 2010-08-03 Joseph Myers <joseph@codesourcery.com>
11606 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
11607 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
11608 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
11609 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
11610 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
11611 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
11612 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
11613 DEFAULT_SWITCH_TAKES_ARG.
11614 * config/rx/rx.opt (-patch=): Remove option.
11615 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
11616 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
11617 * doc/invoke.texi (RX Options): Remove -patch=.
11618 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
11619 (option_map): Remove --profile-blocks, --quiet and --silent.
11621 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
11623 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
11624 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
11625 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
11626 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
11627 Update calls to ix86_expand_compare and ix86_expand_branch.
11628 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
11629 ix86_expand_compare.
11630 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
11631 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
11633 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
11634 and ix86_compare_op1. Update calls to ix86_expand_compare.
11635 (ix86_expand_int_movcc): Ditto.
11636 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
11637 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
11638 (ix86_expand_setcc): Ditto.
11639 (ix86_expand_compare): Remove prototype.
11640 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
11641 ix86_compare_op0 and ix86_compare_op1. Update calls
11642 to ix86_expand_branch to directly pass operands[1] and operands[2].
11643 (cbranchxf4): Ditto.
11644 (cbranch<MODEF:mode>4): Ditto.
11645 (cbranchcc4): Ditto.
11646 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
11647 Update calls to ix86_expand_setcc to directly pass operands[2] and
11649 (cstorexf4): Ditto.
11650 (cstore<MODEF:mode>4): Ditto.
11651 (cstorecc4): Ditto.
11653 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
11656 * caller-save.c (save_call_clobbered_regs): Remove regs from
11657 hard_regs_saved when they are set.
11659 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
11662 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
11665 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
11667 * common.opt (ftree-loop-distribute-patterns): New.
11668 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
11669 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
11671 * tree-data-ref.c (stores_zero_from_loop): New.
11672 * tree-data-ref.h (stores_zero_from_loop): Declared.
11673 * tree-loop-distribution.c (tree_loop_distribution): Call
11674 stores_zero_from_loop.
11675 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
11677 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
11679 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
11682 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
11683 * config/arm/arm.c (thumb1_code): New variable.
11684 (arm_override_options): Set it.
11685 (thumb1_final_prescan_insn): Keep track of condition code status.
11686 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
11687 jumps that depend on them.
11688 * config/arm/arm.h (thumb1_code): Declare variable.
11689 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
11690 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
11692 (CC_STATUS_INIT): New macro.
11693 * config/arm/constraints.md (Pd): New constraint.
11694 * config/arm/predicates.md (noov_comparison_operator): New predicate.
11695 * config/arm/arm.md (is_thumb1): New define_attr.
11696 (conds): Set default to "clob" when generating Thumb1 code.
11697 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
11698 code are set. Use two-operand assembly syntax.
11699 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
11701 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
11702 codes are set. Use two-operand assembly syntax.
11703 (zero_extendhisi splitter): Remove constraints.
11704 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
11705 thumb1_movsf_insn): Set conds attribute as appropriate.
11706 (cbranchsi4_insn): Use condition code status from struct
11707 machine_function to determine whether the comparison can be eliminated.
11708 Discourage the alternative using high registers.
11709 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
11710 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
11711 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
11712 subsi3_cbranch): Delete.
11713 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
11714 one subtract and one cbranch insn.
11716 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
11717 thumb2_movdf_soft_insn): Delete patterns.
11718 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
11719 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
11720 (pool_range, neg_pool_range): Use them to define defaults.
11721 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
11722 and allow for TARGET_32BIT.
11725 * config/arm/arm.h (arm_regs_in_sequence): Declare.
11726 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
11727 load_multiple_sequence, store_multiple_sequence): Delete
11729 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
11731 * config/arm/ldmstm.md: New file.
11732 * config/arm/arm.c (arm_regs_in_sequence): New array.
11733 (load_multiple_sequence): Now static. New args SAVED_ORDER,
11734 CHECK_REGS. All callers changed.
11735 If SAVED_ORDER is nonnull, copy the computed order into it.
11736 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
11737 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
11738 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
11739 If SAVED_ORDER is nonnull, copy the computed order into it.
11740 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
11741 like REGS. Handle Thumb mode.
11742 (arm_gen_load_multiple_1): New function, broken out of
11743 arm_gen_load_multiple.
11744 (arm_gen_store_multiple_1): New function, broken out of
11745 arm_gen_store_multiple.
11746 (arm_gen_multiple_op): New function, with code from
11747 arm_gen_load_multiple and arm_gen_store_multiple moved here.
11748 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
11749 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
11751 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
11752 * config/arm/predicates.md (commutative_binary_operator): New.
11753 (load_multiple_operation, store_multiple_operation): Handle more
11754 variants of these patterns with different starting offsets. Handle
11756 * config/arm/arm.md: Include "ldmstm.md".
11757 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
11758 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
11759 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
11760 peepholes): Delete.
11761 * config/arm/ldmstm.md: New file.
11762 * config/arm/arm-ldmstm.ml: New file.
11764 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
11765 if statement which adds extra costs to frame-related expressions.
11767 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11769 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
11771 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
11774 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
11776 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
11777 split V4SI operands.
11779 2010-08-01 Anatoly Sokolov <aesok@post.ru>
11781 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
11782 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
11783 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
11784 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
11786 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
11788 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
11791 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
11793 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
11794 used in the call to optab_for_tree_code. Fix the second
11795 is_widening_mult_p call. Check that both unwidened operands
11796 have the same sign.
11798 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
11800 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
11802 2010-07-31 Anatoly Sokolov <aesok@post.ru>
11804 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
11806 2010-07-30 DJ Delorie <dj@redhat.com>
11808 * config/rx/predicates.md (rx_constshift_operand): New.
11809 * config/rx/rx.md (zs_cond): New.
11810 (cbranchsi4): Remove mode.
11811 (*cbranchsi4_<code>): Likewise.
11812 (*tstbranchsi4_<code>): New.
11813 (*tstbranchsi4r_<code>): New.
11814 (*tstbranchsi4m_eq): New.
11815 (*tstbranchsi4m_ne): New.
11816 (cbranchsf4): Remove mode.
11817 (*cbranchsf4_<code>): Likewise.
11819 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
11821 * rtlanal.c (simplify_subreg_regno): Don't treat
11822 HARD_FRAME_POINTER_REGNUM specially.
11824 2010-07-30 Joseph Myers <joseph@codesourcery.com>
11826 * common.opt (-G): Don't define option here.
11827 * config/g.opt: New.
11828 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
11829 rs6000/powerpc and score targets.
11830 * opts.c (common_handle_option): Don't handle -G here.
11831 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
11832 * config/frv/frv.c (frv_handle_option): Handle -G.
11833 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
11834 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
11835 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
11836 * config/mips/mips.c (mips_handle_option): Handle -G.
11837 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
11838 * config/score/score.c (score_handle_option): Handle -G.
11840 2010-07-30 Anatoly Sokolov <aesok@post.ru>
11842 * config/mmix/mmix.c: Include basic-block.h.
11844 2010-07-30 Jakub Jelinek <jakub@redhat.com>
11847 PR rtl-optimization/45137
11848 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
11850 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
11852 * combine.c (next_nonnote_nondebug_insn): Removed.
11853 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
11854 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
11855 * sched-deps.c (sched_analyze_insn): Likewise.
11856 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
11857 * rtlanal.c (canonicalize_condition): Likewise.
11858 * postreload.c (reload_combine_recognize_pattern): Likewise.
11859 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
11861 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
11863 * config/i386/i386.md (int_cond): Remove code iterator.
11865 (cbranch<mode>4): Use ordered_comparison_operator predicate
11867 (cstore<mode>4): Ditto for operator1.
11868 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
11869 (add<mode>cc): ditto.
11871 2010-07-30 Richard Guenther <rguenther@suse.de>
11873 PR middle-end/45141
11874 * expr.c (expand_expr_real_1): Check for not handled base address.
11876 2010-07-30 Richard Guenther <rguenther@suse.de>
11878 * ipa-prop.c (ipa_modify_formal_parameters): Use
11879 build_distinct_type_copy.
11881 2010-07-30 Anthony Green <green@moxielogic.com>
11883 * config/moxie/rtems.h: New file.
11884 * config.gcc: Add moxie-rtems support.
11886 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
11888 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
11889 df flags as in run_fast_df_dce.
11891 2010-07-29 Jakub Jelinek <jakub@redhat.com>
11894 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
11896 * rtl.def (NOTE): Swap operands 4 and 5.
11897 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
11898 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
11899 Adjust accordingly.
11900 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
11902 2010-07-29 Jakub Jelinek <jakub@redhat.com>
11905 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
11906 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
11907 (gen_subprogram_die): Likewise. Remove it when removing declaration's
11909 (gen_decl_die): Change return type to dw_die_ref, return what
11910 gen_formal_parameter_die returned.
11912 2010-07-29 Martin Jambor <mjambor@suse.cz>
11914 * dbgcnt.def (eipa_sra): New counter.
11915 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
11917 2010-07-29 Xinliang David Li <davidxl@google.com>
11920 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
11921 in revision 162652.
11923 2010-07-29 Richard Guenther <rguenther@suse.de>
11925 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
11926 (TV_TREE_STORE_CCP): Likewise.
11927 (TV_TREE_REDPHI): Likewise.
11929 2010-07-29 Richard Guenther <rguenther@suse.de>
11931 * double-int.h (double_int_and_not): New function.
11932 * combine.c (try_combine): Use it.
11933 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
11935 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
11937 PR rtl-optimization/42575
11938 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
11939 Argument AU removed. All callers changed. Ignore artificial refs.
11940 Use return value of df_word_lr_simulate_defs to decide whether an insn
11942 (fast_dce): Rename arg to WORD_LEVEL.
11943 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
11945 (pass_fast_rtl_byte_dce): Delete.
11946 * dce.h (run_word_dce): Declare.
11947 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
11948 All callers changed. Simplify code to only deal with two-word regs.
11949 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
11950 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
11951 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
11952 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
11953 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
11954 (df_word_lr_mark_ref): Declare.
11955 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
11956 df_word_lr_simulate_uses): Declare or rename from byte variants.
11957 (df_byte_lr_simulate_artificial_refs_at_top,
11958 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
11959 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
11961 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
11962 (enum df_mm): Delete.
11963 * df-byte-scan.c: Delete file.
11964 * df-problems.c (df_word_lr_problem_data): Renamed from
11965 df_byte_lr_problem_data, all members deleted except for
11966 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
11967 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
11968 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
11969 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
11970 df_byte_lr_confluence_0): Delete functions.
11971 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
11973 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
11974 Don't initialize members that were deleted, don't try to discover data
11975 about registers. Ignore hard regs.
11976 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
11977 (df_word_lr_mark_ref): New function.
11978 (df_word_lr_bb_local_compute): Renamed from
11979 df_byte_bb_lr_local_compute; all callers changed. Use
11980 df_word_lr_mark_ref. Assert that artificial refs don't include
11981 pseudos. Ignore hard registers.
11982 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
11983 Assert that exit block uses don't contain pseudos.
11984 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
11985 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
11986 callers changed. Ignore hard regs.
11987 (df_word_lr_transfer_function): Renamed from
11988 df_byte_lr_transfer_function; all callers changed.
11989 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
11990 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
11992 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
11994 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
11995 confluence operator 0 set to NULL.
11996 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
11998 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
11999 Return bool, true if bitmap changed or insn otherwise necessary.
12000 All callers changed. Simplify using df_word_lr_mark_ref.
12001 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
12002 all callers changed. Simplify using df_word_lr_mark_ref.
12003 * lower-subreg.c: Include "dce.h"
12004 (decompose_multiword_subregs): Call run_word_dce if df available.
12005 * Makefile.in (lower-subreg.o): Adjust dependencies.
12006 (df-byte-scan.o): Delete.
12007 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
12009 2010-07-29 Richard Guenther <rguenther@suse.de>
12011 * tree.c (build_vector): Assert that the vector constant
12012 has enough elements.
12013 (build_vector_from_ctor): Pad with trailing zeros.
12015 2010-07-29 Richard Guenther <rguenther@suse.de>
12017 PR tree-optimization/45120
12018 * tree-ssa-structalias.c (get_constraint_for_component_ref):
12019 Handle offset in DEREFs properly.
12020 (get_constraint_for_1): Handle MEM_REF offset properly.
12022 2010-07-29 Richard Guenther <rguenther@suse.de>
12024 PR middle-end/45034
12025 * convert.c (convert_to_integer): Always use an unsigned
12026 type for narrowed negate and bitwise not.
12028 2010-07-29 Ira Rosen <irar@il.ibm.com>
12030 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
12031 to outer loop when creating reduction epilogue for double reduction,
12032 and switch back to the inner loop when updating the phi nodes.
12033 Update uses of outer loop exit phi nodes in double reduction (instead
12034 of uses of reduction).
12036 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
12038 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
12039 popcount on power7 and parity on power6 systems.
12040 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
12041 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
12044 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
12045 (UNSPEC_PARITY): Ditto.
12046 (SFDF): New iterator for SF/DF.
12047 (rreg2): New mode attribute for floating register constraint.
12048 (TARGET_FLOAT): New mode attribute for whether single/double float
12050 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
12052 (parity<mode>2_cmpb): New insn for parity on power6 and newer
12054 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
12055 pattern. Add support for fcpsgn instruction added in power6.
12056 (copysignsf3): Delete.
12057 (copysigndf3): Delete.
12058 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
12059 instead of if_then_else in RTL to avoid problems with -0.
12061 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
12062 of if_then_else to mirror scalar code.
12063 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
12066 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
12067 instead of if_then_else.
12069 2010-07-28 Xinliang David Li <davidxl@google.com>
12071 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
12072 (dump_cand): Dump var_before/after.
12073 (htab_inv_expr_eq): New function.
12074 (htab_inv_expr_hash): New function.
12075 (tree_ssa_iv_optimize_init): Support pseudo invariants.
12076 (add_candidate_1): consider base type precision.
12077 (set_use_iv_cost): New parameter.
12078 (adjust_setup_cost): Use profile information.
12079 (get_address_cost): Do not hard code width in computing address
12081 (compare_aff_trees): New function.
12082 (get_loop_invariant_expr_id): New function.
12083 (get_computation_cost_at): New parameter and use profile information.
12084 (get_computation_cost): New parameter.
12085 (determine_use_iv_cost_generic): Pass new parameter.
12086 (determine_use_iv_cost_address): Ditto.
12087 (determine_use_iv_cost_condition): Ditto.
12088 (autoinc_possible_for_pair): Ditto.
12089 (determine_use_iv_costs): More dumps.
12090 (iv_ca_get_num_inv_exprs): New function.
12091 (iv_ca_recount_cost): Consider loop invariants in register pressure
12093 (iv_ca_add_use): New parameter.
12094 (iv_ca_dump): Better dumping.
12095 (iv_ca_extend): New parameter.
12096 (try_add_cand_for): Attempt to get better partial solution.
12097 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
12098 (create_new-ivs): More dumps.
12099 (rewrite_use_compare): Ditto.
12100 (free_loop_data): More cleanup.
12101 (treee_ssa_iv_optimize_finalize): Ditto.
12103 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
12105 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
12106 * config/i386/i386.c (ix86_profile_before_prologue): New.
12107 (override_options): Add special handling for -mfentry.
12108 (ix86_function_regparm): Likewise.
12109 (ix86_function_sseregparm): Likewise.
12110 (ix86_frame_pointer_required): Likewise.
12111 (ix86_expand_prologue): Check for ms_hook_prologue.
12112 (x86_function_profiler): Adjust mcount output.
12113 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
12114 * config/i386/i386.opt (mfentry): New.
12115 * doc/invoke.texi (mfentry): Add documentation.
12116 * doc/tm.texi: Regenerated..
12117 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
12118 * final.c (final_start_function): Replace macro
12119 PROFILE_BEFORE_PROLOGUE by target hook.
12120 * function.c (thread_prologue_and_epilogue_insns): Likewise.
12121 * target.def (profile_before_prologue): New hook.
12122 * targhooks.c (default_profile_before_prologue): New.
12123 * targhooks.h (default_profile_before_prologue): New.
12125 2010-07-28 Jakub Jelinek <jakub@redhat.com>
12128 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
12131 * dwarf2out.c (dwarf2out_var_location): Always consider
12132 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
12134 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
12136 PR rtl-optimization/45107
12137 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
12139 2010-07-28 Richard Guenther <rguenther@suse.de>
12141 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
12142 (set_lattice_value): Do not query an old default value.
12143 (get_value_for_expr): New function. Properly canonicalize
12145 (ccp_visit_phi_node): Use it.
12147 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
12149 * config/arm/arm.c (arm_pcs_default): Remove static.
12150 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
12151 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
12152 (arm_pcs_default): Declare.
12154 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
12156 * config/rs6000/rs6000.c (rs6000_override_options):
12157 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
12158 ... to darwin_rs6000_override_options.
12159 (rs6000_return_in_memory): Update preceding comment for darwin
12160 64 bit ABI. Use TARGET_MACHO inline.
12161 (rs6000_darwin64_struct_check_p): New.
12162 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
12163 (function_arg): Likewise.
12164 (rs6000_arg_partial_bytes): Likewise.
12165 (rs6000_function_value): Likewise.
12167 2010-07-28 Andi Kleen <ak@linux.intel.com>
12169 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
12171 2010-07-28 Richard Guenther <rguenther@suse.de>
12173 PR middle-end/44903
12174 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
12175 targets try harder to not generate unaligned accesses.
12177 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
12179 PR rtl-optimization/45101
12180 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
12183 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
12185 PR tree-optimization/44885
12186 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
12187 with non-aliased component.
12189 2010-07-28 Joseph Myers <joseph@codesourcery.com>
12191 * config/darwin-driver.c (SWITCH_TAKES_ARG,
12192 WORD_SWITCH_TAKES_ARG): Remove.
12193 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
12194 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
12195 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
12196 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
12197 definitions from gcc.c.
12198 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
12200 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
12201 Move to defaults.h.
12202 * opts-common.c: Include tm.h.
12203 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
12204 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
12205 Handle more than one argument. Set canonical_option_num_elements.
12206 (decode_cmdline_options_to_array): Set
12207 canonical_option_num_elements and trailing elements of
12209 * opts.h (struct cl_decoded_option): Allow four elements in
12210 canonical_option. Add field canonical_option_num_elements.
12211 * Makefile.in (opts-common.o): Update dependencies.
12213 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
12215 PR middle-end/44790
12216 PR middle-end/44993
12217 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
12218 sure the base has address_mode before adding the offset.
12220 2010-07-27 Xinliang David Li <davidxl@google.com>
12222 * tree-flow.h (create_mem_ref): Add one new parameter.
12223 * tree-ssa-address.c (create_mem_ref): New parameter.
12224 (addr_to_parts): Ditto.
12225 (move_variant_to_index): New function.
12226 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
12228 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12230 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
12232 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
12233 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
12234 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
12235 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
12236 CODE_LABELs and NOTEs.
12237 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
12238 * combine.c (try_combine): Likewise.
12239 * ira.c (setup_prohibited_mode_move_regs): Likewise.
12240 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
12242 2010-07-27 Joseph Myers <joseph@codesourcery.com>
12244 * coretypes.h (struct cl_option_handlers): Declare.
12245 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
12246 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
12247 * langhooks-def.h (lhd_handle_option): Declare.
12248 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
12249 * langhooks.c (lhd_handle_option): New.
12250 * langhooks.h (struct lang_hooks): Update prototype and return
12251 value type of handle_option hook.
12252 * optc-gen.awk: Generate target_flags_explicit definition for the
12254 * opts-common.c: Include diagnostic.h.
12255 (handle_option): Move from opts.c. Update prototype and return
12256 value type. Use handlers structure.
12257 (read_cmdline_option): Move from opts.c. Update prototype. Use
12258 handlers structure.
12259 (set_option): Move from opts.c.
12260 * opts.c (common_handle_option): Update prototype and return value
12261 type. Update calls to handle_option and enable_warning_as_error.
12262 (unknown_option_callback, post_handling_callback,
12263 lang_handle_option, target_handle_option): New.
12264 (handle_option, read_cmdline_option): Move to opts-common.c.
12265 (read_cmdline_options): Update prototype. Update call to
12266 read_cmdline_option.
12267 (decode_options): Initialize and use handlers structure.
12268 (set_option): Move to opts-common.c.
12269 (enable_warning_as_error): Update prototype. Update call to
12271 * opts.h (struct cl_option_handler_func, struct
12272 cl_option_handlers): New.
12273 (handle_option, enable_warning_as_error): Update prototypes.
12274 (read_cmdline_option): Declare.
12275 * Makefile.in (opts-common.o): Update dependencies.
12277 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12279 * config/arm/arm.c (params.h): Include.
12280 (arm_override_options): Tune gcse-unrestricted-cost.
12281 * config/arm/t-arm (arm.o): Define dependencies.
12283 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12286 PR middle-end/42574
12287 * basic-block.h (get_dominated_to_depth): Declare.
12288 * dominance.c (get_dominated_to_depth): New function, use
12289 get_all_dominated_blocks as a base.
12290 (get_all_dominated_blocks): Use get_dominated_to_depth.
12292 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
12293 (hoist_exprs): Remove.
12294 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
12295 (compute_code_hoist_vbeinout): Add debug print outs.
12296 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
12298 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
12299 quadratic behavior.
12300 * params.h (MAX_HOIST_DEPTH): New macro.
12301 * doc/invoke.texi (max-hoist-depth): Document.
12303 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12305 PR rtl-optimization/40956
12306 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
12309 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12312 PR middle-end/42574
12313 * config/arm/arm.c (legitimize_pic_address): Use
12314 gen_calculate_pic_address pattern to emit calculation of PIC address.
12315 (will_be_in_index_register): New function.
12316 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
12317 (thumb1_legitimate_address_p): Use it provided !strict_p.
12318 * config/arm/arm.md (calculate_pic_address): New expand and split.
12320 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12323 PR middle-end/42574
12324 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
12325 * config/arm/arm.md (define_split "J", define_split "K"): Make
12326 IRA/reload friendly.
12328 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12330 * gcse.c (insert_insn_end_basic_block): Update signature, remove
12332 (pre_edge_insert, hoist_code): Update.
12334 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12337 PR middle-end/42574
12338 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
12340 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12342 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
12344 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12346 PR rtl-optimization/40956
12348 PR middle-end/42574
12349 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
12351 (hoist_code): Count occurences in current block too.
12353 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12355 * gcse.c (struct expr:max_distance): New field.
12356 (doing_code_hoisting_p): New static variable.
12357 (want_to_gcse_p): Change signature. Allow constrained hoisting of
12358 simple expressions, don't change behavior for PRE. Set max_distance.
12359 (insert_expr_in_table): Set new max_distance field.
12360 (hash_scan_set): Update.
12361 (hoist_expr_reaches_here_p): Stop search after max_distance
12363 (find_occr_in_bb): New static function. Use it in ...
12364 (hoist_code): Calculate sizes of basic block before any changes are
12365 done. Pass max_distance to hoist_expr_reaches_here_p.
12366 (one_code_hoisting_pass): Set doing_code_hoisting_p.
12368 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
12369 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
12370 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
12372 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
12375 2010-07-27 Jeff Law <law@redhat.com>
12376 Maxim Kuvyrkov <maxim@codesourcery.com>
12378 * gcse.c (compute_transpout, transpout): Remove, move logic
12379 to prune_expressions.
12380 (compute_pre_data): Move pruning of trapping expressions ...
12381 (prune_expressions): ... here. New static function.
12382 (compute_code_hoist_data): Use it.
12383 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
12385 2010-07-27 Xinliang David Li <davidxl@google.com>
12387 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
12388 (rewrite_use_address): Adjust iv update position when needed.
12390 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12392 * dbgcnt.def (hoist_insn): New debug counter.
12393 * gcse.c (hoist_code): Use it.
12395 2010-07-27 Xinliang David Li <davidxl@google.com>
12397 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
12398 (niter_for_single_dom_exit): Passes additional parameter.
12399 (iv_period): Fix comments.
12400 (may_eliminate_iv): Handles multiple exit loops properly.
12401 (free_tree_niter_desc): New function.
12402 (free_loop_data): Frees up loop iteration descriptors.
12404 2010-07-27 Jakub Jelinek <jakub@redhat.com>
12407 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
12408 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
12409 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
12410 (expand_one_var): Don't consider DECL_ALIGN for variables for
12411 which expand_one_stack_var_at has been already called.
12414 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
12415 constraints on IA-64.
12417 2010-07-27 Jie Zhang <jie@codesourcery.com>
12421 2010-07-23 Jie Zhang <jie@codesourcery.com>
12423 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
12424 false if ! tree_versionable_function_p.
12426 2010-07-27 Jakub Jelinek <jakub@redhat.com>
12428 * dwarf2out.c (add_data_member_location_attribute): Use
12429 add_AT_unsigned instead of add_AT_int if offset is non-negative.
12431 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12433 * postreload.c (try_replace_in_use): New static function.
12434 (reload_combine_recognize_const_pattern): Use it here. Allow
12435 substituting into a final add insn, and substituting into a memory
12436 reference in an insn that sets the reg.
12438 2010-07-27 Joseph Myers <joseph@codesourcery.com>
12440 * common.opt (o): Add MissingArgError.
12441 * doc/options.texi (MissingArgError): Document.
12442 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
12443 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
12444 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
12445 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
12446 * langhooks.h (struct lang_hooks): Remove missing_argument.
12447 * optc-gen.awk: Handle MissingArgError and output new structure
12448 field initializers.
12449 * opts.c (read_cmdline_option): Use missing_argument_error field
12450 instead of missing_argument langhook.
12451 * opts.h (struct cl_option): Add missing_argument_error field.
12452 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
12454 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
12457 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
12458 Darwin64 ABI, for zero-sized objects.
12460 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
12465 Merge from Apple local 4.2.1.
12466 2005-05-11 Stan Shebs <shebs@apple.com>
12467 Fix 64-bit varargs for Darwin (Radar 4028089).
12468 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
12469 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
12470 Add argument, add case for 8-byte register half-filled with a float.
12471 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
12472 single-precision floats specially.
12474 2010-07-27 Ira Rosen <irar@il.ibm.com>
12476 PR tree-optimization/44152
12477 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
12478 complex numbers for further check.
12479 (vect_supported_load_permutation_p): Check nodes with
12482 2010-07-27 Joseph Myers <joseph@codesourcery.com>
12484 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
12485 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
12486 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
12487 (LANG_HOOKS_INITIALIZER): Add new hooks.
12488 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
12489 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
12490 and complain_wrong_lang_p. Update init_options prototype.
12491 * c-objc-common.c (c_initialize_diagnostics): First call
12492 c_common_initialize_diagnostics.
12493 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
12494 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
12495 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
12496 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
12497 (hook_uint_void_0): New.
12498 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
12499 (hook_uint_void_0): New.
12500 * opts-common.c (decode_cmdline_option,
12501 decode_cmdline_options_to_array): Also fill in canonical_option field.
12502 * opts.c (complain_wrong_lang): Use langhook to determine whether
12503 to complain instead of special-casing LTO.
12504 (decode_options): Separate lang_mask determination with
12505 option_lang_mask hook from call of init_options hook.
12506 * opts.h (struct cl_decoded_option): Add canonical_option.
12508 2010-07-27 Jakub Jelinek <jakub@redhat.com>
12510 PR tree-optimization/45083
12511 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
12513 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12515 * postreload.c (reload_combine_recognize_const_pattern): Move test
12516 for limiting the insn movement to the right scope.
12518 PR rtl-optimization/45051
12519 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
12520 than reg_mentioned_p.
12522 2010-07-26 Richard Henderson <rth@redhat.com>
12525 * tree-emutls.c: New file.
12526 * Makefile.in (OBJS-common): Add it.
12527 * tree-pass.h (pass_ipa_lower_emutls): Declare.
12528 * passes.c (init_optimization_passes): Add it.
12530 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
12531 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
12532 * expr.c (emutls_var_address): Delete.
12533 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
12534 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
12535 (emutls_finish): Delete.
12536 * toplev.c (compile_file): Don't call it.
12537 * tree.h (emutls_decl): Delete.
12538 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
12539 (emutls_finish, emutls_finalize_control_var): Delete.
12540 (emutls_object_type): Move to tree-emutls.c.
12541 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
12542 default_emutls_var_fields, get_emutls_object_type,
12543 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
12544 default_emutls_var_init): Likewise.
12545 (get_variable_section): Don't special case emutls.
12546 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
12547 default_elf_select_section, default_unique_section,
12548 default_encode_section_info): Likewise.
12549 * varpool.c (decide_is_variable_needed): Likewise.
12550 * gimple-iterator.c (update_call_edge_frequencies): New
12551 (gsi_insert_on_edge_immediate): Use it.
12552 (gsi_insert_seq_on_edge_immediate): Likewise.
12553 (gsi_commit_one_edge_insert): Likewise.
12555 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
12556 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
12557 (x86_64_elf_unique_section): Likewise.
12559 2010-07-26 Jan Hubicka <jh@suse.cz>
12561 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
12564 2010-07-26 Anatoly Sokolov <aesok@post.ru>
12566 * target.def (output_source_filename): New hook.
12567 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
12568 * doc/tm.texi: Regenerate.
12569 * toplev.c (output_file_directive) Remove function.
12570 * toplev.h (output_file_directive) Remove.
12571 * output.h (default_asm_output_source_filename,
12572 output_file_directive): Declare.
12573 * varasm.h (default_asm_output_source_filename,
12574 output_file_directive): New functions.
12576 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
12577 * config/mips/mips-protos.h (mips_output_filename): Remove.
12578 * config/mips/mips.c (mips_output_filename): Make Static.
12579 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
12581 2010-07-26 Richard Guenther <rguenther@suse.de>
12583 PR tree-optimization/43784
12584 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
12585 if the destination is used by the call.
12587 2010-07-26 Richard Guenther <rguenther@suse.de>
12589 PR middle-end/45073
12590 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
12591 SSA updating on being in SSA form.
12593 2010-07-26 Richard Guenther <rguenther@suse.de>
12595 PR middle-end/45056
12596 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
12598 2010-07-26 Richard Guenther <rguenther@suse.de>
12600 PR tree-optimization/45071
12601 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
12604 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
12606 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
12607 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
12608 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
12609 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
12610 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
12611 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
12612 save_r31, return_r31, save_interrupt, return_interrupt,
12613 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
12614 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
12615 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
12616 new ABI requirements.
12617 (save_r6_r9, L_callt_save_r6_r9): Remove.
12618 * config/v850/predicates.md (even_reg_operand, disp23_operand,
12619 const_float_1_operand const_float_0_operand): New Predicates.
12620 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
12621 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
12622 * config/v850/t-v850: Update multilibs for new target variants.
12623 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
12624 * config/v850/t-v850e: Likewise.
12625 * config/v850/v850.c (v850_issue_rate): New.
12626 (v850_strict_argument_naming): New.
12627 (function_arg): Modify to generate a different ABI.
12628 (print_operand): Update case 'z' to support float modes.
12629 (output_move_single): Modify to generate appropriate and better
12631 (v850_float_z_comparison_operator, v850_select_cc_mode,
12632 v850_float_nz_comparison_operator, v850_gen_float_compare,
12633 v850_gen_compare): New functions to support comparison of float values.
12634 (ep_memory_offset): Add support for V850E2 targets.
12635 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
12636 (INTERRUPT_REGPARM_NUM): Remove.
12637 (compute_register_save_size): Add extra case to save/restore long call.
12638 (use_prolog_function): New function to support prologue.
12639 (expand_prologue): Add support for V850E2 targets and modified
12640 as per the current ABI requirements.
12641 (expand_epilogue): Likewise.
12642 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
12643 (construct_save_jarl): Likewise.
12644 (construct_dispose_instruction): Update as per the current ABI
12646 (construct_prepare_instruction): Likewise.
12647 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
12648 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
12649 (CPP_SPEC): Updated to support v850e2 targets.
12650 (STRICT_ALIGNMENT): Modified.
12651 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
12652 (FIXED_REGISTERS): Likewise.
12653 (CALL_USED_REGISTERS): Likewise.
12654 (CONDITIONAL_REGISTER_USAGE): Updated.
12655 (HARD_REGNO_MODE_OK): Updated.
12656 (reg_class): Updated to add even registers.
12657 (REG_CLASS_NAMES): Likewise.
12658 (REG_CLASS_CONTENTS): Likewise.
12659 (REGNO_REG_CLASS): Updated for CC registers.
12660 (REG_CLASS_FROM_LETTER): Added support for even registers.
12661 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
12662 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
12663 ARG_POINTER_REGNUM): Updated.
12664 (FUNCTION_ARG_ADVANCE): Define.
12665 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
12666 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
12667 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
12668 (GO_IF_LEGITIMATE_ADDRESS): Updated.
12669 (SELECT_CC_MODE): Define.
12670 (REGISTER_NAMES): Updated to add psw and fcc registers.
12671 (ADDITIONAL_REGISTER_NAMES): Updated.
12672 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
12673 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
12674 * config/v850/v850.md (define_constants): Define new constants.
12675 (type): Update store,bit1,macc,div,fpu and single attributes.
12676 (cpu): New attribute.
12677 (cc): Add set_z attribute.
12678 (unsign23byte_load, sign23byte_load, unsign23hword_load,
12679 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
12680 23word_store): New instructions for 23-bit displacement load and store.
12681 (movqi_internal, movhi_internal): Update the attributes.
12682 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
12683 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
12685 (v850_tst1): Modified using CC_REGNUM.
12687 (cmpsi): Modified as define_expand from define_insn.
12688 (cmpsi_insn, cmpsf, cmpdf): New instructions.
12689 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
12690 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
12691 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
12692 one_cmplsi2): Clobber the CC_REGNUM register.
12693 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
12694 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
12695 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
12696 (setf_insn, set_z_insn, set_nz_insn): New instructions for
12698 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
12699 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
12701 (sasf_1, sasf_2): Remove.
12702 (sasf): New instruction.
12703 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
12704 targets. CC_REGNUM register is clobbered and attributes are
12706 (branch_z_normal, branch_z_invert, branch_nz_normal,
12707 branch_nz_invert): New branch related instructions.
12708 (jump): Updated the attributes.
12709 (switch): Update to support new targets. CC_REGNUM register is
12710 clobbered and attributes are updated.
12711 (call_internal_short, call_internal_long, call_value_internal_short,
12712 call_value_internal_long): Updated the attributes.
12713 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
12714 clobbered and attributes are updated.
12715 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
12716 Update to support new targets. CC_REGNUM register is clobbered.
12717 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
12719 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
12721 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
12722 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
12723 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
12724 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
12725 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
12726 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
12727 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
12728 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
12729 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
12730 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
12731 point instructions defined for V850e2v3 target.
12732 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
12733 Add support for V850E2 targets and CC_REGNUM register is clobbered.
12734 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
12735 support for new targets.
12736 * config/v850/v850-modes.def: New file.
12737 * config/v850/v850.opt(mstrict-align): Remove.
12738 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
12739 mv850e2v3): New command line options for V850.
12740 * config.gcc: Update the newly added files.
12741 * doc/invoke.texi: Update the newly added command line options for
12744 2010-07-26 Richard Guenther <rguenther@suse.de>
12746 PR tree-optimization/45052
12747 * ipa-pure-const.c (check_stmt): Check volatileness.
12749 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
12752 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
12753 * config/sparc/sparc.c: Include reload.h.
12754 (legitimize_tls_address): Rename into...
12755 (sparc_legitimize_tls_address): ...this.
12756 (legitimize_pic_address): Rename into...
12757 (sparc_legitimize_pic_address): ...this.
12758 (sparc_expand_move): Adjust to above renaming.
12759 (sparc_tls_referenced_p): Likewise.
12760 (sparc_legitimize_tls_address): Likewise.
12761 (sparc_legitimize_pic_address): Likewise.
12762 (sparc_legitimize_address): Likewise.
12763 (sparc_output_mi_thunk): Likewise.
12764 (sparc_legitimize_reload_address): New global function. Recognize
12765 (lo_sum (high ...) ...) patterns generated by earlier passes.
12766 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
12768 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
12771 * config/sparc/predicates.md (memory_reg_operand): Delete.
12772 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
12773 (*sync_compare_and_swap): Encode the address form in the pattern.
12774 (*sync_compare_and_swapdi_v8plus): Likewise.
12776 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
12778 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
12779 Streamline paragraph on compatibility with the system compiler.
12781 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
12783 PR middle-end/45035
12784 * alias.c (true_dependence_1): Fix thinko in merge of old
12785 true_dependence and canon_true_dependence.
12787 2010-07-23 Jan Hubicka <jh@suse.cz>
12789 * lto-streamer-out.c (write_symbol): Fix visibilities of external
12792 2010-07-23 Le-Chun Wu <lcwu@google.com>
12794 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
12795 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
12796 and an unnecessary assignment.
12797 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
12798 self-assign warning.
12799 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
12800 unnecessary self-init.
12802 2010-07-23 Richard Guenther <rguenther@suse.de>
12805 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
12806 for -flto and -fwhopr.
12808 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
12811 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
12812 (stmp-int-hdrs): Prefix/postfix headers by include_next.
12813 * config.gcc (user_headers_inc_next_pre): New.
12814 (user_headers_inc_next_post): Likewise.
12815 (*-w64-mingw*): Use for float.h post-fixing, and for
12816 stddef.h/stdarg.h pre-fixing by include_next.
12817 * configure.ac (user_headers_inc_next_post): New.
12818 (user_headers_inc_next_pre): New.
12819 * configure: Regenerated.
12821 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12823 * configure.ac: Don't disable TLS on Solaris 8/9 by default
12824 Set tga_func for Solaris 2/x86 resp. SPARC.
12825 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
12826 (LIB_THREAD_LDFLAGS_SPEC): Define.
12827 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
12828 * configure: Regenerate.
12829 * config.in: Regenerate.
12830 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
12831 -pthread, -threads, LIB_TLS_SPEC with -pthread.
12832 * doc/install.texi (Specific, *-*-solaris2*): Document use of
12833 alternate thread libraries on Solaris 8.
12834 Document TLS patch requirements.
12835 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
12839 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
12842 2010-07-23 Jakub Jelinek <jakub@redhat.com>
12844 * tree.h (struct tree_base): Add nameless_flag bitfield.
12845 (TYPE_NAMELESS, DECL_NAMELESS): Define.
12846 * omp-low.c (create_omp_child_function, scan_omp_parallel,
12847 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
12848 DECL_ARTIFICIAL where needed.
12849 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
12850 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
12851 has DECL_NAMELESS set.
12853 2010-07-23 Martin Jambor <mjambor@suse.cz>
12855 PR tree-optimization/44915
12856 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
12857 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
12858 (analyze_function): Likewise.
12860 2010-07-23 Martin Jambor <mjambor@suse.cz>
12862 PR tree-optimization/44914
12863 * tree-sra.c (sra_modify_function_body): Return true if CFG was
12864 changed, add purging dead eh edges.
12865 (ipa_sra_modify_function_body): Return true if CFG was changed,
12866 simplify purging dead eh edges.
12867 (modify_function): Return true if CFG was changed.
12868 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
12870 (ipa_early_sra): Likewise.
12872 2010-07-23 Jie Zhang <jie@codesourcery.com>
12875 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
12877 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
12878 false if ! tree_versionable_function_p.
12880 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
12882 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
12883 * ipa-pure-const.c (special_builtlin_state): Remove
12884 BUILT_IN_ARGS_INFO case.
12885 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
12886 * builtins.c (expand_builtin): Likewise.
12887 (expand_builtin_args_info): Remove.
12888 * doc/tm.texi (__builtin_args_info): Remove.
12889 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
12890 * doc/tm.text.in: Likewise.
12892 2010-07-23 Richard Guenther <rguenther@suse.de>
12894 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
12895 (lto_symtab_merge_decls_2): Likewise.
12896 * tree-ssa.c (useless_type_conversion_p): Likewise.
12897 * lto-streamer-in.c (input_gimple_stmt): Likewise.
12898 * gimple.c (gtc_visited2, gtc_ob2): Remove.
12899 (struct type_pair_d): Make same_p an array indexed by mode.
12901 (lookup_type_pair): Update initialization.
12902 (struct sccs): Adjust same_p type.
12903 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
12905 (print_gimple_types_stats): Likewise.
12906 * gimple.h (enum gtc_mode): New.
12907 (gimple_types_compatible_p): Adjust prototype.
12909 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
12911 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
12912 again after processing insn.
12914 2010-07-23 Jie Zhang <jie@codesourcery.com>
12916 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
12917 proper words when !tree_versionable_function_p.
12919 2010-07-23 Richard Guenther <rguenther@suse.de>
12921 PR tree-optimization/45037
12922 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
12924 2010-07-23 Jie Zhang <jie@codesourcery.com>
12926 * doc/extend.texi: Remove IP2K from the description of naked attribute.
12929 2010-07-10 Andi Kleen <ak@linux.intel.com>
12932 * lto-opts.c (lto_write_options): Add NULL file_data argument to
12933 lto_get_section_name.
12934 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
12935 * lto-streamer-out.c (produce_asm): Likewise.
12936 (copy_function): Likewise.
12937 (produce_symtab): Likewise.
12938 (produce_asm_for_decls): Likewise.
12939 * lto-streamer.c (lto_get_section_name): Add file_data argument.
12940 Rewrite to add random postfix to LTO sections.
12941 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
12942 (lto_get_section_name): Add file_data argument to prototype.
12944 2010-07-10 Andi Kleen <ak@linux.intel.com>
12946 * lto-section-in.c (lto_section_name): Synchronize names
12947 with lto_get_section_name.
12949 2010-07-10 Andi Kleen <ak@linux.intel.com>
12951 * lto-opts.c (lto_read_file_options): Check for missing section.
12953 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
12955 * ira.c (check_allocation): Correctly handle the case where an allocno
12956 with two objects was allocated to a single reg.
12958 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
12960 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
12961 (is_widening_mult_p): Likewise.
12962 (convert_to_widen): Use them.
12963 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
12964 well as integer ones.
12966 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
12968 * alias.c (true_dependence_1): New function, merged version of
12969 true_dependence and canon_true_dependence.
12970 (true_dependence): Simplify.
12971 (canon_true_dependence): Simplify.
12973 2010-07-22 Richard Henderson <rth@redhat.com>
12976 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
12977 of V4SFmode for the SSE saves; increase stack alignment if needed.
12978 (ix86_gimplify_va_arg): Don't increase stack alignment here.
12980 2010-07-22 Jakub Jelinek <jakub@redhat.com>
12983 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
12984 call cprop_find_used_regs again via note_uses.
12986 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
12988 * alias.c (get_alias_set): Fix formatting issues.
12990 2010-07-22 Steve Ellcey <sje@cup.hp.com>
12992 PR middle-end/44878
12993 * stmt.c (expand_value_return): Call promote_function_mode with
12994 a for_return argument of 2 when returning by reference.
12996 2010-07-22 Dodji Seketeli <dodji@redhat.com>
12999 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
13000 unit DIE if we can find the scope DIE.
13002 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
13004 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
13005 changed. Initialize OBJECT_SUBWORD.
13006 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
13007 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
13008 all callers changed.
13009 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
13010 (finish_allocno): Likewise.
13011 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
13012 (remove_low_level_allocnos): Likewise.
13013 (update_bad_spill_attribute): Likewise.
13014 (setup_min_max_allocno_live_range_point): Likewise.
13015 (sort_conflict_id_map): Likewise.
13016 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
13017 (ior_hard_reg_conflicts): New function.
13018 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
13019 (compress_conflict_vecs): Iterate over objects, not allocnos.
13020 (ira_add_live_range_to_object): New function.
13021 (object_range_compare_func): Renamed from allocno_range_compare_func.
13022 All callers changed.
13023 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
13024 subobjects, widen the min/max range of the lowest-order object to
13025 potentially include all other such low-order objects.
13026 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
13027 (check_allocation): Likewise. Use more fine-grained tests for register
13029 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
13030 allocno subobjects.
13031 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
13032 choices about which bits to set in each set. Don't use
13033 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
13034 using the multiple sets we computed.
13035 (push_allocno_to_stack): Iterate over allocno subobjects.
13036 (all_conflicting_hard_regs_coalesced): New static function.
13037 (setup_allocno_available_regs_num): Use it.
13038 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
13040 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
13041 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
13042 by ALLOCNO_NUM_OBJECTS.
13043 (calculate_spill_cost): Likewise.
13044 (color_pass): Express if statement in a more normal way.
13045 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
13046 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
13047 (setup_slot_coalesced_allocno_live_ranges): Likewise.
13048 (allocno_reload_assign): Likewise.
13049 (ira_reassign_pseudos): Likewise.
13050 (fast_allocation): Likewise.
13051 * ira-conflicts.c (build_conflict_bit_table): Likewise.
13052 (print_allocno_conflicts): Likewise.
13053 (ira_build_conflicts): Likewise.
13054 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
13055 callers changed. Test subword 0 of each allocno for conflicts.
13056 (build_object_conflicts): Renamed from build_allocno_conflicts. All
13057 callers changed. Iterate over allocno subobjects.
13058 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
13059 * ira-int.h (struct ira_allocno): New member: num_objects.
13060 Rename object to objects and change it into an array.
13061 (ALLOCNO_OBJECT): Add new argument N.
13062 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
13063 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
13064 (ior_hard_reg_conflicts): Declare.
13065 (ira_add_live_range_to_object): Declare.
13066 (ira_allocno_object_iterator): New.
13067 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
13068 (FOR_EACH_ALLOCNO_OBJECT): New macro.
13069 * ira-lives.c (objects_live): Renamed from allocnos_live; all
13071 (allocnos_processed): New sparseset.
13072 (make_object_born): Renamed from make_allocno_born; take an
13073 ira_object_t argument. All callers changed.
13074 (make_object_dead): Renamed from make_allocno_dead; take an
13075 ira_object_t argument. All callers changed.
13076 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
13077 All callers changed.
13078 (mark_pseudo_regno_live): Iterate over allocno subobjects.
13079 (mark_pseudo_regno_dead): Likewise.
13080 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
13082 (mark_ref_live): Detect subword accesses and call
13083 mark_pseudo_regno_subword_live as appropriate.
13084 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
13085 (process_bb_nodes_live): Deal with object-related updates first; set
13086 and test bits in allocnos_processed to avoid computing allocno
13087 statistics more than once.
13088 (create_start_finish_chains): Iterate over objects, not allocnos.
13089 (print_object_live_ranges): New function.
13090 (print_allocno_live_ranges): Use it.
13091 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
13094 2010-07-22 Richard Guenther <rguenther@suse.de>
13097 * gimple.c (gtc_next_dfs_num): New global.
13098 (struct sccs): Make value a union, add integer same_p member.
13099 (gtc_visit): New function.
13100 (gimple_types_compatible_p_1): New function, split out from ...
13101 (gimple_types_compatible_p): ... here. Start a DFS walk here.
13102 (iterative_hash_gimple_type): Adjust for sccs change.
13104 2010-07-22 Martin Jambor <mjambor@suse.cz>
13106 PR tree-optimization/44891
13107 * tree-sra.c: Include gimple-pretty-print.h.
13108 (replace_uses_with_default_def_ssa_name): Renamed to
13109 get_repl_default_def_ssa_name, return the new SSA name instead of
13110 replacing the old one.
13111 (sra_modify_assign): Dump a message when removing a load, if the LHS
13112 is an SSA_NAME, do not do any propagation, just set the RHS to a
13113 default definition SSA NAME, type convert if necessary.
13114 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
13116 2010-07-22 Richard Guenther <rguenther@suse.de>
13118 PR tree-optimization/45017
13119 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
13120 TYPE_PRECISION of integral types in addition to size.
13122 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
13124 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
13125 when no C library is specified.
13127 2010-07-22 Martin Jambor <mjambor@suse.cz>
13129 * ipa-prop.h (struct ipa_node_params): Updated comment.
13130 (struct ipa_edge_args): Likewise.
13131 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
13133 2010-07-22 Martin Jambor <mjambor@suse.cz>
13135 * cgraphunit.c (verify_edge_count_and_frequency): New function.
13136 (verify_cgraph_node): Verify frequencies of indirect edges.
13137 * tree-inline.c (tree_function_versioning): Update frequencies of
13140 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13143 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
13144 Set *arm_rev to be predicable.
13146 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
13148 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
13149 (LINK_COMMAND_SPEC_A): New.
13151 (DSYMUTIL_SPEC): New.
13152 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
13153 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
13155 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
13157 * calls.c (load_register_parameters): Move check for zero
13158 sized items so that only the call to
13159 mem_overlaps_already_clobbered_arg_p () is protected.
13161 2010-07-22 Jan Hubicka <jh@suse.cz>
13163 * ipa-pure-const.c (varying_state): Break out from ...
13164 (get_function_state): ... here; always return varying_state
13165 when state would be NULL otherwise.
13166 (remove_node_data): Do not free varying state.
13168 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
13171 PR middle-end/45009
13172 * postreload.c: Include "target.h".
13173 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
13175 (fixup_debug_insns): Don't copy the rtx.
13176 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
13177 Don't copy when replacing. Call fixup_debug_insns in the case where
13178 we merged one add with another.
13179 (reload_combine_recognize_pattern): Fail if there aren't any uses.
13180 Try harder to determine whether we're picking a valid index register.
13181 Don't set store_ruid for an insn we're going to scan in the
13183 (reload_combine): Remove unused code.
13184 (reload_combine_note_use): When updating use information for
13185 an old insn, ignore a use that occurs after store_ruid.
13186 * Makefile.in (postreload.o): Update dependencies.
13188 * function.c (record_hard_reg_sets): Restrict the previous change
13189 to cases where the incoming nominal mode is the same as the
13190 incoming promoted mode and everything happens in MODE_INT.
13192 2010-07-21 Jakub Jelinek <jakub@redhat.com>
13195 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
13196 ASM_OPERANDS_OUTPUT_IDX.
13197 (adjust_insn): For inline asm with multiple sets ensure first
13198 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
13201 2010-07-21 Richard Henderson <rth@redhat.com>
13203 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
13204 comparison for avoiding xmm register saves. Emit the xmm register
13206 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
13207 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
13208 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
13209 Remove patterns and the associated splitters.
13211 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
13213 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
13214 and imagine parts of a complex, so that they can have the same
13215 base and fall into the same group.
13217 2010-07-21 Richard Guenther <rguenther@suse.de>
13220 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
13221 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
13222 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
13224 2010-07-21 Martin Jambor <mjambor@suse.cz>
13226 PR tree-optimization/44900
13227 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
13228 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
13230 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
13232 PR middle-end/44738
13233 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
13235 2010-07-21 Richard Guenther <rguenther@suse.de>
13237 PR middle-end/45013
13238 * tree-ssa.c (useless_type_conversion_p): Dispatch to
13239 gimple_types_compatible_p only when in lto.
13240 * gimple.c (gimple_types_compatible_p): Use canonical types
13241 to speed up comparison.
13243 2010-07-21 Richard Guenther <rguenther@suse.de>
13245 * tree-flow.h (referenced_var): Move define ...
13246 * tree-flow-inline.h (referenced_var): ... here as an inline
13247 function. Assert here ...
13248 * tree-dfa.c (referenced_var_lookup): ... instead of here.
13249 * tree-ssa.c (maybe_optimize_var): Check if the variable
13250 is in referenced vars.
13251 (execute_update_addresses_taken): Remove old broken check.
13252 * gimple-pretty-print.c (pp_points_to_solution): Use
13253 referenced_var_lookup.
13254 * tree-into-ssa.c (dump_decl_set): Likewise.
13256 2010-07-21 Jakub Jelinek <jakub@redhat.com>
13259 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
13260 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
13263 2010-07-20 Richard Henderson <rth@redhat.com>
13265 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
13267 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
13269 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
13270 computing the sum of the stack pointer and a large constant.
13271 * config/arm/constraints.md (M): Remove superfluous parentheses.
13272 (Pc): New constraint.
13274 2010-07-20 Jakub Jelinek <jakub@redhat.com>
13277 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
13278 operand's type if exp is tcc_unary class tree.
13280 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
13282 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
13283 Reverse sense of if_then_else condition.
13285 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
13287 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
13288 * config/rs6000/rs6000.c (rs6000_override_options): Set
13289 rs6000_block_move_inline_limit appropriately.
13290 (expand_block_move): Use rs6000_block_move_inline_limit.
13291 * doc/invoke.texi (mblock-move-inline-limit): Document.
13293 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
13295 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
13296 FROM and TO. All callers changed. Don't look for tracked uses,
13297 just scan the RTL for DEBUG_INSNs and substitute.
13298 (reload_combine_recognize_pattern): Call fixup_debug_insns.
13299 (reload_combine): Ignore DEBUG_INSNs.
13301 2010-07-20 Jakub Jelinek <jakub@redhat.com>
13303 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
13307 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
13308 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
13309 instead of the result's type.
13311 2010-07-20 Richard Guenther <rguenther@suse.de>
13313 PR tree-optimization/44977
13314 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
13317 2010-07-20 Richard Guenther <rguenther@suse.de>
13319 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
13320 (lto_symtab_merge_decls_2): Likewise.
13321 * gimple.h (gimple_types_compatible_p): Declare.
13322 * gimple.c (gimple_queue_type_fixup): Remove.
13323 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
13324 (gimple_compatible_complete_and_incomplete_type_p): New function.
13325 (gimple_types_compatible_p): Adjust.
13326 (gimple_register_type): Remove type fixup code.
13327 (print_gimple_types_stats): Adjust.
13328 (free_gimple_type_tables): Likewise.
13329 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
13330 * tree-ssa.c (useless_type_conversion_p): Likewise.
13332 2010-07-20 Richard Guenther <rguenther@suse.de>
13334 PR middle-end/44971
13335 PR middle-end/44988
13336 * tree-ssa.c (maybe_optimize_var): New function split out from ...
13337 (execute_update_addresses_taken): ... here.
13338 (non_rewritable_mem_ref_base): Likewise.
13339 (execute_update_addresses_taken): Do not iterate over all referenced
13340 vars but just all local decls and parms.
13341 Properly check call and asm arguments and rewrite call arguments.
13343 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
13345 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
13347 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
13349 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
13351 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
13353 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
13355 * gengtype.c (start_root_entry): New function, split out from
13356 write_root. Check whether V is null and raise an error if so.
13357 (write_field_root): Check for V being null. Don't raise an error here;
13358 set V to null instead.
13359 (write_root): Update comment above function. Use start_root_entry.
13361 2010-07-19 Xinliang David Li <davidxl@google.com>
13364 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
13366 (find_uninit_use): Add dump.
13367 (is_use_properly_guarded): Ditto.
13368 (warn_uninitialized_phi): Ditto.
13369 (execute_late_warn_uninitialized): Ditto.
13371 2010-07-19 Richard Guenther <rguenther@suse.de>
13373 PR middle-end/44941
13374 * expr.c (emit_block_move_hints): Move zero size check first.
13375 Move asserts to more useful places.
13376 * calls.c (load_register_parameters): Check for zero size.
13378 2010-07-19 Richard Henderson <rth@redhat.com>
13380 * tree-optimize.c (execute_all_early_local_passes): New. Change
13381 cgraph_state here ...
13382 (execute_early_local_optimizations): ... not here. Remove.
13383 (pass_early_local_passes, pass_all_early_optimizations): Update.
13385 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
13387 * postreload.c (reload_combine_closest_single_use): Ignore the
13388 number of uses for DEBUG_INSNs.
13389 (fixup_debug_insns): New static function.
13390 (reload_combine_recognize_const_pattern): Use it. Don't let the
13391 main loop be affected by DEBUG_INSNs.
13392 Really disallow moving adds past a jump insn.
13393 (reload_combine_recognize_pattern): Don't update use_ruid here.
13394 (reload_combine_note_use): Do it here.
13395 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
13397 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
13399 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
13401 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
13403 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
13405 * config/i386/darwin.h: Define darwin_emit_branch_islands.
13406 (TARGET_MACHO_BRANCH_ISLANDS): New.
13407 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
13408 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
13410 * config/i386/i386.c (output_pic_addr_const): Do not emit
13411 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
13412 (x86_output_mi_thunk): Adjust symbol creation.
13413 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
13414 Remove out of date comment.
13415 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
13416 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
13417 (DARWIN_GENERATE_ISLANDS): Ditto.
13418 (output_call): Do not emit branch islands unless
13419 darwin_emit_branch_islands is set.
13420 * config/darwin.c: Declare darwin_emit_branch_islands.
13421 (machopic_indirect_data_reference): Do not emit unless
13422 darwin_emit_branch_islands is set.
13423 (darwin_override_options): Set darwin_emit_branch_islands
13424 where it is needed.
13425 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
13427 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13429 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13430 sse_runtime, sse2_runtime.
13432 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
13434 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
13435 low half of a single-register SCmode return value before ORing
13436 it with the high half.
13437 * config/mips/mips16.S (MERGE_GPRf): Likewise.
13439 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13442 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
13445 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
13448 * postreload.c (reload_cse_move2add): Return bool, true if anything.
13449 changed. All callers changed.
13450 (move2add_use_add2_insn): Likewise.
13451 (move2add_use_add3_insn): Likewise.
13452 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
13454 (RELOAD_COMBINE_MAX_USES): Bump to 16.
13455 (last_jump_ruid): New static variable.
13456 (struct reg_use): New members CONTAINING_MEM and RUID.
13457 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
13458 (reload_combine_split_one_ruid, reload_combine_split_ruids,
13459 reload_combine_purge_insn_uses, reload_combine_closest_single_use
13460 reload_combine_purge_reg_uses_after_ruid,
13461 reload_combine_recognize_const_pattern): New static functions.
13462 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
13463 is true for our reg and that we have available index regs.
13464 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
13465 callers changed. Use them to initialize fields in struct reg_use.
13466 (reload_combine): Initialize last_jump_ruid. Be careful when to
13467 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
13468 Call reload_combine_recognize_const_pattern.
13469 (reload_combine_note_store): Update REAL_STORE_RUID field.
13471 2010-07-16 Jason Merrill <jason@redhat.com>
13473 * Makefile.in (opts-common.o): Depend on options.h.
13475 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
13477 * tree.c (build_common_builtin_nodes): Use build_function_type_list
13478 instead of build_function_type.
13479 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
13480 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
13482 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
13484 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
13486 (rs6000_emit_int_cmove): Use function pointers for insn generation.
13487 Don't force values into registers unnecessarily.
13488 (output_isel): Assert that we're not given conditions we can't handle.
13489 Delete corresponding code.
13490 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
13491 scc_comparison_operator constraint. Permit 0 for the consequent
13492 operand. Permit any GPR for the alternative operand.
13493 (isel_unsigned_<mode>): Likewise.
13495 2010-07-16 Jakub Jelinek <jakub@redhat.com>
13498 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
13499 argument to const_tree.
13500 * config/i386/i386.c (function_arg_advance): If padding needs to be
13501 inserted before argument, increment cum->words by number of padding
13503 (contains_aligned_value_p): Change argument to const_tree.
13504 (ix86_function_arg_boundary): Change second argument to const_tree.
13506 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
13509 * function.c (record_hard_reg_sets): New static function.
13510 (assign_parm_setup_reg): If an optab for extending exists and the
13511 generated code clobbbers no hard regs, emit the insn directly and
13512 create a REG_EQUIV note.
13514 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
13516 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
13518 * c-typeck.c (push_init_level): Likewise.
13519 (process_init_element): Likewise.
13521 2010-07-15 Anatoly Sokolov <aesok@post.ru>
13523 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
13524 (integer_three_node): Add.
13525 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
13526 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
13527 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
13528 of call build_int_cst.
13529 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
13530 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
13531 (find_interesting_uses_address): Ditto.
13532 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
13533 * tree-eh.c (lower_eh_constructs_2): Ditto.
13534 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
13535 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
13536 * expmed.c (expand_divmod): Ditto.
13537 * tree-mudflap.c (mx_register_decls): Ditto.
13538 * varasm.c (array_size_for_constructor): Ditto.
13539 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
13540 * c-parser.c (c_parser_postfix_expression): Ditto.
13542 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
13544 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
13545 New static variables.
13546 (reload_combine_recognize_pattern): New static function, broken out
13548 (reload_combine): Use it. Only initialize first_index_reg and
13549 last_index_reg once.
13551 2010-07-15 Richard Henderson <rth@redhat.com>
13553 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
13556 2010-07-15 Jan Hubicka <jh@suse.cz>
13558 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
13559 comdats for broken gold.
13560 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
13562 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
13564 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
13566 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
13568 * tree.h (DECL_CHAIN): Define.
13569 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
13570 * c-decl.c: Likewise.
13571 * c-parser.c: Likewise.
13572 * c-typeck.c: Likewise.
13573 * cfgexpand.c: Likewise.
13574 * cgraph.c: Likewise.
13575 * cgraphunit.c: Likewise.
13576 * combine.c: Likewise.
13577 * config/alpha/alpha.c: Likewise.
13578 * config/arm/arm.c: Likewise.
13579 * config/frv/frv.c: Likewise.
13580 * config/i386/i386.c: Likewise.
13581 * config/i386/winnt-cxx.c: Likewise.
13582 * config/ia64/ia64.c: Likewise.
13583 * config/iq2000/iq2000.c: Likewise.
13584 * config/mep/mep.c: Likewise.
13585 * config/mips/mips.c: Likewise.
13586 * config/pa/som.h: Likewise.
13587 * config/rs6000/rs6000.c: Likewise.
13588 * config/s390/s390.c: Likewise.
13589 * config/sh/sh.c: Likewise.
13590 * config/sh/symbian-cxx.c: Likewise.
13591 * config/sparc/sparc.c: Likewise.
13592 * config/spu/spu.c: Likewise.
13593 * config/stormy16/stormy16.c: Likewise.
13594 * config/vxworks.c: Likewise.
13595 * config/xtensa/xtensa.c: Likewise.
13596 * coverage.c: Likewise.
13597 * dbxout.c: Likewise.
13598 * dwarf2out.c: Likewise.
13599 * emit-rtl.c: Likewise.
13600 * expr.c: Likewise.
13601 * function.c: Likewise.
13602 * gimple-low.c: Likewise.
13603 * gimple-pretty-print.c: Likewise.
13604 * gimplify.c: Likewise.
13605 * integrate.c: Likewise.
13606 * ipa-inline.c: Likewise.
13607 * ipa-prop.c: Likewise.
13608 * ipa-split.c: Likewise.
13609 * ipa-struct-reorg.c: Likewise.
13610 * ipa-type-escape.c: Likewise.
13611 * langhooks.c: Likewise.
13612 * lto-cgraph.c: Likewise.
13613 * omp-low.c: Likewise.
13614 * stor-layout.c: Likewise.
13615 * tree-cfg.c: Likewise.
13616 * tree-complex.c: Likewise.
13617 * tree-dfa.c: Likewise.
13618 * tree-dump.c: Likewise.
13619 * tree-inline.c: Likewise.
13620 * tree-mudflap.c: Likewise.
13621 * tree-nested.c: Likewise.
13622 * tree-object-size.c: Likewise.
13623 * tree-pretty-print.c: Likewise.
13624 * tree-sra.c: Likewise.
13625 * tree-ssa-live.c: Likewise.
13626 * tree-ssa-loop-niter.c: Likewise.
13627 * tree-ssa-math-opts.c: Likewise.
13628 * tree-ssa-reassoc.c: Likewise.
13629 * tree-ssa-sccvn.c: Likewise.
13630 * tree-ssa-structalias.c: Likewise.
13631 * tree-tailcall.c: Likewise.
13632 * tree-vrp.c: Likewise.
13633 * tree.c: Likewise.
13634 * var-tracking.c: Likewise.
13635 * varasm.c: Likewise.
13637 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13640 * config/spu/spu.c (spu_expand_builtin_1): Allow references
13641 (as well as pointers) as argument to mask_for_load builtins.
13643 2010-07-15 Richard Guenther <rguenther@suse.de>
13645 PR tree-optimization/44946
13646 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
13647 with accessing only padding properly.
13649 2010-07-15 Jan Hubicka <jh@suse.cz>
13651 * ipa.c (function_and_variable_visibility): Variables marked as used
13652 should not be localized.
13654 2010-07-15 Jan Hubicka <jh@suse.cz>
13656 * cgraph.c: Include lto-streamer.h
13657 (change_decl_assembler_name): Work when assembler name hash is at place.
13658 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
13659 be sure to rename it to avoid name clash.
13660 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
13661 Localize hidden symbols only when locally defined.
13663 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
13665 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
13667 2010-07-15 Magnus Granberg <zorry@gentoo.org>
13668 Kevin F. Quinn <kevquinn@gentoo.org>
13670 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
13671 * common.opt: Add -Wtrampolines.
13672 * doc/invoke.texi: Add -Wtrampolines.
13674 2010-07-15 Jie Zhang <jie@codesourcery.com>
13676 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
13677 cortex_a8_issue_ls.
13679 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
13681 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
13682 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
13684 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13686 * config/spu/spu.c (reg_names): Remove prototype.
13687 (call_used_regs): Likewise.
13689 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
13691 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
13692 "unused" with attribute "used".
13693 (__JCR_END__): Likewise.
13694 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
13696 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
13698 2010-07-14 Richard Guenther <rguenther@suse.de>
13700 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
13701 (maybe_fixup_decls): Likewise.
13702 (input_gimple_stmt): Do not fixup anything.
13703 * lto-streamer-out.c (output_gimple_stmt): Make sure all
13704 non-automatic variable uses are wrapped inside a MEM_REF.
13706 2010-07-14 Richard Henderson <rth@redhat.com>
13708 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
13710 * varasm.c (assemble_variable): Remove early exit for functions;
13711 assert that we're given a variable.
13713 2010-07-14 Jie Zhang <jie@codesourcery.com>
13715 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
13716 cortex_a8_default when neon_type is not none.
13718 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
13720 * lower-subreg.c (subreg_context): New static bitmap.
13721 (decompose_multiword_subregs): Allocate and free it.
13722 (find_decomposable_subregs): Set a bit in it for a register that
13723 occurs in a subreg that changes mode but not size.
13724 (can_decompose_p): Test it instead of non_decomposable_context.
13726 2010-07-14 Richard Guenther <rguenther@suse.de>
13728 PR tree-optimization/44824
13729 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
13730 is_gimple_mem_ref_addr.
13731 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
13732 non-decl_address_invariant_p addresses.
13734 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
13736 * reload.c (find_reloads): Revert code to penalize small register
13737 classes that was brought in with the IRA merge.
13739 2010-07-14 Richard Guenther <rguenther@suse.de>
13741 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
13742 as base of ARRAY_REFs.
13744 2010-07-14 Richard Guenther <rguenther@suse.de>
13746 PR middle-end/44930
13747 * tree-pretty-print.c (do_niy): Do not print a newline.
13749 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
13751 * ira-int.h (struct ira_object): New.
13752 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
13753 (struct ira_allocno): Remove members min, max,
13754 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
13755 conflict_allocnos_num and conflict_vec_p. Add new member object.
13756 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
13757 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
13758 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
13759 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
13760 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
13761 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
13762 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
13763 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
13764 an ira_object_t rather than ira_allocno_t. All uses changed.
13765 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
13766 contains a vector of ira_object_t; all uses changed.
13767 (ira_objects_num): Declare variable.
13768 (ira_create_allocno_object): Declare function.
13769 (ira_conflict_vector_profitable_p): Adjust prototype.
13770 (ira_allocate_conflict_vec): Renamed from
13771 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
13772 (ira_allocate_object_conflicts): Renamed from
13773 ira_allocate_allocno_conflicts; first arg now ira_object_t.
13774 (struct ira_object_iterator): New.
13775 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
13776 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
13777 to conflict_vec_p. All uses changed.
13778 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
13779 Changed to take into account that conflicts are now tracked for
13781 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
13782 Args changed to accept ira_object_t. All uses changed.
13783 (allocnos_conflict_p): New static function.
13784 (collected_conflict_objects): Renamed from collected_allocno_objects;
13785 now a vector of ira_object_t. All uses changed.
13786 (build_conflict_bit_table): Changed to take into account that
13787 conflicts are now tracked for objects.
13788 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
13789 (print_allocno_conflicts, ira_build_conflicts): Likewise.
13790 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
13791 setup_allocno_left_conflicts_size, allocno_reload_assign,
13792 fast_allocation): Likewise.
13793 * ira-lives.c (make_hard_regno_born, make_allocno_born)
13794 process_single_reg_class_operands, process_bb_node_lives): Likewise.
13795 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
13797 * ira-build.c (ira_objects_num): New variable.
13798 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
13799 contains a vector of ira_object_t; all uses changed.
13800 (ira_object_id_map_vec): Corresponding change.
13801 (object_pool): New static variable.
13802 (initiate_allocnos): Initialize it.
13803 (finish_allocnos): Free it.
13804 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
13806 (ira_create_allocno): Don't set members that were removed.
13807 (ira_set_allocno_cover_class): Don't change conflict hard regs.
13808 (merge_hard_reg_conflicts): Changed to take into account that
13809 conflicts are now tracked for objects.
13810 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
13811 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
13812 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
13813 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
13814 setup_min_max_conflict_allocno_ids, ): Likewise.
13815 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
13816 to ira_object_t; all callers changed.
13817 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
13818 to ira_object_t, all callers changed.
13819 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
13820 to ira_object_t, all callers changed.
13821 (conflict_check, curr_conflict_check_tick): Renamed from
13822 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
13824 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
13825 arg changed to ira_object_t, all callers changed.
13826 (create_cap_allocno): Call ira_create_allocno_object.
13827 (finish_allocno): Free the corresponding object.
13828 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
13829 callers changed. Adjusted for dealing with objects.
13830 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
13831 dealing with objects.
13832 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
13834 * ira-int.h (struct live_range): Rename allocno member to object
13835 and change type to ira_object_t.
13836 (struct ira_object): New member live_ranges.
13837 (struct ira_allocno): Remove member live_ranges.
13838 (ALLOCNO_LIVE_RANGES): Remove.
13839 (OBJECT_LIVE_RANGES): New macro.
13840 (ira_create_live_range, ira_copy_live_range_list,
13841 ira_merge_live_range_list, ira_live_ranges_intersect_p,
13842 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
13843 * ira-build.c (ira_create_object): Initialize live ranges here.
13844 (ira_create_allocno): Not here.
13845 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
13846 changed to ira_object_t, all callers changed.
13847 (copy_live_range): Rename from copy_allocno_live_range, all callers
13849 (ira_copy_live_range_list): Rename from
13850 ira_copy_allocno_live_range_list, all callers changed.
13851 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
13852 all callers changed.
13853 (ira_live_ranges_intersect_p): Rename from
13854 ira_allocno_live_ranges_intersect_p, all callers changed.
13855 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
13857 (ira_finish_live_range_list): Rename from
13858 ira_finish_allocno_live_range_list, all callers changed.
13859 (change_object_in_range_list): Rename from change_allocno_in_range_list,
13860 last arg changed to ira_object_t, all callers changed.
13861 (finish_allocno): Changed to expect live ranges in the allocno's object.
13862 (move_allocno_live_ranges, copy_allocno_live_ranges,
13863 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
13864 ira_flattening, ira_build): Likewise.
13865 * ira-color.c (allocnos_have_intersected_live_ranges_p,
13866 slot_coalesced_allocno_live_ranges_intersect,
13867 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
13868 * ira-conflicts.c (build_conflict_bit_table): Likewise.
13869 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13870 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
13871 make_allocno_dead, create_start_finish_chains,
13872 remove_some_program_points_and_update_live_ranges,
13873 ira_debug_live_range_list): Likewise.
13875 * ira-int.h (ira_object_conflict_iterator): Rename from
13876 ira_allocno_conflict_iterator.
13877 (ira_object_conflict_iter_init): Rename from
13878 ira_allocno_conflict_iter_init, second arg changed to
13879 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
13880 FOR_EACH_ALLOCNO_CONFLICT.
13881 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
13882 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
13883 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
13884 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13886 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
13889 * tree-dump.c (dump_options): Add enumerate_locals entry.
13890 Add TDF_NOID exclusion to all entry.
13891 * tree-dump.h (dump_enumerated_decls): Declare.
13892 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
13893 Don't display type uid.
13894 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
13895 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
13896 * tree-ssa-live.c: Include gimple.h.
13897 (numbered_tree_d): New struct.
13898 (numbered_tree): New typedef.
13899 (DEF_VEC_O (numbered_tree): New.
13900 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
13901 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
13902 (dump_enumerated_decls): Likewise.
13903 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
13904 debug info and flag_dump_final_insns, call dump_enumerated_decls.
13905 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
13906 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
13908 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
13910 * expmed.h (MAX_BITS_PER_WORD): Move to...
13911 * defaults.h (MAX_BITS_PER_WORD): ...here.
13913 2010-07-13 DJ Delorie <dj@redhat.com>
13915 * config/h8300/h8300.c (h8300_init_once): Default to
13916 -fstrict_volatile_bitfields.
13918 * config/sh/sh.c (sh_override_options): Default to
13919 -fstrict_volatile_bitfields.
13921 * config/rx/rx.c (rx_option_override): New.
13923 * config/m32c/m32c.c (m32c_override_options): Default to
13924 -fstrict_volatile_bitfields.
13926 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
13928 * tree.h (build_function_call_expr): Delete.
13929 (build_call_expr_loc_array): New function.
13930 (build_call_expr_loc_vec): New function.
13931 * tree-flow.h (struct omp_region): Change type of ws_args field
13933 * builtins.c (build_function_call_expr): Delete.
13934 (build_call_expr_loc_array): New function.
13935 (build_call_expr_loc): Call it. Use XALLOCAVEC.
13936 (build_call_expr): Likewise.
13937 (build_call_expr_loc_vec): New function.
13938 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
13939 build_function_call_expr.
13940 * expr.c (emutls_var_address): Likewise.
13941 * varasm.c (emutls_common_1): Likewise.
13942 * omp-low.c (expand_omp_atomic_mutex): Likewise.
13943 (expand_omp_taskreg): Adjust for new type of region->ws_args.
13944 (get_ws_args_for): Return a VEC instead of a tree.
13945 (expand_parallel_call): Call build_call_expr_loc_vec instead of
13946 build_function_call_expr.
13947 * stor-layout.c (self_referential_size): Likewise.
13949 2010-07-13 Jakub Jelinek <jakub@redhat.com>
13952 * recog.c (constrain_operands): Allow side-effects in memory
13953 operands if either < or > constraint is used, rather than if
13954 both < and > is used.
13956 2010-07-13 Richard Guenther <rguenther@suse.de>
13958 PR middle-end/44911
13959 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
13960 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
13963 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
13966 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
13967 to variable emited.
13968 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
13969 * config/sh/sh.md (symGOT_load): Likewise.
13970 (symDTPOFF2reg): Likewise.
13971 (symTPOFF2reg): Likewise.
13973 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13975 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
13976 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
13978 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13980 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
13982 Find ucontext_t * on Solaris 11.
13983 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
13984 Handle new Solaris 11 __sighndlr patterns.
13986 2010-07-13 Jakub Jelinek <jakub@redhat.com>
13989 * vec.h (VEC_block_remove): Fix comment.
13990 * tree-ssa-live.c (remove_unused_locals): Don't use
13991 VEC_unordered_remove on local_decls, instead replace a single
13992 vector element in each iteration if at least one element had
13993 to be removed and VEC_truncate at the end.
13994 * omp-low.c (expand_omp_taskreg): Likewise.
13996 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
13998 * c-decl.c (finish_function): Fix typo in comment.
14000 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
14003 * postreload.c (move2add_use_add3_insn): Silence gcc warning
14006 2010-07-12 Jakub Jelinek <jakub@redhat.com>
14008 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
14009 (simplify_stmt_using_ranges): Use it.
14011 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14013 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
14014 member. Do not mark as GTY(()).
14015 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
14016 (spu_builtin_decls): New static variable.
14017 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
14018 (spu_init_builtins): Likewise.
14019 (spu_builtin_mul_widen_even): Likewise.
14020 (spu_builtin_mul_widen_odd): Likewise.
14021 (spu_builtin_mask_for_load): Likewise.
14022 (spu_builtin_vec_perm): Likewise.
14023 * config/spu/spu-c.c: Include "target.h".
14024 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
14025 of using spu_builtins[].fndecl.
14027 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14029 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
14030 imply -minterlink-mips16.
14032 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14034 * config/mips/mips.h (mips16_globals): Declare.
14035 (SWITCHABLE_TARGET): Define.
14036 * config/mips/mips.c: Include target-globals.h.
14037 (mips16_globals): New variable.
14038 (mips_set_mips16_mode): Use save_target_globals and
14039 restore_target_globals instead of target_reinit.
14041 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14043 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
14044 to say that the function can be called more than once.
14045 * target-globals.c (save_target_globals): Call init_reg_sets.
14047 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14049 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
14050 * bb-reorder.h: New file.
14051 * bb-reorder.c (default_target_bb_reorder): New variable.
14052 (this_target_bb_reorder): New conditional variable.
14053 (uncond_jump_length): Redefine as a macro.
14054 * target-globals.h (this_target_bb_reorder): Declare.
14055 (target_globals): Add a bb_reorder field.
14056 (restore_target_globals): Copy the bb_reorder field to
14057 this_target_bb-reorder.
14058 * target-globals.c: Include bb-reorder.h.
14059 (default_target_globals): Initialize the bb_reorder field.
14060 (save_target_globals): Likewise.
14062 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14064 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
14065 * gcse.h: New file.
14066 * gcse.c: Include gcse.h.
14067 (default_target_gcse): New variable.
14068 (this_target_gcse): New conditional variable.
14069 (can_copy): Redefine as a macro.
14070 (can_copy_init_p): New macro.
14071 (can_copy_p): Remove can_copy_init_p.
14072 * target-globals.h (this_target_gcse): Declare.
14073 (target_globals): Add a gcse field.
14074 (restore_target_globals): Copy the gcse field to this_target_gcse.
14075 * target-globals.c: Include gcse.h.
14076 (default_target_globals): Initialize the gcse field.
14077 (save_target_globals): Likewise.
14079 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14081 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
14082 and x_ira_prohibited_mode_move_regs_initialized_p.
14083 (ira_prohibited_mode_move_regs): Redefine as a macro.
14084 * ira.c (ira_prohibited_mode_move_regs): Delete.
14085 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
14087 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14089 * reload.h (target_reload): Add x_cached_reg_save_code and
14090 x_cached_reg_restore_code.
14091 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
14092 Redefine as macros.
14094 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14096 * Makefile.in (target-globals.o): Depend on builtins.h.
14097 * builtins.h: New file.
14098 * builtins.c: Include builtins.h.
14099 (default_target_builtins): New variable.
14100 (this_target_builtins): New conditional variable.
14101 (apply_args_mode, apply_result_mode): Redefine as macros.
14102 * target-globals.h (this_target_builtins): Declare.
14103 (target_globals): Add a builtins field.
14104 (restore_target_globals): Copy the builtins field to
14105 this_target_builtins.
14106 * target-globals.c: Include builtins.h.
14107 (default_target_globals): Initialize the builtins field.
14108 (save_target_globals): Likewise.
14110 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14112 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
14113 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
14115 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
14116 (alg_hash, alg_hash_used_p): New macros.
14117 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
14118 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
14119 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
14121 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14123 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
14124 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
14125 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
14126 (this_op_costs, costs_classes): Redefine as macros.
14127 (record_reg_classes): Don't take op_costs as a parameter.
14128 (record_operand_costs): Likewise. Update calls to record_reg_classes.
14129 (scan_one_insn): Update call to record_operand_costs.
14131 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14133 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
14134 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
14135 (target_ira_int): New structure.
14136 (default_target_ira_int): Declare.
14137 (this_target_ira_int): Declare as a variable or define as a macro.
14138 (ira_reg_mode_hard_regset, ira_register_move_cost)
14139 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
14140 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
14141 (prohibited_class_mode_regs, ira_important_classes_num)
14142 (ira_important_classes, ira_reg_class_intersect)
14143 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
14144 (ira_reg_class_union): Redefine as macros.
14145 * ira.h (target_ira): New structure.
14146 (default_target_ira): Declare.
14147 (this_target_ira): Declare as a variable or define as a macro.
14148 (ira_available_class_regs, ira_hard_regno_cover_class)
14149 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
14150 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
14151 (ira_class_hard_regs_num): Redefine as macros.
14152 * ira.c (default_target_ira, default_target_ira_int): New variables.
14153 (this_target_ira, this_target_ira_int): New conditional variables.
14154 (ira_reg_mode_hard_regset, ira_memory_move_cost)
14155 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
14156 (ira_class_subset_p): Delete.
14157 (no_unit_alloc_regs): Redefine as a macro.
14158 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
14159 (ira_class_hard_regs_num, ira_class_hard_reg_index)
14160 (ira_available_class_regs): Delete.
14161 (alloc_reg_class_subclasses): Redefine as a macro.
14162 (ira_reg_class_cover_size, ira_reg_class_cover)
14163 (ira_important_classes_num, ira_important_classes)
14164 (ira_important_class_nums, ira_class_translate): Delete.
14165 (cover_class_order): Document the variable's lifetime.
14166 (reorder_important_classes): Don't set ira_important_class_nums.
14167 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
14168 (ira_reg_class_super_classes, ira_reg_class_union)
14169 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
14171 (setup_reg_class_nregs): Don't set ira_max_regs.
14172 (prohibited_class_mode_regs): Delete.
14173 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
14174 (target_globals): Add ira and ira_int fields.
14175 (restore_target_globals): Copy the ira field to this_target_ira
14176 and the ira_int field to this_target_ira_int.
14177 * target-globals.c: Include ira-int.h.
14178 (default_target_globals): Initialize the ira and ira_int fields.
14179 (save_target_globals): Likewise.
14181 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14183 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
14184 * cfgloop.h (target_cfgloop): New structure.
14185 (default_target_cfgloop): Declare.
14186 (this_target_cfgloop): Declare as a variable or define as a macro.
14187 (target_avail_regs, target_clobbered_regs, target_res_regs)
14188 (target_reg_cost, target_spill_cost): Redefine as macros.
14189 * cfgloopanal.c (default_target_cfgloop): New variable.
14190 (this_target_cfgloop): New conditional variable.
14191 (target_avail_regs, target_clobbered_regs, target_res_regs)
14192 (target_reg_cost, target_spill_cost): Delete.
14193 * target-globals.h (this_target_cfgloop): Declare.
14194 (target_globals): Add a cfgloop field.
14195 (restore_target_globals): Copy the cfgloop field to
14196 this_target_cfgloop.
14197 * target-globals.c: Include cfgloop.h.
14198 (default_target_globals): Initialize the cfgloop field.
14199 (save_target_globals): Likewise.
14201 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14203 * regs.h (target_regs): Add x_direct_load, x_direct_store and
14204 x_float_extend_from_mem.
14205 (direct_load, direct_store, float_extend_from_mem): New macros.
14206 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
14208 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14210 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
14211 (target-globals.o): Depend on $(LIBFUNCS_H).
14212 * libfuncs.h: Include hashtab.h.
14213 (libfunc_entry): Moved from optabs.c.
14214 (target_libfuncs): New structure.
14215 (default_target_libfuncs): Declare.
14216 (this_target_libfuncs): Declare as a variable or define as a macro.
14217 (libfunc_table): Redefine as a macro.
14218 * optabs.c (default_target_libfuncs): New variable.
14219 (this_target_libfuncs): New conditional variable.
14220 (libfunc_table): Delete.
14221 (libfunc_entry): Moved to optabs.h.
14222 (libfunc_hash): Redefine as a macro.
14223 (hash_libfunc, eq_libfunc): Fix comments.
14224 (init_optabs): Use libfunc_hash to detect cases where the function
14225 has already been called. Clear the hash table instead of
14227 * target-globals.h (this_target_libfuncs): Declare.
14228 (target_globals): Add a libfuncs field.
14229 (restore_target_globals): Copy the libfuncs field to
14230 this_target_libfuncs.
14231 * target-globals.c: Include libfuncs.h.
14232 (default_target_globals): Initialize the libfuncs field.
14233 (save_target_globals): Likewise.
14235 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14237 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
14238 in all dependency lists.
14240 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14242 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
14243 * optabs.h (target_optabs): New structure.
14244 (default_target_optabs): Declare.
14245 (this_target_optabs): Declare as a variable or define as a macro.
14246 (optab_table, convert_optab_table, direct_optab_table): Redefine
14248 * optabs.c (default_target_optabs): New variable.
14249 (this_target_optabs): New conditional variable.
14250 (optab_table, convert_optab_table, direct_optab_table): Delete.
14251 * target-globals.h (this_target_optabs): Declare.
14252 (target_globals): Add a optabs field.
14253 (restore_target_globals): Copy the optabs field to
14254 this_target_optabs.
14255 * target-globals.c: Include expr.h and optabs.h.
14256 (default_target_globals): Initialize the optabs field.
14257 (save_target_globals): Likewise.
14259 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14261 * flags.h (target_flagstate): Add x_flag_excess_precision.
14262 (flag_excess_precision): Redefine as a macro.
14263 * toplev.c (flag_excess_precision): Delete.
14265 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14267 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
14268 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
14269 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
14270 (no_caller_save_reg_set): Redefine as a macro.
14271 * reload.h (target_reload): Add x_caller_save_initialized_p and
14273 (caller_save_initialized_p): Redefine as a macro.
14274 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
14275 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
14276 (regno_save_mode): Redefine as a macro.
14278 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14280 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
14281 * expmed.h: New file.
14282 * expmed.c (default_target_costs): New variable.
14283 (this_target_costs): New conditional variable.
14284 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
14285 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
14286 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
14287 * target-globals.h (this_target_expmed): Declare.
14288 (target_globals): Add a expmed field.
14289 (restore_target_globals): Copy the expmed field to
14290 this_target_expmed.
14291 * target-globals.c: Include expmed.h.
14292 (default_target_globals): Initialize the expmed field.
14293 (save_target_globals): Likewise.
14295 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14297 * Makefile.in (target-globals.o): Depend on reload.h.
14298 * reload.h (target_reload): New structure.
14299 (default_target_reload): Declare.
14300 (this_target_reload): Declare as a variable or define as a macro.
14301 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
14302 * reload1.c (default_target_reload): New variable
14303 (this_target_reload): New conditional variable.
14304 (indirect_symref_ok, double_reg_address_ok): Delete.
14305 (spill_indirect_levels): Redefine as a macro.
14306 * target-globals.h (this_target_reload): Declare.
14307 (target_globals): Add a reload field.
14308 (restore_target_globals): Copy the reload field to
14309 this_target_reload.
14310 * target-globals.c: Include hard-reg-set.h.
14311 (default_target_globals): Initialize the reload field.
14312 (save_target_globals): Likewise.
14314 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14316 * rtl.h (target_rtl): Add x_static_reg_base_value.
14317 * alias.c (static_reg_base_value): Redefine as a macro.
14319 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14321 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
14322 (GTFILES): Remove reginfo.c.
14323 * rtl.h (target_rtl): Add x_top_of_stack.
14324 (top_of_stack): New macro.
14325 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
14326 (top_of_stack): Delete.
14328 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14330 * regs.h (target_regs): Add x_hard_regs_of_mode,
14331 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
14332 x_may_move_out_cost and x_last_mode_for_init_move_cost.
14333 (have_regs_of_mode, contains_reg_of_mode, move_cost)
14334 (may_move_in_cost, may_move_out_cost): Redefine as macros.
14335 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
14336 (may_move_in_cost, may_move_out_cost): Delete.
14337 (last_mode_for_init_move_cost): Redefine as a macro.
14339 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14341 * hard-reg-set.h (target_hard_regs): New structure.
14342 (default_target_hard_regs): Declare.
14343 (this_target_hard_regs): Declare as a variable or define as a macro.
14344 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
14345 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
14346 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
14347 (reg_class_size, reg_class_subclasses, reg_class_subunion)
14348 (reg_class_superunion, reg_names): Redefine as macros.
14349 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
14350 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
14351 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
14352 (reg_class_contents, reg_class_size, reg_class_subclasses)
14353 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
14354 (default_target_hard_regs): New variable
14355 (this_target_hard_regs, initial_call_really_used_regs)
14356 (initial_reg_alloc_order): New conditional variables.
14357 (initial_reg_names): New variable.
14358 (init_reg_sets): Assert that initial_call_really_used_regs,
14359 initial_reg_alloc_order and initial_reg_names
14360 are all the same size as their variable counterparts. Use them to
14361 initialize those counterparts.
14362 * target-globals.h (this_target_hard_regs): Declare.
14363 (target_globals): Add a hard_regs field.
14364 (restore_target_globals): Copy the hard_regs field to
14365 this_target_hard_regs.
14366 * target-globals.c: Include hard-reg-set.h.
14367 (default_target_globals): Initialize the hard_regs field.
14368 (save_target_globals): Likewise.
14370 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14372 * Makefile.in (target-globals.o): Depend on $(RTL_H).
14373 * rtl.h (target_rtl): New structure.
14374 (default_target_rtl): Declare.
14375 (this_target_rtl): Declare as a variable or define as a macro.
14376 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
14377 Redefine as macros.
14378 * emit-rtl.c (default_target_rtl): New variable.
14379 (this_target_rtl): New conditional variable.
14380 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
14381 (return_address_pointer_rtx): Delete.
14382 (initial_regno_reg_rtx): New macro.
14383 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
14384 (init_emit_regs): Likewise.
14385 * target-globals.h (this_target_rtl): Declare.
14386 (target_globals): Add a rtl field.
14387 (restore_target_globals): Copy the rtl field to this_target_rtl.
14388 * target-globals.c: Include rtl.h.
14389 (default_target_globals): Initialize the rtl field.
14390 (save_target_globals): Likewise.
14392 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14394 * Makefile.in (target-globals.o): Depend on $(REGS_H).
14395 * regs.h (target_reg_modes): New structure.
14396 (default_target_reg_modes): Declare.
14397 (this_target_reg_modes): Declare as a variable or define as a macro.
14398 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
14399 * reginfo.c (default_target_reg_modes): New variable.
14400 (this_target_reg_modes): New conditional variable.
14401 (hard_regno_nregs, reg_raw_mode): Delete.
14402 * target-globals.h (this_target_regs): Declare.
14403 (target_globals): Add a regs field.
14404 (restore_target_globals): Copy the regs field to this_target_regs.
14405 * target-globals.c: Include regs.h.
14406 (default_target_globals): Initialize the regs field.
14407 (save_target_globals): Likewise.
14409 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14411 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
14412 * doc/tm.texi: Regenerate.
14413 * Makefile.in (OBJS-common): Add target-globals.o.
14414 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
14415 and target-globals.h.
14416 (target-globals.o): New rule.
14417 (GTFILES): Include $(srcdir)/target-globals.h.
14418 * defaults.h (SWITCHABLE_TARGET): Define.
14419 * gengtype.c (open_base_files): Add target-globals.h to the
14421 * target-globals.h: New file.
14422 * target-globals.c: Likewise.
14424 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
14425 * flags.h (target_flag_state): New structure.
14426 (default_target_flag_state): Declare.
14427 (this_target_flag_state): Declare as a variable or define as a macro.
14428 (align_loops_log): Redefine as a macro.
14429 (align_loops_max_skip, align_jumps_log): Likewise.
14430 (align_jumps_max_skip, align_labels_log): Likewise.
14431 (align_labels_max_skip, align_functions_log): Likewise.
14432 * toplev.c (default_target_flag_state): New variable.
14433 (this_target_flag_state): New conditional variable.
14434 (align_loops_log): Delete.
14435 (align_loops_max_skip, align_jumps_log): Likewise.
14436 (align_jumps_max_skip, align_labels_log): Likewise.
14437 (align_labels_max_skip, align_functions_log): Likewise.
14438 * target-globals.h (this_target_flag_state): Declare.
14439 (target_globals): Add a flag_state field.
14440 (restore_target_globals): Copy the flag_state field to
14441 this_target_flag_state.
14442 * target-globals.c: Include flags.h.
14443 (default_target_globals): Initialize the flag_state field.
14444 (save_target_globals): Likewise.
14446 2010-07-12 Jie Zhang <jie@codesourcery.com>
14448 * postreload.c (reg_symbol_ref[]): New.
14449 (move2add_use_add2_insn): New.
14450 (move2add_use_add3_insn): New.
14451 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
14452 (move2add_note_store): Likewise.
14454 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
14456 PR rtl-optimization/44752
14457 * genautomata.c (main): Don't emit an empty file even if there
14460 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14462 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
14463 ix86_solaris_return_in_memory.
14464 * config/i386-protos.h: Reflect this.
14465 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
14466 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
14468 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
14470 2010-07-12 Jie Zhang <jie@codesourcery.com>
14472 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
14473 align the stack when it's going to be saved.
14475 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14478 * config/host-solaris.c (mmap_fixed): New function.
14479 (sol_gt_pch_get_address): Use it.
14480 (sol_gt_pch_use_address): Likewise.
14482 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14484 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
14485 pentiumpro on Solaris 8 and 9/x86.
14486 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
14487 Document SSE/SSE2 support.
14488 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
14490 2010-07-12 Andi Kleen <ak@linux.intel.com>
14492 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
14493 instead of gcc_assert to print better error message for multiple
14496 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
14498 * config/i386/i386.c (ix86_asm_output_function_label): Change format
14499 string placeholder from 0x%x to %#x.
14500 (ix86_code_end): Use putc to output '\n'.
14501 (ix86_print_operand) <case ';'>: Use putc to output ';'.
14503 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
14505 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
14506 in directive -export.
14508 2010-07-10 Anatoly Sokolov <aesok@post.ru>
14510 * reginfo.h (reg_classes_intersect_p): Change arguments type to
14512 * rtl.h (reg_classes_intersect_p): Adjust prototype.
14514 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14516 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
14517 rs6000_memory_move_cost): Remove
14518 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
14519 TARGET_MEMORY_MOVE_COST): Define.
14520 (rs6000_register_move_cost): Make static. Change arguments type from
14521 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
14522 (rs6000_memory_move_cost): Make static. Change arguments type from
14523 'enum reg_class' to reg_class_t.
14525 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
14527 PR middle-end/42505
14528 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
14529 lookup code into....
14530 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
14532 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
14533 * cfgloopanal.c (target_clobbered_regs): Define.
14534 (init_set_costs): Initialize target_clobbered_regs.
14535 (estimate_reg_pressure_cost): Add call_p argument. When true,
14536 adjust the number of available registers to exclude the
14537 call-clobbered registers.
14538 * cfgloop.h (target_clobbered_regs): Declare.
14539 (estimate_reg_pressure_cost): Adjust declaration.
14540 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
14541 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
14542 (determine_set_costs): Dump target_clobbered_regs.
14543 (loop_body_includes_call): New function.
14544 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
14545 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
14546 call_p flag through.
14547 (best_gain_for_invariant): Likewise.
14548 (find_invariants_to_move): Likewise.
14549 (move_single_loop_invariants): Likewise, using already-computed
14552 2010-07-10 Richard Guenther <rguenther@suse.de>
14553 Joern Rennecke <joern.rennecke@embecosm.com>
14556 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
14557 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
14558 unless they have DECL_IGNORED_P set.
14560 2010-07-10 Richard Guenther <rguenther@suse.de>
14563 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
14565 (gimple_types_compatible_p): Similar to pointed-to
14566 types allow and merge a mix of complete and incomplete aggregate.
14567 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
14568 (iterative_hash_gimple_type): Adjust for that.
14570 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
14572 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
14574 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
14577 * config/darwin.c (output_objc_section_asm_op): Save and restore
14578 section when outputting ObjC section list.
14580 2010-07-09 Jan Hubicka <jh@suse.cz>
14582 * lto-streamer-out.c (produce_symtab): Do not write alias
14583 cgraph/varpool nodes.
14585 2010-07-09 Jan Hubicka <jh@suse.cz>
14587 * tree-inline.c (declare_return_variable): Fix ICE while
14588 inlining DECL_BY_VALUE function not in SSA form
14590 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
14592 PR tree-optimization/44576
14593 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
14594 New. Pull out from is_loop_prefetching_profitable to implement
14595 the trip count to ahead ratio heuristic.
14596 (mem_ref_count_reasonable_p): New. Pull out from
14597 is_loop_prefetching_profitable to implement the instruction to
14598 memory reference ratio heuristic. Also consider not reasonable if
14599 the memory reference count is above a threshold (to avoid
14600 explosive compilation time.
14601 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
14602 is_loop_prefetching_profitable to implement the instruction to
14603 prefetch ratio heuristic.
14604 (is_loop_prefetching_profitable): Removed.
14605 (loop_prefetch_arrays): Distribute the cost analysis across the
14606 function to allow early exit of the prefetch analysis.
14607 is_loop_prefetching_profitable is splitted into three functions,
14608 with each one called as early as possible.
14609 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
14610 number of memory references in a loop is considered too many.
14612 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
14614 * reload.c (find_reloads): Don't clear badop if we have a winreg
14615 alternative, but not win, and the class only has fixed regs.
14616 * hard-reg-set.h (class_only_fixed_regs): Declare.
14617 * reginfo.c (class_only_fixed_regs): New array.
14618 (init_reg_sets_1): Initialize it.
14619 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
14620 discourage alternatives using the stack pointer.
14622 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
14624 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
14626 * config/arm/arm.md (cbranchqi4): Fix array size.
14627 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
14628 calculating length.
14630 2010-07-09 Richard Guenther <rguenther@suse.de>
14632 * gimple.c (struct type_fixup_s): New struct and VEC type.
14633 (gimple_register_type_fixups): New static global.
14634 (gimple_queue_type_fixup): New function.
14635 (gimple_types_compatible_p): Queue type fixups instead of
14636 applying them here.
14637 (gimple_register_type): Apply queued fixups for the
14638 canonical type. Empty the type fixup queue.
14640 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
14642 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
14643 * configure: Regenerate.
14644 * config.in: Ditto.
14646 2010-07-09 Jakub Jelinek <jakub@redhat.com>
14647 Denys Vlasenko <dvlasenk@redhat.com>
14648 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14650 PR tree-optimization/28632
14651 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
14652 (extract_range_from_binary_expr): Further optimize
14653 BIT_AND_EXPR and BIT_IOR_EXPR.
14655 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
14657 * tree-if-conv.c (fold_or_predicates): New.
14658 (add_to_predicate_list): Call it.
14660 2010-07-09 Richard Guenther <rguenther@suse.de>
14662 PR middle-end/44890
14663 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
14664 if base is a pointer.
14665 * tree-cfg.c (verify_expr): Update MEM_REF checking.
14667 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14670 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
14671 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
14672 builtin mask for load/store builtins.
14674 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
14676 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
14678 * configure: Regenerate.
14679 * config/i386/i386.c (ix86_print_operand) <case ';'>:
14680 Remove TARGET_MACHO.
14682 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
14684 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
14686 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
14688 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
14690 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
14692 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
14694 * config/picochip/picochip.md (commsTestPort): Emit more
14695 efficient sequence for tstport instruction.
14697 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
14699 * config/i386/i386.c (ix86_veclib_handler): Make static.
14701 2010-07-09 Richard Guenther <rguenther@suse.de>
14703 PR tree-optimization/44852
14704 * tree-ssa-alias.c: Include toplev.h for exact_log2.
14705 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
14707 (indirect_refs_may_alias_p): Likewise.
14708 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
14710 2010-07-09 Richard Guenther <rguenther@suse.de>
14712 PR tree-optimization/44882
14713 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
14715 (vectorizable_load): Likewise.
14717 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
14720 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
14721 All callers changed.
14722 Handle the case when we're called for the epilogue.
14723 (thumb_unexpanded_epilogue): Use it.
14724 (thumb1_expand_epilogue): Likewise.
14726 2010-07-09 Jakub Jelinek <jakub@redhat.com>
14728 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
14729 both ranges are range_int_cst_p with non-negative minimum,
14730 try harder to derive smaller range.
14732 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
14734 * genrecog.c: Include diagnostic-core.h before toplev.h.
14735 * genoutput.c: Likewise.
14736 * genextract.c: Likewise.
14737 * genautomata.c: Likewise.
14738 * genemit.c: Likewise.
14739 * genpeep.c: Likewise.
14740 * genattrtab.c: Likewise.
14741 * genconditions.c: Likewise.
14742 * genpreds.c: Likewise.
14744 2010-07-08 Andi Kleen <ak@linux.intel.com>
14746 * lto-section-in.c (lto_section_name): Add missing comma.
14748 2010-07-08 Anatoly Sokolov <aesok@post.ru>
14750 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
14751 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
14752 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
14753 (ia64_override_options): Rename to...
14754 (ia64_option_override): ... this one. Make static.
14756 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14758 PR middle-end/44843
14759 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
14760 pointed-to type of the offset in a MEM_REF to compute the alignment.
14762 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
14764 * final.c (final_scan_insn): Replace
14765 TARGET_UNWIND_INFO macro check by unwind_emit
14767 * targhooks.c (default_unwind_emit): Removed.
14768 * targhooks.h (default_unwind_emit): Likewise.
14769 * target.def (unwind_emit): Set default value to NULL.
14771 * config/i386/i386-protos.h (ix86_asm_output_function_label):
14773 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
14774 for NULL fntype argument and allow 64-bit targets.
14775 (ix86_asm_output_function_label): New function.
14776 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
14777 (ix86_handle_fndecl_attribute): Likewise.
14778 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
14779 * doc/doc/tm.texi: Regenerated.
14780 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
14781 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
14782 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
14783 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
14784 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
14785 * config/elfos.h: Likewise.
14786 * config/i386/cygming.h: Likewise.
14787 * config/netbsd-aout.h: Likewise.
14788 * config/openbsd.h: Likewise.
14789 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
14790 by ix86_asm_output_function_label function call.
14791 * varasm.c (assemble_start_function): Use
14792 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
14794 2010-07-08 Jan Hubicka <jh@suse.cz>
14796 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
14798 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
14800 * ipa-cp.c (ipcp_estimate_growth): Use it.
14801 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
14804 2010-07-08 Jan Hubicka <jh@suse.cz>
14806 * tree-inline.c (declare_return_variable): Allocate annotation for new
14809 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
14811 PR tree-optimization/44710
14812 * tree-if-conv.c (parse_predicate): New.
14813 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
14814 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
14816 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
14818 * common.opt (ftree-loop-if-convert): New flag.
14819 * doc/invoke.texi (ftree-loop-if-convert): Documented.
14820 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
14821 when flag_tree_loop_if_convert is set.
14823 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
14825 * config/i386/i386.c: Use short syntax for function calls
14826 through function pointers.
14827 * config/i386/i386.md: Ditto.
14829 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14831 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
14833 2010-07-08 Richard Guenther <rguenther@suse.de>
14835 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
14836 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
14838 2010-07-08 Jakub Jelinek <jakub@redhat.com>
14840 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
14841 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
14842 (loc_list_from_tree): Likewise.
14843 (output_loc_operands): Handle outputting DW_OP_const[48]u
14844 with loc->dtprel set.
14845 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
14847 2010-07-08 Jan Hubicka <jh@suse.cz>
14849 * ipa.c: Include pointer-set.h
14850 (cgraph_externally_visible_p): New attribute ALIASED;
14851 when in LTO, hidden symbols are local unless they are aliased.
14852 (function_and_variable_visibility): Compute aliased nodes;
14853 handle LTO and hidden symbol on functions and vars.
14854 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
14855 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
14857 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14859 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
14860 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14861 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14862 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14863 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14864 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
14865 (ix86_gen_probe_stack_range): Likewise.
14866 (override_options): Set them.
14867 (ix86_target_stack_probe): New function.
14868 (ix86_compute_frame_layout): Force use of push instructions to
14869 save registers if stack checking with probes is enabled.
14870 (get_scratch_register_on_entry): New function.
14871 (release_scratch_register_on_entry): Likewise.
14872 (ix86_adjust_stack_and_probe): Likewise.
14873 (output_adjust_stack_and_probe): Likewise.
14874 (ix86_emit_probe_stack_range): Likewise.
14875 (output_probe_stack_range): Likewise.
14876 (ix86_expand_prologue): Emit stack checking code if static built-in
14877 stack checking is enabled.
14878 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
14879 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
14880 (output_adjust_stack_and_probe): Likewise.
14881 (output_probe_stack_range): Likewise.
14882 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
14883 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
14884 TARGET_STACK_PROBE.
14885 (allocate_stack_worker_64): Likewise.
14886 (allocate_stack): Likewise.
14887 (adjust_stack_and_probe): New insn.
14888 (probe_stack_range): Likewise.
14890 2010-07-08 Richard Guenther <rguenther@suse.de>
14892 PR tree-optimization/44831
14893 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
14894 a MEM_REF preserving TBAA info of the original dereference.
14895 Dereference the original pointer if the address is not invariant.
14896 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
14897 at least one invariant address that we are going to dereference.
14899 2010-07-08 Richard Guenther <rguenther@suse.de>
14901 PR tree-optimization/44861
14902 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
14903 information when building MEM_REFs.
14904 (vectorizable_load): Likewise.
14905 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
14907 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14909 * config/sol2-c.c: Do not include diagnostic-core.h.
14911 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14914 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
14915 with respect to current_function_decl. Pass decl of the function.
14916 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
14917 * ipa-inline.c (compute_inline_parameters): Pass decl to
14918 estimated_stack_frame_size.
14920 2010-07-08 Richard Guenther <rguenther@suse.de>
14922 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
14924 (valueize_refs): Call it.
14926 2010-07-08 Richard Guenther <rguenther@suse.de>
14928 PR rtl-optimization/44838
14929 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
14930 SSA form do not use pointer equivalence.
14932 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14934 * dwarf2out.c (AT_linkage_name): Delete.
14935 (add_linkage_attr): New function.
14936 (add_linkage_name): Call it to emit the linkage attribute.
14937 (dwarf2out_finish): Likewise.
14938 (move_linkage_attr): Explicitly accept both attribute variants.
14940 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
14942 * toplev.h: Do not include diagnostic-core.h.
14943 Include diagnostic-core.h in every file that includes toplev.h.
14944 * c-tree.h: Do not include toplev.h.
14945 * pretty-print.h: Update comment.
14946 * Makefile.in: Update dependencies.
14947 * alias.c: Include diagnostic-core.h in every file that includes
14949 * attribs.c: Likewise.
14950 * auto-inc-dec.c: Likewise.
14951 * bb-reorder.c: Likewise.
14952 * bt-load.c: Likewise.
14953 * caller-save.c: Likewise.
14954 * calls.c: Likewise.
14956 * cfganal.c: Likewise.
14957 * cfgbuild.c: Likewise.
14958 * cfgcleanup.c: Likewise.
14959 * cfghooks.c: Likewise.
14960 * cfgloop.c: Likewise.
14961 * combine.c: Likewise.
14962 * config/alpha/alpha.c: Likewise.
14963 * config/arc/arc.c: Likewise.
14964 * config/arm/arm.c: Likewise.
14965 * config/arm/pe.c: Likewise.
14966 * config/avr/avr.c: Likewise.
14967 * config/bfin/bfin.c: Likewise.
14968 * config/cris/cris.c: Likewise.
14969 * config/crx/crx.c: Likewise.
14970 * config/darwin-c.c: Likewise.
14971 * config/darwin.c: Likewise.
14972 * config/fr30/fr30.c: Likewise.
14973 * config/frv/frv.c: Likewise.
14974 * config/h8300/h8300.c: Likewise.
14975 * config/host-darwin.c: Likewise.
14976 * config/i386/i386.c: Likewise.
14977 * config/i386/netware.c: Likewise.
14978 * config/i386/nwld.c: Likewise.
14979 * config/i386/winnt-cxx.c: Likewise.
14980 * config/i386/winnt-stubs.c: Likewise.
14981 * config/i386/winnt.c: Likewise.
14982 * config/ia64/ia64-c.c: Likewise.
14983 * config/ia64/ia64.c: Likewise.
14984 * config/iq2000/iq2000.c: Likewise.
14985 * config/lm32/lm32.c: Likewise.
14986 * config/m32c/m32c-pragma.c: Likewise.
14987 * config/m32c/m32c.c: Likewise.
14988 * config/m32r/m32r.c: Likewise.
14989 * config/m68hc11/m68hc11.c: Likewise.
14990 * config/m68k/m68k.c: Likewise.
14991 * config/mcore/mcore.c: Likewise.
14992 * config/mep/mep-pragma.c: Likewise.
14993 * config/mep/mep.c: Likewise.
14994 * config/mmix/mmix.c: Likewise.
14995 * config/mn10300/mn10300.c: Likewise.
14996 * config/moxie/moxie.c: Likewise.
14997 * config/pa/pa.c: Likewise.
14998 * config/pdp11/pdp11.c: Likewise.
14999 * config/picochip/picochip.c: Likewise.
15000 * config/rs6000/rs6000-c.c: Likewise.
15001 * config/rs6000/rs6000.c: Likewise.
15002 * config/rx/rx.c: Likewise.
15003 * config/s390/s390.c: Likewise.
15004 * config/score/score.c: Likewise.
15005 * config/score/score3.c: Likewise.
15006 * config/score/score7.c: Likewise.
15007 * config/sh/sh.c: Likewise.
15008 * config/sh/symbian-base.c: Likewise.
15009 * config/sh/symbian-c.c: Likewise.
15010 * config/sh/symbian-cxx.c: Likewise.
15011 * config/sol2-c.c: Likewise.
15012 * config/sol2.c: Likewise.
15013 * config/sparc/sparc.c: Likewise.
15014 * config/spu/spu.c: Likewise.
15015 * config/stormy16/stormy16.c: Likewise.
15016 * config/v850/v850-c.c: Likewise.
15017 * config/v850/v850.c: Likewise.
15018 * config/vax/vax.c: Likewise.
15019 * config/vxworks.c: Likewise.
15020 * config/xtensa/xtensa.c: Likewise.
15021 * convert.c: Likewise.
15023 * cselib.c: Likewise.
15024 * dbgcnt.c: Likewise.
15025 * dbxout.c: Likewise.
15027 * dominance.c: Likewise.
15028 * emit-rtl.c: Likewise.
15029 * explow.c: Likewise.
15030 * expmed.c: Likewise.
15031 * fixed-value.c: Likewise.
15032 * fold-const.c: Likewise.
15033 * fwprop.c: Likewise.
15034 * gcse.c: Likewise.
15035 * ggc-common.c: Likewise.
15036 * ggc-page.c: Likewise.
15037 * ggc-zone.c: Likewise.
15038 * gimple-low.c: Likewise.
15039 * gimplify.c: Likewise.
15040 * graph.c: Likewise.
15041 * haifa-sched.c: Likewise.
15042 * ifcvt.c: Likewise.
15043 * implicit-zee.c: Likewise.
15044 * integrate.c: Likewise.
15045 * ira-build.c: Likewise.
15046 * ira-color.c: Likewise.
15047 * ira-conflicts.c: Likewise.
15048 * ira-costs.c: Likewise.
15049 * ira-lives.c: Likewise.
15051 * lists.c: Likewise.
15052 * loop-doloop.c: Likewise.
15053 * loop-iv.c: Likewise.
15054 * lto-opts.c: Likewise.
15055 * lto-symtab.c: Likewise.
15056 * main.c: Likewise.
15057 * modulo-sched.c: Likewise.
15058 * optabs.c: Likewise.
15059 * params.c: Likewise.
15060 * plugin.c: Likewise.
15061 * postreload-gcse.c: Likewise.
15062 * postreload.c: Likewise.
15063 * predict.c: Likewise.
15064 * profile.c: Likewise.
15065 * real.c: Likewise.
15066 * regcprop.c: Likewise.
15067 * reginfo.c: Likewise.
15068 * regmove.c: Likewise.
15069 * reorg.c: Likewise.
15070 * resource.c: Likewise.
15072 * rtlanal.c: Likewise.
15073 * sched-deps.c: Likewise.
15074 * sched-ebb.c: Likewise.
15075 * sched-rgn.c: Likewise.
15076 * sdbout.c: Likewise.
15077 * sel-sched-dump.c: Likewise.
15078 * sel-sched-ir.c: Likewise.
15079 * simplify-rtx.c: Likewise.
15080 * stmt.c: Likewise.
15081 * stor-layout.c: Likewise.
15082 * store-motion.c: Likewise.
15083 * targhooks.c: Likewise.
15084 * tree-cfg.c: Likewise.
15085 * tree-cfgcleanup.c: Likewise.
15086 * tree-dump.c: Likewise.
15087 * tree-eh.c: Likewise.
15088 * tree-inline.c: Likewise.
15089 * tree-nomudflap.c: Likewise.
15090 * tree-object-size.c: Likewise.
15091 * tree-optimize.c: Likewise.
15092 * tree-outof-ssa.c: Likewise.
15093 * tree-phinodes.c: Likewise.
15094 * tree-profile.c: Likewise.
15095 * tree-ssa-ccp.c: Likewise.
15096 * tree-ssa-coalesce.c: Likewise.
15097 * tree-ssa-live.c: Likewise.
15098 * tree-ssa-loop-niter.c: Likewise.
15099 * tree-ssa-loop-prefetch.c: Likewise.
15100 * tree-ssa-loop.c: Likewise.
15101 * tree-ssa-structalias.c: Likewise.
15102 * tree-ssa-uninit.c: Likewise.
15103 * tree-ssa.c: Likewise.
15104 * tree-vect-data-refs.c: Likewise.
15105 * tree-vect-loop-manip.c: Likewise.
15106 * tree-vect-loop.c: Likewise.
15107 * tree-vect-patterns.c: Likewise.
15108 * tree-vect-stmts.c: Likewise.
15109 * tree-vrp.c: Likewise.
15110 * varasm.c: Likewise.
15113 * xcoffout.c: Likewise.
15115 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
15117 * gengtype.c (write_field_root): New function.
15118 (write_root): Use it.
15120 2010-07-07 Wei Guozhi <carrot@google.com>
15122 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
15123 of lowest bits to lshift/compare): Add a missing line.
15125 2010-07-07 Wei Guozhi <carrot@google.com>
15127 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
15128 of lowest bits to lshift/compare): New.
15130 2010-07-07 Tom Tromey <tromey@redhat.com>
15132 * doc/tm.texi: Update.
15133 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
15135 * target.def (want_debug_pub_sections): New hook.
15136 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
15137 * dwarf2out.c (add_pubname_string): Check
15138 targetm.want_debug_pub_sections.
15139 (add_pubname): Likewise.
15140 (add_pubtype): Likewise.
15142 2010-07-07 Jie Zhang <jie@codesourcery.com>
15144 * genautomata.c (output_automata_list_min_issue_delay_code):
15145 Correctly decompress min_issue_delay.
15147 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
15149 PR rtl-optimization/44404
15150 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
15151 possible, use reg_overlap_mentioned_p instead.
15153 2010-07-07 Duncan Sands <baldrick@free.fr>
15155 PR middle-end/41355
15156 * tree.c (build_function_type_skip_args): Copy the original type using
15157 build_distinct_type_copy rather than copy_node.
15159 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
15162 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
15164 (ix86_expand_prologue): Likewise.
15165 (ix86_handle_fndecl_attribute): Likewise.
15166 (ix86_asm_declare_function_name): Likewise.
15167 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15168 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15169 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
15170 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
15171 * doc/extend.texi: Likewise.
15173 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
15176 * config/i386/i386.md (rdrand<mode>): Changed to expand to
15177 retry if the carry flag isn't valid.
15178 (rdrand<mode>_1): New.
15180 2010-07-07 Richard Guenther <rguenther@suse.de>
15182 PR middle-end/44790
15183 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
15184 for expanding the constant offset for MEM_REFs.
15186 2010-07-07 Richard Guenther <rguenther@suse.de>
15188 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
15189 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
15190 * gimple.h (is_gimple_operand): Remove.
15191 * gimple.c (is_gimple_operand): Likewise.
15192 (walk_gimple_op): Fix wi->val_only setting for calls.
15193 * tree-cfg.c (verify_gimple_call): Fix argument validation.
15194 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
15195 invalid gimple calls.
15197 2010-07-06 Jan Hubicka <jh@suse.cz>
15199 * lto-cgraph.c (output_cgraph): Add missing declaration.
15201 2010-07-06 Jan Hubicka <jh@suse.cz>
15203 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
15206 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
15208 * doc/gimple.texi (GIMPLE_DEBUG): Document.
15209 * doc/rtl.texi (Debug Information): New node.
15210 (NOTE_INSN_VAR_LOCATION): Document.
15211 (debug_insn): Likewise.
15212 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
15214 2010-07-07 Jan Hubicka <jh@suse.cz>
15216 With parts by Richard Guenther.
15218 PR middle-end/44813
15219 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
15220 for functions passed by reference.
15221 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
15222 in memory when passed by reference.
15223 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
15225 * ipa-split.c (split_function): Cleanup way return value is passed;
15226 handle SSA DECL_BY_REFERENCE retvals.
15227 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
15228 DECL_BY_REFERENCE is set.
15229 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
15230 find_what_p_points_to): Handle RESULT_DECL.
15231 * tree-inline.c (declare_return_variable): Get new entry_block argument;
15232 when passing by reference ensure that RESULT_DECL is gimple_val.
15233 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
15234 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
15236 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
15238 PR rtl-optimization/44787
15239 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
15240 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
15242 2010-07-06 Jan Hubicka <jh@suse.cz>
15244 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
15245 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
15246 with body can prevail.
15247 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
15248 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
15249 * cgraph.c (cgraph_get_node_or_alias): New function.
15250 * cgraph.h (cgraph_get_node_or_alias): Declare.
15252 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
15254 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
15256 (ix86_expand_prologue): Likewise.
15257 (ix86_handle_fndecl_attribute): Likewise.
15258 (ix86_asm_declare_function_name): New function for
15259 ASM_DECLARE_FUNCTION_NAME.
15260 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
15261 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
15262 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
15263 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
15264 * doc/extend.texi: Adjust documentation about ms_hook_prologue
15267 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
15269 * config/i386/i386.md (immediate_operand): New mode attribute.
15271 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
15272 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
15273 using P mode iterator.
15274 (pro_epilogue_adjust_stack_di_2): Rename from
15275 pro_epilogue_adjust_stack_rex64_2.
15277 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
15279 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
15281 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
15282 through gen_mov_insv_1 function pointer.
15283 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
15284 gen_truncxf<mode>2 through gen_truncxf function pointer.
15285 (remainder<mode>3): Ditto.
15286 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
15287 (allocate_stack): Call gen_allocate_stack_worker_64 or
15288 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
15290 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
15293 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
15295 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
15296 operand constraint instead of <r><i>m.
15298 2010-07-06 Richard Guenther <rguenther@suse.de>
15300 PR middle-end/44828
15301 * convert.c (convert_to_integer): Watch out for overflowing
15304 2010-07-05 Jan Hubicka <jh@suse.cz>
15306 * lto-streamer.c (write_symbol_vec): Rename to ...
15307 (write_symbol) ... this one; write only symbol given and when
15308 present in cache. Sanity check that what is defined is present
15309 in cgraph/varpool with body/finalized decl.
15310 (write_symbols_of_kind): Remove.
15311 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
15312 pairs to produce symtab.
15313 (produce_asm_for_decls): Update call of produce_symtab; don't do so
15314 when doing WPA streaming.
15316 2010-07-05 Jan Hubicka <jh@suse.cz>
15318 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
15319 function is still available to fold into.
15321 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
15323 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
15324 * function.h (struct_function): Change type of local_decls field
15326 (add_local_decl): New function.
15327 (FOR_EACH_LOCAL_DECL): New macro.
15328 * cfgexpand.c (init_vars_expansion): Adjust for new type of
15330 (estimated_stack_frame_size): Likewise.
15331 (expand_used_vars): Likewise.
15332 * cgraphbuild.c (build_cgraph_edges): Likewise.
15333 * function.c (instantiate_decls_1): Likewise.
15334 * ipa-struct-reorg.c (build_data_structure): Likewise.
15335 * ipa-type-escape.c (analyze_function): Likewise.
15336 * lto-streamer-in.c (input_function): Likewise.
15337 * lto-streamer-out.c (output_function): Likewise.
15338 * tree-ssa-live.c (remove_unused_locals): Likewise.
15339 * tree.c (free_lang_data_in_decl): Likewise.
15340 (find_decls_types_in_node): Likewise.
15341 * omp-low.c (remove_exit_barrier): Likewise.
15342 (expand_omp_taskreg): Likewise.
15343 (list2chain): Rename to...
15344 (vec2chain): ...this. Adjust.
15345 * cgraphunit.c (assemble_thunk): Call add_local_decl.
15346 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
15347 * gimple-low.c (record_vars_into): Likewise.
15348 * tree-inline.c (remap_decls): Likewise.
15349 (declare_return_variable): Likewise.
15350 (declare_inline_vars): Likewise.
15351 (copy_forbidden): Adjust for new type of cfun->local_decls.
15352 (add_local_variables): New function.
15353 (expand_call_inline): Call it.
15354 (tree_function_versioning): Likewise.
15356 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
15358 AVX Programming Reference (June, 2010)
15359 * config/i386/cpuid.h (bit_F16C): New.
15360 (bit_RDRND): Likewise.
15361 (bit_FSGSBASE): Likewise.
15363 * config/i386/i386-builtin-types.def: Add
15364 "DEF_FUNCTION_TYPE (UINT16)", function types for
15365 float16 <-> float conversions and
15366 "DEF_FUNCTION_TYPE (VOID, UINT64)".
15368 * config/i386/i386-c.c (ix86_target_macros_internal): Support
15369 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
15370 OPTION_MASK_ISA_F16C.
15372 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
15373 (OPTION_MASK_ISA_RDRND_SET): Likewise.
15374 (OPTION_MASK_ISA_F16C_SET): Likewise.
15375 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
15376 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
15377 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
15378 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
15379 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
15380 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
15381 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
15382 (override_options): Handle them.
15383 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
15384 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
15385 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
15386 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
15387 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
15388 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
15389 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
15390 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
15391 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
15392 (bdesc_args): Likewise.
15393 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
15394 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
15395 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
15396 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
15397 Handle non-memory store.
15399 * config/i386/i386.h (TARGET_FSGSBASE): New.
15400 (TARGET_RDRND): Likewise.
15401 (TARGET_F12C): Likewise.
15403 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
15404 (UNSPEC_VCVTPS2PH): Likewise.
15405 (UNSPECV_RDFSBASE): Likewise.
15406 (UNSPECV_RDGSBASE): Likewise.
15407 (UNSPECV_WRFSBASE): Likewise.
15408 (UNSPECV_WRGSBASE): Likewise.
15409 (UNSPECV_RDRAND): Likewise.
15410 (rdfsbase<mode>): Likewise.
15411 (rdgsbase<mode>): Likewise.
15412 (wrfsbase<mode>): Likewise.
15413 (wrgsbase<mode>): Likewise.
15414 (rdrand<mode>): Likewise.
15416 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
15418 * config/i386/immintrin.h (_rdrand_u16): New.
15419 (_rdrand_u32): Likewise.
15420 (_readfsbase_u32): Likewise.
15421 (_readfsbase_u64): Likewise.
15422 (_readgsbase_u32): Likewise.
15423 (_readgsbase_u64): Likewise.
15424 (_writefsbase_u32): Likewise.
15425 (_writefsbase_u64): Likewise.
15426 (_writegsbase_u32): Likewise.
15427 (_writegsbase_u64): Likewise.
15428 (_rdrand_u64): Likewise.
15429 (_cvtsh_ss): Likewise.
15430 (_mm_cvtph_ps): Likewise.
15431 (_mm256_cvtph_ps): Likewise.
15432 (_cvtss_sh): Likewise.
15433 (_mm_cvtps_ph): Likewise.
15434 (_mm256_cvtps_ph): Likewise.
15436 * config/i386/sse.md (vcvtph2ps): New.
15437 (*vcvtph2ps_load): Likewise.
15438 (vcvtph2ps256): Likewise.
15439 (vcvtps2ph): Likewise.
15440 (*vcvtps2ph): Likewise.
15441 (*vcvtps2ph_store): Likewise.
15442 (vcvtps2ph256): Likewise.
15444 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
15446 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
15448 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
15451 * genenums.c (main): Output include of insn-constants.h
15452 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
15454 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
15456 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
15457 (override_options): Initialize it.
15458 (ix86_expand_prologue): Use it.
15460 2010-07-05 Jakub Jelinek <jakub@redhat.com>
15462 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
15464 2010-07-05 Anatoly Sokolov <aesok@post.ru>
15466 * double-int.h (fit_double_type): Remove declaration.
15467 * double-int.c (fit_double_type): Remove function.
15468 * tree.h (int_fits_type_p): Adjust prototype.
15469 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
15470 instead of fit_double_type.
15471 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
15472 instead of fit_double_type and build_int_cst_wide.
15473 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
15474 instead of fit_double_type and build_int_cst_wide.
15475 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
15476 of fit_double_type.
15478 2010-07-05 Jan Hubicka <jh@suse.cz>
15480 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
15481 in_other_partition.
15482 * lto-cgraph.c (referenced_from_other_partition_p,
15483 reachable_from_other_partition_p): Use in_other_partition flags.
15484 (output_node, output_varpool_node): COMDAT nodes always have private
15485 copies and thus are never used from other partition.
15487 2010-07-05 Anatoly Sokolov <aesok@post.ru>
15489 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
15490 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
15491 * config/ia64/ia64.c Include reload.h.
15492 (ia64_memory_move_cost): New function.
15493 (TARGET_MEMORY_MOVE_COST): Define.
15494 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
15497 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
15499 PR middle-end/42505
15500 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
15501 comments about cost model.
15502 (try_add_cand_for): Add second strategy for choosing initial set
15503 based on original IVs, controlled by ORIGINALP argument.
15504 (get_initial_solution): Add ORIGINALP argument.
15505 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
15506 (find_optimal_iv_set): Try two different strategies for choosing
15507 the IV set, and return the one with lower cost.
15509 2010-07-05 Richard Guenther <rguenther@suse.de>
15511 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
15513 2010-07-05 Richard Guenther <rguenther@suse.de>
15515 * tree.c (reference_alias_ptr_type): New function.
15516 * tree.h (reference_alias_ptr_type): Declare.
15517 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
15518 allow non-TARGET_MEM_REF new refs.
15519 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
15520 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
15521 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
15522 (create_mem_ref): Get alias pointer type. Adjust calls to
15523 create_mem_ref_raw.
15524 (maybe_fold_tmr): Likewise.
15525 * tree-flow.h (create_mem_ref): Adjust prototype.
15527 2010-07-05 Jakub Jelinek <jakub@redhat.com>
15530 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
15531 *from_p is VAR_DECL.
15533 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
15535 * tree.h (build_call_list): Remove.
15536 * tree.c (build_call_list): Remove.
15538 2010-07-05 Richard Guenther <rguenther@suse.de>
15540 * double-int.h (double_int_sub): Declare.
15541 * double-int.c (double_int_sub): New function.
15542 * dwarf2out.c (field_byte_offset): Use it.
15543 * fixed-value.c (do_fixed_add): Likewise.
15544 (do_fixed_multiply): Likewise.
15545 (do_fixed_divide): Likewise.
15546 * tree-predcom.c (add_ref_to_chain): Likewise.
15547 (determine_roots_comp): Likewise.
15548 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
15550 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
15552 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
15555 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
15557 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
15558 * arm-modes.def (CC_NOTB): Don't define.
15559 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
15560 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
15561 (LTUGEU): New code_iterator.
15562 (cnb, optab): New corresponding code_attrs.
15563 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
15564 to canonical form. Operands 1 and 2 are commutative. Parametrize
15566 (addsi3_carryin_shift_<optab>): Likewise.
15567 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
15568 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
15569 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
15570 (subsi3_compare): Renamed from subsi3_compare0_c.
15571 Change CC_NOTB to CC.
15572 (arm_subsi3_insn): Allow constants for operand 0.
15573 (compare_scc peephole for eq case): New.
15574 (compare_scc splitters): Change CC_NOTB to CC.
15576 2010-07-05 Richard Guenther <rguenther@suse.de>
15578 * tree-ssa-loop-im.c (for_each_index): Do not handle
15579 ALIGN_INDIRECT_REF.
15580 (gen_lsm_tmp_name): Likewise.
15581 * tree-dump.c (dequeue_and_dump): Likewise.
15582 * tree-pretty-print.c (dump_generic_node): Likewise.
15583 (op_code_prio): Likewise.
15584 (op_symbol_code): Likewise.
15585 * tree.c (staticp): Likewise.
15586 (build1_stat): Likewise.
15587 * tree.h (INDIRECT_REF_P): Likewise.
15588 * fold-const.c (maybe_lvalue_p): Likewise.
15589 (operand_equal_p): Likewise.
15590 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15591 (ao_ref_init_from_vn_reference): Likewise.
15592 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
15593 (find_interesting_uses_address): Likewise.
15594 * dwarf2out.c (loc_list_from_tree): Likewise.
15595 * gimplify.c (gimplify_expr): Likewise.
15596 * tree-eh.c (tree_could_trap_p): Likewise.
15597 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
15598 * cfgexpand.c (expand_debug_expr): Likewise.
15599 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
15600 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
15601 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
15602 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
15603 * tree-ssa-operands.c (get_expr_operands): Likewise.
15604 * expr.c (safe_from_p): Likewise.
15605 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
15606 * tree-vect-data-refs.c (vect_setup_realignment): Build
15607 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
15608 * tree-vect-stmts.c (vectorizable_load): Likewise.
15609 * tree.def (ALIGN_INDIRECT_REF): Remove.
15611 2010-07-05 Richard Guenther <rguenther@suse.de>
15613 PR tree-optimization/44784
15614 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
15615 for inserted stmts.
15616 (find_or_generate_expression): Fix SCCVN insertion check.
15618 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
15620 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
15621 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
15622 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
15625 2010-07-05 Ira Rosen <irar@il.ibm.com>
15627 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
15628 statements that are not vectorized.
15629 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
15632 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
15635 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
15637 2010-07-05 Richard Guenther <rguenther@suse.de>
15639 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
15640 RESULT_DECLs properly.
15642 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
15644 PR rtl-optimization/44695
15645 * config/i386/i386.md (extract_code): Removed.
15646 (<u>divmodqi4): Likewise.
15648 (udivmodqi4): Likewise.
15649 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
15650 (udivmodhiqi3): Likewise.
15652 2010-07-04 Jan Hubicka <jh@suse.cz>
15654 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
15656 2010-07-04 Jan Hubicka <jh@suse.cz>
15658 * cgraphunit.c (init_cgraph): Only initialize dump file if it
15659 is not already initialized.
15661 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
15663 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
15664 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
15665 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
15666 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
15667 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
15668 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
15669 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
15670 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
15671 (sync_new_nand_optab): Redefine as macros.
15672 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
15674 (direct_optab_index): New enum.
15675 (direct_optab_d): New structure.
15676 (direct_optab): New typedef.
15677 (direct_optab_table): Declare.
15678 (direct_optab_handler, set_direct_optab_handler): New functions.
15679 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
15680 (sync_lock_release_optab): New macros.
15681 * optabs.c (direct_optab_table): New variable.
15682 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
15683 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
15684 cmpstr_optab and cmpstrn_optab.
15685 (emit_conditional_move): Likewise for movcc_optab.
15686 (can_conditionally_move_p): Likewise for movcc_gen_code.
15687 (init_insn_codes): Clear direct_optab_table.
15688 (init_optabs): Don't initialize the new "direct optabs" here.
15689 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
15691 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
15692 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
15693 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
15694 (expand_sync_operation): Likewise other sync_*_optabs.
15695 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
15696 to sync_compare_and_swap_optab.
15697 (expand_sync_lock_test_and_set): Use direct_optab_handler for
15698 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
15699 to the names of both.
15700 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
15701 cmpstr_optab and cmpstrn_optab.
15702 (expand_builtin_lock_release): Likewise sync_lock_release.
15703 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
15704 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
15705 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
15706 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
15707 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
15708 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
15709 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
15710 (sync_lock_test_and_set, sync_lock_release): Delete.
15711 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
15712 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
15713 * genopinit.c (optabs): Use set_direct_optab_handler for the new
15715 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
15716 the "optab" local variable. Use direct_optab_handler for optab and
15717 sync_compare_and_swap_optab.
15718 * reload1.c (reload_in_optab, reload_out_optab): Delete.
15719 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
15720 reload_in_optab and reload_out_optab.
15721 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
15722 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
15723 * config/pa/pa.c (pa_secondary_reload): Likewise.
15724 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
15725 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
15726 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
15727 (VMSupportsCS8_builtin): Likewise.
15729 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
15731 * optabs.h (optab_handlers): Change type of insn_code to int.
15732 (optab_handler, set_optab_handler, convert_optab_handler)
15733 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
15735 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
15736 (init_insn_codes): Zero both the above arrays.
15737 (init_optabs): Never call init_insn_codes first time around.
15739 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
15741 * optabs.h (optab_handler, convert_optab_handler): Turn into
15742 inline functions that return an insn code.
15743 (set_optab_handler, set_convert_optab_handler): New functions.
15744 * builtins.c: Replace optab_handler(X)->insn_code with
15745 optab_handler or set_optab_handler thoughout. Likewise
15746 convert_optab_handler(X)->insn_code with convert_optab_handler
15747 and set_convert_optab_handler.
15748 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
15749 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
15750 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
15751 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15752 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
15753 config/spu/spu.c: Likewise.
15755 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
15758 * config.gcc (sh*-*-*): Use regular expressions instead of
15759 the 'i' modifier for sed substitutions.
15761 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
15763 * gimple.c (gimple_body): Comments added.
15765 2010-07-04 Richard Guenther <rguenther@suse.de>
15767 PR middle-end/44809
15768 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
15769 of an INDIRECT_REF.
15771 2010-07-04 Richard Guenther <rguenther@suse.de>
15773 PR tree-optimization/44479
15774 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
15775 extra SSA name copy statements which preserves points-to
15777 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
15778 Copy points-to information for all pointers. Properly handle
15780 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
15782 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
15785 2010-07-04 Richard Guenther <rguenther@suse.de>
15787 PR middle-end/44785
15788 * tree-inline.c (initialize_inlined_parameters): Do not
15789 re-use pointer-map slot over remap_type call.
15791 2010-07-04 Richard Guenther <rguenther@suse.de>
15793 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
15795 2010-07-04 Richard Guenther <rguenther@suse.de>
15797 PR tree-optimization/44656
15798 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
15799 again after value-replacing in the defintions lhs.
15801 2010-07-04 Ira Rosen <irar@il.ibm.com>
15802 Revital Eres <eres@il.ibm.com>
15804 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
15805 Document new arguments.
15806 * doc/tm.texi: Regenerate.
15807 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
15808 Handle unaligned store.
15809 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
15810 * target.def (builtin_vectorization_cost): Add new arguments.
15811 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
15812 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
15813 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
15814 (vect_vfa_segment_size): Fix indentation.
15815 * tree-vectorizer.h (struct _vect_peel_info): New.
15816 (struct _vect_peel_extended_info): New.
15817 (struct _loop_vec_info): Add new field for peeling hash table and a
15818 macro for its access.
15819 (VECT_MAX_COST): Define.
15820 (vect_get_load_cost): Declare.
15821 (vect_get_store_cost, vect_get_known_peeling_cost,
15822 vect_get_single_scalar_iteraion_cost): Likewise.
15823 (vect_supportable_dr_alignment): Add new argument.
15824 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
15826 (destroy_loop_vec_info): Free peeling hash table.
15827 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
15828 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
15829 vect_analyze_slp. Fix indentation.
15830 (vect_get_single_scalar_iteraion_cost): New function.
15831 (vect_get_known_peeling_cost): Likewise.
15832 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
15833 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
15834 statement. Move outside cost calculation inside unknown peeling case.
15835 Call vect_get_known_peeling_cost for known amount of peeling.
15836 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
15837 reference to the print message of forced alignment.
15838 (vect_verify_datarefs_alignment): Update call to
15839 vect_supportable_dr_alignment.
15840 (vect_get_data_access_cost): New function.
15841 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
15842 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
15843 vect_peeling_hash_choose_best_peeling): Likewise.
15844 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
15845 to store all the accesses in the loop and find best possible access to
15846 align using peeling for known alignment case. For unknown alignment
15847 check if stores are preferred or if peeling is worthy.
15848 (vect_find_same_alignment_drs): Analyze pairs of loads too.
15849 (vect_supportable_dr_alignment): Add new argument and check aligned
15850 accesses according to it.
15851 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
15852 (cost_for_stmt): Call vect_get_stmt_cost.
15853 (vect_model_simple_cost): Likewise.
15854 (vect_model_store_cost): Call vect_get_stmt_cost. Call
15855 vect_get_store_cost to calculate the cost of the statement.
15856 (vect_get_store_cost): New function.
15857 (vect_model_load_cost): Call vect_get_stmt_cost. Call
15858 vect_get_load_cost to calculate the cost of the statement.
15859 (vect_get_load_cost): New function.
15860 (vectorizable_store): Update call to vect_supportable_dr_alignment.
15861 (vectorizable_load): Likewise.
15862 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
15863 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
15864 arguments. Handle unaligned store.
15865 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
15866 (rs6000_builtin_support_vector_misalignment): Return true for word and
15867 double word alignments for VSX.
15868 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
15869 vect_supportable_dr_alignment and builtin_vectorization_cost.
15871 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15874 * config/pa/predicates.md (prefetch_cc_operand): Remove.
15875 (prefetch_nocc_operand): Likewise.
15876 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
15877 (prefetch_20): New insn.
15878 (prefetch_cc): Remove.
15879 (prefetch_nocc): Likewise.
15881 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
15883 * expr.c (vector_mode_valid_p): Move to c-common.c.
15884 * expr.h (vector_mode_valid_p): Do not declare here.
15885 * system.h: Poison GCC_EXPR_H in front-ends.
15886 * Makefile.in: Update dependencies.
15888 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15891 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
15893 2010-07-03 Jan Hubicka <jh@suse.cz>
15895 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
15896 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
15897 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
15898 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
15901 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
15903 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
15904 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
15905 TV_IPA_LTO_DECL_OUT): New.
15906 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
15908 2010-07-03 Jan Hubicka <jh@suse.cz>
15910 * ipa-inline.c (update_edge_key): Break out from ...
15911 update_callers_keys): ... here;
15912 (update_callee_keys): Update only the edges from caller to callee.
15913 (update_all_calle_keys): Do what update_calle_keys did.
15914 (decide_inlining_of_small_functions): Avoid recomputing of all
15915 callees when badness increase.
15917 2010-07-03 Jie Zhang <jie@codesourcery.com>
15919 * config/arm/arm.c (arm_attr_length_move_neon): New.
15920 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
15921 * config/arm/neon.md (define_mode_attr V_slen): Remove.
15922 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
15923 to compute length attribute.
15925 2010-07-03 Jie Zhang <jie@codesourcery.com>
15927 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
15928 as predicate for operand 1 and remove its constraint.
15929 * config/arm/predicates.md (vfp_register_operand): New.
15930 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
15931 (*push_fp_multi): Likewise.
15933 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
15935 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
15937 2010-07-03 Jan Hubicka <jh@suse.cz>
15939 * config/i386/i386.c (override_options): Revert accidental commit.
15941 2010-07-02 Le-Chun Wu <lcwu@google.com>
15944 * doc/invoke.texi: Update documentation of -Wshadow.
15946 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
15947 Julian Brown <julian@codesourcery.com>
15948 Sandra Loosemore <sandra@codesourcery.com>
15950 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
15951 comparisons. Adjust to take both operands.
15952 (arm_select_cc_mode): Handle DImode comparisons.
15953 (arm_gen_compare_reg): Generate a scratch register for DImode
15954 comparisons which require one. Use xor for Thumb equality checks.
15955 (arm_const_double_by_immediates): New.
15956 (arm_print_operand): Allow 'Q' and 'R' for constants.
15957 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
15958 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
15959 arm_canonicalize_comparison.
15960 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
15961 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
15963 (arm_const_double_by_immediates): Declare.
15964 * config/arm/constraints.md (Di): New constraint.
15965 * config/arm/predicates.md (arm_immediate_di_operand)
15966 (arm_di_operand, cmpdi_operand): New.
15967 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
15968 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
15969 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
15970 (cstoredi4): Handle non-Cirrus also.
15972 2010-07-02 Julian Brown <julian@codesourcery.com>
15973 Sandra Loosemore <sandra@codesourcery.com>
15976 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
15977 (smax<mode>3): Disable for NEON float modes when
15978 flag_unsafe_math_optimizations is false.
15979 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
15981 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
15982 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
15983 for NEON float modes when flag_unsafe_math_optimizations is false.
15984 (quad_halves_<code>v4sf): Only enable if
15985 flag_unsafe_math_optimizations is true.
15986 * doc/invoke.texi (ARM Options): Add note about floating point
15987 vectorization requiring -funsafe-math-optimizations.
15989 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
15990 Julian Brown <julian@codesourcery.com>
15992 * config/arm/neon.md (UNSPEC_VABA): Delete.
15993 (UNSPEC_VABAL): Delete.
15994 (UNSPEC_VABS): Delete.
15995 (UNSPEC_VMUL_N): Delete.
15996 (adddi3_neon): New.
15997 (subdi3_neon): New.
15998 (mul<mode>3add<mode>_neon): Make the pattern named.
15999 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16000 (neon_vadd<mode>): Replace with define_expand, and move the remaining
16002 (neon_vadd<mode>_unspec): ...to this.
16003 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
16004 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
16005 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
16006 (neon_vaba<mode>): Rewrite in terms of vabd.
16007 (neon_vabal<mode>): Rewrite in terms of vabdl.
16008 (neon_vabs<mode>): Rewrite without unspec.
16009 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
16010 (*arm_subdi3): Likewise.
16011 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
16012 No_op attribute to disable assembly output checks.
16013 * config/arm/arm_neon.h: Regenerated.
16014 * doc/arm-neon-intrinsics.texi: Regenerated.
16016 2010-07-02 Jan Hubicka <jh@suse.cz>
16018 * ipa-split.c (split_function): For aggregate values, set the return
16019 slot optimization bit. When passing DECL_BY_REFERENCE, produce
16020 *<retval> = fncall.part ().
16021 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
16023 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16025 * config/arm/neon.md (UNSPEC_VAND): Delete.
16026 (UNSPEC_VBIC): Delete.
16027 (UNSPEC_VCLZ): Delete.
16028 (UNSPEC_VCNT): Delete.
16029 (UNSPEC_VEOR): Delete.
16030 (UNSPEC_VORN): Delete.
16031 (UNSPEC_VORR): Delete.
16032 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
16033 core registers too.
16034 (anddi3_neon): Likewise.
16035 (orndi3_neon): Likewise.
16036 (bicdi3_neon): Likewise.
16037 (xordi3_neon): Likewise.
16038 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
16039 rid of unspec and handle unused operand.
16040 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
16041 * config/arm/predicates.md (imm_for_neon_logic_operand):
16042 Require TARGET_NEON.
16043 (imm_for_neon_inv_logic_operand): Likewise.
16044 * config/arm/arm.md (define_split for logical_binary_operator):
16045 Disable for NEON registers.
16046 (anddi3): Add new define_expand, and rename the insn. Disable
16047 this insn for NEON, where anddi3_neon now applies.
16048 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
16049 (iordi3): As for anddi3.
16050 (xordi3): Likewise.
16051 * config/arm/neon.ml (Vand): Split DImode variants and mark them
16052 as No_op to disable testing for exact instruction match.
16057 * config/arm/arm_neon.h: Regenerated.
16058 * doc/arm-neon-intrinsics.texi: Regenerated.
16060 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
16062 * expr.h (emit_stack_probe): Declare.
16063 * explow.c (emit_stack_probe): Make global.
16064 (anti_adjust_stack_and_probe): Fix comments.
16065 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
16066 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16067 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16068 * config/sparc/sparc.c: Include except.h.
16069 (sparc_emit_probe_stack_range): New function.
16070 (output_probe_stack_range): Likewise.
16071 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
16072 built-in stack checking is enabled.
16073 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
16074 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
16075 (probe_stack_range): New insn.
16077 2010-07-02 Richard Guenther <rguenther@suse.de>
16080 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
16081 for argument alignment.
16083 2010-07-02 Jan Hubicka <jh@suse.cz>
16085 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
16086 walk backwards from entry_bb to check only those basic block of header
16087 that might lead to execution of split part.
16088 (consider_split) ... here.
16089 (find_return_bb): Allow assignment in return BB.
16090 (find_retval): New.
16091 (split_function): Fix name of cloned function; take care of updating
16092 return value in return_bb containing move.
16094 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
16097 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
16098 used variable insn.
16100 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
16102 * implicit-zee.c (combine_reaching_defs): Fix long lines.
16103 (is_set_with_extension_DI): Delete.
16104 (struct zero_extend_info): New structure.
16105 (add_removable_zero_extend): New function.
16106 (find_removable_zero_extends): Use note_stores to find SETs.
16107 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
16109 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
16111 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
16112 is_miss_rate_acceptable. Pull total_positions computation
16113 out of the loops. Early return if miss_positions exceeds
16114 the acceptable threshold.
16115 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
16116 is_miss_rate_acceptable after renaming of compute_miss_rate.
16118 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
16120 PR middle-end/44576
16121 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
16122 of 1000) for miss rate if the address diference is greater than or
16123 equal to the cache line size (the two reference will never hit the
16126 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
16129 * config/arm/arm-modes.def (CC_NOTB): New mode.
16130 * config/arm/arm.c (get_arm_condition_code): Handle it.
16131 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
16132 * config/arm/arm.md (subsi3_compare0_c): New pattern.
16133 (compare_scc): Now a define_and_split. Add a number of extra
16134 splitters before it.
16137 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
16139 (arm_rtx_costs_1): Likewise.
16140 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
16141 * config/arm/arm.md (is_arch6): New attribute.
16142 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
16143 extendqisi2): Tighten the code somewhat, avoiding invalid
16144 RTL to occur in the expander patterns.
16145 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
16146 (thumb1_zero_extendhisi2_v6): Delete.
16147 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
16148 (thumb1_extendhisi2_v6): Delete.
16149 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
16150 (thumb1_extendqisi2_v6): Delete.
16151 (zero_extendhisi2 for register input splitter): New.
16152 (zero_extendqisi2 for register input splitter): New.
16153 (thumb1_extendhisi2 for register input splitter): New.
16154 (extendhisi2 for register input splitter): New.
16155 (extendqisi2 for register input splitter): New.
16156 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
16157 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
16158 and add support for a register alternative requiring a split.
16159 (thumb1_zero_extendqisi2): Likewise.
16160 (arm_zero_extendqisi2): Likewise.
16161 (arm_extendhisi2): Likewise.
16162 (arm_extendqisi2): Likewise.
16164 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16166 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
16167 instead of an unspec.
16168 (neon_expand_vector_init): Likewise.
16169 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
16170 (UNSPEC_VDUP_LANE): Delete.
16171 (UNSPEC VDUP_N): Delete.
16172 (UNSPEC_VGET_HIGH): Delete.
16173 (UNSPEC_VGET_LANE): Delete.
16174 (UNSPEC_VGET_LOW): Delete.
16175 (UNSPEC_VMVN): Delete.
16176 (UNSPEC_VSET_LANE): Delete.
16177 (V_double_vector_mode): New.
16178 (vec_set<mode>_internal): Make code emitted match that for the
16179 corresponding intrinsics.
16180 (vec_setv2di_internal): Likewise.
16181 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
16182 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
16183 (neon_vset_lane<mode>): Combine double and quad patterns and
16184 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
16185 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
16186 (neon_vdup_n<mode>): Rewrite RTL without unspec.
16187 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
16188 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
16189 with neon_vdup_lanev2di, adjusting the pattern from the latter
16190 to be predicable for consistency.
16191 (neon_vdup_lane<mode>_internal): New.
16192 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
16193 to avoid using an unspec.
16194 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
16195 (neon_vdup_lanev2di): Turn into a define_expand.
16196 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
16197 (neon_vget_high<mode>): Replace with....
16198 (neon_vget_highv16qi): New pattern using canonical RTL.
16199 (neon_vget_highv8hi): Likewise.
16200 (neon_vget_highv4si): Likewise.
16201 (neon_vget_highv4sf): Likewise.
16202 (neon_vget_highv2di): Likewise.
16203 (neon_vget_low<mode>): Replace with....
16204 (neon_vget_lowv16qi): New pattern using canonical RTL.
16205 (neon_vget_lowv8hi): Likewise.
16206 (neon_vget_lowv4si): Likewise.
16207 (neon_vget_lowv4sf): Likewise.
16208 (neon_vget_lowv2di): Likewise.
16210 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
16211 test for this emitting vmov.
16212 (Vset_lane): Likewise.
16213 (Vdup_n): Likewise.
16214 (Vmov_n): Likewise.
16216 * doc/arm-neon-intrinsics.texi: Regenerated.
16218 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16220 * config/arm/neon.md (vec_extractv2di): Correct error in register
16221 numbering to reconcile with neon_vget_lanev2di.
16223 2010-07-02 Richard Guenther <rguenther@suse.de>
16225 * tree-ssa-structalias.c (pt_solution_set_var): New function.
16226 * tree-ssa-alias.h (pt_solution_set_var): Declare.
16227 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
16228 points-to information.
16230 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
16232 * config/s390/s390.c (override_options): Adopt prefetching
16233 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
16235 2010-07-02 Jan Hubicka <jh@suse.cz>
16237 * df-problems.c (df_kill_notes): Do not collect dead notes.
16238 (df_set_note): Just call add_reg_note.
16239 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
16240 df_create_unused_note): Do not deal with lists of old notes.
16241 (df_note_bb_compute): Likewise.
16243 2010-07-02 Richard Guenther <rguenther@suse.de>
16245 * tree-ssa-structalias.c (find_func_aliases): Handle
16246 pointer alignment via BIT_AND_EXPR.
16247 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
16249 2010-07-02 Richard Guenther <rguenther@suse.de>
16251 * tree-data-ref.c (initialize_data_dependence_relation): Handle
16252 mismatching number of dimensions properly.
16254 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16257 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
16258 (lo_sum (high ...) ...) patterns generated by earlier passes.
16260 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16262 * doc/install.texi (Prerequisites): Document Perl requirement on
16264 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
16266 2010-07-02 Richard Guenther <rguenther@suse.de>
16268 PR middle-end/44777
16269 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
16271 2010-07-02 Jan Hubicka <jh@suse.cz>
16273 PR middle-end/44706
16274 * predict.c (predict_paths_for_bb): Handle case when control dependence
16275 BB has only abnormal edges.
16277 2010-07-02 Richard Guenther <rguenther@suse.de>
16279 PR tree-optimization/44748
16280 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
16281 the embedded conversion in MEM_REFs.
16283 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
16285 * reload.c: Include toplev.h.
16286 * recog.c: Likewise.
16287 * Makefile.in: Adjust dependencies.
16289 2010-07-01 Jakub Jelinek <jakub@redhat.com>
16292 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
16293 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
16295 2010-07-01 Richard Guenther <rguenther@suse.de>
16297 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
16300 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
16303 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
16304 Fix argument types.
16306 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
16309 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
16310 Make sure operand 0 dies.
16312 2010-07-01 Richard Guenther <rguenther@suse.de>
16314 PR middle-end/42834
16315 PR middle-end/44468
16316 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
16317 * doc/generic.texi (References to storage): Document MEM_REF.
16318 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
16319 (print_call_name): Likewise.
16320 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
16321 (build_simple_mem_ref_loc): New function.
16322 (mem_ref_offset): Likewise.
16323 * tree.h (build_simple_mem_ref_loc): Declare.
16324 (build_simple_mem_ref): Define.
16325 (mem_ref_offset): Declare.
16326 * fold-const.c: Include tree-flow.h.
16327 (operand_equal_p): Handle MEM_REF.
16328 (build_fold_addr_expr_with_type_loc): Likewise.
16329 (fold_comparison): Likewise.
16330 (fold_unary_loc): Fold
16331 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
16332 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
16333 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
16334 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
16335 (ptr_deref_may_alias_ref_p_1): Likewise.
16336 (ao_ref_base_alias_set): Properly differentiate base object for
16338 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
16339 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
16340 (indirect_refs_may_alias_p): Likewise.
16341 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
16343 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
16344 (call_may_clobber_ref_p_1): Likewise.
16345 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
16346 * expr.c (expand_assignment): Handle MEM_REF.
16347 (store_expr): Handle MEM_REFs from STRING_CSTs.
16348 (store_field): If expanding a MEM_REF of a non-addressable
16349 decl use bitfield operations.
16350 (get_inner_reference): Handle MEM_REF.
16351 (expand_expr_addr_expr_1): Likewise.
16352 (expand_expr_real_1): Likewise.
16353 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
16354 * alias.c (ao_ref_from_mem): Handle MEM_REF.
16355 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
16356 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
16357 (dr_analyze_indices): Likewise.
16358 (dr_analyze_alias): Likewise.
16359 (object_address_invariant_in_loop_p): Likewise.
16360 * gimplify.c (mark_addressable): Handle MEM_REF.
16361 (gimplify_cond_expr): Build MEM_REFs.
16362 (gimplify_modify_expr_to_memcpy): Likewise.
16363 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
16364 (gimple_fold_indirect_ref): Adjust.
16365 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
16366 * tree.def (MEM_REF): New tree code.
16367 * tree-dfa.c: Include toplev.h.
16368 (get_ref_base_and_extent): Handle MEM_REF.
16369 (get_addr_base_and_unit_offset): New function.
16370 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
16371 * gimple-fold.c (may_propagate_address_into_dereference): Handle
16373 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
16374 accesses if the array has just one dimension. Remove always true
16375 parameter. Do not require type compatibility here.
16376 (maybe_fold_offset_to_component_ref): Remove.
16377 (maybe_fold_stmt_indirect): Remove.
16378 (maybe_fold_reference): Remove INDIRECT_REF handling.
16379 Fold back to non-MEM_REF.
16380 (maybe_fold_offset_to_address): Simplify. Deal with type
16382 (maybe_fold_reference): Likewise.
16383 (maybe_fold_stmt_addition): Likewise. Also handle
16384 &ARRAY + I in addition to &ARRAY[0] + I.
16385 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
16386 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
16387 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
16388 * tree-ssa.c (useless_type_conversion_p): Make most pointer
16389 conversions useless.
16390 (warn_uninitialized_var): Handle MEM_REF.
16391 (maybe_rewrite_mem_ref_base): New function.
16392 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
16394 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
16395 INDIRECT_REF handling.
16396 (copy_tree_body_r): Handle MEM_REF.
16397 * gimple.c (is_gimple_addressable): Adjust.
16398 (is_gimple_address): Likewise.
16399 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
16400 invariant base are invariant.
16401 (is_gimple_min_lval): Adjust.
16402 (is_gimple_mem_ref_addr): New function.
16403 (get_base_address): Handle MEM_REF.
16404 (count_ptr_derefs): Likewise.
16405 (get_base_loadstore): Likewise.
16406 * gimple.h (is_gimple_mem_ref_addr): Declare.
16407 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
16408 * tree-cfg.c (verify_address): New function, split out from ...
16409 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
16410 the address operand of MEM_REFs. Verify MEM_REFs. Reject
16412 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
16413 INDIRECT_REF. Allow conversions.
16414 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
16415 a register does not change its size.
16416 (verify_types_in_gimple_reference): Verify MEM_REF.
16417 (verify_gimple_assign_single): Disallow INDIRECT_REF.
16419 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
16421 (mark_address_taken): Handle MEM_REF.
16422 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
16423 (get_asm_expr_operands): Pass opf_not_non_addressable.
16424 (get_expr_operands): Handle opf_[not_]non_addressable.
16425 Handle MEM_REF. Remove INDIRECT_REF handling.
16426 * tree-vrp.c (check_array_ref): Handle MEM_REF.
16427 (search_for_addr_array): Likewise.
16428 (check_array_bounds): Likewise.
16429 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
16430 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
16431 (ref_always_accessed_p): Likewise.
16432 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
16433 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
16435 * cgraphbuild.c (mark_load): Properly check for NULL result
16436 from get_base_address.
16437 (mark_store): Likewise.
16438 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
16439 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
16440 handling for MEM_REF.
16441 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
16442 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
16443 * builtins.c (stabilize_va_list_loc): Use the function ABI
16444 valist type if we couldn't canonicalize the argument type.
16445 Always dereference with the canonical va-list type.
16446 (maybe_emit_free_warning): Handle MEM_REF.
16447 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
16449 * builtins.c (fold_builtin_memory_op): Use ref-all types
16450 for all memcpy foldings.
16451 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
16452 (build_outer_var_ref): Likewise.
16453 (scan_omp_1_op): Likewise.
16454 (lower_rec_input_clauses): Likewise.
16455 (lower_lastprivate_clauses): Likewise.
16456 (lower_reduction_clauses): Likewise.
16457 (lower_copyprivate_clauses): Likewise.
16458 (expand_omp_atomic_pipeline): Likewise.
16459 (expand_omp_atomic_mutex): Likewise.
16460 (create_task_copyfn): Likewise.
16461 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
16462 Remove old union trick. Initialize constant offsets.
16463 (ao_ref_init_from_vn_reference): Likewise. Do not handle
16464 INDIRECT_REF. Init base_alias_set properly.
16465 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
16466 (vn_reference_fold_indirect): Adjust for MEM_REFs.
16467 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
16469 (may_insert): Remove.
16470 (visit_reference_op_load): Do not test may_insert.
16471 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
16472 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
16473 a field to store the constant offset this op applies.
16474 (run_scc_vn): Adjust prototype.
16475 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
16476 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
16477 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
16478 bother about volatile qualifiers on pointers.
16479 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
16480 * tree-ssa-loop-ivopts.c
16481 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
16482 (strip_offset_1): Likewise.
16483 (find_interesting_uses_address): Replace INDIRECT_REF handling with
16485 (get_computation_cost_at): Likewise.
16486 * ipa-pure-const.c (check_op): Handle MEM_REF.
16487 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
16488 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
16490 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
16491 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
16492 (eliminate_local_variables_1): Likewise.
16493 (create_call_for_reduction_1): Likewise.
16494 (create_loads_for_reductions): Likewise.
16495 (create_loads_and_stores_for_name): Likewise.
16496 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
16497 (ssa_accessed_in_tree): Handle MEM_REF.
16498 (ssa_accessed_in_assign_rhs): Likewise.
16499 (update_type_size): Likewise.
16500 (analyze_accesses_for_call_stmt): Likewise.
16501 (analyze_accesses_for_assign_stmt): Likewise.
16502 (transform_access_sites): Likewise.
16503 (transform_allocation_sites): Likewise.
16504 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
16505 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
16506 not handle INDIRECT_REF.
16507 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
16508 (cond_store_replacement): Likewise.
16509 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
16510 MEM_REF, no not handle INDIRECT_REFs.
16511 (insert_into_preds_of_block): Properly initialize avail.
16512 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
16513 for ARRAY_REFs. Properly handle reference lookups that
16514 require a bit re-interpretation.
16515 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
16516 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
16517 (build_ref_for_offset_1): Remove.
16518 (build_ref_for_offset): Build MEM_REFs.
16519 (gate_intra_sra): Disable for now.
16520 (sra_ipa_modify_expr): Handle MEM_REF.
16521 (ipa_early_sra_gate): Disable for now.
16522 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
16524 (disqualify_base_of_expr): Likewise.
16525 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
16527 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
16528 Use mem_ref_offset. Remove bogus folding.
16529 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
16530 (make_fancy_name_1): Add support for MEM_REF.
16531 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
16532 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
16533 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
16534 (compute_complex_ancestor_jump_func): Likewise.
16535 (ipa_analyze_virtual_call_uses): Likewise.
16536 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
16537 INDIRECT_REF folding with more generalized MEM_REF folding.
16538 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
16539 (forward_propagate_addr_into_variable_array_index): Also handle
16540 &ARRAY + I in addition to &ARRAY[0] + I.
16541 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
16542 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
16543 creates assignments with overlap.
16544 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
16545 (get_frame_field): Likewise.
16546 (get_nonlocal_debug_decl): Likewise.
16547 (convert_nonlocal_reference_op): Likewise.
16548 (struct nesting_info): Add mem_refs pointer-set.
16549 (create_nesting_tree): Allocate it.
16550 (convert_local_reference_op): Insert to be folded mem-refs.
16551 (fold_mem_refs): New function.
16552 (finalize_nesting_tree_1): Perform defered folding of mem-refs
16553 (free_nesting_tree): Free the pointer-set.
16554 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
16555 (vectorizable_load): Likewise.
16556 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
16557 (propagate_with_phi): Likewise.
16558 * tree-object-size.c (addr_object_size): Handle MEM_REFs
16559 instead of INDIRECT_REFs.
16560 (compute_object_offset): Handle MEM_REF.
16561 (plus_stmt_object_size): Handle MEM_REF.
16562 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
16564 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
16565 (symbol_marked_for_renaming): Likewise.
16566 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
16567 (fold-const.o): Add $(TREE_FLOW_H).
16568 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
16569 (find_func_clobbers): Likewise.
16570 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
16571 (decompose_access): Likewise.
16572 (replace_field_acc): Likewise.
16573 (replace_field_access_stmt): Likewise.
16574 (insert_new_var_in_stmt): Likewise.
16575 (get_stmt_accesses): Likewise.
16576 (reorg_structs_drive): Disable.
16577 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
16578 (ix86_canonical_va_list_type): Likewise.
16580 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
16583 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
16584 * target.def (struct gcc_target): Replace enum reg_class with
16585 reg_class_t in hook argument / return types.
16586 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
16587 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
16588 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
16589 * targhooks.h (default_branch_target_register_class): Likewise.
16590 (default_ira_cover_classes, default_secondary_reload): Likewise.
16591 (default_memory_move_cost, default_register_move_cost): Likewise.
16592 * targhooks.c (default_branch_target_register_class): Likewise.
16593 (default_ira_cover_classes, default_secondary_reload): Likewise.
16594 (default_memory_move_cost, default_register_move_cost): Likewise.
16595 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
16596 * bt-load.c (branch_target_load_optimize): Likewise.
16597 * ira.c (setup_cover_and_important_classes): Likewise.
16598 * ira-costs.c (copy_cost): Likewise.
16599 * reload1.c (emit_input_reload_insns): Likewise.
16600 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
16601 * config/frv/frv.c (frv_secondary_reload): Likewise.
16602 * config/s390/s390.c (s390_secondary_reload): Likewise.
16603 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
16604 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
16605 (ix86_register_move_cost): Likewise.
16606 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
16607 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
16608 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
16609 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
16610 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
16611 (rs6000_ira_cover_classes): Likewise.
16612 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
16613 * config/picochip/picochip-protos.h (picochip_secondary_reload):
16615 * config/pa/pa.c (pa_secondary_reload): Likewise.
16616 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
16617 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
16618 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
16619 * doc/tm.texi: Regenerate.
16621 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
16623 PR bootstrrap/44726
16624 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
16626 (build_alias_set_optimal_p): Likewise.
16627 (build_base_obj_set_for_drs): Likewise.
16629 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
16631 * target.def: Remove comment about licensing problems of function
16634 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
16635 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
16636 * doc/tm.texi: Regenerate.
16638 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
16639 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
16641 * target.def (enum_va_list_p): Use DEFHOOK.
16642 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
16643 Rename ptype to ptree.
16644 * doc/tm.texi: Regenerate.
16646 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
16647 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
16648 * doc/tm.texi: Regenerate.
16650 * target.def (memory_move_cost): Use DEFHOOK.
16651 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
16652 Rename regclass AKA class to rclass.
16653 * doc/tm.texi: Regenerate.
16655 * target.def (pragma_parse): Use DEFHOOK.
16656 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
16657 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
16658 * doc/tm.texi: Regenerate.
16660 * target.def (pass_by_reference): Use DEFHOOK.
16661 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
16662 * doc/tm.texi: Regenerate.
16664 * target.def (resolve_overloaded_builtin): Rename params to arglist.
16666 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
16667 * doc/tm.texi: Regenerate.
16669 * target.def (return_pops_args): Use DEFHOOK.
16670 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
16671 Rename stack-size to size.
16672 * doc/tm.texi: Regenerate.
16674 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
16675 last-sched_cycle to last_clock, cur_cycle to clock.
16676 * doc/tm.texi.in: Use @hook.
16677 * doc/tm.texi: Regenerate.
16679 * target.def (print_operand, print_operand_address): Update comment.
16680 (print_operand_punct_valid_p): Likewise.
16682 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
16684 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
16686 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
16687 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
16688 * rtl-error.h: New.
16689 * regrename.c: Do not include toplev.h. Include rtl-error.h.
16690 * rtl-error.c: Likewise.
16691 * reload.c: Likewise.
16692 * recog.c: Likewise.
16693 * sel-sched.c: Likewise.
16694 * function.c: Likewise.
16695 * reg-stack.c: Likewise.
16696 * cfgrtl.c: Likewise.
16697 * reload1.c: Likewise.
16698 * final.c: Include rtl-error.
16699 * Makefile.in: Adjust dependencies.
16701 2010-06-30 Jan Hubicka <jh@suse.cz>
16703 PR middle-end/PR44706
16704 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
16705 to return the value.
16707 2010-06-30 Michael Matz <matz@suse.de>
16710 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
16711 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
16712 a gimple reg, attach the original VDEF to the last store in the
16715 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
16718 * config/darwin.c (darwin_override_options): Use renamed
16719 targetm.asm_out.emit_unwind_label.
16721 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
16723 PR tree-optimization/39799
16724 * tree-inline.c (remap_ssa_name): Initialize variable only if
16725 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
16727 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
16729 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
16731 2010-06-30 Richard Guenther <rguenther@suse.de>
16734 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
16735 against oscillation with reverse peephole2.
16737 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
16740 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
16743 2010-06-30 Nick Clifton <nickc@redhat.com>
16745 * config/rx/rx-modes.def: New file.
16746 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
16747 (CC_REGNUM): Define.
16748 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
16750 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
16751 (SELECT_CC_MODE): Define.
16752 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
16753 (reg:CC CC_REG) instead of (cc0).
16754 (attr "cc"): Delete.
16755 (cbranchsi4): Do not split compare and branch here. Instead move
16757 (cbranchsi4_<code>): ... here. New patterns.
16758 (cmpsi): Call rx-compare_redundant to find out if it is necessary
16759 to emit the compare instruction.
16760 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
16762 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
16763 FIRST_PSEUDO_REGNUM.
16764 (rx_expand_prologue, rx_expand_epilogue): Likewise.
16765 (rx_notice_update_cc): Delete.
16766 (rx_cc_modes_compatible): New function.
16767 (flags_needed_for_conditional): New function.
16768 (flags_from_mode): New function.
16769 (rx_compare_redundant): New function - scans backwards through
16770 insn list to find out if condition flags are already set correctly.
16771 (TARGET_CC_MODES_COMPATIBLE): Define.
16772 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
16774 * config/rx/rx.h (BRANCH_COST): Define.
16775 (REGISTER_MOVE_COST): Define.
16776 * config/rx/predicates (rx_source_operand): Allow all constant types.
16777 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
16778 (tstsi4): New pattern.
16779 * config/rx/rx.c (rx_memory_move_cost): Define.
16780 (TARGET_MEMORY_MOVE_COST): Define.
16782 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
16784 * tree.h (block_may_fallthru): Declare here.
16785 * tree-flow.h (block_may_fallthru): Do not declare here.
16786 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
16788 * Makefile.in (c-typeck.o): Update dependencies.
16790 2010-06-30 Jakub Jelinek <jakub@redhat.com>
16793 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
16794 * cselib.c (cfa_base_preserved_regno): New static variable.
16795 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
16796 of REGNO (cfa_base_preserved_val->locs->loc).
16797 (cselib_preserve_cfa_base_value): Add regno argument, set
16798 cfa_base_preserved_regno to it.
16799 (cselib_invalidate_regno): Allow removal of registers other than
16800 cfa_base_preserved_regno from cfa_base_preserved_val.
16801 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
16802 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
16803 of MEM addresses, if not on LHS.
16804 (reverse_op): Don't add reverse ops for cfa_base_rtx.
16805 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
16807 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
16809 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
16811 (peep2_buf_position): New static function.
16812 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
16813 peephole2_optimize): Use it.
16814 (peep2_attempt, peep2_update_life): New static functions, broken out
16815 of peephole2_optimize.
16816 (peep2_fill_buffer): New static function.
16817 (peephole2_optimize): Change the main loop to try to fill the buffer
16818 with the maximum number of insns before matching them against
16819 peepholes. Use a forward scan. Remove special case for targets with
16820 conditional execution.
16821 * genrecog.c (change_state): Delete dead code.
16822 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
16823 Rewrite so as not to expect the second insn to have had a peephole
16826 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
16828 * genhooks.c (emit_findices): Cast field precision to int.
16829 (emit_documentation): Likewise.
16831 2010-06-29 Jakub Jelinek <jakub@redhat.com>
16833 PR tree-optimization/43801
16834 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
16835 if old_decl was DECL_ONE_ONLY.
16838 * dwarf2out.c (add_accessibility_attribute): New function.
16839 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
16840 instead of adding DW_AT_accessibility manually.
16841 (gen_enumeration_type_die, gen_struct_or_union_type_die,
16842 gen_typedef_die): Use it.
16844 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16846 * vmsdbgout.c (full_name): Just output the file name if not native.
16848 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16850 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
16851 (funcnam_table): New static table.
16852 (funcnum_table): New static table.
16853 (write_rtnbeg): Write value saved in funcnum_table.
16854 (write_rtnend): Write value saved in funcnum_table.
16855 (vmsdbgout_begin_function): Save current function info in
16856 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
16857 (vmsdbgout_finish): Iterate over funcnum_table.
16859 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16861 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
16862 (vmsdbgout_type_decl): Declare
16863 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
16864 (FUNC_EPILOGUE_LABEL): New macro
16865 (vmsdbgout_begin_epilogue): New function.
16866 (vmsdbgout_type_decl): New function.
16868 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16870 * vmsdbg.h: Update copyright.
16872 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16874 * vmsdbg.h (DST_K_TBG): New DST constant.
16875 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
16876 (write_modbeg): Cast module_language to avoid warning.
16877 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
16879 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
16882 * target.def, doc/tm.texi.in, genhooks.c: New files.
16883 * target.h: Instead of defining individual hook members,
16884 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
16885 include target.def.
16886 * target-def.h: Instead of defining individual hook initializers,
16887 include target-hooks-def.h.
16888 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
16889 targetm.live_on_entry -> targetm.extra_live_on_entry
16890 targetm.sched.md_finish ->targetm.sched.finish
16891 targetm.sched.md_init -> targetm.sched.init
16892 targetm.sched.md_init_global -> targetm.sched.init_global
16893 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
16894 targetm.asm_out.except_table_label ->
16895 targetm.asm_out.emit_except_table_label
16896 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
16897 targetm.target_help -> targetm.help
16898 targetm.vectorize.builtin_support_vector_misalignment ->
16899 targetm.vectorize.support_vector_misalignment
16900 targetm.file_start_app_off -> targetm.asm_file_start_app_off
16901 targetm.file_start_file_directive ->
16902 targetm.asm_file_start_file_directive
16903 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
16904 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
16905 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
16906 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
16907 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
16908 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
16909 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
16910 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
16911 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
16912 * Makefile.in (TARGET_H): Depend on target.def.
16913 (TARGET_DEF_H): Depend on target-hooks-def.h.
16914 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
16915 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
16916 * doc/tm.texi: Regenerate.
16918 * Makefile.in (s-tm-texi): Remove stray tab / rule.
16920 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
16921 (targetm.sched.init): Likewise.
16923 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
16926 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
16927 (function_arg_advance_32): Const-ify TYPE parameter.
16928 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
16929 (ix86_function_arg_advance): Change type of NAMED to bool.
16930 (function_arg_32): Const-ify CUM and TYPE parameters.
16931 (function_arg_64): Likewise. Change type of NAMED to bool.
16932 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
16934 (ix86_function_arg): Change type of NAMED to bool.
16935 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
16936 last argument as a bool.
16938 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
16940 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
16941 (OVERRIDE_OPTIONS): Add note of obsolescence.
16942 Replace references with references to TARGET_OPTION_OVERRIDE.
16943 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
16945 * targhooks.c (default_target_option_override): New function.
16946 * targhooks.h (default_target_option_override): Declare.
16947 * target.h (struct gcc_target): Add override member to
16948 target_option member.
16949 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
16950 targetm.target_option.override call.
16951 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
16952 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
16954 2010-06-29 Jan Hubicka <jh@suse.cz>
16956 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
16958 2010-06-29 Jan Hubicka <jh@suse.cz>
16960 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
16962 (rebuild_frequencies): New function.
16963 * predict.h (rebuild_frequencies): Declare.
16964 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
16965 entry block and edge reaching new_entry.
16966 (tree_function_versioning): When doing partial cloning, rebuild
16967 frequencies when done.
16968 * passes.c (execute_function_todo): Use rebild_frequencies.
16970 2010-06-29 Richard Guenther <rguenther@suse.de>
16972 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
16973 * tree-flow.h (enum noalias_state): Remove.
16974 (struct var_ann_d): Remove noalias_state member.
16976 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
16979 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
16980 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
16981 (maddhidi4): Likewise.
16983 Revert parts of the change for PR25130.
16984 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
16987 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
16989 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
16990 targetm.calls.function_incoming_arg, and
16991 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
16992 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
16993 * target.h (struct gcc_target): Add function_arg_advance,
16994 function_arg, and function_incoming_arg fields.
16995 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
16996 (TARGET_FUNCTION_INCOMING_ARG): Define.
16997 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
16998 and TARGET_FUNCTION_INCOMING_ARG.
16999 * targhooks.h (default_function_arg_advance): Declare.
17000 (default_function_arg, default_function_incoming_arg): Declare.
17001 * targhooks.c (default_function_arg_advance): New function.
17002 (default_function_arg, default_function_incoming_arg): New function.
17003 * config/i386/i386.c (function_arg_advance): Rename to...
17004 (ix86_function_arg_advance): ...this. Make static.
17005 (function_arg): Rename to...
17006 (ix86_function_arg): ...this. Make static.
17007 (TARGET_FUNCTION_ARG_ADVANCE): Define.
17008 (TARGET_FUNCTION_ARG): Define.
17009 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
17010 (FUNCTION_ARG): Delete.
17011 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
17012 (function_arg): Delete prototype.
17014 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
17016 * reginfo.c (init_reg_sets_1): Adjust comments.
17017 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
17018 * calls.c (prepare_call_address): Likewise.
17019 (emit_call_1): Use targetm.calls.return_pops_args.
17020 (expand_call): Likewise.
17021 * function.c (assign_parms): Likewise.
17022 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
17023 * target.h (struct gcc_target) [struct calls]: Add
17024 return_pops_args field.
17025 * targhooks.h (default_return_pops_args): Declare.
17026 * targhooks.c (default_return_pops_args): Define.
17027 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
17028 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
17029 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
17030 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
17032 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
17033 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
17034 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
17035 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
17036 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
17037 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
17038 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
17039 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
17040 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
17041 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
17042 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
17043 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
17044 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
17045 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
17046 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
17047 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
17048 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
17049 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
17050 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
17051 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
17052 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
17053 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
17054 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
17055 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
17056 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
17057 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
17058 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
17059 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
17060 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
17061 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
17062 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
17063 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
17064 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
17065 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
17066 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
17067 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
17068 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
17069 * config/i386/i386.c (ix86_return_pops_args): Make static.
17070 Constify arguments.
17071 (TARGET_RETURN_POPS_ARGS): Define.
17072 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
17073 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
17074 (TARGET_RETURN_POPS_ARGS): Define.
17075 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
17076 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
17077 (TARGET_RETURN_POPS_ARGS): Define.
17079 2010-06-29 Richard Guenther <rguenther@suse.de>
17081 PR middle-end/44667
17082 * tree-inline.c (initialize_inlined_parameters): Make sure
17083 to remap the inlined parameter variable substitutions types.
17085 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
17087 PR rtl-optimization/44659
17088 * combine.c (make_compound_operation) <SUBREG>: Do not return the
17089 result of force_to_mode if it partially re-expanded the compound.
17091 2010-06-28 Jan Hubicka <jh@suse.cz>
17093 PR middle-end/44671
17094 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
17097 2010-06-28 Anatoly Sokolov <aesok@post.ru>
17099 * double-int.h (force_fit_type_double): Remove declaration.
17100 * double-int.c (force_fit_type_double): Move to tree.c.
17101 * tree.h (force_fit_type_double): Declare.
17102 * tree.h (force_fit_type_double): Moved from double-int.c. Use
17103 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
17104 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
17105 * convert.c (convert_to_pointer): Adjust call to
17106 force_fit_type_double.
17107 * tree-vrp.c (extract_range_from_assert,
17108 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
17109 * fold-const.c: Update comment.
17110 (int_const_binop, fold_convert_const_int_from_int,
17111 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
17112 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
17113 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
17114 round_up_loc): Adjust call to force_fit_type_double.
17116 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17118 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
17120 2010-06-28 Martin Jambor <mjambor@suse.cz>
17122 * tree-sra.c (convert_callers): New parameter, change fndecls of
17124 (modify_function): Pass the old decl to convert_callers.
17126 2010-06-28 Martin Jambor <mjambor@suse.cz>
17128 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
17129 ipa_check_create_node_params and ipa_initialize_node_params with
17130 checking asserts they are not necessary.
17132 2010-06-28 Jan Hubicka <jh@suse.cz>
17134 PR tree-optimization/44687
17135 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
17137 2010-06-28 Martin Jambor <mjambor@suse.cz>
17140 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
17141 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
17142 instead of BINFO_BASE_BINFO.
17144 2010-06-28 Michael Matz <matz@suse.de>
17146 PR middle-end/44592
17147 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
17148 proper VDEF chain for intermediate stores in the sequence.
17150 2010-06-28 Jan Hubicka <jh@suse.cz>
17152 PR tree-optimization/44357
17153 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
17154 uninlinable functions.
17156 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17158 * config.gcc (powerpc*-*-*): Handle titan.
17159 * config/rs6000/rs6000.c (titan_cost): New costs.
17160 (rs6000_override_options): Add "titan" to processor_target_table.
17161 Add Titan to branch alignment logic.
17162 Correctly set rs6000_cost for titan.
17163 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
17164 * config/rs6000/titan.md: New file.
17165 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
17167 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
17169 * tree-browser.c (TB_history_stack): Convert to a VEC.
17170 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
17171 (TB_history_prev): Likewise.
17173 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
17175 * vec.h (vec_heap_free): Add parentheses around free.
17177 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
17179 * system.h: Poison GCC_EXCEPT_H for front-end files.
17181 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
17183 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
17184 Define to NULL by default.
17185 * except.h: Define GCC_EXCEPT_H.
17186 (doing_eh): Remove prototype.
17187 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
17188 (lang_protect_cleanup_actions): Remove.
17189 * except.c (lang_protect_cleanup_actions): Remove.
17190 (doing_eh): Remove.
17191 (gen_eh_region): Don't check doing_eh here.
17192 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
17193 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
17194 instead of lang_protect_cleanup_actions.
17195 * omp-low.c (maybe_catch_exception): Likewise.
17196 * Makefile.in: Update dependencies.
17198 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
17200 * cgraph.h (struct varpool_node): new used_from_object_file flag.
17201 (struct cgraph_local_info): new used_from_object_file flag.
17202 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
17203 (cgraph_clone_node): initialize used_from_object_file.
17204 (cgraph_create_virtual_clone): initialize used_from_object_file.
17205 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
17206 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
17207 when compiling with -fwhole-program.
17208 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
17210 * ipa.c (function_and_variable_visibility): Set externally_visible
17211 flag of varpool_node if used_from_object_file flag is set.
17212 (cgraph_externally_visible_p): check used_from_object_file flag.
17213 * doc/invoke.texi (-fwhole-program option): Change description of
17214 externally_visible attribute accordingly.
17215 * doc/extend.texi (externally_visible): Ditto.
17217 2010-06-27 Jan Hubicka <jh@suse.cz>
17219 * params.def (max-inline-insns-auto): Default to 40.
17220 * doc/invoke.texi (max-inline-insns-auto): Document the change.
17222 2010-06-27 Jan Hubicka <jh@suse.cz>
17224 PR middle-end/44671
17225 PR middle-end/44686
17226 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
17228 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
17229 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
17231 2010-06-27 Anatoly Sokolov <aesok@post.ru>
17233 * target.h (struct gcc_target): Add register_move_cost field.
17234 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
17235 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
17236 * targhooks.c (default_register_move_cost): New function.
17237 * targhooks.h (default_register_move_cost): Declare function.
17238 * defaults.h (REGISTER_MOVE_COST): Delete.
17239 * ira-int.h (ira_register_move_cost): Update comment.
17240 * ira.c (ira_register_move_cost): Update comment.
17241 * reload.h (register_move_cost): Declare.
17242 * reginfo.c (register_move_cost): New function.
17243 (move_cost): Update comment.
17244 (init_move_cost, memory_move_secondary_cost): Replace
17245 REGISTER_MOVE_COST with register_move_cost.
17246 * postreload.c (reload_cse_simplify_set): (Ditto.).
17247 * reload.c (find_valid_class, find_reloads): (Ditto.).
17248 * reload1.c (choose_reload_regs): (Ditto.).
17249 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
17250 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
17251 * doc/md.texi (can_create_pseudo_p): Update documentation.
17253 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
17254 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
17255 * config/i386/i386.h (ix86_memory_move_cost): Make static.
17256 (TARGET_MEMORY_MOVE_COST): Define.
17258 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
17259 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
17260 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
17261 (TARGET_MEMORY_MOVE_COST): Define.
17263 2010-06-27 Richard Guenther <rguenther@suse.de>
17265 PR tree-optimization/44683
17266 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
17267 false edge from the inverted condition.
17269 2010-06-27 Richard Guenther <rguenther@suse.de>
17271 PR middle-end/44684
17272 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
17273 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
17274 for register LHS. Or non-store assignments.
17276 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
17278 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
17279 (sparc_emit_set_const64): Likewise. Remove disabled code.
17280 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
17281 (sparc_emit_set_const64): Likewise.
17283 2010-06-26 Catherine Moore <clm@codesourcery.com>
17285 * config/mips/mips.md (alu_type): New attribute.
17286 (type): Infer type from alu_type.
17287 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
17288 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
17289 *subsi3_extended, negsi2, negdi2, *low<mode>,
17290 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
17291 xor<mode>3, *nor<mode>3,
17292 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
17293 *zero_extendhi_truncqi): Set alu_type instead of type.
17295 2010-06-26 Douglas B Rupp <rupp@gnat.com>
17297 * config/alpha/alpha.c (alpha_need_linkage): Adjust
17298 splay_tree_new_ggc call.
17299 (alpha_use_linkage): Likewise.
17301 2010-06-26 Joseph Myers <joseph@codesourcery.com>
17303 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
17304 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
17305 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
17306 (static_specs): Remove switches_need_spaces.
17307 (process_command, do_self_spec): Hardcode handling "-o" instead of
17308 checking switches_need_spaces.
17309 * system.h (SWITCHES_NEED_SPACES): Poison.
17311 2010-06-26 Richard Guenther <rguenther@suse.de>
17313 PR tree-optimization/44393
17314 * tree-loop-distribution.c (generate_loops_for_partition): Fix
17315 stmt removal and VOP renaming.
17316 (generate_memset_zero): Remove redundant stmt updating.
17317 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
17318 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
17320 2010-06-26 Jan Hubicka <jh@suse.cz>
17322 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
17323 edges comming from header are equivalent.
17324 (visit_bb): Handle PHIs correctly.
17325 * tree-inline.c (copy_phis_for_bb): Be able to copy
17326 PHI from entry edge.
17327 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
17329 2010-06-26 Richard Guenther <rguenther@suse.de>
17331 PR middle-end/44674
17332 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
17333 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
17335 2010-06-26 Joseph Myers <joseph@codesourcery.com>
17337 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
17338 add_infile, alloc_switch): New.
17339 (process_command): Remove variable lang_n_infiles. Process
17340 options in a single pass. Use new functions for allocating
17341 infiles and switches arrays. Properly skip operands of
17342 -Xpreprocessor and -Xassembler.
17344 2010-06-26 Jan Hubicka <jh@suse.cz>
17346 PR middle-end/44671
17347 * cgraphunit.c (cgraph_function_versioning): Remove wrong
17348 cgraph_make_decl_local call; fix typo copying RTL data.
17350 2010-06-25 DJ Delorie <dj@redhat.com>
17352 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
17353 (m32c_output_aligned_common): Likewise.
17354 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
17355 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
17356 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
17357 (m32c_register_pragmas): Register it.
17358 * config/m32c/m32c.c (m32c_get_pragma_address): New.
17359 (m32c_insert_attributes): Set #pragma address decls volatile.
17360 (pragma_entry_eq): New.
17361 (pragma_entry_hash): New.
17362 (m32c_note_pragma_address): New.
17363 (m32c_get_pragma_address): New.
17364 (m32c_output_aligned_common): New.
17365 * doc/extend.texi: Document the new pragma.
17367 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
17369 * config/m32c/predicates.md (m32c_any_operand): Check the code
17370 instead of memory_operand so as to allow matching volatile MEMs.
17371 (m32c_nonimmediate_operand): Likewise.
17372 (mra_operand): Allow volatiles.
17374 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
17377 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
17378 address if the offset is unknown.
17380 2010-06-25 Douglas B Rupp <rupp@gnat.com>
17382 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
17383 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
17384 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
17385 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
17386 to ia64_start_function. Invoke it.
17387 * config/ia64/ia64.c (ia64_start_function): Call new function
17388 dwarf2out_vms_debug_main_pointer.
17390 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17392 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
17393 statements computing the true predicate.
17395 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17397 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
17398 to boolean_true_node.
17399 (reset_bb_predicate): New.
17400 (predicate_bbs): Call reset_bb_predicate.
17402 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17404 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
17405 (tree_if_conversion): Returns true when something has been changed.
17406 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
17409 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17411 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
17412 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
17413 * tree-if-conv.c: Include dbgcnt.h.
17414 (tree_if_conversion): Use if_conversion_tree to count the number of
17415 if-convertible loops.
17417 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
17419 * common.opt (fprefetch-loop-arrays): Re-define
17420 -fprefetch-loop-arrays as a tri-state option with the initial
17422 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
17423 pass only when flag_prefetch_loop_arrays > 0.
17424 * toplev.c (process_options): Note that, with tri-states,
17425 flag_prefetch_loop_arrays>0 means prefetching is enabled.
17426 * config/i386/i386.c (override_options): Enable prefetching at -O3
17427 for a set of CPUs that sw prefetching is helpful.
17428 (software_prefetching_beneficial_p): New. Return TRUE if software
17429 prefetching is beneficial for the given CPU.
17431 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
17433 PR rtl-optimization/44326
17434 * implicit-zee.c (find_removable_zero_extends): Replace
17435 INSN_P with NONDEBUG_INSN_P.
17437 2010-06-25 Martin Jambor <mjambor@suse.cz>
17439 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
17440 (struct ipa_node_params): Removed the modification_analysis_done flag.
17441 (ipa_is_param_modified): Removed.
17442 (ipa_analyze_node): Declare.
17443 (ipa_compute_jump_functions): Remove declaration.
17444 (ipa_count_arguments): Likewise.
17445 (ipa_detect_param_modifications): Likewise.
17446 (ipa_analyze_params_uses): Likewise.
17447 * ipa-prop.c (struct param_analysis_info): New type.
17448 (visit_store_addr_for_mod_analysis): Removed.
17449 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
17450 moved down in the file.
17451 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
17452 (ipa_count_arguments): Made static.
17453 (mark_modified): New function.
17454 (is_parm_modified_before_call): New function.
17455 (compute_pass_through_member_ptrs): New parameter parms_info, call
17456 is_parm_modified_before_call instead of ipa_is_param_modified.
17457 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
17458 it to compute_pass_through_member_ptrs.
17459 (ipa_compute_jump_functions): New parameter parms_info, pass it to
17460 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
17461 on the callee if it is analyzed. Made static.
17462 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
17463 is_parm_modified_before_call instead of ipa_is_param_modified.
17464 (ipa_analyze_call_uses): New parameter parms_info, pass it to
17465 ipa_analyze_indirect_call_uses.
17466 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
17467 ipa_analyze_call_uses.
17468 (ipa_analyze_params_uses): New parameter parms_info, pass it to
17469 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
17470 (ipa_analyze_node): New function.
17471 (ipa_print_node_params): Do not dump the modified flag.
17472 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
17473 it. Do not stream the modified parameter flag.
17474 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
17475 it. Do not stream the modified parameter flag.
17476 * ipa-cp.c (ipcp_analyze_node): Removed.
17477 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
17478 with only a call to ipa_analyze_node.
17479 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
17480 node with only a call to ipa_analyze_node.
17482 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
17484 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
17486 2010-06-25 Jan Hubicka <jh@suse.cz>
17488 * tree-pass.h (pass_split_functions): Declare.
17489 * opts.c (decode_options): Enable function splitting at -O2
17490 * timevar.def (TV_IPA_FNSPLIT): New macro.
17491 * ipa-split.c: New file.
17492 * common.opt (-fpartial-inlining): New flag.
17493 * Makefile.in (ipa-split.o): New object file.
17494 * passes.c (init_optimization_passes): Add ipa-split.
17495 * params.def (partial-inlining-entry-probability): New parameters.
17496 * doc/invoke.texi (-fpartial-inlining): New.
17498 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
17501 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
17502 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
17503 (gimplify_expr): Likewise.
17505 2010-06-25 Martin Jambor <mjambor@suse.cz>
17507 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
17508 statements instead of bailing out on them.
17509 (ipa_analyze_indirect_call_uses): Do not require that loads from the
17510 parameter are in the same BB as the condition. Update comments.
17512 2010-06-25 Jakub Jelinek <jakub@redhat.com>
17514 PR middle-end/43866
17515 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
17516 true or always false, return NULL_TREE.
17517 (tree_unswitch_single_loop): Optimize conditions even when reaching
17518 max-unswitch-level parameter. If num > 0, optimize first all conditions
17519 using entry checks, then do still reachable block discovery and consider
17520 only conditions in still reachable basic blocks in the loop.
17522 PR tree-optimization/44539
17523 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
17524 the call doesn't have LHS, but has VDEF.
17526 2010-06-25 Joseph Myers <joseph@codesourcery.com>
17528 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
17529 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
17530 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
17531 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
17532 * system.h (MODIFY_TARGET_NAME): Poison.
17534 2010-06-25 Alan Modra <amodra@gmail.com>
17536 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
17537 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
17538 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
17539 CMODEL_LARGE as default.
17540 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
17541 (offsettable_ok_by_alignment): Delete.
17542 (rs6000_emit_move): Remove mcmodel=medium optimization.
17544 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
17546 With large parts from Jim Wilson:
17548 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
17549 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
17550 * optabs.c (optab_for_tree_code): Likewise.
17551 (expand_widen_pattern_expr): Likewise.
17552 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
17553 out of execute_optimize_widening_mul.
17554 (convert_plusminus_to_widen): New function.
17555 (execute_optimize_widening_mul): Use the two new functions.
17556 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
17557 Remove code to generate widening multiply-accumulate. Add support
17558 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
17559 * gimple-pretty-print.c (dump_ternary_rhs): New function.
17560 (dump_gimple_assign): Call it when appropriate.
17561 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
17562 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
17563 (expand_gimple_stmt_1): Likewise.
17564 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
17565 WIDEN_MULT_MINUS_EXPR.
17566 * tree-ssa-operands.c (get_expr_operands): Likewise.
17567 * tree-inline.c (estimate_operator_cost): Likewise.
17568 * gimple.c (extract_ops_from_tree_1): Renamed from
17569 extract_ops_from_tree. Add new arg for a third operand; fill it.
17570 (gimple_build_assign_stat): Support operations with three operands.
17571 (gimple_build_assign_with_ops_stat): Likewise.
17572 (gimple_assign_set_rhs_from_tree): Likewise.
17573 (gimple_assign_set_rhs_with_ops_1): Renamed from
17574 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
17575 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
17576 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
17577 WIDEN_MULT_MINUS_EXPR.
17578 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
17579 (extract_ops_from_tree_1): Adjust declaration.
17580 (gimple_assign_set_rhs_with_ops_1): Likewise.
17581 (gimple_build_assign_with_ops): Pass NULL for last operand.
17582 (gimple_build_assign_with_ops3): New macro.
17583 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
17584 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
17586 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
17587 (verify_gimple_assign): Call it.
17588 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
17589 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
17590 functions for dealing with three-operand statements.
17591 * tree.c (commutative_ternary_tree_code): New function.
17592 * tree.h (commutative_ternary_tree_code): Declare it.
17593 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
17594 ternary statements.
17595 (gimple_assign_nonzero_warnv_p): Likewise.
17596 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
17597 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
17598 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
17599 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
17600 (struct hashtable_expr): New member ternary in the union.
17601 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
17602 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
17603 (iterative_hash_hashable_expr): Likewise.
17604 (print_expr_hash_elt): Handle EXPR_TERNARY.
17605 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
17606 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
17607 statements. Handle GIMPLE_TERNARY_RHS.
17609 2010-06-25 Jan Hubicka <jh@suse.cz>
17611 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
17613 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
17616 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
17617 parameters are not good.
17618 (c_parser_parameter_declaration): Error unknown type name if the type
17619 name can't start declaration specifiers.
17621 2010-06-25 Joseph Myers <joseph@codesourcery.com>
17623 * gcc.c (translate_options): Don't mention +e in comment.
17624 (process_command): Don't handle +e specially.
17626 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
17628 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
17630 * ira-build.c (merge_hard_reg_conflicts): New function.
17631 (create_cap_allocno, copy_info_to_removed_store_destinations,
17632 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
17633 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
17634 (remove_unnecessary_allocnos, remove_low_level_allocnos)
17635 copy_nifo_to_removed_store_destination): Use them.
17636 * ira-lives.c (make_hard_regno_born): New function, split out of
17638 (make_allocno_born): Likewise.
17639 (make_hard_regno_dead): New function, split out of make_regno_dead.
17640 (make_allocno_dead): Likewise.
17641 (inc_register_pressure): New function, split out of set_allocno_live.
17642 (dec_register_pressure): New function, split out of clear_allocno_live.
17643 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
17644 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
17645 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
17646 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
17647 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
17648 mark_pseudo_regno_live.
17649 (process_bb_node_lives): Use mark_pseudo_regno_live,
17650 make_hard_regno_born and make_allocno_dead.
17651 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
17652 set_allocno_live, clear_allocno_live): Delete functions.
17654 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
17655 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
17657 (ira_flattening): Use ira_parent_allocno.
17658 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
17659 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
17661 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
17664 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
17665 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
17666 minmax_set_iter_cond, minmax_set_iter_next,
17667 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
17668 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
17669 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
17670 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
17673 * ira-int.h (struct live_range, live_range_t): Renamed from struct
17674 ira_allocno_live_range and allocno_live_range_t; all uses changed.
17675 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
17678 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
17680 * thumb2.md (thumb2_tlobits_cbranch): Delete.
17681 (peephole2 to convert zero_extract/compare of single bit to
17682 lshift/compare): New.
17684 2010-06-24 Anatoly Sokolov <aesok@post.ru>
17686 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
17687 recursive call and call to 'int_const_binop'.
17688 (build_range_check, fold_cond_expr_with_comparison, unextend,
17689 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
17690 multiple_of_p): Adjust call to const_binop.
17692 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
17694 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
17695 determine size of XFmode operand.
17696 (XFmode extended DFmode push splitter): Ditto.
17697 (XFmode extended SFmode push splitter): Ditto.
17699 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
17702 * config/i386/i386.md (extract_code): New.
17703 (<u>divmodqi4): Likewise.
17704 (divmodhiqi3): Likewise.
17705 (udivmodhiqi3): Likewise.
17706 (<u>divqi3): Remvoved.
17708 2010-06-24 Jakub Jelinek <jakub@redhat.com>
17710 PR middle-end/44492
17711 * recog.h (struct recog_data): Add is_asm field.
17712 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
17713 present in constraints of inline-asm operand and memory operand
17714 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
17715 (extract_insn): Initialize recog_data.is_asm.
17716 * doc/md.texi (Constraints): Document operand side-effect rules.
17718 2010-06-24 Andi Kleen <ak@linux.intel.com>
17720 * c-parser.c (c_parser_conditional_expression): Call
17721 warn_for_omitted_condop.
17722 * doc/invoke.texi: Document omitted condop warning.
17724 2010-06-24 Nick Clifton<nickc@redhat.com>
17726 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
17727 insn in the sequence is a jump insn before setting its label.
17729 2010-06-24 Alan Modra <amodra@gmail.com>
17731 * collect2.c (main): Match exactly --version and --help.
17733 2010-06-24 DJ Delorie <dj@redhat.com>
17735 * config/m32c/m32c-pragma.c: Don't include rtl.h.
17737 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
17739 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
17740 using X87MODEF mode iterator.
17741 (pushsf splitter): Macroize splitter using P mode iterator.
17742 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
17745 (*movxf_internal): Rename from *movxf_integer.
17746 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
17747 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
17748 (*movdf_internal): Rename from *movdf_integer.
17749 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
17750 (*movsf_internal): Rename from *movdf_1.
17752 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
17754 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
17755 (const_gimple_seq_node): Removed typedefs.
17757 * gimple.h (gimple_seq_node_d, gimple_seq_node)
17758 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
17760 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
17762 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
17763 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
17764 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
17765 and CODE_FOR_vec_extract_lo_v4df.
17767 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
17768 Changed to define_insn_and_split.
17769 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
17770 (vec_extract_lo_v16hi): Likewise.
17771 (vec_extract_lo_v32qi): Likewise.
17772 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
17773 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
17775 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
17778 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
17779 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
17780 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
17781 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
17782 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
17785 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
17788 * df-core.c (struct df): Rename to df_d.
17789 * df.h (struct df): Likewise.
17790 * dse.h (struct df): Remove forward declaration.
17791 * recog.h (struct insn_data): Rename to:
17792 (struct_insn_data_d). Adjusted all users.
17794 2010-06-23 Arnaud Charlet <charlet@adacore.com
17797 * doc/install.texi: Update requirements to build GNAT.
17799 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
17801 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
17803 (m68k_sched_attr_opx_type): Remove unreachable return.
17804 (m68k_sched_attr_opy_type): Likewise.
17805 (m68k_sched_attr_size): Likewise.
17806 (sched_get_opxy_mem_type): Likewise.
17807 (m68k_sched_attr_op_mem): Likewise.
17809 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
17811 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
17812 new statement and adjust VDEF only if necessary. Remove superfluous
17813 call to maybe_clean_or_replace_eh_stmt.
17814 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
17816 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
17817 * tree-inline.c (copy_bb): ...and not there.
17819 2010-06-22 Cary Coutant <ccoutant@google.com>
17821 * dwarf2out.c (is_nested_in_subprogram): New function.
17822 (should_move_die_to_comdat): Use it.
17823 (copy_ancestor_tree): Don't mark DIEs here.
17824 (copy_decls_walk): Start walk from root of newly-added tree;
17825 mark DIEs here instead.
17827 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
17829 * config/i386/i386.md (unit): Also check sseishft1.
17831 2010-06-22 Jan Hubicka <jh@suse.cz>
17833 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
17836 2010-06-22 Jan Hubicka <jh@suse.cz>
17838 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
17839 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
17840 Return true if something changed.
17841 * df.h (df_confluence_function_n): Return bool.
17842 * df-core.c (df_worklist_propagate_forward,
17843 df_worklist_propagate_backward): Track changes and ages.
17844 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
17846 * dse.c (dse_confluence_n): Return always true.
17848 2010-06-22 Jan Hubicka <jh@suse.cz>
17850 * bitmap.c (bitmap_clear_bit): Micro optimize.
17852 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
17854 * config/i386/i386.md (SWI1248x): New mode iterator.
17859 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
17860 SWI1248x mode iterator.
17861 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
17862 using SWI124 mode iterator.
17863 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
17865 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
17866 *pushdi2_prologue_rex64 using P mode iterator.
17867 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
17868 using SWI48 mode iterator.
17869 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
17870 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
17871 using SWI1248x mode iterator.
17872 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
17873 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
17874 SWI48 mode iterator.
17875 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
17877 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
17878 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
17879 SWI12 mode iterator.
17880 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
17881 SWI12 mode iterator.
17882 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
17883 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
17884 SWI24 mode iterator.
17885 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
17886 SWI48 mode iterator.
17887 (mov<mode>_insn_1): New expander.
17888 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
17889 using SWI48x mode iterator.
17891 (*movoi_internal_avx): Rename from *movoi_internal.
17892 (*movti_internal_rex64): Rename from *movti_rex64.
17893 (*movti_internal_sse): Rename from *movti_sse.
17894 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
17895 (*movdi_internal): Rename from *movdi_2.
17896 (*movsi_internal): Rename from *movsi_1.
17897 (*movhi_internal): Rename from *movhi_1.
17898 (*movqi_internal): Rename from *movqi_1.
17900 (insv): Update the call to gen_movsi_insv_1 for rename.
17901 * config/i386/i386.c (promote_duplicated_reg): Ditto.
17903 2010-06-22 Jan Hubicka <jh@suse.cz>
17905 * passes.c (execute_function_todo): Move call of statistics_fini_pass
17907 (execute_todo) ... this one.
17909 2010-06-22 Alan Modra <amodra@gmail.com>
17912 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
17913 * caller-save.c (insert_restore, insert_save): Use non-validate
17914 form of adjust_address.
17916 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17919 * config/pa/pa.c (override_options): Disable
17920 -freorder-blocks-and-partition.
17922 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
17925 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
17927 * config/i386/i386.md (type): Add sseishft1
17929 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
17930 (ppro_insn_load): Likewise.
17931 (ppro_insn_store): Likewise.
17932 (ppro_insn_both): Likewise.
17934 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
17935 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
17937 (*vec_extractv2di_1_avx): Likewise.
17938 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
17939 type. Remove atom_unit.
17940 (*vec_extractv2di_1_sse2): Likewise.
17942 2010-06-21 DJ Delorie <dj@redhat.com>
17944 * diagnostic.h (diagnostic_classification_change_t): New.
17945 (diagnostic_context): Add history and push/pop list.
17946 (diagnostic_push_diagnostics): Declare.
17947 (diagnostic_pop_diagnostics): Declare.
17948 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
17949 from pragmas in a history chain instead of the global table.
17950 (diagnostic_push_diagnostics): New.
17951 (diagnostic_pop_diagnostics): New.
17952 (diagnostic_report_diagnostic): Scan history chain to find state
17953 of diagnostics as of the diagnostic location.
17954 * opts.c (set_option): Pass UNKNOWN_LOCATION to
17955 diagnostic_classify_diagnostic.
17956 (enable_warning_as_error): Likewise.
17957 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
17958 use in the history chain.
17959 * doc/extend.texi: Document pragma GCC diagnostic changes.
17961 2010-06-21 Jakub Jelinek <jakub@redhat.com>
17963 * dwarf2out.c (add_linkage_name): New function. Don't add
17964 anything to DW_TAG_member DIEs.
17965 (add_name_and_src_coords_attributes): Use it.
17966 (gen_variable_die): Call it for C++ static data members if
17967 specification is DW_TAG_member.
17969 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
17970 C++ char16_t and char32_t.
17972 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
17973 * genattrtab.c: Include vecprim.h.
17974 (cached_attrs, cached_attr_count, attrs_seen_once,
17975 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
17976 attrs_cached_after): New variables.
17977 (find_attrs_to_cache): New function.
17978 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
17979 (write_test_expr): Add attrs_cached argument, return it too,
17980 attempt to cache non-const attributes used more than once in
17981 a single case handling.
17982 (write_attr_get): Use find_attrs_to_cache, for caching candidates
17983 emit cached_* variables. Adjust write_attr_set callers.
17984 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
17985 to find attributes that should be cached in this block. Adjust
17986 write_test_expr callers.
17987 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
17989 (make_automaton_attrs): Adjust write_test_expr caller.
17991 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
17992 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
17993 (make_automaton_attrs): If find_tune_attr returns non-NULL,
17994 write separate internal_dfa_insn_code_* and insn_default_latency_*
17995 functions for each attribute's value and emit init_sched_attrs
17996 function and function pointers.
17997 * genattr.c (const_attrs, reservations): New variables.
17998 (gen_attr): Add const attributes to const_attrs vector.
17999 (check_tune_attr, find_tune_attr): New functions.
18000 (main): Add reservations to reservations vector. If find_tune_attr
18001 returns true, add prototype for init_sched_attrs and make
18002 internal_dfa_insn_code and insn_default_latency function pointers,
18003 otherwise define init_sched_attrs as dummy macro.
18004 * cfgexpand.c: Include insn-attr.h.
18005 (gimple_expand_cfg): Call init_sched_attrs.
18007 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
18010 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
18011 va_arg from a set of register save slots into a temporary,
18012 if the container is bigger than type size, do the copying
18013 using smaller mode or using memcpy.
18016 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
18018 (sel_print_to_dot): Remove macro.
18019 (sel_print): Likewise. New prototype.
18020 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
18021 (sel_print): New function.
18023 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18025 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
18026 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
18028 2010-06-21 Nick Clifton <nickc@redhat.com>
18030 * config/rx/rx.h (PTRDIFF_TYPE): Define.
18031 (SMALL_REGISTER_CLASS): Define (to zero).
18032 (PRINT_OPERAND): Delete.
18033 (PRINT_OPERAND_ADDRESS): Delete.
18034 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
18035 (rx_print_operand_address): Delete prototype.
18036 * config/rx/rx.c (rx_print_operand): Make static.
18037 Allow %H and %L to handle CONST_DOUBLEs.
18038 (rx_print_operand_address): Make static.
18039 (rx_gen_move_template): Rename local variable 'template' to
18041 (rx_function_arg): Do not pass unknown sized objects in registers.
18042 (TARGET_PRINT_OPERAND): Define.
18043 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18045 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18047 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
18049 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
18051 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
18052 stack-alignment for simple leaf-functions.
18054 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
18056 * doc/install.texi: Document bootstrap-lto.
18058 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
18061 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
18062 (input_function): Drop them here, if VTA is disabled.
18064 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
18067 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
18069 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
18070 ix86_swapped_fp_comparsion_operator instead of
18071 ix86_fp_comparison_operator.
18073 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
18074 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
18075 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
18076 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
18077 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
18078 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
18080 2010-06-20 Joseph Myers <joseph@codesourcery.com>
18083 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
18084 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
18085 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
18086 (decode_cmdline_option): Update for this return value. Set
18087 orig_option_with_args_text field. Set arg field for unknown
18088 options. Make static.
18089 (decode_cmdline_options_to_array): New.
18090 (prune_options): Update handling of find_opt return value.
18091 * opts.c (read_cmdline_option): Take decoded option. Return void.
18092 (read_cmdline_options): Take decoded options.
18093 (decode_options): Add parameters for decoded options. Use
18094 decode_cmdline_options_to_array. Use decoded options for -O
18095 scan. Use integral_argument for -O parameters. Update call to
18096 read_cmdline_options.
18097 (enable_warning_as_error): Update handling of find_opt return value.
18098 * opts.h: Update comment on unknown options.
18099 (struct cl_decoded_option): Update comments on opt_index and arg.
18100 Add orig_option_with_args_text.
18101 (decode_cmdline_option): Remove.
18102 (decode_cmdline_options_to_array): Declare.
18103 (decode_options): Update prototype.
18104 * toplev.c (save_argv): Remove.
18105 (save_decoded_options, save_decoded_options_count): New.
18106 (read_integral_parameter): Remove.
18107 (print_switch_values): Use decoded options.
18108 (toplev_main): Don't set save_argv. Update call to decode_options.
18109 * toplev.h (read_integral_parameter): Remove.
18110 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
18112 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
18115 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
18117 * constraints.md (Pw, Px): New constraints.
18118 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
18120 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
18122 * config/i386/sse.md (fma4modesuffixf4): Removed.
18123 (ssemodesuffixf2s): Likewise.
18124 (ssemodesuffixf4): Likewise.
18125 (ssemodesuffixf2c): Likewise.
18126 (ssescalarmodesuffix2s): Likewise.
18127 (avxmodesuffixf2c): Likewise.
18128 (ssemodesuffix): New.
18129 (ssescalarmodesuffix): Likewise.
18130 Update patterns with ssemodesuffix and ssescalarmodesuffix.
18132 2010-06-19 Philip Herron <herron.philip@googlemail.com>
18134 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
18136 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
18138 * stor-layout.c (debug_rli): Remove unused local variables.
18140 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
18142 PR rtl-optimization/40900
18143 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
18144 original expression for later reuse.
18145 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
18146 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
18148 2010-06-18 Anatoly Sokolov <aesok@post.ru>
18150 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
18151 double_int_fits_in_uhwi_p): Implement as static inline.
18152 (double_int_xor): New inline function.
18153 (double_int_lrotate, double_int_rrotate, double_int_max,
18154 double_int_umax, double_int_smax, double_int_min, double_int_umin,
18155 double_int_smin): Declare.
18156 (lrotate_double, rrotate_double): Remove declaration.
18157 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
18158 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
18159 (double_int_lrotate, double_int_rrotate, double_int_max,
18160 double_int_umax, double_int_smax, double_int_min, double_int_umin,
18161 double_int_smin): New function.
18162 * fold-const.c (int_const_binop): Clean up, use double_int_*
18164 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
18165 double_int_* and immed_double_int_const functions.
18167 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
18169 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
18170 * function.c (types_used_by_cur_var_decl): Likewise.
18171 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
18173 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
18175 * tree.h (record_layout_info): Change type of pending_statics field
18177 * stor-layout.c (start_record_layout): Store NULL into
18179 (debug_rli): Call debug_vec_tree instead of debug_tree.
18180 (place_field): Likewise.
18181 (finish_record_layout): Likewise.
18183 2010-06-18 Alan Modra <amodra@gmail.com>
18185 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
18187 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18190 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
18191 for SET source operand from SET destination operand.
18193 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
18195 PR rtl-optimization/39871
18196 * reload1.c (init_eliminable_invariants): For flag_pic, disable
18197 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
18198 (function_invariant_p): Rule out a plus of frame or arg pointer with
18200 * ira.c (find_reg_equiv_invariant_const): Likewise.
18202 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
18204 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
18205 print_operand_address and puts to output the operand for CONST.
18207 2010-06-17 Jakub Jelinek <jakub@redhat.com>
18210 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
18213 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18215 * v850-protos.h (print_operand): Delete.
18216 (print_operand_address): Delete.
18217 * v850.h (PRINT_OPERAND): Delete.
18218 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18219 (PRINT_OPERAND_ADDRESS): Delete.
18220 * v850.c (print_operand_address): Rename to...
18221 (v850_print_operand_address): ...this. Make static. Call
18222 v850_print_operand.
18223 (print_operand): Rename to...
18224 (v850_print_operand): ...this. Make static. Call
18225 v850_print_operand_address.
18226 (v850_print_operand_punct_valid_p): New function.
18227 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18228 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18230 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18232 * config/sh/sh-protos.h (print_operand): Delete.
18233 (print_operand_address): Delete.
18234 * config/sh/sh.h (PRINT_OPERAND): Delete.
18235 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18236 (PRINT_OPERAND_ADDRESS): Delete.
18237 * config/sh/sh.c (sh_print_operand_address): Make static.
18238 (sh_print_operand): Make static. Call sh_print_operand_address
18239 and sh_print_operand.
18240 (sh_print_operand_punct_valid_p): New function.
18241 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18242 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18244 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18246 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
18247 (mcore_print_operand_address): Delete.
18248 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
18249 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18250 (PRINT_OPERAND_ADDRESS): Delete.
18251 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
18252 (mcore_print_operand): Make static.
18253 (mcore_print_operand_punct_valid_p): New function.
18254 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
18255 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18257 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18259 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
18260 (print_operand_address): Delete.
18261 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
18262 (PRINT_OPERAND_ADDRESS): Delete.
18263 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
18265 (m68hc11_print_operand): Make static.
18266 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18268 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18270 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
18271 (m32r_print_operand_address): Delete.
18272 * config/m32r/m32r.h (m32r_punct_chars): Delete.
18273 (PRINT_OPERAND): Delete.
18274 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18275 (PRINT_OPERAND_ADDRESS): Delete.
18276 * config/m32r/m32r.c (m32r_punct_chars): Make static.
18277 (m32r_print_operand_address): Make static.
18278 (m32r_print_operand): Make static.
18279 (m32r_print_operand_punct_valid_p): New function.
18280 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18281 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18283 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18285 * config/iq2000/iq2000-protos.h (print_operand): Delete.
18286 (print_operand_address): Delete.
18287 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
18288 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18289 (PRINT_OPERAND_ADDRESS): Delete.
18290 (iq2000_print_operand_punct): Delete.
18291 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
18292 (iq2000_print_operand_address): Make static.
18293 (iq2000_print_operand): Make static.
18294 (iq2000_print_operand_punct_valid_p): New function.
18295 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18296 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18298 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18300 * config/frv/frv-protos.h (frv_print_operand): Delete.
18301 (frv_print_operand_address): Delete.
18302 * config/frv/frv.h (PRINT_OPERAND): Delete.
18303 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18304 (PRINT_OPERAND_ADDRESS): Delete.
18305 * config/frv/frv.c (frv_print_operand_address): Make static.
18306 (frv_print_operand): Make static.
18307 (frv_print_operand_punct_valid_p): New function.
18308 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18309 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18311 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18313 * tree.h (vec_member): Declare.
18314 * tree.c (vec_member): Define.
18316 2010-06-17 Richard Guenther <rguenther@suse.de>
18318 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
18319 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
18321 2010-06-17 Richard Guenther <rguenther@suse.de>
18323 * tree-inline.c (declare_return_variable): Remove bogus code.
18325 2010-06-17 Richard Guenther <rguenther@suse.de>
18327 * gimplify.c (gimplify_bind_expr): Always promote complex
18328 and vector variables to registers if possible.
18330 2010-06-17 Richard Guenther <rguenther@suse.de>
18332 * expr.c (get_inner_reference): Use double_int for bit_offset
18335 2010-06-16 DJ Delorie <dj@redhat.com>
18337 * common.opt (-fstrict-volatile-bitfields): new.
18338 * doc/invoke.texi: Document it.
18339 * fold-const.c (optimize_bit_field_compare): For volatile
18340 bitfields, use the field's type to determine the mode, not the
18342 * expr.c (expand_assignment): Likewise.
18343 (get_inner_reference): Likewise.
18344 (expand_expr_real_1): Likewise.
18345 * expmed.c (store_fixed_bit_field): Likewise.
18346 (extract_bit_field_1): Likewise.
18347 (extract_fixed_bit_field): Likewise.
18349 2010-06-16 Richard Guenther <rguenther@suse.de>
18351 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
18353 2010-06-16 Douglas B Rupp <rupp@gnat.com>
18355 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
18356 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
18357 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
18358 * debug.c: Likewise.
18359 * sdbout.c: Likewise.
18360 * vmsdbgout.c: Likewise.
18361 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
18362 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
18363 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
18364 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
18365 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
18366 * dwarf2out.c (dw_fde_struct): New fields
18367 dw_fde_vms_{end,begin}_prologue.
18368 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
18369 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
18370 (dwarf2out_vms_end_prologue): New function.
18371 (dwarf2out_vms_begin_epilogue): New function.
18372 (dw_val_struct): New value dw_val_class_vms_delta.
18373 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
18374 begin_epilogue for VMS.
18375 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
18376 new static functions.
18377 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
18378 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
18380 (print_die): New case dw_val_class_vms_delta.
18381 (attr_checksum): Likewise.
18382 (same_dw_val_p: Likewise.
18383 (size_of_die): Likewise.
18384 (value_format): Likewise.
18385 (output_die): Likewise.
18386 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
18387 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
18388 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
18389 dwarf2out_cfi_begin_epilogue
18390 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
18392 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
18394 * config/cris/cris-protos.h (cris_print_operand): Delete.
18395 (cris_print_operand_address): Delete.
18396 * config/cris/cris.h (PRINT_OPERAND): Delete.
18397 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18398 (PRINT_OPERAND_ADDRESS): Delete.
18399 * config/cris/cris.c (cris_print_operand_address): Make static.
18400 (cris_print_operand): Make static.
18401 (cris_print_operand_punct_valid_p): New function.
18402 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18403 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18405 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
18407 * config/arm/arm-protos.h (arm_print_operand): Delete.
18408 (arm_print_operand_address): Delete.
18409 * config/arm/arm.h (PRINT_OPERAND): Delete.
18410 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18411 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
18412 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
18413 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
18414 (arm_print_operand): Make static.
18415 (arm_print_operand_punct_valid_p): New function.
18416 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18417 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18419 2010-06-16 Nick Clifton <nickc@redhat.com>
18421 * config/rx/constraints.md (NEGint4): New constraint.
18422 * config/rx/rx.md (attr cc): Add set_zsc.
18423 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
18426 (call_internal): Clobber the cc0 register.
18427 (call_value_internal): Likewise.
18428 (cstoresi4): Likewise.
18429 (movsieq): Likewise.
18430 (movsine): Likewise.
18431 (addsi3): Add alternative to handle small negative constants.
18432 (sunsi3): Likewise.
18433 (addsi3): Do not set the O bit in the cc0 register.
18434 (adddi3): Likewise.
18435 (subsi3): Likewise.
18436 (subdi3): Likewise.
18437 (andsi3): Reorder alternatives to prefer shorter forms.
18438 (mulsi3): Likewise.
18439 (iorsi3): Likewise.
18440 (negsi2): Note that the cc0 flags are set.
18441 (rotlsi3): Note that only the Z and S bits are set in cc0.
18442 (lshrsi3): Likewise.
18443 (ashlsi3): Likewise.
18444 (subsf3): Use %Q for the MEM operand.
18445 (fix_truncsfsi2): Likewise.
18446 (floatsisf2): Likewise.
18447 (bitset): Remove early clobber from destination.
18448 (bitset_in_memory): Likewise.
18449 (lrintsf2): Clobber the cc0 register.
18450 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
18451 (rx_print_operand): Handle %N.
18453 2010-06-16 Jan Hubicka <jh@suse.cz>
18455 * df-core.c (df_compact_blocks): Free problem_temps vector.
18457 2010-06-16 Martin Jambor <mjambor@suse.cz>
18459 PR tree-optimization/43905
18460 * tree-sra.c: Include tree-inline.h.
18461 (create_abstract_origin): Removed.
18462 (modify_function): Version the call graph node instead of creating
18463 abstract origins and dealing with same_body aliases.
18464 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
18465 function is versionable.
18466 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
18468 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
18470 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
18471 (CHOOSE_DYNAMIC_LINKER): Update.
18473 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
18475 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
18476 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
18477 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
18478 *prefetch_3dnow_rex.
18480 2010-06-15 Anatoly Sokolov <aesok@post.ru>
18482 * target.h (struct asm_out):Add declare_constant_name field.
18483 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
18484 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
18485 * output.h (default_asm_declare_constant_name): Declare.
18486 (assemble_label): Update prototype.
18487 * varasm.c (assemble_constant_contents): Use
18488 targetm.asm_out.declare_constant_name target hook.
18489 (assemble_label): Add 'file' argument.
18490 (default_asm_declare_constant_name): New function.
18491 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
18492 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
18493 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
18495 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
18496 * config/darwin.c (darwin_asm_declare_constant_name): New function.
18497 (machopic_output_indirection): Update assemble_label argument list.
18498 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
18499 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
18501 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
18503 PR middle-end/44391
18504 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
18505 size_one_node for pointer types. Do not call gmp_cst_to_tree.
18507 2010-06-15 Richard Guenther <rguenther@suse.de>
18509 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
18511 2010-06-15 Paul Brook <paul@codesourcery.com>
18513 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
18516 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
18518 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
18519 don't get a vector type for output.
18521 2010-06-15 Jakub Jelinek <jakub@redhat.com>
18524 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
18525 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
18526 (LANG_HOOKS_DECLS): Add it.
18527 * gimplify.c (omp_notice_variable): Call
18528 lang_hooks.decls.omp_report_decl.
18530 2010-06-15 Martin Jambor <mjambor@suse.cz>
18533 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
18534 on the newly dead SSA name.
18536 2010-06-15 Alan Modra <amodra@gmail.com>
18538 * doc/invoke.texi: Add mcmodel to powerpc options.
18539 * configure.ac: Add HAVE_LD_LARGE_TOC test.
18540 * configure: Regenerate.
18541 * config.in: Regenerate.
18542 * config/rs6000/linux64.opt (mcmodel): New.
18543 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
18544 (TARGET_CMODEL, SET_CMODEL): Define.
18545 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
18546 select CMODEL_MEDIUM default.
18547 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
18548 (TARGET_CMODEL): Define default.
18549 * config/rs6000/rs6000.c (cmodel): New variable.
18550 (rs6000_explicit_options): Add cmodel field.
18551 (rs6000_handle_option): Handle -mcmodel.
18552 (create_TOC_reference): Add largetoc_reg param. Generate high,
18553 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
18554 (rs6000_delegitimize_address): Recognise new toc reference rtl
18555 and minimal-toc rtl.
18556 (rs6000_legitimize_reload_address): Handle new toc references.
18557 (print_operand_address): Handle legitimate_constant_pool_address_p
18558 match before lo_sum.
18559 (rs6000_eliminate_indexed_memrefs): Tidy.
18560 (rs6000_emit_move): Tweak threshold for inlining constants.
18561 Keep rs6000_emit_allocate_stack large stack frame offsets
18562 loaded into r0 inline.
18563 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
18564 (tocrel_base, tocrel_offset): New variables.
18565 (toc_relative_expr_p): Set them here.
18566 (print_operand_address): Skip over any offset on constant pool address.
18567 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
18568 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
18569 (offsettable_ok_by_alignment): New function.
18570 (rs6000_emit_move): Address suitably aligned local symbol_refs
18571 relative to the toc pointer for -mcmodel=medium.
18572 (legitimate_constant_pool_address_p): Make param const_rtx. Add
18573 strict param. Allow lo_sum version of addressing. Verify reg
18574 used for -mminimal-toc and -mcmodel != small. Update all callers.
18575 * config/rs6000/constraints.md: Update for above change.
18576 * config/rs6000/predicates.md: Likewise.
18577 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
18579 (tls_gd): Split for -mcmodel=medium/large.
18580 (tls_gd_high, tls_gd_low): New.
18581 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
18582 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
18583 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
18584 (largetoc_high, largetoc_low): New.
18585 (cmptf_internal2): Add clobber.
18586 * config/rs6000/rs6000-protos.h: Update.
18588 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
18590 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
18591 true if no prefetch is going to be generated for a given group.
18592 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
18593 estimate the prefetch_count.
18594 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
18595 prefetch count by considering the unroll_factor and prefetch_mod
18596 for is_loop_prefetching_profitable.
18598 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
18600 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
18601 anything if the argument is not a MEM.
18603 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
18608 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
18610 (canonicalize_loop_ivs): Likewise.
18612 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
18615 * haifa-sched.c (setup_insn_reg_pressure_info,
18616 update_register_pressure): Reject debug insns.
18617 (ready_sort): Don't setup reg pressure for debug insns.
18618 (schedule_insn): Don't update reg pressure for debug insns.
18620 2010-06-14 Richard Guenther <rguenther@suse.de>
18622 * lto-streamer.c (cached_bp): Remove.
18623 (bitpack_delete): Likewise.
18624 (bitpack_create): Likewise.
18625 (bp_get_next_word): Likewise.
18626 (bp_pack_value, bp_unpack_value): Move ...
18627 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
18629 (struct bitpack_d): Likewise.
18630 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
18631 New inline functions.
18632 * lto-streamer-out.c (lto_output_bitpack): Remove.
18633 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
18634 (pack_value_fields): Adjust.
18635 (lto_write_tree): Likewise.
18636 (output_gimple_stmt): Likewise.
18637 (output_function): Likewise.
18638 * lto-streamer-in.c (input_gimple_stmt): Adjust.
18639 (input_function): Likewise.
18640 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
18641 (lto_input_bitpack): Remove.
18642 (lto_materialize_tree): Adjust.
18643 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
18644 * lto-cgraph.c (lto_output_edge): Adjust.
18645 (lto_output_node): Likewise.
18646 (lto_output_varpool_node): Likewise.
18647 (lto_output_ref): Likewise.
18648 (input_node): Likewise.
18649 (input_varpool_node): Likewise.
18650 (input_ref): Likewise.
18651 (input_edge): Likewise.
18652 (output_node_opt_summary): Likewise.
18653 (input_node_opt_summary): Likewise.
18654 * ipa-pure-const.c (pure_const_write_summary): Likewise.
18655 (pure_const_read_summary): Likewise.
18656 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
18657 (ipa_read_indirect_edge_info): Likewise.
18658 (ipa_write_node_info): Likewise.
18659 (ipa_read_node_info): Likewise.
18661 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
18664 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
18665 (vec_extract_lo_v16hi): Likewise.
18666 (vec_extract_lo_v32qi): Likewise.
18668 2010-06-14 Jakub Jelinek <jakub@redhat.com>
18671 * tree.h (build_call_expr): Don't define as vararg macro, instead
18673 * builtins.c (build_call_nofold): Remove.
18674 (expand_builtin_int_roundingfn, expand_builtin_pow,
18675 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
18676 expand_builtin_memset_args, expand_builtin_strcmp,
18677 expand_builtin_strncmp, expand_builtin_memory_chk): Use
18678 build_call_nofold_loc instead of build_call_nofold.
18679 (build_call_expr): New function.
18681 PR tree-optimization/44508
18682 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
18683 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
18684 don't eliminate trivially dead stmts.
18685 * tree-vrp.c (vrp_finalize): Pass false as last argument
18686 to substitute_and_fold.
18687 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
18688 to substitute_and_fold.
18689 * tree-ssa-ccp.c (ccp_finalize): Likewise.
18692 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
18694 2010-06-14 Ira Rosen <irar@il.ibm.com>
18696 PR tree-optimization/44507
18697 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
18698 to build initial vector for BIT_AND_EXPR.
18699 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
18701 2010-06-14 Jakub Jelinek <jakub@redhat.com>
18703 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
18704 adjust z10prop set_attr.
18706 2010-06-13 Jan Hubicka <jh@suse.cz>
18708 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
18709 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
18710 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
18711 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
18712 datastructure checks into checking asserts.
18713 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
18714 * tree-ssa-sccvn.c (VN_INFO): Likewise.
18715 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
18716 df_ref_create_structure): Likewise.
18717 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
18718 pool_free): Use gcc_checking_assert.
18719 * alias.c (get_alias_set): Likewise.
18720 * var-tracking.c (variable_htab_free, shared_hash_copy,
18721 canonicalize_values_mark, variable_merge_over_cur): Likewise.
18722 * lto-streamer.c (bp_unpack_value): Likewise.
18724 2010-06-13 Richard Guenther <rguenther@suse.de>
18726 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
18727 Do not stream but initialize TYPE_CANONICAL to NULL.
18728 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
18729 * gimple.c (gimple_types_compatible_p): Disregard
18730 TYPE_STRUCTURAL_EQUALITY_P.
18731 (gimple_register_type): Use TYPE_CANONICAL as cache.
18732 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
18733 before registering common types.
18734 * config/i386/i386.c (ix86_function_arg_boundary): Do not
18735 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
18736 * tree.h (TYPE_CANONICAL): Clarify documentation.
18738 2010-06-13 Anatoly Sokolov <aesok@post.ru>
18740 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
18741 LIBCALL_VALUE): Remove macros.
18742 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
18743 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18744 TARGET_FUNCTION_VALUE_REGNO_P): Define.
18745 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
18746 (ia64_function_value): Make static. Handle receiving the function
18747 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
18749 2010-06-12 Jan Hubicka <jh@suse.cz>
18751 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
18754 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
18756 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
18758 2010-06-12 Jan Hubicka <jh@suse.cz>
18760 * df-core.c (df_clear_bb_info): New function.
18761 (df_set_blocks): bb_info is always allocated.
18762 (df_get_bb_info): Use block_info_elt_size.
18763 (df_set_bb_info): Likewise.
18764 (df_compact_blocks): Update for new block_info.
18765 (grow_bb_info): New function.
18766 * df-problems.c (df_grow_bb_info): Move to df-core.c
18767 (df_rd_set_bb_info): Remove.
18768 (df_rd_free_bb_info): Do not free block pool.
18769 (df_rd_alloc): Do not create pool, use check for
18770 obstack presence instead of NULL pointer for new blocks.
18771 (df_rd_free): DO not free alloc pool; clear block_info.
18772 (problem_RD): Add size of block info structure.
18773 (df_lr_set_bb_info): Remove.
18774 (df_lr_free_bb_info): Do not free block pool.
18775 (df_lr_alloc): Do not create pool, use check for
18776 obstack presence instead of NULL pointer for new blocks.
18777 (df_lr_free): DO not free alloc pool; clear block_info.
18778 (problem_LR): Add size of block info structure.
18779 (df_live_set_bb_info): Remove.
18780 (df_live_free_bb_info): Do not free block pool.
18781 (df_live_alloc): Do not create pool, use check for
18782 obstack presence instead of NULL pointer for new blocks.
18783 (df_live_free): DO not free alloc pool; clear block_info.
18784 (problem_LIVE): Add size of block info structure.
18785 (problem_CHAIN): Add size of block info structure.
18786 (df_byte_lr_set_bb_info): Remove.
18787 (df_byte_lr_free_bb_info): Do not free block pool.
18788 (df_byte_lr_alloc): Do not create pool, use check for
18789 obstack presence instead of NULL pointer for new blocks.
18790 (df_byte_lr_free): DO not free alloc pool; clear block_info.
18791 (problem_BYTE_LR): Add size of block info structure.
18792 (problem_NOTE): Add size of block info structure.
18793 (df_byte_MD_set_bb_info): Remove.
18794 (df_byte_MD_free_bb_info): Do not free block pool.
18795 (df_byte_MD_alloc): Do not create pool, use check for
18796 obstack presence instead of NULL pointer for new blocks.
18797 (df_byte_MD_free): DO not free alloc pool; clear block_info.
18798 (problem_BD): Add size of block info structure.
18799 * df-scan.c (df_scan_free_internal): Free block pool.
18800 (df_scan_set_bb_info): Remove.
18801 (df_scan_free_bb_info): Check for artificial_defs instead
18802 of bb_info being non-NULL.
18803 (df_scan_alloc): DO not create df_scan_block pool.
18804 (problem_SCAN): Set size of block info.
18805 (df_bb_refs_record): Do not allocate bb_info.
18806 * df.h (df_problem): Add block_info_elt_size.
18807 (struct dataflow): Change block_info to void *.
18808 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
18809 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
18810 in-line structures.
18812 2010-06-12 Jan Hubicka <jh@suse.cz>
18814 PR tree-optimize/44485
18815 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
18816 containing use of return value of noreturn function.
18818 2010-06-12 Anatoly Sokolov <aesok@post.ru>
18820 * targhooks.c (default_function_value): Don't use
18821 FUNCTION_OUTGOING_VALUE.
18822 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
18823 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
18825 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
18827 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
18828 Add crtfastmath.o to extra_parts.
18829 * config/mips/crtfastmath.c: New.
18830 * config/mips/linux.h (ENDFILE_SPEC): New.
18832 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
18834 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
18835 old_type in parameter.
18836 (gcc_type_for_value): Update call to gcc_type_for_interval.
18837 (compute_type_for_level_1): Renamed compute_type_for_level.
18838 Update call to gcc_type_for_interval.
18840 2010-06-11 Joseph Myers <joseph@codesourcery.com>
18842 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
18843 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
18845 2010-06-11 Joseph Myers <joseph@codesourcery.com>
18847 * opts-common.c: Include options.h.
18848 (integral_argument): Move from opts.c.
18849 (decode_cmdline_option): New. Based on read_cmdline_option.
18850 * opts.c (integral_argument): Move to opts-common.c.
18851 (read_cmdline_option): Move most contents to
18852 decode_cmdline_option. Use %qs in diagnostics.
18853 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
18854 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
18855 decode_cmdline_option): New.
18857 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
18860 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
18861 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
18862 (partiysi2_cmp): Ditto.
18863 (*partiyhi2_cmp): Ditto.
18864 (*parityqi2_cmp): Remove.
18866 2010-06-11 Jan Hubicka <jh@suse.cz>
18868 * bitmap.h (bmp_iter_next_bit): New.
18869 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
18871 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
18872 Eric Botcazou <ebotcazou@adacore.com>
18874 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
18877 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
18879 * config/i386/i386.md (unspec): New define_c_enum.
18882 2010-06-10 Jakub Jelinek <jakub@redhat.com>
18884 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
18886 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
18888 PR middle-end/44483
18889 * tree-if-conv.c (bb_predicate_s): New struct.
18890 (bb_predicate_p): New.
18891 (bb_has_predicate): New.
18892 (bb_predicate): New.
18893 (set_bb_predicate): New.
18894 (bb_predicate_gimplified_stmts): New.
18895 (set_bb_predicate_gimplified_stmts): New.
18896 (add_bb_predicate_gimplified_stmts): New.
18897 (init_bb_predicate): New.
18898 (free_bb_predicate): New.
18899 (is_predicated): Use bb_predicate.
18900 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
18901 (predicate_bbs): Same. Gimplify the condition of the basic blocks
18902 before processing their successors.
18903 (clean_predicate_lists): Removed.
18904 (find_phi_replacement_condition): Use bb_predicate.
18905 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
18907 (insert_gimplified_predicates): New.
18908 (combine_blocks): Call insert_gimplified_predicates.
18909 (tree_if_conversion): Call free_bb_predicate instead of
18910 clean_predicate_lists.
18912 2010-10-11 Paul Brook <paul@codesourcery.com>
18914 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
18915 * config/arm/arm.c (all_architectures): Change v7e-m default to
18917 * config/arm/arm-cores.def: Add cortex-m4.
18918 * config/arm/arm-tune.md: Regenerate.
18920 2010-06-11 Jan Hubicka <jh@suse.cz>
18922 * ipa-pure-const.c (special_builtlin_state): New function.
18923 (check_call): Use it instead of special casign BUILT_IN_RETURN.
18924 (propagate_pure_const): Use it.
18926 2010-06-11 Jan Hubicka <jh@suse.cz>
18928 * df-problems.c (df_live_scratch): Convert to bitmap_head.
18929 (df_live_alloc): Initialize df_live_scratch when initializing
18931 (df_live_transfer_function): Update uses of df_live_scratch.
18932 (df_live_free): Free problem_data; clear df_live_scratch before
18933 releasing the obstack.
18934 (df_md_free): Free problem data.
18936 2010-06-11 Jan Hubicka <jh@suse.cz>
18938 * doc/invoke.texi (Wsuggest-attribute): Document.
18939 (Wmissing-noreturn): Remove.
18940 * ipa-pure-const.c (warn_function_noreturn): New function.
18941 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
18942 warn_missing_noreturn.
18943 * common.opt (Wsuggest-attribute=noreturn): New.
18944 * tree-flow.h (warn_function_noreturn): Declare.
18945 * tree-cfg.c (execute_warn_function_noreturn): Use
18946 warn_function_noreturn.
18947 (gate_warn_function_noreturn): New.
18948 (pass_warn_function_noreturn): Update.
18950 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
18952 * c-typeck.c (handle_warn_cast_qual): Add loc
18953 parameter. Improve warning message.
18954 (build_c_cast): Pass location to handle_warn_cast_qual.
18956 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
18958 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
18959 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
18961 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
18963 2010-06-10 Dodji Seketeli <dodji@redhat.com>
18965 Fix bootstap on mips
18966 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
18967 be naming typedefs.
18969 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
18971 * system.h (helper_const_non_const_cast): New inline for
18972 gcc version <= 4.0.
18973 (CONST_CAST2): For gcc version <= 4.0 use
18974 new helper to do const/non-const casting.
18976 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18978 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
18979 * Makefile.in (OBJS-common): Include insn-enums.o.
18980 (insn-enums.o): New rule.
18981 (simple_generated_c): Add insn-enums.c.
18982 (build/genenums.o): New rule.
18983 (genprogmd): Add "enums".
18984 * genconstants.c (print_enum_type): Declare a C string array
18986 * genenums.c: New file.
18987 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
18988 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
18989 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
18991 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18993 * doc/md.texi (define_enum_attr): Document.
18994 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
18995 * read-md.h (lookup_enum_type): Declare.
18996 * read-md.c (lookup_enum_type): New function.
18997 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
18998 * genattrtab.c (attr_desc): Add an enum_name field.
18999 (evaluate_eq_attr): Take the associated attribute as argument.
19000 Get the enum prefix from the enum_name field, if defined.
19001 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
19002 (simplify_test_exp): Pass attr to evaluate_eq_attr.
19003 (add_attr_value): New function, split out from...
19004 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
19005 (write_test_expr): Pass attr to evaluate_eq_attr.
19006 (write_attr_get): Use the enum_name as the enum tag, if defined.
19007 (write_attr_valueq): Use the enum_name as a prefix, if defined.
19008 (find_attr): Initialize enum_name.
19009 (main): Handle DEFINE_ENUM_ATTR.
19010 * gensupport.c (process_rtx): Likewise.
19011 * config/mips/mips.h (mips_tune_attr): Delete.
19012 * config/mips/mips.md (cpu): Use define_attr_enum.
19014 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19016 * doc/md.texi (define_c_enum, define_enum): Document.
19017 * read-md.h (md_constant): Add a parent_enum field.
19018 (enum_value, enum_type): New structures.
19019 (upcase_string, traverse_enum_types): Declare.
19020 * read-md.c (enum_types): New variable.
19021 (upcase_string, add_constant): New functions.
19022 (handle_constants): Don't create the hash table here.
19024 (traverse_md_constants): Don't check for a null md_constants.
19025 (decimal_string, handle_enum, traverse_enum_types): New functions.
19026 (read_md_files): Initialize md_constants and md_enums.
19027 * genconstants.c (print_md_constant): Ignore info argument.
19028 Only print constants that belong to no enum.
19029 (print_enum_type): New function.
19030 (main): Don't pass stdout to print_md_constant. Call print_enum_type
19031 for each defined enum type.
19032 * config/mips/mips.md (processor): New define_enum.
19033 (unspec): New define_c_enum.
19034 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
19035 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
19036 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
19037 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
19038 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
19039 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
19040 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
19041 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
19042 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
19043 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
19044 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
19045 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
19046 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
19047 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
19048 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
19049 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
19050 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
19051 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
19052 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
19053 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
19054 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
19055 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
19056 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
19057 (UNSPEC_RDDSP): Move to mips-dsp.md.
19058 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
19059 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
19060 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
19061 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
19062 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
19063 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
19064 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
19065 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
19066 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
19067 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
19068 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
19069 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
19070 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
19071 Moved to mips-dspr2.md.
19072 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
19073 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
19074 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
19075 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
19076 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
19077 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
19078 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
19079 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
19080 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
19081 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
19082 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
19083 UNSPEC_LOONGSON_PSADBH)
19084 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
19085 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
19086 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
19087 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
19088 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
19089 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
19090 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
19091 (cpu): Update comment.
19092 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
19093 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
19094 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
19095 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
19096 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
19097 UNSPEC_LOONGSON_PCMPEQ)
19098 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
19099 UNSPEC_LOONGSON_PINSR_0)
19100 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
19101 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
19102 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
19103 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
19104 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
19105 UNSPEC_LOONGSON_PSADBH)
19106 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
19107 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
19108 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
19109 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
19110 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
19111 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
19112 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
19113 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
19114 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
19115 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
19116 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
19117 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
19118 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
19119 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
19120 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
19121 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
19122 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
19123 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
19124 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
19125 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
19126 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
19127 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
19128 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
19129 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
19130 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
19131 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
19132 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
19133 (UNSPEC_RDDSP): Moved from mips.md.
19134 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
19135 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
19136 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
19137 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
19138 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
19139 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
19140 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
19141 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
19142 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
19143 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
19144 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
19145 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
19146 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
19147 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
19148 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
19149 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
19150 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
19151 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
19152 (UNSPEC_SCC): Moved from mips.md.
19153 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
19154 "processor_type" to "processor".
19155 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
19156 * config/mips/mips.h (processor_type): Delete.
19157 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
19158 "processor_type" to "processor".
19160 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19162 * configure.ac (tm_include_list): Add insn-constants.h.
19163 * configure: Regenerate.
19164 * Makefile.in (GTM_H): Move insn-constants.h here from...
19166 * mkconfig.sh: Remove special handling for insn-constants.h.
19168 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19170 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
19171 (BUILD_MD): ...this new variable.
19172 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
19173 that include the old contents of simple_generated_h and
19174 simple_generated_c.
19175 (simple_generated_h, simple_generated_c): Include them. Add
19177 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
19178 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
19179 Remove these dependencies from the main rule and include
19180 insn-conditions.md in the command line only if it appears
19181 in the dependency list.
19182 (insn-constants.h, s-constants): Delete.
19183 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
19185 (build/genmddeps.o): Likewise.
19186 (genprogrtl): New variable that contains everything from genprogmd
19187 except mddeps and constants.
19188 (genprogmd): Redefine in terms of genprogrtl. Make these programs
19189 depend on $(BUILD_MD)
19190 (genprog): New variable. Make these programs depend on
19192 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
19193 (main): Use read_md_files instead of init_rtx_reader_args.
19194 * genconstants.c: As for genmddeps.c.
19195 * read-md.h (read_skip_construct): Declare.
19196 * read-md.c (read_skip_construct): New function.
19197 (handle_file): Allow a null handle_directive, skipping the
19199 (parse_include): Update the comment accordingly.
19201 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19203 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
19204 * genmddeps.c: Include read-md.h.
19205 (main): Call init_rtx_reader_args instead of init_md_reader_args.
19206 * genattr.c (main): Likewise.
19207 * genattrtab.c (main): Likewise.
19208 * genautomata.c (main): Likewise.
19209 * gencodes.c (main): Likewise.
19210 * genconditions.c (main): Likewise.
19211 * genconfig.c (main): Likewise.
19212 * genconstants.c (main): Likewise.
19213 * genemit.c (main): Likewise.
19214 * genextract.c (main): Likewise.
19215 * genflags.c (main): Likewise.
19216 * genopinit.c (main): Likewise.
19217 * genoutput.c (main): Likewise.
19218 * genpeep.c (main): Likewise.
19219 * genrecog.c (main): Likewise.
19220 * genpreds.c (main): Likewise.
19221 * gensupport.h (in_fname): Move to read-md.h.
19222 (init_md_reader_args_cb): Rename to...
19223 (init_rtx_reader_args_cb): ...this and return a bool.
19224 (init_md_reader_args): Rename to...
19225 (init_rtx_reader_args): ...this and return a bool.
19226 (include_callback): Move to read-md.h.
19227 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
19228 (file_name_list, first_dir_md_include): Move to read-md.c
19229 (first_bracket_include): Delete unused variable.
19230 (last_dir_md_include): Move to read-md.c.
19231 (process_include): Delete, moving code to read-md.c:handle_include.
19232 (process_rtx): Don't handle INCLUDE.
19233 (save_string): Delete.
19234 (rtx_handle_directive): New function.
19235 (init_md_reader_args_cb): Rename to...
19236 (init_rtx_reader_args_cb): ...this and return a boolean success value.
19238 (init_md_reader_args): Rename to...
19239 (init_rtx_reader_args): ...this and return a boolean success value.
19240 * rtl.def (INCLUDE): Delete.
19241 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
19243 * read-rtl.c (read_conditions): Don't gobble ')' here.
19244 (read_mapping): Likewise.
19245 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
19246 Handle top-level non-rtx constructs here rather than in read_rtx_1.
19247 Store the whole queue in *X. Remove call to init_md_reader.
19248 (read_rtx_1): Rename to...
19249 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
19250 Don't handle top-level non-rtx constructs here. Don't handle (nil)
19252 (read_nested_rtx): New function. Handle (nil) here rather than
19254 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
19256 * read-md.h (directive_handler_t): New type.
19257 (in_fname, include_callback): Moved from read-md.h.
19258 (read_constants, init_md_reader): Delete.
19259 (read_md_files): Declare.
19260 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
19261 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
19263 (read_constants): Rename to...
19264 (handle_constants): ...this. Don't gobble ')' here.
19265 (handle_include, handle_file, handle_toplevel_file)
19266 (parse_include): New functions, mostly taken from gensupport.c.
19267 (init_md_reader): Subsume into...
19268 (read_md_files): ...this new function.
19270 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19272 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
19273 (unread_char): Decrement read_md_lineno after putting back '\n'.
19274 * read-md.c (fatal_with_file_and_line): Push back any characters
19275 that we decide not to add to the context.
19276 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
19277 fatal_expected_char in cases where '/' ends a line (for example).
19278 (read_name): Don't increment read_md_lineno here.
19279 (read_escape): Likewise.
19280 (read_quoted_string): Likewise.
19281 (read_braced_string): Likewise.
19283 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19285 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
19286 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
19287 * genconstants.c: Include read-md.h.
19288 * read-rtl.c (md_constants): Move to read-md.c.
19289 (md_name): Move to read-md.h.
19290 (initialize_iterators): Use leading_string_hash instead of def_hash
19291 and leading_string_eq_p instead of def_name_eq_p.
19292 (read_name): Move to read-md.c.
19293 (def_hash, def_name_eq_p): Delete.
19294 (read_constants, traverse_md_constants): Move to read-md.c.
19295 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
19296 * read-md.h: Include hashtab.h.
19297 (md_name): Moved from read-rtl.c.
19298 (md_constant): Moved from read-md.h.
19299 (leading_string_hash, leading_string_eq_p, read_name)
19300 (read_constants, traverse_md_constants): Declare.
19301 * read-md.c (md_constants): Moved from read-rtl.c.
19302 (leading_string_hash, leading_string_eq_p): New functions.
19303 (read_name, read_constants, traverse_md_constants): Moved from
19306 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19308 * read-rtl.c (md_name): New structure.
19309 (read_name): Take an md_name instead of a buffer pointer.
19310 Use the "string" field instead of strcpy when expanding constants.
19311 (read_constants): Remove the tmp_char argument. Update the calls
19312 to read_name, using two local name buffers instead of the tmp_char
19313 argument. Merge the constant-creation code.
19314 (read_conditions): Remove the tmp_char argument. Update the calls
19315 to read_name, using a local name buffer instead of the tmp_char
19317 (read_mapping): Replace tmp_char variable with a local name buffer.
19318 Update the calls to read_name.
19319 (read_rtx_1): Likewise. Update the calls to read_constants and
19322 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19324 * Makefile.in (build/read-md.o): Depend on errors.h.
19325 * read-md.h (error_with_line): Declare.
19326 * read-md.c: Include errors.h.
19327 (message_with_line_1): New function, extracted from...
19328 (message_with_line): ...here.
19329 (error_with_line): New function.
19330 * genattrtab.c: If a call to message_with_line is followed by
19331 "have_error = 1;", replace both statements with a call to
19333 * genoutput.c: Likewise.
19334 * genpreds.c: Likewise.
19335 * genrecog.c: If a call to message_with_line is followed by
19336 "error_count++;", replace both statements with a call to
19338 (errorcount): Delete.
19339 (main): Don't check it.
19340 * gensupport.c: If a call to message_with_line is followed by
19341 "errors = 1;", replace both statements with a call to error_with_line.
19343 (process_define_cond_exec): Check have_error instead of errors.
19344 (init_md_reader_args_cb): Likewise. Don't set errors.
19346 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19348 * read-md.h (read_md_file): Declare.
19349 (read_char, unread_char): New functions.
19350 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
19351 (read_quoted_string, read_string): Remove FILE * argument.
19352 * read-md.c (read_md_file): New variable.
19353 (read_md_filename, read_md_lineno): Update comments and remove
19354 unnecessary initialization.
19355 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
19356 (read_escape, read_quoted_string, read_braced_string, read_string):
19357 Remove FILE * argument. Update calls accordingly, using read_char
19358 and unread_char instead of getc and ungetc.
19359 * rtl.h (read_rtx): Remove FILE * argument.
19360 * read-rtl.c (iterator_group): Remove FILE * argument from
19362 (iterator_traverse_data): Remove "infile" field.
19363 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
19364 (add_mapping, read_name, read_constants, read_conditions)
19365 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
19366 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
19367 Remove file arguments from all calls, using read_char and unread_char
19368 instead of getc and ungetc.
19369 * gensupport.c (process_include): Preserve read_md_file around
19370 the include. Set read_md_file to the handle of the included file.
19371 Update call to read_rtx.
19372 (init_md_reader_args_cb): Set read_md_file to the handle of the file
19373 and remove local FILE *. Update calls to read_rtx.
19375 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19377 * read-md.h (read_rtx_lineno): Rename to...
19378 (read_md_lineno): ...this.
19379 (read_rtx_filename): Rename to...
19380 (read_md_filename): ...this.
19381 (copy_rtx_ptr_loc): Rename to...
19382 (copy_md_ptr_loc): ...this.
19383 (print_rtx_ptr_loc): Rename to...
19384 (print_md_ptr_loc): ...this.
19385 * read-md.c: Likewise. Update references after renaming.
19386 (string_obstack): Replace RTL with MD in comment.
19387 (set_rtx_ptr_loc): Rename to...
19388 (set_md_ptr_loc): ...this.
19389 (get_rtx_ptr_loc): Rename to...
19390 (get_md_ptr_loc): ...this.
19391 * genconditions.c: Update references after renaming.
19392 * genemit.c: Likewise.
19393 * genoutput.c: Likewise.
19394 * genpreds.c: Likewise.
19395 * gensupport.c: Likewise.
19396 * read-rtl.c: Likewise.
19398 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19400 * Makefile.in (READ_MD_H): New variable.
19401 (BUILD_RTL): Add build/read-md.o.
19402 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
19403 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
19404 (build/genattrtab.o, build/genconditions.o build/genemit.o)
19405 (build/genextract.o, build/genflags.o, build/genoutput.o)
19406 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
19407 (build/read-md.o): New rule.
19408 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
19409 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
19410 * coretypes.h: ...here.
19411 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
19412 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
19413 * genattr.c: Include read-md.h.
19414 * genattrtab.c: Likewise.
19415 * genconditions.c: Likewise.
19416 * genemit.c: Likewise.
19417 * genextract.c: Likewise.
19418 * genflags.c: Likewise.
19419 * genoutput.c: Likewise.
19420 * genpreds.c: Likewise.
19421 * genrecog.c: Likewise.
19422 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
19423 (join_c_conditions, print_c_condition, read_rtx_filename)
19424 (read_rtx_lineno): Move to read-md.h.
19425 * read-rtl.c: Include read-md.h.
19426 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
19427 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
19428 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
19429 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
19430 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
19431 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
19432 (read_braced_string, read_string): Move to read-md.c.
19433 (read_rtx): Move some initialization to init_md_reader and call
19434 init_md_reader here.
19435 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
19437 * gensupport.c: Include read-md.h.
19438 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
19439 * read-md.h, read-md.c: New files.
19441 2010-06-10 Anatoly Sokolov <aesok@post.ru>
19443 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19444 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19445 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
19446 * config/moxie/moxie.c (moxie_function_value): Make static.
19447 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
19448 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19450 2010-06-10 Martin Jambor <mjambor@suse.cz>
19452 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
19453 * dbgcnt.def (tree_sra): New counter.
19454 * tree-sra.c: Include dbgcnt.h.
19455 (gate_intra_sra): Check tree_sra debug counter.
19457 2010-06-10 Martin Jambor <mjambor@suse.cz>
19459 PR tree-optimization/44258
19460 * tree-sra.c (build_access_subtree): Return false iff there is a
19462 (build_access_trees): Likewise.
19463 (analyze_all_variable_accesses): Disqualify candidates if
19464 build_access_trees returns true for them.
19466 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
19469 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
19470 tail-recurse into canonical node. Fast-forward over
19471 non-canonical VALUEs.
19473 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
19476 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
19477 (*addsi_1_zext) <TYPE_LEA>: Likewise.
19478 (add lea splitter): Likewise.
19479 (add_zext lea splitter): Likewise.
19481 2010-06-10 Joseph Myers <joseph@codesourcery.com>
19483 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
19485 2010-06-10 Jan Hubicka <jh@suse.cz>
19487 * df-problems.c (df_live_problem_data): Add live_bitmaps.
19488 (df_live_alloc): Initialize problem data and live_osbtacks.
19489 (df_live_finalize): Remove obstack, problem data; do not
19491 (df_live_top_dump, df_live_bottom_dump): Do not dump old
19492 data when not allocated.
19493 (df_live_verify_solution_start): Do not allocate problem data.
19494 (df_live_verify_solution_end): Check if out is allocated.
19495 (struct df_md_problem_data): New structure.
19496 (df_md_alloc): Allocate problem data.
19497 (df_md_free): Free problem data; do not clear bitmaps.
19499 2010-06-10 Jan Beulich <jbeulich@novell.com>
19502 * configure.ac: Replace $() with ${} when intending to expand
19503 variables rather than invoking commands.
19504 * configure: Re-generate.
19506 2010-06-10 Jan Hubicka <jh@suse.cz>
19508 PR rtl-optimization/44460
19509 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
19510 TYPE_NEEDS_CONSTRUCTING sanity check.
19512 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
19514 * doc/include/fdl.texi: Move to GFDL version 1.3.
19516 * doc/cpp.texi: Move to GFDL version 1.3.
19517 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
19518 * doc/gccint.texi: Move to GFDL version 1.3.
19519 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
19520 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
19521 * doc/invoke.texi: Move to GFDL version 1.3.
19523 2010-06-09 Jan Hubicka <jh@suse.cz>
19525 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
19527 (propagate) ... here; swap the order.
19529 2010-06-09 Jan Hubicka <jh@suse.cz>
19531 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
19532 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
19533 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
19534 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
19536 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
19538 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
19539 Do not the gather memory reference in the outer loop if the step
19542 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
19544 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
19545 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
19546 8 to 4. Minor change of the related comments.
19548 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
19550 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
19551 the scev analysis when the variable is not used outside the loop
19552 in a close phi node: call compute_overall_effect_of_inner_loop.
19554 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
19556 * graphite-sese-to-poly.c (single_pred_cond): Renamed
19557 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
19558 (build_sese_conditions_before): Renamed call to single_pred_cond.
19559 (build_sese_conditions_after): Same.
19561 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
19563 * graphite-poly.h: Fix comments and indentation.
19564 * graphite-sese-to-poly.c: Same.
19565 (build_sese_conditions_before): Compute stmt and gbb only when needed.
19566 * tree-chrec.c: Fix comments and indentation.
19567 (tree-ssa-loop-niter.c): Same.
19569 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
19571 PR rtl-optimization/42461
19572 * dce.c (deletable_insn_p): Return true for const or pure calls again.
19573 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
19575 2010-06-09 Jan Hubicka <jh@suse.cz>
19577 * bitmap.c (bitmap_and): Walk array forward.
19578 (bitmap_and_compl_into): Likewise.
19579 (bitmap_xor): Likewise.
19580 (bitmap_xor_into): Likewise.
19581 (bitmap_equal_p): Likewise.
19582 (bitmap_intersect_p): Likewise.
19583 (bitmap_intersect_compl_p): Likewise.
19584 (bitmap_ior_and_into): Likewise.
19585 (bitmap_elt_copy): Likewise.
19586 (bitmap_and_compl): Likewise.
19587 (bitmap_elt_ior): Likewise.
19589 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
19591 * opts-common.c (prune_options): Ensure replacement argv array
19592 is correctly terminated by a NULL entry.
19594 2010-06-09 Jan Hubicka <jh@suse.cz>
19596 * cgraph.h (varpool_first_static_initializer,
19597 varpool_next_static_initializer): Make checking only when
19599 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
19600 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
19601 gcc_assert to gcc_checking_assert.
19602 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
19603 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
19604 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
19605 op_iter_init_phiuse, op_iter_init_phidef,
19606 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
19607 gcc_checking_assert.
19608 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
19609 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
19610 partition_is_global, live_on_entry, live_on_exit,
19611 live_merge_and_clear): Likewise.
19612 * system.h (gcc_checking_assert): New macro.
19613 * gimple.h (set_bb_seq): Use gcc_checking_assert.
19615 2010-06-09 Jason Merrill <jason@redhat.com>
19617 * Makefile.in (TAGS): Collect tags info from c-family.
19619 2010-06-09 Jan Hubicka <jh@suse.cz>
19621 * gimple.h (gcc_gimple_checking_assert): New macro.
19622 (gimple_set_def_ops, gimple_set_use_ops,
19623 gimple_set_vuse, gimple_set_vdef,
19624 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
19625 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
19626 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
19627 gimple_asm_output_op, gimple_asm_output_op_ptr,
19628 gimple_asm_set_output_op, gimple_asm_clobber_op,
19629 gimple_asm_set_clobber_op, gimple_asm_label_op,
19630 gimple_asm_set_label_op, gimple_try_set_kind,
19631 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
19632 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
19633 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
19634 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
19635 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
19636 gimple_omp_for_set_initial, gimple_omp_for_final,
19637 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
19638 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
19639 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
19640 conditional with ENABLE_GIMPLE_CHECKING.
19641 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
19643 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
19645 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
19646 (get_computation_cost_at): Use it.
19647 (determine_use_iv_cost_condition): Likewise.
19648 (determine_iv_cost): Likewise.
19650 2010-06-09 Richard Guenther <rguenther@suse.de>
19652 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
19655 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
19657 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
19659 2010-06-09 Martin Jambor <mjambor@suse.cz>
19661 PR tree-optimization/44423
19662 * tree-sra.c (dump_access): Dump also grp_assignment_read.
19663 (analyze_access_subtree): Pass negative allow_replacements to children
19664 if the current type is scalar.
19666 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
19669 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
19670 * doc/plugins.texi (Plugin license check): Update information
19671 on type of plugin_is_GPL_compatible.
19672 * Makefile.in (PLUGINCC): Define as $(COMPILER).
19673 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
19675 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
19677 * config/arm/arm.c (thumb2_reorg): New function.
19678 (arm_reorg): Call it.
19679 * config/arm/thumb2.md (define_peephole2 for flag clobbering
19680 arithmetic operations): Delete.
19682 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
19685 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
19688 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
19691 * gcc-plugin.h: Encapsulate all declarations in extern "C".
19693 2010-06-08 Jan Hubicka <jh@suse.cz>
19695 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
19696 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
19698 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
19700 PR tree-optimization/39874
19701 PR middle-end/28685
19702 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
19704 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
19705 same_bool_result_p): New.
19706 (and_var_with_comparison, and_var_with_comparison_1,
19707 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
19708 (or_var_with_comparison, or_var_with_comparison_1,
19709 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
19710 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
19711 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
19712 of combine_comparisons.
19713 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
19715 2010-06-08 Anatoly Sokolov <aesok@post.ru>
19717 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19718 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19719 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
19720 pdp11_function_value_regno_p): New functions.
19721 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19722 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19724 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
19726 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
19727 Thumb-2 in the MINUS case.
19729 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
19731 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
19733 * doc/gty.texi (GTY Options): Document typed GC allocation and
19734 variable_size GTY option.
19736 * ggc-internal.h: New.
19738 * ggc.h: Update copyright year.
19739 (digit_string): Move to stringpool.c.
19740 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
19741 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
19742 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
19743 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
19744 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
19745 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
19746 (ggc_force_collect, ggc_get_size, ggc_statistics)
19747 (ggc_print_common_statistics): Move to ggc-internal.h.
19748 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
19749 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
19750 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
19751 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
19752 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
19753 (ggc_alloc_zone_pass_stat): Remove.
19754 (ggc_internal_alloc_stat, ggc_internal_alloc)
19755 (ggc_internal_cleared_alloc_stat): New.
19756 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
19757 (ggc_internal_vec_alloc_stat)
19758 (ggc_internal_cleared_vec_alloc_stat)
19759 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
19760 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
19761 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
19762 (ggc_cleared_alloc_ptr_array_two_args): New.
19763 (htab_create_ggc, splay_tree_new_ggc): Redefine.
19764 (ggc_splay_alloc): Change the type of the first argument to
19765 enum gt_types_enum.
19766 (ggc_alloc_string): Make macro.
19767 (ggc_alloc_string_stat): New.
19768 (ggc_strdup): Redefine.
19769 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
19770 (ggc_alloc_rtvec_sized): New.
19771 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
19772 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
19773 (ggc_internal_cleared_alloc_zone_stat)
19774 (ggc_internal_zone_alloc_stat)
19775 (ggc_internal_zone_cleared_alloc_stat)
19776 (ggc_internal_zone_vec_alloc_stat)
19777 (ggc_alloc_zone_rtx_def_stat)
19778 (ggc_alloc_zone_tree_node_stat)
19779 (ggc_alloc_zone_cleared_tree_node_stat)
19780 (ggc_alloc_cleared_gimple_statement_d_stat): New.
19782 * ggc-common.c: Include ggc-internal.h.
19783 (ggc_internal_cleared_alloc_stat): Rename from
19784 ggc_alloc_cleared_stat.
19785 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
19786 (ggc_calloc): Remove.
19787 (ggc_cleared_alloc_htab_ignore_args): New.
19788 (ggc_cleared_alloc_ptr_array_two_args): New.
19789 (ggc_splay_alloc): Add obj_type parameter.
19790 (init_ggc_heuristics): Formatting fixes.
19792 * ggc-none.c: Update copyright year.
19793 (ggc_alloc_stat): Rename to ggc_alloc_stat.
19794 (ggc_alloc_cleared_stat): Rename to
19795 ggc_internal_cleared_alloc_stat.
19796 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
19798 * ggc-page.c: Update copyright year. Include ggc-internal.h.
19799 Remove references to ggc_alloc in comments.
19800 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
19801 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
19802 (new_ggc_zone, destroy_ggc_zone): Remove.
19803 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
19805 * ggc-zone.c: Include ggc-internal.h. Remove references to
19806 ggc_alloc in comments.
19807 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
19808 (ggc_internal_alloc_zone_pass_stat): New.
19809 (ggc_internal_cleared_alloc_zone_stat): New.
19810 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
19811 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
19812 (new_ggc_zone, destroy_ggc_zone): Remove.
19814 * stringpool.c: Update copyright year. Include ggc-internal.h
19815 (digit_vector): Make static.
19816 (digit_string): Moved from ggc.h.
19817 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
19818 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
19820 * Makefile.in (GGC_INTERNAL_H): New.
19821 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
19822 $(GGC_INTERNAL_H) to dependencies.
19824 * gentype.c: Update copyright year.
19825 (walk_type): Accept variable_size GTY option.
19826 (USED_BY_TYPED_GC_P): New macro.
19827 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
19828 whitespace at the end of strings.
19829 (get_type_specifier, variable_size_p): New functions.
19830 (alloc_quantity, alloc_zone): New enums.
19831 (write_typed_alloc_def): New function.
19832 (write_typed_struct_alloc_def): Likewise.
19833 (write_typed_typed_typedef_alloc_def): Likewise.
19834 (write_typed_alloc_defns): Likewise.
19835 (output_typename, write_splay_tree_allocator_def): Likewise.
19836 (write_splay_tree_allocators): Likewise.
19837 (main): Call write_typed_alloc_defns and
19838 write_splay_tree_allocators.
19840 * lto-streamer.h (lto_file_decl_data_ptr): New.
19842 * passes.c (order): Define using cgraph_node_ptr.
19844 * strinpool.c (struct string_pool_data): Declare nested_ptr using
19847 * gimple.h (union gimple_statement_d): Likewise.
19849 * rtl.h (struct rtx_def): Likewise.
19850 (struct rtvec_def): Likewise.
19852 * tree.h (union tree_node): Likewise.
19854 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
19856 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
19858 * tree-scalar-evolution.c (scev_initialize): Likewise.
19860 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
19862 * dwarf2asm.c (dw2_force_const_mem): Likewise.
19864 * omp-low.c (lower_omp_critical): Likewise.
19866 * bitmap.h (struct bitmap_head_def): Update comment to not
19867 reference ggc_alloc.
19869 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
19871 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
19873 * ipa-prop.c (duplicate_ggc_array): Rename to
19874 duplicate_ipa_jump_func_array. Use typed GC allocation.
19875 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
19877 * gimple.c (gimple_alloc_stat): Use
19878 ggc_alloc_cleared_gimple_statement_d_stat.
19880 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
19882 * tree.c (make_node_stat): Use
19883 ggc_alloc_zone_cleared_tree_node_stat.
19884 (make_tree_vec_stat): Likewise.
19885 (build_vl_exp_stat): Likewise.
19886 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
19887 (make_tree_binfo_stat): Likewise.
19888 (tree_cons_stat): Likewise.
19890 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
19891 (shallow_copy_rtx_stat): Likewise.
19892 (make_node_stat): Likewise.
19894 * lto-symtab.c: Fix comment.
19896 * tree-cfg.c (create_bb): Update comment to not reference
19898 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
19900 * varpool.c (varpool_node): Use typed GC allocation.
19901 (varpool_extra_name_alias): Likewise.
19903 * varasm.c (emutls_decl): Likewise.
19904 (get_unnamed_section): Likewise.
19905 (get_noswitch_section): Likewise.
19906 (get_section): Likewise.
19907 (get_block_for_section): Likewise.
19908 (build_constant_desc): Likewise.
19909 (create_constant_pool): Likewise.
19910 (force_const_mem): Likewise.
19912 * tree.c (build_vl_exp_stat): Likewise.
19913 (build_real): Likewise.
19914 (build_string): Likewise.
19915 (decl_debug_expr_insert): Likewise.
19916 (decl_value_expr_insert): Likewise.
19917 (type_hash_add): Likewise.
19918 (build_omp_clause): Likewise.
19920 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
19922 * tree-ssa.c (init_tree_ssa): Likewise.
19924 * tree-ssa-structalias.c (heapvar_insert): Likewise.
19926 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19928 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19930 * tree-ssa-alias.c (get_ptr_info): Likewise.
19932 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19934 * tree-phinodes.c (allocate_phi_node): Likewise.
19936 * tree-iterator.c (tsi_link_before): Likewise.
19937 (tsi_link_after): Likewise.
19939 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19941 * tree-dfa.c (create_var_ann): Likewise.
19943 * tree-cfg.c (create_bb): Likewise.
19945 * toplev.c (alloc_for_identifier_to_locale): Likewise.
19946 (general_init): Likewise.
19948 * stringpool.c (stringpool_ggc_alloc): Likewise.
19949 (gt_pch_save_stringpool): Likewise.
19951 * sese.c (if_region_set_false_region): Likewise.
19953 * passes.c (do_per_function_toporder): Likewise.
19955 * optabs.c (set_optab_libfunc): Likewise.
19956 (set_conv_libfunc): Likewise.
19958 * lto-symtab.c (lto_symtab_register_decl): Likewise.
19960 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19961 (input_eh_region): Likewise.
19962 (input_eh_lp): Likewise.
19963 (make_new_block): Likewise.
19964 (unpack_ts_real_cst_value_fields): Likewise.
19966 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19968 * lto-cgraph.c (input_node_opt_summary): Likewise.
19970 * loop-init.c (loop_optimizer_init): Likewise.
19972 * lambda.h (lambda_vector_new): Likewise.
19974 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
19976 * ira.c (update_equiv_regs): Likewise.
19978 * ipa.c (cgraph_node_set_new): Likewise.
19979 (cgraph_node_set_add): Likewise.
19980 (varpool_node_set_new): Likewise.
19981 (varpool_node_set_add): Likewise.
19983 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
19984 (duplicate_ipa_jump_func_array): Likewise.
19985 (ipa_read_node_info): Likewise.
19987 * ipa-cp.c (ipcp_create_replace_map): Likewise.
19989 * integrate.c (get_hard_reg_initial_val): Likewise.
19991 * gimple.c (gimple_alloc_stat): Likewise.
19992 (gimple_build_omp_for): Likewise.
19993 (gimple_seq_alloc): Likewise.
19994 (gimple_copy): Likewise.
19996 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
19997 (gsi_insert_after_without_update): Likewise.
19999 * function.c (add_frame_space): Likewise.
20000 (insert_temp_slot_address): Likewise.
20001 (assign_stack_temp_for_type): Likewise.
20002 (allocate_struct_function): Likewise.
20003 (types_used_by_var_decl_insert): Likewise.
20005 * except.c (init_eh_for_function): Likewise.
20006 (gen_eh_region): Likewise.
20007 (gen_eh_region_catch): Likewise.
20008 (gen_eh_landing_pad): Likewise.
20009 (add_call_site): Likewise.
20011 * emit-rtl.c (get_mem_attrs): Likewise.
20012 (get_reg_attrs): Likewise.
20013 (start_sequence): Likewise.
20014 (init_emit): Likewise.
20016 * dwarf2out.c (new_cfi): Likewise.
20017 (queue_reg_save): Likewise.
20018 (dwarf2out_frame_init): Likewise.
20019 (new_loc_descr): Likewise.
20020 (find_AT_string): Likewise.
20021 (new_die): Likewise.
20022 (add_var_loc_to_decl): Likewise.
20023 (clone_die): Likewise.
20024 (clone_as_declaration): Likewise.
20025 (break_out_comdat_types): Likewise.
20026 (new_loc_list): Likewise.
20027 (loc_descriptor): Likewise.
20028 (add_loc_descr_to_each): Likewise.
20029 (add_const_value_attribute): Likewise.
20030 (tree_add_const_value_attribute): Likewise.
20031 (add_comp_dir_attribute): Likewise.
20032 (add_name_and_src_coords_attributes): Likewise.
20033 (lookup_filename): Likewise.
20034 (store_vcall_insn): Likewise.
20035 (dwarf2out_init): Likewise.
20037 * dbxout.c (dbxout_init): Likewise.
20039 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
20041 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
20043 * config/score/score7.c (score7_output_external): Likewise.
20045 * config/score/score3.c (score3_output_external): Likewise.
20047 * config/s390/s390.c (s390_init_machine_status): Likewise.
20049 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
20050 (rs6000_init_machine_status): Likewise.
20051 (output_toc): Likewise.
20053 * config/pa/pa.c (pa_init_machine_status): Likewise.
20054 (get_deferred_plabel): Likewise.
20056 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
20058 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
20060 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
20062 * config/mep/mep.c (mep_init_machine_status): Likewise.
20063 (mep_note_pragma_flag): Likewise.
20065 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
20067 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
20069 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
20071 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
20072 (i386_pe_maybe_record_exported_symbol): Likewise.
20074 * config/i386/i386.c (get_dllimport_decl): Likewise.
20075 (ix86_init_machine_status): Likewise.
20076 (assign_386_stack_local): Likewise.
20078 * config/frv/frv.c (frv_init_machine_status): Likewise.
20080 * config/darwin.c (machopic_indirection_name): Likewise.
20082 * config/cris/cris.c (cris_init_machine_status): Likewise.
20084 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
20086 * config/avr/avr.c (avr_init_machine_status): Likewise.
20088 * config/arm/arm.c (arm_init_machine_status): Likewise.
20090 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
20091 (alpha_need_linkage): Likewise.
20092 (alpha_use_linkage): Likewise.
20094 * cgraph.c (cgraph_allocate_node): Likewise.
20095 (cgraph_create_edge_1): Likewise.
20096 (cgraph_create_indirect_edge): Likewise.
20097 (cgraph_add_asm_node): Likewise.
20099 * cfgrtl.c (init_rtl_bb_info): Likewise.
20101 * cfgloop.c (alloc_loop): Likewise.
20102 (rescan_loop_exit): Likewise.
20104 * cfg.c (init_flow): Likewise.
20105 (alloc_block): Likewise.
20106 (unchecked_make_edge): Likewise.
20108 * c-parser.c (c_parse_init): Likewise.
20109 (c_parse_file): Likewise.
20111 * c-decl.c (bind): Likewise.
20112 (record_inline_static): Likewise.
20113 (push_scope): Likewise.
20114 (make_label): Likewise.
20115 (lookup_label_for_goto): Likewise.
20116 (finish_struct): Likewise.
20117 (finish_enum): Likewise.
20118 (c_push_function_context): Likewise.
20120 * bitmap.c (bitmap_element_allocate): Likewise.
20121 (bitmap_gc_alloc_stat): Likewise.
20123 * alias.c (record_alias_subset): Likewise.
20124 (init_alias_analysis): Likewise.
20126 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
20128 * fold-const.c (fold_comparison): Remove redundant parenthesis.
20129 * tree-inline.c (expand_call_inline): Pass translated return value of
20130 cgraph_inline_failed_string to diagnostic function.
20132 2010-06-08 Andrew Pinski <pinskia@gmail.com>
20133 Shujing Zhao <pearly.zhao@oracle.com>
20136 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
20137 implicit bad conversions is initialization.
20138 (error_init): Use gmsgid instead of msgid for argument name and change
20139 the call for error.
20140 (pedwarn_init): Use gmsgid instead of msgid for argument name and
20141 change the call for pedwarn.
20142 (warning_init): Use gmsgid instead of msgid for argument name and
20143 change the call for warning.
20145 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
20147 * config/mips/mips-protos.h (mips_print_operand): Delete.
20148 (mips_print_operand_address): Delete.
20149 * config/mips/mips.h (mips_print_operand_punct): Delete.
20150 (PRINT_OPERAND): Delete.
20151 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20152 (PRINT_OPERAND_ADDRESS): Delete.
20153 * config/mips/mips.c (mips_print_operand_punct): Make static.
20154 (mips_print_operand_address): Make static.
20155 (mips_print_operand): Make static. Call
20156 mips_print_operand_punct_valid_p.
20157 (mips_print_operand_punct_valid_p): New function.
20158 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20159 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20161 2010-06-07 Jan Hubicka <jh@suse.cz>
20163 PR middle-end/44454
20164 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
20167 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
20169 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
20172 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20174 * doc/sourcebuild.texi (Effective-Target Keywords, Other
20175 attributes): Document gas.
20177 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
20179 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
20180 <TYPE_LEA>: Split instruction.
20181 <default>: Remove alternative 2 handling.
20182 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
20183 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
20184 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
20186 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
20187 (ashift_zext lea splitter): Use DImode for multiplication.
20189 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
20190 to generate addition.
20192 2010-06-07 Joseph Myers <joseph@codesourcery.com>
20194 * common.opt (fira-verbose): Use Var.
20195 (fpcc-struct-return): Use Init instead of VarExists.
20196 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
20198 * flags.h (flag_signed_char, flag_short_enums,
20199 flag_pcc_struct_return, flag_ira_verbose,
20200 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
20201 * toplev.c (flag_detailed_statistics, flag_signed_char,
20202 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
20203 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
20204 * toplev.h (flag_crossjumping, flag_if_conversion,
20205 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
20206 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
20207 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
20208 flag_cprop_registers, time_report, flag_ira_loop_pressure,
20209 flag_ira_coalesce, flag_ira_move_spills,
20210 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
20212 2010-06-07 Jan Hubicka <jh@suse.cz>
20214 * df-core.c (df_analyze_problem): Do verification after allocation.
20216 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
20217 (df_lr_alloc): Initialize problem data; move bitmaps to
20218 lr_bitmaps obstack.
20219 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
20220 (df_lr_verify_solution_start): Do not initialize problem data;
20221 allocate bitmaps in lr_bitmaps.
20222 (df_lr_verify_solution_end): Do not free problem data.
20224 2010-06-07 Jan Hubicka <jh@suse.cz>
20226 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
20227 if caller is noreturn.
20228 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
20229 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
20230 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
20231 * ipa-pure-const.c (check_decl): Add IPA parameter.
20232 (state_from_flags): New function.
20233 (better_state, worse_state): New functions.
20234 (check_call): When in IPA mode, do not care about callees.
20235 (check_load, check_store): Update.
20236 (check_ipa_load, check_ipa_store): New.
20237 (check_stmt): When in IPA mode, use IPA checkers.
20238 (analyze_function): Use state_from_flags.
20239 (propagate): Check indirect edges and references.
20241 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
20243 PR rtl-optimization/44404
20244 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
20245 of count_occurrences to see if it's safe to modify mem_insn.
20247 2010-06-07 Richard Guenther <rguenther@suse.de>
20249 * gimplify.c (gimplify_cleanup_point_expr): For empty body
20250 and EH-only cleanup drop the cleanup instead of inserting it
20253 2010-06-07 Ira Rosen <irar@il.ibm.com>
20255 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
20257 * targhooks.c (default_builtin_vectorization_cost): New function.
20258 * targhooks.h (default_builtin_vectorization_cost): Declare.
20259 * target.h (enum vect_cost_for_stmt): Define.
20260 (builtin_vectorization_cost): Change argument and comment.
20261 * tree-vectorizer.h: Remove cost model macros.
20262 * tree-vect-loop.c: Include target.h.
20263 (vect_get_cost): New function.
20264 (vect_estimate_min_profitable_iters): Replace cost model macros with
20265 calls to vect_get_cost.
20266 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
20267 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
20268 default implementation.
20269 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
20270 calls to target hook builtin_vectorization_cost.
20271 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
20273 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
20274 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
20275 implementation to return costs.
20276 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
20277 * config/spu/spu.h: Remove vectorizer cost model macros.
20278 * config/i386/i386.h: Likewise.
20279 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
20280 a call to target hook builtin_vectorization_cost.
20282 2010-06-06 Sriraman Tallam <tmsriram@google.com>
20285 * config/i386/i386.c (override_options): Turn zee pass on for level 2
20286 and above and defer till target is known.
20287 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
20288 turn off otherwise.
20290 2010-05-25 Jan Hubicka <jh@suse.cz>
20292 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
20293 (df_compact_blocks): Likewise.
20294 * df.h (struct df): Turn hardware_regs_used,
20295 regular_block_artificial_uses, eh_block_artificial_uses,
20296 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
20298 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
20299 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
20300 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
20301 df_scan_blocks, df_insn_delete, df_insn_rescan,
20302 df_insn_rescan_debug_internal, df_insn_rescan_all,
20303 df_process_deferred_rescans, df_process_deferred_rescans,
20304 df_notes_rescan, df_get_call_refs, df_get_call_refs,
20305 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
20306 df_record_entry_block_defs, df_record_exit_block_uses,
20307 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
20308 df_scan_verify): Update.
20310 2010-05-25 Dodji Seketeli <dodji@redhat.com>
20313 * c-common.c (is_typedef_decl): Move this definition ...
20314 * tree.c (is_typedef_decl): ... here.
20315 (typdef_variant_p): Move definition here from cp/tree.c.
20316 * c-common.h (is_typedef_decl): Move this declaration ...
20317 * tree.h (is_typedef_decl): ... here.
20318 (typedef_variant_p): Move declaration here from cp/cp-tree.h
20319 * dwarf2out.c (is_naming_typedef_decl): New function.
20320 (gen_tagged_type_die): Split out of ...
20321 (gen_type_die_with_usage): ... this function. When an anonymous
20322 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
20323 is emitted for the typedef.
20324 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
20325 anonymous tagged types.
20327 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
20330 * c-decl.c (grokdeclarator): Delete warning.
20332 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
20334 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
20335 newly built CALL_EXPR.
20336 * tree-profile.c (tree_profiling): Don't profile functions produced
20337 for built-in stuff.
20339 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
20343 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
20344 endianness-independent.
20346 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
20348 * c-common.c: Move to c-family/.
20349 * c-common.def: Likewise.
20350 * c-common.h: Likewise.
20351 * c-cppbuiltin.c: Likewise.
20352 * c-dump.c: Likewise.
20353 * c-format.c: Likewise.
20354 * c-format.h : Likewise.
20355 * c-gimplify.c: Likewise.
20356 * c-lex.c: Likewise.
20357 * c-omp.c: Likewise.
20359 * c-opts.c: Likewise.
20360 * c-pch.c: Likewise.
20361 * c-ppoutput.c: Likewise.
20362 * c-pragma.c: Likewise.
20363 * c-pragma.h: Likewise.
20364 * c-pretty-print.c: Likewise.
20365 * c-pretty-print.h: Likewise.
20366 * c-semantics.c: Likewise.
20367 * stub-objc.c: Likewise.
20369 * gengtype.c (get_file_langdir): Special-case files in c-family/.
20370 (get_output_file_with_visibility): Fix name for c-common.h.
20371 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
20373 * c-tree.h: Update include path for moved files.
20374 * c-lang.c: Likewise.
20375 * c-lang.h: Likewise.
20376 * c-parser.c: Likewise.
20377 * c-convert.c: Likewise.
20378 * c-decl.c: Likewise.
20379 * c-objc-common.c: Likewise.
20380 * configure.ac: Make sure c-family/ exists in the build directory.
20381 * configure: Regenerate.
20382 * Makefile.in: Update paths for moved files. Regroup files per
20383 location and update dependencies. Move generated_files down after
20386 * config/spu/spu-c.c: Update paths for moved files.
20387 * config/mep/mep-pragma.c: Likewise.
20388 * config/darwin-c.c: Likewise.
20389 * config/i386/msformat-c.c: Likewise.
20390 * config/i386/i386-c.c: Likewise.
20391 * config/avr/avr-c.c: Likewise.
20392 * config/sol2-c.c: Likewise.
20393 * config/ia64/ia64-c.c: Likewise.
20394 * config/rs6000/rs6000-c.c: Likewise.
20395 * config/arm/arm.c: Likewise.
20396 * config/arm/arm-c.c: Likewise.
20397 * config/h8300/h8300.c: Likewise.
20398 * config/v850/v850-c.c: Likewise.
20400 * config/t-darwin: Fix dependencies for moved files.
20401 * config/t-sol2: Fix dependencies for moved files.
20402 * config/mep/t-mep: Fix dependencies for moved files.
20403 * config/ia64/t-ia64: Fix dependencies for moved files.
20404 * config/rs6000/t-rs6000: Fix dependencies for moved files.
20405 * config/v850/t-v850: Fix dependencies for moved files.
20406 * config/v850/t-v850e: Fix dependencies for moved files.
20408 * config/m32c/m32c-pragma.c
20410 * po/exgettext: Look in c-family/ also.
20412 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
20414 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
20415 (mark_control_dependent_edges_necessary): Call it instead of marking
20416 the last statement manually.
20417 (propagate_necessity): Likewise.
20419 2010-06-05 Jan Hubicka <jh@suse.cz>
20421 * basic-block.h (compute_dominance_frontiers): Updated.
20422 (compute_idf): Likewise.
20424 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
20425 for dominance frontiers.
20426 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
20427 (insert_updated_phi_nodes_for): Likewise.
20428 (update_ssa): Likewise.
20429 * cfganal.c (compute_dominance_frontiers_1): Likewise.
20430 (compute_dominance_frontiers): Likewise.
20431 (compute_idf): Likewise.
20432 * df-problems.c (df_md_local_compute): Likewise.
20434 2010-06-05 Anatoly Sokolov <aesok@post.ru>
20436 * target.h (struct gcc_target): Add memory_move_cost field.
20437 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
20438 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
20439 * targhooks.c (default_memory_move_cost): New function.
20440 * targhooks.h (default_memory_move_cost): Declare function.
20441 * reload.h (memory_move_cost): Declare.
20442 (memory_move_secondary_cost): Change type of 'in' argument to bool.
20443 * reginfo.c (memory_move_cost): New function.
20444 (memory_move_secondary_cost): Change type of 'in' argument to bool.
20445 * ira.h (ira_memory_move_cost): Update comment.
20446 * ira.c (ira_memory_move_cost): Update comment.
20447 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
20448 with memory_move_cost.
20449 * postreload.c (reload_cse_simplify_set): (Ditto.).
20450 * reload1.c (choose_reload_regs): (Ditto.).
20451 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
20452 (MEMORY_MOVE_COST): Revise documentation.
20454 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
20455 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
20456 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
20457 type of 'in' argument to bool.
20458 (TARGET_MEMORY_MOVE_COST): Define.
20460 2010-06-05 Jan Hubicka <jh@suse.cz>
20462 * ipa-pure-const.c (propagate): Fix typo in handling of functions
20463 that cannot return. Be more careful when merging the results with
20464 previously known ones.
20466 2010-06-05 Matthias Klose <doko@ubuntu.com>
20468 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
20469 function to add the -iplugindir option.
20470 (find_plugindir_spec_function): Add new declaration and function.
20471 (static_spec_func): Use it for "find-plugindir".
20473 2010-06-05 Jakub Jelinek <jakub@redhat.com>
20476 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
20477 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
20478 statement expression.
20480 2010-06-05 Jan Hubicka <jh@suse.cz>
20482 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
20483 (df_rd_problem_data): Convert sparse_invalidated_by_call,
20484 dense_invalidated_by_call to bitmap head.
20485 (df_rd_alloc, df_rd_bb_local_compute_process_def,
20486 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
20487 df_rd_start_dump, df_lr_verify_transfer_functions,
20488 df_live_verify_transfer_functions, df_chain_create_bb,
20489 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
20490 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
20491 df_simulate_one_insn_forwards, df_md_alloc,
20492 df_md_bb_local_compute_process_def,
20493 df_md_bb_local_compute_process_def, df_md_local_compute,
20494 df_md_transfer_function df_md_free): Update.
20496 2010-06-05 Joseph Myers <joseph@codesourcery.com>
20499 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
20500 target type for ADDR_EXPR; require no changes to qualifiers except
20501 for function types.
20502 * c-tree.h (c_build_type_variant): Remove.
20504 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
20506 * genautomata.c (get_excl_set): Do work per element, not per char.
20507 (check_presence_pattern_sets): Similar.
20508 (check_absence_pattern_sets): Similar.
20510 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
20512 * genautomata.c (curr_state_pass_num): Delete.
20513 (min_issue_delay_pass_states): Delete.
20514 (min_issue_delay): Delete.
20515 (initiate_min_issue_delay_pass_states): Delete.
20516 (output_min_issue_delay_table): Compute min_issue_delay_vect
20517 using a breadth-first search variant.
20518 (output_tables): Don't call initiate_min_issue_delay_pass_states.
20520 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
20523 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
20524 (df_byte_lr_bb_local_compute): Likewise.
20526 2010-06-03 Jason Merrill <jason@redhat.com>
20528 Implement noexcept operator (5.3.7)
20529 * c-common.c (c_common_reswords): Add noexcept.
20530 * c-common.h (enum rid): Add RID_NOEXCEPT.
20532 2010-06-04 Joseph Myers <joseph@codesourcery.com>
20534 * config/darwin-driver.c (darwin_default_min_version): Use
20535 GCC-specific formats in diagnostics.
20536 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
20538 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
20539 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
20540 eval_spec_function, handle_braces, process_brace_body, main,
20541 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
20542 getenv_spec_function, compare_version_strings,
20543 version_compare_spec_function): Use GCC-specific formats in
20546 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
20548 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
20549 that operand 0 and operand 1 are equal.
20550 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
20551 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
20552 and operand 1 are equal.
20553 <default>: Ditto. Remove ??? comment.
20554 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
20555 and operand 1 are equal.
20556 <default>: Ditto. Remove ??? comment.
20557 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
20559 (*add<mode>_4) <default>: Ditto.
20560 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
20562 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
20564 * config/i386/i386-protos.h (ix86_print_operand): Declare.
20565 * config/i386/i386.c (ix86_print_operand): Make non-static.
20566 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
20567 * output.h (output_operand): Declare.
20568 * final.c (output_operand): Make non-static.
20570 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
20572 PR rtl-optimization/44013
20573 * sched-deps.c (add_dependence_list_and_free): Don't free lists
20574 when processing debug insns.
20577 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
20578 recursing. Check that recursion is bounded. Rename inner var
20579 to avoid hiding incoming argument.
20581 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
20583 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
20584 operands[2] == 255.
20588 (*addqi_ext_1_rex64): Ditto.
20589 (*addqi_ext_1): Ditto.
20591 (*addqi_4): Check for incdec_operand in QImode.
20593 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
20594 using SWI mode iterator.
20595 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
20596 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
20598 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
20599 using SWI mode iterator.
20601 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
20604 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
20605 * c-format.c (gcc_diag_flag_specs): Add hash.
20606 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
20607 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
20608 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
20609 pp_c_cv_qualifiers. Handle qualifiers spelling here.
20610 (pp_c_type_qualifier_list): Call the function above.
20611 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
20612 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
20613 (WARN_FOR_QUALIFIERS): New macro.
20614 (convert_for_assignment): Use it.
20616 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
20618 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
20620 2010-06-04 Jan Hubicka <jh@suse.cz>
20622 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
20623 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
20624 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
20625 DF_BYTE_LR_OUT): Update for embedded bitmaps.
20626 * fwprop.c (single_def_use_enter_block): Likewise.
20627 * ddg.c (create_ddg_dep_from_intra_loop_link,
20628 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
20629 * loop-iv.c (latch_dominating_def): Likewise.
20630 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
20631 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
20632 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
20633 df_rd_transfer_function, df_rd_top_dump,
20634 df_rd_bottom_dump): Update.
20635 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
20636 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
20637 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
20638 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
20639 df_lr_verify_solution_start, df_lr_verify_solution_end,
20640 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
20641 df_live_free_bb_info, df_live_alloc, df_live_reset,
20642 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
20643 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
20644 df_live_verify_solution_start, df_live_verify_solution_end,
20645 df_live_verify_transfer_functions, df_chain_create_bb,
20646 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
20647 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
20648 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
20649 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
20650 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
20651 df_byte_lr_transfer_function, df_byte_lr_top_dump,
20652 df_byte_lr_bottom_dump, df_create_unused_note,
20653 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
20654 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
20655 df_md_transfer_function, df_md_init, df_md_confluence_0,
20656 df_md_confluence_n,
20657 df_md_top_dump, df_md_bottom_dump): Update.
20658 (struct df_lr_problem_data): Embedd bitmap headers.
20660 2010-06-04 Jan Hubicka <jh@suse.cz>
20662 * dce.c (dce_process_block): Do not re-scan already marked
20665 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
20667 PR rtl-optimization/39871
20668 PR rtl-optimization/40615
20669 PR rtl-optimization/42500
20670 PR rtl-optimization/42502
20671 * ira.c (init_reg_equiv_memory_loc: New function.
20672 (ira): Call it twice.
20673 * reload.h (calculate_elim_costs_all_insns): Declare.
20674 * ira-costs.c: Include "reload.h".
20675 (regno_equiv_gains): New static variable.
20676 (init_costs): Allocate it.
20677 (finish_costs): Free it.
20678 (ira_costs): Call calculate_elim_costs_all_insns.
20679 (find_costs_and_classes): Take estimated elimination costs
20681 (ira_adjust_equiv_reg_cost): New function.
20682 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
20683 * reload1.c (init_eliminable_invariants, free_reg_equiv,
20684 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
20685 (elim_bb): New static variable.
20686 (reload): Move code out of here into init_eliminable_invariants and
20687 free_reg_equiv. Call them.
20688 (calculate_elim_costs_all_insns): New function.
20689 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
20690 all callers changed. If FOR_COSTS is true, don't call alter_reg,
20691 but call note_reg_elim_costly if we turned a valid memory address
20692 into an invalid one.
20693 * Makefile.in (ira-costs.o): Depend on reload.h.
20695 2010-06-04 Julian Brown <julian@codesourcery.com>
20697 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
20700 2010-06-04 Richard Guenther <rguenther@suse.de>
20703 * cgraph.h (struct varpool_node): Add lto_file_data field.
20704 * lto-cgraph.c (input_varpool_node): Initialize it.
20706 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
20708 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
20709 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
20710 predicate in "type" attribute calculation.
20711 (*addsi_1_zext): Ditto.
20712 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
20713 (*addsi_2_zext): Ditto.
20714 (*add<mode>_3): Ditto.
20715 (*addsi_3_zext): Ditto.
20716 (*add<mode>_5): Ditto.
20718 2010-06-03 Jan Hubicka <jh@suse.cz>
20720 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
20722 * cfganal.c (compute_dominance_frontiers_1): Likewise.
20724 2010-06-03 Jan Hubicka <jh@suse.cz>
20726 * df-problems.c (df_create_unused_note, df_note_bb_compute):
20727 micro-optimize the checks when to add new note.
20729 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
20731 * final.c (output_asm_insn): Call
20732 targetm.asm_out.print_operand_punct_valid_p. Update comments.
20733 (output_operand): Call targetm.asm_out.print_operand. Update comments.
20734 (output_address): Call targetm.asm_out.print_operand_address.
20736 * target.h (struct gcc_target): Add print_operand,
20737 print_operand_address, and print_operand_punct_valid_p fields.
20738 * targhooks.h (default_print_operand): Declare.
20739 (default_print_operand_address): Declare.
20740 (default_print_operand_punct_valid_p): Declare.
20741 * targhooks.c (default_print_operand): Define.
20742 (default_print_operand_address): Define.
20743 (default_print_operand_punct_valid_p): Define.
20744 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
20745 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
20746 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
20747 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
20748 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
20749 * vmsdbgout.c (addr_const_to_string): Update comment.
20750 * config/i386/i386.c (print_operand): Rename to...
20751 (ix86_print_operand): ...this. Make static.
20752 (print_operand_address): Rename to...
20753 (ix86_print_operand_address): ...this. Make static. Call
20754 ix86_print_operand instead of PRINT_OPERAND.
20755 (ix86_print_operand_punct_valid_p): New function.
20756 (TARGET_PRINT_OPERAND): Define.
20757 (TARGET_PRINT_OPERAND_ADDRESS): Define.
20758 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20759 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
20760 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20761 (PRINT_OPERAND): Delete.
20762 (PRINT_OPERAND_ADDRESS): Delete.
20763 * config/i386/i386-protos.h (print_operand): Delete prototype.
20764 (print_operand_address): Delete prototype.
20766 2010-06-03 Richard Guenther <rguenther@suse.de>
20768 PR tree-optimization/44403
20769 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
20770 Preserve pointer qualifiers.
20771 (vect_create_data_ref_ptr): Likewise.
20773 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
20776 * defaults.h (MAX_FIXED_MODE_SIZE): New.
20778 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
20780 2010-06-03 Jakub Jelinek <jakub@redhat.com>
20783 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
20784 return false if merging the bbs would lead to goto_locus
20785 location being lost from the IL.
20787 2010-06-03 Jan Hubicka <jh@suse.cz>
20788 Jakub Jelinek <jakub@redhat.com>
20790 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
20791 set->regs[i] is NULL or has just one entry.
20793 2010-06-03 Jan Hubicka <jh@suse.cz>
20795 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
20796 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
20798 2010-06-03 Paul Brook <paul@codesourcery.com>
20800 * config/arm/arm.c (FL_TUNE): Define.
20801 (arm_default_cpu, arm_cpu_select): Remove.
20802 (all_cores): Populate core field.
20803 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
20804 (arm_find_cpu): New function.
20805 (arm_handle_option): Lookup cpu/architecture names.
20806 (arm_override_options): Cleanup mcpu/march/mtune handling.
20807 (arm_file_start): Ditto.
20809 2010-06-03 Alan Modra <amodra@gmail.com>
20812 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
20813 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
20814 rtx to gen_load_toc_v4_PIC_1b. Tidy.
20815 (rs6000_emit_load_toc_table): Likewise.
20817 2010-06-02 Jan Hubicka <jh@suse.cz>
20819 * passes.c (init_optimization_passes): Put ipa reference
20820 after ipa pure-const.
20822 2010-06-02 Jan Hubicka <jh@suse.cz>
20824 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
20825 calls_read_all and calls_write_all.
20826 (get_reference_optimization_summary): Fix formatting.
20827 (is_proper_for_analysis): Check that decl is not readonly.
20828 (propagate_bits): Check CONST/PURE/noreturn flags.
20829 (ipa_init): Move all_module_statics to optimization_summary_obstack.
20830 (analyze_function): Ignore indirect edges.
20831 (copy_global_bitmap): For all module statics, do nothing.
20832 (generate_summary): Do not print calls_read_all/calls_write_all.
20833 (read_write_all_from_decl): Take node as argument; check
20834 cgraph_node_cannot_return.
20835 (propagate): Reorganize read_all/write_all computation;
20836 check indirect edges; check ecf flags; use all_module_statics
20837 in the results; do not free all_module_statics.
20838 (stream_out_bitmap): Handle all_module_statics.
20839 (ipa_reference_write_optimization_summary): Likewise; use
20840 varpool/cgraph encoders to get boundaries.
20841 (ipa_reference_read_optimization_summary): Read in all_module_statics;
20842 use it when possible.
20844 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20847 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
20848 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
20850 * doc/extend.texi (powerpc builtins): Document vec_recip,
20851 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
20853 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
20854 (rs6000_emit_swrsqrt): Ditto.
20855 (rs6000_emit_swdivsf): Delete.
20856 (rs6000_emit_swdivdf): Ditto.
20857 (rs6000_emit_swrsqrtsf): Ditto.
20859 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
20860 describe the reciprocal estimate support for each type.
20861 (recip_options): Map -mrecip=<opt> into option bits.
20862 (gen_2arg_fn_t): New typedef for binary rtx gen function.
20863 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
20864 reciprocal estimate instructions.
20865 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
20866 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
20867 Set up rs6000_recip_bits based on the -mrecip* options. Print the
20868 cost information if -mdebug=cost or -mdebug=reg.
20869 (rs6000_override_options): Set -mrecip-precision for power6, and
20870 power7 machines. If -mvsx or -mdfp, enable various options that
20871 came in previous instruction set ISAs, unless the option was
20872 explicitly disabled by the command line option. Parse
20873 -mrecip=<opt> options.
20874 (rs6000_builtin_vectorized_function): Add support for vectorizing
20875 the reciprocal estimate builtins and expansions.
20876 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
20877 (bdesc_2arg): Add reciprocal estimate builtins.
20878 (bdesc_1arg): Add reciprocal square root estimate builtins.
20879 (rs6000_expand_builtin): Rewrite to use a switch statement,
20880 instead of multiple if/then/elses. Add reciprocal estimate builtins.
20881 (rs6000_init_builtins): Create declarations for reciprocal
20883 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
20884 sized, prefer traditional floating point registers, if integer
20885 vector types, prefer altivec registers. Don't actually look at
20886 the memory address any more.
20887 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
20889 (rs6000_load_constant_and_splat): New helper function to load up
20890 the constant for reciprocal estimate instructions.
20891 (rs6000_emit_madd): New helper function for generating
20892 multiply/add type instructions, based on the current switches.
20893 (rs6000_emit_msub): Ditto.
20894 (rs6000_emit_mnsub): Ditto.
20895 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
20896 replace a divide with a reciprocal estimate and fixup, adding
20897 support for machines with high precision and vectors.
20898 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
20899 low precision machines.
20900 (rs6000_emit_swdiv): New common function to be called to replace a
20901 division with reciprocal estimate and fixup.
20902 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
20903 for double and vector types. Add support for high precision machines.
20905 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
20906 the reciprocal estimate instructions can be generated.
20907 (TARGET_FRE): Ditto.
20908 (TARGET_FRSQRTES): Ditto.
20909 (TARGET_FRSQRTE): Ditto.
20910 (RS6000_RECIP_*): New macros for reciprocal estimate support.
20912 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
20913 square root estimate on vectors.
20914 (re<mode>2): New insn for reciprocal division estimate on vectors.
20916 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
20918 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
20919 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
20920 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
20921 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
20922 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
20923 (RS6000_BUILTIN_RSQRT): Ditto.
20924 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
20925 floating point builtin.
20927 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
20928 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
20929 __RECIP_PRECISION__ based on the command line switches.
20930 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
20932 * config/rs6000/rs6000.opt (-mrecip): Document add support for
20933 replacing division instructions with reciprocal estimate and fixup.
20934 (-mrecip=<opt>): New option.
20935 (-mrecip-precision): Ditto.
20937 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
20938 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
20939 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
20942 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
20943 (UNSPEC_VREFP): Ditto.
20944 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
20945 conterparts with regard to support of -mno-fused-madd and -ffast-math.
20946 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
20947 reciprocal estimate instructions to be generated.
20948 (altivec_vrefp): Ditto.
20950 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
20952 (rreg): New mode attribute for reciprocal estimate support.
20953 (recip<mode>3): New insn for division using reciprocal estimate
20954 and fixup builtins.
20955 (divide define_split): New define_split to convert floating point
20956 division to use reciprocal estimate if the user used the
20957 appropriate options and the split is run when we can add new
20958 pseudo registers for the fixup.
20959 (rsqrt<mode>2): New insn for reciprocal square root support.
20960 (recipsf3): Move into recip<mode>3.
20962 (fres): Use TARGET_FRES.
20963 (rsqrtsf2): Move into rsqrt<mode>2.
20964 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
20965 (copysignsf3): Add support for VSX.
20966 (fred): Use TARGET_FRE.
20968 (rsqrtdf_internal1): New function for frsqrte instruciton.
20970 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
20971 (vec_rsqrt): Ditto.
20973 2010-06-03 Richard Guenther <rguenther@suse.de>
20975 PR middle-end/44291
20976 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
20977 (set_user_assembler_libfunc): Likewise.
20979 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
20981 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
20983 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
20985 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
20986 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
20987 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
20988 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
20989 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
20990 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
20991 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
20992 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
20993 * defaults.h: Updated for above mentioned changes.
20995 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
20997 * c-common.c: Remove header include of tm_p.h.
20998 * Makefile.in (c-common.o): Remove TM_P_H dependency.
21000 2010-06-02 Jakub Jelinek <jakub@redhat.com>
21002 * tree.h (struct tree_decl_map): New type.
21003 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
21004 (tree_decl_map_hash): New prototype.
21005 (debug_expr_for_decl, value_expr_for_decl): Change into
21006 tree_decl_map hashtab from tree_map.
21007 (init_ttree): Adjust initialization.
21008 (tree_decl_map_hash): New function.
21009 (decl_debug_expr_lookup, decl_debug_expr_insert,
21010 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
21012 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21014 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
21016 * configure: Regenerate.
21017 * config.in: Regenerate.
21019 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
21020 (X86_64_EMULATION): Define.
21021 (TARGET_LD_EMULATION): Use them.
21023 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
21024 (SPARC64_EMULATION): Define.
21025 (LINK_ARCH_SPEC): Use them.
21027 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
21029 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
21030 smallest_mode_for_size for computing the precision types of new
21031 graphite IVs. Do not call lang_hooks.types.type_for_size.
21033 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
21035 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
21037 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
21039 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
21041 PR middle-end/44363
21042 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
21043 return false instead.
21045 2010-06-02 Jan Hubicka <jh@suse.cz>
21047 PR middle-end/44295
21048 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
21049 create new cgraph node to check callee.
21051 2010-06-02 Richard Guenther <rguenther@suse.de>
21053 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
21055 2010-06-02 Richard Guenther <rguenther@suse.de>
21057 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
21058 (lto_wrapper_cleanup): ... this. Do not exit.
21059 (fatal): Adjust. Exit here.
21060 (fatal_perror): Likewise.
21061 (fatal_signal): New function.
21062 (main): Set up signal handlers to cleanup temporary files.
21063 * Makefile.in (lto-wrapper.o): Adjust dependencies.
21065 2010-06-02 Richard Guenther <rguenther@suse.de>
21067 PR tree-optimization/44377
21068 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
21070 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21072 * config/s390/2097.md (z10_fhex): Remove insn reservation.
21073 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
21074 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
21075 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
21077 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
21079 2010-06-02 Jan Hubicka <jh@suse.cz>
21081 * bitmap.c (bitmap_descriptor): Add search_iter.
21082 (bitmap_find_bit): Increment it.
21083 (print_statistics): Print it.
21085 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
21087 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
21088 instead of gimple_build_call_vec. Delete unnecessary local variable.
21090 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
21092 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
21093 change from yesterday.
21095 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
21097 * c-ada-spec.c: Clean up redundant includes.
21099 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
21101 * gimplify.c: Do not include except.h and optabs.h.
21102 (gimplify_body): Do not initialize RTL profiling.
21103 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
21104 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
21105 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
21106 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
21109 * tree-pretty-print.h: Include pretty-print.h.
21110 * gimple-pretty-print.h: Include pretty-print.h.
21112 * tree-pretty-print.c: Do not include diagnostic.h.
21113 * tree-vrp.c: Likewise.
21114 * tree-tailcall.c: Likewise
21115 * tree-scalar-evolution.c: Likewise
21116 * tree-ssa-dse.c: Likewise
21117 * tree-chrec.c: Likewise
21118 * tree-ssa-sccvn.c: Likewise
21119 * tree-ssa-copyrename.c: Likewise
21120 * tree-nomudflap.c: Likewise
21121 * tree-call-cdce.c: Likewise
21122 * tree-stdarg.c: Likewise
21123 * tree-ssa-math-opts.c: Likewise
21124 * tree-nrv.c: Likewise
21125 * tree-ssa-sink.c: Likewise
21126 * tree-browser.c: Likewise
21127 * tree-ssa-loop-ivcanon.c: Likewise
21128 * tree-ssa-loop.c: Likewise
21129 * tree-parloops.c: Likewise
21130 * tree-ssa-address.c: Likewise
21131 * tree-ssa-ifcombine.c: Likewise
21132 * tree-if-conv.c: Likewise
21133 * tree-data-ref.c: Likewise
21134 * tree-affine.c: Likewise
21135 * tree-ssa-phiopt.c: Likewise
21136 * tree-ssa-coalesce.c: Likewise
21137 * tree-ssa-pre.c: Likewise
21138 * tree-ssa-live.c: Likewise
21139 * tree-predcom.c: Likewise
21140 * tree-ssa-forwprop.c: Likewise
21141 * tree-ssa-dce.c: Likewise
21142 * tree-ssa-ter.c: Likewise
21143 * tree-ssa-loop-prefetch.c: Likewise
21144 * tree-optimize.c: Likewise
21145 * tree-ssa-phiprop.c: Likewise
21146 * tree-object-size.c: Likewise
21147 * tree-outof-ssa.c: Likewise
21148 * tree-ssa-structalias.c: Likewise
21149 * tree-switch-conversion.c: Likewise
21150 * tree-ssa-reassoc.c: Likewise
21151 * tree-ssa-operands.c: Likewise
21152 * tree-vectorizer.c: Likewise
21153 * tree-vect-data-refs.c: Likewise
21154 * tree-vect-generic.c: Likewise
21155 * tree-vect-stmts.c: Likewise
21156 * tree-vect-patterns.c: Likewise
21157 * tree-vect-slp.c: Likewise
21158 * tree-vect-loop.c: Likewise
21159 * tree-ssa-loop-ivopts.c: Likewise
21160 * tree-ssa-loop-im.c: Likewise
21161 * tree-ssa-loop-niter.c: Likewise
21162 * tree-ssa-loop-unswitch.c: Likewise
21163 * tree-ssa-loop-manip.c: Likewise
21164 * tree-ssa-loop-ch.c: Likewise
21165 * tree-dump.c: Likewise
21166 * tree-complex.c: Likewise
21168 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
21169 * tree-ssa-uninit.c: Likewise
21170 * tree-ssa-threadupdate.c: Likewise
21171 * tree-ssa-uncprop.c: Likewise
21172 * tree-ssa-ccp.c: Likewise
21173 * tree-ssa-dom.c: Likewise
21174 * tree-ssa-propagate.c: Likewise
21175 * tree-ssa-alias.c: Likewise
21176 * tree-dfa.c: Likewise
21177 * tree-cfgcleanup.c: Likewise
21178 * tree-sra.c: Likewise
21179 * tree-ssa-copy.c: Likewise
21180 * tree-ssa.c: Likewise
21181 * tree-profile.c: Likewise
21182 * tree-cfg.c: Likewise
21183 * tree-ssa-threadedge.c: Likewise
21184 * tree-vect-loop-manip.c: Likewise
21186 * tree-inline.c: Do not include diagnostic.h and expr.h.
21188 (copy_decl_for_dup_finish): Do not use NULL_RTX.
21190 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
21191 * tree-loop-distribution.c: Likewise.
21193 2010-06-01 Jan Hubicka <jh@suse.cz>
21195 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
21197 2010-06-01 Jan Hubicka <jh@suse.cz>
21199 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
21200 remove return value.
21201 (split_bbs_on_noreturn_calls) .... here.
21202 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
21203 * tree-flow.h (fixup_noreturn_call): New.
21205 2010-06-01 Jan Hubicka <jh@suse.cz>
21207 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
21209 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
21211 * tree.h (build_nt_call_list): Delete.
21212 * tree.c (build_nt_call_list): Delete.
21214 2010-06-01 Jan Hubicka <jh@suse.cz>
21216 * fwprop.c: Make emit-rtl.h include last.
21217 * rtlanal.c: Include emit-rtl.h.
21218 * genautomata.c: Output emit-rtl include into insn-automata.c
21219 * df-scan.c: Include emit-rtl.h.
21220 * haifa-sched.c: Indlude emit-rtl.h.
21221 * mode-switching.c: Indlude emit-rtl.h.
21222 * graph.c: Indlude emit-rtl.h.
21223 * sel-sched.c: Include emit-rtl.h.
21224 * sel-sched-ir.c: Include emit-rtl.h.
21225 * ira-build.c: Include emit-rtl.h.
21226 * emit-rtl.c (first_insn, last_insn): Remove defines.
21227 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
21228 Move to emit-rtl.h.
21229 (set_new_first_and_last_insn, get_last_insn_anywhere,
21230 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
21231 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
21232 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
21233 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
21234 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
21235 Use accessor functions.
21236 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
21237 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
21238 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
21239 mem_expr_equal_p): Move here from rtl.h.
21240 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
21241 Move here from emit-rtl.c; make inline.
21242 * cfglayout.h: Include emit-rtl.h.
21243 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
21244 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
21245 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
21246 mem_expr_equal_p, get_insns, set_first-insn,
21247 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
21248 * reg-stack.c: Include emit-rtl.h.
21251 2010-06-01 Jan Hubicka <jh@suse.cz>
21253 * cgraph.h (tree_function_versioning): Update prototype.
21254 (cgraph_function_versioning): Update prototype.
21255 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
21257 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
21258 (cgraph_materialize_clone, save_inline_function_body): Update use of
21259 tree_function_versioning.
21260 * tree-inline.c (copy_bb): Look for previous copied block to link
21261 after; fix debug output.
21262 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
21263 (copy_body): Likewise.
21264 (expand_call_inline): Update use of copy_body.
21265 (tree_function_versioning): Update use of copy body; accept
21266 blocks_to_copy and new_entry.
21268 2010-06-01 Jan Hubicka <jh@suse.cz>
21270 * gegenrtl.c: Remove unnecesary prototypes.
21272 (gendef): Produce static inline.
21274 (main): Do not decode parameters; generate header only.
21275 * Makefile.in (genrtl.c): Remove.
21277 2010-06-01 Jan Hubicka <jh@suse.cz>
21279 * tree-switch-conversion.c (build_one_array): Make it readonly.
21281 2010-06-01 Richard Guenther <rguenther@suse.de>
21283 * optabs.c (init_optabs): Guard all accesses to reinit.
21284 * ipa-pure-const.c (propagate): Fix another typo.
21285 * opts.c (common_handle_option): Split assignment to bool.
21286 * c-opts.c (c_common_handle_option): Likewise.
21288 2010-06-01 Arnaud Charlet <charlet@adacore.com>
21289 Matthew Gingell <gingell@adacore.com>
21291 * doc/invoke.texi: Mention -fdump-ada-spec.
21292 * tree-dump.c (dump_files): Add ada-spec.
21293 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
21294 * tree-pass.h (tree_dump_index): Add TDI_ada.
21295 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
21296 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
21297 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
21298 * c-decl.c: Include c-ada-spec.h.
21299 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
21301 (c_write_global_declarations): Add handling of -fdump-ada-spec.
21302 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
21303 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
21304 * c-ada-spec.h, c-ada-spec.c: New files.
21306 2010-06-01 Richard Guenther <rguenther@suse.de>
21309 * ipa-pure-const.c (get_function_state): Hand back varying state
21310 if we do not have one.
21311 (has_function_state): New function.
21312 (duplicate_node_data): Adjust.
21313 (remove_node_data): Likewise.
21314 (pure_const_write_summary): Likewise.
21315 (propagate): Likewise. Fix typo.
21317 2010-06-01 Jan Hubicka <jh@suse.cz>
21319 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
21320 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
21321 (execute_all_ipa_transforms): Do not play with the states.
21323 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
21325 * config/arm/t-linux-androideabi: New.
21326 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
21328 2010-06-01 Jan Hubicka <jh@suse.cz>
21330 * tree-inline.c (estimate_num_insns): For stdarg functions look
21331 into call statement to count cost of argument passing.
21333 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
21335 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
21336 argument for fprintf.
21337 (ix86_output_addr_diff_elt): Likewise.
21338 (x86_function_profiler): Likewise.
21339 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
21340 (LPREFIX): Likewise.
21341 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
21343 2010-05-31 Jakub Jelinek <jakub@redhat.com>
21346 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
21347 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
21348 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
21349 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
21350 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
21351 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
21352 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
21353 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
21356 2010-05-31 Jan Hubicka <jh@suse.cz>
21358 * tree.h (tree_range_check_failed): Declare noreturn.
21360 2010-05-31 Jan Hubicka <jh@suse.cz>
21362 * gimple.c (gimple_call_builtin_p): New function.
21363 * gimple.h (gimple_call_builtin_p): Declare.
21364 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
21366 (execute_warn_function_return): BUILT_IN_RETURN is return.
21367 (split_critical_edges): Return edges are not critical.
21368 (is_ctrl_altering_stmt): Builtin_in_return is altering.
21369 (gimple_verify_flow_info): Handle built_in_return.
21370 (execute_warn_function_return): Handle built_in_return.
21371 * ipa-pure-const.c (check_call): Ignore builtin_return.
21373 2010-05-31 Jakub Jelinek <jakub@redhat.com>
21375 PR middle-end/44337
21376 * expr.c (expand_assignment): Don't store anything for out-of-bounds
21377 array accesses with non-MEM.
21379 PR tree-optimization/44182
21380 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
21381 newly needs to end a bb is followed by debug stmts, instead return
21382 true from the function at the end.
21383 (maybe_move_debug_stmts_to_successors): New function.
21384 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
21386 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
21389 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
21391 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
21393 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
21394 for nested functions in non-optimized compilation.
21396 2010-05-31 Richard Guenther <rguenther@suse.de>
21398 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
21400 2010-05-30 Jan Hubicka <jh@suse.cz>
21402 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
21404 2010-05-30 Richard Guenther <rguenther@suse.de>
21407 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
21408 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
21411 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
21413 * config/darwin.c (output_objc_section_asm_op): Add comment.
21414 (name_needs_quotes): Add '_' to list of valid comment chars.
21415 (machopic_output_function_base_name): Remove unneeded quotes.
21416 (darwin_encode_section_info): Adjust asm whitespace.
21417 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
21418 (ASM_OUTPUT_LOCAL): Ditto.
21419 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
21420 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
21421 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
21423 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
21425 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
21426 RS6000_OUTPUT_BASENAME unconditionally.
21427 (rs6000_output_function_epilogue): Likewise.
21429 2010-05-30 Jan Hubicka <jh@suse.cz>
21431 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
21434 2010-05-30 Richard Guenther <rguenther@suse.de>
21436 * tree-cfg.c (verify_gimple_assign_single): Implement
21437 verification for COND_EXPR rhs.
21439 2010-05-30 Jan Hubicka <jh@suse.cz>
21441 * cgraph.h (cgraph_dump_file): Declare.
21442 * cgraphunit.c (cgraph_dump_file): Export.
21443 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
21445 2010-05-30 Jan Hubicka <jh@suse.cz>
21447 * dwarf2out.c (reference_to_unused,
21448 premark_types_used_by_global_vars_helper): Avoid creation of new
21451 2010-05-30 Jan Hubicka <jh@suse.cz>
21453 * cgraph.h (cgraph_node_cannot_return,
21454 cgraph_edge_cannot_lead_to_return): New functions.
21455 * cgraph.c (cgraph_node_cannot_return,
21456 cgraph_edge_cannot_lead_to_return): Use them.
21457 * ipa-pure-const.c (pure_const_names): New static var.
21458 (check_call): Handle calls not leading to return.
21459 (pure_const_read_summary): Dump info read.
21460 (propagate): Dump info about propagation process; ignore side effects
21461 of functions not leading to exit; fix handling of pure functions.
21463 2010-05-30 Jan Hubicka <jh@suse.cz>
21465 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
21466 for tail call epilogues.
21468 2010-05-30 Jan Hubicka <jh@suse.cz>
21470 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
21471 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
21474 2010-05-29 Jan Hubicka <jh@suse.cz>
21476 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
21477 node; remove references in node we no longer keep in cgrpah but need
21480 2010-05-29 Jan Hubicka <jh@suse.cz>
21482 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
21484 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21487 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
21489 2010-05-29 Jan Hubicka <jh@suse.cz>
21491 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
21492 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
21493 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
21494 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
21495 debug_names_replaced_by, debug_update_ssa): Likewise.
21496 * sbitmap.c (debug_sbitmap): Likewise.
21497 * genrecog.c (debug_decision, debug_decision_list): Likewise.
21498 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
21499 debug_tree_chain): Likewise.
21500 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
21501 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
21502 * optabs.c (debug_optab_libfuncs): Likewise.
21503 (verify_loop_closed_ssa): Likewise.
21504 * value-prof.c (verify_histograms): Likewise.
21505 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
21506 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
21507 * cfghooks.c (verify_flow_info): Likewise.
21508 * fold-const.c (debug_fold_checksum): Likewise.
21509 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
21510 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
21512 * omega.c (debug_omega_problem): Likewise.
21513 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
21514 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
21515 * dominance.c (verify_dominators, debug_dominance_info,
21516 debug_dominance_tree): Likewise.
21517 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
21518 * df_regno_debug, df_ref_debug,
21519 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
21520 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
21521 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
21522 * sel-sched.c (debug_state): Likewise.
21523 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
21525 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
21526 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
21527 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
21528 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
21530 * c-pretty-print.c (debug_c_tree): Likewise.
21531 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
21532 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
21533 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
21534 * ebitmap.c (debug_ebitmap): Likewise.
21535 * function.c (debug_find_var_in_block_tree): Likewise.
21536 * print-rtl.c (debug_rtx): Likewise.
21537 (debug_rtx_count): Likewise.
21538 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
21539 * stor-layout.c (debug_rli): Likewise.
21540 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
21541 * tree-data-ref.c (debug_data_references,
21542 debug_data_dependence_relations, debug_data_reference,
21543 debug_data_dependence_relation, debug_rdg_vertex,
21544 debug_rdg_component, debug_rdg): Likewise.
21545 * tree-affine.c (debug_aff): Likewise.
21546 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
21548 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
21549 * emit-rtl.c (verify_rtl_sharing): Likewise.
21550 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
21551 debug_value_expressions): Likewise.
21552 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
21553 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
21554 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
21555 * cfglayout.c (verify_insn_chain): Likewise.
21556 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
21557 debug_clast_stmt, debug_generated_program): Likewise.
21558 * ggc-page.c (debug_print_page_list): Likewise.
21559 * tree-ssa-ter.c (debug_ter): Likewise.
21560 * graphite-dependences.c (debug_pddr): Likewise.
21561 * sched-deps.c (debug_ds): Likewise.
21562 * tree-ssa.c (verify_ssa): Likewise.
21563 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
21564 debug_scattering_functions, debug_iteration_domains, debug_pdr,
21565 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
21566 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
21567 * tree-inline.c (debug_find_tree): Likewise.
21568 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
21569 debug_ppl_powerset_matrix): Likewise.
21570 * var-tracking.c (debug_dv): Likewise.
21571 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
21572 * cfgloop.c (verify_loop_structure): Likewise.
21573 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
21574 * c-common.c (verify_sequence_points): Likewise.
21575 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
21576 debug_candidates, debug_rgn_dependencies): Likewise.
21577 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
21578 * debug_constraint_graph, debug_solution_for_var,
21579 debug_sa_points_to_info): Likewise.
21580 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
21582 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
21583 debug_loops, debug_loop, debug_loop_num): Likewise.
21584 * passes.c (debug_pass): Likewise.
21585 (dump_properties): Likewise; add cfglayout property.
21586 (debug_properties): Likewise.
21587 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
21588 * varpool.c (debug_varpool): Likewise.
21589 * regcprop.c (debug_value_data): Likewise.
21590 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
21591 debug_immediate_uses_for): Likewise.
21593 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
21596 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
21597 Filter out insn-flags.h.
21599 2010-05-29 Jan Hubicka <jh@suse.cz>
21601 * cgraph.h (struct varpool_node_set_def,
21602 struct cgraph_node_set_def): Remove unused AUX pointer.
21603 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
21606 2010-05-29 Jan Hubicka <jh@suse.cz>
21608 PR middle-end/44324
21609 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
21611 2010-05-29 Richard Guenther <rguenther@suse.de>
21613 * lto-streamer.c (cached_bp): New global variable.
21614 (bitpack_create): Return the cached bitpack, if available.
21615 (bitpack_delete): Clear and cache the bitpack, if appropriate.
21616 (bp_pack_value): Remove redundant asserts.
21618 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
21620 PR middle-end/44306
21621 * tree-if-conv.c (is_true_predicate): New.
21622 (is_predicated): Use is_true_predicate.
21623 (add_to_predicate_list): Same. Do not use unshare_expr.
21624 (add_to_dst_predicate_list): Same.
21626 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
21628 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
21630 (predicate_bbs): Same.
21631 (clean_predicate_lists): Same.
21632 (find_phi_replacement_condition): Do not AND the predicate from
21635 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
21638 * Makefile.in (build/gencondmd.o): Add a missing `\'.
21640 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21643 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
21644 (negdf2): Adjust expander pattern and use negdf2_slow.
21645 (negsf2): Likewise.
21647 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
21649 * basic-block.h (struct control_flow_graph): Move last_label_uid field
21651 * df.h (struct df_base_ref): Move regno field up.
21652 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
21653 * expr.h (struct separate_ops): Move location field up.
21654 * optabs.h (struct optab_d): Move libcall_basename field down.
21655 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
21656 * config/i386/i386.h (struct machine_function): Convert call_abi field
21657 into a bitfield. Move cfa field to the end of the structure.
21659 2010-05-29 Jan Hubicka <jh@suse.cz>
21661 * varpool.c (varpool_get_node): Fix lookup.
21663 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21665 * config/spu/spu-protos.h: Do not include rtl.h. Protect
21666 RTL specific prototypes with #ifdef RTX_CODE.
21667 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
21668 * config/spu/t-spu-elf: Fix dependencies.
21670 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
21672 2010-05-29 Mike Stump <mikestump@comcast.net>
21675 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
21676 TM_H when building to avoid dependency loops.
21678 2010-05-29 Jan Hubicka <jh@suse.cz>
21680 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
21681 refs and body; not the whole node for masters of materialized clones.
21683 2010-05-29 Mike Stump <mikestump@comcast.net>
21685 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
21687 2010-05-29 Jan Hubicka <jh@suse.cz>
21689 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
21690 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
21691 use of clone_function_name.
21692 * cgraph.h (cgraph_create_virtual_clone,
21693 cgraph_function_versioning): update prototypes.
21694 (clone_function_name): Declare.
21695 * ipa-cp.c (ipcp_insert_stage): Update call of
21696 cgraph_create_virtual_clone.
21697 * omp-low.c (create_omp_child_function_name): Use
21698 cgraph_create_virtual_clone.
21699 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
21700 (cgraph_function_versioning): Take SUFFIX argument; produce new name
21701 and make decl local.
21703 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21705 * vec.h: Include statistics.h
21706 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
21709 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21711 * c-lex.c: Do not include c-tree.h.
21712 * c-pretty-print.c: Likewise.
21713 * c-opts.c: Likewise.
21714 * c-gimplify.c: Likewise.
21715 * c-common.c: Likewise.
21716 * c-dump.c: Likewise. Include c-common.h.
21718 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21720 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
21721 before including diagnostic-core.h.
21722 (c_cpp_error): New prototype moved from c-tree.h.
21723 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
21724 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
21725 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
21726 (c_cpp_error): Prototype moved to c-common.h.
21727 * Makefile.in: Update dependency for C_COMMON_H.
21729 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21731 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
21732 * c-common.c (c_register_addr_space): Remove here.
21733 * c-decl.c (c_register_addr_space): Re-add here.
21735 2010-05-28 Mike Stump <mikestump@comcast.net>
21737 * config/darwin-c.c: Remove c-tree.h include.
21739 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21741 * gcc.c: Include diagnostic.h.
21742 (error_count): Remove. All users changed to use errorcount.
21743 (programname): Remove. All users changed to use progname.
21744 (fancy_abort, internal_error, fatal_error, error, warning, inform,
21746 (execute): Don't include "Internal error" and bug reporting
21747 information in argument of internal_error call.
21748 (process_command): Don't increment error_count after calling
21750 (input_filename): Rename to gcc_input_filename. All users
21752 (main): Call diagnostic_initialize. Register delete_temp_files
21753 with atexit. Use seen_error to test for errors.
21754 * gcc.h: Include diagnostic-core.h.
21755 (fatal_error, error, warning): Remove.
21756 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
21757 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
21758 (gcc.o): Update dependencies.
21760 2010-05-28 Jeff Law <law@redhat.com>
21762 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
21764 * ira.h (ira_bad_reload_regno): Declare
21765 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
21767 * ira-color.c (update_curr_costs): Free updated hard reg costs.
21768 (ira_reassign_conflict_allocnos): Remove bogus asserts.
21769 (allocno_reload_assign): Likewise.
21771 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
21773 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
21776 2010-05-28 Richard Guenther <rguenther@suse.de>
21779 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
21780 Stream fixed-point constants mode.
21781 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
21782 and TYPE_PRECISION.
21783 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
21784 Stream fixed-point constants mode.
21785 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
21786 and TYPE_PRECISION.
21788 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
21790 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
21791 only place it was called from.
21792 (number_of_latch_executions): Do not return chrec_dont_know when the
21793 may_be_zero is a runtime condition: instead, return a COND_EXPR
21794 including the may_be_zero condition.
21795 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
21797 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
21800 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
21802 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
21803 generate COND_EXPRs for degenerate_phi_result.
21805 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
21807 PR middle-end/44293
21808 * tree-if-conv.c (if_convertible_loop_p): Check the
21809 if-convertibility of phi nodes in non predicated BBs.
21811 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21813 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
21815 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21818 * gcc.c (inform, warning, inform): New functions.
21819 (fatal_ice): Rename to internal_error; change cmsgid parameter to
21820 gmsgid. All callers changed.
21821 (notice): Rename to fnotice; add parameter fp. All callers changed.
21822 (fatal_error): Rename to fatal_signal. All users changed.
21823 (fatal): Rename to fatal_error; change cmsgid parameter to
21824 gmsgid. All callers changed.
21825 (process_command): Use warning instead of error for warnings.
21826 (end_going_arg): Don't use _() around argument of error.
21827 (do_spec_1): Use inform for message from %n specs. Use warning
21828 instead of error for warnings.
21829 (main): Use inform for comparison messages. Use warning for
21830 message about unused linker input.
21831 (error): Increment error_count. Print "error: ".
21832 * gcc.h (fatal): Change to fatal_error.
21833 (warning): Declare.
21834 * config/darwin-driver.c (darwin_default_min_version): Use warning
21835 instead of fprintf for warnings.
21836 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
21838 2010-05-28 Julian Brown <julian@codesourcery.com>
21840 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
21841 (*thumb2_addsi3_compare0_scratch): New.
21842 * config/arm/constraints.md (Pv): New.
21843 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
21845 (*addsi3_compare0_scratch): Likewise.
21847 2010-05-28 Jan Hubicka <jh@suse.cz>
21849 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
21851 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
21852 only on local statics.
21854 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
21856 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
21858 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
21861 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
21862 (OPTION_GLIBC): Define.
21864 2010-05-28 Jakub Jelinek <jakub@redhat.com>
21867 * dwarf2out.c (double_int_type_size_in_bits): New function.
21868 (round_up_to_align): Change first argument and return value to
21870 (field_byte_offset): Work internally on double_ints.
21873 * builtins.c (expand_movstr): Use a temporary pseudo instead
21874 of target even when target is not NULL and not const0_rtx, but
21875 fails movstr predicate.
21876 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
21878 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21880 * final.c (rest_of_clean_state): Use %m in errors instead of
21882 * gengtype.c (read_input_list, close_output_files): Use xstrerror
21883 instead of strerror.
21884 * toplev.c (process_options): Use %m in errors instead of strerror
21886 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
21889 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
21891 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
21892 (ix86_canonical_va_list_type): Make static. Add declaration.
21893 (ix86_enum_va_list): Make static. Reindent.
21894 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
21895 (ix86_canonical_va_list_type): Ditto.
21896 (ix86_enum_va_list): Ditto.
21898 2010-05-28 Richard Guenther <rguenther@suse.de>
21900 * lto-wrapper.c (run_gcc): With -save-temps generate a
21901 user-visible ltrans filename. Fixup ltrans unit numbering.
21903 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
21905 * c-common.c (c_common_nodes_and_builtins): Replace use
21906 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
21907 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
21908 to ix86_enum_va_list.
21909 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
21910 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
21911 (TARGET_ENUM_VA_LIST_P): Add hook description.
21912 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
21913 * target.h (gcc_target): Add enum_va_list hook.
21916 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
21917 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
21918 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
21920 2010-05-28 Alan Modra <amodra@gmail.com>
21923 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
21924 emit_library_call machinery to set up __tls_get_addr calls.
21926 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21928 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
21930 2010-05-28 Dodji Seketeli <dodji@redhat.com>
21932 Revert fix for PR c++/44188
21933 * c-common.c (is_typedef_decl): Revert the moving of this
21935 * tree.c (is_typedef_decl): ... here.
21936 (typdef_variant_p): Revert the moving of this definition
21937 here from cp/tree.c.
21938 * c-common.h (is_typedef_decl): Revert the moving of this
21940 * tree.h (is_typedef_decl): ... here.
21941 (typedef_variant_p): Revert the moving of this declaration here
21943 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
21944 (gen_tagged_type_die): Revert the splitting out of ...
21945 (gen_type_die_with_usage): ... this function. Revert the anonymous
21946 tagged type handling.
21947 (gen_typedef_die): Revert emitting DW_TAG_typedef for
21948 typedefs naming anonymous tagged types.
21950 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
21952 * config/rs6000/rs6000-modes.def (PSImode): Delete.
21954 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
21956 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
21957 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
21959 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
21961 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
21962 XER_REGS to CA_REGS throughout.
21963 * config/rs6000/rs6000.h: Same.
21964 (ADDITIONAL_REGISTER_NAMES): Add "xer".
21965 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
21966 that mode_iterator "P" is the size for arithmetic carries as well.
21967 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
21969 2010-05-28 Jakub Jelinek <jakub@redhat.com>
21972 * combine.c (struct rtx_subst_pair): Define unconditionally.
21973 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
21974 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
21975 Call make_compound_operation on pair->to.
21976 (propagate_for_debug): Don't call make_compound_operation here.
21977 Always use simplify_replace_fn_rtx.
21979 2010-05-27 Sterling Augustine <sterling@tensilica.com>
21981 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
21982 * config/xtensa/xtensa.c (override_options): Check
21983 TARGET_FORCE_NO_PIC and set flag_pic.
21984 * config/xtensa/xtensa.opt: Document -mforce-no-pic
21986 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
21989 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
21990 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
21992 2010-05-27 Joseph Myers <joseph@codesourcery.com>
21994 * diagnostic-core.h: New. Contents moved from diagnostic.h and
21996 * diagnostic.c: Don't include toplev.h.
21997 (progname): Define. Moved from toplev.c.
21998 (seen_error): New function.
21999 * diagnostic.h: Include diagnostic-core.h.
22000 (diagnostic_t, emit_diagnostic): Don't declare here.
22001 * toplev.c (progname): Move to toplev.c.
22002 (emit_debug_global_declarations, compile_file, finalize,
22003 do_compile, toplev_main): Use seen_error.
22004 * toplev.h: Include diagnostic-core.h.
22005 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
22006 internal_error, warning, warning_at, error, error_n, error_at,
22007 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
22008 verbatim, fnotice, progname): Move to diagnostic-core.h.
22009 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
22010 (expand_builtin_expect): Use seen_error.
22011 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
22012 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
22013 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
22014 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
22015 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
22016 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
22017 errorcount for errors.
22018 * c-opts.c (c_common_finish): Use seen_error.
22019 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
22020 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
22021 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
22022 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
22023 (get_coverage_counts): Use seen_error.
22024 * dwarf2out.c (dwarf2out_finish): Use seen_error.
22025 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
22026 gimplify_body): Use seen_error.
22027 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
22028 * ipa-pure-const.c (gate_pure_const): Use seen_error.
22029 * ipa-reference.c (gate_reference): Use seen_error.
22030 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
22031 * lambda-code.c: Include diagnostic-core.h instead of
22033 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
22034 * lto-compress.c: Include diagnostic-core.h instead of
22036 * lto-section-in.c: Include diagnostic-core.h instead of
22038 * lto-streamer-out.c: Include diagnostic-core.h instead of
22040 * lto-streamer.c: Include diagnostic-core.h instead of
22042 (gate_lto_out): Use seen_error.
22043 * matrix-reorg.c: Include diagnostic-core.h instead of
22045 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
22046 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
22047 (gate_expand_omp, lower_omp_1): Use seen_error.
22048 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
22049 (rest_of_decl_compilation, rest_of_type_compilation,
22050 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
22051 * tree-cfg.c (label_to_block_fn): Use seen_error.
22052 * tree-inline.c (optimize_inline_calls): Use seen_error.
22053 * tree-mudflap.c (mudflap_finish_file): Use
22055 * tree-optimize.c (gate_all_optimizations,
22056 gate_all_early_local_passes, gate_all_early_optimizations): Use
22058 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
22059 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
22060 (varpool_remove_unreferenced_decls,
22061 varpool_assemble_pending_decls): Use seen_error.
22062 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
22063 (TOPLEV_H, DIAGNOSTIC_H): Update.
22064 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
22065 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
22066 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
22067 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
22068 coverage.o, lambda-code.o): Update dependencies.
22070 2010-05-25 Dodji Seketeli <dodji@redhat.com>
22073 * c-common.c (is_typedef_decl): Move this definition ...
22074 * tree.c (is_typedef_decl): ... here.
22075 (typdef_variant_p): Move definition here from cp/tree.c.
22076 * c-common.h (is_typedef_decl): Move this declaration ...
22077 * tree.h (is_typedef_decl): ... here.
22078 (typedef_variant_p): Move declaration here from cp/cp-tree.h
22079 * dwarf2out.c (is_naming_typedef_decl): New function.
22080 (gen_tagged_type_die): Split out of ...
22081 (gen_type_die_with_usage): ... this function. When an anonymous
22082 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
22083 is emitted for the typedef.
22084 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
22085 anonymous tagged types.
22087 2010-05-27 Jason Merrill <jason@redhat.com>
22089 * print-tree.c (debug_vec_tree): New fn.
22090 (print_vec_tree): New fn.
22091 * tree.h: Declare them.
22092 * gdbinit.in (pvt): New command.
22094 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
22096 * gdbinit.in (pdd): New command.
22098 2010-05-27 Jan Hubicka <jh@suse.cz>
22100 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
22101 (update_caller_keys): Return early if there are no callers;
22102 only update fibheap when decresing the key.
22103 (update_callee_keys): Avoid recursion.
22104 (decide_inlining_of_small_functions): When badness does not match;
22105 re-insert into fibheap.
22107 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
22109 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
22110 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
22111 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
22112 (ALL_HOST_OBJS): Now a union of the above two.
22113 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
22114 all files in ALL_HOST_FRONTEND_OBJS.
22115 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
22117 * c-common.c: Pretend to be a backend file by undefining
22118 IN_GCC_FRONTEND (still need rtl.h here).
22120 2010-05-27 Jan Hubicka <jh@suse.cz>
22122 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
22123 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
22125 2010-05-27 Jan Hubicka <jh@suse.cz>
22127 * sched-ebb.c: Rename struct deps to struct deps_desc.
22129 * sel-sched-ir.c: Likewise.
22130 * sched-deps.c: Likewise.
22131 * sched-int.h: Likewise.
22132 * sched-rgn.c: Likewise.
22134 2010-05-27 Jon Beniston <jon@beniston.com>
22137 * config/lm32/lm32.h: Remove definition of
22138 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
22140 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
22143 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
22145 2010-05-27 Richard Guenther <rguenther@suse.de>
22147 PR tree-optimization/44284
22148 * tree-vect-stmts.c (vectorizable_assignment): Handle
22149 sign-changing conversions as simple copy.
22151 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
22153 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
22155 (__gthread_active_p): Check for pthread_create if compiling against
22158 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
22160 Support compilation for Android platform. Reimplement -mandroid.
22162 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
22163 (*android*): Set ANDROID_DEFAULT.
22164 (arm*-*-linux*): Include linux-android.h.
22165 (arm*-*-eabi*): Don't include previous -mandroid implementation.
22166 * config/arm/eabi.h: Remove, move Android-specific parts ...
22167 * config/linux-android.h: ... here. New file.
22168 * config/arm/eabi.opt: Rename to ...
22169 * config/linux-android.opt: ... this.
22170 (mandroid): Allow -mno-android option. Initialize based on
22172 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
22173 Move logic to corresponding LINUX_TARGET_* macros.
22174 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
22175 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
22176 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
22177 Android definitions.
22178 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
22179 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
22182 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
22184 Add support for Bionic C library
22186 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
22188 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
22189 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
22191 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
22192 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
22193 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
22194 to support multiple C libraries. Handle Bionic.
22195 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
22196 (BIONIC_DYNAMIC_LINKER64): Define.
22197 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
22199 (TARGET_HAS_SINCOS): Enable for Bionic.
22201 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
22202 the last option specified on command line take effect.
22203 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
22205 (mglibc, muclibc): Update.
22207 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
22208 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
22211 * doc/invoke.texi (-mglibc, -muclibc): Update.
22212 (-mbionic): Document.
22214 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22216 * c-common.h (c_register_addr_space): Add prototype.
22217 (ADDR_SPACE_KEYWORD): Remove.
22218 * c-common.c (c_register_addr_space): New function.
22219 (c_addr_space_name): Reimplement.
22220 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
22222 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
22223 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
22225 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
22226 Remove TARGET_ADDR_SPACE_KEYWORDS.
22228 2010-05-27 Joseph Myers <joseph@codesourcery.com>
22230 * input.c: New file.
22231 * input.h (main_input_filename): Move declaration to toplev.h.
22232 * toplev.c (input_location, line_table): Move to input.c
22233 * toplev.h (main_input_filename): Move declaration from input.h.
22234 * tree.c (expand_location): Move to input.c.
22235 * Makefile.in (OBJS-common): Add input.o.
22236 (input.o): Add dependencies.
22238 2010-05-27 Richard Guenther <rguenther@suse.de>
22240 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
22241 for non-existant files.
22242 (fork_execute): Mark args_name file as deleted.
22244 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
22247 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
22248 (narrow_signed_type): Likewise.
22250 2010-05-26 Jan Hubicka <jh@suse.cz>
22252 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
22253 edge only when checking is enabled; check using former_clone_of;
22254 check inline clones too.
22255 (cgraph_materialize_clone): Record former_clone_of pointer.
22256 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
22257 combining redirections; dump args_to_skip bitmap
22258 (cgraph_materialize_all_clones): Do no redirection here.
22259 * ipa-inline.c (inline_transform): Do redirection here.
22260 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
22263 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22265 * config/avr/avr-c.c: Do not include regs.h.
22266 Include cpplib.h for cpp_define and tree.h for c-common.h.
22267 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
22268 * config/avr/t-avr: Fix dependencies for avr-c.o.
22270 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22272 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
22273 string instead of SYMBOL_REF rtx.
22274 * rtl.h (set_stack_check_libfunc): Move prototype from here...
22275 * libfuncs.h: ...to here. Adjust for explow.c change.
22277 2010-05-26 Joseph Myers <joseph@codesourcery.com>
22279 * pretty-print.c: Don't include ggc.h.
22280 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
22281 (identifier_to_locale): Use them for allocation.
22282 * pretty-print.h (identifier_to_locale_alloc,
22283 identifier_to_locale_free): Declare.
22284 * toplev.c (alloc_for_identifier_to_locale): New.
22285 (general_init): Set identifier_to_locale_alloc and
22286 identifier_to_locale_free.
22287 * Makefile.in (pretty-print.o): Update dependencies.
22289 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
22291 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
22292 pointer types if they have different alignment or mode.
22294 2010-05-26 Anatoly Sokolov <aesok@post.ru>
22296 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
22297 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22298 * config/sparc/sparc-protos.h (function_value): Remove declaration.
22299 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
22300 sparc_function_value_regno_p): New functions.
22301 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22302 TARGET_FUNCTION_VALUE_REGNO_P): Define.
22303 (function_value): Rename to...
22304 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
22305 argument to 'outgoing'.
22306 (function_arg_record_value, function_arg_union_value,
22307 function_arg_vector_value): Update comment.
22309 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
22311 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
22312 (fde_needed_for_eh_p): New predicate.
22313 (output_call_frame_info): Use it throughout to decide whether FDEs
22314 are needed for EH purpose.
22315 (dwarf2out_begin_prologue): Reorder assignments.
22317 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22319 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
22320 special case loop->header.
22321 (is_predicated): New.
22322 (if_convertible_loop_p): Call it.
22324 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22326 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
22327 iterator in parameter. Do not generate code during the analysis.
22328 (tree_if_convert_cond_stmt): Removed.
22329 (tree_if_convert_stmt): Removed.
22330 (predicate_bbs): New.
22331 (if_convertible_loop_p): Call predicate_bbs.
22332 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
22333 now contains all the analysis part.
22335 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22337 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
22338 statements in the analysis part.
22339 (tree_if_convert_stmt): Update comment.
22340 (remove_conditions_and_labels): New.
22341 (combine_blocks): Call remove_conditions_and_labels.
22342 (tree_if_conversion): Update comment.
22344 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22346 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
22347 than 2 predecessors or more than 2 successors.
22349 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22351 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
22352 of loops in which the data dependence analysis fails.
22354 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22356 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
22357 CDI_POST_DOMINATORS.
22358 (tree_if_conversion): Same.
22360 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22362 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
22364 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22366 * tree-if-conv.c: Update copyright years. Fix comments.
22369 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
22371 * builtin-types.def (BT_INT128): New primitive type.
22372 (BT_UINT128): Likewise.
22373 * c-common.c (c_common_r): Add __int128 keyword.
22374 (c_common_type_for_size): Handle __int128.
22375 (c_common_type_for_mode): Likewise.
22376 (c_common_signed_or_unsigned_type): Likewise.
22377 (c_common_nodes_and_builtins): Add builtin type
22378 if target supports 128-bit integer scalar.
22379 * c-common.h (enum rid): Add RID_INT128.
22380 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
22381 if target supports 128-bit integer scalar.
22382 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
22383 (finish_declspecs): Likewise.
22384 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
22385 (c_token_starts_declspecs): Likewise.
22386 (c_parser_declspecs): Likewise.
22387 (c_parser_attributes): Likewise.
22388 (c_parser_objc_selector): Likewise.
22389 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
22390 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
22391 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
22392 * tree.c (make_or_reuse_type): Likewise.
22393 (make_unsigned_type): Likewise.
22394 (build_common_tree_nodes_2): Likewise.
22395 * tree.h (enum integer_type_kind): Add itk_int128 and
22396 itk_unsigned_int128.
22397 (int128_integer_type_node): New define.
22398 (int128_unsigned_type_node): New define.
22399 * doc/extend.texi: Add documentation about __int128 type.
22401 2010-05-26 Richard Guenther <rguenther@suse.de>
22403 * tree-ssa-sccvn.c (copy_nary): Adjust.
22404 (copy_phis): Rename to ...
22405 (copy_phi): ... this. Adjust.
22406 (copy_references): Rename to ...
22407 (copy_reference): ... this. Adjust.
22408 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
22409 result into the valid table.
22411 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22413 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
22414 insn-config.h, insn-codes.h, recog.h, and optabs.h.
22416 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22418 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
22420 2010-05-26 Richard Guenther <rguenther@suse.de>
22422 * opts.c (common_handle_option): Handle OPT_Ofast.
22424 2010-05-26 Joseph Myers <joseph@codesourcery.com>
22426 * diagnostic.c: Don't include opts.h.
22427 (permissive_error_option): Define.
22428 (diagnostic_initialize): Take n_opts parameter. Allocate memory
22429 for classify_diagnostic. Don't use memset for
22430 classify_diagnostic. Initialize new and recently added fields.
22431 (diagnostic_classify_diagnostic): Use context->n_opts instead of
22433 (diagnostic_report_diagnostic): Pass context parameter to
22434 diagnostic_report_warnings_p. Use option_enabled and option_name
22435 hooks from context.
22436 (emit_diagnostic): Use permissive_error_option.
22437 (permerror): Likewise.
22438 * diagnostic.h: Don't include options.h.
22439 (struct diagnostic_context): Add n_opts, opt_permissive,
22440 inhibit_warnings, warn_system_headers, option_enabled and
22441 option_name fields. Change classify_diagnostic to a pointer.
22442 * opts-diagnostic.h: New file.
22443 * opts.c: Include opts-diagnostic.h.
22444 (common_handle_option): Set global_dc fields for -Wfatal-errors,
22445 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
22446 (option_name): New function.
22447 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
22448 (c_common_handle_option): Set global_dc->permissive for
22450 * c-common.c (c_cpp_error): Save and restore
22451 global_dc->warn_system_headers, not variable warn_system_headers.
22452 * toplev.c: Include opts-diagnostic.h.
22453 (general_init): Update call to diagnostic_initialize. Set
22454 global_dc->show_column, global_dc->option_enabled and
22455 global_dc->option_name.
22456 (process_options): Don't set global_dc fields here.
22457 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
22458 (diagnostic.o, opts.o, toplev.o): Update dependencies.
22460 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
22462 * config/picochip/picochip.md (movsi): Split a movsi from a
22463 const after reload.
22465 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22467 * ggc-zone.c: Update copyright year.
22468 (poison_region): Mark memory for Valgrind as undefined before
22469 memset () call and inaccessible afterwards.
22470 (ggc_pch_total_size): Change type of i to int.
22472 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22474 * ggc-common.c (ggc_free_overhead): Allow empty slot.
22476 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22478 * ggc-common.c: Update copyright year.
22479 (ggc_rlimit_bound): Remove prototype. Compile only if
22480 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
22481 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
22482 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
22483 (ggc_min_heapsize_heuristic): Likewise.
22485 2010-05-26 Richard Guenther <rguenther@suse.de>
22487 PR rtl-optimization/44164
22488 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
22489 no-common access-path disambiguation.
22490 (indirect_ref_may_alias_decl_p): Adjust.
22491 (indirect_refs_may_alias_p): Likewise.
22492 (refs_may_alias_p_1): Likewise.
22494 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22496 * c-typeck.c: Do not include expr.h.
22498 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22500 * rtl.h (decl_default_tls_model): Move prototype from here...
22501 * output.h: ...to here.
22502 * c-decl.c: Do not include rtl.h.
22503 * c-pragma.c: Likewise.
22504 * c-parser.c: Likewise.
22505 * c-gimplify.c: Likewise. And also not hard-reg-set.
22506 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
22507 FIXME note for it. Add a FIXME note for expr.h.
22508 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
22509 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
22512 2010-05-26 Jakub Jelinek <jakub@redhat.com>
22515 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
22516 or total_size is larger than red zone size for non-V4 ABI, emit a
22517 stack_tie resp. frame_tie insn before stack pointer restore.
22518 * config/rs6000/rs6000.md (frame_tie): New insn.
22520 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
22522 * function.h (struct function): Add can_throw_non_call_exceptions bit.
22523 * lto-streamer-in.c (input_function): Stream it in.
22524 * lto-streamer-out.c (output_function): Stream it out.
22525 * function.c (allocate_struct_function): Set it.
22526 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
22527 for flag_non_call_exceptions.
22528 * cfgbuild.c (control_flow_insn_p): Likewise.
22529 (make_edges): Likewise.
22530 * cfgexpand.c (expand_stack_alignment): Likewise.
22531 * combine.c (distribute_notes): Likewise.
22532 * cse.c (cse_extended_basic_block): Likewise.
22533 * except.c (insn_could_throw_p): Likewise.
22534 * gcse.c (simple_mem): Likewise.
22535 * ipa-pure-const.c (check_call): Likewise.
22536 (check_stmt ): Likewise.
22537 * lower-subreg.c (lower-subreg.c): Likewise.
22538 * optabs.c (emit_libcall_block): Likewise.
22539 (prepare_cmp_insn): Likewise.
22540 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
22541 * postreload.c (rest_of_handle_postreload): Likewise.
22542 * reload1.c (reload_as_needed): Likewise.
22543 (emit_input_reload_insns): Likewise.
22544 (emit_output_reload_insns): Likewise.
22545 (fixup_abnormal_edges): Likewise.
22546 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
22547 * store-motion.c (find_moveable_store): Likewise.
22548 * tree-eh.c (stmt_could_throw_p): Likewise.
22549 (tree_could_throw_p): Likewise.
22550 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22551 * config/arm/arm.c (arm_expand_prologue): Likewise.
22552 (thumb1_expand_prologue): Likewise.
22553 * config/rx/rx.md (cbranchsf4): Likewise.
22555 * config/s390/s390.c (s390_emit_prologue): Likewise.
22556 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
22557 (inline_forbidden_into_p): New predicate.
22558 (expand_call_inline): Use it to forbid inlining.
22559 (tree_can_inline_p): Likewise.
22561 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
22563 * config/i386/i386-c.c: Do not include rtl.h.
22564 * config/i386/t-i386: Update dependencies.
22566 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
22568 * attribs.c: Do not include rtl.h.
22569 * Makefile.in: Update dependencies.
22571 2010-05-25 Anatoly Sokolov <aesok@post.ru>
22573 * double-int.h (double_int_and): New.
22574 * combine.c (try_combine): Clean up, use double_int_* and
22575 immed_double_int_const functions.
22577 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22579 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
22580 stderr to /dev/null instead of grep -q.
22581 * configure: Regenerate.
22583 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
22585 * Makefile.in (EXCEPT_H): Fix typo.
22587 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
22589 * ira-build.c (update_conflict_hard_reg_costs): New.
22590 (ira_build): Call update_conflict_hard_reg_costs.
22592 2010-05-25 Jakub Jelinek <jakub@redhat.com>
22595 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
22597 (intersect_loc_chains): Walk the s2var's loc_chain together
22598 with s1node chain as long as the locations are equal, don't
22599 call find_loc_in_1pdv in that case.
22602 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
22603 (copy_bind_expr): ... instead of here.
22604 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
22605 if the block hasn't been remapped.
22606 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
22607 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
22609 2010-05-25 Richard Guenther <rguenther@suse.de>
22611 PR middle-end/44069
22612 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
22613 out-of-bounds array accesses.
22615 2010-05-25 Richard Guenther <rguenther@suse.de>
22617 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
22618 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
22619 (run_gcc): Re-organize to make cleanup easier.
22621 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22623 * config/s390/s390.c (optimization_options): Fix and move the
22624 flag_prefetch_loop_arrays override ...
22625 (override_options): ... here.
22627 2010-05-25 Joseph Myers <joseph@codesourcery.com>
22629 * diagnostic.c: Don't include plugin.h.
22630 (diagnostic_report_diagnostic): Don't handle plugins specially
22631 here. Pass context to internal_error callback.
22632 * diagnostic.h (struct diagnostic_context): Add context parameter
22633 to internal_error callback.
22634 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
22635 * plugin.h (struct diagnostic_context): Declare.
22636 (warn_if_plugins, plugins_internal_error_function): Declare.
22637 * toplev.c (general_init): Set global_dc->internal_error.
22638 * Makefile.in (diagnostic.o): Update dependencies.
22640 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
22642 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
22643 * config/rs6000/t-darwin64: New.
22644 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
22647 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
22650 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
22651 match the original (and intended) behaviour before r159557. This
22652 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
22655 2010-05-25 Richard Guenther <rguenther@suse.de>
22657 * doc/invoke.texi: Document -Ofast.
22658 * target.h (struct gcc_target): Add handle_ofast.
22659 * target-def.h (TARGET_HANDLE_OFAST): Add.
22660 (TARGET_INITIALIZER): Adjust.
22661 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
22662 * common.opt (Ofast): Add.
22664 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
22666 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
22667 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
22669 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
22672 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
22673 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
22674 false_rtx. Use false_rtx to compute the correct *ptest for reversed
22675 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
22677 2010-05-25 Jakub Jelinek <jakub@redhat.com>
22679 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
22680 DW_OP_minus with negated offset instead of DW_OP_plus.
22681 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
22683 2010-05-25 Wei Guozhi <carrot@google.com>
22685 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
22686 tst instruction and a new alternative.
22687 * config/arm/constraints.md (Pu): New constraint.
22689 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
22691 * function.c (assign_stack_local_1): Initialize variable
22692 to avoid warning when bootstrapping at -O3.
22694 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
22696 * configure.ac (all_lang_makefiles): Remove everything related to it.
22697 * configure: Regenerate.
22698 * Makefile.in: Fix reference to ada Make-lang.in.
22699 Remove support for LANG_MAKEFILES.
22701 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
22702 Sandra Loosemore <sandra@codesourcery.com>
22704 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
22705 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
22706 description. Add arm_neon_fp16_ok.
22707 (Add Options): Add arm_neon and arm_neon_fp16.
22709 2010-05-24 Joseph Myers <joseph@codesourcery.com>
22711 * diagnostic.c: Don't include flags.h.
22712 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
22713 context parameters. Check flags in the context passed as a parameter.
22714 (diagnostic_build_prefix): Add context parameter. Check
22715 show_column flag in context.
22716 (diagnostic_action_after_output): Check fatal_errors flag in context.
22717 (diagnostic_report_current_module): Check show_column flag in context.
22718 (default_diagnostic_starter): Update call to
22719 diagnostic_build_prefix.
22720 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
22721 (emit_diagnostic): Pass context to permissive_error_kind.
22722 (permerror): Pass context to permissive_error_kind.
22723 * diagnostic.h (struct diagnostic_context): Add show_column,
22724 pedantic_errors, permissive and fatal_errors fields.
22725 (diagnostic_build_prefix): Update prototype.
22727 * toplev.c (process_options): Set flags in global_dc from
22728 flag_show_column, flag_pedantic_errors, flag_permissive,
22730 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
22731 to diagnostic_build_prefix.
22732 * Makefile.in (diagnostic.o): Update dependencies.
22734 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
22736 * config/i386/ia32intrin.h (__crc32q): Define only if
22737 __SSE4_2__ is defined.
22739 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
22742 PR middle-end/43602
22743 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
22744 DECL_VISIBILITY_SPECIFIED.
22745 (emutls_decl): Set DECL_PRESERVE_P and copy
22746 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
22747 (emutls_finalize_control_var): New callback.
22748 (emutls_finish): Finalize emutls control variables.
22749 * toplev.c (compile_file): Move the call to emutls_finish ()
22750 before varpool_assemble_pending_decls ().
22752 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
22754 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
22755 added to the preprocessor condition.
22757 2010-05-24 Paul Brook <paul@codesourcery.com>
22759 * gengtype-lex.l: Add HARD_REG_SET.
22760 * expr.c (expand_expr_real_1): Record writes to hard registers.
22761 * function.c (rtl_data): Add asm_clobbers.
22762 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
22763 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
22764 Use crtl->asm_clobbers.
22766 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22768 * doc/makefile.texi (Makefile): Mention stages 'profile'
22769 and 'feedback' for profiledbootstrap.
22771 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
22774 * config/i386/i386.c (def_builtin): Properly check
22775 OPTION_MASK_ISA_64BIT.
22777 2010-05-23 Joseph Myers <joseph@codesourcery.com>
22779 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
22780 typedefs with different but compatible types. Allow duplicate
22781 typedefs with the same type except for pedantic non-C1X, but give
22782 warning for variably modified types.
22783 * c-typeck.c (tagged_types_tu_compatible_p,
22784 function_types_compatible_p, type_lists_compatible_p,
22785 comptypes_internal): Add parameter different_types_p; set
22786 *different_types_p for different but compatible types. All
22788 (comptypes_check_different_types): New.
22789 * c-tree.h (comptypes_check_different_types): Declare.
22791 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
22793 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
22794 * jump.c: Include basic-block.h.
22795 * profile.c: Likewise.
22796 * tree-profile.c: Likewise.
22797 * coverage.c: Likewise.
22798 * basic-block.h (optimize_function_for_size_p): Move to function.h.
22799 (optimize_function_for_speed_p): Likewise.
22800 * function.h (optimize_function_for_size_p,
22801 optimize_function_for_speed_p): Moved here from basic-block.h.
22802 * Makefile.in: Update dependencies.
22804 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22806 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
22807 before calling make; allow override through $MAKE.
22808 * doc/invoke.texi (Optimize Options): Document override.
22810 2010-05-23 Anatoly Sokolov <aesok@post.ru>
22812 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
22813 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22814 (rs6000_mode_dependent_address_ptr): Make static.
22815 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22816 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
22819 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
22822 * config/i386/i386.c: Make sure that the correct regparm is passed.
22824 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
22826 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
22827 * sbitmap.c: ...to here to internalize sbitmap element access.
22828 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
22829 Explain why basic-block.h is included.
22830 * function.h: Include tm.h for CUMULATIVE_ARGS.
22831 * Makefile.in: Update dependencies.
22833 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
22835 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
22837 * sbitmap.h (struct sbitmap_def): Do not typedef here.
22838 * sbitmap.c: Include sbitmap.h.
22839 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
22840 hard-reg-set.h. Split everything related to regsets out from here...
22841 * regset.h: ...to here. New file.
22842 * df.h: Include regset.h and sbitmap.h.
22843 * tree-flow.h: Likewise.
22844 * cfgloop.h: Likewise.
22845 * except.h: Do not include sbitmap.h. Include hashtab.h.
22846 * cgraph.h: Include vec.h and function.h.
22847 * reload.h (struct insn_chain): Change types of live_throughout
22848 and dead_or_set from regset_head to bitmap_head.
22849 (compute_use_by_pseudos): Be defined also if regset.h is not included.
22850 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
22851 spilled_regs from regset_head to bitmap_head to avoid dependency
22853 * sel-sched-ir.h: Include regset.h.
22854 * reload.c: Include df.h before reload.h.
22855 * caller-save.c: Likewise.
22856 * reload1.c: Likewise.
22858 (mark_elimination): Update type of r to bitmap, consistent with
22860 * dominance.c: Include bitmap.h.
22861 * modulo-sched.c: Include df.h.
22862 * cfganal.c: Include bitmap.h and sbitmap.h.
22863 * cfgbuild.c: Include sbitmap.h.
22864 * lcm.c: Include sbitmap.h.
22865 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
22866 * domwalk.c: Include sbitmap.h, exclude ggc.h.
22867 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
22868 * cselib.c: Include bitmap.h.
22869 * tree-optimize.c: Include regset.h.
22870 * stmt.c: Include bitmap.h.
22871 * Makefile.in: Update dependencies.
22873 2010-05-22 Jan Hubicka <jh@suse.cz>
22875 * cgraph.h (struct varpool_node): Add same_comdat_group.
22876 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
22878 (output_varpool): Update call of lto_output_varpool_node.
22879 (input_varpool): Read same_comdat_group pointer.
22880 (input_varpool_1): Fixup same_comdat_group pointer.
22881 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
22882 group is needed, all are.
22883 * varpool.c (varpool_remove_node): Remove node from same comdat group
22885 (varpool_analyze_pending_decls): Walk same comdat groups.
22887 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
22889 * rtl.h (union rtunion_def): Remove rt_bit member.
22890 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
22891 * print-rtl (print_rtx): Do not print the member.
22892 * gengtype.c (adjust_field_rtx_def): Do not handle it.
22893 * gengenrtl.c (type_from_format): Likewise.
22894 (accessor_from_format): Likewise.
22896 2010-05-22 Joseph Myers <joseph@codesourcery.com>
22898 * dbgcnt.c: Include toplev.h instead of errors.h.
22899 * ira-emit.c: Don't include errors.h.
22900 * ira.c: Include toplev.h instead of errors.h.
22901 * lto-compress.c: Include toplev.h instead of errors.h.
22902 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
22903 ira.o, dbgcnt.o): Update dependencies.
22905 2010-05-22 Richard Guenther <rguenther@suse.de>
22907 * gimple.c (gimple_types_compatible_p): Check type qualifications
22908 before merging pointer to complete and pointer to incomplete type.
22909 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
22910 we use our own resolution algorithm. The gold linker plugin
22911 doesn't do the job we want it to do here.
22913 2010-05-22 Anatoly Sokolov <aesok@post.ru>
22915 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22916 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22917 (sparc_mode_dependent_address_p): New function.
22919 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
22921 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
22923 * timevar.c: Do not include any core headers.
22924 (timevar_print): De-i18n-ize.
22925 (print_time): Likewise.
22926 * timevar.h (timevar_push, timevar_pop): Make inline functions.
22928 2010-05-21 Joseph Myers <joseph@codesourcery.com>
22930 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
22932 (diagnostic_initialize): Initialize x_data not last_function.
22933 (diagnostic_report_current_function): Move to tree-diagnostic.c.
22934 (default_diagnostic_starter): Call
22935 diagnostic_report_current_module not
22936 diagnostic_report_current_function.
22937 (diagnostic_report_diagnostic): Initialize x_data not
22939 (verbatim): Likewise.
22940 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
22942 (struct diagnostic_context): Change last_function to x_data.
22943 (diagnostic_auxiliary_data): Replace with
22944 diagnostic_context_auxiliary_data and
22945 diagnostic_info_auxiliary_data.
22946 (diagnostic_last_function_changed, diagnostic_set_last_function,
22947 diagnostic_report_current_function): Move to tree-diagnostic.h.
22948 (print_declaration, dump_generic_node, print_generic_stmt,
22949 print_generic_stmt_indented, print_generic_expr,
22950 print_generic_decl, debug_c_tree, dump_omp_clauses,
22951 print_call_name, debug_generic_expr, debug_generic_stmt,
22952 debug_tree_chain, default_tree_printer): Move to
22953 tree-pretty-print.h.
22954 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
22955 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
22956 gimple-pretty-print.h.
22957 * pretty-print.c: Don't include tree.h
22958 (pp_base_format): Don't handle %K here.
22959 (pp_base_tree_identifier): Move to tree-pretty-print.c.
22960 * pretty-print.h (text_info): Change abstract_origin to x_data.
22961 (pp_tree_identifier, pp_unsupported_tree,
22962 pp_base_tree_identifier): Move to tree-pretty-print.h.
22963 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
22964 tree-pretty-print.h: New files.
22965 * tree-pretty-print.c: Include tree-pretty-print.h.
22966 (percent_K_format): New. Moved from pretty-print.c.
22967 (pp_base_tree_identifier): Move from pretty-print.c.
22968 * c-objc-common.c: Include tree-pretty-print.h.
22969 (c_tree_printer): Handle %K here.
22970 * langhooks.c: Include tree-diagnostic.h.
22971 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
22972 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
22973 (default_tree_printer): Handle %K using percent_K_format.
22974 (general_init): Use default_tree_diagnostic_starter.
22975 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
22976 (free_lang_data): Use default_tree_diagnostic_starter.
22977 * c-pretty-print.c: Include tree-pretty-print.h.
22978 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
22979 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
22980 * dwarf2out.c: Include tree-pretty-print.h.
22981 * except.c: Include tree-pretty-print.h.
22982 * gimple-pretty-print.c: Include tree-pretty-print.h and
22983 gimple-pretty-print.h.
22984 * gimplify.c: Include tree-pretty-print.h.
22985 * graphite-poly.c: Include tree-pretty-print.h and
22986 gimple-pretty-print.h.
22987 * ipa-cp.c: Include tree-pretty-print.h.
22988 * ipa-inline.c: Include gimple-pretty-print.h.
22989 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
22990 * ipa-pure-const.c: Include gimple-pretty-print.h.
22991 * ipa-struct-reorg.c: Include tree-pretty-print.h and
22992 gimple-pretty-print.h.
22993 * ipa-type-escape.c: Include tree-pretty-print.h.
22994 * print-rtl.c: Include tree-pretty-print.h.
22995 * print-tree.c: Include gimple-pretty-print.h.
22996 * sese.c: Include tree-pretty-print.h.
22997 * tree-affine.c: Include tree-pretty-print.h.
22998 * tree-browser.c: Include tree-pretty-print.h.
22999 * tree-call-cdce.c: Include gimple-pretty-print.h.
23000 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23001 * tree-chrec.c: Include tree-pretty-print.h.
23002 * tree-data-ref.c: Include tree-pretty-print.h and
23003 gimple-pretty-print.h.
23004 * tree-dfa.c: Include tree-pretty-print.h.
23005 * tree-if-conv.c: Include tree-pretty-print.h and
23006 gimple-pretty-print.h.
23007 * tree-inline.c: Include tree-pretty-print.h.
23008 * tree-into-ssa.c: Include tree-pretty-print.h and
23009 gimple-pretty-print.h.
23010 * tree-nrv.c: Include tree-pretty-print.h.
23011 * tree-object-size.c: Include tree-pretty-print.h and
23012 gimple-pretty-print.h.
23013 * tree-outof-ssa.c: Include tree-pretty-print.h and
23014 gimple-pretty-print.h.
23015 * tree-parloops.c: Include tree-pretty-print.h and
23016 gimple-pretty-print.h.
23017 * tree-predcom.c: Include tree-pretty-print.h and
23018 gimple-pretty-print.h.
23019 * tree-scalar-evolution.c: Include tree-pretty-print.h and
23020 gimple-pretty-print.h.
23021 * tree-sra.c: Include tree-pretty-print.h.
23022 * tree-ssa-address.c: Include tree-pretty-print.h.
23023 * tree-ssa-alias.c: Include tree-pretty-print.h.
23024 * tree-ssa-ccp.c: Include tree-pretty-print.h and
23025 gimple-pretty-print.h.
23026 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
23027 * tree-ssa-copy.c: Include tree-pretty-print.h and
23028 gimple-pretty-print.h.
23029 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
23030 * tree-ssa-dce.c: Include tree-pretty-print.h and
23031 gimple-pretty-print.h.
23032 * tree-ssa-dom.c: Include tree-pretty-print.h and
23033 gimple-pretty-print.h.
23034 * tree-ssa-dse.c: Include gimple-pretty-print.h.
23035 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
23036 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
23037 * tree-ssa-live.c: Include tree-pretty-print.h and
23038 gimple-pretty-print.h.
23039 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
23040 gimple-pretty-print.h.
23041 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
23042 gimple-pretty-print.h.
23043 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
23044 gimple-pretty-print.h.
23045 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
23046 gimple-pretty-print.h.
23047 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
23048 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
23049 * tree-ssa-operands.c: Include tree-pretty-print.h and
23050 gimple-pretty-print.h.
23051 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
23052 gimple-pretty-print.h.
23053 * tree-ssa-pre.c: Include tree-pretty-print.h and
23054 gimple-pretty-print.h.
23055 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
23056 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
23057 gimple-pretty-print.h.
23058 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
23059 gimple-pretty-print.h.
23060 * tree-ssa-sink.c: Include gimple-pretty-print.h.
23061 * tree-ssa-ter.c: Include tree-pretty-print.h and
23062 gimple-pretty-print.h.
23063 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
23064 * tree-ssa.c: Include tree-pretty-print.h and
23065 gimple-pretty-print.h.
23066 * tree-stdarg.c: Include gimple-pretty-print.h.
23067 * tree-switch-conversion.c: Include gimple-pretty-print.h.
23068 * tree-tailcall.c: Include tree-pretty-print.h and
23069 gimple-pretty-print.h.
23070 * tree-vect-data-refs.c: Include tree-pretty-print.h and
23071 gimple-pretty-print.h.
23072 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
23073 gimple-pretty-print.h.
23074 * tree-vect-loop.c: Include tree-pretty-print.h and
23075 gimple-pretty-print.h.
23076 * tree-vect-patterns.c: Include gimple-pretty-print.h.
23077 * tree-vect-slp.c: Include tree-pretty-print.h and
23078 gimple-pretty-print.h.
23079 * tree-vect-stmts.c: Include tree-pretty-print.h and
23080 gimple-pretty-print.h.
23081 * tree-vectorizer.c: Include tree-pretty-print.h.
23082 * tree-vrp.c: Include tree-pretty-print.h and
23083 gimple-pretty-print.h.
23084 * value-prof.c: Include tree-pretty-print.h and
23085 gimple-pretty-print.h.
23086 * var-tracking.c: Include tree-pretty-print.h.
23087 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
23088 (tree-diagnostic.o): New dependencies.
23089 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
23090 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
23091 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
23092 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
23093 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
23094 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
23095 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
23096 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
23097 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
23098 tree-ssa-address.o, tree-ssa-loop-niter.o,
23099 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
23100 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
23101 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
23102 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
23103 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
23104 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
23105 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
23106 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
23107 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
23108 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
23109 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
23110 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
23111 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
23112 tree-switch-conversion.o, var-tracking.o, value-prof.o,
23113 cfgexpand.o, pretty-print.o): Update dependencies.
23115 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
23117 * tree-ssa-structalias.c: Remove tm_p.h from include.
23119 2010-05-21 Jeff Law <law@redhat.com>
23121 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
23123 2010-05-21 Jason Merrill <jason@redhat.com>
23125 * tree-eh.c (cleanup_is_dead_in): New.
23126 (lower_try_finally): Don't generate a dead cleanup region.
23127 (lower_cleanup): Likewise.
23129 2010-05-21 Jakub Jelinek <jakub@redhat.com>
23132 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
23133 unchain each use from the cyclic next_regno_use chain first.
23135 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
23137 * real: Do not include gmp.h, mpfr.h, and mpc.h.
23138 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
23139 (real_value_negate, real_value_abs): New prototypes.
23140 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
23141 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
23142 new include file for interface between MPFR and REAL_VALUE_TYPE.
23143 * real.c: Include realmpfr.h.
23144 (real_arithmetic2): Remove legacy function.
23145 (real_value_negate): New.
23146 (real_value_abs): New.
23147 (mfpr_from_real, real_from_mpfr): Move from here...
23148 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
23149 * builtins.c: Include realmpfr.h.
23150 * fold-const.c: Include realmpfr.h.
23151 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
23152 (fold_negate_const): Likewise.
23153 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
23154 * toplev.c: Include realmpfr.h.
23155 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
23156 and real_value_negate.
23157 * fixed-value.c (check_real_for_fixed_mode): Likewise.
23158 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
23159 (vfp3_const_double_index): Likewise.
23160 (arm_print_operand): Likewise.
23161 * Makefile.in: Update dependencies.
23163 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23165 * config/s390/s390.c (override_options): Increase the default
23166 of max-completely-peel-times.
23168 2010-05-21 Julian Brown <julian@codesourcery.com>
23169 Mark Mitchell <mark@codesourcery.com>
23171 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
23172 sibling calls for Thumb-1.
23173 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
23174 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
23176 (*call_insn, *call_value_insn): Don't use for Thumb-2.
23177 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
23179 (return): New expander.
23180 (*arm_return): New name for ARM return insn.
23181 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
23183 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
23185 * config.gcc (sparc64-*-rtems*): New target.
23187 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
23189 * tree.c (build_function_decl_skip_args): Fix grammar.
23190 (build_function_type_list_1): Fix typos, adjust formatting.
23192 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
23194 * tree.h: Include real.h and fixed-value.h as basic datatypes.
23195 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
23196 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
23197 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
23198 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
23199 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
23200 tree-pretty-print.c, tree-loop-distribution.c,
23201 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
23202 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
23203 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
23204 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
23205 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
23206 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
23207 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
23208 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
23209 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
23210 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
23211 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
23212 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
23213 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
23214 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
23215 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
23216 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
23217 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
23218 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
23219 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
23220 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
23221 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
23222 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
23223 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
23224 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
23225 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
23226 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
23227 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
23228 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
23229 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
23230 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
23231 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
23232 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
23233 config/score/score7.c, config/score/score.c, config/arm/arm.c,
23234 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
23235 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
23236 config/bfin/bfin.c: Clean up redundant includes.
23237 * Makefile.in: Update accordingly.
23239 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
23241 PR middle-end/44204
23242 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
23243 statement has no arguments.
23245 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
23248 * varasm.c (emutls_decl): Merge attributes to new decl.
23250 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
23252 PR middle-end/44101
23253 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
23254 around the uniquized constructor if its type requires a conversion.
23256 2010-05-21 Jakub Jelinek <jakub@redhat.com>
23259 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
23260 at -O0 goto_locus of any of the incoming edges differs from
23261 goto_locus of outgoing edge, or gimple_location of any of the
23264 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
23266 * ira.c (ira_non_ordered_class_hard_regs): Define.
23267 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
23268 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
23269 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
23270 cost of unaligned hard regs when allocating multi-reg pseudos.
23272 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
23274 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
23275 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
23276 for TARGET_NO_FLOAT.
23277 * config/mips/mips.c (mips_file_start): Expand conditional expression
23278 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
23279 (mips_override_options): Move -mno-float override -msoft-float and
23281 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
23282 Condition(TARGET_SUPPORTS_NO_FLOAT).
23283 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
23284 __mips_no_float here.
23285 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
23286 (TARGET_SUPPORTS_NO_FLOAT): Define.
23287 * config/mips/sdemtk.opt: Delete.
23289 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
23291 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
23293 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
23296 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
23297 * configure: Regenerate.
23298 * config.in: Regenerate.
23299 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
23300 instead of sahf only for 64bit targets.
23302 2010-05-20 Jakub Jelinek <jakub@redhat.com>
23305 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
23306 setup_ref_regs for DEBUG_INSNs.
23308 2010-05-20 Jan Hubicka <jh@suse.cz>
23310 PR middle-end/44197
23311 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
23313 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
23316 * df-scan.c (df_ref_compare): Stabilize sort.
23318 2010-05-20 Jakub Jelinek <jakub@redhat.com>
23320 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
23321 argument. Don't use DW_OP_piece if offset is non-zero,
23322 put offset into second DW_OP_bit_piece argument.
23323 (dw_sra_loc_expr): Adjust callers. For memory expressions
23326 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
23329 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
23330 settings for 16-bit-constant "addo" alternative.
23332 2010-05-19 James E. Wilson <wilson@codesourcery.com>
23334 * config/mips/mips-dsp.md (add<DSPV:mode>3,
23335 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
23338 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
23339 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
23342 2010-05-19 Joseph Myers <joseph@codesourcery.com>
23344 * diagnostic.c (FLOAT, FFS): Don't undefine.
23345 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
23346 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
23349 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
23351 * combine.c (propagate_for_debug): Call make_compound_operation
23352 on the source value.
23353 (try_combine): When implementing a split chosen by find_split_point,
23354 either copy i2src or set it to null. Assert that i2src is not null
23355 before substituting into CALL_INSN_FUNCTION_USAGE.
23357 2010-05-19 Anatoly Sokolov <aesok@post.ru>
23359 * double-int.h (double_int_ior): New function.
23360 * tree.h (build_int_cst_wide_type): Remove.
23361 * tree.c (build_int_cst_wide_type): Remove.
23362 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
23363 of build_int_cst_wide_type.
23364 * stor-layout.c (set_sizetype): (Ditto.).
23365 * dojump.c (do_jump): Use build_int_cstu instead of
23366 build_int_cst_wide_type.
23368 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
23370 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
23371 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
23372 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
23373 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
23374 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
23375 propagate the 'data' argument to copy_tree_r.
23376 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
23377 Propagate 'data' argument to walk_tree.
23378 (copy_if_shared): New function.
23379 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
23380 (unmark_visited): New function.
23381 (unshare_body): Call copy_if_shared instead of doing it manually.
23382 (unvisit_body): Call unmark_visited instead of doing it manually.
23384 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
23386 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
23387 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
23388 * hooks.c: Likewise.
23389 * target-def.h (TARGET_FOLD_BUILTIN): Define to
23390 hook_tree_tree_int_treep_bool_null.
23391 * target.h (struct gcc_target): Update signature of fold_builtin
23393 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
23394 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
23395 instead of the call expression.
23396 (fold_builtin_call_array): Pass n and argarray directly.
23397 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
23399 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
23400 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
23401 `i' and use it in place of `arity'.
23402 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
23403 Dereference `args' directly.
23404 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
23406 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23408 * doc/sourcebuild.texi (Effective-Target Keywords): Document
23410 (Directives): Document optional dg-require-effective-target
23413 2010-05-19 Richard Guenther <rguenther@suse.de>
23416 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
23418 2010-05-19 Richard Guenther <rguenther@suse.de>
23420 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
23421 * common.opt (fwhopr=): New.
23422 * opts.c (common_handle_option): Handle OPT_fwhopr.
23423 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
23424 * collect2.c (main): Match -fwhopr*.
23425 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
23426 Execute ltrans stage in parallel when jobs is bigger than 1.
23428 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23430 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
23431 pentiumpro on Solaris 8/x86 with Sun as.
23432 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
23434 (gcc_cv_as_ix86_quad): Check for .quad directive.
23435 * configure: Regenerate.
23436 * config.in: Regenerate.
23437 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
23439 2010-05-19 Martin Jambor <mjambor@suse.cz>
23441 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
23442 also for indirect edges. Actual printing moved...
23443 (ipa_print_node_jump_functions_for_edge): ...here.
23444 (ipa_compute_jump_functions): Renamed to
23445 ipa_compute_jump_functions_for_edge and made static.
23446 (ipa_compute_jump_functions): New function.
23447 (make_edge_direct_to_target): Check if the number of arguments on
23448 the newly direct edge is the same as the number of parametrs of
23450 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
23451 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
23452 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
23453 analysis functions unconditionally, call the new
23454 ipa_analyze_params_uses on the node instead of every edge.
23456 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
23458 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
23460 (dump_mem_ref): Adopt debug code to handle a tree as step. This
23461 also checks for a constant int vs. non-constant but
23462 loop-invariant steps.
23463 (find_or_create_group): Change the sort algorithm to only consider
23464 steps that are constant ints.
23465 (idx_analyze_ref): Adopt code to handle a tree instead of a
23466 HOST_WIDE_INT for step.
23467 (gather_memory_references_ref): Handle tree instead of int and be
23468 prepared to see a NULL_TREE.
23469 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
23470 prefetches if the step cannot be calculated at compile time.
23471 (issue_prefetch_ref): Issue prefetches for non-constant but
23472 loop-invariant steps.
23474 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
23477 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
23479 * tree.h (build_call_list): Remove.
23480 * tree.c (build_call_list): Remove.
23482 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
23484 * tree.h (build_call_list): Remove.
23485 * tree.c (build_call_list): Remove.
23487 2010-05-18 Jan Hubicka <jh@suse.cz>
23489 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
23491 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
23493 PR rtl-optimization/43332
23494 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
23496 2010-05-18 Anatoly Sokolov <aesok@post.ru>
23498 * tree.h (build_int_cstu): Implement as static inline.
23499 * tree.c (build_int_cstu): Remove function.
23500 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
23503 2010-05-18 Richard Guenther <rguenther@suse.de>
23506 * lto-wrapper.c (verbose): New variable. Initialize from -v.
23507 (debug): Initialize from -save-temps.
23508 (collect_execute): Print command-line when verbose.
23509 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
23510 for ltrans invocation. Produce -dumpbase flag again.
23511 (process_args): Remove.
23513 * collect2.c (maybe_run_lto_and_relink): Only pass object
23514 files to lto-wrapper.
23515 * gcc.c (LINK_COMMAND_SPEC): Likewise.
23517 2010-05-18 Jan Hubicka <jh@suse.cz>
23519 * opts.c (decode_options): Do not disable whopr at ipa_cp.
23520 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
23522 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
23525 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
23527 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
23530 2010-05-18 Jakub Jelinek <jakub@redhat.com>
23533 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
23534 rtx_equal_p inline.
23536 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
23538 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
23539 lto-macho as lto_binary_reader.
23541 * darwin.c (darwin_asm_named_section): Do not add assembler comment
23542 after .section directive; just print it before the directive instead.
23544 2010-05-17 Jan Hubicka <jh@suse.cz>
23546 * cgraph.c (cgraph_create_virtual_clone): Only check
23547 versionable_function_p when not in wpa and checking is enabled.
23548 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
23549 there are no more functions to materialize.
23551 2010-05-17 Jan Hubicka <jh@suse.cz>
23553 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
23554 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
23556 (output_cgraph): Call output_cgraph_opt_summary.
23557 (input_cgrpah): Call input_cgraph_opt_summary.
23558 (output_cgraph_opt_summary_p, output_node_opt_summary,
23559 input_node_opt_summary, input_cgraph_opt_section): New functions.
23560 * lto-section-in.c (lto_section_name): Add cgraphopt.
23561 * tree-inline.c (tree_function_versioning): Handle parm_num.
23562 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
23563 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
23565 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
23567 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
23568 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
23569 the insn to prefetch ratio heuristic to loops with known trip count.
23571 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
23573 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
23574 (schedule_prefetches): Do not generate a prefetch if the unroll factor
23575 is far from what is required by the prefetch.
23577 2010-05-17 Jan Hubicka <jh@suse.cz>
23579 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
23580 (ipcp_estimate_growth): Likewise.
23581 (ipcp_const_param_count): Likewise.
23582 (ipcp_insert_stage): Likewise.
23583 * ipa-prop.c (visit_load_for_mod_analysis): New function.
23584 (visit_store_addr_for_mod_analysis): Set used flag.
23585 (ipa_detect_param_modifications): Set used flag for SSE params;
23586 update use of walk_stmt_load_store_addr_ops.
23587 (ipa_print_node_params): Print used flag.
23588 (ipa_write_node_info): Stream used flag.
23589 (ipa_read_node_info): Likewise.
23590 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
23591 (ipa_is_param_used): New function.
23592 (lto_ipa_fixup_call_notes): Remove unused declaration.
23594 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23597 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
23598 * configure: Regenerate.
23599 * config.in: Regenerate.
23600 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
23601 !HAVE_AS_IX86_REP_LOCK_PREFIX.
23602 Don't emit whitespace.
23603 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
23604 (*rep_movsi): Likewise.
23605 (*rep_movsi_rex64): Likewise.
23606 (*rep_movqi): Likewise.
23607 (*rep_movqi_rex64): Likewise.
23608 (*rep_stosdi_rex64): Likewise.
23609 (*rep_stossi): Likewise.
23610 (*rep_stossi_rex64): Likewise.
23611 (*rep_stosqi): Likewise.
23612 (*rep_stosqi_rex64): Likewise.
23613 (*cmpstrnqi_nz_1): Use {%;} after repz.
23614 (*cmpstrnqi_nz_rex_1): Likewise.
23615 (*cmpstrnqi_1): Likewise.
23616 (*cmpstrnqi_rex_1): Likewise.
23617 (*strlenqi_1): Use {%;} after repnz.
23618 (*strlenqi_rex_1): Likewise.
23619 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
23620 (*sync_compare_and_swap<mode>): Likewise.
23621 (sync_double_compare_and_swap<mode>): Likewise.
23622 (*sync_double_compare_and_swapdi_pic): Likewise.
23623 (sync_old_add<mode>): Likewise.
23624 (sync_add<mode>): Likewise.
23625 (sync_sub<mode>): Likewise.
23626 (sync_<code><mode>): Likewise.
23628 2010-05-17 Martin Jambor <mjambor@suse.cz>
23630 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
23631 otr_token and polymorphic.
23632 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
23633 (cgraph_clone_edge): Copy the above fields.
23634 * tree.c (get_binfo_at_offset): New function.
23635 * tree.h (get_binfo_at_offset): Declare.
23636 * ipa-prop.h (enum jump_func_type): Added known_type jump function
23637 type, reordered items, updated comments.
23638 (union jump_func_value): Added base_type field, reordered fields.
23639 (enum ipa_lattice_type): Moved down in the file.
23640 (struct ipa_param_descriptor): New field polymorphic.
23641 (ipa_is_param_polymorphic): New function.
23642 * ipa-prop.c: Include gimple.h and gimple-fold.h.
23643 (ipa_print_node_jump_functions): Print known type jump functions.
23644 (compute_complex_pass_through): Renamed to...
23645 (compute_complex_assign_jump_func): this.
23646 (compute_complex_ancestor_jump_func): New function.
23647 (compute_known_type_jump_func): Likewise.
23648 (compute_scalar_jump_functions): Create known type and complex ancestor
23650 (ipa_note_param_call): New parameter polymorphic, set the corresponding
23651 flag in the call note accordingly.
23652 (ipa_analyze_call_uses): Renamed to...
23653 (ipa_analyze_indirect_call_uses): this. New parameter target, define
23654 variable var only in the block where it is used.
23655 (ipa_analyze_virtual_call_uses): New function.
23656 (ipa_analyze_call_uses): Likewise.
23657 (combine_known_type_and_ancestor_jfs): Likewise.
23658 (update_jump_functions_after_inlining): Implemented handling of a
23659 number of new jump function types combination.
23660 (print_edge_addition_message): Removed.
23661 (make_edge_direct_to_target): New function.
23662 (try_make_edge_direct_simple_call): Likewise.
23663 (try_make_edge_direct_virtual_call): Likewise.
23664 (update_call_notes_after_inlining): Renamed to...
23665 (update_indirect_edges_after_inlining): this. Moved edge creation for
23666 indirect calls to try_make_edge_direct_simple_call, also calls
23667 try_make_edge_direct_virtual_call for virtual calls.
23668 (ipa_print_node_params): Changed the header message.
23669 (ipa_write_jump_function): Stream also known type jump functions.
23670 (ipa_read_jump_function): Likewise.
23671 (ipa_write_indirect_edge_info): Stream new fields in
23672 cgraph_indirect_call_info.
23673 (ipa_read_indirect_edge_info): Likewise.
23674 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
23677 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23679 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
23681 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
23683 * tree.h (CALL_EXPR_ARGS): Delete.
23684 (call_expr_arglist): Delete.
23685 * tree.c (call_expr_arglist): Delete.
23686 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
23687 targetm.fold_builtin.
23688 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
23689 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
23690 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
23691 arglist parameter. Use CALL_EXPR_ARG.
23692 (picochip_expand_builtin_3op): Likewise.
23693 (picochip_expand_builtin_2opvoid): Likewise.
23694 (picochip_expand_array_get): Likewise.
23695 (picochip_expand_array_put): Likewise.
23696 (picochip_expand_array_testport): Likewise.
23697 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
23698 rather than arglist.
23699 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
23701 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
23702 than TREE_VALUE and TREE_CHAIN.
23703 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
23704 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
23707 2010-05-17 Jakub Jelinek <jakub@redhat.com>
23710 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
23711 to have no fallthru edge.
23713 PR middle-end/44102
23714 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
23715 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
23716 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
23717 add BARRIER after previous bb if needed.
23719 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
23721 * tree.c (build_function_type_list_1): Remove bogus assert condition.
23723 2010-05-17 Alan Modra <amodra@gmail.com>
23725 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
23726 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
23727 with copy_reg rtx param.
23728 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
23729 Correct cases where code for ABI_V4 did not initialise the reg
23730 used to access frame. Also leave frame_reg_rtx as sp for large
23731 frames that save no regs.
23733 2010-05-17 Martin Jambor <mjambor@suse.cz>
23735 PR middle-end/44133
23736 * tree-sra.c (create_access_replacement): New parameter rename, mark
23737 the replaement for renaming only when it is true.
23738 (get_access_replacement): Pass true in the rename parameter of
23739 create_access_replacement.
23740 (get_unrenamed_access_replacement): New function.
23741 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
23742 replacement declaration from it.
23744 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
23746 * function.c (try_fit_stack_local, add_frame_space): New static
23748 (assign_stack_local_1): Use them. Look for opportunities to use
23749 space previously wasted on alignment.
23750 * function.h (struct frame_space): New.
23751 (struct rtl_data): Add FRAME_SPACE_LIST member.
23752 * reload1.c (something_was_spilled): New static variable.
23753 (alter_reg): Set it.
23754 (reload): Test it in addition to testing if the frame size changed.
23756 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
23758 * config/s390/s390.c: Define sane prefetch settings and activate
23759 flag_prefetch_loop_arrays on -O3.
23760 * config/s390/s390.h: Declare that read can use write prefetch.
23762 2010-05-17 Jakub Jelinek <jakub@redhat.com>
23764 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
23767 2010-05-16 Jan Hubicka <jh@suse.cz>
23769 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
23770 function body; do not check stdarg field of struct function.
23772 2010-05-16 Jan Hubicka <jh@suse.cz>
23774 * cgraph.c (dump_cgraph_node): Dump versionable flag.
23775 * cgraph.h (cgraph_local_info): Add versionable flag.
23776 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
23777 (ipcp_versionable_function_p): Use it.
23778 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
23781 2010-05-16 Jan Hubicka <jh@suse.cz>
23783 * cgraph.c (cgraph_clone_node): Take decl argument and insert
23784 clone into hash when it is different from orig.
23785 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
23786 * cgraph.h (cgraph_clone_node): Update prototype.
23787 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
23788 (lto_cgraph_encoder_delete): Delete body map.
23789 (lto_cgraph_encoder_size): Move to header.
23790 (lto_cgraph_encoder_encode_body_p,
23791 lto_set_cgraph_encoder_encode_body): New.
23792 (lto_output_node): Do not take written_decls argument; output clone_of
23794 (add_node_to): Add include_body_argument; call
23795 lto_set_cgraph_encoder_encode_body on master of the clone.
23796 (add_references): Update use of add_node_to.
23797 (compute_ltrans_boundary): Likewise.
23798 (output_cgraph): Do not create written_decls bitmap.
23799 (input_node): Take nodes argument; stream in clone_of correctly.
23800 (input_cgraph_1): Update use of input_node.
23801 * lto-streamer-out.c (lto_output): Use encoder info to decide
23802 what bodies to output.
23803 * ipa-inline.c (cgraph_clone_inlined_nodes,
23804 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
23805 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
23806 (lto_cgraph_encoder_size): Define here.
23807 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
23810 2010-05-16 Richard Guenther <rguenther@suse.de>
23812 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
23814 * ipa-type-escape.c (gate_type_escape_vars): Run when
23815 -fipa-struct-reorg runs.
23816 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
23817 * common.opt (fipa-type-escape): Remove.
23819 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
23821 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
23822 (decode_options): Likewise.
23823 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
23825 2010-05-16 Jan Hubicka <jh@suse.cz>
23827 * ipa.c (function_and_variable_visibility): Also bring local all
23830 2010-05-16 Richard Guenther <rguenther@suse.de>
23832 * alias.c (nonoverlapping_memrefs_p): Remove use of
23833 IPA type-escape information.
23835 2010-05-16 Joseph Myers <joseph@codesourcery.com>
23837 * c-common.c (c_common_reswords): Add _Static_assert for C.
23838 * c-parser.c (c_token_starts_declaration,
23839 c_parser_next_token_starts_declaration,
23840 c_parser_static_assert_declaration_no_semi,
23841 c_parser_static_assert_declaration): New.
23842 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
23843 Handle static assertions if static_assert_ok.
23844 (c_parser_external_declaration, c_parser_declaration_or_fndef,
23845 c_parser_compound_statement_nostart, c_parser_label,
23846 c_parser_for_statement, c_parser_objc_methodprotolist,
23847 c_parser_omp_for_loop): All callers of
23848 c_parser_declaration_or_fndef changed.
23849 (c_parser_struct_declaration): Handle static assertions.
23850 (c_parser_compound_statement_nostart): Use
23851 c_parser_next_token_starts_declaration and
23852 c_token_starts_declaration to detect start of declarations.
23853 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
23856 2010-05-16 Anatoly Sokolov <aesok@post.ru>
23858 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
23859 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
23860 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23861 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23862 (mmix_function_outgoing_value): Rename to...
23863 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
23864 (mmix_function_value_regno_p): Make static.
23865 (mmix_libcall_value): New function.
23866 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
23867 mmix_function_value_regno_p): Remove declaration.
23869 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
23871 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
23872 BUILT_IN_ALLOCA if stack checking is enabled.
23874 2010-05-16 Richard Guenther <rguenther@suse.de>
23876 * var-tracking.c (vars_copy_1): Inline ...
23877 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
23878 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
23879 (variable_merge_over_cur): Adjust. Merge asserts.
23880 (variable_merge_over_src): Likewise.
23881 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
23882 (variable_post_merge_new_vals): Merge asserts.
23883 (variable_post_merge_perm_vals): Likewise.
23884 (find_mem_expr_in_1pdv): Likewise.
23885 (dataflow_set_different_value): Remove.
23886 (onepart_variable_different_p): Merge asserts.
23887 (variable_different_p): Likewise.
23888 (dataflow_set_different_1): Inline ...
23889 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
23890 (emit_notes_for_differences_1): Merge asserts.
23892 2010-05-16 Richard Guenther <rguenther@suse.de>
23894 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
23895 * optabs.c (libfunc_decl_hash): Likewise.
23896 * varasm.c (emutls_decl): Likewise.
23898 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
23900 * c-decl.c: Don't include gimple.h.
23901 (merge_decls): Do not copy gimple_body.
23903 2010-05-15 Jason Merrill <jason@redhat.com>
23905 * c.opt: Add -fnothrow-opt.
23907 2010-05-15 Jan Hubicka <jh@suse.cz>
23909 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
23911 * passes.c (ipa_write_summaries): Write all analyzed nodes.
23913 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
23915 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
23916 * Makefile.in: Add it.
23917 Fix all other Makefile dependencies for changes below.
23918 * tree.h: Include it instead of defining VEC primitives here.
23919 * gimple.h: Likewise.
23921 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
23922 * except.h: Include vecir.h, break dependence on tree.h.
23924 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
23926 * tree-iterator.c: ...to here.
23927 * tree-iterator.h: Fix file introduction comment. Add extern markers.
23929 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
23931 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
23932 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
23933 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
23934 tree-mudflap.h, and target.h.
23935 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
23936 predict.h, tree-inline.h, gimple.h, and langhooks.h.
23937 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
23938 Add FIXME for why gimple.h is still included (should be unnecessary
23939 since GCC 4.5 gimplification unit-at-a-time).
23940 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
23941 * c-pragma.c: Add FIXME for why function.h needs to be included just
23942 for cfun, at front-end level.
23943 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
23944 Do not include ggc.h, but include vecprim.h for VEC(char).
23945 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
23946 Explain why target.h is included.
23947 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
23948 Explain why gimple.h is included.
23949 * c-ppoutput.c: Do not include tm.h.
23950 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
23951 * c-parses.c: Explain why rtl.h is included, and that this (and only
23952 this) is also why tm.h must be included.
23953 Do not include except.h.
23954 * c-lang.c: Do not include ggc.h.
23956 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
23958 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
23960 2010-05-15 Joseph Myers <joseph@codesourcery.com>
23962 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
23963 unions by default if those structs and unions have no tags. Do
23964 not condition anonymous struct and unions handling on flag_iso.
23965 Allow anonymous structs and unions for C1X.
23966 (finish_struct): Do not diagnose lack of named fields when
23967 anonymous structs and unions present for C1X. Accept flexible
23968 array members in structure with anonymous structs or unions but no
23969 directly named fields.
23970 * doc/extend.texi (Unnamed Fields): Update.
23972 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
23974 * gimple.h (compare_field_offset): Rename into...
23975 (gimple_compare_field_offset): ...this.
23976 * gimple.c (compare_field_offset): Rename into...
23977 (gimple_compare_field_offset): ...this. Compare the full access if
23978 the offset is self-referential.
23979 (gimple_types_compatible_p): Adjust for above renaming.
23980 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
23981 DECL_NONADDRESSABLE_P flag of fields before merging them.
23983 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
23985 * tree.h (ctor_to_list): Delete.
23986 * tree.c (ctor_to_list): Delete.
23988 2010-05-15 Jan Hubicka <jh@suse.cz>
23990 * ipa-reference.c: Include toplev.h
23991 (is_proper_for_analysis): Only add to all_module_statics
23992 if it is allocated.
23993 (write_node_summary_p, stream_out_bitmap,
23994 ipa_reference_write_optimization_summary,
23995 ipa_reference_read_optimization_summary): New.
23996 (struct ipa_opt_pass_d pass_ipa_reference): Add
23997 optimization summary streaming.
23998 * lto-cgraph.c (referenced_from_this_partition_p,
23999 reachable_from_this_partition_p): New functions.
24000 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
24001 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
24002 * opts.c (decode_options): Enable ipa_reference.
24003 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
24004 * lto-streamer.h (referenced_from_this_partition_p,
24005 reachable_from_this_partition_p): Declare.
24007 2010-05-15 Richard Guenther <rguenther@suse.de>
24009 PR tree-optimization/44038
24010 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
24011 taking the address of a V_C_E of a constant.
24013 2010-05-14 Jan Hubicka <jh@suse.cz>
24015 * tree.h (memory_identifier_string): Remove.
24016 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
24017 (ipa_reference_global_vars_info_d): Remove statics_not_read and
24018 statics_not_written.
24019 (ipa_reference_optimization_summary_d): New structure.
24020 (ipa_reference_optimization_summary_t): New type and vector.
24021 (ipa_reference_vars_info_d): Embedd structures instead of using
24023 (reference_vars_to_consider): Remove out of GGC space.
24024 (module_statics_escape): Remove.
24025 (global_info_obstack): Rename to ...
24026 (optimization_summary_obstack): ... this one.
24027 (initialization_status_t): Remove.
24028 (memory_identifier_string): Remove.
24029 (get_reference_vars_info): Fix indenting.
24030 (set_reference_vars_info): Likewise.
24031 (get_reference_optimization_summary): New.
24032 (set_reference_optimization_summary): New.
24033 (get_global_reference_vars_info): Remove.
24034 (ipa_reference_get_read_global): Remove.
24035 (ipa_reference_get_written_global): Remove.
24036 (ipa_reference_get_not_read_global): Update.
24037 (ipa_reference_get_not_written_global): Update.
24038 (is_proper_for_analysis): Outlaw addressable.
24039 (propagate_bits): Update for new datastructures.
24040 (analyze_variable): Remove.
24041 (init_function_info): Update for new datastructures.
24042 (clean_function_local_data): Remove.
24043 (clean_function): Remove.
24044 (copy_global_bitmap): Use optimizations_summary_obstack.
24045 (duplicate_node_data): Duplicate optimization summary only.
24046 (remove_node_data): Remove optimization summary only.
24047 (generate_summary): Do not analyze variables; do not compute
24048 module_statics_escape; do not prune solutions by it.
24049 (read_write_all_from_decl): Fix typos in comments.
24050 (propagate): Doscover readonly and nonaddressable first;
24051 update for new datastructures; share global bitmaps.
24052 * ipa-reference.h (ipa_reference_get_read_global,
24053 ipa_reference_get_written_global): Remove.
24054 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
24055 * Makefile.in: Remove ipa-refereference from GT files.
24057 2010-05-14 Jakub Jelinek <jakub@redhat.com>
24060 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
24061 for all SYMBOL_REF_DECLs.
24063 2010-05-14 Jan Hubicka <jh@suse.cz>
24065 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
24066 (varpool_all_refs_explicit_p): New inline function.
24067 * ipa-reference.c: Update comment.
24068 (module_statics_written): Remove.
24069 (get_static_decl): Remove.
24070 (ipa_init): Do not initialize module_statics_written.
24071 (analyze_function): Likewise.
24072 (generate_summary): Likewise; do not compute module_statics_readonly
24073 and do not update variable flags.
24074 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
24075 * ipa.c: Inlucde flags.h
24076 (cgraph_local_node_p): New.
24077 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
24078 promote functions to local.
24079 (ipa_discover_readonly_nonaddressable_vars): New function.
24080 (function_and_variable_visibility): Use cgraph_local_node_p.
24081 * varpool.c (varpool_finalize_decl): Set force_output for
24082 DECL_PRESERVE_P vars.
24084 2010-05-14 Jan Hubicka <jh@suse.cz>
24086 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
24088 2010-05-14 Richard Guenther <rguenther@suse.de>
24090 PR tree-optimization/44119
24091 * tree-ssa-pre.c (eliminate): Properly mark replacement of
24092 a PHI node necessary.
24094 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
24096 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
24098 2010-05-14 Jason Merrill <jason@redhat.com>
24101 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
24102 (gimple_call_set_nothrow): New.
24103 * gimple.c (gimple_build_call_from_tree): Call it.
24104 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
24107 * gimplify.c (gimplify_seq_add_stmt): No longer static.
24108 * gimple.h: Declare it.
24109 * gimple.c (gimple_build_eh_filter): No ops.
24111 2010-05-14 Jan Hubicka <jh@suse.cz>
24113 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
24114 nodes already in queue.
24115 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
24116 re-enqueueing node.
24118 2010-05-14 Jakub Jelinek <jakub@redhat.com>
24121 * cfgexpand.c (expand_debug_expr): If non-memory op0
24122 has BLKmode, return NULL.
24124 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
24126 * config.gcc: Add support for --with-cpu option for bdver1.
24127 * config/i386/i386.h (TARGET_BDVER1): New macro.
24128 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
24129 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
24130 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
24131 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
24132 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
24133 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
24134 (processor_type): Add PROCESSOR_BDVER1.
24135 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
24136 processor_type in config/i386/i386.h.
24137 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
24138 movaps <reg, reg> instead of movapd <reg, reg> when replacing
24139 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
24140 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
24141 to emit packed xor instead of packed double/packed integer
24142 xor for SSE and AVX when moving a zero value.
24143 * config/i386/sse.md: Add check for
24144 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
24145 movapd/movdqa for SSE and AVX.
24146 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
24147 single logical operations i.e and, or and xor instead of packed double
24148 logical operations for SSE and AVX.
24149 * config/i386/i386-c.c (ix86_target_macros_internal):
24150 Add PROCESSOR_BDVER1.
24151 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
24152 (has_fma4, has_xop): New.
24153 * config/i386/i386.c (bdver1_cost): New variable.
24154 (m_BDVER1): New macro.
24155 (m_AMD_MULTIPLE): Add m_BDVER1.
24156 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
24157 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
24158 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
24159 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
24160 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
24161 x86_tune_sse_partial_reg_dependency,
24162 x86_tune_sse_unaligned_load_optimal,
24163 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
24164 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
24165 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
24166 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
24167 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
24168 Enable/disable for bdver1.
24169 (processor_target_table): Add bdver1_cost.
24170 (cpu_names): Add bdver1.
24171 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
24172 processor_alias_table.
24173 (ix86_expand_vector_move_misalign): Change.
24174 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
24175 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
24176 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
24177 of movupd/movdqu for SSE and AVX.
24178 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
24179 (ix86_tune_adjust_cost): Add code for bdver1.
24180 (standard_sse_constant_opcode): Add check for
24181 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
24182 of packed double xor for SSE and AVX.
24184 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
24186 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
24187 result to unsigned.
24189 2010-05-14 Tristan Gingold <gingold@adacore.com>
24191 * toplev.c (default_debug_hooks): Remove this variable.
24192 (process_options): Remove assignments to default_debug_hooks.
24194 2010-05-14 Martin Jambor <mjambor@suse.cz>
24196 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
24197 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
24198 * langhooks.h (struct lang_hooks_for_decls): Removed field
24200 * tree.c (free_lang_data): Remove assignment to
24201 lang_hooks.fold_obj_type_ref.
24202 * tree.def (OBJ_TYPE_REF): Update comment.
24204 2010-05-14 Richard Guenther <rguenther@suse.de>
24206 PR tree-optimization/44124
24207 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
24209 2010-05-14 Alan Modra <amodra@gmail.com>
24212 * config/rs6000/rs6000.c (struct machine_function): Reorder
24213 fields for better packing. Add lr_save_state.
24214 (rs6000_ra_ever_killed): Return lr_save_state if set.
24215 (rs6000_emit_eh_reg_restore): Set lr_save_state.
24217 2010-05-13 Jan Hubicka <jh@suse.cz>
24219 * varpool.c (decide_is_variable_needed): Drop code checking
24220 TREE_SYMBOL_REFERENCED.
24222 2010-05-13 Jan Hubicka <jh@suse.cz>
24224 * final.c (output_addr_const): Do not call mark_decl_referenced.
24225 * cgraphunit.c (process_function_and_variable_attributes): Use
24226 mark_needed_node dirrectly.
24227 (assemble_thunk): Do not call mark_decl_referenced.
24229 2010-05-13 Anatoly Sokolov <aesok@post.ru>
24231 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
24233 2010-05-13 Jeff Law <law@redhat.com>
24235 * ira-conflicts.c (print_allocno_conflicts): New function broken out
24237 (print_conflicts): Call print_allocno_conflicts.
24239 2010-05-13 Jakub Jelinek <jakub@redhat.com>
24242 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
24245 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
24247 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
24248 t-mingw-w64 or t-mingw-w32 for multilib configuration.
24249 * config/i386/t-mingw-w32: New.
24250 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
24252 2010-05-13 Martin Jambor <mjambor@suse.cz>
24254 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
24256 * gimple-fold.c (get_base_binfo_for_type): New function.
24257 (gimple_get_relevant_ref_binfo): Likewise.
24258 (gimple_fold_obj_type_ref_known_binfo): Likewise.
24259 (gimple_fold_obj_type_ref): Likewise.
24260 (fold_gimple_call): Simplify condition for folding virtual calls
24261 and call gimple_fold_obj_type_ref.
24262 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
24263 (gimple_fold_obj_type_ref_known_binfo): Likewise.
24265 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
24267 * config/rs6000/rs6000-protos.h
24268 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
24269 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
24270 (rs6000_debug_mode_dependent_address)
24271 (rs6000_mode_dependent_address_ptr): Likewise.
24273 2010-05-13 Jakub Jelinek <jakub@redhat.com>
24276 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
24278 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
24279 * tree-sra.c (create_access_replacement): Call unshare_expr before
24280 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
24281 * dwarf2out.c: Include tree-flow.h.
24282 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
24283 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
24284 Handle DW_OP_bit_piece.
24285 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
24286 construct_piece_list, adjust_piece_list): New functions.
24287 (add_var_loc_to_decl): Handle SRA optimized variables.
24288 Adjust for var_loc_note to loc field renaming.
24289 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
24290 in VAR_LOCATION note.
24291 (new_loc_descr_op_bit_piece): New function.
24292 (dw_sra_loc_expr): New function.
24293 (dw_loc_list): Use it. Don't handle the last range after the
24294 loop, handle it inside of the loop. Adjust for var_loc_note
24295 to loc field renaming.
24296 (add_location_or_const_value_attribute): Only special case
24297 single entry loc lists if loc is NOTE_P. Adjust for
24298 var_loc_note to loc field renaming.
24299 (dwarf2out_var_location): Don't set newloc->var_loc_note
24300 and newloc->next here.
24302 2010-05-12 Jan Hubicka <jh@suse.cz>
24304 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
24306 * cgraph.h (cgraph_only_called_directly_p,
24307 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
24308 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
24309 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
24311 * ipa.c (cgraph_remove_unreachable_nodes): Use
24312 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
24314 * tree-inline.c (copy_bb): Check address_taken flag.
24315 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
24316 externally_visible flag.
24318 2010-05-12 Jason Merrill <jason@redhat.com>
24322 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
24323 * sdbout.c (plain_type_1): Likewise.
24324 * dwarf2out.c (is_base_type): Likewise.
24325 (gen_type_die_with_usage): Likewise. Generate
24326 DW_TAG_unspecified_type for any LANG_TYPE.
24328 2010-05-12 Jan Hubicka <jh@suse.cz>
24330 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
24332 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
24333 (cgraph_clone_edge): Update.
24334 (cgraph_node_remove_callees): Remove indirect calls too.
24335 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
24336 (cgraph_create_indirect_edge): Update prototype.
24337 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
24338 is_proper_for_analysis.
24339 (add_new_function, visited_nodes, function_insertion_hook_holder,
24340 get_local_reference_vars_info, mark_address_taken, mark_address,
24341 mark_load, mark_store, check_asm_memory_clobber, check_call,
24342 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
24343 (ipa_init): Do not initialize visited_nodes;
24344 function_insertion_hook_holder.
24345 (analyze_variable): Rewrite.
24346 (analyze_function): Rewrite.
24347 (copy_local_bitmap): Remove.
24348 (duplicate_node_dat): Do not duplicate local info.
24349 (generate_summary): Simplify to only walk cgraph.
24350 (write_node_summary_p, ipa_reference_write_summary,
24351 ipa_reference_read_summary): Remove.
24352 (propagate): Do not remove function insertion;
24354 (pass_ipa_reference): NULLify summary handling fields.
24355 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
24356 (input_edge): Input ecf_flags.
24357 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
24358 (update_indirect_edges_after_inlining): Ignore edges with unknown
24361 2010-05-12 Sriraman Tallam <tmsriram@google.com>
24363 * implicit-zee.c: New file.
24364 * tree-pass.h (pass_implicit_zee): Declare.
24365 * passes.c (init_optimization_passes): Add zee pass.
24366 * common.opt (fzee): New flag.
24367 * timevar.def (TV_ZEE): Define.
24368 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
24370 * Makefile.in (implicit-zee.o): Add new build file.
24372 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24373 Nathan Froyd <froydnj@codesourcery.com>
24375 * c-common.c (sync_resolve_params): Remove write-only variable.
24377 2010-05-12 Anatoly Sokolov <aesok@post.ru>
24379 * target.h (struct gcc_target): Add mode_dependent_address_p field.
24380 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
24381 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
24382 * targhooks.c (default_mode_dependent_address_p): New function.
24383 * targhooks.h (default_mode_dependent_address_p): Declare function.
24384 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
24385 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
24386 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
24387 target hook. Change return type to bool.
24388 * recog.h (mode_dependent_address_p): Change return type to bool.
24390 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24391 Nathan Froyd <froydnj@codesourcery.com>
24393 * tree-mudflap.c (build_function_type_0, build_function_type_1,
24394 build_function_type_2, build_function_type_3): Remove.
24395 (mudflap_init): Use build_function_type_list.
24397 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24398 Nathan Froyd <froydnj@codesourcery.com>
24400 * coverage.c (build_fn_info_value): Call build_constructor instead of
24401 build_constructor_from_list.
24402 (build_ctr_info_value): Likewise.
24403 (build_gcov_info): Likewise.
24405 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
24407 * tree.c (build_constructor): Compute TREE_CONSTANT for the
24408 resultant constructor.
24409 (build_constructor_single): Don't set TREE_CONSTANT.
24410 (build_constructor_from_list): Don't compute TREE_CONSTANT.
24412 2010-05-12 Jan Hubicka <jh@suse.cz>
24414 * cgraph.h (struct varpool_node): Add aux.
24415 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
24416 * varpool.c (varpool_remove_node): Do not remove initializer.
24417 (varpool_reset_queue): Export.
24418 (varpool_finalize_decl): Volatile vars are forced to be output.
24419 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
24421 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
24422 process_references, varpool_can_remove_if_no_refs): New functions.
24423 (cgraph_remove_unreachable_nodes): Handle variables too.
24425 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
24428 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
24430 2010-05-12 Jakub Jelinek <jakub@redhat.com>
24432 PR middle-end/44085
24433 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
24434 change value of ORT_TASK.
24435 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
24436 (omp_notice_threadprivate_variable): New function.
24437 (omp_notice_variable): Call it for threadprivate variables.
24438 If enclosing ctx is a task, print enclosing task rather than
24439 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
24440 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
24441 if task has untied clause.
24444 * dwarf2out.c (base_type_die): Don't add name attribute here.
24445 (modified_type_die): Instead of sizetype use
24446 its underlying original type. If a DW_TAG_base_type doesn't
24447 have name added, add __unknown__.
24448 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
24449 always call force_type_die instead.
24451 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
24453 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
24454 for __stack_chk_guard.
24456 2010-05-11 Jakub Jelinek <jakub@redhat.com>
24458 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
24459 don't call start_source_file debug hook here...
24460 (finish_options): ... but here, after outputting predefined and
24461 command line defines and undefs.
24463 PR middle-end/44071
24464 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
24466 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
24467 optimizing away empty bb with no successors, move over its
24468 footer chain to fallthru predecessor.
24469 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
24470 (rtl_split_edge): For asm goto call patch_jump_insn even if
24471 splitting fallthru edge.
24474 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
24475 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
24476 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
24477 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
24481 * c-parser.c (c_parser_expression): Mark LHS of a comma
24482 expression as read if it is a decl, handled component or
24483 COMPOUND_EXPR with that on the RHS.
24484 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
24485 if it is a decl or handled component.
24487 2010-05-11 Jan Hubicka <jh@suse.cz>
24489 * lto-symtab.c (lto_symtab_free): New function.
24490 * lto-streamer.h (lto_symtab_free): Declare.
24492 2010-05-11 Jan Hubicka <jh@suse.cz>
24494 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
24495 that if function is needed it is reachable.
24496 (lto_output_node): See if it the function is reachable or referenced.
24497 (output_cgraph): Update call of lto_output_node.
24498 * lto-streamer.h (reachable_from_other_partition_p): Declare.
24500 2010-05-11 Jan Hubicka <jh@suse.cz>
24502 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
24505 2010-05-11 Jan Hubicka <jh@suse.cz>
24507 PR tree-optimize/44063
24508 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
24510 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
24512 (estimate_function_body_sizes): Compute sizes even when disregarding.
24514 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
24516 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
24518 2010-05-11 Jan Hubicka <jh@suse.cz>
24520 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
24521 into every boundary.
24523 2010-05-11 Jan Hubicka <jh@suse.cz>
24525 * matrix-reorg.c (matrix_reorg): Rebuild edges.
24527 2010-05-11 Jan Hubicka <jh@suse.cz>
24529 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
24530 lto_streamer_cache_delete): Put nodes into heap.
24531 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
24534 2010-05-11 Jan Hubicka <jh@suse.cz>
24536 * cgraphbuild.c (cgraph_rebuild_references): New.
24537 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
24538 out extern inlines.
24539 * cgraph.h (cgraph_rebuild_references): Declare.
24540 * tree-inline.c (tree_function_versioning): Use it.
24541 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
24543 2010-05-11 Jan Hubicka <jh@suse.cz>
24545 * cgraph.c: Include ipa-utils.h
24546 (cgraph_create_virtual_clone): Update references.
24547 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
24549 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
24551 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
24552 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
24555 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
24557 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
24559 2010-05-11 Jakub Jelinek <jakub@redhat.com>
24561 * gcc.c (execute): For -### don't quote arguments that
24562 contain just alphanumerics and _/-. characters.
24563 * doc/invoke.texi: Document that change for -###.
24566 * df-problems.c (struct dead_debug): Add to_rescan field.
24567 (dead_debug_init): Clear to_rescan field.
24568 (dead_debug_finish): Rescan all debug insns in to_rescan
24569 bitmap and free the bitmap.
24570 (dead_debug_insert_before): Instead of rescanning debug insns
24571 immediately queue their rescanning until dead_debug_finish.
24572 (df_note_bb_compute): After dead_debug_add do continue instead
24575 2010-05-10 Jakub Jelinek <jakub@redhat.com>
24578 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
24579 clear also INSN_REG_USE_LIST.
24581 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24583 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
24585 2010-05-10 Jan Hubicka <jh@suse.cz>
24587 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
24590 2010-05-10 Jan Hubicka <jh@suse.cz>
24592 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
24594 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
24595 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
24596 (lto_streamer_cache_create): Init alloc pool.
24597 (lto_streamer_cache_delete): Free alloc pool.
24598 * lto-streamer.h: Include alloc pool.
24599 (lto_streamer_cache_d): Use alloc pool.
24600 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
24602 2010-05-10 Jan Hubicka <jh@suse.cz>
24604 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
24605 * cgraphbuild.c: Include except.h
24606 (record_type_list, record_eh_tables): New function.
24607 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
24609 2010-05-10 Jan Hubicka <jh@suse.cz>
24611 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
24612 __frame_dummy_init_array_entry, force_to_data): Attribute as used
24613 rather than unused.
24615 2010-05-10 Michael Matz <matz@suse.de>
24617 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
24618 (can_reassociate_p): Use FLOAT_TYPE_P.
24619 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
24620 (vect_force_simple_reduction): ... this.
24621 * tree-parloops.c (gather_scalar_reductions): Use
24622 vect_force_simple_reduction.
24623 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
24624 vect_is_simple_reduction, add modify argument, if true rewrite
24625 "a-b" into "a+(-b)".
24626 (vect_is_simple_reduction, vect_force_simple_reduction): New
24628 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
24630 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
24631 Vladimir Makarov <vmakarov@redhat.com>
24633 PR rtl-optimization/44012
24634 * ira-build.c (remove_unnecessary_allocnos): Nullify
24635 regno_allocno_map of the removed allocno.
24637 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24639 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
24641 * configure: Regenerate.
24643 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24645 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
24647 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
24648 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
24650 * configure: Regenerate.
24652 2010-05-10 Richard Guenther <rguenther@suse.de>
24654 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
24655 marked if the entry identifier is marked.
24657 2010-05-10 Richard Guenther <rguenther@suse.de>
24659 * c-common.c (struct c_common_attributes): Add fnspec attribute.
24660 (handle_fnspec_attribute): New function.
24661 * gimple.h (gimple_call_return_flags): Declare.
24662 (gimple_call_arg_flags): Likewise.
24663 * gimple.c (gimple_call_arg_flags): New function.
24664 (gimple_call_return_flags): Likewise.
24665 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
24666 New argument flags.
24667 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
24668 return value flags.
24669 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
24670 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
24672 (make_heapvar_for): ... this new function.
24673 (handle_rhs_call): Handle fnspec attribute argument specifiers.
24674 (handle_lhs_call): Likewise.
24675 (find_func_aliases): Adjust.
24677 2010-05-10 Richard Guenther <rguenther@suse.de>
24679 PR tree-optimization/44050
24680 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
24682 2010-05-10 Wei Guozhi <carrot@google.com>
24685 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
24687 2010-05-09 Joseph Myers <joseph@codesourcery.com>
24690 * c-typeck.c (lookup_field): Take a type directly. Update
24692 (build_component_ref): Update call to lookup_field.
24693 (set_init_label): Use lookup_field to find initialized field.
24694 Handle returned list of fields like a sequence of designators.
24696 2010-05-09 Richard Guenther <rguenther@suse.de>
24698 PR middle-end/44024
24699 * fold-const.c (tree_single_nonzero_warnv_p): Properly
24700 handle &FUNCTION_DECL.
24702 2010-05-09 Joseph Myers <joseph@codesourcery.com>
24705 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
24706 structures and unions recursively.
24707 (detect_field_duplicates): Move duplicate detection with a hash to
24708 detect_field_duplicates_hash. Always use a hash if anonymous
24709 structures or unions are present.
24710 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
24713 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
24716 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
24717 detect Atom, Core 2 and Core i7.
24719 2010-05-09 Richard Guenther <rguenther@suse.de>
24721 * gcc.c (store_arg): Handle temporary file deletion for
24724 2010-05-09 Richard Guenther <rguenther@suse.de>
24726 PR middle-end/44043
24727 * ipa-inline.c (estimate_function_body_sizes): Return after
24728 disregarding inline limits.
24730 2010-05-09 Richard Guenther <rguenther@suse.de>
24732 * gcc.c (store_arg): Revert last change.
24734 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
24736 PR middle-end/28685
24737 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
24738 (optimize_ops_list): Call it.
24740 2010-05-08 Richard Guenther <rguenther@suse.de>
24742 PR tree-optimization/44030
24743 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
24744 NECESSARY flag if we propagate from a inserted expression.
24746 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
24748 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
24749 domain types as equal if they are both PLACEHOLDER_EXPRs.
24751 2010-05-08 Richard Guenther <rguenther@suse.de>
24753 * lto-wrapper.c (run_gcc): Remove linker output from
24754 command line for LTRANS invocation.
24756 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
24758 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
24759 lto-macho as lto_binary_reader.
24760 * target.h (struct gcc_target): New hooks lto_start and lto_end.
24761 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
24762 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
24763 in lto_start and lto_end calls.
24764 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
24766 (scan_prog_file): Update is_elf_or_coff call.
24767 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
24769 * collect2.c (main): Fix enum comparison.
24771 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
24773 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
24774 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
24775 and TARGET_ASM_LTO_END.
24776 * darwin.c: Include obstack.h and lto-streamer.h.
24777 (lto_section_names_offset, lto_section_names_obstack,
24778 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
24780 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
24781 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
24782 to a temporary file.
24783 (darwin_asm_lto_end): New function. Restore asm_out_file.
24784 (darwin_asm_named_section): For LTO sections, replace the name with
24785 the offset of the section name in a string table, and build this
24787 (darwin_file_start): Initialize global vars for LTO support.
24788 (darwin_file_end): If output to asm_out_file was redirected, append it
24789 to the proper asm_out_file here. Add the section names section.
24791 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
24793 * c-pragma.c (pending_weak_d, pending_weak): New.
24794 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
24795 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
24796 handle_pragma_weak): Update the uses of pending_weaks.
24798 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24800 PR documentation/44016
24801 * doc/standards.texi (Standards): Link to unversioned
24802 cxx0x_status.html page.
24804 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
24807 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
24808 in addition to TREE_USED, to avoid "set but unused" warnings.
24810 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
24812 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
24813 (is_loop_prefetching_profitable): Do not insert prefetches
24814 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
24815 times the prefetch ahead distance.
24817 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
24819 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
24820 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
24821 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
24824 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
24826 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
24827 a diagnostic info when the insn-to-mem ratio is too small.
24829 2010-05-07 Richard Guenther <rguenther@suse.de>
24831 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
24833 (store_arg): Queue temp_filename for deletion instead of
24834 the whole argument.
24836 2010-05-07 Richard Guenther <rguenther@suse.de>
24838 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
24839 (run_gcc): Handle LTRANS phase invocation.
24840 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
24842 2010-05-07 Jakub Jelinek <jakub@redhat.com>
24844 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
24845 this is also meaningful on PARM_DECLs and RESULT_DECLs.
24847 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24849 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
24851 2010-05-07 Richard Guenther <rguenther@suse.de>
24853 PR tree-optimization/44020
24854 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
24855 code when PRE is not yet initialized.
24857 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24859 * config/mips/dbxmdebug.h: Remove.
24860 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
24862 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
24864 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
24865 with null pointer and also warn about ordered comparison of zero with
24866 pointer if -Wextra.
24868 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
24870 * graphite-blocking.c
24871 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
24872 * graphite-clast-to-gimple.c
24873 (clast_to_gcc_expression): Same.
24874 (precision_for_value): Same.
24875 (precision_for_interval): Same.
24876 (gcc_type_for_interval): Same.
24877 (graphite_create_new_guard): Same.
24878 (compute_bounds_for_level): Same.
24879 (graphite_create_new_loop_guard): Same.
24880 * graphite-interchange.c
24881 (build_linearized_memory_access): Same.
24882 (pdr_stride_in_loop): Same.
24883 (memory_strides_in_loop_1): Same.
24884 (memory_strides_in_loop): Same.
24885 (extend_scattering): Same.
24886 (psct_scattering_dim_for_loop_depth): Same.
24887 (pbb_number_of_iterations): Same.
24889 (debug_iteration_domains): Same.
24891 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
24892 (ppl_set_inhomogeneous_gmp): Same.
24893 (ppl_strip_loop): Same.
24894 (ppl_lexico_compare_linear_expressions): Same.
24895 (ppl_read_polyhedron_matrix): Same.
24896 (ppl_max_for_le_pointset): Same.
24898 (ppl_read_polyhedron_matrix): Same.
24899 (tree_int_to_gmp): Same.
24900 (gmp_cst_to_tree): Same.
24901 (ppl_set_inhomogeneous): Same.
24902 (ppl_set_inhomogeneous_tree): Same.
24903 (ppl_set_coef): Same.
24904 (ppl_set_coef_tree): Same.
24905 * graphite-sese-to-poly.c
24906 (build_pbb_scattering_polyhedrons): Same.
24907 (build_scop_scattering): Same.
24908 (scan_tree_for_params_right_scev): Same.
24909 (scan_tree_for_params): Same.
24910 (find_params_in_bb): Same.
24911 (find_scop_parameters): Same.
24912 (add_upper_bounds_from_estimated_nit): Same.
24913 (build_loop_iteration_domains): Same.
24914 (add_condition_to_domain): Same.
24915 (pdr_add_memory_accesses): Same.
24917 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
24919 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
24920 CLooG's value_* macros to their respective mpz_* counterparts.
24921 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
24922 (graphite_create_new_loop_guard): Same.
24923 * graphite-interchange.c (build_linearized_memory_access): Same.
24924 (pdr_stride_in_loop): Same.
24925 (memory_strides_in_loop_1): Same.
24926 (1st_interchange_profitable_p): Same.
24927 * graphite-poly.c (extend_scattering): Same.
24928 (psct_scattering_dim_for_loop_depth): Same.
24929 (pbb_number_of_iterations): Same.
24930 (pbb_number_of_iterations_at_time): Same.
24931 * graphite-poly.h (new_1st_loop): Same.
24932 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
24933 (oppose_constraint): Same.
24934 (insert_constraint_into_matrix): Same.
24935 (ppl_set_inhomogeneous_gmp): Same.
24936 (ppl_set_coef_gmp): Same.
24937 (ppl_strip_loop): Same.
24938 (ppl_lexico_compare_linear_expressions): Same.
24939 (ppl_max_for_le_pointset): Same.
24940 (ppl_min_for_le_pointset): Same.
24941 (ppl_build_realtion): Same.
24942 * graphite-ppl.h (gmp_cst_to_tree): Same.
24943 (ppl_set_inhomogeneous): Same.
24944 (ppl_set_inhomogeneous_tree): Same.
24945 (ppl_set_coef): Same.
24946 (ppl_set_coef_tree): Same.
24947 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
24948 (build_scop_scattering): Same.
24949 (add_value_to_dim): Same.
24950 (scan_tree_for_params_right_scev): Same.
24951 (scan_tree_for_params_int): Same.
24952 (scan_tree_for_params): Same.
24953 (find_params_in_bb): Same.
24954 (find_scop_parameters): Same.
24955 (add_upper_bounds_from_estimated_nit): Same.
24956 (build_loop_iteration_domains): Same.
24957 (create_linear_expr_from_tree): Same.
24958 (add_condition_to_domain): Same.
24959 (pdr_add_memory_accesses): Same.
24961 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
24962 Jason Merrill <jason@redhat.com>
24964 * c-common.c (c_common_reswords): Add nullptr.
24965 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
24966 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
24967 (gen_type_die_with_usage): Likewise.
24968 * dbxout.c (dbxout_type): Likewise.
24969 * sdbout.c (plain_type_1): Likewise.
24971 2010-05-06 Jason Merrill <jason@redhat.com>
24973 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
24974 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
24976 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
24978 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
24979 stripping WITH_SIZE_EXPR.
24980 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
24983 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24985 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
24986 list of obsolete configurations.
24987 Disabled check for obsolete configurations.
24988 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
24989 Removed support for previous versions.
24990 * config/mips/iris.h: Removed.
24991 * config/mips/iris5.h: Removed.
24992 * config/mips/iris6.h: Merged old iris.h contents.
24993 (TARGET_IRIX): Removed.
24994 (DRIVER_SELF_SPECS): Removed mabi=32.
24995 (IDENT_ASM_OP): Removed undef.
24996 (STARTFILE_SPEC): Removed mabi=32.
24997 (ENDFILE_SPEC): Likewise.
24998 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
24999 (MACHINE_TYPE): Update for IRIX 6.5.
25000 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
25001 TARGET_IRIX by TARGET_IRIX6.
25002 (mips_file_start): Likewise.
25003 (mips_output_external): Remove IRIX 5/6 O32 support.
25004 (mips_output_function_prologue): Likewise.
25005 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
25007 (TARGET_CPU_CPP_BUILTINS): Likewise.
25008 (TARGET_IRIX): Removed.
25009 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
25010 (MULTILIB_DIRNAMES): Removed 32.
25011 (MULTILIB_OSDIRNAMES): Removed ../lib.
25012 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
25013 (Specific, mips-sgi-irix5): Document removal.
25014 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
25015 Remove references to older IRIX 6 releases and the O32 ABI.
25017 2010-05-06 Jakub Jelinek <jakub@redhat.com>
25020 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
25021 instead of DF_REF_REAL_REG.
25023 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
25026 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
25027 handling to still return true for x64 targets.
25029 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
25031 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
25033 2010-05-06 Jan Hubicka <jh@suse.cz>
25035 PR tree-optimization/43791
25036 * ipa-inline.c (update_caller_keys): Remove bogus
25037 disregard_inline_limits check.
25039 2010-05-06 Michael Matz <matz@suse.de>
25041 PR tree-optimization/43984
25042 * tree-ssa-pre.c (inserted_phi_names): Remove.
25043 (inserted_exprs): Change to bitmap.
25044 (create_expression_by_pieces): Set bits, don't append to vector.
25045 (insert_into_preds_of_block): Don't handle inserted_phi_names.
25046 (eliminate): Don't look at inserted_phi_names, remove deleted
25047 insns from inserted_exprs.
25048 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
25049 (init_pre, fini_pre): Allocate and free bitmaps.
25050 (execute_pre): Insert insns on edges before elimination.
25052 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
25054 * tree.c (initializer_zerop): Handle STRING_CST.
25056 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
25059 * doc/invoke.texi (Wimplicit): Document as C only.
25060 * opts.c (common_handle_option): Add argument kind.
25061 (handle_option): Rename as read_cmdline_option. Factor out code to...
25062 (handle_option): ... here. New.
25063 (handle_options): Rename as read_cmdline_options.
25064 (decode_options): Update call.
25065 (set_option): Use option index instead of option pointer. Classify
25066 diagnostics correctly.
25067 (enable_warning_as_error): Call handle_option.
25068 * opts.h (set_option): Update declaration.
25069 (handle_option): Declare.
25070 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
25071 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
25072 * c-opts.c (set_Wimplicit): Delete.
25073 (c_family_lang_mask): New static constant.
25074 (c_common_handle_option): Add argument kind. Use handle_option
25075 instead of set_Wimplicit.
25076 (c_common_post_options): warn_implicit and warn_implicit_int
25077 are disabled by default.
25078 * c-common.c (warn_implicit): Do not define here.
25079 * c-common.h (warn_implicit): Do not declare here.
25080 (c_common_handle_option): Update declaration.
25081 * lto-opts.c (lto_reissue_options): Update call to set_option.
25083 2010-05-06 Richard Guenther <rguenther@suse.de>
25085 PR tree-optimization/43571
25086 * domwalk.c (walk_dominator_tree): Walk the dominator
25087 sons in more optimal order.
25089 2010-05-06 Richard Guenther <rguenther@suse.de>
25091 PR tree-optimization/43934
25092 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
25093 (stmt_cost): Likewise.
25094 (extract_true_false_args_from_phi): New helper.
25095 (determine_max_movement): For PHI nodes verify we can hoist them
25096 and compute their cost.
25097 (determine_invariantness_stmt): Handle PHI nodes.
25098 (move_computations_stmt): Likewise. Hoist PHI nodes in
25099 if-converted form using COND_EXPRs.
25100 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
25101 (tree_ssa_lim): Likewise.
25102 * tree-flow.h (tree_ssa_lim): Adjust prototype.
25103 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
25105 2010-05-06 Richard Guenther <rguenther@suse.de>
25107 PR tree-optimization/43987
25108 * tree-ssa-structalias.c (could_have_pointers): For possibly
25109 address-taken variables force pointers to be recorded.
25110 (create_variable_info_for_1): Likewise.
25111 (push_fields_onto_fieldstack): Pass in wheter all fields
25112 must have pointers.
25113 (find_func_aliases): Query types instead of vars whether
25114 they contain pointers where appropriate.
25116 2010-05-06 Jan Hubicka <jh@suse.cz>
25118 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
25119 (record_reference, mark_address, mark_load, mark_store): Record
25121 (record_references_in_initializer): Update call of record_references.
25122 (rebuild_cgraph_edges): Remove all references before rebuiding.
25123 * cgraph.c (cgraph_create_node): Clear ref list.
25124 (cgraph_remove_node): Remove references.
25125 (dump_cgraph_node): Dump references.
25126 (cgraph_clone_node): Clone references.
25127 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
25128 (struct cgraph_node, varpool_node): Add ref_lst.
25129 * ipa-ref.c: New file.
25130 * ipa-ref.h: New file.
25131 * ipa-ref-inline.h: New file.
25132 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
25133 (referenced_from_other_partition_p): New function.
25134 (lto_output_varpool_node): Take set arugment; call
25135 referenced_from_other_partition.
25136 (lto_output_ref): New.
25137 (add_references): New.
25138 (output_refs): New.
25139 (output_cgraph): Compute boundary based on references; output refs.
25140 (output_varpool): Accept cgraph_node_set argument.
25143 (input_cgraph): Call input_refs.
25144 * lto-section-in.c (lto_section_name): Add refs.
25145 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
25146 (ipa-ref.o): New file.
25147 * varpool.c (varpool_node): Clear ipa ref list.
25148 (varpool_remove_node): Remove references.
25149 (dump_varpool_node): Dump references.
25150 (varpool_assemble_decl): Only compile finalized ones.
25151 (varpool_extra_name_alias): Initialize ref list.
25152 * lto-streamer.c (lto-get_section_name): Add .refs section.
25153 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
25154 (referenced_from_other_partition_p): Declared.
25156 2010-05-06 Ira Rosen <irar@il.ibm.com>
25158 PR tree-optimization/43901
25159 * tree-vect-stmts.c (vectorizable_call): Assert that vector
25160 type is not NULL if it's transformation phase, and return
25161 FALSE if it's analysis.
25162 (vectorizable_conversion, vectorizable_operation,
25163 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
25165 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
25167 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
25169 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
25171 * config/mips/mips-protos.h
25172 (mips_small_register_classes_for_mode_p): Delete prototype.
25174 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
25176 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
25177 * config/arm/arm.c (multiple_operation_profitable_p,
25178 compute_offset_order): New static functions.
25179 (load_multiple_sequence, store_multiple_sequence): Use them.
25180 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
25181 memory offsets, not register numbers.
25182 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
25184 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
25186 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
25187 (get_pending_sizes, put_pending_size, put_pending_sizes):
25188 Update the uses of pending_sizes.
25189 * c-decl.c (store_parm_decls): Likewise.
25190 * c-tree.h (struct c_arg_info): Likewise.
25191 * tree.h: Update the prototype for get_pending_sizes and
25194 2010-05-05 Jason Merrill <jason@redhat.com>
25197 * c-common.c (handle_aligned_attribute): Respect
25198 ATTR_FLAG_TYPE_IN_PLACE.
25201 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
25202 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
25203 (TARGET_INITIALIZER): Use it.
25204 * c-common.c (attribute_takes_identifier_p): Call it.
25205 * c-common.h: Update prototype.
25206 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
25207 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
25209 2010-05-05 Jakub Jelinek <jakub@redhat.com>
25212 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
25213 DW_ID_down_case for Fortran compilation units.
25215 2010-05-05 Jan Hubicka <jh@suse.cz>
25217 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
25220 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
25222 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
25223 a variable-sized RESULT_DECL.
25225 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
25227 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
25229 2010-05-05 Jason Merrill <jason@redhat.com>
25232 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
25234 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
25236 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
25237 Jakub Jelinek <jakub@redhat.com>
25240 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
25241 (dead_debug_init, dead_debug_finish): New functions.
25242 (dead_debug_add, dead_debug_insert_before): Likewise.
25243 (df_note_bb_compute): Initialize a dead_debug object, add dead
25244 debug uses to it, insert debug bind insns before death insns,
25245 reset debug insns that refer to pending uses at the end.
25246 * rtl.h (make_debug_expr_from_rtl): New prototype.
25247 * varasm.c (make_debug_expr_from_rtl): New function.
25249 2010-05-05 Jan Hubicka <jh@suse.cz>
25251 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
25252 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
25253 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
25254 lto_varpool_encoder_deref, lto_varpool_encoder_size,
25255 lto_varpool_encoder_encode_initializer_p,
25256 lto_set_varpool_encoder_encode_initializer): New functions.
25257 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
25258 call output_varpool.
25259 (input_varpool_node): Do not always set analyzed.
25260 (input_cgraph_1): Return vector of cgraph nodes.
25261 (input_varpool_1): Return vector of varpools.
25262 (input_cgraph): Free the vectors.
25263 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25264 output only initializers needed.
25265 (lto_output): Only call output_cgraph.
25266 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
25267 * lto-section-out.c (lto_new_out_decl_state): Initialize
25268 state->varpool_node_encoder.
25269 * lto-streamer.h (lto_varpool_encoder_d): New.
25270 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
25271 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
25272 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
25273 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
25274 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
25276 (output_varpool, input_varpool): Remove declarations.
25278 2010-05-05 Jan Hubicka <jh@suse.cz>
25280 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
25281 with body can prevail.
25283 2010-05-05 Jan Hubicka <jh@suse.cz>
25285 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
25288 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
25290 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
25292 * gengtype.h (erro_at_line): Constify pos argument.
25294 * gengtype.c: Include hashtab.h.
25295 (enum gc_used): Document GC_MAYBE_POINTED_TO.
25296 (error_at_line): Constify pos argument.
25297 (do_typedef): Initialize p->opt field.
25298 (get_file_gtfilename): Fix comment typo.
25299 (struct walk_type_data): Constify line field.
25300 (get_output_file_for_structure): New function.
25301 (write_local_func_for_structure): Constify orig_s argument.
25302 Use get_output_file_for_structure.
25303 (write_func_for_structure): Use get_output_file_for_structure.
25304 (INDENT): New define.
25305 (dump_pair, dump_type, dump_type_list, dump_typekind)
25306 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
25307 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
25309 (seen_types): New variable.
25310 (main): New variable do_dump. Process "-d" command line option.
25311 Call dump_everything if dump requested.
25313 2010-05-05 Jakub Jelinek <jakub@redhat.com>
25315 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
25316 in a temporary instead of invoking the macro multiple times.
25317 (track_expr_p): Likewise.
25319 2010-05-04 Neil Vachharajani <nvachhar@google.com>
25321 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
25323 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
25324 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
25325 conditions for printing notes.
25326 * common.opt (-Wcoverage-mismatch): Allow negative, default to
25327 true, update documentation.
25328 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
25330 2010-05-04 Jakub Jelinek <jakub@redhat.com>
25333 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
25336 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
25339 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
25340 (*sse_prologue_save_insn1): Likewise.
25341 (SSE prologue save splitter): Likewise.
25343 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
25345 * tree.c (free_lang_data_in_one_sizepos): New inline function.
25346 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
25347 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
25348 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
25349 all decls. Call it on DECL_FIELD_OFFSET of fields.
25350 (find_decls_types_r): Follow DECL_VALUE_EXPR.
25351 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
25353 2010-05-04 Martin Jambor <mjambor@suse.cz>
25355 * tree-sra.c (build_access_from_expr_1): The first parameter type
25356 changed to simple tree.
25357 (build_access_from_expr): Likewise, gsi parameter was eliminated.
25358 (scan_assign_result): Renamed to assignment_mod_result, enum elements
25360 (build_accesses_from_assign): Removed all parameters except for a
25361 simple gimple statement. Now returns a simple bool.
25362 (scan_function): All non-analysis parts moved to separate functions
25363 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
25364 parameters and updated both callers.
25365 (sra_modify_expr): Removed parameter data.
25366 (sra_modify_function_body): New function.
25367 (perform_intra_sra): Call sra_modify_function_body to modify the
25369 (replace_removed_params_ssa_names): Parameter data changed into
25370 adjustments vector.
25371 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
25372 changed the parameter dont_convert to convert with the opposite
25374 (sra_ipa_modify_assign): Parameter data changed into adjustments
25375 vector, return value changed to bool.
25376 (ipa_sra_modify_function_body): New function.
25377 (sra_ipa_reset_debug_stmts): Updated a comment.
25378 (modify_function): Use ipa_sra_modify_function_body to modify function
25381 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
25383 PR middle-end/43671
25384 * alias.c (true_dependence): Handle the same VALUE in x and mem.
25385 (canon_true_dependence): Likewise.
25386 (write_dependence_p): Likewise.
25388 2010-05-04 Jan Hubicka <jh@suse.cz>
25390 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
25391 * cgraphbuild.c: Include ipa-utils.h
25392 (record_reference_ctx): New struct.
25393 (record_reference): Simplify to work on initializers; not statements.
25394 (mark_address, mark_load, mark_store): New.
25395 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
25396 walk PHI nodes too.
25397 (record_references_in_initializer): Update use of record_reference.
25398 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
25399 walk PHI nodes too.
25401 2010-05-04 Jan Hubicka <jh@suse.cz>
25403 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
25404 node will be removed anyway.
25405 (lto_varpool_replace_node): Allow also unanalyzed nodes;
25406 relink aliases of node into prevailing node.
25407 * varpool.c (varpool_remove_node): Remove aliases properly;
25408 when removing node, remove all its aliases too; remove DECL_INITIAL
25409 of removed node; ggc_free the varpool node.
25411 2010-05-04 Richard Guenther <rguenther@suse.de>
25413 PR tree-optimization/43879
25414 * tree-ssa-structalias.c (alias_get_name): Use
25415 DECL_ASSEMBLER_NAME if available.
25416 (create_function_info_for): Return the varinfo node.
25417 (ipa_pta_execute): Associate same-body aliases and extra names
25418 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
25420 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
25422 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
25424 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
25427 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
25428 only if HONOR_REG_ALLOC_ORDER is not defined.
25430 2010-05-04 Richard Guenther <rguenther@suse.de>
25432 PR tree-optimization/43949
25433 * tree-vrp.c (extract_range_from_binary_expr): Only handle
25436 2010-04-26 Jason Merrill <jason@redhat.com>
25438 * c.opt (-fstrict-enums): New.
25439 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
25441 2010-05-03 David Ung <davidu@mips.com>
25442 James E. Wilson <wilson@codesourcery.com>
25444 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
25445 emit the trap instruction before the divide for TUNE_74K.
25447 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
25449 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
25450 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
25451 based on the above, for new target hook.
25453 * hooks.c (hook_bool_mode_true): New generic hook.
25454 * hooks.h (hook_bool_mode_true): Add prototype.
25456 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
25458 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
25459 target hook, set to hook_bool_mode_false.
25460 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
25461 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
25462 with targetm.small_register_classes_for_mode_p.
25463 (find_reusable_reload): Likewise.
25464 (combine_reloads): Likewise.
25465 * reload1.c (reload_as_needed): Likewise.
25466 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
25467 * ifcvt.c (noce_process_if_block, check_cond_move_block,
25468 dead_or_predicable): Likewise.
25469 * regmove.c (optimize_reg_copy_1): Likewise.
25470 * calls.c (prepare_call_address): Likewise.
25471 (precompute_register_parameters): Likewise.
25473 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
25475 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
25476 implementation of the hook that considers all register classes
25477 small except for SH64.
25478 (sh_override_options): Use the new hook.
25479 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
25482 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
25484 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
25485 implementation of the hook that considers all register classes
25487 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
25490 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
25492 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
25493 implementation of the hook that considers all register classes
25495 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
25498 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
25500 * config/m32c/m32c.h: Likewise.
25501 * config/pdp11/pdp11.h: Likewise.
25502 * config/avr/avr.h: Likewise.
25503 * config/xtensa/xtensa.h: Likewise.
25504 * config/m68hc11/m68hc11.h: Likewise.
25505 * config/mn10300/mn10300.h: Likewise.
25506 * config/mcore/mcore.h: Likewise.
25507 * config/h8300/h8300.h: Likewise.
25508 * config/bfin/bfin.h: Likewise.
25510 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
25511 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
25513 2010-05-03 Anatoly Sokolov <aesok@post.ru>
25515 * double-int.h (tree_to_double_int): Remove macro.
25516 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
25517 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
25518 (tree_to_double_int): New function.
25519 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
25521 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
25523 2010-05-03 Richard Guenther <rguenther@suse.de>
25525 PR tree-optimization/43971
25526 * tree-ssa-structalias.c (get_constraint_for_1): Fix
25527 constraints in the !flag_delete_null_pointer_checks case.
25529 2010-05-03 Jakub Jelinek <jakub@redhat.com>
25532 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
25533 result mode matches original rtl mode.
25535 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
25538 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
25540 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25542 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
25543 when processing flag options.
25545 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25547 * gcov-iov.c (main): Change format string placeholder
25548 from %#08x to 0x%08x.
25549 * genchecksum.c (dosum): Change format string placeholder
25550 from %#02x to 0x%02x.
25552 2010-05-02 Richard Guenther <rguenther@suse.de>
25554 PR tree-optimization/43879
25555 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
25557 2010-05-02 Bruno Haible <bruno@clisp.org>
25559 * doc/extend.texi (Function Attributes): Fix a typo.
25561 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25564 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
25565 placeholder from 0x%x to %#x.
25566 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
25567 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
25568 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
25569 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
25570 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
25571 * config/i386/i386.c (ix86_target_string): Ditto.
25572 * config/i386/i386.c (output_pic_addr_const): Ditto.
25573 (print_operand): Ditto.
25575 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25577 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
25578 placeholder from 0x%x to %#x.
25579 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
25580 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
25581 (ASM_OUTPUT_DEBUG_DATA): Ditto.
25582 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
25583 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
25584 * optc-gen.awk: Ditto.
25585 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
25586 (HOST_WIDE_INT_PRINT_HEX): Ditto.
25587 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
25588 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
25590 2010-05-01 Anatoly Sokolov <aesok@post.ru>
25592 * target.h (struct calls): Add function_value_regno_p field.
25593 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
25594 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
25595 * targhooks.c (default_function_value_regno_p): New function.
25596 * targhooks.h (default_function_value_regno_p): Declare function.
25597 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
25598 * builtins.c. (apply_result_size): (Ditto.).
25599 * combine.c. (likely_spilled_retval_p): (Ditto.).
25600 * mode-switching.c. Include 'target.h'.
25601 (create_pre_exit): Use function_value_regno_p hook.
25602 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
25603 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
25604 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
25606 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
25607 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
25608 (ix86_function_value_regno_p): Declare as static, change argument
25609 type to const unsigned int.
25610 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
25612 2010-05-01 Richard Guenther <rguenther@suse.de>
25614 PR tree-optimization/43949
25615 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
25617 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
25619 2010-05-01 Anatoly Sokolov <aesok@post.ru>
25621 * rtl.h (CONST_DOUBLE_P): Define.
25622 (rtx_to_double_int): Declare.
25623 * emit-rtl.c (rtx_to_double_int): New function.
25624 * dwarf2out.c (insert_double): New function.
25625 (loc_descriptor, add_const_value_attribute): Clean up, use
25626 rtx_to_double_int and insert_double functions.
25628 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
25630 * doc/extend.texi (Inline): Add missing return keyword to examples.
25631 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
25634 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
25636 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
25637 the variable part of the offset as well. Use highest_pow2_factor for
25638 all alignment checks.
25640 2010-04-30 Richard Guenther <rguenther@suse.de>
25642 PR tree-optimization/43879
25643 * tree-ssa-structalias.c (type_could_have_pointers): Functions
25646 2010-04-30 Jan Hubicka <jh@suse.cz>
25648 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
25650 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
25652 2010-04-30 Jan Hubicka <jh@suse.cz>
25654 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
25656 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
25657 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
25658 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
25659 cgraph_node_set_needs_ltrans_p): Remove.
25661 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
25663 * sdbout.c: Include vec.h, do not include varray.h.
25664 (deferred_global_decls, sdbout_global_decl,
25665 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
25666 * toplev.c: Do not include varray.h.
25667 (dump_memory_report): Do not dump VARRAY statistics.
25668 * gengtype.c (open_base_file): Ignore varray.h.
25669 * Makefile.in: Update for abovementioned changes.
25670 Remove all traces of varray.c and varray.h.
25671 * varray.c: Remove file.
25672 * varray.h: Remove file.
25674 2010-04-30 Jan Hubicka <jh@suse.cz>
25676 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
25679 2010-04-30 Jan Hubicka <jh@suse.cz>
25681 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
25684 2010-04-30 Richard Guenther <rguenther@suse.de>
25686 * tree-ssa-structalias.c (get_constraint_for_1): Generate
25687 constraints for CONSTRUCTOR.
25689 2010-04-30 Richard Guenther <rguenther@suse.de>
25692 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
25693 first after all lowering passes.
25695 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
25697 * toplev.c: Include varray.h for statistics dumping.
25698 * tree.h: Do not declare varray_head_tag.
25699 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
25700 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
25701 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
25702 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
25703 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
25704 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
25705 c-common.c, c-common.h, reg-stack.c, basic-block.h,
25706 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
25708 * Makefile.in: Update for abovementioned changes.
25710 2010-04-30 Jakub Jelinek <jakub@redhat.com>
25713 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
25715 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
25717 * config/picochip/picochip.c (picochip_legitimize_address): Define.
25718 Use this function to do machine-specific conversion.
25719 (picochip_legitimize_reload_address): Likewise.
25720 (picochip_legitimate_address_p): Check valid base register only if
25722 (picochip_check_conditional_copy): Check for modw only if opnd is
25724 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
25725 to call the function in c.
25726 * config/picochip/picochip-protos.h
25727 (picochip_legitimize_reload_address): Define.
25728 * config/picochip/picochip.md (supported_compare1): Define.
25730 2010-04-30 Jan Hubicka <jh@suse.cz>
25732 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
25733 (cgraph_global_info): Remove inlined.
25734 (LTO_cgraph_tag_names): Remove.
25735 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
25736 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
25737 simplify cgraph tags and document.
25738 (lto_output_node): Use only LTO_cgraph_unavail_node and
25739 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
25740 for_functions_valid, global info, process and output flags.
25741 (input_overwrite_node): Initialize estimated stack size and
25742 estimated growth. Do not read flags we no longer store.
25743 (input_node): Likewise do not read info no longer stored.
25744 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
25747 2010-04-30 Richard Guenther <rguenther@suse.de>
25749 PR tree-optimization/43879
25750 * tree-ssa-structalias.c (get_constraint_for_1): Properly
25751 handle non-zero initializers.
25753 2010-04-30 Richard Guenther <rguenther@suse.de>
25755 * builtins.c (fold_builtin_1): Delete free (0).
25757 2010-04-29 Jan Hubicka <jh@suse.cz>
25759 * gengtype.c (open_base_files): Add lto-streamer.h
25760 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
25761 (pass_ipa_cp): GGC collect.
25762 * toplev. (compile_file): Do not output symbols.
25763 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
25764 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
25765 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
25766 * lto-section-in.c: Include ggc.h
25767 (lto_new_in_decl_state): Alloc in GGC.
25768 (lto_delete_in_decl_state): Likewise.
25769 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
25772 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
25775 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
25776 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
25777 (HONOR_REG_ALLOC_ORDER): Describe new macro.
25778 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
25779 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
25780 account only if HONOR_REG_ALLOC_ORDER is not defined.
25781 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
25782 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
25784 2010-04-29 Jon Grant <04@jguk.org>
25786 * collect2.c (vflag): Change type from int to bool.
25788 (helpflag): New global bool.
25789 (main): Set vflag and debug with boolean, not integer truth values.
25790 Accept new "--help" option and output usage text if found.
25791 * collect2.h (vflag): Update prototype.
25794 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
25797 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
25799 2010-04-29 Richard Guenther <rguenther@suse.de>
25802 * plugin.h (invoke_plugin_callbacks): Annotate arguments
25803 with ATTRIBUTE_UNUSED.
25805 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
25808 * config/i386/i386.c (get_some_local_dynamic_name): Replace
25809 INSN_P with NONDEBUG_INSN_P.
25810 (distance_non_agu_define): Likewise.
25811 (distance_agu_use): Likewise.
25813 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
25815 From Dominique d'Humieres <dominiq@lps.ens.fr>
25817 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
25820 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
25822 * plugin.h (invoke_plugin_callbacks): New inline function.
25823 * plugin.c (flag_plugin_added): New global flag.
25824 (add_new_plugin): Initialize above flag.
25825 (invoke_plugin_callbacks): Rename to ...
25826 (invoke_plugin_callbacks_full): ... this.
25828 2010-04-28 Jan Hubicka <jh@suse.cz>
25830 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
25831 (lto_varpool_replace_node): New.
25832 (lto_symtab_resolve_symbols): Resolve varpool nodes.
25833 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
25834 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
25835 * cgraph.h (varpool_node_ptr): New type.
25836 (varpool_node_ptr): New vector.
25837 (varpool_node_set_def): New structure.
25838 (varpool_node_set): New type.
25839 (varpool_node_set): New vector.
25840 (varpool_node_set_element_def): New structure.
25841 (varpool_node_set_element, const_varpool_node_set_element): New types.
25842 (varpool_node_set_iterator): New type.
25843 (varpool_node): Add prev pointers, add used_from_other_partition,
25844 in_other_partition.
25845 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
25846 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
25847 varpool_get_node, varpool_remove_node): Declare.
25848 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
25849 varpool_node_set_size): New inlines.
25850 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
25851 * tree-pass.h (varpool_node_set_def): Forward declare.
25852 (ipa_opt_pass_d): Summary writting takes vnode sets too.
25853 (ipa_write_optimization_summaries): Update prototype.
25854 * ipa-cp.c (ipcp_write_summary): Update.
25855 * ipa-reference.c (ipa_reference_write_summary): Update.
25856 * lto-cgraph.c (lto_output_varpool_node): New static function.
25857 (output_varpool): New function.
25858 (input_varpool_node): New static function.
25859 (input_varpool_1): New function.
25860 (input_cgraph): Input varpool.
25861 * ipa-pure-const.c (pure_const_write_summary): Update.
25862 * lto-streamer-out.c (lto_output): Update, output varpool too.
25863 (write_global_stream): Kill WPA hack.
25864 (produce_asm_for_decls): Update.
25865 (output_alias_pair_p): Handle variables.
25866 (output_unreferenced_globals): Output only needed partition of varpool.
25867 * ipa-inline.c (inline_write_summary): Update.
25868 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
25870 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
25871 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
25872 varpool_node_set_new, varpool_node_set_add,
25873 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
25874 debug_varpool_node_set): New functions.
25875 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
25876 (execute_one_pass): Process new decls too.
25877 (ipa_write_summaries_2): Pass around vsets.
25878 (ipa_write_summaries_1): Likewise.
25879 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
25881 (ipa_write_optimization_summaries_1): Pass around vsets.
25882 (ipa_write_optimization_summaries): Likewise.
25883 * varpool.c (varpool_get_node): New.
25884 (varpool_node): Update doubly linked lists.
25885 (varpool_remove_node): New.
25886 (dump_varpool_node): More dumping.
25887 (varpool_enqueue_needed_node): Update doubly linked lists.
25888 (decide_is_variable_needed): Kill ltrans hack.
25889 (varpool_finalize_decl): Kill lto hack.
25890 (varpool_assemble_decl): Skip decls in other partitions.
25891 (varpool_assemble_pending_decls): Update doubly linkes lists.
25892 (varpool_empty_needed_queue): Likewise.
25893 (varpool_extra_name_alias): Likewise.
25894 * lto-streamer.c (lto_get_section_name): Add vars section.
25895 * lto-streamer.h (lto_section_type): Update.
25896 (output_varpool, input_varpool): Declare.
25898 2010-04-28 Mike Stump <mikestump@comcast.net>
25900 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
25902 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
25904 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
25905 record or union type with RECORD_OR_UNION_TYPE_P predicate.
25906 (lto_input_ts_type_tree_pointers): Likewise.
25907 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
25908 (lto_output_ts_type_tree_pointers): Likewise.
25910 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
25912 Uniquization of constants at the Tree level
25913 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
25914 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
25916 (tree_output_constant_def): Declare.
25917 * gimplify.c (gimplify_init_constructor): When using block copy, first
25918 uniquize the constant constructor on the RHS.
25919 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
25920 DECL_IN_CONSTANT_POOL flag.
25921 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
25922 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
25924 (assemble_variable): Deal with symbols belonging to the tree constant
25926 (get_constant_section): Add ALIGN parameter and simplify.
25927 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
25928 (assemble_constant_contents): Use the expression of the VAR_DECL.
25929 (output_constant_def_contents): Use the alignment of the VAR_DECL.
25930 (tree_output_constant_def): New global function.
25931 (mark_constant): Use the expression of the VAR_DECL.
25932 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
25934 (output_object_block): Likewise and assemble the expression.
25936 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
25938 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
25939 hash_tree, eq_tree): New tree hash table.
25940 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
25941 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
25942 lto_orig_address_remove): Reimplement.
25944 2010-04-28 Xinliang David Li <davidxl@google.com>
25947 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
25948 (compute_uninit_opnds_pos): New function.
25949 (is_non_loop_exit_postdominating): New function.
25950 (compute_control_dep_chain): New function.
25951 (find_pdom): New function.
25952 (convert_control_dep_chain_into_preds): New function.
25953 (find_predicates): New function.
25954 (find_control_equiv_block): New function.
25955 (collect_phi_def_edges): New function.
25956 (find_def_preds): New function.
25957 (find_dom): New function.
25958 (dump_predicates): New function.
25959 (get_cmp_code): New function.
25960 (is_value_included_in): New function.
25961 (find_matching_predicate_in_rest_chains): New function.
25962 (use_pred_not_overlap_with_undef_path_pred): New function.
25963 (is_use_properly_guarded): New function.
25964 (normalize_cond_1): New function.
25965 (is_and_or_or): New function.
25966 (normalize_cond): New function.
25967 (is_gcond_subset_of): New function.
25968 (is_subset_of_any): New function.
25969 (is_or_set_subset_of): New function.
25970 (is_and_set_subset_of): New function.
25971 (is_norm_cond_subset_of): New function.
25972 (is_pred_expr_subset_of): New function.
25973 (is_pred_chain_subset_of): New function.
25974 (is_included_in): New function.
25975 (is_superset_of): New function.
25976 (find_uninit_use): New function.
25977 (warn_uninitialized_phi): New function.
25978 (compute_possibly_undefined_names): New function.
25979 (ssa_undefined_value_p): New function.
25980 (execute_late_warn_uninitialized): New function.
25981 * tree-ssa.c (ssa_undefined_value_p): Removed.
25982 (warn_uninit): Changed to extern.
25983 (warn_uninitialized_phi): Removed.
25984 (warn_uninitialized_vars): Changed to extern.
25985 (execute_late_warn_uninitialized): Removed
25986 * tree-flow.h: Add new prototypes.
25987 * timevar.def: Add new time variable.
25988 * Makefile.in: Add new build file.
25990 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
25992 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
25995 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25998 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
26000 2010-04-28 Martin Jambor <mjambor@suse.cz>
26002 * cgraph.h (struct cgraph_node): New field indirect_calls.
26003 (struct cgraph_indirect_call_info): New type.
26004 (struct cgraph_edge): Removed field indirect_call. New fields
26005 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
26006 (cgraph_create_indirect_edge): Declare.
26007 (cgraph_make_edge_direct): Likewise.
26008 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
26009 * ipa-prop.h (struct ipa_param_call_note): Removed.
26010 (struct ipa_node_params): Removed field param_calls.
26011 (ipa_create_all_structures_for_iinln): Declare.
26012 * cgraph.c: Described indirect edges and uids in initial comment.
26013 (cgraph_add_edge_to_call_site_hash): New function.
26014 (cgraph_edge): Search also among the indirect edges, use
26015 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
26016 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
26017 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
26019 (initialize_inline_failed): Assign a reason to indirect edges.
26020 (cgraph_create_edge_1): New function.
26021 (cgraph_create_edge): Moved some functionality to
26022 cgraph_create_edge_1.
26023 (cgraph_create_indirect_edge): New function.
26024 (cgraph_edge_remove_callee): Add an assert checking for
26026 (cgraph_edge_remove_caller): Special-case indirect edges.
26027 (cgraph_remove_edge): Likewise.
26028 (cgraph_set_edge_callee): New function.
26029 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
26030 (cgraph_make_edge_direct): New function.
26031 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
26032 the declaration of the call statement matches.
26033 (cgraph_node_remove_callees): Special-case indirect edges.
26034 (cgraph_clone_edge): Likewise.
26035 (cgraph_clone_node): Clone also the indirect edges.
26036 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
26037 indirect_call, dump count of indirect_calls edges.
26038 * ipa-prop.c (iinlining_processed_edges): New variable.
26039 (ipa_note_param_call): Create indirect edges instead of
26040 creating notes. New parameter node.
26041 (ipa_analyze_call_uses): New parameter node, pass it on to
26042 ipa_note_param_call.
26043 (ipa_analyze_stmt_uses): Likewise.
26044 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
26045 (print_edge_addition_message): Work on edges rather than on notes.
26046 (update_call_notes_after_inlining): Likewise, renamed to
26047 update_indirect_edges_after_inlining.
26048 (ipa_create_all_structures_for_iinln): New function.
26049 (ipa_free_node_params_substructures): Do not free notes.
26050 (ipa_edge_duplication_hook): Propagate bits within
26051 iinlining_processed_edges bitmap.
26052 (ipa_node_duplication_hook): Do not duplicate notes.
26053 (free_all_ipa_structures_after_ipa_cp): Renamed to
26054 ipa_free_all_structures_after_ipa_cp.
26055 (free_all_ipa_structures_after_iinln): Renamed to
26056 ipa_free_all_structures_after_iinln.
26057 (ipa_write_param_call_note): Removed.
26058 (ipa_read_param_call_note): Removed.
26059 (ipa_write_indirect_edge_info): New function.
26060 (ipa_read_indirect_edge_info): Likewise.
26061 (ipa_write_node_info): Do not stream notes, do stream information
26063 (ipa_read_node_info): Likewise.
26064 (lto_ipa_fixup_call_notes): Removed.
26065 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
26066 * ipa-inline.c (pass_ipa_inline): Likewise.
26067 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
26068 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
26069 * tree-inline.c (copy_bb): Removed an unnecessary double check for
26071 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
26073 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
26074 (output_cgraph): Stream also indirect edges.
26075 (lto_output_edge): Added capability to stream indirect edges.
26076 (input_edge): Likewise.
26077 (input_cgraph_1): Likewise.
26078 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
26081 2010-04-28 Richard Guenther <rguenther@suse.de>
26083 PR tree-optimization/43879
26084 PR tree-optimization/43909
26085 * tree-ssa-structalias.c (struct variable_info): Add
26086 only_restrict_pointers flag.
26087 (new_var_info): Initialize it. Increment stats.total_vars here.
26088 (create_function_info_for): Do not increment stats.total_vars here.
26089 (get_function_part_constraint): Fix build with C++.
26090 (insert_into_field_list): Remove.
26091 (push_fields_onto_fieldstack): Properly merge fields.
26092 (create_variable_info_for): Split and simplify.
26093 (create_variable_info_for_1): New piece.
26094 (intra_create_variable_infos): Properly make restrict constraints
26097 2010-04-28 Richard Guenther <rguenther@suse.de>
26100 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
26102 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
26103 Jan Hubicka <hubicka@ucw.cz>
26105 * doc/invoke.texi (-Wsuggest-attribute=const,
26106 -Wsuggest-attribute=pure): Document.
26107 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
26108 (function_always_visible_to_compiler_p,
26109 suggest_attribute, warn_function_pure, warn_function_const):
26111 (check_call): Improve debug info.
26112 (analyze_function): Do not check availability.
26113 (add_new_function): Check availability.
26114 (propagate): Output warnings.
26115 (skip_function_for_local_pure_const): New function.
26116 (local_pure_const): Use it; output warnings.
26117 * common.opt (Wsuggest-attribute=const,
26118 Wsuggest-attribute=pure): New.
26120 2010-04-27 Jakub Jelinek <jakub@redhat.com>
26122 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
26123 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
26124 or DW_CFA_def_cfa_offset{,_sf}.
26126 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
26128 * tree.h: Fix truncated long macros.
26130 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
26132 * collect2.c (TARGET_64BIT): Redefine to target's default.
26133 * tlink.c: Likewise.
26134 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
26135 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
26136 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
26137 for underscoring __USER_LABEL_PREFIX__.
26138 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
26139 (SUB_LINK_ENTRY32): New.
26140 (SUB_LINK_ENTRY64): New.
26141 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
26142 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
26143 (SUB_LINK_ENTRY64): New.
26144 (SUB_LINK_ENTRY): New.
26145 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
26146 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
26147 x64 target is choosen.
26148 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
26149 * configure: Regenerated.
26150 * configure.ac (leading-mingw64-underscores): Option added.
26152 2010-04-27 Jan Hubicka <jh@suse.cz>
26154 * doc/invoke.texi (-fipa-profile): Document.
26155 * opts.c (decode_options): Enable ipa-profile at -O1.
26156 * timevar.def (TV_IPA_PROFILE): Define.
26157 * common.opt (fipa-profile): Add.
26158 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
26160 (cgraph_propagate_frequency): Handle only local ones.
26161 * tree-pass.h (pass_ipa_profile): Declare.
26162 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
26163 (pass_ipa_profile): Use TV_IPA_PROFILE.
26164 * ipa.c (ipa_profile): New function.
26165 (gate_ipa_profile): Likewise.
26166 (pass_ipa_profile): New global variable.
26167 * passes.c (pass_ipa_profile): New.
26169 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
26171 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
26173 2010-04-27 Martin Jambor <mjambor@suse.cz>
26175 PR middle-end/43812
26176 * ipa.c (dissolve_same_comdat_group_list): New function.
26177 (function_and_variable_visibility): Call
26178 dissolve_same_comdat_group_list when comdat group contains external or
26180 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
26181 lists are circular and that they contain only DECL_ONE_ONLY nodes.
26183 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
26185 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
26186 (const_hash_1) <VECTOR_CST>: New case.
26187 (compare_constant) <VECTOR_CST>: Likewise.
26188 <ADDR_EXPR>: Deal with LABEL_REFs.
26189 (copy_constant) <VECTOR_CST>: New case.
26191 2010-04-27 Jan Hubicka <jh@suse.cz>
26193 * cgraph.c (cgraph_propagate_frequency): New function.
26194 * cgraph.h (cgraph_propagate_frequency): Declare.
26195 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
26196 cgraph_propagate_frequency.
26198 2010-04-27 Jakub Jelinek <jakub@redhat.com>
26200 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
26202 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
26205 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
26206 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
26207 here to determine which regs to push and how much stack to reserve.
26209 2010-04-27 Jie Zhang <jie@codesourcery.com>
26211 * doc/gimple.texi (gimple_statement_with_ops): Remove
26212 addresses_taken field.
26213 (gimple_statement_with_memory_ops): Likewise.
26215 2010-04-27 Jan Hubicka <jh@suse.cz>
26217 * tree-inline.c (eni_inlining_weights): Remove.
26218 (estimate_num_insns): Special case more builtins.
26220 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
26223 * c-typeck.c (build_binary_op): Move forward check for comparison
26224 pointer with null pointer constant and adjust the diagnostic message.
26226 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
26229 * configure.ac (gcc_cv_as_section_has_align): Set if installed
26230 binutils supports extended .section directive needed by LTO, or
26231 warn if older binutils found.
26232 (LTO_BINARY_READER): New AC_SUBST'd variable.
26233 (LTO_USE_LIBELF): Likewise.
26234 * config.gcc (lto_binary_reader): New target-specific configure
26236 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
26237 (LTO_USE_LIBELF): Likewise.
26238 * configure: Regenerate.
26240 * collect2.c (is_elf): Rename from this ...
26241 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
26242 object files in addition to ELF-formatted ones.
26243 (scan_prog_file): Caller updated. Also allow for LTO info marker
26244 symbol to be prefixed or not by an extra underscore.
26246 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
26247 * config/i386/winnt.c: Also #include lto-streamer.h
26248 (i386_pe_asm_named_section): Specify 1-byte section alignment for
26249 LTO named sections.
26250 (i386_pe_asm_output_aligned_decl_common): Add comment.
26251 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
26253 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
26256 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
26257 Add missing earlyclobber for second alternative.
26259 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
26261 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
26262 bits for artificial defs at the top of the block.
26263 * fwprop.c (single_def_use_enter_block): Don't call it.
26265 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
26268 * configure.ac: Use "$gcc_cv_nm -g" on darwin
26269 instead of "$gcc_cv_objdump -T".
26270 Use "-undefined dynamic_lookup" on darwin.
26271 * configure: Regenerate.
26273 2010-04-26 Jakub Jelinek <jakub@redhat.com>
26276 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
26278 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
26280 * c-parser.c (struct c_token): Move location field up.
26281 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
26282 (struct c_declspecs): Convert typespec_word, storage_class, and
26283 default_int_p into bitfields.
26284 (struct c_declarator): Move loc field up.
26286 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
26288 * cfgloop.h (struct loop): Move can_be_parallel field up.
26289 * ipa-prop.h (struct ip_node_params): Move bitfields up.
26290 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
26292 (struct iv_cand): Convert pos field into a bitfield.
26293 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
26295 (struct _stmt_vec_info): Shuffle fields for better packing.
26297 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
26299 * varasm.c (IN_NAMED_SECTION): Remove guard.
26300 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
26301 (IN_NAMED_SECTION_P): ...this.
26302 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
26303 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
26305 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
26307 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
26308 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
26309 of shadowing it. Fix comments.
26311 2010-04-26 Jan Hubicka <jh@suse.cz>
26313 * cgraph.c (cgraph_create_node): Set node frequency to normal.
26314 (cgraph_clone_node): Copy function frequency.
26315 * cgraph.h (node_frequency): New enum
26316 (struct cgraph_node): Add.
26317 * final.c (rest_of_clean_state): Update.
26318 * lto-cgraph.c (lto_output_node): Output node frequency.
26319 (input_overwrite_node): Input node frequency.
26320 * tre-ssa-loop-ivopts (computation_cost): Update.
26321 * lto-streamer-out.c (output_function): Do not output function
26323 * predict.c (maybe_hot_frequency_p): Update and handle functions
26325 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
26327 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
26328 (compute_function_frequency): Set noreturn functions to be executed
26330 (choose_function_section): Update.
26331 * lto-streamer-in.c (input_function): Do not input function frequency.
26332 * function.c (allocate_struct_function): Do not initialize function
26334 * function.h (function_frequency): Remove.
26335 (struct function): Remove function frequency.
26336 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
26337 (try_update): Update.
26338 * tree-inline.c (initialize_cfun): Do not update function frequency.
26339 * passes.c (pass_init_dump_file): Update.
26340 * i386.c (ix86_compute_frame_layout): Update.
26341 (ix86_pad_returns): Update.
26343 2010-04-26 Jie Zhang <jie@codesourcery.com>
26345 PR tree-optimization/43833
26346 * tree-vrp.c (range_int_cst_p): New.
26347 (range_int_cst_singleton_p): New.
26348 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
26349 when both operands are constants. Use range_int_cst_p in
26352 2010-04-26 Jan Hubicka <jh@suse.cz>
26354 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
26356 2010-04-26 Richard Guenther <rguenther@suse.de>
26359 * gimple.c (gimple_decl_printable_name): Deal gracefully
26360 with a NULL DECL_NAME.
26362 2010-04-26 Richard Guenther <rguenther@suse.de>
26365 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
26366 if emitting debug information and it is either a function
26367 or a namespace decl.
26369 2010-04-26 Ira Rosen <irar@il.ibm.com>
26371 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
26372 determine if the statement is vectorizable, and a macro to access it.
26373 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
26374 Skip statements that can't be vectorized. If the analysis fails,
26375 mark the statement as unvectorizable if vectorizing basic block.
26376 (vect_compute_data_refs_alignment): Likewise.
26377 (vect_verify_datarefs_alignment): Skip statements marked as
26378 unvectorizable. Add print.
26379 (vect_analyze_group_access): Skip statements that can't be
26380 vectorized. If the analysis fails, mark the statement as
26381 unvectorizable if vectorizing basic block.
26382 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
26383 * tree-vect-stmts.c (vectorizable_store): Fix the number of
26384 generated stmts for SLP.
26385 (new_stmt_vec_info): Initialize the new field.
26386 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
26387 statements marked as unvectorizable.
26389 2010-04-25 Joseph Myers <joseph@codesourcery.com>
26391 * c-common.c (flag_isoc1x): New.
26392 (flag_isoc99): Update comment.
26393 * c-common.h (flag_isoc1x): New.
26394 (flag_isoc99): Update comment.
26395 * c-cppbuiltin.c (builtin_define_float_constants): Also define
26396 __<type>_DECIMAL_DIG__.
26397 * c-opts.c (set_std_c1x): New.
26398 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
26399 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
26400 * c.opt (-std=c1x, -std=gnu1x): New options.
26401 * doc/cpp.texi: Mention -std=c1x.
26402 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
26403 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
26404 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
26405 * doc/standards.texi: Mention C1X.
26406 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
26407 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
26408 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
26411 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
26413 * config/i386/gmon-sol2.c (_mcleanup): Change format string
26414 placeholder from 0x%x to %#x.
26415 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
26416 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
26417 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
26418 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
26419 * config/i386/i386.c (ix86_target_string): Ditto.
26420 (output_pic_addr_const): Ditto.
26421 (print_operand): Ditto.
26423 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
26425 * combine.c (find_split_point): Add third argument. Use it
26426 to find nested multiply-accumulate instructions. Adjust calls.
26427 (try_combine): Adjust call to find_split_point.
26429 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
26431 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
26433 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
26435 PR tree-optimization/41442
26436 * fold-const.c (merge_truthop_with_opposite_arm): New function.
26437 (fold_binary_loc): Call it.
26439 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
26441 * toplev.c (general_init): Set default for fdiagnostics-show-option.
26442 * opts.c (common_handle_option): Allow disabling it.
26443 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
26445 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
26447 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
26448 between modes if both types are integral.
26450 2010-04-23 Richard Guenther <rguenther@suse.de>
26452 PR tree-optimization/43572
26453 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
26455 2010-04-23 Richard Guenther <rguenther@suse.de>
26458 * tree-inline.c (tree_can_inline_p): Also check compatibility
26461 2010-04-23 Martin Jambor <mjambor@suse.cz>
26463 PR tree-optimization/43846
26464 * tree-sra.c (struct access): New flag grp_assignment_read.
26465 (build_accesses_from_assign): Set grp_assignment_read.
26466 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
26467 (enum mark_read_status): New type.
26468 (analyze_access_subtree): Propagate grp_assignment_read, create
26469 accesses also if both direct_read and root->grp_assignment_read.
26471 2010-04-23 Martin Jambor <mjambor@suse.cz>
26473 PR middle-end/43835
26474 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
26475 function does not have type attributes.
26477 2010-04-23 Richard Guenther <rguenther@suse.de>
26480 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
26483 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26485 * sese.h (create_if_region_on_edge): Remove.
26487 * sese.c (create_if_region_on_edge): Make static.
26489 * tree-inline.c: Do not include ggc.h.
26491 * expr.c: Do not include ggc.h.
26493 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
26496 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
26499 * config/sh/sh.c (find_barrier): Don't emit a constant pool
26500 in the middle of insns for casesi_worker_2.
26502 2010-04-22 David Edelsohn <edelsohn@gnu.org>
26504 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
26506 2010-04-22 Ira Rosen <irar@il.ibm.com>
26508 PR tree-optimization/43842
26509 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
26510 loop unrolling in update of exit phis. Fix comment.
26511 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
26512 least two reduction statements in the loop before starting SLP
26515 2010-04-22 Nick Clifton <nickc@redhat.com>
26517 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
26519 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
26521 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
26522 to simplify a + ~a.
26524 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26526 * tree-parloops.c (loop_parallel_p): New argument
26527 parloop_obstack. Pass it down.
26528 (parallelize_loops): New variable parloop_obstack. Initialize it,
26529 pass it down, free it.
26531 * tree-loop-linear.c (linear_transform_loops): Pass down
26534 * tree-data-ref.h (lambda_compute_access_matrices): New argument
26535 of type struct obstack *.
26537 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
26538 scratch_obstack. Initialize it, pass down, free it.
26540 * lambda.h (lambda_loop_new): Remove.
26541 (lambda_matrix_new, lambda_matrix_inverse)
26542 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
26543 argument of type struct obstack *.
26545 * lambda-trans.c (lambda_trans_matrix_new): New argument
26546 lambda_obstack. Pass it down, use obstack allocation for ret.
26547 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
26550 * lambda-mat.c (lambda_matrix_get_column)
26551 (lambda_matrix_project_to_null): Remove.
26552 (lambda_matrix_new): New argument lambda_obstack. Use obstack
26553 allocation for mat.
26554 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
26557 * lambda-code.c (lambda_loop_new): New function.
26558 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
26559 (lambda_compute_auxillary_space, lambda_compute_target_space)
26560 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
26561 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
26562 (build_access_matrix): New argument lambda_obstack. Use obstack
26564 (lambda_compute_step_signs, lambda_compute_access_matrices): New
26565 argument lambda_obstack. Pass it down.
26567 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
26569 * optabs.h (expand_widening_mult): Declare.
26571 2010-04-22 Richard Guenther <rguenther@suse.de>
26573 PR tree-optimization/43845
26574 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
26575 lookup the CALL_EXPR function and arguments.
26577 2010-04-22 Nick Clifton <nickc@redhat.com>
26579 * config/stormy16/stormy16.c
26580 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
26581 * config/stormy16/stormy16.h: Tidy up formatting.
26582 (DONT_USE_BUILTIN_SETJMP): Remove definition.
26583 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
26584 (ineqbranchsi): Delete pattern.
26585 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
26586 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
26587 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
26588 stormy16-lib2-ucmpsi2.c.
26590 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
26592 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
26593 df_simulate_find_noclobber_defs as appropriate. Keep track of an
26594 extra set merge_set_noclobber, and use it to relax the final test
26596 * df.h (df_simulate_find_noclobber_defs): Declare.
26597 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
26599 (df_simulate_find_noclobber_defs): New function.
26601 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
26603 * config/i386/i386.md: Use {} around multi-line preparation statements.
26605 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26607 * c-tree.h (push_init_level, pop_init_level, set_init_index)
26608 (process_init_element): New argument of type struct obstack *.
26610 * c-typeck.c (push_init_level, pop_init_level, set_designator)
26611 (set_init_index, set_init_label, set_nonincremental_init)
26612 (set_nonincremental_init_from_string, find_init_member)
26613 (output_init_element, output_pending_init_elements)
26614 (process_init_element): New argument braced_init_obstack. Pass it
26616 (push_range_stack, add_pending_init): New argument
26617 braced_init_obstack. Use obstack allocation.
26619 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
26620 braced_init_obstack. Pass it down.
26621 (c_parser_braced_init): New variables ret, braced_init_obstack.
26622 Initialize obstack, pass it down and finally free it.
26624 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
26626 PR middle-end/29274
26627 * tree-pass.h (pass_optimize_widening_mul): Declare.
26628 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
26629 gate_optimize_widening_mul): New static functions.
26630 (pass_optimize_widening_mul): New.
26631 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
26632 <case MULT_EXPR>: Remove support for widening multiplies.
26633 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
26634 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
26635 simplify_gen_unary rather than directly building extensions.
26636 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
26638 * expmed.c (expand_widening_mult): New function.
26639 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
26641 2010-04-21 Jan Hubicka <jh@suse.cz>
26643 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
26644 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
26645 * lto-wpa-fixup.c: Remove.
26646 * Makefile.in (lto-wpa-fixup.o): Remove.
26647 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
26648 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
26649 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
26651 2010-04-21 Jan Hubicka <jh@suse.cz>
26653 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
26654 add write_optimization_summary, read_optimization_summary.
26655 (ipa_write_summaries_of_cgraph_node_set): Remove.
26656 (ipa_write_optimization_summaries): Declare.
26657 (ipa_read_optimization_summaries): Declare.
26658 * ipa-cp.c (pass_ipa_cp): Update.
26659 * ipa-reference.c (pass_ipa_reference): Update.
26660 * ipa-pure-const.c (pass_ipa_pure_const): Update.
26661 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
26663 * ipa-inline.c (pass_ipa_inline): Update.
26664 * ipa.c (pass_ipa_whole_program): Update.
26665 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
26666 * passes.c (ipa_write_summaries_1): Do not test wpa.
26667 (ipa_write_optimization_summaries_1): New.
26668 (ipa_write_optimization_summaries): New.
26669 (ipa_read_summaries): Do not test ltrans.
26670 (ipa_read_optimization_summaries_1): New.
26671 (ipa_read_optimization_summaries): New.
26673 2010-04-21 Jan Hubicka <jh@suse.cz>
26675 * lto-cgraph.c (lto_output_node): Do not output comdat groups
26676 for boundary nodes.
26677 (output_cgraph): Do not arrange comdat groups for boundary nodes.
26679 2010-04-21 Jakub Jelinek <jakub@redhat.com>
26682 * dwarf2out.c (add_name_and_src_coords_attributes): Add
26683 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
26685 2010-04-21 Jan Hubicka <jh@suse.cz>
26687 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
26689 2010-04-21 Jan Hubicka <jh@suse.cz>
26691 * varpool.c (decide_is_variable_needed): Variable is always needed
26694 2010-04-21 Jan Hubicka <jh@suse.cz>
26696 * opts.c (decode_options): Enable pure-const pass for whopr.
26698 2010-04-21 Jan Hubicka <jh@suse.cz>
26700 * cgraph.c (dump_cgraph_node): Dump also assembler name.
26701 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
26703 (cgraph_decide_inlining): Do not expect callee to be removed in all
26706 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
26708 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
26710 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
26712 * config/i386/i386.md (x86_shrd): Add athlon_decode and
26713 amdfam10_decode attributes.
26715 2010-04-21 Jakub Jelinek <jakub@redhat.com>
26717 PR middle-end/43570
26718 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
26719 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
26720 (lower_copyprivate_clauses): Use private var in outer
26721 context instead of original var. Make sure the types
26722 are correct for VLAs.
26724 2010-04-21 Richard Guenther <rguenther@suse.de>
26726 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
26727 to non-pointer objects.
26729 2010-04-21 Jakub Jelinek <jakub@redhat.com>
26731 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
26732 last chain entry if it starts with the still current label.
26733 (add_location_or_const_value_attribute): Check that
26734 loc_list->first->next is NULL instead of comparing ->first with ->last.
26735 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
26736 to add_var_loc_to_decl.
26738 * dwarf2out.c (output_call_frame_info): For dw_cie_version
26739 >= 4 add also address size and segment size fields into CIE header.
26741 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
26742 long as address size is the same as sizeof (void *) and
26744 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
26745 address size or segment size is unexpected, return DW_EH_PE_omit.
26746 (classify_object_over_fdes): If get_cie_encoding returned
26747 DW_EH_PE_omit, return -1.
26748 (init_object): If classify_object_over_fdes returned -1,
26749 pretend there were no FDEs at all.
26751 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
26753 * config/i386/i386.md (bswap<mode>2): Macroize expander from
26754 bswap{si,di}2 using SWI48 mode iterator.
26755 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
26756 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
26757 set modrm attribute of bswap insn to 0 and remove length attribute.
26758 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
26759 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
26760 set mode attribute to <MODE> and remove length attribute.
26762 2010-04-20 James E. Wilson <wilson@codesourcery.com>
26764 PR rtl-optimization/43520
26765 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
26766 zero available registers.
26768 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26770 * builtins.c (fold_builtin_cproj): Fold more cases.
26772 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26774 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
26775 (fold_builtin_1): Fold builtin cproj.
26776 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
26777 Use ATTR_CONST_NOTHROW_LIST.
26779 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
26781 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
26782 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
26783 ffsi2_no_cmove for !TARGET_CMOVE.
26784 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
26785 (ffssi2): Remove expander.
26786 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
26788 (ctz<mode>2): Ditto from ctz{si,di}2.
26789 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
26791 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
26794 2010-04-20 Jakub Jelinek <jakub@redhat.com>
26796 * dwarf2out.c (AT_linkage_name): Define.
26797 (clone_as_declaration): Handle DW_AT_linkage_name.
26798 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
26799 of DW_AT_MIPS_linkage_name.
26800 (move_linkage_attr): Likewise.
26801 (dwarf2out_finish): Likewise.
26803 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
26805 PR middle-end/41952
26806 * fold-const.c (fold_comparison): New folding rule.
26808 2010-04-20 Anatoly Sokolov <aesok@post.ru>
26810 * double-int.h (double_int_setbit): Declare.
26811 * double-int.c (double_int_setbit): New function.
26812 * rtl.h (immed_double_int_const): Declare.
26813 * emit-rtl.c (immed_double_int_const): New function.
26814 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
26815 and immed_double_int_const functions.
26816 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
26817 expand_copysign_bit): (Ditto.).
26818 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
26819 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
26820 * dojump.c (prefer_and_bit_test): (Ditto.).
26821 * expr.c (convert_modes, reduce_to_bit_field_precision,
26822 const_vector_from_tree): (Ditto.).
26823 * expmed.c (mask_rtx, lshift_value): (Ditto.).
26825 2010-04-20 Jan Hubicka <jh@suse.cz>
26827 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
26828 (dump_cgraph_node): Dump new flags.
26829 * cgraph.h (struct cgraph_node): Add flags
26830 reachable_from_other_partition and in_other_partition.
26831 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
26832 other partition can not be removed.
26833 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
26834 the other partition must be output; silence sanity checking on
26835 leaking functions bodies from other paritition.
26836 * lto-cgraph.c (reachable_from_other_partition_p): New function.
26837 (lto_output_node): Output new flags; do not sanity check that inline
26838 clones are output; drop lto_forced_extern_inline_p code; do not mock
26839 visibility flags at partition boundaries.
26840 (add_node_to): New function.
26841 (output_cgraph): Use it to sort functions so masters appear before
26843 (input_overwrite_node): Input new flags.
26844 * passes.c (ipa_write_summaries): Do not call
26845 lto_new_extern_inline_states.
26846 * lto-section-out.c (forced_extern_inline,
26847 lto_new_extern_inline_states lto_delete_extern_inline_states,
26848 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
26849 * lto-streamer.h (lto_new_extern_inline_states,
26850 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
26851 lto_forced_extern_inline_p): Kill.
26853 2010-04-20 Richard Guenther <rguenther@suse.de>
26855 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
26856 from vars that can have pointers.
26857 (process_constraint): Dump useless constraints.
26859 2010-04-20 Richard Guenther <rguenther@suse.de>
26861 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
26862 (dump_sa_points_to_info): Remove asserts.
26863 (init_base_vars): nothing_id isn't an escape point nor does it
26866 2010-04-20 Jakub Jelinek <jakub@redhat.com>
26868 * tree.h (TYPE_REF_IS_RVALUE): Define.
26869 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
26870 should_move_die_to_comdat, prune_unused_types_walk): Handle
26871 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
26872 (modified_type_die, gen_reference_type_die): Emit
26873 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
26874 if TYPE_REF_IS_RVALUE and -gdwarf-4.
26876 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26879 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
26880 calls for -fpic -m31 if they have been sibcall optimized.
26882 2010-04-19 James E. Wilson <wilson@codesourcery.com>
26884 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
26885 ar.lc fixed and call-used.
26887 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
26889 2010-04-19 Jan Hubicka <jh@suse.cz>
26891 * opts.c (decode_options): Disable whpr incompatible passes.
26892 * lto/lto.c (lto_1_to_1_map): Skip clones.
26893 (read_cgraph_and_symbols): Do not mark everything as needed.
26894 (do_whole_program_analysis): Do map only after optimizing;
26895 set proper cgraph_state; use passmanager.
26897 2010-04-19 DJ Delorie <dj@redhat.com>
26899 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
26900 POINTER_PLUS_EXPR and fix them.
26902 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
26904 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
26905 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
26906 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
26907 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
26908 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
26909 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
26910 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
26911 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
26912 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
26913 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
26914 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
26916 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
26918 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
26919 (check_cond_move_block): Likewise.
26920 (cond_move_process_if_block): Likewise.
26921 (noce_find_if_block): Improve formatting.
26922 (find_if_header): Pass 0 to memset and tweak conditions.
26923 (cond_exec_find_if_block): Fix long lines and tweak conditions.
26925 2010-04-19 Jakub Jelinek <jakub@redhat.com>
26927 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
26930 PR middle-end/43337
26931 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
26932 with non-local decl doesn't need chain.
26934 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
26936 * ira-color.c (allocno_reload_assign): Avoid accumulating
26937 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
26939 2010-04-19 Martin Jambor <mjambor@suse.cz>
26941 * gimple.h (create_tmp_reg): Declare.
26942 * gimplify.c (create_tmp_reg): New function.
26943 (gimplify_return_expr): Use create_tmp_reg.
26944 (gimplify_omp_atomic): Likewise.
26945 (gimple_regimplify_operands): Likewise.
26946 * tree-dfa.c (make_rename_temp): Likewise.
26947 * tree-predcom.c (predcom_tmp_var): Likewise.
26948 (reassociate_to_the_same_stmt): Likewise.
26949 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
26950 (get_replaced_param_substitute): Likewise.
26951 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
26952 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
26953 * tree-ssa-pre.c (get_representative_for): Likewise.
26954 (create_expression_by_pieces): Likewise.
26955 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
26956 (create_tailcall_accumulator): Likewise.
26958 2010-04-19 Martin Jambor <mjambor@suse.cz>
26960 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
26962 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
26964 2010-04-19 Richard Guenther <rguenther@suse.de>
26966 PR tree-optimization/43796
26967 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
26968 from SCEV in the lattice.
26969 (vrp_visit_phi_node): Dump change.
26971 2010-04-19 Richard Guenther <rguenther@suse.de>
26973 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
26974 * configure: Re-generated.
26976 2010-04-19 Richard Guenther <rguenther@suse.de>
26978 PR tree-optimization/43783
26979 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
26980 constant ARRAY_REF operands two and three if possible.
26982 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
26985 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
26987 2010-04-19 Jie Zhang <jie@codesourcery.com>
26990 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
26992 2010-04-19 Ira Rosen <irar@il.ibm.com>
26994 PR tree-optimization/37027
26995 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
26996 and macro to access it.
26997 (vectorizable_reduction): Add argument.
26998 (vect_get_slp_defs): Likewise.
26999 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
27000 statements for possible use in SLP.
27001 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
27002 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
27003 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
27005 (vectorizable_reduction): Likewise.
27006 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
27008 (vectorizable_type_demotion, vectorizable_type_promotion,
27009 vectorizable_store): Likewise.
27010 (vect_analyze_stmt): Update call to vectorizable_reduction.
27011 (vect_transform_stmt): Likewise.
27012 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
27013 (vect_build_slp_tree): Fix indentation. Check that there are no loads
27014 from different interleaving chains in same node.
27015 (vect_slp_rearrange_stmts): New function.
27016 (vect_supported_load_permutation_p): Allow load permutations for
27017 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
27018 inside SLP nodes if necessary.
27019 (vect_analyze_slp_instance): Handle reductions.
27020 (vect_analyze_slp): Try to build SLP instances originating from groups
27022 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
27023 (vect_get_constant_vectors): Create initial vectors for reductions
27024 according to reduction code. Add new argument.
27025 (vect_get_slp_defs): Add new argument, pass it to
27026 vect_get_constant_vectors.
27027 (vect_schedule_slp_instance): Remove SLP tree root statements.
27029 2010-04-19 Jakub Jelinek <jakub@redhat.com>
27031 * tree.h (ENUM_IS_SCOPED): Define.
27032 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
27033 for ENUM_IS_SCOPED enums.
27035 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
27037 * fold-const.c (fold_comparison): Use ssizetype.
27038 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
27039 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
27040 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
27041 * tree-object-size.c (compute_object_sizes): Use size_type_node.
27043 * tree.h (initialize_sizetypes): Remove parameter.
27044 (build_common_tree_nodes): Remove second parameter.
27045 * stor-layout.c (initialize_sizetypes): Remove parameter.
27046 Always create an unsigned type.
27047 (set_sizetype): Assert that the passed type is unsigned and simplify.
27048 * tree.c (build_common_tree_nodes): Remove second parameter.
27049 Adjust call to initialize_sizetypes.
27050 * c-decl.c (c_init_decl_processing): Remove second argument in call to
27051 build_common_tree_nodes.
27053 2010-04-18 Matthias Klose <doko@ubuntu.com>
27055 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
27057 2010-04-18 Ira Rosen <irar@il.ibm.com>
27059 PR tree-optimization/43771
27060 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
27061 load permutation doesn't have gaps.
27063 2010-04-18 Jan Hubicka <jh@suse.cz>
27065 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
27066 (sse_prologue_save_insn expander): Use new pattern.
27067 (sse_prologue_save_insn1): New pattern and splitter.
27068 (sse_prologue_save_insn): Update to deal also with 64bit aligned
27070 * i386.c (setup_incoming_varargs_64): Do not compute jump
27072 (ix86_gimplify_va_arg): Update alignment needed.
27073 (ix86_local_alignment): Do not align all local arrays to 128bit.
27075 2010-04-17 Jan Hubicka <jh@suse.cz>
27077 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
27079 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
27081 * arm.md (negdi2): Remove redundant code to force values into a
27084 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
27086 * arm/bpabi.S: Add EABI alignment attributes to objects.
27087 * arm/bpabi-v6m.S: Likewise.
27088 * arm/crti.asm: Likewise.
27089 * arm/crtn.asm: Likewise.
27090 * arm/lib1funcs.asm: Likewise.
27091 * arm/libunwind.S: Likewise.
27093 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
27095 * arm-protos.h (tune_params): New structure.
27096 * arm.c (current_tune): New variable.
27097 (arm_constant_limit): Delete.
27098 (struct processors): Add pointer to the tune parameters.
27099 (arm_slowmul_tune): New tuning option.
27100 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
27101 (all_cores): Adjust to pick up the tuning model.
27102 (arm_constant_limit): New function.
27103 (arm_override_options): Select the appropriate tuning model. Delete
27104 initialization of arm_const_limit.
27105 (arm_split_constant): Use the new constant-limit model.
27106 (arm_rtx_costs): Pick up the current tuning model.
27107 * arm.md (is_strongarm, is_xscale): Delete.
27108 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
27109 for Xscale variant architectures.
27110 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
27112 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27114 * config/arm/arm.c (arm_gen_constant): Remove unused variable
27116 (arm_rtx_costs_1): Remove unused variable extra_cost.
27117 (arm_unwind_emit_set): Use variable offset.
27118 (thumb1_output_casesi): Remove unused variable flags.
27120 2010-04-16 Jeff Law <law@redhat.com>
27122 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
27123 needing assignment rather than doing a two-phase assignment. Remove
27124 unused variable 'm'.
27126 2010-04-16 Jakub Jelinek <jakub@redhat.com>
27129 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
27131 2010-04-16 Doug Kwan <dougkwan@google.com>
27133 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
27134 (next_operand_entry_id): New static variable.
27135 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
27136 (add_to_ops_vec): Assigned unique ID to operand entry.
27137 (struct oecount_s): New field ID.
27138 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
27139 (undistribute_ops_list): Assign unique IDs to oecounts.
27140 (init_reassoc): reset next_operand_entry_id.
27142 2010-04-16 Doug Kwan <dougkwan@google.com>
27144 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
27145 missing left parenthesis.
27147 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
27149 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
27150 *btdi_rex64 using SWI48 mode iterator.
27151 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
27152 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
27153 *jcc_btdi_mask_rex64.
27155 2010-04-16 Anatoly Sokolov <aesok@post.ru>
27157 * double-int.h (tree_to_double_int): Convert to macro.
27158 * double-int.c (tree_to_double_int): Remove.
27160 2010-04-16 Jakub Jelinek <jakub@redhat.com>
27163 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
27164 with want_address 2 and in case a single element list might be
27165 possible, call it again with want_address 0.
27167 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27169 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
27170 case 'W' print operands for HI mode.
27171 * config/h8300/h8300.h (Y0, Y2) : New constraints.
27172 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
27173 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
27174 * config/h8300/predicate.md (bit_register_indirect_operand): New.
27176 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
27178 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
27179 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
27180 #xx:3 and #xx:4 mode.
27182 * config/h8300/h8300.md (inverted load with HImode dest): Add
27183 support for H8300SX.
27185 * config/h8300/predicate.md (bit_operand): Allow immediate values that
27186 satisfy 'U' constraint.
27188 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27190 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
27191 * configure: Regenerate.
27192 * config.in: Regenerate.
27193 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
27196 2010-04-16 Richard Guenther <rguenther@suse.de>
27198 * tree.h (struct tree_decl_minimal): Move pt_uid ...
27199 (struct tree_decl_common): ... here.
27200 (DECL_PT_UID): Adjust.
27201 (SET_DECL_PT_UID): Likewise.
27202 (DECL_PT_UID_SET_P): Likewise.
27204 2010-04-16 Richard Guenther <rguenther@suse.de>
27206 PR tree-optimization/43572
27207 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
27208 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
27209 * tree-flow.h (is_call_clobbered): Remove.
27210 * tree-flow-inline.h (is_call_clobbered): Likewise.
27211 * tree-dfa.c (dump_variable): Do not dump call clobber state.
27212 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
27213 (execute_return_slot_opt): Adjust.
27214 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
27215 check for call clobbered vars here.
27216 (find_tail_calls): Move tailcall verification to the
27219 2010-04-16 Diego Novillo <dnovillo@google.com>
27221 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
27223 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
27226 * config/arm/arm.md (cbranchqi4): New pattern.
27227 * config/arm/predicates.md (const0_operand,
27228 cbranchqi4_comparison_operator): New predicates.
27230 2010-04-16 Richard Guenther <rguenther@suse.de>
27232 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
27233 (dump_gimple_stmt): Likewise.
27235 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
27237 * recog.h (struct recog_data): New field is_operator.
27238 (struct insn_operand_data): New field is_operator.
27239 * recog.c (extract_insn): Set recog_data.is_operator.
27240 * genoutput.c (output_operand_data): Emit code to set the
27242 * reload.c (find_reloads): Use it rather than testing for an
27243 empty constraint string.
27246 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
27247 If the previous insn is a cbranchsi4_insn with the same arguments,
27248 omit the compare instruction.
27250 * config/arm/arm.md (addsi3_cbranch): If destination is a high
27251 register, inputs must be low registers and we need a low register
27252 scratch. Handle alternative 2 like alternative 3.
27254 2010-04-16 Jakub Jelinek <jakub@redhat.com>
27256 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
27257 don't call get_addr on both. If one expression is a VALUE and
27258 the other a REG, check VALUE's locs if the REG isn't among them.
27260 2010-04-16 Christian Bruel <christian.bruel@st.com>
27262 * config/sh/sh.h (sh_frame_pointer_required): New function.
27263 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
27264 (flag_omit_frame_pointer) Set.
27265 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
27266 (rounded_frame_size): Adjust size with outgoing_args_size.
27267 (sh_set_return_address): Must return from stack pointer.
27268 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
27269 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
27270 (ACCUMULATE_OUTGOING_ARGS): Define.
27271 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
27272 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
27274 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
27277 * config/sh/sh.c (sh_legitimize_reload_address): Use
27278 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
27279 Remove a unneeded check for offset_base.
27281 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
27283 * configure: Regenerated.
27285 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27287 * config/s390/s390.c (s390_call_save_register_used): Switch back
27288 to HARD_REGNO_NREGS.
27290 2010-04-15 Richard Guenther <rguenther@suse.de>
27292 * alias.c (alias_set_subset_of): Handle alias-set zero
27295 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
27296 Julian Brown <julian@codesourcery.com>
27298 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
27299 alternatives according to use of high and low regs.
27300 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
27301 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
27302 optimizing for size on Thumb-2.
27304 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
27306 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
27308 2010-04-15 Richard Guenther <rguenther@suse.de>
27310 * tree-ssa-structalias.c (struct variable_info): Add
27312 (new_var_info): Initialize it.
27313 (dump_constraints): Support printing last added constraints.
27314 (debug_constraints): Adjust.
27315 (dump_constraint_graph): Likewise.
27316 (make_heapvar_for): Check for NULL cfun.
27317 (get_function_part_constraint): New function.
27318 (get_fi_for_callee): Likewise.
27319 (find_func_aliases): Properly implement IPA PTA constraints.
27320 (process_ipa_clobber): New function.
27321 (find_func_clobbers): Likewise.
27322 (insert_into_field_list_sorted): Remove.
27323 (create_function_info_for): Properly allocate vars for IPA mode.
27324 Do not use insert_into_field_list_sorted.
27325 (create_variable_info_for): Properly generate constraints for
27326 global vars in IPA mode.
27327 (dump_solution_for_var): Always dump the solution.
27328 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
27329 (find_what_var_points_to): Adjust.
27330 (pt_solution_set): Change.
27331 (pt_solution_ior_into): New function.
27332 (pt_solution_empty_p): Export.
27333 (pt_solution_includes_global): Adjust.
27334 (pt_solution_includes_1): Likewise.
27335 (pt_solutions_intersect_1): Likewise.
27336 (dump_sa_points_to_info): Check some invariants.
27337 (solve_constraints): Move constraint dumping ...
27338 (compute_points_to_sets): ... here.
27339 (ipa_pta_execute): ... and here.
27340 (compute_may_aliases): Do not re-compute points-to info
27341 locally if IPA info is available.
27342 (ipa_escaped_pt): New global var.
27343 (ipa_pta_execute): Properly implement IPA PTA.
27344 * tree-into-ssa.c (dump_decl_set): Support dumping
27345 decls not in referenced-vars.
27346 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
27347 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
27348 (dump_points_to_solution): Likewise.
27349 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
27350 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
27351 (remap_gimple_stmt): Reset call clobber/use information if necessary.
27352 (copy_decl_to_var): Copy DECL_PT_UID.
27353 (copy_result_decl_to_var): Likewise.
27354 * tree.c (make_node_stat): Initialize DECL_PT_UID.
27355 (copy_node_stat): Copy it.
27356 * tree.h (DECL_PT_UID): New macro.
27357 (SET_DECL_PT_UID): Likewise.
27358 (DECL_PT_UID_SET_P): Likewise.
27359 (struct tree_decl_minimal): Add pt_uid member.
27360 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
27361 (pt_solution_empty_p): Declare.
27362 (pt_solution_set): Adjust.
27363 (ipa_escaped_pt): Declare.
27364 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
27365 * gimple-pretty-print.c (pp_points_to_solution): New function.
27366 (dump_gimple_call): Dump call clobber/use information.
27367 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
27368 * tree-pass.h (TDF_ALIAS): New dump option.
27369 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
27370 * doc/invoke.texi (-fipa-pta): Update documentation.
27372 2010-04-15 Richard Guenther <rguenther@suse.de>
27374 * Makefile.in (OBJS-common): Add gimple-fold.o.
27375 (gimple-fold.o): New rule.
27376 * tree.h (maybe_fold_offset_to_reference,
27377 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
27379 * gimple.h: ... here.
27380 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
27381 may_propagate_address_into_dereference): Move prototypes ...
27382 * gimple.h: ... here.
27383 * tree-ssa-ccp.c (get_symbol_constant_value,
27384 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
27385 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
27386 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
27387 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
27388 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
27389 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
27390 gimplify_and_update_call_from_tree): Move ...
27391 * gimple-fold.c: ... here. New file.
27392 (ccp_fold_builtin): Rename to ...
27393 (gimple_fold_builtin): ... this.
27394 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
27396 2010-04-15 Richard Guenther <rguenther@suse.de>
27398 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
27399 fit_double_type, force_fit_type_double, add_double_with_sign,
27400 neg_double, mul_double_with_sign, lshift_double, rshift_double,
27401 lrotate_double, rrotate_double, div_and_round_double): Move ...
27402 * double-int.c: ... here.
27403 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
27404 add_double, neg_double, mul_double_with_sign, mul_double,
27405 lshift_double, rshift_double, lrotate_double, rrotate_double,
27406 div_and_round_double): Move prototypes ...
27407 * double-int.h: ... here.
27409 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
27412 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
27413 matching constraints to ensure inputs match the output.
27415 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
27418 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
27419 in an input-only operand.
27421 2010-04-15 Anatoly Sokolov <aesok@post.ru>
27423 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
27424 (double_int_not, double_int_lshift, double_int_rshift): Declare.
27425 (double_int_negative_p): Convert to static inline function.
27426 * double-int.c (double_int_lshift, double_int_lshift): New functions.
27427 (double_int_negative_p): Remove.
27428 * tree.h (lshift_double, rshift_double):
27429 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
27430 * fold-const.c (fold_convert_const_int_from_real,
27431 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
27432 (lshift_double): Change type of arith argument to bool.
27433 (rshift_double): Change type of arith argument to bool. Correct
27435 * expmed.c (mask_rtx, lshift_value): (Ditto.).
27437 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
27440 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
27441 at the start and end of the then/else blocks, and omit them from the
27443 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
27444 argument; all callers changed. Pass zero to old_insns_match_p instead.
27445 (flow_find_head_matching_sequence): New function.
27446 (old_insns_match_p): Check REG_EH_REGION notes for calls.
27447 * basic-block.h (flow_find_cross_jump,
27448 flow_find_head_matching_sequence): Declare functions.
27450 2010-04-14 Jason Merrill <jason@redhat.com>
27453 * c-common.c (attribute_takes_identifier_p): New fn.
27454 * c-common.h: Declare it.
27456 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27458 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
27459 splitter condition.
27460 (*udivmod<mode>4): Ditto.
27462 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27464 * config/i386/i386.md (maxmin_int): Rename code attribute from
27465 maxminiprefix and update all users.
27466 (maxmin_float): Ditto from maxminfprefix.
27467 (logic): Ditto from logicprefix.
27468 (absneg_mnemonic): Ditto from absnegprefix.
27469 * config/i386/mmx.md: Update all users of maxminiprefix,
27470 maxminfprefix and logicprefix for rename.
27471 * config/i386/sse.md: Ditto.
27472 * config/i386/sync.md (sync_<code><mode>): Update for
27473 logicprefix rename.
27475 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
27478 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
27479 warnings converted to errors.
27481 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27483 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
27484 used insn_type variable.
27485 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
27486 to avoid set-but-not-used warning.
27488 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27490 * df-core.c (df_ref_debug): Change format string placeholder
27492 * dwarf2asm.c (dw2_asm_output_data_raw,
27493 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
27494 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
27495 * dwarf2out.c (output_cfi, output_cfi_directive,
27496 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
27497 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
27499 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
27500 * print-rtl.c (print_rtx): Ditto.
27502 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27504 PR middle-end/42694
27505 * builtins.c (expand_builtin_pow_root): New function to expand pow
27506 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
27507 series of sqrt and cbrt calls under -ffast-math.
27508 (expand_builtin_pow): Call it.
27510 2010-04-14 Michael Matz <matz@suse.de>
27512 PR tree-optimization/42963
27513 * tree-cfg.c (touched_switch_bbs): New static variable.
27514 (group_case_labels_stmt): New function broken out from ...
27515 (group_case_labels): ... here, use the above.
27516 (start_recording_case_labels): Allocate touched_switch_bbs.
27517 (end_recording_case_labels): Deallocate it, call
27518 group_case_labels_stmt.
27519 (gimple_redirect_edge_and_branch): Remember index of affected BB.
27521 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27523 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
27524 from insn template.
27526 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27528 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
27530 2010-04-13 Jan Hubicka <jh@suse.cz>
27532 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
27533 of optimized out static functions.
27534 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
27535 cost computation. Also sanity check for overflows.
27536 (update_caller_keys): Update cgraph_edge_badness call; properly
27537 update fibheap and sanity check that it is up to date.
27538 (add_new_edges_to_heap): Update cgraph_edge_badness.
27539 (cgraph_decide_inlining_of_small_function): Likewise;
27540 add sanity checking that badness in heap is up to date;
27541 improve dumping of reason; Update badness of calls to the
27542 offline copy of function currently inlined; dump badness
27543 of functions not inlined because of unit growth limits.
27545 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
27547 PR middle-end/32628
27548 * c-common.c (pointer_int_sum): Disregard overflow that occured only
27549 because of sign-extension change when converting to sizetype here...
27550 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
27552 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
27553 the folding to constants. Remove redundant final conversion.
27554 (fold_binary) <associate>: Do not associate if the re-association of
27555 constants alone overflows.
27556 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
27557 to the end of the list.
27558 (multiple_of_p) <COND_EXPR>: New case.
27560 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
27562 * opt-functions.awk (opt_sanitized_name): New.
27564 * optc-gen.awk: Use it
27565 * opth-gen.awk: Use it.
27567 2010-04-13 Martin Jambor <mjambor@suse.cz>
27569 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
27570 (sra_modify_assign): Delete stmts loading dead data even if racc has no
27571 children. Call replace_uses_with_default_def_ssa_name to handle
27574 2010-04-13 Michael Matz <matz@suse.de>
27576 PR middle-end/43730
27577 * builtins.c (expand_builtin_interclass_mathfn): Also create
27578 a register if the predicate doesn't match.
27580 2010-04-13 Diego Novillo <dnovillo@google.com>
27582 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
27583 * c-pch.c: Include timevar.h.
27584 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
27585 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
27586 * ggc-common.c: Include timevar.h.
27587 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
27588 * timevar.def (TV_PCH_SAVE): Define.
27589 (TV_PCH_CPP_SAVE): Define.
27590 (TV_PCH_PTR_REALLOC): Define.
27591 (TV_PCH_PTR_SORT): Define.
27592 (TV_PCH_RESTORE): Define.
27593 (TV_PCH_CPP_RESTORE): Define.
27595 2010-04-13 Michael Matz <matz@suse.de>
27597 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
27599 (can_reassociate_p): New function.
27600 (break_up_subtract_bb, reassociate_bb): Use it.
27602 2010-04-13 Richard Guenther <rguenther@suse.de>
27605 * builtins.c (c_readstr): Fix assert.
27607 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
27609 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
27610 when generating cltd insn.
27612 (*ashl<mode>3_1): Remove special handling for register operand 2.
27613 (*ashlsi3_1_zext): Ditto.
27614 (*ashlhi3_1): Ditto.
27615 (*ashlhi3_1_lea): Ditto.
27616 (*ashlqi3_1): Ditto.
27617 (*ashlqi3_1_lea): Ditto.
27618 (*<shiftrt_insn><mode>3_1): Ditto.
27619 (*<shiftrt_insn>si3_1_zext): Ditto.
27620 (*<shiftrt_insn>qi3_1_slp): Ditto.
27621 (*<rotate_insn><mode>3_1): Ditto.
27622 (*<rotate_insn>si3_1_zext): Ditto.
27623 (*<rotate_insn>qi3_1_slp): Ditto.
27625 2010-04-13 Richard Guenther <rguenther@suse.de>
27627 * tree-ssa-structalias.c (callused_id): Remove.
27628 (call_stmt_vars): New.
27629 (get_call_vi): Likewise.
27630 (lookup_call_use_vi): Likewise.
27631 (lookup_call_clobber_vi): Likewise.
27632 (get_call_use_vi): Likewise.
27633 (get_call_clobber_vi): Likewise.
27634 (make_transitive_closure_constraints): Likewise.
27635 (handle_const_call): Adjust to do per-call call-used handling.
27636 (handle_pure_call): Likewise.
27637 (find_what_var_points_to): Remove general callused handling.
27638 (init_base_vars): Likewise.
27639 (init_alias_vars): Initialize call_stmt_vars.
27640 (compute_points_to_sets): Process call-used and call-clobbered
27641 vars for call statements.
27642 (delete_points_to_sets): Free call_stmt_vars.
27644 2010-04-13 Richard Guenther <rguenther@suse.de>
27646 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
27647 Only add RW dependence for dependence distance zero.
27648 Adjust maximal vectorization factor according to dependences.
27649 Move alignment handling ...
27650 (vect_find_same_alignment_drs): ... here. New function.
27651 (vect_analyze_data_ref_dependences): Adjust.
27652 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
27653 (vect_analyze_data_refs): Adjust minimal vectorization factor
27654 according to data references.
27655 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
27656 dependences before determining the vectorization factor.
27657 Analyze alignment after determining the vectorization factor.
27658 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
27659 dependences before alignment.
27660 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
27662 (vect_analyze_data_refs): Likewise.
27663 (MAX_VECTORIZATION_FACTOR): New define.
27665 2010-04-13 Duncan Sands <baldrick@free.fr>
27667 * except.h (lang_eh_type_covers): Remove.
27668 * except.c (lang_eh_type_covers): Likewise.
27670 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27671 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27673 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
27674 * config/s390/s390.c: Replace UNTIS_PER_WORD with
27675 UNITS_PER_LONG where it is ABI relevant.
27676 (s390_return_addr_rtx): Likewise.
27677 (s390_back_chain_rtx): Likewise.
27678 (s390_frame_area): Likewise.
27679 (s390_frame_info): Likewise.
27680 (s390_initial_elimination_offset): Likewise.
27681 (save_gprs): Likewise.
27682 (s390_emit_prologue): Likewise.
27683 (s390_emit_epilogue): Likewise.
27684 (s390_function_arg_advance): Likewise.
27685 (s390_function_arg): Likewise.
27686 (s390_va_start): Likewise.
27687 (s390_gimplify_va_arg): Likewise.
27688 (s390_function_profiler): Likewise.
27689 (s390_optimize_prologue): Likewise.
27690 (s390_rtx_costs): Likewise.
27691 (s390_secondary_reload): Likewise.
27692 (s390_promote_function_mode): Likewise.
27693 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
27694 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
27695 registers available.
27696 (s390_unwind_word_mode): New function.
27697 (s390_function_value): Split 64 bit values into register pair if
27698 used as return value.
27699 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
27700 function call parameters. Handle parallels.
27701 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
27702 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
27703 (DWARF_CIE_DATA_ALIGNMENT): New macro.
27704 (s390_expand_setmem): Remove unused variable src_addr.
27705 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
27706 deal with 64 bit registers.
27707 * config/s390/s390.h: Define __zarch__ predefined macro.
27708 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
27709 (UNITS_PER_LONG): New macro.
27710 * libjava/include/s390-signal.h: Define extended ucontext
27711 structure containing the upper halfs of the 64 bit registers.
27713 2010-04-13 Simon Baldwin <simonb@google.com>
27715 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
27717 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
27719 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
27720 rvalue on the RHS if the LHS is of a non-renamable type.
27721 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
27723 2010-04-13 Matthias Klose <doko@ubuntu.com>
27725 * gcc.c (cc1_options): Handle -iplugindir before processing
27726 the cc1 spec. Only add -iplugindir once.
27727 (cpp_unique_options): Add -iplugindir option if -fplugin* options
27729 * common.opt (iplugindir): Remove `Separate' property, initialize.
27730 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
27732 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
27733 (distclean): Remove plugin dir.
27734 * doc/invoke.texi: Document -iplugindir.
27736 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
27738 * doc/plugins.texi (Loading Plugins): Document short
27739 -fplugin=foo option.
27740 (Plugin API): Mention default_plugin_dir_name function.
27742 * gcc.c (find_file_spec_function): Add new declaration.
27743 (static_spec_func): Use it for "find-file".
27744 (find_file_spec_function): Add new function.
27745 (cc1_options): Add -iplugindir option if -fplugin* options found.
27747 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
27749 * plugin.c (add_new_plugin): Updated comment, and handle short
27751 (default_plugin_dir_name): Added new function.
27753 * common.opt (iplugindir): New option to set the plugin directory.
27755 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
27757 * config/i386/i386.md (any_rotate): New code iterator.
27758 (rotate_insn): New code attribute.
27760 (SWIM124): New mode iterator.
27761 (<rotate_insn>ti3): New expander.
27762 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
27763 any_rotate code iterator.
27764 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
27765 using any_rotate code iterator and SWIM124 mode iterator.
27766 (ix86_rotlti3): New insn_and_split pattern.
27767 (ix86_rotrti3): Ditto.
27768 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
27769 ix86_rotl{di,ti}3 patterns.
27770 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
27771 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
27772 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
27773 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
27774 code iterator and SWI mode iterator.
27775 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
27776 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
27778 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
27779 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
27780 (bswap rotatert splitter): Add splitter.
27781 (bswap splitter): Macroize splitter using any_rotate code iterator.
27782 Add insn predicate to split only for TARGET_USE_XCHGB or when
27783 optimizing function for size.
27785 2010-04-12 Steve Ellcey <sje@cup.hp.com>
27787 * config/pa/pa.c (emit_move_sequence): Remove use of
27788 deleted variable flag_argument_noalias.
27790 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27792 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
27794 Add to unsupported targets list.
27795 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
27796 sparc*-sun-solaris2.[567]* from target lists.
27797 * configure: Regenerate.
27798 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
27800 Remove Solaris 7 patch references.
27801 (Specific, sparc-sun-solaris2.7): Removed.
27802 (sparc-sun-solaris2*): Update Solaris 7 example.
27803 (sparc64-*-solaris2*): Likewise.
27805 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27807 * config.build (alpha*-dec-osf4*): Remove.
27808 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
27809 of obsolete configurations.
27810 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
27812 * config/alpha/t-osf4: Renamed to ...
27813 * config/alpha/t-osf5: ... this.
27814 * config/alpha/osf.h: Renamed to ...
27815 * config/alpha/osf5.h: ... this.
27816 Merged old osf5.h contents.
27818 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
27819 (EXTRA_SPECS): Removed.
27820 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
27821 reflect removal of Tru64 UNIX V4.0/V5.0 support.
27824 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27826 * doc/contrib.texi (Contributors, Rainer Orth): Update.
27828 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
27831 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
27832 __thiscall convention.
27834 2010-04-12 Steve Ellcey <sje@cup.hp.com>
27836 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
27838 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
27840 2010-04-12 Steve Ellcey <sje@cup.hp.com>
27842 * function.c (assign_parms_initialize_all): Add unused attribute
27845 2010-04-12 Richard Guenther <rguenther@suse.de>
27847 * gsstruct.def (GSS_CALL): New.
27848 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
27849 * gimple.h: Include tree-ssa-alias.h.
27850 (struct gimple_statement_call): New.
27851 (union gimple_statement_struct_d): Add gimple_call member.
27852 (gimple_call_reset_alias_info): Declare.
27853 (gimple_call_use_set): New function.
27854 (gimple_call_clobber_set): Likewise.
27855 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
27856 * gimple.c (gimple_call_reset_alias_info): New function.
27857 (gimple_build_call_1): Call it.
27858 * lto-streamer-in.c (input_gimple_stmt): Likewise.
27859 * tree-inline.c (remap_gimple_stmt): Likewise.
27860 (expand_call_inline): Remove callused handling.
27861 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
27862 * tree-dfa.c (dump_variable): Likewise.
27863 * tree-parloops.c (parallelize_loops): Likewise.
27864 * tree-ssa.c (init_tree_ssa): Likewise.
27865 (delete_tree_ssa): Likewise.
27866 * tree-flow-inline.h (is_call_used): Remove.
27867 * tree-flow.h (struct gimple_df): Remove callused member.
27868 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
27869 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
27870 (ref_maybe_used_by_call_p_1): Simplify.
27871 (call_may_clobber_ref_p_1): Likewise.
27872 * tree-ssa-structalias.c (compute_points_to_sets): Set
27873 the call stmt used and clobbered sets.
27874 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
27875 (find_tail_calls): Verify the tail call.
27877 2010-04-12 Richard Guenther <rguenther@suse.de>
27879 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
27880 single-iteration always-inline inlining.
27881 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
27882 (cgraph_decide_inlining): Do not handle always-inline specially.
27883 (try_inline): Remove always-inline cycle detection special case.
27884 Do not recurse on always-inlines.
27885 (cgraph_early_inlining): Do not iterate if not optimizing.
27886 (cgraph_gate_early_inlining): remove.
27887 (pass_early_inline): Run unconditionally.
27888 (gate_cgraph_decide_inlining): New function.
27889 (pass_ipa_inline): Use it. Do not run the IPA inliner if
27890 not inlining or optimizing.
27891 (cgraph_decide_inlining_of_small_functions): Also consider
27892 always-inline functions.
27893 (cgraph_default_inline_p): Return true for nodes which should
27894 disregard inline limits.
27895 (estimate_function_body_sizes): Assume zero size and time for
27896 nodes which are marked as disregarding inline limits.
27897 (cgraph_decide_recursive_inlining): Do not perform recursive
27898 inlining on always-inline nodes.
27900 2010-04-12 Jakub Jelinek <jakub@redhat.com>
27903 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
27904 for exprs satisfying handled_component_p.
27906 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
27908 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
27909 non-constant aggregate elements.
27911 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
27912 is a real initialization.
27914 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
27917 * c-decl.c (start_function): Move forward check for nested function.
27919 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
27921 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
27922 * config/sh/sh.c: Include reload.h.
27923 (sh_legitimize_reload_address): New.
27924 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
27925 sh_legitimize_reload_address.
27927 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27929 * config/sh/sh.md (*movqi_pop): New insn pattern.
27930 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
27932 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
27934 * config/i386/i386.md (any_shiftrt): New code iterator.
27935 (shiftrt_insn): New code attribute.
27937 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
27938 using any_shiftrt code iterator.
27939 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
27940 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
27941 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
27942 pattern from corresponding peephole2 patterns.
27943 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
27944 using any_shiftrt code iterator.
27945 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
27946 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
27947 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
27948 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
27949 *{ashr,lshr}<mode>3_cmp_zext.
27950 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
27952 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
27954 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
27956 (*lshr<mode>3_cconly): Ditto.
27958 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
27960 * config/i386/i386.md (lshr<mode>3): Macroize expander from
27961 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
27962 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
27963 pattern from *lshr{di,ti}3_1 and corresponding splitters using
27965 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
27966 from corresponding peephole2 patterns.
27967 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
27968 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
27969 and *lshrdi3_1_rex64 using SWI mode iterator.
27970 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
27971 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
27972 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
27973 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
27974 and *lshrdi3_cmp_rex64 using SWI mode iterator.
27975 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
27976 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
27977 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
27978 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
27981 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
27983 * config/i386/i386.md (ashr<mode>3): Macroize expander from
27984 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
27985 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
27986 pattern from *ashr{di,ti}3_1 and corresponding splitters using
27988 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
27989 from corresponding peephole2 patterns.
27990 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
27991 (ashrsi3_cvt): Rename from ashrsi3_31.
27992 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
27993 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
27994 and x86_64_shift_adj_3 using SWI48 mode iterator.
27995 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
27996 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
27997 and *ashrdi3_1_rex64 using SWI mode iterator.
27998 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
27999 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
28000 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
28001 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
28002 and *ashrdi3_cmp_rex64 using SWI mode iterator.
28003 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
28004 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
28005 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
28006 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
28008 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
28009 * config/i386/i386.c (ix86_split_ashr): Update for renamed
28010 x86_shift<mode>_adj_3 expanders.
28012 2010-04-10 Wei Guozhi <carrot@google.com>
28015 * config/arm/arm.c (arm_pic_static_addr): New function.
28016 (legitimize_pic_address): Call arm_pic_static_addr when it detects
28018 (arm_output_addr_const_extra): Output expression for new pattern.
28019 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
28021 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
28023 * ira-costs.c (record_reg_classes): Ignore alternatives that are
28026 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
28027 * web.c: Include "insn-config.h" and "recog.h".
28028 (union_match_dups): New function.
28029 (web_main): Call it.
28030 (union_defs): Don't try to recognize match_dups.
28032 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
28033 if doing so would replace the entire pattern.
28035 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
28039 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
28040 and splitter pattern. Change splitter operand 1 predicate to
28043 2010-04-09 Martin Jambor <mjambor@suse.cz>
28045 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
28046 lattices are addresses of CONST_DECLs with the same initial value.
28047 (ipcp_print_all_lattices): Print values of CONST_DECLs.
28048 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
28050 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
28051 Bernd Schmidt <bernds@codesourcery.com>
28053 * loop-invariant.c (replace_uses): New static function.
28054 (move_invariant_reg): Use it to ensure we can replace the uses.
28056 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
28058 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
28060 (picochip_override_options): Enable section anchors only above -O1.
28061 (picochip_reorg): Fixed a couple of build warnings.
28063 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28065 * configure.ac (plugin -rdynamic test): Log result.
28066 * configure: Regenerate.
28067 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
28068 (RDYNAMIC_SPEC): Define.
28069 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
28071 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28073 * configure.ac: Determine Sun ld version numbers.
28074 (comdat_group): Restrict GNU ld version checks to gld.
28075 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
28076 (enable_comdat): Support --enable-comdat.
28077 * configure: Regenerate.
28078 * doc/install.texi (Configuration): Document --enable-comdat.
28080 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28082 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
28083 * config/sol2-gld.h: ... here.
28084 * config.gcc (sparc*-*-solaris2*): Reflect this.
28085 (i[34567]86-*-solaris2*): Use it.
28087 2010-04-09 Steve Ellcey <sje@cup.hp.com>
28089 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
28091 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
28093 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
28096 * diagnostic.c (diagnostic_initialize): Initialize
28097 some_warnings_are_errors.
28098 (diagnostic_finish): New.
28099 (diagnostic_action_after_output): Call it before exiting.
28100 (diagnostic_report_diagnostic): Do not print message here. Set
28101 some_warnings_are_errors.
28102 * diagnostic.h (diagnostic_context): Delete
28103 issue_warnings_are_errors_message. Add some_warnings_are_errors.
28104 (diagnostic_finish): Declare.
28105 * toplev.c (toplev_main): Call it before exit.
28107 2010-04-09 Jason Merrill <jason@redhat.com>
28110 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
28111 for incomplete type.
28114 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
28115 based on a warning flag.
28117 2010-04-09 Richard Guenther <rguenther@suse.de>
28119 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
28121 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
28124 * varasm.c (default_assemble_visibility): Wrap vars that are
28125 set, but unused, by targets without GAS.
28126 * config/rs6000/rs6000.c (paired_emit_vector_compare):
28127 Remove set, but unused, vars.
28128 (rs6000_legitimize_tls_address): Likewise.
28129 (altivec_expand_dst_builtin): Likewise.
28130 * config/darwin.c (machopic_classify_symbol): Likewise.
28131 (machopic_indirection_name): Likewise.
28133 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
28135 * config/i386/i386.md (DWI): New mode iterator.
28136 (S): New mode attribute.
28137 (shift_operand): Ditto.
28138 (shift_immediate_operand): Ditto.
28139 (ashl_input_operand): Ditto.
28140 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
28141 using SDWIM mode iterator.
28142 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
28143 pattern from *ashl{di,ti}3_1 and corresponding splitters using
28145 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
28146 from corresponding peephole2 patterns.
28147 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
28148 and x86_64_shift_adj_1 using SWI48 mode iterator.
28149 (x86_shift<mode>_adj_2): Ditto.
28150 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
28151 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
28152 using SWI48 mode iterator.
28153 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
28154 *ashldi3_cmp_rex64 using SWI mode iterator.
28155 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
28156 *ashldi3_cconly_rex64 using SWI mode iterator.
28157 * config/i386/i386.c (ix86_split_ashl): Update for renamed
28158 x86_shift<mode>_adj_{1,2}.
28159 (ix86_split_ashr): Ditto.
28160 (ix86_split_lshr): Ditto.
28162 2010-04-09 Richard Guenther <rguenther@suse.de>
28164 * target.h (builtin_conversion): Pass in input and output types.
28165 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
28166 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
28167 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
28168 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
28170 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
28172 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
28174 2010-04-09 Richard Guenther <rguenther@suse.de>
28177 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
28179 2010-04-09 Richard Guenther <rguenther@suse.de>
28181 * tree-vectorizer.h (struct _stmt_vec_info): Document
28182 that vectype is the type of the LHS.
28183 (supportable_widening_operation, supportable_narrowing_operation):
28184 Get both input and output vector types as arguments.
28185 (vect_is_simple_use_1): Declare.
28186 (get_same_sized_vectype): Likewise.
28187 * tree-vect-loop.c (vect_determine_vectorization_factor):
28188 Set STMT_VINFO_VECTYPE to the vector type of the def.
28189 (vectorizable_reduction): Adjust.
28190 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
28191 Adjust. Specify the output vector type.
28192 (vect_pattern_recog_1): Adjust.
28193 * tree-vect-stmts.c (get_same_sized_vectype): New function.
28194 (vectorizable_call): Adjust.
28195 (vectorizable_conversion): Likewise.
28196 (vectorizable_operation): Likewise.
28197 (vectorizable_type_demotion): Likewise.
28198 (vectorizable_type_promotion): Likewise.
28199 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
28201 (vect_is_simple_use_1): New function.
28202 (supportable_widening_operation): Get both input and output
28204 (supportable_narrowing_operation): Likewise.
28205 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
28207 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
28209 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
28210 __thiscall and _thiscall as predefined macros.
28211 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
28212 thiscall attribute handling.
28213 (ix86_comp_type_attributes): Likewise.
28214 (ix86_function_regparm): Likewise.
28215 (ix86_return_pops_args): Likewise.
28216 (init_cumulative_args): Likewise.
28217 (find_drap_reg): Likewise.
28218 (ix86_static_chain): Likewise.
28219 (x86_this_parameter): Likewise.
28220 (x86_output_mi_thunk): Likewise.
28221 (ix86_attribute_table): Add description for thiscall attribute.
28222 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
28223 * doc/extend.texi: Add documentation for thiscall.
28225 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
28228 * c.opt (Wint-to-pointer-cast): Available in C++.
28229 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
28231 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
28233 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
28234 * calls.c (expand_call): Pass the function type to aggregate_value_p.
28235 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
28236 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
28237 function type instead. Reorder and simplify checks.
28239 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
28241 2010-04-08 Jing Yu <jingyu@google.com>
28242 Zdenek Dvorak <ook@ucw.cz>
28244 PR tree-optimization/42720
28245 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
28246 loop unswitch conditions here from ...
28247 (tree_unswitch_single_loop): ... here.
28249 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
28251 * tree-if-conv.c: Fix comments and simplify logic.
28253 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
28255 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
28256 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
28257 (main_tree_if_conversion): Update call to tree_if_conversion.
28259 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
28262 * doc/invoke.texi (-b,-V): Delete.
28263 * doc/tm.texi: Do not mention -b.
28264 * gcc.c (display_help): Delete -b and -V.
28265 (process_command): Delete -b and -V.
28266 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
28268 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
28269 Wolfgang Gellerich <gellerich@de.ibm.com>
28271 Implement target hook for loop unrolling
28272 * target.h (loop_unroll_adjust): Add a new target hook function.
28273 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
28274 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
28275 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
28276 (s390_loop_unroll_adjust): Implement the new target hook for s390.
28277 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
28279 (decide_unroll_stupid): Likewise.
28281 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28284 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
28286 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28288 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
28289 (Specific, *-*-solaris2*): Likewise.
28290 Don't prefer Sun as over GNU as.
28292 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
28294 * config/s390/s390.c (override_options): Adjust the z10 defaults
28295 for max-unroll-times, max-completely-peeled-insns
28296 and max-completely-peel-times.
28298 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28300 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
28301 instructions for z10.
28302 (s390_expand_setmem): Likewise.
28303 (s390_expand_cmpmem): Likewise.
28305 2010-04-08 Richard Guenther <rguenther@suse.de>
28307 PR tree-optimization/43679
28308 * tree-ssa-pre.c (eliminate): Only propagate copies.
28310 2010-04-08 Jakub Jelinek <jakub@redhat.com>
28313 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
28314 set but not used variable warning.
28316 2010-04-08 Wei Guozhi <carrot@google.com>
28319 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
28320 (arm_size_rtx_costs): Call the new function when optimized for size.
28322 2010-04-08 Jakub Jelinek <jakub@redhat.com>
28325 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
28326 op0 is not a MEM, just return NULL instead of assertion
28328 (discover_nonconstant_array_refs): Don't walk debug stmts.
28330 2010-04-08 Doug Kwan <dougkwan@google.com>
28332 * configure.ac: Recognize gold and do not use its version number
28333 to test ld features.
28334 * configure: Regenerate.
28336 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
28338 PR middle-end/40815
28339 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
28340 (negate_value): Move code to push elements to broken_up_substracts ...
28341 (eliminate_plus_minus_pair): ... here. Push operands that have no
28342 negative pair to plus_negates.
28343 (repropagate_negates, init_reassoc, fini_reassoc): Update.
28345 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28347 * doc/install.texi (Configuration): Move description of
28348 --enable-lto, --with-libelf*, --enable-gold from Java section to
28351 * doc/generic.texi (Working with declarations)
28352 (Function Properties, C and C++ Trees): Fix typos.
28353 * doc/sourcebuild.texi (Top Level): Likewise.
28355 2010-04-07 Jakub Jelinek <jakub@redhat.com>
28358 * tree.h (DECL_READ_P): Define.
28359 (struct tree_decl_common): Add decl_read_flag.
28360 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
28361 a set but not used warning.
28362 (merge_decls): Merge DECL_READ_P flag.
28363 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
28364 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
28365 * c-common.c (handle_used_attribute, handle_unused_attribute):
28367 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
28369 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
28371 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
28372 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
28373 c_parser_binary_expression, c_parser_cast_expression,
28374 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
28375 Call default_function_array_read_conversion instead of
28376 default_function_array_conversion where needed.
28377 (c_parser_unary_expression, c_parser_conditional_expression,
28378 c_parser_postfix_expression_after_primary, c_parser_initelt):
28379 Likewise. Call mark_exp_read where needed.
28380 (c_parser_statement_after_labels, c_parser_asm_operands,
28381 c_parser_typeof_specifier, c_parser_sizeof_expression,
28382 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
28384 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
28386 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
28387 (warn_unused_but_set_parameter): Default to warn_unused
28389 * doc/invoke.texi: Document -Wunused-but-set-variable and
28390 -Wunused-but-set-parameter.
28392 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
28393 used count variable.
28394 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
28395 when operandN variables aren't used in the body of the expander
28397 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
28398 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
28399 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
28400 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
28401 FOR_EACH_IMM_USE_ON_STMT): Likewise.
28402 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
28403 * tree.c (PROCESS_ARG): Likewise.
28405 2010-04-07 Simon Baldwin <simonb@google.com>
28407 * diagnostic.h (diagnostic_override_option_index): New macro to
28408 set a diagnostic's option_index.
28409 * c-tree.h (c_cpp_error): Add warning reason argument.
28410 * opts.c (_warning_as_error_callback): New.
28411 (register_warning_as_error_callback): Store callback for
28412 warnings enabled via enable_warning_as_error.
28413 (enable_warning_as_error): Call callback, minor code tidy.
28414 * opts.h (register_warning_as_error_callback): Declare.
28415 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
28416 response to -Werror=.
28417 (c_common_init_options): Register warning_as_error_callback in opts.c.
28418 * common.opt: Add -Wno-cpp option.
28419 * c-common.c (struct reason_option_codes_t): Map cpp warning
28420 reason codes to gcc option indexes.
28421 * (c_option_controlling_cpp_error): New function, lookup the gcc
28422 option index for a cpp warning reason code.
28423 * (c_cpp_error): Add warning reason argument, call
28424 c_option_controlling_cpp_error for diagnostic_override_option_index.
28425 * doc/invoke.texi: Document -Wno-cpp.
28427 2010-04-07 Richard Guenther <rguenther@suse.de>
28429 * ipa-reference.c (mark_load): Use get_base_address.
28430 (mark_store): Likewise.
28432 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
28433 inserting GIMPLE_NOPs into the IL.
28434 * tree-ssa-structalias.c (get_constraint_for_component_ref):
28435 Explicitly strip handled components and indirect references.
28437 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
28438 folding address expressions.
28439 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
28440 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
28441 operand_equal_p to compare decls.
28442 (ptr_deref_may_alias_decl_p): Likewise.
28443 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
28444 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
28445 Handle reversed comparison ops.
28446 * tree-sra.c (asm_visit_addr): Use get_base_address.
28447 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
28448 * ipa-reference.c (mark_address): Use get_base_address.
28450 2010-04-07 Richard Guenther <rguenther@suse.de>
28452 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
28453 Propagate constants everywhere.
28455 2010-04-07 Jakub Jelinek <jakub@redhat.com>
28458 * tree.c (MAX_INT_CACHED_PREC): Define.
28459 (nonstandard_integer_type_cache): New array.
28460 (build_nonstandard_integer_type): Cache results for precision
28461 <= MAX_INT_CACHED_PREC.
28463 2010-04-07 Richard Guenther <rguenther@suse.de>
28465 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
28466 -fargument-noalias-global, -fargument-noalias-anything): Remove.
28467 * common.opt: Likewise.
28468 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
28469 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
28470 (nonoverlapping_memrefs_p): Likewise.
28471 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
28472 * opts.c (common_handle_option): Handle OPT_fargument_alias,
28473 OPT_fargument_noalias, OPT_fargument_noalias_anything and
28474 OPT_fargument_noalias_global for backward compatibility.
28476 2010-04-07 Richard Guenther <rguenther@suse.de>
28478 PR tree-optimization/43270
28479 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
28480 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
28481 * tree-ssa-pre.c (phi_translate_1): Adjust.
28482 (fully_constant_expression): Split out vn_reference handling to ...
28483 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
28484 Fold reads from constant strings.
28485 (vn_reference_lookup): Handle fully constant references.
28486 (vn_reference_lookup_pieces): Likewise.
28487 * Makefile.in (expmed.o-warn): Add -Wno-error.
28489 2010-04-07 Martin Jambor <mjambor@suse.cz>
28491 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
28493 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
28496 * gcc.c: Add -static-libstdc++ to list of recognized options.
28498 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28500 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
28502 2010-04-07 Richard Guenther <rguenther@suse.de>
28504 PR middle-end/42617
28505 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
28506 bases build simple mem attributes to retain points-to information.
28508 2010-04-07 Richard Guenther <rguenther@suse.de>
28510 PR middle-end/42617
28511 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
28512 preserve points-to related information.
28514 2010-04-07 Richard Guenther <rguenther@suse.de>
28516 PR middle-end/42617
28517 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
28518 discard plain indirect references.
28519 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
28520 * tree.c (tree_nop_conversion): Likewise.
28522 2010-04-07 Dodji Seketeli <dodji@redhat.com>
28525 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
28527 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
28529 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
28530 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
28532 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
28534 * tree-if-conv.c: Fix indentation and comments.
28536 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
28538 * tree-if-conv.c: Sort static functions in topological order.
28540 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
28542 * tree-if-conv.c: Fix indentation and comments.
28544 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28546 PR middle-end/43519
28547 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
28548 lang_hooks.types.type_for_size instead of
28549 build_nonstandard_integer_type.
28550 When converting an unsigned type to signed, double its precision.
28551 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
28552 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
28553 (graphite_create_new_loop_guard): When ub + 1 wraps around,
28556 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28558 PR middle-end/43519
28559 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
28560 POINTER_PLUS_EXPR for pointer types.
28562 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28564 PR middle-end/43519
28565 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
28566 * graphite-clast-to-gimple.c: Include langhooks.h.
28567 (max_signed_precision_type): New.
28568 (max_precision_type): Takes two types as arguments.
28569 (precision_for_value): New.
28570 (precision_for_interval): New.
28571 (gcc_type_for_interval): New.
28572 (gcc_type_for_value): New.
28573 (gcc_type_for_clast_term): New.
28574 (gcc_type_for_clast_red): New.
28575 (gcc_type_for_clast_bin): New.
28576 (gcc_type_for_clast_expr): Split up into several functions.
28577 (gcc_type_for_clast_eq): Rewritten.
28578 (compute_bounds_for_level): New.
28579 (compute_type_for_level_1): New.
28580 (compute_type_for_level): New.
28581 (gcc_type_for_cloog_iv): Removed.
28582 (gcc_type_for_iv_of_clast_loop): Rewritten.
28583 (graphite_create_new_loop): Compute the lower and upper bound types
28584 with gcc_type_for_clast_expr.
28585 (graphite_create_new_loop_guard): Same.
28586 (find_cloog_iv_in_expr): Removed.
28587 (compute_cloog_iv_types_1): Removed.
28588 (compute_cloog_iv_types): Removed.
28589 (gloog): Do not call compute_cloog_iv_types.
28590 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
28591 GBB_CLOOG_IV_TYPES.
28592 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
28593 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
28594 (GBB_CLOOG_IV_TYPES): Removed.
28596 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28598 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
28599 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
28600 (detect_commutative_reduction): Same.
28602 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28604 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
28605 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
28607 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
28608 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
28609 (rewrite_commutative_reductions_out_of_ssa): Same.
28610 * passes.c (execute_function_todo): Call verify_ssa for every pass
28611 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
28612 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
28613 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
28614 with an extra argument.
28615 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
28616 verify_ssa only when the extra argument is true.
28617 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
28618 with an extra argument.
28619 (tree_transform_and_unroll_loop): Same.
28621 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28623 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
28624 for all the passes of the LNO having LOOP_CLOSED_SSA.
28625 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
28626 * tree-loop-distribution.c (pass_loop_distribution): Same.
28627 * tree-pass.h (TODO_verify_loops): Removed.
28628 * tree-ssa-loop.c (pass_tree_loop_init): Same.
28630 (pass_tree_unswitch): Same.
28631 (pass_predcom): Same.
28632 (pass_vectorize): Same.
28633 (pass_linear_transform): Same.
28634 (pass_graphite_transforms): Same.
28635 (pass_iv_canon): Same.
28636 (pass_complete_unroll): Same.
28637 (pass_complete_unrolli): Same.
28638 (pass_parallelize_loops): Same.
28639 (pass_loop_prefetch): Same.
28640 (pass_iv_optimize): Same.
28642 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
28644 PR middle-end/32824
28645 * passes.c (init_optimization_passes): Move pass_lim before
28646 pass_copy_prop and pass_dce_loop.
28648 2010-04-06 Jakub Jelinek <jakub@redhat.com>
28651 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
28652 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
28653 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
28654 MULTI_* defines for 4 argument vpermil2p* builtins.
28656 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
28658 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
28659 * config/i386/i386.c (x86_maybe_negate_const_int): New.
28660 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
28661 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
28662 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
28663 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
28664 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
28665 Use x86_maybe_negate_const_int to output insn mnemonic.
28666 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
28667 check from instruction predicate. Update comments.
28668 * config/i386/sync.md (sync_add<mode>): Use
28669 x86_maybe_negate_const_int to output insn mnemonic.
28671 2010-04-06 Jan Hubicka <jh@suse.cz>
28673 PR tree-optimization/42906
28674 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
28675 IGNORE_SELF argument. Set visited_control_parents for fully
28677 (find_obviously_necessary_stmts): Update call of
28678 mark_control_dependent_edges_necessary.
28679 (propagate_necessity): Likewise. Handle PHI edges more curefully.
28681 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
28683 * config/i386/i386.md: Remove comment about 'e' and 'E'
28686 2010-04-06 Richard Guenther <rguenther@suse.de>
28688 PR tree-optimization/43627
28689 * tree-vrp.c (extract_range_from_unary_expr): Widenings
28690 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
28693 2010-04-06 Jakub Jelinek <jakub@redhat.com>
28695 * BASE-VER: Change to 4.6.0.
28698 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
28701 2010-04-06 Richard Guenther <rguenther@suse.de>
28703 PR middle-end/43661
28704 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
28706 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28708 * doc/invoke.texi (Optimize Options): Document that LTO
28709 won't remove object access purely due to incompatible
28712 2010-04-04 Matthias Klose <doko@ubuntu.com>
28714 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
28715 Initialize variable.
28717 2010-04-03 Richard Guenther <rguenther@suse.de>
28719 PR middle-end/42509
28720 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
28721 require a non-NULL MEM_OFFSET.
28723 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
28725 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
28726 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
28727 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
28728 config/alpha/predicates.md, config/arm/arm.md,
28729 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
28730 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
28731 config/darwin9.h, config/darwin.c, config/darwin.h,
28732 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
28733 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
28734 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
28735 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
28736 config/mips/mips.md, config/mn10300/mn10300.c,
28737 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
28738 config/rs6000/aix.h, config/rs6000/dfp.md,
28739 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
28740 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
28741 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
28742 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
28743 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
28744 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
28745 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
28746 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
28747 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
28748 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
28749 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
28750 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
28751 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
28752 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
28753 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
28754 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
28755 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
28756 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
28757 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
28758 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
28759 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
28760 opt-functions.awk, opth-gen.awk, params.def, passes.c,
28761 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
28762 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
28763 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
28764 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
28765 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
28766 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
28767 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
28768 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
28769 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
28770 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
28771 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
28772 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
28773 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
28774 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
28776 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28779 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
28780 * aclocal.m4: Regenerate.
28782 2010-04-02 Richard Guenther <rguenther@suse.de>
28784 PR tree-optimization/43629
28785 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
28786 if we have seen a constant value.
28788 2010-04-02 Joseph Myers <joseph@codesourcery.com>
28790 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
28792 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
28795 * arm.c (legitimize_tls_address): Adjust call to
28796 gen_tls_load_dot_plus_four.
28797 (arm_note_pic_base): New function.
28798 (arm_cannot_copy_insn_p): Use it.
28799 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
28802 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28807 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28809 * Makefile.in ($(out_object_file)): Depend on
28810 gt-$(basename $(notdir $(out_file))).h.
28812 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
28814 * config.gcc (lm32-*-rtems*): Add t-lm32.
28816 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
28818 * config.gcc: Add lm32-*-rtems*.
28819 * config/lm32/rtems.h: New file.
28821 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
28824 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
28826 2010-04-01 Jakub Jelinek <jakub@redhat.com>
28828 * dwarf2out.c (output_compilation_unit_header): For
28829 -gdwarf-4 use version 4 instead of version 3.
28830 (output_line_info): For version 4 and above emit additional
28831 maximum ops per insn header field.
28832 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
28834 * dwarf2out.c (is_c_family, is_java): Remove.
28835 (lower_bound_default): New function.
28836 (add_bound_info, gen_descr_array_type_die): Use it.
28838 2010-04-01 Dodji Seketeli <dodji@redhat.com>
28841 * dwarf2out.c (gen_variable_die): Allow debug info for variable
28842 re-declaration when it happens in a function.
28844 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
28846 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
28847 (cgraph_remove_function_insertion_hook): Same.
28848 (cgraph_call_function_insertion_hooks): Same.
28850 2010-04-01 Richard Guenther <rguenther@suse.de>
28852 PR middle-end/43614
28853 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
28854 and TREE_THIS_VOLATILE.
28855 (copy_ref_info): Likewise.
28856 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
28857 * tree.c (build6_stat): Ignore side-effects of all but arg5
28858 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
28861 2010-04-01 Richard Guenther <rguenther@suse.de>
28863 PR tree-optimization/43607
28864 * ipa-type-escape.c (check_call): Do not access non-existing
28867 2010-04-01 Richard Guenther <rguenther@suse.de>
28869 PR middle-end/43602
28871 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
28872 Jack Howarth <howarth@bromo.med.uc.edu>
28874 * tree-profile.c (tree_init_ic_make_global_vars): Make static
28877 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28879 * doc/install.texi (Prerequisites): Document libelf usability on
28880 IRIX 5/6 and Solaris 2.
28881 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
28882 Update GNU as, GNU ld requirements.
28883 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
28884 Document Sun Studio compiler download.
28885 Update and simplify as, ld recommendations.
28886 (Specific, *-*-solaris2.7): Note obsoletion, removal.
28888 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28890 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
28891 with_tune_32 to pentium4.
28893 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
28895 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
28897 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28899 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
28900 obsoletion, removal.
28902 Document GNU as requirement.
28903 Update configure requirements.
28904 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
28905 Recomment IRIX 6.5.18+.
28906 Document IDF/IDL requirement.
28907 Document GNU as requirement.
28908 Document GNU ld bootstrap failure.
28909 Remove freeware.sgi.com reference.
28911 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28913 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
28914 UNIX V4.0, V5.0 obsoletion, removal.
28915 Remove --with-gc=simple reference.
28916 Update VM requirements during bootstrap.
28917 Remove -oldas bootstrap description.
28918 Update binutils reference.
28919 Remove comparison failure note.
28921 2010-03-31 Richard Guenther <rguenther@suse.de>
28922 Zdenek Dvorak <ook@ucw.cz>
28923 Sebastian Pop <sebastian.pop@amd.com>
28925 PR middle-end/43464
28926 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
28927 with multiple arguments.
28928 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
28930 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
28932 * graphite-dependences.c (print_pddr): Call print_pdr with an
28934 * graphite-poly.c (debug_pdr): Add an extra argument for the
28937 (print_pbb_domain): Same.
28939 (print_scop_context): Same.
28940 (print_scop): Same.
28941 (print_cloog): Same.
28942 (debug_pbb_domain): Same.
28944 (print_pdrs): Same.
28945 (debug_pdrs): Same.
28946 (debug_scop_context): Same.
28947 (debug_scop): Same.
28948 (debug_cloog): Same.
28949 (print_scop_params): Same.
28950 (debug_scop_params): Same.
28951 (print_iteration_domain): Same.
28952 (print_iteration_domains): Same.
28953 (debug_iteration_domain): Same.
28954 (debug_iteration_domains): Same.
28955 (print_scattering_function): Same.
28956 (print_scattering_functions): Same.
28957 (debug_scattering_function): Same.
28958 (debug_scattering_functions): Same.
28959 * graphite-poly.h (debug_pdr): Update declaration.
28961 (print_pbb_domain): Same.
28963 (print_scop_context): Same.
28964 (print_scop): Same.
28965 (print_cloog): Same.
28966 (debug_pbb_domain): Same.
28968 (print_pdrs): Same.
28969 (debug_pdrs): Same.
28970 (debug_scop_context): Same.
28971 (debug_scop): Same.
28972 (debug_cloog): Same.
28973 (print_scop_params): Same.
28974 (debug_scop_params): Same.
28975 (print_iteration_domain): Same.
28976 (print_iteration_domains): Same.
28977 (debug_iteration_domain): Same.
28978 (debug_iteration_domains): Same.
28979 (print_scattering_function): Same.
28980 (print_scattering_functions): Same.
28981 (debug_scattering_function): Same.
28982 (debug_scattering_functions): Same.
28984 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
28986 * graphite-poly.c (print_scattering_function_1): New.
28987 (print_scattering_function): Call it.
28988 (print_scop_params): Remove spaces at the end of lines.
28989 (print_cloog): New.
28990 (debug_cloog): New.
28991 * graphite-poly.h (print_cloog): Declared.
28992 (debug_cloog): Declared.
28994 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
28996 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
28998 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
28999 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
29000 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
29001 to switch between adding the IV bump in loop->latch or in loop->header.
29003 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
29005 * graphite-poly.c (print_scattering_function): Pretty print following
29006 the scoplib format.
29008 (print_pbb_domain): Same.
29009 (dump_gbb_cases): Same.
29010 (dump_gbb_conditions): Same.
29011 (print_pdrs): Same.
29013 (print_scop_params): Same.
29014 (print_scop_context): Same.
29015 (print_scop): Same.
29016 (print_pbb_body): New.
29017 (lst_indent_to): New.
29018 (print_lst): Start new lines with a #.
29019 * graphite-poly.h (pbb_bb): New.
29020 (pbb_index): Use pbb_bb.
29021 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
29023 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
29025 2010-03-31 Jakub Jelinek <jakub@redhat.com>
29027 * dwarf2out.c (size_of_die): For -gdwarf-4 use
29028 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
29029 and 0 instead of 1 for dw_val_class_flag.
29030 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
29031 dw_val_class_range_list, dw_val_class_loc_list,
29032 dw_val_class_lineptr and dw_val_class_macptr, use
29033 DW_FORM_flag_present for dw_val_class_flag and
29034 DW_FORM_exprloc for dw_val_class_loc.
29035 (output_die): For -gdwarf-4 print dw_val_class_loc
29036 size as uleb128 instead of 1 or 2 bytes and don't print
29037 anything for dw_val_class_flag.
29039 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
29040 instead of cselib_lookup following by tweaking locs->setting_insn.
29043 * cselib.c (cselib_process_insn): Clear cselib_current_insn
29044 even before returning from label, setjmp call or volatile asm
29047 2010-03-31 Richard Guenther <rguenther@suse.de>
29049 PR middle-end/43600
29050 * cgraphunit.c (cgraph_output_in_order): Do not allocate
29051 temporary data on stack.
29053 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29055 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
29056 (PUSHSECTION_ASM_OP): Remove.
29057 (POPSECTION_ASM_OP): Remove.
29058 (PUSHSECTION_FORMAT): Remove.
29059 * config/sol2.h (PUSHSECTION_FORMAT): Define.
29060 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
29061 * config/sol2.c (solaris_output_init_fini): Use it.
29063 2010-03-31 Jie Zhang <jie@codesourcery.com>
29066 * opt-functions.awk (var_type_struct): Use signed char type
29067 for simple variables.
29069 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29071 * config/sol2.c: Include output.h.
29072 (solaris_assemble_visibility): New function.
29073 * config/t-sol2 (sol2.o): Add output.h dependency.
29074 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
29075 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
29078 2010-03-31 Jakub Jelinek <jakub@redhat.com>
29081 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
29082 V2SImode or XFmode on PRE_DEC.
29085 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
29088 2010-03-31 Jie Zhang <jie@codesourcery.com>
29091 * reload.h (caller_save_initialized_p): Declare.
29092 * toplev.c (backend_init_target): Don't call
29093 init_caller_save but set caller_save_initialized_p to false.
29094 * caller-save.c (caller_save_initialized_p): Define.
29095 (init_caller_save): Check caller_save_initialized_p.
29096 * ira.c (ira): Call init_caller_save if flag_caller_saves.
29098 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29101 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
29102 and soft-fp/t-softfp to tmake_file.
29103 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
29104 (LIBGCC2_TF_CEXT): Define.
29107 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
29110 * cselib.c (n_useless_values): Document handling of debug locs.
29111 (n_useless_debug_values, n_debug_values): New variables.
29112 (new_elt_loc_list): Don't add to debug values, keep count.
29113 (promote_debug_loc): New.
29114 (cselib_reset_table): Zero new variables.
29115 (entry_and_rtx_equal_p): Promote debug locs.
29116 (discard_useless_locs): Increment n_useless_debug_values for
29118 (remove_useless_values): Adjust n_useless_values and n_debug_values
29119 with n_useless_debug_values.
29120 (add_mem_for_addr): Promote debug locs.
29121 (cselib_lookup_mem): Likewise.
29122 (cselib_lookup_addr): Renamed to...
29123 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
29124 (cselib_log_lookup): ... this. Turn into...
29125 (cselib_lookup_addr): ... new wrapper.
29126 (cselib_lookup_from_insn): New.
29127 (cselib_invalidate_regno): Increment n_useless_debug_values for
29129 (cselib_invalidate_mem): Likewise.
29130 (cselib_process_insn): Take n_deleted and n_debug_values into
29131 account to guard remove_useless_value call.
29132 (cselib_finish): Zero n_useless_debug_values.
29133 * cselib.h (cselib_lookup_from_insn): Declare.
29134 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
29135 (sched_analyze_2): Likewise.
29137 2010-03-30 Jakub Jelinek <jakub@redhat.com>
29139 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
29141 (adjust_mems): Replace narrowing SUBREG of expression containing
29142 just PLUS, MINUS, MULT and ASHIFT of registers and constants
29143 with operations in the narrower mode.
29146 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
29147 regs_invalidated_by_call instead all call_used_reg_set registers.
29149 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
29151 PR middle-end/43430
29152 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
29153 pointer comparisons with types_compatible_p.
29154 * tree-vect-stmts.c (vectorizable_call): Same.
29155 (vectorizable_condition): Same.
29157 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29159 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
29160 stack check if the mask would be zero.
29162 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
29163 Jack Howarth <howarth@bromo.med.uc.edu>
29165 * tree-profile.c (tree_init_ic_make_global_vars): Make static
29168 2010-03-30 Joseph Myers <joseph@codesourcery.com>
29171 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
29173 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
29174 Include ___unordxf2 and ___unordtf2.
29175 * config/i386/libgcc-glibc.ver: Do not define inheritance from
29178 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
29180 * config/lm32/t-lm32: New file.
29181 * config.gcc: Use the above file when targetting lm32.
29183 2010-03-28 Duncan Sands <baldrick@free.fr>
29185 * Makefile.in (PLUGIN_HEADERS): Add except.h.
29187 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
29189 PR middle-end/43431
29190 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
29191 Improve vectorization cost model diagnostic.
29193 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
29195 PR middle-end/43436
29196 * tree-vect-data-refs.c (vect_analyze_data_refs): When
29197 compute_data_dependences_for_loop returns false, early exit
29198 and output an extra diagnostic for the failed data reference
29201 2010-03-29 Richard Guenther <rguenther@suse.de>
29203 PR tree-optimization/43560
29204 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
29205 (can_sm_ref_p): Treat stores to readonly locations as trapping.
29207 2010-03-29 Jie Zhang <jie@codesourcery.com>
29210 * toplev.c (process_options): Set optimization_default_node
29211 and optimization_current_node.
29212 * opts.c (decode_options): Don't set optimization_default_node
29213 and optimization_current_node.
29215 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
29217 * config/rtems.h: Abandon -qrtems_debug.
29219 2010-03-28 Jan Hubicka <jh@suse.cz>
29221 PR tree-optimization/43505
29222 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
29223 map should not be copied.
29225 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29227 PR middle-end/41674
29228 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
29229 cdtors, set DECL_PRESERVE_P.
29230 * ipa.c (cgraph_externally_visible_p): Return true if declaration
29231 should be preseved.
29233 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
29235 PR tree-optimization/43528
29236 * stor-layout.c (place_field): Check that constant fits into
29237 unsigned HWI when skipping calculation of MS bitfield layout.
29239 2010-03-27 Jan Hubicka <jh@suse.cz>
29241 PR middle-end/43391
29242 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
29243 notice_global_symbol work.
29245 2010-03-27 Jakub Jelinek <jakub@redhat.com>
29247 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
29248 instead of dwarf2out_decl.
29249 (struct var_loc_node): Remove section_label field.
29250 (dwarf2out_function_decl): New function.
29251 (dwarf2out_var_location): Don't set section_label field.
29252 (dwarf2out_begin_function): Don't empty decl_loc_table here.
29254 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
29256 PR tree-optimization/43544
29257 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
29258 First argument for builtin vectorized function hook is now a
29259 tree to be able to distinguish between machine specific and
29261 * targhooks.c (default_builtin_vectorized_function): Ditto.
29262 * targhooks.h (default_builtin_vectorized_function): Ditto.
29263 * target.h (struct gcc_target): Ditto.
29264 * tree-vect-stmts.c (vectorizable_function): Ditto.
29265 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
29266 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
29269 2010-03-26 Joseph Myers <joseph@codesourcery.com>
29272 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
29273 nested binding iff it is a FUNCTION_DECL.
29274 (store_parm_decls_newstyle): Pass nested=true to bind for
29275 FUNCTION_DECLs amongst parameters.
29277 2010-03-26 Jakub Jelinek <jakub@redhat.com>
29279 * var-tracking.c (vt_expand_loc_callback): Don't run
29280 cselib_expand_value_rtx_cb in dummy mode if
29281 cselib_dummy_expand_value_rtx_cb returned false.
29283 * var-tracking.c (emit_note_insn_var_location): For one part
29284 notes with offset 0, don't add EXPR_LIST around the location.
29285 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
29286 add_location_or_const_value_attribute): Adjust for that change.
29289 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
29290 into first operand and location into second.
29291 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
29292 dw_cfi_oprnd_loc for DW_CFA_expression.
29293 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
29294 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
29295 assume first argument is regnum and second argument is location.
29297 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
29300 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
29301 of scratch register to DImode. Split to DImode comparison operator.
29302 Use SImode subreg of scratch register in the multiplication.
29303 (*cmp_sadd_sidi): Ditto.
29304 (*cmp_ssub_si): Ditto.
29305 (*cmp_ssub_sidi): Ditto.
29307 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
29310 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
29311 Remove invalid assert and wrong comment.
29313 2010-03-26 Jakub Jelinek <jakub@redhat.com>
29316 * flags.h (final_insns_dump_p): New extern.
29317 * final.c (final_insns_dump_p): New variable.
29318 (rest_of_clean_state): Set it before -fdump-final-insns=
29319 dumping, clear afterwards.
29320 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
29321 MEM_ALIAS_SET on MEMs.
29323 2010-03-26 David S. Miller <davem@davemloft.net>
29325 * configure.ac: Fix sparc GOTDATA_OP bug check.
29326 * configure: Rebuild.
29328 2010-03-26 Alan Modra <amodra@gmail.com>
29330 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
29332 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29334 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
29335 TLS_SECTION_ASM_FLAG.
29337 2010-03-25 Jakub Jelinek <jakub@redhat.com>
29340 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
29341 Clear first_function_block_is_cold.
29344 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
29345 argument if the argument is truth_value_p.
29347 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
29349 * config/rs6000/constraints.md: Update copyright year for my changes.
29352 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
29353 used in reg+reg addressing, swap registers.
29355 2010-03-24 Jakub Jelinek <jakub@redhat.com>
29358 * target.h (struct gcc_target): Add code_end hook.
29359 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
29360 if not yet defined.
29361 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
29362 * toplev.c (compile_file): Call targetm.asm_out.code_end
29363 hook before unwind info/debug info output.
29364 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
29365 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
29366 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
29367 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
29368 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
29369 * config/i386/i386.c (ix86_file_end): Renamed to...
29370 (ix86_code_end): ... this. Make static. Don't call
29371 file_end_indicate_exec_stack. Emit unwind info using
29372 final_start_function/final_end_function.
29373 (darwin_x86_file_end): Remove.
29374 (TARGET_ASM_CODE_END): Define.
29375 * config/i386/i386.h (TARGET_ASM_FILE_END,
29376 NEED_INDICATE_EXEC_STACK): Don't define.
29377 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
29378 (TARGET_ASM_FILE_END): Define to darwin_file_end.
29379 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
29380 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
29383 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
29384 at the beginning and final_end_function at the end.
29385 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
29387 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29389 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
29390 and Sun as TLS syntax.
29391 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
29392 * configure: Regenerate.
29393 * config.in: Regenerate.
29394 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
29395 (default_elf_asm_named_section): Use it.
29396 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
29397 (i386_output_dwarf_dtprel): Likewise.
29398 (output_addr_const_extra): Likewise.
29399 (output_pic_addr_const): Lowercase @GOTTPOFF.
29400 (output_addr_const_extra): Likewise.
29401 (output_pic_addr_const): Lowercase @GOTNTPOFF.
29402 (output_addr_const_extra): Likewise.
29403 (output_pic_addr_const): Lowercase @INDNTPOFF.
29404 (output_addr_const_extra): Likewise.
29405 (output_pic_addr_const): Lowercase @NTPOFF.
29406 (output_addr_const_extra): Likewise.
29407 (output_pic_addr_const): Lowercase @TPOFF.
29408 (output_addr_const_extra): Likewise.
29409 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
29410 (*tls_global_dynamic_64): Likewise.
29411 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
29412 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
29414 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
29415 (ASM_OUTPUT_TLS_COMMON): Use it.
29416 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
29419 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
29420 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
29421 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
29422 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
29423 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
29424 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
29426 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29428 * config/i386/i386.c (override_options): Don't accept
29429 -mtls-dialect=sun any longer.
29430 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
29431 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
29432 (*tls_local_dynamic_base_32_sun): Likewise.
29433 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
29435 2010-03-24 Jakub Jelinek <jakub@redhat.com>
29438 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
29439 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
29442 * ira.c (adjust_cleared_regs): New function.
29443 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
29447 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
29449 * expr.c (expand_expr_real): Restore previous
29450 curr_insn_source_location and curr_insn_block after
29451 expand_expr_real_1 call.
29452 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
29453 instead of expand_expr_real_1.
29455 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
29457 PR rtl-optimization/43413
29458 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
29461 2010-03-22 James E. Wilson <wilson@codesourcery.com>
29464 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
29465 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
29467 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
29469 * config/i386/i386.c (ix86_target_string): Add -mfma.
29470 Fix a typo in comment.
29472 2010-03-22 Mike Stump <mikestump@comcast.net>
29475 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
29476 Don't overly align based upon packed packed fields.
29478 2010-03-22 Jason Merrill <jason@redhat.com>
29480 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
29481 Use () rather than [], and move before the element type.
29483 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29485 * doc/configfiles.texi (Configuration Files): Removed
29486 fixinc/Makefile*, intl/Makefile.*.
29487 * doc/makefile.texi: Fixed markup. Abstract from version
29488 control system used.
29489 (Makefile): Removed obsolete java/parse.y example.
29490 * doc/sourcebuild.texi: Likewise.
29491 (Top Level): Added config, gnattools, libdecnumber, libgcc,
29492 libgomp, libssp. Removed fastjar.
29493 (Miscellaneous Docs): Clarify location.
29494 Added COPYING3, COPYING3.LIB.
29495 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
29497 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29500 * config/i386/i386.c (x86_function_profiler)
29501 [!NO_PROFILE_COUNTERS]: Fix typo.
29502 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
29505 2010-03-22 Janis Johnson <janis187@us.ibm.com>
29506 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29508 * doc/sourcebuild.texi (Test Directives): Split into six
29509 subsections, with most of the current text in new subsections
29510 Directives, Selectors, and Final Actions.
29511 (Directives): Split list of test directives into multiple
29513 (Selectors): Describe use and syntax of selectors.
29514 (Effective-Target Keywords): Describe all existing keywords.
29515 (Add Options): Describe features for dg-add-options.
29516 (Require Support): Describe variants of dg-require-support.
29517 (Final Actions): Describe commands to use in dg-final.
29519 2010-03-22 Michael Matz <matz@suse.de>
29521 PR middle-end/43475
29522 * recog.c (validate_replace_rtx_group): Replace also in
29523 REG_EQUAL and REG_EQUIV notes.
29525 2010-03-22 Richard Guenther <rguenther@suse.de>
29527 PR tree-optimization/43390
29528 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
29529 sure vector extracts are type correct.
29531 2010-03-22 Richard Guenther <rguenther@suse.de>
29533 PR middle-end/40106
29534 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
29535 x * sqrt (x) even when optimizing for size if the target
29536 has native support for sqrt.
29538 2010-03-22 Jakub Jelinek <jakub@redhat.com>
29540 * varasm.c (make_decl_rtl_for_debug): Also clear
29541 flag_mudflap for the duration of make_decl_rtl call.
29544 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
29545 locs from preserved VALUEs.
29547 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29549 PR middle-end/42718
29550 * pa.md (movmemsi): Set align to one if zero.
29551 (movmemdi): Likewise.
29553 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
29556 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
29557 with their corresponding prologue pushes.
29559 2010-03-20 Andrew Pinski <pinskia@gmail.com>
29562 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
29563 at the begining or end.
29564 (spu_expand_epilogue): Likewise.
29566 2010-03-20 Richard Guenther <rguenther@suse.de>
29568 PR rtl-optimization/43438
29569 * combine.c (make_extraction): Properly zero-/sign-extend an
29570 extraction of the low part of a CONST_INT. Also handle
29573 2010-03-19 Mike Stump <mikestump@comcast.net>
29575 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
29576 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
29577 (override_options): Use SUBTARGET32_DEFAULT_CPU.
29579 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
29582 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
29585 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
29587 PR rtl-optimization/42258
29588 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
29589 use that may match DEF.
29592 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
29593 the cost of loading the constant rather than assuming
29595 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
29596 outer code is AND, do the same tests as the andsi3 expander and
29597 return COSTS_N_INSNS (1) if and is cheap.
29599 * optabs.c (avoid_expensive_constant): Fix formatting.
29601 2010-03-19 Michael Matz <matz@suse.de>
29604 * attribs.c (decl_attributes): When rebuilding a function pointer
29605 type use the same qualifiers as the original pointer type.
29607 2010-03-19 Martin Jambor <mjambor@suse.cz>
29609 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
29610 and is_gimple_ip_invariant_address.
29612 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29615 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29617 * config/arm/arm.c (arm_override_options): Turn off
29618 flag_dwarf2_cfi_asm for AAPCS variants.
29620 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29623 * config/arm/arm.c (emit_multi_reg_push): Update comments.
29624 Use PRE_MODIFY instead of PRE_DEC.
29625 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
29626 (vfp_emit_fstmd): Likewise.
29628 2010-03-19 Michael Matz <matz@suse.de>
29631 * builtins.c (expand_builtin_interclass_mathfn,
29632 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
29635 2010-03-19 Richard Guenther <rguenther@suse.de>
29637 PR tree-optimization/43415
29638 * tree-ssa-pre.c (phi_translate): Split out worker to ...
29639 (phi_translate_1): ... this.
29640 (phi_translate): Move all caching here. Cache all NARY
29641 and REFERENCE translations.
29643 2010-03-19 David S. Miller <davem@davemloft.net>
29645 With help from Eric Botcazou.
29646 * config/sparc/sparc.c: Include dwarf2out.h.
29647 (emit_pic_helper): Delete.
29648 (pic_helper_symbol_name): Delete.
29649 (pic_helper_emitted_p): Delete.
29650 (pic_helper_needed): New.
29651 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
29652 (get_pc_thunk_name): New.
29653 (load_pic_register): Remove 'delay_pic_helper' arg. Use
29654 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
29655 Set pic_helper_needed to true. Don't call emit_pic_helper.
29656 (sparc_expand_prologue): Update load_pic_register call.
29657 (sparc_output_mi_thunk): Likewise.
29658 (sparc_file_end): Emit a hidden comdat symbol for the PIC
29659 thunk if possible. Output CFI information as needed.
29661 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
29662 Jack Howarth <howarth@bromo.med.uc.edu>
29665 * config/i386/i386.h: Fix ABI on darwin x86-32.
29667 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
29669 * tree.h: Declare make_decl_rtl_for_debug.
29670 * varasm.c (make_decl_rtl_for_debug): New.
29671 * dwarf2out.c (rtl_for_decl_location): Call it.
29672 * cfgexpand.c (expand_debug_expr): Call it.
29674 2010-03-18 Jakub Jelinek <jakub@redhat.com>
29677 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
29681 * var-tracking.c (vt_init_cfa_base): Do nothing if
29682 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
29684 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
29687 * var-tracking.c (canonicalize_vars_star): New.
29688 (dataflow_post_merge_adjust): Use it.
29690 2010-03-18 Jakub Jelinek <jakub@redhat.com>
29693 * var-tracking.c (non_suitable_const): New function.
29694 (add_uses): For DEBUG_INSNs with constants, don't record any
29695 value, instead just the constant value itself.
29696 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
29697 is not VAR_LOC_UNKNOWN_P, set var to the constant.
29698 (emit_notes_in_bb): Likewise.
29699 (emit_note_insn_var_location): For onepart variables if
29700 cur_loc is a VOIDmode constant, use DECL_MODE.
29702 2010-03-18 Martin Jambor <mjambor@suse.cz>
29704 PR middle-end/42450
29705 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
29706 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
29707 all non-clones. Moved call redirection...
29708 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
29709 (cgraph_materialize_all_clones): Dispose of all
29710 combined_args_to_skip bitmaps.
29711 (verify_cgraph_node): Do not check for edges pointing to wrong
29712 nodes in inline clones.
29713 * tree-inline.c (copy_bb): Call
29714 cgraph_redirect_edge_call_stmt_to_callee.
29715 * ipa.c (cgraph_remove_unreachable_nodes): Call
29716 cgraph_node_remove_callees even when there are used clones.
29718 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
29720 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
29722 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
29725 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
29728 2010-03-18 Michael Matz <matz@suse.de>
29730 PR middle-end/43419
29731 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
29732 into sqrt(x) if we need to preserve signed zeros.
29734 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
29735 Eric Botcazou <ebotcazou@adacore.com>
29737 PR rtl-optimization/43360
29738 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
29739 note if we don't know its invariant status.
29741 2010-03-18 Michael Matz <matz@suse.de>
29743 PR tree-optimization/43402
29744 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
29745 PHI chains of ssa names registered for update.
29747 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
29750 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
29751 non-offsettable and pre_modify update addressing.
29752 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
29753 and "2" alternatives "#".
29754 (*movdd_softfloat32): Make all alternatives "#";
29755 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
29756 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
29757 (*movdf_softfloat32): Make all alternatives "#";
29758 (movdi): Use the new DIFD mode iterator to create a common splitter
29759 for movdi, movdf and movdd patterns.
29761 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
29763 * common.opt (dumpdir): Remove redundant tab.
29765 2010-03-17 Martin Jambor <mjambor@suse.cz>
29767 PR tree-optimization/43347
29768 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
29769 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
29771 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
29773 PR rtl-optimization/42216
29774 * regrename.c (create_new_chain): New function, broken out from...
29775 (scan_rtx_reg): ... here. Call it. Handle the case where we are
29776 appending a use to an empty chain.
29777 (build_def_use): Remove previous changes that convert OP_INOUT to
29778 OP_OUT operands; instead detect the case where an OP_INOUT operand
29779 uses a previously untracked register and create an empty chain for it.
29781 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29783 * doc/extend.texi (Function Attributes): Rewrite unfinished
29784 sentence in ms_abi documentation.
29786 2010-03-17 Alan Modra <amodra@gmail.com>
29788 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
29789 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
29790 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
29791 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
29793 2010-03-16 Richard Henderson <rth@redhat.com>
29795 PR middle-end/43365
29796 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
29797 (lower_try_finally): Save and restore eh_seq around the expansion
29798 of the try-finally.
29800 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
29802 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
29803 statements before splitting block.
29805 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29807 * doc/sourcebuild.texi (Testsuites): Fix markup.
29808 Use pathnames relative to gcc/testsuite.
29809 (Test Directives): Move description of how timeout is determined.
29810 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
29811 (C Tests): Correct gcc.misc-tests directory.
29812 Framework tests now live in gcc.test-framework.
29814 2010-03-16 Richard Guenther <rguenther@suse.de>
29816 PR middle-end/43379
29817 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
29818 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
29820 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
29821 Alexandre Oliva <aoliva@redhat.com>
29823 PR tree-optimization/42917
29824 * lambda-code.c (remove_iv): Skip debug statements.
29825 (lambda_loopnest_to_gcc_loopnest): Likewise.
29826 (not_interesting_stmt): Debug statements are not interesting.
29828 2010-03-16 Jakub Jelinek <jakub@redhat.com>
29832 * cselib.c (cselib_preserve_constants,
29833 cfa_base_preserved_val): New static variables.
29834 (preserve_only_constants): New function.
29835 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
29836 clear its REG_VALUES. If cselib_preserve_constants, don't
29837 empty the whole hash table, but preserve there VALUEs with constants,
29838 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
29839 (cselib_preserve_cfa_base_value): New function.
29840 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
29841 (cselib_init): Change argument to int bitfield. Set
29842 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
29844 (cselib_finish): Clear cselib_preserve_constants and
29845 cfa_base_preserved_val.
29846 * cselib.h (enum cselib_record_what): New enum.
29847 (cselib_init): Change argument to int.
29848 (cselib_preserve_cfa_base_value): New prototype.
29849 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
29850 * dse.c (dse_step1): Likewise.
29851 * cfgcleanup.c (thread_jump): Likewise.
29852 * sched-deps.c (sched_analyze): Likewise.
29853 * gcse.c (local_cprop_pass): Likewise.
29854 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
29855 If FN is non-NULL, call the callback always and whenever it returns
29856 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
29857 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
29858 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
29859 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
29860 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
29861 * var-tracking.c: Include recog.h.
29862 (bb_stack_adjust_offset): Remove.
29863 (vt_stack_adjustments): Don't call it, instead just gather the
29864 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
29865 (adjust_stack_reference): Remove.
29866 (compute_cfa_pointer): New function.
29867 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
29868 (struct adjust_mem_data): New type.
29869 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
29871 (get_address_mode): New function.
29872 (replace_expr_with_values): Use it.
29873 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
29874 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
29875 (adjust_sets): Remove.
29876 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
29877 Use get_address_mode.
29878 (get_adjusted_src): Remove.
29879 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
29880 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
29881 (add_with_sets): Don't call adjust_sets.
29882 (fp_setter, vt_init_cfa_base): New functions.
29883 (vt_initialize): Change return type to bool. Move most of pool etc.
29884 initialization to the beginning of the function from end. Pass
29885 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
29886 If !frame_pointer_needed, call vt_stack_adjustment before mos
29887 vector is filled, call vt_init_cfa_base if argp/framep has been
29888 eliminated to sp. If frame_pointer_needed and argp/framep has
29889 been eliminated to hard frame pointer, set
29890 hard_frame_pointer_adjustment and call vt_init_cfa_base after
29891 encountering fp setter in the prologue. For MO_ADJUST, call
29892 log_op_type before pusing the op into mos vector, not afterwards.
29893 Call adjust_insn before cselib_process_insn/add_with_sets,
29894 call cancel_changes (0) afterwards.
29895 (variable_tracking_main_1): Adjust for vt_initialize calling
29896 vt_stack_adjustments and returning whether it succeeded or not.
29898 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
29900 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
29903 2010-03-15 Jakub Jelinek <jakub@redhat.com>
29905 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
29907 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
29908 drap_reg has not been set.
29910 2010-03-15 Michael Matz <matz@suse.de>
29912 PR middle-end/43300
29913 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
29914 use it to expand block copies.
29915 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
29916 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
29917 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
29919 2010-03-15 Richard Guenther <rguenther@suse.de>
29921 PR tree-optimization/43367
29922 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
29925 2010-03-15 Richard Guenther <rguenther@suse.de>
29927 PR tree-optimization/43317
29928 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
29930 2010-03-15 Martin Jambor <mjambor@suse.cz>
29932 PR tree-optimization/43141
29933 * tree-sra.c (create_abstract_origin): New function.
29934 (modify_function): Call create_abstract_origin.
29936 2010-03-15 Chris Demetriou <cgd@google.com>
29938 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
29941 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29943 PR middle-end/43354
29944 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
29945 call insert_out_of_ssa_copy for default definitions.
29947 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29949 * graphite-clast-to-gimple.c (my_long_long): Defined.
29950 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
29951 * graphite-sese-to-poly.c (my_long_long): Defined.
29952 (scop_ivs_can_be_represented): Use it.
29954 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29956 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
29957 graphite-max-bbs-per-function, and loop-block-tile-size.
29958 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
29960 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
29962 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29964 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
29965 forward declaration.
29966 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
29967 (add_upper_bounds_from_estimated_nit): New.
29968 (build_loop_iteration_domains): Use it.
29970 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29972 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
29974 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29976 PR middle-end/43306
29977 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
29978 should be an INTEGER_CST. Also handle CASE_CONVERT.
29980 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29982 * graphite.c (graphite_initialize): To bound the number of bbs per
29983 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
29984 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
29985 * doc/invoke.texi: Document it.
29987 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29989 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
29990 * graphite-sese-to-poly.h (build_poly_scop): Same.
29992 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29994 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
29995 the number of parameters in the scop. Use as an upper bound
29996 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
29997 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
29998 * doc/invoke.texi: Document it.
30000 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
30002 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
30003 * doc/c-tree.texi: Remove.
30004 * doc/generic.texi: Merge c-tree.texi here.
30005 * doc/gccint.texi (Trees): Remove menu entry.
30006 (c-tree.texi): Remove @include.
30007 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
30008 * doc/languages.texi (Reading RTL): Ditto.
30010 2010-03-12 Steve Ellcey <sje@cup.hp.com>
30013 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
30015 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
30017 PR middle-end/42431
30018 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
30019 code added to work around reload clobbering CONST insns.
30021 2010-03-12 Jakub Jelinek <jakub@redhat.com>
30023 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
30024 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
30025 (cselib_preserve_only_values): Remove retain argument, don't
30026 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
30027 * cselib.h (cselib_preserve_only_values): Remove retain argument.
30028 * var-tracking.c (micro_operation): Move insn field before union.
30029 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
30030 (struct variable_tracking_info_def): Remove n_mos field, change
30031 mos into a vector of micro_operations.
30032 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
30033 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
30034 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
30035 changing into a vector.
30036 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
30037 come before all other uops generated by add_stores.
30038 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
30040 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
30041 a vector. Run just one pass over the bbs instead of separate counting
30042 and computation phase.
30043 (vt_finalize): Free VTI (bb)->mos vector instead of array.
30046 * tree-inline.c (remap_decls): Put old_var rather than origin_var
30047 into *nonlocalized_list vector.
30048 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
30049 even if origin is non-NULL.
30050 (gen_variable_die): Likewise.
30051 (process_scope_var): Don't change origin.
30052 (gen_decl_die): Likewise.
30053 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
30054 before adding new edges instead of after it, fix moving over
30057 2010-03-11 David S. Miller <davem@davemloft.net>
30059 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
30061 * configure: Rebuild.
30063 2010-03-11 Martin Jambor <mjambor@suse.cz>
30065 PR tree-optimization/43257
30066 * tree.c (assign_assembler_name_if_neeeded): New function.
30067 (free_lang_data_in_cgraph): Assembler name assignment moved to the
30068 above new function.
30069 * tree.h (assign_assembler_name_if_neeeded): Declare.
30070 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
30071 the function if needed.
30073 2010-03-11 Chris Demetriou <cgd@google.com>
30075 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
30076 include/stdint-gcc.h, and include/stdint.h world-readable.
30078 2010-03-11 Richard Guenther <rguenther@suse.de>
30080 PR tree-optimization/43255
30081 * tree-vrp.c (process_assert_insertions_for): Do not insert
30082 asserts for trivial conditions.
30084 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30086 PR tree-optimization/43280
30087 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
30088 generation. Move calculation of size out of the if branch.
30089 (find_bswap): Modify compare number generation.
30091 2010-03-11 Richard Guenther <rguenther@suse.de>
30094 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
30095 (input_gimple_stmt): Fixup handled component types during
30096 operand read. Also fix up decls in ADDR_EXPRs.
30098 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
30100 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
30101 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
30103 2010-03-10 Jan Hubicka <jh@suse.cz>
30106 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
30107 * varasm.c (get_variable_section): Don't do that here...
30108 (make_decl_rtl): ... and here.
30109 (do_assemble_alias): Produce decl RTL.
30110 (assemble_alias): Likewise.
30112 2010-03-10 Jakub Jelinek <jakub@redhat.com>
30115 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
30116 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
30118 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
30119 (based_loc_descr): Only express drap or vdrap regno based expressions
30120 using DW_OP_fbreg when not optimizing.
30121 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
30122 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
30123 REG_CFA_SET_VDRAP note.
30125 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
30127 PR tree-optimization/43236
30128 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
30129 error in calculation of base address in reverse iteration case.
30130 (generate_builtin): Take number of latch executions if the statement
30133 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
30135 PR middle-end/42859
30136 * tree-eh.c: Include pointer-set.h.
30137 (lower_eh_dispatch): Filter out duplicate case labels and
30138 remove the unneeded edge when the label is unused. Return
30139 true when some edges are removed.
30140 (execute_lower_eh_dispatch): When any lowering resulted in
30141 removing an edge, also delete unreachable blocks.
30143 2010-03-10 Jakub Jelinek <jakub@redhat.com>
30146 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
30147 UNSPEC_MACHOPIC_OFFSET.
30149 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
30152 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
30153 (m68k_delegitimize_address): New function.
30155 2010-03-09 Jakub Jelinek <jakub@redhat.com>
30158 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
30161 * var-tracking.c (adjust_sets): New function.
30162 (count_with_sets, add_with_sets): Use it.
30163 (get_adjusted_src): New inline function.
30164 (add_stores): Use it.
30167 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
30168 call cselib_dummy_expand_value_rtx_cb instead of
30169 cselib_expand_value_rtx_cb.
30172 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
30173 * config/i386/i386.c: Include debug.h and dwarf2out.h.
30174 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
30175 and .cfi_endproc around the pic thunks.
30176 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
30177 all queued unwind info register saves are saved before the call.
30178 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
30179 considered as sp-=4 for unwind info and the pop as sp+=4 which
30180 also clobbers dest, but doesn't actually restore it.
30183 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
30184 RTX_FRAME_RELATED_P.
30186 2010-03-09 Jie Zhang <jie@codesourcery.com>
30188 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
30189 whitespaces in output template.
30191 2010-03-09 Jie Zhang <jie@codesourcery.com>
30193 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
30194 out array boundary.
30196 2010-03-08 Jakub Jelinek <jakub@redhat.com>
30198 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
30199 builtins.exp in a separate job.
30201 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30203 * graphite-sese-to-poly.c (add_param_constraints): Use
30204 lower_bound_in_type and upper_bound_in_type.
30206 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30208 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
30209 instead of unsigned_type_node.
30211 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30212 Reza Yazdani <reza.yazdani@amd.com>
30214 PR middle-end/43065
30215 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
30216 on pointer type parameters.
30218 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
30220 PR middle-end/42644
30221 PR middle-end/42130
30222 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
30223 handle conversions from pointer to integers.
30224 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
30225 induction variable, to be able to work with code generated by CLooG.
30226 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
30227 (build_poly_scop): Bail out if we cannot codegen a loop.
30229 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
30231 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
30232 code generation with gloog_error.
30234 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30236 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
30237 Call fold_convert on all the returned values.
30238 (expand_scalar_variables_expr): Pass to
30239 expand_scalar_variables_ssa_name the type of the resulting expression.
30241 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30243 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
30244 ppl_min_for_le_pointset.
30245 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
30246 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
30248 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30250 * graphite-dependences.c (map_into_dep_poly): Removed.
30251 (dependence_polyhedron_1): Use combine_context_id_scat.
30253 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30255 * graphite-poly.h (struct poly_scattering): Add layout documentation.
30256 (struct poly_bb): Same.
30257 (combine_context_id_scat): New.
30259 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30261 PR middle-end/42326
30262 * sese.c (name_defined_in_loop_p): Return false for default
30265 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30267 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
30268 and clean up the logic.
30270 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30272 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
30275 2010-03-08 Jakub Jelinek <jakub@redhat.com>
30277 * var-tracking.c (remove_cselib_value_chains): Define only for
30279 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
30280 delete_slot_part, emit_notes_for_differences_1): Don't call
30281 remove_cselib_value_chains here.
30282 (set_slot_part, emit_notes_for_differences_2): Don't call
30283 add_cselib_value_chains here.
30284 (preserved_values): New vector.
30285 (preserve_value): New function.
30286 (add_uses, add_stores, vt_add_function_parameters): Use it
30287 instead of cselib_preserve_value.
30288 (changed_values_stack): New vector.
30289 (check_changed_vars_0): New function.
30290 (check_changed_vars_1, check_changed_vars_2): Use it.
30291 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
30292 changed_values_stack VALUEs.
30293 (vt_emit_notes): For all preserved_values call
30294 add_cselib_value_chains. If ENABLE_CHECKING call
30295 remove_cselib_value_chains before verifying value_chains is empty.
30296 Initialize and free changed_values_stack.
30297 (vt_initialize): Initialize preserved_values.
30298 (vt_finalize): Free preserved_values.
30300 2010-03-08 Richard Guenther <rguenther@suse.de>
30302 PR tree-optimization/43269
30303 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
30306 2010-03-08 Martin Jambor <mjambor@suse.cz>
30308 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
30309 (ipa_is_param_called): Removed.
30310 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
30311 (ipa_print_node_params): Do not print the called flag.
30312 (ipa_write_node_info): Do not stream the called flag.
30313 (ipa_read_node_info): Likewise.
30315 2010-03-07 Jakub Jelinek <jakub@redhat.com>
30318 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
30319 * cselib.c (struct expand_value_data): Add dummy field.
30320 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
30322 (cselib_dummy_expand_value_rtx_cb): New function.
30323 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
30325 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
30326 * var-tracking.c: Include pointer-set.h.
30327 (variable): Change n_var_parts to char from int. Add
30328 cur_loc_changed and in_changed_variables fields.
30329 (variable_canonicalize): Remove.
30330 (shared_var_p): New inline function.
30331 (unshare_variable): Maintain cur_loc_changed and
30332 in_changed_variables fields. If var was in changed_variables,
30333 replace it there with new_var. Just copy cur_loc instead of
30334 resetting it to something else.
30335 (variable_union): Don't recompute cur_loc. Use shared_var_p.
30336 (dataflow_set_union): Don't call variable_canonicalize.
30337 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
30338 of their DEBUG_EXPR_TREE_DECLs.
30339 (canonicalize_loc_order_check): Verify that cur_loc is NULL
30340 and in_changed_variables and cur_loc_changed is false.
30341 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
30342 and cur_loc_changed. Don't update cur_loc here.
30343 (variable_merge_over_src): Don't call variable_canonicalize.
30344 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
30345 removing loc that is equal to cur_loc, clear cur_loc,
30346 set cur_loc_changed and ensure variable_was_changed is called.
30347 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
30348 compare pointers in cur_loc check, if it is equal to loc,
30349 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
30350 (variable_different_p): Remove compare_current_location argument,
30351 don't compare cur_loc.
30352 (dataflow_set_different_1): Adjust variable_different_p caller.
30353 (variable_was_changed): If dv had some var in changed_variables
30354 already, reset in_changed_variables flag for it and propagate
30355 cur_loc_changed over to the new variable. On empty var
30356 always set cur_loc_changed. Set in_changed_variables on whatever
30357 var is added to changed_variables.
30358 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
30359 Use shared_var_p. When removing loc that is equal to cur_loc,
30360 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
30361 end, don't set it to something else, just call variable_was_changed.
30362 (delete_slot_part): Use shared_var_p. When cur_loc equals to
30363 loc being removed, clear cur_loc and set cur_loc_changed.
30364 Set cur_loc_changed if all locations have been removed.
30365 (struct expand_loc_callback_data): New type.
30366 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
30367 allocated. Always create SUBREGs if simplify_subreg failed.
30368 Prefer to use cur_loc, when that fails and still in
30369 changed_variables (and seen first time) recompute it. Set
30370 cur_loc_changed of variables which had to change cur_loc and
30371 compute elcd->cur_loc_changed if any of the subexpressions used
30372 had to change cur_loc.
30373 (vt_expand_loc): Adjust to pass arguments in
30374 expand_loc_callback_data structure.
30375 (vt_expand_loc_dummy): New function.
30376 (emitted_notes): New variable.
30377 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
30378 that weren't used for any other decl in current
30379 emit_notes_for_changes call call vt_expand_loc_dummy to update
30380 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
30381 first loc_chain location if NULL before. Always use just
30382 cur_loc instead of first loc_chain location. When cur_loc_changed
30383 is false, when not --enable-checking=rtl just don't emit any note.
30384 When rtl checking, compute the note and assert it is the same
30385 as previous note. Clear cur_loc_changed and in_changed_variables
30386 at the end before removing from changed_variables.
30387 (check_changed_vars_3): New function.
30388 (emit_notes_for_changes): Traverse changed_vars to call
30389 check_changed_vars_3 on each changed var.
30390 (emit_notes_for_differences_1): Clear cur_loc_changed and
30391 in_changed_variables. Recompute cur_loc of new_var.
30392 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
30393 (vt_emit_notes): Initialize and destroy emitted_notes.
30395 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
30397 PR rtl-optimization/42220
30398 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
30399 Use verify_reg_tracked to determine if we should use OP_OUT rather
30401 (build_def_use): If we see an in-out operand for a register that we
30402 know nothing about, treat is an output if possible, fail the block if
30405 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
30408 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
30411 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
30414 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
30415 uses of relevant DEFs that are dead outside the loop too.
30417 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
30419 * var-tracking.c (dataflow_set_merge): Swap src and src2.
30421 2010-01-13 Jakub Jelinek <jakub@redhat.com>
30423 * var-tracking.c (values_to_unmark): New variable.
30424 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
30425 values_to_unmark vector. Moved body to...
30426 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
30427 instead queue it into values_to_unmark vector.
30428 (vt_find_locations): Free values_to_unmark vector.
30430 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
30432 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
30433 (site.exp): Export them when plugins are enabled.
30435 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
30437 PR middle-end/42326
30438 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
30439 that contain scevs.
30440 (chrec_fold_multiply): Same.
30442 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
30445 * c-decl.c (build_compound_literal): Return early if init is
30446 an error_mark_node.
30448 2010-03-04 Martin Jambor <mjambor@suse.cz>
30450 PR tree-optimization/43164
30451 PR tree-optimization/43191
30452 * tree-sra.c (type_consists_of_records_p): Reject records with
30453 zero-size bit-fields at the end.
30455 2010-03-04 Mike Stump <mikestump@comcast.net>
30457 * Makefile.in (TAGS): Remove *.y.
30459 2010-03-04 Richard Guenther <rguenther@suse.de>
30461 PR tree-optimization/40761
30462 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
30464 (my_rev_post_order_compute): New function.
30465 (init_pre): Call it.
30467 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
30469 PR middle-end/43209
30470 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
30471 decrease the cost of an IV candidate when the cost is infinite.
30473 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30475 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
30476 Use '3DNow!' for the extension of that name, ensure normal space
30478 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
30480 2010-03-03 Jeff Law <law@redhat.com>
30482 * PR middle-end/32693
30483 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
30484 than gen_rtx_SUBREG.
30485 (extract_bit_field_1): Likewise.
30487 2010-03-03 Janis Johnson <janis187@us.ibm.com>
30489 * doc/sourcebuild.texi (Test directives): Document that arguments
30490 include-opts and exclude-opts are now optional for dg-skip-if,
30491 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
30493 2010-03-03 Jason Merrill <jason@redhat.com>
30496 * cgraph.h (varpool_node): Add extra_name field.
30497 * varpool.c (varpool_extra_name_alias): New.
30498 (varpool_assemble_decl): Emit extra name aliases.
30499 (varpool_mark_needed_node): Look past an extra name alias.
30500 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
30501 * lto-streamer-in.c (lto_input_tree): Read it.
30502 * lto-streamer-out.c (output_unreferenced_globals): Write it.
30504 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
30506 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
30507 (sparc*-*-solaris2*): ...this.
30509 2010-03-03 Jakub Jelinek <jakub@redhat.com>
30512 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
30513 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
30514 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
30515 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
30518 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
30519 fallthrough to default handling, just with want_address 0 instead of 2.
30520 For single element lists, add_AT_loc directly, otherwise create an
30521 artificial variable DIE and stick location list to it.
30524 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
30525 (VAL_EXPR_HAS_REVERSE): Define.
30526 (reverse_op): New function.
30527 (add_stores): For reversible operations add an extra MO_VAL_USE.
30529 2010-03-02 Jason Merrill <jason@redhat.com>
30531 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
30533 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
30535 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
30536 (sparc64-*-linux*): Likewise.
30537 (sparc64-*-solaris2*): Include assembler files before linker ones.
30538 (sparc-*-solaris2*): Simplify and reorder to match previous case.
30539 * config/sparc/gas.h: Delete.
30540 * config/sparc/sol2-64.h: Add copyright notice.
30541 * config/sparc/sol2-gas-bi.h: Likewise.
30542 * config/sparc/sol2-gld.h: Likewise.
30543 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
30544 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
30545 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
30546 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
30547 (sparc_elf_asm_named_section): Rename into...
30548 (sparc_solaris_elf_asm_named_section): ...this. Always define.
30550 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
30552 * config/alpha/alpha.c (override_options): Fix -mtune error message.
30554 2010-03-02 Jeff Law <law@redhat.com>
30556 PR middle-end/42431
30557 * reload1.c (rtx_p, substitute_stack): Declare.
30558 (substitute): Record addresses of changed rtxs.
30559 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
30560 Restore the original rtx when complete.
30561 (reload): Free subsitute_stack when complete.
30563 2010-03-02 Janis Johnson <janis187@us.ibm.com>
30565 * doc/gccint.texi (menu): Add Testsuites as a chapter.
30566 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
30568 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
30569 LTO Testing, gcov Testing, profopt Testing, compat Testing,
30570 Torture Tests): Change from subsection to section.
30572 2010-03-02 Jakub Jelinek <jakub@redhat.com>
30573 Steven Bosscher <steven@gcc.gnu.org>
30575 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
30578 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
30580 PR middle-end/42640
30581 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
30582 the assignment from the new induction variable to the assignment
30583 of the value from the original loop PHI function.
30585 2010-03-01 Janis Johnson <janis187@us.ibm.com>
30586 Daniel Jacobowitz <dan@codesourcery.com>
30588 * doc/sourcebuild.texi (Test directives): Clarify options to
30591 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30593 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
30594 Disable cfi directives unless GCC and gas agree on using read-only
30595 .eh_frame sections for 64-bit.
30596 * configure: Regenerate.
30598 2010-03-01 Richard Guenther <rguenther@suse.de>
30600 PR tree-optimization/43220
30601 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
30602 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
30604 2010-03-01 Richard Guenther <rguenther@suse.de>
30605 Martin Jambor <mjambor@suse.cz>
30607 PR middle-end/41250
30608 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
30609 gimplified parameters.
30611 2010-03-01 Christian Bruel <christian.bruel@st.com>
30613 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
30615 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
30617 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
30619 2010-03-01 Richard Guenther <rguenther@suse.de>
30621 PR middle-end/43213
30622 * expr.c (expand_assignment): Use the alias-oracle to tell
30623 if the rhs aliases the result decl.
30625 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30628 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
30629 to sol_gt_pch_get_address.
30630 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
30631 64-bit, SPARC and x86.
30632 (sol_gt_pch_get_address): New function.
30634 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
30636 * toplev.h (inform_n, error_n): Declare.
30637 * diagnostic.c (inform_n, error_n): New function.
30639 2010-03-01 Jakub Jelinek <jakub@redhat.com>
30641 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
30642 has no rtl yet when processing local_decls, queue it and recheck
30643 if deferred stack allocation hasn't assigned it rtl.
30645 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
30647 * config/sh/sh.c (unspec_bbr_uid): New.
30648 (gen_block_redirect): Use it instead of INSN_UID.
30649 (gen_far_branch): Likewise.
30651 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
30653 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
30654 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
30656 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30658 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
30659 (Warning Options): -Wno-conversion-null is valid for
30660 Objective-C++ as well.
30661 * doc/tm.texi (Named Address Spaces): Likewise.
30662 * doc/plugins.texi (Plugins): Replace TABs with spaces.
30663 * doc/tree-ssa.texi (Tree SSA): Likewise.
30665 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
30668 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
30669 by default. Don't set the default arch for
30670 i[34567]86-*-darwin*|x86_64-*-darwin*.
30672 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
30675 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
30676 default. Set the default 32bit/64bit archs with $with_arch
30677 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
30679 2010-02-27 Richard Guenther <rguenther@suse.de>
30681 PR tree-optimization/43186
30682 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
30683 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
30684 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
30685 unroller iterations.
30687 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
30689 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
30690 required and i[34567]86-*-* targets don't support 64bit ISA.
30692 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
30695 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
30696 the same alias set.
30698 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
30700 * config.gcc: Set the default arch at least to Prescott for
30701 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
30702 if SSE math is enabled.
30704 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
30706 * diagnostic.c (diagnostic_initialize): Update.
30707 (diagnostic_report_diagnostic): Test inhibit_notes_p for
30709 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
30710 (diagnostic_inhibit_notes): New.
30711 * toplev.c (process_options): inhibit notes with -fcompare-debug.
30713 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
30716 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
30717 * doc/standards.texi: Likewise.
30718 * doc/extend.texi: Likewise.
30719 * doc/trouble.texi: Likewise.
30720 * doc/cppopts.texi: Likewise.
30721 * doc/install.texi: Likewise.
30722 * c.opt (std=c90,std=gnu90): New options.
30723 * c-opts.c (c_common_handle_option): Handle them.
30725 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
30728 * c-decl.c (undeclared_variable): Use an informative note.
30730 2010-02-26 Richard Guenther <rguenther@suse.de>
30732 PR tree-optimization/43186
30733 * gimple.h (gimple_fold): Remove.
30734 * gimple.c (gimple_fold): Remove. Inline into single user ...
30735 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
30736 Try harder for conditions.
30738 2010-02-26 Jakub Jelinek <jakub@redhat.com>
30741 * function.c (used_types_insert): Don't skip through named pointer
30742 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
30743 and it is different from the main variant's type.
30745 2010-02-26 Nick Clifton <nickc@redhat.com>
30747 * config/rx/rx.md (sminsi3): Remove bogus alternative.
30749 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
30751 * config.gcc: Support --with-fpmath=sse for x86.
30753 * config/i386/ssemath.h: New.
30755 * doc/install.texi (--with-fpmath=sse): Documented.
30757 2010-02-26 Richard Guenther <rguenther@suse.de>
30759 PR tree-optimization/43188
30760 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
30761 vector types of over-aligned element type.
30763 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
30766 * config/i386/i386.c (expand_vec_perm_blend): Use correct
30767 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
30769 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
30771 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
30773 2010-02-26 Jakub Jelinek <jakub@redhat.com>
30775 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
30776 * var-tracking.c: Include diagnostic.h.
30777 (debug_dv): New function.
30778 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
30781 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
30782 (add_value_chain, add_value_chains, remove_value_chain,
30783 remove_value_chains): Handle DEBUG_EXPRs.
30784 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
30787 * regcprop.c (struct queued_debug_insn_change): New type.
30788 (struct value_data_entry): Add debug_insn_changes field.
30789 (struct value_data): Add n_debug_insn_changes field.
30790 (debug_insn_changes_pool): New variable.
30791 (free_debug_insn_changes, apply_debug_insn_changes,
30792 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
30793 (kill_value_one_regno): Call free_debug_insn_changes if needed.
30794 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
30796 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
30798 (copyprop_hardreg_forward_1): Don't call apply_change_group for
30799 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
30800 changes, call cprop_find_used_regs via note_stores.
30801 (copyprop_hardreg_forward): When copying vd from predecessor
30802 which has any queued DEBUG_INSN changes, make sure the pointers are
30803 cleared. At the end call df_analyze and then if there are any
30804 DEBUG_INSN changes queued at the end of some basic block for still
30805 live registers, apply them.
30806 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
30808 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
30810 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
30813 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
30815 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
30816 targets. Set the default with_cpu/with_arch from arch/cpu.
30817 Allow x86-64 and native for with_cpu/with_arch.
30819 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
30821 * ebitmap.c: Change calls to verify_popcount with calls to
30822 sbitmap_verify_popcount.
30823 (ebitmap_clear_bit): Fixed map->cacheindex test and
30824 map>cache update when bit clearing results in an empty
30827 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
30830 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
30831 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
30832 and support both V2DF and V2DI modes.
30833 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
30834 support both V2DF and V2DI modes.
30835 (general): Delete trailing whitespace from a few patterns.
30837 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30838 V2DF/V2DI interleave high/low builtins.
30840 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
30843 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
30844 interleave high/low functions.
30846 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
30848 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
30849 #pragma extern_prefix.
30851 2010-02-25 Jakub Jelinek <jakub@redhat.com>
30854 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
30855 BLKmode, assert op0 is a MEM and just adjust its mode.
30858 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
30859 if bitpos isn't multiple of mode's bitsize.
30861 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
30863 * c.opt (-ftemplate-depth=): New.
30864 (-ftemplate-depth-): Deprecate.
30865 * optc-gen.awk: Handle -ftemplate-depth=.
30866 * opth-gen.awk: Likewise.
30867 * c-opts.c (c_common_handle_option): Likewise.
30868 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
30870 2010-02-24 Jason Merrill <jason@redhat.com>
30872 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
30874 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30876 * cfg.c (alloc_aux_for_block): Remove inline.
30877 (alloc_aux_for_edge): Likewise.
30879 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30881 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
30883 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30885 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
30886 * config/i386/sol2-gas.h: New file.
30887 * config.gcc (i[34567]86-*-solaris2*): Use it.
30889 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
30892 * c-typeck.c (ep_convert_and_check): New.
30893 (build_conditional_expr): Use it.
30894 (build_binary_op): Likewise.
30896 2010-02-24 Jakub Jelinek <jakub@redhat.com>
30898 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
30901 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
30902 bounds even for -O+.
30903 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
30904 expr needs to have DECL_NAME set.
30906 2010-02-24 Nick Clifton <nickc@redhat.com>
30908 * config/mep/mep.c: Include gimple.h.
30909 (mep_function_uses_sp): Delete unused function.
30910 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
30911 parameters. Use unsigned integers to count args. Return a
30912 NULL_RTX instead of an error_mark_node. Toidy up formatting.
30914 2010-02-23 Jakub Jelinek <jakub@redhat.com>
30917 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
30918 greater or equal to nelt instead of 2 * nelt.
30919 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
30922 2010-02-23 Jason Merrill <jason@redhat.com>
30925 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
30926 in cfun->local_decls even if they have register types.
30929 * stor-layout.c (place_field): Don't warn about unnecessary
30930 DECL_PACKED if the type is packed.
30932 2010-02-23 Jakub Jelinek <jakub@redhat.com>
30935 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
30936 GOTOFF relocs, even when the base reg isn't pic pointer.
30938 2010-02-23 Michael Matz <matz@suse.de>
30941 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
30942 (expand_gimple_basic_block): Generate and use debug temps if there
30943 are debug uses left after the last real use of TERed ssa names.
30944 Unlink debug immediate uses when they are expanded.
30946 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
30949 * config/i386/i386.c (override_options): Reorganise to provide
30950 better error messages.
30952 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
30954 PR middle-end/43083
30955 * graphite-scop-detection.c (create_single_exit_edge): Move
30956 the call to find_single_exit_edge to....
30957 (create_sese_edges): ...here. Don't handle multiple edges
30958 exiting the function.
30959 (build_graphite_scops): Don't handle multiple edges
30960 exiting the function.
30962 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
30964 PR middle-end/43097
30965 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
30966 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
30968 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
30970 PR middle-end/43026
30971 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
30973 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
30976 * c-typeck.c (convert_arguments): Print declaration location.
30977 * c-common.c (validate_nargs): Rename as
30978 builtin_function_validate_nargs.
30979 (check_builtin_function_arguments): Update.
30981 2010-02-22 Richard Guenther <rguenther@suse.de>
30984 * tree-inline.c (declare_return_variable): Use the type of
30985 the call stmt lhs if available.
30987 2010-02-22 Duncan Sands <baldrick@free.fr>
30989 * passes.c (register_pass): Always consider all pass lists when
30990 ref_pass_instance_number is zero.
30992 2010-02-22 Richard Guenther <rguenther@suse.de>
30994 PR tree-optimization/42749
30995 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
30996 parameter. Do arithmetic in the original type.
30997 (update_accumulator_with_ops): Likewise.
30998 (adjust_accumulator_values): Adjust.
31000 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31002 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
31003 (QI to BLKmode splitter): New splitter.
31005 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
31007 * config/i386/i386.c (initial_ix86_tune_features): Turn on
31008 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
31010 2010-02-22 Richard Guenther <rguenther@suse.de>
31012 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
31014 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
31016 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
31017 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
31018 ($(T)crti.o, $(T)crtn.o): Remove rules.
31020 2010-02-21 Tobias Burnus <burnus@net-b.de>
31023 * doc/invoke.texi (-fassociative-math): Document that this
31024 option is automatically enabled for Fortran.
31026 2010-02-20 David S. Miller <davem@davemloft.net>
31028 * configure.ac: Test if linker and assembler properly support
31029 GOTDATA_OP relocations.
31030 * configure: Rebuild.
31031 * config.in: Likewise.
31032 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
31033 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
31034 (movsi_high_pic): Likewise.
31035 (movdi_lo_sum_pic): Likewise.
31036 (movdi_high_pic): Likewise.
31037 (movsi_pic_gotdata_op): New pattern.
31038 (movdi_pic_gotdata_op): Likewise.
31039 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
31040 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
31042 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
31045 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
31046 attribute to ssemul.
31047 (xop_mulv2div2di3_high): Ditto.
31049 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
31052 * c.opt (Wconversion-null): New option.
31053 * doc/invoke.texi (Wconversion-null): Document.
31055 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
31057 * common.opt (Wlarger-than-): Add Undocumented.
31059 2010-02-19 Mike Stump <mikestump@comcast.net>
31061 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
31063 2010-02-19 Jason Merrill <jason@redhat.com>
31066 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
31067 * configure: Likewise.
31069 2010-02-20 Alan Modra <amodra@gmail.com>
31071 PR middle-end/42344
31072 * cgraph.h (cgraph_make_decl_local): Declare.
31073 * cgraph.c (cgraph_make_decl_local): New function.
31074 (cgraph_make_node_local): Use it.
31075 * cgraphunit.c (cgraph_function_versioning): Likewise.
31076 * ipa.c (function_and_variable_visibility): Likewise.
31078 2010-02-19 Jakub Jelinek <jakub@redhat.com>
31081 * except.c (sjlj_emit_function_enter): Don't call
31082 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
31084 * rtl.h (add_reg_br_prob_note): Remove prototype.
31086 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
31089 * c-common.c (conversion_warning): Remove widening conversions
31090 before checking the conversion of integers to reals.
31092 2010-02-19 Mike Stump <mikestump@comcast.net>
31094 PR middle-end/43125
31095 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
31098 * cgraphunit.c (process_function_and_variable_attributes): Check
31099 DECL_PRESERVE_P instead of looking up attribute "used".
31100 * ipa-pure-const.c (check_decl): Likewise.
31101 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
31102 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
31103 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
31104 instead of attribute "used".
31105 * config/sol2-c.c (solaris_pragma_init): Likewise.
31106 (solaris_pragma_fini): Likewise.
31108 2010-02-19 Jakub Jelinek <jakub@redhat.com>
31110 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
31111 Use XCNEW instead of xcalloc.
31112 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
31113 XNEW instead of xmalloc.
31114 (get_fields): Use XNEWVEC instead of xmalloc.
31117 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
31118 populate vars array.
31119 (create_new_general_access): For debug stmts just reset value.
31120 (get_stmt_accesses): For accesses within debug stmts just record them
31121 using add_access_to_acc_sites instead of preventing the peeling or
31122 counting them as accesses.
31124 PR middle-end/42233
31125 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
31127 2010-02-19 Richard Guenther <rguenther@suse.de>
31129 PR tree-optimization/42916
31130 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
31133 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
31135 * configure.ac: Replace all uses of changequote in macro arguments
31136 with proper quoting.
31138 2010-02-19 Jakub Jelinek <jakub@redhat.com>
31140 PR middle-end/42233
31141 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
31143 2010-02-19 Richard Guenther <rguenther@suse.de>
31145 PR tree-optimization/42944
31146 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
31147 test for aliasing with errno.
31149 2010-02-19 Jakub Jelinek <jakub@redhat.com>
31151 PR middle-end/42233
31152 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
31153 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
31154 * dojump.c: Include output.h.
31155 (inv): New inline function.
31156 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
31157 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
31158 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
31159 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
31160 argument, pass it down to other calls.
31161 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
31162 add REG_BR_PROB note to the conditional jump.
31163 * cfgexpand.c (add_reg_br_prob_note): Removed.
31164 (expand_gimple_cond): Don't call it, add the probability
31165 as last argument to jumpif_1/jumpifnot_1.
31166 * Makefile.in (dojump.o): Depend on output.h.
31167 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
31169 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
31170 * stmt.c (do_jump_if_equal): Likewise.
31171 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
31172 * loop-unswitch.c (compare_and_jump_seq): Likewise.
31173 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
31175 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
31176 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
31177 jumpifnot_1 callers.
31178 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
31180 (store_expr): Adjust jumpifnot caller.
31181 (store_constructor): Adjust jumpif caller.
31183 PR middle-end/42233
31184 * gimplify.c (gimple_boolify): For __builtin_expect call
31185 gimple_boolify also on its first argument.
31187 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
31189 * configure.ac (gnu-unique-object): Wrap regexps using [] in
31191 (__stack_chk_fail): Ditto. Remove quadrigraphs.
31192 * configure: Regenerated.
31194 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31196 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
31197 lang_hooks.types_compatible_p instead of comptypes.
31199 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
31201 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
31202 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
31203 if __prefer_thumb__ is defined.
31205 2010-02-18 Martin Jambor <mjambor@suse.cz>
31207 PR tree-optimization/43066
31208 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
31209 array with zero-sized element type.
31211 2010-02-18 Jakub Jelinek <jakub@redhat.com>
31213 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
31214 rtx, allocate struct var_loc_node here and return it to the
31215 caller, and only if it is actually needed.
31216 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
31217 move it earlier and return immediately if it returns NULL.
31219 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
31221 * config/sparc/gas.h: New file. Restore
31222 TARGET_ASM_NAMED_SECTION to its ELF default.
31223 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
31224 check !HAVE_GNU_AS.
31225 * config/sparc/sparc.c (sparc_elf_asm_named_section):
31226 Likewise. Add ATTRIBUTE_UNUSED to prototype.
31227 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
31228 after sparc/sysv4.h.
31230 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
31232 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
31234 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
31236 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
31237 patterns from predicated pattern.
31239 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
31242 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
31243 for insn mnemonic suffix.
31245 2010-02-17 Richard Guenther <rguenther@suse.de>
31247 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
31250 2010-02-17 Jakub Jelinek <jakub@redhat.com>
31253 * caller-save.c (save_call_clobbered_regs): If BB ends with
31254 a DEBUG_INSN, move any notes in between last real insn and the last
31255 DEBUG_INSN after the last DEBUG_INSN.
31257 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
31259 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
31260 Fix return type. Fix argument type. Explain meaning of return value.
31262 2010-02-16 Richard Guenther <rguenther@suse.de>
31264 PR tree-optimization/41043
31265 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
31266 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
31268 (vrp_visit_phi_node): ... but only for loop PHI nodes.
31270 2010-02-16 Ira Rosen <irar@il.ibm.com>
31272 PR tree-optimization/43074
31273 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
31274 * tree-vect-loop.c (vect_analyze_loop_operations): Add
31275 vectorizable cycles in hybrid SLP check.
31276 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
31278 2010-02-16 Richard Guenther <rguenther@suse.de>
31280 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
31281 (true_dependence): If memrefs_conflict_p computes must-alias
31282 trust it. Move TBAA check after offset-based disambiguation.
31283 (canon_true_dependence): Likewise.
31285 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
31287 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
31288 * doc/invoke.texi: Document it.
31289 * var-tracking.c: Include toplev.h and params.h.
31290 (vt_find_locations): Return bool indicating success. Compute
31291 hash sizes unconditionally. Check new parameter, report.
31292 (variable_tracking_main_1): Check vt_find_locations results and
31293 retry. Renamed from...
31294 (variable_tracking_main): ... this. New wrapper to preserve
31295 flag_var_tracking_assignments.
31296 * Makefile.in (var-tracking.o): Adjust dependencies.
31298 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
31299 Jakub Jelinek <jakub@redhat.com>
31302 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
31303 if weak_import attribute is present.
31304 * config/darwin.c (machopic_select_section): Likewise.
31306 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
31308 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
31309 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
31310 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
31311 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
31313 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
31316 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
31317 Fix argument types.
31319 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
31320 Rewrite text to refer to the names.
31322 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
31324 * config/i386/i386-builtin-types.def
31325 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
31326 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
31327 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
31328 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
31329 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
31330 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
31331 IX86_BUILTIN_VPERMIL2PS256.
31332 (MULTI_ARG_4_DF2_DI_I): Defined.
31333 (MULTI_ARG_4_DF2_DI_I1): Defined.
31334 (MULTI_ARG_4_SF2_SI_I): Defined.
31335 (MULTI_ARG_4_SF2_SI_I1): Defined.
31336 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
31337 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
31338 __builtin_ia32_vpermil2ps256.
31339 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
31340 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
31341 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
31342 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
31343 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
31344 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
31345 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
31346 CODE_FOR_xop_vpermil2v8sf3.
31347 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
31348 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
31349 * config/i386/xopintrin.h (_mm_permute2_pd): New.
31350 (_mm256_permute2_pd): New.
31351 (_mm_permute2_ps): New.
31352 (_mm256_permute2_ps): New.
31354 2010-02-15 Nick Clifton <nickc@redhat.com>
31356 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
31357 boolean parameters. Use emit_jump_insn when emitting a pop
31358 instruction containing a return insn.
31359 (push): Use 'true' rather than '1' as second parameter to F.
31360 (h8300_expand_prologue): Likewise.
31361 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
31362 (h8300_expand_epilogue): Likewise.
31364 2010-02-15 Richard Guenther <rguenther@suse.de>
31366 PR middle-end/43068
31367 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
31370 2010-02-15 Nick Clifton <nickc@redhat.com>
31372 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
31375 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
31377 * intl.c (fake_ngettext): New function.
31378 * intl.h (fake_ngettext): Declare.
31379 (ngettext): Define macro.
31380 * collect2.c (notice_translated): New function.
31381 (main): Use notice_translated and ngettext.
31382 * collect2.h (notice_translated): Declare.
31384 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
31386 * reorg.c (delete_computation): Comment fixes.
31387 * caller-save.c (setup_save_areas): Idem.
31388 * sel-sched-dump.c (dump_lv_set): Idem.
31391 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31393 * config/s390/s390.c (s390_sched_init): New function.
31394 (TARGET_SCHED_INIT): Target hook defined.
31396 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
31397 Jack Howarth <howarth@bromo.med.uc.edu>
31398 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
31401 Partial revert of unintended change in fix for PR41605.
31402 * config/darwin.h: Fix typo.
31403 * config/darwin9.h: Same.
31405 2010-02-11 Jakub Jelinek <jakub@redhat.com>
31407 * c-pch.c (pch_init): Clear v.
31409 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31411 PR middle-end/42930
31412 * graphite-scop-detection.c (graphite_can_represent_scev): Call
31413 graphite_can_represent_init for MULT_EXPR.
31415 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31417 PR middle-end/42914
31418 PR middle-end/42530
31419 * graphite-sese-to-poly.c (remove_phi): New.
31420 (translate_scalar_reduction_to_array): Call remove_phi.
31422 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31424 PR middle-end/42771
31425 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
31426 * graphite-clast-to-gimple.h (gloog): Update declaration.
31427 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
31428 * graphite-poly.h (struct poly_bb): Add missing comments.
31429 (struct scop): Add poly_scop_p field.
31430 (POLY_SCOP_P): New.
31431 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
31432 * graphite.c (graphite_transform_loops): Build the polyhedral
31433 representation for each scop before code generation.
31434 * sese.c (rename_variables_in_operand): Removed.
31435 (rename_variables_in_expr): Return the renamed expression.
31436 (rename_sese_parameters): New.
31437 * sese.h (rename_sese_parameters): Declared.
31439 2010-02-11 Richard Guenther <rguenther@suse.de>
31441 PR tree-optimization/42998
31442 * tree-ssa-pre.c (create_expression_by_pieces): Treat
31443 POINTER_PLUS_EXPR properly.
31445 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31446 Changpeng Fang <changpeng.fang@amd.com>
31448 PR middle-end/40886
31449 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
31450 the cost of an IV candidate when the IV is used in a test against zero.
31452 * gcc.dg/tree-ssa/ivopts-3.c: New.
31454 2010-02-11 Richard Guenther <rguenther@suse.de>
31457 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
31458 pointer-vs-decl case by swapping refs. Handle some cases
31459 of pointer-vs-decl disambiguations more conservatively.
31460 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
31461 to false after expanding.
31463 2010-02-11 Richard Guenther <rguenther@suse.de>
31466 * gcc.c (process_command): Handle LTO file@offset case more
31469 2010-02-11 Jakub Jelinek <jakub@redhat.com>
31471 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
31472 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
31474 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
31476 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
31477 if MEM's mode size isn't DWARF2_ADDR_SIZE.
31478 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
31479 Optimize eq/ne comparisons when both arguments are known to be
31481 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
31482 Don't mask operands unnecessarily if they are known to be already
31485 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
31487 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
31490 2010-02-10 Richard Guenther <rguenther@suse.de>
31492 PR tree-optimization/43017
31493 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
31494 for wrapping signed arithmetic.
31496 2010-02-10 Jakub Jelinek <jakub@redhat.com>
31499 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
31500 if no debug info should be emitted for it.
31502 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
31504 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
31505 note when flag_exceptions is set.
31507 2010-02-10 Duncan Sands <baldrick@free.fr>
31509 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
31511 2010-02-10 Richard Guenther <rguenther@suse.de>
31514 * tree.c (get_unwidened): Handle constants.
31515 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
31517 2010-02-10 Martin Jambor <mjambor@suse.cz>
31520 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
31521 check for variable argument counts independently.
31523 2010-02-10 Christian Bruel <christian.bruel@st.com>
31526 * config/sh/sh.c (find_barrier): Increase length for non delayed
31527 conditional branches.
31529 2010-02-10 Christian Bruel <christian.bruel@st.com>
31531 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
31533 2010-02-10 Jakub Jelinek <jakub@redhat.com>
31535 * builtins.c (set_builtin_user_assembler_name): Also handle
31536 ffs if int is smaller than word.
31538 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
31540 PR middle-end/42973
31541 * ira-conflicts.c (get_dup): Remove.
31542 (process_reg_shuffles): Add new parameter. Use it as an
31543 additional guard for copy generation.
31544 (add_insn_allocno_copies): Rewrite.
31546 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
31548 * common.opt (fsched2-use-traces): Preserved for backward
31550 * doc/invoke.texi: Remove the documentation about option
31551 -fsched2-use-traces.
31552 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
31553 flag_sched2_use_traces.
31554 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
31555 the backward compatibility flag section.
31557 2010-02-09 Richard Guenther <rguenther@suse.de>
31559 PR tree-optimization/43008
31560 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
31561 make HEAP variables initialized from global memory if they
31562 are not known builtin functions.
31563 (find_func_aliases): Adjust.
31565 2010-02-09 Richard Guenther <rguenther@suse.de>
31567 PR tree-optimization/43000
31568 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
31569 arithmetic manually.
31571 2010-02-08 Jakub Jelinek <jakub@redhat.com>
31573 PR tree-optimization/42931
31574 * tree-loop-linear.c (try_interchange_loops): Don't call
31575 double_int_mul if estimated_loop_iterations failed.
31577 2010-02-08 Martin Jambor <mjambor@suse.cz>
31579 PR middle-end/42898
31580 * tree-sra.c (build_accesses_from_assign): Do not mark in
31581 should_scalarize_away_bitmap if stmt has volatile ops.
31582 (sra_modify_assign): Do not process assigns piecemeal if if stmt
31585 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
31587 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
31589 2010-02-07 Adam Nemet <adambnmet@gmail.com>
31591 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
31592 before the pattern.
31594 2010-02-07 Andrew Pinski <pinskia@gmail.com>
31596 PR middle-end/42946
31597 * df-core.c (df_finish_pass): Change type of saved_flags to int.
31599 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
31601 PR middle-end/42988
31602 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
31603 to unknown_dependence.
31604 (graphite_legal_transform_dr): Handle the unknown_dependence.
31605 (graphite_carried_dependence_level_k): Same.
31607 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
31609 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
31611 2010-02-07 Richard Guenther <rguenther@suse.de>
31613 PR middle-end/42991
31614 * expr.c (get_inner_reference): Always initialize *pbitsize.
31616 2010-02-07 Richard Guenther <rguenther@suse.de>
31618 PR middle-end/42956
31619 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
31620 new ARRAY_REFs on variable size element or minimal index arrays.
31622 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
31623 gimple_fold_indirect_ref.
31625 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
31628 * arm.c (arm_override_options): Just return if the user has specified
31629 an invalid fpu name.
31631 2010-02-03 Jason Merrill <jason@redhat.com>
31634 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
31635 i386_pe_maybe_record_exported_symbol.
31637 2010-02-05 Steve Ellcey <sje@cup.hp.com>
31640 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
31641 (pa_delegitimize_address): New function.
31643 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
31645 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
31646 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
31648 2010-02-05 Richard Guenther <rguenther@suse.de>
31651 * lto-streamer-in.c (get_resolution): Deal with references
31652 to undefined functions.
31654 2010-02-05 Richard Guenther <rguenther@suse.de>
31656 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
31657 (fold_const_aggregate_ref): Likewise.
31658 (ccp_fold_stmt): Substitute loads.
31659 (maybe_fold_reference): Verify types before substituting.
31661 (fold_gimple_assign): Unshare properly.
31662 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
31664 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
31666 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
31667 for rs6000_gen_cell_microcode.
31669 2010-02-04 Richard Guenther <rguenther@suse.de>
31671 PR rtl-optimization/42952
31672 * dse.c (const_or_frame_p): Remove MEM handling.
31674 2010-02-04 Nick Clifton <nickc@redhat.com>
31676 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
31677 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
31678 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
31679 (mn10300_asm_output_mi_thunk): New function.
31680 (mn10300_can_output_mu_thunk): New function.
31681 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
31682 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
31683 (FUNCTION_ARG): Delete incorrect comment.
31685 2010-02-03 Jason Merrill <jason@redhat.com>
31688 * fold-const.c (operand_equal_p): Handle erroneous types.
31690 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
31692 * config/h8300/h8300.md (can_delay): Fix attibute condition.
31694 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
31696 PR rtl-optimization/42941
31697 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
31700 2010-02-03 Jason Merrill <jason@redhat.com>
31703 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
31705 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
31708 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
31709 (cselib_reset_table): Renamed from...
31710 (cselib_reset_table_with_next_value): ... this.
31711 (cselib_get_next_uid): Renamed from...
31712 (cselib_get_next_unknown_value): ... this.
31713 * cselib.c (next_uid): Renamed from...
31714 (next_unknown_value): ... this.
31715 (cselib_clear_table): Adjust.
31716 (cselib_reset_table): Adjust. Renamed from...
31717 (cselib_reset_table_with_next_value): ... this.
31718 (cselib_get_next_uid): Adjust. Renamed from...
31719 (cselib_get_next_unknown_value): ... this.
31720 (get_value_hash): Use hash.
31721 (cselib_hash_rtx): Likewise.
31722 (new_cselib_val): Adjust. Set and dump uid.
31723 (cselib_lookup_mem): Pass next_uid as hash.
31724 (cselib_subst_to_values): Likewise.
31725 (cselib_log_lookup): Dump uid.
31726 (cselib_lookup): Pass next_uid as hash. Adjust.
31727 (cselib_process_insn): Adjust.
31728 (cselib_init): Initialize next_uid.
31729 (cselib_finish): Adjust.
31730 (dump_cselib_table): Likewise.
31731 * dse.c (canon_address): Dump value uid.
31732 * print-rtl.c (print_rtx): Print value uid.
31733 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
31735 (dv_uid): New function, sort of renamed from...
31736 (dv_htab_hash): ... this, reimplemented in terms of it and...
31737 (dv_uid2hash): ... this. New.
31738 (variable_htab_eq): Drop excess assertions.
31739 (tie_break_pointers): Removed.
31740 (canon_value_cmp): Compare uids.
31741 (variable_post_merge_New_vals): Print uids.
31742 (vt_add_function_parameters): Adjust.
31743 (vt_initialize): Reset table. Adjust.
31745 2010-02-03 Richard Guenther <rguenther@suse.de>
31747 PR tree-optimization/42944
31748 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
31749 (call_may_clobber_ref_p_1): Likewise. Properly handle
31750 malloc and calloc clobbering errno.
31752 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
31754 * doc/invoke.texi: Fix name of sched1 dump.
31756 * opts.c (decode_options): Set flag_tree_switch_conversion
31757 only conditionally on optimize >= 2.
31759 * gcse.c: Assorted comment fixes in pass description.
31761 2010-02-03 Anthony Green <green@moxielogic.com>
31763 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
31764 nop padding in order to maintain alignment of storage location of
31765 target function address.
31766 (moxie_trampoline_init): Store target function address at newly
31768 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
31770 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
31772 2010-02-03 Richard Guenther <rguenther@suse.de>
31774 PR middle-end/42927
31775 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
31777 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31779 * config.gcc: Reenable check for obsolete targets.
31780 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
31781 mips-sgi-irix6.[0-4]*.
31783 2010-02-02 Nick Clifton <nickc@redhat.com>
31785 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
31786 constant size of 4 as being the same as 0.
31787 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
31788 can take values in the range 0..4.
31790 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
31793 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
31794 as _darwin10_Unwind_FindEnclosingFunction().
31795 * libgcc-libsystem.ver: New.
31797 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
31800 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
31801 implicitly set registers.
31803 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
31805 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
31806 (arm_override_options): Allow automatic selection of the thread
31807 pointer register if thumb2.
31808 (legitimize_pic_address): Improve code sequences for Thumb2.
31809 (arm_call_tls_get_addr): Likewise.
31810 (legitimize_tls_address): Likewise.
31811 * arm.md (pic_load_addr_arm): Delete. Replace with ...
31812 (pic_load_addr_32bit): ... this. New named pattern.
31813 * thumb2.md (pic_load_addr_thumb2): Delete.
31814 (pic_load_dot_plus_four): Delete.
31815 (tls_load_dot_plus_four): New named pattern.
31817 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31820 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
31821 Document fix for TLS bug.
31823 2010-01-31 Richard Guenther <rguenther@suse.de>
31825 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
31826 conservatively correct.
31828 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31832 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31834 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
31836 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31838 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
31840 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
31842 * config.gcc: Adjust order of makefile fragments for mingw targets.
31844 2010-01-31 Richard Guenther <rguenther@suse.de>
31846 PR middle-end/42898
31847 * gimplify.c (gimplify_init_constructor): For volatile LHS
31848 initialize a temporary.
31850 2010-01-31 Matthias Klose <doko@ubuntu.com>
31852 * configure.ac: Fix __stack_chk_fail check for cross builds configured
31854 * configure: Regenerate.
31856 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
31858 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
31859 the same alias set and their sizes different constantness.
31860 (aliasing_component_refs_p): Revert 2009-10-24 change.
31862 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31864 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
31867 2010-01-29 Richard Guenther <rguenther@suse.de>
31869 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
31870 Assert we successfully updated the call.
31872 2010-01-29 Jakub Jelinek <jakub@redhat.com>
31874 PR rtl-optimization/42889
31875 * df.h (df_set_bb_dirty_nonlr): New prototype.
31876 * df-core.c (df_set_bb_dirty_nonlr): New function.
31877 * df-scan.c (df_insn_rescan): Call it instead of
31878 df_set_bb_dirty for DEBUG_INSNs.
31880 2010-01-29 Richard Guenther <rguenther@suse.de>
31882 PR middle-end/37448
31883 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
31884 quadratic behavior in most cases.
31886 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
31889 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
31890 in the call to gen_x86_movsicc_0_m1.
31892 2010-01-28 Richard Guenther <rguenther@suse.de>
31894 PR tree-optimization/42871
31895 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
31897 2010-01-28 Richard Guenther <rguenther@suse.de>
31899 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
31900 into call arguments.
31902 2010-01-28 Richard Guenther <rguenther@suse.de>
31904 PR middle-end/42883
31905 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
31906 the forwarder if the destination is an EH landing pad.
31908 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
31910 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
31911 block list passed to gimple_duplicate_sese_tail.
31912 (parallelize_loops): Avoid parallelization when the function
31913 has_nonlocal_label.
31914 Avoid parallelization when the preheader is IRREDUCIBLE.
31915 Try to optimize when estimated_loop_iterations_int is unresolved.
31916 Add the loop's location to the dump file.
31917 * tree-cfg.c (add_phi_args_after_redirect): Remove.
31918 (gimple_duplicate_sese_tail): Remove the check for the latch.
31919 Redirect nexits to the exit block.
31920 Remove handling of the incoming edges to the latch.
31921 Redirect the backedge from the copied latch to the exit bb.
31923 2010-01-28 Michael Matz <matz@suse.de>
31926 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
31927 Wrap force_reg into a sequence, emit it before user.
31929 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
31931 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
31933 (arm_legacy_rev): Likewise.
31934 (thumb_legacy_rev): Likewise.
31936 2010-01-27 Jakub Jelinek <jakub@redhat.com>
31938 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
31939 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
31940 on MEM's address failed, try avoid_constant_pool_reference and
31941 recurse if it returned something different.
31942 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
31943 address, try avoid_constant_pool_reference and recurse if it
31944 returned something different.
31945 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
31946 address and avoid_constant_pool_reference returned something
31947 different, don't set have_address.
31949 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
31952 * var-tracking.c (val_store): Add modified argument, obey it.
31954 (count_uses): Move down logging of main.
31955 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
31956 don't need resolution.
31957 (emit_notes_in_bb): Likewise.
31959 2010-01-27 Richard Guenther <rguenther@suse.de>
31961 PR middle-end/42878
31962 * tree-inline.c (remap_decl): Delay remapping of SSA name
31963 default definitions until we need them.
31965 2010-01-27 Jakub Jelinek <jakub@redhat.com>
31967 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
31968 (rs6000_delegitimize_address): New function.
31970 * config/s390/s390.c (s390_delegitimize_address): Call
31971 delegitimize_mem_from_attrs.
31973 PR middle-end/42874
31974 * tree-inline.c (cannot_copy_type_1): Removed.
31975 (copy_forbidden): Don't forbid copying of functions containing
31976 records/unions with variable length fields.
31978 2010-01-27 Christian Bruel <christian.bruel@st.com>
31982 * config/sh/sh.c (find_barrier): Increase length for non delayed
31983 conditional branches.
31985 2010-01-27 Matthias Klose <doko@ubuntu.com>
31987 * configure.ac (gnu-unique-object): Fix ldd version check.
31988 * configure: Regenerate.
31990 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31992 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
31994 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
31995 Test for HAVE_GNU_AS value.
31997 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31999 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
32000 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
32001 INT64_TYPE): Define.
32002 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
32003 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
32004 INT_LEAST64_TYPE): Define.
32005 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
32006 UINT_LEAST64_TYPE): Define.
32007 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
32008 INT_FAST64_TYPE): Define.
32009 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
32010 UINT_FAST64_TYPE): Define.
32011 (INTMAX_TYPE, UINTMAX_TYPE): Define.
32012 (INTPTR_TYPE, UINTPTR_TYPE): Define.
32013 (SIG_ATOMIC_TYPE): Define.
32015 2010-01-26 Richard Guenther <rguenther@suse.de>
32017 * df-scan.c (df_scan_set_bb_info): Remove assert.
32018 (df_insn_rescan_debug_internal): Merge asserts.
32019 (df_install_ref): Likewise.
32020 (df_mark_reg): Use bitmap_set_range.
32021 (df_hard_reg_used_p): Remove assert.
32022 (df_hard_reg_used_count): Likewise.
32024 2010-01-26 Richard Guenther <rguenther@suse.de>
32026 PR rtl-optimization/42685
32027 * web.c (web_main): Ignore DEBUG_INSNs.
32029 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
32031 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
32033 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
32034 Fix types of fndecl and arglist parameters.
32036 2010-01-26 Richard Guenther <rguenther@suse.de>
32038 PR middle-end/42806
32039 * tree-eh.c (unsplit_eh): Skip debug insns.
32041 2010-01-26 Richard Guenther <rguenther@suse.de>
32043 PR tree-optimization/42250
32044 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
32046 2010-01-26 Jakub Jelinek <jakub@redhat.com>
32049 * omp-low.c (expand_omp_sections): Only use single_pred if
32050 l2_bb is single_pred_p.
32052 2010-01-25 Christian Bruel <christian.bruel@st.com>
32055 * config/sh/sh.c (find_barrier): Increase length for non delayed
32056 conditional branches.
32057 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
32059 2010-01-24 David S. Miller <davem@davemloft.net>
32061 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
32062 define if not using GAS.
32063 * config/sparc/sparc.c (sparc_elf_asm_named_section):
32064 Likewise. Delete SECTION_MERGE code, which is only applicable
32067 2010-01-24 Mark Mitchell <mark@codesourcery.com>
32070 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
32071 mangling of va_list in system headers.
32073 2010-01-23 Toon Moene <toon@moene.org>
32075 * tree-predcom.c (combine_chains): Return NULL, not false.
32077 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
32079 * tree-loop-distribution.c (distribute_loop): Fix declaration and
32080 initialization of variable res to agree with return type.
32082 2010-01-22 Steve Ellcey <sje@cup.hp.com>
32084 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
32085 * tree-sra.c: Add include of expr.h.
32087 2010-01-22 Jakub Jelinek <jakub@redhat.com>
32089 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
32090 insert the debug stmt on the single non-EH edge from the stmt.
32092 2010-01-22 Richard Henderson <rth@redhat.com>
32095 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
32096 the RHS until after generate_subtree_copies has insertted its
32097 code before the current statement.
32099 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
32101 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
32103 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
32105 2010-01-21 Martin Jambor <mjambor@suse.cz>
32107 PR tree-optimization/42585
32108 * tree-sra.c (struct access): New field grp_total_scalarization.
32109 (dump_access): Dump the new field.
32110 (should_scalarize_away_bitmap): New variable.
32111 (cannot_scalarize_away_bitmap): Likewise.
32112 (sra_initialize): Allocate new bitmaps.
32113 (sra_deinitialize): Free new bitmaps.
32114 (create_access_1): New function.
32115 (create_access): Parts moved to create_access_1.
32116 (type_consists_of_records_p): New function.
32117 (completely_scalarize_record): Likewise.
32118 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
32119 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
32120 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
32122 (analyze_all_variable_accesses): Completely scalarize small eligible
32125 2010-01-21 Martin Jambor <mjambor@suse.cz>
32127 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
32129 2010-01-21 Andrew Haley <aph@redhat.com>
32131 * gcc.c (process_command): Move lang_specific_driver before
32132 setting cc_libexec_prefix.
32134 2010-01-21 Richard Guenther <rguenther@suse.de>
32136 PR middle-end/19988
32137 * fold-const.c (negate_expr_p): Pretend only negative
32138 real constants are easily negatable.
32140 2010-01-20 Janis Johnson <janis187@us.ibm.com>
32141 Jason Merrill <jason@redhat.com>
32143 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
32144 (TYPE_TRANSPARENT_AGGR): this, for union and record.
32145 * calls.c (initialize argument_information): Handle it.
32146 * c-common.c (handle_transparent_union_attribute): Use new name.
32147 * c-decl.c (finish_struct): Ditto.
32148 * c-typeck.c (type_lists_compatible_p): Ditto.
32149 (convert_for_assignment): Use new name and also handle record.
32150 * function.c (aggregate_value_p): Handle it.
32151 (pass_by_reference): Ditto.
32152 (assign_parm_data_types): Ditto.
32153 * print-tree.c (print_node): Ditto.
32154 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
32155 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
32156 * tree.c (first_field): New fn.
32158 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
32161 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
32162 even when linking statically, for now.
32164 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
32167 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
32168 without a cselib val.
32169 (count_uses): Accept MO_VAL_SET with no val on stores.
32170 (add_stores): Likewise.
32172 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32174 * var-tracking.c (check_value_val): Add a compile time assertion.
32175 (dv_is_decl_p): Simplify.
32176 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
32177 gcc_assert if ENABLE_CHECKING.
32179 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
32182 * var-tracking.c: Include tree-flow.h.
32183 (mem_dies_at_call): New.
32184 (dataflow_set_preserve_mem_locs): Use it.
32185 (dataflow_set_remove_mem_locs): Likewise.
32186 (dump_var): Renamed from dump_variable. Adjust all callers.
32187 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
32188 * Makefile.in (var-tracking.o): Adjust deps.
32190 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
32192 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
32194 2010-01-20 Richard Guenther <rguenther@suse.de>
32196 PR tree-optimization/42717
32197 * tree-ssa-dce.c (get_live_post_dom): Remove.
32198 (forward_edge_to_pdom): Take an arbitrary edge to copy
32199 degenerate PHI args from.
32200 (remove_dead_stmt): Use the first post-dominator even if it
32201 does not contain live statements as redirection destination.
32203 2010-01-20 Richard Guenther <rguenther@suse.de>
32205 * tree-inline.c (estimate_num_insns): Handle EH builtins.
32207 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32209 * sel-sched.c (create_speculation_check): Remove set but not used
32211 (try_transformation_cache): Remove set but not used variable ds.
32212 (calculate_privileged_insns): Remove set but not used variables
32213 cur_insn and min_spec_insn.
32214 (find_best_expr): Remove set but not used variable avail_n.
32215 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
32217 * cgraphunit.c (assemble_thunk): Remove set but not used variable
32219 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
32220 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
32221 new_scop_exit_edge.
32223 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
32226 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
32227 cpu types. Add support for *-sse3 cpu types.
32228 (x86_64-*-*): Ditto.
32230 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32232 PR middle-end/42803
32233 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
32234 argument, call initializer_constant_valid_p_1 instead of
32235 initializer_constant_valid_p, pass CACHE to it, return NULL
32236 immediately if first call returns NULL.
32237 (initializer_constant_valid_p_1): New function.
32238 (initializer_constant_valid_p): Use it.
32240 2010-01-20 Thomas Quinot <quinot@adacore.com>
32242 * tree.def (PLACEHOLDER_EXPR): Fix comment.
32244 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32246 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
32247 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
32248 (loc_list_from_tree): Don't handle unsigned division. Handle
32249 signed modulo using DW_OP_{over,over,div,mul,minus}.
32250 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
32251 modulo instead of signed.
32253 2010-01-20 DJ Delorie <dj@redhat.com>
32255 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
32257 (h8300_emit_stack_adjustment): Propogate it.
32259 (h8300_expand_prologue): Likewise.
32260 (h8300_expand_epilogue): Likewise.
32262 2010-01-19 Michael Matz <matz@suse.de>
32264 PR tree-optimization/41783
32265 * tree-data-ref.c (toplevel): Include flags.h.
32266 (dump_data_dependence_relation): Also dump the inputs if the
32267 result will be unknown.
32268 (split_constant_offset_1): Look through some conversions.
32269 * tree-predcom.c (determine_roots_comp): Restart a new chain if
32270 the offset from last element is too large.
32271 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
32272 (reassociate_to_the_same_stmt): Handle vector registers.
32273 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
32274 (e.g. conversions).
32275 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
32276 wide_prolog_niters argument, emit widening instructions.
32277 (vect_do_peeling_for_alignment): Adjust caller, use widened
32278 variant of the iteration cound.
32279 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
32281 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32284 * config/arm/neon-testgen.m (emit_automatics): New parameter
32285 features. Adjust for Fixed_return_reg feature.
32286 (test_intrinsic): Call emit_automatics with new feature.
32287 * config/arm/neon.ml: Update copyright years.
32288 (features): New Fixed_return_reg feature.
32289 (ops): Update feature for Vget_low.
32291 2010-01-19 Jakub Jelinek <jakub@redhat.com>
32293 PR tree-optimization/42719
32294 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
32298 * fwprop.c (all_uses_available_at): Return false if def_set dest
32299 is a REG that is used in def_insn.
32301 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
32303 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
32305 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
32306 Add argument names.
32308 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
32310 * target.h (struct gcc_target) <secondary_reload>: Change type
32311 of last argument to secondary_reload_info *.
32313 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
32316 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
32317 memory references with unaligned offsets. Remove CQImode handling.
32318 (unaligned_memory_operand): Return 1 for memory references with
32319 unaligned offsets. Remove CQImode handling.
32321 2010-01-18 Richard Guenther <rguenther@suse.de>
32323 PR middle-end/39954
32324 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
32327 2010-01-18 Richard Guenther <rguenther@suse.de>
32329 PR tree-optimization/42781
32330 * tree-ssa-structalias.c (find_what_var_points_to): Skip
32331 restrict processing only if the original variable was artificial.
32333 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
32335 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
32336 find number of popped argument bytes.
32338 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
32339 Fix the text that describes the return value for invalid insns.
32341 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
32343 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
32344 Clarify what 'cost of the -dependence' is. Fix quoting.
32346 * toplev.c (default_get_pch_validity): Rename argument to "sz".
32347 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
32349 2010-01-17 Jakub Jelinek <jakub@redhat.com>
32351 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
32352 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
32354 2010-01-17 Richard Guenther <rguenther@suse.de>
32356 PR middle-end/42248
32357 * function.c (split_complex_args): Take a VEC to modify.
32358 (assign_parms_augmented_arg_list): Build a VEC instead of
32359 a chain of PARM_DECLs.
32360 (assign_parms_unsplit_complex): Take a VEC of arguments.
32361 Do not fixup unmodified parms.
32362 (assign_parms): Deal with the VEC.
32363 (gimplify_parameters): Likewise.
32365 2010-01-17 Richard Guenther <rguenther@suse.de>
32367 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
32368 node existence check.
32369 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
32370 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
32371 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
32372 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
32373 (gimple_execute_on_growing_pred): Likewise.
32375 2010-01-17 Richard Guenther <rguenther@suse.de>
32377 PR tree-optimization/42773
32378 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
32379 (compute_antic_aux): Likewise.
32380 (compute_partial_antic_aux): Likewise.
32382 2010-01-17 Jie Zhang <jie.zhang@analog.com>
32385 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
32388 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
32390 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
32393 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
32394 Fix markup for strict argument.
32396 (TARGET_SCHED_REORDER2): Fix argument types.
32398 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
32399 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
32401 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
32402 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
32404 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
32407 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
32408 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
32409 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
32410 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
32411 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
32413 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
32415 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
32417 (TARGET_ASM_RELOC_RW_MASK): Add return type.
32418 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
32420 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
32422 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
32425 (TARGET_ASM_NAMED_SECTION): Fix argument list.
32427 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
32428 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
32430 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
32432 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
32434 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
32435 referring to it. Fix language.
32437 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
32439 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
32441 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
32443 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
32445 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
32446 '@var{stream}. Remove stray 'and'.
32448 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
32450 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
32452 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
32454 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
32455 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
32457 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
32458 Fix description of return value.
32459 Rename argument "sz" to "len."
32461 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
32462 Clarify meaning of 'true' return value.
32464 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
32466 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
32467 rep_mode versus mode_rep.
32469 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
32471 (TARGET_BUILTIN_DECL): Fix name.
32473 (TARGET_COMMUTATIVE_P): Fix type of first argument.
32475 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
32477 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
32479 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
32481 (TARGET_RELAXED_ORDERING): Use @deftypevr.
32483 (TARGET_GET_DRAP_RTX): Note that this is a hook.
32486 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
32487 Rename argument tm_fn to md_fn.
32489 (TARGET_OPTION_PRINT): Fix argument list.
32491 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
32494 * config/i386/i386.c (ix86_fixup_binary_operands):
32495 Revert FMA4 fixup of operands.
32497 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32500 * Makefile.in (write_entries_to_file, install-plugin):
32501 Use \012 instead of \n with tr.
32503 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
32505 * configure.ac (HAVE_AS_REF): New C macro.
32506 * configure: Regenerate.
32507 * config.in: Likewise.
32508 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
32510 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
32513 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
32515 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
32517 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
32519 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
32521 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
32523 (TARGET_IN_SMALL_DATA_P): Fix argument type.
32525 (TARGET_BINDS_LOCAL_P): Fix argument type.
32527 (TARGET_ASM_FILE_END): Use prototype.
32529 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
32531 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
32533 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
32535 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
32537 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
32538 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
32540 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
32541 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
32543 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
32544 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
32545 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
32546 (TARGET_ADDR_SPACE_CONVERT): Likewise.
32548 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
32550 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
32552 (TARGET_INIT_BUILTINS): Use prototype.
32554 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
32555 Put 'const char *' in braces. Fix parameter types.
32556 (TARGET_INVALID_CONVERSION): Fix parameter types.
32557 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
32558 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
32560 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
32563 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
32565 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
32567 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
32569 * doc/tm.texi (TARGET_HELP): Fix return type.
32571 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
32572 in braces. Fix argument types.
32574 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
32576 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
32578 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
32580 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
32581 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
32583 (TARGET_MANGLE_TYPE): Fix argument types.
32585 (TARGET_IRA_COVER_CLASSES): Use prototype.
32587 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
32589 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
32591 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
32593 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
32595 (TARGET_CALLEE_COPIES): Fix argument types.
32597 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
32599 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
32601 (TARGET_FUNCTION_VALUE): Fix argument types.
32603 (TARGET_RETURN_IN_MSB): Fix argument type.
32605 (TARGET_RETURN_IN_MEMORY): Fix argument types.
32607 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
32609 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
32611 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
32612 agree with return type.
32614 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
32616 2010-01-15 Jing Yu <jingyu@google.com>
32618 PR rtl-optimization/42691
32619 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
32620 a pseudo to a constant and are merged, and adjust comments.
32622 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
32624 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
32626 2010-01-15 Richard Guenther <rguenther@suse.de>
32628 PR middle-end/42739
32629 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
32630 labels of computed or non-local gotos to the destination.
32631 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
32632 landing pad label is the first label.
32634 2010-01-15 Richard Guenther <rguenther@suse.de>
32636 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
32638 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
32641 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
32642 to allow generation of the xssqrtdp instruction on power7.
32643 (sqrtdf2_fpr): Ditto.
32645 2010-01-14 Jakub Jelinek <jakub@redhat.com>
32647 PR middle-end/42674
32648 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
32649 functions with noreturn attribute.
32652 * varasm.c (declare_weak): Add weak attribute to decl if it
32653 doesn't have one already.
32654 (assemble_external): Only add decls to weak_decls if they also
32655 have weak attribute.
32657 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
32659 * var-tracking.c (var_reg_delete): Don't delete the association
32660 between REGs and values or one-part variables if the register
32663 2010-01-14 Jakub Jelinek <jakub@redhat.com>
32666 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
32667 because its first operand is a non-localized variable.
32669 2010-01-14 Martin Jambor <mjambor@suse.cz>
32671 PR tree-optimization/42706
32672 * tree-sra.c (encountered_recursive_call): New variable.
32673 (encountered_unchangable_recursive_call): Likewise.
32674 (sra_initialize): Initialize both new variables.
32675 (callsite_has_enough_arguments_p): New function.
32676 (scan_function): Call decl and flags check only for IPA-SRA, check
32677 whether there is a recursive call and whether it has enough arguments.
32678 (all_callers_have_enough_arguments_p): New function.
32679 (convert_callers): Look for recursive calls only when
32680 encountered_recursive_call is set.
32681 (ipa_early_sra): Bail out either if
32682 !all_callers_have_enough_arguments_p or
32683 encountered_unchangable_recursive_call.
32685 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32687 * sel-sched.c: Add 2010 to copyright years.
32688 * sel-sched-ir.c: Likewise.
32689 * sel-sched-ir.h: Likewise.
32691 2010-01-14 Martin Jambor <mjambor@suse.cz>
32693 PR tree-optimization/42714
32694 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
32695 constructors specially.
32697 2010-01-14 Andi Kleen <ak@linux.intel.com>
32699 * config/i386/drivers-i386.c (detect_caches_intel):
32700 Add l2sizekb parameter and fill in.
32701 (host_detect_local_cpu): Add l2sizekb, fill in.
32702 Add Atom small cache heuristic.
32704 2010-01-14 Andi Kleen <ak@linux.intel.com>
32706 * config/i386/drivers-i386.c (detect_caches_cpuid4):
32707 Add level3 parameter and fill in.
32708 (detect_caches_intel): Handle level3 cache.
32710 2010-01-14 Andi Kleen <ak@linux.intel.com>
32712 * config/i386/drivers-i386.c (host_detect_local_cpu):
32713 Fix core duo detection.
32715 2010-01-14 Andi Kleen <ak@linux.intel.com>
32717 * config/i386/drivers-i386.c (host_detect_local_cpu):
32718 Fix Atom detection.
32720 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32722 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
32723 (rs6000_variable_issue_1): this. Use...
32724 (rs6000_variable_issue): here. Reimplement. Print debug info.
32726 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32728 * sel-sched-ir.c (sel_restore_other_notes): Rename to
32729 sel_restore_notes. Update all callers. Call reemit_notes
32732 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32734 PR rtl-optimization/42246
32735 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
32738 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32740 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
32741 all successors is the same as number of successors in current region.
32743 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32745 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
32746 to rename is not separable. Otherwise check that its LHS is not NULL.
32748 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32750 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
32752 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32754 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
32755 available registers when failed to discover LHS register class.
32756 Fix indentation. Update comment.
32758 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32759 Alexander Monakov <amonakov@ispras.ru>
32761 PR rtl-optimization/42389
32762 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
32764 (advance_state_on_fence): Likewise.
32765 (sel_target_adjust_priority): Print debug output only when
32766 sched_verbose >= 4, not 2.
32767 (get_expr_cost): Do not issue all unique insns on the next cycle.
32768 (fill_insns): Initialize can_issue_more from the value saved
32770 * sel-sched-ir.c (flist_add): New parameter issue_more.
32771 Init FENCE_ISSUE_MORE with it.
32772 (merge_fences): Likewise.
32773 (init_fences): Update call to flist_add.
32774 (add_to_fences, add_clean_fence_to_fences)
32775 (add_dirty_fence_to_fences): Likewise.
32776 (move_fence_to_fences): Update call to merge_fences.
32777 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
32779 * sel-sched-ir.h (struct _fence): New field issue_more.
32780 (FENCE_ISSUE_MORE): New accessor macro.
32782 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32784 PR rtl-optimization/42388
32785 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
32786 that have no predecessors nor successors. Do not call move_bb_info
32787 for empty blocks outside of current region.
32789 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32791 PR rtl-optimization/42294
32792 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
32793 * sel-sched.c (move_exprs_to_boundary): Transitively add all
32794 originators' originators.
32796 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32798 PR rtl-optimization/39453
32799 PR rtl-optimization/42246
32800 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
32802 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
32804 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32805 Alexander Monakov <amonakov@ispras.ru>
32807 PR middle-end/42245
32808 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
32809 (maybe_tidy_empty_bb): ... here. Make static. Add new
32810 argument. Update all callers.
32811 (tidy_control_flow): ... and here. Recompute topological order
32812 of basic blocks in region if necessary.
32813 (sel_redirect_edge_and_branch): Change return type. Return true
32814 if topological order might have been invalidated.
32815 (purge_empty_blocks): Export and move from...
32816 * sel-sched.c (purge_empty_blocks): ... here.
32817 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
32818 (maybe_tidy_empty_bb): Delete prototype.
32819 (purge_empty_blocks): Declare.
32821 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32823 PR rtl-optimization/42249
32824 * sel-sched.c (try_replace_dest_reg): When chosen register
32825 and original register is the same, do not bail out early, but
32826 still check all original insns for validity of replacing destination
32827 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
32830 2010-01-14 Jakub Jelinek <jakub@redhat.com>
32833 Port from no-undefined-overflow branch:
32834 2009-03-09 Richard Guenther <rguenther@suse.de>
32836 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
32838 2010-01-14 Richard Guenther <rguenther@suse.de>
32841 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
32843 2010-01-14 Ira Rosen <irar@il.ibm.com>
32845 PR tree-optimization/42709
32846 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
32847 as scalar type in creation of constant vector operand.
32849 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32852 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
32853 (check-parallel-%): Match `testsuite' directory component only
32856 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
32858 PR translation/39521
32859 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
32862 2010-01-13 Richard Guenther <rguenther@suse.de>
32864 PR tree-optimization/42730
32865 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
32868 2010-01-13 Steve Ellcey <sje@cup.hp.com>
32871 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
32872 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
32875 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
32877 * config/bfin/libgcc-bfin.ver: Regenerate based on current
32878 libgcc-std.ver. Add entries for ___smulsi3_highpart and
32879 ___umulsi3_highpart.
32881 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
32882 rather than schedule_insns if the pass is enabled.
32884 2010-01-13 Martin Jambor <mjambor@suse.cz>
32886 PR tree-optimization/42704
32887 * tree-sra.c (sra_modify_assign): Do not delete assignments to
32890 2010-01-13 Martin Jambor <mjambor@suse.cz>
32892 PR tree-optimization/42703
32893 * tree-sra.c (analyze_access_subtree): Check that we can build a
32894 reference to the original data within the aggregate.
32896 2010-01-13 Richard Guenther <rguenther@suse.de>
32898 PR tree-optimization/42705
32899 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
32901 2010-01-13 Richard Guenther <rguenther@suse.de>
32903 PR middle-end/42716
32904 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
32906 2010-01-13 Jakub Jelinek <jakub@redhat.com>
32909 * var-tracking.c (values_to_unmark): New variable.
32910 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
32911 values_to_unmark vector. Moved body to...
32912 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
32913 instead queue it into values_to_unmark vector.
32914 (vt_find_locations): Free values_to_unmark vector.
32916 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
32918 * config/s390/s390.c (override_options): Set
32919 default of max-pending-list-length to 256
32921 2010-01-13 Richard Guenther <rguenther@suse.de>
32924 * tree-pass.h (PROP_gimple_lcx): New.
32925 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
32926 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
32927 before the final cleanup_eh.
32928 (dump_properties): Dump PROP_gimple_lcx.
32929 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
32930 (tree_lower_complex_O0): Remove.
32931 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
32932 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
32933 tree_lower_complex, schedule TODO_update_ssa.
32934 * lto-streamer-out.c (output_function): Stream the functions
32936 * lto-streamer-in.c (input_function): Likewise.
32937 (lto_read_body): Do not override them here.
32939 2010-01-12 Joseph Myers <joseph@codesourcery.com>
32942 * c-typeck.c (build_c_cast): Fold value cast to union type before
32943 wrapping it in a CONSTRUCTOR.
32945 2010-01-12 Jakub Jelinek <jakub@redhat.com>
32947 PR rtl-optimization/42699
32948 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
32951 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32953 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
32954 SUBTARGET_WARN_UNUSED_SPEC): Move ...
32955 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
32956 SUBTARGET_WARN_UNUSED_SPEC): ... here
32957 * config/mips/iris5.h (LIBGCC_SPEC): Define.
32959 2010-01-12 Julian Brown <julian@codesourcery.com>
32961 * config/arm/neon-schedgen.ml (Utils): Don't try to
32962 open missing module.
32963 (find_with_result): New.
32965 2010-01-12 Jakub Jelinek <jakub@redhat.com>
32968 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
32969 sharing when canonicalizing ({lt,ge}u (plus a b) b).
32971 PR tree-optimization/42645
32972 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
32973 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
32974 decl_map, set processing_debug_stmt to -1 and return name without
32977 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
32979 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
32980 binutils version, and reword target configuration description.
32982 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
32984 * config/avr/avr.h (LINKER_NAME): Remove.
32986 2010-01-11 Janis Johnson <janis187@us.ibm.com>
32989 * config/rs6000/rs6000.c (rs6000_override_options): On targets
32990 that support VSX, warn for -mno-altivec if vsx is not disabled,
32993 2010-01-11 Joseph Myers <joseph@codesourcery.com>
32994 Shujing Zhao <pearly.zhao@oracle.com>
32996 PR translation/42469
32997 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
32998 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
32999 character between option name and help text.
33000 * c.opt (imultilib): Likewise.
33002 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
33004 * lto-streamer-out.c (output_unreferenced_globals): Output static
33007 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
33009 PR rtl-optimization/42621
33010 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
33011 optimizing for size.
33012 (duplicate_computed_gotos): Remove now-redundant check.
33014 2010-01-10 Steve Ellcey <sje@cup.hp.com>
33017 * configure.ac: Save and restore LDFLAGS and LIBS
33018 * configure: Regenerate.
33020 2010-01-10 Richard Guenther <rguenther@suse.de>
33022 PR middle-end/42667
33023 * builtins.c (fold_builtin_strlen): Add type argument and
33024 convert the resulting length to it.
33025 (fold_builtin_1): Adjust.
33027 2010-01-09 Jakub Jelinek <jakub@redhat.com>
33029 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
33030 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
33032 (num_insns_constant_wide): Adjust for that change.
33034 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33037 * web.c (union_defs): Add used argument, to combine uses of
33038 uninitialized regs.
33039 (entry_register): Adjust type and tests of used argument.
33040 (web_main): Widen used for new use. Pass it to union_defs.
33041 * df.h (union_defs): Adjust prototype.
33043 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33046 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
33047 uses in new incoming argument. Free body.
33048 (reset_debug_uses_in_loop): New.
33049 (analyze_insn_to_expand_var): Call the latter if the former found
33050 anything. Fix whitespace. Reject invalid dest overlaps before
33051 going through all insns in the loop.
33053 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33056 * haifa-sched.c (dying_use_p): Debug insns don't count.
33058 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33060 PR middle-end/42363
33061 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
33062 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
33063 (verify_gimple_call): Reject LHS in noreturn calls.
33065 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33069 * tree-vect-loop-manip.c (adjust_info): New type.
33070 (adjust_vec): New pointer to vector.
33071 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
33072 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
33073 (slpeel_update_phis_for_duplicate_loop): Use them.
33074 (slpeel_update_phi_nodes_for_guard1): Likewise.
33075 (slpeel_update_phi_nodes_for_guard2): Likewise.
33076 (slpeel_tree_peel_loop_to_edge): Likewise.
33077 (vect_update_ivs_after_vectorizer): Likewise.
33079 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33081 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
33082 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
33084 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33086 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
33087 bogus uninitialized warning.
33089 2010-01-09 Richard Guenther <rguenther@suse.de>
33091 PR middle-end/42512
33092 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
33093 the evolution is compatible with the initial condition.
33095 2010-01-09 Jakub Jelinek <jakub@redhat.com>
33097 * gcc.c (process_command): Update copyright notice dates.
33098 * gcov.c (print_version): Likewise.
33099 * gcov-dump.c (print_version): Likewise.
33100 * mips-tfile.c (main): Likewise.
33101 * mips-tdump.c (main): Likewise.
33103 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
33106 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
33108 (rotlhi3_8): Delete.
33110 (rotlsi3_8): Delete.
33111 (rotlsi3_16): Delete.
33112 (rotlsi3_24): Delete.
33113 (rotl<mode>3): New.
33114 (*rotw<mode>3): New.
33115 (*rotb<mode>3): New.
33116 * config/avr/avr.c (avr_rotate_bytes): New function.
33117 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
33119 2010-01-08 Steve Ellcey <sje@cup.hp.com>
33122 * configure.ac: Modify -rdynamic check.
33123 * configure: Regenerate.
33125 2010-01-08 DJ Delorie <dj@redhat.com>
33127 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
33128 register popping order.
33130 2010-01-08 Richard Guenther <rguenther@suse.de>
33133 * c.opt (fsigned-char): Also let LTO handle this option.
33134 (funsigned-char): Likewise.
33136 2010-01-07 Richard Guenther <rguenther@suse.de>
33138 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
33139 (gimple_op): Likewise.
33140 (gimple_op_ptr): Likewise.
33141 (gimple_assign_set_lhs): Remove gcc_assert.
33142 (gimple_assign_set_rhs1): Likewise.
33143 (gimple_assign_set_rhs2): Likewise.
33144 (gimple_call_set_lhs): Likewise.
33145 (gimple_call_set_fn): Likewise.
33146 (gimple_call_set_fndecl): Likewise.
33147 (gimple_call_fndecl): Likewise.
33148 (gimple_call_return_type): Likewise.
33149 (gimple_call_set_chain): Likewise.
33150 (gimple_call_num_args): Likewise.
33151 (gimple_call_set_arg): Likewise.
33152 (gimple_cond_set_code): Likewise.
33153 (gimple_cond_set_lhs): Likewise.
33154 (gimple_cond_set_rhs): Likewise.
33155 (gimple_cond_set_true_label): Likewise.
33156 (gimple_cond_set_false_label): Likewise.
33157 (gimple_label_set_label): Likewise.
33158 (gimple_goto_set_dest): Likewise.
33159 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
33160 (gimple_debug_bind_get_value): Likewise.
33161 (gimple_debug_bind_get_value_ptr): Likewise.
33162 (gimple_debug_bind_set_var): Likewise.
33163 (gimple_debug_bind_set_value): Likewise.
33164 (gimple_debug_bind_reset_value): Likewise.
33165 (gimple_debug_bind_has_value_p): Likewise.
33166 (gimple_return_retval_ptr): Remove gcc_assert.
33167 (gimple_return_retval): Likewise.
33168 (gimple_return_set_retval): Likewise.
33169 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
33170 (safe_referenced_var_iterator): Remove.
33171 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
33172 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
33173 (fill_referenced_var_vec): Remove.
33174 (first_readonly_imm_use): Remove redundant gcc_assert.
33175 (phi_arg_index_from_use): Combine gcc_asserts.
33176 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
33177 (first_imm_use_stmt): Remove redundant gcc_assert.
33178 * tree-cfg.c (verify_gimple_call): Verify function and chain
33179 operands. Verify arguments.
33180 (verify_types_in_gimple_stmt): Verify condition code and labels.
33182 2010-01-07 Richard Guenther <rguenther@suse.de>
33184 PR tree-optimization/42641
33185 * sese.c (rename_map_elt_info): Use the SSA name version, do
33188 2010-01-07 Jakub Jelinek <jakub@redhat.com>
33190 PR tree-optimization/42625
33191 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
33192 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
33194 2010-01-07 Duncan Sands <baldrick@free.fr>
33196 * Makefile.in (PLUGIN_HEADERS): Add version.h.
33198 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
33201 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
33202 note itself is not function_invariant_p.
33204 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
33206 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
33207 Do not add the DF_NOTE problem.
33208 * store-motion.c (execute_rtl_store_motion): Likewise.
33210 2010-01-07 Martin Jambor <mjambor@suse.cz>
33212 PR tree-optimization/42157
33213 * tree-sra.c (compare_access_positions): Stabilize sort if both
33214 accesses have integer types, return zero immediately if they are the
33217 2010-01-06 Richard Henderson <rth@redhat.com>
33219 PR middle-end/41883
33220 * haifa-sched.c (add_to_note_list): Merge into ...
33221 (concat_note_lists): ... here, and ...
33222 (unlink_other_notes, rm_other_notes): Merge into...
33223 (remove_notes): ... here. Create REG_SAVE_NOTEs for
33224 NOTE_INSN_EPILOGUE_BEG.
33226 2010-01-06 Richard Guenther <rguenther@suse.de>
33228 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
33229 not inline regular functions into always-inline functions.
33231 2010-01-06 Nick Clifton <nickc@redhat.com>
33233 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
33234 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
33236 (OVERRIDE_OPTIONS): Delete.
33237 (OPTIMIZATION_OPTIONS): Define.
33238 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
33239 * config/rx/rx.c (rx_handle_option): Issue an error message if
33240 -mcpu=rx200 and -fpu are used together.
33241 (rx_set_optimization_options): New function. Issue an error
33242 message if an optimization attribute attempts to reset the FPU/
33243 math optimization pairing.
33244 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
33245 * config/rx/rx.opt: Set the default to 32-bit doubles.
33246 * config/rx/t-rx: Add multilibs for -nofpu option.
33247 * doc/invoke.texi: Update documentation of RX options.
33249 2010-01-06 Richard Guenther <rguenther@suse.de>
33251 * tree-ssa-pre.c (name_to_id): New global.
33252 (alloc_expression_id): Simplify SSA name handling.
33253 (lookup_expression_id): Likewise.
33254 (init_pre): Zero name_to_id.
33255 (fini_pre): Free it.
33257 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
33259 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
33261 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
33264 * config/i386/sse.md (smaxv2di3): New.
33265 (umaxv2di3): Likewise.
33266 (sminv2di3): Likewise.
33267 (uminv2di3): Likewise.
33269 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
33272 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
33273 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
33274 (legitimize_tls_address): Likewise.
33275 (sparc_tls_referenced_p): Likewise.
33276 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
33277 and adjust calls to legitimize_pic_address.
33278 (legitimate_constant_p) Use sparc_tls_referenced_p.
33279 (legitimate_pic_operand_p): Likewise.
33280 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
33281 (sparc_tls_symbol_ref_1): Delete.
33282 (sparc_tls_referenced_p): Make static, recognize specific patterns.
33283 (legitimize_tls_address): Make static, handle CONST patterns.
33284 (legitimize_pic_address): Make static, remove unused parameter and
33285 adjust recursive calls.
33286 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
33287 and adjust call to legitimize_pic_address.
33288 (sparc_output_mi_thunk): Likewise.
33290 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
33291 H.J. Lu <hongjiu.lu@intel.com>
33294 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
33295 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
33296 operands to make them signed.
33299 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
33302 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
33303 GTU to GT for V4SI and V2DI.
33305 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
33306 (umin<mode>3): Removed.
33308 (uminv4si3): Likewise.
33310 2010-01-05 Martin Jambor <mjambor@suse.cz>
33312 PR tree-optimization/42462
33313 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
33314 current_function_decl to helper functions and macros.
33316 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33319 * flags.h: Don't include real.h.
33320 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
33321 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
33322 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
33323 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
33324 * dominance.c: Update copyright.
33325 * gimple.c (walk_gimple_op): Remove inline.
33326 * tree-ssa-reassoc.c: Include real.h.
33327 * Makefile.in (FLAGS_H): Remove $(REAL_H).
33328 (tree-ssa-reassoc.o): Depend on $(REAL_H).
33330 2010-01-05 Nick Clifton <nickc@redhat.com>
33332 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
33333 register to push into the stack frame when the accumulator has to
33334 be saved during interrupts.
33336 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
33338 * doc/invoke.texi: Remove the documentation about option
33339 -Wunreachable-code.
33340 * common.opt (Wunreachable-code): Preserved for backward
33342 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
33343 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
33344 the backward compatibility flag section.
33346 2010-01-05 Richard Guenther <rguenther@suse.de>
33348 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
33350 2010-01-05 Jakub Jelinek <jakub@redhat.com>
33353 * cfgexpand.c (expand_one_var): Diagnose too large variables.
33355 PR tree-optimization/42508
33356 * tree-sra.c (convert_callers): Check for recursive call
33357 by comparing cgraph nodes instead of decls.
33358 (modify_function): Call ipa_modify_formal_parameters also
33359 on all same_body aliases.
33361 * cgraphunit.c (cgraph_materialize_all_clones): Compare
33362 cgraph nodes when checking for same_body aliases.
33364 2010-01-05 Richard Guenther <rguenther@suse.de>
33366 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
33367 allocation and lookup.
33368 (get_or_alloc_expr_for_constant): Likewise.
33369 (phi_translate): Sink allocation.
33371 2010-01-04 Richard Guenther <rguenther@suse.de>
33373 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
33374 a new entry only if needed.
33375 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
33376 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
33378 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
33380 (phi_translate): Handle CONSTANTs early.
33382 2010-01-04 Martin Jambor <mjambor@suse.cz>
33384 PR tree-optimization/42398
33385 * tree-sra.c (struct access): Removed flag grp_different_types.
33386 (dump_access): Do not dump the removed flag.
33387 (sort_and_splice_var_accesses): Do not set the removed flag.
33388 (sra_modify_expr): Check for type compatibility directly.
33390 2010-01-04 Martin Jambor <mjambor@suse.cz>
33392 PR tree-optimization/42366
33393 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
33394 edges with variable number of parameters.
33395 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
33396 flag instead of asserting it.
33397 (ipa_read_node_info): Read uses_analysis_done flag.
33399 2010-01-04 Richard Guenther <rguenther@suse.de>
33401 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
33402 iterative_hash_* as intended.
33403 (vn_reference_compute_hash): Likewise. Simplify hashing
33405 (vn_reference_lookup_2): Likewise.
33406 (vn_nary_op_compute_hash): Likewise.
33407 (vn_phi_compute_hash): Likewise.
33408 (expressions_equal_p): Remove strange code.
33409 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
33410 (pre_expr_hash): Likewise. Simplify hashing SSA names.
33411 (bitmap_insert_into_set_1): Take value-id as parameter.
33412 (add_to_value): Pass it.
33413 (bitmap_insert_into_set): Likewise.
33414 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
33416 2010-01-04 Jakub Jelinek <jakub@redhat.com>
33419 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
33420 (do_self_spec): For switches with SWITCH_IGNORE set set also
33421 SWITCH_IGNORE_PERMANENTLY.
33422 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
33425 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
33427 * lto-streamer-out.c (output_unreferenced_globals): Output the full
33428 tree of an unreferenced global var.
33430 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
33433 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
33434 GTU to GT for V4SI and V2DI.
33436 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
33437 (umin<mode>3): Removed.
33439 (uminv4si3): Likewise.
33441 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
33444 * collect2.c (main): Turn on trace in collect2 if -v is passed
33447 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
33449 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
33450 description of expression operand.
33452 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
33454 * configure.ac: Add install-html to target_list for Make-hooks.
33455 * configure: Regenerate.
33456 * fortran/Make-lang.in (F95_HTMLFILES): New.
33457 (fortran.html): Use it.
33458 (fortran.install-html): New.
33459 * Makefile.in (install-html): Add lang.install-html.
33460 * java/Make-lang.in (JAVA_HTMLFILES): New.
33461 (java.html): Use it.
33462 (java.install-html): New.
33463 * objc/Make-lang.in (objc.install-html): New.
33464 * objcp/Make-lang.in (obj-c++.install-html): New.
33465 * cp/Make-lang.in (c++.install-html): New.
33466 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
33467 * lto/Make-lang.in (lto.install-html): New.
33469 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
33472 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
33474 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
33476 PR rtl-optimization/41862
33477 * store-motion.c (store_killed_in_insn, compute_store_table,
33478 remove_reachable_equiv_notes, replace_store_insn,
33479 build_store_vectors): Ignore all DEBUG_INSNs.
33481 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
33484 * common.opt: Add dumpdir.
33486 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
33488 (option_map): Add --dumpdir.
33490 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
33492 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
33494 * opts.c (decode_options): Try dump_dir_name first if
33495 dump_base_name isn't an absolute path.
33496 (common_handle_option): Handle OPT_dumpdir.
33498 * toplev.c (dump_dir_name): New.
33499 (print_switch_values): Also ignore -dumpdir.
33501 * toplev.h (dump_dir_name): New.
33503 2010-01-03 Richard Guenther <rguenther@suse.de>
33505 PR tree-optimization/42589
33506 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
33507 double-word expansion of bswap32.
33509 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
33511 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
33512 with BLOCK_FOR_INSN.
33513 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
33514 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
33515 noce_process_if_block): Likewise.
33516 * gcse.c (compute_local_properties, insert_expr_in_table,
33517 insert_set_in_table, canon_list_insert, find_avail_set,
33518 pre_insert_copy_insn): Likewise.
33520 * basic-block.h (BLOCK_NUM): Move from here...
33521 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
33523 2010-01-03 Richard Guenther <rguenther@suse.de>
33525 PR tree-optimization/42438
33526 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
33527 contains_may_not_return_call flag.
33528 (BB_MAY_NOTRETURN): New.
33529 (valid_in_sets): Trapping nary operations are not valid
33530 in blocks that may not return.
33531 (insert_into_preds_of_block): Remove check for trapping expressions.
33532 (compute_avail): Compute also BB_MAY_NOTRETURN.
33534 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
33536 * doc/invoke.texi: Add 2010 to copyright years.
33538 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
33540 * config/sparc/sparc.c: Fix formatting nits.
33542 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
33543 Alexander Monakov <amonakov@ispras.ru>
33545 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
33547 2010-01-02 Richard Guenther <rguenther@suse.de>
33549 PR middle-end/42577
33550 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
33551 (simplify_switch_using_ranges): Mark to be removed edges
33554 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33556 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
33558 * collect2.c (scan_libraries): Add missing argument in call to
33561 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
33564 * config/alpha/predicates.md (aligned_memory_operand): Return false
33566 (unaligned_memory_operand): Return true for CQImode.
33567 * config/alpha/alpha.c (get_aligned_mem): Assert that location
33568 doesn not cross aligned SImode word boundary.
33570 2010-01-02 Anatoly Sokolov <aesok@post.ru>
33572 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
33574 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
33575 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
33577 2010-01-02 Richard Guenther <rguenther@suse.de>
33580 * toplev.c (compile_file): Emit LTO marker properly. Change
33581 it to __gnu_lto_v1.
33582 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
33584 2010-01-01 Richard Guenther <rguenther@suse.de>
33587 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
33589 2010-01-01 Richard Guenther <rguenther@suse.de>
33592 * c-decl.c (grokdeclarator): For zero-size arrays force
33593 structural equality checks as layout_type does.
33595 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
33597 * builtins.c: Update copyright to 2010.
33599 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
33602 * lto-streamer-out.c (produce_asm): Revert the last change.
33603 (copy_function): Likewise.
33605 * lto-streamer.c (lto_get_section_name): Skip any leading
33608 2010-01-01 Richard Guenther <rguenther@suse.de>
33610 PR middle-end/42559
33611 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
33615 Copyright (C) 2010 Free Software Foundation, Inc.
33617 Copying and distribution of this file, with or without modification,
33618 are permitted in any medium without royalty provided the copyright
33619 notice and this notice are preserved.