1 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4 * gthr-posix.h (__gthread_active_init): Delete.
5 (__gthread_active_p): Do activity check here.
6 Don't include errno.h on hppa-hpux. Update comment.
7 * gthr-posix95.h (__gthread_active_init): Delete.
8 (__gthread_active_p): Do activity check here.
9 Don't include errno.h on hppa-hpux. Update comment.
10 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
11 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
12 add -lpthread when -mt or -pthread is specified.
13 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
14 (LINK_GCC_C_SEQUENCE_SPEC): Define.
15 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
16 (stublib.c, pthread_default_stacksize_np-stub.o,
17 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
18 $(T)libgcc_stub.a): Add methods.
19 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
20 (stublib.c, pthread_default_stacksize_np-stub.o,
21 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
22 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
23 pthread_mutex_unlock): New stubs.
25 2010-08-22 Joseph Myers <joseph@codesourcery.com>
27 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
28 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
30 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
31 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
32 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
33 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
34 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
36 * cppspec.c: Include opts.h.
37 (lang_specific_driver): Use cl_decoded_option structures.
38 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
39 * doc/tm.texi: Regenerate.
40 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
41 (driver_handle_option): Allow driver options needing no special
43 (process_command): Decode options before call to
44 lang_specific_driver. Pass decoded options to
46 * gcc.h (lang_specific_driver): Update prototype.
47 * gccspec.c: Include opts.h.
48 (lang_specific_driver): Use cl_decoded_option structures.
49 * opts-common.c (option_ok_for_language, generate_option,
50 generate_option_input_file): New.
51 (decode_cmdline_option): Use option_ok_for_language.
52 (decode_cmdline_options_to_array): Use generate_option_input_file.
53 (handle_generated_option): Use generate_option.
54 * opts.h (generate_option, generate_option_input_file): Declare.
56 2010-08-22 Anatoly Sokolov <aesok@post.ru>
58 * config/mips/mips.c (mips_override_options): Rename to...
59 (mips_option_override): ...this. Make static.
60 (TARGET_OPTION_OVERRIDE): Define.
61 (mips_in_small_data_p): Update comment.
62 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
63 (FIXED_REGISTERS): Update comment.
64 * config/mips/mips-protos.h (mips_override_options): Remove.
66 2010-08-21 Olivier Hainque <hainque@adacore.com>
68 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
70 2010-08-21 Olivier Hainque <hainque@adacore.com>
72 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
73 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
75 2010-08-20 Jan Hubicka <jh@suse.cz>
77 * tree-pass.h (pass_ipa_cdtor_merge): New function.
78 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
80 (record_cdtor_fn): Move to ipa.c; do not test for
82 (build_cdtor): Move to ipa.c; add code avoiding construction
83 when target have ctors/dtors and there is only one ctor/dtor at given
85 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize sort;
86 reverse order of constructors.
87 (cgraph_build_cdtor_fns):Move to ipa.c; rename to build_cdtor_fns.
88 (cgraph_finalize_function): Do not call record_cdtor_fn.
89 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
90 (cgraph_build_static_cdtor): Move to ipa.c.
91 * ipa.c: Include target.h and tree-iterator.h.
92 (cgraph_build_static_cdtor, static_ctors, static_dtors,
93 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
94 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
95 pass_ipa_cdtor_merge): New.
96 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
97 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of bounds access.
99 2010-08-20 Jan Hubicka <jh@suse.cz>
103 * cgraph.h (cgraph_only_called_directly_p,
104 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
106 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
108 (cgraph_finalize_function): Static cdtors are reachable.
109 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
111 2010-08-20 Jan Hubicka <jh@suse.cz>
113 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of flag_wpa.
114 * lto-streamer-out.c (lto_output): Likewise.
115 * passes.c (ipa_write_optimization_summaries): Initialize statement uids.
117 2010-08-20 Olivier Hainque <hainque@adacore.com>
119 * tree.h (alias_diag_flags): New enum.
120 (alias_pair): Add an 'emitted_diags' field.
121 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
122 (assemble_alias): Initialize emitted_diags of new pairs.
124 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
126 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
127 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
128 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
129 (STACK_CHECK_PROTECT): Define.
130 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
131 (output_probe_stack_range): Likewise.
132 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
133 builtin stack checking is enabled.
134 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
135 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
136 (probe_stack_range): New insn.
138 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
141 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
144 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
147 2010-08-20 Jakub Jelinek <jakub@redhat.com>
150 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
151 to cover zero extension into 64-bit register.
152 (*sse2_pextrw): Likewise.
153 (*sse4_1_pextrd_zext): New insn.
155 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
157 revert r163410, partially revert r163267.
158 * config/rs6000/darwin.h (LIB_SPEC): Remove.
159 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
162 2010-08-20 Jakub Jelinek <jakub@redhat.com>
165 * builtins.c (expand_builtin): Don't optimize away
166 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
168 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
170 * config/i386/i386.md (ashift RSP splitter): Remove splitter.
171 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
172 alternative 1 of operand 2.
174 2010-08-20 Jakub Jelinek <jakub@redhat.com>
175 Paolo Bonzini <bonzini@gnu.org>
177 * simplify-rtx.c (simplify_unary_operation_1): Optimize
178 (sign_extend (zero_extend (...)) and
179 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
181 2010-08-20 Jakub Jelinek <jakub@redhat.com>
183 PR rtl-optimization/45353
184 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
185 after bb_note is a BARRIER.
187 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
189 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
192 2010-08-20 Jakub Jelinek <jakub@redhat.com>
193 Michael Matz <matz@suse.de>
195 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
197 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
199 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
200 (ggc_mark_roots): ...here.
202 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
204 * vec.h (FOR_EACH_VEC_ELT): Define.
206 * cfgloop.c: Likewise.
207 * cfgloopmanip.c: Likewise.
208 * cgraph.c: Likewise.
209 * cgraphunit.c: Likewise.
210 * combine.c: Likewise.
211 * config/bfin/bfin.c: Likewise.
212 * config/mips/mips.c: Likewise.
213 * config/rs6000/rs6000.c: Likewise.
214 * dbxout.c: Likewise.
215 * df-scan.c: Likewise.
216 * dominance.c: Likewise.
218 * dwarf2out.c: Likewise.
219 * except.c: Likewise.
221 * function.c: Likewise.
223 * genattr.c: Likewise.
224 * ggc-common.c: Likewise.
225 * gimplify.c: Likewise.
226 * graphite-blocking.c: Likewise.
227 * graphite-clast-to-gimple.c: Likewise.
228 * graphite-dependences.c: Likewise.
229 * graphite-interchange.c: Likewise.
230 * graphite-poly.c: Likewise.
231 * graphite-scop-detection.c: Likewise.
232 * graphite-sese-to-poly.c: Likewise.
233 * graphite.c: Likewise.
234 * haifa-sched.c: Likewise.
236 * implicit-zee.c: Likewise.
237 * ipa-prop.c: Likewise.
238 * ipa-struct-reorg.c: Likewise.
240 * ira-build.c: Likewise.
241 * ira-color.c: Likewise.
242 * ira-emit.c: Likewise.
243 * lambda-code.c: Likewise.
244 * loop-invariant.c: Likewise.
245 * loop-unroll.c: Likewise.
246 * lower-subreg.c: Likewise.
247 * lto-cgraph.c: Likewise.
248 * lto-opts.c: Likewise.
249 * lto-streamer-in.c: Likewise.
250 * lto-streamer-out.c: Likewise.
251 * lto-streamer.c: Likewise.
252 * lto-symtab.c: Likewise.
253 * matrix-reorg.c: Likewise.
255 * predict.c: Likewise.
256 * print-tree.c: Likewise.
257 * sdbout.c: Likewise.
258 * sel-sched-dump.c: Likewise.
259 * sel-sched-ir.c: Likewise.
260 * sel-sched.c: Likewise.
262 * stor-layout.c: Likewise.
263 * tree-cfg.c: Likewise.
264 * tree-cfgcleanup.c: Likewise.
265 * tree-chrec.c: Likewise.
266 * tree-data-ref.c: Likewise.
267 * tree-emutls.c: Likewise.
268 * tree-inline.c: Likewise.
269 * tree-into-ssa.c: Likewise.
270 * tree-loop-distribution.c: Likewise.
271 * tree-loop-linear.c: Likewise.
272 * tree-mudflap.c: Likewise.
273 * tree-outof-ssa.c: Likewise.
274 * tree-parloops.c: Likewise.
275 * tree-predcom.c: Likewise.
276 * tree-pretty-print.c: Likewise.
277 * tree-scalar-evolution.c: Likewise.
278 * tree-ssa-live.c: Likewise.
279 * tree-ssa-loop-im.c: Likewise.
280 * tree-ssa-loop-ivcanon.c: Likewise.
281 * tree-ssa-loop-ivopts.c: Likewise.
282 * tree-ssa-loop-manip.c: Likewise.
283 * tree-ssa-loop-niter.c: Likewise.
284 * tree-ssa-loop-prefetch.c: Likewise.
285 * tree-ssa-phiprop.c: Likewise.
286 * tree-ssa-pre.c: Likewise.
287 * tree-ssa-reassoc.c: Likewise.
288 * tree-ssa-sccvn.c: Likewise.
289 * tree-ssa-structalias.c: Likewise.
290 * tree-ssa.c: Likewise.
291 * tree-vect-data-refs.c: Likewise.
292 * tree-vect-loop-manip.c: Likewise.
293 * tree-vect-loop.c: Likewise.
294 * tree-vect-patterns.c: Likewise.
295 * tree-vect-slp.c: Likewise.
296 * tree-vect-stmts.c: Likewise.
297 * tree-vrp.c: Likewise.
299 * value-prof.c: Likewise.
300 * var-tracking.c: Likewise.
301 * varasm.c: Likewise.
302 * vmsdbgout.c: Likewise.
304 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
305 Richard Guenther <richard.guenther@gmail.com>
307 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
308 copy the src value and return a copy.
309 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
310 (C++ Volatiles): Adjust to describe C++ semantics only.
312 2010-08-20 Joseph Myers <joseph@codesourcery.com>
314 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
316 * doc/tm.texi: Regenerate.
317 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
318 * df-scan.c (df_get_exit_block_use_set), reginfo.c
319 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
320 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
321 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
324 2010-08-20 Olivier Hainque <hainque@adacore.com>
326 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
327 an extra nop past a sibling call at the very end.
329 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
332 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
335 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
337 * target.def (function_arg, function_incoming_arg): Remove const
338 qualifier on CUMULATIVE_ARGS parameter.
339 * targhooks.h (default_function_arg, default_function_incoming_arg):
341 * targhooks.c (default_function_arg, default_function_incoming_arg):
343 * config/i386/i386.c (ix86_function_arg): Likewise.
345 2010-08-19 Jakub Jelinek <jakub@redhat.com>
348 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
349 SIGN_EXTENDs or ZERO_EXTENDs.
351 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
354 * combine.c (combine_validate_cost): New arg I0. All callers changed.
355 Take its cost into account if nonnull.
356 (insn_a_feeds_b): New static function.
357 (combine_instructions): Look for four-insn combinations.
358 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
359 them into account when computing all_adjacent and looking for other
361 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
362 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
363 (try_combine): New arg I0. Handle four-insn combinations.
364 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
367 2010-08-19 Jason Merrill <jason@redhat.com>
370 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
372 (gimplify_modify_expr_rhs): Adjust.
374 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
376 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
378 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
379 * dominance.c (iterate_fix_dominators): Likewise.
380 * dse.c (set_usage_bits): Likewise.
381 (set_position_unneeded, record_store): Likewise.
382 * gimple-fold.c (get_maxval_strlen): Likewise.
383 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
384 * ipa-inline.c (update_caller_keys): Likewise.
385 * ipa-split.c (verify_non_ssa_vars): Likewise.
386 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
387 (close_type_exposed_parameter, close_type_full_escape): Likewise.
388 (close_addressof_down): Likewise.
389 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
390 (setup_allocno_left_conflicts_size): Likewise.
391 (ira_reassign_conflict_allocnos): Likewise.
392 (ira_reassign_pseudos): Likewise.
393 * ira-emit.c (change_loop): Likewise.
394 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
395 * lto-streamer-out.c (write_symbol): Likewise.
396 * predict.c (expr_expected_value_1): Likewise.
397 * regstat.c (regstat_bb_compute_ri): Likewise.
398 * sel-sched.c (create_block_for_bookkeeping): Likewise.
399 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
400 * stmt.c (expand_case): Likewise.
401 * tree-eh.c (emit_eh_dispatch): Likewise.
402 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
403 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
405 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
406 (rdg_build_components): Likewise.
407 * tree-object-size.c (collect_object_sizes_for): Likewise.
408 * tree-sra.c (convert_callers): Likewise.
409 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
410 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
411 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
413 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
415 * config/i386/i386.md (*lea_1): Use P mode iterator.
416 (lea add splitter): Also handle DImode operands.
417 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
418 predicate. Do not use ix86_lea_for_add_ok.
419 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
420 (lea ashift splitter): Also handle DImode operands.
421 (DImode lea ashift splitter): Remove splitter.
423 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
425 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
426 ix86_binary_operator_ok.
428 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
430 PR rtl-optimization/44691
431 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
434 2010-08-19 Ian Bolton <ian.bolton@arm.com>
437 * config/arm/arm.c (arm_output_epilogue): Ensure that return
438 value of size 1-3 is handled correctly.
440 2010-08-19 Ian Bolton <ian.bolton@arm.com>
442 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
443 type for the conditional has wide enough range.
445 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
448 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
449 ix86_binary_operator_ok.
451 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
453 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
454 <default>: Swap operands 1 and 2 for alternative 2 to use existing
455 code to output insn mnemonic. Fix comment.
456 (*addsi_1_zext): Add r-r-0 alternative 1.
457 <TYPE_LEA>: Split insn to lea.
458 <default>: Handle alternative 1.
459 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
460 multi-level if_then_else RTX to set "type" attribute.
461 <default>: Handle alternative 2.
462 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
463 Use cond RTX instead of multi-level if_then_else RTX to set
465 <default>: Handle alternatives 2 and 4.
466 (lea splitters): Update calls to ix86_lea_for_add_ok.
468 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
470 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
472 2010-08-18 Richard Guenther <rguenther@suse.de>
474 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
477 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
480 * optabs.c (expand_bool_compare_and_swap): Expand pending
481 pops before trying the optab.
483 2010-08-18 Yao Qi <yao@codesourcery.com>
486 * config/arm/arm.c (output_move_double): Fix typo generating
487 instructions ('ldr'->'str').
489 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
491 PR rtl-optimization/42575
492 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
495 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
497 * config/arm/arm-protos.h (arm_expand_sync): New.
498 (arm_output_memory_barrier, arm_output_sync_insn): New.
499 (arm_sync_loop_insns): New.
500 * config/arm/arm.c (FL_ARCH7): New.
501 (FL_FOR_ARCH7): Include FL_ARCH7.
503 (arm_print_operand): Support %C markup.
504 (arm_legitimize_sync_memory): New.
505 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
506 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
507 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
508 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
509 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
510 (arm_process_output_sync_insn, arm_output_sync_insn): New.
511 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
512 * config/arm/arm.h (struct arm_sync_generator): New.
513 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
514 (TARGET_HAVE_MEMORY_BARRIER): New.
515 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
516 * config/arm/arm.md: Include sync.md.
517 (UNSPEC_MEMORY_BARRIER): New.
518 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
519 (VUNSPEC_SYNC_OP):New.
520 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
521 (sync_result, sync_memory, sync_required_value): New attributes.
522 (sync_new_value, sync_t1, sync_t2): Likewise.
523 (sync_release_barrier, sync_op): Likewise.
524 (length): Add logic to length attribute defintion to call
525 arm_sync_loop_insns when appropriate.
526 * config/arm/sync.md: New file.
528 2010-08-17 Jakub Jelinek <jakub@redhat.com>
530 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
531 ENABLE_TREE_CHECKING.
532 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
535 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
537 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
538 or optimizing for size, always avoid lea if possible.
540 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
542 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
544 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
545 Dunmmy function with NULL return unless the target is
546 OSX >= 10.6 (Darwin10).
548 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
550 * gcc.c (spec_function): Add remove-outfile.
551 (remove_outfile_spec_function): New function.
552 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
553 * invoke.texi (replace-outfile): Document.
555 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
558 * reginfo.c (globalize_reg): Reject stack registers.
560 2010-08-17 Richard Guenther <rguenther@suse.de>
562 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
563 list of conditional equivalences.
564 (free_all_edge_infos): Adjust.
565 (record_equivalences_from_incoming_edge): Likewise.
566 (record_cond): Likewise.
567 (build_and_record_new_cond): Likewise.
568 (record_conditions): Likewise.
569 (dom_opt_leave_block): Likewise.
571 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
573 * doc/invoke.texi (ms-extension): Add documentation.
575 2010-08-17 Richard Guenther <rguenther@suse.de>
577 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
579 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
582 * c-decl.c (diagnose_uninitialized_cst_member): New function.
583 (finish_decl): Use it to issue a -Wc++-compat warning about
584 uninitialized const field in struct or union.
586 (finish_struct): Use strip_array_types.
588 2010-08-17 Jakub Jelinek <jakub@redhat.com>
590 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
592 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
593 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
594 call block_nreverse here.
595 (blocks_nreverse): Rename decl temporary to block.
597 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
599 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
600 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
601 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
602 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
603 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
604 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
605 thumb2_iorsi3): Delete.
606 (orsi_notsi_si): No longer a named pattern.
607 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
608 * config/arm/predicates.md (shift_amount_operand): New.
609 (mult_operator): New.
610 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
612 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
614 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
615 (not_shiftsi_compare0): Likewise, renamed from
616 arm_notsi_shiftsi_compare0.
617 (not_shiftsi_compare0_scratch): Likweise, renamed from
618 arm_notsi_shiftsi_compare0_scratch.
619 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
620 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
621 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
622 so that the register alternative is disabled when the shift_operator
623 is MULT. Use "M" as the constraint for constants.
624 (arith_shiftsi splitter): Enable for TARGET_32BIT.
625 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
626 constraint for constants.
627 (arith_shiftsi_compare0_scratch): Likewise.
628 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
629 Handle Thumb2 alternative.
631 2010-08-16 Joseph Myers <joseph@codesourcery.com>
633 * doc/options.texi (NoDriverArg): Document.
634 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
636 * opt-functions.awk (switch_flags): Handle NoDriverArg.
637 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
638 marking for CL_NO_DRIVER_ARG options when in the driver.
639 * opts.h (CL_NO_DRIVER_ARG): Define.
640 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
641 CL_COMMON): Update values.
643 2010-08-16 Joseph Myers <joseph@codesourcery.com>
645 * common.opt: Add driver options.
646 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
647 * doc/options.texi (Driver, RejectDriver): Document.
648 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
649 print_prog_name, print_multi_directory, print_sysroot,
650 print_multi_os_directory, print_multi_lib,
651 print_sysroot_headers_suffix, report_times, combine_flag,
652 use_pipes, wrapper_string): Remove.
653 (save_switch, driver_unknown_option_callback,
654 driver_wrong_lang_callback, driver_post_handling_callback,
655 driver_handle_option): New.
656 (spec_lang, last_language_n_infiles): Make file-scope static
657 instead of local to process_command.
658 (process_command): Use decode_cmdline_options_to_array and
659 read_cmdline_option for option processing. Compute have_c in
660 prescan of decoded options.
661 * opt-functions.awk (switch_flags): Handle Driver and
663 (var_type, var_type_struct): Handle Separate options as generating
664 const char * variables.
665 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
666 CL_TARGET to be passed by caller if required.
667 (decode_cmdline_options_to_array): Update comment.
668 * opts.c (complain_wrong_lang): Handle options only valid for the
670 (decode_options): Update call to decode_cmdline_options_to_array.
671 (print_filtered_help): Ignore driver-only options.
672 (print_specific_help): Ignore CL_DRIVER.
673 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
674 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
675 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
678 2010-08-16 Richard Guenther <rguenther@suse.de>
680 * tree-cfg.c (verify_types_in_gimple_reference): Verify
681 TARGET_MEM_REF a bit.
682 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
683 (create_mem_ref_raw): Always create TMR_OFFSET, store the
684 alias pointer type via it.
685 (copy_mem_ref_info): Adjust.
686 (maybe_fold_tmr): Likewise.
687 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
688 (reference_alias_ptr_type): Likewise.
689 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
690 adjust documentation of TMR_OFFSET operand.
691 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
692 use the alias pointer type.
693 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
694 initialize mem attrs but the TMR itself.
695 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
697 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
698 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
699 (unshare_and_remove_ssa_names): Likewise.
700 (copy_ref_info): Adjust.
701 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
703 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
705 * tree.h (TMR_ORIGINAL): Remove.
706 * gimple.c (get_base_address): For TARGET_MEM_REF with a
708 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
710 (get_addr_base_and_unit_offset): Likewise.
711 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
713 (indirect_ref_may_alias_decl_p): Likewise.
714 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
716 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
718 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
719 with GCC version 4.6, the default setting (when not optimizing
720 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
721 been changed to -fomit-frame-pointer.
723 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
725 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
726 Darwin10. Do not link libgcc.a for Darwin >= 9.
728 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
730 * doc/invoke.texi (Warning Options): Fix terminology and markup
731 in the description of how unknown warning options are handled.
733 2010-08-15 Ira Rosen <irar@il.ibm.com>
735 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
737 (vect_supportable_dr_alignment): Check alignment for basic blocks.
738 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
740 (vect_bb_vectorization_profitable_p): New function.
741 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
742 check if it's worthwhile to vectorize the basic block.
744 2010-08-14 Anatoly Sokolov <aesok@post.ru>
746 * reload.h (register_move_cost, memory_move_secondary_cost,
747 secondary_reload_class): Adjust prototype.
748 * rtl.h (reg_class_subset_p): Adjust prototype.
749 * reload.c (secondary_reload_class): Change arguments type from
750 enum reg_class to reg_class_t. Change result type to reg_class_t.
751 * reginfo.c (register_move_cost, reg_class_subset_p): Change
752 arguments type from enum reg_class to reg_class_t.
753 (memory_move_secondary_cost): Change arguments type from
754 enum reg_class to reg_class_t. Change type of saved_flags to
757 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
760 (struct mips_rtx_cost_data): Moved to mips.c.
761 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
762 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
763 (mips_cost): Make static.
764 (mips_canonicalize_move_class): Change argument type to reg_class_t.
765 Change result type to reg_class_t.
766 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
767 type from enum reg_class to reg_class_t.
768 (mips_register_move_cost): Make static. Change arguments
769 type from enum reg_class to reg_class_t.
770 (mips_memory_move_cost): New function.
771 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
773 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
775 PR rtl-optimization/43358
776 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
777 of a single hard register, using simplify_subreg_regno to decide
778 what that register should be.
780 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
782 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
783 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
784 (loongson_pmull<V_suffix>): Rename to...
785 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
787 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
789 * gcc/configure.ac: Enable -fomit-frame-pointer on darwin
790 which support dwarf2.
791 * config/i386/i386.c (override_options): Same.
793 2010-08-13 Jie Zhang <jie@codesourcery.com>
795 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
797 2010-08-12 Joseph Myers <joseph@codesourcery.com>
799 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
802 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
804 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
805 up dot_prod pattern searching if a stmt is outside the loop.
807 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
808 Uros Bizjak <ubizjak@gmail.com>
810 * config.gcc: Handle --enable-frame-pointer.
812 * configure.ac: Add --enable-frame-pointer.
813 * configure: Regenerated.
815 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
816 (override_options): If not configured with --enable-frame-pointer,
817 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
818 optimizing for size), -fasynchronous-unwind-tables and
819 -maccumulate-outgoing-args by default.
821 2010-08-12 Jakub Jelinek <jakub@redhat.com>
823 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
826 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
827 -a overflows. Normalize the range.
829 2010-08-12 Richard Guenther <rguenther@suse.de>
831 PR tree-optimization/45232
832 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
833 for types with undefined overflow.
834 (reassociate_bb): Allow re-associating of bit and min/max
835 operations for types with undefined overflow.
836 * tree-ssa-forwprop.c (associate_plusminus): New function.
837 (tree_ssa_forward_propagate_single_use_vars): Call it.
839 2010-08-12 Richard Guenther <rguenther@suse.de>
841 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
842 * tree-ssa-alias.c (get_ptr_info): Move ...
843 * tree-ssanames.c (get_ptr_info): ... here. Initialize
844 align and misalign fields conservatively.
845 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
846 derive alignment information.
847 (evaluate_stmt): Derive alignment information from memory
848 allocation functions.
849 * tree.h (get_pointer_alignment): Make unsigned.
850 * builtins.c (get_object_alignment): Use alignment information we
851 have computed for pointers.
852 (get_pointer_alignment): Likewise. Make conservative, return
854 (expand_builtin_strlen): Adjust.
855 (expand_builtin_memcmp): Likewise.
856 (expand_builtin_strcmp): Likewise.
857 (expand_builtin_strncmp): Likewise.
858 (get_builtin_sync_mem): Use at least mode alignment.
859 (fold_builtin_memset): Adjust.
860 (fold_builtin_memory_op): Likewise.
861 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
862 information also dump pointer alignment knowledge.
863 (dump_gimple_stmt): Likewise.
865 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
867 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
868 (EMPTY_FIELD_BOUNDARY): Remove.
869 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
871 2010-08-12 Jakub Jelinek <jakub@redhat.com>
874 * caller-save.c (save_call_clobbered_regs): Only swap notes with
875 DEBUG_INSNs if n_regs_saved.
877 2010-08-12 Wei Guozhi <carrot@google.com>
880 * config/arm/arm.md (andsi3): Change to zero extension if possible.
881 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
883 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
885 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
887 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
889 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
891 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
892 the case removed in the previous patch, when the only phi argument
893 is defined in the same loop as the phi node itself. Handle it
894 separately from the invariant case by both propagating it outside
895 the region and replacing the phi node with an assign.
897 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
899 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
900 constant phi nodes with one argument are is_gimple_min_invariant
901 and SSA_NAME_IS_DEFAULT_DEF.
903 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
905 * graphite-cloog-util.c (oppose_constraint):
906 Extend loop counter's value range (CLOOG_ORG).
907 (cloog_matrix_to_ppl_constraint): Same.
908 (new_Constraint_System_from_Cloog_matrix): Same.
909 * graphite-cloog-compat.h (matrix_num_type): New.
911 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
913 * graphite.c (graphite_initialize): Do not initialize
914 CLooG and initialize the Parma Polyhedra Library
915 manually when using CLOOG_ORG.
916 (graphite_finalize): Do not finalize CLooG and finalize
917 the Parma Polyhedra Library manually when using CLOOG_ORG.
918 * graphite-cloog-compat.h (cloog_initialize): Hide function
919 when using CLOOG_ORG.
920 (cloog_finalize): Same.
922 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
924 * graphite-clast-to-gimple.c (free_scattering): Change
925 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
927 (build_cloog_prog): Same.
928 * graphite-cloog-compat.h (cloog_domain): Removed.
929 (cloog_scattering): New.
930 (cloog_set_domain): Removed.
931 (cloog_set_scattering): New.
932 (cloog_next_domain): Removed.
933 (cloog_next_scattering): New.
934 (cloog_set_next_domain): Removed.
935 (cloog_set_next_scattering): New.
936 (CloogScatteringList): New.
937 (CloogScattering): New.
938 (cloog_scattering_free): New.
939 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
940 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
943 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
945 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
947 (set_cloog_options): Same.
948 (print_clast_stmt): Same.
949 (scop_to_clast): Same.
950 (print_generated_program): Same.
952 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
953 (scop_to_clast): Extend with CloogState.
954 * graphite-cloog-util.c: Include graphite-cloog-compat.h
955 (new_Cloog_Domain_from_ppl_Polyhedron):
956 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
957 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
958 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
959 * graphite-cloog-util.h (build_cloog_prog): Same.
960 * graphite-cloog-copat.h (build_cloog_prog): New.
962 (cloog_state_malloc): New.
963 (cloog_state_free): New.
964 (cloog_loop_malloc): New.
965 (cloog_options_malloc): New.
966 (cloog_statement_alloc): New.
967 (cloog_domain_from_cloog_matrix): New.
968 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
969 (new_Cloog_Domain_from_ppl_Polyhedron): New.
971 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
973 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
974 type of NAME now depends on used CLooG version.
975 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
976 (gcc_type_for_clast_expr): Same.
977 (print_clast_stmt): Replace pprint with clast_pprint.
978 * graphite-cloog-compat.h: Provide compatibility macros for
981 (clast_expr_term): New.
982 (clast_expr_red): New.
983 (clast_expr_bin): New.
986 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
988 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
989 compatible to newer CLooG releases (CLOOG_ORG).
990 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
991 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
992 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
993 (build_cloog_prog) : New.
994 (cloog_program_extract_scalars): New.
995 (cloog_program_scatter): New.
997 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
999 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
1000 conditionally (CLOOG_ORG).
1001 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
1002 (cloog_statement_usr): New.
1003 (cloog_domain): Same.
1004 (cloog_set_domain): Same.
1005 (cloog_next_domain): Same.
1006 (cloog_set_next_domain): Same.
1007 (cloog_program_nb_scattdims): Same.
1008 (cloog_program_set_nb_scattdims): Same.
1009 (cloog_program_names): Same.
1010 (cloog_program_set_names): Same.
1011 (cloog_program_set_context): Same.
1012 (cloog_program_set_loop): Same.
1013 (cloog_program_blocklist): Same.
1014 (cloog_program_set_blocklist): Same.
1015 (cloog_program_scaldims): Same.
1016 (cloog_program_set_scaldims): Same.
1017 (cloog_names_nb_parameters): Same.
1018 (cloog_names_set_nb_parameters): Same.
1019 (cloog_names_parameters): Same.
1020 (cloog_names_set_parameters): Same.
1021 (cloog_names_set_nb_iterators): Same.
1022 (cloog_names_set_iterators): Same.
1023 (cloog_names_set_nb_scattering): Same.
1024 (cloog_names_set_scattering): Same.
1025 (cloog_statement_set_usr): Same.
1026 (cloog_loop_set_next): Same.
1027 (cloog_loop_set_domain): Same.
1028 (cloog_loop_set_block): Same.
1029 (cloog_block_list_next): Same.
1030 (cloog_block_list_set_next):
1031 (cloog_block_list_set_block): Same.
1033 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1035 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
1037 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
1038 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
1039 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
1040 when something has been changed.
1041 (rewrite_commutative_reductions_out_of_ssa): Same.
1043 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1045 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
1046 handle the case when def is in the sese region.
1047 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
1048 for invariant expressions.
1049 (rewrite_cross_bb_phi_deps): Removed.
1050 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
1051 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
1052 rewrite_cross_bb_phi_deps.
1054 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1056 * graphite-sese-to-poly.c
1057 (rewrite_commutative_reductions_out_of_ssa_loop): Call
1058 scev_analyzable_p only on is_gimple_reg
1060 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1062 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
1063 (rewrite_close_phi_out_of_ssa): Propagate constant values or
1064 parametric expressions outside the scop region.
1065 (rewrite_cross_bb_scalar_deps): Same.
1066 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
1068 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1070 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
1071 SSA_NAME_DEF_STMT only on SSA_NAMEs.
1073 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1075 * tree-scalar-evolution.c (instantiate_scev_name): Do not
1076 instantiate default definitions.
1078 2010-08-11 Vladimir Kargov <kargov@gmail.com>
1079 Sebastian Pop <sebastian.pop@amd.com>
1081 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
1082 (loop_exits_from_bb_p): New.
1083 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
1084 (loop_exits_from_bb_p): Declared.
1085 * graphite-scop-detection.c (scopdet_basic_block_info): Call
1088 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1090 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
1091 extra parameter for the region. Call scev_analyzable_p.
1092 (rewrite_reductions_out_of_ssa): Update call to
1093 rewrite_close_phi_out_of_ssa.
1094 (rewrite_cross_bb_phi_deps): Same.
1095 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
1096 parameter for the region. Call scev_analyzable_p.
1097 (rewrite_commutative_reductions_out_of_ssa): Update call to
1098 rewrite_commutative_reductions_out_of_ssa_loop.
1100 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1102 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
1104 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1106 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
1107 SSA scalar phi nodes that can be scev_analyzable_p.
1109 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1111 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
1112 handle SSA_NAME_IS_DEFAULT_DEF.
1114 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1116 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
1118 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1120 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
1121 case non close-phi nodes with one argument.
1123 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1125 * sese.h (scev_analyzable_p): Scevs could be expressions without
1126 chrecs and still be scev_analyzable_p.
1128 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1130 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
1132 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1134 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
1135 * cfgloop.h (struct loop): Remove single_iv field.
1136 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
1137 (scop_canonicalize_loops): Removed.
1138 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
1139 over all the loop phi nodes in loop->header.
1140 (build_poly_scop): Remove use of scop_canonicalize_loops.
1142 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1144 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
1147 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1149 * tree-chrec.c (chrec_apply): Should only apply to the specified
1150 variable. Also handle multivariate chains of recurrences that
1151 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
1153 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1155 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
1156 (debug_clast_name_indexes_1): Removed.
1157 (debug_clast_name_indexes): Removed.
1158 (pbb_to_depth_to_oldiv): Removed.
1159 (build_iv_mapping): Replace the use of rename_map with iv_map.
1160 (translate_clast_user): Remove uses of rename_map. Allocate and
1162 (translate_clast_for_loop): Remove uses of rename_map.
1163 (translate_clast_for): Same.
1164 (translate_clast_guard): Same.
1165 (translate_clast): Same.
1167 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
1168 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
1169 * sese.c (set_rename): Now static.
1170 (rename_variables_in_stmt): Removed.
1172 (is_parameter): Removed.
1174 (expand_scalar_variables_call): Removed.
1175 (expand_scalar_variables_ssa_name): Removed.
1176 (expand_scalar_variables_expr): Removed.
1177 (expand_scalar_variables_stmt): Removed.
1178 (expand_scalar_variables): Removed.
1179 (rename_variables): Removed.
1180 (remove_condition): Removed.
1181 (get_true_edge_from_guard_bb): Removed.
1182 (get_false_edge_from_guard_bb): Removed.
1183 (struct igp): Removed.
1184 (default_before_guard): Removed.
1185 (convert_for_phi_arg): Removed.
1186 (add_guard_exit_phis): Removed.
1187 (insert_guard_phis): Removed.
1188 (graphite_copy_stmts_from_block): Now also uses iv_map and a
1189 region. Do not copy conditions. Do not copy induction variables.
1191 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
1192 the translated statement. Use the iv_map for the induction
1194 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
1195 (set_rename): Removed declaration.
1196 (scev_analyzable_p): ...here.
1197 * tree-chrec.c (chrec_apply_map): New.
1198 * tree-chrec.h (chrec_apply_map): Declared.
1200 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1202 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
1203 insert_loop_close_phis.
1204 * sese.c (name_defined_in_loop_p): Removed.
1205 (expr_defined_in_loop_p): Removed.
1206 (alive_after_loop): Removed.
1207 (close_phi_not_yet_inserted_p): Removed.
1208 (struct alep): Removed.
1209 (add_loop_exit_phis): Removed.
1210 (insert_loop_close_phis): Removed.
1212 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1214 * graphite-cloog-util.c
1215 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
1217 (psct_scattering_dim_for_loop_depth): Same.
1219 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1221 * graphite-cloog-util.h: Added cloog.h.
1222 * graphite-blocking.c: Removed cloog.h.
1223 * graphite-dependences.c: Same.
1224 * graphite-interchange.c: Same.
1225 * graphite-poly.c: Same.
1226 * graphite-ppl.c: Same.
1227 * graphite-scop-detection.c: Same.
1228 * graphite-sese-to-poly.c:
1230 Removed graphite-clast-to-gimple.h.
1231 (check_poly_representation): Removed (unused).
1232 * graphite-sese-to-poly.h
1233 (check_poly_representation): Removed (unused).
1235 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1237 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
1238 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
1239 (graphite-cloog-util.o): New.
1240 (graphite-ppl.o): Added graphite-cloog-util.h.
1241 * graphite-clast-to-gimple.c:
1242 Added graphite-cloog-util.h to include statements.
1243 * graphite-cloog-util.c: New.
1244 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
1245 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1246 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1247 (new_C_Polyhedron_from_Cloog_Matrix): Same.
1248 (insert_constraint_into_matrix): Same.
1249 (ppl_Constrain_System_number_of_constraints): Same.
1250 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1251 (oppose_constraint): Same.
1252 (cloog_matrix_to_ppl_constraint): Same.
1253 (new_Constraint_System_from_Cloog_Matrix): Same.
1254 * graphite-cloog-util.h: New.
1255 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
1256 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1257 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1258 (new_C_Polyhedron_from_Cloog_Matrix): Same.
1259 (insert_constraint_into_matrix): Same.
1261 Added graphite-cloog-util.h to include statements.
1262 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
1263 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1264 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1265 (new_C_Polyhedron_from_Cloog_Matrix): Same.
1266 (insert_constraint_into_matrix): Same.
1267 (ppl_Constrain_System_number_of_constraints): Same.
1268 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1269 (oppose_constraint): Same.
1270 (cloog_matrix_to_ppl_constraint): Same.
1271 (new_Constraint_System_from_Cloog_Matrix): Same.
1273 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
1274 graphite-cloog-util.h.
1275 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1276 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1277 (new_C_Polyhedron_from_Cloog_Matrix): Same.
1278 (insert_constraint_into_matrix): Same.
1280 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1282 * graphite-clast-to-gimple.c
1283 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
1284 (precision_for_interval): Same.
1285 (gcc_type_for_interval): Same.
1286 (compute_type_for_level): Same.
1287 * graphite-interchange.c
1288 (lst_interchange_profitable_p): Same.
1290 (psct_scattering_dim_for_loop_depth): Same.
1292 (ppl_max_for_le_pointset): Same.
1293 (ppl_min_for_le_pointset): Same.
1295 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1297 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
1298 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
1300 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1302 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
1303 rewrite_close_phi_out_of_ssa.
1305 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1307 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
1309 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1311 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
1313 * sese.c (debug_rename_map): Same.
1316 (rename_variables_in_stmt): Same.
1317 (expand_scalar_variables_call): Same.
1318 (expand_scalar_variables_ssa_name): Same.
1319 (expand_scalar_variables_expr): Same.
1320 (expand_scalar_variables_stmt): Same.
1321 (expand_scalar_variables): Same.
1322 (rename_variables): Same.
1323 (graphite_copy_stmts_from_block): Same.
1324 (copy_bb_and_scalar_dependences): Same.
1326 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1328 * graphite-clast-to-gimple.c (copy_renames): Removed.
1329 (translate_clast_for): Do not call copy_renames.
1330 (translate_clast_guard): Same.
1332 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1334 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
1335 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
1336 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
1337 before rewrite_cross_bb_scalar_deps.
1339 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1341 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
1342 Early return in when flag_associative_math is not set.
1344 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1346 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
1347 of SSA copies on edges except for loop->latch.
1349 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1351 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
1352 Split out of rewrite_reductions_out_of_ssa.
1353 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
1355 * graphite.c (graphite_transform_loops): Call it.
1357 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1359 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
1361 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
1363 * dbgcnt.def (graphite_scop): New counter.
1364 * graphite.c: Include dbgcnt.h.
1365 (graphite_transform_loops): Use new counter to limit transformations.
1366 * Makefile.in (graphite.o): Depend on DBGCNT_H.
1368 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1370 * passes.c (init_optimization_passes): Add pass_graphite.
1371 Schedule a pass_copy_prop before pass_graphite_transforms.
1372 * timevar.def (TV_GRAPHITE): Declared.
1373 * tree-pass.h (pass_graphite): Declared.
1374 * tree-ssa-loop.c (pass_graphite): New.
1376 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1378 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
1379 Remove calls to rename_nb_iterations and rename_sese_parameters.
1380 * graphite-clast-to-gimple.h (gloog): Update declaration.
1381 * graphite.c (graphite_transform_loops): Update call to gloog.
1382 * sese.c (rename_variables_in_expr): Removed.
1383 (rename_nb_iterations): Removed.
1384 (rename_sese_parameters): Removed.
1385 * sese.h (rename_nb_iterations): Removed.
1386 (rename_sese_parameters): Removed.
1388 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1390 * graphite-clast-to-gimple.c (gloog): Remove call to
1391 sese_adjust_liveout_phis.
1392 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
1393 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
1394 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
1395 rewrite_phi_out_of_ssa.
1396 * sese.c (get_vdef_before_sese): Removed.
1397 (sese_adjust_vphi): Removed.
1398 (sese_adjust_liveout_phis): Removed.
1399 * sese.h (sese_adjust_liveout_phis): Removed.
1401 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1403 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
1404 argument for the place after which to insert the out of SSA copy.
1405 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
1406 (rewrite_phi_out_of_ssa): Same.
1407 (rewrite_cross_bb_scalar_deps): Same.
1408 (insert_copyout): Removed.
1409 (insert_copyin): Removed.
1410 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
1411 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
1414 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1416 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
1417 (rewrite_reductions_out_of_ssa): Same.
1418 (rewrite_commutative_reductions_out_of_ssa): Same.
1419 (build_poly_scop): Do not call these functions.
1420 * graphite-sese-to-poly.h (build_poly_scop): Declared.
1421 (rewrite_reductions_out_of_ssa): Declared.
1422 (rewrite_commutative_reductions_out_of_ssa): Declared.
1423 * graphite.c (graphite_transform_loops): Call on every scop
1424 rewrite_commutative_reductions_out_of_ssa before calling
1425 rewrite_reductions_out_of_ssa and build_scop_bbs.
1427 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1429 * graphite-dependences.c (dot_deps): Make system call to dotty run
1431 (dot_deps_stmt): Same.
1432 * graphite-poly.c (dot_lst): Same.
1434 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1436 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
1437 phi_arg_in_outermost_loop.
1438 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
1439 (remove_invariant_phi): Same.
1441 2010-08-11 Anatoly Sokolov <aesok@post.ru>
1443 * target.def (output_addr_const_extra): New hook.
1444 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
1445 * doc/tm.texi: Regenerate.
1446 * targhooks.c (default_asm_output_addr_const_extra): New function.
1447 * targhooks.h (default_asm_output_addr_const_extra): Declare.
1448 * final.c: (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
1451 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1452 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
1453 * config/i386/i386.h (output_addr_const_extra): Rename to...
1454 (i386_asm_output_addr_const_extra): ...this. Make static.
1455 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1457 2010-08-11 Richard Henderson <rth@redhat.com>
1459 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
1461 2010-08-11 Nick Clifton <nickc@redhat.com>
1463 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
1464 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
1465 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
1466 stormy16-lib2-cmpsi.c.
1468 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
1471 2010-08-11 Joseph Myers <joseph@codesourcery.com>
1473 * opts.h (struct cl_option_handler_func): Make handler take
1474 cl_decoded_option structure as parameter, not individual elements.
1475 (struct cl_option_handlers): Make callbacks take cl_decoded_option
1476 structure as parameter, not individual elements.
1477 (handle_option): Take cl_decoded_option structure as parameter,
1478 not individual elements.
1479 (handle_generated_option): Declare.
1480 * opts-common.c (handle_option): Take cl_decoded_option structure
1481 as parameter, not individual elements. Update calls to callback
1482 and handler functions.
1483 (handle_generated_option): New.
1484 (read_cmdline_option): Update calls to callback functions and
1486 * opts.c (common_handle_option, complain_wrong_lang,
1487 unknown_option_callback, post_handling_callback,
1488 lang_handle_option, target_handle_option): Take cl_decoded_option
1489 structure as parameter, not individual elements.
1490 (lang_handle_option, target_handle_option, common_handle_option):
1491 Assert option has at most one argument.
1492 (enable_warning_as_error): Call handle_generated_option instead of
1493 handle_option. Do not pass -Werror argument as argument of
1496 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1498 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
1499 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
1500 (SUBWORD_BOOL_CAS): Likewise.
1501 (SUBWORD_SYNC_OP): Likewise.
1502 (SUBWORD_TEST_AND_SET): Likewise.
1503 (FETCH_AND_OP_WORD): Parenthesise INF_OP
1504 (SUBWORD_SYNC_OP): Likewise.
1505 (OP_AND_FETCH_WORD): Likewise.
1507 2010-08-10 Xinliang David Li <davidxl@google.com>
1509 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
1510 compute max/min offset in address.
1512 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
1514 * ira-live.c: Include sbitmap.h.
1515 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
1516 Compress live ranges even more.
1518 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
1520 * coverage.c (ctr_labels): Delete.
1522 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
1525 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
1526 test here from arm_gen_load_multiple_1.
1527 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
1528 multiple_operation_profitable_p.
1530 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
1532 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
1533 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
1535 2010-08-10 Richard Henderson <rth@redhat.com>
1537 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
1538 after saving registers. Assert that SSE registers are only saved
1539 with a sufficiently aligned frame.
1540 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
1541 remove stack_realign_fp handling.
1542 (ix86_expand_prologue): Save int registers before stack_realign_fp,
1543 and do not mark the stack alignment as frame related.
1544 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
1546 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
1547 saves when re-aligning the stack.
1549 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
1551 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
1552 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
1553 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
1555 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
1557 * dwarf2out.c (struct die_struct): Move die_tag to the end.
1559 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
1561 * config/arm/iterators.md: New file.
1562 * config/arm/arm.md: Include iterators.md.
1563 (QHSI): Move to new file.
1564 (LTUGEU, cnb, optab, ior_xor): Likewise.
1565 * config/arm/iwmmxt.md (VMMX): Move to new file.
1566 (VSHFT, MMX_char): Likewise.
1567 * config/arm/neon.md (VD): Move to new file.
1568 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
1569 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
1570 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
1571 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
1572 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
1573 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
1574 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
1575 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
1576 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
1577 (Is_d_reg, V_mode_nunits): Likewise.
1578 * config/arm/vec-common.md (VALL): Move to new file.
1579 (VALLW, VINT, VINTW): Likewise.
1581 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
1584 * combine.c (make_compound_operation): Don't try to convert
1585 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
1587 2010-08-10 Richard Guenther <rguenther@suse.de>
1589 * tree.h (get_object_alignment): Adjust prototype.
1590 * builtins.c (get_object_alignment): Return unsigned int,
1591 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
1592 and TARGET_MEM_REF properly.
1593 (get_pointer_alignment): Adjust.
1594 * emit-rtl.c (get_mem_align_offset): Adjust comment.
1595 (set_mem_attributes_minus_bitpos): Adjust.
1596 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
1598 2010-08-10 Richard Guenther <rguenther@suse.de>
1600 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
1601 (copy_prop_visit_assignment): Simplify.
1602 (copy_prop_visit_stmt): Also visit assignments from
1604 (copy_prop_visit_phi_node): Use operand_equal_p.
1606 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
1608 * ipa-split.c (find_split_points): Free stack.
1610 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
1612 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
1613 * tree.c (tree_node_kind): Delete corresponding entries.
1615 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
1617 * alias.c (may_alias_p): Remove unused ret.
1619 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
1621 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
1622 alias_sets_conflict_p.
1623 (walk_mems_1): Moved from alias.c.
1624 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
1626 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
1627 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
1628 * alias.c (walk_mems_2): Moved to ddg.c.
1629 (walk_mems_1): Ditto.
1630 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
1632 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
1634 *(may_alias_p): New function to check whether two memory expression
1635 may alias or not. Currently used in buidling inter-iteration memory
1637 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
1638 (insn_alias_sets_conflict_p): Removed
1639 *rtl.h (may_alias_p): New function prototype.
1641 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
1643 * tree.c (nreverse): Assert that we don't have a BLOCK.
1645 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
1647 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
1648 * config/arm/arm.c (arm_get_pcs_model): Likewise.
1649 * config/avr/avr.c (init_cumulative_args): Likewise.
1650 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1651 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1652 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
1653 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
1654 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
1655 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1656 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
1657 * dwarf2out.c (gen_subprogram_die): Likewise.
1658 * function.c (allocate_struct_function): Likewise.
1659 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
1660 (deserves_ellipsis): Delete.
1662 2010-08-09 Richard Guenther <rguenther@suse.de>
1664 * tree-ssa-copy.c (cached_last_copy_of): Remove.
1665 (valueize_val): New function.
1666 (get_last_copy_of): Remove.
1667 (set_copy_of_val): Simplify.
1668 (dump_copy_of): Likewise.
1669 (copy_prop_visit_cond_stmt): Use valueize_val.
1670 (copy_prop_visit_phi_node): Properly handle unvisited names.
1671 Drop code managing copy-of chains.
1672 (init_copy_prop): Adjust.
1673 (fini_copy_prop): Likewise.
1674 (execute_copy_prop): Remove obsolete comment.
1676 2010-08-09 Richard Guenther <rguenther@suse.de>
1679 * function.c (gimplify_parameters): Do not clear addressable
1680 bit of the original parameter.
1682 2010-08-09 Richard Guenther <rguenther@suse.de>
1685 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
1686 alignment from MEM_REF offset only if we took it from the
1689 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
1691 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
1693 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1695 * c-tree.h (build_arg_info): Declare.
1696 * c-decl.c (build_arg_info): Define.
1697 (get_parm_info): Call it. Delete initialization code.
1698 * c-parser.c (c_parser_parms_declarator): Likewise.
1699 (c_parser_parms_list_declaractor): Likewise.
1701 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1703 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
1704 (struct c_arg_info): Change type of tags field.
1705 * c-decl.c (grokdeclarator): Update for changed type of tags field.
1706 (get_parm_info): Likewise.
1707 (store_parm_decls_newstyle): Likewise.
1709 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1711 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
1712 (branch_island_list): Delete.
1713 (branch_islands): Declare.
1714 (add_compiler_branch_island): Adjust for branch_islands instead of
1716 (macho_branch_islands): Likewise.
1717 (no_previous_def): Likewise.
1718 (get_prev_label): Likewise.
1720 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1723 * gthr-posix.h (__gthread_start): Delete.
1724 (__gthread_active_init): Use pthread_default_stacksize_np instead of
1725 pthread_create to determine if hpux pthreads are active.
1726 * gthr-posix95.h (__gthread_start): Delete.
1727 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
1729 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
1731 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
1732 _WIN64 not expanded.
1734 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
1735 H.J. Lu <hongjiu.lu@intel.com>
1738 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
1739 to output 32bit SFmode immediate as 8 byte sign extended value.
1741 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
1743 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
1744 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
1745 (SUBWORD_BOOL_CAS): Likewise.
1746 (SUBWORD_SYNC_OP): Likewise.
1747 (SUBWORD_TEST_AND_SET): Likewise.
1748 (FETCH_AND_OP_WORD): Parenthesise INF_OP
1749 (SUBWORD_SYNC_OP): Likewise.
1750 (OP_AND_FETCH_WORD): Likewise.
1752 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1754 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
1755 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
1756 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
1757 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
1759 (cortex_a9_sched_adjust_cost): New function.
1760 (xscale_sched_adjust_cost): New function.
1761 * config/arm/arm-protos.h (struct tune_params): New field
1763 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
1765 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
1768 * config/sparc/sparc.c (function_arg_advance): Always take into account
1769 the padding, if any.
1771 2010-08-06 Richard Guenther <rguenther@suse.de>
1773 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
1774 (dump_lattice_value): Dump it.
1775 (get_default_value): Adjust.
1776 (get_constant_value): Likewise.
1777 (set_value_varying): Likewise.
1778 (set_lattice_value): Make sure to not go up the lattice
1779 with bitwise constant values.
1780 (get_value_for_expr): Handle ADDR_EXPRs.
1781 (value_to_double_int): New function.
1782 (get_value_from_alignment): Likewise.
1783 (do_dbg_cnt): Adjust.
1784 (ccp_lattice_meet): Handle partially constant values.
1785 (bit_value_unop_1): New function.
1786 (bit_value_binop_1): Likewise.
1787 (bit_value_unop): Likewise.
1788 (bit_value_binop): Likewise.
1789 (evaluate_stmt): Track partially constant values if
1790 flag_tree_bit_ccp is set.
1791 (ccp_fold_stmt): Dump if we folded a predicate.
1792 (ccp_visit_stmt): Adjust.
1793 * common.opt (ftree-bit-ccp): New flag.
1794 * doc/invoke.texi (ftree-bit-ccp): Document.
1795 * opts.c (decode_options): Enable bit-CCP at -O1.
1797 2010-08-06 Alan Modra <amodra@gmail.com>
1799 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
1800 and -mrelocatable-lib description.
1802 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
1804 From Martin Thuresson <martint@google.com>
1805 * postreload.c (reload_cse_simplify_operands): Use
1806 SET_REGNO_RAW instead of SET_REGNO.
1807 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
1809 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
1810 instead of SET_REGNO.
1811 * rtl.h (SET_REGNO_RAW): New macro.
1813 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
1815 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
1816 computations. Fix formatting issues.
1817 (num_sign_bit_copies1): Likewise.
1818 (canonicalize_condition): Likewise.
1820 2010-08-05 Richard Henderson <rth@redhat.com>
1822 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
1823 (floor_log2): Use clz_hwi.
1824 (exact_log2): Use ctz_hwi.
1825 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
1826 * builtins.c (fold_builtin_bitop): Use them.
1827 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1828 * combine.c (get_pos_from_mask): Use ctz_hwi.
1829 * double-int.c (double_int_ctz): Likewise.
1830 * explow.c (force_reg): Likewise.
1831 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
1833 2010-08-05 Richard Henderson <rth@redhat.com>
1836 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
1837 the alignment constant is properly sign-extended.
1839 2010-08-05 Richard Guenther <rguenther@suse.de>
1841 * expr.c (store_expr): Use emit_block_move only if both
1842 source and target are MEMs. Use store_bit_field if only
1843 the target is a MEM.
1845 2010-08-05 Richard Henderson <rth@redhat.com>
1848 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
1849 (INCOMING_RETURN_ADDR_RTX): Likewise.
1850 (dwarf2out_do_frame): Remove conditional compilation.
1851 (dwarf2out_frame_init): Likewise.
1853 2010-08-05 Nicolas Setton <setton@adacore.com>
1855 * gcov.c (flag_display_progress): New static variable.
1856 (main): Display progress info on standard output if requested.
1857 (options): Add -d/--display-progress.
1858 (print_usage): Print them.
1859 (process_args): Handle them.
1860 * doc/gcov.texi: Document them.
1862 2010-08-05 Martin Jambor <mjambor@suse.cz>
1864 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
1865 (ipcp_insert_stage): Redirect only edges not flagged with
1866 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
1867 discovered constants.
1869 2010-08-05 Martin Jambor <mjambor@suse.cz>
1871 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
1872 (struct ipa_param_descriptor): New fields types and
1873 cannot_devirtualize.
1874 (ipa_param_cannot_devirtualize_p): New function.
1875 (ipa_param_types_vec_empty): Likewise.
1876 (ipa_make_edge_direct_to_target): Declare.
1877 * ipa-cp.c: Fixed first stage driver name in initial comment,
1878 described devirtualization there too.
1879 (ipcp_analyze_node): Call ipa_analyze_params_uses.
1880 (ipcp_print_all_lattices): Print devirtualization info.
1881 (ipa_set_param_cannot_devirtualize): New function.
1882 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
1884 (ipcp_init_stage): Merged into...
1885 (ipcp_generate_summary): ...its caller.
1886 (ipcp_change_tops_to_bottom): Also process type lists.
1887 (ipcp_add_param_type): New function.
1888 (ipcp_copy_types): Likewise.
1889 (ipcp_propagate_types): Likewise.
1890 (ipcp_propagate_stage): Also propagate types.
1891 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
1892 Also return true if propagated types require it.
1893 (ipcp_update_callgraph): Dump redirection info.
1894 (ipcp_process_devirtualization_opportunities): New function.
1895 (ipcp_const_param_count): Include known type information.
1896 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
1897 on new node. Fixed formatting.
1898 * ipa-prop.c (make_edge_direct_to_target): Renamed to
1899 ipa_make_edge_direct_to_target and changed all callers. Made
1901 (ipa_node_duplication_hook): Duplicate types vector.
1902 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
1903 redirect outgoing calls for which we can't get a decl from the
1904 statement. Check that we can get a decl from the call statement.
1905 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1906 ipa_analyze_params_uses only when ipa-cp is disabled.
1907 * tree-inline.c (get_indirect_callee_fndecl): Removed.
1908 (expand_call_inline): Do not call get_indirect_callee_fndecl.
1909 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
1910 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
1912 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
1914 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
1915 temporary. Emit move from temporary to accum, so REG_EQUAL note will
1916 be attached to this insn in correct mode.
1918 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
1920 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
1921 using REGNO of base_reg directly.
1923 2010-08-05 Jie Zhang <jie@codesourcery.com>
1925 PR tree-optimization/45144
1926 * tree-sra.c (type_consists_of_records_p): Return false
1927 if the record contains bit-field.
1929 2010-08-04 Richard Henderson <rth@redhat.com>
1931 * config/i386/i386.c (struct ix86_frame): Remove padding and
1932 to_allocate members.
1933 (ix86_compute_frame_layout): Don't store them.
1934 (ix86_can_use_return_insn_p): Use a more direct and more obviously
1935 correct condition for the position of the stack pointer.
1936 (ix86_expand_prologue): Compute remaining stack allocation based
1937 on the ultimate stack pointer offset.
1938 (ix86_expand_epilogue): Use more obvious expressions testing for
1939 the stack pointer already pointing to the saved registers.
1941 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
1942 duplication deconstructing the frame pointer. Simplify
1943 deallocation of the local stack frame.
1945 * reg-notes.def (CFA_EXPRESSION): New.
1946 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
1947 (dwarf2out_frame_debug_cfa_expression): New.
1948 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
1950 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
1951 * config/i386/i386.c (ix86_expand_prologue): Set it.
1952 (ix86_expand_epilogue): Clear it.
1953 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
1954 context, add REG_CFA_EXPRESSION notes.
1956 * config/i386/i386.h (struct machine_frame_state): Rename from
1957 machine_cfa_state. Add members tracking SP and FP regardless
1958 of the current CFA register.
1959 (ix86_cfa_state): Remove.
1960 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
1961 and sse_reg_save_offset members.
1962 (ix86_compute_frame_layout): Set them.
1963 (gen_push): Increment sp_offset too.
1964 (choose_baseaddr_len, choose_baseaddr): New.
1965 (ix86_emit_save_reg_using_mov): New.
1966 (ix86_emit_save_regs_using_mov): Use it.
1967 (ix86_emit_save_sse_regs_using_mov): Likewise.
1968 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
1969 compare vs the saved red_zone_offset.
1970 (pro_epilogue_adjust_stack): Adjust sp_offset.
1971 (ix86_adjust_stack_and_probe): Likewise.
1972 (ix86_expand_prologue): Set up, use, and validate the new
1973 frame_state_info members. Use gen_frame_mem.
1974 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
1975 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
1976 new frame_state_info members.
1977 (ix86_emit_leave): Likewise.
1978 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
1979 out-of-range stack pointer offsets here.
1980 (ix86_emit_restore_sse_regs_using_mov): Likewise.
1981 (ix86_expand_epilogue): Use and validate the new frame_state_info
1982 members. Break up and simplify the logic selecting the
1983 restore_regs_via_mov code path. Ensure that there will be no
1984 out-of-range stack pointer offsets.
1986 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
1988 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
1989 argument name to reflect the expected tree; fix indentation.
1990 (ix86_asm_output_function_label): Output the entire 32-bit
1991 ms_hook here as bytes ...
1992 (ix86_expand_prologue): ... not here as insns. Attach the
1993 unwind info for the ms_hook to a blockage insn.
1994 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
1995 (ix86_ms_bitfield_layout_p): Fix indentation.
1996 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
1998 * config/i386/i386.c (ix86_using_red_zone): New.
1999 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
2000 ix86_expand_prologue, ix86_force_to_memory): Use it.
2002 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
2003 saving the int registers.
2005 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
2006 and DWARF2_UNWIND_INFO conditional compilation.
2008 2010-08-04 Richard Henderson <rth@redhat.com>
2011 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
2012 an is_naming_typedef_decl.
2014 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
2016 PR rtl-optimization/45162
2017 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
2018 * dce.c (word_dce_process_block): Likewise.
2020 2010-08-04 Steve Ellcey <sje@cup.hp.com>
2023 * config/ia64/constraints.md (Z): New.
2024 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
2025 (xfreg_or_signed_fp01_operand): New.
2026 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
2027 with fr_reg_or_signed_fp01_operand and constraint G with Z.
2032 (adddf3_trunc): Ditto.
2034 (*subdf3_trunc): Ditto.
2036 (*madddf4_trunc): Ditto.
2038 (*msubdf4_trunc): Ditto.
2039 (addxf3): Replace xfreg_or_fp01_operand with
2040 xfreg_or_signed_fp01_operand and constraint G with Z.
2041 (*addxf3_truncsf): Ditto.
2042 (*addxf3_truncdf): Ditto.
2044 (*subxf3_truncsf): Ditto.
2045 (*subxf3_truncdf): Ditto.
2047 (*maddxf4_truncsf): Ditto.
2048 (*maddxf4_truncdf): Ditto.
2050 (*msubxf4_truncsf): Ditto.
2051 (*msubxf4_truncdf): Ditto.
2053 2010-08-04 Richard Guenther <rguenther@suse.de>
2055 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
2056 if either alias-set is zero.
2058 2010-08-04 Richard Guenther <rguenther@suse.de>
2060 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
2061 * tree-ssa-ccp.c: ... here.
2062 * tree-ssa-copy.c: ... and here.
2063 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
2064 value_range_t): Move ...
2065 * tree-vrp.c: ... here.
2066 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
2067 (substitute_and_fold): Adjust prototype.
2068 * tree-ssa-propagate.c (replace_uses_in): Adjust.
2069 (replace_phi_args_in): Likewise.
2070 (substitute_and_fold): Take callback to query lattice instead
2071 of pointer to lattice. Replace SSA name defs with lattice
2073 * tree-ssa-ccp.c (ccp_finalize): Adjust.
2074 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
2075 (get_value): New function.
2076 (fini_copy_prop): Adjust.
2077 * tree-vrp.c (vrp_finalize): Adjust.
2079 2010-08-04 Richard Guenther <rguenther@suse.de>
2082 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
2083 points-to set for original MEM_REF.
2085 2010-08-04 Richard Guenther <rguenther@suse.de>
2087 * tree-ssa-ccp.c (get_constant_value): New function.
2088 (get_rhs_assign_op_for_ccp): Remove.
2089 (valueize_op): New function.
2090 (ccp_fold): Use get_constant_value and valueize_op.
2091 (fold_const_aggregate_ref): Likewise.
2092 (ccp_fold_stmt): Likewise.
2093 (visit_assignment): Simplify.
2095 2010-08-04 Richard Guenther <rguenther@suse.de>
2097 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
2098 * double-int.h (double_int_ctz): Declare.
2099 * double-int.c (double_int_ctz): New function.
2101 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
2103 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
2105 picochip_expand_movmemhi : Expand movmem pattern.
2106 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
2108 * config/picochip/picochip.md (movmemhi) : New pattern.
2110 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
2112 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
2114 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
2116 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
2117 NEG as operand of a MULT by merging it with the other operand.
2118 * combine.c (make_compound_operation): Use trunc_int_for_mode when
2119 generating a MULT with constant. Canonicalize PLUS and MINUS involving
2121 * config/arm/constraints.md (M): Examine only 32 bits of a
2123 * config/arm/predicates.md (power_of_two_operand): Likewise.
2125 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2127 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
2130 2010-08-03 Jan Hubicka <jh@suse.cz>
2132 * ipa-split.c (struct split_point): Add split_part_set_retval.
2133 (find_retval): Forward declare.
2134 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
2135 (consider_split): Compute current->split_part_set_retval.
2136 (visit_bb): Do not look into return value.
2137 (split_function): Handle !split_part_set_retval
2139 2010-08-03 Martin Jambor <mjambor@suse.cz>
2141 * tree-sra.c (completely_scalarize_record): New parameter REF, create
2142 its own access->expr intead of using build_ref_for_offset.
2144 2010-08-03 Joseph Myers <joseph@codesourcery.com>
2146 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
2147 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
2148 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
2149 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
2150 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
2151 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
2152 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
2153 DEFAULT_SWITCH_TAKES_ARG.
2154 * config/rx/rx.opt (-patch=): Remove option.
2155 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
2156 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
2157 * doc/invoke.texi (RX Options): Remove -patch=.
2158 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
2159 (option_map): Remove --profile-blocks, --quiet and --silent.
2161 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
2163 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
2164 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
2165 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
2166 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
2167 Update calls to ix86_expand_compare and ix86_expand_branch.
2168 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
2169 ix86_expand_compare.
2170 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
2171 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
2173 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
2174 and ix86_compare_op1. Update calls to ix86_expand_compare.
2175 (ix86_expand_int_movcc): Ditto.
2176 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
2177 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
2178 (ix86_expand_setcc): Ditto.
2179 (ix86_expand_compare): Remove prototype.
2180 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
2181 ix86_compare_op0 and ix86_compare_op1. Update calls
2182 to ix86_expand_branch to directly pass operands[1] and operands[2].
2183 (cbranchxf4): Ditto.
2184 (cbranch<MODEF:mode>4): Ditto.
2185 (cbranchcc4): Ditto.
2186 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
2187 Update calls to ix86_expand_setcc to directly pass operands[2] and
2190 (cstore<MODEF:mode>4): Ditto.
2193 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
2196 * caller-save.c (save_call_clobbered_regs): Remove regs from
2197 hard_regs_saved when they are set.
2199 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
2202 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
2205 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
2207 * common.opt (ftree-loop-distribute-patterns): New.
2208 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
2209 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
2211 * tree-data-ref.c (stores_zero_from_loop): New.
2212 * tree-data-ref.h (stores_zero_from_loop): Declared.
2213 * tree-loop-distribution.c (tree_loop_distribution): Call
2214 stores_zero_from_loop.
2215 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
2217 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
2219 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
2222 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
2223 * config/arm/arm.c (thumb1_code): New variable.
2224 (arm_override_options): Set it.
2225 (thumb1_final_prescan_insn): Keep track of condition code status.
2226 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
2227 jumps that depend on them.
2228 * config/arm/arm.h (thumb1_code): Declare variable.
2229 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
2230 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
2232 (CC_STATUS_INIT): New macro.
2233 * config/arm/constraints.md (Pd): New constraint.
2234 * config/arm/predicates.md (noov_comparison_operator): New predicate.
2235 * config/arm/arm.md (is_thumb1): New define_attr.
2236 (conds): Set default to "clob" when generating Thumb1 code.
2237 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
2238 code are set. Use two-operand assembly syntax.
2239 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
2241 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
2242 codes are set. Use two-operand assembly syntax.
2243 (zero_extendhisi splitter): Remove constraints.
2244 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
2245 thumb1_movsf_insn): Set conds attribute as appropriate.
2246 (cbranchsi4_insn): Use condition code status from struct
2247 machine_function to determine whether the comparison can be eliminated.
2248 Discourage the alternative using high registers.
2249 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
2250 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
2251 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
2252 subsi3_cbranch): Delete.
2253 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
2254 one subtract and one cbranch insn.
2256 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
2257 thumb2_movdf_soft_insn): Delete patterns.
2258 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
2259 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
2260 (pool_range, neg_pool_range): Use them to define defaults.
2261 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
2262 and allow for TARGET_32BIT.
2265 * config/arm/arm.h (arm_regs_in_sequence): Declare.
2266 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
2267 load_multiple_sequence, store_multiple_sequence): Delete
2269 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
2271 * config/arm/ldmstm.md: New file.
2272 * config/arm/arm.c (arm_regs_in_sequence): New array.
2273 (load_multiple_sequence): Now static. New args SAVED_ORDER,
2274 CHECK_REGS. All callers changed.
2275 If SAVED_ORDER is nonnull, copy the computed order into it.
2276 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
2277 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
2278 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
2279 If SAVED_ORDER is nonnull, copy the computed order into it.
2280 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
2281 like REGS. Handle Thumb mode.
2282 (arm_gen_load_multiple_1): New function, broken out of
2283 arm_gen_load_multiple.
2284 (arm_gen_store_multiple_1): New function, broken out of
2285 arm_gen_store_multiple.
2286 (arm_gen_multiple_op): New function, with code from
2287 arm_gen_load_multiple and arm_gen_store_multiple moved here.
2288 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
2289 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
2291 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
2292 * config/arm/predicates.md (commutative_binary_operator): New.
2293 (load_multiple_operation, store_multiple_operation): Handle more
2294 variants of these patterns with different starting offsets. Handle
2296 * config/arm/arm.md: Include "ldmstm.md".
2297 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
2298 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
2299 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
2301 * config/arm/ldmstm.md: New file.
2302 * config/arm/arm-ldmstm.ml: New file.
2304 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
2305 if statement which adds extra costs to frame-related expressions.
2307 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2309 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
2311 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
2314 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
2316 (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
2317 split V4SI operands.
2319 2010-08-01 Anatoly Sokolov <aesok@post.ru>
2321 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2322 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
2323 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
2324 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
2326 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
2328 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
2331 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
2333 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
2334 used in the call to optab_for_tree_code. Fix the second
2335 is_widening_mult_p call. Check that both unwidened operands
2338 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
2340 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
2342 2010-07-31 Anatoly Sokolov <aesok@post.ru>
2344 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2346 2010-07-30 DJ Delorie <dj@redhat.com>
2348 * config/rx/predicates.md (rx_constshift_operand): New.
2349 * config/rx/rx.md (zs_cond): New.
2350 (cbranchsi4): Remove mode.
2351 (*cbranchsi4_<code>): Likewise.
2352 (*tstbranchsi4_<code>): New.
2353 (*tstbranchsi4r_<code>): New.
2354 (*tstbranchsi4m_eq): New.
2355 (*tstbranchsi4m_ne): New.
2356 (cbranchsf4): Remove mode.
2357 (*cbranchsf4_<code>): Likewise.
2359 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
2361 * rtlanal.c (simplify_subreg_regno): Don't treat
2362 HARD_FRAME_POINTER_REGNUM specially.
2364 2010-07-30 Joseph Myers <joseph@codesourcery.com>
2366 * common.opt (-G): Don't define option here.
2367 * config/g.opt: New.
2368 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
2369 rs6000/powerpc and score targets.
2370 * opts.c (common_handle_option): Don't handle -G here.
2371 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
2372 * config/frv/frv.c (frv_handle_option): Handle -G.
2373 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
2374 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
2375 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
2376 * config/mips/mips.c (mips_handle_option): Handle -G.
2377 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
2378 * config/score/score.c (score_handle_option): Handle -G.
2380 2010-07-30 Anatoly Sokolov <aesok@post.ru>
2382 * config/mmix/mmix.c: Include basic-block.h.
2384 2010-07-30 Jakub Jelinek <jakub@redhat.com>
2387 PR rtl-optimization/45137
2388 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
2390 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
2392 * combine.c (next_nonnote_nondebug_insn): Removed.
2393 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
2394 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
2395 * sched-deps.c (sched_analyze_insn): Likewise.
2396 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
2397 * rtlanal.c (canonicalize_condition): Likewise.
2398 * postreload.c (reload_combine_recognize_pattern): Likewise.
2399 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
2401 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
2403 * config/i386/i386.md (int_cond): Remove code iterator.
2405 (cbranch<mode>4): Use ordered_comparison_operator predicate
2407 (cstore<mode>4): Ditto for operator1.
2408 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
2409 (add<mode>cc): ditto.
2411 2010-07-30 Richard Guenther <rguenther@suse.de>
2414 * expr.c (expand_expr_real_1): Check for not handled base address.
2416 2010-07-30 Richard Guenther <rguenther@suse.de>
2418 * ipa-prop.c (ipa_modify_formal_parameters): Use
2419 build_distinct_type_copy.
2421 2010-07-30 Anthony Green <green@moxielogic.com>
2423 * config/moxie/rtems.h: New file.
2424 * config.gcc: Add moxie-rtems support.
2426 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
2428 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
2429 df flags as in run_fast_df_dce.
2431 2010-07-29 Jakub Jelinek <jakub@redhat.com>
2434 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
2436 * rtl.def (NOTE): Swap operands 4 and 5.
2437 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
2438 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
2440 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
2442 2010-07-29 Jakub Jelinek <jakub@redhat.com>
2445 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
2446 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
2447 (gen_subprogram_die): Likewise. Remove it when removing declaration's
2449 (gen_decl_die): Change return type to dw_die_ref, return what
2450 gen_formal_parameter_die returned.
2452 2010-07-29 Martin Jambor <mjambor@suse.cz>
2454 * dbgcnt.def (eipa_sra): New counter.
2455 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
2457 2010-07-29 Xinliang David Li <davidxl@google.com>
2460 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
2463 2010-07-29 Richard Guenther <rguenther@suse.de>
2465 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
2466 (TV_TREE_STORE_CCP): Likewise.
2467 (TV_TREE_REDPHI): Likewise.
2469 2010-07-29 Richard Guenther <rguenther@suse.de>
2471 * double-int.h (double_int_and_not): New function.
2472 * combine.c (try_combine): Use it.
2473 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
2475 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
2477 PR rtl-optimization/42575
2478 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
2479 Argument AU removed. All callers changed. Ignore artificial refs.
2480 Use return value of df_word_lr_simulate_defs to decide whether an insn
2482 (fast_dce): Rename arg to WORD_LEVEL.
2483 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
2485 (pass_fast_rtl_byte_dce): Delete.
2486 * dce.h (run_word_dce): Declare.
2487 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
2488 All callers changed. Simplify code to only deal with two-word regs.
2489 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
2490 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
2491 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
2492 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
2493 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
2494 (df_word_lr_mark_ref): Declare.
2495 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
2496 df_word_lr_simulate_uses): Declare or rename from byte variants.
2497 (df_byte_lr_simulate_artificial_refs_at_top,
2498 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
2499 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
2501 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
2502 (enum df_mm): Delete.
2503 * df-byte-scan.c: Delete file.
2504 * df-problems.c (df_word_lr_problem_data): Renamed from
2505 df_byte_lr_problem_data, all members deleted except for
2506 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
2507 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
2508 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
2509 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
2510 df_byte_lr_confluence_0): Delete functions.
2511 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
2513 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
2514 Don't initialize members that were deleted, don't try to discover data
2515 about registers. Ignore hard regs.
2516 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
2517 (df_word_lr_mark_ref): New function.
2518 (df_word_lr_bb_local_compute): Renamed from
2519 df_byte_bb_lr_local_compute; all callers changed. Use
2520 df_word_lr_mark_ref. Assert that artificial refs don't include
2521 pseudos. Ignore hard registers.
2522 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
2523 Assert that exit block uses don't contain pseudos.
2524 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
2525 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
2526 callers changed. Ignore hard regs.
2527 (df_word_lr_transfer_function): Renamed from
2528 df_byte_lr_transfer_function; all callers changed.
2529 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
2530 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
2532 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
2534 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
2535 confluence operator 0 set to NULL.
2536 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
2538 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
2539 Return bool, true if bitmap changed or insn otherwise necessary.
2540 All callers changed. Simplify using df_word_lr_mark_ref.
2541 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
2542 all callers changed. Simplify using df_word_lr_mark_ref.
2543 * lower-subreg.c: Include "dce.h"
2544 (decompose_multiword_subregs): Call run_word_dce if df available.
2545 * Makefile.in (lower-subreg.o): Adjust dependencies.
2546 (df-byte-scan.o): Delete.
2547 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
2549 2010-07-29 Richard Guenther <rguenther@suse.de>
2551 * tree.c (build_vector): Assert that the vector constant
2552 has enough elements.
2553 (build_vector_from_ctor): Pad with trailing zeros.
2555 2010-07-29 Richard Guenther <rguenther@suse.de>
2557 PR tree-optimization/45120
2558 * tree-ssa-structalias.c (get_constraint_for_component_ref):
2559 Handle offset in DEREFs properly.
2560 (get_constraint_for_1): Handle MEM_REF offset properly.
2562 2010-07-29 Richard Guenther <rguenther@suse.de>
2565 * convert.c (convert_to_integer): Always use an unsigned
2566 type for narrowed negate and bitwise not.
2568 2010-07-29 Ira Rosen <irar@il.ibm.com>
2570 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
2571 to outer loop when creating reduction epilogue for double reduction,
2572 and switch back to the inner loop when updating the phi nodes.
2573 Update uses of outer loop exit phi nodes in double reduction (instead
2574 of uses of reduction).
2576 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
2578 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
2579 popcount on power7 and parity on power6 systems.
2580 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
2581 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
2584 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
2585 (UNSPEC_PARITY): Ditto.
2586 (SFDF): New iterator for SF/DF.
2587 (rreg2): New mode attribute for floating register constraint.
2588 (TARGET_FLOAT): New mode attribute for whether single/double float
2590 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
2592 (parity<mode>2_cmpb): New insn for parity on power6 and newer
2594 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
2595 pattern. Add support for fcpsgn instruction added in power6.
2596 (copysignsf3): Delete.
2597 (copysigndf3): Delete.
2598 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
2599 instead of if_then_else in RTL to avoid problems with -0.
2601 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
2602 of if_then_else to mirror scalar code.
2603 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
2606 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
2607 instead of if_then_else.
2609 2010-07-28 Xinliang David Li <davidxl@google.com>
2611 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
2612 (dump_cand): Dump var_before/after.
2613 (htab_inv_expr_eq): New function.
2614 (htab_inv_expr_hash): New function.
2615 (tree_ssa_iv_optimize_init): Support pseudo invariants.
2616 (add_candidate_1): consider base type precision.
2617 (set_use_iv_cost): New parameter.
2618 (adjust_setup_cost): Use profile information.
2619 (get_address_cost): Do not hard code width in computing address
2621 (compare_aff_trees): New function.
2622 (get_loop_invariant_expr_id): New function.
2623 (get_computation_cost_at): New parameter and use profile information.
2624 (get_computation_cost): New parameter.
2625 (determine_use_iv_cost_generic): Pass new parameter.
2626 (determine_use_iv_cost_address): Ditto.
2627 (determine_use_iv_cost_condition): Ditto.
2628 (autoinc_possible_for_pair): Ditto.
2629 (determine_use_iv_costs): More dumps.
2630 (iv_ca_get_num_inv_exprs): New function.
2631 (iv_ca_recount_cost): Consider loop invariants in register pressure
2633 (iv_ca_add_use): New parameter.
2634 (iv_ca_dump): Better dumping.
2635 (iv_ca_extend): New parameter.
2636 (try_add_cand_for): Attempt to get better partial solution.
2637 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
2638 (create_new-ivs): More dumps.
2639 (rewrite_use_compare): Ditto.
2640 (free_loop_data): More cleanup.
2641 (treee_ssa_iv_optimize_finalize): Ditto.
2643 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
2645 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
2646 * config/i386/i386.c (ix86_profile_before_prologue): New.
2647 (override_options): Add special handling for -mfentry.
2648 (ix86_function_regparm): Likewise.
2649 (ix86_function_sseregparm): Likewise.
2650 (ix86_frame_pointer_required): Likewise.
2651 (ix86_expand_prologue): Check for ms_hook_prologue.
2652 (x86_function_profiler): Adjust mcount output.
2653 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
2654 * config/i386/i386.opt (mfentry): New.
2655 * doc/invoke.texi (mfentry): Add documentation.
2656 * doc/tm.texi: Regenerated..
2657 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
2658 * final.c (final_start_function): Replace macro
2659 PROFILE_BEFORE_PROLOGUE by target hook.
2660 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2661 * target.def (profile_before_prologue): New hook.
2662 * targhooks.c (default_profile_before_prologue): New.
2663 * targhooks.h (default_profile_before_prologue): New.
2665 2010-07-28 Jakub Jelinek <jakub@redhat.com>
2668 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
2671 * dwarf2out.c (dwarf2out_var_location): Always consider
2672 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
2674 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
2676 PR rtl-optimization/45107
2677 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
2679 2010-07-28 Richard Guenther <rguenther@suse.de>
2681 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
2682 (set_lattice_value): Do not query an old default value.
2683 (get_value_for_expr): New function. Properly canonicalize
2685 (ccp_visit_phi_node): Use it.
2687 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
2689 * config/arm/arm.c (arm_pcs_default): Remove static.
2690 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
2691 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
2692 (arm_pcs_default): Declare.
2694 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
2696 * config/rs6000/rs6000.c (rs6000_override_options):
2697 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
2698 ... to darwin_rs6000_override_options.
2699 (rs6000_return_in_memory): Update preceding comment for darwin
2700 64 bit ABI. Use TARGET_MACHO inline.
2701 (rs6000_darwin64_struct_check_p): New.
2702 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
2703 (function_arg): Likewise.
2704 (rs6000_arg_partial_bytes): Likewise.
2705 (rs6000_function_value): Likewise.
2707 2010-07-28 Andi Kleen <ak@linux.intel.com>
2709 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
2711 2010-07-28 Richard Guenther <rguenther@suse.de>
2714 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
2715 targets try harder to not generate unaligned accesses.
2717 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
2719 PR rtl-optimization/45101
2720 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
2723 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
2725 PR tree-optimization/44885
2726 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
2727 with non-aliased component.
2729 2010-07-28 Joseph Myers <joseph@codesourcery.com>
2731 * config/darwin-driver.c (SWITCH_TAKES_ARG,
2732 WORD_SWITCH_TAKES_ARG): Remove.
2733 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2734 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
2735 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
2736 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
2737 definitions from gcc.c.
2738 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
2740 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
2742 * opts-common.c: Include tm.h.
2743 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
2744 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
2745 Handle more than one argument. Set canonical_option_num_elements.
2746 (decode_cmdline_options_to_array): Set
2747 canonical_option_num_elements and trailing elements of
2749 * opts.h (struct cl_decoded_option): Allow four elements in
2750 canonical_option. Add field canonical_option_num_elements.
2751 * Makefile.in (opts-common.o): Update dependencies.
2753 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
2757 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
2758 sure the base has address_mode before adding the offset.
2760 2010-07-27 Xinliang David Li <davidxl@google.com>
2762 * tree-flow.h (create_mem_ref): Add one new parameter.
2763 * tree-ssa-address.c (create_mem_ref): New parameter.
2764 (addr_to_parts): Ditto.
2765 (move_variant_to_index): New function.
2766 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
2768 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
2770 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
2772 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
2773 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
2774 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
2775 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
2776 CODE_LABELs and NOTEs.
2777 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
2778 * combine.c (try_combine): Likewise.
2779 * ira.c (setup_prohibited_mode_move_regs): Likewise.
2780 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
2782 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2784 * coretypes.h (struct cl_option_handlers): Declare.
2785 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
2786 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
2787 * langhooks-def.h (lhd_handle_option): Declare.
2788 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
2789 * langhooks.c (lhd_handle_option): New.
2790 * langhooks.h (struct lang_hooks): Update prototype and return
2791 value type of handle_option hook.
2792 * optc-gen.awk: Generate target_flags_explicit definition for the
2794 * opts-common.c: Include diagnostic.h.
2795 (handle_option): Move from opts.c. Update prototype and return
2796 value type. Use handlers structure.
2797 (read_cmdline_option): Move from opts.c. Update prototype. Use
2799 (set_option): Move from opts.c.
2800 * opts.c (common_handle_option): Update prototype and return value
2801 type. Update calls to handle_option and enable_warning_as_error.
2802 (unknown_option_callback, post_handling_callback,
2803 lang_handle_option, target_handle_option): New.
2804 (handle_option, read_cmdline_option): Move to opts-common.c.
2805 (read_cmdline_options): Update prototype. Update call to
2806 read_cmdline_option.
2807 (decode_options): Initialize and use handlers structure.
2808 (set_option): Move to opts-common.c.
2809 (enable_warning_as_error): Update prototype. Update call to
2811 * opts.h (struct cl_option_handler_func, struct
2812 cl_option_handlers): New.
2813 (handle_option, enable_warning_as_error): Update prototypes.
2814 (read_cmdline_option): Declare.
2815 * Makefile.in (opts-common.o): Update dependencies.
2817 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2819 * config/arm/arm.c (params.h): Include.
2820 (arm_override_options): Tune gcse-unrestricted-cost.
2821 * config/arm/t-arm (arm.o): Define dependencies.
2823 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2827 * basic-block.h (get_dominated_to_depth): Declare.
2828 * dominance.c (get_dominated_to_depth): New function, use
2829 get_all_dominated_blocks as a base.
2830 (get_all_dominated_blocks): Use get_dominated_to_depth.
2832 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
2833 (hoist_exprs): Remove.
2834 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
2835 (compute_code_hoist_vbeinout): Add debug print outs.
2836 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
2838 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
2840 * params.h (MAX_HOIST_DEPTH): New macro.
2841 * doc/invoke.texi (max-hoist-depth): Document.
2843 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2845 PR rtl-optimization/40956
2846 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
2849 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2853 * config/arm/arm.c (legitimize_pic_address): Use
2854 gen_calculate_pic_address pattern to emit calculation of PIC address.
2855 (will_be_in_index_register): New function.
2856 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
2857 (thumb1_legitimate_address_p): Use it provided !strict_p.
2858 * config/arm/arm.md (calculate_pic_address): New expand and split.
2860 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2864 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
2865 * config/arm/arm.md (define_split "J", define_split "K"): Make
2866 IRA/reload friendly.
2868 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2870 * gcse.c (insert_insn_end_basic_block): Update signature, remove
2872 (pre_edge_insert, hoist_code): Update.
2874 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2878 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
2880 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2882 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
2884 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2886 PR rtl-optimization/40956
2889 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
2891 (hoist_code): Count occurences in current block too.
2893 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2895 * gcse.c (struct expr:max_distance): New field.
2896 (doing_code_hoisting_p): New static variable.
2897 (want_to_gcse_p): Change signature. Allow constrained hoisting of
2898 simple expressions, don't change behavior for PRE. Set max_distance.
2899 (insert_expr_in_table): Set new max_distance field.
2900 (hash_scan_set): Update.
2901 (hoist_expr_reaches_here_p): Stop search after max_distance
2903 (find_occr_in_bb): New static function. Use it in ...
2904 (hoist_code): Calculate sizes of basic block before any changes are
2905 done. Pass max_distance to hoist_expr_reaches_here_p.
2906 (one_code_hoisting_pass): Set doing_code_hoisting_p.
2908 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
2909 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
2910 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
2912 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
2915 2010-07-27 Jeff Law <law@redhat.com>
2916 Maxim Kuvyrkov <maxim@codesourcery.com>
2918 * gcse.c (compute_transpout, transpout): Remove, move logic
2919 to prune_expressions.
2920 (compute_pre_data): Move pruning of trapping expressions ...
2921 (prune_expressions): ... here. New static function.
2922 (compute_code_hoist_data): Use it.
2923 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
2925 2010-07-27 Xinliang David Li <davidxl@google.com>
2927 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
2928 (rewrite_use_address): Adjust iv update position when needed.
2930 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2932 * dbgcnt.def (hoist_insn): New debug counter.
2933 * gcse.c (hoist_code): Use it.
2935 2010-07-27 Xinliang David Li <davidxl@google.com>
2937 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
2938 (niter_for_single_dom_exit): Passes additional parameter.
2939 (iv_period): Fix comments.
2940 (may_eliminate_iv): Handles multiple exit loops properly.
2941 (free_tree_niter_desc): New function.
2942 (free_loop_data): Frees up loop iteration descriptors.
2944 2010-07-27 Jakub Jelinek <jakub@redhat.com>
2947 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
2948 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
2949 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
2950 (expand_one_var): Don't consider DECL_ALIGN for variables for
2951 which expand_one_stack_var_at has been already called.
2954 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
2955 constraints on IA-64.
2957 2010-07-27 Jie Zhang <jie@codesourcery.com>
2961 2010-07-23 Jie Zhang <jie@codesourcery.com>
2963 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
2964 false if ! tree_versionable_function_p.
2966 2010-07-27 Jakub Jelinek <jakub@redhat.com>
2968 * dwarf2out.c (add_data_member_location_attribute): Use
2969 add_AT_unsigned instead of add_AT_int if offset is non-negative.
2971 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
2973 * postreload.c (try_replace_in_use): New static function.
2974 (reload_combine_recognize_const_pattern): Use it here. Allow
2975 substituting into a final add insn, and substituting into a memory
2976 reference in an insn that sets the reg.
2978 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2980 * common.opt (o): Add MissingArgError.
2981 * doc/options.texi (MissingArgError): Document.
2982 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
2983 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
2984 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2985 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
2986 * langhooks.h (struct lang_hooks): Remove missing_argument.
2987 * optc-gen.awk: Handle MissingArgError and output new structure
2989 * opts.c (read_cmdline_option): Use missing_argument_error field
2990 instead of missing_argument langhook.
2991 * opts.h (struct cl_option): Add missing_argument_error field.
2992 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
2994 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
2997 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
2998 Darwin64 ABI, for zero-sized objects.
3000 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
3005 Merge from Apple local 4.2.1.
3006 2005-05-11 Stan Shebs <shebs@apple.com>
3007 Fix 64-bit varargs for Darwin (Radar 4028089).
3008 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
3009 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
3010 Add argument, add case for 8-byte register half-filled with a float.
3011 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
3012 single-precision floats specially.
3014 2010-07-27 Ira Rosen <irar@il.ibm.com>
3016 PR tree-optimization/44152
3017 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
3018 complex numbers for further check.
3019 (vect_supported_load_permutation_p): Check nodes with
3022 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3024 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
3025 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
3026 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
3027 (LANG_HOOKS_INITIALIZER): Add new hooks.
3028 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
3029 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
3030 and complain_wrong_lang_p. Update init_options prototype.
3031 * c-objc-common.c (c_initialize_diagnostics): First call
3032 c_common_initialize_diagnostics.
3033 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
3034 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
3035 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
3036 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
3037 (hook_uint_void_0): New.
3038 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
3039 (hook_uint_void_0): New.
3040 * opts-common.c (decode_cmdline_option,
3041 decode_cmdline_options_to_array): Also fill in canonical_option field.
3042 * opts.c (complain_wrong_lang): Use langhook to determine whether
3043 to complain instead of special-casing LTO.
3044 (decode_options): Separate lang_mask determination with
3045 option_lang_mask hook from call of init_options hook.
3046 * opts.h (struct cl_decoded_option): Add canonical_option.
3048 2010-07-27 Jakub Jelinek <jakub@redhat.com>
3050 PR tree-optimization/45083
3051 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
3053 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
3055 * postreload.c (reload_combine_recognize_const_pattern): Move test
3056 for limiting the insn movement to the right scope.
3058 PR rtl-optimization/45051
3059 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
3060 than reg_mentioned_p.
3062 2010-07-26 Richard Henderson <rth@redhat.com>
3065 * tree-emutls.c: New file.
3066 * Makefile.in (OBJS-common): Add it.
3067 * tree-pass.h (pass_ipa_lower_emutls): Declare.
3068 * passes.c (init_optimization_passes): Add it.
3070 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
3071 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
3072 * expr.c (emutls_var_address): Delete.
3073 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
3074 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
3075 (emutls_finish): Delete.
3076 * toplev.c (compile_file): Don't call it.
3077 * tree.h (emutls_decl): Delete.
3078 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
3079 (emutls_finish, emutls_finalize_control_var): Delete.
3080 (emutls_object_type): Move to tree-emutls.c.
3081 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
3082 default_emutls_var_fields, get_emutls_object_type,
3083 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
3084 default_emutls_var_init): Likewise.
3085 (get_variable_section): Don't special case emutls.
3086 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
3087 default_elf_select_section, default_unique_section,
3088 default_encode_section_info): Likewise.
3089 * varpool.c (decide_is_variable_needed): Likewise.
3090 * gimple-iterator.c (update_call_edge_frequencies): New
3091 (gsi_insert_on_edge_immediate): Use it.
3092 (gsi_insert_seq_on_edge_immediate): Likewise.
3093 (gsi_commit_one_edge_insert): Likewise.
3095 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
3096 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
3097 (x86_64_elf_unique_section): Likewise.
3099 2010-07-26 Jan Hubicka <jh@suse.cz>
3101 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
3104 2010-07-26 Anatoly Sokolov <aesok@post.ru>
3106 * target.def (output_source_filename): New hook.
3107 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
3108 * doc/tm.texi: Regenerate.
3109 * toplev.c (output_file_directive) Remove function.
3110 * toplev.h (output_file_directive) Remove.
3111 * output.h (default_asm_output_source_filename,
3112 output_file_directive): Declare.
3113 * varasm.h (default_asm_output_source_filename,
3114 output_file_directive): New functions.
3116 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
3117 * config/mips/mips-protos.h (mips_output_filename): Remove.
3118 * config/mips/mips.c (mips_output_filename): Make Static.
3119 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
3121 2010-07-26 Richard Guenther <rguenther@suse.de>
3123 PR tree-optimization/43784
3124 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
3125 if the destination is used by the call.
3127 2010-07-26 Richard Guenther <rguenther@suse.de>
3130 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
3131 SSA updating on being in SSA form.
3133 2010-07-26 Richard Guenther <rguenther@suse.de>
3136 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
3138 2010-07-26 Richard Guenther <rguenther@suse.de>
3140 PR tree-optimization/45071
3141 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
3144 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
3146 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
3147 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
3148 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
3149 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
3150 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
3151 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
3152 save_r31, return_r31, save_interrupt, return_interrupt,
3153 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
3154 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
3155 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
3156 new ABI requirements.
3157 (save_r6_r9, L_callt_save_r6_r9): Remove.
3158 * config/v850/predicates.md (even_reg_operand, disp23_operand,
3159 const_float_1_operand const_float_0_operand): New Predicates.
3160 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
3161 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
3162 * config/v850/t-v850: Update multilibs for new target variants.
3163 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
3164 * config/v850/t-v850e: Likewise.
3165 * config/v850/v850.c (v850_issue_rate): New.
3166 (v850_strict_argument_naming): New.
3167 (function_arg): Modify to generate a different ABI.
3168 (print_operand): Update case 'z' to support float modes.
3169 (output_move_single): Modify to generate appropriate and better
3171 (v850_float_z_comparison_operator, v850_select_cc_mode,
3172 v850_float_nz_comparison_operator, v850_gen_float_compare,
3173 v850_gen_compare): New functions to support comparison of float values.
3174 (ep_memory_offset): Add support for V850E2 targets.
3175 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
3176 (INTERRUPT_REGPARM_NUM): Remove.
3177 (compute_register_save_size): Add extra case to save/restore long call.
3178 (use_prolog_function): New function to support prologue.
3179 (expand_prologue): Add support for V850E2 targets and modified
3180 as per the current ABI requirements.
3181 (expand_epilogue): Likewise.
3182 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
3183 (construct_save_jarl): Likewise.
3184 (construct_dispose_instruction): Update as per the current ABI
3186 (construct_prepare_instruction): Likewise.
3187 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
3188 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
3189 (CPP_SPEC): Updated to support v850e2 targets.
3190 (STRICT_ALIGNMENT): Modified.
3191 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
3192 (FIXED_REGISTERS): Likewise.
3193 (CALL_USED_REGISTERS): Likewise.
3194 (CONDITIONAL_REGISTER_USAGE): Updated.
3195 (HARD_REGNO_MODE_OK): Updated.
3196 (reg_class): Updated to add even registers.
3197 (REG_CLASS_NAMES): Likewise.
3198 (REG_CLASS_CONTENTS): Likewise.
3199 (REGNO_REG_CLASS): Updated for CC registers.
3200 (REG_CLASS_FROM_LETTER): Added support for even registers.
3201 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
3202 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
3203 ARG_POINTER_REGNUM): Updated.
3204 (FUNCTION_ARG_ADVANCE): Define.
3205 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
3206 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
3207 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
3208 (GO_IF_LEGITIMATE_ADDRESS): Updated.
3209 (SELECT_CC_MODE): Define.
3210 (REGISTER_NAMES): Updated to add psw and fcc registers.
3211 (ADDITIONAL_REGISTER_NAMES): Updated.
3212 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
3213 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
3214 * config/v850/v850.md (define_constants): Define new constants.
3215 (type): Update store,bit1,macc,div,fpu and single attributes.
3216 (cpu): New attribute.
3217 (cc): Add set_z attribute.
3218 (unsign23byte_load, sign23byte_load, unsign23hword_load,
3219 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
3220 23word_store): New instructions for 23-bit displacement load and store.
3221 (movqi_internal, movhi_internal): Update the attributes.
3222 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
3223 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
3225 (v850_tst1): Modified using CC_REGNUM.
3227 (cmpsi): Modified as define_expand from define_insn.
3228 (cmpsi_insn, cmpsf, cmpdf): New instructions.
3229 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
3230 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
3231 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
3232 one_cmplsi2): Clobber the CC_REGNUM register.
3233 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
3234 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
3235 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
3236 (setf_insn, set_z_insn, set_nz_insn): New instructions for
3238 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
3239 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
3241 (sasf_1, sasf_2): Remove.
3242 (sasf): New instruction.
3243 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
3244 targets. CC_REGNUM register is clobbered and attributes are
3246 (branch_z_normal, branch_z_invert, branch_nz_normal,
3247 branch_nz_invert): New branch related instructions.
3248 (jump): Updated the attributes.
3249 (switch): Update to support new targets. CC_REGNUM register is
3250 clobbered and attributes are updated.
3251 (call_internal_short, call_internal_long, call_value_internal_short,
3252 call_value_internal_long): Updated the attributes.
3253 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
3254 clobbered and attributes are updated.
3255 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
3256 Update to support new targets. CC_REGNUM register is clobbered.
3257 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
3259 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
3261 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
3262 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
3263 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
3264 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
3265 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
3266 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
3267 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
3268 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
3269 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
3270 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
3271 point instructions defined for V850e2v3 target.
3272 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
3273 Add support for V850E2 targets and CC_REGNUM register is clobbered.
3274 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
3275 support for new targets.
3276 * config/v850/v850-modes.def: New file.
3277 * config/v850/v850.opt(mstrict-align): Remove.
3278 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
3279 mv850e2v3): New command line options for V850.
3280 * config.gcc: Update the newly added files.
3281 * doc/invoke.texi: Update the newly added command line options for
3284 2010-07-26 Richard Guenther <rguenther@suse.de>
3286 PR tree-optimization/45052
3287 * ipa-pure-const.c (check_stmt): Check volatileness.
3289 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
3292 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
3293 * config/sparc/sparc.c: Include reload.h.
3294 (legitimize_tls_address): Rename into...
3295 (sparc_legitimize_tls_address): ...this.
3296 (legitimize_pic_address): Rename into...
3297 (sparc_legitimize_pic_address): ...this.
3298 (sparc_expand_move): Adjust to above renaming.
3299 (sparc_tls_referenced_p): Likewise.
3300 (sparc_legitimize_tls_address): Likewise.
3301 (sparc_legitimize_pic_address): Likewise.
3302 (sparc_legitimize_address): Likewise.
3303 (sparc_output_mi_thunk): Likewise.
3304 (sparc_legitimize_reload_address): New global function. Recognize
3305 (lo_sum (high ...) ...) patterns generated by earlier passes.
3306 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
3308 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
3311 * config/sparc/predicates.md (memory_reg_operand): Delete.
3312 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
3313 (*sync_compare_and_swap): Encode the address form in the pattern.
3314 (*sync_compare_and_swapdi_v8plus): Likewise.
3316 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
3318 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
3319 Streamline paragraph on compatibility with the system compiler.
3321 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
3324 * alias.c (true_dependence_1): Fix thinko in merge of old
3325 true_dependence and canon_true_dependence.
3327 2010-07-23 Jan Hubicka <jh@suse.cz>
3329 * lto-streamer-out.c (write_symbol): Fix visibilities of external
3332 2010-07-23 Le-Chun Wu <lcwu@google.com>
3334 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
3335 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
3336 and an unnecessary assignment.
3337 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
3338 self-assign warning.
3339 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
3340 unnecessary self-init.
3342 2010-07-23 Richard Guenther <rguenther@suse.de>
3345 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
3346 for -flto and -fwhopr.
3348 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
3351 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
3352 (stmp-int-hdrs): Prefix/postfix headers by include_next.
3353 * config.gcc (user_headers_inc_next_pre): New.
3354 (user_headers_inc_next_post): Likewise.
3355 (*-w64-mingw*): Use for float.h post-fixing, and for
3356 stddef.h/stdarg.h pre-fixing by include_next.
3357 * configure.ac (user_headers_inc_next_post): New.
3358 (user_headers_inc_next_pre): New.
3359 * configure: Regenerated.
3361 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3363 * configure.ac: Don't disable TLS on Solaris 8/9 by default
3364 Set tga_func for Solaris 2/x86 resp. SPARC.
3365 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
3366 (LIB_THREAD_LDFLAGS_SPEC): Define.
3367 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
3368 * configure: Regenerate.
3369 * config.in: Regenerate.
3370 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
3371 -pthread, -threads, LIB_TLS_SPEC with -pthread.
3372 * doc/install.texi (Specific, *-*-solaris2*): Document use of
3373 alternate thread libraries on Solaris 8.
3374 Document TLS patch requirements.
3375 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
3379 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
3382 2010-07-23 Jakub Jelinek <jakub@redhat.com>
3384 * tree.h (struct tree_base): Add nameless_flag bitfield.
3385 (TYPE_NAMELESS, DECL_NAMELESS): Define.
3386 * omp-low.c (create_omp_child_function, scan_omp_parallel,
3387 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
3388 DECL_ARTIFICIAL where needed.
3389 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
3390 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
3391 has DECL_NAMELESS set.
3393 2010-07-23 Martin Jambor <mjambor@suse.cz>
3395 PR tree-optimization/44915
3396 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
3397 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
3398 (analyze_function): Likewise.
3400 2010-07-23 Martin Jambor <mjambor@suse.cz>
3402 PR tree-optimization/44914
3403 * tree-sra.c (sra_modify_function_body): Return true if CFG was
3404 changed, add purging dead eh edges.
3405 (ipa_sra_modify_function_body): Return true if CFG was changed,
3406 simplify purging dead eh edges.
3407 (modify_function): Return true if CFG was changed.
3408 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
3410 (ipa_early_sra): Likewise.
3412 2010-07-23 Jie Zhang <jie@codesourcery.com>
3415 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
3417 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
3418 false if ! tree_versionable_function_p.
3420 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
3422 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
3423 * ipa-pure-const.c (special_builtlin_state): Remove
3424 BUILT_IN_ARGS_INFO case.
3425 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3426 * builtins.c (expand_builtin): Likewise.
3427 (expand_builtin_args_info): Remove.
3428 * doc/tm.texi (__builtin_args_info): Remove.
3429 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
3430 * doc/tm.text.in: Likewise.
3432 2010-07-23 Richard Guenther <rguenther@suse.de>
3434 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
3435 (lto_symtab_merge_decls_2): Likewise.
3436 * tree-ssa.c (useless_type_conversion_p): Likewise.
3437 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3438 * gimple.c (gtc_visited2, gtc_ob2): Remove.
3439 (struct type_pair_d): Make same_p an array indexed by mode.
3441 (lookup_type_pair): Update initialization.
3442 (struct sccs): Adjust same_p type.
3443 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
3445 (print_gimple_types_stats): Likewise.
3446 * gimple.h (enum gtc_mode): New.
3447 (gimple_types_compatible_p): Adjust prototype.
3449 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
3451 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
3452 again after processing insn.
3454 2010-07-23 Jie Zhang <jie@codesourcery.com>
3456 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
3457 proper words when !tree_versionable_function_p.
3459 2010-07-23 Richard Guenther <rguenther@suse.de>
3461 PR tree-optimization/45037
3462 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
3464 2010-07-23 Jie Zhang <jie@codesourcery.com>
3466 * doc/extend.texi: Remove IP2K from the description of naked attribute.
3469 2010-07-10 Andi Kleen <ak@linux.intel.com>
3472 * lto-opts.c (lto_write_options): Add NULL file_data argument to
3473 lto_get_section_name.
3474 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
3475 * lto-streamer-out.c (produce_asm): Likewise.
3476 (copy_function): Likewise.
3477 (produce_symtab): Likewise.
3478 (produce_asm_for_decls): Likewise.
3479 * lto-streamer.c (lto_get_section_name): Add file_data argument.
3480 Rewrite to add random postfix to LTO sections.
3481 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
3482 (lto_get_section_name): Add file_data argument to prototype.
3484 2010-07-10 Andi Kleen <ak@linux.intel.com>
3486 * lto-section-in.c (lto_section_name): Synchronize names
3487 with lto_get_section_name.
3489 2010-07-10 Andi Kleen <ak@linux.intel.com>
3491 * lto-opts.c (lto_read_file_options): Check for missing section.
3493 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
3495 * ira.c (check_allocation): Correctly handle the case where an allocno
3496 with two objects was allocated to a single reg.
3498 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
3500 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
3501 (is_widening_mult_p): Likewise.
3502 (convert_to_widen): Use them.
3503 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
3504 well as integer ones.
3506 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
3508 * alias.c (true_dependence_1): New function, merged version of
3509 true_dependence and canon_true_dependence.
3510 (true_dependence): Simplify.
3511 (canon_true_dependence): Simplify.
3513 2010-07-22 Richard Henderson <rth@redhat.com>
3516 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
3517 of V4SFmode for the SSE saves; increase stack alignment if needed.
3518 (ix86_gimplify_va_arg): Don't increase stack alignment here.
3520 2010-07-22 Jakub Jelinek <jakub@redhat.com>
3523 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
3524 call cprop_find_used_regs again via note_uses.
3526 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
3528 * alias.c (get_alias_set): Fix formatting issues.
3530 2010-07-22 Steve Ellcey <sje@cup.hp.com>
3533 * stmt.c (expand_value_return): Call promote_function_mode with
3534 a for_return argument of 2 when returning by reference.
3536 2010-07-22 Dodji Seketeli <dodji@redhat.com>
3539 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
3540 unit DIE if we can find the scope DIE.
3542 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
3544 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
3545 changed. Initialize OBJECT_SUBWORD.
3546 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
3547 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
3548 all callers changed.
3549 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
3550 (finish_allocno): Likewise.
3551 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
3552 (remove_low_level_allocnos): Likewise.
3553 (update_bad_spill_attribute): Likewise.
3554 (setup_min_max_allocno_live_range_point): Likewise.
3555 (sort_conflict_id_map): Likewise.
3556 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
3557 (ior_hard_reg_conflicts): New function.
3558 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
3559 (compress_conflict_vecs): Iterate over objects, not allocnos.
3560 (ira_add_live_range_to_object): New function.
3561 (object_range_compare_func): Renamed from allocno_range_compare_func.
3562 All callers changed.
3563 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
3564 subobjects, widen the min/max range of the lowest-order object to
3565 potentially include all other such low-order objects.
3566 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
3567 (check_allocation): Likewise. Use more fine-grained tests for register
3569 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
3571 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
3572 choices about which bits to set in each set. Don't use
3573 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
3574 using the multiple sets we computed.
3575 (push_allocno_to_stack): Iterate over allocno subobjects.
3576 (all_conflicting_hard_regs_coalesced): New static function.
3577 (setup_allocno_available_regs_num): Use it.
3578 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
3580 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
3581 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3582 by ALLOCNO_NUM_OBJECTS.
3583 (calculate_spill_cost): Likewise.
3584 (color_pass): Express if statement in a more normal way.
3585 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
3586 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
3587 (setup_slot_coalesced_allocno_live_ranges): Likewise.
3588 (allocno_reload_assign): Likewise.
3589 (ira_reassign_pseudos): Likewise.
3590 (fast_allocation): Likewise.
3591 * ira-conflicts.c (build_conflict_bit_table): Likewise.
3592 (print_allocno_conflicts): Likewise.
3593 (ira_build_conflicts): Likewise.
3594 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
3595 callers changed. Test subword 0 of each allocno for conflicts.
3596 (build_object_conflicts): Renamed from build_allocno_conflicts. All
3597 callers changed. Iterate over allocno subobjects.
3598 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
3599 * ira-int.h (struct ira_allocno): New member: num_objects.
3600 Rename object to objects and change it into an array.
3601 (ALLOCNO_OBJECT): Add new argument N.
3602 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
3603 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
3604 (ior_hard_reg_conflicts): Declare.
3605 (ira_add_live_range_to_object): Declare.
3606 (ira_allocno_object_iterator): New.
3607 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
3608 (FOR_EACH_ALLOCNO_OBJECT): New macro.
3609 * ira-lives.c (objects_live): Renamed from allocnos_live; all
3611 (allocnos_processed): New sparseset.
3612 (make_object_born): Renamed from make_allocno_born; take an
3613 ira_object_t argument. All callers changed.
3614 (make_object_dead): Renamed from make_allocno_dead; take an
3615 ira_object_t argument. All callers changed.
3616 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
3617 All callers changed.
3618 (mark_pseudo_regno_live): Iterate over allocno subobjects.
3619 (mark_pseudo_regno_dead): Likewise.
3620 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
3622 (mark_ref_live): Detect subword accesses and call
3623 mark_pseudo_regno_subword_live as appropriate.
3624 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
3625 (process_bb_nodes_live): Deal with object-related updates first; set
3626 and test bits in allocnos_processed to avoid computing allocno
3627 statistics more than once.
3628 (create_start_finish_chains): Iterate over objects, not allocnos.
3629 (print_object_live_ranges): New function.
3630 (print_allocno_live_ranges): Use it.
3631 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
3634 2010-07-22 Richard Guenther <rguenther@suse.de>
3637 * gimple.c (gtc_next_dfs_num): New global.
3638 (struct sccs): Make value a union, add integer same_p member.
3639 (gtc_visit): New function.
3640 (gimple_types_compatible_p_1): New function, split out from ...
3641 (gimple_types_compatible_p): ... here. Start a DFS walk here.
3642 (iterative_hash_gimple_type): Adjust for sccs change.
3644 2010-07-22 Martin Jambor <mjambor@suse.cz>
3646 PR tree-optimization/44891
3647 * tree-sra.c: Include gimple-pretty-print.h.
3648 (replace_uses_with_default_def_ssa_name): Renamed to
3649 get_repl_default_def_ssa_name, return the new SSA name instead of
3650 replacing the old one.
3651 (sra_modify_assign): Dump a message when removing a load, if the LHS
3652 is an SSA_NAME, do not do any propagation, just set the RHS to a
3653 default definition SSA NAME, type convert if necessary.
3654 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
3656 2010-07-22 Richard Guenther <rguenther@suse.de>
3658 PR tree-optimization/45017
3659 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
3660 TYPE_PRECISION of integral types in addition to size.
3662 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
3664 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
3665 when no C library is specified.
3667 2010-07-22 Martin Jambor <mjambor@suse.cz>
3669 * ipa-prop.h (struct ipa_node_params): Updated comment.
3670 (struct ipa_edge_args): Likewise.
3671 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
3673 2010-07-22 Martin Jambor <mjambor@suse.cz>
3675 * cgraphunit.c (verify_edge_count_and_frequency): New function.
3676 (verify_cgraph_node): Verify frequencies of indirect edges.
3677 * tree-inline.c (tree_function_versioning): Update frequencies of
3680 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3683 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
3684 Set *arm_rev to be predicable.
3686 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
3688 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
3689 (LINK_COMMAND_SPEC_A): New.
3691 (DSYMUTIL_SPEC): New.
3692 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
3693 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
3695 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
3697 * calls.c (load_register_parameters): Move check for zero
3698 sized items so that only the call to
3699 mem_overlaps_already_clobbered_arg_p () is protected.
3701 2010-07-22 Jan Hubicka <jh@suse.cz>
3703 * ipa-pure-const.c (varying_state): Break out from ...
3704 (get_function_state): ... here; always return varying_state
3705 when state would be NULL otherwise.
3706 (remove_node_data): Do not free varying state.
3708 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
3712 * postreload.c: Include "target.h".
3713 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
3715 (fixup_debug_insns): Don't copy the rtx.
3716 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
3717 Don't copy when replacing. Call fixup_debug_insns in the case where
3718 we merged one add with another.
3719 (reload_combine_recognize_pattern): Fail if there aren't any uses.
3720 Try harder to determine whether we're picking a valid index register.
3721 Don't set store_ruid for an insn we're going to scan in the
3723 (reload_combine): Remove unused code.
3724 (reload_combine_note_use): When updating use information for
3725 an old insn, ignore a use that occurs after store_ruid.
3726 * Makefile.in (postreload.o): Update dependencies.
3728 * function.c (record_hard_reg_sets): Restrict the previous change
3729 to cases where the incoming nominal mode is the same as the
3730 incoming promoted mode and everything happens in MODE_INT.
3732 2010-07-21 Jakub Jelinek <jakub@redhat.com>
3735 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
3736 ASM_OPERANDS_OUTPUT_IDX.
3737 (adjust_insn): For inline asm with multiple sets ensure first
3738 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
3741 2010-07-21 Richard Henderson <rth@redhat.com>
3743 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
3744 comparison for avoiding xmm register saves. Emit the xmm register
3746 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
3747 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
3748 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
3749 Remove patterns and the associated splitters.
3751 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
3753 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
3754 and imagine parts of a complex, so that they can have the same
3755 base and fall into the same group.
3757 2010-07-21 Richard Guenther <rguenther@suse.de>
3760 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
3761 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
3762 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
3764 2010-07-21 Martin Jambor <mjambor@suse.cz>
3766 PR tree-optimization/44900
3767 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
3768 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
3770 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
3773 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
3775 2010-07-21 Richard Guenther <rguenther@suse.de>
3778 * tree-ssa.c (useless_type_conversion_p): Dispatch to
3779 gimple_types_compatible_p only when in lto.
3780 * gimple.c (gimple_types_compatible_p): Use canonical types
3781 to speed up comparison.
3783 2010-07-21 Richard Guenther <rguenther@suse.de>
3785 * tree-flow.h (referenced_var): Move define ...
3786 * tree-flow-inline.h (referenced_var): ... here as an inline
3787 function. Assert here ...
3788 * tree-dfa.c (referenced_var_lookup): ... instead of here.
3789 * tree-ssa.c (maybe_optimize_var): Check if the variable
3790 is in referenced vars.
3791 (execute_update_addresses_taken): Remove old broken check.
3792 * gimple-pretty-print.c (pp_points_to_solution): Use
3793 referenced_var_lookup.
3794 * tree-into-ssa.c (dump_decl_set): Likewise.
3796 2010-07-21 Jakub Jelinek <jakub@redhat.com>
3799 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
3800 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
3803 2010-07-20 Richard Henderson <rth@redhat.com>
3805 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
3807 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
3809 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
3810 computing the sum of the stack pointer and a large constant.
3811 * config/arm/constraints.md (M): Remove superfluous parentheses.
3812 (Pc): New constraint.
3814 2010-07-20 Jakub Jelinek <jakub@redhat.com>
3817 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
3818 operand's type if exp is tcc_unary class tree.
3820 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
3822 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
3823 Reverse sense of if_then_else condition.
3825 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
3827 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
3828 * config/rs6000/rs6000.c (rs6000_override_options): Set
3829 rs6000_block_move_inline_limit appropriately.
3830 (expand_block_move): Use rs6000_block_move_inline_limit.
3831 * doc/invoke.texi (mblock-move-inline-limit): Document.
3833 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
3835 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
3836 FROM and TO. All callers changed. Don't look for tracked uses,
3837 just scan the RTL for DEBUG_INSNs and substitute.
3838 (reload_combine_recognize_pattern): Call fixup_debug_insns.
3839 (reload_combine): Ignore DEBUG_INSNs.
3841 2010-07-20 Jakub Jelinek <jakub@redhat.com>
3843 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
3847 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
3848 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
3849 instead of the result's type.
3851 2010-07-20 Richard Guenther <rguenther@suse.de>
3853 PR tree-optimization/44977
3854 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
3857 2010-07-20 Richard Guenther <rguenther@suse.de>
3859 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
3860 (lto_symtab_merge_decls_2): Likewise.
3861 * gimple.h (gimple_types_compatible_p): Declare.
3862 * gimple.c (gimple_queue_type_fixup): Remove.
3863 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
3864 (gimple_compatible_complete_and_incomplete_type_p): New function.
3865 (gimple_types_compatible_p): Adjust.
3866 (gimple_register_type): Remove type fixup code.
3867 (print_gimple_types_stats): Adjust.
3868 (free_gimple_type_tables): Likewise.
3869 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
3870 * tree-ssa.c (useless_type_conversion_p): Likewise.
3872 2010-07-20 Richard Guenther <rguenther@suse.de>
3876 * tree-ssa.c (maybe_optimize_var): New function split out from ...
3877 (execute_update_addresses_taken): ... here.
3878 (non_rewritable_mem_ref_base): Likewise.
3879 (execute_update_addresses_taken): Do not iterate over all referenced
3880 vars but just all local decls and parms.
3881 Properly check call and asm arguments and rewrite call arguments.
3883 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
3885 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
3887 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
3889 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
3891 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
3893 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
3895 * gengtype.c (start_root_entry): New function, split out from
3896 write_root. Check whether V is null and raise an error if so.
3897 (write_field_root): Check for V being null. Don't raise an error here;
3898 set V to null instead.
3899 (write_root): Update comment above function. Use start_root_entry.
3901 2010-07-19 Xinliang David Li <davidxl@google.com>
3904 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
3906 (find_uninit_use): Add dump.
3907 (is_use_properly_guarded): Ditto.
3908 (warn_uninitialized_phi): Ditto.
3909 (execute_late_warn_uninitialized): Ditto.
3911 2010-07-19 Richard Guenther <rguenther@suse.de>
3914 * expr.c (emit_block_move_hints): Move zero size check first.
3915 Move asserts to more useful places.
3916 * calls.c (load_register_parameters): Check for zero size.
3918 2010-07-19 Richard Henderson <rth@redhat.com>
3920 * tree-optimize.c (execute_all_early_local_passes): New. Change
3921 cgraph_state here ...
3922 (execute_early_local_optimizations): ... not here. Remove.
3923 (pass_early_local_passes, pass_all_early_optimizations): Update.
3925 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
3927 * postreload.c (reload_combine_closest_single_use): Ignore the
3928 number of uses for DEBUG_INSNs.
3929 (fixup_debug_insns): New static function.
3930 (reload_combine_recognize_const_pattern): Use it. Don't let the
3931 main loop be affected by DEBUG_INSNs.
3932 Really disallow moving adds past a jump insn.
3933 (reload_combine_recognize_pattern): Don't update use_ruid here.
3934 (reload_combine_note_use): Do it here.
3935 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
3937 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
3939 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
3941 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
3943 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
3945 * config/i386/darwin.h: Define darwin_emit_branch_islands.
3946 (TARGET_MACHO_BRANCH_ISLANDS): New.
3947 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
3948 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
3950 * config/i386/i386.c (output_pic_addr_const): Do not emit
3951 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
3952 (x86_output_mi_thunk): Adjust symbol creation.
3953 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
3954 Remove out of date comment.
3955 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
3956 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
3957 (DARWIN_GENERATE_ISLANDS): Ditto.
3958 (output_call): Do not emit branch islands unless
3959 darwin_emit_branch_islands is set.
3960 * config/darwin.c: Declare darwin_emit_branch_islands.
3961 (machopic_indirect_data_reference): Do not emit unless
3962 darwin_emit_branch_islands is set.
3963 (darwin_override_options): Set darwin_emit_branch_islands
3965 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
3967 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3969 * doc/sourcebuild.texi (Effective-Target Keywords): Document
3970 sse_runtime, sse2_runtime.
3972 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
3974 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
3975 low half of a single-register SCmode return value before ORing
3976 it with the high half.
3977 * config/mips/mips16.S (MERGE_GPRf): Likewise.
3979 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3982 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
3985 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
3988 * postreload.c (reload_cse_move2add): Return bool, true if anything.
3989 changed. All callers changed.
3990 (move2add_use_add2_insn): Likewise.
3991 (move2add_use_add3_insn): Likewise.
3992 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
3994 (RELOAD_COMBINE_MAX_USES): Bump to 16.
3995 (last_jump_ruid): New static variable.
3996 (struct reg_use): New members CONTAINING_MEM and RUID.
3997 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
3998 (reload_combine_split_one_ruid, reload_combine_split_ruids,
3999 reload_combine_purge_insn_uses, reload_combine_closest_single_use
4000 reload_combine_purge_reg_uses_after_ruid,
4001 reload_combine_recognize_const_pattern): New static functions.
4002 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
4003 is true for our reg and that we have available index regs.
4004 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
4005 callers changed. Use them to initialize fields in struct reg_use.
4006 (reload_combine): Initialize last_jump_ruid. Be careful when to
4007 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
4008 Call reload_combine_recognize_const_pattern.
4009 (reload_combine_note_store): Update REAL_STORE_RUID field.
4011 2010-07-16 Jason Merrill <jason@redhat.com>
4013 * Makefile.in (opts-common.o): Depend on options.h.
4015 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
4017 * tree.c (build_common_builtin_nodes): Use build_function_type_list
4018 instead of build_function_type.
4019 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
4020 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
4022 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
4024 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
4026 (rs6000_emit_int_cmove): Use function pointers for insn generation.
4027 Don't force values into registers unnecessarily.
4028 (output_isel): Assert that we're not given conditions we can't handle.
4029 Delete corresponding code.
4030 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
4031 scc_comparison_operator constraint. Permit 0 for the consequent
4032 operand. Permit any GPR for the alternative operand.
4033 (isel_unsigned_<mode>): Likewise.
4035 2010-07-16 Jakub Jelinek <jakub@redhat.com>
4038 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
4039 argument to const_tree.
4040 * config/i386/i386.c (function_arg_advance): If padding needs to be
4041 inserted before argument, increment cum->words by number of padding
4043 (contains_aligned_value_p): Change argument to const_tree.
4044 (ix86_function_arg_boundary): Change second argument to const_tree.
4046 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
4049 * function.c (record_hard_reg_sets): New static function.
4050 (assign_parm_setup_reg): If an optab for extending exists and the
4051 generated code clobbbers no hard regs, emit the insn directly and
4052 create a REG_EQUIV note.
4054 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4056 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
4058 * c-typeck.c (push_init_level): Likewise.
4059 (process_init_element): Likewise.
4061 2010-07-15 Anatoly Sokolov <aesok@post.ru>
4063 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
4064 (integer_three_node): Add.
4065 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
4066 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
4067 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
4068 of call build_int_cst.
4069 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
4070 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
4071 (find_interesting_uses_address): Ditto.
4072 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
4073 * tree-eh.c (lower_eh_constructs_2): Ditto.
4074 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
4075 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
4076 * expmed.c (expand_divmod): Ditto.
4077 * tree-mudflap.c (mx_register_decls): Ditto.
4078 * varasm.c (array_size_for_constructor): Ditto.
4079 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
4080 * c-parser.c (c_parser_postfix_expression): Ditto.
4082 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
4084 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
4085 New static variables.
4086 (reload_combine_recognize_pattern): New static function, broken out
4088 (reload_combine): Use it. Only initialize first_index_reg and
4089 last_index_reg once.
4091 2010-07-15 Richard Henderson <rth@redhat.com>
4093 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
4096 2010-07-15 Jan Hubicka <jh@suse.cz>
4098 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
4099 comdats for broken gold.
4100 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
4102 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4104 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
4106 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4108 * tree.h (DECL_CHAIN): Define.
4109 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4110 * c-decl.c: Likewise.
4111 * c-parser.c: Likewise.
4112 * c-typeck.c: Likewise.
4113 * cfgexpand.c: Likewise.
4114 * cgraph.c: Likewise.
4115 * cgraphunit.c: Likewise.
4116 * combine.c: Likewise.
4117 * config/alpha/alpha.c: Likewise.
4118 * config/arm/arm.c: Likewise.
4119 * config/frv/frv.c: Likewise.
4120 * config/i386/i386.c: Likewise.
4121 * config/i386/winnt-cxx.c: Likewise.
4122 * config/ia64/ia64.c: Likewise.
4123 * config/iq2000/iq2000.c: Likewise.
4124 * config/mep/mep.c: Likewise.
4125 * config/mips/mips.c: Likewise.
4126 * config/pa/som.h: Likewise.
4127 * config/rs6000/rs6000.c: Likewise.
4128 * config/s390/s390.c: Likewise.
4129 * config/sh/sh.c: Likewise.
4130 * config/sh/symbian-cxx.c: Likewise.
4131 * config/sparc/sparc.c: Likewise.
4132 * config/spu/spu.c: Likewise.
4133 * config/stormy16/stormy16.c: Likewise.
4134 * config/vxworks.c: Likewise.
4135 * config/xtensa/xtensa.c: Likewise.
4136 * coverage.c: Likewise.
4137 * dbxout.c: Likewise.
4138 * dwarf2out.c: Likewise.
4139 * emit-rtl.c: Likewise.
4141 * function.c: Likewise.
4142 * gimple-low.c: Likewise.
4143 * gimple-pretty-print.c: Likewise.
4144 * gimplify.c: Likewise.
4145 * integrate.c: Likewise.
4146 * ipa-inline.c: Likewise.
4147 * ipa-prop.c: Likewise.
4148 * ipa-split.c: Likewise.
4149 * ipa-struct-reorg.c: Likewise.
4150 * ipa-type-escape.c: Likewise.
4151 * langhooks.c: Likewise.
4152 * lto-cgraph.c: Likewise.
4153 * omp-low.c: Likewise.
4154 * stor-layout.c: Likewise.
4155 * tree-cfg.c: Likewise.
4156 * tree-complex.c: Likewise.
4157 * tree-dfa.c: Likewise.
4158 * tree-dump.c: Likewise.
4159 * tree-inline.c: Likewise.
4160 * tree-mudflap.c: Likewise.
4161 * tree-nested.c: Likewise.
4162 * tree-object-size.c: Likewise.
4163 * tree-pretty-print.c: Likewise.
4164 * tree-sra.c: Likewise.
4165 * tree-ssa-live.c: Likewise.
4166 * tree-ssa-loop-niter.c: Likewise.
4167 * tree-ssa-math-opts.c: Likewise.
4168 * tree-ssa-reassoc.c: Likewise.
4169 * tree-ssa-sccvn.c: Likewise.
4170 * tree-ssa-structalias.c: Likewise.
4171 * tree-tailcall.c: Likewise.
4172 * tree-vrp.c: Likewise.
4174 * var-tracking.c: Likewise.
4175 * varasm.c: Likewise.
4177 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4180 * config/spu/spu.c (spu_expand_builtin_1): Allow references
4181 (as well as pointers) as argument to mask_for_load builtins.
4183 2010-07-15 Richard Guenther <rguenther@suse.de>
4185 PR tree-optimization/44946
4186 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
4187 with accessing only padding properly.
4189 2010-07-15 Jan Hubicka <jh@suse.cz>
4191 * ipa.c (function_and_variable_visibility): Variables marked as used
4192 should not be localized.
4194 2010-07-15 Jan Hubicka <jh@suse.cz>
4196 * cgraph.c: Include lto-streamer.h
4197 (change_decl_assembler_name): Work when assembler name hash is at place.
4198 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
4199 be sure to rename it to avoid name clash.
4200 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
4201 Localize hidden symbols only when locally defined.
4203 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
4205 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
4207 2010-07-15 Magnus Granberg <zorry@gentoo.org>
4208 Kevin F. Quinn <kevquinn@gentoo.org>
4210 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
4211 * common.opt: Add -Wtrampolines.
4212 * doc/invoke.texi: Add -Wtrampolines.
4214 2010-07-15 Jie Zhang <jie@codesourcery.com>
4216 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
4219 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
4221 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
4222 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
4224 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4226 * config/spu/spu.c (reg_names): Remove prototype.
4227 (call_used_regs): Likewise.
4229 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
4231 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
4232 "unused" with attribute "used".
4233 (__JCR_END__): Likewise.
4234 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
4236 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
4238 2010-07-14 Richard Guenther <rguenther@suse.de>
4240 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
4241 (maybe_fixup_decls): Likewise.
4242 (input_gimple_stmt): Do not fixup anything.
4243 * lto-streamer-out.c (output_gimple_stmt): Make sure all
4244 non-automatic variable uses are wrapped inside a MEM_REF.
4246 2010-07-14 Richard Henderson <rth@redhat.com>
4248 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
4250 * varasm.c (assemble_variable): Remove early exit for functions;
4251 assert that we're given a variable.
4253 2010-07-14 Jie Zhang <jie@codesourcery.com>
4255 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
4256 cortex_a8_default when neon_type is not none.
4258 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
4260 * lower-subreg.c (subreg_context): New static bitmap.
4261 (decompose_multiword_subregs): Allocate and free it.
4262 (find_decomposable_subregs): Set a bit in it for a register that
4263 occurs in a subreg that changes mode but not size.
4264 (can_decompose_p): Test it instead of non_decomposable_context.
4266 2010-07-14 Richard Guenther <rguenther@suse.de>
4268 PR tree-optimization/44824
4269 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
4270 is_gimple_mem_ref_addr.
4271 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
4272 non-decl_address_invariant_p addresses.
4274 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
4276 * reload.c (find_reloads): Revert code to penalize small register
4277 classes that was brought in with the IRA merge.
4279 2010-07-14 Richard Guenther <rguenther@suse.de>
4281 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
4282 as base of ARRAY_REFs.
4284 2010-07-14 Richard Guenther <rguenther@suse.de>
4287 * tree-pretty-print.c (do_niy): Do not print a newline.
4289 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
4291 * ira-int.h (struct ira_object): New.
4292 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
4293 (struct ira_allocno): Remove members min, max,
4294 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
4295 conflict_allocnos_num and conflict_vec_p. Add new member object.
4296 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
4297 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
4298 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
4299 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
4300 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
4301 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
4302 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
4303 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
4304 an ira_object_t rather than ira_allocno_t. All uses changed.
4305 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
4306 contains a vector of ira_object_t; all uses changed.
4307 (ira_objects_num): Declare variable.
4308 (ira_create_allocno_object): Declare function.
4309 (ira_conflict_vector_profitable_p): Adjust prototype.
4310 (ira_allocate_conflict_vec): Renamed from
4311 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
4312 (ira_allocate_object_conflicts): Renamed from
4313 ira_allocate_allocno_conflicts; first arg now ira_object_t.
4314 (struct ira_object_iterator): New.
4315 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
4316 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
4317 to conflict_vec_p. All uses changed.
4318 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
4319 Changed to take into account that conflicts are now tracked for
4321 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
4322 Args changed to accept ira_object_t. All uses changed.
4323 (allocnos_conflict_p): New static function.
4324 (collected_conflict_objects): Renamed from collected_allocno_objects;
4325 now a vector of ira_object_t. All uses changed.
4326 (build_conflict_bit_table): Changed to take into account that
4327 conflicts are now tracked for objects.
4328 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
4329 (print_allocno_conflicts, ira_build_conflicts): Likewise.
4330 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
4331 setup_allocno_left_conflicts_size, allocno_reload_assign,
4332 fast_allocation): Likewise.
4333 * ira-lives.c (make_hard_regno_born, make_allocno_born)
4334 process_single_reg_class_operands, process_bb_node_lives): Likewise.
4335 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
4337 * ira-build.c (ira_objects_num): New variable.
4338 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
4339 contains a vector of ira_object_t; all uses changed.
4340 (ira_object_id_map_vec): Corresponding change.
4341 (object_pool): New static variable.
4342 (initiate_allocnos): Initialize it.
4343 (finish_allocnos): Free it.
4344 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
4346 (ira_create_allocno): Don't set members that were removed.
4347 (ira_set_allocno_cover_class): Don't change conflict hard regs.
4348 (merge_hard_reg_conflicts): Changed to take into account that
4349 conflicts are now tracked for objects.
4350 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
4351 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
4352 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
4353 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
4354 setup_min_max_conflict_allocno_ids, ): Likewise.
4355 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
4356 to ira_object_t; all callers changed.
4357 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
4358 to ira_object_t, all callers changed.
4359 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
4360 to ira_object_t, all callers changed.
4361 (conflict_check, curr_conflict_check_tick): Renamed from
4362 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
4364 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
4365 arg changed to ira_object_t, all callers changed.
4366 (create_cap_allocno): Call ira_create_allocno_object.
4367 (finish_allocno): Free the corresponding object.
4368 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
4369 callers changed. Adjusted for dealing with objects.
4370 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
4371 dealing with objects.
4372 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
4374 * ira-int.h (struct live_range): Rename allocno member to object
4375 and change type to ira_object_t.
4376 (struct ira_object): New member live_ranges.
4377 (struct ira_allocno): Remove member live_ranges.
4378 (ALLOCNO_LIVE_RANGES): Remove.
4379 (OBJECT_LIVE_RANGES): New macro.
4380 (ira_create_live_range, ira_copy_live_range_list,
4381 ira_merge_live_range_list, ira_live_ranges_intersect_p,
4382 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
4383 * ira-build.c (ira_create_object): Initialize live ranges here.
4384 (ira_create_allocno): Not here.
4385 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
4386 changed to ira_object_t, all callers changed.
4387 (copy_live_range): Rename from copy_allocno_live_range, all callers
4389 (ira_copy_live_range_list): Rename from
4390 ira_copy_allocno_live_range_list, all callers changed.
4391 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
4392 all callers changed.
4393 (ira_live_ranges_intersect_p): Rename from
4394 ira_allocno_live_ranges_intersect_p, all callers changed.
4395 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
4397 (ira_finish_live_range_list): Rename from
4398 ira_finish_allocno_live_range_list, all callers changed.
4399 (change_object_in_range_list): Rename from change_allocno_in_range_list,
4400 last arg changed to ira_object_t, all callers changed.
4401 (finish_allocno): Changed to expect live ranges in the allocno's object.
4402 (move_allocno_live_ranges, copy_allocno_live_ranges,
4403 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
4404 ira_flattening, ira_build): Likewise.
4405 * ira-color.c (allocnos_have_intersected_live_ranges_p,
4406 slot_coalesced_allocno_live_ranges_intersect,
4407 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
4408 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4409 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4410 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
4411 make_allocno_dead, create_start_finish_chains,
4412 remove_some_program_points_and_update_live_ranges,
4413 ira_debug_live_range_list): Likewise.
4415 * ira-int.h (ira_object_conflict_iterator): Rename from
4416 ira_allocno_conflict_iterator.
4417 (ira_object_conflict_iter_init): Rename from
4418 ira_allocno_conflict_iter_init, second arg changed to
4419 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
4420 FOR_EACH_ALLOCNO_CONFLICT.
4421 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
4422 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
4423 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
4424 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4426 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
4429 * tree-dump.c (dump_options): Add enumerate_locals entry.
4430 Add TDF_NOID exclusion to all entry.
4431 * tree-dump.h (dump_enumerated_decls): Declare.
4432 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
4433 Don't display type uid.
4434 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
4435 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
4436 * tree-ssa-live.c: Include gimple.h.
4437 (numbered_tree_d): New struct.
4438 (numbered_tree): New typedef.
4439 (DEF_VEC_O (numbered_tree): New.
4440 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
4441 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
4442 (dump_enumerated_decls): Likewise.
4443 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
4444 debug info and flag_dump_final_insns, call dump_enumerated_decls.
4445 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
4446 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
4448 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
4450 * expmed.h (MAX_BITS_PER_WORD): Move to...
4451 * defaults.h (MAX_BITS_PER_WORD): ...here.
4453 2010-07-13 DJ Delorie <dj@redhat.com>
4455 * config/h8300/h8300.c (h8300_init_once): Default to
4456 -fstrict_volatile_bitfields.
4458 * config/sh/sh.c (sh_override_options): Default to
4459 -fstrict_volatile_bitfields.
4461 * config/rx/rx.c (rx_option_override): New.
4463 * config/m32c/m32c.c (m32c_override_options): Default to
4464 -fstrict_volatile_bitfields.
4466 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
4468 * tree.h (build_function_call_expr): Delete.
4469 (build_call_expr_loc_array): New function.
4470 (build_call_expr_loc_vec): New function.
4471 * tree-flow.h (struct omp_region): Change type of ws_args field
4473 * builtins.c (build_function_call_expr): Delete.
4474 (build_call_expr_loc_array): New function.
4475 (build_call_expr_loc): Call it. Use XALLOCAVEC.
4476 (build_call_expr): Likewise.
4477 (build_call_expr_loc_vec): New function.
4478 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
4479 build_function_call_expr.
4480 * expr.c (emutls_var_address): Likewise.
4481 * varasm.c (emutls_common_1): Likewise.
4482 * omp-low.c (expand_omp_atomic_mutex): Likewise.
4483 (expand_omp_taskreg): Adjust for new type of region->ws_args.
4484 (get_ws_args_for): Return a VEC instead of a tree.
4485 (expand_parallel_call): Call build_call_expr_loc_vec instead of
4486 build_function_call_expr.
4487 * stor-layout.c (self_referential_size): Likewise.
4489 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4492 * recog.c (constrain_operands): Allow side-effects in memory
4493 operands if either < or > constraint is used, rather than if
4494 both < and > is used.
4496 2010-07-13 Richard Guenther <rguenther@suse.de>
4499 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
4500 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
4503 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
4506 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
4508 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
4509 * config/sh/sh.md (symGOT_load): Likewise.
4510 (symDTPOFF2reg): Likewise.
4511 (symTPOFF2reg): Likewise.
4513 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4515 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
4516 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
4518 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4520 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
4522 Find ucontext_t * on Solaris 11.
4523 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
4524 Handle new Solaris 11 __sighndlr patterns.
4526 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4529 * vec.h (VEC_block_remove): Fix comment.
4530 * tree-ssa-live.c (remove_unused_locals): Don't use
4531 VEC_unordered_remove on local_decls, instead replace a single
4532 vector element in each iteration if at least one element had
4533 to be removed and VEC_truncate at the end.
4534 * omp-low.c (expand_omp_taskreg): Likewise.
4536 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4538 * c-decl.c (finish_function): Fix typo in comment.
4540 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
4543 * postreload.c (move2add_use_add3_insn): Silence gcc warning
4546 2010-07-12 Jakub Jelinek <jakub@redhat.com>
4548 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
4549 (simplify_stmt_using_ranges): Use it.
4551 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4553 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
4554 member. Do not mark as GTY(()).
4555 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
4556 (spu_builtin_decls): New static variable.
4557 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
4558 (spu_init_builtins): Likewise.
4559 (spu_builtin_mul_widen_even): Likewise.
4560 (spu_builtin_mul_widen_odd): Likewise.
4561 (spu_builtin_mask_for_load): Likewise.
4562 (spu_builtin_vec_perm): Likewise.
4563 * config/spu/spu-c.c: Include "target.h".
4564 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
4565 of using spu_builtins[].fndecl.
4567 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4569 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
4570 imply -minterlink-mips16.
4572 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4574 * config/mips/mips.h (mips16_globals): Declare.
4575 (SWITCHABLE_TARGET): Define.
4576 * config/mips/mips.c: Include target-globals.h.
4577 (mips16_globals): New variable.
4578 (mips_set_mips16_mode): Use save_target_globals and
4579 restore_target_globals instead of target_reinit.
4581 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4583 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
4584 to say that the function can be called more than once.
4585 * target-globals.c (save_target_globals): Call init_reg_sets.
4587 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4589 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
4590 * bb-reorder.h: New file.
4591 * bb-reorder.c (default_target_bb_reorder): New variable.
4592 (this_target_bb_reorder): New conditional variable.
4593 (uncond_jump_length): Redefine as a macro.
4594 * target-globals.h (this_target_bb_reorder): Declare.
4595 (target_globals): Add a bb_reorder field.
4596 (restore_target_globals): Copy the bb_reorder field to
4597 this_target_bb-reorder.
4598 * target-globals.c: Include bb-reorder.h.
4599 (default_target_globals): Initialize the bb_reorder field.
4600 (save_target_globals): Likewise.
4602 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4604 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
4606 * gcse.c: Include gcse.h.
4607 (default_target_gcse): New variable.
4608 (this_target_gcse): New conditional variable.
4609 (can_copy): Redefine as a macro.
4610 (can_copy_init_p): New macro.
4611 (can_copy_p): Remove can_copy_init_p.
4612 * target-globals.h (this_target_gcse): Declare.
4613 (target_globals): Add a gcse field.
4614 (restore_target_globals): Copy the gcse field to this_target_gcse.
4615 * target-globals.c: Include gcse.h.
4616 (default_target_globals): Initialize the gcse field.
4617 (save_target_globals): Likewise.
4619 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4621 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
4622 and x_ira_prohibited_mode_move_regs_initialized_p.
4623 (ira_prohibited_mode_move_regs): Redefine as a macro.
4624 * ira.c (ira_prohibited_mode_move_regs): Delete.
4625 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
4627 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4629 * reload.h (target_reload): Add x_cached_reg_save_code and
4630 x_cached_reg_restore_code.
4631 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
4634 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4636 * Makefile.in (target-globals.o): Depend on builtins.h.
4637 * builtins.h: New file.
4638 * builtins.c: Include builtins.h.
4639 (default_target_builtins): New variable.
4640 (this_target_builtins): New conditional variable.
4641 (apply_args_mode, apply_result_mode): Redefine as macros.
4642 * target-globals.h (this_target_builtins): Declare.
4643 (target_globals): Add a builtins field.
4644 (restore_target_globals): Copy the builtins field to
4645 this_target_builtins.
4646 * target-globals.c: Include builtins.h.
4647 (default_target_globals): Initialize the builtins field.
4648 (save_target_globals): Likewise.
4650 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4652 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
4653 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
4655 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
4656 (alg_hash, alg_hash_used_p): New macros.
4657 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
4658 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
4659 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
4661 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4663 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
4664 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
4665 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
4666 (this_op_costs, costs_classes): Redefine as macros.
4667 (record_reg_classes): Don't take op_costs as a parameter.
4668 (record_operand_costs): Likewise. Update calls to record_reg_classes.
4669 (scan_one_insn): Update call to record_operand_costs.
4671 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4673 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
4674 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
4675 (target_ira_int): New structure.
4676 (default_target_ira_int): Declare.
4677 (this_target_ira_int): Declare as a variable or define as a macro.
4678 (ira_reg_mode_hard_regset, ira_register_move_cost)
4679 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
4680 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
4681 (prohibited_class_mode_regs, ira_important_classes_num)
4682 (ira_important_classes, ira_reg_class_intersect)
4683 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
4684 (ira_reg_class_union): Redefine as macros.
4685 * ira.h (target_ira): New structure.
4686 (default_target_ira): Declare.
4687 (this_target_ira): Declare as a variable or define as a macro.
4688 (ira_available_class_regs, ira_hard_regno_cover_class)
4689 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
4690 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
4691 (ira_class_hard_regs_num): Redefine as macros.
4692 * ira.c (default_target_ira, default_target_ira_int): New variables.
4693 (this_target_ira, this_target_ira_int): New conditional variables.
4694 (ira_reg_mode_hard_regset, ira_memory_move_cost)
4695 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
4696 (ira_class_subset_p): Delete.
4697 (no_unit_alloc_regs): Redefine as a macro.
4698 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
4699 (ira_class_hard_regs_num, ira_class_hard_reg_index)
4700 (ira_available_class_regs): Delete.
4701 (alloc_reg_class_subclasses): Redefine as a macro.
4702 (ira_reg_class_cover_size, ira_reg_class_cover)
4703 (ira_important_classes_num, ira_important_classes)
4704 (ira_important_class_nums, ira_class_translate): Delete.
4705 (cover_class_order): Document the variable's lifetime.
4706 (reorder_important_classes): Don't set ira_important_class_nums.
4707 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
4708 (ira_reg_class_super_classes, ira_reg_class_union)
4709 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
4711 (setup_reg_class_nregs): Don't set ira_max_regs.
4712 (prohibited_class_mode_regs): Delete.
4713 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
4714 (target_globals): Add ira and ira_int fields.
4715 (restore_target_globals): Copy the ira field to this_target_ira
4716 and the ira_int field to this_target_ira_int.
4717 * target-globals.c: Include ira-int.h.
4718 (default_target_globals): Initialize the ira and ira_int fields.
4719 (save_target_globals): Likewise.
4721 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4723 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
4724 * cfgloop.h (target_cfgloop): New structure.
4725 (default_target_cfgloop): Declare.
4726 (this_target_cfgloop): Declare as a variable or define as a macro.
4727 (target_avail_regs, target_clobbered_regs, target_res_regs)
4728 (target_reg_cost, target_spill_cost): Redefine as macros.
4729 * cfgloopanal.c (default_target_cfgloop): New variable.
4730 (this_target_cfgloop): New conditional variable.
4731 (target_avail_regs, target_clobbered_regs, target_res_regs)
4732 (target_reg_cost, target_spill_cost): Delete.
4733 * target-globals.h (this_target_cfgloop): Declare.
4734 (target_globals): Add a cfgloop field.
4735 (restore_target_globals): Copy the cfgloop field to
4736 this_target_cfgloop.
4737 * target-globals.c: Include cfgloop.h.
4738 (default_target_globals): Initialize the cfgloop field.
4739 (save_target_globals): Likewise.
4741 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4743 * regs.h (target_regs): Add x_direct_load, x_direct_store and
4744 x_float_extend_from_mem.
4745 (direct_load, direct_store, float_extend_from_mem): New macros.
4746 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
4748 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4750 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
4751 (target-globals.o): Depend on $(LIBFUNCS_H).
4752 * libfuncs.h: Include hashtab.h.
4753 (libfunc_entry): Moved from optabs.c.
4754 (target_libfuncs): New structure.
4755 (default_target_libfuncs): Declare.
4756 (this_target_libfuncs): Declare as a variable or define as a macro.
4757 (libfunc_table): Redefine as a macro.
4758 * optabs.c (default_target_libfuncs): New variable.
4759 (this_target_libfuncs): New conditional variable.
4760 (libfunc_table): Delete.
4761 (libfunc_entry): Moved to optabs.h.
4762 (libfunc_hash): Redefine as a macro.
4763 (hash_libfunc, eq_libfunc): Fix comments.
4764 (init_optabs): Use libfunc_hash to detect cases where the function
4765 has already been called. Clear the hash table instead of
4767 * target-globals.h (this_target_libfuncs): Declare.
4768 (target_globals): Add a libfuncs field.
4769 (restore_target_globals): Copy the libfuncs field to
4770 this_target_libfuncs.
4771 * target-globals.c: Include libfuncs.h.
4772 (default_target_globals): Initialize the libfuncs field.
4773 (save_target_globals): Likewise.
4775 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4777 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
4778 in all dependency lists.
4780 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4782 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
4783 * optabs.h (target_optabs): New structure.
4784 (default_target_optabs): Declare.
4785 (this_target_optabs): Declare as a variable or define as a macro.
4786 (optab_table, convert_optab_table, direct_optab_table): Redefine
4788 * optabs.c (default_target_optabs): New variable.
4789 (this_target_optabs): New conditional variable.
4790 (optab_table, convert_optab_table, direct_optab_table): Delete.
4791 * target-globals.h (this_target_optabs): Declare.
4792 (target_globals): Add a optabs field.
4793 (restore_target_globals): Copy the optabs field to
4795 * target-globals.c: Include expr.h and optabs.h.
4796 (default_target_globals): Initialize the optabs field.
4797 (save_target_globals): Likewise.
4799 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4801 * flags.h (target_flagstate): Add x_flag_excess_precision.
4802 (flag_excess_precision): Redefine as a macro.
4803 * toplev.c (flag_excess_precision): Delete.
4805 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4807 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
4808 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
4809 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
4810 (no_caller_save_reg_set): Redefine as a macro.
4811 * reload.h (target_reload): Add x_caller_save_initialized_p and
4813 (caller_save_initialized_p): Redefine as a macro.
4814 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
4815 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
4816 (regno_save_mode): Redefine as a macro.
4818 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4820 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
4821 * expmed.h: New file.
4822 * expmed.c (default_target_costs): New variable.
4823 (this_target_costs): New conditional variable.
4824 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
4825 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
4826 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
4827 * target-globals.h (this_target_expmed): Declare.
4828 (target_globals): Add a expmed field.
4829 (restore_target_globals): Copy the expmed field to
4831 * target-globals.c: Include expmed.h.
4832 (default_target_globals): Initialize the expmed field.
4833 (save_target_globals): Likewise.
4835 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4837 * Makefile.in (target-globals.o): Depend on reload.h.
4838 * reload.h (target_reload): New structure.
4839 (default_target_reload): Declare.
4840 (this_target_reload): Declare as a variable or define as a macro.
4841 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
4842 * reload1.c (default_target_reload): New variable
4843 (this_target_reload): New conditional variable.
4844 (indirect_symref_ok, double_reg_address_ok): Delete.
4845 (spill_indirect_levels): Redefine as a macro.
4846 * target-globals.h (this_target_reload): Declare.
4847 (target_globals): Add a reload field.
4848 (restore_target_globals): Copy the reload field to
4850 * target-globals.c: Include hard-reg-set.h.
4851 (default_target_globals): Initialize the reload field.
4852 (save_target_globals): Likewise.
4854 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4856 * rtl.h (target_rtl): Add x_static_reg_base_value.
4857 * alias.c (static_reg_base_value): Redefine as a macro.
4859 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4861 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
4862 (GTFILES): Remove reginfo.c.
4863 * rtl.h (target_rtl): Add x_top_of_stack.
4864 (top_of_stack): New macro.
4865 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
4866 (top_of_stack): Delete.
4868 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4870 * regs.h (target_regs): Add x_hard_regs_of_mode,
4871 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
4872 x_may_move_out_cost and x_last_mode_for_init_move_cost.
4873 (have_regs_of_mode, contains_reg_of_mode, move_cost)
4874 (may_move_in_cost, may_move_out_cost): Redefine as macros.
4875 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
4876 (may_move_in_cost, may_move_out_cost): Delete.
4877 (last_mode_for_init_move_cost): Redefine as a macro.
4879 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4881 * hard-reg-set.h (target_hard_regs): New structure.
4882 (default_target_hard_regs): Declare.
4883 (this_target_hard_regs): Declare as a variable or define as a macro.
4884 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
4885 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
4886 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
4887 (reg_class_size, reg_class_subclasses, reg_class_subunion)
4888 (reg_class_superunion, reg_names): Redefine as macros.
4889 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
4890 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
4891 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
4892 (reg_class_contents, reg_class_size, reg_class_subclasses)
4893 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
4894 (default_target_hard_regs): New variable
4895 (this_target_hard_regs, initial_call_really_used_regs)
4896 (initial_reg_alloc_order): New conditional variables.
4897 (initial_reg_names): New variable.
4898 (init_reg_sets): Assert that initial_call_really_used_regs,
4899 initial_reg_alloc_order and initial_reg_names
4900 are all the same size as their variable counterparts. Use them to
4901 initialize those counterparts.
4902 * target-globals.h (this_target_hard_regs): Declare.
4903 (target_globals): Add a hard_regs field.
4904 (restore_target_globals): Copy the hard_regs field to
4905 this_target_hard_regs.
4906 * target-globals.c: Include hard-reg-set.h.
4907 (default_target_globals): Initialize the hard_regs field.
4908 (save_target_globals): Likewise.
4910 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4912 * Makefile.in (target-globals.o): Depend on $(RTL_H).
4913 * rtl.h (target_rtl): New structure.
4914 (default_target_rtl): Declare.
4915 (this_target_rtl): Declare as a variable or define as a macro.
4916 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
4918 * emit-rtl.c (default_target_rtl): New variable.
4919 (this_target_rtl): New conditional variable.
4920 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
4921 (return_address_pointer_rtx): Delete.
4922 (initial_regno_reg_rtx): New macro.
4923 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
4924 (init_emit_regs): Likewise.
4925 * target-globals.h (this_target_rtl): Declare.
4926 (target_globals): Add a rtl field.
4927 (restore_target_globals): Copy the rtl field to this_target_rtl.
4928 * target-globals.c: Include rtl.h.
4929 (default_target_globals): Initialize the rtl field.
4930 (save_target_globals): Likewise.
4932 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4934 * Makefile.in (target-globals.o): Depend on $(REGS_H).
4935 * regs.h (target_reg_modes): New structure.
4936 (default_target_reg_modes): Declare.
4937 (this_target_reg_modes): Declare as a variable or define as a macro.
4938 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
4939 * reginfo.c (default_target_reg_modes): New variable.
4940 (this_target_reg_modes): New conditional variable.
4941 (hard_regno_nregs, reg_raw_mode): Delete.
4942 * target-globals.h (this_target_regs): Declare.
4943 (target_globals): Add a regs field.
4944 (restore_target_globals): Copy the regs field to this_target_regs.
4945 * target-globals.c: Include regs.h.
4946 (default_target_globals): Initialize the regs field.
4947 (save_target_globals): Likewise.
4949 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4951 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
4952 * doc/tm.texi: Regenerate.
4953 * Makefile.in (OBJS-common): Add target-globals.o.
4954 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
4955 and target-globals.h.
4956 (target-globals.o): New rule.
4957 (GTFILES): Include $(srcdir)/target-globals.h.
4958 * defaults.h (SWITCHABLE_TARGET): Define.
4959 * gengtype.c (open_base_files): Add target-globals.h to the
4961 * target-globals.h: New file.
4962 * target-globals.c: Likewise.
4964 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
4965 * flags.h (target_flag_state): New structure.
4966 (default_target_flag_state): Declare.
4967 (this_target_flag_state): Declare as a variable or define as a macro.
4968 (align_loops_log): Redefine as a macro.
4969 (align_loops_max_skip, align_jumps_log): Likewise.
4970 (align_jumps_max_skip, align_labels_log): Likewise.
4971 (align_labels_max_skip, align_functions_log): Likewise.
4972 * toplev.c (default_target_flag_state): New variable.
4973 (this_target_flag_state): New conditional variable.
4974 (align_loops_log): Delete.
4975 (align_loops_max_skip, align_jumps_log): Likewise.
4976 (align_jumps_max_skip, align_labels_log): Likewise.
4977 (align_labels_max_skip, align_functions_log): Likewise.
4978 * target-globals.h (this_target_flag_state): Declare.
4979 (target_globals): Add a flag_state field.
4980 (restore_target_globals): Copy the flag_state field to
4981 this_target_flag_state.
4982 * target-globals.c: Include flags.h.
4983 (default_target_globals): Initialize the flag_state field.
4984 (save_target_globals): Likewise.
4986 2010-07-12 Jie Zhang <jie@codesourcery.com>
4988 * postreload.c (reg_symbol_ref[]): New.
4989 (move2add_use_add2_insn): New.
4990 (move2add_use_add3_insn): New.
4991 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
4992 (move2add_note_store): Likewise.
4994 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
4996 PR rtl-optimization/44752
4997 * genautomata.c (main): Don't emit an empty file even if there
5000 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5002 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
5003 ix86_solaris_return_in_memory.
5004 * config/i386-protos.h: Reflect this.
5005 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
5006 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
5008 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
5010 2010-07-12 Jie Zhang <jie@codesourcery.com>
5012 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
5013 align the stack when it's going to be saved.
5015 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5018 * config/host-solaris.c (mmap_fixed): New function.
5019 (sol_gt_pch_get_address): Use it.
5020 (sol_gt_pch_use_address): Likewise.
5022 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5024 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
5025 pentiumpro on Solaris 8 and 9/x86.
5026 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
5027 Document SSE/SSE2 support.
5028 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
5030 2010-07-12 Andi Kleen <ak@linux.intel.com>
5032 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
5033 instead of gcc_assert to print better error message for multiple
5036 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
5038 * config/i386/i386.c (ix86_asm_output_function_label): Change format
5039 string placeholder from 0x%x to %#x.
5040 (ix86_code_end): Use putc to output '\n'.
5041 (ix86_print_operand) <case ';'>: Use putc to output ';'.
5043 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
5045 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
5046 in directive -export.
5048 2010-07-10 Anatoly Sokolov <aesok@post.ru>
5050 * reginfo.h (reg_classes_intersect_p): Change arguments type to
5052 * rtl.h (reg_classes_intersect_p): Adjust prototype.
5054 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5056 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
5057 rs6000_memory_move_cost): Remove
5058 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
5059 TARGET_MEMORY_MOVE_COST): Define.
5060 (rs6000_register_move_cost): Make static. Change arguments type from
5061 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
5062 (rs6000_memory_move_cost): Make static. Change arguments type from
5063 'enum reg_class' to reg_class_t.
5065 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
5068 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
5069 lookup code into....
5070 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
5072 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
5073 * cfgloopanal.c (target_clobbered_regs): Define.
5074 (init_set_costs): Initialize target_clobbered_regs.
5075 (estimate_reg_pressure_cost): Add call_p argument. When true,
5076 adjust the number of available registers to exclude the
5077 call-clobbered registers.
5078 * cfgloop.h (target_clobbered_regs): Declare.
5079 (estimate_reg_pressure_cost): Adjust declaration.
5080 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
5081 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
5082 (determine_set_costs): Dump target_clobbered_regs.
5083 (loop_body_includes_call): New function.
5084 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
5085 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
5086 call_p flag through.
5087 (best_gain_for_invariant): Likewise.
5088 (find_invariants_to_move): Likewise.
5089 (move_single_loop_invariants): Likewise, using already-computed
5092 2010-07-10 Richard Guenther <rguenther@suse.de>
5093 Joern Rennecke <joern.rennecke@embecosm.com>
5096 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
5097 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
5098 unless they have DECL_IGNORED_P set.
5100 2010-07-10 Richard Guenther <rguenther@suse.de>
5103 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
5105 (gimple_types_compatible_p): Similar to pointed-to
5106 types allow and merge a mix of complete and incomplete aggregate.
5107 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
5108 (iterative_hash_gimple_type): Adjust for that.
5110 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
5112 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
5114 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
5117 * config/darwin.c (output_objc_section_asm_op): Save and restore
5118 section when outputting ObjC section list.
5120 2010-07-09 Jan Hubicka <jh@suse.cz>
5122 * lto-streamer-out.c (produce_symtab): Do not write alias
5123 cgraph/varpool nodes.
5125 2010-07-09 Jan Hubicka <jh@suse.cz>
5127 * tree-inline.c (declare_return_variable): Fix ICE while
5128 inlining DECL_BY_VALUE function not in SSA form
5130 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
5132 PR tree-optimization/44576
5133 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
5134 New. Pull out from is_loop_prefetching_profitable to implement
5135 the trip count to ahead ratio heuristic.
5136 (mem_ref_count_reasonable_p): New. Pull out from
5137 is_loop_prefetching_profitable to implement the instruction to
5138 memory reference ratio heuristic. Also consider not reasonable if
5139 the memory reference count is above a threshold (to avoid
5140 explosive compilation time.
5141 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
5142 is_loop_prefetching_profitable to implement the instruction to
5143 prefetch ratio heuristic.
5144 (is_loop_prefetching_profitable): Removed.
5145 (loop_prefetch_arrays): Distribute the cost analysis across the
5146 function to allow early exit of the prefetch analysis.
5147 is_loop_prefetching_profitable is splitted into three functions,
5148 with each one called as early as possible.
5149 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
5150 number of memory references in a loop is considered too many.
5152 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
5154 * reload.c (find_reloads): Don't clear badop if we have a winreg
5155 alternative, but not win, and the class only has fixed regs.
5156 * hard-reg-set.h (class_only_fixed_regs): Declare.
5157 * reginfo.c (class_only_fixed_regs): New array.
5158 (init_reg_sets_1): Initialize it.
5159 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
5160 discourage alternatives using the stack pointer.
5162 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
5164 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
5166 * config/arm/arm.md (cbranchqi4): Fix array size.
5167 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
5170 2010-07-09 Richard Guenther <rguenther@suse.de>
5172 * gimple.c (struct type_fixup_s): New struct and VEC type.
5173 (gimple_register_type_fixups): New static global.
5174 (gimple_queue_type_fixup): New function.
5175 (gimple_types_compatible_p): Queue type fixups instead of
5177 (gimple_register_type): Apply queued fixups for the
5178 canonical type. Empty the type fixup queue.
5180 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
5182 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
5183 * configure: Regenerate.
5186 2010-07-09 Jakub Jelinek <jakub@redhat.com>
5187 Denys Vlasenko <dvlasenk@redhat.com>
5188 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5190 PR tree-optimization/28632
5191 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
5192 (extract_range_from_binary_expr): Further optimize
5193 BIT_AND_EXPR and BIT_IOR_EXPR.
5195 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
5197 * tree-if-conv.c (fold_or_predicates): New.
5198 (add_to_predicate_list): Call it.
5200 2010-07-09 Richard Guenther <rguenther@suse.de>
5203 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
5204 if base is a pointer.
5205 * tree-cfg.c (verify_expr): Update MEM_REF checking.
5207 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
5210 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
5211 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
5212 builtin mask for load/store builtins.
5214 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
5216 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
5218 * configure: Regenerate.
5219 * config/i386/i386.c (ix86_print_operand) <case ';'>:
5220 Remove TARGET_MACHO.
5222 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
5224 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
5226 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
5228 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
5230 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
5232 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
5234 * config/picochip/picochip.md (commsTestPort): Emit more
5235 efficient sequence for tstport instruction.
5237 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
5239 * config/i386/i386.c (ix86_veclib_handler): Make static.
5241 2010-07-09 Richard Guenther <rguenther@suse.de>
5243 PR tree-optimization/44852
5244 * tree-ssa-alias.c: Include toplev.h for exact_log2.
5245 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
5247 (indirect_refs_may_alias_p): Likewise.
5248 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
5250 2010-07-09 Richard Guenther <rguenther@suse.de>
5252 PR tree-optimization/44882
5253 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
5255 (vectorizable_load): Likewise.
5257 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
5260 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
5261 All callers changed.
5262 Handle the case when we're called for the epilogue.
5263 (thumb_unexpanded_epilogue): Use it.
5264 (thumb1_expand_epilogue): Likewise.
5266 2010-07-09 Jakub Jelinek <jakub@redhat.com>
5268 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
5269 both ranges are range_int_cst_p with non-negative minimum,
5270 try harder to derive smaller range.
5272 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5274 * genrecog.c: Include diagnostic-core.h before toplev.h.
5275 * genoutput.c: Likewise.
5276 * genextract.c: Likewise.
5277 * genautomata.c: Likewise.
5278 * genemit.c: Likewise.
5279 * genpeep.c: Likewise.
5280 * genattrtab.c: Likewise.
5281 * genconditions.c: Likewise.
5282 * genpreds.c: Likewise.
5284 2010-07-08 Andi Kleen <ak@linux.intel.com>
5286 * lto-section-in.c (lto_section_name): Add missing comma.
5288 2010-07-08 Anatoly Sokolov <aesok@post.ru>
5290 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
5291 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
5292 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
5293 (ia64_override_options): Rename to...
5294 (ia64_option_override): ... this one. Make static.
5296 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
5299 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
5300 pointed-to type of the offset in a MEM_REF to compute the alignment.
5302 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
5304 * final.c (final_scan_insn): Replace
5305 TARGET_UNWIND_INFO macro check by unwind_emit
5307 * targhooks.c (default_unwind_emit): Removed.
5308 * targhooks.h (default_unwind_emit): Likewise.
5309 * target.def (unwind_emit): Set default value to NULL.
5311 * config/i386/i386-protos.h (ix86_asm_output_function_label):
5313 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
5314 for NULL fntype argument and allow 64-bit targets.
5315 (ix86_asm_output_function_label): New function.
5316 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
5317 (ix86_handle_fndecl_attribute): Likewise.
5318 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
5319 * doc/doc/tm.texi: Regenerated.
5320 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
5321 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
5322 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
5323 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
5324 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
5325 * config/elfos.h: Likewise.
5326 * config/i386/cygming.h: Likewise.
5327 * config/netbsd-aout.h: Likewise.
5328 * config/openbsd.h: Likewise.
5329 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
5330 by ix86_asm_output_function_label function call.
5331 * varasm.c (assemble_start_function): Use
5332 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
5334 2010-07-08 Jan Hubicka <jh@suse.cz>
5336 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
5338 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
5340 * ipa-cp.c (ipcp_estimate_growth): Use it.
5341 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
5344 2010-07-08 Jan Hubicka <jh@suse.cz>
5346 * tree-inline.c (declare_return_variable): Allocate annotation for new
5349 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
5351 PR tree-optimization/44710
5352 * tree-if-conv.c (parse_predicate): New.
5353 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
5354 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
5356 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
5358 * common.opt (ftree-loop-if-convert): New flag.
5359 * doc/invoke.texi (ftree-loop-if-convert): Documented.
5360 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
5361 when flag_tree_loop_if_convert is set.
5363 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
5365 * config/i386/i386.c: Use short syntax for function calls
5366 through function pointers.
5367 * config/i386/i386.md: Ditto.
5369 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
5371 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
5373 2010-07-08 Richard Guenther <rguenther@suse.de>
5375 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
5376 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
5378 2010-07-08 Jakub Jelinek <jakub@redhat.com>
5380 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
5381 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
5382 (loc_list_from_tree): Likewise.
5383 (output_loc_operands): Handle outputting DW_OP_const[48]u
5384 with loc->dtprel set.
5385 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
5387 2010-07-08 Jan Hubicka <jh@suse.cz>
5389 * ipa.c: Include pointer-set.h
5390 (cgraph_externally_visible_p): New attribute ALIASED;
5391 when in LTO, hidden symbols are local unless they are aliased.
5392 (function_and_variable_visibility): Compute aliased nodes;
5393 handle LTO and hidden symbol on functions and vars.
5394 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
5395 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
5397 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
5399 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
5400 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5401 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5402 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5403 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5404 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
5405 (ix86_gen_probe_stack_range): Likewise.
5406 (override_options): Set them.
5407 (ix86_target_stack_probe): New function.
5408 (ix86_compute_frame_layout): Force use of push instructions to
5409 save registers if stack checking with probes is enabled.
5410 (get_scratch_register_on_entry): New function.
5411 (release_scratch_register_on_entry): Likewise.
5412 (ix86_adjust_stack_and_probe): Likewise.
5413 (output_adjust_stack_and_probe): Likewise.
5414 (ix86_emit_probe_stack_range): Likewise.
5415 (output_probe_stack_range): Likewise.
5416 (ix86_expand_prologue): Emit stack checking code if static built-in
5417 stack checking is enabled.
5418 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
5419 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
5420 (output_adjust_stack_and_probe): Likewise.
5421 (output_probe_stack_range): Likewise.
5422 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
5423 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
5425 (allocate_stack_worker_64): Likewise.
5426 (allocate_stack): Likewise.
5427 (adjust_stack_and_probe): New insn.
5428 (probe_stack_range): Likewise.
5430 2010-07-08 Richard Guenther <rguenther@suse.de>
5432 PR tree-optimization/44831
5433 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
5434 a MEM_REF preserving TBAA info of the original dereference.
5435 Dereference the original pointer if the address is not invariant.
5436 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
5437 at least one invariant address that we are going to dereference.
5439 2010-07-08 Richard Guenther <rguenther@suse.de>
5441 PR tree-optimization/44861
5442 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
5443 information when building MEM_REFs.
5444 (vectorizable_load): Likewise.
5445 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
5447 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
5449 * config/sol2-c.c: Do not include diagnostic-core.h.
5451 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5454 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
5455 with respect to current_function_decl. Pass decl of the function.
5456 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
5457 * ipa-inline.c (compute_inline_parameters): Pass decl to
5458 estimated_stack_frame_size.
5460 2010-07-08 Richard Guenther <rguenther@suse.de>
5462 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
5464 (valueize_refs): Call it.
5466 2010-07-08 Richard Guenther <rguenther@suse.de>
5468 PR rtl-optimization/44838
5469 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
5470 SSA form do not use pointer equivalence.
5472 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
5474 * dwarf2out.c (AT_linkage_name): Delete.
5475 (add_linkage_attr): New function.
5476 (add_linkage_name): Call it to emit the linkage attribute.
5477 (dwarf2out_finish): Likewise.
5478 (move_linkage_attr): Explicitly accept both attribute variants.
5480 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5482 * toplev.h: Do not include diagnostic-core.h.
5483 Include diagnostic-core.h in every file that includes toplev.h.
5484 * c-tree.h: Do not include toplev.h.
5485 * pretty-print.h: Update comment.
5486 * Makefile.in: Update dependencies.
5487 * alias.c: Include diagnostic-core.h in every file that includes
5489 * attribs.c: Likewise.
5490 * auto-inc-dec.c: Likewise.
5491 * bb-reorder.c: Likewise.
5492 * bt-load.c: Likewise.
5493 * caller-save.c: Likewise.
5494 * calls.c: Likewise.
5496 * cfganal.c: Likewise.
5497 * cfgbuild.c: Likewise.
5498 * cfgcleanup.c: Likewise.
5499 * cfghooks.c: Likewise.
5500 * cfgloop.c: Likewise.
5501 * combine.c: Likewise.
5502 * config/alpha/alpha.c: Likewise.
5503 * config/arc/arc.c: Likewise.
5504 * config/arm/arm.c: Likewise.
5505 * config/arm/pe.c: Likewise.
5506 * config/avr/avr.c: Likewise.
5507 * config/bfin/bfin.c: Likewise.
5508 * config/cris/cris.c: Likewise.
5509 * config/crx/crx.c: Likewise.
5510 * config/darwin-c.c: Likewise.
5511 * config/darwin.c: Likewise.
5512 * config/fr30/fr30.c: Likewise.
5513 * config/frv/frv.c: Likewise.
5514 * config/h8300/h8300.c: Likewise.
5515 * config/host-darwin.c: Likewise.
5516 * config/i386/i386.c: Likewise.
5517 * config/i386/netware.c: Likewise.
5518 * config/i386/nwld.c: Likewise.
5519 * config/i386/winnt-cxx.c: Likewise.
5520 * config/i386/winnt-stubs.c: Likewise.
5521 * config/i386/winnt.c: Likewise.
5522 * config/ia64/ia64-c.c: Likewise.
5523 * config/ia64/ia64.c: Likewise.
5524 * config/iq2000/iq2000.c: Likewise.
5525 * config/lm32/lm32.c: Likewise.
5526 * config/m32c/m32c-pragma.c: Likewise.
5527 * config/m32c/m32c.c: Likewise.
5528 * config/m32r/m32r.c: Likewise.
5529 * config/m68hc11/m68hc11.c: Likewise.
5530 * config/m68k/m68k.c: Likewise.
5531 * config/mcore/mcore.c: Likewise.
5532 * config/mep/mep-pragma.c: Likewise.
5533 * config/mep/mep.c: Likewise.
5534 * config/mmix/mmix.c: Likewise.
5535 * config/mn10300/mn10300.c: Likewise.
5536 * config/moxie/moxie.c: Likewise.
5537 * config/pa/pa.c: Likewise.
5538 * config/pdp11/pdp11.c: Likewise.
5539 * config/picochip/picochip.c: Likewise.
5540 * config/rs6000/rs6000-c.c: Likewise.
5541 * config/rs6000/rs6000.c: Likewise.
5542 * config/rx/rx.c: Likewise.
5543 * config/s390/s390.c: Likewise.
5544 * config/score/score.c: Likewise.
5545 * config/score/score3.c: Likewise.
5546 * config/score/score7.c: Likewise.
5547 * config/sh/sh.c: Likewise.
5548 * config/sh/symbian-base.c: Likewise.
5549 * config/sh/symbian-c.c: Likewise.
5550 * config/sh/symbian-cxx.c: Likewise.
5551 * config/sol2-c.c: Likewise.
5552 * config/sol2.c: Likewise.
5553 * config/sparc/sparc.c: Likewise.
5554 * config/spu/spu.c: Likewise.
5555 * config/stormy16/stormy16.c: Likewise.
5556 * config/v850/v850-c.c: Likewise.
5557 * config/v850/v850.c: Likewise.
5558 * config/vax/vax.c: Likewise.
5559 * config/vxworks.c: Likewise.
5560 * config/xtensa/xtensa.c: Likewise.
5561 * convert.c: Likewise.
5563 * cselib.c: Likewise.
5564 * dbgcnt.c: Likewise.
5565 * dbxout.c: Likewise.
5567 * dominance.c: Likewise.
5568 * emit-rtl.c: Likewise.
5569 * explow.c: Likewise.
5570 * expmed.c: Likewise.
5571 * fixed-value.c: Likewise.
5572 * fold-const.c: Likewise.
5573 * fwprop.c: Likewise.
5575 * ggc-common.c: Likewise.
5576 * ggc-page.c: Likewise.
5577 * ggc-zone.c: Likewise.
5578 * gimple-low.c: Likewise.
5579 * gimplify.c: Likewise.
5580 * graph.c: Likewise.
5581 * haifa-sched.c: Likewise.
5582 * ifcvt.c: Likewise.
5583 * implicit-zee.c: Likewise.
5584 * integrate.c: Likewise.
5585 * ira-build.c: Likewise.
5586 * ira-color.c: Likewise.
5587 * ira-conflicts.c: Likewise.
5588 * ira-costs.c: Likewise.
5589 * ira-lives.c: Likewise.
5591 * lists.c: Likewise.
5592 * loop-doloop.c: Likewise.
5593 * loop-iv.c: Likewise.
5594 * lto-opts.c: Likewise.
5595 * lto-symtab.c: Likewise.
5597 * modulo-sched.c: Likewise.
5598 * optabs.c: Likewise.
5599 * params.c: Likewise.
5600 * plugin.c: Likewise.
5601 * postreload-gcse.c: Likewise.
5602 * postreload.c: Likewise.
5603 * predict.c: Likewise.
5604 * profile.c: Likewise.
5606 * regcprop.c: Likewise.
5607 * reginfo.c: Likewise.
5608 * regmove.c: Likewise.
5609 * reorg.c: Likewise.
5610 * resource.c: Likewise.
5612 * rtlanal.c: Likewise.
5613 * sched-deps.c: Likewise.
5614 * sched-ebb.c: Likewise.
5615 * sched-rgn.c: Likewise.
5616 * sdbout.c: Likewise.
5617 * sel-sched-dump.c: Likewise.
5618 * sel-sched-ir.c: Likewise.
5619 * simplify-rtx.c: Likewise.
5621 * stor-layout.c: Likewise.
5622 * store-motion.c: Likewise.
5623 * targhooks.c: Likewise.
5624 * tree-cfg.c: Likewise.
5625 * tree-cfgcleanup.c: Likewise.
5626 * tree-dump.c: Likewise.
5627 * tree-eh.c: Likewise.
5628 * tree-inline.c: Likewise.
5629 * tree-nomudflap.c: Likewise.
5630 * tree-object-size.c: Likewise.
5631 * tree-optimize.c: Likewise.
5632 * tree-outof-ssa.c: Likewise.
5633 * tree-phinodes.c: Likewise.
5634 * tree-profile.c: Likewise.
5635 * tree-ssa-ccp.c: Likewise.
5636 * tree-ssa-coalesce.c: Likewise.
5637 * tree-ssa-live.c: Likewise.
5638 * tree-ssa-loop-niter.c: Likewise.
5639 * tree-ssa-loop-prefetch.c: Likewise.
5640 * tree-ssa-loop.c: Likewise.
5641 * tree-ssa-structalias.c: Likewise.
5642 * tree-ssa-uninit.c: Likewise.
5643 * tree-ssa.c: Likewise.
5644 * tree-vect-data-refs.c: Likewise.
5645 * tree-vect-loop-manip.c: Likewise.
5646 * tree-vect-loop.c: Likewise.
5647 * tree-vect-patterns.c: Likewise.
5648 * tree-vect-stmts.c: Likewise.
5649 * tree-vrp.c: Likewise.
5650 * varasm.c: Likewise.
5653 * xcoffout.c: Likewise.
5655 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
5657 * gengtype.c (write_field_root): New function.
5658 (write_root): Use it.
5660 2010-07-07 Wei Guozhi <carrot@google.com>
5662 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
5663 of lowest bits to lshift/compare): Add a missing line.
5665 2010-07-07 Wei Guozhi <carrot@google.com>
5667 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
5668 of lowest bits to lshift/compare): New.
5670 2010-07-07 Tom Tromey <tromey@redhat.com>
5672 * doc/tm.texi: Update.
5673 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
5675 * target.def (want_debug_pub_sections): New hook.
5676 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
5677 * dwarf2out.c (add_pubname_string): Check
5678 targetm.want_debug_pub_sections.
5679 (add_pubname): Likewise.
5680 (add_pubtype): Likewise.
5682 2010-07-07 Jie Zhang <jie@codesourcery.com>
5684 * genautomata.c (output_automata_list_min_issue_delay_code):
5685 Correctly decompress min_issue_delay.
5687 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
5689 PR rtl-optimization/44404
5690 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
5691 possible, use reg_overlap_mentioned_p instead.
5693 2010-07-07 Duncan Sands <baldrick@free.fr>
5696 * tree.c (build_function_type_skip_args): Copy the original type using
5697 build_distinct_type_copy rather than copy_node.
5699 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
5702 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
5704 (ix86_expand_prologue): Likewise.
5705 (ix86_handle_fndecl_attribute): Likewise.
5706 (ix86_asm_declare_function_name): Likewise.
5707 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5708 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5709 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
5710 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
5711 * doc/extend.texi: Likewise.
5713 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
5716 * config/i386/i386.md (rdrand<mode>): Changed to expand to
5717 retry if the carry flag isn't valid.
5718 (rdrand<mode>_1): New.
5720 2010-07-07 Richard Guenther <rguenther@suse.de>
5723 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
5724 for expanding the constant offset for MEM_REFs.
5726 2010-07-07 Richard Guenther <rguenther@suse.de>
5728 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
5729 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
5730 * gimple.h (is_gimple_operand): Remove.
5731 * gimple.c (is_gimple_operand): Likewise.
5732 (walk_gimple_op): Fix wi->val_only setting for calls.
5733 * tree-cfg.c (verify_gimple_call): Fix argument validation.
5734 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
5735 invalid gimple calls.
5737 2010-07-06 Jan Hubicka <jh@suse.cz>
5739 * lto-cgraph.c (output_cgraph): Add missing declaration.
5741 2010-07-06 Jan Hubicka <jh@suse.cz>
5743 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
5746 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
5748 * doc/gimple.texi (GIMPLE_DEBUG): Document.
5749 * doc/rtl.texi (Debug Information): New node.
5750 (NOTE_INSN_VAR_LOCATION): Document.
5751 (debug_insn): Likewise.
5752 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
5754 2010-07-07 Jan Hubicka <jh@suse.cz>
5756 With parts by Richard Guenther.
5759 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
5760 for functions passed by reference.
5761 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
5762 in memory when passed by reference.
5763 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
5765 * ipa-split.c (split_function): Cleanup way return value is passed;
5766 handle SSA DECL_BY_REFERENCE retvals.
5767 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
5768 DECL_BY_REFERENCE is set.
5769 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
5770 find_what_p_points_to): Handle RESULT_DECL.
5771 * tree-inline.c (declare_return_variable): Get new entry_block argument;
5772 when passing by reference ensure that RESULT_DECL is gimple_val.
5773 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
5774 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
5776 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
5778 PR rtl-optimization/44787
5779 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
5780 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
5782 2010-07-06 Jan Hubicka <jh@suse.cz>
5784 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
5785 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
5786 with body can prevail.
5787 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
5788 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
5789 * cgraph.c (cgraph_get_node_or_alias): New function.
5790 * cgraph.h (cgraph_get_node_or_alias): Declare.
5792 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
5794 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
5796 (ix86_expand_prologue): Likewise.
5797 (ix86_handle_fndecl_attribute): Likewise.
5798 (ix86_asm_declare_function_name): New function for
5799 ASM_DECLARE_FUNCTION_NAME.
5800 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
5801 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
5802 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
5803 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
5804 * doc/extend.texi: Adjust documentation about ms_hook_prologue
5807 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
5809 * config/i386/i386.md (immediate_operand): New mode attribute.
5811 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
5812 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
5813 using P mode iterator.
5814 (pro_epilogue_adjust_stack_di_2): Rename from
5815 pro_epilogue_adjust_stack_rex64_2.
5817 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
5819 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
5821 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
5822 through gen_mov_insv_1 function pointer.
5823 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
5824 gen_truncxf<mode>2 through gen_truncxf function pointer.
5825 (remainder<mode>3): Ditto.
5826 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
5827 (allocate_stack): Call gen_allocate_stack_worker_64 or
5828 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
5830 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
5833 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
5835 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
5836 operand constraint instead of <r><i>m.
5838 2010-07-06 Richard Guenther <rguenther@suse.de>
5841 * convert.c (convert_to_integer): Watch out for overflowing
5844 2010-07-05 Jan Hubicka <jh@suse.cz>
5846 * lto-streamer.c (write_symbol_vec): Rename to ...
5847 (write_symbol) ... this one; write only symbol given and when
5848 present in cache. Sanity check that what is defined is present
5849 in cgraph/varpool with body/finalized decl.
5850 (write_symbols_of_kind): Remove.
5851 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
5852 pairs to produce symtab.
5853 (produce_asm_for_decls): Update call of produce_symtab; don't do so
5854 when doing WPA streaming.
5856 2010-07-05 Jan Hubicka <jh@suse.cz>
5858 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
5859 function is still available to fold into.
5861 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
5863 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
5864 * function.h (struct_function): Change type of local_decls field
5866 (add_local_decl): New function.
5867 (FOR_EACH_LOCAL_DECL): New macro.
5868 * cfgexpand.c (init_vars_expansion): Adjust for new type of
5870 (estimated_stack_frame_size): Likewise.
5871 (expand_used_vars): Likewise.
5872 * cgraphbuild.c (build_cgraph_edges): Likewise.
5873 * function.c (instantiate_decls_1): Likewise.
5874 * ipa-struct-reorg.c (build_data_structure): Likewise.
5875 * ipa-type-escape.c (analyze_function): Likewise.
5876 * lto-streamer-in.c (input_function): Likewise.
5877 * lto-streamer-out.c (output_function): Likewise.
5878 * tree-ssa-live.c (remove_unused_locals): Likewise.
5879 * tree.c (free_lang_data_in_decl): Likewise.
5880 (find_decls_types_in_node): Likewise.
5881 * omp-low.c (remove_exit_barrier): Likewise.
5882 (expand_omp_taskreg): Likewise.
5883 (list2chain): Rename to...
5884 (vec2chain): ...this. Adjust.
5885 * cgraphunit.c (assemble_thunk): Call add_local_decl.
5886 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
5887 * gimple-low.c (record_vars_into): Likewise.
5888 * tree-inline.c (remap_decls): Likewise.
5889 (declare_return_variable): Likewise.
5890 (declare_inline_vars): Likewise.
5891 (copy_forbidden): Adjust for new type of cfun->local_decls.
5892 (add_local_variables): New function.
5893 (expand_call_inline): Call it.
5894 (tree_function_versioning): Likewise.
5896 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
5898 AVX Programming Reference (June, 2010)
5899 * config/i386/cpuid.h (bit_F16C): New.
5900 (bit_RDRND): Likewise.
5901 (bit_FSGSBASE): Likewise.
5903 * config/i386/i386-builtin-types.def: Add
5904 "DEF_FUNCTION_TYPE (UINT16)", function types for
5905 float16 <-> float conversions and
5906 "DEF_FUNCTION_TYPE (VOID, UINT64)".
5908 * config/i386/i386-c.c (ix86_target_macros_internal): Support
5909 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
5910 OPTION_MASK_ISA_F16C.
5912 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
5913 (OPTION_MASK_ISA_RDRND_SET): Likewise.
5914 (OPTION_MASK_ISA_F16C_SET): Likewise.
5915 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
5916 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
5917 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
5918 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
5919 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
5920 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
5921 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
5922 (override_options): Handle them.
5923 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
5924 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
5925 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
5926 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
5927 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
5928 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
5929 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
5930 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
5931 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
5932 (bdesc_args): Likewise.
5933 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
5934 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
5935 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
5936 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
5937 Handle non-memory store.
5939 * config/i386/i386.h (TARGET_FSGSBASE): New.
5940 (TARGET_RDRND): Likewise.
5941 (TARGET_F12C): Likewise.
5943 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
5944 (UNSPEC_VCVTPS2PH): Likewise.
5945 (UNSPECV_RDFSBASE): Likewise.
5946 (UNSPECV_RDGSBASE): Likewise.
5947 (UNSPECV_WRFSBASE): Likewise.
5948 (UNSPECV_WRGSBASE): Likewise.
5949 (UNSPECV_RDRAND): Likewise.
5950 (rdfsbase<mode>): Likewise.
5951 (rdgsbase<mode>): Likewise.
5952 (wrfsbase<mode>): Likewise.
5953 (wrgsbase<mode>): Likewise.
5954 (rdrand<mode>): Likewise.
5956 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
5958 * config/i386/immintrin.h (_rdrand_u16): New.
5959 (_rdrand_u32): Likewise.
5960 (_readfsbase_u32): Likewise.
5961 (_readfsbase_u64): Likewise.
5962 (_readgsbase_u32): Likewise.
5963 (_readgsbase_u64): Likewise.
5964 (_writefsbase_u32): Likewise.
5965 (_writefsbase_u64): Likewise.
5966 (_writegsbase_u32): Likewise.
5967 (_writegsbase_u64): Likewise.
5968 (_rdrand_u64): Likewise.
5969 (_cvtsh_ss): Likewise.
5970 (_mm_cvtph_ps): Likewise.
5971 (_mm256_cvtph_ps): Likewise.
5972 (_cvtss_sh): Likewise.
5973 (_mm_cvtps_ph): Likewise.
5974 (_mm256_cvtps_ph): Likewise.
5976 * config/i386/sse.md (vcvtph2ps): New.
5977 (*vcvtph2ps_load): Likewise.
5978 (vcvtph2ps256): Likewise.
5979 (vcvtps2ph): Likewise.
5980 (*vcvtps2ph): Likewise.
5981 (*vcvtps2ph_store): Likewise.
5982 (vcvtps2ph256): Likewise.
5984 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
5986 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
5988 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
5991 * genenums.c (main): Output include of insn-constants.h
5992 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
5994 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
5996 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
5997 (override_options): Initialize it.
5998 (ix86_expand_prologue): Use it.
6000 2010-07-05 Jakub Jelinek <jakub@redhat.com>
6002 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
6004 2010-07-05 Anatoly Sokolov <aesok@post.ru>
6006 * double-int.h (fit_double_type): Remove declaration.
6007 * double-int.c (fit_double_type): Remove function.
6008 * tree.h (int_fits_type_p): Adjust prototype.
6009 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
6010 instead of fit_double_type.
6011 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
6012 instead of fit_double_type and build_int_cst_wide.
6013 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
6014 instead of fit_double_type and build_int_cst_wide.
6015 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
6018 2010-07-05 Jan Hubicka <jh@suse.cz>
6020 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
6022 * lto-cgraph.c (referenced_from_other_partition_p,
6023 reachable_from_other_partition_p): Use in_other_partition flags.
6024 (output_node, output_varpool_node): COMDAT nodes always have private
6025 copies and thus are never used from other partition.
6027 2010-07-05 Anatoly Sokolov <aesok@post.ru>
6029 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
6030 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
6031 * config/ia64/ia64.c Include reload.h.
6032 (ia64_memory_move_cost): New function.
6033 (TARGET_MEMORY_MOVE_COST): Define.
6034 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
6037 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
6040 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
6041 comments about cost model.
6042 (try_add_cand_for): Add second strategy for choosing initial set
6043 based on original IVs, controlled by ORIGINALP argument.
6044 (get_initial_solution): Add ORIGINALP argument.
6045 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
6046 (find_optimal_iv_set): Try two different strategies for choosing
6047 the IV set, and return the one with lower cost.
6049 2010-07-05 Richard Guenther <rguenther@suse.de>
6051 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
6053 2010-07-05 Richard Guenther <rguenther@suse.de>
6055 * tree.c (reference_alias_ptr_type): New function.
6056 * tree.h (reference_alias_ptr_type): Declare.
6057 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
6058 allow non-TARGET_MEM_REF new refs.
6059 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
6060 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
6061 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
6062 (create_mem_ref): Get alias pointer type. Adjust calls to
6064 (maybe_fold_tmr): Likewise.
6065 * tree-flow.h (create_mem_ref): Adjust prototype.
6067 2010-07-05 Jakub Jelinek <jakub@redhat.com>
6070 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
6071 *from_p is VAR_DECL.
6073 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
6075 * tree.h (build_call_list): Remove.
6076 * tree.c (build_call_list): Remove.
6078 2010-07-05 Richard Guenther <rguenther@suse.de>
6080 * double-int.h (double_int_sub): Declare.
6081 * double-int.c (double_int_sub): New function.
6082 * dwarf2out.c (field_byte_offset): Use it.
6083 * fixed-value.c (do_fixed_add): Likewise.
6084 (do_fixed_multiply): Likewise.
6085 (do_fixed_divide): Likewise.
6086 * tree-predcom.c (add_ref_to_chain): Likewise.
6087 (determine_roots_comp): Likewise.
6088 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
6090 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
6092 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
6095 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
6097 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
6098 * arm-modes.def (CC_NOTB): Don't define.
6099 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
6100 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
6101 (LTUGEU): New code_iterator.
6102 (cnb, optab): New corresponding code_attrs.
6103 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
6104 to canonical form. Operands 1 and 2 are commutative. Parametrize
6106 (addsi3_carryin_shift_<optab>): Likewise.
6107 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
6108 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
6109 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
6110 (subsi3_compare): Renamed from subsi3_compare0_c.
6111 Change CC_NOTB to CC.
6112 (arm_subsi3_insn): Allow constants for operand 0.
6113 (compare_scc peephole for eq case): New.
6114 (compare_scc splitters): Change CC_NOTB to CC.
6116 2010-07-05 Richard Guenther <rguenther@suse.de>
6118 * tree-ssa-loop-im.c (for_each_index): Do not handle
6120 (gen_lsm_tmp_name): Likewise.
6121 * tree-dump.c (dequeue_and_dump): Likewise.
6122 * tree-pretty-print.c (dump_generic_node): Likewise.
6123 (op_code_prio): Likewise.
6124 (op_symbol_code): Likewise.
6125 * tree.c (staticp): Likewise.
6126 (build1_stat): Likewise.
6127 * tree.h (INDIRECT_REF_P): Likewise.
6128 * fold-const.c (maybe_lvalue_p): Likewise.
6129 (operand_equal_p): Likewise.
6130 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6131 (ao_ref_init_from_vn_reference): Likewise.
6132 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
6133 (find_interesting_uses_address): Likewise.
6134 * dwarf2out.c (loc_list_from_tree): Likewise.
6135 * gimplify.c (gimplify_expr): Likewise.
6136 * tree-eh.c (tree_could_trap_p): Likewise.
6137 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6138 * cfgexpand.c (expand_debug_expr): Likewise.
6139 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6140 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
6141 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
6142 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
6143 * tree-ssa-operands.c (get_expr_operands): Likewise.
6144 * expr.c (safe_from_p): Likewise.
6145 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
6146 * tree-vect-data-refs.c (vect_setup_realignment): Build
6147 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
6148 * tree-vect-stmts.c (vectorizable_load): Likewise.
6149 * tree.def (ALIGN_INDIRECT_REF): Remove.
6151 2010-07-05 Richard Guenther <rguenther@suse.de>
6153 PR tree-optimization/44784
6154 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
6156 (find_or_generate_expression): Fix SCCVN insertion check.
6158 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
6160 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
6161 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
6162 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
6165 2010-07-05 Ira Rosen <irar@il.ibm.com>
6167 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
6168 statements that are not vectorized.
6169 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
6172 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
6175 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
6177 2010-07-05 Richard Guenther <rguenther@suse.de>
6179 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
6180 RESULT_DECLs properly.
6182 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
6184 PR rtl-optimization/44695
6185 * config/i386/i386.md (extract_code): Removed.
6186 (<u>divmodqi4): Likewise.
6188 (udivmodqi4): Likewise.
6189 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
6190 (udivmodhiqi3): Likewise.
6192 2010-07-04 Jan Hubicka <jh@suse.cz>
6194 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
6196 2010-07-04 Jan Hubicka <jh@suse.cz>
6198 * cgraphunit.c (init_cgraph): Only initialize dump file if it
6199 is not already initialized.
6201 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
6203 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
6204 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
6205 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
6206 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
6207 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
6208 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
6209 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
6210 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
6211 (sync_new_nand_optab): Redefine as macros.
6212 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
6214 (direct_optab_index): New enum.
6215 (direct_optab_d): New structure.
6216 (direct_optab): New typedef.
6217 (direct_optab_table): Declare.
6218 (direct_optab_handler, set_direct_optab_handler): New functions.
6219 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
6220 (sync_lock_release_optab): New macros.
6221 * optabs.c (direct_optab_table): New variable.
6222 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
6223 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
6224 cmpstr_optab and cmpstrn_optab.
6225 (emit_conditional_move): Likewise for movcc_optab.
6226 (can_conditionally_move_p): Likewise for movcc_gen_code.
6227 (init_insn_codes): Clear direct_optab_table.
6228 (init_optabs): Don't initialize the new "direct optabs" here.
6229 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
6231 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
6232 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
6233 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
6234 (expand_sync_operation): Likewise other sync_*_optabs.
6235 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
6236 to sync_compare_and_swap_optab.
6237 (expand_sync_lock_test_and_set): Use direct_optab_handler for
6238 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
6239 to the names of both.
6240 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
6241 cmpstr_optab and cmpstrn_optab.
6242 (expand_builtin_lock_release): Likewise sync_lock_release.
6243 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
6244 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
6245 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
6246 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
6247 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
6248 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
6249 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
6250 (sync_lock_test_and_set, sync_lock_release): Delete.
6251 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
6252 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
6253 * genopinit.c (optabs): Use set_direct_optab_handler for the new
6255 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
6256 the "optab" local variable. Use direct_optab_handler for optab and
6257 sync_compare_and_swap_optab.
6258 * reload1.c (reload_in_optab, reload_out_optab): Delete.
6259 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
6260 reload_in_optab and reload_out_optab.
6261 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
6262 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
6263 * config/pa/pa.c (pa_secondary_reload): Likewise.
6264 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
6265 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
6266 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
6267 (VMSupportsCS8_builtin): Likewise.
6269 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
6271 * optabs.h (optab_handlers): Change type of insn_code to int.
6272 (optab_handler, set_optab_handler, convert_optab_handler)
6273 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
6275 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
6276 (init_insn_codes): Zero both the above arrays.
6277 (init_optabs): Never call init_insn_codes first time around.
6279 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
6281 * optabs.h (optab_handler, convert_optab_handler): Turn into
6282 inline functions that return an insn code.
6283 (set_optab_handler, set_convert_optab_handler): New functions.
6284 * builtins.c: Replace optab_handler(X)->insn_code with
6285 optab_handler or set_optab_handler thoughout. Likewise
6286 convert_optab_handler(X)->insn_code with convert_optab_handler
6287 and set_convert_optab_handler.
6288 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
6289 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
6290 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
6291 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
6292 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
6293 config/spu/spu.c: Likewise.
6295 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
6298 * config.gcc (sh*-*-*): Use regular expressions instead of
6299 the 'i' modifier for sed substitutions.
6301 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
6303 * gimple.c (gimple_body): Comments added.
6305 2010-07-04 Richard Guenther <rguenther@suse.de>
6308 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
6311 2010-07-04 Richard Guenther <rguenther@suse.de>
6313 PR tree-optimization/44479
6314 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
6315 extra SSA name copy statements which preserves points-to
6317 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6318 Copy points-to information for all pointers. Properly handle
6320 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
6322 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
6325 2010-07-04 Richard Guenther <rguenther@suse.de>
6328 * tree-inline.c (initialize_inlined_parameters): Do not
6329 re-use pointer-map slot over remap_type call.
6331 2010-07-04 Richard Guenther <rguenther@suse.de>
6333 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
6335 2010-07-04 Richard Guenther <rguenther@suse.de>
6337 PR tree-optimization/44656
6338 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
6339 again after value-replacing in the defintions lhs.
6341 2010-07-04 Ira Rosen <irar@il.ibm.com>
6342 Revital Eres <eres@il.ibm.com>
6344 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
6345 Document new arguments.
6346 * doc/tm.texi: Regenerate.
6347 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
6348 Handle unaligned store.
6349 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
6350 * target.def (builtin_vectorization_cost): Add new arguments.
6351 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
6352 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
6353 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
6354 (vect_vfa_segment_size): Fix indentation.
6355 * tree-vectorizer.h (struct _vect_peel_info): New.
6356 (struct _vect_peel_extended_info): New.
6357 (struct _loop_vec_info): Add new field for peeling hash table and a
6358 macro for its access.
6359 (VECT_MAX_COST): Define.
6360 (vect_get_load_cost): Declare.
6361 (vect_get_store_cost, vect_get_known_peeling_cost,
6362 vect_get_single_scalar_iteraion_cost): Likewise.
6363 (vect_supportable_dr_alignment): Add new argument.
6364 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
6366 (destroy_loop_vec_info): Free peeling hash table.
6367 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
6368 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
6369 vect_analyze_slp. Fix indentation.
6370 (vect_get_single_scalar_iteraion_cost): New function.
6371 (vect_get_known_peeling_cost): Likewise.
6372 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
6373 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
6374 statement. Move outside cost calculation inside unknown peeling case.
6375 Call vect_get_known_peeling_cost for known amount of peeling.
6376 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
6377 reference to the print message of forced alignment.
6378 (vect_verify_datarefs_alignment): Update call to
6379 vect_supportable_dr_alignment.
6380 (vect_get_data_access_cost): New function.
6381 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
6382 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
6383 vect_peeling_hash_choose_best_peeling): Likewise.
6384 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
6385 to store all the accesses in the loop and find best possible access to
6386 align using peeling for known alignment case. For unknown alignment
6387 check if stores are preferred or if peeling is worthy.
6388 (vect_find_same_alignment_drs): Analyze pairs of loads too.
6389 (vect_supportable_dr_alignment): Add new argument and check aligned
6390 accesses according to it.
6391 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
6392 (cost_for_stmt): Call vect_get_stmt_cost.
6393 (vect_model_simple_cost): Likewise.
6394 (vect_model_store_cost): Call vect_get_stmt_cost. Call
6395 vect_get_store_cost to calculate the cost of the statement.
6396 (vect_get_store_cost): New function.
6397 (vect_model_load_cost): Call vect_get_stmt_cost. Call
6398 vect_get_load_cost to calculate the cost of the statement.
6399 (vect_get_load_cost): New function.
6400 (vectorizable_store): Update call to vect_supportable_dr_alignment.
6401 (vectorizable_load): Likewise.
6402 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
6403 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
6404 arguments. Handle unaligned store.
6405 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
6406 (rs6000_builtin_support_vector_misalignment): Return true for word and
6407 double word alignments for VSX.
6408 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
6409 vect_supportable_dr_alignment and builtin_vectorization_cost.
6411 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6414 * config/pa/predicates.md (prefetch_cc_operand): Remove.
6415 (prefetch_nocc_operand): Likewise.
6416 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
6417 (prefetch_20): New insn.
6418 (prefetch_cc): Remove.
6419 (prefetch_nocc): Likewise.
6421 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6423 * expr.c (vector_mode_valid_p): Move to c-common.c.
6424 * expr.h (vector_mode_valid_p): Do not declare here.
6425 * system.h: Poison GCC_EXPR_H in front-ends.
6426 * Makefile.in: Update dependencies.
6428 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6431 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
6433 2010-07-03 Jan Hubicka <jh@suse.cz>
6435 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
6436 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
6437 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
6438 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
6441 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
6443 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
6444 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
6445 TV_IPA_LTO_DECL_OUT): New.
6446 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
6448 2010-07-03 Jan Hubicka <jh@suse.cz>
6450 * ipa-inline.c (update_edge_key): Break out from ...
6451 update_callers_keys): ... here;
6452 (update_callee_keys): Update only the edges from caller to callee.
6453 (update_all_calle_keys): Do what update_calle_keys did.
6454 (decide_inlining_of_small_functions): Avoid recomputing of all
6455 callees when badness increase.
6457 2010-07-03 Jie Zhang <jie@codesourcery.com>
6459 * config/arm/arm.c (arm_attr_length_move_neon): New.
6460 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
6461 * config/arm/neon.md (define_mode_attr V_slen): Remove.
6462 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
6463 to compute length attribute.
6465 2010-07-03 Jie Zhang <jie@codesourcery.com>
6467 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
6468 as predicate for operand 1 and remove its constraint.
6469 * config/arm/predicates.md (vfp_register_operand): New.
6470 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
6471 (*push_fp_multi): Likewise.
6473 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
6475 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
6477 2010-07-03 Jan Hubicka <jh@suse.cz>
6479 * config/i386/i386.c (override_options): Revert accidental commit.
6481 2010-07-02 Le-Chun Wu <lcwu@google.com>
6484 * doc/invoke.texi: Update documentation of -Wshadow.
6486 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
6487 Julian Brown <julian@codesourcery.com>
6488 Sandra Loosemore <sandra@codesourcery.com>
6490 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
6491 comparisons. Adjust to take both operands.
6492 (arm_select_cc_mode): Handle DImode comparisons.
6493 (arm_gen_compare_reg): Generate a scratch register for DImode
6494 comparisons which require one. Use xor for Thumb equality checks.
6495 (arm_const_double_by_immediates): New.
6496 (arm_print_operand): Allow 'Q' and 'R' for constants.
6497 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
6498 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
6499 arm_canonicalize_comparison.
6500 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
6501 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
6503 (arm_const_double_by_immediates): Declare.
6504 * config/arm/constraints.md (Di): New constraint.
6505 * config/arm/predicates.md (arm_immediate_di_operand)
6506 (arm_di_operand, cmpdi_operand): New.
6507 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
6508 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
6509 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
6510 (cstoredi4): Handle non-Cirrus also.
6512 2010-07-02 Julian Brown <julian@codesourcery.com>
6513 Sandra Loosemore <sandra@codesourcery.com>
6516 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
6517 (smax<mode>3): Disable for NEON float modes when
6518 flag_unsafe_math_optimizations is false.
6519 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
6521 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
6522 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
6523 for NEON float modes when flag_unsafe_math_optimizations is false.
6524 (quad_halves_<code>v4sf): Only enable if
6525 flag_unsafe_math_optimizations is true.
6526 * doc/invoke.texi (ARM Options): Add note about floating point
6527 vectorization requiring -funsafe-math-optimizations.
6529 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
6530 Julian Brown <julian@codesourcery.com>
6532 * config/arm/neon.md (UNSPEC_VABA): Delete.
6533 (UNSPEC_VABAL): Delete.
6534 (UNSPEC_VABS): Delete.
6535 (UNSPEC_VMUL_N): Delete.
6538 (mul<mode>3add<mode>_neon): Make the pattern named.
6539 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
6540 (neon_vadd<mode>): Replace with define_expand, and move the remaining
6542 (neon_vadd<mode>_unspec): ...to this.
6543 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
6544 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
6545 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
6546 (neon_vaba<mode>): Rewrite in terms of vabd.
6547 (neon_vabal<mode>): Rewrite in terms of vabdl.
6548 (neon_vabs<mode>): Rewrite without unspec.
6549 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
6550 (*arm_subdi3): Likewise.
6551 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
6552 No_op attribute to disable assembly output checks.
6553 * config/arm/arm_neon.h: Regenerated.
6554 * doc/arm-neon-intrinsics.texi: Regenerated.
6556 2010-07-02 Jan Hubicka <jh@suse.cz>
6558 * ipa-split.c (split_function): For aggregate values, set the return
6559 slot optimization bit. When passing DECL_BY_REFERENCE, produce
6560 *<retval> = fncall.part ().
6561 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
6563 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
6565 * config/arm/neon.md (UNSPEC_VAND): Delete.
6566 (UNSPEC_VBIC): Delete.
6567 (UNSPEC_VCLZ): Delete.
6568 (UNSPEC_VCNT): Delete.
6569 (UNSPEC_VEOR): Delete.
6570 (UNSPEC_VORN): Delete.
6571 (UNSPEC_VORR): Delete.
6572 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
6574 (anddi3_neon): Likewise.
6575 (orndi3_neon): Likewise.
6576 (bicdi3_neon): Likewise.
6577 (xordi3_neon): Likewise.
6578 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
6579 rid of unspec and handle unused operand.
6580 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
6581 * config/arm/predicates.md (imm_for_neon_logic_operand):
6582 Require TARGET_NEON.
6583 (imm_for_neon_inv_logic_operand): Likewise.
6584 * config/arm/arm.md (define_split for logical_binary_operator):
6585 Disable for NEON registers.
6586 (anddi3): Add new define_expand, and rename the insn. Disable
6587 this insn for NEON, where anddi3_neon now applies.
6588 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
6589 (iordi3): As for anddi3.
6591 * config/arm/neon.ml (Vand): Split DImode variants and mark them
6592 as No_op to disable testing for exact instruction match.
6597 * config/arm/arm_neon.h: Regenerated.
6598 * doc/arm-neon-intrinsics.texi: Regenerated.
6600 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
6602 * expr.h (emit_stack_probe): Declare.
6603 * explow.c (emit_stack_probe): Make global.
6604 (anti_adjust_stack_and_probe): Fix comments.
6605 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
6606 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6607 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6608 * config/sparc/sparc.c: Include except.h.
6609 (sparc_emit_probe_stack_range): New function.
6610 (output_probe_stack_range): Likewise.
6611 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
6612 built-in stack checking is enabled.
6613 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
6614 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
6615 (probe_stack_range): New insn.
6617 2010-07-02 Richard Guenther <rguenther@suse.de>
6620 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
6621 for argument alignment.
6623 2010-07-02 Jan Hubicka <jh@suse.cz>
6625 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
6626 walk backwards from entry_bb to check only those basic block of header
6627 that might lead to execution of split part.
6628 (consider_split) ... here.
6629 (find_return_bb): Allow assignment in return BB.
6631 (split_function): Fix name of cloned function; take care of updating
6632 return value in return_bb containing move.
6634 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
6637 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
6640 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
6642 * implicit-zee.c (combine_reaching_defs): Fix long lines.
6643 (is_set_with_extension_DI): Delete.
6644 (struct zero_extend_info): New structure.
6645 (add_removable_zero_extend): New function.
6646 (find_removable_zero_extends): Use note_stores to find SETs.
6647 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
6649 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
6651 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
6652 is_miss_rate_acceptable. Pull total_positions computation
6653 out of the loops. Early return if miss_positions exceeds
6654 the acceptable threshold.
6655 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
6656 is_miss_rate_acceptable after renaming of compute_miss_rate.
6658 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
6661 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
6662 of 1000) for miss rate if the address diference is greater than or
6663 equal to the cache line size (the two reference will never hit the
6666 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
6669 * config/arm/arm-modes.def (CC_NOTB): New mode.
6670 * config/arm/arm.c (get_arm_condition_code): Handle it.
6671 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
6672 * config/arm/arm.md (subsi3_compare0_c): New pattern.
6673 (compare_scc): Now a define_and_split. Add a number of extra
6674 splitters before it.
6677 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
6679 (arm_rtx_costs_1): Likewise.
6680 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
6681 * config/arm/arm.md (is_arch6): New attribute.
6682 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
6683 extendqisi2): Tighten the code somewhat, avoiding invalid
6684 RTL to occur in the expander patterns.
6685 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
6686 (thumb1_zero_extendhisi2_v6): Delete.
6687 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
6688 (thumb1_extendhisi2_v6): Delete.
6689 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
6690 (thumb1_extendqisi2_v6): Delete.
6691 (zero_extendhisi2 for register input splitter): New.
6692 (zero_extendqisi2 for register input splitter): New.
6693 (thumb1_extendhisi2 for register input splitter): New.
6694 (extendhisi2 for register input splitter): New.
6695 (extendqisi2 for register input splitter): New.
6696 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
6697 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
6698 and add support for a register alternative requiring a split.
6699 (thumb1_zero_extendqisi2): Likewise.
6700 (arm_zero_extendqisi2): Likewise.
6701 (arm_extendhisi2): Likewise.
6702 (arm_extendqisi2): Likewise.
6704 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
6706 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
6707 instead of an unspec.
6708 (neon_expand_vector_init): Likewise.
6709 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
6710 (UNSPEC_VDUP_LANE): Delete.
6711 (UNSPEC VDUP_N): Delete.
6712 (UNSPEC_VGET_HIGH): Delete.
6713 (UNSPEC_VGET_LANE): Delete.
6714 (UNSPEC_VGET_LOW): Delete.
6715 (UNSPEC_VMVN): Delete.
6716 (UNSPEC_VSET_LANE): Delete.
6717 (V_double_vector_mode): New.
6718 (vec_set<mode>_internal): Make code emitted match that for the
6719 corresponding intrinsics.
6720 (vec_setv2di_internal): Likewise.
6721 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
6722 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
6723 (neon_vset_lane<mode>): Combine double and quad patterns and
6724 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
6725 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
6726 (neon_vdup_n<mode>): Rewrite RTL without unspec.
6727 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
6728 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
6729 with neon_vdup_lanev2di, adjusting the pattern from the latter
6730 to be predicable for consistency.
6731 (neon_vdup_lane<mode>_internal): New.
6732 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
6733 to avoid using an unspec.
6734 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
6735 (neon_vdup_lanev2di): Turn into a define_expand.
6736 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
6737 (neon_vget_high<mode>): Replace with....
6738 (neon_vget_highv16qi): New pattern using canonical RTL.
6739 (neon_vget_highv8hi): Likewise.
6740 (neon_vget_highv4si): Likewise.
6741 (neon_vget_highv4sf): Likewise.
6742 (neon_vget_highv2di): Likewise.
6743 (neon_vget_low<mode>): Replace with....
6744 (neon_vget_lowv16qi): New pattern using canonical RTL.
6745 (neon_vget_lowv8hi): Likewise.
6746 (neon_vget_lowv4si): Likewise.
6747 (neon_vget_lowv4sf): Likewise.
6748 (neon_vget_lowv2di): Likewise.
6750 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
6751 test for this emitting vmov.
6752 (Vset_lane): Likewise.
6756 * doc/arm-neon-intrinsics.texi: Regenerated.
6758 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
6760 * config/arm/neon.md (vec_extractv2di): Correct error in register
6761 numbering to reconcile with neon_vget_lanev2di.
6763 2010-07-02 Richard Guenther <rguenther@suse.de>
6765 * tree-ssa-structalias.c (pt_solution_set_var): New function.
6766 * tree-ssa-alias.h (pt_solution_set_var): Declare.
6767 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
6768 points-to information.
6770 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
6772 * config/s390/s390.c (override_options): Adopt prefetching
6773 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
6775 2010-07-02 Jan Hubicka <jh@suse.cz>
6777 * df-problems.c (df_kill_notes): Do not collect dead notes.
6778 (df_set_note): Just call add_reg_note.
6779 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
6780 df_create_unused_note): Do not deal with lists of old notes.
6781 (df_note_bb_compute): Likewise.
6783 2010-07-02 Richard Guenther <rguenther@suse.de>
6785 * tree-ssa-structalias.c (find_func_aliases): Handle
6786 pointer alignment via BIT_AND_EXPR.
6787 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
6789 2010-07-02 Richard Guenther <rguenther@suse.de>
6791 * tree-data-ref.c (initialize_data_dependence_relation): Handle
6792 mismatching number of dimensions properly.
6794 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6797 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
6798 (lo_sum (high ...) ...) patterns generated by earlier passes.
6800 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6802 * doc/install.texi (Prerequisites): Document Perl requirement on
6804 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
6806 2010-07-02 Richard Guenther <rguenther@suse.de>
6809 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
6811 2010-07-02 Jan Hubicka <jh@suse.cz>
6814 * predict.c (predict_paths_for_bb): Handle case when control dependence
6815 BB has only abnormal edges.
6817 2010-07-02 Richard Guenther <rguenther@suse.de>
6819 PR tree-optimization/44748
6820 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
6821 the embedded conversion in MEM_REFs.
6823 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
6825 * reload.c: Include toplev.h.
6826 * recog.c: Likewise.
6827 * Makefile.in: Adjust dependencies.
6829 2010-07-01 Jakub Jelinek <jakub@redhat.com>
6832 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
6833 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
6835 2010-07-01 Richard Guenther <rguenther@suse.de>
6837 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
6840 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
6843 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
6846 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
6849 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
6850 Make sure operand 0 dies.
6852 2010-07-01 Richard Guenther <rguenther@suse.de>
6856 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
6857 * doc/generic.texi (References to storage): Document MEM_REF.
6858 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
6859 (print_call_name): Likewise.
6860 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
6861 (build_simple_mem_ref_loc): New function.
6862 (mem_ref_offset): Likewise.
6863 * tree.h (build_simple_mem_ref_loc): Declare.
6864 (build_simple_mem_ref): Define.
6865 (mem_ref_offset): Declare.
6866 * fold-const.c: Include tree-flow.h.
6867 (operand_equal_p): Handle MEM_REF.
6868 (build_fold_addr_expr_with_type_loc): Likewise.
6869 (fold_comparison): Likewise.
6870 (fold_unary_loc): Fold
6871 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
6872 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
6873 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
6874 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
6875 (ptr_deref_may_alias_ref_p_1): Likewise.
6876 (ao_ref_base_alias_set): Properly differentiate base object for
6878 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
6879 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
6880 (indirect_refs_may_alias_p): Likewise.
6881 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
6883 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
6884 (call_may_clobber_ref_p_1): Likewise.
6885 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
6886 * expr.c (expand_assignment): Handle MEM_REF.
6887 (store_expr): Handle MEM_REFs from STRING_CSTs.
6888 (store_field): If expanding a MEM_REF of a non-addressable
6889 decl use bitfield operations.
6890 (get_inner_reference): Handle MEM_REF.
6891 (expand_expr_addr_expr_1): Likewise.
6892 (expand_expr_real_1): Likewise.
6893 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
6894 * alias.c (ao_ref_from_mem): Handle MEM_REF.
6895 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
6896 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
6897 (dr_analyze_indices): Likewise.
6898 (dr_analyze_alias): Likewise.
6899 (object_address_invariant_in_loop_p): Likewise.
6900 * gimplify.c (mark_addressable): Handle MEM_REF.
6901 (gimplify_cond_expr): Build MEM_REFs.
6902 (gimplify_modify_expr_to_memcpy): Likewise.
6903 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
6904 (gimple_fold_indirect_ref): Adjust.
6905 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
6906 * tree.def (MEM_REF): New tree code.
6907 * tree-dfa.c: Include toplev.h.
6908 (get_ref_base_and_extent): Handle MEM_REF.
6909 (get_addr_base_and_unit_offset): New function.
6910 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
6911 * gimple-fold.c (may_propagate_address_into_dereference): Handle
6913 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
6914 accesses if the array has just one dimension. Remove always true
6915 parameter. Do not require type compatibility here.
6916 (maybe_fold_offset_to_component_ref): Remove.
6917 (maybe_fold_stmt_indirect): Remove.
6918 (maybe_fold_reference): Remove INDIRECT_REF handling.
6919 Fold back to non-MEM_REF.
6920 (maybe_fold_offset_to_address): Simplify. Deal with type
6922 (maybe_fold_reference): Likewise.
6923 (maybe_fold_stmt_addition): Likewise. Also handle
6924 &ARRAY + I in addition to &ARRAY[0] + I.
6925 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
6926 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
6927 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
6928 * tree-ssa.c (useless_type_conversion_p): Make most pointer
6929 conversions useless.
6930 (warn_uninitialized_var): Handle MEM_REF.
6931 (maybe_rewrite_mem_ref_base): New function.
6932 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
6934 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
6935 INDIRECT_REF handling.
6936 (copy_tree_body_r): Handle MEM_REF.
6937 * gimple.c (is_gimple_addressable): Adjust.
6938 (is_gimple_address): Likewise.
6939 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
6940 invariant base are invariant.
6941 (is_gimple_min_lval): Adjust.
6942 (is_gimple_mem_ref_addr): New function.
6943 (get_base_address): Handle MEM_REF.
6944 (count_ptr_derefs): Likewise.
6945 (get_base_loadstore): Likewise.
6946 * gimple.h (is_gimple_mem_ref_addr): Declare.
6947 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
6948 * tree-cfg.c (verify_address): New function, split out from ...
6949 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
6950 the address operand of MEM_REFs. Verify MEM_REFs. Reject
6952 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
6953 INDIRECT_REF. Allow conversions.
6954 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
6955 a register does not change its size.
6956 (verify_types_in_gimple_reference): Verify MEM_REF.
6957 (verify_gimple_assign_single): Disallow INDIRECT_REF.
6959 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
6961 (mark_address_taken): Handle MEM_REF.
6962 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
6963 (get_asm_expr_operands): Pass opf_not_non_addressable.
6964 (get_expr_operands): Handle opf_[not_]non_addressable.
6965 Handle MEM_REF. Remove INDIRECT_REF handling.
6966 * tree-vrp.c (check_array_ref): Handle MEM_REF.
6967 (search_for_addr_array): Likewise.
6968 (check_array_bounds): Likewise.
6969 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
6970 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
6971 (ref_always_accessed_p): Likewise.
6972 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
6973 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
6975 * cgraphbuild.c (mark_load): Properly check for NULL result
6976 from get_base_address.
6977 (mark_store): Likewise.
6978 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
6979 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
6980 handling for MEM_REF.
6981 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
6982 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
6983 * builtins.c (stabilize_va_list_loc): Use the function ABI
6984 valist type if we couldn't canonicalize the argument type.
6985 Always dereference with the canonical va-list type.
6986 (maybe_emit_free_warning): Handle MEM_REF.
6987 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
6989 * builtins.c (fold_builtin_memory_op): Use ref-all types
6990 for all memcpy foldings.
6991 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
6992 (build_outer_var_ref): Likewise.
6993 (scan_omp_1_op): Likewise.
6994 (lower_rec_input_clauses): Likewise.
6995 (lower_lastprivate_clauses): Likewise.
6996 (lower_reduction_clauses): Likewise.
6997 (lower_copyprivate_clauses): Likewise.
6998 (expand_omp_atomic_pipeline): Likewise.
6999 (expand_omp_atomic_mutex): Likewise.
7000 (create_task_copyfn): Likewise.
7001 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
7002 Remove old union trick. Initialize constant offsets.
7003 (ao_ref_init_from_vn_reference): Likewise. Do not handle
7004 INDIRECT_REF. Init base_alias_set properly.
7005 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
7006 (vn_reference_fold_indirect): Adjust for MEM_REFs.
7007 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
7009 (may_insert): Remove.
7010 (visit_reference_op_load): Do not test may_insert.
7011 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
7012 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
7013 a field to store the constant offset this op applies.
7014 (run_scc_vn): Adjust prototype.
7015 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
7016 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
7017 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
7018 bother about volatile qualifiers on pointers.
7019 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
7020 * tree-ssa-loop-ivopts.c
7021 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
7022 (strip_offset_1): Likewise.
7023 (find_interesting_uses_address): Replace INDIRECT_REF handling with
7025 (get_computation_cost_at): Likewise.
7026 * ipa-pure-const.c (check_op): Handle MEM_REF.
7027 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
7028 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
7030 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
7031 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
7032 (eliminate_local_variables_1): Likewise.
7033 (create_call_for_reduction_1): Likewise.
7034 (create_loads_for_reductions): Likewise.
7035 (create_loads_and_stores_for_name): Likewise.
7036 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
7037 (ssa_accessed_in_tree): Handle MEM_REF.
7038 (ssa_accessed_in_assign_rhs): Likewise.
7039 (update_type_size): Likewise.
7040 (analyze_accesses_for_call_stmt): Likewise.
7041 (analyze_accesses_for_assign_stmt): Likewise.
7042 (transform_access_sites): Likewise.
7043 (transform_allocation_sites): Likewise.
7044 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
7045 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
7046 not handle INDIRECT_REF.
7047 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
7048 (cond_store_replacement): Likewise.
7049 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
7050 MEM_REF, no not handle INDIRECT_REFs.
7051 (insert_into_preds_of_block): Properly initialize avail.
7052 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
7053 for ARRAY_REFs. Properly handle reference lookups that
7054 require a bit re-interpretation.
7055 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
7056 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
7057 (build_ref_for_offset_1): Remove.
7058 (build_ref_for_offset): Build MEM_REFs.
7059 (gate_intra_sra): Disable for now.
7060 (sra_ipa_modify_expr): Handle MEM_REF.
7061 (ipa_early_sra_gate): Disable for now.
7062 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
7064 (disqualify_base_of_expr): Likewise.
7065 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
7067 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
7068 Use mem_ref_offset. Remove bogus folding.
7069 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
7070 (make_fancy_name_1): Add support for MEM_REF.
7071 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
7072 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
7073 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
7074 (compute_complex_ancestor_jump_func): Likewise.
7075 (ipa_analyze_virtual_call_uses): Likewise.
7076 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
7077 INDIRECT_REF folding with more generalized MEM_REF folding.
7078 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
7079 (forward_propagate_addr_into_variable_array_index): Also handle
7080 &ARRAY + I in addition to &ARRAY[0] + I.
7081 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
7082 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
7083 creates assignments with overlap.
7084 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
7085 (get_frame_field): Likewise.
7086 (get_nonlocal_debug_decl): Likewise.
7087 (convert_nonlocal_reference_op): Likewise.
7088 (struct nesting_info): Add mem_refs pointer-set.
7089 (create_nesting_tree): Allocate it.
7090 (convert_local_reference_op): Insert to be folded mem-refs.
7091 (fold_mem_refs): New function.
7092 (finalize_nesting_tree_1): Perform defered folding of mem-refs
7093 (free_nesting_tree): Free the pointer-set.
7094 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
7095 (vectorizable_load): Likewise.
7096 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
7097 (propagate_with_phi): Likewise.
7098 * tree-object-size.c (addr_object_size): Handle MEM_REFs
7099 instead of INDIRECT_REFs.
7100 (compute_object_offset): Handle MEM_REF.
7101 (plus_stmt_object_size): Handle MEM_REF.
7102 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
7104 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
7105 (symbol_marked_for_renaming): Likewise.
7106 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
7107 (fold-const.o): Add $(TREE_FLOW_H).
7108 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
7109 (find_func_clobbers): Likewise.
7110 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
7111 (decompose_access): Likewise.
7112 (replace_field_acc): Likewise.
7113 (replace_field_access_stmt): Likewise.
7114 (insert_new_var_in_stmt): Likewise.
7115 (get_stmt_accesses): Likewise.
7116 (reorg_structs_drive): Disable.
7117 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
7118 (ix86_canonical_va_list_type): Likewise.
7120 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
7123 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
7124 * target.def (struct gcc_target): Replace enum reg_class with
7125 reg_class_t in hook argument / return types.
7126 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
7127 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
7128 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
7129 * targhooks.h (default_branch_target_register_class): Likewise.
7130 (default_ira_cover_classes, default_secondary_reload): Likewise.
7131 (default_memory_move_cost, default_register_move_cost): Likewise.
7132 * targhooks.c (default_branch_target_register_class): Likewise.
7133 (default_ira_cover_classes, default_secondary_reload): Likewise.
7134 (default_memory_move_cost, default_register_move_cost): Likewise.
7135 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
7136 * bt-load.c (branch_target_load_optimize): Likewise.
7137 * ira.c (setup_cover_and_important_classes): Likewise.
7138 * ira-costs.c (copy_cost): Likewise.
7139 * reload1.c (emit_input_reload_insns): Likewise.
7140 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
7141 * config/frv/frv.c (frv_secondary_reload): Likewise.
7142 * config/s390/s390.c (s390_secondary_reload): Likewise.
7143 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
7144 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
7145 (ix86_register_move_cost): Likewise.
7146 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
7147 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
7148 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
7149 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
7150 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
7151 (rs6000_ira_cover_classes): Likewise.
7152 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
7153 * config/picochip/picochip-protos.h (picochip_secondary_reload):
7155 * config/pa/pa.c (pa_secondary_reload): Likewise.
7156 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
7157 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
7158 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
7159 * doc/tm.texi: Regenerate.
7161 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
7164 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
7166 (build_alias_set_optimal_p): Likewise.
7167 (build_base_obj_set_for_drs): Likewise.
7169 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
7171 * target.def: Remove comment about licensing problems of function
7174 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
7175 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
7176 * doc/tm.texi: Regenerate.
7178 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
7179 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
7181 * target.def (enum_va_list_p): Use DEFHOOK.
7182 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
7183 Rename ptype to ptree.
7184 * doc/tm.texi: Regenerate.
7186 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
7187 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
7188 * doc/tm.texi: Regenerate.
7190 * target.def (memory_move_cost): Use DEFHOOK.
7191 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
7192 Rename regclass AKA class to rclass.
7193 * doc/tm.texi: Regenerate.
7195 * target.def (pragma_parse): Use DEFHOOK.
7196 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
7197 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
7198 * doc/tm.texi: Regenerate.
7200 * target.def (pass_by_reference): Use DEFHOOK.
7201 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
7202 * doc/tm.texi: Regenerate.
7204 * target.def (resolve_overloaded_builtin): Rename params to arglist.
7206 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
7207 * doc/tm.texi: Regenerate.
7209 * target.def (return_pops_args): Use DEFHOOK.
7210 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
7211 Rename stack-size to size.
7212 * doc/tm.texi: Regenerate.
7214 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
7215 last-sched_cycle to last_clock, cur_cycle to clock.
7216 * doc/tm.texi.in: Use @hook.
7217 * doc/tm.texi: Regenerate.
7219 * target.def (print_operand, print_operand_address): Update comment.
7220 (print_operand_punct_valid_p): Likewise.
7222 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7224 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
7226 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
7227 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
7229 * regrename.c: Do not include toplev.h. Include rtl-error.h.
7230 * rtl-error.c: Likewise.
7231 * reload.c: Likewise.
7232 * recog.c: Likewise.
7233 * sel-sched.c: Likewise.
7234 * function.c: Likewise.
7235 * reg-stack.c: Likewise.
7236 * cfgrtl.c: Likewise.
7237 * reload1.c: Likewise.
7238 * final.c: Include rtl-error.
7239 * Makefile.in: Adjust dependencies.
7241 2010-06-30 Jan Hubicka <jh@suse.cz>
7243 PR middle-end/PR44706
7244 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
7245 to return the value.
7247 2010-06-30 Michael Matz <matz@suse.de>
7250 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
7251 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
7252 a gimple reg, attach the original VDEF to the last store in the
7255 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
7258 * config/darwin.c (darwin_override_options): Use renamed
7259 targetm.asm_out.emit_unwind_label.
7261 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
7263 PR tree-optimization/39799
7264 * tree-inline.c (remap_ssa_name): Initialize variable only if
7265 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
7267 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
7269 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
7271 2010-06-30 Richard Guenther <rguenther@suse.de>
7274 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
7275 against oscillation with reverse peephole2.
7277 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
7280 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7283 2010-06-30 Nick Clifton <nickc@redhat.com>
7285 * config/rx/rx-modes.def: New file.
7286 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
7287 (CC_REGNUM): Define.
7288 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
7290 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
7291 (SELECT_CC_MODE): Define.
7292 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
7293 (reg:CC CC_REG) instead of (cc0).
7294 (attr "cc"): Delete.
7295 (cbranchsi4): Do not split compare and branch here. Instead move
7297 (cbranchsi4_<code>): ... here. New patterns.
7298 (cmpsi): Call rx-compare_redundant to find out if it is necessary
7299 to emit the compare instruction.
7300 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
7302 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
7303 FIRST_PSEUDO_REGNUM.
7304 (rx_expand_prologue, rx_expand_epilogue): Likewise.
7305 (rx_notice_update_cc): Delete.
7306 (rx_cc_modes_compatible): New function.
7307 (flags_needed_for_conditional): New function.
7308 (flags_from_mode): New function.
7309 (rx_compare_redundant): New function - scans backwards through
7310 insn list to find out if condition flags are already set correctly.
7311 (TARGET_CC_MODES_COMPATIBLE): Define.
7312 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
7314 * config/rx/rx.h (BRANCH_COST): Define.
7315 (REGISTER_MOVE_COST): Define.
7316 * config/rx/predicates (rx_source_operand): Allow all constant types.
7317 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
7318 (tstsi4): New pattern.
7319 * config/rx/rx.c (rx_memory_move_cost): Define.
7320 (TARGET_MEMORY_MOVE_COST): Define.
7322 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7324 * tree.h (block_may_fallthru): Declare here.
7325 * tree-flow.h (block_may_fallthru): Do not declare here.
7326 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
7328 * Makefile.in (c-typeck.o): Update dependencies.
7330 2010-06-30 Jakub Jelinek <jakub@redhat.com>
7333 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
7334 * cselib.c (cfa_base_preserved_regno): New static variable.
7335 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
7336 of REGNO (cfa_base_preserved_val->locs->loc).
7337 (cselib_preserve_cfa_base_value): Add regno argument, set
7338 cfa_base_preserved_regno to it.
7339 (cselib_invalidate_regno): Allow removal of registers other than
7340 cfa_base_preserved_regno from cfa_base_preserved_val.
7341 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
7342 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
7343 of MEM addresses, if not on LHS.
7344 (reverse_op): Don't add reverse ops for cfa_base_rtx.
7345 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
7347 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
7349 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
7351 (peep2_buf_position): New static function.
7352 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
7353 peephole2_optimize): Use it.
7354 (peep2_attempt, peep2_update_life): New static functions, broken out
7355 of peephole2_optimize.
7356 (peep2_fill_buffer): New static function.
7357 (peephole2_optimize): Change the main loop to try to fill the buffer
7358 with the maximum number of insns before matching them against
7359 peepholes. Use a forward scan. Remove special case for targets with
7360 conditional execution.
7361 * genrecog.c (change_state): Delete dead code.
7362 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7363 Rewrite so as not to expect the second insn to have had a peephole
7366 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
7368 * genhooks.c (emit_findices): Cast field precision to int.
7369 (emit_documentation): Likewise.
7371 2010-06-29 Jakub Jelinek <jakub@redhat.com>
7373 PR tree-optimization/43801
7374 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
7375 if old_decl was DECL_ONE_ONLY.
7378 * dwarf2out.c (add_accessibility_attribute): New function.
7379 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
7380 instead of adding DW_AT_accessibility manually.
7381 (gen_enumeration_type_die, gen_struct_or_union_type_die,
7382 gen_typedef_die): Use it.
7384 2010-06-29 Douglas B Rupp <rupp@gnat.com>
7386 * vmsdbgout.c (full_name): Just output the file name if not native.
7388 2010-06-29 Douglas B Rupp <rupp@gnat.com>
7390 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
7391 (funcnam_table): New static table.
7392 (funcnum_table): New static table.
7393 (write_rtnbeg): Write value saved in funcnum_table.
7394 (write_rtnend): Write value saved in funcnum_table.
7395 (vmsdbgout_begin_function): Save current function info in
7396 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
7397 (vmsdbgout_finish): Iterate over funcnum_table.
7399 2010-06-29 Douglas B Rupp <rupp@gnat.com>
7401 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
7402 (vmsdbgout_type_decl): Declare
7403 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
7404 (FUNC_EPILOGUE_LABEL): New macro
7405 (vmsdbgout_begin_epilogue): New function.
7406 (vmsdbgout_type_decl): New function.
7408 2010-06-29 Douglas B Rupp <rupp@gnat.com>
7410 * vmsdbg.h: Update copyright.
7412 2010-06-29 Douglas B Rupp <rupp@gnat.com>
7414 * vmsdbg.h (DST_K_TBG): New DST constant.
7415 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
7416 (write_modbeg): Cast module_language to avoid warning.
7417 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
7419 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
7422 * target.def, doc/tm.texi.in, genhooks.c: New files.
7423 * target.h: Instead of defining individual hook members,
7424 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
7426 * target-def.h: Instead of defining individual hook initializers,
7427 include target-hooks-def.h.
7428 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
7429 targetm.live_on_entry -> targetm.extra_live_on_entry
7430 targetm.sched.md_finish ->targetm.sched.finish
7431 targetm.sched.md_init -> targetm.sched.init
7432 targetm.sched.md_init_global -> targetm.sched.init_global
7433 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
7434 targetm.asm_out.except_table_label ->
7435 targetm.asm_out.emit_except_table_label
7436 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
7437 targetm.target_help -> targetm.help
7438 targetm.vectorize.builtin_support_vector_misalignment ->
7439 targetm.vectorize.support_vector_misalignment
7440 targetm.file_start_app_off -> targetm.asm_file_start_app_off
7441 targetm.file_start_file_directive ->
7442 targetm.asm_file_start_file_directive
7443 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
7444 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
7445 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
7446 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
7447 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
7448 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
7449 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
7450 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
7451 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
7452 * Makefile.in (TARGET_H): Depend on target.def.
7453 (TARGET_DEF_H): Depend on target-hooks-def.h.
7454 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
7455 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
7456 * doc/tm.texi: Regenerate.
7458 * Makefile.in (s-tm-texi): Remove stray tab / rule.
7460 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
7461 (targetm.sched.init): Likewise.
7463 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
7466 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
7467 (function_arg_advance_32): Const-ify TYPE parameter.
7468 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
7469 (ix86_function_arg_advance): Change type of NAMED to bool.
7470 (function_arg_32): Const-ify CUM and TYPE parameters.
7471 (function_arg_64): Likewise. Change type of NAMED to bool.
7472 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
7474 (ix86_function_arg): Change type of NAMED to bool.
7475 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
7476 last argument as a bool.
7478 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
7480 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
7481 (OVERRIDE_OPTIONS): Add note of obsolescence.
7482 Replace references with references to TARGET_OPTION_OVERRIDE.
7483 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
7485 * targhooks.c (default_target_option_override): New function.
7486 * targhooks.h (default_target_option_override): Declare.
7487 * target.h (struct gcc_target): Add override member to
7488 target_option member.
7489 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
7490 targetm.target_option.override call.
7491 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
7492 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
7494 2010-06-29 Jan Hubicka <jh@suse.cz>
7496 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
7498 2010-06-29 Jan Hubicka <jh@suse.cz>
7500 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
7502 (rebuild_frequencies): New function.
7503 * predict.h (rebuild_frequencies): Declare.
7504 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
7505 entry block and edge reaching new_entry.
7506 (tree_function_versioning): When doing partial cloning, rebuild
7507 frequencies when done.
7508 * passes.c (execute_function_todo): Use rebild_frequencies.
7510 2010-06-29 Richard Guenther <rguenther@suse.de>
7512 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
7513 * tree-flow.h (enum noalias_state): Remove.
7514 (struct var_ann_d): Remove noalias_state member.
7516 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
7519 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
7520 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
7521 (maddhidi4): Likewise.
7523 Revert parts of the change for PR25130.
7524 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
7527 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
7529 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
7530 targetm.calls.function_incoming_arg, and
7531 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
7532 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
7533 * target.h (struct gcc_target): Add function_arg_advance,
7534 function_arg, and function_incoming_arg fields.
7535 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
7536 (TARGET_FUNCTION_INCOMING_ARG): Define.
7537 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
7538 and TARGET_FUNCTION_INCOMING_ARG.
7539 * targhooks.h (default_function_arg_advance): Declare.
7540 (default_function_arg, default_function_incoming_arg): Declare.
7541 * targhooks.c (default_function_arg_advance): New function.
7542 (default_function_arg, default_function_incoming_arg): New function.
7543 * config/i386/i386.c (function_arg_advance): Rename to...
7544 (ix86_function_arg_advance): ...this. Make static.
7545 (function_arg): Rename to...
7546 (ix86_function_arg): ...this. Make static.
7547 (TARGET_FUNCTION_ARG_ADVANCE): Define.
7548 (TARGET_FUNCTION_ARG): Define.
7549 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
7550 (FUNCTION_ARG): Delete.
7551 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
7552 (function_arg): Delete prototype.
7554 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
7556 * reginfo.c (init_reg_sets_1): Adjust comments.
7557 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
7558 * calls.c (prepare_call_address): Likewise.
7559 (emit_call_1): Use targetm.calls.return_pops_args.
7560 (expand_call): Likewise.
7561 * function.c (assign_parms): Likewise.
7562 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
7563 * target.h (struct gcc_target) [struct calls]: Add
7564 return_pops_args field.
7565 * targhooks.h (default_return_pops_args): Declare.
7566 * targhooks.c (default_return_pops_args): Define.
7567 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
7568 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
7569 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
7570 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
7572 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
7573 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
7574 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
7575 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
7576 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
7577 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
7578 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
7579 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
7580 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
7581 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
7582 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
7583 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
7584 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
7585 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
7586 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
7587 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
7588 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
7589 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
7590 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
7591 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
7592 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
7593 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
7594 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
7595 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
7596 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
7597 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
7598 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
7599 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
7600 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
7601 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
7602 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
7603 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
7604 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
7605 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
7606 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
7607 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
7608 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
7609 * config/i386/i386.c (ix86_return_pops_args): Make static.
7611 (TARGET_RETURN_POPS_ARGS): Define.
7612 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
7613 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
7614 (TARGET_RETURN_POPS_ARGS): Define.
7615 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
7616 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
7617 (TARGET_RETURN_POPS_ARGS): Define.
7619 2010-06-29 Richard Guenther <rguenther@suse.de>
7622 * tree-inline.c (initialize_inlined_parameters): Make sure
7623 to remap the inlined parameter variable substitutions types.
7625 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
7627 PR rtl-optimization/44659
7628 * combine.c (make_compound_operation) <SUBREG>: Do not return the
7629 result of force_to_mode if it partially re-expanded the compound.
7631 2010-06-28 Jan Hubicka <jh@suse.cz>
7634 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
7637 2010-06-28 Anatoly Sokolov <aesok@post.ru>
7639 * double-int.h (force_fit_type_double): Remove declaration.
7640 * double-int.c (force_fit_type_double): Move to tree.c.
7641 * tree.h (force_fit_type_double): Declare.
7642 * tree.h (force_fit_type_double): Moved from double-int.c. Use
7643 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
7644 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
7645 * convert.c (convert_to_pointer): Adjust call to
7646 force_fit_type_double.
7647 * tree-vrp.c (extract_range_from_assert,
7648 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
7649 * fold-const.c: Update comment.
7650 (int_const_binop, fold_convert_const_int_from_int,
7651 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
7652 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
7653 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
7654 round_up_loc): Adjust call to force_fit_type_double.
7656 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
7658 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
7660 2010-06-28 Martin Jambor <mjambor@suse.cz>
7662 * tree-sra.c (convert_callers): New parameter, change fndecls of
7664 (modify_function): Pass the old decl to convert_callers.
7666 2010-06-28 Martin Jambor <mjambor@suse.cz>
7668 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
7669 ipa_check_create_node_params and ipa_initialize_node_params with
7670 checking asserts they are not necessary.
7672 2010-06-28 Jan Hubicka <jh@suse.cz>
7674 PR tree-optimization/44687
7675 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
7677 2010-06-28 Martin Jambor <mjambor@suse.cz>
7680 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
7681 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
7682 instead of BINFO_BASE_BINFO.
7684 2010-06-28 Michael Matz <matz@suse.de>
7687 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
7688 proper VDEF chain for intermediate stores in the sequence.
7690 2010-06-28 Jan Hubicka <jh@suse.cz>
7692 PR tree-optimization/44357
7693 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
7694 uninlinable functions.
7696 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
7698 * config.gcc (powerpc*-*-*): Handle titan.
7699 * config/rs6000/rs6000.c (titan_cost): New costs.
7700 (rs6000_override_options): Add "titan" to processor_target_table.
7701 Add Titan to branch alignment logic.
7702 Correctly set rs6000_cost for titan.
7703 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
7704 * config/rs6000/titan.md: New file.
7705 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
7707 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
7709 * tree-browser.c (TB_history_stack): Convert to a VEC.
7710 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
7711 (TB_history_prev): Likewise.
7713 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
7715 * vec.h (vec_heap_free): Add parentheses around free.
7717 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
7719 * system.h: Poison GCC_EXCEPT_H for front-end files.
7721 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
7723 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
7724 Define to NULL by default.
7725 * except.h: Define GCC_EXCEPT_H.
7726 (doing_eh): Remove prototype.
7727 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
7728 (lang_protect_cleanup_actions): Remove.
7729 * except.c (lang_protect_cleanup_actions): Remove.
7731 (gen_eh_region): Don't check doing_eh here.
7732 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
7733 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
7734 instead of lang_protect_cleanup_actions.
7735 * omp-low.c (maybe_catch_exception): Likewise.
7736 * Makefile.in: Update dependencies.
7738 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
7740 * cgraph.h (struct varpool_node): new used_from_object_file flag.
7741 (struct cgraph_local_info): new used_from_object_file flag.
7742 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
7743 (cgraph_clone_node): initialize used_from_object_file.
7744 (cgraph_create_virtual_clone): initialize used_from_object_file.
7745 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
7746 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
7747 when compiling with -fwhole-program.
7748 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
7750 * ipa.c (function_and_variable_visibility): Set externally_visible
7751 flag of varpool_node if used_from_object_file flag is set.
7752 (cgraph_externally_visible_p): check used_from_object_file flag.
7753 * doc/invoke.texi (-fwhole-program option): Change description of
7754 externally_visible attribute accordingly.
7755 * doc/extend.texi (externally_visible): Ditto.
7757 2010-06-27 Jan Hubicka <jh@suse.cz>
7759 * params.def (max-inline-insns-auto): Default to 40.
7760 * doc/invoke.texi (max-inline-insns-auto): Document the change.
7762 2010-06-27 Jan Hubicka <jh@suse.cz>
7766 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
7768 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
7769 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
7771 2010-06-27 Anatoly Sokolov <aesok@post.ru>
7773 * target.h (struct gcc_target): Add register_move_cost field.
7774 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
7775 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
7776 * targhooks.c (default_register_move_cost): New function.
7777 * targhooks.h (default_register_move_cost): Declare function.
7778 * defaults.h (REGISTER_MOVE_COST): Delete.
7779 * ira-int.h (ira_register_move_cost): Update comment.
7780 * ira.c (ira_register_move_cost): Update comment.
7781 * reload.h (register_move_cost): Declare.
7782 * reginfo.c (register_move_cost): New function.
7783 (move_cost): Update comment.
7784 (init_move_cost, memory_move_secondary_cost): Replace
7785 REGISTER_MOVE_COST with register_move_cost.
7786 * postreload.c (reload_cse_simplify_set): (Ditto.).
7787 * reload.c (find_valid_class, find_reloads): (Ditto.).
7788 * reload1.c (choose_reload_regs): (Ditto.).
7789 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
7790 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
7791 * doc/md.texi (can_create_pseudo_p): Update documentation.
7793 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
7794 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
7795 * config/i386/i386.h (ix86_memory_move_cost): Make static.
7796 (TARGET_MEMORY_MOVE_COST): Define.
7798 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
7799 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
7800 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
7801 (TARGET_MEMORY_MOVE_COST): Define.
7803 2010-06-27 Richard Guenther <rguenther@suse.de>
7805 PR tree-optimization/44683
7806 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
7807 false edge from the inverted condition.
7809 2010-06-27 Richard Guenther <rguenther@suse.de>
7812 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
7813 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
7814 for register LHS. Or non-store assignments.
7816 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
7818 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
7819 (sparc_emit_set_const64): Likewise. Remove disabled code.
7820 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
7821 (sparc_emit_set_const64): Likewise.
7823 2010-06-26 Catherine Moore <clm@codesourcery.com>
7825 * config/mips/mips.md (alu_type): New attribute.
7826 (type): Infer type from alu_type.
7827 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
7828 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
7829 *subsi3_extended, negsi2, negdi2, *low<mode>,
7830 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
7831 xor<mode>3, *nor<mode>3,
7832 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
7833 *zero_extendhi_truncqi): Set alu_type instead of type.
7835 2010-06-26 Douglas B Rupp <rupp@gnat.com>
7837 * config/alpha/alpha.c (alpha_need_linkage): Adjust
7838 splay_tree_new_ggc call.
7839 (alpha_use_linkage): Likewise.
7841 2010-06-26 Joseph Myers <joseph@codesourcery.com>
7843 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
7844 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
7845 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
7846 (static_specs): Remove switches_need_spaces.
7847 (process_command, do_self_spec): Hardcode handling "-o" instead of
7848 checking switches_need_spaces.
7849 * system.h (SWITCHES_NEED_SPACES): Poison.
7851 2010-06-26 Richard Guenther <rguenther@suse.de>
7853 PR tree-optimization/44393
7854 * tree-loop-distribution.c (generate_loops_for_partition): Fix
7855 stmt removal and VOP renaming.
7856 (generate_memset_zero): Remove redundant stmt updating.
7857 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
7858 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
7860 2010-06-26 Jan Hubicka <jh@suse.cz>
7862 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
7863 edges comming from header are equivalent.
7864 (visit_bb): Handle PHIs correctly.
7865 * tree-inline.c (copy_phis_for_bb): Be able to copy
7866 PHI from entry edge.
7867 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
7869 2010-06-26 Richard Guenther <rguenther@suse.de>
7872 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
7873 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
7875 2010-06-26 Joseph Myers <joseph@codesourcery.com>
7877 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
7878 add_infile, alloc_switch): New.
7879 (process_command): Remove variable lang_n_infiles. Process
7880 options in a single pass. Use new functions for allocating
7881 infiles and switches arrays. Properly skip operands of
7882 -Xpreprocessor and -Xassembler.
7884 2010-06-26 Jan Hubicka <jh@suse.cz>
7887 * cgraphunit.c (cgraph_function_versioning): Remove wrong
7888 cgraph_make_decl_local call; fix typo copying RTL data.
7890 2010-06-25 DJ Delorie <dj@redhat.com>
7892 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
7893 (m32c_output_aligned_common): Likewise.
7894 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
7895 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
7896 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
7897 (m32c_register_pragmas): Register it.
7898 * config/m32c/m32c.c (m32c_get_pragma_address): New.
7899 (m32c_insert_attributes): Set #pragma address decls volatile.
7900 (pragma_entry_eq): New.
7901 (pragma_entry_hash): New.
7902 (m32c_note_pragma_address): New.
7903 (m32c_get_pragma_address): New.
7904 (m32c_output_aligned_common): New.
7905 * doc/extend.texi: Document the new pragma.
7907 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
7909 * config/m32c/predicates.md (m32c_any_operand): Check the code
7910 instead of memory_operand so as to allow matching volatile MEMs.
7911 (m32c_nonimmediate_operand): Likewise.
7912 (mra_operand): Allow volatiles.
7914 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
7917 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
7918 address if the offset is unknown.
7920 2010-06-25 Douglas B Rupp <rupp@gnat.com>
7922 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
7923 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
7924 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
7925 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
7926 to ia64_start_function. Invoke it.
7927 * config/ia64/ia64.c (ia64_start_function): Call new function
7928 dwarf2out_vms_debug_main_pointer.
7930 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
7932 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
7933 statements computing the true predicate.
7935 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
7937 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
7938 to boolean_true_node.
7939 (reset_bb_predicate): New.
7940 (predicate_bbs): Call reset_bb_predicate.
7942 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
7944 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
7945 (tree_if_conversion): Returns true when something has been changed.
7946 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
7949 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
7951 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
7952 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
7953 * tree-if-conv.c: Include dbgcnt.h.
7954 (tree_if_conversion): Use if_conversion_tree to count the number of
7955 if-convertible loops.
7957 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
7959 * common.opt (fprefetch-loop-arrays): Re-define
7960 -fprefetch-loop-arrays as a tri-state option with the initial
7962 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
7963 pass only when flag_prefetch_loop_arrays > 0.
7964 * toplev.c (process_options): Note that, with tri-states,
7965 flag_prefetch_loop_arrays>0 means prefetching is enabled.
7966 * config/i386/i386.c (override_options): Enable prefetching at -O3
7967 for a set of CPUs that sw prefetching is helpful.
7968 (software_prefetching_beneficial_p): New. Return TRUE if software
7969 prefetching is beneficial for the given CPU.
7971 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
7973 PR rtl-optimization/44326
7974 * implicit-zee.c (find_removable_zero_extends): Replace
7975 INSN_P with NONDEBUG_INSN_P.
7977 2010-06-25 Martin Jambor <mjambor@suse.cz>
7979 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
7980 (struct ipa_node_params): Removed the modification_analysis_done flag.
7981 (ipa_is_param_modified): Removed.
7982 (ipa_analyze_node): Declare.
7983 (ipa_compute_jump_functions): Remove declaration.
7984 (ipa_count_arguments): Likewise.
7985 (ipa_detect_param_modifications): Likewise.
7986 (ipa_analyze_params_uses): Likewise.
7987 * ipa-prop.c (struct param_analysis_info): New type.
7988 (visit_store_addr_for_mod_analysis): Removed.
7989 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
7990 moved down in the file.
7991 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
7992 (ipa_count_arguments): Made static.
7993 (mark_modified): New function.
7994 (is_parm_modified_before_call): New function.
7995 (compute_pass_through_member_ptrs): New parameter parms_info, call
7996 is_parm_modified_before_call instead of ipa_is_param_modified.
7997 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
7998 it to compute_pass_through_member_ptrs.
7999 (ipa_compute_jump_functions): New parameter parms_info, pass it to
8000 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
8001 on the callee if it is analyzed. Made static.
8002 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
8003 is_parm_modified_before_call instead of ipa_is_param_modified.
8004 (ipa_analyze_call_uses): New parameter parms_info, pass it to
8005 ipa_analyze_indirect_call_uses.
8006 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
8007 ipa_analyze_call_uses.
8008 (ipa_analyze_params_uses): New parameter parms_info, pass it to
8009 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
8010 (ipa_analyze_node): New function.
8011 (ipa_print_node_params): Do not dump the modified flag.
8012 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
8013 it. Do not stream the modified parameter flag.
8014 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
8015 it. Do not stream the modified parameter flag.
8016 * ipa-cp.c (ipcp_analyze_node): Removed.
8017 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
8018 with only a call to ipa_analyze_node.
8019 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
8020 node with only a call to ipa_analyze_node.
8022 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
8024 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
8026 2010-06-25 Jan Hubicka <jh@suse.cz>
8028 * tree-pass.h (pass_split_functions): Declare.
8029 * opts.c (decode_options): Enable function splitting at -O2
8030 * timevar.def (TV_IPA_FNSPLIT): New macro.
8031 * ipa-split.c: New file.
8032 * common.opt (-fpartial-inlining): New flag.
8033 * Makefile.in (ipa-split.o): New object file.
8034 * passes.c (init_optimization_passes): Add ipa-split.
8035 * params.def (partial-inlining-entry-probability): New parameters.
8036 * doc/invoke.texi (-fpartial-inlining): New.
8038 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
8041 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
8042 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
8043 (gimplify_expr): Likewise.
8045 2010-06-25 Martin Jambor <mjambor@suse.cz>
8047 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
8048 statements instead of bailing out on them.
8049 (ipa_analyze_indirect_call_uses): Do not require that loads from the
8050 parameter are in the same BB as the condition. Update comments.
8052 2010-06-25 Jakub Jelinek <jakub@redhat.com>
8055 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
8056 true or always false, return NULL_TREE.
8057 (tree_unswitch_single_loop): Optimize conditions even when reaching
8058 max-unswitch-level parameter. If num > 0, optimize first all conditions
8059 using entry checks, then do still reachable block discovery and consider
8060 only conditions in still reachable basic blocks in the loop.
8062 PR tree-optimization/44539
8063 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
8064 the call doesn't have LHS, but has VDEF.
8066 2010-06-25 Joseph Myers <joseph@codesourcery.com>
8068 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
8069 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
8070 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
8071 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
8072 * system.h (MODIFY_TARGET_NAME): Poison.
8074 2010-06-25 Alan Modra <amodra@gmail.com>
8076 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
8077 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
8078 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
8079 CMODEL_LARGE as default.
8080 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
8081 (offsettable_ok_by_alignment): Delete.
8082 (rs6000_emit_move): Remove mcmodel=medium optimization.
8084 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
8086 With large parts from Jim Wilson:
8088 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
8089 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
8090 * optabs.c (optab_for_tree_code): Likewise.
8091 (expand_widen_pattern_expr): Likewise.
8092 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
8093 out of execute_optimize_widening_mul.
8094 (convert_plusminus_to_widen): New function.
8095 (execute_optimize_widening_mul): Use the two new functions.
8096 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
8097 Remove code to generate widening multiply-accumulate. Add support
8098 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
8099 * gimple-pretty-print.c (dump_ternary_rhs): New function.
8100 (dump_gimple_assign): Call it when appropriate.
8101 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
8102 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
8103 (expand_gimple_stmt_1): Likewise.
8104 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
8105 WIDEN_MULT_MINUS_EXPR.
8106 * tree-ssa-operands.c (get_expr_operands): Likewise.
8107 * tree-inline.c (estimate_operator_cost): Likewise.
8108 * gimple.c (extract_ops_from_tree_1): Renamed from
8109 extract_ops_from_tree. Add new arg for a third operand; fill it.
8110 (gimple_build_assign_stat): Support operations with three operands.
8111 (gimple_build_assign_with_ops_stat): Likewise.
8112 (gimple_assign_set_rhs_from_tree): Likewise.
8113 (gimple_assign_set_rhs_with_ops_1): Renamed from
8114 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
8115 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
8116 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
8117 WIDEN_MULT_MINUS_EXPR.
8118 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
8119 (extract_ops_from_tree_1): Adjust declaration.
8120 (gimple_assign_set_rhs_with_ops_1): Likewise.
8121 (gimple_build_assign_with_ops): Pass NULL for last operand.
8122 (gimple_build_assign_with_ops3): New macro.
8123 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
8124 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
8126 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
8127 (verify_gimple_assign): Call it.
8128 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
8129 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
8130 functions for dealing with three-operand statements.
8131 * tree.c (commutative_ternary_tree_code): New function.
8132 * tree.h (commutative_ternary_tree_code): Declare it.
8133 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
8135 (gimple_assign_nonzero_warnv_p): Likewise.
8136 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
8137 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
8138 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
8139 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
8140 (struct hashtable_expr): New member ternary in the union.
8141 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
8142 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
8143 (iterative_hash_hashable_expr): Likewise.
8144 (print_expr_hash_elt): Handle EXPR_TERNARY.
8145 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
8146 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
8147 statements. Handle GIMPLE_TERNARY_RHS.
8149 2010-06-25 Jan Hubicka <jh@suse.cz>
8151 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
8153 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
8156 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
8157 parameters are not good.
8158 (c_parser_parameter_declaration): Error unknown type name if the type
8159 name can't start declaration specifiers.
8161 2010-06-25 Joseph Myers <joseph@codesourcery.com>
8163 * gcc.c (translate_options): Don't mention +e in comment.
8164 (process_command): Don't handle +e specially.
8166 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
8168 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
8170 * ira-build.c (merge_hard_reg_conflicts): New function.
8171 (create_cap_allocno, copy_info_to_removed_store_destinations,
8172 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
8173 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
8174 (remove_unnecessary_allocnos, remove_low_level_allocnos)
8175 copy_nifo_to_removed_store_destination): Use them.
8176 * ira-lives.c (make_hard_regno_born): New function, split out of
8178 (make_allocno_born): Likewise.
8179 (make_hard_regno_dead): New function, split out of make_regno_dead.
8180 (make_allocno_dead): Likewise.
8181 (inc_register_pressure): New function, split out of set_allocno_live.
8182 (dec_register_pressure): New function, split out of clear_allocno_live.
8183 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
8184 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
8185 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
8186 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
8187 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
8188 mark_pseudo_regno_live.
8189 (process_bb_node_lives): Use mark_pseudo_regno_live,
8190 make_hard_regno_born and make_allocno_dead.
8191 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
8192 set_allocno_live, clear_allocno_live): Delete functions.
8194 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
8195 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
8197 (ira_flattening): Use ira_parent_allocno.
8198 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
8199 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
8201 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
8204 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
8205 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
8206 minmax_set_iter_cond, minmax_set_iter_next,
8207 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
8208 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
8209 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
8210 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
8213 * ira-int.h (struct live_range, live_range_t): Renamed from struct
8214 ira_allocno_live_range and allocno_live_range_t; all uses changed.
8215 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
8218 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
8220 * thumb2.md (thumb2_tlobits_cbranch): Delete.
8221 (peephole2 to convert zero_extract/compare of single bit to
8222 lshift/compare): New.
8224 2010-06-24 Anatoly Sokolov <aesok@post.ru>
8226 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
8227 recursive call and call to 'int_const_binop'.
8228 (build_range_check, fold_cond_expr_with_comparison, unextend,
8229 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
8230 multiple_of_p): Adjust call to const_binop.
8232 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
8234 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
8235 determine size of XFmode operand.
8236 (XFmode extended DFmode push splitter): Ditto.
8237 (XFmode extended SFmode push splitter): Ditto.
8239 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
8242 * config/i386/i386.md (extract_code): New.
8243 (<u>divmodqi4): Likewise.
8244 (divmodhiqi3): Likewise.
8245 (udivmodhiqi3): Likewise.
8246 (<u>divqi3): Remvoved.
8248 2010-06-24 Jakub Jelinek <jakub@redhat.com>
8251 * recog.h (struct recog_data): Add is_asm field.
8252 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
8253 present in constraints of inline-asm operand and memory operand
8254 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
8255 (extract_insn): Initialize recog_data.is_asm.
8256 * doc/md.texi (Constraints): Document operand side-effect rules.
8258 2010-06-24 Andi Kleen <ak@linux.intel.com>
8260 * c-parser.c (c_parser_conditional_expression): Call
8261 warn_for_omitted_condop.
8262 * doc/invoke.texi: Document omitted condop warning.
8264 2010-06-24 Nick Clifton<nickc@redhat.com>
8266 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
8267 insn in the sequence is a jump insn before setting its label.
8269 2010-06-24 Alan Modra <amodra@gmail.com>
8271 * collect2.c (main): Match exactly --version and --help.
8273 2010-06-24 DJ Delorie <dj@redhat.com>
8275 * config/m32c/m32c-pragma.c: Don't include rtl.h.
8277 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
8279 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
8280 using X87MODEF mode iterator.
8281 (pushsf splitter): Macroize splitter using P mode iterator.
8282 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
8285 (*movxf_internal): Rename from *movxf_integer.
8286 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
8287 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
8288 (*movdf_internal): Rename from *movdf_integer.
8289 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
8290 (*movsf_internal): Rename from *movdf_1.
8292 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
8294 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
8295 (const_gimple_seq_node): Removed typedefs.
8297 * gimple.h (gimple_seq_node_d, gimple_seq_node)
8298 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
8300 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
8302 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
8303 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
8304 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
8305 and CODE_FOR_vec_extract_lo_v4df.
8307 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
8308 Changed to define_insn_and_split.
8309 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
8310 (vec_extract_lo_v16hi): Likewise.
8311 (vec_extract_lo_v32qi): Likewise.
8312 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
8313 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
8315 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
8318 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
8319 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
8320 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
8321 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
8322 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
8325 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
8328 * df-core.c (struct df): Rename to df_d.
8329 * df.h (struct df): Likewise.
8330 * dse.h (struct df): Remove forward declaration.
8331 * recog.h (struct insn_data): Rename to:
8332 (struct_insn_data_d). Adjusted all users.
8334 2010-06-23 Arnaud Charlet <charlet@adacore.com
8337 * doc/install.texi: Update requirements to build GNAT.
8339 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
8341 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
8343 (m68k_sched_attr_opx_type): Remove unreachable return.
8344 (m68k_sched_attr_opy_type): Likewise.
8345 (m68k_sched_attr_size): Likewise.
8346 (sched_get_opxy_mem_type): Likewise.
8347 (m68k_sched_attr_op_mem): Likewise.
8349 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
8351 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
8352 new statement and adjust VDEF only if necessary. Remove superfluous
8353 call to maybe_clean_or_replace_eh_stmt.
8354 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
8356 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
8357 * tree-inline.c (copy_bb): ...and not there.
8359 2010-06-22 Cary Coutant <ccoutant@google.com>
8361 * dwarf2out.c (is_nested_in_subprogram): New function.
8362 (should_move_die_to_comdat): Use it.
8363 (copy_ancestor_tree): Don't mark DIEs here.
8364 (copy_decls_walk): Start walk from root of newly-added tree;
8365 mark DIEs here instead.
8367 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
8369 * config/i386/i386.md (unit): Also check sseishft1.
8371 2010-06-22 Jan Hubicka <jh@suse.cz>
8373 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
8376 2010-06-22 Jan Hubicka <jh@suse.cz>
8378 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
8379 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
8380 Return true if something changed.
8381 * df.h (df_confluence_function_n): Return bool.
8382 * df-core.c (df_worklist_propagate_forward,
8383 df_worklist_propagate_backward): Track changes and ages.
8384 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
8386 * dse.c (dse_confluence_n): Return always true.
8388 2010-06-22 Jan Hubicka <jh@suse.cz>
8390 * bitmap.c (bitmap_clear_bit): Micro optimize.
8392 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
8394 * config/i386/i386.md (SWI1248x): New mode iterator.
8399 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
8400 SWI1248x mode iterator.
8401 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
8402 using SWI124 mode iterator.
8403 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
8405 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
8406 *pushdi2_prologue_rex64 using P mode iterator.
8407 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
8408 using SWI48 mode iterator.
8409 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
8410 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
8411 using SWI1248x mode iterator.
8412 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
8413 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
8414 SWI48 mode iterator.
8415 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
8417 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
8418 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
8419 SWI12 mode iterator.
8420 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
8421 SWI12 mode iterator.
8422 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
8423 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
8424 SWI24 mode iterator.
8425 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
8426 SWI48 mode iterator.
8427 (mov<mode>_insn_1): New expander.
8428 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
8429 using SWI48x mode iterator.
8431 (*movoi_internal_avx): Rename from *movoi_internal.
8432 (*movti_internal_rex64): Rename from *movti_rex64.
8433 (*movti_internal_sse): Rename from *movti_sse.
8434 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
8435 (*movdi_internal): Rename from *movdi_2.
8436 (*movsi_internal): Rename from *movsi_1.
8437 (*movhi_internal): Rename from *movhi_1.
8438 (*movqi_internal): Rename from *movqi_1.
8440 (insv): Update the call to gen_movsi_insv_1 for rename.
8441 * config/i386/i386.c (promote_duplicated_reg): Ditto.
8443 2010-06-22 Jan Hubicka <jh@suse.cz>
8445 * passes.c (execute_function_todo): Move call of statistics_fini_pass
8447 (execute_todo) ... this one.
8449 2010-06-22 Alan Modra <amodra@gmail.com>
8452 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
8453 * caller-save.c (insert_restore, insert_save): Use non-validate
8454 form of adjust_address.
8456 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8459 * config/pa/pa.c (override_options): Disable
8460 -freorder-blocks-and-partition.
8462 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
8465 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
8467 * config/i386/i386.md (type): Add sseishft1
8469 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
8470 (ppro_insn_load): Likewise.
8471 (ppro_insn_store): Likewise.
8472 (ppro_insn_both): Likewise.
8474 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
8475 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
8477 (*vec_extractv2di_1_avx): Likewise.
8478 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
8479 type. Remove atom_unit.
8480 (*vec_extractv2di_1_sse2): Likewise.
8482 2010-06-21 DJ Delorie <dj@redhat.com>
8484 * diagnostic.h (diagnostic_classification_change_t): New.
8485 (diagnostic_context): Add history and push/pop list.
8486 (diagnostic_push_diagnostics): Declare.
8487 (diagnostic_pop_diagnostics): Declare.
8488 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
8489 from pragmas in a history chain instead of the global table.
8490 (diagnostic_push_diagnostics): New.
8491 (diagnostic_pop_diagnostics): New.
8492 (diagnostic_report_diagnostic): Scan history chain to find state
8493 of diagnostics as of the diagnostic location.
8494 * opts.c (set_option): Pass UNKNOWN_LOCATION to
8495 diagnostic_classify_diagnostic.
8496 (enable_warning_as_error): Likewise.
8497 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
8498 use in the history chain.
8499 * doc/extend.texi: Document pragma GCC diagnostic changes.
8501 2010-06-21 Jakub Jelinek <jakub@redhat.com>
8503 * dwarf2out.c (add_linkage_name): New function. Don't add
8504 anything to DW_TAG_member DIEs.
8505 (add_name_and_src_coords_attributes): Use it.
8506 (gen_variable_die): Call it for C++ static data members if
8507 specification is DW_TAG_member.
8509 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
8510 C++ char16_t and char32_t.
8512 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
8513 * genattrtab.c: Include vecprim.h.
8514 (cached_attrs, cached_attr_count, attrs_seen_once,
8515 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
8516 attrs_cached_after): New variables.
8517 (find_attrs_to_cache): New function.
8518 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
8519 (write_test_expr): Add attrs_cached argument, return it too,
8520 attempt to cache non-const attributes used more than once in
8521 a single case handling.
8522 (write_attr_get): Use find_attrs_to_cache, for caching candidates
8523 emit cached_* variables. Adjust write_attr_set callers.
8524 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
8525 to find attributes that should be cached in this block. Adjust
8526 write_test_expr callers.
8527 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
8529 (make_automaton_attrs): Adjust write_test_expr caller.
8531 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
8532 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
8533 (make_automaton_attrs): If find_tune_attr returns non-NULL,
8534 write separate internal_dfa_insn_code_* and insn_default_latency_*
8535 functions for each attribute's value and emit init_sched_attrs
8536 function and function pointers.
8537 * genattr.c (const_attrs, reservations): New variables.
8538 (gen_attr): Add const attributes to const_attrs vector.
8539 (check_tune_attr, find_tune_attr): New functions.
8540 (main): Add reservations to reservations vector. If find_tune_attr
8541 returns true, add prototype for init_sched_attrs and make
8542 internal_dfa_insn_code and insn_default_latency function pointers,
8543 otherwise define init_sched_attrs as dummy macro.
8544 * cfgexpand.c: Include insn-attr.h.
8545 (gimple_expand_cfg): Call init_sched_attrs.
8547 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
8550 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
8551 va_arg from a set of register save slots into a temporary,
8552 if the container is bigger than type size, do the copying
8553 using smaller mode or using memcpy.
8556 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
8558 (sel_print_to_dot): Remove macro.
8559 (sel_print): Likewise. New prototype.
8560 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
8561 (sel_print): New function.
8563 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8565 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
8566 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
8568 2010-06-21 Nick Clifton <nickc@redhat.com>
8570 * config/rx/rx.h (PTRDIFF_TYPE): Define.
8571 (SMALL_REGISTER_CLASS): Define (to zero).
8572 (PRINT_OPERAND): Delete.
8573 (PRINT_OPERAND_ADDRESS): Delete.
8574 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
8575 (rx_print_operand_address): Delete prototype.
8576 * config/rx/rx.c (rx_print_operand): Make static.
8577 Allow %H and %L to handle CONST_DOUBLEs.
8578 (rx_print_operand_address): Make static.
8579 (rx_gen_move_template): Rename local variable 'template' to
8581 (rx_function_arg): Do not pass unknown sized objects in registers.
8582 (TARGET_PRINT_OPERAND): Define.
8583 (TARGET_PRINT_OPERAND_ADDRESS): Define.
8585 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8587 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
8589 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
8591 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
8592 stack-alignment for simple leaf-functions.
8594 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
8596 * doc/install.texi: Document bootstrap-lto.
8598 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
8601 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
8602 (input_function): Drop them here, if VTA is disabled.
8604 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
8607 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
8609 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
8610 ix86_swapped_fp_comparsion_operator instead of
8611 ix86_fp_comparison_operator.
8613 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
8614 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
8615 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
8616 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
8617 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
8618 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
8620 2010-06-20 Joseph Myers <joseph@codesourcery.com>
8623 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
8624 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
8625 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
8626 (decode_cmdline_option): Update for this return value. Set
8627 orig_option_with_args_text field. Set arg field for unknown
8628 options. Make static.
8629 (decode_cmdline_options_to_array): New.
8630 (prune_options): Update handling of find_opt return value.
8631 * opts.c (read_cmdline_option): Take decoded option. Return void.
8632 (read_cmdline_options): Take decoded options.
8633 (decode_options): Add parameters for decoded options. Use
8634 decode_cmdline_options_to_array. Use decoded options for -O
8635 scan. Use integral_argument for -O parameters. Update call to
8636 read_cmdline_options.
8637 (enable_warning_as_error): Update handling of find_opt return value.
8638 * opts.h: Update comment on unknown options.
8639 (struct cl_decoded_option): Update comments on opt_index and arg.
8640 Add orig_option_with_args_text.
8641 (decode_cmdline_option): Remove.
8642 (decode_cmdline_options_to_array): Declare.
8643 (decode_options): Update prototype.
8644 * toplev.c (save_argv): Remove.
8645 (save_decoded_options, save_decoded_options_count): New.
8646 (read_integral_parameter): Remove.
8647 (print_switch_values): Use decoded options.
8648 (toplev_main): Don't set save_argv. Update call to decode_options.
8649 * toplev.h (read_integral_parameter): Remove.
8650 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
8652 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
8655 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
8657 * constraints.md (Pw, Px): New constraints.
8658 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
8660 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
8662 * config/i386/sse.md (fma4modesuffixf4): Removed.
8663 (ssemodesuffixf2s): Likewise.
8664 (ssemodesuffixf4): Likewise.
8665 (ssemodesuffixf2c): Likewise.
8666 (ssescalarmodesuffix2s): Likewise.
8667 (avxmodesuffixf2c): Likewise.
8668 (ssemodesuffix): New.
8669 (ssescalarmodesuffix): Likewise.
8670 Update patterns with ssemodesuffix and ssescalarmodesuffix.
8672 2010-06-19 Philip Herron <herron.philip@googlemail.com>
8674 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
8676 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
8678 * stor-layout.c (debug_rli): Remove unused local variables.
8680 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
8682 PR rtl-optimization/40900
8683 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
8684 original expression for later reuse.
8685 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
8686 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
8688 2010-06-18 Anatoly Sokolov <aesok@post.ru>
8690 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
8691 double_int_fits_in_uhwi_p): Implement as static inline.
8692 (double_int_xor): New inline function.
8693 (double_int_lrotate, double_int_rrotate, double_int_max,
8694 double_int_umax, double_int_smax, double_int_min, double_int_umin,
8695 double_int_smin): Declare.
8696 (lrotate_double, rrotate_double): Remove declaration.
8697 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
8698 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
8699 (double_int_lrotate, double_int_rrotate, double_int_max,
8700 double_int_umax, double_int_smax, double_int_min, double_int_umin,
8701 double_int_smin): New function.
8702 * fold-const.c (int_const_binop): Clean up, use double_int_*
8704 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
8705 double_int_* and immed_double_int_const functions.
8707 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
8709 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
8710 * function.c (types_used_by_cur_var_decl): Likewise.
8711 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
8713 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
8715 * tree.h (record_layout_info): Change type of pending_statics field
8717 * stor-layout.c (start_record_layout): Store NULL into
8719 (debug_rli): Call debug_vec_tree instead of debug_tree.
8720 (place_field): Likewise.
8721 (finish_record_layout): Likewise.
8723 2010-06-18 Alan Modra <amodra@gmail.com>
8725 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
8727 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8730 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
8731 for SET source operand from SET destination operand.
8733 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
8735 PR rtl-optimization/39871
8736 * reload1.c (init_eliminable_invariants): For flag_pic, disable
8737 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
8738 (function_invariant_p): Rule out a plus of frame or arg pointer with
8740 * ira.c (find_reg_equiv_invariant_const): Likewise.
8742 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
8744 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
8745 print_operand_address and puts to output the operand for CONST.
8747 2010-06-17 Jakub Jelinek <jakub@redhat.com>
8750 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
8753 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
8755 * v850-protos.h (print_operand): Delete.
8756 (print_operand_address): Delete.
8757 * v850.h (PRINT_OPERAND): Delete.
8758 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8759 (PRINT_OPERAND_ADDRESS): Delete.
8760 * v850.c (print_operand_address): Rename to...
8761 (v850_print_operand_address): ...this. Make static. Call
8763 (print_operand): Rename to...
8764 (v850_print_operand): ...this. Make static. Call
8765 v850_print_operand_address.
8766 (v850_print_operand_punct_valid_p): New function.
8767 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8768 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8770 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
8772 * config/sh/sh-protos.h (print_operand): Delete.
8773 (print_operand_address): Delete.
8774 * config/sh/sh.h (PRINT_OPERAND): Delete.
8775 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8776 (PRINT_OPERAND_ADDRESS): Delete.
8777 * config/sh/sh.c (sh_print_operand_address): Make static.
8778 (sh_print_operand): Make static. Call sh_print_operand_address
8779 and sh_print_operand.
8780 (sh_print_operand_punct_valid_p): New function.
8781 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8782 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8784 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
8786 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
8787 (mcore_print_operand_address): Delete.
8788 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
8789 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8790 (PRINT_OPERAND_ADDRESS): Delete.
8791 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
8792 (mcore_print_operand): Make static.
8793 (mcore_print_operand_punct_valid_p): New function.
8794 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
8795 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8797 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
8799 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
8800 (print_operand_address): Delete.
8801 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
8802 (PRINT_OPERAND_ADDRESS): Delete.
8803 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
8805 (m68hc11_print_operand): Make static.
8806 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8808 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
8810 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
8811 (m32r_print_operand_address): Delete.
8812 * config/m32r/m32r.h (m32r_punct_chars): Delete.
8813 (PRINT_OPERAND): Delete.
8814 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8815 (PRINT_OPERAND_ADDRESS): Delete.
8816 * config/m32r/m32r.c (m32r_punct_chars): Make static.
8817 (m32r_print_operand_address): Make static.
8818 (m32r_print_operand): Make static.
8819 (m32r_print_operand_punct_valid_p): New function.
8820 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8821 (TARGET_PRINT_OPERAND_ADDRESS): Define.
8823 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
8825 * config/iq2000/iq2000-protos.h (print_operand): Delete.
8826 (print_operand_address): Delete.
8827 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
8828 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8829 (PRINT_OPERAND_ADDRESS): Delete.
8830 (iq2000_print_operand_punct): Delete.
8831 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
8832 (iq2000_print_operand_address): Make static.
8833 (iq2000_print_operand): Make static.
8834 (iq2000_print_operand_punct_valid_p): New function.
8835 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8836 (TARGET_PRINT_OPERAND_ADDRESS): Define.
8838 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
8840 * config/frv/frv-protos.h (frv_print_operand): Delete.
8841 (frv_print_operand_address): Delete.
8842 * config/frv/frv.h (PRINT_OPERAND): Delete.
8843 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8844 (PRINT_OPERAND_ADDRESS): Delete.
8845 * config/frv/frv.c (frv_print_operand_address): Make static.
8846 (frv_print_operand): Make static.
8847 (frv_print_operand_punct_valid_p): New function.
8848 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8849 (TARGET_PRINT_OPERAND_ADDRESS): Define.
8851 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
8853 * tree.h (vec_member): Declare.
8854 * tree.c (vec_member): Define.
8856 2010-06-17 Richard Guenther <rguenther@suse.de>
8858 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
8859 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
8861 2010-06-17 Richard Guenther <rguenther@suse.de>
8863 * tree-inline.c (declare_return_variable): Remove bogus code.
8865 2010-06-17 Richard Guenther <rguenther@suse.de>
8867 * gimplify.c (gimplify_bind_expr): Always promote complex
8868 and vector variables to registers if possible.
8870 2010-06-17 Richard Guenther <rguenther@suse.de>
8872 * expr.c (get_inner_reference): Use double_int for bit_offset
8875 2010-06-16 DJ Delorie <dj@redhat.com>
8877 * common.opt (-fstrict-volatile-bitfields): new.
8878 * doc/invoke.texi: Document it.
8879 * fold-const.c (optimize_bit_field_compare): For volatile
8880 bitfields, use the field's type to determine the mode, not the
8882 * expr.c (expand_assignment): Likewise.
8883 (get_inner_reference): Likewise.
8884 (expand_expr_real_1): Likewise.
8885 * expmed.c (store_fixed_bit_field): Likewise.
8886 (extract_bit_field_1): Likewise.
8887 (extract_fixed_bit_field): Likewise.
8889 2010-06-16 Richard Guenther <rguenther@suse.de>
8891 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
8893 2010-06-16 Douglas B Rupp <rupp@gnat.com>
8895 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
8896 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
8897 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
8898 * debug.c: Likewise.
8899 * sdbout.c: Likewise.
8900 * vmsdbgout.c: Likewise.
8901 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
8902 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
8903 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
8904 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
8905 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
8906 * dwarf2out.c (dw_fde_struct): New fields
8907 dw_fde_vms_{end,begin}_prologue.
8908 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
8909 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
8910 (dwarf2out_vms_end_prologue): New function.
8911 (dwarf2out_vms_begin_epilogue): New function.
8912 (dw_val_struct): New value dw_val_class_vms_delta.
8913 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
8914 begin_epilogue for VMS.
8915 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
8916 new static functions.
8917 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
8918 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
8920 (print_die): New case dw_val_class_vms_delta.
8921 (attr_checksum): Likewise.
8922 (same_dw_val_p: Likewise.
8923 (size_of_die): Likewise.
8924 (value_format): Likewise.
8925 (output_die): Likewise.
8926 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
8927 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
8928 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
8929 dwarf2out_cfi_begin_epilogue
8930 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
8932 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
8934 * config/cris/cris-protos.h (cris_print_operand): Delete.
8935 (cris_print_operand_address): Delete.
8936 * config/cris/cris.h (PRINT_OPERAND): Delete.
8937 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8938 (PRINT_OPERAND_ADDRESS): Delete.
8939 * config/cris/cris.c (cris_print_operand_address): Make static.
8940 (cris_print_operand): Make static.
8941 (cris_print_operand_punct_valid_p): New function.
8942 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8943 (TARGET_PRINT_OPERAND_ADDRESS): Define.
8945 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
8947 * config/arm/arm-protos.h (arm_print_operand): Delete.
8948 (arm_print_operand_address): Delete.
8949 * config/arm/arm.h (PRINT_OPERAND): Delete.
8950 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8951 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
8952 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
8953 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
8954 (arm_print_operand): Make static.
8955 (arm_print_operand_punct_valid_p): New function.
8956 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8957 (TARGET_PRINT_OPERAND_ADDRESS): Define.
8959 2010-06-16 Nick Clifton <nickc@redhat.com>
8961 * config/rx/constraints.md (NEGint4): New constraint.
8962 * config/rx/rx.md (attr cc): Add set_zsc.
8963 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
8966 (call_internal): Clobber the cc0 register.
8967 (call_value_internal): Likewise.
8968 (cstoresi4): Likewise.
8969 (movsieq): Likewise.
8970 (movsine): Likewise.
8971 (addsi3): Add alternative to handle small negative constants.
8973 (addsi3): Do not set the O bit in the cc0 register.
8977 (andsi3): Reorder alternatives to prefer shorter forms.
8980 (negsi2): Note that the cc0 flags are set.
8981 (rotlsi3): Note that only the Z and S bits are set in cc0.
8982 (lshrsi3): Likewise.
8983 (ashlsi3): Likewise.
8984 (subsf3): Use %Q for the MEM operand.
8985 (fix_truncsfsi2): Likewise.
8986 (floatsisf2): Likewise.
8987 (bitset): Remove early clobber from destination.
8988 (bitset_in_memory): Likewise.
8989 (lrintsf2): Clobber the cc0 register.
8990 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
8991 (rx_print_operand): Handle %N.
8993 2010-06-16 Jan Hubicka <jh@suse.cz>
8995 * df-core.c (df_compact_blocks): Free problem_temps vector.
8997 2010-06-16 Martin Jambor <mjambor@suse.cz>
8999 PR tree-optimization/43905
9000 * tree-sra.c: Include tree-inline.h.
9001 (create_abstract_origin): Removed.
9002 (modify_function): Version the call graph node instead of creating
9003 abstract origins and dealing with same_body aliases.
9004 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
9005 function is versionable.
9006 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
9008 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
9010 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
9011 (CHOOSE_DYNAMIC_LINKER): Update.
9013 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
9015 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
9016 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
9017 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
9018 *prefetch_3dnow_rex.
9020 2010-06-15 Anatoly Sokolov <aesok@post.ru>
9022 * target.h (struct asm_out):Add declare_constant_name field.
9023 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
9024 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
9025 * output.h (default_asm_declare_constant_name): Declare.
9026 (assemble_label): Update prototype.
9027 * varasm.c (assemble_constant_contents): Use
9028 targetm.asm_out.declare_constant_name target hook.
9029 (assemble_label): Add 'file' argument.
9030 (default_asm_declare_constant_name): New function.
9031 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
9032 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
9033 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
9035 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
9036 * config/darwin.c (darwin_asm_declare_constant_name): New function.
9037 (machopic_output_indirection): Update assemble_label argument list.
9038 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
9039 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
9041 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
9044 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
9045 size_one_node for pointer types. Do not call gmp_cst_to_tree.
9047 2010-06-15 Richard Guenther <rguenther@suse.de>
9049 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
9051 2010-06-15 Paul Brook <paul@codesourcery.com>
9053 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
9056 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
9058 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
9059 don't get a vector type for output.
9061 2010-06-15 Jakub Jelinek <jakub@redhat.com>
9064 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
9065 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
9066 (LANG_HOOKS_DECLS): Add it.
9067 * gimplify.c (omp_notice_variable): Call
9068 lang_hooks.decls.omp_report_decl.
9070 2010-06-15 Martin Jambor <mjambor@suse.cz>
9073 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
9074 on the newly dead SSA name.
9076 2010-06-15 Alan Modra <amodra@gmail.com>
9078 * doc/invoke.texi: Add mcmodel to powerpc options.
9079 * configure.ac: Add HAVE_LD_LARGE_TOC test.
9080 * configure: Regenerate.
9081 * config.in: Regenerate.
9082 * config/rs6000/linux64.opt (mcmodel): New.
9083 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
9084 (TARGET_CMODEL, SET_CMODEL): Define.
9085 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
9086 select CMODEL_MEDIUM default.
9087 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
9088 (TARGET_CMODEL): Define default.
9089 * config/rs6000/rs6000.c (cmodel): New variable.
9090 (rs6000_explicit_options): Add cmodel field.
9091 (rs6000_handle_option): Handle -mcmodel.
9092 (create_TOC_reference): Add largetoc_reg param. Generate high,
9093 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
9094 (rs6000_delegitimize_address): Recognise new toc reference rtl
9095 and minimal-toc rtl.
9096 (rs6000_legitimize_reload_address): Handle new toc references.
9097 (print_operand_address): Handle legitimate_constant_pool_address_p
9098 match before lo_sum.
9099 (rs6000_eliminate_indexed_memrefs): Tidy.
9100 (rs6000_emit_move): Tweak threshold for inlining constants.
9101 Keep rs6000_emit_allocate_stack large stack frame offsets
9102 loaded into r0 inline.
9103 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
9104 (tocrel_base, tocrel_offset): New variables.
9105 (toc_relative_expr_p): Set them here.
9106 (print_operand_address): Skip over any offset on constant pool address.
9107 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
9108 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
9109 (offsettable_ok_by_alignment): New function.
9110 (rs6000_emit_move): Address suitably aligned local symbol_refs
9111 relative to the toc pointer for -mcmodel=medium.
9112 (legitimate_constant_pool_address_p): Make param const_rtx. Add
9113 strict param. Allow lo_sum version of addressing. Verify reg
9114 used for -mminimal-toc and -mcmodel != small. Update all callers.
9115 * config/rs6000/constraints.md: Update for above change.
9116 * config/rs6000/predicates.md: Likewise.
9117 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
9119 (tls_gd): Split for -mcmodel=medium/large.
9120 (tls_gd_high, tls_gd_low): New.
9121 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
9122 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
9123 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
9124 (largetoc_high, largetoc_low): New.
9125 (cmptf_internal2): Add clobber.
9126 * config/rs6000/rs6000-protos.h: Update.
9128 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
9130 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
9131 true if no prefetch is going to be generated for a given group.
9132 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
9133 estimate the prefetch_count.
9134 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
9135 prefetch count by considering the unroll_factor and prefetch_mod
9136 for is_loop_prefetching_profitable.
9138 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
9140 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
9141 anything if the argument is not a MEM.
9143 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
9148 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
9150 (canonicalize_loop_ivs): Likewise.
9152 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
9155 * haifa-sched.c (setup_insn_reg_pressure_info,
9156 update_register_pressure): Reject debug insns.
9157 (ready_sort): Don't setup reg pressure for debug insns.
9158 (schedule_insn): Don't update reg pressure for debug insns.
9160 2010-06-14 Richard Guenther <rguenther@suse.de>
9162 * lto-streamer.c (cached_bp): Remove.
9163 (bitpack_delete): Likewise.
9164 (bitpack_create): Likewise.
9165 (bp_get_next_word): Likewise.
9166 (bp_pack_value, bp_unpack_value): Move ...
9167 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
9169 (struct bitpack_d): Likewise.
9170 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
9171 New inline functions.
9172 * lto-streamer-out.c (lto_output_bitpack): Remove.
9173 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
9174 (pack_value_fields): Adjust.
9175 (lto_write_tree): Likewise.
9176 (output_gimple_stmt): Likewise.
9177 (output_function): Likewise.
9178 * lto-streamer-in.c (input_gimple_stmt): Adjust.
9179 (input_function): Likewise.
9180 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
9181 (lto_input_bitpack): Remove.
9182 (lto_materialize_tree): Adjust.
9183 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
9184 * lto-cgraph.c (lto_output_edge): Adjust.
9185 (lto_output_node): Likewise.
9186 (lto_output_varpool_node): Likewise.
9187 (lto_output_ref): Likewise.
9188 (input_node): Likewise.
9189 (input_varpool_node): Likewise.
9190 (input_ref): Likewise.
9191 (input_edge): Likewise.
9192 (output_node_opt_summary): Likewise.
9193 (input_node_opt_summary): Likewise.
9194 * ipa-pure-const.c (pure_const_write_summary): Likewise.
9195 (pure_const_read_summary): Likewise.
9196 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
9197 (ipa_read_indirect_edge_info): Likewise.
9198 (ipa_write_node_info): Likewise.
9199 (ipa_read_node_info): Likewise.
9201 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
9204 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
9205 (vec_extract_lo_v16hi): Likewise.
9206 (vec_extract_lo_v32qi): Likewise.
9208 2010-06-14 Jakub Jelinek <jakub@redhat.com>
9211 * tree.h (build_call_expr): Don't define as vararg macro, instead
9213 * builtins.c (build_call_nofold): Remove.
9214 (expand_builtin_int_roundingfn, expand_builtin_pow,
9215 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
9216 expand_builtin_memset_args, expand_builtin_strcmp,
9217 expand_builtin_strncmp, expand_builtin_memory_chk): Use
9218 build_call_nofold_loc instead of build_call_nofold.
9219 (build_call_expr): New function.
9221 PR tree-optimization/44508
9222 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
9223 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
9224 don't eliminate trivially dead stmts.
9225 * tree-vrp.c (vrp_finalize): Pass false as last argument
9226 to substitute_and_fold.
9227 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
9228 to substitute_and_fold.
9229 * tree-ssa-ccp.c (ccp_finalize): Likewise.
9232 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
9234 2010-06-14 Ira Rosen <irar@il.ibm.com>
9236 PR tree-optimization/44507
9237 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
9238 to build initial vector for BIT_AND_EXPR.
9239 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
9241 2010-06-14 Jakub Jelinek <jakub@redhat.com>
9243 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
9244 adjust z10prop set_attr.
9246 2010-06-13 Jan Hubicka <jh@suse.cz>
9248 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
9249 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
9250 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
9251 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
9252 datastructure checks into checking asserts.
9253 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
9254 * tree-ssa-sccvn.c (VN_INFO): Likewise.
9255 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
9256 df_ref_create_structure): Likewise.
9257 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
9258 pool_free): Use gcc_checking_assert.
9259 * alias.c (get_alias_set): Likewise.
9260 * var-tracking.c (variable_htab_free, shared_hash_copy,
9261 canonicalize_values_mark, variable_merge_over_cur): Likewise.
9262 * lto-streamer.c (bp_unpack_value): Likewise.
9264 2010-06-13 Richard Guenther <rguenther@suse.de>
9266 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
9267 Do not stream but initialize TYPE_CANONICAL to NULL.
9268 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
9269 * gimple.c (gimple_types_compatible_p): Disregard
9270 TYPE_STRUCTURAL_EQUALITY_P.
9271 (gimple_register_type): Use TYPE_CANONICAL as cache.
9272 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
9273 before registering common types.
9274 * config/i386/i386.c (ix86_function_arg_boundary): Do not
9275 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
9276 * tree.h (TYPE_CANONICAL): Clarify documentation.
9278 2010-06-13 Anatoly Sokolov <aesok@post.ru>
9280 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9281 LIBCALL_VALUE): Remove macros.
9282 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
9283 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9284 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9285 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
9286 (ia64_function_value): Make static. Handle receiving the function
9287 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
9289 2010-06-12 Jan Hubicka <jh@suse.cz>
9291 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
9294 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
9296 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
9298 2010-06-12 Jan Hubicka <jh@suse.cz>
9300 * df-core.c (df_clear_bb_info): New function.
9301 (df_set_blocks): bb_info is always allocated.
9302 (df_get_bb_info): Use block_info_elt_size.
9303 (df_set_bb_info): Likewise.
9304 (df_compact_blocks): Update for new block_info.
9305 (grow_bb_info): New function.
9306 * df-problems.c (df_grow_bb_info): Move to df-core.c
9307 (df_rd_set_bb_info): Remove.
9308 (df_rd_free_bb_info): Do not free block pool.
9309 (df_rd_alloc): Do not create pool, use check for
9310 obstack presence instead of NULL pointer for new blocks.
9311 (df_rd_free): DO not free alloc pool; clear block_info.
9312 (problem_RD): Add size of block info structure.
9313 (df_lr_set_bb_info): Remove.
9314 (df_lr_free_bb_info): Do not free block pool.
9315 (df_lr_alloc): Do not create pool, use check for
9316 obstack presence instead of NULL pointer for new blocks.
9317 (df_lr_free): DO not free alloc pool; clear block_info.
9318 (problem_LR): Add size of block info structure.
9319 (df_live_set_bb_info): Remove.
9320 (df_live_free_bb_info): Do not free block pool.
9321 (df_live_alloc): Do not create pool, use check for
9322 obstack presence instead of NULL pointer for new blocks.
9323 (df_live_free): DO not free alloc pool; clear block_info.
9324 (problem_LIVE): Add size of block info structure.
9325 (problem_CHAIN): Add size of block info structure.
9326 (df_byte_lr_set_bb_info): Remove.
9327 (df_byte_lr_free_bb_info): Do not free block pool.
9328 (df_byte_lr_alloc): Do not create pool, use check for
9329 obstack presence instead of NULL pointer for new blocks.
9330 (df_byte_lr_free): DO not free alloc pool; clear block_info.
9331 (problem_BYTE_LR): Add size of block info structure.
9332 (problem_NOTE): Add size of block info structure.
9333 (df_byte_MD_set_bb_info): Remove.
9334 (df_byte_MD_free_bb_info): Do not free block pool.
9335 (df_byte_MD_alloc): Do not create pool, use check for
9336 obstack presence instead of NULL pointer for new blocks.
9337 (df_byte_MD_free): DO not free alloc pool; clear block_info.
9338 (problem_BD): Add size of block info structure.
9339 * df-scan.c (df_scan_free_internal): Free block pool.
9340 (df_scan_set_bb_info): Remove.
9341 (df_scan_free_bb_info): Check for artificial_defs instead
9342 of bb_info being non-NULL.
9343 (df_scan_alloc): DO not create df_scan_block pool.
9344 (problem_SCAN): Set size of block info.
9345 (df_bb_refs_record): Do not allocate bb_info.
9346 * df.h (df_problem): Add block_info_elt_size.
9347 (struct dataflow): Change block_info to void *.
9348 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
9349 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
9352 2010-06-12 Jan Hubicka <jh@suse.cz>
9354 PR tree-optimize/44485
9355 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
9356 containing use of return value of noreturn function.
9358 2010-06-12 Anatoly Sokolov <aesok@post.ru>
9360 * targhooks.c (default_function_value): Don't use
9361 FUNCTION_OUTGOING_VALUE.
9362 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
9363 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
9365 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
9367 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
9368 Add crtfastmath.o to extra_parts.
9369 * config/mips/crtfastmath.c: New.
9370 * config/mips/linux.h (ENDFILE_SPEC): New.
9372 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
9374 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
9375 old_type in parameter.
9376 (gcc_type_for_value): Update call to gcc_type_for_interval.
9377 (compute_type_for_level_1): Renamed compute_type_for_level.
9378 Update call to gcc_type_for_interval.
9380 2010-06-11 Joseph Myers <joseph@codesourcery.com>
9382 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
9383 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
9385 2010-06-11 Joseph Myers <joseph@codesourcery.com>
9387 * opts-common.c: Include options.h.
9388 (integral_argument): Move from opts.c.
9389 (decode_cmdline_option): New. Based on read_cmdline_option.
9390 * opts.c (integral_argument): Move to opts-common.c.
9391 (read_cmdline_option): Move most contents to
9392 decode_cmdline_option. Use %qs in diagnostics.
9393 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
9394 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
9395 decode_cmdline_option): New.
9397 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
9400 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
9401 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
9402 (partiysi2_cmp): Ditto.
9403 (*partiyhi2_cmp): Ditto.
9404 (*parityqi2_cmp): Remove.
9406 2010-06-11 Jan Hubicka <jh@suse.cz>
9408 * bitmap.h (bmp_iter_next_bit): New.
9409 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
9411 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
9412 Eric Botcazou <ebotcazou@adacore.com>
9414 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
9417 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
9419 * config/i386/i386.md (unspec): New define_c_enum.
9422 2010-06-10 Jakub Jelinek <jakub@redhat.com>
9424 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
9426 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
9429 * tree-if-conv.c (bb_predicate_s): New struct.
9430 (bb_predicate_p): New.
9431 (bb_has_predicate): New.
9432 (bb_predicate): New.
9433 (set_bb_predicate): New.
9434 (bb_predicate_gimplified_stmts): New.
9435 (set_bb_predicate_gimplified_stmts): New.
9436 (add_bb_predicate_gimplified_stmts): New.
9437 (init_bb_predicate): New.
9438 (free_bb_predicate): New.
9439 (is_predicated): Use bb_predicate.
9440 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
9441 (predicate_bbs): Same. Gimplify the condition of the basic blocks
9442 before processing their successors.
9443 (clean_predicate_lists): Removed.
9444 (find_phi_replacement_condition): Use bb_predicate.
9445 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
9447 (insert_gimplified_predicates): New.
9448 (combine_blocks): Call insert_gimplified_predicates.
9449 (tree_if_conversion): Call free_bb_predicate instead of
9450 clean_predicate_lists.
9452 2010-10-11 Paul Brook <paul@codesourcery.com>
9454 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
9455 * config/arm/arm.c (all_architectures): Change v7e-m default to
9457 * config/arm/arm-cores.def: Add cortex-m4.
9458 * config/arm/arm-tune.md: Regenerate.
9460 2010-06-11 Jan Hubicka <jh@suse.cz>
9462 * ipa-pure-const.c (special_builtlin_state): New function.
9463 (check_call): Use it instead of special casign BUILT_IN_RETURN.
9464 (propagate_pure_const): Use it.
9466 2010-06-11 Jan Hubicka <jh@suse.cz>
9468 * df-problems.c (df_live_scratch): Convert to bitmap_head.
9469 (df_live_alloc): Initialize df_live_scratch when initializing
9471 (df_live_transfer_function): Update uses of df_live_scratch.
9472 (df_live_free): Free problem_data; clear df_live_scratch before
9473 releasing the obstack.
9474 (df_md_free): Free problem data.
9476 2010-06-11 Jan Hubicka <jh@suse.cz>
9478 * doc/invoke.texi (Wsuggest-attribute): Document.
9479 (Wmissing-noreturn): Remove.
9480 * ipa-pure-const.c (warn_function_noreturn): New function.
9481 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
9482 warn_missing_noreturn.
9483 * common.opt (Wsuggest-attribute=noreturn): New.
9484 * tree-flow.h (warn_function_noreturn): Declare.
9485 * tree-cfg.c (execute_warn_function_noreturn): Use
9486 warn_function_noreturn.
9487 (gate_warn_function_noreturn): New.
9488 (pass_warn_function_noreturn): Update.
9490 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9492 * c-typeck.c (handle_warn_cast_qual): Add loc
9493 parameter. Improve warning message.
9494 (build_c_cast): Pass location to handle_warn_cast_qual.
9496 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
9498 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
9499 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
9501 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
9503 2010-06-10 Dodji Seketeli <dodji@redhat.com>
9505 Fix bootstap on mips
9506 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
9509 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
9511 * system.h (helper_const_non_const_cast): New inline for
9513 (CONST_CAST2): For gcc version <= 4.0 use
9514 new helper to do const/non-const casting.
9516 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9518 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
9519 * Makefile.in (OBJS-common): Include insn-enums.o.
9520 (insn-enums.o): New rule.
9521 (simple_generated_c): Add insn-enums.c.
9522 (build/genenums.o): New rule.
9523 (genprogmd): Add "enums".
9524 * genconstants.c (print_enum_type): Declare a C string array
9526 * genenums.c: New file.
9527 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
9528 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
9529 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
9531 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9533 * doc/md.texi (define_enum_attr): Document.
9534 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
9535 * read-md.h (lookup_enum_type): Declare.
9536 * read-md.c (lookup_enum_type): New function.
9537 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
9538 * genattrtab.c (attr_desc): Add an enum_name field.
9539 (evaluate_eq_attr): Take the associated attribute as argument.
9540 Get the enum prefix from the enum_name field, if defined.
9541 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
9542 (simplify_test_exp): Pass attr to evaluate_eq_attr.
9543 (add_attr_value): New function, split out from...
9544 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
9545 (write_test_expr): Pass attr to evaluate_eq_attr.
9546 (write_attr_get): Use the enum_name as the enum tag, if defined.
9547 (write_attr_valueq): Use the enum_name as a prefix, if defined.
9548 (find_attr): Initialize enum_name.
9549 (main): Handle DEFINE_ENUM_ATTR.
9550 * gensupport.c (process_rtx): Likewise.
9551 * config/mips/mips.h (mips_tune_attr): Delete.
9552 * config/mips/mips.md (cpu): Use define_attr_enum.
9554 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9556 * doc/md.texi (define_c_enum, define_enum): Document.
9557 * read-md.h (md_constant): Add a parent_enum field.
9558 (enum_value, enum_type): New structures.
9559 (upcase_string, traverse_enum_types): Declare.
9560 * read-md.c (enum_types): New variable.
9561 (upcase_string, add_constant): New functions.
9562 (handle_constants): Don't create the hash table here.
9564 (traverse_md_constants): Don't check for a null md_constants.
9565 (decimal_string, handle_enum, traverse_enum_types): New functions.
9566 (read_md_files): Initialize md_constants and md_enums.
9567 * genconstants.c (print_md_constant): Ignore info argument.
9568 Only print constants that belong to no enum.
9569 (print_enum_type): New function.
9570 (main): Don't pass stdout to print_md_constant. Call print_enum_type
9571 for each defined enum type.
9572 * config/mips/mips.md (processor): New define_enum.
9573 (unspec): New define_c_enum.
9574 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
9575 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
9576 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
9577 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
9578 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
9579 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
9580 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
9581 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
9582 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
9583 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
9584 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
9585 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
9586 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
9587 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
9588 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
9589 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
9590 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
9591 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
9592 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
9593 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
9594 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
9595 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
9596 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9597 (UNSPEC_RDDSP): Move to mips-dsp.md.
9598 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
9599 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
9600 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
9601 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
9602 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
9603 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
9604 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
9605 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
9606 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
9607 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
9608 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
9609 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
9610 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
9611 Moved to mips-dspr2.md.
9612 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
9613 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
9614 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
9615 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
9616 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
9617 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
9618 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
9619 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
9620 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
9621 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
9622 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
9623 UNSPEC_LOONGSON_PSADBH)
9624 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
9625 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
9626 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
9627 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9628 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9629 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9630 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
9631 (cpu): Update comment.
9632 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
9633 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
9634 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
9635 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
9636 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
9637 UNSPEC_LOONGSON_PCMPEQ)
9638 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
9639 UNSPEC_LOONGSON_PINSR_0)
9640 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
9641 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
9642 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
9643 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
9644 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
9645 UNSPEC_LOONGSON_PSADBH)
9646 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
9647 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
9648 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
9649 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9650 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9651 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9652 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
9653 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
9654 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
9655 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
9656 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
9657 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
9658 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
9659 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
9660 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
9661 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
9662 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
9663 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
9664 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
9665 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
9666 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
9667 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
9668 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
9669 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
9670 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
9671 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
9672 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9673 (UNSPEC_RDDSP): Moved from mips.md.
9674 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
9675 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
9676 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
9677 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
9678 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
9679 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
9680 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
9681 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
9682 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
9683 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
9684 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
9685 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
9686 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
9687 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
9688 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
9689 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
9690 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
9691 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
9692 (UNSPEC_SCC): Moved from mips.md.
9693 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
9694 "processor_type" to "processor".
9695 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
9696 * config/mips/mips.h (processor_type): Delete.
9697 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
9698 "processor_type" to "processor".
9700 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9702 * configure.ac (tm_include_list): Add insn-constants.h.
9703 * configure: Regenerate.
9704 * Makefile.in (GTM_H): Move insn-constants.h here from...
9706 * mkconfig.sh: Remove special handling for insn-constants.h.
9708 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9710 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
9711 (BUILD_MD): ...this new variable.
9712 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
9713 that include the old contents of simple_generated_h and
9715 (simple_generated_h, simple_generated_c): Include them. Add
9717 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
9718 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
9719 Remove these dependencies from the main rule and include
9720 insn-conditions.md in the command line only if it appears
9721 in the dependency list.
9722 (insn-constants.h, s-constants): Delete.
9723 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
9725 (build/genmddeps.o): Likewise.
9726 (genprogrtl): New variable that contains everything from genprogmd
9727 except mddeps and constants.
9728 (genprogmd): Redefine in terms of genprogrtl. Make these programs
9729 depend on $(BUILD_MD)
9730 (genprog): New variable. Make these programs depend on
9732 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
9733 (main): Use read_md_files instead of init_rtx_reader_args.
9734 * genconstants.c: As for genmddeps.c.
9735 * read-md.h (read_skip_construct): Declare.
9736 * read-md.c (read_skip_construct): New function.
9737 (handle_file): Allow a null handle_directive, skipping the
9739 (parse_include): Update the comment accordingly.
9741 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9743 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
9744 * genmddeps.c: Include read-md.h.
9745 (main): Call init_rtx_reader_args instead of init_md_reader_args.
9746 * genattr.c (main): Likewise.
9747 * genattrtab.c (main): Likewise.
9748 * genautomata.c (main): Likewise.
9749 * gencodes.c (main): Likewise.
9750 * genconditions.c (main): Likewise.
9751 * genconfig.c (main): Likewise.
9752 * genconstants.c (main): Likewise.
9753 * genemit.c (main): Likewise.
9754 * genextract.c (main): Likewise.
9755 * genflags.c (main): Likewise.
9756 * genopinit.c (main): Likewise.
9757 * genoutput.c (main): Likewise.
9758 * genpeep.c (main): Likewise.
9759 * genrecog.c (main): Likewise.
9760 * genpreds.c (main): Likewise.
9761 * gensupport.h (in_fname): Move to read-md.h.
9762 (init_md_reader_args_cb): Rename to...
9763 (init_rtx_reader_args_cb): ...this and return a bool.
9764 (init_md_reader_args): Rename to...
9765 (init_rtx_reader_args): ...this and return a bool.
9766 (include_callback): Move to read-md.h.
9767 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
9768 (file_name_list, first_dir_md_include): Move to read-md.c
9769 (first_bracket_include): Delete unused variable.
9770 (last_dir_md_include): Move to read-md.c.
9771 (process_include): Delete, moving code to read-md.c:handle_include.
9772 (process_rtx): Don't handle INCLUDE.
9773 (save_string): Delete.
9774 (rtx_handle_directive): New function.
9775 (init_md_reader_args_cb): Rename to...
9776 (init_rtx_reader_args_cb): ...this and return a boolean success value.
9778 (init_md_reader_args): Rename to...
9779 (init_rtx_reader_args): ...this and return a boolean success value.
9780 * rtl.def (INCLUDE): Delete.
9781 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
9783 * read-rtl.c (read_conditions): Don't gobble ')' here.
9784 (read_mapping): Likewise.
9785 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
9786 Handle top-level non-rtx constructs here rather than in read_rtx_1.
9787 Store the whole queue in *X. Remove call to init_md_reader.
9788 (read_rtx_1): Rename to...
9789 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
9790 Don't handle top-level non-rtx constructs here. Don't handle (nil)
9792 (read_nested_rtx): New function. Handle (nil) here rather than
9794 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
9796 * read-md.h (directive_handler_t): New type.
9797 (in_fname, include_callback): Moved from read-md.h.
9798 (read_constants, init_md_reader): Delete.
9799 (read_md_files): Declare.
9800 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
9801 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
9803 (read_constants): Rename to...
9804 (handle_constants): ...this. Don't gobble ')' here.
9805 (handle_include, handle_file, handle_toplevel_file)
9806 (parse_include): New functions, mostly taken from gensupport.c.
9807 (init_md_reader): Subsume into...
9808 (read_md_files): ...this new function.
9810 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9812 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
9813 (unread_char): Decrement read_md_lineno after putting back '\n'.
9814 * read-md.c (fatal_with_file_and_line): Push back any characters
9815 that we decide not to add to the context.
9816 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
9817 fatal_expected_char in cases where '/' ends a line (for example).
9818 (read_name): Don't increment read_md_lineno here.
9819 (read_escape): Likewise.
9820 (read_quoted_string): Likewise.
9821 (read_braced_string): Likewise.
9823 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9825 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
9826 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
9827 * genconstants.c: Include read-md.h.
9828 * read-rtl.c (md_constants): Move to read-md.c.
9829 (md_name): Move to read-md.h.
9830 (initialize_iterators): Use leading_string_hash instead of def_hash
9831 and leading_string_eq_p instead of def_name_eq_p.
9832 (read_name): Move to read-md.c.
9833 (def_hash, def_name_eq_p): Delete.
9834 (read_constants, traverse_md_constants): Move to read-md.c.
9835 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
9836 * read-md.h: Include hashtab.h.
9837 (md_name): Moved from read-rtl.c.
9838 (md_constant): Moved from read-md.h.
9839 (leading_string_hash, leading_string_eq_p, read_name)
9840 (read_constants, traverse_md_constants): Declare.
9841 * read-md.c (md_constants): Moved from read-rtl.c.
9842 (leading_string_hash, leading_string_eq_p): New functions.
9843 (read_name, read_constants, traverse_md_constants): Moved from
9846 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9848 * read-rtl.c (md_name): New structure.
9849 (read_name): Take an md_name instead of a buffer pointer.
9850 Use the "string" field instead of strcpy when expanding constants.
9851 (read_constants): Remove the tmp_char argument. Update the calls
9852 to read_name, using two local name buffers instead of the tmp_char
9853 argument. Merge the constant-creation code.
9854 (read_conditions): Remove the tmp_char argument. Update the calls
9855 to read_name, using a local name buffer instead of the tmp_char
9857 (read_mapping): Replace tmp_char variable with a local name buffer.
9858 Update the calls to read_name.
9859 (read_rtx_1): Likewise. Update the calls to read_constants and
9862 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9864 * Makefile.in (build/read-md.o): Depend on errors.h.
9865 * read-md.h (error_with_line): Declare.
9866 * read-md.c: Include errors.h.
9867 (message_with_line_1): New function, extracted from...
9868 (message_with_line): ...here.
9869 (error_with_line): New function.
9870 * genattrtab.c: If a call to message_with_line is followed by
9871 "have_error = 1;", replace both statements with a call to
9873 * genoutput.c: Likewise.
9874 * genpreds.c: Likewise.
9875 * genrecog.c: If a call to message_with_line is followed by
9876 "error_count++;", replace both statements with a call to
9878 (errorcount): Delete.
9879 (main): Don't check it.
9880 * gensupport.c: If a call to message_with_line is followed by
9881 "errors = 1;", replace both statements with a call to error_with_line.
9883 (process_define_cond_exec): Check have_error instead of errors.
9884 (init_md_reader_args_cb): Likewise. Don't set errors.
9886 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9888 * read-md.h (read_md_file): Declare.
9889 (read_char, unread_char): New functions.
9890 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
9891 (read_quoted_string, read_string): Remove FILE * argument.
9892 * read-md.c (read_md_file): New variable.
9893 (read_md_filename, read_md_lineno): Update comments and remove
9894 unnecessary initialization.
9895 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
9896 (read_escape, read_quoted_string, read_braced_string, read_string):
9897 Remove FILE * argument. Update calls accordingly, using read_char
9898 and unread_char instead of getc and ungetc.
9899 * rtl.h (read_rtx): Remove FILE * argument.
9900 * read-rtl.c (iterator_group): Remove FILE * argument from
9902 (iterator_traverse_data): Remove "infile" field.
9903 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
9904 (add_mapping, read_name, read_constants, read_conditions)
9905 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
9906 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
9907 Remove file arguments from all calls, using read_char and unread_char
9908 instead of getc and ungetc.
9909 * gensupport.c (process_include): Preserve read_md_file around
9910 the include. Set read_md_file to the handle of the included file.
9911 Update call to read_rtx.
9912 (init_md_reader_args_cb): Set read_md_file to the handle of the file
9913 and remove local FILE *. Update calls to read_rtx.
9915 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9917 * read-md.h (read_rtx_lineno): Rename to...
9918 (read_md_lineno): ...this.
9919 (read_rtx_filename): Rename to...
9920 (read_md_filename): ...this.
9921 (copy_rtx_ptr_loc): Rename to...
9922 (copy_md_ptr_loc): ...this.
9923 (print_rtx_ptr_loc): Rename to...
9924 (print_md_ptr_loc): ...this.
9925 * read-md.c: Likewise. Update references after renaming.
9926 (string_obstack): Replace RTL with MD in comment.
9927 (set_rtx_ptr_loc): Rename to...
9928 (set_md_ptr_loc): ...this.
9929 (get_rtx_ptr_loc): Rename to...
9930 (get_md_ptr_loc): ...this.
9931 * genconditions.c: Update references after renaming.
9932 * genemit.c: Likewise.
9933 * genoutput.c: Likewise.
9934 * genpreds.c: Likewise.
9935 * gensupport.c: Likewise.
9936 * read-rtl.c: Likewise.
9938 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9940 * Makefile.in (READ_MD_H): New variable.
9941 (BUILD_RTL): Add build/read-md.o.
9942 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
9943 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
9944 (build/genattrtab.o, build/genconditions.o build/genemit.o)
9945 (build/genextract.o, build/genflags.o, build/genoutput.o)
9946 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
9947 (build/read-md.o): New rule.
9948 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
9949 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
9950 * coretypes.h: ...here.
9951 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
9952 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
9953 * genattr.c: Include read-md.h.
9954 * genattrtab.c: Likewise.
9955 * genconditions.c: Likewise.
9956 * genemit.c: Likewise.
9957 * genextract.c: Likewise.
9958 * genflags.c: Likewise.
9959 * genoutput.c: Likewise.
9960 * genpreds.c: Likewise.
9961 * genrecog.c: Likewise.
9962 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
9963 (join_c_conditions, print_c_condition, read_rtx_filename)
9964 (read_rtx_lineno): Move to read-md.h.
9965 * read-rtl.c: Include read-md.h.
9966 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
9967 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
9968 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
9969 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
9970 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
9971 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
9972 (read_braced_string, read_string): Move to read-md.c.
9973 (read_rtx): Move some initialization to init_md_reader and call
9974 init_md_reader here.
9975 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
9977 * gensupport.c: Include read-md.h.
9978 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
9979 * read-md.h, read-md.c: New files.
9981 2010-06-10 Anatoly Sokolov <aesok@post.ru>
9983 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9984 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9985 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
9986 * config/moxie/moxie.c (moxie_function_value): Make static.
9987 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
9988 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9990 2010-06-10 Martin Jambor <mjambor@suse.cz>
9992 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
9993 * dbgcnt.def (tree_sra): New counter.
9994 * tree-sra.c: Include dbgcnt.h.
9995 (gate_intra_sra): Check tree_sra debug counter.
9997 2010-06-10 Martin Jambor <mjambor@suse.cz>
9999 PR tree-optimization/44258
10000 * tree-sra.c (build_access_subtree): Return false iff there is a
10002 (build_access_trees): Likewise.
10003 (analyze_all_variable_accesses): Disqualify candidates if
10004 build_access_trees returns true for them.
10006 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
10009 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
10010 tail-recurse into canonical node. Fast-forward over
10011 non-canonical VALUEs.
10013 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
10016 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
10017 (*addsi_1_zext) <TYPE_LEA>: Likewise.
10018 (add lea splitter): Likewise.
10019 (add_zext lea splitter): Likewise.
10021 2010-06-10 Joseph Myers <joseph@codesourcery.com>
10023 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
10025 2010-06-10 Jan Hubicka <jh@suse.cz>
10027 * df-problems.c (df_live_problem_data): Add live_bitmaps.
10028 (df_live_alloc): Initialize problem data and live_osbtacks.
10029 (df_live_finalize): Remove obstack, problem data; do not
10031 (df_live_top_dump, df_live_bottom_dump): Do not dump old
10032 data when not allocated.
10033 (df_live_verify_solution_start): Do not allocate problem data.
10034 (df_live_verify_solution_end): Check if out is allocated.
10035 (struct df_md_problem_data): New structure.
10036 (df_md_alloc): Allocate problem data.
10037 (df_md_free): Free problem data; do not clear bitmaps.
10039 2010-06-10 Jan Beulich <jbeulich@novell.com>
10042 * configure.ac: Replace $() with ${} when intending to expand
10043 variables rather than invoking commands.
10044 * configure: Re-generate.
10046 2010-06-10 Jan Hubicka <jh@suse.cz>
10048 PR rtl-optimization/44460
10049 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
10050 TYPE_NEEDS_CONSTRUCTING sanity check.
10052 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
10054 * doc/include/fdl.texi: Move to GFDL version 1.3.
10056 * doc/cpp.texi: Move to GFDL version 1.3.
10057 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
10058 * doc/gccint.texi: Move to GFDL version 1.3.
10059 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
10060 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
10061 * doc/invoke.texi: Move to GFDL version 1.3.
10063 2010-06-09 Jan Hubicka <jh@suse.cz>
10065 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
10067 (propagate) ... here; swap the order.
10069 2010-06-09 Jan Hubicka <jh@suse.cz>
10071 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
10072 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
10073 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
10074 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
10076 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
10078 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
10079 Do not the gather memory reference in the outer loop if the step
10082 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
10084 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
10085 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
10086 8 to 4. Minor change of the related comments.
10088 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
10090 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
10091 the scev analysis when the variable is not used outside the loop
10092 in a close phi node: call compute_overall_effect_of_inner_loop.
10094 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
10096 * graphite-sese-to-poly.c (single_pred_cond): Renamed
10097 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
10098 (build_sese_conditions_before): Renamed call to single_pred_cond.
10099 (build_sese_conditions_after): Same.
10101 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
10103 * graphite-poly.h: Fix comments and indentation.
10104 * graphite-sese-to-poly.c: Same.
10105 (build_sese_conditions_before): Compute stmt and gbb only when needed.
10106 * tree-chrec.c: Fix comments and indentation.
10107 (tree-ssa-loop-niter.c): Same.
10109 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
10111 PR rtl-optimization/42461
10112 * dce.c (deletable_insn_p): Return true for const or pure calls again.
10113 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
10115 2010-06-09 Jan Hubicka <jh@suse.cz>
10117 * bitmap.c (bitmap_and): Walk array forward.
10118 (bitmap_and_compl_into): Likewise.
10119 (bitmap_xor): Likewise.
10120 (bitmap_xor_into): Likewise.
10121 (bitmap_equal_p): Likewise.
10122 (bitmap_intersect_p): Likewise.
10123 (bitmap_intersect_compl_p): Likewise.
10124 (bitmap_ior_and_into): Likewise.
10125 (bitmap_elt_copy): Likewise.
10126 (bitmap_and_compl): Likewise.
10127 (bitmap_elt_ior): Likewise.
10129 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
10131 * opts-common.c (prune_options): Ensure replacement argv array
10132 is correctly terminated by a NULL entry.
10134 2010-06-09 Jan Hubicka <jh@suse.cz>
10136 * cgraph.h (varpool_first_static_initializer,
10137 varpool_next_static_initializer): Make checking only when
10139 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
10140 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
10141 gcc_assert to gcc_checking_assert.
10142 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
10143 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
10144 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
10145 op_iter_init_phiuse, op_iter_init_phidef,
10146 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
10147 gcc_checking_assert.
10148 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
10149 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
10150 partition_is_global, live_on_entry, live_on_exit,
10151 live_merge_and_clear): Likewise.
10152 * system.h (gcc_checking_assert): New macro.
10153 * gimple.h (set_bb_seq): Use gcc_checking_assert.
10155 2010-06-09 Jason Merrill <jason@redhat.com>
10157 * Makefile.in (TAGS): Collect tags info from c-family.
10159 2010-06-09 Jan Hubicka <jh@suse.cz>
10161 * gimple.h (gcc_gimple_checking_assert): New macro.
10162 (gimple_set_def_ops, gimple_set_use_ops,
10163 gimple_set_vuse, gimple_set_vdef,
10164 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
10165 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
10166 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
10167 gimple_asm_output_op, gimple_asm_output_op_ptr,
10168 gimple_asm_set_output_op, gimple_asm_clobber_op,
10169 gimple_asm_set_clobber_op, gimple_asm_label_op,
10170 gimple_asm_set_label_op, gimple_try_set_kind,
10171 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
10172 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
10173 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
10174 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
10175 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
10176 gimple_omp_for_set_initial, gimple_omp_for_final,
10177 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
10178 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
10179 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
10180 conditional with ENABLE_GIMPLE_CHECKING.
10181 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
10183 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
10185 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
10186 (get_computation_cost_at): Use it.
10187 (determine_use_iv_cost_condition): Likewise.
10188 (determine_iv_cost): Likewise.
10190 2010-06-09 Richard Guenther <rguenther@suse.de>
10192 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
10195 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
10197 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
10199 2010-06-09 Martin Jambor <mjambor@suse.cz>
10201 PR tree-optimization/44423
10202 * tree-sra.c (dump_access): Dump also grp_assignment_read.
10203 (analyze_access_subtree): Pass negative allow_replacements to children
10204 if the current type is scalar.
10206 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
10209 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
10210 * doc/plugins.texi (Plugin license check): Update information
10211 on type of plugin_is_GPL_compatible.
10212 * Makefile.in (PLUGINCC): Define as $(COMPILER).
10213 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
10215 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
10217 * config/arm/arm.c (thumb2_reorg): New function.
10218 (arm_reorg): Call it.
10219 * config/arm/thumb2.md (define_peephole2 for flag clobbering
10220 arithmetic operations): Delete.
10222 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
10225 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
10228 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
10231 * gcc-plugin.h: Encapsulate all declarations in extern "C".
10233 2010-06-08 Jan Hubicka <jh@suse.cz>
10235 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
10236 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
10238 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
10240 PR tree-optimization/39874
10241 PR middle-end/28685
10242 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
10244 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
10245 same_bool_result_p): New.
10246 (and_var_with_comparison, and_var_with_comparison_1,
10247 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
10248 (or_var_with_comparison, or_var_with_comparison_1,
10249 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
10250 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
10251 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
10252 of combine_comparisons.
10253 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
10255 2010-06-08 Anatoly Sokolov <aesok@post.ru>
10257 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10258 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10259 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
10260 pdp11_function_value_regno_p): New functions.
10261 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10262 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10264 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
10266 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
10267 Thumb-2 in the MINUS case.
10269 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10271 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
10273 * doc/gty.texi (GTY Options): Document typed GC allocation and
10274 variable_size GTY option.
10276 * ggc-internal.h: New.
10278 * ggc.h: Update copyright year.
10279 (digit_string): Move to stringpool.c.
10280 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
10281 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
10282 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
10283 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
10284 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
10285 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
10286 (ggc_force_collect, ggc_get_size, ggc_statistics)
10287 (ggc_print_common_statistics): Move to ggc-internal.h.
10288 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
10289 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
10290 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
10291 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
10292 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
10293 (ggc_alloc_zone_pass_stat): Remove.
10294 (ggc_internal_alloc_stat, ggc_internal_alloc)
10295 (ggc_internal_cleared_alloc_stat): New.
10296 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
10297 (ggc_internal_vec_alloc_stat)
10298 (ggc_internal_cleared_vec_alloc_stat)
10299 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
10300 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
10301 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
10302 (ggc_cleared_alloc_ptr_array_two_args): New.
10303 (htab_create_ggc, splay_tree_new_ggc): Redefine.
10304 (ggc_splay_alloc): Change the type of the first argument to
10305 enum gt_types_enum.
10306 (ggc_alloc_string): Make macro.
10307 (ggc_alloc_string_stat): New.
10308 (ggc_strdup): Redefine.
10309 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
10310 (ggc_alloc_rtvec_sized): New.
10311 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
10312 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
10313 (ggc_internal_cleared_alloc_zone_stat)
10314 (ggc_internal_zone_alloc_stat)
10315 (ggc_internal_zone_cleared_alloc_stat)
10316 (ggc_internal_zone_vec_alloc_stat)
10317 (ggc_alloc_zone_rtx_def_stat)
10318 (ggc_alloc_zone_tree_node_stat)
10319 (ggc_alloc_zone_cleared_tree_node_stat)
10320 (ggc_alloc_cleared_gimple_statement_d_stat): New.
10322 * ggc-common.c: Include ggc-internal.h.
10323 (ggc_internal_cleared_alloc_stat): Rename from
10324 ggc_alloc_cleared_stat.
10325 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
10326 (ggc_calloc): Remove.
10327 (ggc_cleared_alloc_htab_ignore_args): New.
10328 (ggc_cleared_alloc_ptr_array_two_args): New.
10329 (ggc_splay_alloc): Add obj_type parameter.
10330 (init_ggc_heuristics): Formatting fixes.
10332 * ggc-none.c: Update copyright year.
10333 (ggc_alloc_stat): Rename to ggc_alloc_stat.
10334 (ggc_alloc_cleared_stat): Rename to
10335 ggc_internal_cleared_alloc_stat.
10336 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
10338 * ggc-page.c: Update copyright year. Include ggc-internal.h.
10339 Remove references to ggc_alloc in comments.
10340 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
10341 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
10342 (new_ggc_zone, destroy_ggc_zone): Remove.
10343 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
10345 * ggc-zone.c: Include ggc-internal.h. Remove references to
10346 ggc_alloc in comments.
10347 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
10348 (ggc_internal_alloc_zone_pass_stat): New.
10349 (ggc_internal_cleared_alloc_zone_stat): New.
10350 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
10351 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
10352 (new_ggc_zone, destroy_ggc_zone): Remove.
10354 * stringpool.c: Update copyright year. Include ggc-internal.h
10355 (digit_vector): Make static.
10356 (digit_string): Moved from ggc.h.
10357 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
10358 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
10360 * Makefile.in (GGC_INTERNAL_H): New.
10361 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
10362 $(GGC_INTERNAL_H) to dependencies.
10364 * gentype.c: Update copyright year.
10365 (walk_type): Accept variable_size GTY option.
10366 (USED_BY_TYPED_GC_P): New macro.
10367 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
10368 whitespace at the end of strings.
10369 (get_type_specifier, variable_size_p): New functions.
10370 (alloc_quantity, alloc_zone): New enums.
10371 (write_typed_alloc_def): New function.
10372 (write_typed_struct_alloc_def): Likewise.
10373 (write_typed_typed_typedef_alloc_def): Likewise.
10374 (write_typed_alloc_defns): Likewise.
10375 (output_typename, write_splay_tree_allocator_def): Likewise.
10376 (write_splay_tree_allocators): Likewise.
10377 (main): Call write_typed_alloc_defns and
10378 write_splay_tree_allocators.
10380 * lto-streamer.h (lto_file_decl_data_ptr): New.
10382 * passes.c (order): Define using cgraph_node_ptr.
10384 * strinpool.c (struct string_pool_data): Declare nested_ptr using
10387 * gimple.h (union gimple_statement_d): Likewise.
10389 * rtl.h (struct rtx_def): Likewise.
10390 (struct rtvec_def): Likewise.
10392 * tree.h (union tree_node): Likewise.
10394 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
10396 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
10398 * tree-scalar-evolution.c (scev_initialize): Likewise.
10400 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
10402 * dwarf2asm.c (dw2_force_const_mem): Likewise.
10404 * omp-low.c (lower_omp_critical): Likewise.
10406 * bitmap.h (struct bitmap_head_def): Update comment to not
10407 reference ggc_alloc.
10409 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
10411 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
10413 * ipa-prop.c (duplicate_ggc_array): Rename to
10414 duplicate_ipa_jump_func_array. Use typed GC allocation.
10415 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
10417 * gimple.c (gimple_alloc_stat): Use
10418 ggc_alloc_cleared_gimple_statement_d_stat.
10420 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
10422 * tree.c (make_node_stat): Use
10423 ggc_alloc_zone_cleared_tree_node_stat.
10424 (make_tree_vec_stat): Likewise.
10425 (build_vl_exp_stat): Likewise.
10426 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
10427 (make_tree_binfo_stat): Likewise.
10428 (tree_cons_stat): Likewise.
10430 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
10431 (shallow_copy_rtx_stat): Likewise.
10432 (make_node_stat): Likewise.
10434 * lto-symtab.c: Fix comment.
10436 * tree-cfg.c (create_bb): Update comment to not reference
10438 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
10440 * varpool.c (varpool_node): Use typed GC allocation.
10441 (varpool_extra_name_alias): Likewise.
10443 * varasm.c (emutls_decl): Likewise.
10444 (get_unnamed_section): Likewise.
10445 (get_noswitch_section): Likewise.
10446 (get_section): Likewise.
10447 (get_block_for_section): Likewise.
10448 (build_constant_desc): Likewise.
10449 (create_constant_pool): Likewise.
10450 (force_const_mem): Likewise.
10452 * tree.c (build_vl_exp_stat): Likewise.
10453 (build_real): Likewise.
10454 (build_string): Likewise.
10455 (decl_debug_expr_insert): Likewise.
10456 (decl_value_expr_insert): Likewise.
10457 (type_hash_add): Likewise.
10458 (build_omp_clause): Likewise.
10460 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
10462 * tree-ssa.c (init_tree_ssa): Likewise.
10464 * tree-ssa-structalias.c (heapvar_insert): Likewise.
10466 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
10468 * tree-ssa-loop-niter.c (record_estimate): Likewise.
10470 * tree-ssa-alias.c (get_ptr_info): Likewise.
10472 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
10474 * tree-phinodes.c (allocate_phi_node): Likewise.
10476 * tree-iterator.c (tsi_link_before): Likewise.
10477 (tsi_link_after): Likewise.
10479 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
10481 * tree-dfa.c (create_var_ann): Likewise.
10483 * tree-cfg.c (create_bb): Likewise.
10485 * toplev.c (alloc_for_identifier_to_locale): Likewise.
10486 (general_init): Likewise.
10488 * stringpool.c (stringpool_ggc_alloc): Likewise.
10489 (gt_pch_save_stringpool): Likewise.
10491 * sese.c (if_region_set_false_region): Likewise.
10493 * passes.c (do_per_function_toporder): Likewise.
10495 * optabs.c (set_optab_libfunc): Likewise.
10496 (set_conv_libfunc): Likewise.
10498 * lto-symtab.c (lto_symtab_register_decl): Likewise.
10500 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
10501 (input_eh_region): Likewise.
10502 (input_eh_lp): Likewise.
10503 (make_new_block): Likewise.
10504 (unpack_ts_real_cst_value_fields): Likewise.
10506 * lto-section-in.c (lto_new_in_decl_state): Likewise.
10508 * lto-cgraph.c (input_node_opt_summary): Likewise.
10510 * loop-init.c (loop_optimizer_init): Likewise.
10512 * lambda.h (lambda_vector_new): Likewise.
10514 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
10516 * ira.c (update_equiv_regs): Likewise.
10518 * ipa.c (cgraph_node_set_new): Likewise.
10519 (cgraph_node_set_add): Likewise.
10520 (varpool_node_set_new): Likewise.
10521 (varpool_node_set_add): Likewise.
10523 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
10524 (duplicate_ipa_jump_func_array): Likewise.
10525 (ipa_read_node_info): Likewise.
10527 * ipa-cp.c (ipcp_create_replace_map): Likewise.
10529 * integrate.c (get_hard_reg_initial_val): Likewise.
10531 * gimple.c (gimple_alloc_stat): Likewise.
10532 (gimple_build_omp_for): Likewise.
10533 (gimple_seq_alloc): Likewise.
10534 (gimple_copy): Likewise.
10536 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
10537 (gsi_insert_after_without_update): Likewise.
10539 * function.c (add_frame_space): Likewise.
10540 (insert_temp_slot_address): Likewise.
10541 (assign_stack_temp_for_type): Likewise.
10542 (allocate_struct_function): Likewise.
10543 (types_used_by_var_decl_insert): Likewise.
10545 * except.c (init_eh_for_function): Likewise.
10546 (gen_eh_region): Likewise.
10547 (gen_eh_region_catch): Likewise.
10548 (gen_eh_landing_pad): Likewise.
10549 (add_call_site): Likewise.
10551 * emit-rtl.c (get_mem_attrs): Likewise.
10552 (get_reg_attrs): Likewise.
10553 (start_sequence): Likewise.
10554 (init_emit): Likewise.
10556 * dwarf2out.c (new_cfi): Likewise.
10557 (queue_reg_save): Likewise.
10558 (dwarf2out_frame_init): Likewise.
10559 (new_loc_descr): Likewise.
10560 (find_AT_string): Likewise.
10561 (new_die): Likewise.
10562 (add_var_loc_to_decl): Likewise.
10563 (clone_die): Likewise.
10564 (clone_as_declaration): Likewise.
10565 (break_out_comdat_types): Likewise.
10566 (new_loc_list): Likewise.
10567 (loc_descriptor): Likewise.
10568 (add_loc_descr_to_each): Likewise.
10569 (add_const_value_attribute): Likewise.
10570 (tree_add_const_value_attribute): Likewise.
10571 (add_comp_dir_attribute): Likewise.
10572 (add_name_and_src_coords_attributes): Likewise.
10573 (lookup_filename): Likewise.
10574 (store_vcall_insn): Likewise.
10575 (dwarf2out_init): Likewise.
10577 * dbxout.c (dbxout_init): Likewise.
10579 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10581 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10583 * config/score/score7.c (score7_output_external): Likewise.
10585 * config/score/score3.c (score3_output_external): Likewise.
10587 * config/s390/s390.c (s390_init_machine_status): Likewise.
10589 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
10590 (rs6000_init_machine_status): Likewise.
10591 (output_toc): Likewise.
10593 * config/pa/pa.c (pa_init_machine_status): Likewise.
10594 (get_deferred_plabel): Likewise.
10596 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
10598 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
10600 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
10602 * config/mep/mep.c (mep_init_machine_status): Likewise.
10603 (mep_note_pragma_flag): Likewise.
10605 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
10607 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
10609 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
10611 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
10612 (i386_pe_maybe_record_exported_symbol): Likewise.
10614 * config/i386/i386.c (get_dllimport_decl): Likewise.
10615 (ix86_init_machine_status): Likewise.
10616 (assign_386_stack_local): Likewise.
10618 * config/frv/frv.c (frv_init_machine_status): Likewise.
10620 * config/darwin.c (machopic_indirection_name): Likewise.
10622 * config/cris/cris.c (cris_init_machine_status): Likewise.
10624 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
10626 * config/avr/avr.c (avr_init_machine_status): Likewise.
10628 * config/arm/arm.c (arm_init_machine_status): Likewise.
10630 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
10631 (alpha_need_linkage): Likewise.
10632 (alpha_use_linkage): Likewise.
10634 * cgraph.c (cgraph_allocate_node): Likewise.
10635 (cgraph_create_edge_1): Likewise.
10636 (cgraph_create_indirect_edge): Likewise.
10637 (cgraph_add_asm_node): Likewise.
10639 * cfgrtl.c (init_rtl_bb_info): Likewise.
10641 * cfgloop.c (alloc_loop): Likewise.
10642 (rescan_loop_exit): Likewise.
10644 * cfg.c (init_flow): Likewise.
10645 (alloc_block): Likewise.
10646 (unchecked_make_edge): Likewise.
10648 * c-parser.c (c_parse_init): Likewise.
10649 (c_parse_file): Likewise.
10651 * c-decl.c (bind): Likewise.
10652 (record_inline_static): Likewise.
10653 (push_scope): Likewise.
10654 (make_label): Likewise.
10655 (lookup_label_for_goto): Likewise.
10656 (finish_struct): Likewise.
10657 (finish_enum): Likewise.
10658 (c_push_function_context): Likewise.
10660 * bitmap.c (bitmap_element_allocate): Likewise.
10661 (bitmap_gc_alloc_stat): Likewise.
10663 * alias.c (record_alias_subset): Likewise.
10664 (init_alias_analysis): Likewise.
10666 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
10668 * fold-const.c (fold_comparison): Remove redundant parenthesis.
10669 * tree-inline.c (expand_call_inline): Pass translated return value of
10670 cgraph_inline_failed_string to diagnostic function.
10672 2010-06-08 Andrew Pinski <pinskia@gmail.com>
10673 Shujing Zhao <pearly.zhao@oracle.com>
10676 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
10677 implicit bad conversions is initialization.
10678 (error_init): Use gmsgid instead of msgid for argument name and change
10679 the call for error.
10680 (pedwarn_init): Use gmsgid instead of msgid for argument name and
10681 change the call for pedwarn.
10682 (warning_init): Use gmsgid instead of msgid for argument name and
10683 change the call for warning.
10685 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
10687 * config/mips/mips-protos.h (mips_print_operand): Delete.
10688 (mips_print_operand_address): Delete.
10689 * config/mips/mips.h (mips_print_operand_punct): Delete.
10690 (PRINT_OPERAND): Delete.
10691 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10692 (PRINT_OPERAND_ADDRESS): Delete.
10693 * config/mips/mips.c (mips_print_operand_punct): Make static.
10694 (mips_print_operand_address): Make static.
10695 (mips_print_operand): Make static. Call
10696 mips_print_operand_punct_valid_p.
10697 (mips_print_operand_punct_valid_p): New function.
10698 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10699 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10701 2010-06-07 Jan Hubicka <jh@suse.cz>
10703 PR middle-end/44454
10704 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
10707 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
10709 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
10712 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10714 * doc/sourcebuild.texi (Effective-Target Keywords, Other
10715 attributes): Document gas.
10717 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
10719 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
10720 <TYPE_LEA>: Split instruction.
10721 <default>: Remove alternative 2 handling.
10722 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
10723 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
10724 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
10726 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
10727 (ashift_zext lea splitter): Use DImode for multiplication.
10729 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
10730 to generate addition.
10732 2010-06-07 Joseph Myers <joseph@codesourcery.com>
10734 * common.opt (fira-verbose): Use Var.
10735 (fpcc-struct-return): Use Init instead of VarExists.
10736 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
10738 * flags.h (flag_signed_char, flag_short_enums,
10739 flag_pcc_struct_return, flag_ira_verbose,
10740 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
10741 * toplev.c (flag_detailed_statistics, flag_signed_char,
10742 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
10743 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
10744 * toplev.h (flag_crossjumping, flag_if_conversion,
10745 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
10746 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
10747 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
10748 flag_cprop_registers, time_report, flag_ira_loop_pressure,
10749 flag_ira_coalesce, flag_ira_move_spills,
10750 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
10752 2010-06-07 Jan Hubicka <jh@suse.cz>
10754 * df-core.c (df_analyze_problem): Do verification after allocation.
10756 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
10757 (df_lr_alloc): Initialize problem data; move bitmaps to
10758 lr_bitmaps obstack.
10759 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
10760 (df_lr_verify_solution_start): Do not initialize problem data;
10761 allocate bitmaps in lr_bitmaps.
10762 (df_lr_verify_solution_end): Do not free problem data.
10764 2010-06-07 Jan Hubicka <jh@suse.cz>
10766 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
10767 if caller is noreturn.
10768 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
10769 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
10770 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
10771 * ipa-pure-const.c (check_decl): Add IPA parameter.
10772 (state_from_flags): New function.
10773 (better_state, worse_state): New functions.
10774 (check_call): When in IPA mode, do not care about callees.
10775 (check_load, check_store): Update.
10776 (check_ipa_load, check_ipa_store): New.
10777 (check_stmt): When in IPA mode, use IPA checkers.
10778 (analyze_function): Use state_from_flags.
10779 (propagate): Check indirect edges and references.
10781 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
10783 PR rtl-optimization/44404
10784 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
10785 of count_occurrences to see if it's safe to modify mem_insn.
10787 2010-06-07 Richard Guenther <rguenther@suse.de>
10789 * gimplify.c (gimplify_cleanup_point_expr): For empty body
10790 and EH-only cleanup drop the cleanup instead of inserting it
10793 2010-06-07 Ira Rosen <irar@il.ibm.com>
10795 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
10797 * targhooks.c (default_builtin_vectorization_cost): New function.
10798 * targhooks.h (default_builtin_vectorization_cost): Declare.
10799 * target.h (enum vect_cost_for_stmt): Define.
10800 (builtin_vectorization_cost): Change argument and comment.
10801 * tree-vectorizer.h: Remove cost model macros.
10802 * tree-vect-loop.c: Include target.h.
10803 (vect_get_cost): New function.
10804 (vect_estimate_min_profitable_iters): Replace cost model macros with
10805 calls to vect_get_cost.
10806 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
10807 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
10808 default implementation.
10809 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
10810 calls to target hook builtin_vectorization_cost.
10811 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
10813 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
10814 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
10815 implementation to return costs.
10816 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
10817 * config/spu/spu.h: Remove vectorizer cost model macros.
10818 * config/i386/i386.h: Likewise.
10819 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
10820 a call to target hook builtin_vectorization_cost.
10822 2010-06-06 Sriraman Tallam <tmsriram@google.com>
10825 * config/i386/i386.c (override_options): Turn zee pass on for level 2
10826 and above and defer till target is known.
10827 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
10828 turn off otherwise.
10830 2010-05-25 Jan Hubicka <jh@suse.cz>
10832 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
10833 (df_compact_blocks): Likewise.
10834 * df.h (struct df): Turn hardware_regs_used,
10835 regular_block_artificial_uses, eh_block_artificial_uses,
10836 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
10838 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
10839 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
10840 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
10841 df_scan_blocks, df_insn_delete, df_insn_rescan,
10842 df_insn_rescan_debug_internal, df_insn_rescan_all,
10843 df_process_deferred_rescans, df_process_deferred_rescans,
10844 df_notes_rescan, df_get_call_refs, df_get_call_refs,
10845 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
10846 df_record_entry_block_defs, df_record_exit_block_uses,
10847 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
10848 df_scan_verify): Update.
10850 2010-05-25 Dodji Seketeli <dodji@redhat.com>
10853 * c-common.c (is_typedef_decl): Move this definition ...
10854 * tree.c (is_typedef_decl): ... here.
10855 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
10856 * c-common.h (is_typedef_decl): Move this declaration ...
10857 * tree.h (is_typedef_decl): ... here.
10858 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
10859 * dwarf2out.c (is_naming_typedef_decl): New function.
10860 (gen_tagged_type_die): Split out of ...
10861 (gen_type_die_with_usage): ... this function. When an anonymous
10862 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
10863 is emitted for the typedef.
10864 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
10865 anonymous tagged types.
10867 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
10870 * c-decl.c (grokdeclarator): Delete warning.
10872 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
10874 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
10875 newly built CALL_EXPR.
10876 * tree-profile.c (tree_profiling): Don't profile functions produced
10877 for built-in stuff.
10879 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
10883 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
10884 endianness-independent.
10886 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
10888 * c-common.c: Move to c-family/.
10889 * c-common.def: Likewise.
10890 * c-common.h: Likewise.
10891 * c-cppbuiltin.c: Likewise.
10892 * c-dump.c: Likewise.
10893 * c-format.c: Likewise.
10894 * c-format.h : Likewise.
10895 * c-gimplify.c: Likewise.
10896 * c-lex.c: Likewise.
10897 * c-omp.c: Likewise.
10899 * c-opts.c: Likewise.
10900 * c-pch.c: Likewise.
10901 * c-ppoutput.c: Likewise.
10902 * c-pragma.c: Likewise.
10903 * c-pragma.h: Likewise.
10904 * c-pretty-print.c: Likewise.
10905 * c-pretty-print.h: Likewise.
10906 * c-semantics.c: Likewise.
10907 * stub-objc.c: Likewise.
10909 * gengtype.c (get_file_langdir): Special-case files in c-family/.
10910 (get_output_file_with_visibility): Fix name for c-common.h.
10911 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
10913 * c-tree.h: Update include path for moved files.
10914 * c-lang.c: Likewise.
10915 * c-lang.h: Likewise.
10916 * c-parser.c: Likewise.
10917 * c-convert.c: Likewise.
10918 * c-decl.c: Likewise.
10919 * c-objc-common.c: Likewise.
10920 * configure.ac: Make sure c-family/ exists in the build directory.
10921 * configure: Regenerate.
10922 * Makefile.in: Update paths for moved files. Regroup files per
10923 location and update dependencies. Move generated_files down after
10926 * config/spu/spu-c.c: Update paths for moved files.
10927 * config/mep/mep-pragma.c: Likewise.
10928 * config/darwin-c.c: Likewise.
10929 * config/i386/msformat-c.c: Likewise.
10930 * config/i386/i386-c.c: Likewise.
10931 * config/avr/avr-c.c: Likewise.
10932 * config/sol2-c.c: Likewise.
10933 * config/ia64/ia64-c.c: Likewise.
10934 * config/rs6000/rs6000-c.c: Likewise.
10935 * config/arm/arm.c: Likewise.
10936 * config/arm/arm-c.c: Likewise.
10937 * config/h8300/h8300.c: Likewise.
10938 * config/v850/v850-c.c: Likewise.
10940 * config/t-darwin: Fix dependencies for moved files.
10941 * config/t-sol2: Fix dependencies for moved files.
10942 * config/mep/t-mep: Fix dependencies for moved files.
10943 * config/ia64/t-ia64: Fix dependencies for moved files.
10944 * config/rs6000/t-rs6000: Fix dependencies for moved files.
10945 * config/v850/t-v850: Fix dependencies for moved files.
10946 * config/v850/t-v850e: Fix dependencies for moved files.
10948 * config/m32c/m32c-pragma.c
10950 * po/exgettext: Look in c-family/ also.
10952 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
10954 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
10955 (mark_control_dependent_edges_necessary): Call it instead of marking
10956 the last statement manually.
10957 (propagate_necessity): Likewise.
10959 2010-06-05 Jan Hubicka <jh@suse.cz>
10961 * basic-block.h (compute_dominance_frontiers): Updated.
10962 (compute_idf): Likewise.
10964 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
10965 for dominance frontiers.
10966 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
10967 (insert_updated_phi_nodes_for): Likewise.
10968 (update_ssa): Likewise.
10969 * cfganal.c (compute_dominance_frontiers_1): Likewise.
10970 (compute_dominance_frontiers): Likewise.
10971 (compute_idf): Likewise.
10972 * df-problems.c (df_md_local_compute): Likewise.
10974 2010-06-05 Anatoly Sokolov <aesok@post.ru>
10976 * target.h (struct gcc_target): Add memory_move_cost field.
10977 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
10978 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
10979 * targhooks.c (default_memory_move_cost): New function.
10980 * targhooks.h (default_memory_move_cost): Declare function.
10981 * reload.h (memory_move_cost): Declare.
10982 (memory_move_secondary_cost): Change type of 'in' argument to bool.
10983 * reginfo.c (memory_move_cost): New function.
10984 (memory_move_secondary_cost): Change type of 'in' argument to bool.
10985 * ira.h (ira_memory_move_cost): Update comment.
10986 * ira.c (ira_memory_move_cost): Update comment.
10987 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
10988 with memory_move_cost.
10989 * postreload.c (reload_cse_simplify_set): (Ditto.).
10990 * reload1.c (choose_reload_regs): (Ditto.).
10991 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
10992 (MEMORY_MOVE_COST): Revise documentation.
10994 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
10995 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
10996 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
10997 type of 'in' argument to bool.
10998 (TARGET_MEMORY_MOVE_COST): Define.
11000 2010-06-05 Jan Hubicka <jh@suse.cz>
11002 * ipa-pure-const.c (propagate): Fix typo in handling of functions
11003 that cannot return. Be more careful when merging the results with
11004 previously known ones.
11006 2010-06-05 Matthias Klose <doko@ubuntu.com>
11008 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
11009 function to add the -iplugindir option.
11010 (find_plugindir_spec_function): Add new declaration and function.
11011 (static_spec_func): Use it for "find-plugindir".
11013 2010-06-05 Jakub Jelinek <jakub@redhat.com>
11016 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
11017 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
11018 statement expression.
11020 2010-06-05 Jan Hubicka <jh@suse.cz>
11022 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
11023 (df_rd_problem_data): Convert sparse_invalidated_by_call,
11024 dense_invalidated_by_call to bitmap head.
11025 (df_rd_alloc, df_rd_bb_local_compute_process_def,
11026 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
11027 df_rd_start_dump, df_lr_verify_transfer_functions,
11028 df_live_verify_transfer_functions, df_chain_create_bb,
11029 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
11030 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
11031 df_simulate_one_insn_forwards, df_md_alloc,
11032 df_md_bb_local_compute_process_def,
11033 df_md_bb_local_compute_process_def, df_md_local_compute,
11034 df_md_transfer_function df_md_free): Update.
11036 2010-06-05 Joseph Myers <joseph@codesourcery.com>
11039 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
11040 target type for ADDR_EXPR; require no changes to qualifiers except
11041 for function types.
11042 * c-tree.h (c_build_type_variant): Remove.
11044 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
11046 * genautomata.c (get_excl_set): Do work per element, not per char.
11047 (check_presence_pattern_sets): Similar.
11048 (check_absence_pattern_sets): Similar.
11050 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
11052 * genautomata.c (curr_state_pass_num): Delete.
11053 (min_issue_delay_pass_states): Delete.
11054 (min_issue_delay): Delete.
11055 (initiate_min_issue_delay_pass_states): Delete.
11056 (output_min_issue_delay_table): Compute min_issue_delay_vect
11057 using a breadth-first search variant.
11058 (output_tables): Don't call initiate_min_issue_delay_pass_states.
11060 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
11063 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
11064 (df_byte_lr_bb_local_compute): Likewise.
11066 2010-06-03 Jason Merrill <jason@redhat.com>
11068 Implement noexcept operator (5.3.7)
11069 * c-common.c (c_common_reswords): Add noexcept.
11070 * c-common.h (enum rid): Add RID_NOEXCEPT.
11072 2010-06-04 Joseph Myers <joseph@codesourcery.com>
11074 * config/darwin-driver.c (darwin_default_min_version): Use
11075 GCC-specific formats in diagnostics.
11076 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
11078 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
11079 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
11080 eval_spec_function, handle_braces, process_brace_body, main,
11081 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
11082 getenv_spec_function, compare_version_strings,
11083 version_compare_spec_function): Use GCC-specific formats in
11086 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
11088 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
11089 that operand 0 and operand 1 are equal.
11090 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
11091 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
11092 and operand 1 are equal.
11093 <default>: Ditto. Remove ??? comment.
11094 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
11095 and operand 1 are equal.
11096 <default>: Ditto. Remove ??? comment.
11097 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
11099 (*add<mode>_4) <default>: Ditto.
11100 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
11102 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
11104 * config/i386/i386-protos.h (ix86_print_operand): Declare.
11105 * config/i386/i386.c (ix86_print_operand): Make non-static.
11106 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
11107 * output.h (output_operand): Declare.
11108 * final.c (output_operand): Make non-static.
11110 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
11112 PR rtl-optimization/44013
11113 * sched-deps.c (add_dependence_list_and_free): Don't free lists
11114 when processing debug insns.
11117 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
11118 recursing. Check that recursion is bounded. Rename inner var
11119 to avoid hiding incoming argument.
11121 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
11123 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
11124 operands[2] == 255.
11128 (*addqi_ext_1_rex64): Ditto.
11129 (*addqi_ext_1): Ditto.
11131 (*addqi_4): Check for incdec_operand in QImode.
11133 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
11134 using SWI mode iterator.
11135 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
11136 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
11138 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
11139 using SWI mode iterator.
11141 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
11144 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
11145 * c-format.c (gcc_diag_flag_specs): Add hash.
11146 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
11147 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
11148 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
11149 pp_c_cv_qualifiers. Handle qualifiers spelling here.
11150 (pp_c_type_qualifier_list): Call the function above.
11151 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
11152 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
11153 (WARN_FOR_QUALIFIERS): New macro.
11154 (convert_for_assignment): Use it.
11156 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
11158 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
11160 2010-06-04 Jan Hubicka <jh@suse.cz>
11162 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
11163 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
11164 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
11165 DF_BYTE_LR_OUT): Update for embedded bitmaps.
11166 * fwprop.c (single_def_use_enter_block): Likewise.
11167 * ddg.c (create_ddg_dep_from_intra_loop_link,
11168 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
11169 * loop-iv.c (latch_dominating_def): Likewise.
11170 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
11171 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
11172 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
11173 df_rd_transfer_function, df_rd_top_dump,
11174 df_rd_bottom_dump): Update.
11175 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
11176 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
11177 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
11178 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
11179 df_lr_verify_solution_start, df_lr_verify_solution_end,
11180 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
11181 df_live_free_bb_info, df_live_alloc, df_live_reset,
11182 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
11183 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
11184 df_live_verify_solution_start, df_live_verify_solution_end,
11185 df_live_verify_transfer_functions, df_chain_create_bb,
11186 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
11187 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
11188 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
11189 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
11190 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
11191 df_byte_lr_transfer_function, df_byte_lr_top_dump,
11192 df_byte_lr_bottom_dump, df_create_unused_note,
11193 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
11194 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
11195 df_md_transfer_function, df_md_init, df_md_confluence_0,
11196 df_md_confluence_n,
11197 df_md_top_dump, df_md_bottom_dump): Update.
11198 (struct df_lr_problem_data): Embedd bitmap headers.
11200 2010-06-04 Jan Hubicka <jh@suse.cz>
11202 * dce.c (dce_process_block): Do not re-scan already marked
11205 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
11207 PR rtl-optimization/39871
11208 PR rtl-optimization/40615
11209 PR rtl-optimization/42500
11210 PR rtl-optimization/42502
11211 * ira.c (init_reg_equiv_memory_loc: New function.
11212 (ira): Call it twice.
11213 * reload.h (calculate_elim_costs_all_insns): Declare.
11214 * ira-costs.c: Include "reload.h".
11215 (regno_equiv_gains): New static variable.
11216 (init_costs): Allocate it.
11217 (finish_costs): Free it.
11218 (ira_costs): Call calculate_elim_costs_all_insns.
11219 (find_costs_and_classes): Take estimated elimination costs
11221 (ira_adjust_equiv_reg_cost): New function.
11222 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
11223 * reload1.c (init_eliminable_invariants, free_reg_equiv,
11224 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
11225 (elim_bb): New static variable.
11226 (reload): Move code out of here into init_eliminable_invariants and
11227 free_reg_equiv. Call them.
11228 (calculate_elim_costs_all_insns): New function.
11229 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
11230 all callers changed. If FOR_COSTS is true, don't call alter_reg,
11231 but call note_reg_elim_costly if we turned a valid memory address
11232 into an invalid one.
11233 * Makefile.in (ira-costs.o): Depend on reload.h.
11235 2010-06-04 Julian Brown <julian@codesourcery.com>
11237 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
11240 2010-06-04 Richard Guenther <rguenther@suse.de>
11243 * cgraph.h (struct varpool_node): Add lto_file_data field.
11244 * lto-cgraph.c (input_varpool_node): Initialize it.
11246 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
11248 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
11249 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
11250 predicate in "type" attribute calculation.
11251 (*addsi_1_zext): Ditto.
11252 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
11253 (*addsi_2_zext): Ditto.
11254 (*add<mode>_3): Ditto.
11255 (*addsi_3_zext): Ditto.
11256 (*add<mode>_5): Ditto.
11258 2010-06-03 Jan Hubicka <jh@suse.cz>
11260 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
11262 * cfganal.c (compute_dominance_frontiers_1): Likewise.
11264 2010-06-03 Jan Hubicka <jh@suse.cz>
11266 * df-problems.c (df_create_unused_note, df_note_bb_compute):
11267 micro-optimize the checks when to add new note.
11269 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
11271 * final.c (output_asm_insn): Call
11272 targetm.asm_out.print_operand_punct_valid_p. Update comments.
11273 (output_operand): Call targetm.asm_out.print_operand. Update comments.
11274 (output_address): Call targetm.asm_out.print_operand_address.
11276 * target.h (struct gcc_target): Add print_operand,
11277 print_operand_address, and print_operand_punct_valid_p fields.
11278 * targhooks.h (default_print_operand): Declare.
11279 (default_print_operand_address): Declare.
11280 (default_print_operand_punct_valid_p): Declare.
11281 * targhooks.c (default_print_operand): Define.
11282 (default_print_operand_address): Define.
11283 (default_print_operand_punct_valid_p): Define.
11284 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
11285 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
11286 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
11287 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
11288 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
11289 * vmsdbgout.c (addr_const_to_string): Update comment.
11290 * config/i386/i386.c (print_operand): Rename to...
11291 (ix86_print_operand): ...this. Make static.
11292 (print_operand_address): Rename to...
11293 (ix86_print_operand_address): ...this. Make static. Call
11294 ix86_print_operand instead of PRINT_OPERAND.
11295 (ix86_print_operand_punct_valid_p): New function.
11296 (TARGET_PRINT_OPERAND): Define.
11297 (TARGET_PRINT_OPERAND_ADDRESS): Define.
11298 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11299 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
11300 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11301 (PRINT_OPERAND): Delete.
11302 (PRINT_OPERAND_ADDRESS): Delete.
11303 * config/i386/i386-protos.h (print_operand): Delete prototype.
11304 (print_operand_address): Delete prototype.
11306 2010-06-03 Richard Guenther <rguenther@suse.de>
11308 PR tree-optimization/44403
11309 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11310 Preserve pointer qualifiers.
11311 (vect_create_data_ref_ptr): Likewise.
11313 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
11316 * defaults.h (MAX_FIXED_MODE_SIZE): New.
11318 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
11320 2010-06-03 Jakub Jelinek <jakub@redhat.com>
11323 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
11324 return false if merging the bbs would lead to goto_locus
11325 location being lost from the IL.
11327 2010-06-03 Jan Hubicka <jh@suse.cz>
11328 Jakub Jelinek <jakub@redhat.com>
11330 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
11331 set->regs[i] is NULL or has just one entry.
11333 2010-06-03 Jan Hubicka <jh@suse.cz>
11335 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
11336 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
11338 2010-06-03 Paul Brook <paul@codesourcery.com>
11340 * config/arm/arm.c (FL_TUNE): Define.
11341 (arm_default_cpu, arm_cpu_select): Remove.
11342 (all_cores): Populate core field.
11343 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
11344 (arm_find_cpu): New function.
11345 (arm_handle_option): Lookup cpu/architecture names.
11346 (arm_override_options): Cleanup mcpu/march/mtune handling.
11347 (arm_file_start): Ditto.
11349 2010-06-03 Alan Modra <amodra@gmail.com>
11352 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
11353 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
11354 rtx to gen_load_toc_v4_PIC_1b. Tidy.
11355 (rs6000_emit_load_toc_table): Likewise.
11357 2010-06-02 Jan Hubicka <jh@suse.cz>
11359 * passes.c (init_optimization_passes): Put ipa reference
11360 after ipa pure-const.
11362 2010-06-02 Jan Hubicka <jh@suse.cz>
11364 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
11365 calls_read_all and calls_write_all.
11366 (get_reference_optimization_summary): Fix formatting.
11367 (is_proper_for_analysis): Check that decl is not readonly.
11368 (propagate_bits): Check CONST/PURE/noreturn flags.
11369 (ipa_init): Move all_module_statics to optimization_summary_obstack.
11370 (analyze_function): Ignore indirect edges.
11371 (copy_global_bitmap): For all module statics, do nothing.
11372 (generate_summary): Do not print calls_read_all/calls_write_all.
11373 (read_write_all_from_decl): Take node as argument; check
11374 cgraph_node_cannot_return.
11375 (propagate): Reorganize read_all/write_all computation;
11376 check indirect edges; check ecf flags; use all_module_statics
11377 in the results; do not free all_module_statics.
11378 (stream_out_bitmap): Handle all_module_statics.
11379 (ipa_reference_write_optimization_summary): Likewise; use
11380 varpool/cgraph encoders to get boundaries.
11381 (ipa_reference_read_optimization_summary): Read in all_module_statics;
11382 use it when possible.
11384 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11387 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
11388 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
11390 * doc/extend.texi (powerpc builtins): Document vec_recip,
11391 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
11393 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
11394 (rs6000_emit_swrsqrt): Ditto.
11395 (rs6000_emit_swdivsf): Delete.
11396 (rs6000_emit_swdivdf): Ditto.
11397 (rs6000_emit_swrsqrtsf): Ditto.
11399 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
11400 describe the reciprocal estimate support for each type.
11401 (recip_options): Map -mrecip=<opt> into option bits.
11402 (gen_2arg_fn_t): New typedef for binary rtx gen function.
11403 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
11404 reciprocal estimate instructions.
11405 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
11406 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
11407 Set up rs6000_recip_bits based on the -mrecip* options. Print the
11408 cost information if -mdebug=cost or -mdebug=reg.
11409 (rs6000_override_options): Set -mrecip-precision for power6, and
11410 power7 machines. If -mvsx or -mdfp, enable various options that
11411 came in previous instruction set ISAs, unless the option was
11412 explicitly disabled by the command line option. Parse
11413 -mrecip=<opt> options.
11414 (rs6000_builtin_vectorized_function): Add support for vectorizing
11415 the reciprocal estimate builtins and expansions.
11416 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
11417 (bdesc_2arg): Add reciprocal estimate builtins.
11418 (bdesc_1arg): Add reciprocal square root estimate builtins.
11419 (rs6000_expand_builtin): Rewrite to use a switch statement,
11420 instead of multiple if/then/elses. Add reciprocal estimate builtins.
11421 (rs6000_init_builtins): Create declarations for reciprocal
11423 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
11424 sized, prefer traditional floating point registers, if integer
11425 vector types, prefer altivec registers. Don't actually look at
11426 the memory address any more.
11427 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
11429 (rs6000_load_constant_and_splat): New helper function to load up
11430 the constant for reciprocal estimate instructions.
11431 (rs6000_emit_madd): New helper function for generating
11432 multiply/add type instructions, based on the current switches.
11433 (rs6000_emit_msub): Ditto.
11434 (rs6000_emit_mnsub): Ditto.
11435 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
11436 replace a divide with a reciprocal estimate and fixup, adding
11437 support for machines with high precision and vectors.
11438 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
11439 low precision machines.
11440 (rs6000_emit_swdiv): New common function to be called to replace a
11441 division with reciprocal estimate and fixup.
11442 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
11443 for double and vector types. Add support for high precision machines.
11445 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
11446 the reciprocal estimate instructions can be generated.
11447 (TARGET_FRE): Ditto.
11448 (TARGET_FRSQRTES): Ditto.
11449 (TARGET_FRSQRTE): Ditto.
11450 (RS6000_RECIP_*): New macros for reciprocal estimate support.
11452 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
11453 square root estimate on vectors.
11454 (re<mode>2): New insn for reciprocal division estimate on vectors.
11456 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
11458 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
11459 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
11460 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
11461 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
11462 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
11463 (RS6000_BUILTIN_RSQRT): Ditto.
11464 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
11465 floating point builtin.
11467 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
11468 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
11469 __RECIP_PRECISION__ based on the command line switches.
11470 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
11472 * config/rs6000/rs6000.opt (-mrecip): Document add support for
11473 replacing division instructions with reciprocal estimate and fixup.
11474 (-mrecip=<opt>): New option.
11475 (-mrecip-precision): Ditto.
11477 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
11478 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
11479 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
11482 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
11483 (UNSPEC_VREFP): Ditto.
11484 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
11485 conterparts with regard to support of -mno-fused-madd and -ffast-math.
11486 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
11487 reciprocal estimate instructions to be generated.
11488 (altivec_vrefp): Ditto.
11490 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
11492 (rreg): New mode attribute for reciprocal estimate support.
11493 (recip<mode>3): New insn for division using reciprocal estimate
11494 and fixup builtins.
11495 (divide define_split): New define_split to convert floating point
11496 division to use reciprocal estimate if the user used the
11497 appropriate options and the split is run when we can add new
11498 pseudo registers for the fixup.
11499 (rsqrt<mode>2): New insn for reciprocal square root support.
11500 (recipsf3): Move into recip<mode>3.
11502 (fres): Use TARGET_FRES.
11503 (rsqrtsf2): Move into rsqrt<mode>2.
11504 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
11505 (copysignsf3): Add support for VSX.
11506 (fred): Use TARGET_FRE.
11508 (rsqrtdf_internal1): New function for frsqrte instruciton.
11510 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
11511 (vec_rsqrt): Ditto.
11513 2010-06-03 Richard Guenther <rguenther@suse.de>
11515 PR middle-end/44291
11516 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
11517 (set_user_assembler_libfunc): Likewise.
11519 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
11521 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
11523 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
11525 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
11526 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
11527 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
11528 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
11529 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
11530 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
11531 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
11532 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
11533 * defaults.h: Updated for above mentioned changes.
11535 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
11537 * c-common.c: Remove header include of tm_p.h.
11538 * Makefile.in (c-common.o): Remove TM_P_H dependency.
11540 2010-06-02 Jakub Jelinek <jakub@redhat.com>
11542 * tree.h (struct tree_decl_map): New type.
11543 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
11544 (tree_decl_map_hash): New prototype.
11545 (debug_expr_for_decl, value_expr_for_decl): Change into
11546 tree_decl_map hashtab from tree_map.
11547 (init_ttree): Adjust initialization.
11548 (tree_decl_map_hash): New function.
11549 (decl_debug_expr_lookup, decl_debug_expr_insert,
11550 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
11552 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11554 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
11556 * configure: Regenerate.
11557 * config.in: Regenerate.
11559 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
11560 (X86_64_EMULATION): Define.
11561 (TARGET_LD_EMULATION): Use them.
11563 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
11564 (SPARC64_EMULATION): Define.
11565 (LINK_ARCH_SPEC): Use them.
11567 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
11569 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
11570 smallest_mode_for_size for computing the precision types of new
11571 graphite IVs. Do not call lang_hooks.types.type_for_size.
11573 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
11575 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
11577 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
11579 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
11581 PR middle-end/44363
11582 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
11583 return false instead.
11585 2010-06-02 Jan Hubicka <jh@suse.cz>
11587 PR middle-end/44295
11588 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
11589 create new cgraph node to check callee.
11591 2010-06-02 Richard Guenther <rguenther@suse.de>
11593 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
11595 2010-06-02 Richard Guenther <rguenther@suse.de>
11597 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
11598 (lto_wrapper_cleanup): ... this. Do not exit.
11599 (fatal): Adjust. Exit here.
11600 (fatal_perror): Likewise.
11601 (fatal_signal): New function.
11602 (main): Set up signal handlers to cleanup temporary files.
11603 * Makefile.in (lto-wrapper.o): Adjust dependencies.
11605 2010-06-02 Richard Guenther <rguenther@suse.de>
11607 PR tree-optimization/44377
11608 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
11610 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11612 * config/s390/2097.md (z10_fhex): Remove insn reservation.
11613 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
11614 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
11615 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
11617 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
11619 2010-06-02 Jan Hubicka <jh@suse.cz>
11621 * bitmap.c (bitmap_descriptor): Add search_iter.
11622 (bitmap_find_bit): Increment it.
11623 (print_statistics): Print it.
11625 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
11627 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
11628 instead of gimple_build_call_vec. Delete unnecessary local variable.
11630 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
11632 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
11633 change from yesterday.
11635 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
11637 * c-ada-spec.c: Clean up redundant includes.
11639 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
11641 * gimplify.c: Do not include except.h and optabs.h.
11642 (gimplify_body): Do not initialize RTL profiling.
11643 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
11644 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
11645 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
11646 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
11649 * tree-pretty-print.h: Include pretty-print.h.
11650 * gimple-pretty-print.h: Include pretty-print.h.
11652 * tree-pretty-print.c: Do not include diagnostic.h.
11653 * tree-vrp.c: Likewise.
11654 * tree-tailcall.c: Likewise
11655 * tree-scalar-evolution.c: Likewise
11656 * tree-ssa-dse.c: Likewise
11657 * tree-chrec.c: Likewise
11658 * tree-ssa-sccvn.c: Likewise
11659 * tree-ssa-copyrename.c: Likewise
11660 * tree-nomudflap.c: Likewise
11661 * tree-call-cdce.c: Likewise
11662 * tree-stdarg.c: Likewise
11663 * tree-ssa-math-opts.c: Likewise
11664 * tree-nrv.c: Likewise
11665 * tree-ssa-sink.c: Likewise
11666 * tree-browser.c: Likewise
11667 * tree-ssa-loop-ivcanon.c: Likewise
11668 * tree-ssa-loop.c: Likewise
11669 * tree-parloops.c: Likewise
11670 * tree-ssa-address.c: Likewise
11671 * tree-ssa-ifcombine.c: Likewise
11672 * tree-if-conv.c: Likewise
11673 * tree-data-ref.c: Likewise
11674 * tree-affine.c: Likewise
11675 * tree-ssa-phiopt.c: Likewise
11676 * tree-ssa-coalesce.c: Likewise
11677 * tree-ssa-pre.c: Likewise
11678 * tree-ssa-live.c: Likewise
11679 * tree-predcom.c: Likewise
11680 * tree-ssa-forwprop.c: Likewise
11681 * tree-ssa-dce.c: Likewise
11682 * tree-ssa-ter.c: Likewise
11683 * tree-ssa-loop-prefetch.c: Likewise
11684 * tree-optimize.c: Likewise
11685 * tree-ssa-phiprop.c: Likewise
11686 * tree-object-size.c: Likewise
11687 * tree-outof-ssa.c: Likewise
11688 * tree-ssa-structalias.c: Likewise
11689 * tree-switch-conversion.c: Likewise
11690 * tree-ssa-reassoc.c: Likewise
11691 * tree-ssa-operands.c: Likewise
11692 * tree-vectorizer.c: Likewise
11693 * tree-vect-data-refs.c: Likewise
11694 * tree-vect-generic.c: Likewise
11695 * tree-vect-stmts.c: Likewise
11696 * tree-vect-patterns.c: Likewise
11697 * tree-vect-slp.c: Likewise
11698 * tree-vect-loop.c: Likewise
11699 * tree-ssa-loop-ivopts.c: Likewise
11700 * tree-ssa-loop-im.c: Likewise
11701 * tree-ssa-loop-niter.c: Likewise
11702 * tree-ssa-loop-unswitch.c: Likewise
11703 * tree-ssa-loop-manip.c: Likewise
11704 * tree-ssa-loop-ch.c: Likewise
11705 * tree-dump.c: Likewise
11706 * tree-complex.c: Likewise
11708 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
11709 * tree-ssa-uninit.c: Likewise
11710 * tree-ssa-threadupdate.c: Likewise
11711 * tree-ssa-uncprop.c: Likewise
11712 * tree-ssa-ccp.c: Likewise
11713 * tree-ssa-dom.c: Likewise
11714 * tree-ssa-propagate.c: Likewise
11715 * tree-ssa-alias.c: Likewise
11716 * tree-dfa.c: Likewise
11717 * tree-cfgcleanup.c: Likewise
11718 * tree-sra.c: Likewise
11719 * tree-ssa-copy.c: Likewise
11720 * tree-ssa.c: Likewise
11721 * tree-profile.c: Likewise
11722 * tree-cfg.c: Likewise
11723 * tree-ssa-threadedge.c: Likewise
11724 * tree-vect-loop-manip.c: Likewise
11726 * tree-inline.c: Do not include diagnostic.h and expr.h.
11728 (copy_decl_for_dup_finish): Do not use NULL_RTX.
11730 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
11731 * tree-loop-distribution.c: Likewise.
11733 2010-06-01 Jan Hubicka <jh@suse.cz>
11735 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
11737 2010-06-01 Jan Hubicka <jh@suse.cz>
11739 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
11740 remove return value.
11741 (split_bbs_on_noreturn_calls) .... here.
11742 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
11743 * tree-flow.h (fixup_noreturn_call): New.
11745 2010-06-01 Jan Hubicka <jh@suse.cz>
11747 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
11749 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
11751 * tree.h (build_nt_call_list): Delete.
11752 * tree.c (build_nt_call_list): Delete.
11754 2010-06-01 Jan Hubicka <jh@suse.cz>
11756 * fwprop.c: Make emit-rtl.h include last.
11757 * rtlanal.c: Include emit-rtl.h.
11758 * genautomata.c: Output emit-rtl include into insn-automata.c
11759 * df-scan.c: Include emit-rtl.h.
11760 * haifa-sched.c: Indlude emit-rtl.h.
11761 * mode-switching.c: Indlude emit-rtl.h.
11762 * graph.c: Indlude emit-rtl.h.
11763 * sel-sched.c: Include emit-rtl.h.
11764 * sel-sched-ir.c: Include emit-rtl.h.
11765 * ira-build.c: Include emit-rtl.h.
11766 * emit-rtl.c (first_insn, last_insn): Remove defines.
11767 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
11768 Move to emit-rtl.h.
11769 (set_new_first_and_last_insn, get_last_insn_anywhere,
11770 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
11771 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
11772 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
11773 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
11774 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
11775 Use accessor functions.
11776 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
11777 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
11778 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
11779 mem_expr_equal_p): Move here from rtl.h.
11780 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
11781 Move here from emit-rtl.c; make inline.
11782 * cfglayout.h: Include emit-rtl.h.
11783 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
11784 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
11785 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
11786 mem_expr_equal_p, get_insns, set_first-insn,
11787 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
11788 * reg-stack.c: Include emit-rtl.h.
11791 2010-06-01 Jan Hubicka <jh@suse.cz>
11793 * cgraph.h (tree_function_versioning): Update prototype.
11794 (cgraph_function_versioning): Update prototype.
11795 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
11797 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
11798 (cgraph_materialize_clone, save_inline_function_body): Update use of
11799 tree_function_versioning.
11800 * tree-inline.c (copy_bb): Look for previous copied block to link
11801 after; fix debug output.
11802 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
11803 (copy_body): Likewise.
11804 (expand_call_inline): Update use of copy_body.
11805 (tree_function_versioning): Update use of copy body; accept
11806 blocks_to_copy and new_entry.
11808 2010-06-01 Jan Hubicka <jh@suse.cz>
11810 * gegenrtl.c: Remove unnecesary prototypes.
11812 (gendef): Produce static inline.
11814 (main): Do not decode parameters; generate header only.
11815 * Makefile.in (genrtl.c): Remove.
11817 2010-06-01 Jan Hubicka <jh@suse.cz>
11819 * tree-switch-conversion.c (build_one_array): Make it readonly.
11821 2010-06-01 Richard Guenther <rguenther@suse.de>
11823 * optabs.c (init_optabs): Guard all accesses to reinit.
11824 * ipa-pure-const.c (propagate): Fix another typo.
11825 * opts.c (common_handle_option): Split assignment to bool.
11826 * c-opts.c (c_common_handle_option): Likewise.
11828 2010-06-01 Arnaud Charlet <charlet@adacore.com>
11829 Matthew Gingell <gingell@adacore.com>
11831 * doc/invoke.texi: Mention -fdump-ada-spec.
11832 * tree-dump.c (dump_files): Add ada-spec.
11833 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
11834 * tree-pass.h (tree_dump_index): Add TDI_ada.
11835 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
11836 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
11837 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
11838 * c-decl.c: Include c-ada-spec.h.
11839 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
11841 (c_write_global_declarations): Add handling of -fdump-ada-spec.
11842 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
11843 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
11844 * c-ada-spec.h, c-ada-spec.c: New files.
11846 2010-06-01 Richard Guenther <rguenther@suse.de>
11849 * ipa-pure-const.c (get_function_state): Hand back varying state
11850 if we do not have one.
11851 (has_function_state): New function.
11852 (duplicate_node_data): Adjust.
11853 (remove_node_data): Likewise.
11854 (pure_const_write_summary): Likewise.
11855 (propagate): Likewise. Fix typo.
11857 2010-06-01 Jan Hubicka <jh@suse.cz>
11859 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
11860 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
11861 (execute_all_ipa_transforms): Do not play with the states.
11863 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
11865 * config/arm/t-linux-androideabi: New.
11866 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
11868 2010-06-01 Jan Hubicka <jh@suse.cz>
11870 * tree-inline.c (estimate_num_insns): For stdarg functions look
11871 into call statement to count cost of argument passing.
11873 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
11875 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
11876 argument for fprintf.
11877 (ix86_output_addr_diff_elt): Likewise.
11878 (x86_function_profiler): Likewise.
11879 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
11880 (LPREFIX): Likewise.
11881 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
11883 2010-05-31 Jakub Jelinek <jakub@redhat.com>
11886 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
11887 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
11888 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
11889 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
11890 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
11891 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
11892 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
11893 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
11896 2010-05-31 Jan Hubicka <jh@suse.cz>
11898 * tree.h (tree_range_check_failed): Declare noreturn.
11900 2010-05-31 Jan Hubicka <jh@suse.cz>
11902 * gimple.c (gimple_call_builtin_p): New function.
11903 * gimple.h (gimple_call_builtin_p): Declare.
11904 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
11906 (execute_warn_function_return): BUILT_IN_RETURN is return.
11907 (split_critical_edges): Return edges are not critical.
11908 (is_ctrl_altering_stmt): Builtin_in_return is altering.
11909 (gimple_verify_flow_info): Handle built_in_return.
11910 (execute_warn_function_return): Handle built_in_return.
11911 * ipa-pure-const.c (check_call): Ignore builtin_return.
11913 2010-05-31 Jakub Jelinek <jakub@redhat.com>
11915 PR middle-end/44337
11916 * expr.c (expand_assignment): Don't store anything for out-of-bounds
11917 array accesses with non-MEM.
11919 PR tree-optimization/44182
11920 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
11921 newly needs to end a bb is followed by debug stmts, instead return
11922 true from the function at the end.
11923 (maybe_move_debug_stmts_to_successors): New function.
11924 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
11926 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
11929 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
11931 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
11933 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
11934 for nested functions in non-optimized compilation.
11936 2010-05-31 Richard Guenther <rguenther@suse.de>
11938 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
11940 2010-05-30 Jan Hubicka <jh@suse.cz>
11942 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
11944 2010-05-30 Richard Guenther <rguenther@suse.de>
11947 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
11948 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
11951 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
11953 * config/darwin.c (output_objc_section_asm_op): Add comment.
11954 (name_needs_quotes): Add '_' to list of valid comment chars.
11955 (machopic_output_function_base_name): Remove unneeded quotes.
11956 (darwin_encode_section_info): Adjust asm whitespace.
11957 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
11958 (ASM_OUTPUT_LOCAL): Ditto.
11959 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
11960 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
11961 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
11963 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
11965 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
11966 RS6000_OUTPUT_BASENAME unconditionally.
11967 (rs6000_output_function_epilogue): Likewise.
11969 2010-05-30 Jan Hubicka <jh@suse.cz>
11971 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
11974 2010-05-30 Richard Guenther <rguenther@suse.de>
11976 * tree-cfg.c (verify_gimple_assign_single): Implement
11977 verification for COND_EXPR rhs.
11979 2010-05-30 Jan Hubicka <jh@suse.cz>
11981 * cgraph.h (cgraph_dump_file): Declare.
11982 * cgraphunit.c (cgraph_dump_file): Export.
11983 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
11985 2010-05-30 Jan Hubicka <jh@suse.cz>
11987 * dwarf2out.c (reference_to_unused,
11988 premark_types_used_by_global_vars_helper): Avoid creation of new
11991 2010-05-30 Jan Hubicka <jh@suse.cz>
11993 * cgraph.h (cgraph_node_cannot_return,
11994 cgraph_edge_cannot_lead_to_return): New functions.
11995 * cgraph.c (cgraph_node_cannot_return,
11996 cgraph_edge_cannot_lead_to_return): Use them.
11997 * ipa-pure-const.c (pure_const_names): New static var.
11998 (check_call): Handle calls not leading to return.
11999 (pure_const_read_summary): Dump info read.
12000 (propagate): Dump info about propagation process; ignore side effects
12001 of functions not leading to exit; fix handling of pure functions.
12003 2010-05-30 Jan Hubicka <jh@suse.cz>
12005 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
12006 for tail call epilogues.
12008 2010-05-30 Jan Hubicka <jh@suse.cz>
12010 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
12011 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
12014 2010-05-29 Jan Hubicka <jh@suse.cz>
12016 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
12017 node; remove references in node we no longer keep in cgrpah but need
12020 2010-05-29 Jan Hubicka <jh@suse.cz>
12022 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
12024 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12027 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
12029 2010-05-29 Jan Hubicka <jh@suse.cz>
12031 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
12032 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
12033 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
12034 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
12035 debug_names_replaced_by, debug_update_ssa): Likewise.
12036 * sbitmap.c (debug_sbitmap): Likewise.
12037 * genrecog.c (debug_decision, debug_decision_list): Likewise.
12038 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
12039 debug_tree_chain): Likewise.
12040 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
12041 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
12042 * optabs.c (debug_optab_libfuncs): Likewise.
12043 (verify_loop_closed_ssa): Likewise.
12044 * value-prof.c (verify_histograms): Likewise.
12045 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
12046 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
12047 * cfghooks.c (verify_flow_info): Likewise.
12048 * fold-const.c (debug_fold_checksum): Likewise.
12049 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
12050 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
12052 * omega.c (debug_omega_problem): Likewise.
12053 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
12054 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
12055 * dominance.c (verify_dominators, debug_dominance_info,
12056 debug_dominance_tree): Likewise.
12057 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
12058 * df_regno_debug, df_ref_debug,
12059 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
12060 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
12061 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
12062 * sel-sched.c (debug_state): Likewise.
12063 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
12065 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
12066 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
12067 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
12068 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
12070 * c-pretty-print.c (debug_c_tree): Likewise.
12071 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
12072 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
12073 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
12074 * ebitmap.c (debug_ebitmap): Likewise.
12075 * function.c (debug_find_var_in_block_tree): Likewise.
12076 * print-rtl.c (debug_rtx): Likewise.
12077 (debug_rtx_count): Likewise.
12078 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
12079 * stor-layout.c (debug_rli): Likewise.
12080 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
12081 * tree-data-ref.c (debug_data_references,
12082 debug_data_dependence_relations, debug_data_reference,
12083 debug_data_dependence_relation, debug_rdg_vertex,
12084 debug_rdg_component, debug_rdg): Likewise.
12085 * tree-affine.c (debug_aff): Likewise.
12086 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
12088 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
12089 * emit-rtl.c (verify_rtl_sharing): Likewise.
12090 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
12091 debug_value_expressions): Likewise.
12092 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
12093 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
12094 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
12095 * cfglayout.c (verify_insn_chain): Likewise.
12096 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
12097 debug_clast_stmt, debug_generated_program): Likewise.
12098 * ggc-page.c (debug_print_page_list): Likewise.
12099 * tree-ssa-ter.c (debug_ter): Likewise.
12100 * graphite-dependences.c (debug_pddr): Likewise.
12101 * sched-deps.c (debug_ds): Likewise.
12102 * tree-ssa.c (verify_ssa): Likewise.
12103 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
12104 debug_scattering_functions, debug_iteration_domains, debug_pdr,
12105 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
12106 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
12107 * tree-inline.c (debug_find_tree): Likewise.
12108 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
12109 debug_ppl_powerset_matrix): Likewise.
12110 * var-tracking.c (debug_dv): Likewise.
12111 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
12112 * cfgloop.c (verify_loop_structure): Likewise.
12113 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
12114 * c-common.c (verify_sequence_points): Likewise.
12115 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
12116 debug_candidates, debug_rgn_dependencies): Likewise.
12117 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
12118 * debug_constraint_graph, debug_solution_for_var,
12119 debug_sa_points_to_info): Likewise.
12120 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
12122 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
12123 debug_loops, debug_loop, debug_loop_num): Likewise.
12124 * passes.c (debug_pass): Likewise.
12125 (dump_properties): Likewise; add cfglayout property.
12126 (debug_properties): Likewise.
12127 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
12128 * varpool.c (debug_varpool): Likewise.
12129 * regcprop.c (debug_value_data): Likewise.
12130 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
12131 debug_immediate_uses_for): Likewise.
12133 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
12136 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
12137 Filter out insn-flags.h.
12139 2010-05-29 Jan Hubicka <jh@suse.cz>
12141 * cgraph.h (struct varpool_node_set_def,
12142 struct cgraph_node_set_def): Remove unused AUX pointer.
12143 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
12146 2010-05-29 Jan Hubicka <jh@suse.cz>
12148 PR middle-end/44324
12149 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
12151 2010-05-29 Richard Guenther <rguenther@suse.de>
12153 * lto-streamer.c (cached_bp): New global variable.
12154 (bitpack_create): Return the cached bitpack, if available.
12155 (bitpack_delete): Clear and cache the bitpack, if appropriate.
12156 (bp_pack_value): Remove redundant asserts.
12158 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
12160 PR middle-end/44306
12161 * tree-if-conv.c (is_true_predicate): New.
12162 (is_predicated): Use is_true_predicate.
12163 (add_to_predicate_list): Same. Do not use unshare_expr.
12164 (add_to_dst_predicate_list): Same.
12166 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
12168 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
12170 (predicate_bbs): Same.
12171 (clean_predicate_lists): Same.
12172 (find_phi_replacement_condition): Do not AND the predicate from
12175 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
12178 * Makefile.in (build/gencondmd.o): Add a missing `\'.
12180 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12183 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
12184 (negdf2): Adjust expander pattern and use negdf2_slow.
12185 (negsf2): Likewise.
12187 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
12189 * basic-block.h (struct control_flow_graph): Move last_label_uid field
12191 * df.h (struct df_base_ref): Move regno field up.
12192 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
12193 * expr.h (struct separate_ops): Move location field up.
12194 * optabs.h (struct optab_d): Move libcall_basename field down.
12195 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
12196 * config/i386/i386.h (struct machine_function): Convert call_abi field
12197 into a bitfield. Move cfa field to the end of the structure.
12199 2010-05-29 Jan Hubicka <jh@suse.cz>
12201 * varpool.c (varpool_get_node): Fix lookup.
12203 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
12205 * config/spu/spu-protos.h: Do not include rtl.h. Protect
12206 RTL specific prototypes with #ifdef RTX_CODE.
12207 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
12208 * config/spu/t-spu-elf: Fix dependencies.
12210 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
12212 2010-05-29 Mike Stump <mikestump@comcast.net>
12215 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
12216 TM_H when building to avoid dependency loops.
12218 2010-05-29 Jan Hubicka <jh@suse.cz>
12220 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
12221 refs and body; not the whole node for masters of materialized clones.
12223 2010-05-29 Mike Stump <mikestump@comcast.net>
12225 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
12227 2010-05-29 Jan Hubicka <jh@suse.cz>
12229 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
12230 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
12231 use of clone_function_name.
12232 * cgraph.h (cgraph_create_virtual_clone,
12233 cgraph_function_versioning): update prototypes.
12234 (clone_function_name): Declare.
12235 * ipa-cp.c (ipcp_insert_stage): Update call of
12236 cgraph_create_virtual_clone.
12237 * omp-low.c (create_omp_child_function_name): Use
12238 cgraph_create_virtual_clone.
12239 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
12240 (cgraph_function_versioning): Take SUFFIX argument; produce new name
12241 and make decl local.
12243 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
12245 * vec.h: Include statistics.h
12246 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
12249 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
12251 * c-lex.c: Do not include c-tree.h.
12252 * c-pretty-print.c: Likewise.
12253 * c-opts.c: Likewise.
12254 * c-gimplify.c: Likewise.
12255 * c-common.c: Likewise.
12256 * c-dump.c: Likewise. Include c-common.h.
12258 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
12260 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
12261 before including diagnostic-core.h.
12262 (c_cpp_error): New prototype moved from c-tree.h.
12263 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
12264 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
12265 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
12266 (c_cpp_error): Prototype moved to c-common.h.
12267 * Makefile.in: Update dependency for C_COMMON_H.
12269 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
12271 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
12272 * c-common.c (c_register_addr_space): Remove here.
12273 * c-decl.c (c_register_addr_space): Re-add here.
12275 2010-05-28 Mike Stump <mikestump@comcast.net>
12277 * config/darwin-c.c: Remove c-tree.h include.
12279 2010-05-28 Joseph Myers <joseph@codesourcery.com>
12281 * gcc.c: Include diagnostic.h.
12282 (error_count): Remove. All users changed to use errorcount.
12283 (programname): Remove. All users changed to use progname.
12284 (fancy_abort, internal_error, fatal_error, error, warning, inform,
12286 (execute): Don't include "Internal error" and bug reporting
12287 information in argument of internal_error call.
12288 (process_command): Don't increment error_count after calling
12290 (input_filename): Rename to gcc_input_filename. All users
12292 (main): Call diagnostic_initialize. Register delete_temp_files
12293 with atexit. Use seen_error to test for errors.
12294 * gcc.h: Include diagnostic-core.h.
12295 (fatal_error, error, warning): Remove.
12296 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
12297 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
12298 (gcc.o): Update dependencies.
12300 2010-05-28 Jeff Law <law@redhat.com>
12302 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
12304 * ira.h (ira_bad_reload_regno): Declare
12305 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
12307 * ira-color.c (update_curr_costs): Free updated hard reg costs.
12308 (ira_reassign_conflict_allocnos): Remove bogus asserts.
12309 (allocno_reload_assign): Likewise.
12311 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
12313 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
12316 2010-05-28 Richard Guenther <rguenther@suse.de>
12319 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
12320 Stream fixed-point constants mode.
12321 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
12322 and TYPE_PRECISION.
12323 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
12324 Stream fixed-point constants mode.
12325 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
12326 and TYPE_PRECISION.
12328 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
12330 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
12331 only place it was called from.
12332 (number_of_latch_executions): Do not return chrec_dont_know when the
12333 may_be_zero is a runtime condition: instead, return a COND_EXPR
12334 including the may_be_zero condition.
12335 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
12337 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
12340 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
12342 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
12343 generate COND_EXPRs for degenerate_phi_result.
12345 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
12347 PR middle-end/44293
12348 * tree-if-conv.c (if_convertible_loop_p): Check the
12349 if-convertibility of phi nodes in non predicated BBs.
12351 2010-05-28 Joseph Myers <joseph@codesourcery.com>
12353 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
12355 2010-05-28 Joseph Myers <joseph@codesourcery.com>
12358 * gcc.c (inform, warning, inform): New functions.
12359 (fatal_ice): Rename to internal_error; change cmsgid parameter to
12360 gmsgid. All callers changed.
12361 (notice): Rename to fnotice; add parameter fp. All callers changed.
12362 (fatal_error): Rename to fatal_signal. All users changed.
12363 (fatal): Rename to fatal_error; change cmsgid parameter to
12364 gmsgid. All callers changed.
12365 (process_command): Use warning instead of error for warnings.
12366 (end_going_arg): Don't use _() around argument of error.
12367 (do_spec_1): Use inform for message from %n specs. Use warning
12368 instead of error for warnings.
12369 (main): Use inform for comparison messages. Use warning for
12370 message about unused linker input.
12371 (error): Increment error_count. Print "error: ".
12372 * gcc.h (fatal): Change to fatal_error.
12373 (warning): Declare.
12374 * config/darwin-driver.c (darwin_default_min_version): Use warning
12375 instead of fprintf for warnings.
12376 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
12378 2010-05-28 Julian Brown <julian@codesourcery.com>
12380 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
12381 (*thumb2_addsi3_compare0_scratch): New.
12382 * config/arm/constraints.md (Pv): New.
12383 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
12385 (*addsi3_compare0_scratch): Likewise.
12387 2010-05-28 Jan Hubicka <jh@suse.cz>
12389 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
12391 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
12392 only on local statics.
12394 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
12396 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
12398 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
12401 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
12402 (OPTION_GLIBC): Define.
12404 2010-05-28 Jakub Jelinek <jakub@redhat.com>
12407 * dwarf2out.c (double_int_type_size_in_bits): New function.
12408 (round_up_to_align): Change first argument and return value to
12410 (field_byte_offset): Work internally on double_ints.
12413 * builtins.c (expand_movstr): Use a temporary pseudo instead
12414 of target even when target is not NULL and not const0_rtx, but
12415 fails movstr predicate.
12416 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
12418 2010-05-28 Joseph Myers <joseph@codesourcery.com>
12420 * final.c (rest_of_clean_state): Use %m in errors instead of
12422 * gengtype.c (read_input_list, close_output_files): Use xstrerror
12423 instead of strerror.
12424 * toplev.c (process_options): Use %m in errors instead of strerror
12426 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
12429 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
12431 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
12432 (ix86_canonical_va_list_type): Make static. Add declaration.
12433 (ix86_enum_va_list): Make static. Reindent.
12434 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
12435 (ix86_canonical_va_list_type): Ditto.
12436 (ix86_enum_va_list): Ditto.
12438 2010-05-28 Richard Guenther <rguenther@suse.de>
12440 * lto-wrapper.c (run_gcc): With -save-temps generate a
12441 user-visible ltrans filename. Fixup ltrans unit numbering.
12443 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
12445 * c-common.c (c_common_nodes_and_builtins): Replace use
12446 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
12447 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
12448 to ix86_enum_va_list.
12449 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
12450 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
12451 (TARGET_ENUM_VA_LIST_P): Add hook description.
12452 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
12453 * target.h (gcc_target): Add enum_va_list hook.
12456 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
12457 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
12458 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
12460 2010-05-28 Alan Modra <amodra@gmail.com>
12463 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
12464 emit_library_call machinery to set up __tls_get_addr calls.
12466 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12468 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
12470 2010-05-28 Dodji Seketeli <dodji@redhat.com>
12472 Revert fix for PR c++/44188
12473 * c-common.c (is_typedef_decl): Revert the moving of this
12475 * tree.c (is_typedef_decl): ... here.
12476 (typdef_variant_p): Revert the moving of this definition
12477 here from gcc/cp/tree.c.
12478 * c-common.h (is_typedef_decl): Revert the moving of this
12480 * tree.h (is_typedef_decl): ... here.
12481 (typedef_variant_p): Revert the moving of this declaration here
12482 from gcc/cp/cp-tree.h
12483 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
12484 (gen_tagged_type_die): Revert the splitting out of ...
12485 (gen_type_die_with_usage): ... this function. Revert the anonymous
12486 tagged type handling.
12487 (gen_typedef_die): Revert emitting DW_TAG_typedef for
12488 typedefs naming anonymous tagged types.
12490 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
12492 * config/rs6000/rs6000-modes.def (PSImode): Delete.
12494 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
12496 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
12497 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
12499 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
12501 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
12502 XER_REGS to CA_REGS throughout.
12503 * config/rs6000/rs6000.h: Same.
12504 (ADDITIONAL_REGISTER_NAMES): Add "xer".
12505 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
12506 that mode_iterator "P" is the size for arithmetic carries as well.
12507 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
12509 2010-05-28 Jakub Jelinek <jakub@redhat.com>
12512 * combine.c (struct rtx_subst_pair): Define unconditionally.
12513 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
12514 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
12515 Call make_compound_operation on pair->to.
12516 (propagate_for_debug): Don't call make_compound_operation here.
12517 Always use simplify_replace_fn_rtx.
12519 2010-05-27 Sterling Augustine <sterling@tensilica.com>
12521 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
12522 * config/xtensa/xtensa.c (override_options): Check
12523 TARGET_FORCE_NO_PIC and set flag_pic.
12524 * config/xtensa/xtensa.opt: Document -mforce-no-pic
12526 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
12529 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
12530 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
12532 2010-05-27 Joseph Myers <joseph@codesourcery.com>
12534 * diagnostic-core.h: New. Contents moved from diagnostic.h and
12536 * diagnostic.c: Don't include toplev.h.
12537 (progname): Define. Moved from toplev.c.
12538 (seen_error): New function.
12539 * diagnostic.h: Include diagnostic-core.h.
12540 (diagnostic_t, emit_diagnostic): Don't declare here.
12541 * toplev.c (progname): Move to toplev.c.
12542 (emit_debug_global_declarations, compile_file, finalize,
12543 do_compile, toplev_main): Use seen_error.
12544 * toplev.h: Include diagnostic-core.h.
12545 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
12546 internal_error, warning, warning_at, error, error_n, error_at,
12547 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
12548 verbatim, fnotice, progname): Move to diagnostic-core.h.
12549 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
12550 (expand_builtin_expect): Use seen_error.
12551 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
12552 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
12553 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
12554 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
12555 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
12556 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
12557 errorcount for errors.
12558 * c-opts.c (c_common_finish): Use seen_error.
12559 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
12560 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
12561 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
12562 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
12563 (get_coverage_counts): Use seen_error.
12564 * dwarf2out.c (dwarf2out_finish): Use seen_error.
12565 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
12566 gimplify_body): Use seen_error.
12567 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
12568 * ipa-pure-const.c (gate_pure_const): Use seen_error.
12569 * ipa-reference.c (gate_reference): Use seen_error.
12570 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
12571 * lambda-code.c: Include diagnostic-core.h instead of
12573 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
12574 * lto-compress.c: Include diagnostic-core.h instead of
12576 * lto-section-in.c: Include diagnostic-core.h instead of
12578 * lto-streamer-out.c: Include diagnostic-core.h instead of
12580 * lto-streamer.c: Include diagnostic-core.h instead of
12582 (gate_lto_out): Use seen_error.
12583 * matrix-reorg.c: Include diagnostic-core.h instead of
12585 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
12586 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
12587 (gate_expand_omp, lower_omp_1): Use seen_error.
12588 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
12589 (rest_of_decl_compilation, rest_of_type_compilation,
12590 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
12591 * tree-cfg.c (label_to_block_fn): Use seen_error.
12592 * tree-inline.c (optimize_inline_calls): Use seen_error.
12593 * tree-mudflap.c (mudflap_finish_file): Use
12595 * tree-optimize.c (gate_all_optimizations,
12596 gate_all_early_local_passes, gate_all_early_optimizations): Use
12598 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
12599 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
12600 (varpool_remove_unreferenced_decls,
12601 varpool_assemble_pending_decls): Use seen_error.
12602 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
12603 (TOPLEV_H, DIAGNOSTIC_H): Update.
12604 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
12605 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
12606 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
12607 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
12608 coverage.o, lambda-code.o): Update dependencies.
12610 2010-05-25 Dodji Seketeli <dodji@redhat.com>
12613 * c-common.c (is_typedef_decl): Move this definition ...
12614 * tree.c (is_typedef_decl): ... here.
12615 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
12616 * c-common.h (is_typedef_decl): Move this declaration ...
12617 * tree.h (is_typedef_decl): ... here.
12618 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
12619 * dwarf2out.c (is_naming_typedef_decl): New function.
12620 (gen_tagged_type_die): Split out of ...
12621 (gen_type_die_with_usage): ... this function. When an anonymous
12622 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
12623 is emitted for the typedef.
12624 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
12625 anonymous tagged types.
12627 2010-05-27 Jason Merrill <jason@redhat.com>
12629 * print-tree.c (debug_vec_tree): New fn.
12630 (print_vec_tree): New fn.
12631 * tree.h: Declare them.
12632 * gdbinit.in (pvt): New command.
12634 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
12636 * gdbinit.in (pdd): New command.
12638 2010-05-27 Jan Hubicka <jh@suse.cz>
12640 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
12641 (update_caller_keys): Return early if there are no callers;
12642 only update fibheap when decresing the key.
12643 (update_callee_keys): Avoid recursion.
12644 (decide_inlining_of_small_functions): When badness does not match;
12645 re-insert into fibheap.
12647 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
12649 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
12650 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
12651 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
12652 (ALL_HOST_OBJS): Now a union of the above two.
12653 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
12654 all files in ALL_HOST_FRONTEND_OBJS.
12655 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
12657 * c-common.c: Pretend to be a backend file by undefining
12658 IN_GCC_FRONTEND (still need rtl.h here).
12660 2010-05-27 Jan Hubicka <jh@suse.cz>
12662 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
12663 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
12665 2010-05-27 Jan Hubicka <jh@suse.cz>
12667 * sched-ebb.c: Rename struct deps to struct deps_desc.
12669 * sel-sched-ir.c: Likewise.
12670 * sched-deps.c: Likewise.
12671 * sched-int.h: Likewise.
12672 * sched-rgn.c: Likewise.
12674 2010-05-27 Jon Beniston <jon@beniston.com>
12677 * config/lm32/lm32.h: Remove definition of
12678 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
12680 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
12683 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
12685 2010-05-27 Richard Guenther <rguenther@suse.de>
12687 PR tree-optimization/44284
12688 * tree-vect-stmts.c (vectorizable_assignment): Handle
12689 sign-changing conversions as simple copy.
12691 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12693 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
12695 (__gthread_active_p): Check for pthread_create if compiling against
12698 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12700 Support compilation for Android platform. Reimplement -mandroid.
12702 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
12703 (*android*): Set ANDROID_DEFAULT.
12704 (arm*-*-linux*): Include linux-android.h.
12705 (arm*-*-eabi*): Don't include previous -mandroid implementation.
12706 * config/arm/eabi.h: Remove, move Android-specific parts ...
12707 * config/linux-android.h: ... here. New file.
12708 * config/arm/eabi.opt: Rename to ...
12709 * config/linux-android.opt: ... this.
12710 (mandroid): Allow -mno-android option. Initialize based on
12712 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
12713 Move logic to corresponding LINUX_TARGET_* macros.
12714 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
12715 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
12716 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
12717 Android definitions.
12718 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
12719 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
12722 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12724 Add support for Bionic C library
12726 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
12728 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
12729 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
12731 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
12732 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
12733 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
12734 to support multiple C libraries. Handle Bionic.
12735 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
12736 (BIONIC_DYNAMIC_LINKER64): Define.
12737 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
12739 (TARGET_HAS_SINCOS): Enable for Bionic.
12741 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
12742 the last option specified on command line take effect.
12743 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
12745 (mglibc, muclibc): Update.
12747 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
12748 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
12751 * doc/invoke.texi (-mglibc, -muclibc): Update.
12752 (-mbionic): Document.
12754 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12756 * c-common.h (c_register_addr_space): Add prototype.
12757 (ADDR_SPACE_KEYWORD): Remove.
12758 * c-common.c (c_register_addr_space): New function.
12759 (c_addr_space_name): Reimplement.
12760 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
12762 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
12763 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
12765 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
12766 Remove TARGET_ADDR_SPACE_KEYWORDS.
12768 2010-05-27 Joseph Myers <joseph@codesourcery.com>
12770 * input.c: New file.
12771 * input.h (main_input_filename): Move declaration to toplev.h.
12772 * toplev.c (input_location, line_table): Move to input.c
12773 * toplev.h (main_input_filename): Move declaration from input.h.
12774 * tree.c (expand_location): Move to input.c.
12775 * Makefile.in (OBJS-common): Add input.o.
12776 (input.o): Add dependencies.
12778 2010-05-27 Richard Guenther <rguenther@suse.de>
12780 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
12781 for non-existant files.
12782 (fork_execute): Mark args_name file as deleted.
12784 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
12787 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
12788 (narrow_signed_type): Likewise.
12790 2010-05-26 Jan Hubicka <jh@suse.cz>
12792 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
12793 edge only when checking is enabled; check using former_clone_of;
12794 check inline clones too.
12795 (cgraph_materialize_clone): Record former_clone_of pointer.
12796 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
12797 combining redirections; dump args_to_skip bitmap
12798 (cgraph_materialize_all_clones): Do no redirection here.
12799 * ipa-inline.c (inline_transform): Do redirection here.
12800 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
12803 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
12805 * config/avr/avr-c.c: Do not include regs.h.
12806 Include cpplib.h for cpp_define and tree.h for c-common.h.
12807 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
12808 * config/avr/t-avr: Fix dependencies for avr-c.o.
12810 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
12812 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
12813 string instead of SYMBOL_REF rtx.
12814 * rtl.h (set_stack_check_libfunc): Move prototype from here...
12815 * libfuncs.h: ...to here. Adjust for explow.c change.
12817 2010-05-26 Joseph Myers <joseph@codesourcery.com>
12819 * pretty-print.c: Don't include ggc.h.
12820 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
12821 (identifier_to_locale): Use them for allocation.
12822 * pretty-print.h (identifier_to_locale_alloc,
12823 identifier_to_locale_free): Declare.
12824 * toplev.c (alloc_for_identifier_to_locale): New.
12825 (general_init): Set identifier_to_locale_alloc and
12826 identifier_to_locale_free.
12827 * Makefile.in (pretty-print.o): Update dependencies.
12829 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
12831 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
12832 pointer types if they have different alignment or mode.
12834 2010-05-26 Anatoly Sokolov <aesok@post.ru>
12836 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12837 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12838 * config/sparc/sparc-protos.h (function_value): Remove declaration.
12839 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
12840 sparc_function_value_regno_p): New functions.
12841 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12842 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12843 (function_value): Rename to...
12844 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
12845 argument to 'outgoing'.
12846 (function_arg_record_value, function_arg_union_value,
12847 function_arg_vector_value): Update comment.
12849 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
12851 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
12852 (fde_needed_for_eh_p): New predicate.
12853 (output_call_frame_info): Use it throughout to decide whether FDEs
12854 are needed for EH purpose.
12855 (dwarf2out_begin_prologue): Reorder assignments.
12857 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
12859 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
12860 special case loop->header.
12861 (is_predicated): New.
12862 (if_convertible_loop_p): Call it.
12864 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
12866 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
12867 iterator in parameter. Do not generate code during the analysis.
12868 (tree_if_convert_cond_stmt): Removed.
12869 (tree_if_convert_stmt): Removed.
12870 (predicate_bbs): New.
12871 (if_convertible_loop_p): Call predicate_bbs.
12872 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
12873 now contains all the analysis part.
12875 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
12877 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
12878 statements in the analysis part.
12879 (tree_if_convert_stmt): Update comment.
12880 (remove_conditions_and_labels): New.
12881 (combine_blocks): Call remove_conditions_and_labels.
12882 (tree_if_conversion): Update comment.
12884 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
12886 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
12887 than 2 predecessors or more than 2 successors.
12889 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
12891 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
12892 of loops in which the data dependence analysis fails.
12894 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
12896 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
12897 CDI_POST_DOMINATORS.
12898 (tree_if_conversion): Same.
12900 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
12902 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
12904 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
12906 * tree-if-conv.c: Update copyright years. Fix comments.
12909 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
12911 * builtin-types.def (BT_INT128): New primitive type.
12912 (BT_UINT128): Likewise.
12913 * c-common.c (c_common_r): Add __int128 keyword.
12914 (c_common_type_for_size): Handle __int128.
12915 (c_common_type_for_mode): Likewise.
12916 (c_common_signed_or_unsigned_type): Likewise.
12917 (c_common_nodes_and_builtins): Add builtin type
12918 if target supports 128-bit integer scalar.
12919 * c-common.h (enum rid): Add RID_INT128.
12920 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
12921 if target supports 128-bit integer scalar.
12922 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
12923 (finish_declspecs): Likewise.
12924 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
12925 (c_token_starts_declspecs): Likewise.
12926 (c_parser_declspecs): Likewise.
12927 (c_parser_attributes): Likewise.
12928 (c_parser_objc_selector): Likewise.
12929 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
12930 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
12931 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
12932 * tree.c (make_or_reuse_type): Likewise.
12933 (make_unsigned_type): Likewise.
12934 (build_common_tree_nodes_2): Likewise.
12935 * tree.h (enum integer_type_kind): Add itk_int128 and
12936 itk_unsigned_int128.
12937 (int128_integer_type_node): New define.
12938 (int128_unsigned_type_node): New define.
12939 * doc/extend.texi: Add documentation about __int128 type.
12941 2010-05-26 Richard Guenther <rguenther@suse.de>
12943 * tree-ssa-sccvn.c (copy_nary): Adjust.
12944 (copy_phis): Rename to ...
12945 (copy_phi): ... this. Adjust.
12946 (copy_references): Rename to ...
12947 (copy_reference): ... this. Adjust.
12948 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
12949 result into the valid table.
12951 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
12953 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
12954 insn-config.h, insn-codes.h, recog.h, and optabs.h.
12956 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12958 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
12960 2010-05-26 Richard Guenther <rguenther@suse.de>
12962 * opts.c (common_handle_option): Handle OPT_Ofast.
12964 2010-05-26 Joseph Myers <joseph@codesourcery.com>
12966 * diagnostic.c: Don't include opts.h.
12967 (permissive_error_option): Define.
12968 (diagnostic_initialize): Take n_opts parameter. Allocate memory
12969 for classify_diagnostic. Don't use memset for
12970 classify_diagnostic. Initialize new and recently added fields.
12971 (diagnostic_classify_diagnostic): Use context->n_opts instead of
12973 (diagnostic_report_diagnostic): Pass context parameter to
12974 diagnostic_report_warnings_p. Use option_enabled and option_name
12975 hooks from context.
12976 (emit_diagnostic): Use permissive_error_option.
12977 (permerror): Likewise.
12978 * diagnostic.h: Don't include options.h.
12979 (struct diagnostic_context): Add n_opts, opt_permissive,
12980 inhibit_warnings, warn_system_headers, option_enabled and
12981 option_name fields. Change classify_diagnostic to a pointer.
12982 * opts-diagnostic.h: New file.
12983 * opts.c: Include opts-diagnostic.h.
12984 (common_handle_option): Set global_dc fields for -Wfatal-errors,
12985 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
12986 (option_name): New function.
12987 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
12988 (c_common_handle_option): Set global_dc->permissive for
12990 * c-common.c (c_cpp_error): Save and restore
12991 global_dc->warn_system_headers, not variable warn_system_headers.
12992 * toplev.c: Include opts-diagnostic.h.
12993 (general_init): Update call to diagnostic_initialize. Set
12994 global_dc->show_column, global_dc->option_enabled and
12995 global_dc->option_name.
12996 (process_options): Don't set global_dc fields here.
12997 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
12998 (diagnostic.o, opts.o, toplev.o): Update dependencies.
13000 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
13002 * config/picochip/picochip.md (movsi): Split a movsi from a
13003 const after reload.
13005 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13007 * ggc-zone.c: Update copyright year.
13008 (poison_region): Mark memory for Valgrind as undefined before
13009 memset () call and inaccessible afterwards.
13010 (ggc_pch_total_size): Change type of i to int.
13012 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13014 * ggc-common.c (ggc_free_overhead): Allow empty slot.
13016 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13018 * ggc-common.c: Update copyright year.
13019 (ggc_rlimit_bound): Remove prototype. Compile only if
13020 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
13021 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
13022 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
13023 (ggc_min_heapsize_heuristic): Likewise.
13025 2010-05-26 Richard Guenther <rguenther@suse.de>
13027 PR rtl-optimization/44164
13028 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
13029 no-common access-path disambiguation.
13030 (indirect_ref_may_alias_decl_p): Adjust.
13031 (indirect_refs_may_alias_p): Likewise.
13032 (refs_may_alias_p_1): Likewise.
13034 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
13036 * c-typeck.c: Do not include expr.h.
13038 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
13040 * rtl.h (decl_default_tls_model): Move prototype from here...
13041 * output.h: ...to here.
13042 * c-decl.c: Do not include rtl.h.
13043 * c-pragma.c: Likewise.
13044 * c-parser.c: Likewise.
13045 * c-gimplify.c: Likewise. And also not hard-reg-set.
13046 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
13047 FIXME note for it. Add a FIXME note for expr.h.
13048 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
13049 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
13052 2010-05-26 Jakub Jelinek <jakub@redhat.com>
13055 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
13056 or total_size is larger than red zone size for non-V4 ABI, emit a
13057 stack_tie resp. frame_tie insn before stack pointer restore.
13058 * config/rs6000/rs6000.md (frame_tie): New insn.
13060 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
13062 * function.h (struct function): Add can_throw_non_call_exceptions bit.
13063 * lto-streamer-in.c (input_function): Stream it in.
13064 * lto-streamer-out.c (output_function): Stream it out.
13065 * function.c (allocate_struct_function): Set it.
13066 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
13067 for flag_non_call_exceptions.
13068 * cfgbuild.c (control_flow_insn_p): Likewise.
13069 (make_edges): Likewise.
13070 * cfgexpand.c (expand_stack_alignment): Likewise.
13071 * combine.c (distribute_notes): Likewise.
13072 * cse.c (cse_extended_basic_block): Likewise.
13073 * except.c (insn_could_throw_p): Likewise.
13074 * gcse.c (simple_mem): Likewise.
13075 * ipa-pure-const.c (check_call): Likewise.
13076 (check_stmt ): Likewise.
13077 * lower-subreg.c (lower-subreg.c): Likewise.
13078 * optabs.c (emit_libcall_block): Likewise.
13079 (prepare_cmp_insn): Likewise.
13080 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
13081 * postreload.c (rest_of_handle_postreload): Likewise.
13082 * reload1.c (reload_as_needed): Likewise.
13083 (emit_input_reload_insns): Likewise.
13084 (emit_output_reload_insns): Likewise.
13085 (fixup_abnormal_edges): Likewise.
13086 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
13087 * store-motion.c (find_moveable_store): Likewise.
13088 * tree-eh.c (stmt_could_throw_p): Likewise.
13089 (tree_could_throw_p): Likewise.
13090 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13091 * config/arm/arm.c (arm_expand_prologue): Likewise.
13092 (thumb1_expand_prologue): Likewise.
13093 * config/rx/rx.md (cbranchsf4): Likewise.
13095 * config/s390/s390.c (s390_emit_prologue): Likewise.
13096 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
13097 (inline_forbidden_into_p): New predicate.
13098 (expand_call_inline): Use it to forbid inlining.
13099 (tree_can_inline_p): Likewise.
13101 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
13103 * config/i386/i386-c.c: Do not include rtl.h.
13104 * config/i386/t-i386: Update dependencies.
13106 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
13108 * attribs.c: Do not include rtl.h.
13109 * Makefile.in: Update dependencies.
13111 2010-05-25 Anatoly Sokolov <aesok@post.ru>
13113 * double-int.h (double_int_and): New.
13114 * combine.c (try_combine): Clean up, use double_int_* and
13115 immed_double_int_const functions.
13117 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13119 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
13120 stderr to /dev/null instead of grep -q.
13121 * configure: Regenerate.
13123 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
13125 * Makefile.in (EXCEPT_H): Fix typo.
13127 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
13129 * ira-build.c (update_conflict_hard_reg_costs): New.
13130 (ira_build): Call update_conflict_hard_reg_costs.
13132 2010-05-25 Jakub Jelinek <jakub@redhat.com>
13135 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
13137 (intersect_loc_chains): Walk the s2var's loc_chain together
13138 with s1node chain as long as the locations are equal, don't
13139 call find_loc_in_1pdv in that case.
13142 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
13143 (copy_bind_expr): ... instead of here.
13144 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
13145 if the block hasn't been remapped.
13146 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
13147 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
13149 2010-05-25 Richard Guenther <rguenther@suse.de>
13151 PR middle-end/44069
13152 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
13153 out-of-bounds array accesses.
13155 2010-05-25 Richard Guenther <rguenther@suse.de>
13157 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
13158 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
13159 (run_gcc): Re-organize to make cleanup easier.
13161 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13163 * config/s390/s390.c (optimization_options): Fix and move the
13164 flag_prefetch_loop_arrays override ...
13165 (override_options): ... here.
13167 2010-05-25 Joseph Myers <joseph@codesourcery.com>
13169 * diagnostic.c: Don't include plugin.h.
13170 (diagnostic_report_diagnostic): Don't handle plugins specially
13171 here. Pass context to internal_error callback.
13172 * diagnostic.h (struct diagnostic_context): Add context parameter
13173 to internal_error callback.
13174 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
13175 * plugin.h (struct diagnostic_context): Declare.
13176 (warn_if_plugins, plugins_internal_error_function): Declare.
13177 * toplev.c (general_init): Set global_dc->internal_error.
13178 * Makefile.in (diagnostic.o): Update dependencies.
13180 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
13182 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
13183 * config/rs6000/t-darwin64: New.
13184 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
13187 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
13190 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
13191 match the original (and intended) behaviour before r159557. This
13192 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
13195 2010-05-25 Richard Guenther <rguenther@suse.de>
13197 * doc/invoke.texi: Document -Ofast.
13198 * target.h (struct gcc_target): Add handle_ofast.
13199 * target-def.h (TARGET_HANDLE_OFAST): Add.
13200 (TARGET_INITIALIZER): Adjust.
13201 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
13202 * common.opt (Ofast): Add.
13204 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
13206 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
13207 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
13209 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
13212 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
13213 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
13214 false_rtx. Use false_rtx to compute the correct *ptest for reversed
13215 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
13217 2010-05-25 Jakub Jelinek <jakub@redhat.com>
13219 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
13220 DW_OP_minus with negated offset instead of DW_OP_plus.
13221 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
13223 2010-05-25 Wei Guozhi <carrot@google.com>
13225 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
13226 tst instruction and a new alternative.
13227 * config/arm/constraints.md (Pu): New constraint.
13229 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
13231 * function.c (assign_stack_local_1): Initialize variable
13232 to avoid warning when bootstrapping at -O3.
13234 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
13236 * configure.ac (all_lang_makefiles): Remove everything related to it.
13237 * configure: Regenerate.
13238 * Makefile.in: Fix reference to ada Make-lang.in.
13239 Remove support for LANG_MAKEFILES.
13241 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
13242 Sandra Loosemore <sandra@codesourcery.com>
13244 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
13245 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
13246 description. Add arm_neon_fp16_ok.
13247 (Add Options): Add arm_neon and arm_neon_fp16.
13249 2010-05-24 Joseph Myers <joseph@codesourcery.com>
13251 * diagnostic.c: Don't include flags.h.
13252 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
13253 context parameters. Check flags in the context passed as a parameter.
13254 (diagnostic_build_prefix): Add context parameter. Check
13255 show_column flag in context.
13256 (diagnostic_action_after_output): Check fatal_errors flag in context.
13257 (diagnostic_report_current_module): Check show_column flag in context.
13258 (default_diagnostic_starter): Update call to
13259 diagnostic_build_prefix.
13260 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
13261 (emit_diagnostic): Pass context to permissive_error_kind.
13262 (permerror): Pass context to permissive_error_kind.
13263 * diagnostic.h (struct diagnostic_context): Add show_column,
13264 pedantic_errors, permissive and fatal_errors fields.
13265 (diagnostic_build_prefix): Update prototype.
13267 * toplev.c (process_options): Set flags in global_dc from
13268 flag_show_column, flag_pedantic_errors, flag_permissive,
13270 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
13271 to diagnostic_build_prefix.
13272 * Makefile.in (diagnostic.o): Update dependencies.
13274 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
13276 * config/i386/ia32intrin.h (__crc32q): Define only if
13277 __SSE4_2__ is defined.
13279 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
13282 PR middle-end/43602
13283 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
13284 DECL_VISIBILITY_SPECIFIED.
13285 (emutls_decl): Set DECL_PRESERVE_P and copy
13286 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
13287 (emutls_finalize_control_var): New callback.
13288 (emutls_finish): Finalize emutls control variables.
13289 * toplev.c (compile_file): Move the call to emutls_finish ()
13290 before varpool_assemble_pending_decls ().
13292 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
13294 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
13295 added to the preprocessor condition.
13297 2010-05-24 Paul Brook <paul@codesourcery.com>
13299 * gengtype-lex.l: Add HARD_REG_SET.
13300 * expr.c (expand_expr_real_1): Record writes to hard registers.
13301 * function.c (rtl_data): Add asm_clobbers.
13302 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
13303 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
13304 Use crtl->asm_clobbers.
13306 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13308 * doc/makefile.texi (Makefile): Mention stages 'profile'
13309 and 'feedback' for profiledbootstrap.
13311 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
13314 * config/i386/i386.c (def_builtin): Properly check
13315 OPTION_MASK_ISA_64BIT.
13317 2010-05-23 Joseph Myers <joseph@codesourcery.com>
13319 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
13320 typedefs with different but compatible types. Allow duplicate
13321 typedefs with the same type except for pedantic non-C1X, but give
13322 warning for variably modified types.
13323 * c-typeck.c (tagged_types_tu_compatible_p,
13324 function_types_compatible_p, type_lists_compatible_p,
13325 comptypes_internal): Add parameter different_types_p; set
13326 *different_types_p for different but compatible types. All
13328 (comptypes_check_different_types): New.
13329 * c-tree.h (comptypes_check_different_types): Declare.
13331 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
13333 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
13334 * jump.c: Include basic-block.h.
13335 * profile.c: Likewise.
13336 * tree-profile.c: Likewise.
13337 * coverage.c: Likewise.
13338 * basic-block.h (optimize_function_for_size_p): Move to function.h.
13339 (optimize_function_for_speed_p): Likewise.
13340 * function.h (optimize_function_for_size_p,
13341 optimize_function_for_speed_p): Moved here from basic-block.h.
13342 * Makefile.in: Update dependencies.
13344 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13346 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
13347 before calling make; allow override through $MAKE.
13348 * doc/invoke.texi (Optimize Options): Document override.
13350 2010-05-23 Anatoly Sokolov <aesok@post.ru>
13352 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
13353 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13354 (rs6000_mode_dependent_address_ptr): Make static.
13355 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13356 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
13359 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
13362 * config/i386/i386.c: Make sure that the correct regparm is passed.
13364 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
13366 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
13367 * sbitmap.c: ...to here to internalize sbitmap element access.
13368 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
13369 Explain why basic-block.h is included.
13370 * function.h: Include tm.h for CUMULATIVE_ARGS.
13371 * Makefile.in: Update dependencies.
13373 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
13375 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
13377 * sbitmap.h (struct sbitmap_def): Do not typedef here.
13378 * sbitmap.c: Include sbitmap.h.
13379 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
13380 hard-reg-set.h. Split everything related to regsets out from here...
13381 * regset.h: ...to here. New file.
13382 * df.h: Include regset.h and sbitmap.h.
13383 * tree-flow.h: Likewise.
13384 * cfgloop.h: Likewise.
13385 * except.h: Do not include sbitmap.h. Include hashtab.h.
13386 * cgraph.h: Include vec.h and function.h.
13387 * reload.h (struct insn_chain): Change types of live_throughout
13388 and dead_or_set from regset_head to bitmap_head.
13389 (compute_use_by_pseudos): Be defined also if regset.h is not included.
13390 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
13391 spilled_regs from regset_head to bitmap_head to avoid dependency
13393 * sel-sched-ir.h: Include regset.h.
13394 * reload.c: Include df.h before reload.h.
13395 * caller-save.c: Likewise.
13396 * reload1.c: Likewise.
13398 (mark_elimination): Update type of r to bitmap, consistent with
13400 * dominance.c: Include bitmap.h.
13401 * modulo-sched.c: Include df.h.
13402 * cfganal.c: Include bitmap.h and sbitmap.h.
13403 * cfgbuild.c: Include sbitmap.h.
13404 * lcm.c: Include sbitmap.h.
13405 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
13406 * domwalk.c: Include sbitmap.h, exclude ggc.h.
13407 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
13408 * cselib.c: Include bitmap.h.
13409 * tree-optimize.c: Include regset.h.
13410 * stmt.c: Include bitmap.h.
13411 * Makefile.in: Update dependencies.
13413 2010-05-22 Jan Hubicka <jh@suse.cz>
13415 * cgraph.h (struct varpool_node): Add same_comdat_group.
13416 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
13418 (output_varpool): Update call of lto_output_varpool_node.
13419 (input_varpool): Read same_comdat_group pointer.
13420 (input_varpool_1): Fixup same_comdat_group pointer.
13421 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
13422 group is needed, all are.
13423 * varpool.c (varpool_remove_node): Remove node from same comdat group
13425 (varpool_analyze_pending_decls): Walk same comdat groups.
13427 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
13429 * rtl.h (union rtunion_def): Remove rt_bit member.
13430 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
13431 * print-rtl (print_rtx): Do not print the member.
13432 * gengtype.c (adjust_field_rtx_def): Do not handle it.
13433 * gengenrtl.c (type_from_format): Likewise.
13434 (accessor_from_format): Likewise.
13436 2010-05-22 Joseph Myers <joseph@codesourcery.com>
13438 * dbgcnt.c: Include toplev.h instead of errors.h.
13439 * ira-emit.c: Don't include errors.h.
13440 * ira.c: Include toplev.h instead of errors.h.
13441 * lto-compress.c: Include toplev.h instead of errors.h.
13442 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
13443 ira.o, dbgcnt.o): Update dependencies.
13445 2010-05-22 Richard Guenther <rguenther@suse.de>
13447 * gimple.c (gimple_types_compatible_p): Check type qualifications
13448 before merging pointer to complete and pointer to incomplete type.
13449 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
13450 we use our own resolution algorithm. The gold linker plugin
13451 doesn't do the job we want it to do here.
13453 2010-05-22 Anatoly Sokolov <aesok@post.ru>
13455 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13456 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13457 (sparc_mode_dependent_address_p): New function.
13459 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
13461 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
13463 * timevar.c: Do not include any core headers.
13464 (timevar_print): De-i18n-ize.
13465 (print_time): Likewise.
13466 * timevar.h (timevar_push, timevar_pop): Make inline functions.
13468 2010-05-21 Joseph Myers <joseph@codesourcery.com>
13470 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
13472 (diagnostic_initialize): Initialize x_data not last_function.
13473 (diagnostic_report_current_function): Move to tree-diagnostic.c.
13474 (default_diagnostic_starter): Call
13475 diagnostic_report_current_module not
13476 diagnostic_report_current_function.
13477 (diagnostic_report_diagnostic): Initialize x_data not
13479 (verbatim): Likewise.
13480 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
13482 (struct diagnostic_context): Change last_function to x_data.
13483 (diagnostic_auxiliary_data): Replace with
13484 diagnostic_context_auxiliary_data and
13485 diagnostic_info_auxiliary_data.
13486 (diagnostic_last_function_changed, diagnostic_set_last_function,
13487 diagnostic_report_current_function): Move to tree-diagnostic.h.
13488 (print_declaration, dump_generic_node, print_generic_stmt,
13489 print_generic_stmt_indented, print_generic_expr,
13490 print_generic_decl, debug_c_tree, dump_omp_clauses,
13491 print_call_name, debug_generic_expr, debug_generic_stmt,
13492 debug_tree_chain, default_tree_printer): Move to
13493 tree-pretty-print.h.
13494 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
13495 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
13496 gimple-pretty-print.h.
13497 * pretty-print.c: Don't include tree.h
13498 (pp_base_format): Don't handle %K here.
13499 (pp_base_tree_identifier): Move to tree-pretty-print.c.
13500 * pretty-print.h (text_info): Change abstract_origin to x_data.
13501 (pp_tree_identifier, pp_unsupported_tree,
13502 pp_base_tree_identifier): Move to tree-pretty-print.h.
13503 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
13504 tree-pretty-print.h: New files.
13505 * tree-pretty-print.c: Include tree-pretty-print.h.
13506 (percent_K_format): New. Moved from pretty-print.c.
13507 (pp_base_tree_identifier): Move from pretty-print.c.
13508 * c-objc-common.c: Include tree-pretty-print.h.
13509 (c_tree_printer): Handle %K here.
13510 * langhooks.c: Include tree-diagnostic.h.
13511 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
13512 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
13513 (default_tree_printer): Handle %K using percent_K_format.
13514 (general_init): Use default_tree_diagnostic_starter.
13515 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
13516 (free_lang_data): Use default_tree_diagnostic_starter.
13517 * c-pretty-print.c: Include tree-pretty-print.h.
13518 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13519 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13520 * dwarf2out.c: Include tree-pretty-print.h.
13521 * except.c: Include tree-pretty-print.h.
13522 * gimple-pretty-print.c: Include tree-pretty-print.h and
13523 gimple-pretty-print.h.
13524 * gimplify.c: Include tree-pretty-print.h.
13525 * graphite-poly.c: Include tree-pretty-print.h and
13526 gimple-pretty-print.h.
13527 * ipa-cp.c: Include tree-pretty-print.h.
13528 * ipa-inline.c: Include gimple-pretty-print.h.
13529 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13530 * ipa-pure-const.c: Include gimple-pretty-print.h.
13531 * ipa-struct-reorg.c: Include tree-pretty-print.h and
13532 gimple-pretty-print.h.
13533 * ipa-type-escape.c: Include tree-pretty-print.h.
13534 * print-rtl.c: Include tree-pretty-print.h.
13535 * print-tree.c: Include gimple-pretty-print.h.
13536 * sese.c: Include tree-pretty-print.h.
13537 * tree-affine.c: Include tree-pretty-print.h.
13538 * tree-browser.c: Include tree-pretty-print.h.
13539 * tree-call-cdce.c: Include gimple-pretty-print.h.
13540 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13541 * tree-chrec.c: Include tree-pretty-print.h.
13542 * tree-data-ref.c: Include tree-pretty-print.h and
13543 gimple-pretty-print.h.
13544 * tree-dfa.c: Include tree-pretty-print.h.
13545 * tree-if-conv.c: Include tree-pretty-print.h and
13546 gimple-pretty-print.h.
13547 * tree-inline.c: Include tree-pretty-print.h.
13548 * tree-into-ssa.c: Include tree-pretty-print.h and
13549 gimple-pretty-print.h.
13550 * tree-nrv.c: Include tree-pretty-print.h.
13551 * tree-object-size.c: Include tree-pretty-print.h and
13552 gimple-pretty-print.h.
13553 * tree-outof-ssa.c: Include tree-pretty-print.h and
13554 gimple-pretty-print.h.
13555 * tree-parloops.c: Include tree-pretty-print.h and
13556 gimple-pretty-print.h.
13557 * tree-predcom.c: Include tree-pretty-print.h and
13558 gimple-pretty-print.h.
13559 * tree-scalar-evolution.c: Include tree-pretty-print.h and
13560 gimple-pretty-print.h.
13561 * tree-sra.c: Include tree-pretty-print.h.
13562 * tree-ssa-address.c: Include tree-pretty-print.h.
13563 * tree-ssa-alias.c: Include tree-pretty-print.h.
13564 * tree-ssa-ccp.c: Include tree-pretty-print.h and
13565 gimple-pretty-print.h.
13566 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
13567 * tree-ssa-copy.c: Include tree-pretty-print.h and
13568 gimple-pretty-print.h.
13569 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
13570 * tree-ssa-dce.c: Include tree-pretty-print.h and
13571 gimple-pretty-print.h.
13572 * tree-ssa-dom.c: Include tree-pretty-print.h and
13573 gimple-pretty-print.h.
13574 * tree-ssa-dse.c: Include gimple-pretty-print.h.
13575 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
13576 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
13577 * tree-ssa-live.c: Include tree-pretty-print.h and
13578 gimple-pretty-print.h.
13579 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
13580 gimple-pretty-print.h.
13581 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
13582 gimple-pretty-print.h.
13583 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
13584 gimple-pretty-print.h.
13585 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
13586 gimple-pretty-print.h.
13587 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
13588 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
13589 * tree-ssa-operands.c: Include tree-pretty-print.h and
13590 gimple-pretty-print.h.
13591 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
13592 gimple-pretty-print.h.
13593 * tree-ssa-pre.c: Include tree-pretty-print.h and
13594 gimple-pretty-print.h.
13595 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
13596 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
13597 gimple-pretty-print.h.
13598 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
13599 gimple-pretty-print.h.
13600 * tree-ssa-sink.c: Include gimple-pretty-print.h.
13601 * tree-ssa-ter.c: Include tree-pretty-print.h and
13602 gimple-pretty-print.h.
13603 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
13604 * tree-ssa.c: Include tree-pretty-print.h and
13605 gimple-pretty-print.h.
13606 * tree-stdarg.c: Include gimple-pretty-print.h.
13607 * tree-switch-conversion.c: Include gimple-pretty-print.h.
13608 * tree-tailcall.c: Include tree-pretty-print.h and
13609 gimple-pretty-print.h.
13610 * tree-vect-data-refs.c: Include tree-pretty-print.h and
13611 gimple-pretty-print.h.
13612 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
13613 gimple-pretty-print.h.
13614 * tree-vect-loop.c: Include tree-pretty-print.h and
13615 gimple-pretty-print.h.
13616 * tree-vect-patterns.c: Include gimple-pretty-print.h.
13617 * tree-vect-slp.c: Include tree-pretty-print.h and
13618 gimple-pretty-print.h.
13619 * tree-vect-stmts.c: Include tree-pretty-print.h and
13620 gimple-pretty-print.h.
13621 * tree-vectorizer.c: Include tree-pretty-print.h.
13622 * tree-vrp.c: Include tree-pretty-print.h and
13623 gimple-pretty-print.h.
13624 * value-prof.c: Include tree-pretty-print.h and
13625 gimple-pretty-print.h.
13626 * var-tracking.c: Include tree-pretty-print.h.
13627 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
13628 (tree-diagnostic.o): New dependencies.
13629 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
13630 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
13631 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
13632 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
13633 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
13634 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
13635 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
13636 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
13637 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
13638 tree-ssa-address.o, tree-ssa-loop-niter.o,
13639 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
13640 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
13641 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
13642 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
13643 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
13644 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
13645 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
13646 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
13647 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
13648 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
13649 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
13650 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
13651 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
13652 tree-switch-conversion.o, var-tracking.o, value-prof.o,
13653 cfgexpand.o, pretty-print.o): Update dependencies.
13655 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
13657 * tree-ssa-structalias.c: Remove tm_p.h from include.
13659 2010-05-21 Jeff Law <law@redhat.com>
13661 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
13663 2010-05-21 Jason Merrill <jason@redhat.com>
13665 * tree-eh.c (cleanup_is_dead_in): New.
13666 (lower_try_finally): Don't generate a dead cleanup region.
13667 (lower_cleanup): Likewise.
13669 2010-05-21 Jakub Jelinek <jakub@redhat.com>
13672 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
13673 unchain each use from the cyclic next_regno_use chain first.
13675 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
13677 * real: Do not include gmp.h, mpfr.h, and mpc.h.
13678 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
13679 (real_value_negate, real_value_abs): New prototypes.
13680 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
13681 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
13682 new include file for interface between MPFR and REAL_VALUE_TYPE.
13683 * real.c: Include realmpfr.h.
13684 (real_arithmetic2): Remove legacy function.
13685 (real_value_negate): New.
13686 (real_value_abs): New.
13687 (mfpr_from_real, real_from_mpfr): Move from here...
13688 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
13689 * builtins.c: Include realmpfr.h.
13690 * fold-const.c: Include realmpfr.h.
13691 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
13692 (fold_negate_const): Likewise.
13693 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
13694 * toplev.c: Include realmpfr.h.
13695 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
13696 and real_value_negate.
13697 * fixed-value.c (check_real_for_fixed_mode): Likewise.
13698 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
13699 (vfp3_const_double_index): Likewise.
13700 (arm_print_operand): Likewise.
13701 * Makefile.in: Update dependencies.
13703 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13705 * config/s390/s390.c (override_options): Increase the default
13706 of max-completely-peel-times.
13708 2010-05-21 Julian Brown <julian@codesourcery.com>
13709 Mark Mitchell <mark@codesourcery.com>
13711 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
13712 sibling calls for Thumb-1.
13713 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
13714 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
13716 (*call_insn, *call_value_insn): Don't use for Thumb-2.
13717 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
13719 (return): New expander.
13720 (*arm_return): New name for ARM return insn.
13721 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
13723 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
13725 * config.gcc (sparc64-*-rtems*): New target.
13727 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
13729 * tree.c (build_function_decl_skip_args): Fix grammar.
13730 (build_function_type_list_1): Fix typos, adjust formatting.
13732 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
13734 * tree.h: Include real.h and fixed-value.h as basic datatypes.
13735 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
13736 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
13737 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
13738 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
13739 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
13740 tree-pretty-print.c, tree-loop-distribution.c,
13741 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
13742 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
13743 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
13744 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
13745 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
13746 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
13747 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
13748 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
13749 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
13750 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
13751 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
13752 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
13753 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
13754 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
13755 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
13756 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
13757 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
13758 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
13759 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
13760 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
13761 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
13762 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
13763 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
13764 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
13765 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
13766 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
13767 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
13768 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
13769 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
13770 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
13771 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
13772 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
13773 config/score/score7.c, config/score/score.c, config/arm/arm.c,
13774 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
13775 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
13776 config/bfin/bfin.c: Clean up redundant includes.
13777 * Makefile.in: Update accordingly.
13779 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
13781 PR middle-end/44204
13782 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
13783 statement has no arguments.
13785 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
13788 * varasm.c (emutls_decl): Merge attributes to new decl.
13790 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
13792 PR middle-end/44101
13793 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
13794 around the uniquized constructor if its type requires a conversion.
13796 2010-05-21 Jakub Jelinek <jakub@redhat.com>
13799 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
13800 at -O0 goto_locus of any of the incoming edges differs from
13801 goto_locus of outgoing edge, or gimple_location of any of the
13804 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
13806 * ira.c (ira_non_ordered_class_hard_regs): Define.
13807 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
13808 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
13809 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
13810 cost of unaligned hard regs when allocating multi-reg pseudos.
13812 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
13814 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
13815 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
13816 for TARGET_NO_FLOAT.
13817 * config/mips/mips.c (mips_file_start): Expand conditional expression
13818 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
13819 (mips_override_options): Move -mno-float override -msoft-float and
13821 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
13822 Condition(TARGET_SUPPORTS_NO_FLOAT).
13823 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
13824 __mips_no_float here.
13825 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
13826 (TARGET_SUPPORTS_NO_FLOAT): Define.
13827 * config/mips/sdemtk.opt: Delete.
13829 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
13831 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
13833 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
13836 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
13837 * configure: Regenerate.
13838 * config.in: Regenerate.
13839 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
13840 instead of sahf only for 64bit targets.
13842 2010-05-20 Jakub Jelinek <jakub@redhat.com>
13845 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
13846 setup_ref_regs for DEBUG_INSNs.
13848 2010-05-20 Jan Hubicka <jh@suse.cz>
13850 PR middle-end/44197
13851 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
13853 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
13856 * df-scan.c (df_ref_compare): Stabilize sort.
13858 2010-05-20 Jakub Jelinek <jakub@redhat.com>
13860 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
13861 argument. Don't use DW_OP_piece if offset is non-zero,
13862 put offset into second DW_OP_bit_piece argument.
13863 (dw_sra_loc_expr): Adjust callers. For memory expressions
13866 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
13869 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
13870 settings for 16-bit-constant "addo" alternative.
13872 2010-05-19 James E. Wilson <wilson@codesourcery.com>
13874 * config/mips/mips-dsp.md (add<DSPV:mode>3,
13875 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
13878 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
13879 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
13882 2010-05-19 Joseph Myers <joseph@codesourcery.com>
13884 * diagnostic.c (FLOAT, FFS): Don't undefine.
13885 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
13886 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
13889 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
13891 * combine.c (propagate_for_debug): Call make_compound_operation
13892 on the source value.
13893 (try_combine): When implementing a split chosen by find_split_point,
13894 either copy i2src or set it to null. Assert that i2src is not null
13895 before substituting into CALL_INSN_FUNCTION_USAGE.
13897 2010-05-19 Anatoly Sokolov <aesok@post.ru>
13899 * double-int.h (double_int_ior): New function.
13900 * tree.h (build_int_cst_wide_type): Remove.
13901 * tree.c (build_int_cst_wide_type): Remove.
13902 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
13903 of build_int_cst_wide_type.
13904 * stor-layout.c (set_sizetype): (Ditto.).
13905 * dojump.c (do_jump): Use build_int_cstu instead of
13906 build_int_cst_wide_type.
13908 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
13910 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
13911 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
13912 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
13913 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
13914 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
13915 propagate the 'data' argument to copy_tree_r.
13916 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
13917 Propagate 'data' argument to walk_tree.
13918 (copy_if_shared): New function.
13919 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
13920 (unmark_visited): New function.
13921 (unshare_body): Call copy_if_shared instead of doing it manually.
13922 (unvisit_body): Call unmark_visited instead of doing it manually.
13924 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
13926 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
13927 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
13928 * hooks.c: Likewise.
13929 * target-def.h (TARGET_FOLD_BUILTIN): Define to
13930 hook_tree_tree_int_treep_bool_null.
13931 * target.h (struct gcc_target): Update signature of fold_builtin
13933 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
13934 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
13935 instead of the call expression.
13936 (fold_builtin_call_array): Pass n and argarray directly.
13937 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
13939 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
13940 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
13941 `i' and use it in place of `arity'.
13942 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
13943 Dereference `args' directly.
13944 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
13946 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13948 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13950 (Directives): Document optional dg-require-effective-target
13953 2010-05-19 Richard Guenther <rguenther@suse.de>
13956 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
13958 2010-05-19 Richard Guenther <rguenther@suse.de>
13960 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
13961 * common.opt (fwhopr=): New.
13962 * opts.c (common_handle_option): Handle OPT_fwhopr.
13963 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
13964 * collect2.c (main): Match -fwhopr*.
13965 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
13966 Execute ltrans stage in parallel when jobs is bigger than 1.
13968 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13970 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
13971 pentiumpro on Solaris 8/x86 with Sun as.
13972 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
13974 (gcc_cv_as_ix86_quad): Check for .quad directive.
13975 * configure: Regenerate.
13976 * config.in: Regenerate.
13977 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
13979 2010-05-19 Martin Jambor <mjambor@suse.cz>
13981 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
13982 also for indirect edges. Actual printing moved...
13983 (ipa_print_node_jump_functions_for_edge): ...here.
13984 (ipa_compute_jump_functions): Renamed to
13985 ipa_compute_jump_functions_for_edge and made static.
13986 (ipa_compute_jump_functions): New function.
13987 (make_edge_direct_to_target): Check if the number of arguments on
13988 the newly direct edge is the same as the number of parametrs of
13990 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
13991 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
13992 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
13993 analysis functions unconditionally, call the new
13994 ipa_analyze_params_uses on the node instead of every edge.
13996 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
13998 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
14000 (dump_mem_ref): Adopt debug code to handle a tree as step. This
14001 also checks for a constant int vs. non-constant but
14002 loop-invariant steps.
14003 (find_or_create_group): Change the sort algorithm to only consider
14004 steps that are constant ints.
14005 (idx_analyze_ref): Adopt code to handle a tree instead of a
14006 HOST_WIDE_INT for step.
14007 (gather_memory_references_ref): Handle tree instead of int and be
14008 prepared to see a NULL_TREE.
14009 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
14010 prefetches if the step cannot be calculated at compile time.
14011 (issue_prefetch_ref): Issue prefetches for non-constant but
14012 loop-invariant steps.
14014 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
14017 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
14019 * tree.h (build_call_list): Remove.
14020 * tree.c (build_call_list): Remove.
14022 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
14024 * tree.h (build_call_list): Remove.
14025 * tree.c (build_call_list): Remove.
14027 2010-05-18 Jan Hubicka <jh@suse.cz>
14029 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
14031 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
14033 PR rtl-optimization/43332
14034 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
14036 2010-05-18 Anatoly Sokolov <aesok@post.ru>
14038 * tree.h (build_int_cstu): Implement as static inline.
14039 * tree.c (build_int_cstu): Remove function.
14040 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
14043 2010-05-18 Richard Guenther <rguenther@suse.de>
14046 * lto-wrapper.c (verbose): New variable. Initialize from -v.
14047 (debug): Initialize from -save-temps.
14048 (collect_execute): Print command-line when verbose.
14049 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
14050 for ltrans invocation. Produce -dumpbase flag again.
14051 (process_args): Remove.
14053 * collect2.c (maybe_run_lto_and_relink): Only pass object
14054 files to lto-wrapper.
14055 * gcc.c (LINK_COMMAND_SPEC): Likewise.
14057 2010-05-18 Jan Hubicka <jh@suse.cz>
14059 * opts.c (decode_options): Do not disable whopr at ipa_cp.
14060 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
14062 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
14065 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
14067 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
14070 2010-05-18 Jakub Jelinek <jakub@redhat.com>
14073 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
14074 rtx_equal_p inline.
14076 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
14078 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
14079 lto-macho as lto_binary_reader.
14081 * darwin.c (darwin_asm_named_section): Do not add assembler comment
14082 after .section directive; just print it before the directive instead.
14084 2010-05-17 Jan Hubicka <jh@suse.cz>
14086 * cgraph.c (cgraph_create_virtual_clone): Only check
14087 versionable_function_p when not in wpa and checking is enabled.
14088 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
14089 there are no more functions to materialize.
14091 2010-05-17 Jan Hubicka <jh@suse.cz>
14093 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
14094 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
14096 (output_cgraph): Call output_cgraph_opt_summary.
14097 (input_cgrpah): Call input_cgraph_opt_summary.
14098 (output_cgraph_opt_summary_p, output_node_opt_summary,
14099 input_node_opt_summary, input_cgraph_opt_section): New functions.
14100 * lto-section-in.c (lto_section_name): Add cgraphopt.
14101 * tree-inline.c (tree_function_versioning): Handle parm_num.
14102 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
14103 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
14105 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
14107 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
14108 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
14109 the insn to prefetch ratio heuristic to loops with known trip count.
14111 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
14113 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
14114 (schedule_prefetches): Do not generate a prefetch if the unroll factor
14115 is far from what is required by the prefetch.
14117 2010-05-17 Jan Hubicka <jh@suse.cz>
14119 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
14120 (ipcp_estimate_growth): Likewise.
14121 (ipcp_const_param_count): Likewise.
14122 (ipcp_insert_stage): Likewise.
14123 * ipa-prop.c (visit_load_for_mod_analysis): New function.
14124 (visit_store_addr_for_mod_analysis): Set used flag.
14125 (ipa_detect_param_modifications): Set used flag for SSE params;
14126 update use of walk_stmt_load_store_addr_ops.
14127 (ipa_print_node_params): Print used flag.
14128 (ipa_write_node_info): Stream used flag.
14129 (ipa_read_node_info): Likewise.
14130 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
14131 (ipa_is_param_used): New function.
14132 (lto_ipa_fixup_call_notes): Remove unused declaration.
14134 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14137 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
14138 * configure: Regenerate.
14139 * config.in: Regenerate.
14140 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
14141 !HAVE_AS_IX86_REP_LOCK_PREFIX.
14142 Don't emit whitespace.
14143 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
14144 (*rep_movsi): Likewise.
14145 (*rep_movsi_rex64): Likewise.
14146 (*rep_movqi): Likewise.
14147 (*rep_movqi_rex64): Likewise.
14148 (*rep_stosdi_rex64): Likewise.
14149 (*rep_stossi): Likewise.
14150 (*rep_stossi_rex64): Likewise.
14151 (*rep_stosqi): Likewise.
14152 (*rep_stosqi_rex64): Likewise.
14153 (*cmpstrnqi_nz_1): Use {%;} after repz.
14154 (*cmpstrnqi_nz_rex_1): Likewise.
14155 (*cmpstrnqi_1): Likewise.
14156 (*cmpstrnqi_rex_1): Likewise.
14157 (*strlenqi_1): Use {%;} after repnz.
14158 (*strlenqi_rex_1): Likewise.
14159 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
14160 (*sync_compare_and_swap<mode>): Likewise.
14161 (sync_double_compare_and_swap<mode>): Likewise.
14162 (*sync_double_compare_and_swapdi_pic): Likewise.
14163 (sync_old_add<mode>): Likewise.
14164 (sync_add<mode>): Likewise.
14165 (sync_sub<mode>): Likewise.
14166 (sync_<code><mode>): Likewise.
14168 2010-05-17 Martin Jambor <mjambor@suse.cz>
14170 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
14171 otr_token and polymorphic.
14172 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
14173 (cgraph_clone_edge): Copy the above fields.
14174 * tree.c (get_binfo_at_offset): New function.
14175 * tree.h (get_binfo_at_offset): Declare.
14176 * ipa-prop.h (enum jump_func_type): Added known_type jump function
14177 type, reordered items, updated comments.
14178 (union jump_func_value): Added base_type field, reordered fields.
14179 (enum ipa_lattice_type): Moved down in the file.
14180 (struct ipa_param_descriptor): New field polymorphic.
14181 (ipa_is_param_polymorphic): New function.
14182 * ipa-prop.c: Include gimple.h and gimple-fold.h.
14183 (ipa_print_node_jump_functions): Print known type jump functions.
14184 (compute_complex_pass_through): Renamed to...
14185 (compute_complex_assign_jump_func): this.
14186 (compute_complex_ancestor_jump_func): New function.
14187 (compute_known_type_jump_func): Likewise.
14188 (compute_scalar_jump_functions): Create known type and complex ancestor
14190 (ipa_note_param_call): New parameter polymorphic, set the corresponding
14191 flag in the call note accordingly.
14192 (ipa_analyze_call_uses): Renamed to...
14193 (ipa_analyze_indirect_call_uses): this. New parameter target, define
14194 variable var only in the block where it is used.
14195 (ipa_analyze_virtual_call_uses): New function.
14196 (ipa_analyze_call_uses): Likewise.
14197 (combine_known_type_and_ancestor_jfs): Likewise.
14198 (update_jump_functions_after_inlining): Implemented handling of a
14199 number of new jump function types combination.
14200 (print_edge_addition_message): Removed.
14201 (make_edge_direct_to_target): New function.
14202 (try_make_edge_direct_simple_call): Likewise.
14203 (try_make_edge_direct_virtual_call): Likewise.
14204 (update_call_notes_after_inlining): Renamed to...
14205 (update_indirect_edges_after_inlining): this. Moved edge creation for
14206 indirect calls to try_make_edge_direct_simple_call, also calls
14207 try_make_edge_direct_virtual_call for virtual calls.
14208 (ipa_print_node_params): Changed the header message.
14209 (ipa_write_jump_function): Stream also known type jump functions.
14210 (ipa_read_jump_function): Likewise.
14211 (ipa_write_indirect_edge_info): Stream new fields in
14212 cgraph_indirect_call_info.
14213 (ipa_read_indirect_edge_info): Likewise.
14214 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
14217 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14219 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
14221 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
14223 * tree.h (CALL_EXPR_ARGS): Delete.
14224 (call_expr_arglist): Delete.
14225 * tree.c (call_expr_arglist): Delete.
14226 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
14227 targetm.fold_builtin.
14228 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
14229 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
14230 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
14231 arglist parameter. Use CALL_EXPR_ARG.
14232 (picochip_expand_builtin_3op): Likewise.
14233 (picochip_expand_builtin_2opvoid): Likewise.
14234 (picochip_expand_array_get): Likewise.
14235 (picochip_expand_array_put): Likewise.
14236 (picochip_expand_array_testport): Likewise.
14237 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
14238 rather than arglist.
14239 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
14241 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
14242 than TREE_VALUE and TREE_CHAIN.
14243 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
14244 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
14247 2010-05-17 Jakub Jelinek <jakub@redhat.com>
14250 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
14251 to have no fallthru edge.
14253 PR middle-end/44102
14254 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
14255 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
14256 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
14257 add BARRIER after previous bb if needed.
14259 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
14261 * tree.c (build_function_type_list_1): Remove bogus assert condition.
14263 2010-05-17 Alan Modra <amodra@gmail.com>
14265 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
14266 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
14267 with copy_reg rtx param.
14268 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
14269 Correct cases where code for ABI_V4 did not initialise the reg
14270 used to access frame. Also leave frame_reg_rtx as sp for large
14271 frames that save no regs.
14273 2010-05-17 Martin Jambor <mjambor@suse.cz>
14275 PR middle-end/44133
14276 * tree-sra.c (create_access_replacement): New parameter rename, mark
14277 the replaement for renaming only when it is true.
14278 (get_access_replacement): Pass true in the rename parameter of
14279 create_access_replacement.
14280 (get_unrenamed_access_replacement): New function.
14281 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
14282 replacement declaration from it.
14284 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
14286 * function.c (try_fit_stack_local, add_frame_space): New static
14288 (assign_stack_local_1): Use them. Look for opportunities to use
14289 space previously wasted on alignment.
14290 * function.h (struct frame_space): New.
14291 (struct rtl_data): Add FRAME_SPACE_LIST member.
14292 * reload1.c (something_was_spilled): New static variable.
14293 (alter_reg): Set it.
14294 (reload): Test it in addition to testing if the frame size changed.
14296 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
14298 * config/s390/s390.c: Define sane prefetch settings and activate
14299 flag_prefetch_loop_arrays on -O3.
14300 * config/s390/s390.h: Declare that read can use write prefetch.
14302 2010-05-17 Jakub Jelinek <jakub@redhat.com>
14304 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
14307 2010-05-16 Jan Hubicka <jh@suse.cz>
14309 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
14310 function body; do not check stdarg field of struct function.
14312 2010-05-16 Jan Hubicka <jh@suse.cz>
14314 * cgraph.c (dump_cgraph_node): Dump versionable flag.
14315 * cgraph.h (cgraph_local_info): Add versionable flag.
14316 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
14317 (ipcp_versionable_function_p): Use it.
14318 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
14321 2010-05-16 Jan Hubicka <jh@suse.cz>
14323 * cgraph.c (cgraph_clone_node): Take decl argument and insert
14324 clone into hash when it is different from orig.
14325 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
14326 * cgraph.h (cgraph_clone_node): Update prototype.
14327 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
14328 (lto_cgraph_encoder_delete): Delete body map.
14329 (lto_cgraph_encoder_size): Move to header.
14330 (lto_cgraph_encoder_encode_body_p,
14331 lto_set_cgraph_encoder_encode_body): New.
14332 (lto_output_node): Do not take written_decls argument; output clone_of
14334 (add_node_to): Add include_body_argument; call
14335 lto_set_cgraph_encoder_encode_body on master of the clone.
14336 (add_references): Update use of add_node_to.
14337 (compute_ltrans_boundary): Likewise.
14338 (output_cgraph): Do not create written_decls bitmap.
14339 (input_node): Take nodes argument; stream in clone_of correctly.
14340 (input_cgraph_1): Update use of input_node.
14341 * lto-streamer-out.c (lto_output): Use encoder info to decide
14342 what bodies to output.
14343 * ipa-inline.c (cgraph_clone_inlined_nodes,
14344 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
14345 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
14346 (lto_cgraph_encoder_size): Define here.
14347 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
14350 2010-05-16 Richard Guenther <rguenther@suse.de>
14352 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
14354 * ipa-type-escape.c (gate_type_escape_vars): Run when
14355 -fipa-struct-reorg runs.
14356 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
14357 * common.opt (fipa-type-escape): Remove.
14359 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
14361 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
14362 (decode_options): Likewise.
14363 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
14365 2010-05-16 Jan Hubicka <jh@suse.cz>
14367 * ipa.c (function_and_variable_visibility): Also bring local all
14370 2010-05-16 Richard Guenther <rguenther@suse.de>
14372 * alias.c (nonoverlapping_memrefs_p): Remove use of
14373 IPA type-escape information.
14375 2010-05-16 Joseph Myers <joseph@codesourcery.com>
14377 * c-common.c (c_common_reswords): Add _Static_assert for C.
14378 * c-parser.c (c_token_starts_declaration,
14379 c_parser_next_token_starts_declaration,
14380 c_parser_static_assert_declaration_no_semi,
14381 c_parser_static_assert_declaration): New.
14382 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
14383 Handle static assertions if static_assert_ok.
14384 (c_parser_external_declaration, c_parser_declaration_or_fndef,
14385 c_parser_compound_statement_nostart, c_parser_label,
14386 c_parser_for_statement, c_parser_objc_methodprotolist,
14387 c_parser_omp_for_loop): All callers of
14388 c_parser_declaration_or_fndef changed.
14389 (c_parser_struct_declaration): Handle static assertions.
14390 (c_parser_compound_statement_nostart): Use
14391 c_parser_next_token_starts_declaration and
14392 c_token_starts_declaration to detect start of declarations.
14393 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
14396 2010-05-16 Anatoly Sokolov <aesok@post.ru>
14398 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
14399 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14400 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14401 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14402 (mmix_function_outgoing_value): Rename to...
14403 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
14404 (mmix_function_value_regno_p): Make static.
14405 (mmix_libcall_value): New function.
14406 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
14407 mmix_function_value_regno_p): Remove declaration.
14409 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
14411 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
14412 BUILT_IN_ALLOCA if stack checking is enabled.
14414 2010-05-16 Richard Guenther <rguenther@suse.de>
14416 * var-tracking.c (vars_copy_1): Inline ...
14417 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
14418 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
14419 (variable_merge_over_cur): Adjust. Merge asserts.
14420 (variable_merge_over_src): Likewise.
14421 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
14422 (variable_post_merge_new_vals): Merge asserts.
14423 (variable_post_merge_perm_vals): Likewise.
14424 (find_mem_expr_in_1pdv): Likewise.
14425 (dataflow_set_different_value): Remove.
14426 (onepart_variable_different_p): Merge asserts.
14427 (variable_different_p): Likewise.
14428 (dataflow_set_different_1): Inline ...
14429 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
14430 (emit_notes_for_differences_1): Merge asserts.
14432 2010-05-16 Richard Guenther <rguenther@suse.de>
14434 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
14435 * optabs.c (libfunc_decl_hash): Likewise.
14436 * varasm.c (emutls_decl): Likewise.
14438 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
14440 * c-decl.c: Don't include gimple.h.
14441 (merge_decls): Do not copy gimple_body.
14443 2010-05-15 Jason Merrill <jason@redhat.com>
14445 * c.opt: Add -fnothrow-opt.
14447 2010-05-15 Jan Hubicka <jh@suse.cz>
14449 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
14451 * passes.c (ipa_write_summaries): Write all analyzed nodes.
14453 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
14455 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
14456 * Makefile.in: Add it.
14457 Fix all other Makefile dependencies for changes below.
14458 * tree.h: Include it instead of defining VEC primitives here.
14459 * gimple.h: Likewise.
14461 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
14462 * except.h: Include vecir.h, break dependence on tree.h.
14464 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
14466 * tree-iterator.c: ...to here.
14467 * tree-iterator.h: Fix file introduction comment. Add extern markers.
14469 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
14471 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
14472 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
14473 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
14474 tree-mudflap.h, and target.h.
14475 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
14476 predict.h, tree-inline.h, gimple.h, and langhooks.h.
14477 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
14478 Add FIXME for why gimple.h is still included (should be unnecessary
14479 since GCC 4.5 gimplification unit-at-a-time).
14480 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
14481 * c-pragma.c: Add FIXME for why function.h needs to be included just
14482 for cfun, at front-end level.
14483 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
14484 Do not include ggc.h, but include vecprim.h for VEC(char).
14485 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
14486 Explain why target.h is included.
14487 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
14488 Explain why gimple.h is included.
14489 * c-ppoutput.c: Do not include tm.h.
14490 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
14491 * c-parses.c: Explain why rtl.h is included, and that this (and only
14492 this) is also why tm.h must be included.
14493 Do not include except.h.
14494 * c-lang.c: Do not include ggc.h.
14496 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
14498 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
14500 2010-05-15 Joseph Myers <joseph@codesourcery.com>
14502 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
14503 unions by default if those structs and unions have no tags. Do
14504 not condition anonymous struct and unions handling on flag_iso.
14505 Allow anonymous structs and unions for C1X.
14506 (finish_struct): Do not diagnose lack of named fields when
14507 anonymous structs and unions present for C1X. Accept flexible
14508 array members in structure with anonymous structs or unions but no
14509 directly named fields.
14510 * doc/extend.texi (Unnamed Fields): Update.
14512 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
14514 * gimple.h (compare_field_offset): Rename into...
14515 (gimple_compare_field_offset): ...this.
14516 * gimple.c (compare_field_offset): Rename into...
14517 (gimple_compare_field_offset): ...this. Compare the full access if
14518 the offset is self-referential.
14519 (gimple_types_compatible_p): Adjust for above renaming.
14520 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
14521 DECL_NONADDRESSABLE_P flag of fields before merging them.
14523 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
14525 * tree.h (ctor_to_list): Delete.
14526 * tree.c (ctor_to_list): Delete.
14528 2010-05-15 Jan Hubicka <jh@suse.cz>
14530 * ipa-reference.c: Include toplev.h
14531 (is_proper_for_analysis): Only add to all_module_statics
14532 if it is allocated.
14533 (write_node_summary_p, stream_out_bitmap,
14534 ipa_reference_write_optimization_summary,
14535 ipa_reference_read_optimization_summary): New.
14536 (struct ipa_opt_pass_d pass_ipa_reference): Add
14537 optimization summary streaming.
14538 * lto-cgraph.c (referenced_from_this_partition_p,
14539 reachable_from_this_partition_p): New functions.
14540 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14541 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
14542 * opts.c (decode_options): Enable ipa_reference.
14543 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
14544 * lto-streamer.h (referenced_from_this_partition_p,
14545 reachable_from_this_partition_p): Declare.
14547 2010-05-15 Richard Guenther <rguenther@suse.de>
14549 PR tree-optimization/44038
14550 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
14551 taking the address of a V_C_E of a constant.
14553 2010-05-14 Jan Hubicka <jh@suse.cz>
14555 * tree.h (memory_identifier_string): Remove.
14556 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
14557 (ipa_reference_global_vars_info_d): Remove statics_not_read and
14558 statics_not_written.
14559 (ipa_reference_optimization_summary_d): New structure.
14560 (ipa_reference_optimization_summary_t): New type and vector.
14561 (ipa_reference_vars_info_d): Embedd structures instead of using
14563 (reference_vars_to_consider): Remove out of GGC space.
14564 (module_statics_escape): Remove.
14565 (global_info_obstack): Rename to ...
14566 (optimization_summary_obstack): ... this one.
14567 (initialization_status_t): Remove.
14568 (memory_identifier_string): Remove.
14569 (get_reference_vars_info): Fix indenting.
14570 (set_reference_vars_info): Likewise.
14571 (get_reference_optimization_summary): New.
14572 (set_reference_optimization_summary): New.
14573 (get_global_reference_vars_info): Remove.
14574 (ipa_reference_get_read_global): Remove.
14575 (ipa_reference_get_written_global): Remove.
14576 (ipa_reference_get_not_read_global): Update.
14577 (ipa_reference_get_not_written_global): Update.
14578 (is_proper_for_analysis): Outlaw addressable.
14579 (propagate_bits): Update for new datastructures.
14580 (analyze_variable): Remove.
14581 (init_function_info): Update for new datastructures.
14582 (clean_function_local_data): Remove.
14583 (clean_function): Remove.
14584 (copy_global_bitmap): Use optimizations_summary_obstack.
14585 (duplicate_node_data): Duplicate optimization summary only.
14586 (remove_node_data): Remove optimization summary only.
14587 (generate_summary): Do not analyze variables; do not compute
14588 module_statics_escape; do not prune solutions by it.
14589 (read_write_all_from_decl): Fix typos in comments.
14590 (propagate): Doscover readonly and nonaddressable first;
14591 update for new datastructures; share global bitmaps.
14592 * ipa-reference.h (ipa_reference_get_read_global,
14593 ipa_reference_get_written_global): Remove.
14594 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
14595 * Makefile.in: Remove ipa-refereference from GT files.
14597 2010-05-14 Jakub Jelinek <jakub@redhat.com>
14600 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
14601 for all SYMBOL_REF_DECLs.
14603 2010-05-14 Jan Hubicka <jh@suse.cz>
14605 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
14606 (varpool_all_refs_explicit_p): New inline function.
14607 * ipa-reference.c: Update comment.
14608 (module_statics_written): Remove.
14609 (get_static_decl): Remove.
14610 (ipa_init): Do not initialize module_statics_written.
14611 (analyze_function): Likewise.
14612 (generate_summary): Likewise; do not compute module_statics_readonly
14613 and do not update variable flags.
14614 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
14615 * ipa.c: Inlucde flags.h
14616 (cgraph_local_node_p): New.
14617 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
14618 promote functions to local.
14619 (ipa_discover_readonly_nonaddressable_vars): New function.
14620 (function_and_variable_visibility): Use cgraph_local_node_p.
14621 * varpool.c (varpool_finalize_decl): Set force_output for
14622 DECL_PRESERVE_P vars.
14624 2010-05-14 Jan Hubicka <jh@suse.cz>
14626 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
14628 2010-05-14 Richard Guenther <rguenther@suse.de>
14630 PR tree-optimization/44119
14631 * tree-ssa-pre.c (eliminate): Properly mark replacement of
14632 a PHI node necessary.
14634 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
14636 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
14638 2010-05-14 Jason Merrill <jason@redhat.com>
14641 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
14642 (gimple_call_set_nothrow): New.
14643 * gimple.c (gimple_build_call_from_tree): Call it.
14644 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
14647 * gimplify.c (gimplify_seq_add_stmt): No longer static.
14648 * gimple.h: Declare it.
14649 * gimple.c (gimple_build_eh_filter): No ops.
14651 2010-05-14 Jan Hubicka <jh@suse.cz>
14653 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
14654 nodes already in queue.
14655 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
14656 re-enqueueing node.
14658 2010-05-14 Jakub Jelinek <jakub@redhat.com>
14661 * cfgexpand.c (expand_debug_expr): If non-memory op0
14662 has BLKmode, return NULL.
14664 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
14666 * config.gcc: Add support for --with-cpu option for bdver1.
14667 * config/i386/i386.h (TARGET_BDVER1): New macro.
14668 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
14669 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
14670 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
14671 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
14672 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
14673 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
14674 (processor_type): Add PROCESSOR_BDVER1.
14675 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
14676 processor_type in config/i386/i386.h.
14677 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
14678 movaps <reg, reg> instead of movapd <reg, reg> when replacing
14679 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
14680 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
14681 to emit packed xor instead of packed double/packed integer
14682 xor for SSE and AVX when moving a zero value.
14683 * config/i386/sse.md: Add check for
14684 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
14685 movapd/movdqa for SSE and AVX.
14686 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
14687 single logical operations i.e and, or and xor instead of packed double
14688 logical operations for SSE and AVX.
14689 * config/i386/i386-c.c (ix86_target_macros_internal):
14690 Add PROCESSOR_BDVER1.
14691 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
14692 (has_fma4, has_xop): New.
14693 * config/i386/i386.c (bdver1_cost): New variable.
14694 (m_BDVER1): New macro.
14695 (m_AMD_MULTIPLE): Add m_BDVER1.
14696 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
14697 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
14698 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
14699 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
14700 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
14701 x86_tune_sse_partial_reg_dependency,
14702 x86_tune_sse_unaligned_load_optimal,
14703 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
14704 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
14705 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
14706 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
14707 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
14708 Enable/disable for bdver1.
14709 (processor_target_table): Add bdver1_cost.
14710 (cpu_names): Add bdver1.
14711 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
14712 processor_alias_table.
14713 (ix86_expand_vector_move_misalign): Change.
14714 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
14715 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
14716 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
14717 of movupd/movdqu for SSE and AVX.
14718 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
14719 (ix86_tune_adjust_cost): Add code for bdver1.
14720 (standard_sse_constant_opcode): Add check for
14721 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
14722 of packed double xor for SSE and AVX.
14724 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
14726 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
14727 result to unsigned.
14729 2010-05-14 Tristan Gingold <gingold@adacore.com>
14731 * toplev.c (default_debug_hooks): Remove this variable.
14732 (process_options): Remove assignments to default_debug_hooks.
14734 2010-05-14 Martin Jambor <mjambor@suse.cz>
14736 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
14737 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
14738 * langhooks.h (struct lang_hooks_for_decls): Removed field
14740 * tree.c (free_lang_data): Remove assignment to
14741 lang_hooks.fold_obj_type_ref.
14742 * tree.def (OBJ_TYPE_REF): Update comment.
14744 2010-05-14 Richard Guenther <rguenther@suse.de>
14746 PR tree-optimization/44124
14747 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
14749 2010-05-14 Alan Modra <amodra@gmail.com>
14752 * config/rs6000/rs6000.c (struct machine_function): Reorder
14753 fields for better packing. Add lr_save_state.
14754 (rs6000_ra_ever_killed): Return lr_save_state if set.
14755 (rs6000_emit_eh_reg_restore): Set lr_save_state.
14757 2010-05-13 Jan Hubicka <jh@suse.cz>
14759 * varpool.c (decide_is_variable_needed): Drop code checking
14760 TREE_SYMBOL_REFERENCED.
14762 2010-05-13 Jan Hubicka <jh@suse.cz>
14764 * final.c (output_addr_const): Do not call mark_decl_referenced.
14765 * cgraphunit.c (process_function_and_variable_attributes): Use
14766 mark_needed_node dirrectly.
14767 (assemble_thunk): Do not call mark_decl_referenced.
14769 2010-05-13 Anatoly Sokolov <aesok@post.ru>
14771 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
14773 2010-05-13 Jeff Law <law@redhat.com>
14775 * ira-conflicts.c (print_allocno_conflicts): New function broken out
14777 (print_conflicts): Call print_allocno_conflicts.
14779 2010-05-13 Jakub Jelinek <jakub@redhat.com>
14782 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
14785 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
14787 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
14788 t-mingw-w64 or t-mingw-w32 for multilib configuration.
14789 * config/i386/t-mingw-w32: New.
14790 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
14792 2010-05-13 Martin Jambor <mjambor@suse.cz>
14794 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
14796 * gimple-fold.c (get_base_binfo_for_type): New function.
14797 (gimple_get_relevant_ref_binfo): Likewise.
14798 (gimple_fold_obj_type_ref_known_binfo): Likewise.
14799 (gimple_fold_obj_type_ref): Likewise.
14800 (fold_gimple_call): Simplify condition for folding virtual calls
14801 and call gimple_fold_obj_type_ref.
14802 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
14803 (gimple_fold_obj_type_ref_known_binfo): Likewise.
14805 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
14807 * config/rs6000/rs6000-protos.h
14808 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
14809 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
14810 (rs6000_debug_mode_dependent_address)
14811 (rs6000_mode_dependent_address_ptr): Likewise.
14813 2010-05-13 Jakub Jelinek <jakub@redhat.com>
14816 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
14818 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
14819 * tree-sra.c (create_access_replacement): Call unshare_expr before
14820 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
14821 * dwarf2out.c: Include tree-flow.h.
14822 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
14823 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
14824 Handle DW_OP_bit_piece.
14825 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
14826 construct_piece_list, adjust_piece_list): New functions.
14827 (add_var_loc_to_decl): Handle SRA optimized variables.
14828 Adjust for var_loc_note to loc field renaming.
14829 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
14830 in VAR_LOCATION note.
14831 (new_loc_descr_op_bit_piece): New function.
14832 (dw_sra_loc_expr): New function.
14833 (dw_loc_list): Use it. Don't handle the last range after the
14834 loop, handle it inside of the loop. Adjust for var_loc_note
14835 to loc field renaming.
14836 (add_location_or_const_value_attribute): Only special case
14837 single entry loc lists if loc is NOTE_P. Adjust for
14838 var_loc_note to loc field renaming.
14839 (dwarf2out_var_location): Don't set newloc->var_loc_note
14840 and newloc->next here.
14842 2010-05-12 Jan Hubicka <jh@suse.cz>
14844 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
14846 * cgraph.h (cgraph_only_called_directly_p,
14847 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
14848 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
14849 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
14851 * ipa.c (cgraph_remove_unreachable_nodes): Use
14852 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
14854 * tree-inline.c (copy_bb): Check address_taken flag.
14855 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
14856 externally_visible flag.
14858 2010-05-12 Jason Merrill <jason@redhat.com>
14862 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
14863 * sdbout.c (plain_type_1): Likewise.
14864 * dwarf2out.c (is_base_type): Likewise.
14865 (gen_type_die_with_usage): Likewise. Generate
14866 DW_TAG_unspecified_type for any LANG_TYPE.
14868 2010-05-12 Jan Hubicka <jh@suse.cz>
14870 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
14872 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
14873 (cgraph_clone_edge): Update.
14874 (cgraph_node_remove_callees): Remove indirect calls too.
14875 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
14876 (cgraph_create_indirect_edge): Update prototype.
14877 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
14878 is_proper_for_analysis.
14879 (add_new_function, visited_nodes, function_insertion_hook_holder,
14880 get_local_reference_vars_info, mark_address_taken, mark_address,
14881 mark_load, mark_store, check_asm_memory_clobber, check_call,
14882 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
14883 (ipa_init): Do not initialize visited_nodes;
14884 function_insertion_hook_holder.
14885 (analyze_variable): Rewrite.
14886 (analyze_function): Rewrite.
14887 (copy_local_bitmap): Remove.
14888 (duplicate_node_dat): Do not duplicate local info.
14889 (generate_summary): Simplify to only walk cgraph.
14890 (write_node_summary_p, ipa_reference_write_summary,
14891 ipa_reference_read_summary): Remove.
14892 (propagate): Do not remove function insertion;
14894 (pass_ipa_reference): NULLify summary handling fields.
14895 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
14896 (input_edge): Input ecf_flags.
14897 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
14898 (update_indirect_edges_after_inlining): Ignore edges with unknown
14901 2010-05-12 Sriraman Tallam <tmsriram@google.com>
14903 * implicit-zee.c: New file.
14904 * tree-pass.h (pass_implicit_zee): Declare.
14905 * passes.c (init_optimization_passes): Add zee pass.
14906 * common.opt (fzee): New flag.
14907 * timevar.def (TV_ZEE): Define.
14908 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
14910 * Makefile.in (implicit-zee.o): Add new build file.
14912 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
14913 Nathan Froyd <froydnj@codesourcery.com>
14915 * c-common.c (sync_resolve_params): Remove write-only variable.
14917 2010-05-12 Anatoly Sokolov <aesok@post.ru>
14919 * target.h (struct gcc_target): Add mode_dependent_address_p field.
14920 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
14921 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
14922 * targhooks.c (default_mode_dependent_address_p): New function.
14923 * targhooks.h (default_mode_dependent_address_p): Declare function.
14924 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
14925 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
14926 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
14927 target hook. Change return type to bool.
14928 * recog.h (mode_dependent_address_p): Change return type to bool.
14930 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
14931 Nathan Froyd <froydnj@codesourcery.com>
14933 * tree-mudflap.c (build_function_type_0, build_function_type_1,
14934 build_function_type_2, build_function_type_3): Remove.
14935 (mudflap_init): Use build_function_type_list.
14937 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
14938 Nathan Froyd <froydnj@codesourcery.com>
14940 * coverage.c (build_fn_info_value): Call build_constructor instead of
14941 build_constructor_from_list.
14942 (build_ctr_info_value): Likewise.
14943 (build_gcov_info): Likewise.
14945 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
14947 * tree.c (build_constructor): Compute TREE_CONSTANT for the
14948 resultant constructor.
14949 (build_constructor_single): Don't set TREE_CONSTANT.
14950 (build_constructor_from_list): Don't compute TREE_CONSTANT.
14952 2010-05-12 Jan Hubicka <jh@suse.cz>
14954 * cgraph.h (struct varpool_node): Add aux.
14955 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
14956 * varpool.c (varpool_remove_node): Do not remove initializer.
14957 (varpool_reset_queue): Export.
14958 (varpool_finalize_decl): Volatile vars are forced to be output.
14959 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
14961 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
14962 process_references, varpool_can_remove_if_no_refs): New functions.
14963 (cgraph_remove_unreachable_nodes): Handle variables too.
14965 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
14968 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
14970 2010-05-12 Jakub Jelinek <jakub@redhat.com>
14972 PR middle-end/44085
14973 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
14974 change value of ORT_TASK.
14975 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
14976 (omp_notice_threadprivate_variable): New function.
14977 (omp_notice_variable): Call it for threadprivate variables.
14978 If enclosing ctx is a task, print enclosing task rather than
14979 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
14980 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
14981 if task has untied clause.
14984 * dwarf2out.c (base_type_die): Don't add name attribute here.
14985 (modified_type_die): Instead of sizetype use
14986 its underlying original type. If a DW_TAG_base_type doesn't
14987 have name added, add __unknown__.
14988 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
14989 always call force_type_die instead.
14991 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
14993 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
14994 for __stack_chk_guard.
14996 2010-05-11 Jakub Jelinek <jakub@redhat.com>
14998 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
14999 don't call start_source_file debug hook here...
15000 (finish_options): ... but here, after outputting predefined and
15001 command line defines and undefs.
15003 PR middle-end/44071
15004 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
15006 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
15007 optimizing away empty bb with no successors, move over its
15008 footer chain to fallthru predecessor.
15009 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
15010 (rtl_split_edge): For asm goto call patch_jump_insn even if
15011 splitting fallthru edge.
15014 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
15015 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
15016 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
15017 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
15021 * c-parser.c (c_parser_expression): Mark LHS of a comma
15022 expression as read if it is a decl, handled component or
15023 COMPOUND_EXPR with that on the RHS.
15024 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
15025 if it is a decl or handled component.
15027 2010-05-11 Jan Hubicka <jh@suse.cz>
15029 * lto-symtab.c (lto_symtab_free): New function.
15030 * lto-streamer.h (lto_symtab_free): Declare.
15032 2010-05-11 Jan Hubicka <jh@suse.cz>
15034 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
15035 that if function is needed it is reachable.
15036 (lto_output_node): See if it the function is reachable or referenced.
15037 (output_cgraph): Update call of lto_output_node.
15038 * lto-streamer.h (reachable_from_other_partition_p): Declare.
15040 2010-05-11 Jan Hubicka <jh@suse.cz>
15042 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
15045 2010-05-11 Jan Hubicka <jh@suse.cz>
15047 PR tree-optimize/44063
15048 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
15050 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
15052 (estimate_function_body_sizes): Compute sizes even when disregarding.
15054 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
15056 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
15058 2010-05-11 Jan Hubicka <jh@suse.cz>
15060 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
15061 into every boundary.
15063 2010-05-11 Jan Hubicka <jh@suse.cz>
15065 * matrix-reorg.c (matrix_reorg): Rebuild edges.
15067 2010-05-11 Jan Hubicka <jh@suse.cz>
15069 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
15070 lto_streamer_cache_delete): Put nodes into heap.
15071 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
15074 2010-05-11 Jan Hubicka <jh@suse.cz>
15076 * cgraphbuild.c (cgraph_rebuild_references): New.
15077 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
15078 out extern inlines.
15079 * cgraph.h (cgraph_rebuild_references): Declare.
15080 * tree-inline.c (tree_function_versioning): Use it.
15081 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
15083 2010-05-11 Jan Hubicka <jh@suse.cz>
15085 * cgraph.c: Include ipa-utils.h
15086 (cgraph_create_virtual_clone): Update references.
15087 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
15089 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
15091 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
15092 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
15095 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
15097 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
15099 2010-05-11 Jakub Jelinek <jakub@redhat.com>
15101 * gcc.c (execute): For -### don't quote arguments that
15102 contain just alphanumerics and _/-. characters.
15103 * doc/invoke.texi: Document that change for -###.
15106 * df-problems.c (struct dead_debug): Add to_rescan field.
15107 (dead_debug_init): Clear to_rescan field.
15108 (dead_debug_finish): Rescan all debug insns in to_rescan
15109 bitmap and free the bitmap.
15110 (dead_debug_insert_before): Instead of rescanning debug insns
15111 immediately queue their rescanning until dead_debug_finish.
15112 (df_note_bb_compute): After dead_debug_add do continue instead
15115 2010-05-10 Jakub Jelinek <jakub@redhat.com>
15118 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
15119 clear also INSN_REG_USE_LIST.
15121 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15123 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
15125 2010-05-10 Jan Hubicka <jh@suse.cz>
15127 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
15130 2010-05-10 Jan Hubicka <jh@suse.cz>
15132 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
15134 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
15135 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
15136 (lto_streamer_cache_create): Init alloc pool.
15137 (lto_streamer_cache_delete): Free alloc pool.
15138 * lto-streamer.h: Include alloc pool.
15139 (lto_streamer_cache_d): Use alloc pool.
15140 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
15142 2010-05-10 Jan Hubicka <jh@suse.cz>
15144 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
15145 * cgraphbuild.c: Include except.h
15146 (record_type_list, record_eh_tables): New function.
15147 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
15149 2010-05-10 Jan Hubicka <jh@suse.cz>
15151 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
15152 __frame_dummy_init_array_entry, force_to_data): Attribute as used
15153 rather than unused.
15155 2010-05-10 Michael Matz <matz@suse.de>
15157 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
15158 (can_reassociate_p): Use FLOAT_TYPE_P.
15159 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
15160 (vect_force_simple_reduction): ... this.
15161 * tree-parloops.c (gather_scalar_reductions): Use
15162 vect_force_simple_reduction.
15163 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
15164 vect_is_simple_reduction, add modify argument, if true rewrite
15165 "a-b" into "a+(-b)".
15166 (vect_is_simple_reduction, vect_force_simple_reduction): New
15168 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
15170 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
15171 Vladimir Makarov <vmakarov@redhat.com>
15173 PR rtl-optimization/44012
15174 * ira-build.c (remove_unnecessary_allocnos): Nullify
15175 regno_allocno_map of the removed allocno.
15177 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15179 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
15181 * configure: Regenerate.
15183 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15185 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
15187 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
15188 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
15190 * configure: Regenerate.
15192 2010-05-10 Richard Guenther <rguenther@suse.de>
15194 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
15195 marked if the entry identifier is marked.
15197 2010-05-10 Richard Guenther <rguenther@suse.de>
15199 * c-common.c (struct c_common_attributes): Add fnspec attribute.
15200 (handle_fnspec_attribute): New function.
15201 * gimple.h (gimple_call_return_flags): Declare.
15202 (gimple_call_arg_flags): Likewise.
15203 * gimple.c (gimple_call_arg_flags): New function.
15204 (gimple_call_return_flags): Likewise.
15205 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
15206 New argument flags.
15207 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
15208 return value flags.
15209 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
15210 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
15212 (make_heapvar_for): ... this new function.
15213 (handle_rhs_call): Handle fnspec attribute argument specifiers.
15214 (handle_lhs_call): Likewise.
15215 (find_func_aliases): Adjust.
15217 2010-05-10 Richard Guenther <rguenther@suse.de>
15219 PR tree-optimization/44050
15220 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
15222 2010-05-10 Wei Guozhi <carrot@google.com>
15225 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
15227 2010-05-09 Joseph Myers <joseph@codesourcery.com>
15230 * c-typeck.c (lookup_field): Take a type directly. Update
15232 (build_component_ref): Update call to lookup_field.
15233 (set_init_label): Use lookup_field to find initialized field.
15234 Handle returned list of fields like a sequence of designators.
15236 2010-05-09 Richard Guenther <rguenther@suse.de>
15238 PR middle-end/44024
15239 * fold-const.c (tree_single_nonzero_warnv_p): Properly
15240 handle &FUNCTION_DECL.
15242 2010-05-09 Joseph Myers <joseph@codesourcery.com>
15245 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
15246 structures and unions recursively.
15247 (detect_field_duplicates): Move duplicate detection with a hash to
15248 detect_field_duplicates_hash. Always use a hash if anonymous
15249 structures or unions are present.
15250 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
15253 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
15256 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
15257 detect Atom, Core 2 and Core i7.
15259 2010-05-09 Richard Guenther <rguenther@suse.de>
15261 * gcc.c (store_arg): Handle temporary file deletion for
15264 2010-05-09 Richard Guenther <rguenther@suse.de>
15266 PR middle-end/44043
15267 * ipa-inline.c (estimate_function_body_sizes): Return after
15268 disregarding inline limits.
15270 2010-05-09 Richard Guenther <rguenther@suse.de>
15272 * gcc.c (store_arg): Revert last change.
15274 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
15276 PR middle-end/28685
15277 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
15278 (optimize_ops_list): Call it.
15280 2010-05-08 Richard Guenther <rguenther@suse.de>
15282 PR tree-optimization/44030
15283 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
15284 NECESSARY flag if we propagate from a inserted expression.
15286 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
15288 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
15289 domain types as equal if they are both PLACEHOLDER_EXPRs.
15291 2010-05-08 Richard Guenther <rguenther@suse.de>
15293 * lto-wrapper.c (run_gcc): Remove linker output from
15294 command line for LTRANS invocation.
15296 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
15298 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
15299 lto-macho as lto_binary_reader.
15300 * target.h (struct gcc_target): New hooks lto_start and lto_end.
15301 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
15302 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
15303 in lto_start and lto_end calls.
15304 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
15306 (scan_prog_file): Update is_elf_or_coff call.
15307 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
15309 * collect2.c (main): Fix enum comparison.
15311 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
15313 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
15314 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
15315 and TARGET_ASM_LTO_END.
15316 * darwin.c: Include obstack.h and lto-streamer.h.
15317 (lto_section_names_offset, lto_section_names_obstack,
15318 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
15320 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
15321 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
15322 to a temporary file.
15323 (darwin_asm_lto_end): New function. Restore asm_out_file.
15324 (darwin_asm_named_section): For LTO sections, replace the name with
15325 the offset of the section name in a string table, and build this
15327 (darwin_file_start): Initialize global vars for LTO support.
15328 (darwin_file_end): If output to asm_out_file was redirected, append it
15329 to the proper asm_out_file here. Add the section names section.
15331 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
15333 * c-pragma.c (pending_weak_d, pending_weak): New.
15334 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
15335 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
15336 handle_pragma_weak): Update the uses of pending_weaks.
15338 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15340 PR documentation/44016
15341 * doc/standards.texi (Standards): Link to unversioned
15342 cxx0x_status.html page.
15344 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
15347 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
15348 in addition to TREE_USED, to avoid "set but unused" warnings.
15350 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
15352 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
15353 (is_loop_prefetching_profitable): Do not insert prefetches
15354 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
15355 times the prefetch ahead distance.
15357 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
15359 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
15360 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
15361 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
15364 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
15366 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
15367 a diagnostic info when the insn-to-mem ratio is too small.
15369 2010-05-07 Richard Guenther <rguenther@suse.de>
15371 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
15373 (store_arg): Queue temp_filename for deletion instead of
15374 the whole argument.
15376 2010-05-07 Richard Guenther <rguenther@suse.de>
15378 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
15379 (run_gcc): Handle LTRANS phase invocation.
15380 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
15382 2010-05-07 Jakub Jelinek <jakub@redhat.com>
15384 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
15385 this is also meaningful on PARM_DECLs and RESULT_DECLs.
15387 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15389 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
15391 2010-05-07 Richard Guenther <rguenther@suse.de>
15393 PR tree-optimization/44020
15394 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
15395 code when PRE is not yet initialized.
15397 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15399 * config/mips/dbxmdebug.h: Remove.
15400 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
15402 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
15404 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
15405 with null pointer and also warn about ordered comparison of zero with
15406 pointer if -Wextra.
15408 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
15410 * graphite-blocking.c
15411 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
15412 * graphite-clast-to-gimple.c
15413 (clast_to_gcc_expression): Same.
15414 (precision_for_value): Same.
15415 (precision_for_interval): Same.
15416 (gcc_type_for_interval): Same.
15417 (graphite_create_new_guard): Same.
15418 (compute_bounds_for_level): Same.
15419 (graphite_create_new_loop_guard): Same.
15420 * graphite-interchange.c
15421 (build_linearized_memory_access): Same.
15422 (pdr_stride_in_loop): Same.
15423 (memory_strides_in_loop_1): Same.
15424 (memory_strides_in_loop): Same.
15425 (extend_scattering): Same.
15426 (psct_scattering_dim_for_loop_depth): Same.
15427 (pbb_number_of_iterations): Same.
15429 (debug_iteration_domains): Same.
15431 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15432 (ppl_set_inhomogeneous_gmp): Same.
15433 (ppl_strip_loop): Same.
15434 (ppl_lexico_compare_linear_expressions): Same.
15435 (ppl_read_polyhedron_matrix): Same.
15436 (ppl_max_for_le_pointset): Same.
15438 (ppl_read_polyhedron_matrix): Same.
15439 (tree_int_to_gmp): Same.
15440 (gmp_cst_to_tree): Same.
15441 (ppl_set_inhomogeneous): Same.
15442 (ppl_set_inhomogeneous_tree): Same.
15443 (ppl_set_coef): Same.
15444 (ppl_set_coef_tree): Same.
15445 * graphite-sese-to-poly.c
15446 (build_pbb_scattering_polyhedrons): Same.
15447 (build_scop_scattering): Same.
15448 (scan_tree_for_params_right_scev): Same.
15449 (scan_tree_for_params): Same.
15450 (find_params_in_bb): Same.
15451 (find_scop_parameters): Same.
15452 (add_upper_bounds_from_estimated_nit): Same.
15453 (build_loop_iteration_domains): Same.
15454 (add_condition_to_domain): Same.
15455 (pdr_add_memory_accesses): Same.
15457 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
15459 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
15460 CLooG's value_* macros to their respective mpz_* counterparts.
15461 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
15462 (graphite_create_new_loop_guard): Same.
15463 * graphite-interchange.c (build_linearized_memory_access): Same.
15464 (pdr_stride_in_loop): Same.
15465 (memory_strides_in_loop_1): Same.
15466 (1st_interchange_profitable_p): Same.
15467 * graphite-poly.c (extend_scattering): Same.
15468 (psct_scattering_dim_for_loop_depth): Same.
15469 (pbb_number_of_iterations): Same.
15470 (pbb_number_of_iterations_at_time): Same.
15471 * graphite-poly.h (new_1st_loop): Same.
15472 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
15473 (oppose_constraint): Same.
15474 (insert_constraint_into_matrix): Same.
15475 (ppl_set_inhomogeneous_gmp): Same.
15476 (ppl_set_coef_gmp): Same.
15477 (ppl_strip_loop): Same.
15478 (ppl_lexico_compare_linear_expressions): Same.
15479 (ppl_max_for_le_pointset): Same.
15480 (ppl_min_for_le_pointset): Same.
15481 (ppl_build_realtion): Same.
15482 * graphite-ppl.h (gmp_cst_to_tree): Same.
15483 (ppl_set_inhomogeneous): Same.
15484 (ppl_set_inhomogeneous_tree): Same.
15485 (ppl_set_coef): Same.
15486 (ppl_set_coef_tree): Same.
15487 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
15488 (build_scop_scattering): Same.
15489 (add_value_to_dim): Same.
15490 (scan_tree_for_params_right_scev): Same.
15491 (scan_tree_for_params_int): Same.
15492 (scan_tree_for_params): Same.
15493 (find_params_in_bb): Same.
15494 (find_scop_parameters): Same.
15495 (add_upper_bounds_from_estimated_nit): Same.
15496 (build_loop_iteration_domains): Same.
15497 (create_linear_expr_from_tree): Same.
15498 (add_condition_to_domain): Same.
15499 (pdr_add_memory_accesses): Same.
15501 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
15502 Jason Merrill <jason@redhat.com>
15504 * c-common.c (c_common_reswords): Add nullptr.
15505 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
15506 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
15507 (gen_type_die_with_usage): Likewise.
15508 * dbxout.c (dbxout_type): Likewise.
15509 * sdbout.c (plain_type_1): Likewise.
15511 2010-05-06 Jason Merrill <jason@redhat.com>
15513 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
15514 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
15516 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
15518 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
15519 stripping WITH_SIZE_EXPR.
15520 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
15523 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15525 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
15526 list of obsolete configurations.
15527 Disabled check for obsolete configurations.
15528 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
15529 Removed support for previous versions.
15530 * config/mips/iris.h: Removed.
15531 * config/mips/iris5.h: Removed.
15532 * config/mips/iris6.h: Merged old iris.h contents.
15533 (TARGET_IRIX): Removed.
15534 (DRIVER_SELF_SPECS): Removed mabi=32.
15535 (IDENT_ASM_OP): Removed undef.
15536 (STARTFILE_SPEC): Removed mabi=32.
15537 (ENDFILE_SPEC): Likewise.
15538 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
15539 (MACHINE_TYPE): Update for IRIX 6.5.
15540 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
15541 TARGET_IRIX by TARGET_IRIX6.
15542 (mips_file_start): Likewise.
15543 (mips_output_external): Remove IRIX 5/6 O32 support.
15544 (mips_output_function_prologue): Likewise.
15545 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
15547 (TARGET_CPU_CPP_BUILTINS): Likewise.
15548 (TARGET_IRIX): Removed.
15549 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
15550 (MULTILIB_DIRNAMES): Removed 32.
15551 (MULTILIB_OSDIRNAMES): Removed ../lib.
15552 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
15553 (Specific, mips-sgi-irix5): Document removal.
15554 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
15555 Remove references to older IRIX 6 releases and the O32 ABI.
15557 2010-05-06 Jakub Jelinek <jakub@redhat.com>
15560 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
15561 instead of DF_REF_REAL_REG.
15563 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
15566 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
15567 handling to still return true for x64 targets.
15569 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
15571 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
15573 2010-05-06 Jan Hubicka <jh@suse.cz>
15575 PR tree-optimization/43791
15576 * ipa-inline.c (update_caller_keys): Remove bogus
15577 disregard_inline_limits check.
15579 2010-05-06 Michael Matz <matz@suse.de>
15581 PR tree-optimization/43984
15582 * tree-ssa-pre.c (inserted_phi_names): Remove.
15583 (inserted_exprs): Change to bitmap.
15584 (create_expression_by_pieces): Set bits, don't append to vector.
15585 (insert_into_preds_of_block): Don't handle inserted_phi_names.
15586 (eliminate): Don't look at inserted_phi_names, remove deleted
15587 insns from inserted_exprs.
15588 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
15589 (init_pre, fini_pre): Allocate and free bitmaps.
15590 (execute_pre): Insert insns on edges before elimination.
15592 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
15594 * tree.c (initializer_zerop): Handle STRING_CST.
15596 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
15599 * doc/invoke.texi (Wimplicit): Document as C only.
15600 * opts.c (common_handle_option): Add argument kind.
15601 (handle_option): Rename as read_cmdline_option. Factor out code to...
15602 (handle_option): ... here. New.
15603 (handle_options): Rename as read_cmdline_options.
15604 (decode_options): Update call.
15605 (set_option): Use option index instead of option pointer. Classify
15606 diagnostics correctly.
15607 (enable_warning_as_error): Call handle_option.
15608 * opts.h (set_option): Update declaration.
15609 (handle_option): Declare.
15610 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
15611 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
15612 * c-opts.c (set_Wimplicit): Delete.
15613 (c_family_lang_mask): New static constant.
15614 (c_common_handle_option): Add argument kind. Use handle_option
15615 instead of set_Wimplicit.
15616 (c_common_post_options): warn_implicit and warn_implicit_int
15617 are disabled by default.
15618 * c-common.c (warn_implicit): Do not define here.
15619 * c-common.h (warn_implicit): Do not declare here.
15620 (c_common_handle_option): Update declaration.
15621 * lto-opts.c (lto_reissue_options): Update call to set_option.
15623 2010-05-06 Richard Guenther <rguenther@suse.de>
15625 PR tree-optimization/43571
15626 * domwalk.c (walk_dominator_tree): Walk the dominator
15627 sons in more optimal order.
15629 2010-05-06 Richard Guenther <rguenther@suse.de>
15631 PR tree-optimization/43934
15632 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
15633 (stmt_cost): Likewise.
15634 (extract_true_false_args_from_phi): New helper.
15635 (determine_max_movement): For PHI nodes verify we can hoist them
15636 and compute their cost.
15637 (determine_invariantness_stmt): Handle PHI nodes.
15638 (move_computations_stmt): Likewise. Hoist PHI nodes in
15639 if-converted form using COND_EXPRs.
15640 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
15641 (tree_ssa_lim): Likewise.
15642 * tree-flow.h (tree_ssa_lim): Adjust prototype.
15643 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
15645 2010-05-06 Richard Guenther <rguenther@suse.de>
15647 PR tree-optimization/43987
15648 * tree-ssa-structalias.c (could_have_pointers): For possibly
15649 address-taken variables force pointers to be recorded.
15650 (create_variable_info_for_1): Likewise.
15651 (push_fields_onto_fieldstack): Pass in wheter all fields
15652 must have pointers.
15653 (find_func_aliases): Query types instead of vars whether
15654 they contain pointers where appropriate.
15656 2010-05-06 Jan Hubicka <jh@suse.cz>
15658 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
15659 (record_reference, mark_address, mark_load, mark_store): Record
15661 (record_references_in_initializer): Update call of record_references.
15662 (rebuild_cgraph_edges): Remove all references before rebuiding.
15663 * cgraph.c (cgraph_create_node): Clear ref list.
15664 (cgraph_remove_node): Remove references.
15665 (dump_cgraph_node): Dump references.
15666 (cgraph_clone_node): Clone references.
15667 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
15668 (struct cgraph_node, varpool_node): Add ref_lst.
15669 * ipa-ref.c: New file.
15670 * ipa-ref.h: New file.
15671 * ipa-ref-inline.h: New file.
15672 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
15673 (referenced_from_other_partition_p): New function.
15674 (lto_output_varpool_node): Take set arugment; call
15675 referenced_from_other_partition.
15676 (lto_output_ref): New.
15677 (add_references): New.
15678 (output_refs): New.
15679 (output_cgraph): Compute boundary based on references; output refs.
15680 (output_varpool): Accept cgraph_node_set argument.
15683 (input_cgraph): Call input_refs.
15684 * lto-section-in.c (lto_section_name): Add refs.
15685 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
15686 (ipa-ref.o): New file.
15687 * varpool.c (varpool_node): Clear ipa ref list.
15688 (varpool_remove_node): Remove references.
15689 (dump_varpool_node): Dump references.
15690 (varpool_assemble_decl): Only compile finalized ones.
15691 (varpool_extra_name_alias): Initialize ref list.
15692 * lto-streamer.c (lto-get_section_name): Add .refs section.
15693 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
15694 (referenced_from_other_partition_p): Declared.
15696 2010-05-06 Ira Rosen <irar@il.ibm.com>
15698 PR tree-optimization/43901
15699 * tree-vect-stmts.c (vectorizable_call): Assert that vector
15700 type is not NULL if it's transformation phase, and return
15701 FALSE if it's analysis.
15702 (vectorizable_conversion, vectorizable_operation,
15703 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
15705 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
15707 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
15709 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
15711 * config/mips/mips-protos.h
15712 (mips_small_register_classes_for_mode_p): Delete prototype.
15714 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
15716 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
15717 * config/arm/arm.c (multiple_operation_profitable_p,
15718 compute_offset_order): New static functions.
15719 (load_multiple_sequence, store_multiple_sequence): Use them.
15720 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
15721 memory offsets, not register numbers.
15722 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
15724 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
15726 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
15727 (get_pending_sizes, put_pending_size, put_pending_sizes):
15728 Update the uses of pending_sizes.
15729 * c-decl.c (store_parm_decls): Likewise.
15730 * c-tree.h (struct c_arg_info): Likewise.
15731 * tree.h: Update the prototype for get_pending_sizes and
15734 2010-05-05 Jason Merrill <jason@redhat.com>
15737 * c-common.c (handle_aligned_attribute): Respect
15738 ATTR_FLAG_TYPE_IN_PLACE.
15741 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
15742 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15743 (TARGET_INITIALIZER): Use it.
15744 * c-common.c (attribute_takes_identifier_p): Call it.
15745 * c-common.h: Update prototype.
15746 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
15747 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15749 2010-05-05 Jakub Jelinek <jakub@redhat.com>
15752 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
15753 DW_ID_down_case for Fortran compilation units.
15755 2010-05-05 Jan Hubicka <jh@suse.cz>
15757 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
15760 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
15762 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
15763 a variable-sized RESULT_DECL.
15765 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
15767 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
15769 2010-05-05 Jason Merrill <jason@redhat.com>
15772 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
15774 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
15776 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
15777 Jakub Jelinek <jakub@redhat.com>
15780 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
15781 (dead_debug_init, dead_debug_finish): New functions.
15782 (dead_debug_add, dead_debug_insert_before): Likewise.
15783 (df_note_bb_compute): Initialize a dead_debug object, add dead
15784 debug uses to it, insert debug bind insns before death insns,
15785 reset debug insns that refer to pending uses at the end.
15786 * rtl.h (make_debug_expr_from_rtl): New prototype.
15787 * varasm.c (make_debug_expr_from_rtl): New function.
15789 2010-05-05 Jan Hubicka <jh@suse.cz>
15791 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
15792 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
15793 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
15794 lto_varpool_encoder_deref, lto_varpool_encoder_size,
15795 lto_varpool_encoder_encode_initializer_p,
15796 lto_set_varpool_encoder_encode_initializer): New functions.
15797 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
15798 call output_varpool.
15799 (input_varpool_node): Do not always set analyzed.
15800 (input_cgraph_1): Return vector of cgraph nodes.
15801 (input_varpool_1): Return vector of varpools.
15802 (input_cgraph): Free the vectors.
15803 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15804 output only initializers needed.
15805 (lto_output): Only call output_cgraph.
15806 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
15807 * lto-section-out.c (lto_new_out_decl_state): Initialize
15808 state->varpool_node_encoder.
15809 * lto-streamer.h (lto_varpool_encoder_d): New.
15810 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
15811 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
15812 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
15813 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
15814 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
15816 (output_varpool, input_varpool): Remove declarations.
15818 2010-05-05 Jan Hubicka <jh@suse.cz>
15820 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
15821 with body can prevail.
15823 2010-05-05 Jan Hubicka <jh@suse.cz>
15825 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
15828 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
15830 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
15832 * gengtype.h (erro_at_line): Constify pos argument.
15834 * gengtype.c: Include hashtab.h.
15835 (enum gc_used): Document GC_MAYBE_POINTED_TO.
15836 (error_at_line): Constify pos argument.
15837 (do_typedef): Initialize p->opt field.
15838 (get_file_gtfilename): Fix comment typo.
15839 (struct walk_type_data): Constify line field.
15840 (get_output_file_for_structure): New function.
15841 (write_local_func_for_structure): Constify orig_s argument.
15842 Use get_output_file_for_structure.
15843 (write_func_for_structure): Use get_output_file_for_structure.
15844 (INDENT): New define.
15845 (dump_pair, dump_type, dump_type_list, dump_typekind)
15846 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
15847 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
15849 (seen_types): New variable.
15850 (main): New variable do_dump. Process "-d" command line option.
15851 Call dump_everything if dump requested.
15853 2010-05-05 Jakub Jelinek <jakub@redhat.com>
15855 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
15856 in a temporary instead of invoking the macro multiple times.
15857 (track_expr_p): Likewise.
15859 2010-05-04 Neil Vachharajani <nvachhar@google.com>
15861 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
15863 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
15864 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
15865 conditions for printing notes.
15866 * common.opt (-Wcoverage-mismatch): Allow negative, default to
15867 true, update documentation.
15868 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
15870 2010-05-04 Jakub Jelinek <jakub@redhat.com>
15873 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
15876 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
15879 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
15880 (*sse_prologue_save_insn1): Likewise.
15881 (SSE prologue save splitter): Likewise.
15883 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
15885 * tree.c (free_lang_data_in_one_sizepos): New inline function.
15886 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
15887 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
15888 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
15889 all decls. Call it on DECL_FIELD_OFFSET of fields.
15890 (find_decls_types_r): Follow DECL_VALUE_EXPR.
15891 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
15893 2010-05-04 Martin Jambor <mjambor@suse.cz>
15895 * tree-sra.c (build_access_from_expr_1): The first parameter type
15896 changed to simple tree.
15897 (build_access_from_expr): Likewise, gsi parameter was eliminated.
15898 (scan_assign_result): Renamed to assignment_mod_result, enum elements
15900 (build_accesses_from_assign): Removed all parameters except for a
15901 simple gimple statement. Now returns a simple bool.
15902 (scan_function): All non-analysis parts moved to separate functions
15903 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
15904 parameters and updated both callers.
15905 (sra_modify_expr): Removed parameter data.
15906 (sra_modify_function_body): New function.
15907 (perform_intra_sra): Call sra_modify_function_body to modify the
15909 (replace_removed_params_ssa_names): Parameter data changed into
15910 adjustments vector.
15911 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
15912 changed the parameter dont_convert to convert with the opposite
15914 (sra_ipa_modify_assign): Parameter data changed into adjustments
15915 vector, return value changed to bool.
15916 (ipa_sra_modify_function_body): New function.
15917 (sra_ipa_reset_debug_stmts): Updated a comment.
15918 (modify_function): Use ipa_sra_modify_function_body to modify function
15921 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
15923 PR middle-end/43671
15924 * alias.c (true_dependence): Handle the same VALUE in x and mem.
15925 (canon_true_dependence): Likewise.
15926 (write_dependence_p): Likewise.
15928 2010-05-04 Jan Hubicka <jh@suse.cz>
15930 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
15931 * cgraphbuild.c: Include ipa-utils.h
15932 (record_reference_ctx): New struct.
15933 (record_reference): Simplify to work on initializers; not statements.
15934 (mark_address, mark_load, mark_store): New.
15935 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
15936 walk PHI nodes too.
15937 (record_references_in_initializer): Update use of record_reference.
15938 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
15939 walk PHI nodes too.
15941 2010-05-04 Jan Hubicka <jh@suse.cz>
15943 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
15944 node will be removed anyway.
15945 (lto_varpool_replace_node): Allow also unanalyzed nodes;
15946 relink aliases of node into prevailing node.
15947 * varpool.c (varpool_remove_node): Remove aliases properly;
15948 when removing node, remove all its aliases too; remove DECL_INITIAL
15949 of removed node; ggc_free the varpool node.
15951 2010-05-04 Richard Guenther <rguenther@suse.de>
15953 PR tree-optimization/43879
15954 * tree-ssa-structalias.c (alias_get_name): Use
15955 DECL_ASSEMBLER_NAME if available.
15956 (create_function_info_for): Return the varinfo node.
15957 (ipa_pta_execute): Associate same-body aliases and extra names
15958 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
15960 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
15962 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
15964 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
15967 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
15968 only if HONOR_REG_ALLOC_ORDER is not defined.
15970 2010-05-04 Richard Guenther <rguenther@suse.de>
15972 PR tree-optimization/43949
15973 * tree-vrp.c (extract_range_from_binary_expr): Only handle
15976 2010-04-26 Jason Merrill <jason@redhat.com>
15978 * c.opt (-fstrict-enums): New.
15979 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
15981 2010-05-03 David Ung <davidu@mips.com>
15982 James E. Wilson <wilson@codesourcery.com>
15984 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
15985 emit the trap instruction before the divide for TUNE_74K.
15987 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
15989 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
15990 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
15991 based on the above, for new target hook.
15993 * hooks.c (hook_bool_mode_true): New generic hook.
15994 * hooks.h (hook_bool_mode_true): Add prototype.
15996 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
15998 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
15999 target hook, set to hook_bool_mode_false.
16000 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
16001 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
16002 with targetm.small_register_classes_for_mode_p.
16003 (find_reusable_reload): Likewise.
16004 (combine_reloads): Likewise.
16005 * reload1.c (reload_as_needed): Likewise.
16006 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
16007 * ifcvt.c (noce_process_if_block, check_cond_move_block,
16008 dead_or_predicable): Likewise.
16009 * regmove.c (optimize_reg_copy_1): Likewise.
16010 * calls.c (prepare_call_address): Likewise.
16011 (precompute_register_parameters): Likewise.
16013 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
16015 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
16016 implementation of the hook that considers all register classes
16017 small except for SH64.
16018 (sh_override_options): Use the new hook.
16019 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
16022 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
16024 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
16025 implementation of the hook that considers all register classes
16027 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
16030 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
16032 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
16033 implementation of the hook that considers all register classes
16035 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
16038 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
16040 * config/m32c/m32c.h: Likewise.
16041 * config/pdp11/pdp11.h: Likewise.
16042 * config/avr/avr.h: Likewise.
16043 * config/xtensa/xtensa.h: Likewise.
16044 * config/m68hc11/m68hc11.h: Likewise.
16045 * config/mn10300/mn10300.h: Likewise.
16046 * config/mcore/mcore.h: Likewise.
16047 * config/h8300/h8300.h: Likewise.
16048 * config/bfin/bfin.h: Likewise.
16050 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
16051 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
16053 2010-05-03 Anatoly Sokolov <aesok@post.ru>
16055 * double-int.h (tree_to_double_int): Remove macro.
16056 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
16057 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
16058 (tree_to_double_int): New function.
16059 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
16061 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
16063 2010-05-03 Richard Guenther <rguenther@suse.de>
16065 PR tree-optimization/43971
16066 * tree-ssa-structalias.c (get_constraint_for_1): Fix
16067 constraints in the !flag_delete_null_pointer_checks case.
16069 2010-05-03 Jakub Jelinek <jakub@redhat.com>
16072 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
16073 result mode matches original rtl mode.
16075 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
16078 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
16080 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
16082 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
16083 when processing flag options.
16085 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
16087 * gcov-iov.c (main): Change format string placeholder
16088 from %#08x to 0x%08x.
16089 * genchecksum.c (dosum): Change format string placeholder
16090 from %#02x to 0x%02x.
16092 2010-05-02 Richard Guenther <rguenther@suse.de>
16094 PR tree-optimization/43879
16095 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
16097 2010-05-02 Bruno Haible <bruno@clisp.org>
16099 * doc/extend.texi (Function Attributes): Fix a typo.
16101 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
16104 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
16105 placeholder from 0x%x to %#x.
16106 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
16107 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
16108 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
16109 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
16110 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
16111 * config/i386/i386.c (ix86_target_string): Ditto.
16112 * config/i386/i386.c (output_pic_addr_const): Ditto.
16113 (print_operand): Ditto.
16115 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
16117 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
16118 placeholder from 0x%x to %#x.
16119 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
16120 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
16121 (ASM_OUTPUT_DEBUG_DATA): Ditto.
16122 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
16123 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
16124 * optc-gen.awk: Ditto.
16125 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
16126 (HOST_WIDE_INT_PRINT_HEX): Ditto.
16127 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
16128 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
16130 2010-05-01 Anatoly Sokolov <aesok@post.ru>
16132 * target.h (struct calls): Add function_value_regno_p field.
16133 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
16134 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
16135 * targhooks.c (default_function_value_regno_p): New function.
16136 * targhooks.h (default_function_value_regno_p): Declare function.
16137 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
16138 * builtins.c. (apply_result_size): (Ditto.).
16139 * combine.c. (likely_spilled_retval_p): (Ditto.).
16140 * mode-switching.c. Include 'target.h'.
16141 (create_pre_exit): Use function_value_regno_p hook.
16142 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
16143 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
16144 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
16146 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
16147 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
16148 (ix86_function_value_regno_p): Declare as static, change argument
16149 type to const unsigned int.
16150 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
16152 2010-05-01 Richard Guenther <rguenther@suse.de>
16154 PR tree-optimization/43949
16155 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
16157 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
16159 2010-05-01 Anatoly Sokolov <aesok@post.ru>
16161 * rtl.h (CONST_DOUBLE_P): Define.
16162 (rtx_to_double_int): Declare.
16163 * emit-rtl.c (rtx_to_double_int): New function.
16164 * dwarf2out.c (insert_double): New function.
16165 (loc_descriptor, add_const_value_attribute): Clean up, use
16166 rtx_to_double_int and insert_double functions.
16168 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
16170 * doc/extend.texi (Inline): Add missing return keyword to examples.
16171 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
16174 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
16176 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
16177 the variable part of the offset as well. Use highest_pow2_factor for
16178 all alignment checks.
16180 2010-04-30 Richard Guenther <rguenther@suse.de>
16182 PR tree-optimization/43879
16183 * tree-ssa-structalias.c (type_could_have_pointers): Functions
16186 2010-04-30 Jan Hubicka <jh@suse.cz>
16188 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
16190 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
16192 2010-04-30 Jan Hubicka <jh@suse.cz>
16194 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
16196 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
16197 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
16198 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
16199 cgraph_node_set_needs_ltrans_p): Remove.
16201 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
16203 * sdbout.c: Include vec.h, do not include varray.h.
16204 (deferred_global_decls, sdbout_global_decl,
16205 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
16206 * toplev.c: Do not include varray.h.
16207 (dump_memory_report): Do not dump VARRAY statistics.
16208 * gengtype.c (open_base_file): Ignore varray.h.
16209 * Makefile.in: Update for abovementioned changes.
16210 Remove all traces of varray.c and varray.h.
16211 * varray.c: Remove file.
16212 * varray.h: Remove file.
16214 2010-04-30 Jan Hubicka <jh@suse.cz>
16216 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
16219 2010-04-30 Jan Hubicka <jh@suse.cz>
16221 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
16224 2010-04-30 Richard Guenther <rguenther@suse.de>
16226 * tree-ssa-structalias.c (get_constraint_for_1): Generate
16227 constraints for CONSTRUCTOR.
16229 2010-04-30 Richard Guenther <rguenther@suse.de>
16232 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
16233 first after all lowering passes.
16235 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
16237 * toplev.c: Include varray.h for statistics dumping.
16238 * tree.h: Do not declare varray_head_tag.
16239 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
16240 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
16241 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
16242 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
16243 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
16244 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
16245 c-common.c, c-common.h, reg-stack.c, basic-block.h,
16246 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
16248 * Makefile.in: Update for abovementioned changes.
16250 2010-04-30 Jakub Jelinek <jakub@redhat.com>
16253 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
16255 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
16257 * config/picochip/picochip.c (picochip_legitimize_address): Define.
16258 Use this function to do machine-specific conversion.
16259 (picochip_legitimize_reload_address): Likewise.
16260 (picochip_legitimate_address_p): Check valid base register only if
16262 (picochip_check_conditional_copy): Check for modw only if opnd is
16264 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
16265 to call the function in c.
16266 * config/picochip/picochip-protos.h
16267 (picochip_legitimize_reload_address): Define.
16268 * config/picochip/picochip.md (supported_compare1): Define.
16270 2010-04-30 Jan Hubicka <jh@suse.cz>
16272 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
16273 (cgraph_global_info): Remove inlined.
16274 (LTO_cgraph_tag_names): Remove.
16275 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
16276 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
16277 simplify cgraph tags and document.
16278 (lto_output_node): Use only LTO_cgraph_unavail_node and
16279 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
16280 for_functions_valid, global info, process and output flags.
16281 (input_overwrite_node): Initialize estimated stack size and
16282 estimated growth. Do not read flags we no longer store.
16283 (input_node): Likewise do not read info no longer stored.
16284 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
16287 2010-04-30 Richard Guenther <rguenther@suse.de>
16289 PR tree-optimization/43879
16290 * tree-ssa-structalias.c (get_constraint_for_1): Properly
16291 handle non-zero initializers.
16293 2010-04-30 Richard Guenther <rguenther@suse.de>
16295 * builtins.c (fold_builtin_1): Delete free (0).
16297 2010-04-29 Jan Hubicka <jh@suse.cz>
16299 * gengtype.c (open_base_files): Add lto-streamer.h
16300 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
16301 (pass_ipa_cp): GGC collect.
16302 * toplev. (compile_file): Do not output symbols.
16303 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
16304 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
16305 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
16306 * lto-section-in.c: Include ggc.h
16307 (lto_new_in_decl_state): Alloc in GGC.
16308 (lto_delete_in_decl_state): Likewise.
16309 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
16312 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
16315 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
16316 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
16317 (HONOR_REG_ALLOC_ORDER): Describe new macro.
16318 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
16319 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
16320 account only if HONOR_REG_ALLOC_ORDER is not defined.
16321 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
16322 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
16324 2010-04-29 Jon Grant <04@jguk.org>
16326 * collect2.c (vflag): Change type from int to bool.
16328 (helpflag): New global bool.
16329 (main): Set vflag and debug with boolean, not integer truth values.
16330 Accept new "--help" option and output usage text if found.
16331 * collect2.h (vflag): Update prototype.
16334 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
16337 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
16339 2010-04-29 Richard Guenther <rguenther@suse.de>
16342 * plugin.h (invoke_plugin_callbacks): Annotate arguments
16343 with ATTRIBUTE_UNUSED.
16345 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
16348 * config/i386/i386.c (get_some_local_dynamic_name): Replace
16349 INSN_P with NONDEBUG_INSN_P.
16350 (distance_non_agu_define): Likewise.
16351 (distance_agu_use): Likewise.
16353 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
16355 From Dominique d'Humieres <dominiq@lps.ens.fr>
16357 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
16360 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
16362 * plugin.h (invoke_plugin_callbacks): New inline function.
16363 * plugin.c (flag_plugin_added): New global flag.
16364 (add_new_plugin): Initialize above flag.
16365 (invoke_plugin_callbacks): Rename to ...
16366 (invoke_plugin_callbacks_full): ... this.
16368 2010-04-28 Jan Hubicka <jh@suse.cz>
16370 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
16371 (lto_varpool_replace_node): New.
16372 (lto_symtab_resolve_symbols): Resolve varpool nodes.
16373 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
16374 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
16375 * cgraph.h (varpool_node_ptr): New type.
16376 (varpool_node_ptr): New vector.
16377 (varpool_node_set_def): New structure.
16378 (varpool_node_set): New type.
16379 (varpool_node_set): New vector.
16380 (varpool_node_set_element_def): New structure.
16381 (varpool_node_set_element, const_varpool_node_set_element): New types.
16382 (varpool_node_set_iterator): New type.
16383 (varpool_node): Add prev pointers, add used_from_other_partition,
16384 in_other_partition.
16385 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
16386 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
16387 varpool_get_node, varpool_remove_node): Declare.
16388 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
16389 varpool_node_set_size): New inlines.
16390 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
16391 * tree-pass.h (varpool_node_set_def): Forward declare.
16392 (ipa_opt_pass_d): Summary writting takes vnode sets too.
16393 (ipa_write_optimization_summaries): Update prototype.
16394 * ipa-cp.c (ipcp_write_summary): Update.
16395 * ipa-reference.c (ipa_reference_write_summary): Update.
16396 * lto-cgraph.c (lto_output_varpool_node): New static function.
16397 (output_varpool): New function.
16398 (input_varpool_node): New static function.
16399 (input_varpool_1): New function.
16400 (input_cgraph): Input varpool.
16401 * ipa-pure-const.c (pure_const_write_summary): Update.
16402 * lto-streamer-out.c (lto_output): Update, output varpool too.
16403 (write_global_stream): Kill WPA hack.
16404 (produce_asm_for_decls): Update.
16405 (output_alias_pair_p): Handle variables.
16406 (output_unreferenced_globals): Output only needed partition of varpool.
16407 * ipa-inline.c (inline_write_summary): Update.
16408 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
16410 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
16411 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
16412 varpool_node_set_new, varpool_node_set_add,
16413 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
16414 debug_varpool_node_set): New functions.
16415 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
16416 (execute_one_pass): Process new decls too.
16417 (ipa_write_summaries_2): Pass around vsets.
16418 (ipa_write_summaries_1): Likewise.
16419 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
16421 (ipa_write_optimization_summaries_1): Pass around vsets.
16422 (ipa_write_optimization_summaries): Likewise.
16423 * varpool.c (varpool_get_node): New.
16424 (varpool_node): Update doubly linked lists.
16425 (varpool_remove_node): New.
16426 (dump_varpool_node): More dumping.
16427 (varpool_enqueue_needed_node): Update doubly linked lists.
16428 (decide_is_variable_needed): Kill ltrans hack.
16429 (varpool_finalize_decl): Kill lto hack.
16430 (varpool_assemble_decl): Skip decls in other partitions.
16431 (varpool_assemble_pending_decls): Update doubly linkes lists.
16432 (varpool_empty_needed_queue): Likewise.
16433 (varpool_extra_name_alias): Likewise.
16434 * lto-streamer.c (lto_get_section_name): Add vars section.
16435 * lto-streamer.h (lto_section_type): Update.
16436 (output_varpool, input_varpool): Declare.
16438 2010-04-28 Mike Stump <mikestump@comcast.net>
16440 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
16442 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
16444 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
16445 record or union type with RECORD_OR_UNION_TYPE_P predicate.
16446 (lto_input_ts_type_tree_pointers): Likewise.
16447 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
16448 (lto_output_ts_type_tree_pointers): Likewise.
16450 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
16452 Uniquization of constants at the Tree level
16453 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
16454 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
16456 (tree_output_constant_def): Declare.
16457 * gimplify.c (gimplify_init_constructor): When using block copy, first
16458 uniquize the constant constructor on the RHS.
16459 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
16460 DECL_IN_CONSTANT_POOL flag.
16461 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
16462 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
16464 (assemble_variable): Deal with symbols belonging to the tree constant
16466 (get_constant_section): Add ALIGN parameter and simplify.
16467 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
16468 (assemble_constant_contents): Use the expression of the VAR_DECL.
16469 (output_constant_def_contents): Use the alignment of the VAR_DECL.
16470 (tree_output_constant_def): New global function.
16471 (mark_constant): Use the expression of the VAR_DECL.
16472 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
16474 (output_object_block): Likewise and assemble the expression.
16476 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
16478 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
16479 hash_tree, eq_tree): New tree hash table.
16480 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
16481 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
16482 lto_orig_address_remove): Reimplement.
16484 2010-04-28 Xinliang David Li <davidxl@google.com>
16487 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
16488 (compute_uninit_opnds_pos): New function.
16489 (is_non_loop_exit_postdominating): New function.
16490 (compute_control_dep_chain): New function.
16491 (find_pdom): New function.
16492 (convert_control_dep_chain_into_preds): New function.
16493 (find_predicates): New function.
16494 (find_control_equiv_block): New function.
16495 (collect_phi_def_edges): New function.
16496 (find_def_preds): New function.
16497 (find_dom): New function.
16498 (dump_predicates): New function.
16499 (get_cmp_code): New function.
16500 (is_value_included_in): New function.
16501 (find_matching_predicate_in_rest_chains): New function.
16502 (use_pred_not_overlap_with_undef_path_pred): New function.
16503 (is_use_properly_guarded): New function.
16504 (normalize_cond_1): New function.
16505 (is_and_or_or): New function.
16506 (normalize_cond): New function.
16507 (is_gcond_subset_of): New function.
16508 (is_subset_of_any): New function.
16509 (is_or_set_subset_of): New function.
16510 (is_and_set_subset_of): New function.
16511 (is_norm_cond_subset_of): New function.
16512 (is_pred_expr_subset_of): New function.
16513 (is_pred_chain_subset_of): New function.
16514 (is_included_in): New function.
16515 (is_superset_of): New function.
16516 (find_uninit_use): New function.
16517 (warn_uninitialized_phi): New function.
16518 (compute_possibly_undefined_names): New function.
16519 (ssa_undefined_value_p): New function.
16520 (execute_late_warn_uninitialized): New function.
16521 * tree-ssa.c (ssa_undefined_value_p): Removed.
16522 (warn_uninit): Changed to extern.
16523 (warn_uninitialized_phi): Removed.
16524 (warn_uninitialized_vars): Changed to extern.
16525 (execute_late_warn_uninitialized): Removed
16526 * tree-flow.h: Add new prototypes.
16527 * timevar.def: Add new time variable.
16528 * Makefile.in: Add new build file.
16530 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
16532 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
16535 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16538 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
16540 2010-04-28 Martin Jambor <mjambor@suse.cz>
16542 * cgraph.h (struct cgraph_node): New field indirect_calls.
16543 (struct cgraph_indirect_call_info): New type.
16544 (struct cgraph_edge): Removed field indirect_call. New fields
16545 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
16546 (cgraph_create_indirect_edge): Declare.
16547 (cgraph_make_edge_direct): Likewise.
16548 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
16549 * ipa-prop.h (struct ipa_param_call_note): Removed.
16550 (struct ipa_node_params): Removed field param_calls.
16551 (ipa_create_all_structures_for_iinln): Declare.
16552 * cgraph.c: Described indirect edges and uids in initial comment.
16553 (cgraph_add_edge_to_call_site_hash): New function.
16554 (cgraph_edge): Search also among the indirect edges, use
16555 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
16556 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
16557 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
16559 (initialize_inline_failed): Assign a reason to indirect edges.
16560 (cgraph_create_edge_1): New function.
16561 (cgraph_create_edge): Moved some functionality to
16562 cgraph_create_edge_1.
16563 (cgraph_create_indirect_edge): New function.
16564 (cgraph_edge_remove_callee): Add an assert checking for
16566 (cgraph_edge_remove_caller): Special-case indirect edges.
16567 (cgraph_remove_edge): Likewise.
16568 (cgraph_set_edge_callee): New function.
16569 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
16570 (cgraph_make_edge_direct): New function.
16571 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
16572 the declaration of the call statement matches.
16573 (cgraph_node_remove_callees): Special-case indirect edges.
16574 (cgraph_clone_edge): Likewise.
16575 (cgraph_clone_node): Clone also the indirect edges.
16576 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
16577 indirect_call, dump count of indirect_calls edges.
16578 * ipa-prop.c (iinlining_processed_edges): New variable.
16579 (ipa_note_param_call): Create indirect edges instead of
16580 creating notes. New parameter node.
16581 (ipa_analyze_call_uses): New parameter node, pass it on to
16582 ipa_note_param_call.
16583 (ipa_analyze_stmt_uses): Likewise.
16584 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
16585 (print_edge_addition_message): Work on edges rather than on notes.
16586 (update_call_notes_after_inlining): Likewise, renamed to
16587 update_indirect_edges_after_inlining.
16588 (ipa_create_all_structures_for_iinln): New function.
16589 (ipa_free_node_params_substructures): Do not free notes.
16590 (ipa_edge_duplication_hook): Propagate bits within
16591 iinlining_processed_edges bitmap.
16592 (ipa_node_duplication_hook): Do not duplicate notes.
16593 (free_all_ipa_structures_after_ipa_cp): Renamed to
16594 ipa_free_all_structures_after_ipa_cp.
16595 (free_all_ipa_structures_after_iinln): Renamed to
16596 ipa_free_all_structures_after_iinln.
16597 (ipa_write_param_call_note): Removed.
16598 (ipa_read_param_call_note): Removed.
16599 (ipa_write_indirect_edge_info): New function.
16600 (ipa_read_indirect_edge_info): Likewise.
16601 (ipa_write_node_info): Do not stream notes, do stream information
16603 (ipa_read_node_info): Likewise.
16604 (lto_ipa_fixup_call_notes): Removed.
16605 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
16606 * ipa-inline.c (pass_ipa_inline): Likewise.
16607 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
16608 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
16609 * tree-inline.c (copy_bb): Removed an unnecessary double check for
16611 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
16613 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
16614 (output_cgraph): Stream also indirect edges.
16615 (lto_output_edge): Added capability to stream indirect edges.
16616 (input_edge): Likewise.
16617 (input_cgraph_1): Likewise.
16618 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
16621 2010-04-28 Richard Guenther <rguenther@suse.de>
16623 PR tree-optimization/43879
16624 PR tree-optimization/43909
16625 * tree-ssa-structalias.c (struct variable_info): Add
16626 only_restrict_pointers flag.
16627 (new_var_info): Initialize it. Increment stats.total_vars here.
16628 (create_function_info_for): Do not increment stats.total_vars here.
16629 (get_function_part_constraint): Fix build with C++.
16630 (insert_into_field_list): Remove.
16631 (push_fields_onto_fieldstack): Properly merge fields.
16632 (create_variable_info_for): Split and simplify.
16633 (create_variable_info_for_1): New piece.
16634 (intra_create_variable_infos): Properly make restrict constraints
16637 2010-04-28 Richard Guenther <rguenther@suse.de>
16640 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
16642 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
16643 Jan Hubicka <hubicka@ucw.cz>
16645 * doc/invoke.texi (-Wsuggest-attribute=const,
16646 -Wsuggest-attribute=pure): Document.
16647 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
16648 (function_always_visible_to_compiler_p,
16649 suggest_attribute, warn_function_pure, warn_function_const):
16651 (check_call): Improve debug info.
16652 (analyze_function): Do not check availability.
16653 (add_new_function): Check availability.
16654 (propagate): Output warnings.
16655 (skip_function_for_local_pure_const): New function.
16656 (local_pure_const): Use it; output warnings.
16657 * common.opt (Wsuggest-attribute=const,
16658 Wsuggest-attribute=pure): New.
16660 2010-04-27 Jakub Jelinek <jakub@redhat.com>
16662 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
16663 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
16664 or DW_CFA_def_cfa_offset{,_sf}.
16666 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
16668 * tree.h: Fix truncated long macros.
16670 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
16672 * collect2.c (TARGET_64BIT): Redefine to target's default.
16673 * tlink.c: Likewise.
16674 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
16675 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
16676 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
16677 for underscoring __USER_LABEL_PREFIX__.
16678 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
16679 (SUB_LINK_ENTRY32): New.
16680 (SUB_LINK_ENTRY64): New.
16681 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
16682 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
16683 (SUB_LINK_ENTRY64): New.
16684 (SUB_LINK_ENTRY): New.
16685 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
16686 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
16687 x64 target is choosen.
16688 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
16689 * configure: Regenerated.
16690 * configure.ac (leading-mingw64-underscores): Option added.
16692 2010-04-27 Jan Hubicka <jh@suse.cz>
16694 * doc/invoke.texi (-fipa-profile): Document.
16695 * opts.c (decode_options): Enable ipa-profile at -O1.
16696 * timevar.def (TV_IPA_PROFILE): Define.
16697 * common.opt (fipa-profile): Add.
16698 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
16700 (cgraph_propagate_frequency): Handle only local ones.
16701 * tree-pass.h (pass_ipa_profile): Declare.
16702 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
16703 (pass_ipa_profile): Use TV_IPA_PROFILE.
16704 * ipa.c (ipa_profile): New function.
16705 (gate_ipa_profile): Likewise.
16706 (pass_ipa_profile): New global variable.
16707 * passes.c (pass_ipa_profile): New.
16709 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
16711 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
16713 2010-04-27 Martin Jambor <mjambor@suse.cz>
16715 PR middle-end/43812
16716 * ipa.c (dissolve_same_comdat_group_list): New function.
16717 (function_and_variable_visibility): Call
16718 dissolve_same_comdat_group_list when comdat group contains external or
16720 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
16721 lists are circular and that they contain only DECL_ONE_ONLY nodes.
16723 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
16725 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
16726 (const_hash_1) <VECTOR_CST>: New case.
16727 (compare_constant) <VECTOR_CST>: Likewise.
16728 <ADDR_EXPR>: Deal with LABEL_REFs.
16729 (copy_constant) <VECTOR_CST>: New case.
16731 2010-04-27 Jan Hubicka <jh@suse.cz>
16733 * cgraph.c (cgraph_propagate_frequency): New function.
16734 * cgraph.h (cgraph_propagate_frequency): Declare.
16735 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
16736 cgraph_propagate_frequency.
16738 2010-04-27 Jakub Jelinek <jakub@redhat.com>
16740 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
16742 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
16745 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
16746 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
16747 here to determine which regs to push and how much stack to reserve.
16749 2010-04-27 Jie Zhang <jie@codesourcery.com>
16751 * doc/gimple.texi (gimple_statement_with_ops): Remove
16752 addresses_taken field.
16753 (gimple_statement_with_memory_ops): Likewise.
16755 2010-04-27 Jan Hubicka <jh@suse.cz>
16757 * tree-inline.c (eni_inlining_weights): Remove.
16758 (estimate_num_insns): Special case more builtins.
16760 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
16763 * c-typeck.c (build_binary_op): Move forward check for comparison
16764 pointer with null pointer constant and adjust the diagnostic message.
16766 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
16769 * configure.ac (gcc_cv_as_section_has_align): Set if installed
16770 binutils supports extended .section directive needed by LTO, or
16771 warn if older binutils found.
16772 (LTO_BINARY_READER): New AC_SUBST'd variable.
16773 (LTO_USE_LIBELF): Likewise.
16774 * gcc/config.gcc (lto_binary_reader): New target-specific configure
16776 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
16777 (LTO_USE_LIBELF): Likewise.
16778 * configure: Regenerate.
16780 * collect2.c (is_elf): Rename from this ...
16781 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
16782 object files in addition to ELF-formatted ones.
16783 (scan_prog_file): Caller updated. Also allow for LTO info marker
16784 symbol to be prefixed or not by an extra underscore.
16786 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
16787 * config/i386/winnt.c: Also #include lto-streamer.h
16788 (i386_pe_asm_named_section): Specify 1-byte section alignment for
16789 LTO named sections.
16790 (i386_pe_asm_output_aligned_decl_common): Add comment.
16791 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
16793 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
16796 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
16797 Add missing earlyclobber for second alternative.
16799 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
16801 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
16802 bits for artificial defs at the top of the block.
16803 * fwprop.c (single_def_use_enter_block): Don't call it.
16805 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
16808 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
16809 instead of "$gcc_cv_objdump -T".
16810 Use "-undefined dynamic_lookup" on darwin.
16811 * gcc/configure: Regenerate.
16813 2010-04-26 Jakub Jelinek <jakub@redhat.com>
16816 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
16818 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
16820 * c-parser.c (struct c_token): Move location field up.
16821 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
16822 (struct c_declspecs): Convert typespec_word, storage_class, and
16823 default_int_p into bitfields.
16824 (struct c_declarator): Move loc field up.
16826 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
16828 * cfgloop.h (struct loop): Move can_be_parallel field up.
16829 * ipa-prop.h (struct ip_node_params): Move bitfields up.
16830 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
16832 (struct iv_cand): Convert pos field into a bitfield.
16833 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
16835 (struct _stmt_vec_info): Shuffle fields for better packing.
16837 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
16839 * varasm.c (IN_NAMED_SECTION): Remove guard.
16840 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
16841 (IN_NAMED_SECTION_P): ...this.
16842 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
16843 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
16845 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
16847 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
16848 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
16849 of shadowing it. Fix comments.
16851 2010-04-26 Jan Hubicka <jh@suse.cz>
16853 * cgraph.c (cgraph_create_node): Set node frequency to normal.
16854 (cgraph_clone_node): Copy function frequency.
16855 * cgraph.h (node_frequency): New enum
16856 (struct cgraph_node): Add.
16857 * final.c (rest_of_clean_state): Update.
16858 * lto-cgraph.c (lto_output_node): Output node frequency.
16859 (input_overwrite_node): Input node frequency.
16860 * tre-ssa-loop-ivopts (computation_cost): Update.
16861 * lto-streamer-out.c (output_function): Do not output function
16863 * predict.c (maybe_hot_frequency_p): Update and handle functions
16865 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
16867 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
16868 (compute_function_frequency): Set noreturn functions to be executed
16870 (choose_function_section): Update.
16871 * lto-streamer-in.c (input_function): Do not input function frequency.
16872 * function.c (allocate_struct_function): Do not initialize function
16874 * function.h (function_frequency): Remove.
16875 (struct function): Remove function frequency.
16876 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
16877 (try_update): Update.
16878 * tree-inline.c (initialize_cfun): Do not update function frequency.
16879 * passes.c (pass_init_dump_file): Update.
16880 * i386.c (ix86_compute_frame_layout): Update.
16881 (ix86_pad_returns): Update.
16883 2010-04-26 Jie Zhang <jie@codesourcery.com>
16885 PR tree-optimization/43833
16886 * tree-vrp.c (range_int_cst_p): New.
16887 (range_int_cst_singleton_p): New.
16888 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
16889 when both operands are constants. Use range_int_cst_p in
16892 2010-04-26 Jan Hubicka <jh@suse.cz>
16894 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
16896 2010-04-26 Richard Guenther <rguenther@suse.de>
16899 * gimple.c (gimple_decl_printable_name): Deal gracefully
16900 with a NULL DECL_NAME.
16902 2010-04-26 Richard Guenther <rguenther@suse.de>
16905 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
16906 if emitting debug information and it is either a function
16907 or a namespace decl.
16909 2010-04-26 Ira Rosen <irar@il.ibm.com>
16911 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
16912 determine if the statement is vectorizable, and a macro to access it.
16913 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16914 Skip statements that can't be vectorized. If the analysis fails,
16915 mark the statement as unvectorizable if vectorizing basic block.
16916 (vect_compute_data_refs_alignment): Likewise.
16917 (vect_verify_datarefs_alignment): Skip statements marked as
16918 unvectorizable. Add print.
16919 (vect_analyze_group_access): Skip statements that can't be
16920 vectorized. If the analysis fails, mark the statement as
16921 unvectorizable if vectorizing basic block.
16922 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
16923 * tree-vect-stmts.c (vectorizable_store): Fix the number of
16924 generated stmts for SLP.
16925 (new_stmt_vec_info): Initialize the new field.
16926 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
16927 statements marked as unvectorizable.
16929 2010-04-25 Joseph Myers <joseph@codesourcery.com>
16931 * c-common.c (flag_isoc1x): New.
16932 (flag_isoc99): Update comment.
16933 * c-common.h (flag_isoc1x): New.
16934 (flag_isoc99): Update comment.
16935 * c-cppbuiltin.c (builtin_define_float_constants): Also define
16936 __<type>_DECIMAL_DIG__.
16937 * c-opts.c (set_std_c1x): New.
16938 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
16939 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
16940 * c.opt (-std=c1x, -std=gnu1x): New options.
16941 * doc/cpp.texi: Mention -std=c1x.
16942 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
16943 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
16944 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
16945 * doc/standards.texi: Mention C1X.
16946 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
16947 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
16948 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
16951 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
16953 * config/i386/gmon-sol2.c (_mcleanup): Change format string
16954 placeholder from 0x%x to %#x.
16955 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
16956 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
16957 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
16958 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
16959 * config/i386/i386.c (ix86_target_string): Ditto.
16960 (output_pic_addr_const): Ditto.
16961 (print_operand): Ditto.
16963 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
16965 * combine.c (find_split_point): Add third argument. Use it
16966 to find nested multiply-accumulate instructions. Adjust calls.
16967 (try_combine): Adjust call to find_split_point.
16969 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
16971 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
16973 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
16975 PR tree-optimization/41442
16976 * fold-const.c (merge_truthop_with_opposite_arm): New function.
16977 (fold_binary_loc): Call it.
16979 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
16981 * toplev.c (general_init): Set default for fdiagnostics-show-option.
16982 * opts.c (common_handle_option): Allow disabling it.
16983 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
16985 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
16987 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
16988 between modes if both types are integral.
16990 2010-04-23 Richard Guenther <rguenther@suse.de>
16992 PR tree-optimization/43572
16993 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
16995 2010-04-23 Richard Guenther <rguenther@suse.de>
16998 * tree-inline.c (tree_can_inline_p): Also check compatibility
17001 2010-04-23 Martin Jambor <mjambor@suse.cz>
17003 PR tree-optimization/43846
17004 * tree-sra.c (struct access): New flag grp_assignment_read.
17005 (build_accesses_from_assign): Set grp_assignment_read.
17006 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
17007 (enum mark_read_status): New type.
17008 (analyze_access_subtree): Propagate grp_assignment_read, create
17009 accesses also if both direct_read and root->grp_assignment_read.
17011 2010-04-23 Martin Jambor <mjambor@suse.cz>
17013 PR middle-end/43835
17014 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
17015 function does not have type attributes.
17017 2010-04-23 Richard Guenther <rguenther@suse.de>
17020 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
17023 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
17025 * sese.h (create_if_region_on_edge): Remove.
17027 * sese.c (create_if_region_on_edge): Make static.
17029 * tree-inline.c: Do not include ggc.h.
17031 * expr.c: Do not include ggc.h.
17033 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
17036 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
17039 * config/sh/sh.c (find_barrier): Don't emit a constant pool
17040 in the middle of insns for casesi_worker_2.
17042 2010-04-22 David Edelsohn <edelsohn@gnu.org>
17044 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
17046 2010-04-22 Ira Rosen <irar@il.ibm.com>
17048 PR tree-optimization/43842
17049 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
17050 loop unrolling in update of exit phis. Fix comment.
17051 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
17052 least two reduction statements in the loop before starting SLP
17055 2010-04-22 Nick Clifton <nickc@redhat.com>
17057 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
17059 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
17061 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
17062 to simplify a + ~a.
17064 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
17066 * tree-parloops.c (loop_parallel_p): New argument
17067 parloop_obstack. Pass it down.
17068 (parallelize_loops): New variable parloop_obstack. Initialize it,
17069 pass it down, free it.
17071 * tree-loop-linear.c (linear_transform_loops): Pass down
17074 * tree-data-ref.h (lambda_compute_access_matrices): New argument
17075 of type struct obstack *.
17077 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
17078 scratch_obstack. Initialize it, pass down, free it.
17080 * lambda.h (lambda_loop_new): Remove.
17081 (lambda_matrix_new, lambda_matrix_inverse)
17082 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
17083 argument of type struct obstack *.
17085 * lambda-trans.c (lambda_trans_matrix_new): New argument
17086 lambda_obstack. Pass it down, use obstack allocation for ret.
17087 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
17090 * lambda-mat.c (lambda_matrix_get_column)
17091 (lambda_matrix_project_to_null): Remove.
17092 (lambda_matrix_new): New argument lambda_obstack. Use obstack
17093 allocation for mat.
17094 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
17097 * lambda-code.c (lambda_loop_new): New function.
17098 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
17099 (lambda_compute_auxillary_space, lambda_compute_target_space)
17100 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
17101 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
17102 (build_access_matrix): New argument lambda_obstack. Use obstack
17104 (lambda_compute_step_signs, lambda_compute_access_matrices): New
17105 argument lambda_obstack. Pass it down.
17107 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
17109 * optabs.h (expand_widening_mult): Declare.
17111 2010-04-22 Richard Guenther <rguenther@suse.de>
17113 PR tree-optimization/43845
17114 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
17115 lookup the CALL_EXPR function and arguments.
17117 2010-04-22 Nick Clifton <nickc@redhat.com>
17119 * config/stormy16/stormy16.c
17120 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
17121 * config/stormy16/stormy16.h: Tidy up formatting.
17122 (DONT_USE_BUILTIN_SETJMP): Remove definition.
17123 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
17124 (ineqbranchsi): Delete pattern.
17125 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
17126 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
17127 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
17128 stormy16-lib2-ucmpsi2.c.
17130 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
17132 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
17133 df_simulate_find_noclobber_defs as appropriate. Keep track of an
17134 extra set merge_set_noclobber, and use it to relax the final test
17136 * df.h (df_simulate_find_noclobber_defs): Declare.
17137 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
17139 (df_simulate_find_noclobber_defs): New function.
17141 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
17143 * config/i386/i386.md: Use {} around multi-line preparation statements.
17145 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
17147 * c-tree.h (push_init_level, pop_init_level, set_init_index)
17148 (process_init_element): New argument of type struct obstack *.
17150 * c-typeck.c (push_init_level, pop_init_level, set_designator)
17151 (set_init_index, set_init_label, set_nonincremental_init)
17152 (set_nonincremental_init_from_string, find_init_member)
17153 (output_init_element, output_pending_init_elements)
17154 (process_init_element): New argument braced_init_obstack. Pass it
17156 (push_range_stack, add_pending_init): New argument
17157 braced_init_obstack. Use obstack allocation.
17159 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
17160 braced_init_obstack. Pass it down.
17161 (c_parser_braced_init): New variables ret, braced_init_obstack.
17162 Initialize obstack, pass it down and finally free it.
17164 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
17166 PR middle-end/29274
17167 * tree-pass.h (pass_optimize_widening_mul): Declare.
17168 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
17169 gate_optimize_widening_mul): New static functions.
17170 (pass_optimize_widening_mul): New.
17171 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
17172 <case MULT_EXPR>: Remove support for widening multiplies.
17173 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
17174 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
17175 simplify_gen_unary rather than directly building extensions.
17176 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
17178 * expmed.c (expand_widening_mult): New function.
17179 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
17181 2010-04-21 Jan Hubicka <jh@suse.cz>
17183 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
17184 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
17185 * lto-wpa-fixup.c: Remove.
17186 * Makefile.in (lto-wpa-fixup.o): Remove.
17187 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
17188 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
17189 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
17191 2010-04-21 Jan Hubicka <jh@suse.cz>
17193 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
17194 add write_optimization_summary, read_optimization_summary.
17195 (ipa_write_summaries_of_cgraph_node_set): Remove.
17196 (ipa_write_optimization_summaries): Declare.
17197 (ipa_read_optimization_summaries): Declare.
17198 * ipa-cp.c (pass_ipa_cp): Update.
17199 * ipa-reference.c (pass_ipa_reference): Update.
17200 * ipa-pure-const.c (pass_ipa_pure_const): Update.
17201 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
17203 * ipa-inline.c (pass_ipa_inline): Update.
17204 * ipa.c (pass_ipa_whole_program): Update.
17205 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
17206 * passes.c (ipa_write_summaries_1): Do not test wpa.
17207 (ipa_write_optimization_summaries_1): New.
17208 (ipa_write_optimization_summaries): New.
17209 (ipa_read_summaries): Do not test ltrans.
17210 (ipa_read_optimization_summaries_1): New.
17211 (ipa_read_optimization_summaries): New.
17213 2010-04-21 Jan Hubicka <jh@suse.cz>
17215 * lto-cgraph.c (lto_output_node): Do not output comdat groups
17216 for boundary nodes.
17217 (output_cgraph): Do not arrange comdat groups for boundary nodes.
17219 2010-04-21 Jakub Jelinek <jakub@redhat.com>
17222 * dwarf2out.c (add_name_and_src_coords_attributes): Add
17223 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
17225 2010-04-21 Jan Hubicka <jh@suse.cz>
17227 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
17229 2010-04-21 Jan Hubicka <jh@suse.cz>
17231 * varpool.c (decide_is_variable_needed): Variable is always needed
17234 2010-04-21 Jan Hubicka <jh@suse.cz>
17236 * opts.c (decode_options): Enable pure-const pass for whopr.
17238 2010-04-21 Jan Hubicka <jh@suse.cz>
17240 * cgraph.c (dump_cgraph_node): Dump also assembler name.
17241 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
17243 (cgraph_decide_inlining): Do not expect callee to be removed in all
17246 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
17248 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
17250 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
17252 * config/i386/i386.md (x86_shrd): Add athlon_decode and
17253 amdfam10_decode attributes.
17255 2010-04-21 Jakub Jelinek <jakub@redhat.com>
17257 PR middle-end/43570
17258 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
17259 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
17260 (lower_copyprivate_clauses): Use private var in outer
17261 context instead of original var. Make sure the types
17262 are correct for VLAs.
17264 2010-04-21 Richard Guenther <rguenther@suse.de>
17266 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
17267 to non-pointer objects.
17269 2010-04-21 Jakub Jelinek <jakub@redhat.com>
17271 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
17272 last chain entry if it starts with the still current label.
17273 (add_location_or_const_value_attribute): Check that
17274 loc_list->first->next is NULL instead of comparing ->first with ->last.
17275 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
17276 to add_var_loc_to_decl.
17278 * dwarf2out.c (output_call_frame_info): For dw_cie_version
17279 >= 4 add also address size and segment size fields into CIE header.
17281 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
17282 long as address size is the same as sizeof (void *) and
17284 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
17285 address size or segment size is unexpected, return DW_EH_PE_omit.
17286 (classify_object_over_fdes): If get_cie_encoding returned
17287 DW_EH_PE_omit, return -1.
17288 (init_object): If classify_object_over_fdes returned -1,
17289 pretend there were no FDEs at all.
17291 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
17293 * config/i386/i386.md (bswap<mode>2): Macroize expander from
17294 bswap{si,di}2 using SWI48 mode iterator.
17295 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
17296 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
17297 set modrm attribute of bswap insn to 0 and remove length attribute.
17298 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
17299 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
17300 set mode attribute to <MODE> and remove length attribute.
17302 2010-04-20 James E. Wilson <wilson@codesourcery.com>
17304 PR rtl-optimization/43520
17305 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
17306 zero available registers.
17308 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17310 * builtins.c (fold_builtin_cproj): Fold more cases.
17312 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17314 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
17315 (fold_builtin_1): Fold builtin cproj.
17316 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
17317 Use ATTR_CONST_NOTHROW_LIST.
17319 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
17321 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
17322 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
17323 ffsi2_no_cmove for !TARGET_CMOVE.
17324 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
17325 (ffssi2): Remove expander.
17326 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
17328 (ctz<mode>2): Ditto from ctz{si,di}2.
17329 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
17331 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
17334 2010-04-20 Jakub Jelinek <jakub@redhat.com>
17336 * dwarf2out.c (AT_linkage_name): Define.
17337 (clone_as_declaration): Handle DW_AT_linkage_name.
17338 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
17339 of DW_AT_MIPS_linkage_name.
17340 (move_linkage_attr): Likewise.
17341 (dwarf2out_finish): Likewise.
17343 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
17345 PR middle-end/41952
17346 * fold-const.c (fold_comparison): New folding rule.
17348 2010-04-20 Anatoly Sokolov <aesok@post.ru>
17350 * double-int.h (double_int_setbit): Declare.
17351 * double-int.c (double_int_setbit): New function.
17352 * rtl.h (immed_double_int_const): Declare.
17353 * emit-rtl.c (immed_double_int_const): New function.
17354 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
17355 and immed_double_int_const functions.
17356 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
17357 expand_copysign_bit): (Ditto.).
17358 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
17359 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
17360 * dojump.c (prefer_and_bit_test): (Ditto.).
17361 * expr.c (convert_modes, reduce_to_bit_field_precision,
17362 const_vector_from_tree): (Ditto.).
17363 * expmed.c (mask_rtx, lshift_value): (Ditto.).
17365 2010-04-20 Jan Hubicka <jh@suse.cz>
17367 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
17368 (dump_cgraph_node): Dump new flags.
17369 * cgraph.h (struct cgraph_node): Add flags
17370 reachable_from_other_partition and in_other_partition.
17371 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
17372 other partition can not be removed.
17373 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
17374 the other partition must be output; silence sanity checking on
17375 leaking functions bodies from other paritition.
17376 * lto-cgraph.c (reachable_from_other_partition_p): New function.
17377 (lto_output_node): Output new flags; do not sanity check that inline
17378 clones are output; drop lto_forced_extern_inline_p code; do not mock
17379 visibility flags at partition boundaries.
17380 (add_node_to): New function.
17381 (output_cgraph): Use it to sort functions so masters appear before
17383 (input_overwrite_node): Input new flags.
17384 * passes.c (ipa_write_summaries): Do not call
17385 lto_new_extern_inline_states.
17386 * lto-section-out.c (forced_extern_inline,
17387 lto_new_extern_inline_states lto_delete_extern_inline_states,
17388 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
17389 * lto-streamer.h (lto_new_extern_inline_states,
17390 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
17391 lto_forced_extern_inline_p): Kill.
17393 2010-04-20 Richard Guenther <rguenther@suse.de>
17395 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
17396 from vars that can have pointers.
17397 (process_constraint): Dump useless constraints.
17399 2010-04-20 Richard Guenther <rguenther@suse.de>
17401 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
17402 (dump_sa_points_to_info): Remove asserts.
17403 (init_base_vars): nothing_id isn't an escape point nor does it
17406 2010-04-20 Jakub Jelinek <jakub@redhat.com>
17408 * tree.h (TYPE_REF_IS_RVALUE): Define.
17409 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
17410 should_move_die_to_comdat, prune_unused_types_walk): Handle
17411 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
17412 (modified_type_die, gen_reference_type_die): Emit
17413 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
17414 if TYPE_REF_IS_RVALUE and -gdwarf-4.
17416 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17419 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
17420 calls for -fpic -m31 if they have been sibcall optimized.
17422 2010-04-19 James E. Wilson <wilson@codesourcery.com>
17424 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
17425 ar.lc fixed and call-used.
17427 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
17429 2010-04-19 Jan Hubicka <jh@suse.cz>
17431 * opts.c (decode_options): Disable whpr incompatible passes.
17432 * lto/lto.c (lto_1_to_1_map): Skip clones.
17433 (read_cgraph_and_symbols): Do not mark everything as needed.
17434 (do_whole_program_analysis): Do map only after optimizing;
17435 set proper cgraph_state; use passmanager.
17437 2010-04-19 DJ Delorie <dj@redhat.com>
17439 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
17440 POINTER_PLUS_EXPR and fix them.
17442 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
17444 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
17445 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
17446 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
17447 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
17448 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
17449 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
17450 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
17451 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
17452 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
17453 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
17454 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
17456 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
17458 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
17459 (check_cond_move_block): Likewise.
17460 (cond_move_process_if_block): Likewise.
17461 (noce_find_if_block): Improve formatting.
17462 (find_if_header): Pass 0 to memset and tweak conditions.
17463 (cond_exec_find_if_block): Fix long lines and tweak conditions.
17465 2010-04-19 Jakub Jelinek <jakub@redhat.com>
17467 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
17470 PR middle-end/43337
17471 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
17472 with non-local decl doesn't need chain.
17474 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
17476 * ira-color.c (allocno_reload_assign): Avoid accumulating
17477 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
17479 2010-04-19 Martin Jambor <mjambor@suse.cz>
17481 * gimple.h (create_tmp_reg): Declare.
17482 * gimplify.c (create_tmp_reg): New function.
17483 (gimplify_return_expr): Use create_tmp_reg.
17484 (gimplify_omp_atomic): Likewise.
17485 (gimple_regimplify_operands): Likewise.
17486 * tree-dfa.c (make_rename_temp): Likewise.
17487 * tree-predcom.c (predcom_tmp_var): Likewise.
17488 (reassociate_to_the_same_stmt): Likewise.
17489 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
17490 (get_replaced_param_substitute): Likewise.
17491 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
17492 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
17493 * tree-ssa-pre.c (get_representative_for): Likewise.
17494 (create_expression_by_pieces): Likewise.
17495 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
17496 (create_tailcall_accumulator): Likewise.
17498 2010-04-19 Martin Jambor <mjambor@suse.cz>
17500 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
17502 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
17504 2010-04-19 Richard Guenther <rguenther@suse.de>
17506 PR tree-optimization/43796
17507 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
17508 from SCEV in the lattice.
17509 (vrp_visit_phi_node): Dump change.
17511 2010-04-19 Richard Guenther <rguenther@suse.de>
17513 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
17514 * configure: Re-generated.
17516 2010-04-19 Richard Guenther <rguenther@suse.de>
17518 PR tree-optimization/43783
17519 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
17520 constant ARRAY_REF operands two and three if possible.
17522 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
17525 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
17527 2010-04-19 Jie Zhang <jie@codesourcery.com>
17530 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
17532 2010-04-19 Ira Rosen <irar@il.ibm.com>
17534 PR tree-optimization/37027
17535 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
17536 and macro to access it.
17537 (vectorizable_reduction): Add argument.
17538 (vect_get_slp_defs): Likewise.
17539 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
17540 statements for possible use in SLP.
17541 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
17542 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
17543 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
17545 (vectorizable_reduction): Likewise.
17546 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
17548 (vectorizable_type_demotion, vectorizable_type_promotion,
17549 vectorizable_store): Likewise.
17550 (vect_analyze_stmt): Update call to vectorizable_reduction.
17551 (vect_transform_stmt): Likewise.
17552 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
17553 (vect_build_slp_tree): Fix indentation. Check that there are no loads
17554 from different interleaving chains in same node.
17555 (vect_slp_rearrange_stmts): New function.
17556 (vect_supported_load_permutation_p): Allow load permutations for
17557 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
17558 inside SLP nodes if necessary.
17559 (vect_analyze_slp_instance): Handle reductions.
17560 (vect_analyze_slp): Try to build SLP instances originating from groups
17562 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
17563 (vect_get_constant_vectors): Create initial vectors for reductions
17564 according to reduction code. Add new argument.
17565 (vect_get_slp_defs): Add new argument, pass it to
17566 vect_get_constant_vectors.
17567 (vect_schedule_slp_instance): Remove SLP tree root statements.
17569 2010-04-19 Jakub Jelinek <jakub@redhat.com>
17571 * tree.h (ENUM_IS_SCOPED): Define.
17572 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
17573 for ENUM_IS_SCOPED enums.
17575 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
17577 * fold-const.c (fold_comparison): Use ssizetype.
17578 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
17579 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
17580 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
17581 * tree-object-size.c (compute_object_sizes): Use size_type_node.
17583 * tree.h (initialize_sizetypes): Remove parameter.
17584 (build_common_tree_nodes): Remove second parameter.
17585 * stor-layout.c (initialize_sizetypes): Remove parameter.
17586 Always create an unsigned type.
17587 (set_sizetype): Assert that the passed type is unsigned and simplify.
17588 * tree.c (build_common_tree_nodes): Remove second parameter.
17589 Adjust call to initialize_sizetypes.
17590 * c-decl.c (c_init_decl_processing): Remove second argument in call to
17591 build_common_tree_nodes.
17593 2010-04-18 Matthias Klose <doko@ubuntu.com>
17595 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
17597 2010-04-18 Ira Rosen <irar@il.ibm.com>
17599 PR tree-optimization/43771
17600 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
17601 load permutation doesn't have gaps.
17603 2010-04-18 Jan Hubicka <jh@suse.cz>
17605 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
17606 (sse_prologue_save_insn expander): Use new pattern.
17607 (sse_prologue_save_insn1): New pattern and splitter.
17608 (sse_prologue_save_insn): Update to deal also with 64bit aligned
17610 * i386.c (setup_incoming_varargs_64): Do not compute jump
17612 (ix86_gimplify_va_arg): Update alignment needed.
17613 (ix86_local_alignment): Do not align all local arrays to 128bit.
17615 2010-04-17 Jan Hubicka <jh@suse.cz>
17617 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
17619 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
17621 * arm.md (negdi2): Remove redundant code to force values into a
17624 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
17626 * arm/bpabi.S: Add EABI alignment attributes to objects.
17627 * arm/bpabi-v6m.S: Likewise.
17628 * arm/crti.asm: Likewise.
17629 * arm/crtn.asm: Likewise.
17630 * arm/lib1funcs.asm: Likewise.
17631 * arm/libunwind.S: Likewise.
17633 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
17635 * arm-protos.h (tune_params): New structure.
17636 * arm.c (current_tune): New variable.
17637 (arm_constant_limit): Delete.
17638 (struct processors): Add pointer to the tune parameters.
17639 (arm_slowmul_tune): New tuning option.
17640 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
17641 (all_cores): Adjust to pick up the tuning model.
17642 (arm_constant_limit): New function.
17643 (arm_override_options): Select the appropriate tuning model. Delete
17644 initialization of arm_const_limit.
17645 (arm_split_constant): Use the new constant-limit model.
17646 (arm_rtx_costs): Pick up the current tuning model.
17647 * arm.md (is_strongarm, is_xscale): Delete.
17648 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
17649 for Xscale variant architectures.
17650 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
17652 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17654 * config/arm/arm.c (arm_gen_constant): Remove unused variable
17656 (arm_rtx_costs_1): Remove unused variable extra_cost.
17657 (arm_unwind_emit_set): Use variable offset.
17658 (thumb1_output_casesi): Remove unused variable flags.
17660 2010-04-16 Jeff Law <law@redhat.com>
17662 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
17663 needing assignment rather than doing a two-phase assignment. Remove
17664 unused variable 'm'.
17666 2010-04-16 Jakub Jelinek <jakub@redhat.com>
17669 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
17671 2010-04-16 Doug Kwan <dougkwan@google.com>
17673 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
17674 (next_operand_entry_id): New static variable.
17675 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
17676 (add_to_ops_vec): Assigned unique ID to operand entry.
17677 (struct oecount_s): New field ID.
17678 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
17679 (undistribute_ops_list): Assign unique IDs to oecounts.
17680 (init_reassoc): reset next_operand_entry_id.
17682 2010-04-16 Doug Kwan <dougkwan@google.com>
17684 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
17685 missing left parenthesis.
17687 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
17689 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
17690 *btdi_rex64 using SWI48 mode iterator.
17691 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
17692 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
17693 *jcc_btdi_mask_rex64.
17695 2010-04-16 Anatoly Sokolov <aesok@post.ru>
17697 * double-int.h (tree_to_double_int): Convert to macro.
17698 * double-int.c (tree_to_double_int): Remove.
17700 2010-04-16 Jakub Jelinek <jakub@redhat.com>
17703 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
17704 with want_address 2 and in case a single element list might be
17705 possible, call it again with want_address 0.
17707 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
17709 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
17710 case 'W' print operands for HI mode.
17711 * config/h8300/h8300.h (Y0, Y2) : New constraints.
17712 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
17713 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
17714 * config/h8300/predicate.md (bit_register_indirect_operand): New.
17716 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
17718 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
17719 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
17720 #xx:3 and #xx:4 mode.
17722 * config/h8300/h8300.md (inverted load with HImode dest): Add
17723 support for H8300SX.
17725 * config/h8300/predicate.md (bit_operand): Allow immediate values that
17726 satisfy 'U' constraint.
17728 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17730 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
17731 * configure: Regenerate.
17732 * config.in: Regenerate.
17733 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
17736 2010-04-16 Richard Guenther <rguenther@suse.de>
17738 * tree.h (struct tree_decl_minimal): Move pt_uid ...
17739 (struct tree_decl_common): ... here.
17740 (DECL_PT_UID): Adjust.
17741 (SET_DECL_PT_UID): Likewise.
17742 (DECL_PT_UID_SET_P): Likewise.
17744 2010-04-16 Richard Guenther <rguenther@suse.de>
17746 PR tree-optimization/43572
17747 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
17748 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
17749 * tree-flow.h (is_call_clobbered): Remove.
17750 * tree-flow-inline.h (is_call_clobbered): Likewise.
17751 * tree-dfa.c (dump_variable): Do not dump call clobber state.
17752 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
17753 (execute_return_slot_opt): Adjust.
17754 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
17755 check for call clobbered vars here.
17756 (find_tail_calls): Move tailcall verification to the
17759 2010-04-16 Diego Novillo <dnovillo@google.com>
17761 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
17763 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
17766 * config/arm/arm.md (cbranchqi4): New pattern.
17767 * config/arm/predicates.md (const0_operand,
17768 cbranchqi4_comparison_operator): New predicates.
17770 2010-04-16 Richard Guenther <rguenther@suse.de>
17772 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
17773 (dump_gimple_stmt): Likewise.
17775 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
17777 * recog.h (struct recog_data): New field is_operator.
17778 (struct insn_operand_data): New field is_operator.
17779 * recog.c (extract_insn): Set recog_data.is_operator.
17780 * genoutput.c (output_operand_data): Emit code to set the
17782 * reload.c (find_reloads): Use it rather than testing for an
17783 empty constraint string.
17786 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
17787 If the previous insn is a cbranchsi4_insn with the same arguments,
17788 omit the compare instruction.
17790 * config/arm/arm.md (addsi3_cbranch): If destination is a high
17791 register, inputs must be low registers and we need a low register
17792 scratch. Handle alternative 2 like alternative 3.
17794 2010-04-16 Jakub Jelinek <jakub@redhat.com>
17796 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
17797 don't call get_addr on both. If one expression is a VALUE and
17798 the other a REG, check VALUE's locs if the REG isn't among them.
17800 2010-04-16 Christian Bruel <christian.bruel@st.com>
17802 * config/sh/sh.h (sh_frame_pointer_required): New function.
17803 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
17804 (flag_omit_frame_pointer) Set.
17805 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
17806 (rounded_frame_size): Adjust size with outgoing_args_size.
17807 (sh_set_return_address): Must return from stack pointer.
17808 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
17809 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
17810 (ACCUMULATE_OUTGOING_ARGS): Define.
17811 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
17812 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
17814 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
17817 * config/sh/sh.c (sh_legitimize_reload_address): Use
17818 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
17819 Remove a unneeded check for offset_base.
17821 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
17823 * configure: Regenerated.
17825 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17827 * config/s390/s390.c (s390_call_save_register_used): Switch back
17828 to HARD_REGNO_NREGS.
17830 2010-04-15 Richard Guenther <rguenther@suse.de>
17832 * alias.c (alias_set_subset_of): Handle alias-set zero
17835 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
17836 Julian Brown <julian@codesourcery.com>
17838 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
17839 alternatives according to use of high and low regs.
17840 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17841 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
17842 optimizing for size on Thumb-2.
17844 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
17846 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
17848 2010-04-15 Richard Guenther <rguenther@suse.de>
17850 * tree-ssa-structalias.c (struct variable_info): Add
17852 (new_var_info): Initialize it.
17853 (dump_constraints): Support printing last added constraints.
17854 (debug_constraints): Adjust.
17855 (dump_constraint_graph): Likewise.
17856 (make_heapvar_for): Check for NULL cfun.
17857 (get_function_part_constraint): New function.
17858 (get_fi_for_callee): Likewise.
17859 (find_func_aliases): Properly implement IPA PTA constraints.
17860 (process_ipa_clobber): New function.
17861 (find_func_clobbers): Likewise.
17862 (insert_into_field_list_sorted): Remove.
17863 (create_function_info_for): Properly allocate vars for IPA mode.
17864 Do not use insert_into_field_list_sorted.
17865 (create_variable_info_for): Properly generate constraints for
17866 global vars in IPA mode.
17867 (dump_solution_for_var): Always dump the solution.
17868 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
17869 (find_what_var_points_to): Adjust.
17870 (pt_solution_set): Change.
17871 (pt_solution_ior_into): New function.
17872 (pt_solution_empty_p): Export.
17873 (pt_solution_includes_global): Adjust.
17874 (pt_solution_includes_1): Likewise.
17875 (pt_solutions_intersect_1): Likewise.
17876 (dump_sa_points_to_info): Check some invariants.
17877 (solve_constraints): Move constraint dumping ...
17878 (compute_points_to_sets): ... here.
17879 (ipa_pta_execute): ... and here.
17880 (compute_may_aliases): Do not re-compute points-to info
17881 locally if IPA info is available.
17882 (ipa_escaped_pt): New global var.
17883 (ipa_pta_execute): Properly implement IPA PTA.
17884 * tree-into-ssa.c (dump_decl_set): Support dumping
17885 decls not in referenced-vars.
17886 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
17887 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
17888 (dump_points_to_solution): Likewise.
17889 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
17890 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
17891 (remap_gimple_stmt): Reset call clobber/use information if necessary.
17892 (copy_decl_to_var): Copy DECL_PT_UID.
17893 (copy_result_decl_to_var): Likewise.
17894 * tree.c (make_node_stat): Initialize DECL_PT_UID.
17895 (copy_node_stat): Copy it.
17896 * tree.h (DECL_PT_UID): New macro.
17897 (SET_DECL_PT_UID): Likewise.
17898 (DECL_PT_UID_SET_P): Likewise.
17899 (struct tree_decl_minimal): Add pt_uid member.
17900 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
17901 (pt_solution_empty_p): Declare.
17902 (pt_solution_set): Adjust.
17903 (ipa_escaped_pt): Declare.
17904 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
17905 * gimple-pretty-print.c (pp_points_to_solution): New function.
17906 (dump_gimple_call): Dump call clobber/use information.
17907 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
17908 * tree-pass.h (TDF_ALIAS): New dump option.
17909 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
17910 * doc/invoke.texi (-fipa-pta): Update documentation.
17912 2010-04-15 Richard Guenther <rguenther@suse.de>
17914 * Makefile.in (OBJS-common): Add gimple-fold.o.
17915 (gimple-fold.o): New rule.
17916 * tree.h (maybe_fold_offset_to_reference,
17917 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
17919 * gimple.h: ... here.
17920 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
17921 may_propagate_address_into_dereference): Move prototypes ...
17922 * gimple.h: ... here.
17923 * tree-ssa-ccp.c (get_symbol_constant_value,
17924 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
17925 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
17926 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
17927 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
17928 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
17929 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
17930 gimplify_and_update_call_from_tree): Move ...
17931 * gimple-fold.c: ... here. New file.
17932 (ccp_fold_builtin): Rename to ...
17933 (gimple_fold_builtin): ... this.
17934 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
17936 2010-04-15 Richard Guenther <rguenther@suse.de>
17938 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
17939 fit_double_type, force_fit_type_double, add_double_with_sign,
17940 neg_double, mul_double_with_sign, lshift_double, rshift_double,
17941 lrotate_double, rrotate_double, div_and_round_double): Move ...
17942 * double-int.c: ... here.
17943 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
17944 add_double, neg_double, mul_double_with_sign, mul_double,
17945 lshift_double, rshift_double, lrotate_double, rrotate_double,
17946 div_and_round_double): Move prototypes ...
17947 * double-int.h: ... here.
17949 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
17952 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
17953 matching constraints to ensure inputs match the output.
17955 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
17958 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
17959 in an input-only operand.
17961 2010-04-15 Anatoly Sokolov <aesok@post.ru>
17963 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
17964 (double_int_not, double_int_lshift, double_int_rshift): Declare.
17965 (double_int_negative_p): Convert to static inline function.
17966 * double-int.c (double_int_lshift, double_int_lshift): New functions.
17967 (double_int_negative_p): Remove.
17968 * tree.h (lshift_double, rshift_double):
17969 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
17970 * fold-const.c (fold_convert_const_int_from_real,
17971 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
17972 (lshift_double): Change type of arith argument to bool.
17973 (rshift_double): Change type of arith argument to bool. Correct
17975 * expmed.c (mask_rtx, lshift_value): (Ditto.).
17977 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
17980 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
17981 at the start and end of the then/else blocks, and omit them from the
17983 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
17984 argument; all callers changed. Pass zero to old_insns_match_p instead.
17985 (flow_find_head_matching_sequence): New function.
17986 (old_insns_match_p): Check REG_EH_REGION notes for calls.
17987 * basic-block.h (flow_find_cross_jump,
17988 flow_find_head_matching_sequence): Declare functions.
17990 2010-04-14 Jason Merrill <jason@redhat.com>
17993 * c-common.c (attribute_takes_identifier_p): New fn.
17994 * c-common.h: Declare it.
17996 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
17998 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
17999 splitter condition.
18000 (*udivmod<mode>4): Ditto.
18002 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
18004 * config/i386/i386.md (maxmin_int): Rename code attribute from
18005 maxminiprefix and update all users.
18006 (maxmin_float): Ditto from maxminfprefix.
18007 (logic): Ditto from logicprefix.
18008 (absneg_mnemonic): Ditto from absnegprefix.
18009 * config/i386/mmx.md: Update all users of maxminiprefix,
18010 maxminfprefix and logicprefix for rename.
18011 * config/i386/sse.md: Ditto.
18012 * config/i386/sync.md (sync_<code><mode>): Update for
18013 logicprefix rename.
18015 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
18018 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
18019 warnings converted to errors.
18021 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
18023 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
18024 used insn_type variable.
18025 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
18026 to avoid set-but-not-used warning.
18028 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
18030 * df-core.c (df_ref_debug): Change format string placeholder
18032 * dwarf2asm.c (dw2_asm_output_data_raw,
18033 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
18034 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
18035 * dwarf2out.c (output_cfi, output_cfi_directive,
18036 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
18037 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
18039 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
18040 * print-rtl.c (print_rtx): Ditto.
18042 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18044 PR middle-end/42694
18045 * builtins.c (expand_builtin_pow_root): New function to expand pow
18046 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
18047 series of sqrt and cbrt calls under -ffast-math.
18048 (expand_builtin_pow): Call it.
18050 2010-04-14 Michael Matz <matz@suse.de>
18052 PR tree-optimization/42963
18053 * tree-cfg.c (touched_switch_bbs): New static variable.
18054 (group_case_labels_stmt): New function broken out from ...
18055 (group_case_labels): ... here, use the above.
18056 (start_recording_case_labels): Allocate touched_switch_bbs.
18057 (end_recording_case_labels): Deallocate it, call
18058 group_case_labels_stmt.
18059 (gimple_redirect_edge_and_branch): Remember index of affected BB.
18061 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
18063 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
18064 from insn template.
18066 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
18068 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
18070 2010-04-13 Jan Hubicka <jh@suse.cz>
18072 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
18073 of optimized out static functions.
18074 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
18075 cost computation. Also sanity check for overflows.
18076 (update_caller_keys): Update cgraph_edge_badness call; properly
18077 update fibheap and sanity check that it is up to date.
18078 (add_new_edges_to_heap): Update cgraph_edge_badness.
18079 (cgraph_decide_inlining_of_small_function): Likewise;
18080 add sanity checking that badness in heap is up to date;
18081 improve dumping of reason; Update badness of calls to the
18082 offline copy of function currently inlined; dump badness
18083 of functions not inlined because of unit growth limits.
18085 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
18087 PR middle-end/32628
18088 * c-common.c (pointer_int_sum): Disregard overflow that occured only
18089 because of sign-extension change when converting to sizetype here...
18090 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
18092 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
18093 the folding to constants. Remove redundant final conversion.
18094 (fold_binary) <associate>: Do not associate if the re-association of
18095 constants alone overflows.
18096 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
18097 to the end of the list.
18098 (multiple_of_p) <COND_EXPR>: New case.
18100 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
18102 * opt-functions.awk (opt_sanitized_name): New.
18104 * optc-gen.awk: Use it
18105 * opth-gen.awk: Use it.
18107 2010-04-13 Martin Jambor <mjambor@suse.cz>
18109 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
18110 (sra_modify_assign): Delete stmts loading dead data even if racc has no
18111 children. Call replace_uses_with_default_def_ssa_name to handle
18114 2010-04-13 Michael Matz <matz@suse.de>
18116 PR middle-end/43730
18117 * builtins.c (expand_builtin_interclass_mathfn): Also create
18118 a register if the predicate doesn't match.
18120 2010-04-13 Diego Novillo <dnovillo@google.com>
18122 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
18123 * c-pch.c: Include timevar.h.
18124 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
18125 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
18126 * ggc-common.c: Include timevar.h.
18127 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
18128 * timevar.def (TV_PCH_SAVE): Define.
18129 (TV_PCH_CPP_SAVE): Define.
18130 (TV_PCH_PTR_REALLOC): Define.
18131 (TV_PCH_PTR_SORT): Define.
18132 (TV_PCH_RESTORE): Define.
18133 (TV_PCH_CPP_RESTORE): Define.
18135 2010-04-13 Michael Matz <matz@suse.de>
18137 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
18139 (can_reassociate_p): New function.
18140 (break_up_subtract_bb, reassociate_bb): Use it.
18142 2010-04-13 Richard Guenther <rguenther@suse.de>
18145 * builtins.c (c_readstr): Fix assert.
18147 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
18149 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
18150 when generating cltd insn.
18152 (*ashl<mode>3_1): Remove special handling for register operand 2.
18153 (*ashlsi3_1_zext): Ditto.
18154 (*ashlhi3_1): Ditto.
18155 (*ashlhi3_1_lea): Ditto.
18156 (*ashlqi3_1): Ditto.
18157 (*ashlqi3_1_lea): Ditto.
18158 (*<shiftrt_insn><mode>3_1): Ditto.
18159 (*<shiftrt_insn>si3_1_zext): Ditto.
18160 (*<shiftrt_insn>qi3_1_slp): Ditto.
18161 (*<rotate_insn><mode>3_1): Ditto.
18162 (*<rotate_insn>si3_1_zext): Ditto.
18163 (*<rotate_insn>qi3_1_slp): Ditto.
18165 2010-04-13 Richard Guenther <rguenther@suse.de>
18167 * tree-ssa-structalias.c (callused_id): Remove.
18168 (call_stmt_vars): New.
18169 (get_call_vi): Likewise.
18170 (lookup_call_use_vi): Likewise.
18171 (lookup_call_clobber_vi): Likewise.
18172 (get_call_use_vi): Likewise.
18173 (get_call_clobber_vi): Likewise.
18174 (make_transitive_closure_constraints): Likewise.
18175 (handle_const_call): Adjust to do per-call call-used handling.
18176 (handle_pure_call): Likewise.
18177 (find_what_var_points_to): Remove general callused handling.
18178 (init_base_vars): Likewise.
18179 (init_alias_vars): Initialize call_stmt_vars.
18180 (compute_points_to_sets): Process call-used and call-clobbered
18181 vars for call statements.
18182 (delete_points_to_sets): Free call_stmt_vars.
18184 2010-04-13 Richard Guenther <rguenther@suse.de>
18186 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18187 Only add RW dependence for dependence distance zero.
18188 Adjust maximal vectorization factor according to dependences.
18189 Move alignment handling ...
18190 (vect_find_same_alignment_drs): ... here. New function.
18191 (vect_analyze_data_ref_dependences): Adjust.
18192 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
18193 (vect_analyze_data_refs): Adjust minimal vectorization factor
18194 according to data references.
18195 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
18196 dependences before determining the vectorization factor.
18197 Analyze alignment after determining the vectorization factor.
18198 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
18199 dependences before alignment.
18200 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
18202 (vect_analyze_data_refs): Likewise.
18203 (MAX_VECTORIZATION_FACTOR): New define.
18205 2010-04-13 Duncan Sands <baldrick@free.fr>
18207 * except.h (lang_eh_type_covers): Remove.
18208 * except.c (lang_eh_type_covers): Likewise.
18210 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18211 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18213 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
18214 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
18215 UNITS_PER_LONG where it is ABI relevant.
18216 (s390_return_addr_rtx): Likewise.
18217 (s390_back_chain_rtx): Likewise.
18218 (s390_frame_area): Likewise.
18219 (s390_frame_info): Likewise.
18220 (s390_initial_elimination_offset): Likewise.
18221 (save_gprs): Likewise.
18222 (s390_emit_prologue): Likewise.
18223 (s390_emit_epilogue): Likewise.
18224 (s390_function_arg_advance): Likewise.
18225 (s390_function_arg): Likewise.
18226 (s390_va_start): Likewise.
18227 (s390_gimplify_va_arg): Likewise.
18228 (s390_function_profiler): Likewise.
18229 (s390_optimize_prologue): Likewise.
18230 (s390_rtx_costs): Likewise.
18231 (s390_secondary_reload): Likewise.
18232 (s390_promote_function_mode): Likewise.
18233 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
18234 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
18235 registers available.
18236 (s390_unwind_word_mode): New function.
18237 (s390_function_value): Split 64 bit values into register pair if
18238 used as return value.
18239 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
18240 function call parameters. Handle parallels.
18241 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
18242 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
18243 (DWARF_CIE_DATA_ALIGNMENT): New macro.
18244 (s390_expand_setmem): Remove unused variable src_addr.
18245 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
18246 deal with 64 bit registers.
18247 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
18248 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
18249 (UNITS_PER_LONG): New macro.
18250 * libjava/include/s390-signal.h: Define extended ucontext
18251 structure containing the upper halfs of the 64 bit registers.
18253 2010-04-13 Simon Baldwin <simonb@google.com>
18255 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
18257 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
18259 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
18260 rvalue on the RHS if the LHS is of a non-renamable type.
18261 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
18263 2010-04-13 Matthias Klose <doko@ubuntu.com>
18265 * gcc.c (cc1_options): Handle -iplugindir before processing
18266 the cc1 spec. Only add -iplugindir once.
18267 (cpp_unique_options): Add -iplugindir option if -fplugin* options
18269 * common.opt (iplugindir): Remove `Separate' property, initialize.
18270 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
18272 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
18273 (distclean): Remove plugin dir.
18274 * doc/invoke.texi: Document -iplugindir.
18276 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
18278 * doc/plugins.texi (Loading Plugins): Document short
18279 -fplugin=foo option.
18280 (Plugin API): Mention default_plugin_dir_name function.
18282 * gcc.c (find_file_spec_function): Add new declaration.
18283 (static_spec_func): Use it for "find-file".
18284 (find_file_spec_function): Add new function.
18285 (cc1_options): Add -iplugindir option if -fplugin* options found.
18287 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
18289 * plugin.c (add_new_plugin): Updated comment, and handle short
18291 (default_plugin_dir_name): Added new function.
18293 * common.opt (iplugindir): New option to set the plugin directory.
18295 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
18297 * config/i386/i386.md (any_rotate): New code iterator.
18298 (rotate_insn): New code attribute.
18300 (SWIM124): New mode iterator.
18301 (<rotate_insn>ti3): New expander.
18302 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
18303 any_rotate code iterator.
18304 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
18305 using any_rotate code iterator and SWIM124 mode iterator.
18306 (ix86_rotlti3): New insn_and_split pattern.
18307 (ix86_rotrti3): Ditto.
18308 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
18309 ix86_rotl{di,ti}3 patterns.
18310 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
18311 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
18312 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
18313 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
18314 code iterator and SWI mode iterator.
18315 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
18316 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
18318 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
18319 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
18320 (bswap rotatert splitter): Add splitter.
18321 (bswap splitter): Macroize splitter using any_rotate code iterator.
18322 Add insn predicate to split only for TARGET_USE_XCHGB or when
18323 optimizing function for size.
18325 2010-04-12 Steve Ellcey <sje@cup.hp.com>
18327 * config/pa/pa.c (emit_move_sequence): Remove use of
18328 deleted variable flag_argument_noalias.
18330 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18332 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
18334 Add to unsupported targets list.
18335 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
18336 sparc*-sun-solaris2.[567]* from target lists.
18337 * configure: Regenerate.
18338 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
18340 Remove Solaris 7 patch references.
18341 (Specific, sparc-sun-solaris2.7): Removed.
18342 (sparc-sun-solaris2*): Update Solaris 7 example.
18343 (sparc64-*-solaris2*): Likewise.
18345 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18347 * config.build (alpha*-dec-osf4*): Remove.
18348 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
18349 of obsolete configurations.
18350 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
18352 * config/alpha/t-osf4: Renamed to ...
18353 * config/alpha/t-osf5: ... this.
18354 * config/alpha/osf.h: Renamed to ...
18355 * config/alpha/osf5.h: ... this.
18356 Merged old osf5.h contents.
18358 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
18359 (EXTRA_SPECS): Removed.
18360 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
18361 reflect removal of Tru64 UNIX V4.0/V5.0 support.
18364 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18366 * doc/contrib.texi (Contributors, Rainer Orth): Update.
18368 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
18371 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
18372 __thiscall convention.
18374 2010-04-12 Steve Ellcey <sje@cup.hp.com>
18376 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
18378 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
18380 2010-04-12 Steve Ellcey <sje@cup.hp.com>
18382 * function.c (assign_parms_initialize_all): Add unused attribute
18385 2010-04-12 Richard Guenther <rguenther@suse.de>
18387 * gsstruct.def (GSS_CALL): New.
18388 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
18389 * gimple.h: Include tree-ssa-alias.h.
18390 (struct gimple_statement_call): New.
18391 (union gimple_statement_struct_d): Add gimple_call member.
18392 (gimple_call_reset_alias_info): Declare.
18393 (gimple_call_use_set): New function.
18394 (gimple_call_clobber_set): Likewise.
18395 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
18396 * gimple.c (gimple_call_reset_alias_info): New function.
18397 (gimple_build_call_1): Call it.
18398 * lto-streamer-in.c (input_gimple_stmt): Likewise.
18399 * tree-inline.c (remap_gimple_stmt): Likewise.
18400 (expand_call_inline): Remove callused handling.
18401 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
18402 * tree-dfa.c (dump_variable): Likewise.
18403 * tree-parloops.c (parallelize_loops): Likewise.
18404 * tree-ssa.c (init_tree_ssa): Likewise.
18405 (delete_tree_ssa): Likewise.
18406 * tree-flow-inline.h (is_call_used): Remove.
18407 * tree-flow.h (struct gimple_df): Remove callused member.
18408 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
18409 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
18410 (ref_maybe_used_by_call_p_1): Simplify.
18411 (call_may_clobber_ref_p_1): Likewise.
18412 * tree-ssa-structalias.c (compute_points_to_sets): Set
18413 the call stmt used and clobbered sets.
18414 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
18415 (find_tail_calls): Verify the tail call.
18417 2010-04-12 Richard Guenther <rguenther@suse.de>
18419 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
18420 single-iteration always-inline inlining.
18421 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
18422 (cgraph_decide_inlining): Do not handle always-inline specially.
18423 (try_inline): Remove always-inline cycle detection special case.
18424 Do not recurse on always-inlines.
18425 (cgraph_early_inlining): Do not iterate if not optimizing.
18426 (cgraph_gate_early_inlining): remove.
18427 (pass_early_inline): Run unconditionally.
18428 (gate_cgraph_decide_inlining): New function.
18429 (pass_ipa_inline): Use it. Do not run the IPA inliner if
18430 not inlining or optimizing.
18431 (cgraph_decide_inlining_of_small_functions): Also consider
18432 always-inline functions.
18433 (cgraph_default_inline_p): Return true for nodes which should
18434 disregard inline limits.
18435 (estimate_function_body_sizes): Assume zero size and time for
18436 nodes which are marked as disregarding inline limits.
18437 (cgraph_decide_recursive_inlining): Do not perform recursive
18438 inlining on always-inline nodes.
18440 2010-04-12 Jakub Jelinek <jakub@redhat.com>
18443 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
18444 for exprs satisfying handled_component_p.
18446 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
18448 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
18449 non-constant aggregate elements.
18451 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
18452 is a real initialization.
18454 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
18457 * c-decl.c (start_function): Move forward check for nested function.
18459 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
18461 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
18462 * config/sh/sh.c: Include reload.h.
18463 (sh_legitimize_reload_address): New.
18464 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
18465 sh_legitimize_reload_address.
18467 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
18469 * config/sh/sh.md (*movqi_pop): New insn pattern.
18470 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
18472 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
18474 * config/i386/i386.md (any_shiftrt): New code iterator.
18475 (shiftrt_insn): New code attribute.
18477 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
18478 using any_shiftrt code iterator.
18479 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
18480 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
18481 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
18482 pattern from corresponding peephole2 patterns.
18483 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
18484 using any_shiftrt code iterator.
18485 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
18486 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
18487 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
18488 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
18489 *{ashr,lshr}<mode>3_cmp_zext.
18490 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
18492 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
18494 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
18496 (*lshr<mode>3_cconly): Ditto.
18498 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
18500 * config/i386/i386.md (lshr<mode>3): Macroize expander from
18501 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
18502 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
18503 pattern from *lshr{di,ti}3_1 and corresponding splitters using
18505 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
18506 from corresponding peephole2 patterns.
18507 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
18508 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
18509 and *lshrdi3_1_rex64 using SWI mode iterator.
18510 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
18511 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
18512 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
18513 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
18514 and *lshrdi3_cmp_rex64 using SWI mode iterator.
18515 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
18516 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
18517 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
18518 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
18521 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
18523 * config/i386/i386.md (ashr<mode>3): Macroize expander from
18524 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
18525 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
18526 pattern from *ashr{di,ti}3_1 and corresponding splitters using
18528 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
18529 from corresponding peephole2 patterns.
18530 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
18531 (ashrsi3_cvt): Rename from ashrsi3_31.
18532 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
18533 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
18534 and x86_64_shift_adj_3 using SWI48 mode iterator.
18535 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
18536 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
18537 and *ashrdi3_1_rex64 using SWI mode iterator.
18538 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
18539 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
18540 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
18541 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
18542 and *ashrdi3_cmp_rex64 using SWI mode iterator.
18543 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
18544 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
18545 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
18546 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
18548 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
18549 * config/i386/i386.c (ix86_split_ashr): Update for renamed
18550 x86_shift<mode>_adj_3 expanders.
18552 2010-04-10 Wei Guozhi <carrot@google.com>
18555 * config/arm/arm.c (arm_pic_static_addr): New function.
18556 (legitimize_pic_address): Call arm_pic_static_addr when it detects
18558 (arm_output_addr_const_extra): Output expression for new pattern.
18559 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
18561 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
18563 * ira-costs.c (record_reg_classes): Ignore alternatives that are
18566 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
18567 * web.c: Include "insn-config.h" and "recog.h".
18568 (union_match_dups): New function.
18569 (web_main): Call it.
18570 (union_defs): Don't try to recognize match_dups.
18572 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
18573 if doing so would replace the entire pattern.
18575 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
18579 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
18580 and splitter pattern. Change splitter operand 1 predicate to
18583 2010-04-09 Martin Jambor <mjambor@suse.cz>
18585 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
18586 lattices are addresses of CONST_DECLs with the same initial value.
18587 (ipcp_print_all_lattices): Print values of CONST_DECLs.
18588 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
18590 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
18591 Bernd Schmidt <bernds@codesourcery.com>
18593 * loop-invariant.c (replace_uses): New static function.
18594 (move_invariant_reg): Use it to ensure we can replace the uses.
18596 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
18598 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
18600 (picochip_override_options): Enable section anchors only above -O1.
18601 (picochip_reorg): Fixed a couple of build warnings.
18603 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18605 * configure.ac (plugin -rdynamic test): Log result.
18606 * configure: Regenerate.
18607 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
18608 (RDYNAMIC_SPEC): Define.
18609 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
18611 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18613 * configure.ac: Determine Sun ld version numbers.
18614 (comdat_group): Restrict GNU ld version checks to gld.
18615 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
18616 (enable_comdat): Support --enable-comdat.
18617 * configure: Regenerate.
18618 * doc/install.texi (Configuration): Document --enable-comdat.
18620 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18622 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
18623 * config/sol2-gld.h: ... here.
18624 * config.gcc (sparc*-*-solaris2*): Reflect this.
18625 (i[34567]86-*-solaris2*): Use it.
18627 2010-04-09 Steve Ellcey <sje@cup.hp.com>
18629 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
18631 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
18633 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18636 * diagnostic.c (diagnostic_initialize): Initialize
18637 some_warnings_are_errors.
18638 (diagnostic_finish): New.
18639 (diagnostic_action_after_output): Call it before exiting.
18640 (diagnostic_report_diagnostic): Do not print message here. Set
18641 some_warnings_are_errors.
18642 * diagnostic.h (diagnostic_context): Delete
18643 issue_warnings_are_errors_message. Add some_warnings_are_errors.
18644 (diagnostic_finish): Declare.
18645 * toplev.c (toplev_main): Call it before exit.
18647 2010-04-09 Jason Merrill <jason@redhat.com>
18650 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
18651 for incomplete type.
18654 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
18655 based on a warning flag.
18657 2010-04-09 Richard Guenther <rguenther@suse.de>
18659 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
18661 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
18664 * varasm.c (default_assemble_visibility): Wrap vars that are
18665 set, but unused, by targets without GAS.
18666 * config/rs6000/rs6000.c (paired_emit_vector_compare):
18667 Remove set, but unused, vars.
18668 (rs6000_legitimize_tls_address): Likewise.
18669 (altivec_expand_dst_builtin): Likewise.
18670 * config/darwin.c (machopic_classify_symbol): Likewise.
18671 (machopic_indirection_name): Likewise.
18673 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
18675 * config/i386/i386.md (DWI): New mode iterator.
18676 (S): New mode attribute.
18677 (shift_operand): Ditto.
18678 (shift_immediate_operand): Ditto.
18679 (ashl_input_operand): Ditto.
18680 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
18681 using SDWIM mode iterator.
18682 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
18683 pattern from *ashl{di,ti}3_1 and corresponding splitters using
18685 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
18686 from corresponding peephole2 patterns.
18687 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
18688 and x86_64_shift_adj_1 using SWI48 mode iterator.
18689 (x86_shift<mode>_adj_2): Ditto.
18690 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
18691 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
18692 using SWI48 mode iterator.
18693 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
18694 *ashldi3_cmp_rex64 using SWI mode iterator.
18695 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
18696 *ashldi3_cconly_rex64 using SWI mode iterator.
18697 * config/i386/i386.c (ix86_split_ashl): Update for renamed
18698 x86_shift<mode>_adj_{1,2}.
18699 (ix86_split_ashr): Ditto.
18700 (ix86_split_lshr): Ditto.
18702 2010-04-09 Richard Guenther <rguenther@suse.de>
18704 * target.h (builtin_conversion): Pass in input and output types.
18705 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
18706 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
18707 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
18708 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
18710 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
18712 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
18714 2010-04-09 Richard Guenther <rguenther@suse.de>
18717 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
18719 2010-04-09 Richard Guenther <rguenther@suse.de>
18721 * tree-vectorizer.h (struct _stmt_vec_info): Document
18722 that vectype is the type of the LHS.
18723 (supportable_widening_operation, supportable_narrowing_operation):
18724 Get both input and output vector types as arguments.
18725 (vect_is_simple_use_1): Declare.
18726 (get_same_sized_vectype): Likewise.
18727 * tree-vect-loop.c (vect_determine_vectorization_factor):
18728 Set STMT_VINFO_VECTYPE to the vector type of the def.
18729 (vectorizable_reduction): Adjust.
18730 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
18731 Adjust. Specify the output vector type.
18732 (vect_pattern_recog_1): Adjust.
18733 * tree-vect-stmts.c (get_same_sized_vectype): New function.
18734 (vectorizable_call): Adjust.
18735 (vectorizable_conversion): Likewise.
18736 (vectorizable_operation): Likewise.
18737 (vectorizable_type_demotion): Likewise.
18738 (vectorizable_type_promotion): Likewise.
18739 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
18741 (vect_is_simple_use_1): New function.
18742 (supportable_widening_operation): Get both input and output
18744 (supportable_narrowing_operation): Likewise.
18745 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
18747 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
18749 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
18750 __thiscall and _thiscall as predefined macros.
18751 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
18752 thiscall attribute handling.
18753 (ix86_comp_type_attributes): Likewise.
18754 (ix86_function_regparm): Likewise.
18755 (ix86_return_pops_args): Likewise.
18756 (init_cumulative_args): Likewise.
18757 (find_drap_reg): Likewise.
18758 (ix86_static_chain): Likewise.
18759 (x86_this_parameter): Likewise.
18760 (x86_output_mi_thunk): Likewise.
18761 (ix86_attribute_table): Add description for thiscall attribute.
18762 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
18763 * doc/extend.texi: Add documentation for thiscall.
18765 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18768 * c.opt (Wint-to-pointer-cast): Available in C++.
18769 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
18771 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
18773 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
18774 * calls.c (expand_call): Pass the function type to aggregate_value_p.
18775 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
18776 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
18777 function type instead. Reorder and simplify checks.
18779 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
18781 2010-04-08 Jing Yu <jingyu@google.com>
18782 Zdenek Dvorak <ook@ucw.cz>
18784 PR tree-optimization/42720
18785 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
18786 loop unswitch conditions here from ...
18787 (tree_unswitch_single_loop): ... here.
18789 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
18791 * tree-if-conv.c: Fix comments and simplify logic.
18793 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
18795 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
18796 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
18797 (main_tree_if_conversion): Update call to tree_if_conversion.
18799 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
18802 * doc/invoke.texi (-b,-V): Delete.
18803 * doc/tm.texi: Do not mention -b.
18804 * gcc.c (display_help): Delete -b and -V.
18805 (process_command): Delete -b and -V.
18806 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
18808 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
18809 Wolfgang Gellerich <gellerich@de.ibm.com>
18811 Implement target hook for loop unrolling
18812 * target.h (loop_unroll_adjust): Add a new target hook function.
18813 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
18814 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
18815 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
18816 (s390_loop_unroll_adjust): Implement the new target hook for s390.
18817 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
18819 (decide_unroll_stupid): Likewise.
18821 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18824 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
18826 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18828 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
18829 (Specific, *-*-solaris2*): Likewise.
18830 Don't prefer Sun as over GNU as.
18832 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
18834 * config/s390/s390.c (override_options): Adjust the z10 defaults
18835 for max-unroll-times, max-completely-peeled-insns
18836 and max-completely-peel-times.
18838 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18840 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
18841 instructions for z10.
18842 (s390_expand_setmem): Likewise.
18843 (s390_expand_cmpmem): Likewise.
18845 2010-04-08 Richard Guenther <rguenther@suse.de>
18847 PR tree-optimization/43679
18848 * tree-ssa-pre.c (eliminate): Only propagate copies.
18850 2010-04-08 Jakub Jelinek <jakub@redhat.com>
18853 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
18854 set but not used variable warning.
18856 2010-04-08 Wei Guozhi <carrot@google.com>
18859 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
18860 (arm_size_rtx_costs): Call the new function when optimized for size.
18862 2010-04-08 Jakub Jelinek <jakub@redhat.com>
18865 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
18866 op0 is not a MEM, just return NULL instead of assertion
18868 (discover_nonconstant_array_refs): Don't walk debug stmts.
18870 2010-04-08 Doug Kwan <dougkwan@google.com>
18872 * configure.ac: Recognize gold and do not use its version number
18873 to test ld features.
18874 * configure: Regenerate.
18876 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
18878 PR middle-end/40815
18879 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
18880 (negate_value): Move code to push elements to broken_up_substracts ...
18881 (eliminate_plus_minus_pair): ... here. Push operands that have no
18882 negative pair to plus_negates.
18883 (repropagate_negates, init_reassoc, fini_reassoc): Update.
18885 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18887 * doc/install.texi (Configuration): Move description of
18888 --enable-lto, --with-libelf*, --enable-gold from Java section to
18891 * doc/generic.texi (Working with declarations)
18892 (Function Properties, C and C++ Trees): Fix typos.
18893 * doc/sourcebuild.texi (Top Level): Likewise.
18895 2010-04-07 Jakub Jelinek <jakub@redhat.com>
18898 * tree.h (DECL_READ_P): Define.
18899 (struct tree_decl_common): Add decl_read_flag.
18900 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
18901 a set but not used warning.
18902 (merge_decls): Merge DECL_READ_P flag.
18903 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
18904 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
18905 * c-common.c (handle_used_attribute, handle_unused_attribute):
18907 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
18909 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
18911 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
18912 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
18913 c_parser_binary_expression, c_parser_cast_expression,
18914 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
18915 Call default_function_array_read_conversion instead of
18916 default_function_array_conversion where needed.
18917 (c_parser_unary_expression, c_parser_conditional_expression,
18918 c_parser_postfix_expression_after_primary, c_parser_initelt):
18919 Likewise. Call mark_exp_read where needed.
18920 (c_parser_statement_after_labels, c_parser_asm_operands,
18921 c_parser_typeof_specifier, c_parser_sizeof_expression,
18922 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
18924 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
18926 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
18927 (warn_unused_but_set_parameter): Default to warn_unused
18929 * doc/invoke.texi: Document -Wunused-but-set-variable and
18930 -Wunused-but-set-parameter.
18932 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
18933 used count variable.
18934 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
18935 when operandN variables aren't used in the body of the expander
18937 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
18938 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
18939 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
18940 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
18941 FOR_EACH_IMM_USE_ON_STMT): Likewise.
18942 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
18943 * tree.c (PROCESS_ARG): Likewise.
18945 2010-04-07 Simon Baldwin <simonb@google.com>
18947 * diagnostic.h (diagnostic_override_option_index): New macro to
18948 set a diagnostic's option_index.
18949 * c-tree.h (c_cpp_error): Add warning reason argument.
18950 * opts.c (_warning_as_error_callback): New.
18951 (register_warning_as_error_callback): Store callback for
18952 warnings enabled via enable_warning_as_error.
18953 (enable_warning_as_error): Call callback, minor code tidy.
18954 * opts.h (register_warning_as_error_callback): Declare.
18955 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
18956 response to -Werror=.
18957 (c_common_init_options): Register warning_as_error_callback in opts.c.
18958 * common.opt: Add -Wno-cpp option.
18959 * c-common.c (struct reason_option_codes_t): Map cpp warning
18960 reason codes to gcc option indexes.
18961 * (c_option_controlling_cpp_error): New function, lookup the gcc
18962 option index for a cpp warning reason code.
18963 * (c_cpp_error): Add warning reason argument, call
18964 c_option_controlling_cpp_error for diagnostic_override_option_index.
18965 * doc/invoke.texi: Document -Wno-cpp.
18967 2010-04-07 Richard Guenther <rguenther@suse.de>
18969 * ipa-reference.c (mark_load): Use get_base_address.
18970 (mark_store): Likewise.
18972 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
18973 inserting GIMPLE_NOPs into the IL.
18974 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18975 Explicitly strip handled components and indirect references.
18977 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
18978 folding address expressions.
18979 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
18980 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
18981 operand_equal_p to compare decls.
18982 (ptr_deref_may_alias_decl_p): Likewise.
18983 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
18984 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
18985 Handle reversed comparison ops.
18986 * tree-sra.c (asm_visit_addr): Use get_base_address.
18987 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
18988 * ipa-reference.c (mark_address): Use get_base_address.
18990 2010-04-07 Richard Guenther <rguenther@suse.de>
18992 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
18993 Propagate constants everywhere.
18995 2010-04-07 Jakub Jelinek <jakub@redhat.com>
18998 * tree.c (MAX_INT_CACHED_PREC): Define.
18999 (nonstandard_integer_type_cache): New array.
19000 (build_nonstandard_integer_type): Cache results for precision
19001 <= MAX_INT_CACHED_PREC.
19003 2010-04-07 Richard Guenther <rguenther@suse.de>
19005 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
19006 -fargument-noalias-global, -fargument-noalias-anything): Remove.
19007 * common.opt: Likewise.
19008 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
19009 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
19010 (nonoverlapping_memrefs_p): Likewise.
19011 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
19012 * opts.c (common_handle_option): Handle OPT_fargument_alias,
19013 OPT_fargument_noalias, OPT_fargument_noalias_anything and
19014 OPT_fargument_noalias_global for backward compatibility.
19016 2010-04-07 Richard Guenther <rguenther@suse.de>
19018 PR tree-optimization/43270
19019 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
19020 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
19021 * tree-ssa-pre.c (phi_translate_1): Adjust.
19022 (fully_constant_expression): Split out vn_reference handling to ...
19023 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
19024 Fold reads from constant strings.
19025 (vn_reference_lookup): Handle fully constant references.
19026 (vn_reference_lookup_pieces): Likewise.
19027 * Makefile.in (expmed.o-warn): Add -Wno-error.
19029 2010-04-07 Martin Jambor <mjambor@suse.cz>
19031 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
19033 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
19036 * gcc.c: Add -static-libstdc++ to list of recognized options.
19038 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19040 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
19042 2010-04-07 Richard Guenther <rguenther@suse.de>
19044 PR middle-end/42617
19045 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
19046 bases build simple mem attributes to retain points-to information.
19048 2010-04-07 Richard Guenther <rguenther@suse.de>
19050 PR middle-end/42617
19051 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
19052 preserve points-to related information.
19054 2010-04-07 Richard Guenther <rguenther@suse.de>
19056 PR middle-end/42617
19057 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
19058 discard plain indirect references.
19059 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
19060 * tree.c (tree_nop_conversion): Likewise.
19062 2010-04-07 Dodji Seketeli <dodji@redhat.com>
19065 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
19067 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
19069 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
19070 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
19072 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
19074 * tree-if-conv.c: Fix indentation and comments.
19076 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
19078 * tree-if-conv.c: Sort static functions in topological order.
19080 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
19082 * tree-if-conv.c: Fix indentation and comments.
19084 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
19086 PR middle-end/43519
19087 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
19088 lang_hooks.types.type_for_size instead of
19089 build_nonstandard_integer_type.
19090 When converting an unsigned type to signed, double its precision.
19091 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
19092 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
19093 (graphite_create_new_loop_guard): When ub + 1 wraps around,
19096 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
19098 PR middle-end/43519
19099 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
19100 POINTER_PLUS_EXPR for pointer types.
19102 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
19104 PR middle-end/43519
19105 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
19106 * graphite-clast-to-gimple.c: Include langhooks.h.
19107 (max_signed_precision_type): New.
19108 (max_precision_type): Takes two types as arguments.
19109 (precision_for_value): New.
19110 (precision_for_interval): New.
19111 (gcc_type_for_interval): New.
19112 (gcc_type_for_value): New.
19113 (gcc_type_for_clast_term): New.
19114 (gcc_type_for_clast_red): New.
19115 (gcc_type_for_clast_bin): New.
19116 (gcc_type_for_clast_expr): Split up into several functions.
19117 (gcc_type_for_clast_eq): Rewritten.
19118 (compute_bounds_for_level): New.
19119 (compute_type_for_level_1): New.
19120 (compute_type_for_level): New.
19121 (gcc_type_for_cloog_iv): Removed.
19122 (gcc_type_for_iv_of_clast_loop): Rewritten.
19123 (graphite_create_new_loop): Compute the lower and upper bound types
19124 with gcc_type_for_clast_expr.
19125 (graphite_create_new_loop_guard): Same.
19126 (find_cloog_iv_in_expr): Removed.
19127 (compute_cloog_iv_types_1): Removed.
19128 (compute_cloog_iv_types): Removed.
19129 (gloog): Do not call compute_cloog_iv_types.
19130 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
19131 GBB_CLOOG_IV_TYPES.
19132 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
19133 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
19134 (GBB_CLOOG_IV_TYPES): Removed.
19136 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
19138 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
19139 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
19140 (detect_commutative_reduction): Same.
19142 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
19144 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
19145 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
19147 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
19148 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
19149 (rewrite_commutative_reductions_out_of_ssa): Same.
19150 * passes.c (execute_function_todo): Call verify_ssa for every pass
19151 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
19152 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
19153 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
19154 with an extra argument.
19155 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
19156 verify_ssa only when the extra argument is true.
19157 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
19158 with an extra argument.
19159 (tree_transform_and_unroll_loop): Same.
19161 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
19163 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
19164 for all the passes of the LNO having LOOP_CLOSED_SSA.
19165 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
19166 * tree-loop-distribution.c (pass_loop_distribution): Same.
19167 * tree-pass.h (TODO_verify_loops): Removed.
19168 * tree-ssa-loop.c (pass_tree_loop_init): Same.
19170 (pass_tree_unswitch): Same.
19171 (pass_predcom): Same.
19172 (pass_vectorize): Same.
19173 (pass_linear_transform): Same.
19174 (pass_graphite_transforms): Same.
19175 (pass_iv_canon): Same.
19176 (pass_complete_unroll): Same.
19177 (pass_complete_unrolli): Same.
19178 (pass_parallelize_loops): Same.
19179 (pass_loop_prefetch): Same.
19180 (pass_iv_optimize): Same.
19182 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
19184 PR middle-end/32824
19185 * passes.c (init_optimization_passes): Move pass_lim before
19186 pass_copy_prop and pass_dce_loop.
19188 2010-04-06 Jakub Jelinek <jakub@redhat.com>
19191 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
19192 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
19193 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
19194 MULTI_* defines for 4 argument vpermil2p* builtins.
19196 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
19198 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
19199 * config/i386/i386.c (x86_maybe_negate_const_int): New.
19200 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
19201 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
19202 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
19203 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
19204 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
19205 Use x86_maybe_negate_const_int to output insn mnemonic.
19206 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
19207 check from instruction predicate. Update comments.
19208 * config/i386/sync.md (sync_add<mode>): Use
19209 x86_maybe_negate_const_int to output insn mnemonic.
19211 2010-04-06 Jan Hubicka <jh@suse.cz>
19213 PR tree-optimization/42906
19214 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
19215 IGNORE_SELF argument. Set visited_control_parents for fully
19217 (find_obviously_necessary_stmts): Update call of
19218 mark_control_dependent_edges_necessary.
19219 (propagate_necessity): Likewise. Handle PHI edges more curefully.
19221 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
19223 * config/i386/i386.md: Remove comment about 'e' and 'E'
19226 2010-04-06 Richard Guenther <rguenther@suse.de>
19228 PR tree-optimization/43627
19229 * tree-vrp.c (extract_range_from_unary_expr): Widenings
19230 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
19233 2010-04-06 Jakub Jelinek <jakub@redhat.com>
19235 * BASE-VER: Change to 4.6.0.
19238 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
19241 2010-04-06 Richard Guenther <rguenther@suse.de>
19243 PR middle-end/43661
19244 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
19246 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19248 * doc/invoke.texi (Optimize Options): Document that LTO
19249 won't remove object access purely due to incompatible
19252 2010-04-04 Matthias Klose <doko@ubuntu.com>
19254 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
19255 Initialize variable.
19257 2010-04-03 Richard Guenther <rguenther@suse.de>
19259 PR middle-end/42509
19260 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
19261 require a non-NULL MEM_OFFSET.
19263 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
19265 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
19266 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
19267 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
19268 config/alpha/predicates.md, config/arm/arm.md,
19269 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
19270 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
19271 config/darwin9.h, config/darwin.c, config/darwin.h,
19272 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
19273 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
19274 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
19275 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
19276 config/mips/mips.md, config/mn10300/mn10300.c,
19277 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
19278 config/rs6000/aix.h, config/rs6000/dfp.md,
19279 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
19280 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
19281 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
19282 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
19283 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
19284 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
19285 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
19286 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
19287 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
19288 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
19289 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
19290 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
19291 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
19292 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
19293 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
19294 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
19295 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
19296 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
19297 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
19298 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
19299 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
19300 opt-functions.awk, opth-gen.awk, params.def, passes.c,
19301 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
19302 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
19303 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
19304 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
19305 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
19306 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
19307 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
19308 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
19309 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
19310 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
19311 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
19312 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
19313 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
19314 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
19316 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19319 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
19320 * aclocal.m4: Regenerate.
19322 2010-04-02 Richard Guenther <rguenther@suse.de>
19324 PR tree-optimization/43629
19325 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
19326 if we have seen a constant value.
19328 2010-04-02 Joseph Myers <joseph@codesourcery.com>
19330 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
19332 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
19335 * arm.c (legitimize_tls_address): Adjust call to
19336 gen_tls_load_dot_plus_four.
19337 (arm_note_pic_base): New function.
19338 (arm_cannot_copy_insn_p): Use it.
19339 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
19342 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19347 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19349 * Makefile.in ($(out_object_file)): Depend on
19350 gt-$(basename $(notdir $(out_file))).h.
19352 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
19354 * config.gcc (lm32-*-rtems*): Add t-lm32.
19356 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
19358 * config.gcc: Add lm32-*-rtems*.
19359 * config/lm32/rtems.h: New file.
19361 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
19364 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
19366 2010-04-01 Jakub Jelinek <jakub@redhat.com>
19368 * dwarf2out.c (output_compilation_unit_header): For
19369 -gdwarf-4 use version 4 instead of version 3.
19370 (output_line_info): For version 4 and above emit additional
19371 maximum ops per insn header field.
19372 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
19374 * dwarf2out.c (is_c_family, is_java): Remove.
19375 (lower_bound_default): New function.
19376 (add_bound_info, gen_descr_array_type_die): Use it.
19378 2010-04-01 Dodji Seketeli <dodji@redhat.com>
19381 * dwarf2out.c (gen_variable_die): Allow debug info for variable
19382 re-declaration when it happens in a function.
19384 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
19386 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
19387 (cgraph_remove_function_insertion_hook): Same.
19388 (cgraph_call_function_insertion_hooks): Same.
19390 2010-04-01 Richard Guenther <rguenther@suse.de>
19392 PR middle-end/43614
19393 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
19394 and TREE_THIS_VOLATILE.
19395 (copy_ref_info): Likewise.
19396 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
19397 * tree.c (build6_stat): Ignore side-effects of all but arg5
19398 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
19401 2010-04-01 Richard Guenther <rguenther@suse.de>
19403 PR tree-optimization/43607
19404 * ipa-type-escape.c (check_call): Do not access non-existing
19407 2010-04-01 Richard Guenther <rguenther@suse.de>
19409 PR middle-end/43602
19411 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
19412 Jack Howarth <howarth@bromo.med.uc.edu>
19414 * tree-profile.c (tree_init_ic_make_global_vars): Make static
19417 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19419 * doc/install.texi (Prerequisites): Document libelf usability on
19420 IRIX 5/6 and Solaris 2.
19421 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
19422 Update GNU as, GNU ld requirements.
19423 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
19424 Document Sun Studio compiler download.
19425 Update and simplify as, ld recommendations.
19426 (Specific, *-*-solaris2.7): Note obsoletion, removal.
19428 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19430 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
19431 with_tune_32 to pentium4.
19433 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
19435 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
19437 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19439 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
19440 obsoletion, removal.
19442 Document GNU as requirement.
19443 Update configure requirements.
19444 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
19445 Recomment IRIX 6.5.18+.
19446 Document IDF/IDL requirement.
19447 Document GNU as requirement.
19448 Document GNU ld bootstrap failure.
19449 Remove freeware.sgi.com reference.
19451 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19453 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
19454 UNIX V4.0, V5.0 obsoletion, removal.
19455 Remove --with-gc=simple reference.
19456 Update VM requirements during bootstrap.
19457 Remove -oldas bootstrap description.
19458 Update binutils reference.
19459 Remove comparison failure note.
19461 2010-03-31 Richard Guenther <rguenther@suse.de>
19462 Zdenek Dvorak <ook@ucw.cz>
19463 Sebastian Pop <sebastian.pop@amd.com>
19465 PR middle-end/43464
19466 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
19467 with multiple arguments.
19468 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
19470 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
19472 * graphite-dependences.c (print_pddr): Call print_pdr with an
19474 * graphite-poly.c (debug_pdr): Add an extra argument for the
19477 (print_pbb_domain): Same.
19479 (print_scop_context): Same.
19480 (print_scop): Same.
19481 (print_cloog): Same.
19482 (debug_pbb_domain): Same.
19484 (print_pdrs): Same.
19485 (debug_pdrs): Same.
19486 (debug_scop_context): Same.
19487 (debug_scop): Same.
19488 (debug_cloog): Same.
19489 (print_scop_params): Same.
19490 (debug_scop_params): Same.
19491 (print_iteration_domain): Same.
19492 (print_iteration_domains): Same.
19493 (debug_iteration_domain): Same.
19494 (debug_iteration_domains): Same.
19495 (print_scattering_function): Same.
19496 (print_scattering_functions): Same.
19497 (debug_scattering_function): Same.
19498 (debug_scattering_functions): Same.
19499 * graphite-poly.h (debug_pdr): Update declaration.
19501 (print_pbb_domain): Same.
19503 (print_scop_context): Same.
19504 (print_scop): Same.
19505 (print_cloog): Same.
19506 (debug_pbb_domain): Same.
19508 (print_pdrs): Same.
19509 (debug_pdrs): Same.
19510 (debug_scop_context): Same.
19511 (debug_scop): Same.
19512 (debug_cloog): Same.
19513 (print_scop_params): Same.
19514 (debug_scop_params): Same.
19515 (print_iteration_domain): Same.
19516 (print_iteration_domains): Same.
19517 (debug_iteration_domain): Same.
19518 (debug_iteration_domains): Same.
19519 (print_scattering_function): Same.
19520 (print_scattering_functions): Same.
19521 (debug_scattering_function): Same.
19522 (debug_scattering_functions): Same.
19524 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
19526 * graphite-poly.c (print_scattering_function_1): New.
19527 (print_scattering_function): Call it.
19528 (print_scop_params): Remove spaces at the end of lines.
19529 (print_cloog): New.
19530 (debug_cloog): New.
19531 * graphite-poly.h (print_cloog): Declared.
19532 (debug_cloog): Declared.
19534 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
19536 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
19538 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
19539 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
19540 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
19541 to switch between adding the IV bump in loop->latch or in loop->header.
19543 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
19545 * graphite-poly.c (print_scattering_function): Pretty print following
19546 the scoplib format.
19548 (print_pbb_domain): Same.
19549 (dump_gbb_cases): Same.
19550 (dump_gbb_conditions): Same.
19551 (print_pdrs): Same.
19553 (print_scop_params): Same.
19554 (print_scop_context): Same.
19555 (print_scop): Same.
19556 (print_pbb_body): New.
19557 (lst_indent_to): New.
19558 (print_lst): Start new lines with a #.
19559 * graphite-poly.h (pbb_bb): New.
19560 (pbb_index): Use pbb_bb.
19561 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
19563 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
19565 2010-03-31 Jakub Jelinek <jakub@redhat.com>
19567 * dwarf2out.c (size_of_die): For -gdwarf-4 use
19568 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
19569 and 0 instead of 1 for dw_val_class_flag.
19570 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
19571 dw_val_class_range_list, dw_val_class_loc_list,
19572 dw_val_class_lineptr and dw_val_class_macptr, use
19573 DW_FORM_flag_present for dw_val_class_flag and
19574 DW_FORM_exprloc for dw_val_class_loc.
19575 (output_die): For -gdwarf-4 print dw_val_class_loc
19576 size as uleb128 instead of 1 or 2 bytes and don't print
19577 anything for dw_val_class_flag.
19579 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
19580 instead of cselib_lookup following by tweaking locs->setting_insn.
19583 * cselib.c (cselib_process_insn): Clear cselib_current_insn
19584 even before returning from label, setjmp call or volatile asm
19587 2010-03-31 Richard Guenther <rguenther@suse.de>
19589 PR middle-end/43600
19590 * cgraphunit.c (cgraph_output_in_order): Do not allocate
19591 temporary data on stack.
19593 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19595 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
19596 (PUSHSECTION_ASM_OP): Remove.
19597 (POPSECTION_ASM_OP): Remove.
19598 (PUSHSECTION_FORMAT): Remove.
19599 * config/sol2.h (PUSHSECTION_FORMAT): Define.
19600 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
19601 * config/sol2.c (solaris_output_init_fini): Use it.
19603 2010-03-31 Jie Zhang <jie@codesourcery.com>
19606 * opt-functions.awk (var_type_struct): Use signed char type
19607 for simple variables.
19609 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19611 * config/sol2.c: Include output.h.
19612 (solaris_assemble_visibility): New function.
19613 * config/t-sol2 (sol2.o): Add output.h dependency.
19614 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
19615 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
19618 2010-03-31 Jakub Jelinek <jakub@redhat.com>
19621 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
19622 V2SImode or XFmode on PRE_DEC.
19625 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
19628 2010-03-31 Jie Zhang <jie@codesourcery.com>
19631 * reload.h (caller_save_initialized_p): Declare.
19632 * toplev.c (backend_init_target): Don't call
19633 init_caller_save but set caller_save_initialized_p to false.
19634 * caller-save.c (caller_save_initialized_p): Define.
19635 (init_caller_save): Check caller_save_initialized_p.
19636 * ira.c (ira): Call init_caller_save if flag_caller_saves.
19638 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19641 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
19642 and soft-fp/t-softfp to tmake_file.
19643 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
19644 (LIBGCC2_TF_CEXT): Define.
19647 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
19650 * cselib.c (n_useless_values): Document handling of debug locs.
19651 (n_useless_debug_values, n_debug_values): New variables.
19652 (new_elt_loc_list): Don't add to debug values, keep count.
19653 (promote_debug_loc): New.
19654 (cselib_reset_table): Zero new variables.
19655 (entry_and_rtx_equal_p): Promote debug locs.
19656 (discard_useless_locs): Increment n_useless_debug_values for
19658 (remove_useless_values): Adjust n_useless_values and n_debug_values
19659 with n_useless_debug_values.
19660 (add_mem_for_addr): Promote debug locs.
19661 (cselib_lookup_mem): Likewise.
19662 (cselib_lookup_addr): Renamed to...
19663 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
19664 (cselib_log_lookup): ... this. Turn into...
19665 (cselib_lookup_addr): ... new wrapper.
19666 (cselib_lookup_from_insn): New.
19667 (cselib_invalidate_regno): Increment n_useless_debug_values for
19669 (cselib_invalidate_mem): Likewise.
19670 (cselib_process_insn): Take n_deleted and n_debug_values into
19671 account to guard remove_useless_value call.
19672 (cselib_finish): Zero n_useless_debug_values.
19673 * cselib.h (cselib_lookup_from_insn): Declare.
19674 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
19675 (sched_analyze_2): Likewise.
19677 2010-03-30 Jakub Jelinek <jakub@redhat.com>
19679 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
19681 (adjust_mems): Replace narrowing SUBREG of expression containing
19682 just PLUS, MINUS, MULT and ASHIFT of registers and constants
19683 with operations in the narrower mode.
19686 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
19687 regs_invalidated_by_call instead all call_used_reg_set registers.
19689 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
19691 PR middle-end/43430
19692 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
19693 pointer comparisons with types_compatible_p.
19694 * tree-vect-stmts.c (vectorizable_call): Same.
19695 (vectorizable_condition): Same.
19697 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19699 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
19700 stack check if the mask would be zero.
19702 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
19703 Jack Howarth <howarth@bromo.med.uc.edu>
19705 * tree-profile.c (tree_init_ic_make_global_vars): Make static
19708 2010-03-30 Joseph Myers <joseph@codesourcery.com>
19711 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
19713 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
19714 Include ___unordxf2 and ___unordtf2.
19715 * config/i386/libgcc-glibc.ver: Do not define inheritance from
19718 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
19720 * config/lm32/t-lm32: New file.
19721 * config.gcc: Use the above file when targetting lm32.
19723 2010-03-28 Duncan Sands <baldrick@free.fr>
19725 * Makefile.in (PLUGIN_HEADERS): Add except.h.
19727 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
19729 PR middle-end/43431
19730 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
19731 Improve vectorization cost model diagnostic.
19733 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
19735 PR middle-end/43436
19736 * tree-vect-data-refs.c (vect_analyze_data_refs): When
19737 compute_data_dependences_for_loop returns false, early exit
19738 and output an extra diagnostic for the failed data reference
19741 2010-03-29 Richard Guenther <rguenther@suse.de>
19743 PR tree-optimization/43560
19744 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
19745 (can_sm_ref_p): Treat stores to readonly locations as trapping.
19747 2010-03-29 Jie Zhang <jie@codesourcery.com>
19750 * toplev.c (process_options): Set optimization_default_node
19751 and optimization_current_node.
19752 * opts.c (decode_options): Don't set optimization_default_node
19753 and optimization_current_node.
19755 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
19757 * config/rtems.h: Abandon -qrtems_debug.
19759 2010-03-28 Jan Hubicka <jh@suse.cz>
19761 PR tree-optimization/43505
19762 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
19763 map should not be copied.
19765 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19767 PR middle-end/41674
19768 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
19769 cdtors, set DECL_PRESERVE_P.
19770 * ipa.c (cgraph_externally_visible_p): Return true if declaration
19771 should be preseved.
19773 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
19775 PR tree-optimization/43528
19776 * stor-layout.c (place_field): Check that constant fits into
19777 unsigned HWI when skipping calculation of MS bitfield layout.
19779 2010-03-27 Jan Hubicka <jh@suse.cz>
19781 PR middle-end/43391
19782 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
19783 notice_global_symbol work.
19785 2010-03-27 Jakub Jelinek <jakub@redhat.com>
19787 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
19788 instead of dwarf2out_decl.
19789 (struct var_loc_node): Remove section_label field.
19790 (dwarf2out_function_decl): New function.
19791 (dwarf2out_var_location): Don't set section_label field.
19792 (dwarf2out_begin_function): Don't empty decl_loc_table here.
19794 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
19796 PR tree-optimization/43544
19797 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
19798 First argument for builtin vectorized function hook is now a
19799 tree to be able to distinguish between machine specific and
19801 * targhooks.c (default_builtin_vectorized_function): Ditto.
19802 * targhooks.h (default_builtin_vectorized_function): Ditto.
19803 * target.h (struct gcc_target): Ditto.
19804 * tree-vect-stmts.c (vectorizable_function): Ditto.
19805 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
19806 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
19809 2010-03-26 Joseph Myers <joseph@codesourcery.com>
19812 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
19813 nested binding iff it is a FUNCTION_DECL.
19814 (store_parm_decls_newstyle): Pass nested=true to bind for
19815 FUNCTION_DECLs amongst parameters.
19817 2010-03-26 Jakub Jelinek <jakub@redhat.com>
19819 * var-tracking.c (vt_expand_loc_callback): Don't run
19820 cselib_expand_value_rtx_cb in dummy mode if
19821 cselib_dummy_expand_value_rtx_cb returned false.
19823 * var-tracking.c (emit_note_insn_var_location): For one part
19824 notes with offset 0, don't add EXPR_LIST around the location.
19825 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
19826 add_location_or_const_value_attribute): Adjust for that change.
19829 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
19830 into first operand and location into second.
19831 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
19832 dw_cfi_oprnd_loc for DW_CFA_expression.
19833 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
19834 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
19835 assume first argument is regnum and second argument is location.
19837 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
19840 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
19841 of scratch register to DImode. Split to DImode comparison operator.
19842 Use SImode subreg of scratch register in the multiplication.
19843 (*cmp_sadd_sidi): Ditto.
19844 (*cmp_ssub_si): Ditto.
19845 (*cmp_ssub_sidi): Ditto.
19847 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
19850 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
19851 Remove invalid assert and wrong comment.
19853 2010-03-26 Jakub Jelinek <jakub@redhat.com>
19856 * flags.h (final_insns_dump_p): New extern.
19857 * final.c (final_insns_dump_p): New variable.
19858 (rest_of_clean_state): Set it before -fdump-final-insns=
19859 dumping, clear afterwards.
19860 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
19861 MEM_ALIAS_SET on MEMs.
19863 2010-03-26 David S. Miller <davem@davemloft.net>
19865 * configure.ac: Fix sparc GOTDATA_OP bug check.
19866 * configure: Rebuild.
19868 2010-03-26 Alan Modra <amodra@gmail.com>
19870 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
19872 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19874 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
19875 TLS_SECTION_ASM_FLAG.
19877 2010-03-25 Jakub Jelinek <jakub@redhat.com>
19880 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
19881 Clear first_function_block_is_cold.
19884 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
19885 argument if the argument is truth_value_p.
19887 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19889 * config/rs6000/constraints.md: Update copyright year for my changes.
19892 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
19893 used in reg+reg addressing, swap registers.
19895 2010-03-24 Jakub Jelinek <jakub@redhat.com>
19898 * target.h (struct gcc_target): Add code_end hook.
19899 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
19900 if not yet defined.
19901 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
19902 * toplev.c (compile_file): Call targetm.asm_out.code_end
19903 hook before unwind info/debug info output.
19904 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
19905 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
19906 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
19907 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
19908 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
19909 * config/i386/i386.c (ix86_file_end): Renamed to...
19910 (ix86_code_end): ... this. Make static. Don't call
19911 file_end_indicate_exec_stack. Emit unwind info using
19912 final_start_function/final_end_function.
19913 (darwin_x86_file_end): Remove.
19914 (TARGET_ASM_CODE_END): Define.
19915 * config/i386/i386.h (TARGET_ASM_FILE_END,
19916 NEED_INDICATE_EXEC_STACK): Don't define.
19917 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
19918 (TARGET_ASM_FILE_END): Define to darwin_file_end.
19919 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
19920 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
19923 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
19924 at the beginning and final_end_function at the end.
19925 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
19927 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19929 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
19930 and Sun as TLS syntax.
19931 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
19932 * configure: Regenerate.
19933 * config.in: Regenerate.
19934 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
19935 (default_elf_asm_named_section): Use it.
19936 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
19937 (i386_output_dwarf_dtprel): Likewise.
19938 (output_addr_const_extra): Likewise.
19939 (output_pic_addr_const): Lowercase @GOTTPOFF.
19940 (output_addr_const_extra): Likewise.
19941 (output_pic_addr_const): Lowercase @GOTNTPOFF.
19942 (output_addr_const_extra): Likewise.
19943 (output_pic_addr_const): Lowercase @INDNTPOFF.
19944 (output_addr_const_extra): Likewise.
19945 (output_pic_addr_const): Lowercase @NTPOFF.
19946 (output_addr_const_extra): Likewise.
19947 (output_pic_addr_const): Lowercase @TPOFF.
19948 (output_addr_const_extra): Likewise.
19949 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
19950 (*tls_global_dynamic_64): Likewise.
19951 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
19952 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
19954 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
19955 (ASM_OUTPUT_TLS_COMMON): Use it.
19956 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
19959 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
19960 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
19961 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
19962 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
19963 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
19964 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
19966 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19968 * config/i386/i386.c (override_options): Don't accept
19969 -mtls-dialect=sun any longer.
19970 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
19971 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
19972 (*tls_local_dynamic_base_32_sun): Likewise.
19973 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
19975 2010-03-24 Jakub Jelinek <jakub@redhat.com>
19978 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
19979 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
19982 * ira.c (adjust_cleared_regs): New function.
19983 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
19987 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
19989 * expr.c (expand_expr_real): Restore previous
19990 curr_insn_source_location and curr_insn_block after
19991 expand_expr_real_1 call.
19992 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
19993 instead of expand_expr_real_1.
19995 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
19997 PR rtl-optimization/43413
19998 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
20001 2010-03-22 James E. Wilson <wilson@codesourcery.com>
20004 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
20005 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
20007 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
20009 * config/i386/i386.c (ix86_target_string): Add -mfma.
20010 Fix a typo in comment.
20012 2010-03-22 Mike Stump <mikestump@comcast.net>
20015 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
20016 Don't overly align based upon packed packed fields.
20018 2010-03-22 Jason Merrill <jason@redhat.com>
20020 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
20021 Use () rather than [], and move before the element type.
20023 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20025 * doc/configfiles.texi (Configuration Files): Removed
20026 fixinc/Makefile*, intl/Makefile.*.
20027 * doc/makefile.texi: Fixed markup. Abstract from version
20028 control system used.
20029 (Makefile): Removed obsolete gcc/java/parse.y example.
20030 * doc/sourcebuild.texi: Likewise.
20031 (Top Level): Added config, gnattools, libdecnumber, libgcc,
20032 libgomp, libssp. Removed fastjar.
20033 (Miscellaneous Docs): Clarify location.
20034 Added COPYING3, COPYING3.LIB.
20035 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
20037 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20040 * config/i386/i386.c (x86_function_profiler)
20041 [!NO_PROFILE_COUNTERS]: Fix typo.
20042 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
20045 2010-03-22 Janis Johnson <janis187@us.ibm.com>
20046 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20048 * doc/sourcebuild.texi (Test Directives): Split into six
20049 subsections, with most of the current text in new subsections
20050 Directives, Selectors, and Final Actions.
20051 (Directives): Split list of test directives into multiple
20053 (Selectors): Describe use and syntax of selectors.
20054 (Effective-Target Keywords): Describe all existing keywords.
20055 (Add Options): Describe features for dg-add-options.
20056 (Require Support): Describe variants of dg-require-support.
20057 (Final Actions): Describe commands to use in dg-final.
20059 2010-03-22 Michael Matz <matz@suse.de>
20061 PR middle-end/43475
20062 * recog.c (validate_replace_rtx_group): Replace also in
20063 REG_EQUAL and REG_EQUIV notes.
20065 2010-03-22 Richard Guenther <rguenther@suse.de>
20067 PR tree-optimization/43390
20068 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
20069 sure vector extracts are type correct.
20071 2010-03-22 Richard Guenther <rguenther@suse.de>
20073 PR middle-end/40106
20074 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
20075 x * sqrt (x) even when optimizing for size if the target
20076 has native support for sqrt.
20078 2010-03-22 Jakub Jelinek <jakub@redhat.com>
20080 * varasm.c (make_decl_rtl_for_debug): Also clear
20081 flag_mudflap for the duration of make_decl_rtl call.
20084 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
20085 locs from preserved VALUEs.
20087 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20089 PR middle-end/42718
20090 * pa.md (movmemsi): Set align to one if zero.
20091 (movmemdi): Likewise.
20093 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
20096 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
20097 with their corresponding prologue pushes.
20099 2010-03-20 Andrew Pinski <pinskia@gmail.com>
20102 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
20103 at the begining or end.
20104 (spu_expand_epilogue): Likewise.
20106 2010-03-20 Richard Guenther <rguenther@suse.de>
20108 PR rtl-optimization/43438
20109 * combine.c (make_extraction): Properly zero-/sign-extend an
20110 extraction of the low part of a CONST_INT. Also handle
20113 2010-03-19 Mike Stump <mikestump@comcast.net>
20115 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
20116 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
20117 (override_options): Use SUBTARGET32_DEFAULT_CPU.
20119 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
20122 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
20125 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
20127 PR rtl-optimization/42258
20128 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
20129 use that may match DEF.
20132 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
20133 the cost of loading the constant rather than assuming
20135 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
20136 outer code is AND, do the same tests as the andsi3 expander and
20137 return COSTS_N_INSNS (1) if and is cheap.
20139 * optabs.c (avoid_expensive_constant): Fix formatting.
20141 2010-03-19 Michael Matz <matz@suse.de>
20144 * attribs.c (decl_attributes): When rebuilding a function pointer
20145 type use the same qualifiers as the original pointer type.
20147 2010-03-19 Martin Jambor <mjambor@suse.cz>
20149 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
20150 and is_gimple_ip_invariant_address.
20152 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20155 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20157 * config/arm/arm.c (arm_override_options): Turn off
20158 flag_dwarf2_cfi_asm for AAPCS variants.
20160 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20163 * config/arm/arm.c (emit_multi_reg_push): Update comments.
20164 Use PRE_MODIFY instead of PRE_DEC.
20165 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
20166 (vfp_emit_fstmd): Likewise.
20168 2010-03-19 Michael Matz <matz@suse.de>
20171 * builtins.c (expand_builtin_interclass_mathfn,
20172 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
20175 2010-03-19 Richard Guenther <rguenther@suse.de>
20177 PR tree-optimization/43415
20178 * tree-ssa-pre.c (phi_translate): Split out worker to ...
20179 (phi_translate_1): ... this.
20180 (phi_translate): Move all caching here. Cache all NARY
20181 and REFERENCE translations.
20183 2010-03-19 David S. Miller <davem@davemloft.net>
20185 With help from Eric Botcazou.
20186 * config/sparc/sparc.c: Include dwarf2out.h.
20187 (emit_pic_helper): Delete.
20188 (pic_helper_symbol_name): Delete.
20189 (pic_helper_emitted_p): Delete.
20190 (pic_helper_needed): New.
20191 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
20192 (get_pc_thunk_name): New.
20193 (load_pic_register): Remove 'delay_pic_helper' arg. Use
20194 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
20195 Set pic_helper_needed to true. Don't call emit_pic_helper.
20196 (sparc_expand_prologue): Update load_pic_register call.
20197 (sparc_output_mi_thunk): Likewise.
20198 (sparc_file_end): Emit a hidden comdat symbol for the PIC
20199 thunk if possible. Output CFI information as needed.
20201 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
20202 Jack Howarth <howarth@bromo.med.uc.edu>
20205 * config/i386/i386.h: Fix ABI on darwin x86-32.
20207 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
20209 * tree.h: Declare make_decl_rtl_for_debug.
20210 * varasm.c (make_decl_rtl_for_debug): New.
20211 * dwarf2out.c (rtl_for_decl_location): Call it.
20212 * cfgexpand.c (expand_debug_expr): Call it.
20214 2010-03-18 Jakub Jelinek <jakub@redhat.com>
20217 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
20221 * var-tracking.c (vt_init_cfa_base): Do nothing if
20222 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
20224 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
20227 * var-tracking.c (canonicalize_vars_star): New.
20228 (dataflow_post_merge_adjust): Use it.
20230 2010-03-18 Jakub Jelinek <jakub@redhat.com>
20233 * var-tracking.c (non_suitable_const): New function.
20234 (add_uses): For DEBUG_INSNs with constants, don't record any
20235 value, instead just the constant value itself.
20236 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
20237 is not VAR_LOC_UNKNOWN_P, set var to the constant.
20238 (emit_notes_in_bb): Likewise.
20239 (emit_note_insn_var_location): For onepart variables if
20240 cur_loc is a VOIDmode constant, use DECL_MODE.
20242 2010-03-18 Martin Jambor <mjambor@suse.cz>
20244 PR middle-end/42450
20245 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
20246 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
20247 all non-clones. Moved call redirection...
20248 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
20249 (cgraph_materialize_all_clones): Dispose of all
20250 combined_args_to_skip bitmaps.
20251 (verify_cgraph_node): Do not check for edges pointing to wrong
20252 nodes in inline clones.
20253 * tree-inline.c (copy_bb): Call
20254 cgraph_redirect_edge_call_stmt_to_callee.
20255 * ipa.c (cgraph_remove_unreachable_nodes): Call
20256 cgraph_node_remove_callees even when there are used clones.
20258 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
20260 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
20262 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
20265 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
20268 2010-03-18 Michael Matz <matz@suse.de>
20270 PR middle-end/43419
20271 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
20272 into sqrt(x) if we need to preserve signed zeros.
20274 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
20275 Eric Botcazou <ebotcazou@adacore.com>
20277 PR rtl-optimization/43360
20278 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
20279 note if we don't know its invariant status.
20281 2010-03-18 Michael Matz <matz@suse.de>
20283 PR tree-optimization/43402
20284 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
20285 PHI chains of ssa names registered for update.
20287 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
20290 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
20291 non-offsettable and pre_modify update addressing.
20292 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
20293 and "2" alternatives "#".
20294 (*movdd_softfloat32): Make all alternatives "#";
20295 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
20296 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
20297 (*movdf_softfloat32): Make all alternatives "#";
20298 (movdi): Use the new DIFD mode iterator to create a common splitter
20299 for movdi, movdf and movdd patterns.
20301 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
20303 * common.opt (dumpdir): Remove redundant tab.
20305 2010-03-17 Martin Jambor <mjambor@suse.cz>
20307 PR tree-optimization/43347
20308 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
20309 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
20311 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
20313 PR rtl-optimization/42216
20314 * regrename.c (create_new_chain): New function, broken out from...
20315 (scan_rtx_reg): ... here. Call it. Handle the case where we are
20316 appending a use to an empty chain.
20317 (build_def_use): Remove previous changes that convert OP_INOUT to
20318 OP_OUT operands; instead detect the case where an OP_INOUT operand
20319 uses a previously untracked register and create an empty chain for it.
20321 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20323 * doc/extend.texi (Function Attributes): Rewrite unfinished
20324 sentence in ms_abi documentation.
20326 2010-03-17 Alan Modra <amodra@gmail.com>
20328 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
20329 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
20330 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
20331 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
20333 2010-03-16 Richard Henderson <rth@redhat.com>
20335 PR middle-end/43365
20336 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
20337 (lower_try_finally): Save and restore eh_seq around the expansion
20338 of the try-finally.
20340 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
20342 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
20343 statements before splitting block.
20345 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20347 * doc/sourcebuild.texi (Testsuites): Fix markup.
20348 Use pathnames relative to gcc/testsuite.
20349 (Test Directives): Move description of how timeout is determined.
20350 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
20351 (C Tests): Correct gcc.misc-tests directory.
20352 Framework tests now live in gcc.test-framework.
20354 2010-03-16 Richard Guenther <rguenther@suse.de>
20356 PR middle-end/43379
20357 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
20358 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
20360 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
20361 Alexandre Oliva <aoliva@redhat.com>
20363 PR tree-optimization/42917
20364 * lambda-code.c (remove_iv): Skip debug statements.
20365 (lambda_loopnest_to_gcc_loopnest): Likewise.
20366 (not_interesting_stmt): Debug statements are not interesting.
20368 2010-03-16 Jakub Jelinek <jakub@redhat.com>
20372 * cselib.c (cselib_preserve_constants,
20373 cfa_base_preserved_val): New static variables.
20374 (preserve_only_constants): New function.
20375 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
20376 clear its REG_VALUES. If cselib_preserve_constants, don't
20377 empty the whole hash table, but preserve there VALUEs with constants,
20378 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
20379 (cselib_preserve_cfa_base_value): New function.
20380 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
20381 (cselib_init): Change argument to int bitfield. Set
20382 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
20384 (cselib_finish): Clear cselib_preserve_constants and
20385 cfa_base_preserved_val.
20386 * cselib.h (enum cselib_record_what): New enum.
20387 (cselib_init): Change argument to int.
20388 (cselib_preserve_cfa_base_value): New prototype.
20389 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
20390 * dse.c (dse_step1): Likewise.
20391 * cfgcleanup.c (thread_jump): Likewise.
20392 * sched-deps.c (sched_analyze): Likewise.
20393 * gcse.c (local_cprop_pass): Likewise.
20394 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
20395 If FN is non-NULL, call the callback always and whenever it returns
20396 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
20397 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
20398 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
20399 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
20400 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
20401 * var-tracking.c: Include recog.h.
20402 (bb_stack_adjust_offset): Remove.
20403 (vt_stack_adjustments): Don't call it, instead just gather the
20404 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
20405 (adjust_stack_reference): Remove.
20406 (compute_cfa_pointer): New function.
20407 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
20408 (struct adjust_mem_data): New type.
20409 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
20411 (get_address_mode): New function.
20412 (replace_expr_with_values): Use it.
20413 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
20414 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
20415 (adjust_sets): Remove.
20416 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
20417 Use get_address_mode.
20418 (get_adjusted_src): Remove.
20419 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
20420 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
20421 (add_with_sets): Don't call adjust_sets.
20422 (fp_setter, vt_init_cfa_base): New functions.
20423 (vt_initialize): Change return type to bool. Move most of pool etc.
20424 initialization to the beginning of the function from end. Pass
20425 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
20426 If !frame_pointer_needed, call vt_stack_adjustment before mos
20427 vector is filled, call vt_init_cfa_base if argp/framep has been
20428 eliminated to sp. If frame_pointer_needed and argp/framep has
20429 been eliminated to hard frame pointer, set
20430 hard_frame_pointer_adjustment and call vt_init_cfa_base after
20431 encountering fp setter in the prologue. For MO_ADJUST, call
20432 log_op_type before pusing the op into mos vector, not afterwards.
20433 Call adjust_insn before cselib_process_insn/add_with_sets,
20434 call cancel_changes (0) afterwards.
20435 (variable_tracking_main_1): Adjust for vt_initialize calling
20436 vt_stack_adjustments and returning whether it succeeded or not.
20438 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
20440 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
20443 2010-03-15 Jakub Jelinek <jakub@redhat.com>
20445 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
20447 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
20448 drap_reg has not been set.
20450 2010-03-15 Michael Matz <matz@suse.de>
20452 PR middle-end/43300
20453 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
20454 use it to expand block copies.
20455 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
20456 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
20457 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
20459 2010-03-15 Richard Guenther <rguenther@suse.de>
20461 PR tree-optimization/43367
20462 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
20465 2010-03-15 Richard Guenther <rguenther@suse.de>
20467 PR tree-optimization/43317
20468 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
20470 2010-03-15 Martin Jambor <mjambor@suse.cz>
20472 PR tree-optimization/43141
20473 * tree-sra.c (create_abstract_origin): New function.
20474 (modify_function): Call create_abstract_origin.
20476 2010-03-15 Chris Demetriou <cgd@google.com>
20478 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
20481 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
20483 PR middle-end/43354
20484 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
20485 call insert_out_of_ssa_copy for default definitions.
20487 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
20489 * graphite-clast-to-gimple.c (my_long_long): Defined.
20490 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
20491 * graphite-sese-to-poly.c (my_long_long): Defined.
20492 (scop_ivs_can_be_represented): Use it.
20494 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
20496 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
20497 graphite-max-bbs-per-function, and loop-block-tile-size.
20498 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
20500 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
20502 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
20504 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
20505 forward declaration.
20506 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
20507 (add_upper_bounds_from_estimated_nit): New.
20508 (build_loop_iteration_domains): Use it.
20510 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
20512 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
20514 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
20516 PR middle-end/43306
20517 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
20518 should be an INTEGER_CST. Also handle CASE_CONVERT.
20520 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
20522 * graphite.c (graphite_initialize): To bound the number of bbs per
20523 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
20524 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
20525 * doc/invoke.texi: Document it.
20527 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
20529 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
20530 * graphite-sese-to-poly.h (build_poly_scop): Same.
20532 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
20534 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
20535 the number of parameters in the scop. Use as an upper bound
20536 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
20537 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
20538 * doc/invoke.texi: Document it.
20540 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
20542 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
20543 * doc/c-tree.texi: Remove.
20544 * doc/generic.texi: Merge c-tree.texi here.
20545 * doc/gccint.texi (Trees): Remove menu entry.
20546 (c-tree.texi): Remove @include.
20547 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
20548 * doc/languages.texi (Reading RTL): Ditto.
20550 2010-03-12 Steve Ellcey <sje@cup.hp.com>
20553 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
20555 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
20557 PR middle-end/42431
20558 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
20559 code added to work around reload clobbering CONST insns.
20561 2010-03-12 Jakub Jelinek <jakub@redhat.com>
20563 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
20564 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
20565 (cselib_preserve_only_values): Remove retain argument, don't
20566 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
20567 * cselib.h (cselib_preserve_only_values): Remove retain argument.
20568 * var-tracking.c (micro_operation): Move insn field before union.
20569 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
20570 (struct variable_tracking_info_def): Remove n_mos field, change
20571 mos into a vector of micro_operations.
20572 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
20573 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
20574 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
20575 changing into a vector.
20576 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
20577 come before all other uops generated by add_stores.
20578 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
20580 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
20581 a vector. Run just one pass over the bbs instead of separate counting
20582 and computation phase.
20583 (vt_finalize): Free VTI (bb)->mos vector instead of array.
20586 * tree-inline.c (remap_decls): Put old_var rather than origin_var
20587 into *nonlocalized_list vector.
20588 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
20589 even if origin is non-NULL.
20590 (gen_variable_die): Likewise.
20591 (process_scope_var): Don't change origin.
20592 (gen_decl_die): Likewise.
20593 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
20594 before adding new edges instead of after it, fix moving over
20597 2010-03-11 David S. Miller <davem@davemloft.net>
20599 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
20601 * configure: Rebuild.
20603 2010-03-11 Martin Jambor <mjambor@suse.cz>
20605 PR tree-optimization/43257
20606 * tree.c (assign_assembler_name_if_neeeded): New function.
20607 (free_lang_data_in_cgraph): Assembler name assignment moved to the
20608 above new function.
20609 * tree.h (assign_assembler_name_if_neeeded): Declare.
20610 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
20611 the function if needed.
20613 2010-03-11 Chris Demetriou <cgd@google.com>
20615 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
20616 include/stdint-gcc.h, and include/stdint.h world-readable.
20618 2010-03-11 Richard Guenther <rguenther@suse.de>
20620 PR tree-optimization/43255
20621 * tree-vrp.c (process_assert_insertions_for): Do not insert
20622 asserts for trivial conditions.
20624 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20626 PR tree-optimization/43280
20627 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
20628 generation. Move calculation of size out of the if branch.
20629 (find_bswap): Modify compare number generation.
20631 2010-03-11 Richard Guenther <rguenther@suse.de>
20634 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
20635 (input_gimple_stmt): Fixup handled component types during
20636 operand read. Also fix up decls in ADDR_EXPRs.
20638 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
20640 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
20641 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
20643 2010-03-10 Jan Hubicka <jh@suse.cz>
20646 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
20647 * varasm.c (get_variable_section): Don't do that here...
20648 (make_decl_rtl): ... and here.
20649 (do_assemble_alias): Produce decl RTL.
20650 (assemble_alias): Likewise.
20652 2010-03-10 Jakub Jelinek <jakub@redhat.com>
20655 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
20656 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
20658 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
20659 (based_loc_descr): Only express drap or vdrap regno based expressions
20660 using DW_OP_fbreg when not optimizing.
20661 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
20662 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
20663 REG_CFA_SET_VDRAP note.
20665 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
20667 PR tree-optimization/43236
20668 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
20669 error in calculation of base address in reverse iteration case.
20670 (generate_builtin): Take number of latch executions if the statement
20673 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
20675 PR middle-end/42859
20676 * tree-eh.c: Include pointer-set.h.
20677 (lower_eh_dispatch): Filter out duplicate case labels and
20678 remove the unneeded edge when the label is unused. Return
20679 true when some edges are removed.
20680 (execute_lower_eh_dispatch): When any lowering resulted in
20681 removing an edge, also delete unreachable blocks.
20683 2010-03-10 Jakub Jelinek <jakub@redhat.com>
20686 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
20687 UNSPEC_MACHOPIC_OFFSET.
20689 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
20692 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
20693 (m68k_delegitimize_address): New function.
20695 2010-03-09 Jakub Jelinek <jakub@redhat.com>
20698 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
20701 * var-tracking.c (adjust_sets): New function.
20702 (count_with_sets, add_with_sets): Use it.
20703 (get_adjusted_src): New inline function.
20704 (add_stores): Use it.
20707 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
20708 call cselib_dummy_expand_value_rtx_cb instead of
20709 cselib_expand_value_rtx_cb.
20712 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
20713 * config/i386/i386.c: Include debug.h and dwarf2out.h.
20714 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
20715 and .cfi_endproc around the pic thunks.
20716 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
20717 all queued unwind info register saves are saved before the call.
20718 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
20719 considered as sp-=4 for unwind info and the pop as sp+=4 which
20720 also clobbers dest, but doesn't actually restore it.
20723 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
20724 RTX_FRAME_RELATED_P.
20726 2010-03-09 Jie Zhang <jie@codesourcery.com>
20728 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
20729 whitespaces in output template.
20731 2010-03-09 Jie Zhang <jie@codesourcery.com>
20733 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
20734 out array boundary.
20736 2010-03-08 Jakub Jelinek <jakub@redhat.com>
20738 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
20739 builtins.exp in a separate job.
20741 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20743 * graphite-sese-to-poly.c (add_param_constraints): Use
20744 lower_bound_in_type and upper_bound_in_type.
20746 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20748 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
20749 instead of unsigned_type_node.
20751 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20752 Reza Yazdani <reza.yazdani@amd.com>
20754 PR middle-end/43065
20755 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
20756 on pointer type parameters.
20758 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
20760 PR middle-end/42644
20761 PR middle-end/42130
20762 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
20763 handle conversions from pointer to integers.
20764 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
20765 induction variable, to be able to work with code generated by CLooG.
20766 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
20767 (build_poly_scop): Bail out if we cannot codegen a loop.
20769 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
20771 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
20772 code generation with gloog_error.
20774 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20776 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
20777 Call fold_convert on all the returned values.
20778 (expand_scalar_variables_expr): Pass to
20779 expand_scalar_variables_ssa_name the type of the resulting expression.
20781 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20783 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
20784 ppl_min_for_le_pointset.
20785 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
20786 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
20788 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20790 * graphite-dependences.c (map_into_dep_poly): Removed.
20791 (dependence_polyhedron_1): Use combine_context_id_scat.
20793 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20795 * graphite-poly.h (struct poly_scattering): Add layout documentation.
20796 (struct poly_bb): Same.
20797 (combine_context_id_scat): New.
20799 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20801 PR middle-end/42326
20802 * sese.c (name_defined_in_loop_p): Return false for default
20805 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20807 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
20808 and clean up the logic.
20810 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20812 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
20815 2010-03-08 Jakub Jelinek <jakub@redhat.com>
20817 * var-tracking.c (remove_cselib_value_chains): Define only for
20819 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
20820 delete_slot_part, emit_notes_for_differences_1): Don't call
20821 remove_cselib_value_chains here.
20822 (set_slot_part, emit_notes_for_differences_2): Don't call
20823 add_cselib_value_chains here.
20824 (preserved_values): New vector.
20825 (preserve_value): New function.
20826 (add_uses, add_stores, vt_add_function_parameters): Use it
20827 instead of cselib_preserve_value.
20828 (changed_values_stack): New vector.
20829 (check_changed_vars_0): New function.
20830 (check_changed_vars_1, check_changed_vars_2): Use it.
20831 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
20832 changed_values_stack VALUEs.
20833 (vt_emit_notes): For all preserved_values call
20834 add_cselib_value_chains. If ENABLE_CHECKING call
20835 remove_cselib_value_chains before verifying value_chains is empty.
20836 Initialize and free changed_values_stack.
20837 (vt_initialize): Initialize preserved_values.
20838 (vt_finalize): Free preserved_values.
20840 2010-03-08 Richard Guenther <rguenther@suse.de>
20842 PR tree-optimization/43269
20843 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
20846 2010-03-08 Martin Jambor <mjambor@suse.cz>
20848 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
20849 (ipa_is_param_called): Removed.
20850 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
20851 (ipa_print_node_params): Do not print the called flag.
20852 (ipa_write_node_info): Do not stream the called flag.
20853 (ipa_read_node_info): Likewise.
20855 2010-03-07 Jakub Jelinek <jakub@redhat.com>
20858 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
20859 * cselib.c (struct expand_value_data): Add dummy field.
20860 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
20862 (cselib_dummy_expand_value_rtx_cb): New function.
20863 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
20865 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
20866 * var-tracking.c: Include pointer-set.h.
20867 (variable): Change n_var_parts to char from int. Add
20868 cur_loc_changed and in_changed_variables fields.
20869 (variable_canonicalize): Remove.
20870 (shared_var_p): New inline function.
20871 (unshare_variable): Maintain cur_loc_changed and
20872 in_changed_variables fields. If var was in changed_variables,
20873 replace it there with new_var. Just copy cur_loc instead of
20874 resetting it to something else.
20875 (variable_union): Don't recompute cur_loc. Use shared_var_p.
20876 (dataflow_set_union): Don't call variable_canonicalize.
20877 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
20878 of their DEBUG_EXPR_TREE_DECLs.
20879 (canonicalize_loc_order_check): Verify that cur_loc is NULL
20880 and in_changed_variables and cur_loc_changed is false.
20881 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
20882 and cur_loc_changed. Don't update cur_loc here.
20883 (variable_merge_over_src): Don't call variable_canonicalize.
20884 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
20885 removing loc that is equal to cur_loc, clear cur_loc,
20886 set cur_loc_changed and ensure variable_was_changed is called.
20887 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
20888 compare pointers in cur_loc check, if it is equal to loc,
20889 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
20890 (variable_different_p): Remove compare_current_location argument,
20891 don't compare cur_loc.
20892 (dataflow_set_different_1): Adjust variable_different_p caller.
20893 (variable_was_changed): If dv had some var in changed_variables
20894 already, reset in_changed_variables flag for it and propagate
20895 cur_loc_changed over to the new variable. On empty var
20896 always set cur_loc_changed. Set in_changed_variables on whatever
20897 var is added to changed_variables.
20898 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
20899 Use shared_var_p. When removing loc that is equal to cur_loc,
20900 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
20901 end, don't set it to something else, just call variable_was_changed.
20902 (delete_slot_part): Use shared_var_p. When cur_loc equals to
20903 loc being removed, clear cur_loc and set cur_loc_changed.
20904 Set cur_loc_changed if all locations have been removed.
20905 (struct expand_loc_callback_data): New type.
20906 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
20907 allocated. Always create SUBREGs if simplify_subreg failed.
20908 Prefer to use cur_loc, when that fails and still in
20909 changed_variables (and seen first time) recompute it. Set
20910 cur_loc_changed of variables which had to change cur_loc and
20911 compute elcd->cur_loc_changed if any of the subexpressions used
20912 had to change cur_loc.
20913 (vt_expand_loc): Adjust to pass arguments in
20914 expand_loc_callback_data structure.
20915 (vt_expand_loc_dummy): New function.
20916 (emitted_notes): New variable.
20917 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
20918 that weren't used for any other decl in current
20919 emit_notes_for_changes call call vt_expand_loc_dummy to update
20920 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
20921 first loc_chain location if NULL before. Always use just
20922 cur_loc instead of first loc_chain location. When cur_loc_changed
20923 is false, when not --enable-checking=rtl just don't emit any note.
20924 When rtl checking, compute the note and assert it is the same
20925 as previous note. Clear cur_loc_changed and in_changed_variables
20926 at the end before removing from changed_variables.
20927 (check_changed_vars_3): New function.
20928 (emit_notes_for_changes): Traverse changed_vars to call
20929 check_changed_vars_3 on each changed var.
20930 (emit_notes_for_differences_1): Clear cur_loc_changed and
20931 in_changed_variables. Recompute cur_loc of new_var.
20932 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
20933 (vt_emit_notes): Initialize and destroy emitted_notes.
20935 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
20937 PR rtl-optimization/42220
20938 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
20939 Use verify_reg_tracked to determine if we should use OP_OUT rather
20941 (build_def_use): If we see an in-out operand for a register that we
20942 know nothing about, treat is an output if possible, fail the block if
20945 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
20948 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
20951 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
20954 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
20955 uses of relevant DEFs that are dead outside the loop too.
20957 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
20959 * var-tracking.c (dataflow_set_merge): Swap src and src2.
20961 2010-01-13 Jakub Jelinek <jakub@redhat.com>
20963 * var-tracking.c (values_to_unmark): New variable.
20964 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
20965 values_to_unmark vector. Moved body to...
20966 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
20967 instead queue it into values_to_unmark vector.
20968 (vt_find_locations): Free values_to_unmark vector.
20970 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
20972 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
20973 (site.exp): Export them when plugins are enabled.
20975 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
20977 PR middle-end/42326
20978 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
20979 that contain scevs.
20980 (chrec_fold_multiply): Same.
20982 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
20985 * c-decl.c (build_compound_literal): Return early if init is
20986 an error_mark_node.
20988 2010-03-04 Martin Jambor <mjambor@suse.cz>
20990 PR tree-optimization/43164
20991 PR tree-optimization/43191
20992 * tree-sra.c (type_consists_of_records_p): Reject records with
20993 zero-size bit-fields at the end.
20995 2010-03-04 Mike Stump <mikestump@comcast.net>
20997 * Makefile.in (TAGS): Remove *.y.
20999 2010-03-04 Richard Guenther <rguenther@suse.de>
21001 PR tree-optimization/40761
21002 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
21004 (my_rev_post_order_compute): New function.
21005 (init_pre): Call it.
21007 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
21009 PR middle-end/43209
21010 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
21011 decrease the cost of an IV candidate when the cost is infinite.
21013 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21015 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
21016 Use '3DNow!' for the extension of that name, ensure normal space
21018 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
21020 2010-03-03 Jeff Law <law@redhat.com>
21022 * PR middle-end/32693
21023 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
21024 than gen_rtx_SUBREG.
21025 (extract_bit_field_1): Likewise.
21027 2010-03-03 Janis Johnson <janis187@us.ibm.com>
21029 * doc/sourcebuild.texi (Test directives): Document that arguments
21030 include-opts and exclude-opts are now optional for dg-skip-if,
21031 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
21033 2010-03-03 Jason Merrill <jason@redhat.com>
21036 * cgraph.h (varpool_node): Add extra_name field.
21037 * varpool.c (varpool_extra_name_alias): New.
21038 (varpool_assemble_decl): Emit extra name aliases.
21039 (varpool_mark_needed_node): Look past an extra name alias.
21040 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
21041 * lto-streamer-in.c (lto_input_tree): Read it.
21042 * lto-streamer-out.c (output_unreferenced_globals): Write it.
21044 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
21046 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
21047 (sparc*-*-solaris2*): ...this.
21049 2010-03-03 Jakub Jelinek <jakub@redhat.com>
21052 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
21053 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
21054 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
21055 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
21058 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
21059 fallthrough to default handling, just with want_address 0 instead of 2.
21060 For single element lists, add_AT_loc directly, otherwise create an
21061 artificial variable DIE and stick location list to it.
21064 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
21065 (VAL_EXPR_HAS_REVERSE): Define.
21066 (reverse_op): New function.
21067 (add_stores): For reversible operations add an extra MO_VAL_USE.
21069 2010-03-02 Jason Merrill <jason@redhat.com>
21071 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
21073 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
21075 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
21076 (sparc64-*-linux*): Likewise.
21077 (sparc64-*-solaris2*): Include assembler files before linker ones.
21078 (sparc-*-solaris2*): Simplify and reorder to match previous case.
21079 * config/sparc/gas.h: Delete.
21080 * config/sparc/sol2-64.h: Add copyright notice.
21081 * config/sparc/sol2-gas-bi.h: Likewise.
21082 * config/sparc/sol2-gld.h: Likewise.
21083 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
21084 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
21085 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
21086 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
21087 (sparc_elf_asm_named_section): Rename into...
21088 (sparc_solaris_elf_asm_named_section): ...this. Always define.
21090 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
21092 * config/alpha/alpha.c (override_options): Fix -mtune error message.
21094 2010-03-02 Jeff Law <law@redhat.com>
21096 PR middle-end/42431
21097 * reload1.c (rtx_p, substitute_stack): Declare.
21098 (substitute): Record addresses of changed rtxs.
21099 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
21100 Restore the original rtx when complete.
21101 (reload): Free subsitute_stack when complete.
21103 2010-03-02 Janis Johnson <janis187@us.ibm.com>
21105 * doc/gccint.texi (menu): Add Testsuites as a chapter.
21106 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
21108 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
21109 LTO Testing, gcov Testing, profopt Testing, compat Testing,
21110 Torture Tests): Change from subsection to section.
21112 2010-03-02 Jakub Jelinek <jakub@redhat.com>
21113 Steven Bosscher <steven@gcc.gnu.org>
21115 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
21118 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
21120 PR middle-end/42640
21121 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
21122 the assignment from the new induction variable to the assignment
21123 of the value from the original loop PHI function.
21125 2010-03-01 Janis Johnson <janis187@us.ibm.com>
21126 Daniel Jacobowitz <dan@codesourcery.com>
21128 * doc/sourcebuild.texi (Test directives): Clarify options to
21131 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21133 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
21134 Disable cfi directives unless GCC and gas agree on using read-only
21135 .eh_frame sections for 64-bit.
21136 * configure: Regenerate.
21138 2010-03-01 Richard Guenther <rguenther@suse.de>
21140 PR tree-optimization/43220
21141 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
21142 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
21144 2010-03-01 Richard Guenther <rguenther@suse.de>
21145 Martin Jambor <mjambor@suse.cz>
21147 PR middle-end/41250
21148 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
21149 gimplified parameters.
21151 2010-03-01 Christian Bruel <christian.bruel@st.com>
21153 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
21155 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
21157 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
21159 2010-03-01 Richard Guenther <rguenther@suse.de>
21161 PR middle-end/43213
21162 * expr.c (expand_assignment): Use the alias-oracle to tell
21163 if the rhs aliases the result decl.
21165 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21168 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
21169 to sol_gt_pch_get_address.
21170 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
21171 64-bit, SPARC and x86.
21172 (sol_gt_pch_get_address): New function.
21174 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
21176 * toplev.h (inform_n, error_n): Declare.
21177 * diagnostic.c (inform_n, error_n): New function.
21179 2010-03-01 Jakub Jelinek <jakub@redhat.com>
21181 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
21182 has no rtl yet when processing local_decls, queue it and recheck
21183 if deferred stack allocation hasn't assigned it rtl.
21185 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
21187 * config/sh/sh.c (unspec_bbr_uid): New.
21188 (gen_block_redirect): Use it instead of INSN_UID.
21189 (gen_far_branch): Likewise.
21191 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
21193 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
21194 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
21196 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21198 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
21199 (Warning Options): -Wno-conversion-null is valid for
21200 Objective-C++ as well.
21201 * doc/tm.texi (Named Address Spaces): Likewise.
21202 * doc/plugins.texi (Plugins): Replace TABs with spaces.
21203 * doc/tree-ssa.texi (Tree SSA): Likewise.
21205 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
21208 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
21209 by default. Don't set the default arch for
21210 i[34567]86-*-darwin*|x86_64-*-darwin*.
21212 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
21215 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
21216 default. Set the default 32bit/64bit archs with $with_arch
21217 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
21219 2010-02-27 Richard Guenther <rguenther@suse.de>
21221 PR tree-optimization/43186
21222 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
21223 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
21224 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
21225 unroller iterations.
21227 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
21229 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
21230 required and i[34567]86-*-* targets don't support 64bit ISA.
21232 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
21235 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
21236 the same alias set.
21238 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
21240 * config.gcc: Set the default arch at least to Prescott for
21241 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
21242 if SSE math is enabled.
21244 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
21246 * diagnostic.c (diagnostic_initialize): Update.
21247 (diagnostic_report_diagnostic): Test inhibit_notes_p for
21249 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
21250 (diagnostic_inhibit_notes): New.
21251 * toplev.c (process_options): inhibit notes with -fcompare-debug.
21253 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
21256 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
21257 * doc/standards.texi: Likewise.
21258 * doc/extend.texi: Likewise.
21259 * doc/trouble.texi: Likewise.
21260 * doc/cppopts.texi: Likewise.
21261 * doc/install.texi: Likewise.
21262 * c.opt (std=c90,std=gnu90): New options.
21263 * c-opts.c (c_common_handle_option): Handle them.
21265 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
21268 * c-decl.c (undeclared_variable): Use an informative note.
21270 2010-02-26 Richard Guenther <rguenther@suse.de>
21272 PR tree-optimization/43186
21273 * gimple.h (gimple_fold): Remove.
21274 * gimple.c (gimple_fold): Remove. Inline into single user ...
21275 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
21276 Try harder for conditions.
21278 2010-02-26 Jakub Jelinek <jakub@redhat.com>
21281 * function.c (used_types_insert): Don't skip through named pointer
21282 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
21283 and it is different from the main variant's type.
21285 2010-02-26 Nick Clifton <nickc@redhat.com>
21287 * config/rx/rx.md (sminsi3): Remove bogus alternative.
21289 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
21291 * config.gcc: Support --with-fpmath=sse for x86.
21293 * config/i386/ssemath.h: New.
21295 * doc/install.texi (--with-fpmath=sse): Documented.
21297 2010-02-26 Richard Guenther <rguenther@suse.de>
21299 PR tree-optimization/43188
21300 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
21301 vector types of over-aligned element type.
21303 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
21306 * config/i386/i386.c (expand_vec_perm_blend): Use correct
21307 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
21309 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
21311 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
21313 2010-02-26 Jakub Jelinek <jakub@redhat.com>
21315 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
21316 * var-tracking.c: Include diagnostic.h.
21317 (debug_dv): New function.
21318 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
21321 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
21322 (add_value_chain, add_value_chains, remove_value_chain,
21323 remove_value_chains): Handle DEBUG_EXPRs.
21324 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
21327 * regcprop.c (struct queued_debug_insn_change): New type.
21328 (struct value_data_entry): Add debug_insn_changes field.
21329 (struct value_data): Add n_debug_insn_changes field.
21330 (debug_insn_changes_pool): New variable.
21331 (free_debug_insn_changes, apply_debug_insn_changes,
21332 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
21333 (kill_value_one_regno): Call free_debug_insn_changes if needed.
21334 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
21336 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
21338 (copyprop_hardreg_forward_1): Don't call apply_change_group for
21339 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
21340 changes, call cprop_find_used_regs via note_stores.
21341 (copyprop_hardreg_forward): When copying vd from predecessor
21342 which has any queued DEBUG_INSN changes, make sure the pointers are
21343 cleared. At the end call df_analyze and then if there are any
21344 DEBUG_INSN changes queued at the end of some basic block for still
21345 live registers, apply them.
21346 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
21348 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
21350 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
21353 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
21355 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
21356 targets. Set the default with_cpu/with_arch from arch/cpu.
21357 Allow x86-64 and native for with_cpu/with_arch.
21359 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
21361 * ebitmap.c: Change calls to verify_popcount with calls to
21362 sbitmap_verify_popcount.
21363 (ebitmap_clear_bit): Fixed map->cacheindex test and
21364 map>cache update when bit clearing results in an empty
21367 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
21370 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
21371 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
21372 and support both V2DF and V2DI modes.
21373 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
21374 support both V2DF and V2DI modes.
21375 (general): Delete trailing whitespace from a few patterns.
21377 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21378 V2DF/V2DI interleave high/low builtins.
21380 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
21383 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
21384 interleave high/low functions.
21386 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
21388 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
21389 #pragma extern_prefix.
21391 2010-02-25 Jakub Jelinek <jakub@redhat.com>
21394 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
21395 BLKmode, assert op0 is a MEM and just adjust its mode.
21398 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
21399 if bitpos isn't multiple of mode's bitsize.
21401 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
21403 * c.opt (-ftemplate-depth=): New.
21404 (-ftemplate-depth-): Deprecate.
21405 * optc-gen.awk: Handle -ftemplate-depth=.
21406 * opth-gen.awk: Likewise.
21407 * c-opts.c (c_common_handle_option): Likewise.
21408 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
21410 2010-02-24 Jason Merrill <jason@redhat.com>
21412 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
21414 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21416 * cfg.c (alloc_aux_for_block): Remove inline.
21417 (alloc_aux_for_edge): Likewise.
21419 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21421 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
21423 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21425 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
21426 * config/i386/sol2-gas.h: New file.
21427 * config.gcc (i[34567]86-*-solaris2*): Use it.
21429 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
21432 * c-typeck.c (ep_convert_and_check): New.
21433 (build_conditional_expr): Use it.
21434 (build_binary_op): Likewise.
21436 2010-02-24 Jakub Jelinek <jakub@redhat.com>
21438 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
21441 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
21442 bounds even for -O+.
21443 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
21444 expr needs to have DECL_NAME set.
21446 2010-02-24 Nick Clifton <nickc@redhat.com>
21448 * config/mep/mep.c: Include gimple.h.
21449 (mep_function_uses_sp): Delete unused function.
21450 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
21451 parameters. Use unsigned integers to count args. Return a
21452 NULL_RTX instead of an error_mark_node. Toidy up formatting.
21454 2010-02-23 Jakub Jelinek <jakub@redhat.com>
21457 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
21458 greater or equal to nelt instead of 2 * nelt.
21459 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
21462 2010-02-23 Jason Merrill <jason@redhat.com>
21465 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
21466 in cfun->local_decls even if they have register types.
21469 * stor-layout.c (place_field): Don't warn about unnecessary
21470 DECL_PACKED if the type is packed.
21472 2010-02-23 Jakub Jelinek <jakub@redhat.com>
21475 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
21476 GOTOFF relocs, even when the base reg isn't pic pointer.
21478 2010-02-23 Michael Matz <matz@suse.de>
21481 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
21482 (expand_gimple_basic_block): Generate and use debug temps if there
21483 are debug uses left after the last real use of TERed ssa names.
21484 Unlink debug immediate uses when they are expanded.
21486 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
21489 * config/i386/i386.c (override_options): Reorganise to provide
21490 better error messages.
21492 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
21494 PR middle-end/43083
21495 * graphite-scop-detection.c (create_single_exit_edge): Move
21496 the call to find_single_exit_edge to....
21497 (create_sese_edges): ...here. Don't handle multiple edges
21498 exiting the function.
21499 (build_graphite_scops): Don't handle multiple edges
21500 exiting the function.
21502 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
21504 PR middle-end/43097
21505 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
21506 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
21508 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
21510 PR middle-end/43026
21511 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
21513 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
21516 * c-typeck.c (convert_arguments): Print declaration location.
21517 * c-common.c (validate_nargs): Rename as
21518 builtin_function_validate_nargs.
21519 (check_builtin_function_arguments): Update.
21521 2010-02-22 Richard Guenther <rguenther@suse.de>
21524 * tree-inline.c (declare_return_variable): Use the type of
21525 the call stmt lhs if available.
21527 2010-02-22 Duncan Sands <baldrick@free.fr>
21529 * passes.c (register_pass): Always consider all pass lists when
21530 ref_pass_instance_number is zero.
21532 2010-02-22 Richard Guenther <rguenther@suse.de>
21534 PR tree-optimization/42749
21535 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
21536 parameter. Do arithmetic in the original type.
21537 (update_accumulator_with_ops): Likewise.
21538 (adjust_accumulator_values): Adjust.
21540 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21542 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
21543 (QI to BLKmode splitter): New splitter.
21545 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
21547 * config/i386/i386.c (initial_ix86_tune_features): Turn on
21548 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
21550 2010-02-22 Richard Guenther <rguenther@suse.de>
21552 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
21554 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
21556 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
21557 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
21558 ($(T)crti.o, $(T)crtn.o): Remove rules.
21560 2010-02-21 Tobias Burnus <burnus@net-b.de>
21563 * doc/invoke.texi (-fassociative-math): Document that this
21564 option is automatically enabled for Fortran.
21566 2010-02-20 David S. Miller <davem@davemloft.net>
21568 * configure.ac: Test if linker and assembler properly support
21569 GOTDATA_OP relocations.
21570 * configure: Rebuild.
21571 * config.in: Likewise.
21572 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
21573 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
21574 (movsi_high_pic): Likewise.
21575 (movdi_lo_sum_pic): Likewise.
21576 (movdi_high_pic): Likewise.
21577 (movsi_pic_gotdata_op): New pattern.
21578 (movdi_pic_gotdata_op): Likewise.
21579 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
21580 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
21582 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
21585 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
21586 attribute to ssemul.
21587 (xop_mulv2div2di3_high): Ditto.
21589 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
21592 * c.opt (Wconversion-null): New option.
21593 * doc/invoke.texi (Wconversion-null): Document.
21595 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
21597 * common.opt (Wlarger-than-): Add Undocumented.
21599 2010-02-19 Mike Stump <mikestump@comcast.net>
21601 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
21603 2010-02-19 Jason Merrill <jason@redhat.com>
21606 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
21607 * configure: Likewise.
21609 2010-02-20 Alan Modra <amodra@gmail.com>
21611 PR middle-end/42344
21612 * cgraph.h (cgraph_make_decl_local): Declare.
21613 * cgraph.c (cgraph_make_decl_local): New function.
21614 (cgraph_make_node_local): Use it.
21615 * cgraphunit.c (cgraph_function_versioning): Likewise.
21616 * ipa.c (function_and_variable_visibility): Likewise.
21618 2010-02-19 Jakub Jelinek <jakub@redhat.com>
21621 * except.c (sjlj_emit_function_enter): Don't call
21622 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
21624 * rtl.h (add_reg_br_prob_note): Remove prototype.
21626 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
21629 * c-common.c (conversion_warning): Remove widening conversions
21630 before checking the conversion of integers to reals.
21632 2010-02-19 Mike Stump <mikestump@comcast.net>
21634 PR middle-end/43125
21635 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
21638 * cgraphunit.c (process_function_and_variable_attributes): Check
21639 DECL_PRESERVE_P instead of looking up attribute "used".
21640 * ipa-pure-const.c (check_decl): Likewise.
21641 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
21642 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
21643 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
21644 instead of attribute "used".
21645 * config/sol2-c.c (solaris_pragma_init): Likewise.
21646 (solaris_pragma_fini): Likewise.
21648 2010-02-19 Jakub Jelinek <jakub@redhat.com>
21650 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
21651 Use XCNEW instead of xcalloc.
21652 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
21653 XNEW instead of xmalloc.
21654 (get_fields): Use XNEWVEC instead of xmalloc.
21657 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
21658 populate vars array.
21659 (create_new_general_access): For debug stmts just reset value.
21660 (get_stmt_accesses): For accesses within debug stmts just record them
21661 using add_access_to_acc_sites instead of preventing the peeling or
21662 counting them as accesses.
21664 PR middle-end/42233
21665 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
21667 2010-02-19 Richard Guenther <rguenther@suse.de>
21669 PR tree-optimization/42916
21670 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
21673 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
21675 * configure.ac: Replace all uses of changequote in macro arguments
21676 with proper quoting.
21678 2010-02-19 Jakub Jelinek <jakub@redhat.com>
21680 PR middle-end/42233
21681 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
21683 2010-02-19 Richard Guenther <rguenther@suse.de>
21685 PR tree-optimization/42944
21686 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
21687 test for aliasing with errno.
21689 2010-02-19 Jakub Jelinek <jakub@redhat.com>
21691 PR middle-end/42233
21692 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
21693 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
21694 * dojump.c: Include output.h.
21695 (inv): New inline function.
21696 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
21697 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
21698 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
21699 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
21700 argument, pass it down to other calls.
21701 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
21702 add REG_BR_PROB note to the conditional jump.
21703 * cfgexpand.c (add_reg_br_prob_note): Removed.
21704 (expand_gimple_cond): Don't call it, add the probability
21705 as last argument to jumpif_1/jumpifnot_1.
21706 * Makefile.in (dojump.o): Depend on output.h.
21707 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
21709 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
21710 * stmt.c (do_jump_if_equal): Likewise.
21711 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
21712 * loop-unswitch.c (compare_and_jump_seq): Likewise.
21713 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
21715 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
21716 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
21717 jumpifnot_1 callers.
21718 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
21720 (store_expr): Adjust jumpifnot caller.
21721 (store_constructor): Adjust jumpif caller.
21723 PR middle-end/42233
21724 * gimplify.c (gimple_boolify): For __builtin_expect call
21725 gimple_boolify also on its first argument.
21727 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
21729 * configure.ac (gnu-unique-object): Wrap regexps using [] in
21731 (__stack_chk_fail): Ditto. Remove quadrigraphs.
21732 * configure: Regenerated.
21734 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21736 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
21737 lang_hooks.types_compatible_p instead of comptypes.
21739 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
21741 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
21742 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
21743 if __prefer_thumb__ is defined.
21745 2010-02-18 Martin Jambor <mjambor@suse.cz>
21747 PR tree-optimization/43066
21748 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
21749 array with zero-sized element type.
21751 2010-02-18 Jakub Jelinek <jakub@redhat.com>
21753 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
21754 rtx, allocate struct var_loc_node here and return it to the
21755 caller, and only if it is actually needed.
21756 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
21757 move it earlier and return immediately if it returns NULL.
21759 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
21761 * config/sparc/gas.h: New file. Restore
21762 TARGET_ASM_NAMED_SECTION to its ELF default.
21763 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
21764 check !HAVE_GNU_AS.
21765 * config/sparc/sparc.c (sparc_elf_asm_named_section):
21766 Likewise. Add ATTRIBUTE_UNUSED to prototype.
21767 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
21768 after sparc/sysv4.h.
21770 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
21772 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
21774 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
21776 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
21777 patterns from predicated pattern.
21779 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
21782 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
21783 for insn mnemonic suffix.
21785 2010-02-17 Richard Guenther <rguenther@suse.de>
21787 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
21790 2010-02-17 Jakub Jelinek <jakub@redhat.com>
21793 * caller-save.c (save_call_clobbered_regs): If BB ends with
21794 a DEBUG_INSN, move any notes in between last real insn and the last
21795 DEBUG_INSN after the last DEBUG_INSN.
21797 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
21799 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
21800 Fix return type. Fix argument type. Explain meaning of return value.
21802 2010-02-16 Richard Guenther <rguenther@suse.de>
21804 PR tree-optimization/41043
21805 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
21806 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
21808 (vrp_visit_phi_node): ... but only for loop PHI nodes.
21810 2010-02-16 Ira Rosen <irar@il.ibm.com>
21812 PR tree-optimization/43074
21813 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
21814 * tree-vect-loop.c (vect_analyze_loop_operations): Add
21815 vectorizable cycles in hybrid SLP check.
21816 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
21818 2010-02-16 Richard Guenther <rguenther@suse.de>
21820 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
21821 (true_dependence): If memrefs_conflict_p computes must-alias
21822 trust it. Move TBAA check after offset-based disambiguation.
21823 (canon_true_dependence): Likewise.
21825 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
21827 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
21828 * doc/invoke.texi: Document it.
21829 * var-tracking.c: Include toplev.h and params.h.
21830 (vt_find_locations): Return bool indicating success. Compute
21831 hash sizes unconditionally. Check new parameter, report.
21832 (variable_tracking_main_1): Check vt_find_locations results and
21833 retry. Renamed from...
21834 (variable_tracking_main): ... this. New wrapper to preserve
21835 flag_var_tracking_assignments.
21836 * Makefile.in (var-tracking.o): Adjust dependencies.
21838 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
21839 Jakub Jelinek <jakub@redhat.com>
21842 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
21843 if weak_import attribute is present.
21844 * config/darwin.c (machopic_select_section): Likewise.
21846 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
21848 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
21849 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
21850 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
21851 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
21853 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
21856 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
21857 Fix argument types.
21859 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
21860 Rewrite text to refer to the names.
21862 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
21864 * config/i386/i386-builtin-types.def
21865 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
21866 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
21867 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
21868 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
21869 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
21870 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
21871 IX86_BUILTIN_VPERMIL2PS256.
21872 (MULTI_ARG_4_DF2_DI_I): Defined.
21873 (MULTI_ARG_4_DF2_DI_I1): Defined.
21874 (MULTI_ARG_4_SF2_SI_I): Defined.
21875 (MULTI_ARG_4_SF2_SI_I1): Defined.
21876 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
21877 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
21878 __builtin_ia32_vpermil2ps256.
21879 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
21880 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
21881 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
21882 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
21883 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
21884 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
21885 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
21886 CODE_FOR_xop_vpermil2v8sf3.
21887 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
21888 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
21889 * config/i386/xopintrin.h (_mm_permute2_pd): New.
21890 (_mm256_permute2_pd): New.
21891 (_mm_permute2_ps): New.
21892 (_mm256_permute2_ps): New.
21894 2010-02-15 Nick Clifton <nickc@redhat.com>
21896 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
21897 boolean parameters. Use emit_jump_insn when emitting a pop
21898 instruction containing a return insn.
21899 (push): Use 'true' rather than '1' as second parameter to F.
21900 (h8300_expand_prologue): Likewise.
21901 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
21902 (h8300_expand_epilogue): Likewise.
21904 2010-02-15 Richard Guenther <rguenther@suse.de>
21906 PR middle-end/43068
21907 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
21910 2010-02-15 Nick Clifton <nickc@redhat.com>
21912 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
21915 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
21917 * intl.c (fake_ngettext): New function.
21918 * intl.h (fake_ngettext): Declare.
21919 (ngettext): Define macro.
21920 * collect2.c (notice_translated): New function.
21921 (main): Use notice_translated and ngettext.
21922 * collect2.h (notice_translated): Declare.
21924 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
21926 * reorg.c (delete_computation): Comment fixes.
21927 * caller-save.c (setup_save_areas): Idem.
21928 * sel-sched-dump.c (dump_lv_set): Idem.
21931 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21933 * config/s390/s390.c (s390_sched_init): New function.
21934 (TARGET_SCHED_INIT): Target hook defined.
21936 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
21937 Jack Howarth <howarth@bromo.med.uc.edu>
21938 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
21941 Partial revert of unintended change in fix for PR41605.
21942 * config/darwin.h: Fix typo.
21943 * config/darwin9.h: Same.
21945 2010-02-11 Jakub Jelinek <jakub@redhat.com>
21947 * c-pch.c (pch_init): Clear v.
21949 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
21951 PR middle-end/42930
21952 * graphite-scop-detection.c (graphite_can_represent_scev): Call
21953 graphite_can_represent_init for MULT_EXPR.
21955 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
21957 PR middle-end/42914
21958 PR middle-end/42530
21959 * graphite-sese-to-poly.c (remove_phi): New.
21960 (translate_scalar_reduction_to_array): Call remove_phi.
21962 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
21964 PR middle-end/42771
21965 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
21966 * graphite-clast-to-gimple.h (gloog): Update declaration.
21967 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
21968 * graphite-poly.h (struct poly_bb): Add missing comments.
21969 (struct scop): Add poly_scop_p field.
21970 (POLY_SCOP_P): New.
21971 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
21972 * graphite.c (graphite_transform_loops): Build the polyhedral
21973 representation for each scop before code generation.
21974 * sese.c (rename_variables_in_operand): Removed.
21975 (rename_variables_in_expr): Return the renamed expression.
21976 (rename_sese_parameters): New.
21977 * sese.h (rename_sese_parameters): Declared.
21979 2010-02-11 Richard Guenther <rguenther@suse.de>
21981 PR tree-optimization/42998
21982 * tree-ssa-pre.c (create_expression_by_pieces): Treat
21983 POINTER_PLUS_EXPR properly.
21985 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
21986 Changpeng Fang <changpeng.fang@amd.com>
21988 PR middle-end/40886
21989 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
21990 the cost of an IV candidate when the IV is used in a test against zero.
21992 * gcc.dg/tree-ssa/ivopts-3.c: New.
21994 2010-02-11 Richard Guenther <rguenther@suse.de>
21997 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
21998 pointer-vs-decl case by swapping refs. Handle some cases
21999 of pointer-vs-decl disambiguations more conservatively.
22000 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
22001 to false after expanding.
22003 2010-02-11 Richard Guenther <rguenther@suse.de>
22006 * gcc.c (process_command): Handle LTO file@offset case more
22009 2010-02-11 Jakub Jelinek <jakub@redhat.com>
22011 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
22012 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
22014 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
22016 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
22017 if MEM's mode size isn't DWARF2_ADDR_SIZE.
22018 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
22019 Optimize eq/ne comparisons when both arguments are known to be
22021 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
22022 Don't mask operands unnecessarily if they are known to be already
22025 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
22027 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
22030 2010-02-10 Richard Guenther <rguenther@suse.de>
22032 PR tree-optimization/43017
22033 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
22034 for wrapping signed arithmetic.
22036 2010-02-10 Jakub Jelinek <jakub@redhat.com>
22039 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
22040 if no debug info should be emitted for it.
22042 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
22044 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
22045 note when flag_exceptions is set.
22047 2010-02-10 Duncan Sands <baldrick@free.fr>
22049 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
22051 2010-02-10 Richard Guenther <rguenther@suse.de>
22054 * tree.c (get_unwidened): Handle constants.
22055 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
22057 2010-02-10 Martin Jambor <mjambor@suse.cz>
22060 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
22061 check for variable argument counts independently.
22063 2010-02-10 Christian Bruel <christian.bruel@st.com>
22066 * config/sh/sh.c (find_barrier): Increase length for non delayed
22067 conditional branches.
22069 2010-02-10 Christian Bruel <christian.bruel@st.com>
22071 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
22073 2010-02-10 Jakub Jelinek <jakub@redhat.com>
22075 * builtins.c (set_builtin_user_assembler_name): Also handle
22076 ffs if int is smaller than word.
22078 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
22080 PR middle-end/42973
22081 * ira-conflicts.c (get_dup): Remove.
22082 (process_reg_shuffles): Add new parameter. Use it as an
22083 additional guard for copy generation.
22084 (add_insn_allocno_copies): Rewrite.
22086 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
22088 * common.opt (fsched2-use-traces): Preserved for backward
22090 * doc/invoke.texi: Remove the documentation about option
22091 -fsched2-use-traces.
22092 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
22093 flag_sched2_use_traces.
22094 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
22095 the backward compatibility flag section.
22097 2010-02-09 Richard Guenther <rguenther@suse.de>
22099 PR tree-optimization/43008
22100 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
22101 make HEAP variables initialized from global memory if they
22102 are not known builtin functions.
22103 (find_func_aliases): Adjust.
22105 2010-02-09 Richard Guenther <rguenther@suse.de>
22107 PR tree-optimization/43000
22108 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
22109 arithmetic manually.
22111 2010-02-08 Jakub Jelinek <jakub@redhat.com>
22113 PR tree-optimization/42931
22114 * tree-loop-linear.c (try_interchange_loops): Don't call
22115 double_int_mul if estimated_loop_iterations failed.
22117 2010-02-08 Martin Jambor <mjambor@suse.cz>
22119 PR middle-end/42898
22120 * tree-sra.c (build_accesses_from_assign): Do not mark in
22121 should_scalarize_away_bitmap if stmt has volatile ops.
22122 (sra_modify_assign): Do not process assigns piecemeal if if stmt
22125 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
22127 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
22129 2010-02-07 Adam Nemet <adambnmet@gmail.com>
22131 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
22132 before the pattern.
22134 2010-02-07 Andrew Pinski <pinskia@gmail.com>
22136 PR middle-end/42946
22137 * df-core.c (df_finish_pass): Change type of saved_flags to int.
22139 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
22141 PR middle-end/42988
22142 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
22143 to unknown_dependence.
22144 (graphite_legal_transform_dr): Handle the unknown_dependence.
22145 (graphite_carried_dependence_level_k): Same.
22147 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
22149 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
22151 2010-02-07 Richard Guenther <rguenther@suse.de>
22153 PR middle-end/42991
22154 * expr.c (get_inner_reference): Always initialize *pbitsize.
22156 2010-02-07 Richard Guenther <rguenther@suse.de>
22158 PR middle-end/42956
22159 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
22160 new ARRAY_REFs on variable size element or minimal index arrays.
22162 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
22163 gimple_fold_indirect_ref.
22165 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
22168 * arm.c (arm_override_options): Just return if the user has specified
22169 an invalid fpu name.
22171 2010-02-03 Jason Merrill <jason@redhat.com>
22174 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
22175 i386_pe_maybe_record_exported_symbol.
22177 2010-02-05 Steve Ellcey <sje@cup.hp.com>
22180 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
22181 (pa_delegitimize_address): New function.
22183 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
22185 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
22186 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
22188 2010-02-05 Richard Guenther <rguenther@suse.de>
22191 * lto-streamer-in.c (get_resolution): Deal with references
22192 to undefined functions.
22194 2010-02-05 Richard Guenther <rguenther@suse.de>
22196 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
22197 (fold_const_aggregate_ref): Likewise.
22198 (ccp_fold_stmt): Substitute loads.
22199 (maybe_fold_reference): Verify types before substituting.
22201 (fold_gimple_assign): Unshare properly.
22202 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
22204 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
22206 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
22207 for rs6000_gen_cell_microcode.
22209 2010-02-04 Richard Guenther <rguenther@suse.de>
22211 PR rtl-optimization/42952
22212 * dse.c (const_or_frame_p): Remove MEM handling.
22214 2010-02-04 Nick Clifton <nickc@redhat.com>
22216 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
22217 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
22218 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
22219 (mn10300_asm_output_mi_thunk): New function.
22220 (mn10300_can_output_mu_thunk): New function.
22221 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
22222 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
22223 (FUNCTION_ARG): Delete incorrect comment.
22225 2010-02-03 Jason Merrill <jason@redhat.com>
22228 * fold-const.c (operand_equal_p): Handle erroneous types.
22230 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
22232 * config/h8300/h8300.md (can_delay): Fix attibute condition.
22234 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
22236 PR rtl-optimization/42941
22237 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
22240 2010-02-03 Jason Merrill <jason@redhat.com>
22243 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
22245 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
22248 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
22249 (cselib_reset_table): Renamed from...
22250 (cselib_reset_table_with_next_value): ... this.
22251 (cselib_get_next_uid): Renamed from...
22252 (cselib_get_next_unknown_value): ... this.
22253 * cselib.c (next_uid): Renamed from...
22254 (next_unknown_value): ... this.
22255 (cselib_clear_table): Adjust.
22256 (cselib_reset_table): Adjust. Renamed from...
22257 (cselib_reset_table_with_next_value): ... this.
22258 (cselib_get_next_uid): Adjust. Renamed from...
22259 (cselib_get_next_unknown_value): ... this.
22260 (get_value_hash): Use hash.
22261 (cselib_hash_rtx): Likewise.
22262 (new_cselib_val): Adjust. Set and dump uid.
22263 (cselib_lookup_mem): Pass next_uid as hash.
22264 (cselib_subst_to_values): Likewise.
22265 (cselib_log_lookup): Dump uid.
22266 (cselib_lookup): Pass next_uid as hash. Adjust.
22267 (cselib_process_insn): Adjust.
22268 (cselib_init): Initialize next_uid.
22269 (cselib_finish): Adjust.
22270 (dump_cselib_table): Likewise.
22271 * dse.c (canon_address): Dump value uid.
22272 * print-rtl.c (print_rtx): Print value uid.
22273 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
22275 (dv_uid): New function, sort of renamed from...
22276 (dv_htab_hash): ... this, reimplemented in terms of it and...
22277 (dv_uid2hash): ... this. New.
22278 (variable_htab_eq): Drop excess assertions.
22279 (tie_break_pointers): Removed.
22280 (canon_value_cmp): Compare uids.
22281 (variable_post_merge_New_vals): Print uids.
22282 (vt_add_function_parameters): Adjust.
22283 (vt_initialize): Reset table. Adjust.
22285 2010-02-03 Richard Guenther <rguenther@suse.de>
22287 PR tree-optimization/42944
22288 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
22289 (call_may_clobber_ref_p_1): Likewise. Properly handle
22290 malloc and calloc clobbering errno.
22292 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
22294 * doc/invoke.texi: Fix name of sched1 dump.
22296 * opts.c (decode_options): Set flag_tree_switch_conversion
22297 only conditionally on optimize >= 2.
22299 * gcse.c: Assorted comment fixes in pass description.
22301 2010-02-03 Anthony Green <green@moxielogic.com>
22303 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
22304 nop padding in order to maintain alignment of storage location of
22305 target function address.
22306 (moxie_trampoline_init): Store target function address at newly
22308 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
22310 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
22312 2010-02-03 Richard Guenther <rguenther@suse.de>
22314 PR middle-end/42927
22315 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
22317 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22319 * config.gcc: Reenable check for obsolete targets.
22320 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
22321 mips-sgi-irix6.[0-4]*.
22323 2010-02-02 Nick Clifton <nickc@redhat.com>
22325 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
22326 constant size of 4 as being the same as 0.
22327 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
22328 can take values in the range 0..4.
22330 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
22333 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
22334 as _darwin10_Unwind_FindEnclosingFunction().
22335 * libgcc-libsystem.ver: New.
22337 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
22340 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
22341 implicitly set registers.
22343 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
22345 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
22346 (arm_override_options): Allow automatic selection of the thread
22347 pointer register if thumb2.
22348 (legitimize_pic_address): Improve code sequences for Thumb2.
22349 (arm_call_tls_get_addr): Likewise.
22350 (legitimize_tls_address): Likewise.
22351 * arm.md (pic_load_addr_arm): Delete. Replace with ...
22352 (pic_load_addr_32bit): ... this. New named pattern.
22353 * thumb2.md (pic_load_addr_thumb2): Delete.
22354 (pic_load_dot_plus_four): Delete.
22355 (tls_load_dot_plus_four): New named pattern.
22357 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22360 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
22361 Document fix for TLS bug.
22363 2010-01-31 Richard Guenther <rguenther@suse.de>
22365 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
22366 conservatively correct.
22368 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22372 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22374 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
22376 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22378 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
22380 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
22382 * config.gcc: Adjust order of makefile fragments for mingw targets.
22384 2010-01-31 Richard Guenther <rguenther@suse.de>
22386 PR middle-end/42898
22387 * gimplify.c (gimplify_init_constructor): For volatile LHS
22388 initialize a temporary.
22390 2010-01-31 Matthias Klose <doko@ubuntu.com>
22392 * configure.ac: Fix __stack_chk_fail check for cross builds configured
22394 * configure: Regenerate.
22396 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
22398 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
22399 the same alias set and their sizes different constantness.
22400 (aliasing_component_refs_p): Revert 2009-10-24 change.
22402 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22404 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
22407 2010-01-29 Richard Guenther <rguenther@suse.de>
22409 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
22410 Assert we successfully updated the call.
22412 2010-01-29 Jakub Jelinek <jakub@redhat.com>
22414 PR rtl-optimization/42889
22415 * df.h (df_set_bb_dirty_nonlr): New prototype.
22416 * df-core.c (df_set_bb_dirty_nonlr): New function.
22417 * df-scan.c (df_insn_rescan): Call it instead of
22418 df_set_bb_dirty for DEBUG_INSNs.
22420 2010-01-29 Richard Guenther <rguenther@suse.de>
22422 PR middle-end/37448
22423 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
22424 quadratic behavior in most cases.
22426 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
22429 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
22430 in the call to gen_x86_movsicc_0_m1.
22432 2010-01-28 Richard Guenther <rguenther@suse.de>
22434 PR tree-optimization/42871
22435 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
22437 2010-01-28 Richard Guenther <rguenther@suse.de>
22439 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
22440 into call arguments.
22442 2010-01-28 Richard Guenther <rguenther@suse.de>
22444 PR middle-end/42883
22445 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
22446 the forwarder if the destination is an EH landing pad.
22448 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
22450 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
22451 block list passed to gimple_duplicate_sese_tail.
22452 (parallelize_loops): Avoid parallelization when the function
22453 has_nonlocal_label.
22454 Avoid parallelization when the preheader is IRREDUCIBLE.
22455 Try to optimize when estimated_loop_iterations_int is unresolved.
22456 Add the loop's location to the dump file.
22457 * tree-cfg.c (add_phi_args_after_redirect): Remove.
22458 (gimple_duplicate_sese_tail): Remove the check for the latch.
22459 Redirect nexits to the exit block.
22460 Remove handling of the incoming edges to the latch.
22461 Redirect the backedge from the copied latch to the exit bb.
22463 2010-01-28 Michael Matz <matz@suse.de>
22466 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
22467 Wrap force_reg into a sequence, emit it before user.
22469 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
22471 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
22473 (arm_legacy_rev): Likewise.
22474 (thumb_legacy_rev): Likewise.
22476 2010-01-27 Jakub Jelinek <jakub@redhat.com>
22478 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
22479 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
22480 on MEM's address failed, try avoid_constant_pool_reference and
22481 recurse if it returned something different.
22482 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
22483 address, try avoid_constant_pool_reference and recurse if it
22484 returned something different.
22485 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
22486 address and avoid_constant_pool_reference returned something
22487 different, don't set have_address.
22489 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
22492 * var-tracking.c (val_store): Add modified argument, obey it.
22494 (count_uses): Move down logging of main.
22495 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
22496 don't need resolution.
22497 (emit_notes_in_bb): Likewise.
22499 2010-01-27 Richard Guenther <rguenther@suse.de>
22501 PR middle-end/42878
22502 * tree-inline.c (remap_decl): Delay remapping of SSA name
22503 default definitions until we need them.
22505 2010-01-27 Jakub Jelinek <jakub@redhat.com>
22507 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
22508 (rs6000_delegitimize_address): New function.
22510 * config/s390/s390.c (s390_delegitimize_address): Call
22511 delegitimize_mem_from_attrs.
22513 PR middle-end/42874
22514 * tree-inline.c (cannot_copy_type_1): Removed.
22515 (copy_forbidden): Don't forbid copying of functions containing
22516 records/unions with variable length fields.
22518 2010-01-27 Christian Bruel <christian.bruel@st.com>
22522 * config/sh/sh.c (find_barrier): Increase length for non delayed
22523 conditional branches.
22525 2010-01-27 Matthias Klose <doko@ubuntu.com>
22527 * configure.ac (gnu-unique-object): Fix ldd version check.
22528 * configure: Regenerate.
22530 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22532 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
22534 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
22535 Test for HAVE_GNU_AS value.
22537 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22539 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
22540 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
22541 INT64_TYPE): Define.
22542 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
22543 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22544 INT_LEAST64_TYPE): Define.
22545 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
22546 UINT_LEAST64_TYPE): Define.
22547 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
22548 INT_FAST64_TYPE): Define.
22549 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22550 UINT_FAST64_TYPE): Define.
22551 (INTMAX_TYPE, UINTMAX_TYPE): Define.
22552 (INTPTR_TYPE, UINTPTR_TYPE): Define.
22553 (SIG_ATOMIC_TYPE): Define.
22555 2010-01-26 Richard Guenther <rguenther@suse.de>
22557 * df-scan.c (df_scan_set_bb_info): Remove assert.
22558 (df_insn_rescan_debug_internal): Merge asserts.
22559 (df_install_ref): Likewise.
22560 (df_mark_reg): Use bitmap_set_range.
22561 (df_hard_reg_used_p): Remove assert.
22562 (df_hard_reg_used_count): Likewise.
22564 2010-01-26 Richard Guenther <rguenther@suse.de>
22566 PR rtl-optimization/42685
22567 * web.c (web_main): Ignore DEBUG_INSNs.
22569 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
22571 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
22573 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
22574 Fix types of fndecl and arglist parameters.
22576 2010-01-26 Richard Guenther <rguenther@suse.de>
22578 PR middle-end/42806
22579 * tree-eh.c (unsplit_eh): Skip debug insns.
22581 2010-01-26 Richard Guenther <rguenther@suse.de>
22583 PR tree-optimization/42250
22584 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
22586 2010-01-26 Jakub Jelinek <jakub@redhat.com>
22589 * omp-low.c (expand_omp_sections): Only use single_pred if
22590 l2_bb is single_pred_p.
22592 2010-01-25 Christian Bruel <christian.bruel@st.com>
22595 * config/sh/sh.c (find_barrier): Increase length for non delayed
22596 conditional branches.
22597 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
22599 2010-01-24 David S. Miller <davem@davemloft.net>
22601 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
22602 define if not using GAS.
22603 * config/sparc/sparc.c (sparc_elf_asm_named_section):
22604 Likewise. Delete SECTION_MERGE code, which is only applicable
22607 2010-01-24 Mark Mitchell <mark@codesourcery.com>
22610 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
22611 mangling of va_list in system headers.
22613 2010-01-23 Toon Moene <toon@moene.org>
22615 * tree-predcom.c (combine_chains): Return NULL, not false.
22617 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
22619 * tree-loop-distribution.c (distribute_loop): Fix declaration and
22620 initialization of variable res to agree with return type.
22622 2010-01-22 Steve Ellcey <sje@cup.hp.com>
22624 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
22625 * tree-sra.c: Add include of expr.h.
22627 2010-01-22 Jakub Jelinek <jakub@redhat.com>
22629 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
22630 insert the debug stmt on the single non-EH edge from the stmt.
22632 2010-01-22 Richard Henderson <rth@redhat.com>
22635 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
22636 the RHS until after generate_subtree_copies has insertted its
22637 code before the current statement.
22639 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
22641 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
22643 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
22645 2010-01-21 Martin Jambor <mjambor@suse.cz>
22647 PR tree-optimization/42585
22648 * tree-sra.c (struct access): New field grp_total_scalarization.
22649 (dump_access): Dump the new field.
22650 (should_scalarize_away_bitmap): New variable.
22651 (cannot_scalarize_away_bitmap): Likewise.
22652 (sra_initialize): Allocate new bitmaps.
22653 (sra_deinitialize): Free new bitmaps.
22654 (create_access_1): New function.
22655 (create_access): Parts moved to create_access_1.
22656 (type_consists_of_records_p): New function.
22657 (completely_scalarize_record): Likewise.
22658 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
22659 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
22660 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
22662 (analyze_all_variable_accesses): Completely scalarize small eligible
22665 2010-01-21 Martin Jambor <mjambor@suse.cz>
22667 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
22669 2010-01-21 Andrew Haley <aph@redhat.com>
22671 * gcc.c (process_command): Move lang_specific_driver before
22672 setting cc_libexec_prefix.
22674 2010-01-21 Richard Guenther <rguenther@suse.de>
22676 PR middle-end/19988
22677 * fold-const.c (negate_expr_p): Pretend only negative
22678 real constants are easily negatable.
22680 2010-01-20 Janis Johnson <janis187@us.ibm.com>
22681 Jason Merrill <jason@redhat.com>
22683 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
22684 (TYPE_TRANSPARENT_AGGR): this, for union and record.
22685 * calls.c (initialize argument_information): Handle it.
22686 * c-common.c (handle_transparent_union_attribute): Use new name.
22687 * c-decl.c (finish_struct): Ditto.
22688 * c-typeck.c (type_lists_compatible_p): Ditto.
22689 (convert_for_assignment): Use new name and also handle record.
22690 * function.c (aggregate_value_p): Handle it.
22691 (pass_by_reference): Ditto.
22692 (assign_parm_data_types): Ditto.
22693 * print-tree.c (print_node): Ditto.
22694 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
22695 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
22696 * tree.c (first_field): New fn.
22698 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
22701 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
22702 even when linking statically, for now.
22704 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
22707 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
22708 without a cselib val.
22709 (count_uses): Accept MO_VAL_SET with no val on stores.
22710 (add_stores): Likewise.
22712 2010-01-20 Jakub Jelinek <jakub@redhat.com>
22714 * var-tracking.c (check_value_val): Add a compile time assertion.
22715 (dv_is_decl_p): Simplify.
22716 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
22717 gcc_assert if ENABLE_CHECKING.
22719 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
22722 * var-tracking.c: Include tree-flow.h.
22723 (mem_dies_at_call): New.
22724 (dataflow_set_preserve_mem_locs): Use it.
22725 (dataflow_set_remove_mem_locs): Likewise.
22726 (dump_var): Renamed from dump_variable. Adjust all callers.
22727 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
22728 * Makefile.in (var-tracking.o): Adjust deps.
22730 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
22732 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
22734 2010-01-20 Richard Guenther <rguenther@suse.de>
22736 PR tree-optimization/42717
22737 * tree-ssa-dce.c (get_live_post_dom): Remove.
22738 (forward_edge_to_pdom): Take an arbitrary edge to copy
22739 degenerate PHI args from.
22740 (remove_dead_stmt): Use the first post-dominator even if it
22741 does not contain live statements as redirection destination.
22743 2010-01-20 Richard Guenther <rguenther@suse.de>
22745 * tree-inline.c (estimate_num_insns): Handle EH builtins.
22747 2010-01-20 Jakub Jelinek <jakub@redhat.com>
22749 * sel-sched.c (create_speculation_check): Remove set but not used
22751 (try_transformation_cache): Remove set but not used variable ds.
22752 (calculate_privileged_insns): Remove set but not used variables
22753 cur_insn and min_spec_insn.
22754 (find_best_expr): Remove set but not used variable avail_n.
22755 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
22757 * cgraphunit.c (assemble_thunk): Remove set but not used variable
22759 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
22760 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
22761 new_scop_exit_edge.
22763 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
22766 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
22767 cpu types. Add support for *-sse3 cpu types.
22768 (x86_64-*-*): Ditto.
22770 2010-01-20 Jakub Jelinek <jakub@redhat.com>
22772 PR middle-end/42803
22773 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
22774 argument, call initializer_constant_valid_p_1 instead of
22775 initializer_constant_valid_p, pass CACHE to it, return NULL
22776 immediately if first call returns NULL.
22777 (initializer_constant_valid_p_1): New function.
22778 (initializer_constant_valid_p): Use it.
22780 2010-01-20 Thomas Quinot <quinot@adacore.com>
22782 * tree.def (PLACEHOLDER_EXPR): Fix comment.
22784 2010-01-20 Jakub Jelinek <jakub@redhat.com>
22786 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
22787 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
22788 (loc_list_from_tree): Don't handle unsigned division. Handle
22789 signed modulo using DW_OP_{over,over,div,mul,minus}.
22790 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
22791 modulo instead of signed.
22793 2010-01-20 DJ Delorie <dj@redhat.com>
22795 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
22797 (h8300_emit_stack_adjustment): Propogate it.
22799 (h8300_expand_prologue): Likewise.
22800 (h8300_expand_epilogue): Likewise.
22802 2010-01-19 Michael Matz <matz@suse.de>
22804 PR tree-optimization/41783
22805 * tree-data-ref.c (toplevel): Include flags.h.
22806 (dump_data_dependence_relation): Also dump the inputs if the
22807 result will be unknown.
22808 (split_constant_offset_1): Look through some conversions.
22809 * tree-predcom.c (determine_roots_comp): Restart a new chain if
22810 the offset from last element is too large.
22811 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
22812 (reassociate_to_the_same_stmt): Handle vector registers.
22813 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
22814 (e.g. conversions).
22815 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
22816 wide_prolog_niters argument, emit widening instructions.
22817 (vect_do_peeling_for_alignment): Adjust caller, use widened
22818 variant of the iteration cound.
22819 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
22821 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22824 * config/arm/neon-testgen.m (emit_automatics): New parameter
22825 features. Adjust for Fixed_return_reg feature.
22826 (test_intrinsic): Call emit_automatics with new feature.
22827 * config/arm/neon.ml: Update copyright years.
22828 (features): New Fixed_return_reg feature.
22829 (ops): Update feature for Vget_low.
22831 2010-01-19 Jakub Jelinek <jakub@redhat.com>
22833 PR tree-optimization/42719
22834 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
22838 * fwprop.c (all_uses_available_at): Return false if def_set dest
22839 is a REG that is used in def_insn.
22841 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
22843 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
22845 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
22846 Add argument names.
22848 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
22850 * target.h (struct gcc_target) <secondary_reload>: Change type
22851 of last argument to secondary_reload_info *.
22853 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
22856 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
22857 memory references with unaligned offsets. Remove CQImode handling.
22858 (unaligned_memory_operand): Return 1 for memory references with
22859 unaligned offsets. Remove CQImode handling.
22861 2010-01-18 Richard Guenther <rguenther@suse.de>
22863 PR middle-end/39954
22864 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
22867 2010-01-18 Richard Guenther <rguenther@suse.de>
22869 PR tree-optimization/42781
22870 * tree-ssa-structalias.c (find_what_var_points_to): Skip
22871 restrict processing only if the original variable was artificial.
22873 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
22875 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
22876 find number of popped argument bytes.
22878 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
22879 Fix the text that describes the return value for invalid insns.
22881 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
22883 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
22884 Clarify what 'cost of the -dependence' is. Fix quoting.
22886 * toplev.c (default_get_pch_validity): Rename argument to "sz".
22887 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
22889 2010-01-17 Jakub Jelinek <jakub@redhat.com>
22891 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
22892 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
22894 2010-01-17 Richard Guenther <rguenther@suse.de>
22896 PR middle-end/42248
22897 * function.c (split_complex_args): Take a VEC to modify.
22898 (assign_parms_augmented_arg_list): Build a VEC instead of
22899 a chain of PARM_DECLs.
22900 (assign_parms_unsplit_complex): Take a VEC of arguments.
22901 Do not fixup unmodified parms.
22902 (assign_parms): Deal with the VEC.
22903 (gimplify_parameters): Likewise.
22905 2010-01-17 Richard Guenther <rguenther@suse.de>
22907 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
22908 node existence check.
22909 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
22910 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
22911 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
22912 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
22913 (gimple_execute_on_growing_pred): Likewise.
22915 2010-01-17 Richard Guenther <rguenther@suse.de>
22917 PR tree-optimization/42773
22918 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
22919 (compute_antic_aux): Likewise.
22920 (compute_partial_antic_aux): Likewise.
22922 2010-01-17 Jie Zhang <jie.zhang@analog.com>
22925 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
22928 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
22930 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
22933 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
22934 Fix markup for strict argument.
22936 (TARGET_SCHED_REORDER2): Fix argument types.
22938 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
22939 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
22941 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
22942 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
22944 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
22947 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
22948 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
22949 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
22950 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
22951 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
22953 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
22955 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
22957 (TARGET_ASM_RELOC_RW_MASK): Add return type.
22958 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
22960 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
22962 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
22965 (TARGET_ASM_NAMED_SECTION): Fix argument list.
22967 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
22968 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
22970 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
22972 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
22974 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
22975 referring to it. Fix language.
22977 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
22979 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
22981 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
22983 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
22985 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
22986 '@var{stream}. Remove stray 'and'.
22988 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
22990 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
22992 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
22994 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
22995 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
22997 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
22998 Fix description of return value.
22999 Rename argument "sz" to "len."
23001 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
23002 Clarify meaning of 'true' return value.
23004 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
23006 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
23007 rep_mode versus mode_rep.
23009 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
23011 (TARGET_BUILTIN_DECL): Fix name.
23013 (TARGET_COMMUTATIVE_P): Fix type of first argument.
23015 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
23017 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
23019 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
23021 (TARGET_RELAXED_ORDERING): Use @deftypevr.
23023 (TARGET_GET_DRAP_RTX): Note that this is a hook.
23026 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
23027 Rename argument tm_fn to md_fn.
23029 (TARGET_OPTION_PRINT): Fix argument list.
23031 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
23034 * config/i386/i386.c (ix86_fixup_binary_operands):
23035 Revert FMA4 fixup of operands.
23037 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23040 * Makefile.in (write_entries_to_file, install-plugin):
23041 Use \012 instead of \n with tr.
23043 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
23045 * configure.ac (HAVE_AS_REF): New C macro.
23046 * configure: Regenerate.
23047 * config.in: Likewise.
23048 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
23050 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
23053 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
23055 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
23057 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
23059 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
23061 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
23063 (TARGET_IN_SMALL_DATA_P): Fix argument type.
23065 (TARGET_BINDS_LOCAL_P): Fix argument type.
23067 (TARGET_ASM_FILE_END): Use prototype.
23069 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
23071 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
23073 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
23075 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
23077 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
23078 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
23080 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
23081 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
23083 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
23084 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
23085 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
23086 (TARGET_ADDR_SPACE_CONVERT): Likewise.
23088 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
23090 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
23092 (TARGET_INIT_BUILTINS): Use prototype.
23094 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
23095 Put 'const char *' in braces. Fix parameter types.
23096 (TARGET_INVALID_CONVERSION): Fix parameter types.
23097 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
23098 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
23100 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
23103 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
23105 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
23107 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
23109 * doc/tm.texi (TARGET_HELP): Fix return type.
23111 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
23112 in braces. Fix argument types.
23114 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
23116 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
23118 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
23120 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
23121 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
23123 (TARGET_MANGLE_TYPE): Fix argument types.
23125 (TARGET_IRA_COVER_CLASSES): Use prototype.
23127 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
23129 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
23131 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
23133 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
23135 (TARGET_CALLEE_COPIES): Fix argument types.
23137 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
23139 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
23141 (TARGET_FUNCTION_VALUE): Fix argument types.
23143 (TARGET_RETURN_IN_MSB): Fix argument type.
23145 (TARGET_RETURN_IN_MEMORY): Fix argument types.
23147 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
23149 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
23151 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
23152 agree with return type.
23154 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
23156 2010-01-15 Jing Yu <jingyu@google.com>
23158 PR rtl-optimization/42691
23159 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
23160 a pseudo to a constant and are merged, and adjust comments.
23162 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
23164 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
23166 2010-01-15 Richard Guenther <rguenther@suse.de>
23168 PR middle-end/42739
23169 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
23170 labels of computed or non-local gotos to the destination.
23171 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
23172 landing pad label is the first label.
23174 2010-01-15 Richard Guenther <rguenther@suse.de>
23176 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
23178 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
23181 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
23182 to allow generation of the xssqrtdp instruction on power7.
23183 (sqrtdf2_fpr): Ditto.
23185 2010-01-14 Jakub Jelinek <jakub@redhat.com>
23187 PR middle-end/42674
23188 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
23189 functions with noreturn attribute.
23192 * varasm.c (declare_weak): Add weak attribute to decl if it
23193 doesn't have one already.
23194 (assemble_external): Only add decls to weak_decls if they also
23195 have weak attribute.
23197 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
23199 * var-tracking.c (var_reg_delete): Don't delete the association
23200 between REGs and values or one-part variables if the register
23203 2010-01-14 Jakub Jelinek <jakub@redhat.com>
23206 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
23207 because its first operand is a non-localized variable.
23209 2010-01-14 Martin Jambor <mjambor@suse.cz>
23211 PR tree-optimization/42706
23212 * tree-sra.c (encountered_recursive_call): New variable.
23213 (encountered_unchangable_recursive_call): Likewise.
23214 (sra_initialize): Initialize both new variables.
23215 (callsite_has_enough_arguments_p): New function.
23216 (scan_function): Call decl and flags check only for IPA-SRA, check
23217 whether there is a recursive call and whether it has enough arguments.
23218 (all_callers_have_enough_arguments_p): New function.
23219 (convert_callers): Look for recursive calls only when
23220 encountered_recursive_call is set.
23221 (ipa_early_sra): Bail out either if
23222 !all_callers_have_enough_arguments_p or
23223 encountered_unchangable_recursive_call.
23225 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
23227 * sel-sched.c: Add 2010 to copyright years.
23228 * sel-sched-ir.c: Likewise.
23229 * sel-sched-ir.h: Likewise.
23231 2010-01-14 Martin Jambor <mjambor@suse.cz>
23233 PR tree-optimization/42714
23234 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
23235 constructors specially.
23237 2010-01-14 Andi Kleen <ak@linux.intel.com>
23239 * config/i386/drivers-i386.c (detect_caches_intel):
23240 Add l2sizekb parameter and fill in.
23241 (host_detect_local_cpu): Add l2sizekb, fill in.
23242 Add Atom small cache heuristic.
23244 2010-01-14 Andi Kleen <ak@linux.intel.com>
23246 * config/i386/drivers-i386.c (detect_caches_cpuid4):
23247 Add level3 parameter and fill in.
23248 (detect_caches_intel): Handle level3 cache.
23250 2010-01-14 Andi Kleen <ak@linux.intel.com>
23252 * config/i386/drivers-i386.c (host_detect_local_cpu):
23253 Fix core duo detection.
23255 2010-01-14 Andi Kleen <ak@linux.intel.com>
23257 * config/i386/drivers-i386.c (host_detect_local_cpu):
23258 Fix Atom detection.
23260 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
23262 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
23263 (rs6000_variable_issue_1): this. Use...
23264 (rs6000_variable_issue): here. Reimplement. Print debug info.
23266 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
23268 * sel-sched-ir.c (sel_restore_other_notes): Rename to
23269 sel_restore_notes. Update all callers. Call reemit_notes
23272 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
23274 PR rtl-optimization/42246
23275 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
23278 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
23280 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
23281 all successors is the same as number of successors in current region.
23283 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
23285 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
23286 to rename is not separable. Otherwise check that its LHS is not NULL.
23288 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
23290 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
23292 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
23294 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
23295 available registers when failed to discover LHS register class.
23296 Fix indentation. Update comment.
23298 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
23299 Alexander Monakov <amonakov@ispras.ru>
23301 PR rtl-optimization/42389
23302 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
23304 (advance_state_on_fence): Likewise.
23305 (sel_target_adjust_priority): Print debug output only when
23306 sched_verbose >= 4, not 2.
23307 (get_expr_cost): Do not issue all unique insns on the next cycle.
23308 (fill_insns): Initialize can_issue_more from the value saved
23310 * sel-sched-ir.c (flist_add): New parameter issue_more.
23311 Init FENCE_ISSUE_MORE with it.
23312 (merge_fences): Likewise.
23313 (init_fences): Update call to flist_add.
23314 (add_to_fences, add_clean_fence_to_fences)
23315 (add_dirty_fence_to_fences): Likewise.
23316 (move_fence_to_fences): Update call to merge_fences.
23317 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
23319 * sel-sched-ir.h (struct _fence): New field issue_more.
23320 (FENCE_ISSUE_MORE): New accessor macro.
23322 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
23324 PR rtl-optimization/42388
23325 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
23326 that have no predecessors nor successors. Do not call move_bb_info
23327 for empty blocks outside of current region.
23329 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
23331 PR rtl-optimization/42294
23332 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
23333 * sel-sched.c (move_exprs_to_boundary): Transitively add all
23334 originators' originators.
23336 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
23338 PR rtl-optimization/39453
23339 PR rtl-optimization/42246
23340 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
23342 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
23344 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
23345 Alexander Monakov <amonakov@ispras.ru>
23347 PR middle-end/42245
23348 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
23349 (maybe_tidy_empty_bb): ... here. Make static. Add new
23350 argument. Update all callers.
23351 (tidy_control_flow): ... and here. Recompute topological order
23352 of basic blocks in region if necessary.
23353 (sel_redirect_edge_and_branch): Change return type. Return true
23354 if topological order might have been invalidated.
23355 (purge_empty_blocks): Export and move from...
23356 * sel-sched.c (purge_empty_blocks): ... here.
23357 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
23358 (maybe_tidy_empty_bb): Delete prototype.
23359 (purge_empty_blocks): Declare.
23361 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
23363 PR rtl-optimization/42249
23364 * sel-sched.c (try_replace_dest_reg): When chosen register
23365 and original register is the same, do not bail out early, but
23366 still check all original insns for validity of replacing destination
23367 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
23370 2010-01-14 Jakub Jelinek <jakub@redhat.com>
23373 Port from no-undefined-overflow branch:
23374 2009-03-09 Richard Guenther <rguenther@suse.de>
23376 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
23378 2010-01-14 Richard Guenther <rguenther@suse.de>
23381 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
23383 2010-01-14 Ira Rosen <irar@il.ibm.com>
23385 PR tree-optimization/42709
23386 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
23387 as scalar type in creation of constant vector operand.
23389 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23392 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
23393 (check-parallel-%): Match `testsuite' directory component only
23396 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
23398 PR translation/39521
23399 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
23402 2010-01-13 Richard Guenther <rguenther@suse.de>
23404 PR tree-optimization/42730
23405 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
23408 2010-01-13 Steve Ellcey <sje@cup.hp.com>
23411 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
23412 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
23415 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
23417 * config/bfin/libgcc-bfin.ver: Regenerate based on current
23418 libgcc-std.ver. Add entries for ___smulsi3_highpart and
23419 ___umulsi3_highpart.
23421 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
23422 rather than schedule_insns if the pass is enabled.
23424 2010-01-13 Martin Jambor <mjambor@suse.cz>
23426 PR tree-optimization/42704
23427 * tree-sra.c (sra_modify_assign): Do not delete assignments to
23430 2010-01-13 Martin Jambor <mjambor@suse.cz>
23432 PR tree-optimization/42703
23433 * tree-sra.c (analyze_access_subtree): Check that we can build a
23434 reference to the original data within the aggregate.
23436 2010-01-13 Richard Guenther <rguenther@suse.de>
23438 PR tree-optimization/42705
23439 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
23441 2010-01-13 Richard Guenther <rguenther@suse.de>
23443 PR middle-end/42716
23444 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
23446 2010-01-13 Jakub Jelinek <jakub@redhat.com>
23449 * var-tracking.c (values_to_unmark): New variable.
23450 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
23451 values_to_unmark vector. Moved body to...
23452 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
23453 instead queue it into values_to_unmark vector.
23454 (vt_find_locations): Free values_to_unmark vector.
23456 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
23458 * config/s390/s390.c (override_options): Set
23459 default of max-pending-list-length to 256
23461 2010-01-13 Richard Guenther <rguenther@suse.de>
23464 * tree-pass.h (PROP_gimple_lcx): New.
23465 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
23466 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
23467 before the final cleanup_eh.
23468 (dump_properties): Dump PROP_gimple_lcx.
23469 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
23470 (tree_lower_complex_O0): Remove.
23471 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
23472 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
23473 tree_lower_complex, schedule TODO_update_ssa.
23474 * lto-streamer-out.c (output_function): Stream the functions
23476 * lto-streamer-in.c (input_function): Likewise.
23477 (lto_read_body): Do not override them here.
23479 2010-01-12 Joseph Myers <joseph@codesourcery.com>
23482 * c-typeck.c (build_c_cast): Fold value cast to union type before
23483 wrapping it in a CONSTRUCTOR.
23485 2010-01-12 Jakub Jelinek <jakub@redhat.com>
23487 PR rtl-optimization/42699
23488 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
23491 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23493 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
23494 SUBTARGET_WARN_UNUSED_SPEC): Move ...
23495 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
23496 SUBTARGET_WARN_UNUSED_SPEC): ... here
23497 * config/mips/iris5.h (LIBGCC_SPEC): Define.
23499 2010-01-12 Julian Brown <julian@codesourcery.com>
23501 * config/arm/neon-schedgen.ml (Utils): Don't try to
23502 open missing module.
23503 (find_with_result): New.
23505 2010-01-12 Jakub Jelinek <jakub@redhat.com>
23508 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
23509 sharing when canonicalizing ({lt,ge}u (plus a b) b).
23511 PR tree-optimization/42645
23512 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
23513 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
23514 decl_map, set processing_debug_stmt to -1 and return name without
23517 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
23519 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
23520 binutils version, and reword target configuration description.
23522 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
23524 * config/avr/avr.h (LINKER_NAME): Remove.
23526 2010-01-11 Janis Johnson <janis187@us.ibm.com>
23529 * config/rs6000/rs6000.c (rs6000_override_options): On targets
23530 that support VSX, warn for -mno-altivec if vsx is not disabled,
23533 2010-01-11 Joseph Myers <joseph@codesourcery.com>
23534 Shujing Zhao <pearly.zhao@oracle.com>
23536 PR translation/42469
23537 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
23538 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
23539 character between option name and help text.
23540 * c.opt (imultilib): Likewise.
23542 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
23544 * lto-streamer-out.c (output_unreferenced_globals): Output static
23547 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
23549 PR rtl-optimization/42621
23550 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
23551 optimizing for size.
23552 (duplicate_computed_gotos): Remove now-redundant check.
23554 2010-01-10 Steve Ellcey <sje@cup.hp.com>
23557 * configure.ac: Save and restore LDFLAGS and LIBS
23558 * configure: Regenerate.
23560 2010-01-10 Richard Guenther <rguenther@suse.de>
23562 PR middle-end/42667
23563 * builtins.c (fold_builtin_strlen): Add type argument and
23564 convert the resulting length to it.
23565 (fold_builtin_1): Adjust.
23567 2010-01-09 Jakub Jelinek <jakub@redhat.com>
23569 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
23570 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
23572 (num_insns_constant_wide): Adjust for that change.
23574 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23577 * web.c (union_defs): Add used argument, to combine uses of
23578 uninitialized regs.
23579 (entry_register): Adjust type and tests of used argument.
23580 (web_main): Widen used for new use. Pass it to union_defs.
23581 * df.h (union_defs): Adjust prototype.
23583 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23586 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
23587 uses in new incoming argument. Free body.
23588 (reset_debug_uses_in_loop): New.
23589 (analyze_insn_to_expand_var): Call the latter if the former found
23590 anything. Fix whitespace. Reject invalid dest overlaps before
23591 going through all insns in the loop.
23593 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23596 * haifa-sched.c (dying_use_p): Debug insns don't count.
23598 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23600 PR middle-end/42363
23601 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
23602 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
23603 (verify_gimple_call): Reject LHS in noreturn calls.
23605 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23609 * tree-vect-loop-manip.c (adjust_info): New type.
23610 (adjust_vec): New pointer to vector.
23611 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
23612 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
23613 (slpeel_update_phis_for_duplicate_loop): Use them.
23614 (slpeel_update_phi_nodes_for_guard1): Likewise.
23615 (slpeel_update_phi_nodes_for_guard2): Likewise.
23616 (slpeel_tree_peel_loop_to_edge): Likewise.
23617 (vect_update_ivs_after_vectorizer): Likewise.
23619 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23621 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
23622 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
23624 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23626 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
23627 bogus uninitialized warning.
23629 2010-01-09 Richard Guenther <rguenther@suse.de>
23631 PR middle-end/42512
23632 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
23633 the evolution is compatible with the initial condition.
23635 2010-01-09 Jakub Jelinek <jakub@redhat.com>
23637 * gcc.c (process_command): Update copyright notice dates.
23638 * gcov.c (print_version): Likewise.
23639 * gcov-dump.c (print_version): Likewise.
23640 * mips-tfile.c (main): Likewise.
23641 * mips-tdump.c (main): Likewise.
23643 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
23646 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
23648 (rotlhi3_8): Delete.
23650 (rotlsi3_8): Delete.
23651 (rotlsi3_16): Delete.
23652 (rotlsi3_24): Delete.
23653 (rotl<mode>3): New.
23654 (*rotw<mode>3): New.
23655 (*rotb<mode>3): New.
23656 * config/avr/avr.c (avr_rotate_bytes): New function.
23657 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
23659 2010-01-08 Steve Ellcey <sje@cup.hp.com>
23662 * configure.ac: Modify -rdynamic check.
23663 * configure: Regenerate.
23665 2010-01-08 DJ Delorie <dj@redhat.com>
23667 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
23668 register popping order.
23670 2010-01-08 Richard Guenther <rguenther@suse.de>
23673 * c.opt (fsigned-char): Also let LTO handle this option.
23674 (funsigned-char): Likewise.
23676 2010-01-07 Richard Guenther <rguenther@suse.de>
23678 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
23679 (gimple_op): Likewise.
23680 (gimple_op_ptr): Likewise.
23681 (gimple_assign_set_lhs): Remove gcc_assert.
23682 (gimple_assign_set_rhs1): Likewise.
23683 (gimple_assign_set_rhs2): Likewise.
23684 (gimple_call_set_lhs): Likewise.
23685 (gimple_call_set_fn): Likewise.
23686 (gimple_call_set_fndecl): Likewise.
23687 (gimple_call_fndecl): Likewise.
23688 (gimple_call_return_type): Likewise.
23689 (gimple_call_set_chain): Likewise.
23690 (gimple_call_num_args): Likewise.
23691 (gimple_call_set_arg): Likewise.
23692 (gimple_cond_set_code): Likewise.
23693 (gimple_cond_set_lhs): Likewise.
23694 (gimple_cond_set_rhs): Likewise.
23695 (gimple_cond_set_true_label): Likewise.
23696 (gimple_cond_set_false_label): Likewise.
23697 (gimple_label_set_label): Likewise.
23698 (gimple_goto_set_dest): Likewise.
23699 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
23700 (gimple_debug_bind_get_value): Likewise.
23701 (gimple_debug_bind_get_value_ptr): Likewise.
23702 (gimple_debug_bind_set_var): Likewise.
23703 (gimple_debug_bind_set_value): Likewise.
23704 (gimple_debug_bind_reset_value): Likewise.
23705 (gimple_debug_bind_has_value_p): Likewise.
23706 (gimple_return_retval_ptr): Remove gcc_assert.
23707 (gimple_return_retval): Likewise.
23708 (gimple_return_set_retval): Likewise.
23709 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
23710 (safe_referenced_var_iterator): Remove.
23711 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
23712 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
23713 (fill_referenced_var_vec): Remove.
23714 (first_readonly_imm_use): Remove redundant gcc_assert.
23715 (phi_arg_index_from_use): Combine gcc_asserts.
23716 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
23717 (first_imm_use_stmt): Remove redundant gcc_assert.
23718 * tree-cfg.c (verify_gimple_call): Verify function and chain
23719 operands. Verify arguments.
23720 (verify_types_in_gimple_stmt): Verify condition code and labels.
23722 2010-01-07 Richard Guenther <rguenther@suse.de>
23724 PR tree-optimization/42641
23725 * sese.c (rename_map_elt_info): Use the SSA name version, do
23728 2010-01-07 Jakub Jelinek <jakub@redhat.com>
23730 PR tree-optimization/42625
23731 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
23732 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
23734 2010-01-07 Duncan Sands <baldrick@free.fr>
23736 * Makefile.in (PLUGIN_HEADERS): Add version.h.
23738 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
23741 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
23742 note itself is not function_invariant_p.
23744 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
23746 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
23747 Do not add the DF_NOTE problem.
23748 * store-motion.c (execute_rtl_store_motion): Likewise.
23750 2010-01-07 Martin Jambor <mjambor@suse.cz>
23752 PR tree-optimization/42157
23753 * tree-sra.c (compare_access_positions): Stabilize sort if both
23754 accesses have integer types, return zero immediately if they are the
23757 2010-01-06 Richard Henderson <rth@redhat.com>
23759 PR middle-end/41883
23760 * haifa-sched.c (add_to_note_list): Merge into ...
23761 (concat_note_lists): ... here, and ...
23762 (unlink_other_notes, rm_other_notes): Merge into...
23763 (remove_notes): ... here. Create REG_SAVE_NOTEs for
23764 NOTE_INSN_EPILOGUE_BEG.
23766 2010-01-06 Richard Guenther <rguenther@suse.de>
23768 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
23769 not inline regular functions into always-inline functions.
23771 2010-01-06 Nick Clifton <nickc@redhat.com>
23773 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
23774 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
23776 (OVERRIDE_OPTIONS): Delete.
23777 (OPTIMIZATION_OPTIONS): Define.
23778 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
23779 * config/rx/rx.c (rx_handle_option): Issue an error message if
23780 -mcpu=rx200 and -fpu are used together.
23781 (rx_set_optimization_options): New function. Issue an error
23782 message if an optimization attribute attempts to reset the FPU/
23783 math optimization pairing.
23784 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
23785 * config/rx/rx.opt: Set the default to 32-bit doubles.
23786 * config/rx/t-rx: Add multilibs for -nofpu option.
23787 * doc/invoke.texi: Update documentation of RX options.
23789 2010-01-06 Richard Guenther <rguenther@suse.de>
23791 * tree-ssa-pre.c (name_to_id): New global.
23792 (alloc_expression_id): Simplify SSA name handling.
23793 (lookup_expression_id): Likewise.
23794 (init_pre): Zero name_to_id.
23795 (fini_pre): Free it.
23797 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
23799 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
23801 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
23804 * config/i386/sse.md (smaxv2di3): New.
23805 (umaxv2di3): Likewise.
23806 (sminv2di3): Likewise.
23807 (uminv2di3): Likewise.
23809 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
23812 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
23813 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
23814 (legitimize_tls_address): Likewise.
23815 (sparc_tls_referenced_p): Likewise.
23816 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
23817 and adjust calls to legitimize_pic_address.
23818 (legitimate_constant_p) Use sparc_tls_referenced_p.
23819 (legitimate_pic_operand_p): Likewise.
23820 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
23821 (sparc_tls_symbol_ref_1): Delete.
23822 (sparc_tls_referenced_p): Make static, recognize specific patterns.
23823 (legitimize_tls_address): Make static, handle CONST patterns.
23824 (legitimize_pic_address): Make static, remove unused parameter and
23825 adjust recursive calls.
23826 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
23827 and adjust call to legitimize_pic_address.
23828 (sparc_output_mi_thunk): Likewise.
23830 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
23831 H.J. Lu <hongjiu.lu@intel.com>
23834 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
23835 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
23836 operands to make them signed.
23839 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
23842 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
23843 GTU to GT for V4SI and V2DI.
23845 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
23846 (umin<mode>3): Removed.
23848 (uminv4si3): Likewise.
23850 2010-01-05 Martin Jambor <mjambor@suse.cz>
23852 PR tree-optimization/42462
23853 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
23854 current_function_decl to helper functions and macros.
23856 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23859 * flags.h: Don't include real.h.
23860 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
23861 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
23862 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
23863 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
23864 * dominance.c: Update copyright.
23865 * gimple.c (walk_gimple_op): Remove inline.
23866 * tree-ssa-reassoc.c: Include real.h.
23867 * Makefile.in (FLAGS_H): Remove $(REAL_H).
23868 (tree-ssa-reassoc.o): Depend on $(REAL_H).
23870 2010-01-05 Nick Clifton <nickc@redhat.com>
23872 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
23873 register to push into the stack frame when the accumulator has to
23874 be saved during interrupts.
23876 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
23878 * doc/invoke.texi: Remove the documentation about option
23879 -Wunreachable-code.
23880 * common.opt (Wunreachable-code): Preserved for backward
23882 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
23883 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
23884 the backward compatibility flag section.
23886 2010-01-05 Richard Guenther <rguenther@suse.de>
23888 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
23890 2010-01-05 Jakub Jelinek <jakub@redhat.com>
23893 * cfgexpand.c (expand_one_var): Diagnose too large variables.
23895 PR tree-optimization/42508
23896 * tree-sra.c (convert_callers): Check for recursive call
23897 by comparing cgraph nodes instead of decls.
23898 (modify_function): Call ipa_modify_formal_parameters also
23899 on all same_body aliases.
23901 * cgraphunit.c (cgraph_materialize_all_clones): Compare
23902 cgraph nodes when checking for same_body aliases.
23904 2010-01-05 Richard Guenther <rguenther@suse.de>
23906 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
23907 allocation and lookup.
23908 (get_or_alloc_expr_for_constant): Likewise.
23909 (phi_translate): Sink allocation.
23911 2010-01-04 Richard Guenther <rguenther@suse.de>
23913 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
23914 a new entry only if needed.
23915 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
23916 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
23918 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
23920 (phi_translate): Handle CONSTANTs early.
23922 2010-01-04 Martin Jambor <mjambor@suse.cz>
23924 PR tree-optimization/42398
23925 * tree-sra.c (struct access): Removed flag grp_different_types.
23926 (dump_access): Do not dump the removed flag.
23927 (sort_and_splice_var_accesses): Do not set the removed flag.
23928 (sra_modify_expr): Check for type compatibility directly.
23930 2010-01-04 Martin Jambor <mjambor@suse.cz>
23932 PR tree-optimization/42366
23933 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
23934 edges with variable number of parameters.
23935 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
23936 flag instead of asserting it.
23937 (ipa_read_node_info): Read uses_analysis_done flag.
23939 2010-01-04 Richard Guenther <rguenther@suse.de>
23941 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
23942 iterative_hash_* as intended.
23943 (vn_reference_compute_hash): Likewise. Simplify hashing
23945 (vn_reference_lookup_2): Likewise.
23946 (vn_nary_op_compute_hash): Likewise.
23947 (vn_phi_compute_hash): Likewise.
23948 (expressions_equal_p): Remove strange code.
23949 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
23950 (pre_expr_hash): Likewise. Simplify hashing SSA names.
23951 (bitmap_insert_into_set_1): Take value-id as parameter.
23952 (add_to_value): Pass it.
23953 (bitmap_insert_into_set): Likewise.
23954 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
23956 2010-01-04 Jakub Jelinek <jakub@redhat.com>
23959 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
23960 (do_self_spec): For switches with SWITCH_IGNORE set set also
23961 SWITCH_IGNORE_PERMANENTLY.
23962 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
23965 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
23967 * lto-streamer-out.c (output_unreferenced_globals): Output the full
23968 tree of an unreferenced global var.
23970 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
23973 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
23974 GTU to GT for V4SI and V2DI.
23976 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
23977 (umin<mode>3): Removed.
23979 (uminv4si3): Likewise.
23981 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
23984 * collect2.c (main): Turn on trace in collect2 if -v is passed
23987 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
23989 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
23990 description of expression operand.
23992 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
23994 * configure.ac: Add install-html to target_list for Make-hooks.
23995 * configure: Regenerate.
23996 * fortran/Make-lang.in (F95_HTMLFILES): New.
23997 (fortran.html): Use it.
23998 (fortran.install-html): New.
23999 * Makefile.in (install-html): Add lang.install-html.
24000 * java/Make-lang.in (JAVA_HTMLFILES): New.
24001 (java.html): Use it.
24002 (java.install-html): New.
24003 * objc/Make-lang.in (objc.install-html): New.
24004 * objcp/Make-lang.in (obj-c++.install-html): New.
24005 * cp/Make-lang.in (c++.install-html): New.
24006 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
24007 * lto/Make-lang.in (lto.install-html): New.
24009 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
24012 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
24014 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
24016 PR rtl-optimization/41862
24017 * store-motion.c (store_killed_in_insn, compute_store_table,
24018 remove_reachable_equiv_notes, replace_store_insn,
24019 build_store_vectors): Ignore all DEBUG_INSNs.
24021 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
24024 * common.opt: Add dumpdir.
24026 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
24028 (option_map): Add --dumpdir.
24030 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
24032 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
24034 * opts.c (decode_options): Try dump_dir_name first if
24035 dump_base_name isn't an absolute path.
24036 (common_handle_option): Handle OPT_dumpdir.
24038 * toplev.c (dump_dir_name): New.
24039 (print_switch_values): Also ignore -dumpdir.
24041 * toplev.h (dump_dir_name): New.
24043 2010-01-03 Richard Guenther <rguenther@suse.de>
24045 PR tree-optimization/42589
24046 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
24047 double-word expansion of bswap32.
24049 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
24051 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
24052 with BLOCK_FOR_INSN.
24053 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
24054 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
24055 noce_process_if_block): Likewise.
24056 * gcse.c (compute_local_properties, insert_expr_in_table,
24057 insert_set_in_table, canon_list_insert, find_avail_set,
24058 pre_insert_copy_insn): Likewise.
24060 * basic-block.h (BLOCK_NUM): Move from here...
24061 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
24063 2010-01-03 Richard Guenther <rguenther@suse.de>
24065 PR tree-optimization/42438
24066 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
24067 contains_may_not_return_call flag.
24068 (BB_MAY_NOTRETURN): New.
24069 (valid_in_sets): Trapping nary operations are not valid
24070 in blocks that may not return.
24071 (insert_into_preds_of_block): Remove check for trapping expressions.
24072 (compute_avail): Compute also BB_MAY_NOTRETURN.
24074 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
24076 * doc/invoke.texi: Add 2010 to copyright years.
24078 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
24080 * config/sparc/sparc.c: Fix formatting nits.
24082 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
24083 Alexander Monakov <amonakov@ispras.ru>
24085 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
24087 2010-01-02 Richard Guenther <rguenther@suse.de>
24089 PR middle-end/42577
24090 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
24091 (simplify_switch_using_ranges): Mark to be removed edges
24094 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24096 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
24098 * collect2.c (scan_libraries): Add missing argument in call to
24101 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
24104 * config/alpha/predicates.md (aligned_memory_operand): Return false
24106 (unaligned_memory_operand): Return true for CQImode.
24107 * config/alpha/alpha.c (get_aligned_mem): Assert that location
24108 doesn not cross aligned SImode word boundary.
24110 2010-01-02 Anatoly Sokolov <aesok@post.ru>
24112 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
24114 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
24115 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
24117 2010-01-02 Richard Guenther <rguenther@suse.de>
24120 * toplev.c (compile_file): Emit LTO marker properly. Change
24121 it to __gnu_lto_v1.
24122 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
24124 2010-01-01 Richard Guenther <rguenther@suse.de>
24127 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
24129 2010-01-01 Richard Guenther <rguenther@suse.de>
24132 * c-decl.c (grokdeclarator): For zero-size arrays force
24133 structural equality checks as layout_type does.
24135 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
24137 * builtins.c: Update copyright to 2010.
24139 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
24142 * lto-streamer-out.c (produce_asm): Revert the last change.
24143 (copy_function): Likewise.
24145 * lto-streamer.c (lto_get_section_name): Skip any leading
24148 2010-01-01 Richard Guenther <rguenther@suse.de>
24150 PR middle-end/42559
24151 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
24155 Copyright (C) 2010 Free Software Foundation, Inc.
24157 Copying and distribution of this file, with or without modification,
24158 are permitted in any medium without royalty provided the copyright
24159 notice and this notice are preserved.