1 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3 * config/arm/arm.md (enabled): Test the value of arch_enabled
4 rather than just using it.
6 2010-08-27 Olivier Hainque <hainque@adacore.com>
7 Eric Botcazou <ebotcazou@adacore.com>
9 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
10 cover all the possible offsets from this base.
11 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
13 2010-08-26 Jakub Jelinek <jakub@redhat.com>
15 PR tree-optimization/44485
16 * calls.c (flags_from_decl_or_type): For const or pure
17 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
18 together with ECF_CONST resp. ECF_PURE.
19 * builtins.c (expand_builtin): Use flags_from_decl_or_type
20 instead of querying flags directly.
21 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
22 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
24 2010-08-26 Richard Guenther <rguenther@suse.de>
26 PR tree-optimization/45255
27 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P
28 statics and externals are also invariant.
30 2010-08-25 Jakub Jelinek <jakub@redhat.com>
32 PR rtl-optimization/44858
33 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
34 newi2pat, make sure they don't affect newpat.
36 PR rtl-optimization/45400
37 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
38 SUBREG_REG if both modes are of MODE_INT class.
40 2010-08-25 Julian Brown <julian@codesourcery.com>
42 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
43 * config/arm/arm.md (generic_sched): No for Cortex-A5.
44 (generic_vfp): Likewise.
45 (cortex-a5.md): Include.
46 * config/arm/cortex-a5.md: New.
48 2010-08-25 Richard Guenther <rguenther@suse.de>
50 * alias.c (get_alias_set): Assign a single alias-set to
52 * gimple.c (gimple_get_alias_set): Remove special handling
55 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
58 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
59 dead_or_set_p when computing i0_feeds_i2_n.
61 * combine.c (find_split_point): Undo canonicalization of multiply-add
62 to (minus x (mult)) when it seems likely that this will increase the
65 2010-08-25 Richard Guenther <rguenther@suse.de>
68 * lto-streamer.c (lto_record_common_node): Do not mess with
69 TYPE_CANONICAL when not in lto.
70 * gimple.c (gimple_register_type): Likewise.
72 2010-08-25 Richard Guenther <rguenther@suse.de>
74 PR tree-optimization/45316
75 * tree-ssa-pre.c (eliminate): Properly clean EH info.
77 2010-08-25 Richard Guenther <rguenther@suse.de>
79 PR tree-optimization/45393
80 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
81 and clean EH info. Avoid SSA update.
82 (execute_cse_sincos): Cleanup the CFG if it has changed.
84 2010-08-25 Richard Guenther <rguenther@suse.de>
87 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
88 TARGET_MEM_REF in alignment computation.
90 2010-08-25 Jakub Jelinek <jakub@redhat.com>
92 PR tree-optimization/45059
93 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
94 type conversions from newop{1,2}. Assert t is a comparison and
95 newop{1,2} after the stripping are gimple vals.
97 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
99 * config/arm/iterators.md (VU, SE, V_widen_l): New.
101 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for
103 (vec_unpack<US>_lo_<mode>): Likewise.
104 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
105 (neon_vec_unpack<US>_lo_<mode>): Likewise.
106 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
107 (vec_widen_<US>mult_hi_<mode>): Likewise.
108 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
109 (neon_vec_<US>mult_hi_<mode>"): Likewise.
110 (neon_unpack<US>_<mode>): Widening move intermediate step for
111 vectorizing without -mvectorize-with-neon-quad.
112 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
113 for vectorizing without -mvectorize-with-neon-quad.
114 * config/arm/predicates.md (vect_par_constant_high): Check for
115 high-half lanes of a vector.
116 (vect_par_constant_low): Check for low-half lanes of a vector.
118 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
120 * tree-if-conv.c (struct ifc_dr): New.
122 (DR_WRITTEN_AT_LEAST_ONCE): New.
123 (DR_RW_UNCONDITIONALLY): New.
124 (memref_read_or_written_unconditionally): Use the cached values
126 (write_memref_written_at_least_once): Same.
127 (if_convertible_loop_p): Initialize and free DR->aux fields.
129 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
131 * gimple.c (gimple_could_trap_p_1): Not static anymore.
132 Pass an extra bool parameter include_mem.
133 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
134 (gimple_assign_rhs_could_trap_p): Same.
135 * gimple.h (gimple_could_trap_p_1): Declared.
136 * tree-data-ref.h (same_data_refs_base_objects): New.
137 (same_data_refs): New.
138 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
139 (write_memrefs_written_at_least_once): New.
140 (ifcvt_memrefs_wont_trap): New.
141 (operations_could_trap): New.
142 (ifcvt_could_trap_p): New.
143 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
144 Gets a vector of data refs.
145 (if_convertible_stmt_p): Same.
146 (if_convertible_loop_p_1): New.
147 (if_convertible_loop_p): Call if_convertible_loop_p_1.
149 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
151 * common.opt (ftree-loop-if-convert-stores): New flag.
152 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
153 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
154 the created statement before GSI.
155 (if_convertible_phi_p): Allow virtual phi nodes when
156 flag_loop_if_convert_stores is set.
157 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
158 Do not handle types that do not match is_gimple_reg_type.
159 Remove loop and bb parameters. Call gimple_could_trap_p instead of
160 when flag_loop_if_convert_stores is set, as LHS can contain
162 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
163 to if_convertible_gimple_assign_stmt_p.
164 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
165 (replace_phi_with_cond_gimple_assign_stmt): Renamed
166 predicate_scalar_phi. Do not handle virtual phi nodes.
167 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
168 Call predicate_scalar_phi.
169 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
170 just after the labels for flag_loop_if_convert_stores, otherwise
171 insert the predicate in the end of the BB.
172 (predicate_mem_writes): New.
173 (combine_blocks): Call predicate_all_scalar_phis. When
174 flag_loop_if_convert_stores is set, call predicate_mem_writes.
175 (tree_if_conversion): Call mark_sym_for_renaming when
176 flag_loop_if_convert_stores is set.
177 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
178 flag_loop_if_convert_stores is set.
180 2010-08-24 Anatoly Sokolov <aesok@post.ru>
182 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
183 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
184 (pa_function_value): Make static.
185 (override_options): Rename to...
186 (pa_option_override): ...this. Make static.
187 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
188 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
189 TARGET_OPTION_OVERRIDE): Define.
190 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
191 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
193 * config/pa/pa-protos.h (override_options): Remove.
195 2010-08-24 Richard Guenther <rguenther@suse.de>
198 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
199 if addr->index is NULL or zero.
200 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
201 TARGET_MEM_REF more properly.
202 (indirect_ref_may_alias_decl_p): Likewise.
203 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
204 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more
207 2010-08-23 Anatoly Sokolov <aesok@post.ru>
209 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
210 (m32c_override_options): Rename to...
211 (m32c_option_override): ...this. Make static.
212 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
213 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
215 * config/m32c/m32c-protos.h (m32c_override_options,
216 m32c_function_value_regno_p): Remove.
218 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
220 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
221 Fix a typo in a previous commit.
223 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
225 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
226 Pre-initialize innerloop_iters to one.
228 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
230 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
231 existing static function global.
233 *tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
234 is changed to global.
236 *tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
237 may_be_nonaddressable_p on base, and don't collect this reference
238 if the address of the base could not be taken.
240 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
242 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
243 enable the compiler to autovectorize mathmetical functions for
244 power7 using the Mathematical Acceleration Subsystem library.
246 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
247 handle which vector math library we have.
248 (rs6000_override_options): Add -mveclibabi=mass support.
249 (rs6000_builtin_vectorized_libmass): New function to handle auto
250 vectorizing math functions that are in the MASS library.
251 (rs6000_builtin_vectorized_function): Call it.
253 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
256 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
259 * gthr-posix.h (__gthread_active_init): Delete.
260 (__gthread_active_p): Do activity check here.
261 Don't include errno.h on hppa-hpux. Update comment.
262 * gthr-posix95.h (__gthread_active_init): Delete.
263 (__gthread_active_p): Do activity check here.
264 Don't include errno.h on hppa-hpux. Update comment.
265 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
266 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
267 add -lpthread when -mt or -pthread is specified.
268 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
269 (LINK_GCC_C_SEQUENCE_SPEC): Define.
270 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
271 (stublib.c, pthread_default_stacksize_np-stub.o,
272 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
273 $(T)libgcc_stub.a): Add methods.
274 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
275 (stublib.c, pthread_default_stacksize_np-stub.o,
276 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
277 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
278 pthread_mutex_unlock): New stubs.
280 2010-08-22 Joseph Myers <joseph@codesourcery.com>
282 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
283 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
285 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
286 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
287 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
288 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
289 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
291 * cppspec.c: Include opts.h.
292 (lang_specific_driver): Use cl_decoded_option structures.
293 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
294 * doc/tm.texi: Regenerate.
295 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
296 (driver_handle_option): Allow driver options needing no special
298 (process_command): Decode options before call to
299 lang_specific_driver. Pass decoded options to
300 lang_specific_driver.
301 * gcc.h (lang_specific_driver): Update prototype.
302 * gccspec.c: Include opts.h.
303 (lang_specific_driver): Use cl_decoded_option structures.
304 * opts-common.c (option_ok_for_language, generate_option,
305 generate_option_input_file): New.
306 (decode_cmdline_option): Use option_ok_for_language.
307 (decode_cmdline_options_to_array): Use generate_option_input_file.
308 (handle_generated_option): Use generate_option.
309 * opts.h (generate_option, generate_option_input_file): Declare.
311 2010-08-22 Anatoly Sokolov <aesok@post.ru>
313 * config/mips/mips.c (mips_override_options): Rename to...
314 (mips_option_override): ...this. Make static.
315 (TARGET_OPTION_OVERRIDE): Define.
316 (mips_in_small_data_p): Update comment.
317 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
318 (FIXED_REGISTERS): Update comment.
319 * config/mips/mips-protos.h (mips_override_options): Remove.
321 2010-08-21 Olivier Hainque <hainque@adacore.com>
323 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
325 2010-08-21 Olivier Hainque <hainque@adacore.com>
327 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
328 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
330 2010-08-20 Jan Hubicka <jh@suse.cz>
332 * tree-pass.h (pass_ipa_cdtor_merge): New function.
333 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
335 (record_cdtor_fn): Move to ipa.c; do not test for
337 (build_cdtor): Move to ipa.c; add code avoiding construction
338 when target have ctors/dtors and there is only one ctor/dtor at given
340 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize sort;
341 reverse order of constructors.
342 (cgraph_build_cdtor_fns):Move to ipa.c; rename to build_cdtor_fns.
343 (cgraph_finalize_function): Do not call record_cdtor_fn.
344 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
345 (cgraph_build_static_cdtor): Move to ipa.c.
346 * ipa.c: Include target.h and tree-iterator.h.
347 (cgraph_build_static_cdtor, static_ctors, static_dtors,
348 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
349 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
350 pass_ipa_cdtor_merge): New.
351 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
352 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of bounds access.
354 2010-08-20 Jan Hubicka <jh@suse.cz>
358 * cgraph.h (cgraph_only_called_directly_p,
359 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
361 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
363 (cgraph_finalize_function): Static cdtors are reachable.
364 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
366 2010-08-20 Jan Hubicka <jh@suse.cz>
368 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of flag_wpa.
369 * lto-streamer-out.c (lto_output): Likewise.
370 * passes.c (ipa_write_optimization_summaries): Initialize statement uids.
372 2010-08-20 Olivier Hainque <hainque@adacore.com>
374 * tree.h (alias_diag_flags): New enum.
375 (alias_pair): Add an 'emitted_diags' field.
376 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
377 (assemble_alias): Initialize emitted_diags of new pairs.
379 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
381 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
382 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
383 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
384 (STACK_CHECK_PROTECT): Define.
385 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
386 (output_probe_stack_range): Likewise.
387 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
388 builtin stack checking is enabled.
389 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
390 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
391 (probe_stack_range): New insn.
393 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
396 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
399 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
402 2010-08-20 Jakub Jelinek <jakub@redhat.com>
405 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
406 to cover zero extension into 64-bit register.
407 (*sse2_pextrw): Likewise.
408 (*sse4_1_pextrd_zext): New insn.
410 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
412 revert r163410, partially revert r163267.
413 * config/rs6000/darwin.h (LIB_SPEC): Remove.
414 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
417 2010-08-20 Jakub Jelinek <jakub@redhat.com>
420 * builtins.c (expand_builtin): Don't optimize away
421 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
423 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
425 * config/i386/i386.md (ashift RSP splitter): Remove splitter.
426 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
427 alternative 1 of operand 2.
429 2010-08-20 Jakub Jelinek <jakub@redhat.com>
430 Paolo Bonzini <bonzini@gnu.org>
432 * simplify-rtx.c (simplify_unary_operation_1): Optimize
433 (sign_extend (zero_extend (...)) and
434 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
436 2010-08-20 Jakub Jelinek <jakub@redhat.com>
438 PR rtl-optimization/45353
439 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
440 after bb_note is a BARRIER.
442 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
444 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
447 2010-08-20 Jakub Jelinek <jakub@redhat.com>
448 Michael Matz <matz@suse.de>
450 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
452 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
454 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
455 (ggc_mark_roots): ...here.
457 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
459 * vec.h (FOR_EACH_VEC_ELT): Define.
461 * cfgloop.c: Likewise.
462 * cfgloopmanip.c: Likewise.
463 * cgraph.c: Likewise.
464 * cgraphunit.c: Likewise.
465 * combine.c: Likewise.
466 * config/bfin/bfin.c: Likewise.
467 * config/mips/mips.c: Likewise.
468 * config/rs6000/rs6000.c: Likewise.
469 * dbxout.c: Likewise.
470 * df-scan.c: Likewise.
471 * dominance.c: Likewise.
473 * dwarf2out.c: Likewise.
474 * except.c: Likewise.
476 * function.c: Likewise.
478 * genattr.c: Likewise.
479 * ggc-common.c: Likewise.
480 * gimplify.c: Likewise.
481 * graphite-blocking.c: Likewise.
482 * graphite-clast-to-gimple.c: Likewise.
483 * graphite-dependences.c: Likewise.
484 * graphite-interchange.c: Likewise.
485 * graphite-poly.c: Likewise.
486 * graphite-scop-detection.c: Likewise.
487 * graphite-sese-to-poly.c: Likewise.
488 * graphite.c: Likewise.
489 * haifa-sched.c: Likewise.
491 * implicit-zee.c: Likewise.
492 * ipa-prop.c: Likewise.
493 * ipa-struct-reorg.c: Likewise.
495 * ira-build.c: Likewise.
496 * ira-color.c: Likewise.
497 * ira-emit.c: Likewise.
498 * lambda-code.c: Likewise.
499 * loop-invariant.c: Likewise.
500 * loop-unroll.c: Likewise.
501 * lower-subreg.c: Likewise.
502 * lto-cgraph.c: Likewise.
503 * lto-opts.c: Likewise.
504 * lto-streamer-in.c: Likewise.
505 * lto-streamer-out.c: Likewise.
506 * lto-streamer.c: Likewise.
507 * lto-symtab.c: Likewise.
508 * matrix-reorg.c: Likewise.
510 * predict.c: Likewise.
511 * print-tree.c: Likewise.
512 * sdbout.c: Likewise.
513 * sel-sched-dump.c: Likewise.
514 * sel-sched-ir.c: Likewise.
515 * sel-sched.c: Likewise.
517 * stor-layout.c: Likewise.
518 * tree-cfg.c: Likewise.
519 * tree-cfgcleanup.c: Likewise.
520 * tree-chrec.c: Likewise.
521 * tree-data-ref.c: Likewise.
522 * tree-emutls.c: Likewise.
523 * tree-inline.c: Likewise.
524 * tree-into-ssa.c: Likewise.
525 * tree-loop-distribution.c: Likewise.
526 * tree-loop-linear.c: Likewise.
527 * tree-mudflap.c: Likewise.
528 * tree-outof-ssa.c: Likewise.
529 * tree-parloops.c: Likewise.
530 * tree-predcom.c: Likewise.
531 * tree-pretty-print.c: Likewise.
532 * tree-scalar-evolution.c: Likewise.
533 * tree-ssa-live.c: Likewise.
534 * tree-ssa-loop-im.c: Likewise.
535 * tree-ssa-loop-ivcanon.c: Likewise.
536 * tree-ssa-loop-ivopts.c: Likewise.
537 * tree-ssa-loop-manip.c: Likewise.
538 * tree-ssa-loop-niter.c: Likewise.
539 * tree-ssa-loop-prefetch.c: Likewise.
540 * tree-ssa-phiprop.c: Likewise.
541 * tree-ssa-pre.c: Likewise.
542 * tree-ssa-reassoc.c: Likewise.
543 * tree-ssa-sccvn.c: Likewise.
544 * tree-ssa-structalias.c: Likewise.
545 * tree-ssa.c: Likewise.
546 * tree-vect-data-refs.c: Likewise.
547 * tree-vect-loop-manip.c: Likewise.
548 * tree-vect-loop.c: Likewise.
549 * tree-vect-patterns.c: Likewise.
550 * tree-vect-slp.c: Likewise.
551 * tree-vect-stmts.c: Likewise.
552 * tree-vrp.c: Likewise.
554 * value-prof.c: Likewise.
555 * var-tracking.c: Likewise.
556 * varasm.c: Likewise.
557 * vmsdbgout.c: Likewise.
559 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
560 Richard Guenther <richard.guenther@gmail.com>
562 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
563 copy the src value and return a copy.
564 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
565 (C++ Volatiles): Adjust to describe C++ semantics only.
567 2010-08-20 Joseph Myers <joseph@codesourcery.com>
569 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
571 * doc/tm.texi: Regenerate.
572 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
573 * df-scan.c (df_get_exit_block_use_set), reginfo.c
574 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
575 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
576 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
579 2010-08-20 Olivier Hainque <hainque@adacore.com>
581 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
582 an extra nop past a sibling call at the very end.
584 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
587 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
590 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
592 * target.def (function_arg, function_incoming_arg): Remove const
593 qualifier on CUMULATIVE_ARGS parameter.
594 * targhooks.h (default_function_arg, default_function_incoming_arg):
596 * targhooks.c (default_function_arg, default_function_incoming_arg):
598 * config/i386/i386.c (ix86_function_arg): Likewise.
600 2010-08-19 Jakub Jelinek <jakub@redhat.com>
603 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
604 SIGN_EXTENDs or ZERO_EXTENDs.
606 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
609 * combine.c (combine_validate_cost): New arg I0. All callers changed.
610 Take its cost into account if nonnull.
611 (insn_a_feeds_b): New static function.
612 (combine_instructions): Look for four-insn combinations.
613 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
614 them into account when computing all_adjacent and looking for other
616 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
617 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
618 (try_combine): New arg I0. Handle four-insn combinations.
619 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
622 2010-08-19 Jason Merrill <jason@redhat.com>
625 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
627 (gimplify_modify_expr_rhs): Adjust.
629 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
631 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
633 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
634 * dominance.c (iterate_fix_dominators): Likewise.
635 * dse.c (set_usage_bits): Likewise.
636 (set_position_unneeded, record_store): Likewise.
637 * gimple-fold.c (get_maxval_strlen): Likewise.
638 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
639 * ipa-inline.c (update_caller_keys): Likewise.
640 * ipa-split.c (verify_non_ssa_vars): Likewise.
641 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
642 (close_type_exposed_parameter, close_type_full_escape): Likewise.
643 (close_addressof_down): Likewise.
644 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
645 (setup_allocno_left_conflicts_size): Likewise.
646 (ira_reassign_conflict_allocnos): Likewise.
647 (ira_reassign_pseudos): Likewise.
648 * ira-emit.c (change_loop): Likewise.
649 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
650 * lto-streamer-out.c (write_symbol): Likewise.
651 * predict.c (expr_expected_value_1): Likewise.
652 * regstat.c (regstat_bb_compute_ri): Likewise.
653 * sel-sched.c (create_block_for_bookkeeping): Likewise.
654 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
655 * stmt.c (expand_case): Likewise.
656 * tree-eh.c (emit_eh_dispatch): Likewise.
657 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
658 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
660 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
661 (rdg_build_components): Likewise.
662 * tree-object-size.c (collect_object_sizes_for): Likewise.
663 * tree-sra.c (convert_callers): Likewise.
664 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
665 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
666 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
668 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
670 * config/i386/i386.md (*lea_1): Use P mode iterator.
671 (lea add splitter): Also handle DImode operands.
672 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
673 predicate. Do not use ix86_lea_for_add_ok.
674 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
675 (lea ashift splitter): Also handle DImode operands.
676 (DImode lea ashift splitter): Remove splitter.
678 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
680 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
681 ix86_binary_operator_ok.
683 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
685 PR rtl-optimization/44691
686 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
689 2010-08-19 Ian Bolton <ian.bolton@arm.com>
692 * config/arm/arm.c (arm_output_epilogue): Ensure that return
693 value of size 1-3 is handled correctly.
695 2010-08-19 Ian Bolton <ian.bolton@arm.com>
697 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
698 type for the conditional has wide enough range.
700 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
703 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
704 ix86_binary_operator_ok.
706 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
708 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
709 <default>: Swap operands 1 and 2 for alternative 2 to use existing
710 code to output insn mnemonic. Fix comment.
711 (*addsi_1_zext): Add r-r-0 alternative 1.
712 <TYPE_LEA>: Split insn to lea.
713 <default>: Handle alternative 1.
714 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
715 multi-level if_then_else RTX to set "type" attribute.
716 <default>: Handle alternative 2.
717 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
718 Use cond RTX instead of multi-level if_then_else RTX to set
720 <default>: Handle alternatives 2 and 4.
721 (lea splitters): Update calls to ix86_lea_for_add_ok.
723 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
725 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
727 2010-08-18 Richard Guenther <rguenther@suse.de>
729 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
732 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
735 * optabs.c (expand_bool_compare_and_swap): Expand pending
736 pops before trying the optab.
738 2010-08-18 Yao Qi <yao@codesourcery.com>
741 * config/arm/arm.c (output_move_double): Fix typo generating
742 instructions ('ldr'->'str').
744 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
746 PR rtl-optimization/42575
747 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
750 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
752 * config/arm/arm-protos.h (arm_expand_sync): New.
753 (arm_output_memory_barrier, arm_output_sync_insn): New.
754 (arm_sync_loop_insns): New.
755 * config/arm/arm.c (FL_ARCH7): New.
756 (FL_FOR_ARCH7): Include FL_ARCH7.
758 (arm_print_operand): Support %C markup.
759 (arm_legitimize_sync_memory): New.
760 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
761 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
762 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
763 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
764 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
765 (arm_process_output_sync_insn, arm_output_sync_insn): New.
766 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
767 * config/arm/arm.h (struct arm_sync_generator): New.
768 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
769 (TARGET_HAVE_MEMORY_BARRIER): New.
770 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
771 * config/arm/arm.md: Include sync.md.
772 (UNSPEC_MEMORY_BARRIER): New.
773 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
774 (VUNSPEC_SYNC_OP):New.
775 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
776 (sync_result, sync_memory, sync_required_value): New attributes.
777 (sync_new_value, sync_t1, sync_t2): Likewise.
778 (sync_release_barrier, sync_op): Likewise.
779 (length): Add logic to length attribute defintion to call
780 arm_sync_loop_insns when appropriate.
781 * config/arm/sync.md: New file.
783 2010-08-17 Jakub Jelinek <jakub@redhat.com>
785 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
786 ENABLE_TREE_CHECKING.
787 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
790 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
792 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
793 or optimizing for size, always avoid lea if possible.
795 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
797 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
799 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
800 Dunmmy function with NULL return unless the target is
801 OSX >= 10.6 (Darwin10).
803 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
805 * gcc.c (spec_function): Add remove-outfile.
806 (remove_outfile_spec_function): New function.
807 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
808 * invoke.texi (replace-outfile): Document.
810 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
813 * reginfo.c (globalize_reg): Reject stack registers.
815 2010-08-17 Richard Guenther <rguenther@suse.de>
817 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
818 list of conditional equivalences.
819 (free_all_edge_infos): Adjust.
820 (record_equivalences_from_incoming_edge): Likewise.
821 (record_cond): Likewise.
822 (build_and_record_new_cond): Likewise.
823 (record_conditions): Likewise.
824 (dom_opt_leave_block): Likewise.
826 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
828 * doc/invoke.texi (ms-extension): Add documentation.
830 2010-08-17 Richard Guenther <rguenther@suse.de>
832 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
834 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
837 * c-decl.c (diagnose_uninitialized_cst_member): New function.
838 (finish_decl): Use it to issue a -Wc++-compat warning about
839 uninitialized const field in struct or union.
841 (finish_struct): Use strip_array_types.
843 2010-08-17 Jakub Jelinek <jakub@redhat.com>
845 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
847 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
848 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
849 call block_nreverse here.
850 (blocks_nreverse): Rename decl temporary to block.
852 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
854 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
855 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
856 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
857 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
858 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
859 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
860 thumb2_iorsi3): Delete.
861 (orsi_notsi_si): No longer a named pattern.
862 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
863 * config/arm/predicates.md (shift_amount_operand): New.
864 (mult_operator): New.
865 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
867 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
869 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
870 (not_shiftsi_compare0): Likewise, renamed from
871 arm_notsi_shiftsi_compare0.
872 (not_shiftsi_compare0_scratch): Likweise, renamed from
873 arm_notsi_shiftsi_compare0_scratch.
874 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
875 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
876 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
877 so that the register alternative is disabled when the shift_operator
878 is MULT. Use "M" as the constraint for constants.
879 (arith_shiftsi splitter): Enable for TARGET_32BIT.
880 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
881 constraint for constants.
882 (arith_shiftsi_compare0_scratch): Likewise.
883 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
884 Handle Thumb2 alternative.
886 2010-08-16 Joseph Myers <joseph@codesourcery.com>
888 * doc/options.texi (NoDriverArg): Document.
889 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
891 * opt-functions.awk (switch_flags): Handle NoDriverArg.
892 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
893 marking for CL_NO_DRIVER_ARG options when in the driver.
894 * opts.h (CL_NO_DRIVER_ARG): Define.
895 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
896 CL_COMMON): Update values.
898 2010-08-16 Joseph Myers <joseph@codesourcery.com>
900 * common.opt: Add driver options.
901 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
902 * doc/options.texi (Driver, RejectDriver): Document.
903 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
904 print_prog_name, print_multi_directory, print_sysroot,
905 print_multi_os_directory, print_multi_lib,
906 print_sysroot_headers_suffix, report_times, combine_flag,
907 use_pipes, wrapper_string): Remove.
908 (save_switch, driver_unknown_option_callback,
909 driver_wrong_lang_callback, driver_post_handling_callback,
910 driver_handle_option): New.
911 (spec_lang, last_language_n_infiles): Make file-scope static
912 instead of local to process_command.
913 (process_command): Use decode_cmdline_options_to_array and
914 read_cmdline_option for option processing. Compute have_c in
915 prescan of decoded options.
916 * opt-functions.awk (switch_flags): Handle Driver and
918 (var_type, var_type_struct): Handle Separate options as generating
919 const char * variables.
920 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
921 CL_TARGET to be passed by caller if required.
922 (decode_cmdline_options_to_array): Update comment.
923 * opts.c (complain_wrong_lang): Handle options only valid for the
925 (decode_options): Update call to decode_cmdline_options_to_array.
926 (print_filtered_help): Ignore driver-only options.
927 (print_specific_help): Ignore CL_DRIVER.
928 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
929 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
930 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
933 2010-08-16 Richard Guenther <rguenther@suse.de>
935 * tree-cfg.c (verify_types_in_gimple_reference): Verify
936 TARGET_MEM_REF a bit.
937 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
938 (create_mem_ref_raw): Always create TMR_OFFSET, store the
939 alias pointer type via it.
940 (copy_mem_ref_info): Adjust.
941 (maybe_fold_tmr): Likewise.
942 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
943 (reference_alias_ptr_type): Likewise.
944 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
945 adjust documentation of TMR_OFFSET operand.
946 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
947 use the alias pointer type.
948 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
949 initialize mem attrs but the TMR itself.
950 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
952 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
953 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
954 (unshare_and_remove_ssa_names): Likewise.
955 (copy_ref_info): Adjust.
956 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
958 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
960 * tree.h (TMR_ORIGINAL): Remove.
961 * gimple.c (get_base_address): For TARGET_MEM_REF with a
963 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
965 (get_addr_base_and_unit_offset): Likewise.
966 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
968 (indirect_ref_may_alias_decl_p): Likewise.
969 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
971 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
973 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
974 with GCC version 4.6, the default setting (when not optimizing
975 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
976 been changed to -fomit-frame-pointer.
978 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
980 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
981 Darwin10. Do not link libgcc.a for Darwin >= 9.
983 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
985 * doc/invoke.texi (Warning Options): Fix terminology and markup
986 in the description of how unknown warning options are handled.
988 2010-08-15 Ira Rosen <irar@il.ibm.com>
990 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
992 (vect_supportable_dr_alignment): Check alignment for basic blocks.
993 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
995 (vect_bb_vectorization_profitable_p): New function.
996 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
997 check if it's worthwhile to vectorize the basic block.
999 2010-08-14 Anatoly Sokolov <aesok@post.ru>
1001 * reload.h (register_move_cost, memory_move_secondary_cost,
1002 secondary_reload_class): Adjust prototype.
1003 * rtl.h (reg_class_subset_p): Adjust prototype.
1004 * reload.c (secondary_reload_class): Change arguments type from
1005 enum reg_class to reg_class_t. Change result type to reg_class_t.
1006 * reginfo.c (register_move_cost, reg_class_subset_p): Change
1007 arguments type from enum reg_class to reg_class_t.
1008 (memory_move_secondary_cost): Change arguments type from
1009 enum reg_class to reg_class_t. Change type of saved_flags to
1012 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
1014 (mips_cost): Remove.
1015 (struct mips_rtx_cost_data): Moved to mips.c.
1016 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
1017 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
1018 (mips_cost): Make static.
1019 (mips_canonicalize_move_class): Change argument type to reg_class_t.
1020 Change result type to reg_class_t.
1021 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
1022 type from enum reg_class to reg_class_t.
1023 (mips_register_move_cost): Make static. Change arguments
1024 type from enum reg_class to reg_class_t.
1025 (mips_memory_move_cost): New function.
1026 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1028 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
1030 PR rtl-optimization/43358
1031 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
1032 of a single hard register, using simplify_subreg_regno to decide
1033 what that register should be.
1035 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
1037 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
1038 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
1039 (loongson_pmull<V_suffix>): Rename to...
1040 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
1042 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
1044 * gcc/configure.ac: Enable -fomit-frame-pointer on darwin
1045 which support dwarf2.
1046 * config/i386/i386.c (override_options): Same.
1048 2010-08-13 Jie Zhang <jie@codesourcery.com>
1050 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
1052 2010-08-12 Joseph Myers <joseph@codesourcery.com>
1054 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
1057 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
1059 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
1060 up dot_prod pattern searching if a stmt is outside the loop.
1062 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
1063 Uros Bizjak <ubizjak@gmail.com>
1065 * config.gcc: Handle --enable-frame-pointer.
1067 * configure.ac: Add --enable-frame-pointer.
1068 * configure: Regenerated.
1070 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
1071 (override_options): If not configured with --enable-frame-pointer,
1072 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
1073 optimizing for size), -fasynchronous-unwind-tables and
1074 -maccumulate-outgoing-args by default.
1076 2010-08-12 Jakub Jelinek <jakub@redhat.com>
1078 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
1081 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
1082 -a overflows. Normalize the range.
1084 2010-08-12 Richard Guenther <rguenther@suse.de>
1086 PR tree-optimization/45232
1087 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
1088 for types with undefined overflow.
1089 (reassociate_bb): Allow re-associating of bit and min/max
1090 operations for types with undefined overflow.
1091 * tree-ssa-forwprop.c (associate_plusminus): New function.
1092 (tree_ssa_forward_propagate_single_use_vars): Call it.
1094 2010-08-12 Richard Guenther <rguenther@suse.de>
1096 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
1097 * tree-ssa-alias.c (get_ptr_info): Move ...
1098 * tree-ssanames.c (get_ptr_info): ... here. Initialize
1099 align and misalign fields conservatively.
1100 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
1101 derive alignment information.
1102 (evaluate_stmt): Derive alignment information from memory
1103 allocation functions.
1104 * tree.h (get_pointer_alignment): Make unsigned.
1105 * builtins.c (get_object_alignment): Use alignment information we
1106 have computed for pointers.
1107 (get_pointer_alignment): Likewise. Make conservative, return
1109 (expand_builtin_strlen): Adjust.
1110 (expand_builtin_memcmp): Likewise.
1111 (expand_builtin_strcmp): Likewise.
1112 (expand_builtin_strncmp): Likewise.
1113 (get_builtin_sync_mem): Use at least mode alignment.
1114 (fold_builtin_memset): Adjust.
1115 (fold_builtin_memory_op): Likewise.
1116 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
1117 information also dump pointer alignment knowledge.
1118 (dump_gimple_stmt): Likewise.
1120 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
1122 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
1123 (EMPTY_FIELD_BOUNDARY): Remove.
1124 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
1126 2010-08-12 Jakub Jelinek <jakub@redhat.com>
1129 * caller-save.c (save_call_clobbered_regs): Only swap notes with
1130 DEBUG_INSNs if n_regs_saved.
1132 2010-08-12 Wei Guozhi <carrot@google.com>
1135 * config/arm/arm.md (andsi3): Change to zero extension if possible.
1136 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
1138 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
1140 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
1142 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
1144 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1146 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
1147 the case removed in the previous patch, when the only phi argument
1148 is defined in the same loop as the phi node itself. Handle it
1149 separately from the invariant case by both propagating it outside
1150 the region and replacing the phi node with an assign.
1152 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1154 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
1155 constant phi nodes with one argument are is_gimple_min_invariant
1156 and SSA_NAME_IS_DEFAULT_DEF.
1158 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1160 * graphite-cloog-util.c (oppose_constraint):
1161 Extend loop counter's value range (CLOOG_ORG).
1162 (cloog_matrix_to_ppl_constraint): Same.
1163 (new_Constraint_System_from_Cloog_matrix): Same.
1164 * graphite-cloog-compat.h (matrix_num_type): New.
1166 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1168 * graphite.c (graphite_initialize): Do not initialize
1169 CLooG and initialize the Parma Polyhedra Library
1170 manually when using CLOOG_ORG.
1171 (graphite_finalize): Do not finalize CLooG and finalize
1172 the Parma Polyhedra Library manually when using CLOOG_ORG.
1173 * graphite-cloog-compat.h (cloog_initialize): Hide function
1174 when using CLOOG_ORG.
1175 (cloog_finalize): Same.
1177 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1179 * graphite-clast-to-gimple.c (free_scattering): Change
1180 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
1182 (build_cloog_prog): Same.
1183 * graphite-cloog-compat.h (cloog_domain): Removed.
1184 (cloog_scattering): New.
1185 (cloog_set_domain): Removed.
1186 (cloog_set_scattering): New.
1187 (cloog_next_domain): Removed.
1188 (cloog_next_scattering): New.
1189 (cloog_set_next_domain): Removed.
1190 (cloog_set_next_scattering): New.
1191 (CloogScatteringList): New.
1192 (CloogScattering): New.
1193 (cloog_scattering_free): New.
1194 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
1195 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
1198 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1200 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
1202 (set_cloog_options): Same.
1203 (print_clast_stmt): Same.
1204 (scop_to_clast): Same.
1205 (print_generated_program): Same.
1207 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
1208 (scop_to_clast): Extend with CloogState.
1209 * graphite-cloog-util.c: Include graphite-cloog-compat.h
1210 (new_Cloog_Domain_from_ppl_Polyhedron):
1211 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
1212 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
1213 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1214 * graphite-cloog-util.h (build_cloog_prog): Same.
1215 * graphite-cloog-copat.h (build_cloog_prog): New.
1217 (cloog_state_malloc): New.
1218 (cloog_state_free): New.
1219 (cloog_loop_malloc): New.
1220 (cloog_options_malloc): New.
1221 (cloog_statement_alloc): New.
1222 (cloog_domain_from_cloog_matrix): New.
1223 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
1224 (new_Cloog_Domain_from_ppl_Polyhedron): New.
1226 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1228 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
1229 type of NAME now depends on used CLooG version.
1230 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
1231 (gcc_type_for_clast_expr): Same.
1232 (print_clast_stmt): Replace pprint with clast_pprint.
1233 * graphite-cloog-compat.h: Provide compatibility macros for
1235 (clast_name_p): New.
1236 (clast_expr_term): New.
1237 (clast_expr_red): New.
1238 (clast_expr_bin): New.
1239 (clast_pprint): New.
1241 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1243 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
1244 compatible to newer CLooG releases (CLOOG_ORG).
1245 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
1246 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
1247 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
1248 (build_cloog_prog) : New.
1249 (cloog_program_extract_scalars): New.
1250 (cloog_program_scatter): New.
1252 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1254 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
1255 conditionally (CLOOG_ORG).
1256 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
1257 (cloog_statement_usr): New.
1258 (cloog_domain): Same.
1259 (cloog_set_domain): Same.
1260 (cloog_next_domain): Same.
1261 (cloog_set_next_domain): Same.
1262 (cloog_program_nb_scattdims): Same.
1263 (cloog_program_set_nb_scattdims): Same.
1264 (cloog_program_names): Same.
1265 (cloog_program_set_names): Same.
1266 (cloog_program_set_context): Same.
1267 (cloog_program_set_loop): Same.
1268 (cloog_program_blocklist): Same.
1269 (cloog_program_set_blocklist): Same.
1270 (cloog_program_scaldims): Same.
1271 (cloog_program_set_scaldims): Same.
1272 (cloog_names_nb_parameters): Same.
1273 (cloog_names_set_nb_parameters): Same.
1274 (cloog_names_parameters): Same.
1275 (cloog_names_set_parameters): Same.
1276 (cloog_names_set_nb_iterators): Same.
1277 (cloog_names_set_iterators): Same.
1278 (cloog_names_set_nb_scattering): Same.
1279 (cloog_names_set_scattering): Same.
1280 (cloog_statement_set_usr): Same.
1281 (cloog_loop_set_next): Same.
1282 (cloog_loop_set_domain): Same.
1283 (cloog_loop_set_block): Same.
1284 (cloog_block_list_next): Same.
1285 (cloog_block_list_set_next):
1286 (cloog_block_list_set_block): Same.
1288 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1290 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
1292 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
1293 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
1294 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
1295 when something has been changed.
1296 (rewrite_commutative_reductions_out_of_ssa): Same.
1298 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1300 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
1301 handle the case when def is in the sese region.
1302 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
1303 for invariant expressions.
1304 (rewrite_cross_bb_phi_deps): Removed.
1305 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
1306 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
1307 rewrite_cross_bb_phi_deps.
1309 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1311 * graphite-sese-to-poly.c
1312 (rewrite_commutative_reductions_out_of_ssa_loop): Call
1313 scev_analyzable_p only on is_gimple_reg
1315 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1317 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
1318 (rewrite_close_phi_out_of_ssa): Propagate constant values or
1319 parametric expressions outside the scop region.
1320 (rewrite_cross_bb_scalar_deps): Same.
1321 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
1323 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1325 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
1326 SSA_NAME_DEF_STMT only on SSA_NAMEs.
1328 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1330 * tree-scalar-evolution.c (instantiate_scev_name): Do not
1331 instantiate default definitions.
1333 2010-08-11 Vladimir Kargov <kargov@gmail.com>
1334 Sebastian Pop <sebastian.pop@amd.com>
1336 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
1337 (loop_exits_from_bb_p): New.
1338 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
1339 (loop_exits_from_bb_p): Declared.
1340 * graphite-scop-detection.c (scopdet_basic_block_info): Call
1343 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1345 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
1346 extra parameter for the region. Call scev_analyzable_p.
1347 (rewrite_reductions_out_of_ssa): Update call to
1348 rewrite_close_phi_out_of_ssa.
1349 (rewrite_cross_bb_phi_deps): Same.
1350 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
1351 parameter for the region. Call scev_analyzable_p.
1352 (rewrite_commutative_reductions_out_of_ssa): Update call to
1353 rewrite_commutative_reductions_out_of_ssa_loop.
1355 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1357 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
1359 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1361 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
1362 SSA scalar phi nodes that can be scev_analyzable_p.
1364 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1366 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
1367 handle SSA_NAME_IS_DEFAULT_DEF.
1369 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1371 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
1373 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1375 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
1376 case non close-phi nodes with one argument.
1378 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1380 * sese.h (scev_analyzable_p): Scevs could be expressions without
1381 chrecs and still be scev_analyzable_p.
1383 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1385 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
1387 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1389 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
1390 * cfgloop.h (struct loop): Remove single_iv field.
1391 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
1392 (scop_canonicalize_loops): Removed.
1393 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
1394 over all the loop phi nodes in loop->header.
1395 (build_poly_scop): Remove use of scop_canonicalize_loops.
1397 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1399 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
1402 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1404 * tree-chrec.c (chrec_apply): Should only apply to the specified
1405 variable. Also handle multivariate chains of recurrences that
1406 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
1408 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1410 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
1411 (debug_clast_name_indexes_1): Removed.
1412 (debug_clast_name_indexes): Removed.
1413 (pbb_to_depth_to_oldiv): Removed.
1414 (build_iv_mapping): Replace the use of rename_map with iv_map.
1415 (translate_clast_user): Remove uses of rename_map. Allocate and
1417 (translate_clast_for_loop): Remove uses of rename_map.
1418 (translate_clast_for): Same.
1419 (translate_clast_guard): Same.
1420 (translate_clast): Same.
1422 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
1423 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
1424 * sese.c (set_rename): Now static.
1425 (rename_variables_in_stmt): Removed.
1427 (is_parameter): Removed.
1429 (expand_scalar_variables_call): Removed.
1430 (expand_scalar_variables_ssa_name): Removed.
1431 (expand_scalar_variables_expr): Removed.
1432 (expand_scalar_variables_stmt): Removed.
1433 (expand_scalar_variables): Removed.
1434 (rename_variables): Removed.
1435 (remove_condition): Removed.
1436 (get_true_edge_from_guard_bb): Removed.
1437 (get_false_edge_from_guard_bb): Removed.
1438 (struct igp): Removed.
1439 (default_before_guard): Removed.
1440 (convert_for_phi_arg): Removed.
1441 (add_guard_exit_phis): Removed.
1442 (insert_guard_phis): Removed.
1443 (graphite_copy_stmts_from_block): Now also uses iv_map and a
1444 region. Do not copy conditions. Do not copy induction variables.
1446 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
1447 the translated statement. Use the iv_map for the induction
1449 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
1450 (set_rename): Removed declaration.
1451 (scev_analyzable_p): ...here.
1452 * tree-chrec.c (chrec_apply_map): New.
1453 * tree-chrec.h (chrec_apply_map): Declared.
1455 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1457 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
1458 insert_loop_close_phis.
1459 * sese.c (name_defined_in_loop_p): Removed.
1460 (expr_defined_in_loop_p): Removed.
1461 (alive_after_loop): Removed.
1462 (close_phi_not_yet_inserted_p): Removed.
1463 (struct alep): Removed.
1464 (add_loop_exit_phis): Removed.
1465 (insert_loop_close_phis): Removed.
1467 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1469 * graphite-cloog-util.c
1470 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
1472 (psct_scattering_dim_for_loop_depth): Same.
1474 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1476 * graphite-cloog-util.h: Added cloog.h.
1477 * graphite-blocking.c: Removed cloog.h.
1478 * graphite-dependences.c: Same.
1479 * graphite-interchange.c: Same.
1480 * graphite-poly.c: Same.
1481 * graphite-ppl.c: Same.
1482 * graphite-scop-detection.c: Same.
1483 * graphite-sese-to-poly.c:
1485 Removed graphite-clast-to-gimple.h.
1486 (check_poly_representation): Removed (unused).
1487 * graphite-sese-to-poly.h
1488 (check_poly_representation): Removed (unused).
1490 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1492 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
1493 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
1494 (graphite-cloog-util.o): New.
1495 (graphite-ppl.o): Added graphite-cloog-util.h.
1496 * graphite-clast-to-gimple.c:
1497 Added graphite-cloog-util.h to include statements.
1498 * graphite-cloog-util.c: New.
1499 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
1500 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1501 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1502 (new_C_Polyhedron_from_Cloog_Matrix): Same.
1503 (insert_constraint_into_matrix): Same.
1504 (ppl_Constrain_System_number_of_constraints): Same.
1505 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1506 (oppose_constraint): Same.
1507 (cloog_matrix_to_ppl_constraint): Same.
1508 (new_Constraint_System_from_Cloog_Matrix): Same.
1509 * graphite-cloog-util.h: New.
1510 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
1511 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1512 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1513 (new_C_Polyhedron_from_Cloog_Matrix): Same.
1514 (insert_constraint_into_matrix): Same.
1516 Added graphite-cloog-util.h to include statements.
1517 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
1518 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1519 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1520 (new_C_Polyhedron_from_Cloog_Matrix): Same.
1521 (insert_constraint_into_matrix): Same.
1522 (ppl_Constrain_System_number_of_constraints): Same.
1523 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1524 (oppose_constraint): Same.
1525 (cloog_matrix_to_ppl_constraint): Same.
1526 (new_Constraint_System_from_Cloog_Matrix): Same.
1528 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
1529 graphite-cloog-util.h.
1530 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1531 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1532 (new_C_Polyhedron_from_Cloog_Matrix): Same.
1533 (insert_constraint_into_matrix): Same.
1535 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1537 * graphite-clast-to-gimple.c
1538 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
1539 (precision_for_interval): Same.
1540 (gcc_type_for_interval): Same.
1541 (compute_type_for_level): Same.
1542 * graphite-interchange.c
1543 (lst_interchange_profitable_p): Same.
1545 (psct_scattering_dim_for_loop_depth): Same.
1547 (ppl_max_for_le_pointset): Same.
1548 (ppl_min_for_le_pointset): Same.
1550 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1552 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
1553 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
1555 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1557 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
1558 rewrite_close_phi_out_of_ssa.
1560 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1562 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
1564 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1566 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
1568 * sese.c (debug_rename_map): Same.
1571 (rename_variables_in_stmt): Same.
1572 (expand_scalar_variables_call): Same.
1573 (expand_scalar_variables_ssa_name): Same.
1574 (expand_scalar_variables_expr): Same.
1575 (expand_scalar_variables_stmt): Same.
1576 (expand_scalar_variables): Same.
1577 (rename_variables): Same.
1578 (graphite_copy_stmts_from_block): Same.
1579 (copy_bb_and_scalar_dependences): Same.
1581 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1583 * graphite-clast-to-gimple.c (copy_renames): Removed.
1584 (translate_clast_for): Do not call copy_renames.
1585 (translate_clast_guard): Same.
1587 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1589 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
1590 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
1591 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
1592 before rewrite_cross_bb_scalar_deps.
1594 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1596 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
1597 Early return in when flag_associative_math is not set.
1599 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1601 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
1602 of SSA copies on edges except for loop->latch.
1604 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1606 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
1607 Split out of rewrite_reductions_out_of_ssa.
1608 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
1610 * graphite.c (graphite_transform_loops): Call it.
1612 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1614 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
1616 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
1618 * dbgcnt.def (graphite_scop): New counter.
1619 * graphite.c: Include dbgcnt.h.
1620 (graphite_transform_loops): Use new counter to limit transformations.
1621 * Makefile.in (graphite.o): Depend on DBGCNT_H.
1623 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1625 * passes.c (init_optimization_passes): Add pass_graphite.
1626 Schedule a pass_copy_prop before pass_graphite_transforms.
1627 * timevar.def (TV_GRAPHITE): Declared.
1628 * tree-pass.h (pass_graphite): Declared.
1629 * tree-ssa-loop.c (pass_graphite): New.
1631 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1633 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
1634 Remove calls to rename_nb_iterations and rename_sese_parameters.
1635 * graphite-clast-to-gimple.h (gloog): Update declaration.
1636 * graphite.c (graphite_transform_loops): Update call to gloog.
1637 * sese.c (rename_variables_in_expr): Removed.
1638 (rename_nb_iterations): Removed.
1639 (rename_sese_parameters): Removed.
1640 * sese.h (rename_nb_iterations): Removed.
1641 (rename_sese_parameters): Removed.
1643 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1645 * graphite-clast-to-gimple.c (gloog): Remove call to
1646 sese_adjust_liveout_phis.
1647 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
1648 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
1649 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
1650 rewrite_phi_out_of_ssa.
1651 * sese.c (get_vdef_before_sese): Removed.
1652 (sese_adjust_vphi): Removed.
1653 (sese_adjust_liveout_phis): Removed.
1654 * sese.h (sese_adjust_liveout_phis): Removed.
1656 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1658 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
1659 argument for the place after which to insert the out of SSA copy.
1660 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
1661 (rewrite_phi_out_of_ssa): Same.
1662 (rewrite_cross_bb_scalar_deps): Same.
1663 (insert_copyout): Removed.
1664 (insert_copyin): Removed.
1665 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
1666 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
1669 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1671 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
1672 (rewrite_reductions_out_of_ssa): Same.
1673 (rewrite_commutative_reductions_out_of_ssa): Same.
1674 (build_poly_scop): Do not call these functions.
1675 * graphite-sese-to-poly.h (build_poly_scop): Declared.
1676 (rewrite_reductions_out_of_ssa): Declared.
1677 (rewrite_commutative_reductions_out_of_ssa): Declared.
1678 * graphite.c (graphite_transform_loops): Call on every scop
1679 rewrite_commutative_reductions_out_of_ssa before calling
1680 rewrite_reductions_out_of_ssa and build_scop_bbs.
1682 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1684 * graphite-dependences.c (dot_deps): Make system call to dotty run
1686 (dot_deps_stmt): Same.
1687 * graphite-poly.c (dot_lst): Same.
1689 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
1691 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
1692 phi_arg_in_outermost_loop.
1693 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
1694 (remove_invariant_phi): Same.
1696 2010-08-11 Anatoly Sokolov <aesok@post.ru>
1698 * target.def (output_addr_const_extra): New hook.
1699 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
1700 * doc/tm.texi: Regenerate.
1701 * targhooks.c (default_asm_output_addr_const_extra): New function.
1702 * targhooks.h (default_asm_output_addr_const_extra): Declare.
1703 * final.c: (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
1706 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1707 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
1708 * config/i386/i386.h (output_addr_const_extra): Rename to...
1709 (i386_asm_output_addr_const_extra): ...this. Make static.
1710 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1712 2010-08-11 Richard Henderson <rth@redhat.com>
1714 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
1716 2010-08-11 Nick Clifton <nickc@redhat.com>
1718 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
1719 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
1720 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
1721 stormy16-lib2-cmpsi.c.
1723 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
1726 2010-08-11 Joseph Myers <joseph@codesourcery.com>
1728 * opts.h (struct cl_option_handler_func): Make handler take
1729 cl_decoded_option structure as parameter, not individual elements.
1730 (struct cl_option_handlers): Make callbacks take cl_decoded_option
1731 structure as parameter, not individual elements.
1732 (handle_option): Take cl_decoded_option structure as parameter,
1733 not individual elements.
1734 (handle_generated_option): Declare.
1735 * opts-common.c (handle_option): Take cl_decoded_option structure
1736 as parameter, not individual elements. Update calls to callback
1737 and handler functions.
1738 (handle_generated_option): New.
1739 (read_cmdline_option): Update calls to callback functions and
1741 * opts.c (common_handle_option, complain_wrong_lang,
1742 unknown_option_callback, post_handling_callback,
1743 lang_handle_option, target_handle_option): Take cl_decoded_option
1744 structure as parameter, not individual elements.
1745 (lang_handle_option, target_handle_option, common_handle_option):
1746 Assert option has at most one argument.
1747 (enable_warning_as_error): Call handle_generated_option instead of
1748 handle_option. Do not pass -Werror argument as argument of
1751 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1753 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
1754 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
1755 (SUBWORD_BOOL_CAS): Likewise.
1756 (SUBWORD_SYNC_OP): Likewise.
1757 (SUBWORD_TEST_AND_SET): Likewise.
1758 (FETCH_AND_OP_WORD): Parenthesise INF_OP
1759 (SUBWORD_SYNC_OP): Likewise.
1760 (OP_AND_FETCH_WORD): Likewise.
1762 2010-08-10 Xinliang David Li <davidxl@google.com>
1764 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
1765 compute max/min offset in address.
1767 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
1769 * ira-live.c: Include sbitmap.h.
1770 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
1771 Compress live ranges even more.
1773 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
1775 * coverage.c (ctr_labels): Delete.
1777 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
1780 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
1781 test here from arm_gen_load_multiple_1.
1782 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
1783 multiple_operation_profitable_p.
1785 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
1787 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
1788 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
1790 2010-08-10 Richard Henderson <rth@redhat.com>
1792 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
1793 after saving registers. Assert that SSE registers are only saved
1794 with a sufficiently aligned frame.
1795 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
1796 remove stack_realign_fp handling.
1797 (ix86_expand_prologue): Save int registers before stack_realign_fp,
1798 and do not mark the stack alignment as frame related.
1799 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
1801 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
1802 saves when re-aligning the stack.
1804 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
1806 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
1807 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
1808 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
1810 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
1812 * dwarf2out.c (struct die_struct): Move die_tag to the end.
1814 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
1816 * config/arm/iterators.md: New file.
1817 * config/arm/arm.md: Include iterators.md.
1818 (QHSI): Move to new file.
1819 (LTUGEU, cnb, optab, ior_xor): Likewise.
1820 * config/arm/iwmmxt.md (VMMX): Move to new file.
1821 (VSHFT, MMX_char): Likewise.
1822 * config/arm/neon.md (VD): Move to new file.
1823 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
1824 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
1825 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
1826 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
1827 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
1828 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
1829 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
1830 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
1831 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
1832 (Is_d_reg, V_mode_nunits): Likewise.
1833 * config/arm/vec-common.md (VALL): Move to new file.
1834 (VALLW, VINT, VINTW): Likewise.
1836 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
1839 * combine.c (make_compound_operation): Don't try to convert
1840 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
1842 2010-08-10 Richard Guenther <rguenther@suse.de>
1844 * tree.h (get_object_alignment): Adjust prototype.
1845 * builtins.c (get_object_alignment): Return unsigned int,
1846 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
1847 and TARGET_MEM_REF properly.
1848 (get_pointer_alignment): Adjust.
1849 * emit-rtl.c (get_mem_align_offset): Adjust comment.
1850 (set_mem_attributes_minus_bitpos): Adjust.
1851 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
1853 2010-08-10 Richard Guenther <rguenther@suse.de>
1855 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
1856 (copy_prop_visit_assignment): Simplify.
1857 (copy_prop_visit_stmt): Also visit assignments from
1859 (copy_prop_visit_phi_node): Use operand_equal_p.
1861 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
1863 * ipa-split.c (find_split_points): Free stack.
1865 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
1867 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
1868 * tree.c (tree_node_kind): Delete corresponding entries.
1870 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
1872 * alias.c (may_alias_p): Remove unused ret.
1874 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
1876 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
1877 alias_sets_conflict_p.
1878 (walk_mems_1): Moved from alias.c.
1879 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
1881 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
1882 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
1883 * alias.c (walk_mems_2): Moved to ddg.c.
1884 (walk_mems_1): Ditto.
1885 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
1887 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
1889 *(may_alias_p): New function to check whether two memory expression
1890 may alias or not. Currently used in buidling inter-iteration memory
1892 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
1893 (insn_alias_sets_conflict_p): Removed
1894 *rtl.h (may_alias_p): New function prototype.
1896 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
1898 * tree.c (nreverse): Assert that we don't have a BLOCK.
1900 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
1902 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
1903 * config/arm/arm.c (arm_get_pcs_model): Likewise.
1904 * config/avr/avr.c (init_cumulative_args): Likewise.
1905 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1906 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1907 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
1908 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
1909 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
1910 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1911 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
1912 * dwarf2out.c (gen_subprogram_die): Likewise.
1913 * function.c (allocate_struct_function): Likewise.
1914 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
1915 (deserves_ellipsis): Delete.
1917 2010-08-09 Richard Guenther <rguenther@suse.de>
1919 * tree-ssa-copy.c (cached_last_copy_of): Remove.
1920 (valueize_val): New function.
1921 (get_last_copy_of): Remove.
1922 (set_copy_of_val): Simplify.
1923 (dump_copy_of): Likewise.
1924 (copy_prop_visit_cond_stmt): Use valueize_val.
1925 (copy_prop_visit_phi_node): Properly handle unvisited names.
1926 Drop code managing copy-of chains.
1927 (init_copy_prop): Adjust.
1928 (fini_copy_prop): Likewise.
1929 (execute_copy_prop): Remove obsolete comment.
1931 2010-08-09 Richard Guenther <rguenther@suse.de>
1934 * function.c (gimplify_parameters): Do not clear addressable
1935 bit of the original parameter.
1937 2010-08-09 Richard Guenther <rguenther@suse.de>
1940 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
1941 alignment from MEM_REF offset only if we took it from the
1944 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
1946 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
1948 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1950 * c-tree.h (build_arg_info): Declare.
1951 * c-decl.c (build_arg_info): Define.
1952 (get_parm_info): Call it. Delete initialization code.
1953 * c-parser.c (c_parser_parms_declarator): Likewise.
1954 (c_parser_parms_list_declaractor): Likewise.
1956 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1958 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
1959 (struct c_arg_info): Change type of tags field.
1960 * c-decl.c (grokdeclarator): Update for changed type of tags field.
1961 (get_parm_info): Likewise.
1962 (store_parm_decls_newstyle): Likewise.
1964 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1966 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
1967 (branch_island_list): Delete.
1968 (branch_islands): Declare.
1969 (add_compiler_branch_island): Adjust for branch_islands instead of
1971 (macho_branch_islands): Likewise.
1972 (no_previous_def): Likewise.
1973 (get_prev_label): Likewise.
1975 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1978 * gthr-posix.h (__gthread_start): Delete.
1979 (__gthread_active_init): Use pthread_default_stacksize_np instead of
1980 pthread_create to determine if hpux pthreads are active.
1981 * gthr-posix95.h (__gthread_start): Delete.
1982 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
1984 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
1986 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
1987 _WIN64 not expanded.
1989 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
1990 H.J. Lu <hongjiu.lu@intel.com>
1993 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
1994 to output 32bit SFmode immediate as 8 byte sign extended value.
1996 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
1998 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
1999 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
2000 (SUBWORD_BOOL_CAS): Likewise.
2001 (SUBWORD_SYNC_OP): Likewise.
2002 (SUBWORD_TEST_AND_SET): Likewise.
2003 (FETCH_AND_OP_WORD): Parenthesise INF_OP
2004 (SUBWORD_SYNC_OP): Likewise.
2005 (OP_AND_FETCH_WORD): Likewise.
2007 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2009 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
2010 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
2011 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
2012 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
2014 (cortex_a9_sched_adjust_cost): New function.
2015 (xscale_sched_adjust_cost): New function.
2016 * config/arm/arm-protos.h (struct tune_params): New field
2018 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
2020 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
2023 * config/sparc/sparc.c (function_arg_advance): Always take into account
2024 the padding, if any.
2026 2010-08-06 Richard Guenther <rguenther@suse.de>
2028 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
2029 (dump_lattice_value): Dump it.
2030 (get_default_value): Adjust.
2031 (get_constant_value): Likewise.
2032 (set_value_varying): Likewise.
2033 (set_lattice_value): Make sure to not go up the lattice
2034 with bitwise constant values.
2035 (get_value_for_expr): Handle ADDR_EXPRs.
2036 (value_to_double_int): New function.
2037 (get_value_from_alignment): Likewise.
2038 (do_dbg_cnt): Adjust.
2039 (ccp_lattice_meet): Handle partially constant values.
2040 (bit_value_unop_1): New function.
2041 (bit_value_binop_1): Likewise.
2042 (bit_value_unop): Likewise.
2043 (bit_value_binop): Likewise.
2044 (evaluate_stmt): Track partially constant values if
2045 flag_tree_bit_ccp is set.
2046 (ccp_fold_stmt): Dump if we folded a predicate.
2047 (ccp_visit_stmt): Adjust.
2048 * common.opt (ftree-bit-ccp): New flag.
2049 * doc/invoke.texi (ftree-bit-ccp): Document.
2050 * opts.c (decode_options): Enable bit-CCP at -O1.
2052 2010-08-06 Alan Modra <amodra@gmail.com>
2054 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
2055 and -mrelocatable-lib description.
2057 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
2059 From Martin Thuresson <martint@google.com>
2060 * postreload.c (reload_cse_simplify_operands): Use
2061 SET_REGNO_RAW instead of SET_REGNO.
2062 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
2064 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
2065 instead of SET_REGNO.
2066 * rtl.h (SET_REGNO_RAW): New macro.
2068 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
2070 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
2071 computations. Fix formatting issues.
2072 (num_sign_bit_copies1): Likewise.
2073 (canonicalize_condition): Likewise.
2075 2010-08-05 Richard Henderson <rth@redhat.com>
2077 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
2078 (floor_log2): Use clz_hwi.
2079 (exact_log2): Use ctz_hwi.
2080 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
2081 * builtins.c (fold_builtin_bitop): Use them.
2082 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2083 * combine.c (get_pos_from_mask): Use ctz_hwi.
2084 * double-int.c (double_int_ctz): Likewise.
2085 * explow.c (force_reg): Likewise.
2086 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
2088 2010-08-05 Richard Henderson <rth@redhat.com>
2091 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
2092 the alignment constant is properly sign-extended.
2094 2010-08-05 Richard Guenther <rguenther@suse.de>
2096 * expr.c (store_expr): Use emit_block_move only if both
2097 source and target are MEMs. Use store_bit_field if only
2098 the target is a MEM.
2100 2010-08-05 Richard Henderson <rth@redhat.com>
2103 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
2104 (INCOMING_RETURN_ADDR_RTX): Likewise.
2105 (dwarf2out_do_frame): Remove conditional compilation.
2106 (dwarf2out_frame_init): Likewise.
2108 2010-08-05 Nicolas Setton <setton@adacore.com>
2110 * gcov.c (flag_display_progress): New static variable.
2111 (main): Display progress info on standard output if requested.
2112 (options): Add -d/--display-progress.
2113 (print_usage): Print them.
2114 (process_args): Handle them.
2115 * doc/gcov.texi: Document them.
2117 2010-08-05 Martin Jambor <mjambor@suse.cz>
2119 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
2120 (ipcp_insert_stage): Redirect only edges not flagged with
2121 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
2122 discovered constants.
2124 2010-08-05 Martin Jambor <mjambor@suse.cz>
2126 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
2127 (struct ipa_param_descriptor): New fields types and
2128 cannot_devirtualize.
2129 (ipa_param_cannot_devirtualize_p): New function.
2130 (ipa_param_types_vec_empty): Likewise.
2131 (ipa_make_edge_direct_to_target): Declare.
2132 * ipa-cp.c: Fixed first stage driver name in initial comment,
2133 described devirtualization there too.
2134 (ipcp_analyze_node): Call ipa_analyze_params_uses.
2135 (ipcp_print_all_lattices): Print devirtualization info.
2136 (ipa_set_param_cannot_devirtualize): New function.
2137 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
2139 (ipcp_init_stage): Merged into...
2140 (ipcp_generate_summary): ...its caller.
2141 (ipcp_change_tops_to_bottom): Also process type lists.
2142 (ipcp_add_param_type): New function.
2143 (ipcp_copy_types): Likewise.
2144 (ipcp_propagate_types): Likewise.
2145 (ipcp_propagate_stage): Also propagate types.
2146 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
2147 Also return true if propagated types require it.
2148 (ipcp_update_callgraph): Dump redirection info.
2149 (ipcp_process_devirtualization_opportunities): New function.
2150 (ipcp_const_param_count): Include known type information.
2151 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
2152 on new node. Fixed formatting.
2153 * ipa-prop.c (make_edge_direct_to_target): Renamed to
2154 ipa_make_edge_direct_to_target and changed all callers. Made
2156 (ipa_node_duplication_hook): Duplicate types vector.
2157 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
2158 redirect outgoing calls for which we can't get a decl from the
2159 statement. Check that we can get a decl from the call statement.
2160 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
2161 ipa_analyze_params_uses only when ipa-cp is disabled.
2162 * tree-inline.c (get_indirect_callee_fndecl): Removed.
2163 (expand_call_inline): Do not call get_indirect_callee_fndecl.
2164 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
2165 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
2167 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
2169 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
2170 temporary. Emit move from temporary to accum, so REG_EQUAL note will
2171 be attached to this insn in correct mode.
2173 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
2175 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
2176 using REGNO of base_reg directly.
2178 2010-08-05 Jie Zhang <jie@codesourcery.com>
2180 PR tree-optimization/45144
2181 * tree-sra.c (type_consists_of_records_p): Return false
2182 if the record contains bit-field.
2184 2010-08-04 Richard Henderson <rth@redhat.com>
2186 * config/i386/i386.c (struct ix86_frame): Remove padding and
2187 to_allocate members.
2188 (ix86_compute_frame_layout): Don't store them.
2189 (ix86_can_use_return_insn_p): Use a more direct and more obviously
2190 correct condition for the position of the stack pointer.
2191 (ix86_expand_prologue): Compute remaining stack allocation based
2192 on the ultimate stack pointer offset.
2193 (ix86_expand_epilogue): Use more obvious expressions testing for
2194 the stack pointer already pointing to the saved registers.
2196 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
2197 duplication deconstructing the frame pointer. Simplify
2198 deallocation of the local stack frame.
2200 * reg-notes.def (CFA_EXPRESSION): New.
2201 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
2202 (dwarf2out_frame_debug_cfa_expression): New.
2203 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
2205 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
2206 * config/i386/i386.c (ix86_expand_prologue): Set it.
2207 (ix86_expand_epilogue): Clear it.
2208 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
2209 context, add REG_CFA_EXPRESSION notes.
2211 * config/i386/i386.h (struct machine_frame_state): Rename from
2212 machine_cfa_state. Add members tracking SP and FP regardless
2213 of the current CFA register.
2214 (ix86_cfa_state): Remove.
2215 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
2216 and sse_reg_save_offset members.
2217 (ix86_compute_frame_layout): Set them.
2218 (gen_push): Increment sp_offset too.
2219 (choose_baseaddr_len, choose_baseaddr): New.
2220 (ix86_emit_save_reg_using_mov): New.
2221 (ix86_emit_save_regs_using_mov): Use it.
2222 (ix86_emit_save_sse_regs_using_mov): Likewise.
2223 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
2224 compare vs the saved red_zone_offset.
2225 (pro_epilogue_adjust_stack): Adjust sp_offset.
2226 (ix86_adjust_stack_and_probe): Likewise.
2227 (ix86_expand_prologue): Set up, use, and validate the new
2228 frame_state_info members. Use gen_frame_mem.
2229 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
2230 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
2231 new frame_state_info members.
2232 (ix86_emit_leave): Likewise.
2233 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
2234 out-of-range stack pointer offsets here.
2235 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2236 (ix86_expand_epilogue): Use and validate the new frame_state_info
2237 members. Break up and simplify the logic selecting the
2238 restore_regs_via_mov code path. Ensure that there will be no
2239 out-of-range stack pointer offsets.
2241 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
2243 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
2244 argument name to reflect the expected tree; fix indentation.
2245 (ix86_asm_output_function_label): Output the entire 32-bit
2246 ms_hook here as bytes ...
2247 (ix86_expand_prologue): ... not here as insns. Attach the
2248 unwind info for the ms_hook to a blockage insn.
2249 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
2250 (ix86_ms_bitfield_layout_p): Fix indentation.
2251 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
2253 * config/i386/i386.c (ix86_using_red_zone): New.
2254 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
2255 ix86_expand_prologue, ix86_force_to_memory): Use it.
2257 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
2258 saving the int registers.
2260 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
2261 and DWARF2_UNWIND_INFO conditional compilation.
2263 2010-08-04 Richard Henderson <rth@redhat.com>
2266 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
2267 an is_naming_typedef_decl.
2269 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
2271 PR rtl-optimization/45162
2272 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
2273 * dce.c (word_dce_process_block): Likewise.
2275 2010-08-04 Steve Ellcey <sje@cup.hp.com>
2278 * config/ia64/constraints.md (Z): New.
2279 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
2280 (xfreg_or_signed_fp01_operand): New.
2281 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
2282 with fr_reg_or_signed_fp01_operand and constraint G with Z.
2287 (adddf3_trunc): Ditto.
2289 (*subdf3_trunc): Ditto.
2291 (*madddf4_trunc): Ditto.
2293 (*msubdf4_trunc): Ditto.
2294 (addxf3): Replace xfreg_or_fp01_operand with
2295 xfreg_or_signed_fp01_operand and constraint G with Z.
2296 (*addxf3_truncsf): Ditto.
2297 (*addxf3_truncdf): Ditto.
2299 (*subxf3_truncsf): Ditto.
2300 (*subxf3_truncdf): Ditto.
2302 (*maddxf4_truncsf): Ditto.
2303 (*maddxf4_truncdf): Ditto.
2305 (*msubxf4_truncsf): Ditto.
2306 (*msubxf4_truncdf): Ditto.
2308 2010-08-04 Richard Guenther <rguenther@suse.de>
2310 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
2311 if either alias-set is zero.
2313 2010-08-04 Richard Guenther <rguenther@suse.de>
2315 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
2316 * tree-ssa-ccp.c: ... here.
2317 * tree-ssa-copy.c: ... and here.
2318 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
2319 value_range_t): Move ...
2320 * tree-vrp.c: ... here.
2321 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
2322 (substitute_and_fold): Adjust prototype.
2323 * tree-ssa-propagate.c (replace_uses_in): Adjust.
2324 (replace_phi_args_in): Likewise.
2325 (substitute_and_fold): Take callback to query lattice instead
2326 of pointer to lattice. Replace SSA name defs with lattice
2328 * tree-ssa-ccp.c (ccp_finalize): Adjust.
2329 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
2330 (get_value): New function.
2331 (fini_copy_prop): Adjust.
2332 * tree-vrp.c (vrp_finalize): Adjust.
2334 2010-08-04 Richard Guenther <rguenther@suse.de>
2337 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
2338 points-to set for original MEM_REF.
2340 2010-08-04 Richard Guenther <rguenther@suse.de>
2342 * tree-ssa-ccp.c (get_constant_value): New function.
2343 (get_rhs_assign_op_for_ccp): Remove.
2344 (valueize_op): New function.
2345 (ccp_fold): Use get_constant_value and valueize_op.
2346 (fold_const_aggregate_ref): Likewise.
2347 (ccp_fold_stmt): Likewise.
2348 (visit_assignment): Simplify.
2350 2010-08-04 Richard Guenther <rguenther@suse.de>
2352 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
2353 * double-int.h (double_int_ctz): Declare.
2354 * double-int.c (double_int_ctz): New function.
2356 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
2358 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
2360 picochip_expand_movmemhi : Expand movmem pattern.
2361 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
2363 * config/picochip/picochip.md (movmemhi) : New pattern.
2365 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
2367 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
2369 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
2371 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
2372 NEG as operand of a MULT by merging it with the other operand.
2373 * combine.c (make_compound_operation): Use trunc_int_for_mode when
2374 generating a MULT with constant. Canonicalize PLUS and MINUS involving
2376 * config/arm/constraints.md (M): Examine only 32 bits of a
2378 * config/arm/predicates.md (power_of_two_operand): Likewise.
2380 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2382 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
2385 2010-08-03 Jan Hubicka <jh@suse.cz>
2387 * ipa-split.c (struct split_point): Add split_part_set_retval.
2388 (find_retval): Forward declare.
2389 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
2390 (consider_split): Compute current->split_part_set_retval.
2391 (visit_bb): Do not look into return value.
2392 (split_function): Handle !split_part_set_retval
2394 2010-08-03 Martin Jambor <mjambor@suse.cz>
2396 * tree-sra.c (completely_scalarize_record): New parameter REF, create
2397 its own access->expr intead of using build_ref_for_offset.
2399 2010-08-03 Joseph Myers <joseph@codesourcery.com>
2401 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
2402 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
2403 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
2404 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
2405 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
2406 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
2407 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
2408 DEFAULT_SWITCH_TAKES_ARG.
2409 * config/rx/rx.opt (-patch=): Remove option.
2410 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
2411 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
2412 * doc/invoke.texi (RX Options): Remove -patch=.
2413 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
2414 (option_map): Remove --profile-blocks, --quiet and --silent.
2416 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
2418 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
2419 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
2420 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
2421 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
2422 Update calls to ix86_expand_compare and ix86_expand_branch.
2423 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
2424 ix86_expand_compare.
2425 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
2426 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
2428 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
2429 and ix86_compare_op1. Update calls to ix86_expand_compare.
2430 (ix86_expand_int_movcc): Ditto.
2431 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
2432 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
2433 (ix86_expand_setcc): Ditto.
2434 (ix86_expand_compare): Remove prototype.
2435 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
2436 ix86_compare_op0 and ix86_compare_op1. Update calls
2437 to ix86_expand_branch to directly pass operands[1] and operands[2].
2438 (cbranchxf4): Ditto.
2439 (cbranch<MODEF:mode>4): Ditto.
2440 (cbranchcc4): Ditto.
2441 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
2442 Update calls to ix86_expand_setcc to directly pass operands[2] and
2445 (cstore<MODEF:mode>4): Ditto.
2448 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
2451 * caller-save.c (save_call_clobbered_regs): Remove regs from
2452 hard_regs_saved when they are set.
2454 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
2457 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
2460 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
2462 * common.opt (ftree-loop-distribute-patterns): New.
2463 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
2464 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
2466 * tree-data-ref.c (stores_zero_from_loop): New.
2467 * tree-data-ref.h (stores_zero_from_loop): Declared.
2468 * tree-loop-distribution.c (tree_loop_distribution): Call
2469 stores_zero_from_loop.
2470 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
2472 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
2474 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
2477 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
2478 * config/arm/arm.c (thumb1_code): New variable.
2479 (arm_override_options): Set it.
2480 (thumb1_final_prescan_insn): Keep track of condition code status.
2481 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
2482 jumps that depend on them.
2483 * config/arm/arm.h (thumb1_code): Declare variable.
2484 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
2485 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
2487 (CC_STATUS_INIT): New macro.
2488 * config/arm/constraints.md (Pd): New constraint.
2489 * config/arm/predicates.md (noov_comparison_operator): New predicate.
2490 * config/arm/arm.md (is_thumb1): New define_attr.
2491 (conds): Set default to "clob" when generating Thumb1 code.
2492 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
2493 code are set. Use two-operand assembly syntax.
2494 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
2496 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
2497 codes are set. Use two-operand assembly syntax.
2498 (zero_extendhisi splitter): Remove constraints.
2499 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
2500 thumb1_movsf_insn): Set conds attribute as appropriate.
2501 (cbranchsi4_insn): Use condition code status from struct
2502 machine_function to determine whether the comparison can be eliminated.
2503 Discourage the alternative using high registers.
2504 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
2505 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
2506 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
2507 subsi3_cbranch): Delete.
2508 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
2509 one subtract and one cbranch insn.
2511 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
2512 thumb2_movdf_soft_insn): Delete patterns.
2513 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
2514 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
2515 (pool_range, neg_pool_range): Use them to define defaults.
2516 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
2517 and allow for TARGET_32BIT.
2520 * config/arm/arm.h (arm_regs_in_sequence): Declare.
2521 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
2522 load_multiple_sequence, store_multiple_sequence): Delete
2524 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
2526 * config/arm/ldmstm.md: New file.
2527 * config/arm/arm.c (arm_regs_in_sequence): New array.
2528 (load_multiple_sequence): Now static. New args SAVED_ORDER,
2529 CHECK_REGS. All callers changed.
2530 If SAVED_ORDER is nonnull, copy the computed order into it.
2531 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
2532 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
2533 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
2534 If SAVED_ORDER is nonnull, copy the computed order into it.
2535 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
2536 like REGS. Handle Thumb mode.
2537 (arm_gen_load_multiple_1): New function, broken out of
2538 arm_gen_load_multiple.
2539 (arm_gen_store_multiple_1): New function, broken out of
2540 arm_gen_store_multiple.
2541 (arm_gen_multiple_op): New function, with code from
2542 arm_gen_load_multiple and arm_gen_store_multiple moved here.
2543 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
2544 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
2546 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
2547 * config/arm/predicates.md (commutative_binary_operator): New.
2548 (load_multiple_operation, store_multiple_operation): Handle more
2549 variants of these patterns with different starting offsets. Handle
2551 * config/arm/arm.md: Include "ldmstm.md".
2552 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
2553 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
2554 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
2556 * config/arm/ldmstm.md: New file.
2557 * config/arm/arm-ldmstm.ml: New file.
2559 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
2560 if statement which adds extra costs to frame-related expressions.
2562 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2564 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
2566 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
2569 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
2571 (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
2572 split V4SI operands.
2574 2010-08-01 Anatoly Sokolov <aesok@post.ru>
2576 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2577 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
2578 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
2579 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
2581 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
2583 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
2586 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
2588 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
2589 used in the call to optab_for_tree_code. Fix the second
2590 is_widening_mult_p call. Check that both unwidened operands
2593 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
2595 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
2597 2010-07-31 Anatoly Sokolov <aesok@post.ru>
2599 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2601 2010-07-30 DJ Delorie <dj@redhat.com>
2603 * config/rx/predicates.md (rx_constshift_operand): New.
2604 * config/rx/rx.md (zs_cond): New.
2605 (cbranchsi4): Remove mode.
2606 (*cbranchsi4_<code>): Likewise.
2607 (*tstbranchsi4_<code>): New.
2608 (*tstbranchsi4r_<code>): New.
2609 (*tstbranchsi4m_eq): New.
2610 (*tstbranchsi4m_ne): New.
2611 (cbranchsf4): Remove mode.
2612 (*cbranchsf4_<code>): Likewise.
2614 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
2616 * rtlanal.c (simplify_subreg_regno): Don't treat
2617 HARD_FRAME_POINTER_REGNUM specially.
2619 2010-07-30 Joseph Myers <joseph@codesourcery.com>
2621 * common.opt (-G): Don't define option here.
2622 * config/g.opt: New.
2623 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
2624 rs6000/powerpc and score targets.
2625 * opts.c (common_handle_option): Don't handle -G here.
2626 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
2627 * config/frv/frv.c (frv_handle_option): Handle -G.
2628 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
2629 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
2630 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
2631 * config/mips/mips.c (mips_handle_option): Handle -G.
2632 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
2633 * config/score/score.c (score_handle_option): Handle -G.
2635 2010-07-30 Anatoly Sokolov <aesok@post.ru>
2637 * config/mmix/mmix.c: Include basic-block.h.
2639 2010-07-30 Jakub Jelinek <jakub@redhat.com>
2642 PR rtl-optimization/45137
2643 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
2645 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
2647 * combine.c (next_nonnote_nondebug_insn): Removed.
2648 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
2649 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
2650 * sched-deps.c (sched_analyze_insn): Likewise.
2651 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
2652 * rtlanal.c (canonicalize_condition): Likewise.
2653 * postreload.c (reload_combine_recognize_pattern): Likewise.
2654 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
2656 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
2658 * config/i386/i386.md (int_cond): Remove code iterator.
2660 (cbranch<mode>4): Use ordered_comparison_operator predicate
2662 (cstore<mode>4): Ditto for operator1.
2663 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
2664 (add<mode>cc): ditto.
2666 2010-07-30 Richard Guenther <rguenther@suse.de>
2669 * expr.c (expand_expr_real_1): Check for not handled base address.
2671 2010-07-30 Richard Guenther <rguenther@suse.de>
2673 * ipa-prop.c (ipa_modify_formal_parameters): Use
2674 build_distinct_type_copy.
2676 2010-07-30 Anthony Green <green@moxielogic.com>
2678 * config/moxie/rtems.h: New file.
2679 * config.gcc: Add moxie-rtems support.
2681 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
2683 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
2684 df flags as in run_fast_df_dce.
2686 2010-07-29 Jakub Jelinek <jakub@redhat.com>
2689 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
2691 * rtl.def (NOTE): Swap operands 4 and 5.
2692 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
2693 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
2695 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
2697 2010-07-29 Jakub Jelinek <jakub@redhat.com>
2700 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
2701 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
2702 (gen_subprogram_die): Likewise. Remove it when removing declaration's
2704 (gen_decl_die): Change return type to dw_die_ref, return what
2705 gen_formal_parameter_die returned.
2707 2010-07-29 Martin Jambor <mjambor@suse.cz>
2709 * dbgcnt.def (eipa_sra): New counter.
2710 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
2712 2010-07-29 Xinliang David Li <davidxl@google.com>
2715 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
2718 2010-07-29 Richard Guenther <rguenther@suse.de>
2720 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
2721 (TV_TREE_STORE_CCP): Likewise.
2722 (TV_TREE_REDPHI): Likewise.
2724 2010-07-29 Richard Guenther <rguenther@suse.de>
2726 * double-int.h (double_int_and_not): New function.
2727 * combine.c (try_combine): Use it.
2728 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
2730 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
2732 PR rtl-optimization/42575
2733 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
2734 Argument AU removed. All callers changed. Ignore artificial refs.
2735 Use return value of df_word_lr_simulate_defs to decide whether an insn
2737 (fast_dce): Rename arg to WORD_LEVEL.
2738 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
2740 (pass_fast_rtl_byte_dce): Delete.
2741 * dce.h (run_word_dce): Declare.
2742 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
2743 All callers changed. Simplify code to only deal with two-word regs.
2744 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
2745 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
2746 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
2747 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
2748 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
2749 (df_word_lr_mark_ref): Declare.
2750 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
2751 df_word_lr_simulate_uses): Declare or rename from byte variants.
2752 (df_byte_lr_simulate_artificial_refs_at_top,
2753 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
2754 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
2756 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
2757 (enum df_mm): Delete.
2758 * df-byte-scan.c: Delete file.
2759 * df-problems.c (df_word_lr_problem_data): Renamed from
2760 df_byte_lr_problem_data, all members deleted except for
2761 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
2762 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
2763 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
2764 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
2765 df_byte_lr_confluence_0): Delete functions.
2766 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
2768 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
2769 Don't initialize members that were deleted, don't try to discover data
2770 about registers. Ignore hard regs.
2771 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
2772 (df_word_lr_mark_ref): New function.
2773 (df_word_lr_bb_local_compute): Renamed from
2774 df_byte_bb_lr_local_compute; all callers changed. Use
2775 df_word_lr_mark_ref. Assert that artificial refs don't include
2776 pseudos. Ignore hard registers.
2777 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
2778 Assert that exit block uses don't contain pseudos.
2779 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
2780 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
2781 callers changed. Ignore hard regs.
2782 (df_word_lr_transfer_function): Renamed from
2783 df_byte_lr_transfer_function; all callers changed.
2784 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
2785 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
2787 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
2789 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
2790 confluence operator 0 set to NULL.
2791 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
2793 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
2794 Return bool, true if bitmap changed or insn otherwise necessary.
2795 All callers changed. Simplify using df_word_lr_mark_ref.
2796 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
2797 all callers changed. Simplify using df_word_lr_mark_ref.
2798 * lower-subreg.c: Include "dce.h"
2799 (decompose_multiword_subregs): Call run_word_dce if df available.
2800 * Makefile.in (lower-subreg.o): Adjust dependencies.
2801 (df-byte-scan.o): Delete.
2802 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
2804 2010-07-29 Richard Guenther <rguenther@suse.de>
2806 * tree.c (build_vector): Assert that the vector constant
2807 has enough elements.
2808 (build_vector_from_ctor): Pad with trailing zeros.
2810 2010-07-29 Richard Guenther <rguenther@suse.de>
2812 PR tree-optimization/45120
2813 * tree-ssa-structalias.c (get_constraint_for_component_ref):
2814 Handle offset in DEREFs properly.
2815 (get_constraint_for_1): Handle MEM_REF offset properly.
2817 2010-07-29 Richard Guenther <rguenther@suse.de>
2820 * convert.c (convert_to_integer): Always use an unsigned
2821 type for narrowed negate and bitwise not.
2823 2010-07-29 Ira Rosen <irar@il.ibm.com>
2825 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
2826 to outer loop when creating reduction epilogue for double reduction,
2827 and switch back to the inner loop when updating the phi nodes.
2828 Update uses of outer loop exit phi nodes in double reduction (instead
2829 of uses of reduction).
2831 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
2833 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
2834 popcount on power7 and parity on power6 systems.
2835 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
2836 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
2839 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
2840 (UNSPEC_PARITY): Ditto.
2841 (SFDF): New iterator for SF/DF.
2842 (rreg2): New mode attribute for floating register constraint.
2843 (TARGET_FLOAT): New mode attribute for whether single/double float
2845 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
2847 (parity<mode>2_cmpb): New insn for parity on power6 and newer
2849 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
2850 pattern. Add support for fcpsgn instruction added in power6.
2851 (copysignsf3): Delete.
2852 (copysigndf3): Delete.
2853 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
2854 instead of if_then_else in RTL to avoid problems with -0.
2856 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
2857 of if_then_else to mirror scalar code.
2858 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
2861 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
2862 instead of if_then_else.
2864 2010-07-28 Xinliang David Li <davidxl@google.com>
2866 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
2867 (dump_cand): Dump var_before/after.
2868 (htab_inv_expr_eq): New function.
2869 (htab_inv_expr_hash): New function.
2870 (tree_ssa_iv_optimize_init): Support pseudo invariants.
2871 (add_candidate_1): consider base type precision.
2872 (set_use_iv_cost): New parameter.
2873 (adjust_setup_cost): Use profile information.
2874 (get_address_cost): Do not hard code width in computing address
2876 (compare_aff_trees): New function.
2877 (get_loop_invariant_expr_id): New function.
2878 (get_computation_cost_at): New parameter and use profile information.
2879 (get_computation_cost): New parameter.
2880 (determine_use_iv_cost_generic): Pass new parameter.
2881 (determine_use_iv_cost_address): Ditto.
2882 (determine_use_iv_cost_condition): Ditto.
2883 (autoinc_possible_for_pair): Ditto.
2884 (determine_use_iv_costs): More dumps.
2885 (iv_ca_get_num_inv_exprs): New function.
2886 (iv_ca_recount_cost): Consider loop invariants in register pressure
2888 (iv_ca_add_use): New parameter.
2889 (iv_ca_dump): Better dumping.
2890 (iv_ca_extend): New parameter.
2891 (try_add_cand_for): Attempt to get better partial solution.
2892 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
2893 (create_new-ivs): More dumps.
2894 (rewrite_use_compare): Ditto.
2895 (free_loop_data): More cleanup.
2896 (treee_ssa_iv_optimize_finalize): Ditto.
2898 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
2900 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
2901 * config/i386/i386.c (ix86_profile_before_prologue): New.
2902 (override_options): Add special handling for -mfentry.
2903 (ix86_function_regparm): Likewise.
2904 (ix86_function_sseregparm): Likewise.
2905 (ix86_frame_pointer_required): Likewise.
2906 (ix86_expand_prologue): Check for ms_hook_prologue.
2907 (x86_function_profiler): Adjust mcount output.
2908 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
2909 * config/i386/i386.opt (mfentry): New.
2910 * doc/invoke.texi (mfentry): Add documentation.
2911 * doc/tm.texi: Regenerated..
2912 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
2913 * final.c (final_start_function): Replace macro
2914 PROFILE_BEFORE_PROLOGUE by target hook.
2915 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2916 * target.def (profile_before_prologue): New hook.
2917 * targhooks.c (default_profile_before_prologue): New.
2918 * targhooks.h (default_profile_before_prologue): New.
2920 2010-07-28 Jakub Jelinek <jakub@redhat.com>
2923 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
2926 * dwarf2out.c (dwarf2out_var_location): Always consider
2927 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
2929 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
2931 PR rtl-optimization/45107
2932 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
2934 2010-07-28 Richard Guenther <rguenther@suse.de>
2936 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
2937 (set_lattice_value): Do not query an old default value.
2938 (get_value_for_expr): New function. Properly canonicalize
2940 (ccp_visit_phi_node): Use it.
2942 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
2944 * config/arm/arm.c (arm_pcs_default): Remove static.
2945 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
2946 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
2947 (arm_pcs_default): Declare.
2949 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
2951 * config/rs6000/rs6000.c (rs6000_override_options):
2952 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
2953 ... to darwin_rs6000_override_options.
2954 (rs6000_return_in_memory): Update preceding comment for darwin
2955 64 bit ABI. Use TARGET_MACHO inline.
2956 (rs6000_darwin64_struct_check_p): New.
2957 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
2958 (function_arg): Likewise.
2959 (rs6000_arg_partial_bytes): Likewise.
2960 (rs6000_function_value): Likewise.
2962 2010-07-28 Andi Kleen <ak@linux.intel.com>
2964 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
2966 2010-07-28 Richard Guenther <rguenther@suse.de>
2969 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
2970 targets try harder to not generate unaligned accesses.
2972 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
2974 PR rtl-optimization/45101
2975 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
2978 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
2980 PR tree-optimization/44885
2981 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
2982 with non-aliased component.
2984 2010-07-28 Joseph Myers <joseph@codesourcery.com>
2986 * config/darwin-driver.c (SWITCH_TAKES_ARG,
2987 WORD_SWITCH_TAKES_ARG): Remove.
2988 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2989 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
2990 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
2991 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
2992 definitions from gcc.c.
2993 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
2995 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
2997 * opts-common.c: Include tm.h.
2998 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
2999 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
3000 Handle more than one argument. Set canonical_option_num_elements.
3001 (decode_cmdline_options_to_array): Set
3002 canonical_option_num_elements and trailing elements of
3004 * opts.h (struct cl_decoded_option): Allow four elements in
3005 canonical_option. Add field canonical_option_num_elements.
3006 * Makefile.in (opts-common.o): Update dependencies.
3008 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
3012 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
3013 sure the base has address_mode before adding the offset.
3015 2010-07-27 Xinliang David Li <davidxl@google.com>
3017 * tree-flow.h (create_mem_ref): Add one new parameter.
3018 * tree-ssa-address.c (create_mem_ref): New parameter.
3019 (addr_to_parts): Ditto.
3020 (move_variant_to_index): New function.
3021 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
3023 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
3025 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
3027 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
3028 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
3029 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
3030 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
3031 CODE_LABELs and NOTEs.
3032 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
3033 * combine.c (try_combine): Likewise.
3034 * ira.c (setup_prohibited_mode_move_regs): Likewise.
3035 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
3037 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3039 * coretypes.h (struct cl_option_handlers): Declare.
3040 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
3041 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
3042 * langhooks-def.h (lhd_handle_option): Declare.
3043 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
3044 * langhooks.c (lhd_handle_option): New.
3045 * langhooks.h (struct lang_hooks): Update prototype and return
3046 value type of handle_option hook.
3047 * optc-gen.awk: Generate target_flags_explicit definition for the
3049 * opts-common.c: Include diagnostic.h.
3050 (handle_option): Move from opts.c. Update prototype and return
3051 value type. Use handlers structure.
3052 (read_cmdline_option): Move from opts.c. Update prototype. Use
3054 (set_option): Move from opts.c.
3055 * opts.c (common_handle_option): Update prototype and return value
3056 type. Update calls to handle_option and enable_warning_as_error.
3057 (unknown_option_callback, post_handling_callback,
3058 lang_handle_option, target_handle_option): New.
3059 (handle_option, read_cmdline_option): Move to opts-common.c.
3060 (read_cmdline_options): Update prototype. Update call to
3061 read_cmdline_option.
3062 (decode_options): Initialize and use handlers structure.
3063 (set_option): Move to opts-common.c.
3064 (enable_warning_as_error): Update prototype. Update call to
3066 * opts.h (struct cl_option_handler_func, struct
3067 cl_option_handlers): New.
3068 (handle_option, enable_warning_as_error): Update prototypes.
3069 (read_cmdline_option): Declare.
3070 * Makefile.in (opts-common.o): Update dependencies.
3072 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
3074 * config/arm/arm.c (params.h): Include.
3075 (arm_override_options): Tune gcse-unrestricted-cost.
3076 * config/arm/t-arm (arm.o): Define dependencies.
3078 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
3082 * basic-block.h (get_dominated_to_depth): Declare.
3083 * dominance.c (get_dominated_to_depth): New function, use
3084 get_all_dominated_blocks as a base.
3085 (get_all_dominated_blocks): Use get_dominated_to_depth.
3087 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
3088 (hoist_exprs): Remove.
3089 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
3090 (compute_code_hoist_vbeinout): Add debug print outs.
3091 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
3093 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
3095 * params.h (MAX_HOIST_DEPTH): New macro.
3096 * doc/invoke.texi (max-hoist-depth): Document.
3098 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
3100 PR rtl-optimization/40956
3101 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
3104 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
3108 * config/arm/arm.c (legitimize_pic_address): Use
3109 gen_calculate_pic_address pattern to emit calculation of PIC address.
3110 (will_be_in_index_register): New function.
3111 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
3112 (thumb1_legitimate_address_p): Use it provided !strict_p.
3113 * config/arm/arm.md (calculate_pic_address): New expand and split.
3115 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
3119 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
3120 * config/arm/arm.md (define_split "J", define_split "K"): Make
3121 IRA/reload friendly.
3123 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
3125 * gcse.c (insert_insn_end_basic_block): Update signature, remove
3127 (pre_edge_insert, hoist_code): Update.
3129 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
3133 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
3135 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
3137 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
3139 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
3141 PR rtl-optimization/40956
3144 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
3146 (hoist_code): Count occurences in current block too.
3148 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
3150 * gcse.c (struct expr:max_distance): New field.
3151 (doing_code_hoisting_p): New static variable.
3152 (want_to_gcse_p): Change signature. Allow constrained hoisting of
3153 simple expressions, don't change behavior for PRE. Set max_distance.
3154 (insert_expr_in_table): Set new max_distance field.
3155 (hash_scan_set): Update.
3156 (hoist_expr_reaches_here_p): Stop search after max_distance
3158 (find_occr_in_bb): New static function. Use it in ...
3159 (hoist_code): Calculate sizes of basic block before any changes are
3160 done. Pass max_distance to hoist_expr_reaches_here_p.
3161 (one_code_hoisting_pass): Set doing_code_hoisting_p.
3163 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
3164 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
3165 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
3167 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
3170 2010-07-27 Jeff Law <law@redhat.com>
3171 Maxim Kuvyrkov <maxim@codesourcery.com>
3173 * gcse.c (compute_transpout, transpout): Remove, move logic
3174 to prune_expressions.
3175 (compute_pre_data): Move pruning of trapping expressions ...
3176 (prune_expressions): ... here. New static function.
3177 (compute_code_hoist_data): Use it.
3178 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
3180 2010-07-27 Xinliang David Li <davidxl@google.com>
3182 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
3183 (rewrite_use_address): Adjust iv update position when needed.
3185 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
3187 * dbgcnt.def (hoist_insn): New debug counter.
3188 * gcse.c (hoist_code): Use it.
3190 2010-07-27 Xinliang David Li <davidxl@google.com>
3192 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
3193 (niter_for_single_dom_exit): Passes additional parameter.
3194 (iv_period): Fix comments.
3195 (may_eliminate_iv): Handles multiple exit loops properly.
3196 (free_tree_niter_desc): New function.
3197 (free_loop_data): Frees up loop iteration descriptors.
3199 2010-07-27 Jakub Jelinek <jakub@redhat.com>
3202 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
3203 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
3204 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
3205 (expand_one_var): Don't consider DECL_ALIGN for variables for
3206 which expand_one_stack_var_at has been already called.
3209 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
3210 constraints on IA-64.
3212 2010-07-27 Jie Zhang <jie@codesourcery.com>
3216 2010-07-23 Jie Zhang <jie@codesourcery.com>
3218 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
3219 false if ! tree_versionable_function_p.
3221 2010-07-27 Jakub Jelinek <jakub@redhat.com>
3223 * dwarf2out.c (add_data_member_location_attribute): Use
3224 add_AT_unsigned instead of add_AT_int if offset is non-negative.
3226 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
3228 * postreload.c (try_replace_in_use): New static function.
3229 (reload_combine_recognize_const_pattern): Use it here. Allow
3230 substituting into a final add insn, and substituting into a memory
3231 reference in an insn that sets the reg.
3233 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3235 * common.opt (o): Add MissingArgError.
3236 * doc/options.texi (MissingArgError): Document.
3237 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
3238 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
3239 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3240 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
3241 * langhooks.h (struct lang_hooks): Remove missing_argument.
3242 * optc-gen.awk: Handle MissingArgError and output new structure
3244 * opts.c (read_cmdline_option): Use missing_argument_error field
3245 instead of missing_argument langhook.
3246 * opts.h (struct cl_option): Add missing_argument_error field.
3247 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
3249 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
3252 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
3253 Darwin64 ABI, for zero-sized objects.
3255 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
3260 Merge from Apple local 4.2.1.
3261 2005-05-11 Stan Shebs <shebs@apple.com>
3262 Fix 64-bit varargs for Darwin (Radar 4028089).
3263 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
3264 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
3265 Add argument, add case for 8-byte register half-filled with a float.
3266 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
3267 single-precision floats specially.
3269 2010-07-27 Ira Rosen <irar@il.ibm.com>
3271 PR tree-optimization/44152
3272 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
3273 complex numbers for further check.
3274 (vect_supported_load_permutation_p): Check nodes with
3277 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3279 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
3280 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
3281 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
3282 (LANG_HOOKS_INITIALIZER): Add new hooks.
3283 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
3284 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
3285 and complain_wrong_lang_p. Update init_options prototype.
3286 * c-objc-common.c (c_initialize_diagnostics): First call
3287 c_common_initialize_diagnostics.
3288 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
3289 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
3290 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
3291 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
3292 (hook_uint_void_0): New.
3293 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
3294 (hook_uint_void_0): New.
3295 * opts-common.c (decode_cmdline_option,
3296 decode_cmdline_options_to_array): Also fill in canonical_option field.
3297 * opts.c (complain_wrong_lang): Use langhook to determine whether
3298 to complain instead of special-casing LTO.
3299 (decode_options): Separate lang_mask determination with
3300 option_lang_mask hook from call of init_options hook.
3301 * opts.h (struct cl_decoded_option): Add canonical_option.
3303 2010-07-27 Jakub Jelinek <jakub@redhat.com>
3305 PR tree-optimization/45083
3306 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
3308 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
3310 * postreload.c (reload_combine_recognize_const_pattern): Move test
3311 for limiting the insn movement to the right scope.
3313 PR rtl-optimization/45051
3314 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
3315 than reg_mentioned_p.
3317 2010-07-26 Richard Henderson <rth@redhat.com>
3320 * tree-emutls.c: New file.
3321 * Makefile.in (OBJS-common): Add it.
3322 * tree-pass.h (pass_ipa_lower_emutls): Declare.
3323 * passes.c (init_optimization_passes): Add it.
3325 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
3326 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
3327 * expr.c (emutls_var_address): Delete.
3328 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
3329 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
3330 (emutls_finish): Delete.
3331 * toplev.c (compile_file): Don't call it.
3332 * tree.h (emutls_decl): Delete.
3333 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
3334 (emutls_finish, emutls_finalize_control_var): Delete.
3335 (emutls_object_type): Move to tree-emutls.c.
3336 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
3337 default_emutls_var_fields, get_emutls_object_type,
3338 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
3339 default_emutls_var_init): Likewise.
3340 (get_variable_section): Don't special case emutls.
3341 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
3342 default_elf_select_section, default_unique_section,
3343 default_encode_section_info): Likewise.
3344 * varpool.c (decide_is_variable_needed): Likewise.
3345 * gimple-iterator.c (update_call_edge_frequencies): New
3346 (gsi_insert_on_edge_immediate): Use it.
3347 (gsi_insert_seq_on_edge_immediate): Likewise.
3348 (gsi_commit_one_edge_insert): Likewise.
3350 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
3351 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
3352 (x86_64_elf_unique_section): Likewise.
3354 2010-07-26 Jan Hubicka <jh@suse.cz>
3356 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
3359 2010-07-26 Anatoly Sokolov <aesok@post.ru>
3361 * target.def (output_source_filename): New hook.
3362 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
3363 * doc/tm.texi: Regenerate.
3364 * toplev.c (output_file_directive) Remove function.
3365 * toplev.h (output_file_directive) Remove.
3366 * output.h (default_asm_output_source_filename,
3367 output_file_directive): Declare.
3368 * varasm.h (default_asm_output_source_filename,
3369 output_file_directive): New functions.
3371 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
3372 * config/mips/mips-protos.h (mips_output_filename): Remove.
3373 * config/mips/mips.c (mips_output_filename): Make Static.
3374 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
3376 2010-07-26 Richard Guenther <rguenther@suse.de>
3378 PR tree-optimization/43784
3379 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
3380 if the destination is used by the call.
3382 2010-07-26 Richard Guenther <rguenther@suse.de>
3385 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
3386 SSA updating on being in SSA form.
3388 2010-07-26 Richard Guenther <rguenther@suse.de>
3391 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
3393 2010-07-26 Richard Guenther <rguenther@suse.de>
3395 PR tree-optimization/45071
3396 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
3399 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
3401 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
3402 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
3403 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
3404 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
3405 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
3406 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
3407 save_r31, return_r31, save_interrupt, return_interrupt,
3408 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
3409 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
3410 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
3411 new ABI requirements.
3412 (save_r6_r9, L_callt_save_r6_r9): Remove.
3413 * config/v850/predicates.md (even_reg_operand, disp23_operand,
3414 const_float_1_operand const_float_0_operand): New Predicates.
3415 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
3416 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
3417 * config/v850/t-v850: Update multilibs for new target variants.
3418 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
3419 * config/v850/t-v850e: Likewise.
3420 * config/v850/v850.c (v850_issue_rate): New.
3421 (v850_strict_argument_naming): New.
3422 (function_arg): Modify to generate a different ABI.
3423 (print_operand): Update case 'z' to support float modes.
3424 (output_move_single): Modify to generate appropriate and better
3426 (v850_float_z_comparison_operator, v850_select_cc_mode,
3427 v850_float_nz_comparison_operator, v850_gen_float_compare,
3428 v850_gen_compare): New functions to support comparison of float values.
3429 (ep_memory_offset): Add support for V850E2 targets.
3430 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
3431 (INTERRUPT_REGPARM_NUM): Remove.
3432 (compute_register_save_size): Add extra case to save/restore long call.
3433 (use_prolog_function): New function to support prologue.
3434 (expand_prologue): Add support for V850E2 targets and modified
3435 as per the current ABI requirements.
3436 (expand_epilogue): Likewise.
3437 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
3438 (construct_save_jarl): Likewise.
3439 (construct_dispose_instruction): Update as per the current ABI
3441 (construct_prepare_instruction): Likewise.
3442 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
3443 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
3444 (CPP_SPEC): Updated to support v850e2 targets.
3445 (STRICT_ALIGNMENT): Modified.
3446 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
3447 (FIXED_REGISTERS): Likewise.
3448 (CALL_USED_REGISTERS): Likewise.
3449 (CONDITIONAL_REGISTER_USAGE): Updated.
3450 (HARD_REGNO_MODE_OK): Updated.
3451 (reg_class): Updated to add even registers.
3452 (REG_CLASS_NAMES): Likewise.
3453 (REG_CLASS_CONTENTS): Likewise.
3454 (REGNO_REG_CLASS): Updated for CC registers.
3455 (REG_CLASS_FROM_LETTER): Added support for even registers.
3456 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
3457 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
3458 ARG_POINTER_REGNUM): Updated.
3459 (FUNCTION_ARG_ADVANCE): Define.
3460 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
3461 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
3462 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
3463 (GO_IF_LEGITIMATE_ADDRESS): Updated.
3464 (SELECT_CC_MODE): Define.
3465 (REGISTER_NAMES): Updated to add psw and fcc registers.
3466 (ADDITIONAL_REGISTER_NAMES): Updated.
3467 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
3468 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
3469 * config/v850/v850.md (define_constants): Define new constants.
3470 (type): Update store,bit1,macc,div,fpu and single attributes.
3471 (cpu): New attribute.
3472 (cc): Add set_z attribute.
3473 (unsign23byte_load, sign23byte_load, unsign23hword_load,
3474 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
3475 23word_store): New instructions for 23-bit displacement load and store.
3476 (movqi_internal, movhi_internal): Update the attributes.
3477 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
3478 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
3480 (v850_tst1): Modified using CC_REGNUM.
3482 (cmpsi): Modified as define_expand from define_insn.
3483 (cmpsi_insn, cmpsf, cmpdf): New instructions.
3484 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
3485 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
3486 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
3487 one_cmplsi2): Clobber the CC_REGNUM register.
3488 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
3489 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
3490 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
3491 (setf_insn, set_z_insn, set_nz_insn): New instructions for
3493 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
3494 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
3496 (sasf_1, sasf_2): Remove.
3497 (sasf): New instruction.
3498 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
3499 targets. CC_REGNUM register is clobbered and attributes are
3501 (branch_z_normal, branch_z_invert, branch_nz_normal,
3502 branch_nz_invert): New branch related instructions.
3503 (jump): Updated the attributes.
3504 (switch): Update to support new targets. CC_REGNUM register is
3505 clobbered and attributes are updated.
3506 (call_internal_short, call_internal_long, call_value_internal_short,
3507 call_value_internal_long): Updated the attributes.
3508 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
3509 clobbered and attributes are updated.
3510 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
3511 Update to support new targets. CC_REGNUM register is clobbered.
3512 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
3514 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
3516 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
3517 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
3518 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
3519 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
3520 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
3521 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
3522 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
3523 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
3524 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
3525 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
3526 point instructions defined for V850e2v3 target.
3527 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
3528 Add support for V850E2 targets and CC_REGNUM register is clobbered.
3529 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
3530 support for new targets.
3531 * config/v850/v850-modes.def: New file.
3532 * config/v850/v850.opt(mstrict-align): Remove.
3533 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
3534 mv850e2v3): New command line options for V850.
3535 * config.gcc: Update the newly added files.
3536 * doc/invoke.texi: Update the newly added command line options for
3539 2010-07-26 Richard Guenther <rguenther@suse.de>
3541 PR tree-optimization/45052
3542 * ipa-pure-const.c (check_stmt): Check volatileness.
3544 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
3547 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
3548 * config/sparc/sparc.c: Include reload.h.
3549 (legitimize_tls_address): Rename into...
3550 (sparc_legitimize_tls_address): ...this.
3551 (legitimize_pic_address): Rename into...
3552 (sparc_legitimize_pic_address): ...this.
3553 (sparc_expand_move): Adjust to above renaming.
3554 (sparc_tls_referenced_p): Likewise.
3555 (sparc_legitimize_tls_address): Likewise.
3556 (sparc_legitimize_pic_address): Likewise.
3557 (sparc_legitimize_address): Likewise.
3558 (sparc_output_mi_thunk): Likewise.
3559 (sparc_legitimize_reload_address): New global function. Recognize
3560 (lo_sum (high ...) ...) patterns generated by earlier passes.
3561 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
3563 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
3566 * config/sparc/predicates.md (memory_reg_operand): Delete.
3567 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
3568 (*sync_compare_and_swap): Encode the address form in the pattern.
3569 (*sync_compare_and_swapdi_v8plus): Likewise.
3571 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
3573 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
3574 Streamline paragraph on compatibility with the system compiler.
3576 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
3579 * alias.c (true_dependence_1): Fix thinko in merge of old
3580 true_dependence and canon_true_dependence.
3582 2010-07-23 Jan Hubicka <jh@suse.cz>
3584 * lto-streamer-out.c (write_symbol): Fix visibilities of external
3587 2010-07-23 Le-Chun Wu <lcwu@google.com>
3589 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
3590 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
3591 and an unnecessary assignment.
3592 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
3593 self-assign warning.
3594 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
3595 unnecessary self-init.
3597 2010-07-23 Richard Guenther <rguenther@suse.de>
3600 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
3601 for -flto and -fwhopr.
3603 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
3606 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
3607 (stmp-int-hdrs): Prefix/postfix headers by include_next.
3608 * config.gcc (user_headers_inc_next_pre): New.
3609 (user_headers_inc_next_post): Likewise.
3610 (*-w64-mingw*): Use for float.h post-fixing, and for
3611 stddef.h/stdarg.h pre-fixing by include_next.
3612 * configure.ac (user_headers_inc_next_post): New.
3613 (user_headers_inc_next_pre): New.
3614 * configure: Regenerated.
3616 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3618 * configure.ac: Don't disable TLS on Solaris 8/9 by default
3619 Set tga_func for Solaris 2/x86 resp. SPARC.
3620 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
3621 (LIB_THREAD_LDFLAGS_SPEC): Define.
3622 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
3623 * configure: Regenerate.
3624 * config.in: Regenerate.
3625 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
3626 -pthread, -threads, LIB_TLS_SPEC with -pthread.
3627 * doc/install.texi (Specific, *-*-solaris2*): Document use of
3628 alternate thread libraries on Solaris 8.
3629 Document TLS patch requirements.
3630 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
3634 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
3637 2010-07-23 Jakub Jelinek <jakub@redhat.com>
3639 * tree.h (struct tree_base): Add nameless_flag bitfield.
3640 (TYPE_NAMELESS, DECL_NAMELESS): Define.
3641 * omp-low.c (create_omp_child_function, scan_omp_parallel,
3642 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
3643 DECL_ARTIFICIAL where needed.
3644 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
3645 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
3646 has DECL_NAMELESS set.
3648 2010-07-23 Martin Jambor <mjambor@suse.cz>
3650 PR tree-optimization/44915
3651 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
3652 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
3653 (analyze_function): Likewise.
3655 2010-07-23 Martin Jambor <mjambor@suse.cz>
3657 PR tree-optimization/44914
3658 * tree-sra.c (sra_modify_function_body): Return true if CFG was
3659 changed, add purging dead eh edges.
3660 (ipa_sra_modify_function_body): Return true if CFG was changed,
3661 simplify purging dead eh edges.
3662 (modify_function): Return true if CFG was changed.
3663 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
3665 (ipa_early_sra): Likewise.
3667 2010-07-23 Jie Zhang <jie@codesourcery.com>
3670 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
3672 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
3673 false if ! tree_versionable_function_p.
3675 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
3677 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
3678 * ipa-pure-const.c (special_builtlin_state): Remove
3679 BUILT_IN_ARGS_INFO case.
3680 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3681 * builtins.c (expand_builtin): Likewise.
3682 (expand_builtin_args_info): Remove.
3683 * doc/tm.texi (__builtin_args_info): Remove.
3684 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
3685 * doc/tm.text.in: Likewise.
3687 2010-07-23 Richard Guenther <rguenther@suse.de>
3689 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
3690 (lto_symtab_merge_decls_2): Likewise.
3691 * tree-ssa.c (useless_type_conversion_p): Likewise.
3692 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3693 * gimple.c (gtc_visited2, gtc_ob2): Remove.
3694 (struct type_pair_d): Make same_p an array indexed by mode.
3696 (lookup_type_pair): Update initialization.
3697 (struct sccs): Adjust same_p type.
3698 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
3700 (print_gimple_types_stats): Likewise.
3701 * gimple.h (enum gtc_mode): New.
3702 (gimple_types_compatible_p): Adjust prototype.
3704 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
3706 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
3707 again after processing insn.
3709 2010-07-23 Jie Zhang <jie@codesourcery.com>
3711 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
3712 proper words when !tree_versionable_function_p.
3714 2010-07-23 Richard Guenther <rguenther@suse.de>
3716 PR tree-optimization/45037
3717 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
3719 2010-07-23 Jie Zhang <jie@codesourcery.com>
3721 * doc/extend.texi: Remove IP2K from the description of naked attribute.
3724 2010-07-10 Andi Kleen <ak@linux.intel.com>
3727 * lto-opts.c (lto_write_options): Add NULL file_data argument to
3728 lto_get_section_name.
3729 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
3730 * lto-streamer-out.c (produce_asm): Likewise.
3731 (copy_function): Likewise.
3732 (produce_symtab): Likewise.
3733 (produce_asm_for_decls): Likewise.
3734 * lto-streamer.c (lto_get_section_name): Add file_data argument.
3735 Rewrite to add random postfix to LTO sections.
3736 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
3737 (lto_get_section_name): Add file_data argument to prototype.
3739 2010-07-10 Andi Kleen <ak@linux.intel.com>
3741 * lto-section-in.c (lto_section_name): Synchronize names
3742 with lto_get_section_name.
3744 2010-07-10 Andi Kleen <ak@linux.intel.com>
3746 * lto-opts.c (lto_read_file_options): Check for missing section.
3748 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
3750 * ira.c (check_allocation): Correctly handle the case where an allocno
3751 with two objects was allocated to a single reg.
3753 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
3755 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
3756 (is_widening_mult_p): Likewise.
3757 (convert_to_widen): Use them.
3758 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
3759 well as integer ones.
3761 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
3763 * alias.c (true_dependence_1): New function, merged version of
3764 true_dependence and canon_true_dependence.
3765 (true_dependence): Simplify.
3766 (canon_true_dependence): Simplify.
3768 2010-07-22 Richard Henderson <rth@redhat.com>
3771 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
3772 of V4SFmode for the SSE saves; increase stack alignment if needed.
3773 (ix86_gimplify_va_arg): Don't increase stack alignment here.
3775 2010-07-22 Jakub Jelinek <jakub@redhat.com>
3778 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
3779 call cprop_find_used_regs again via note_uses.
3781 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
3783 * alias.c (get_alias_set): Fix formatting issues.
3785 2010-07-22 Steve Ellcey <sje@cup.hp.com>
3788 * stmt.c (expand_value_return): Call promote_function_mode with
3789 a for_return argument of 2 when returning by reference.
3791 2010-07-22 Dodji Seketeli <dodji@redhat.com>
3794 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
3795 unit DIE if we can find the scope DIE.
3797 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
3799 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
3800 changed. Initialize OBJECT_SUBWORD.
3801 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
3802 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
3803 all callers changed.
3804 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
3805 (finish_allocno): Likewise.
3806 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
3807 (remove_low_level_allocnos): Likewise.
3808 (update_bad_spill_attribute): Likewise.
3809 (setup_min_max_allocno_live_range_point): Likewise.
3810 (sort_conflict_id_map): Likewise.
3811 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
3812 (ior_hard_reg_conflicts): New function.
3813 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
3814 (compress_conflict_vecs): Iterate over objects, not allocnos.
3815 (ira_add_live_range_to_object): New function.
3816 (object_range_compare_func): Renamed from allocno_range_compare_func.
3817 All callers changed.
3818 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
3819 subobjects, widen the min/max range of the lowest-order object to
3820 potentially include all other such low-order objects.
3821 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
3822 (check_allocation): Likewise. Use more fine-grained tests for register
3824 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
3826 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
3827 choices about which bits to set in each set. Don't use
3828 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
3829 using the multiple sets we computed.
3830 (push_allocno_to_stack): Iterate over allocno subobjects.
3831 (all_conflicting_hard_regs_coalesced): New static function.
3832 (setup_allocno_available_regs_num): Use it.
3833 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
3835 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
3836 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3837 by ALLOCNO_NUM_OBJECTS.
3838 (calculate_spill_cost): Likewise.
3839 (color_pass): Express if statement in a more normal way.
3840 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
3841 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
3842 (setup_slot_coalesced_allocno_live_ranges): Likewise.
3843 (allocno_reload_assign): Likewise.
3844 (ira_reassign_pseudos): Likewise.
3845 (fast_allocation): Likewise.
3846 * ira-conflicts.c (build_conflict_bit_table): Likewise.
3847 (print_allocno_conflicts): Likewise.
3848 (ira_build_conflicts): Likewise.
3849 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
3850 callers changed. Test subword 0 of each allocno for conflicts.
3851 (build_object_conflicts): Renamed from build_allocno_conflicts. All
3852 callers changed. Iterate over allocno subobjects.
3853 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
3854 * ira-int.h (struct ira_allocno): New member: num_objects.
3855 Rename object to objects and change it into an array.
3856 (ALLOCNO_OBJECT): Add new argument N.
3857 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
3858 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
3859 (ior_hard_reg_conflicts): Declare.
3860 (ira_add_live_range_to_object): Declare.
3861 (ira_allocno_object_iterator): New.
3862 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
3863 (FOR_EACH_ALLOCNO_OBJECT): New macro.
3864 * ira-lives.c (objects_live): Renamed from allocnos_live; all
3866 (allocnos_processed): New sparseset.
3867 (make_object_born): Renamed from make_allocno_born; take an
3868 ira_object_t argument. All callers changed.
3869 (make_object_dead): Renamed from make_allocno_dead; take an
3870 ira_object_t argument. All callers changed.
3871 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
3872 All callers changed.
3873 (mark_pseudo_regno_live): Iterate over allocno subobjects.
3874 (mark_pseudo_regno_dead): Likewise.
3875 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
3877 (mark_ref_live): Detect subword accesses and call
3878 mark_pseudo_regno_subword_live as appropriate.
3879 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
3880 (process_bb_nodes_live): Deal with object-related updates first; set
3881 and test bits in allocnos_processed to avoid computing allocno
3882 statistics more than once.
3883 (create_start_finish_chains): Iterate over objects, not allocnos.
3884 (print_object_live_ranges): New function.
3885 (print_allocno_live_ranges): Use it.
3886 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
3889 2010-07-22 Richard Guenther <rguenther@suse.de>
3892 * gimple.c (gtc_next_dfs_num): New global.
3893 (struct sccs): Make value a union, add integer same_p member.
3894 (gtc_visit): New function.
3895 (gimple_types_compatible_p_1): New function, split out from ...
3896 (gimple_types_compatible_p): ... here. Start a DFS walk here.
3897 (iterative_hash_gimple_type): Adjust for sccs change.
3899 2010-07-22 Martin Jambor <mjambor@suse.cz>
3901 PR tree-optimization/44891
3902 * tree-sra.c: Include gimple-pretty-print.h.
3903 (replace_uses_with_default_def_ssa_name): Renamed to
3904 get_repl_default_def_ssa_name, return the new SSA name instead of
3905 replacing the old one.
3906 (sra_modify_assign): Dump a message when removing a load, if the LHS
3907 is an SSA_NAME, do not do any propagation, just set the RHS to a
3908 default definition SSA NAME, type convert if necessary.
3909 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
3911 2010-07-22 Richard Guenther <rguenther@suse.de>
3913 PR tree-optimization/45017
3914 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
3915 TYPE_PRECISION of integral types in addition to size.
3917 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
3919 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
3920 when no C library is specified.
3922 2010-07-22 Martin Jambor <mjambor@suse.cz>
3924 * ipa-prop.h (struct ipa_node_params): Updated comment.
3925 (struct ipa_edge_args): Likewise.
3926 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
3928 2010-07-22 Martin Jambor <mjambor@suse.cz>
3930 * cgraphunit.c (verify_edge_count_and_frequency): New function.
3931 (verify_cgraph_node): Verify frequencies of indirect edges.
3932 * tree-inline.c (tree_function_versioning): Update frequencies of
3935 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3938 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
3939 Set *arm_rev to be predicable.
3941 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
3943 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
3944 (LINK_COMMAND_SPEC_A): New.
3946 (DSYMUTIL_SPEC): New.
3947 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
3948 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
3950 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
3952 * calls.c (load_register_parameters): Move check for zero
3953 sized items so that only the call to
3954 mem_overlaps_already_clobbered_arg_p () is protected.
3956 2010-07-22 Jan Hubicka <jh@suse.cz>
3958 * ipa-pure-const.c (varying_state): Break out from ...
3959 (get_function_state): ... here; always return varying_state
3960 when state would be NULL otherwise.
3961 (remove_node_data): Do not free varying state.
3963 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
3967 * postreload.c: Include "target.h".
3968 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
3970 (fixup_debug_insns): Don't copy the rtx.
3971 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
3972 Don't copy when replacing. Call fixup_debug_insns in the case where
3973 we merged one add with another.
3974 (reload_combine_recognize_pattern): Fail if there aren't any uses.
3975 Try harder to determine whether we're picking a valid index register.
3976 Don't set store_ruid for an insn we're going to scan in the
3978 (reload_combine): Remove unused code.
3979 (reload_combine_note_use): When updating use information for
3980 an old insn, ignore a use that occurs after store_ruid.
3981 * Makefile.in (postreload.o): Update dependencies.
3983 * function.c (record_hard_reg_sets): Restrict the previous change
3984 to cases where the incoming nominal mode is the same as the
3985 incoming promoted mode and everything happens in MODE_INT.
3987 2010-07-21 Jakub Jelinek <jakub@redhat.com>
3990 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
3991 ASM_OPERANDS_OUTPUT_IDX.
3992 (adjust_insn): For inline asm with multiple sets ensure first
3993 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
3996 2010-07-21 Richard Henderson <rth@redhat.com>
3998 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
3999 comparison for avoiding xmm register saves. Emit the xmm register
4001 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
4002 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
4003 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
4004 Remove patterns and the associated splitters.
4006 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
4008 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
4009 and imagine parts of a complex, so that they can have the same
4010 base and fall into the same group.
4012 2010-07-21 Richard Guenther <rguenther@suse.de>
4015 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
4016 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
4017 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
4019 2010-07-21 Martin Jambor <mjambor@suse.cz>
4021 PR tree-optimization/44900
4022 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
4023 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
4025 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
4028 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
4030 2010-07-21 Richard Guenther <rguenther@suse.de>
4033 * tree-ssa.c (useless_type_conversion_p): Dispatch to
4034 gimple_types_compatible_p only when in lto.
4035 * gimple.c (gimple_types_compatible_p): Use canonical types
4036 to speed up comparison.
4038 2010-07-21 Richard Guenther <rguenther@suse.de>
4040 * tree-flow.h (referenced_var): Move define ...
4041 * tree-flow-inline.h (referenced_var): ... here as an inline
4042 function. Assert here ...
4043 * tree-dfa.c (referenced_var_lookup): ... instead of here.
4044 * tree-ssa.c (maybe_optimize_var): Check if the variable
4045 is in referenced vars.
4046 (execute_update_addresses_taken): Remove old broken check.
4047 * gimple-pretty-print.c (pp_points_to_solution): Use
4048 referenced_var_lookup.
4049 * tree-into-ssa.c (dump_decl_set): Likewise.
4051 2010-07-21 Jakub Jelinek <jakub@redhat.com>
4054 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
4055 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
4058 2010-07-20 Richard Henderson <rth@redhat.com>
4060 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
4062 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
4064 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
4065 computing the sum of the stack pointer and a large constant.
4066 * config/arm/constraints.md (M): Remove superfluous parentheses.
4067 (Pc): New constraint.
4069 2010-07-20 Jakub Jelinek <jakub@redhat.com>
4072 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
4073 operand's type if exp is tcc_unary class tree.
4075 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
4077 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
4078 Reverse sense of if_then_else condition.
4080 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
4082 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
4083 * config/rs6000/rs6000.c (rs6000_override_options): Set
4084 rs6000_block_move_inline_limit appropriately.
4085 (expand_block_move): Use rs6000_block_move_inline_limit.
4086 * doc/invoke.texi (mblock-move-inline-limit): Document.
4088 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
4090 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
4091 FROM and TO. All callers changed. Don't look for tracked uses,
4092 just scan the RTL for DEBUG_INSNs and substitute.
4093 (reload_combine_recognize_pattern): Call fixup_debug_insns.
4094 (reload_combine): Ignore DEBUG_INSNs.
4096 2010-07-20 Jakub Jelinek <jakub@redhat.com>
4098 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
4102 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
4103 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
4104 instead of the result's type.
4106 2010-07-20 Richard Guenther <rguenther@suse.de>
4108 PR tree-optimization/44977
4109 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
4112 2010-07-20 Richard Guenther <rguenther@suse.de>
4114 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
4115 (lto_symtab_merge_decls_2): Likewise.
4116 * gimple.h (gimple_types_compatible_p): Declare.
4117 * gimple.c (gimple_queue_type_fixup): Remove.
4118 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
4119 (gimple_compatible_complete_and_incomplete_type_p): New function.
4120 (gimple_types_compatible_p): Adjust.
4121 (gimple_register_type): Remove type fixup code.
4122 (print_gimple_types_stats): Adjust.
4123 (free_gimple_type_tables): Likewise.
4124 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
4125 * tree-ssa.c (useless_type_conversion_p): Likewise.
4127 2010-07-20 Richard Guenther <rguenther@suse.de>
4131 * tree-ssa.c (maybe_optimize_var): New function split out from ...
4132 (execute_update_addresses_taken): ... here.
4133 (non_rewritable_mem_ref_base): Likewise.
4134 (execute_update_addresses_taken): Do not iterate over all referenced
4135 vars but just all local decls and parms.
4136 Properly check call and asm arguments and rewrite call arguments.
4138 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
4140 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
4142 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
4144 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
4146 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
4148 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4150 * gengtype.c (start_root_entry): New function, split out from
4151 write_root. Check whether V is null and raise an error if so.
4152 (write_field_root): Check for V being null. Don't raise an error here;
4153 set V to null instead.
4154 (write_root): Update comment above function. Use start_root_entry.
4156 2010-07-19 Xinliang David Li <davidxl@google.com>
4159 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
4161 (find_uninit_use): Add dump.
4162 (is_use_properly_guarded): Ditto.
4163 (warn_uninitialized_phi): Ditto.
4164 (execute_late_warn_uninitialized): Ditto.
4166 2010-07-19 Richard Guenther <rguenther@suse.de>
4169 * expr.c (emit_block_move_hints): Move zero size check first.
4170 Move asserts to more useful places.
4171 * calls.c (load_register_parameters): Check for zero size.
4173 2010-07-19 Richard Henderson <rth@redhat.com>
4175 * tree-optimize.c (execute_all_early_local_passes): New. Change
4176 cgraph_state here ...
4177 (execute_early_local_optimizations): ... not here. Remove.
4178 (pass_early_local_passes, pass_all_early_optimizations): Update.
4180 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
4182 * postreload.c (reload_combine_closest_single_use): Ignore the
4183 number of uses for DEBUG_INSNs.
4184 (fixup_debug_insns): New static function.
4185 (reload_combine_recognize_const_pattern): Use it. Don't let the
4186 main loop be affected by DEBUG_INSNs.
4187 Really disallow moving adds past a jump insn.
4188 (reload_combine_recognize_pattern): Don't update use_ruid here.
4189 (reload_combine_note_use): Do it here.
4190 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
4192 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
4194 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
4196 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
4198 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
4200 * config/i386/darwin.h: Define darwin_emit_branch_islands.
4201 (TARGET_MACHO_BRANCH_ISLANDS): New.
4202 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
4203 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
4205 * config/i386/i386.c (output_pic_addr_const): Do not emit
4206 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
4207 (x86_output_mi_thunk): Adjust symbol creation.
4208 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
4209 Remove out of date comment.
4210 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
4211 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
4212 (DARWIN_GENERATE_ISLANDS): Ditto.
4213 (output_call): Do not emit branch islands unless
4214 darwin_emit_branch_islands is set.
4215 * config/darwin.c: Declare darwin_emit_branch_islands.
4216 (machopic_indirect_data_reference): Do not emit unless
4217 darwin_emit_branch_islands is set.
4218 (darwin_override_options): Set darwin_emit_branch_islands
4220 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
4222 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4224 * doc/sourcebuild.texi (Effective-Target Keywords): Document
4225 sse_runtime, sse2_runtime.
4227 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
4229 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
4230 low half of a single-register SCmode return value before ORing
4231 it with the high half.
4232 * config/mips/mips16.S (MERGE_GPRf): Likewise.
4234 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4237 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
4240 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
4243 * postreload.c (reload_cse_move2add): Return bool, true if anything.
4244 changed. All callers changed.
4245 (move2add_use_add2_insn): Likewise.
4246 (move2add_use_add3_insn): Likewise.
4247 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
4249 (RELOAD_COMBINE_MAX_USES): Bump to 16.
4250 (last_jump_ruid): New static variable.
4251 (struct reg_use): New members CONTAINING_MEM and RUID.
4252 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
4253 (reload_combine_split_one_ruid, reload_combine_split_ruids,
4254 reload_combine_purge_insn_uses, reload_combine_closest_single_use
4255 reload_combine_purge_reg_uses_after_ruid,
4256 reload_combine_recognize_const_pattern): New static functions.
4257 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
4258 is true for our reg and that we have available index regs.
4259 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
4260 callers changed. Use them to initialize fields in struct reg_use.
4261 (reload_combine): Initialize last_jump_ruid. Be careful when to
4262 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
4263 Call reload_combine_recognize_const_pattern.
4264 (reload_combine_note_store): Update REAL_STORE_RUID field.
4266 2010-07-16 Jason Merrill <jason@redhat.com>
4268 * Makefile.in (opts-common.o): Depend on options.h.
4270 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
4272 * tree.c (build_common_builtin_nodes): Use build_function_type_list
4273 instead of build_function_type.
4274 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
4275 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
4277 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
4279 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
4281 (rs6000_emit_int_cmove): Use function pointers for insn generation.
4282 Don't force values into registers unnecessarily.
4283 (output_isel): Assert that we're not given conditions we can't handle.
4284 Delete corresponding code.
4285 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
4286 scc_comparison_operator constraint. Permit 0 for the consequent
4287 operand. Permit any GPR for the alternative operand.
4288 (isel_unsigned_<mode>): Likewise.
4290 2010-07-16 Jakub Jelinek <jakub@redhat.com>
4293 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
4294 argument to const_tree.
4295 * config/i386/i386.c (function_arg_advance): If padding needs to be
4296 inserted before argument, increment cum->words by number of padding
4298 (contains_aligned_value_p): Change argument to const_tree.
4299 (ix86_function_arg_boundary): Change second argument to const_tree.
4301 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
4304 * function.c (record_hard_reg_sets): New static function.
4305 (assign_parm_setup_reg): If an optab for extending exists and the
4306 generated code clobbbers no hard regs, emit the insn directly and
4307 create a REG_EQUIV note.
4309 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4311 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
4313 * c-typeck.c (push_init_level): Likewise.
4314 (process_init_element): Likewise.
4316 2010-07-15 Anatoly Sokolov <aesok@post.ru>
4318 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
4319 (integer_three_node): Add.
4320 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
4321 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
4322 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
4323 of call build_int_cst.
4324 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
4325 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
4326 (find_interesting_uses_address): Ditto.
4327 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
4328 * tree-eh.c (lower_eh_constructs_2): Ditto.
4329 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
4330 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
4331 * expmed.c (expand_divmod): Ditto.
4332 * tree-mudflap.c (mx_register_decls): Ditto.
4333 * varasm.c (array_size_for_constructor): Ditto.
4334 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
4335 * c-parser.c (c_parser_postfix_expression): Ditto.
4337 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
4339 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
4340 New static variables.
4341 (reload_combine_recognize_pattern): New static function, broken out
4343 (reload_combine): Use it. Only initialize first_index_reg and
4344 last_index_reg once.
4346 2010-07-15 Richard Henderson <rth@redhat.com>
4348 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
4351 2010-07-15 Jan Hubicka <jh@suse.cz>
4353 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
4354 comdats for broken gold.
4355 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
4357 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4359 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
4361 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4363 * tree.h (DECL_CHAIN): Define.
4364 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4365 * c-decl.c: Likewise.
4366 * c-parser.c: Likewise.
4367 * c-typeck.c: Likewise.
4368 * cfgexpand.c: Likewise.
4369 * cgraph.c: Likewise.
4370 * cgraphunit.c: Likewise.
4371 * combine.c: Likewise.
4372 * config/alpha/alpha.c: Likewise.
4373 * config/arm/arm.c: Likewise.
4374 * config/frv/frv.c: Likewise.
4375 * config/i386/i386.c: Likewise.
4376 * config/i386/winnt-cxx.c: Likewise.
4377 * config/ia64/ia64.c: Likewise.
4378 * config/iq2000/iq2000.c: Likewise.
4379 * config/mep/mep.c: Likewise.
4380 * config/mips/mips.c: Likewise.
4381 * config/pa/som.h: Likewise.
4382 * config/rs6000/rs6000.c: Likewise.
4383 * config/s390/s390.c: Likewise.
4384 * config/sh/sh.c: Likewise.
4385 * config/sh/symbian-cxx.c: Likewise.
4386 * config/sparc/sparc.c: Likewise.
4387 * config/spu/spu.c: Likewise.
4388 * config/stormy16/stormy16.c: Likewise.
4389 * config/vxworks.c: Likewise.
4390 * config/xtensa/xtensa.c: Likewise.
4391 * coverage.c: Likewise.
4392 * dbxout.c: Likewise.
4393 * dwarf2out.c: Likewise.
4394 * emit-rtl.c: Likewise.
4396 * function.c: Likewise.
4397 * gimple-low.c: Likewise.
4398 * gimple-pretty-print.c: Likewise.
4399 * gimplify.c: Likewise.
4400 * integrate.c: Likewise.
4401 * ipa-inline.c: Likewise.
4402 * ipa-prop.c: Likewise.
4403 * ipa-split.c: Likewise.
4404 * ipa-struct-reorg.c: Likewise.
4405 * ipa-type-escape.c: Likewise.
4406 * langhooks.c: Likewise.
4407 * lto-cgraph.c: Likewise.
4408 * omp-low.c: Likewise.
4409 * stor-layout.c: Likewise.
4410 * tree-cfg.c: Likewise.
4411 * tree-complex.c: Likewise.
4412 * tree-dfa.c: Likewise.
4413 * tree-dump.c: Likewise.
4414 * tree-inline.c: Likewise.
4415 * tree-mudflap.c: Likewise.
4416 * tree-nested.c: Likewise.
4417 * tree-object-size.c: Likewise.
4418 * tree-pretty-print.c: Likewise.
4419 * tree-sra.c: Likewise.
4420 * tree-ssa-live.c: Likewise.
4421 * tree-ssa-loop-niter.c: Likewise.
4422 * tree-ssa-math-opts.c: Likewise.
4423 * tree-ssa-reassoc.c: Likewise.
4424 * tree-ssa-sccvn.c: Likewise.
4425 * tree-ssa-structalias.c: Likewise.
4426 * tree-tailcall.c: Likewise.
4427 * tree-vrp.c: Likewise.
4429 * var-tracking.c: Likewise.
4430 * varasm.c: Likewise.
4432 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4435 * config/spu/spu.c (spu_expand_builtin_1): Allow references
4436 (as well as pointers) as argument to mask_for_load builtins.
4438 2010-07-15 Richard Guenther <rguenther@suse.de>
4440 PR tree-optimization/44946
4441 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
4442 with accessing only padding properly.
4444 2010-07-15 Jan Hubicka <jh@suse.cz>
4446 * ipa.c (function_and_variable_visibility): Variables marked as used
4447 should not be localized.
4449 2010-07-15 Jan Hubicka <jh@suse.cz>
4451 * cgraph.c: Include lto-streamer.h
4452 (change_decl_assembler_name): Work when assembler name hash is at place.
4453 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
4454 be sure to rename it to avoid name clash.
4455 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
4456 Localize hidden symbols only when locally defined.
4458 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
4460 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
4462 2010-07-15 Magnus Granberg <zorry@gentoo.org>
4463 Kevin F. Quinn <kevquinn@gentoo.org>
4465 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
4466 * common.opt: Add -Wtrampolines.
4467 * doc/invoke.texi: Add -Wtrampolines.
4469 2010-07-15 Jie Zhang <jie@codesourcery.com>
4471 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
4474 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
4476 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
4477 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
4479 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4481 * config/spu/spu.c (reg_names): Remove prototype.
4482 (call_used_regs): Likewise.
4484 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
4486 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
4487 "unused" with attribute "used".
4488 (__JCR_END__): Likewise.
4489 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
4491 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
4493 2010-07-14 Richard Guenther <rguenther@suse.de>
4495 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
4496 (maybe_fixup_decls): Likewise.
4497 (input_gimple_stmt): Do not fixup anything.
4498 * lto-streamer-out.c (output_gimple_stmt): Make sure all
4499 non-automatic variable uses are wrapped inside a MEM_REF.
4501 2010-07-14 Richard Henderson <rth@redhat.com>
4503 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
4505 * varasm.c (assemble_variable): Remove early exit for functions;
4506 assert that we're given a variable.
4508 2010-07-14 Jie Zhang <jie@codesourcery.com>
4510 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
4511 cortex_a8_default when neon_type is not none.
4513 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
4515 * lower-subreg.c (subreg_context): New static bitmap.
4516 (decompose_multiword_subregs): Allocate and free it.
4517 (find_decomposable_subregs): Set a bit in it for a register that
4518 occurs in a subreg that changes mode but not size.
4519 (can_decompose_p): Test it instead of non_decomposable_context.
4521 2010-07-14 Richard Guenther <rguenther@suse.de>
4523 PR tree-optimization/44824
4524 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
4525 is_gimple_mem_ref_addr.
4526 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
4527 non-decl_address_invariant_p addresses.
4529 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
4531 * reload.c (find_reloads): Revert code to penalize small register
4532 classes that was brought in with the IRA merge.
4534 2010-07-14 Richard Guenther <rguenther@suse.de>
4536 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
4537 as base of ARRAY_REFs.
4539 2010-07-14 Richard Guenther <rguenther@suse.de>
4542 * tree-pretty-print.c (do_niy): Do not print a newline.
4544 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
4546 * ira-int.h (struct ira_object): New.
4547 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
4548 (struct ira_allocno): Remove members min, max,
4549 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
4550 conflict_allocnos_num and conflict_vec_p. Add new member object.
4551 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
4552 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
4553 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
4554 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
4555 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
4556 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
4557 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
4558 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
4559 an ira_object_t rather than ira_allocno_t. All uses changed.
4560 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
4561 contains a vector of ira_object_t; all uses changed.
4562 (ira_objects_num): Declare variable.
4563 (ira_create_allocno_object): Declare function.
4564 (ira_conflict_vector_profitable_p): Adjust prototype.
4565 (ira_allocate_conflict_vec): Renamed from
4566 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
4567 (ira_allocate_object_conflicts): Renamed from
4568 ira_allocate_allocno_conflicts; first arg now ira_object_t.
4569 (struct ira_object_iterator): New.
4570 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
4571 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
4572 to conflict_vec_p. All uses changed.
4573 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
4574 Changed to take into account that conflicts are now tracked for
4576 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
4577 Args changed to accept ira_object_t. All uses changed.
4578 (allocnos_conflict_p): New static function.
4579 (collected_conflict_objects): Renamed from collected_allocno_objects;
4580 now a vector of ira_object_t. All uses changed.
4581 (build_conflict_bit_table): Changed to take into account that
4582 conflicts are now tracked for objects.
4583 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
4584 (print_allocno_conflicts, ira_build_conflicts): Likewise.
4585 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
4586 setup_allocno_left_conflicts_size, allocno_reload_assign,
4587 fast_allocation): Likewise.
4588 * ira-lives.c (make_hard_regno_born, make_allocno_born)
4589 process_single_reg_class_operands, process_bb_node_lives): Likewise.
4590 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
4592 * ira-build.c (ira_objects_num): New variable.
4593 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
4594 contains a vector of ira_object_t; all uses changed.
4595 (ira_object_id_map_vec): Corresponding change.
4596 (object_pool): New static variable.
4597 (initiate_allocnos): Initialize it.
4598 (finish_allocnos): Free it.
4599 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
4601 (ira_create_allocno): Don't set members that were removed.
4602 (ira_set_allocno_cover_class): Don't change conflict hard regs.
4603 (merge_hard_reg_conflicts): Changed to take into account that
4604 conflicts are now tracked for objects.
4605 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
4606 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
4607 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
4608 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
4609 setup_min_max_conflict_allocno_ids, ): Likewise.
4610 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
4611 to ira_object_t; all callers changed.
4612 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
4613 to ira_object_t, all callers changed.
4614 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
4615 to ira_object_t, all callers changed.
4616 (conflict_check, curr_conflict_check_tick): Renamed from
4617 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
4619 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
4620 arg changed to ira_object_t, all callers changed.
4621 (create_cap_allocno): Call ira_create_allocno_object.
4622 (finish_allocno): Free the corresponding object.
4623 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
4624 callers changed. Adjusted for dealing with objects.
4625 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
4626 dealing with objects.
4627 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
4629 * ira-int.h (struct live_range): Rename allocno member to object
4630 and change type to ira_object_t.
4631 (struct ira_object): New member live_ranges.
4632 (struct ira_allocno): Remove member live_ranges.
4633 (ALLOCNO_LIVE_RANGES): Remove.
4634 (OBJECT_LIVE_RANGES): New macro.
4635 (ira_create_live_range, ira_copy_live_range_list,
4636 ira_merge_live_range_list, ira_live_ranges_intersect_p,
4637 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
4638 * ira-build.c (ira_create_object): Initialize live ranges here.
4639 (ira_create_allocno): Not here.
4640 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
4641 changed to ira_object_t, all callers changed.
4642 (copy_live_range): Rename from copy_allocno_live_range, all callers
4644 (ira_copy_live_range_list): Rename from
4645 ira_copy_allocno_live_range_list, all callers changed.
4646 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
4647 all callers changed.
4648 (ira_live_ranges_intersect_p): Rename from
4649 ira_allocno_live_ranges_intersect_p, all callers changed.
4650 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
4652 (ira_finish_live_range_list): Rename from
4653 ira_finish_allocno_live_range_list, all callers changed.
4654 (change_object_in_range_list): Rename from change_allocno_in_range_list,
4655 last arg changed to ira_object_t, all callers changed.
4656 (finish_allocno): Changed to expect live ranges in the allocno's object.
4657 (move_allocno_live_ranges, copy_allocno_live_ranges,
4658 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
4659 ira_flattening, ira_build): Likewise.
4660 * ira-color.c (allocnos_have_intersected_live_ranges_p,
4661 slot_coalesced_allocno_live_ranges_intersect,
4662 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
4663 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4664 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4665 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
4666 make_allocno_dead, create_start_finish_chains,
4667 remove_some_program_points_and_update_live_ranges,
4668 ira_debug_live_range_list): Likewise.
4670 * ira-int.h (ira_object_conflict_iterator): Rename from
4671 ira_allocno_conflict_iterator.
4672 (ira_object_conflict_iter_init): Rename from
4673 ira_allocno_conflict_iter_init, second arg changed to
4674 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
4675 FOR_EACH_ALLOCNO_CONFLICT.
4676 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
4677 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
4678 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
4679 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4681 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
4684 * tree-dump.c (dump_options): Add enumerate_locals entry.
4685 Add TDF_NOID exclusion to all entry.
4686 * tree-dump.h (dump_enumerated_decls): Declare.
4687 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
4688 Don't display type uid.
4689 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
4690 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
4691 * tree-ssa-live.c: Include gimple.h.
4692 (numbered_tree_d): New struct.
4693 (numbered_tree): New typedef.
4694 (DEF_VEC_O (numbered_tree): New.
4695 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
4696 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
4697 (dump_enumerated_decls): Likewise.
4698 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
4699 debug info and flag_dump_final_insns, call dump_enumerated_decls.
4700 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
4701 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
4703 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
4705 * expmed.h (MAX_BITS_PER_WORD): Move to...
4706 * defaults.h (MAX_BITS_PER_WORD): ...here.
4708 2010-07-13 DJ Delorie <dj@redhat.com>
4710 * config/h8300/h8300.c (h8300_init_once): Default to
4711 -fstrict_volatile_bitfields.
4713 * config/sh/sh.c (sh_override_options): Default to
4714 -fstrict_volatile_bitfields.
4716 * config/rx/rx.c (rx_option_override): New.
4718 * config/m32c/m32c.c (m32c_override_options): Default to
4719 -fstrict_volatile_bitfields.
4721 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
4723 * tree.h (build_function_call_expr): Delete.
4724 (build_call_expr_loc_array): New function.
4725 (build_call_expr_loc_vec): New function.
4726 * tree-flow.h (struct omp_region): Change type of ws_args field
4728 * builtins.c (build_function_call_expr): Delete.
4729 (build_call_expr_loc_array): New function.
4730 (build_call_expr_loc): Call it. Use XALLOCAVEC.
4731 (build_call_expr): Likewise.
4732 (build_call_expr_loc_vec): New function.
4733 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
4734 build_function_call_expr.
4735 * expr.c (emutls_var_address): Likewise.
4736 * varasm.c (emutls_common_1): Likewise.
4737 * omp-low.c (expand_omp_atomic_mutex): Likewise.
4738 (expand_omp_taskreg): Adjust for new type of region->ws_args.
4739 (get_ws_args_for): Return a VEC instead of a tree.
4740 (expand_parallel_call): Call build_call_expr_loc_vec instead of
4741 build_function_call_expr.
4742 * stor-layout.c (self_referential_size): Likewise.
4744 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4747 * recog.c (constrain_operands): Allow side-effects in memory
4748 operands if either < or > constraint is used, rather than if
4749 both < and > is used.
4751 2010-07-13 Richard Guenther <rguenther@suse.de>
4754 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
4755 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
4758 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
4761 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
4763 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
4764 * config/sh/sh.md (symGOT_load): Likewise.
4765 (symDTPOFF2reg): Likewise.
4766 (symTPOFF2reg): Likewise.
4768 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4770 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
4771 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
4773 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4775 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
4777 Find ucontext_t * on Solaris 11.
4778 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
4779 Handle new Solaris 11 __sighndlr patterns.
4781 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4784 * vec.h (VEC_block_remove): Fix comment.
4785 * tree-ssa-live.c (remove_unused_locals): Don't use
4786 VEC_unordered_remove on local_decls, instead replace a single
4787 vector element in each iteration if at least one element had
4788 to be removed and VEC_truncate at the end.
4789 * omp-low.c (expand_omp_taskreg): Likewise.
4791 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4793 * c-decl.c (finish_function): Fix typo in comment.
4795 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
4798 * postreload.c (move2add_use_add3_insn): Silence gcc warning
4801 2010-07-12 Jakub Jelinek <jakub@redhat.com>
4803 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
4804 (simplify_stmt_using_ranges): Use it.
4806 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4808 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
4809 member. Do not mark as GTY(()).
4810 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
4811 (spu_builtin_decls): New static variable.
4812 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
4813 (spu_init_builtins): Likewise.
4814 (spu_builtin_mul_widen_even): Likewise.
4815 (spu_builtin_mul_widen_odd): Likewise.
4816 (spu_builtin_mask_for_load): Likewise.
4817 (spu_builtin_vec_perm): Likewise.
4818 * config/spu/spu-c.c: Include "target.h".
4819 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
4820 of using spu_builtins[].fndecl.
4822 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4824 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
4825 imply -minterlink-mips16.
4827 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4829 * config/mips/mips.h (mips16_globals): Declare.
4830 (SWITCHABLE_TARGET): Define.
4831 * config/mips/mips.c: Include target-globals.h.
4832 (mips16_globals): New variable.
4833 (mips_set_mips16_mode): Use save_target_globals and
4834 restore_target_globals instead of target_reinit.
4836 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4838 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
4839 to say that the function can be called more than once.
4840 * target-globals.c (save_target_globals): Call init_reg_sets.
4842 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4844 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
4845 * bb-reorder.h: New file.
4846 * bb-reorder.c (default_target_bb_reorder): New variable.
4847 (this_target_bb_reorder): New conditional variable.
4848 (uncond_jump_length): Redefine as a macro.
4849 * target-globals.h (this_target_bb_reorder): Declare.
4850 (target_globals): Add a bb_reorder field.
4851 (restore_target_globals): Copy the bb_reorder field to
4852 this_target_bb-reorder.
4853 * target-globals.c: Include bb-reorder.h.
4854 (default_target_globals): Initialize the bb_reorder field.
4855 (save_target_globals): Likewise.
4857 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4859 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
4861 * gcse.c: Include gcse.h.
4862 (default_target_gcse): New variable.
4863 (this_target_gcse): New conditional variable.
4864 (can_copy): Redefine as a macro.
4865 (can_copy_init_p): New macro.
4866 (can_copy_p): Remove can_copy_init_p.
4867 * target-globals.h (this_target_gcse): Declare.
4868 (target_globals): Add a gcse field.
4869 (restore_target_globals): Copy the gcse field to this_target_gcse.
4870 * target-globals.c: Include gcse.h.
4871 (default_target_globals): Initialize the gcse field.
4872 (save_target_globals): Likewise.
4874 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4876 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
4877 and x_ira_prohibited_mode_move_regs_initialized_p.
4878 (ira_prohibited_mode_move_regs): Redefine as a macro.
4879 * ira.c (ira_prohibited_mode_move_regs): Delete.
4880 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
4882 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4884 * reload.h (target_reload): Add x_cached_reg_save_code and
4885 x_cached_reg_restore_code.
4886 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
4889 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4891 * Makefile.in (target-globals.o): Depend on builtins.h.
4892 * builtins.h: New file.
4893 * builtins.c: Include builtins.h.
4894 (default_target_builtins): New variable.
4895 (this_target_builtins): New conditional variable.
4896 (apply_args_mode, apply_result_mode): Redefine as macros.
4897 * target-globals.h (this_target_builtins): Declare.
4898 (target_globals): Add a builtins field.
4899 (restore_target_globals): Copy the builtins field to
4900 this_target_builtins.
4901 * target-globals.c: Include builtins.h.
4902 (default_target_globals): Initialize the builtins field.
4903 (save_target_globals): Likewise.
4905 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4907 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
4908 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
4910 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
4911 (alg_hash, alg_hash_used_p): New macros.
4912 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
4913 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
4914 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
4916 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4918 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
4919 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
4920 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
4921 (this_op_costs, costs_classes): Redefine as macros.
4922 (record_reg_classes): Don't take op_costs as a parameter.
4923 (record_operand_costs): Likewise. Update calls to record_reg_classes.
4924 (scan_one_insn): Update call to record_operand_costs.
4926 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4928 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
4929 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
4930 (target_ira_int): New structure.
4931 (default_target_ira_int): Declare.
4932 (this_target_ira_int): Declare as a variable or define as a macro.
4933 (ira_reg_mode_hard_regset, ira_register_move_cost)
4934 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
4935 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
4936 (prohibited_class_mode_regs, ira_important_classes_num)
4937 (ira_important_classes, ira_reg_class_intersect)
4938 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
4939 (ira_reg_class_union): Redefine as macros.
4940 * ira.h (target_ira): New structure.
4941 (default_target_ira): Declare.
4942 (this_target_ira): Declare as a variable or define as a macro.
4943 (ira_available_class_regs, ira_hard_regno_cover_class)
4944 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
4945 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
4946 (ira_class_hard_regs_num): Redefine as macros.
4947 * ira.c (default_target_ira, default_target_ira_int): New variables.
4948 (this_target_ira, this_target_ira_int): New conditional variables.
4949 (ira_reg_mode_hard_regset, ira_memory_move_cost)
4950 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
4951 (ira_class_subset_p): Delete.
4952 (no_unit_alloc_regs): Redefine as a macro.
4953 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
4954 (ira_class_hard_regs_num, ira_class_hard_reg_index)
4955 (ira_available_class_regs): Delete.
4956 (alloc_reg_class_subclasses): Redefine as a macro.
4957 (ira_reg_class_cover_size, ira_reg_class_cover)
4958 (ira_important_classes_num, ira_important_classes)
4959 (ira_important_class_nums, ira_class_translate): Delete.
4960 (cover_class_order): Document the variable's lifetime.
4961 (reorder_important_classes): Don't set ira_important_class_nums.
4962 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
4963 (ira_reg_class_super_classes, ira_reg_class_union)
4964 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
4966 (setup_reg_class_nregs): Don't set ira_max_regs.
4967 (prohibited_class_mode_regs): Delete.
4968 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
4969 (target_globals): Add ira and ira_int fields.
4970 (restore_target_globals): Copy the ira field to this_target_ira
4971 and the ira_int field to this_target_ira_int.
4972 * target-globals.c: Include ira-int.h.
4973 (default_target_globals): Initialize the ira and ira_int fields.
4974 (save_target_globals): Likewise.
4976 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4978 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
4979 * cfgloop.h (target_cfgloop): New structure.
4980 (default_target_cfgloop): Declare.
4981 (this_target_cfgloop): Declare as a variable or define as a macro.
4982 (target_avail_regs, target_clobbered_regs, target_res_regs)
4983 (target_reg_cost, target_spill_cost): Redefine as macros.
4984 * cfgloopanal.c (default_target_cfgloop): New variable.
4985 (this_target_cfgloop): New conditional variable.
4986 (target_avail_regs, target_clobbered_regs, target_res_regs)
4987 (target_reg_cost, target_spill_cost): Delete.
4988 * target-globals.h (this_target_cfgloop): Declare.
4989 (target_globals): Add a cfgloop field.
4990 (restore_target_globals): Copy the cfgloop field to
4991 this_target_cfgloop.
4992 * target-globals.c: Include cfgloop.h.
4993 (default_target_globals): Initialize the cfgloop field.
4994 (save_target_globals): Likewise.
4996 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4998 * regs.h (target_regs): Add x_direct_load, x_direct_store and
4999 x_float_extend_from_mem.
5000 (direct_load, direct_store, float_extend_from_mem): New macros.
5001 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
5003 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5005 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
5006 (target-globals.o): Depend on $(LIBFUNCS_H).
5007 * libfuncs.h: Include hashtab.h.
5008 (libfunc_entry): Moved from optabs.c.
5009 (target_libfuncs): New structure.
5010 (default_target_libfuncs): Declare.
5011 (this_target_libfuncs): Declare as a variable or define as a macro.
5012 (libfunc_table): Redefine as a macro.
5013 * optabs.c (default_target_libfuncs): New variable.
5014 (this_target_libfuncs): New conditional variable.
5015 (libfunc_table): Delete.
5016 (libfunc_entry): Moved to optabs.h.
5017 (libfunc_hash): Redefine as a macro.
5018 (hash_libfunc, eq_libfunc): Fix comments.
5019 (init_optabs): Use libfunc_hash to detect cases where the function
5020 has already been called. Clear the hash table instead of
5022 * target-globals.h (this_target_libfuncs): Declare.
5023 (target_globals): Add a libfuncs field.
5024 (restore_target_globals): Copy the libfuncs field to
5025 this_target_libfuncs.
5026 * target-globals.c: Include libfuncs.h.
5027 (default_target_globals): Initialize the libfuncs field.
5028 (save_target_globals): Likewise.
5030 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5032 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
5033 in all dependency lists.
5035 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5037 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
5038 * optabs.h (target_optabs): New structure.
5039 (default_target_optabs): Declare.
5040 (this_target_optabs): Declare as a variable or define as a macro.
5041 (optab_table, convert_optab_table, direct_optab_table): Redefine
5043 * optabs.c (default_target_optabs): New variable.
5044 (this_target_optabs): New conditional variable.
5045 (optab_table, convert_optab_table, direct_optab_table): Delete.
5046 * target-globals.h (this_target_optabs): Declare.
5047 (target_globals): Add a optabs field.
5048 (restore_target_globals): Copy the optabs field to
5050 * target-globals.c: Include expr.h and optabs.h.
5051 (default_target_globals): Initialize the optabs field.
5052 (save_target_globals): Likewise.
5054 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5056 * flags.h (target_flagstate): Add x_flag_excess_precision.
5057 (flag_excess_precision): Redefine as a macro.
5058 * toplev.c (flag_excess_precision): Delete.
5060 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5062 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
5063 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
5064 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
5065 (no_caller_save_reg_set): Redefine as a macro.
5066 * reload.h (target_reload): Add x_caller_save_initialized_p and
5068 (caller_save_initialized_p): Redefine as a macro.
5069 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
5070 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
5071 (regno_save_mode): Redefine as a macro.
5073 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5075 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
5076 * expmed.h: New file.
5077 * expmed.c (default_target_costs): New variable.
5078 (this_target_costs): New conditional variable.
5079 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
5080 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
5081 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
5082 * target-globals.h (this_target_expmed): Declare.
5083 (target_globals): Add a expmed field.
5084 (restore_target_globals): Copy the expmed field to
5086 * target-globals.c: Include expmed.h.
5087 (default_target_globals): Initialize the expmed field.
5088 (save_target_globals): Likewise.
5090 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5092 * Makefile.in (target-globals.o): Depend on reload.h.
5093 * reload.h (target_reload): New structure.
5094 (default_target_reload): Declare.
5095 (this_target_reload): Declare as a variable or define as a macro.
5096 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
5097 * reload1.c (default_target_reload): New variable
5098 (this_target_reload): New conditional variable.
5099 (indirect_symref_ok, double_reg_address_ok): Delete.
5100 (spill_indirect_levels): Redefine as a macro.
5101 * target-globals.h (this_target_reload): Declare.
5102 (target_globals): Add a reload field.
5103 (restore_target_globals): Copy the reload field to
5105 * target-globals.c: Include hard-reg-set.h.
5106 (default_target_globals): Initialize the reload field.
5107 (save_target_globals): Likewise.
5109 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5111 * rtl.h (target_rtl): Add x_static_reg_base_value.
5112 * alias.c (static_reg_base_value): Redefine as a macro.
5114 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5116 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
5117 (GTFILES): Remove reginfo.c.
5118 * rtl.h (target_rtl): Add x_top_of_stack.
5119 (top_of_stack): New macro.
5120 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
5121 (top_of_stack): Delete.
5123 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5125 * regs.h (target_regs): Add x_hard_regs_of_mode,
5126 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
5127 x_may_move_out_cost and x_last_mode_for_init_move_cost.
5128 (have_regs_of_mode, contains_reg_of_mode, move_cost)
5129 (may_move_in_cost, may_move_out_cost): Redefine as macros.
5130 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
5131 (may_move_in_cost, may_move_out_cost): Delete.
5132 (last_mode_for_init_move_cost): Redefine as a macro.
5134 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5136 * hard-reg-set.h (target_hard_regs): New structure.
5137 (default_target_hard_regs): Declare.
5138 (this_target_hard_regs): Declare as a variable or define as a macro.
5139 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
5140 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
5141 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
5142 (reg_class_size, reg_class_subclasses, reg_class_subunion)
5143 (reg_class_superunion, reg_names): Redefine as macros.
5144 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
5145 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
5146 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
5147 (reg_class_contents, reg_class_size, reg_class_subclasses)
5148 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
5149 (default_target_hard_regs): New variable
5150 (this_target_hard_regs, initial_call_really_used_regs)
5151 (initial_reg_alloc_order): New conditional variables.
5152 (initial_reg_names): New variable.
5153 (init_reg_sets): Assert that initial_call_really_used_regs,
5154 initial_reg_alloc_order and initial_reg_names
5155 are all the same size as their variable counterparts. Use them to
5156 initialize those counterparts.
5157 * target-globals.h (this_target_hard_regs): Declare.
5158 (target_globals): Add a hard_regs field.
5159 (restore_target_globals): Copy the hard_regs field to
5160 this_target_hard_regs.
5161 * target-globals.c: Include hard-reg-set.h.
5162 (default_target_globals): Initialize the hard_regs field.
5163 (save_target_globals): Likewise.
5165 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5167 * Makefile.in (target-globals.o): Depend on $(RTL_H).
5168 * rtl.h (target_rtl): New structure.
5169 (default_target_rtl): Declare.
5170 (this_target_rtl): Declare as a variable or define as a macro.
5171 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
5173 * emit-rtl.c (default_target_rtl): New variable.
5174 (this_target_rtl): New conditional variable.
5175 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
5176 (return_address_pointer_rtx): Delete.
5177 (initial_regno_reg_rtx): New macro.
5178 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
5179 (init_emit_regs): Likewise.
5180 * target-globals.h (this_target_rtl): Declare.
5181 (target_globals): Add a rtl field.
5182 (restore_target_globals): Copy the rtl field to this_target_rtl.
5183 * target-globals.c: Include rtl.h.
5184 (default_target_globals): Initialize the rtl field.
5185 (save_target_globals): Likewise.
5187 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5189 * Makefile.in (target-globals.o): Depend on $(REGS_H).
5190 * regs.h (target_reg_modes): New structure.
5191 (default_target_reg_modes): Declare.
5192 (this_target_reg_modes): Declare as a variable or define as a macro.
5193 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
5194 * reginfo.c (default_target_reg_modes): New variable.
5195 (this_target_reg_modes): New conditional variable.
5196 (hard_regno_nregs, reg_raw_mode): Delete.
5197 * target-globals.h (this_target_regs): Declare.
5198 (target_globals): Add a regs field.
5199 (restore_target_globals): Copy the regs field to this_target_regs.
5200 * target-globals.c: Include regs.h.
5201 (default_target_globals): Initialize the regs field.
5202 (save_target_globals): Likewise.
5204 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5206 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
5207 * doc/tm.texi: Regenerate.
5208 * Makefile.in (OBJS-common): Add target-globals.o.
5209 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
5210 and target-globals.h.
5211 (target-globals.o): New rule.
5212 (GTFILES): Include $(srcdir)/target-globals.h.
5213 * defaults.h (SWITCHABLE_TARGET): Define.
5214 * gengtype.c (open_base_files): Add target-globals.h to the
5216 * target-globals.h: New file.
5217 * target-globals.c: Likewise.
5219 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
5220 * flags.h (target_flag_state): New structure.
5221 (default_target_flag_state): Declare.
5222 (this_target_flag_state): Declare as a variable or define as a macro.
5223 (align_loops_log): Redefine as a macro.
5224 (align_loops_max_skip, align_jumps_log): Likewise.
5225 (align_jumps_max_skip, align_labels_log): Likewise.
5226 (align_labels_max_skip, align_functions_log): Likewise.
5227 * toplev.c (default_target_flag_state): New variable.
5228 (this_target_flag_state): New conditional variable.
5229 (align_loops_log): Delete.
5230 (align_loops_max_skip, align_jumps_log): Likewise.
5231 (align_jumps_max_skip, align_labels_log): Likewise.
5232 (align_labels_max_skip, align_functions_log): Likewise.
5233 * target-globals.h (this_target_flag_state): Declare.
5234 (target_globals): Add a flag_state field.
5235 (restore_target_globals): Copy the flag_state field to
5236 this_target_flag_state.
5237 * target-globals.c: Include flags.h.
5238 (default_target_globals): Initialize the flag_state field.
5239 (save_target_globals): Likewise.
5241 2010-07-12 Jie Zhang <jie@codesourcery.com>
5243 * postreload.c (reg_symbol_ref[]): New.
5244 (move2add_use_add2_insn): New.
5245 (move2add_use_add3_insn): New.
5246 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
5247 (move2add_note_store): Likewise.
5249 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
5251 PR rtl-optimization/44752
5252 * genautomata.c (main): Don't emit an empty file even if there
5255 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5257 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
5258 ix86_solaris_return_in_memory.
5259 * config/i386-protos.h: Reflect this.
5260 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
5261 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
5263 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
5265 2010-07-12 Jie Zhang <jie@codesourcery.com>
5267 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
5268 align the stack when it's going to be saved.
5270 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5273 * config/host-solaris.c (mmap_fixed): New function.
5274 (sol_gt_pch_get_address): Use it.
5275 (sol_gt_pch_use_address): Likewise.
5277 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5279 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
5280 pentiumpro on Solaris 8 and 9/x86.
5281 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
5282 Document SSE/SSE2 support.
5283 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
5285 2010-07-12 Andi Kleen <ak@linux.intel.com>
5287 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
5288 instead of gcc_assert to print better error message for multiple
5291 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
5293 * config/i386/i386.c (ix86_asm_output_function_label): Change format
5294 string placeholder from 0x%x to %#x.
5295 (ix86_code_end): Use putc to output '\n'.
5296 (ix86_print_operand) <case ';'>: Use putc to output ';'.
5298 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
5300 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
5301 in directive -export.
5303 2010-07-10 Anatoly Sokolov <aesok@post.ru>
5305 * reginfo.h (reg_classes_intersect_p): Change arguments type to
5307 * rtl.h (reg_classes_intersect_p): Adjust prototype.
5309 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5311 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
5312 rs6000_memory_move_cost): Remove
5313 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
5314 TARGET_MEMORY_MOVE_COST): Define.
5315 (rs6000_register_move_cost): Make static. Change arguments type from
5316 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
5317 (rs6000_memory_move_cost): Make static. Change arguments type from
5318 'enum reg_class' to reg_class_t.
5320 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
5323 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
5324 lookup code into....
5325 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
5327 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
5328 * cfgloopanal.c (target_clobbered_regs): Define.
5329 (init_set_costs): Initialize target_clobbered_regs.
5330 (estimate_reg_pressure_cost): Add call_p argument. When true,
5331 adjust the number of available registers to exclude the
5332 call-clobbered registers.
5333 * cfgloop.h (target_clobbered_regs): Declare.
5334 (estimate_reg_pressure_cost): Adjust declaration.
5335 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
5336 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
5337 (determine_set_costs): Dump target_clobbered_regs.
5338 (loop_body_includes_call): New function.
5339 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
5340 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
5341 call_p flag through.
5342 (best_gain_for_invariant): Likewise.
5343 (find_invariants_to_move): Likewise.
5344 (move_single_loop_invariants): Likewise, using already-computed
5347 2010-07-10 Richard Guenther <rguenther@suse.de>
5348 Joern Rennecke <joern.rennecke@embecosm.com>
5351 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
5352 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
5353 unless they have DECL_IGNORED_P set.
5355 2010-07-10 Richard Guenther <rguenther@suse.de>
5358 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
5360 (gimple_types_compatible_p): Similar to pointed-to
5361 types allow and merge a mix of complete and incomplete aggregate.
5362 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
5363 (iterative_hash_gimple_type): Adjust for that.
5365 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
5367 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
5369 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
5372 * config/darwin.c (output_objc_section_asm_op): Save and restore
5373 section when outputting ObjC section list.
5375 2010-07-09 Jan Hubicka <jh@suse.cz>
5377 * lto-streamer-out.c (produce_symtab): Do not write alias
5378 cgraph/varpool nodes.
5380 2010-07-09 Jan Hubicka <jh@suse.cz>
5382 * tree-inline.c (declare_return_variable): Fix ICE while
5383 inlining DECL_BY_VALUE function not in SSA form
5385 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
5387 PR tree-optimization/44576
5388 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
5389 New. Pull out from is_loop_prefetching_profitable to implement
5390 the trip count to ahead ratio heuristic.
5391 (mem_ref_count_reasonable_p): New. Pull out from
5392 is_loop_prefetching_profitable to implement the instruction to
5393 memory reference ratio heuristic. Also consider not reasonable if
5394 the memory reference count is above a threshold (to avoid
5395 explosive compilation time.
5396 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
5397 is_loop_prefetching_profitable to implement the instruction to
5398 prefetch ratio heuristic.
5399 (is_loop_prefetching_profitable): Removed.
5400 (loop_prefetch_arrays): Distribute the cost analysis across the
5401 function to allow early exit of the prefetch analysis.
5402 is_loop_prefetching_profitable is splitted into three functions,
5403 with each one called as early as possible.
5404 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
5405 number of memory references in a loop is considered too many.
5407 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
5409 * reload.c (find_reloads): Don't clear badop if we have a winreg
5410 alternative, but not win, and the class only has fixed regs.
5411 * hard-reg-set.h (class_only_fixed_regs): Declare.
5412 * reginfo.c (class_only_fixed_regs): New array.
5413 (init_reg_sets_1): Initialize it.
5414 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
5415 discourage alternatives using the stack pointer.
5417 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
5419 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
5421 * config/arm/arm.md (cbranchqi4): Fix array size.
5422 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
5425 2010-07-09 Richard Guenther <rguenther@suse.de>
5427 * gimple.c (struct type_fixup_s): New struct and VEC type.
5428 (gimple_register_type_fixups): New static global.
5429 (gimple_queue_type_fixup): New function.
5430 (gimple_types_compatible_p): Queue type fixups instead of
5432 (gimple_register_type): Apply queued fixups for the
5433 canonical type. Empty the type fixup queue.
5435 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
5437 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
5438 * configure: Regenerate.
5441 2010-07-09 Jakub Jelinek <jakub@redhat.com>
5442 Denys Vlasenko <dvlasenk@redhat.com>
5443 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5445 PR tree-optimization/28632
5446 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
5447 (extract_range_from_binary_expr): Further optimize
5448 BIT_AND_EXPR and BIT_IOR_EXPR.
5450 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
5452 * tree-if-conv.c (fold_or_predicates): New.
5453 (add_to_predicate_list): Call it.
5455 2010-07-09 Richard Guenther <rguenther@suse.de>
5458 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
5459 if base is a pointer.
5460 * tree-cfg.c (verify_expr): Update MEM_REF checking.
5462 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
5465 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
5466 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
5467 builtin mask for load/store builtins.
5469 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
5471 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
5473 * configure: Regenerate.
5474 * config/i386/i386.c (ix86_print_operand) <case ';'>:
5475 Remove TARGET_MACHO.
5477 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
5479 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
5481 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
5483 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
5485 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
5487 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
5489 * config/picochip/picochip.md (commsTestPort): Emit more
5490 efficient sequence for tstport instruction.
5492 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
5494 * config/i386/i386.c (ix86_veclib_handler): Make static.
5496 2010-07-09 Richard Guenther <rguenther@suse.de>
5498 PR tree-optimization/44852
5499 * tree-ssa-alias.c: Include toplev.h for exact_log2.
5500 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
5502 (indirect_refs_may_alias_p): Likewise.
5503 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
5505 2010-07-09 Richard Guenther <rguenther@suse.de>
5507 PR tree-optimization/44882
5508 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
5510 (vectorizable_load): Likewise.
5512 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
5515 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
5516 All callers changed.
5517 Handle the case when we're called for the epilogue.
5518 (thumb_unexpanded_epilogue): Use it.
5519 (thumb1_expand_epilogue): Likewise.
5521 2010-07-09 Jakub Jelinek <jakub@redhat.com>
5523 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
5524 both ranges are range_int_cst_p with non-negative minimum,
5525 try harder to derive smaller range.
5527 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5529 * genrecog.c: Include diagnostic-core.h before toplev.h.
5530 * genoutput.c: Likewise.
5531 * genextract.c: Likewise.
5532 * genautomata.c: Likewise.
5533 * genemit.c: Likewise.
5534 * genpeep.c: Likewise.
5535 * genattrtab.c: Likewise.
5536 * genconditions.c: Likewise.
5537 * genpreds.c: Likewise.
5539 2010-07-08 Andi Kleen <ak@linux.intel.com>
5541 * lto-section-in.c (lto_section_name): Add missing comma.
5543 2010-07-08 Anatoly Sokolov <aesok@post.ru>
5545 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
5546 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
5547 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
5548 (ia64_override_options): Rename to...
5549 (ia64_option_override): ... this one. Make static.
5551 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
5554 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
5555 pointed-to type of the offset in a MEM_REF to compute the alignment.
5557 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
5559 * final.c (final_scan_insn): Replace
5560 TARGET_UNWIND_INFO macro check by unwind_emit
5562 * targhooks.c (default_unwind_emit): Removed.
5563 * targhooks.h (default_unwind_emit): Likewise.
5564 * target.def (unwind_emit): Set default value to NULL.
5566 * config/i386/i386-protos.h (ix86_asm_output_function_label):
5568 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
5569 for NULL fntype argument and allow 64-bit targets.
5570 (ix86_asm_output_function_label): New function.
5571 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
5572 (ix86_handle_fndecl_attribute): Likewise.
5573 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
5574 * doc/doc/tm.texi: Regenerated.
5575 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
5576 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
5577 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
5578 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
5579 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
5580 * config/elfos.h: Likewise.
5581 * config/i386/cygming.h: Likewise.
5582 * config/netbsd-aout.h: Likewise.
5583 * config/openbsd.h: Likewise.
5584 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
5585 by ix86_asm_output_function_label function call.
5586 * varasm.c (assemble_start_function): Use
5587 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
5589 2010-07-08 Jan Hubicka <jh@suse.cz>
5591 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
5593 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
5595 * ipa-cp.c (ipcp_estimate_growth): Use it.
5596 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
5599 2010-07-08 Jan Hubicka <jh@suse.cz>
5601 * tree-inline.c (declare_return_variable): Allocate annotation for new
5604 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
5606 PR tree-optimization/44710
5607 * tree-if-conv.c (parse_predicate): New.
5608 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
5609 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
5611 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
5613 * common.opt (ftree-loop-if-convert): New flag.
5614 * doc/invoke.texi (ftree-loop-if-convert): Documented.
5615 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
5616 when flag_tree_loop_if_convert is set.
5618 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
5620 * config/i386/i386.c: Use short syntax for function calls
5621 through function pointers.
5622 * config/i386/i386.md: Ditto.
5624 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
5626 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
5628 2010-07-08 Richard Guenther <rguenther@suse.de>
5630 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
5631 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
5633 2010-07-08 Jakub Jelinek <jakub@redhat.com>
5635 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
5636 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
5637 (loc_list_from_tree): Likewise.
5638 (output_loc_operands): Handle outputting DW_OP_const[48]u
5639 with loc->dtprel set.
5640 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
5642 2010-07-08 Jan Hubicka <jh@suse.cz>
5644 * ipa.c: Include pointer-set.h
5645 (cgraph_externally_visible_p): New attribute ALIASED;
5646 when in LTO, hidden symbols are local unless they are aliased.
5647 (function_and_variable_visibility): Compute aliased nodes;
5648 handle LTO and hidden symbol on functions and vars.
5649 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
5650 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
5652 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
5654 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
5655 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5656 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5657 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5658 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5659 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
5660 (ix86_gen_probe_stack_range): Likewise.
5661 (override_options): Set them.
5662 (ix86_target_stack_probe): New function.
5663 (ix86_compute_frame_layout): Force use of push instructions to
5664 save registers if stack checking with probes is enabled.
5665 (get_scratch_register_on_entry): New function.
5666 (release_scratch_register_on_entry): Likewise.
5667 (ix86_adjust_stack_and_probe): Likewise.
5668 (output_adjust_stack_and_probe): Likewise.
5669 (ix86_emit_probe_stack_range): Likewise.
5670 (output_probe_stack_range): Likewise.
5671 (ix86_expand_prologue): Emit stack checking code if static built-in
5672 stack checking is enabled.
5673 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
5674 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
5675 (output_adjust_stack_and_probe): Likewise.
5676 (output_probe_stack_range): Likewise.
5677 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
5678 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
5680 (allocate_stack_worker_64): Likewise.
5681 (allocate_stack): Likewise.
5682 (adjust_stack_and_probe): New insn.
5683 (probe_stack_range): Likewise.
5685 2010-07-08 Richard Guenther <rguenther@suse.de>
5687 PR tree-optimization/44831
5688 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
5689 a MEM_REF preserving TBAA info of the original dereference.
5690 Dereference the original pointer if the address is not invariant.
5691 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
5692 at least one invariant address that we are going to dereference.
5694 2010-07-08 Richard Guenther <rguenther@suse.de>
5696 PR tree-optimization/44861
5697 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
5698 information when building MEM_REFs.
5699 (vectorizable_load): Likewise.
5700 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
5702 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
5704 * config/sol2-c.c: Do not include diagnostic-core.h.
5706 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5709 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
5710 with respect to current_function_decl. Pass decl of the function.
5711 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
5712 * ipa-inline.c (compute_inline_parameters): Pass decl to
5713 estimated_stack_frame_size.
5715 2010-07-08 Richard Guenther <rguenther@suse.de>
5717 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
5719 (valueize_refs): Call it.
5721 2010-07-08 Richard Guenther <rguenther@suse.de>
5723 PR rtl-optimization/44838
5724 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
5725 SSA form do not use pointer equivalence.
5727 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
5729 * dwarf2out.c (AT_linkage_name): Delete.
5730 (add_linkage_attr): New function.
5731 (add_linkage_name): Call it to emit the linkage attribute.
5732 (dwarf2out_finish): Likewise.
5733 (move_linkage_attr): Explicitly accept both attribute variants.
5735 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5737 * toplev.h: Do not include diagnostic-core.h.
5738 Include diagnostic-core.h in every file that includes toplev.h.
5739 * c-tree.h: Do not include toplev.h.
5740 * pretty-print.h: Update comment.
5741 * Makefile.in: Update dependencies.
5742 * alias.c: Include diagnostic-core.h in every file that includes
5744 * attribs.c: Likewise.
5745 * auto-inc-dec.c: Likewise.
5746 * bb-reorder.c: Likewise.
5747 * bt-load.c: Likewise.
5748 * caller-save.c: Likewise.
5749 * calls.c: Likewise.
5751 * cfganal.c: Likewise.
5752 * cfgbuild.c: Likewise.
5753 * cfgcleanup.c: Likewise.
5754 * cfghooks.c: Likewise.
5755 * cfgloop.c: Likewise.
5756 * combine.c: Likewise.
5757 * config/alpha/alpha.c: Likewise.
5758 * config/arc/arc.c: Likewise.
5759 * config/arm/arm.c: Likewise.
5760 * config/arm/pe.c: Likewise.
5761 * config/avr/avr.c: Likewise.
5762 * config/bfin/bfin.c: Likewise.
5763 * config/cris/cris.c: Likewise.
5764 * config/crx/crx.c: Likewise.
5765 * config/darwin-c.c: Likewise.
5766 * config/darwin.c: Likewise.
5767 * config/fr30/fr30.c: Likewise.
5768 * config/frv/frv.c: Likewise.
5769 * config/h8300/h8300.c: Likewise.
5770 * config/host-darwin.c: Likewise.
5771 * config/i386/i386.c: Likewise.
5772 * config/i386/netware.c: Likewise.
5773 * config/i386/nwld.c: Likewise.
5774 * config/i386/winnt-cxx.c: Likewise.
5775 * config/i386/winnt-stubs.c: Likewise.
5776 * config/i386/winnt.c: Likewise.
5777 * config/ia64/ia64-c.c: Likewise.
5778 * config/ia64/ia64.c: Likewise.
5779 * config/iq2000/iq2000.c: Likewise.
5780 * config/lm32/lm32.c: Likewise.
5781 * config/m32c/m32c-pragma.c: Likewise.
5782 * config/m32c/m32c.c: Likewise.
5783 * config/m32r/m32r.c: Likewise.
5784 * config/m68hc11/m68hc11.c: Likewise.
5785 * config/m68k/m68k.c: Likewise.
5786 * config/mcore/mcore.c: Likewise.
5787 * config/mep/mep-pragma.c: Likewise.
5788 * config/mep/mep.c: Likewise.
5789 * config/mmix/mmix.c: Likewise.
5790 * config/mn10300/mn10300.c: Likewise.
5791 * config/moxie/moxie.c: Likewise.
5792 * config/pa/pa.c: Likewise.
5793 * config/pdp11/pdp11.c: Likewise.
5794 * config/picochip/picochip.c: Likewise.
5795 * config/rs6000/rs6000-c.c: Likewise.
5796 * config/rs6000/rs6000.c: Likewise.
5797 * config/rx/rx.c: Likewise.
5798 * config/s390/s390.c: Likewise.
5799 * config/score/score.c: Likewise.
5800 * config/score/score3.c: Likewise.
5801 * config/score/score7.c: Likewise.
5802 * config/sh/sh.c: Likewise.
5803 * config/sh/symbian-base.c: Likewise.
5804 * config/sh/symbian-c.c: Likewise.
5805 * config/sh/symbian-cxx.c: Likewise.
5806 * config/sol2-c.c: Likewise.
5807 * config/sol2.c: Likewise.
5808 * config/sparc/sparc.c: Likewise.
5809 * config/spu/spu.c: Likewise.
5810 * config/stormy16/stormy16.c: Likewise.
5811 * config/v850/v850-c.c: Likewise.
5812 * config/v850/v850.c: Likewise.
5813 * config/vax/vax.c: Likewise.
5814 * config/vxworks.c: Likewise.
5815 * config/xtensa/xtensa.c: Likewise.
5816 * convert.c: Likewise.
5818 * cselib.c: Likewise.
5819 * dbgcnt.c: Likewise.
5820 * dbxout.c: Likewise.
5822 * dominance.c: Likewise.
5823 * emit-rtl.c: Likewise.
5824 * explow.c: Likewise.
5825 * expmed.c: Likewise.
5826 * fixed-value.c: Likewise.
5827 * fold-const.c: Likewise.
5828 * fwprop.c: Likewise.
5830 * ggc-common.c: Likewise.
5831 * ggc-page.c: Likewise.
5832 * ggc-zone.c: Likewise.
5833 * gimple-low.c: Likewise.
5834 * gimplify.c: Likewise.
5835 * graph.c: Likewise.
5836 * haifa-sched.c: Likewise.
5837 * ifcvt.c: Likewise.
5838 * implicit-zee.c: Likewise.
5839 * integrate.c: Likewise.
5840 * ira-build.c: Likewise.
5841 * ira-color.c: Likewise.
5842 * ira-conflicts.c: Likewise.
5843 * ira-costs.c: Likewise.
5844 * ira-lives.c: Likewise.
5846 * lists.c: Likewise.
5847 * loop-doloop.c: Likewise.
5848 * loop-iv.c: Likewise.
5849 * lto-opts.c: Likewise.
5850 * lto-symtab.c: Likewise.
5852 * modulo-sched.c: Likewise.
5853 * optabs.c: Likewise.
5854 * params.c: Likewise.
5855 * plugin.c: Likewise.
5856 * postreload-gcse.c: Likewise.
5857 * postreload.c: Likewise.
5858 * predict.c: Likewise.
5859 * profile.c: Likewise.
5861 * regcprop.c: Likewise.
5862 * reginfo.c: Likewise.
5863 * regmove.c: Likewise.
5864 * reorg.c: Likewise.
5865 * resource.c: Likewise.
5867 * rtlanal.c: Likewise.
5868 * sched-deps.c: Likewise.
5869 * sched-ebb.c: Likewise.
5870 * sched-rgn.c: Likewise.
5871 * sdbout.c: Likewise.
5872 * sel-sched-dump.c: Likewise.
5873 * sel-sched-ir.c: Likewise.
5874 * simplify-rtx.c: Likewise.
5876 * stor-layout.c: Likewise.
5877 * store-motion.c: Likewise.
5878 * targhooks.c: Likewise.
5879 * tree-cfg.c: Likewise.
5880 * tree-cfgcleanup.c: Likewise.
5881 * tree-dump.c: Likewise.
5882 * tree-eh.c: Likewise.
5883 * tree-inline.c: Likewise.
5884 * tree-nomudflap.c: Likewise.
5885 * tree-object-size.c: Likewise.
5886 * tree-optimize.c: Likewise.
5887 * tree-outof-ssa.c: Likewise.
5888 * tree-phinodes.c: Likewise.
5889 * tree-profile.c: Likewise.
5890 * tree-ssa-ccp.c: Likewise.
5891 * tree-ssa-coalesce.c: Likewise.
5892 * tree-ssa-live.c: Likewise.
5893 * tree-ssa-loop-niter.c: Likewise.
5894 * tree-ssa-loop-prefetch.c: Likewise.
5895 * tree-ssa-loop.c: Likewise.
5896 * tree-ssa-structalias.c: Likewise.
5897 * tree-ssa-uninit.c: Likewise.
5898 * tree-ssa.c: Likewise.
5899 * tree-vect-data-refs.c: Likewise.
5900 * tree-vect-loop-manip.c: Likewise.
5901 * tree-vect-loop.c: Likewise.
5902 * tree-vect-patterns.c: Likewise.
5903 * tree-vect-stmts.c: Likewise.
5904 * tree-vrp.c: Likewise.
5905 * varasm.c: Likewise.
5908 * xcoffout.c: Likewise.
5910 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
5912 * gengtype.c (write_field_root): New function.
5913 (write_root): Use it.
5915 2010-07-07 Wei Guozhi <carrot@google.com>
5917 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
5918 of lowest bits to lshift/compare): Add a missing line.
5920 2010-07-07 Wei Guozhi <carrot@google.com>
5922 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
5923 of lowest bits to lshift/compare): New.
5925 2010-07-07 Tom Tromey <tromey@redhat.com>
5927 * doc/tm.texi: Update.
5928 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
5930 * target.def (want_debug_pub_sections): New hook.
5931 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
5932 * dwarf2out.c (add_pubname_string): Check
5933 targetm.want_debug_pub_sections.
5934 (add_pubname): Likewise.
5935 (add_pubtype): Likewise.
5937 2010-07-07 Jie Zhang <jie@codesourcery.com>
5939 * genautomata.c (output_automata_list_min_issue_delay_code):
5940 Correctly decompress min_issue_delay.
5942 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
5944 PR rtl-optimization/44404
5945 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
5946 possible, use reg_overlap_mentioned_p instead.
5948 2010-07-07 Duncan Sands <baldrick@free.fr>
5951 * tree.c (build_function_type_skip_args): Copy the original type using
5952 build_distinct_type_copy rather than copy_node.
5954 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
5957 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
5959 (ix86_expand_prologue): Likewise.
5960 (ix86_handle_fndecl_attribute): Likewise.
5961 (ix86_asm_declare_function_name): Likewise.
5962 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5963 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5964 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
5965 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
5966 * doc/extend.texi: Likewise.
5968 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
5971 * config/i386/i386.md (rdrand<mode>): Changed to expand to
5972 retry if the carry flag isn't valid.
5973 (rdrand<mode>_1): New.
5975 2010-07-07 Richard Guenther <rguenther@suse.de>
5978 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
5979 for expanding the constant offset for MEM_REFs.
5981 2010-07-07 Richard Guenther <rguenther@suse.de>
5983 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
5984 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
5985 * gimple.h (is_gimple_operand): Remove.
5986 * gimple.c (is_gimple_operand): Likewise.
5987 (walk_gimple_op): Fix wi->val_only setting for calls.
5988 * tree-cfg.c (verify_gimple_call): Fix argument validation.
5989 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
5990 invalid gimple calls.
5992 2010-07-06 Jan Hubicka <jh@suse.cz>
5994 * lto-cgraph.c (output_cgraph): Add missing declaration.
5996 2010-07-06 Jan Hubicka <jh@suse.cz>
5998 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
6001 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
6003 * doc/gimple.texi (GIMPLE_DEBUG): Document.
6004 * doc/rtl.texi (Debug Information): New node.
6005 (NOTE_INSN_VAR_LOCATION): Document.
6006 (debug_insn): Likewise.
6007 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
6009 2010-07-07 Jan Hubicka <jh@suse.cz>
6011 With parts by Richard Guenther.
6014 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
6015 for functions passed by reference.
6016 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
6017 in memory when passed by reference.
6018 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
6020 * ipa-split.c (split_function): Cleanup way return value is passed;
6021 handle SSA DECL_BY_REFERENCE retvals.
6022 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
6023 DECL_BY_REFERENCE is set.
6024 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
6025 find_what_p_points_to): Handle RESULT_DECL.
6026 * tree-inline.c (declare_return_variable): Get new entry_block argument;
6027 when passing by reference ensure that RESULT_DECL is gimple_val.
6028 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
6029 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
6031 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
6033 PR rtl-optimization/44787
6034 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
6035 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
6037 2010-07-06 Jan Hubicka <jh@suse.cz>
6039 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
6040 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
6041 with body can prevail.
6042 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
6043 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
6044 * cgraph.c (cgraph_get_node_or_alias): New function.
6045 * cgraph.h (cgraph_get_node_or_alias): Declare.
6047 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
6049 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
6051 (ix86_expand_prologue): Likewise.
6052 (ix86_handle_fndecl_attribute): Likewise.
6053 (ix86_asm_declare_function_name): New function for
6054 ASM_DECLARE_FUNCTION_NAME.
6055 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
6056 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
6057 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
6058 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
6059 * doc/extend.texi: Adjust documentation about ms_hook_prologue
6062 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
6064 * config/i386/i386.md (immediate_operand): New mode attribute.
6066 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
6067 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
6068 using P mode iterator.
6069 (pro_epilogue_adjust_stack_di_2): Rename from
6070 pro_epilogue_adjust_stack_rex64_2.
6072 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
6074 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
6076 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
6077 through gen_mov_insv_1 function pointer.
6078 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
6079 gen_truncxf<mode>2 through gen_truncxf function pointer.
6080 (remainder<mode>3): Ditto.
6081 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
6082 (allocate_stack): Call gen_allocate_stack_worker_64 or
6083 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
6085 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
6088 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
6090 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
6091 operand constraint instead of <r><i>m.
6093 2010-07-06 Richard Guenther <rguenther@suse.de>
6096 * convert.c (convert_to_integer): Watch out for overflowing
6099 2010-07-05 Jan Hubicka <jh@suse.cz>
6101 * lto-streamer.c (write_symbol_vec): Rename to ...
6102 (write_symbol) ... this one; write only symbol given and when
6103 present in cache. Sanity check that what is defined is present
6104 in cgraph/varpool with body/finalized decl.
6105 (write_symbols_of_kind): Remove.
6106 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
6107 pairs to produce symtab.
6108 (produce_asm_for_decls): Update call of produce_symtab; don't do so
6109 when doing WPA streaming.
6111 2010-07-05 Jan Hubicka <jh@suse.cz>
6113 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
6114 function is still available to fold into.
6116 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
6118 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
6119 * function.h (struct_function): Change type of local_decls field
6121 (add_local_decl): New function.
6122 (FOR_EACH_LOCAL_DECL): New macro.
6123 * cfgexpand.c (init_vars_expansion): Adjust for new type of
6125 (estimated_stack_frame_size): Likewise.
6126 (expand_used_vars): Likewise.
6127 * cgraphbuild.c (build_cgraph_edges): Likewise.
6128 * function.c (instantiate_decls_1): Likewise.
6129 * ipa-struct-reorg.c (build_data_structure): Likewise.
6130 * ipa-type-escape.c (analyze_function): Likewise.
6131 * lto-streamer-in.c (input_function): Likewise.
6132 * lto-streamer-out.c (output_function): Likewise.
6133 * tree-ssa-live.c (remove_unused_locals): Likewise.
6134 * tree.c (free_lang_data_in_decl): Likewise.
6135 (find_decls_types_in_node): Likewise.
6136 * omp-low.c (remove_exit_barrier): Likewise.
6137 (expand_omp_taskreg): Likewise.
6138 (list2chain): Rename to...
6139 (vec2chain): ...this. Adjust.
6140 * cgraphunit.c (assemble_thunk): Call add_local_decl.
6141 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
6142 * gimple-low.c (record_vars_into): Likewise.
6143 * tree-inline.c (remap_decls): Likewise.
6144 (declare_return_variable): Likewise.
6145 (declare_inline_vars): Likewise.
6146 (copy_forbidden): Adjust for new type of cfun->local_decls.
6147 (add_local_variables): New function.
6148 (expand_call_inline): Call it.
6149 (tree_function_versioning): Likewise.
6151 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
6153 AVX Programming Reference (June, 2010)
6154 * config/i386/cpuid.h (bit_F16C): New.
6155 (bit_RDRND): Likewise.
6156 (bit_FSGSBASE): Likewise.
6158 * config/i386/i386-builtin-types.def: Add
6159 "DEF_FUNCTION_TYPE (UINT16)", function types for
6160 float16 <-> float conversions and
6161 "DEF_FUNCTION_TYPE (VOID, UINT64)".
6163 * config/i386/i386-c.c (ix86_target_macros_internal): Support
6164 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
6165 OPTION_MASK_ISA_F16C.
6167 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
6168 (OPTION_MASK_ISA_RDRND_SET): Likewise.
6169 (OPTION_MASK_ISA_F16C_SET): Likewise.
6170 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
6171 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
6172 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
6173 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
6174 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
6175 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
6176 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
6177 (override_options): Handle them.
6178 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
6179 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
6180 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
6181 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
6182 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
6183 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
6184 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
6185 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
6186 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
6187 (bdesc_args): Likewise.
6188 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
6189 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
6190 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
6191 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
6192 Handle non-memory store.
6194 * config/i386/i386.h (TARGET_FSGSBASE): New.
6195 (TARGET_RDRND): Likewise.
6196 (TARGET_F12C): Likewise.
6198 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
6199 (UNSPEC_VCVTPS2PH): Likewise.
6200 (UNSPECV_RDFSBASE): Likewise.
6201 (UNSPECV_RDGSBASE): Likewise.
6202 (UNSPECV_WRFSBASE): Likewise.
6203 (UNSPECV_WRGSBASE): Likewise.
6204 (UNSPECV_RDRAND): Likewise.
6205 (rdfsbase<mode>): Likewise.
6206 (rdgsbase<mode>): Likewise.
6207 (wrfsbase<mode>): Likewise.
6208 (wrgsbase<mode>): Likewise.
6209 (rdrand<mode>): Likewise.
6211 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
6213 * config/i386/immintrin.h (_rdrand_u16): New.
6214 (_rdrand_u32): Likewise.
6215 (_readfsbase_u32): Likewise.
6216 (_readfsbase_u64): Likewise.
6217 (_readgsbase_u32): Likewise.
6218 (_readgsbase_u64): Likewise.
6219 (_writefsbase_u32): Likewise.
6220 (_writefsbase_u64): Likewise.
6221 (_writegsbase_u32): Likewise.
6222 (_writegsbase_u64): Likewise.
6223 (_rdrand_u64): Likewise.
6224 (_cvtsh_ss): Likewise.
6225 (_mm_cvtph_ps): Likewise.
6226 (_mm256_cvtph_ps): Likewise.
6227 (_cvtss_sh): Likewise.
6228 (_mm_cvtps_ph): Likewise.
6229 (_mm256_cvtps_ph): Likewise.
6231 * config/i386/sse.md (vcvtph2ps): New.
6232 (*vcvtph2ps_load): Likewise.
6233 (vcvtph2ps256): Likewise.
6234 (vcvtps2ph): Likewise.
6235 (*vcvtps2ph): Likewise.
6236 (*vcvtps2ph_store): Likewise.
6237 (vcvtps2ph256): Likewise.
6239 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
6241 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
6243 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
6246 * genenums.c (main): Output include of insn-constants.h
6247 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
6249 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
6251 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
6252 (override_options): Initialize it.
6253 (ix86_expand_prologue): Use it.
6255 2010-07-05 Jakub Jelinek <jakub@redhat.com>
6257 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
6259 2010-07-05 Anatoly Sokolov <aesok@post.ru>
6261 * double-int.h (fit_double_type): Remove declaration.
6262 * double-int.c (fit_double_type): Remove function.
6263 * tree.h (int_fits_type_p): Adjust prototype.
6264 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
6265 instead of fit_double_type.
6266 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
6267 instead of fit_double_type and build_int_cst_wide.
6268 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
6269 instead of fit_double_type and build_int_cst_wide.
6270 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
6273 2010-07-05 Jan Hubicka <jh@suse.cz>
6275 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
6277 * lto-cgraph.c (referenced_from_other_partition_p,
6278 reachable_from_other_partition_p): Use in_other_partition flags.
6279 (output_node, output_varpool_node): COMDAT nodes always have private
6280 copies and thus are never used from other partition.
6282 2010-07-05 Anatoly Sokolov <aesok@post.ru>
6284 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
6285 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
6286 * config/ia64/ia64.c Include reload.h.
6287 (ia64_memory_move_cost): New function.
6288 (TARGET_MEMORY_MOVE_COST): Define.
6289 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
6292 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
6295 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
6296 comments about cost model.
6297 (try_add_cand_for): Add second strategy for choosing initial set
6298 based on original IVs, controlled by ORIGINALP argument.
6299 (get_initial_solution): Add ORIGINALP argument.
6300 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
6301 (find_optimal_iv_set): Try two different strategies for choosing
6302 the IV set, and return the one with lower cost.
6304 2010-07-05 Richard Guenther <rguenther@suse.de>
6306 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
6308 2010-07-05 Richard Guenther <rguenther@suse.de>
6310 * tree.c (reference_alias_ptr_type): New function.
6311 * tree.h (reference_alias_ptr_type): Declare.
6312 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
6313 allow non-TARGET_MEM_REF new refs.
6314 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
6315 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
6316 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
6317 (create_mem_ref): Get alias pointer type. Adjust calls to
6319 (maybe_fold_tmr): Likewise.
6320 * tree-flow.h (create_mem_ref): Adjust prototype.
6322 2010-07-05 Jakub Jelinek <jakub@redhat.com>
6325 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
6326 *from_p is VAR_DECL.
6328 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
6330 * tree.h (build_call_list): Remove.
6331 * tree.c (build_call_list): Remove.
6333 2010-07-05 Richard Guenther <rguenther@suse.de>
6335 * double-int.h (double_int_sub): Declare.
6336 * double-int.c (double_int_sub): New function.
6337 * dwarf2out.c (field_byte_offset): Use it.
6338 * fixed-value.c (do_fixed_add): Likewise.
6339 (do_fixed_multiply): Likewise.
6340 (do_fixed_divide): Likewise.
6341 * tree-predcom.c (add_ref_to_chain): Likewise.
6342 (determine_roots_comp): Likewise.
6343 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
6345 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
6347 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
6350 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
6352 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
6353 * arm-modes.def (CC_NOTB): Don't define.
6354 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
6355 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
6356 (LTUGEU): New code_iterator.
6357 (cnb, optab): New corresponding code_attrs.
6358 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
6359 to canonical form. Operands 1 and 2 are commutative. Parametrize
6361 (addsi3_carryin_shift_<optab>): Likewise.
6362 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
6363 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
6364 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
6365 (subsi3_compare): Renamed from subsi3_compare0_c.
6366 Change CC_NOTB to CC.
6367 (arm_subsi3_insn): Allow constants for operand 0.
6368 (compare_scc peephole for eq case): New.
6369 (compare_scc splitters): Change CC_NOTB to CC.
6371 2010-07-05 Richard Guenther <rguenther@suse.de>
6373 * tree-ssa-loop-im.c (for_each_index): Do not handle
6375 (gen_lsm_tmp_name): Likewise.
6376 * tree-dump.c (dequeue_and_dump): Likewise.
6377 * tree-pretty-print.c (dump_generic_node): Likewise.
6378 (op_code_prio): Likewise.
6379 (op_symbol_code): Likewise.
6380 * tree.c (staticp): Likewise.
6381 (build1_stat): Likewise.
6382 * tree.h (INDIRECT_REF_P): Likewise.
6383 * fold-const.c (maybe_lvalue_p): Likewise.
6384 (operand_equal_p): Likewise.
6385 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6386 (ao_ref_init_from_vn_reference): Likewise.
6387 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
6388 (find_interesting_uses_address): Likewise.
6389 * dwarf2out.c (loc_list_from_tree): Likewise.
6390 * gimplify.c (gimplify_expr): Likewise.
6391 * tree-eh.c (tree_could_trap_p): Likewise.
6392 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6393 * cfgexpand.c (expand_debug_expr): Likewise.
6394 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6395 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
6396 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
6397 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
6398 * tree-ssa-operands.c (get_expr_operands): Likewise.
6399 * expr.c (safe_from_p): Likewise.
6400 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
6401 * tree-vect-data-refs.c (vect_setup_realignment): Build
6402 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
6403 * tree-vect-stmts.c (vectorizable_load): Likewise.
6404 * tree.def (ALIGN_INDIRECT_REF): Remove.
6406 2010-07-05 Richard Guenther <rguenther@suse.de>
6408 PR tree-optimization/44784
6409 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
6411 (find_or_generate_expression): Fix SCCVN insertion check.
6413 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
6415 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
6416 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
6417 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
6420 2010-07-05 Ira Rosen <irar@il.ibm.com>
6422 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
6423 statements that are not vectorized.
6424 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
6427 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
6430 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
6432 2010-07-05 Richard Guenther <rguenther@suse.de>
6434 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
6435 RESULT_DECLs properly.
6437 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
6439 PR rtl-optimization/44695
6440 * config/i386/i386.md (extract_code): Removed.
6441 (<u>divmodqi4): Likewise.
6443 (udivmodqi4): Likewise.
6444 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
6445 (udivmodhiqi3): Likewise.
6447 2010-07-04 Jan Hubicka <jh@suse.cz>
6449 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
6451 2010-07-04 Jan Hubicka <jh@suse.cz>
6453 * cgraphunit.c (init_cgraph): Only initialize dump file if it
6454 is not already initialized.
6456 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
6458 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
6459 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
6460 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
6461 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
6462 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
6463 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
6464 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
6465 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
6466 (sync_new_nand_optab): Redefine as macros.
6467 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
6469 (direct_optab_index): New enum.
6470 (direct_optab_d): New structure.
6471 (direct_optab): New typedef.
6472 (direct_optab_table): Declare.
6473 (direct_optab_handler, set_direct_optab_handler): New functions.
6474 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
6475 (sync_lock_release_optab): New macros.
6476 * optabs.c (direct_optab_table): New variable.
6477 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
6478 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
6479 cmpstr_optab and cmpstrn_optab.
6480 (emit_conditional_move): Likewise for movcc_optab.
6481 (can_conditionally_move_p): Likewise for movcc_gen_code.
6482 (init_insn_codes): Clear direct_optab_table.
6483 (init_optabs): Don't initialize the new "direct optabs" here.
6484 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
6486 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
6487 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
6488 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
6489 (expand_sync_operation): Likewise other sync_*_optabs.
6490 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
6491 to sync_compare_and_swap_optab.
6492 (expand_sync_lock_test_and_set): Use direct_optab_handler for
6493 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
6494 to the names of both.
6495 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
6496 cmpstr_optab and cmpstrn_optab.
6497 (expand_builtin_lock_release): Likewise sync_lock_release.
6498 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
6499 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
6500 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
6501 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
6502 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
6503 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
6504 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
6505 (sync_lock_test_and_set, sync_lock_release): Delete.
6506 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
6507 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
6508 * genopinit.c (optabs): Use set_direct_optab_handler for the new
6510 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
6511 the "optab" local variable. Use direct_optab_handler for optab and
6512 sync_compare_and_swap_optab.
6513 * reload1.c (reload_in_optab, reload_out_optab): Delete.
6514 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
6515 reload_in_optab and reload_out_optab.
6516 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
6517 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
6518 * config/pa/pa.c (pa_secondary_reload): Likewise.
6519 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
6520 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
6521 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
6522 (VMSupportsCS8_builtin): Likewise.
6524 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
6526 * optabs.h (optab_handlers): Change type of insn_code to int.
6527 (optab_handler, set_optab_handler, convert_optab_handler)
6528 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
6530 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
6531 (init_insn_codes): Zero both the above arrays.
6532 (init_optabs): Never call init_insn_codes first time around.
6534 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
6536 * optabs.h (optab_handler, convert_optab_handler): Turn into
6537 inline functions that return an insn code.
6538 (set_optab_handler, set_convert_optab_handler): New functions.
6539 * builtins.c: Replace optab_handler(X)->insn_code with
6540 optab_handler or set_optab_handler thoughout. Likewise
6541 convert_optab_handler(X)->insn_code with convert_optab_handler
6542 and set_convert_optab_handler.
6543 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
6544 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
6545 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
6546 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
6547 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
6548 config/spu/spu.c: Likewise.
6550 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
6553 * config.gcc (sh*-*-*): Use regular expressions instead of
6554 the 'i' modifier for sed substitutions.
6556 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
6558 * gimple.c (gimple_body): Comments added.
6560 2010-07-04 Richard Guenther <rguenther@suse.de>
6563 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
6566 2010-07-04 Richard Guenther <rguenther@suse.de>
6568 PR tree-optimization/44479
6569 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
6570 extra SSA name copy statements which preserves points-to
6572 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6573 Copy points-to information for all pointers. Properly handle
6575 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
6577 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
6580 2010-07-04 Richard Guenther <rguenther@suse.de>
6583 * tree-inline.c (initialize_inlined_parameters): Do not
6584 re-use pointer-map slot over remap_type call.
6586 2010-07-04 Richard Guenther <rguenther@suse.de>
6588 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
6590 2010-07-04 Richard Guenther <rguenther@suse.de>
6592 PR tree-optimization/44656
6593 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
6594 again after value-replacing in the defintions lhs.
6596 2010-07-04 Ira Rosen <irar@il.ibm.com>
6597 Revital Eres <eres@il.ibm.com>
6599 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
6600 Document new arguments.
6601 * doc/tm.texi: Regenerate.
6602 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
6603 Handle unaligned store.
6604 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
6605 * target.def (builtin_vectorization_cost): Add new arguments.
6606 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
6607 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
6608 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
6609 (vect_vfa_segment_size): Fix indentation.
6610 * tree-vectorizer.h (struct _vect_peel_info): New.
6611 (struct _vect_peel_extended_info): New.
6612 (struct _loop_vec_info): Add new field for peeling hash table and a
6613 macro for its access.
6614 (VECT_MAX_COST): Define.
6615 (vect_get_load_cost): Declare.
6616 (vect_get_store_cost, vect_get_known_peeling_cost,
6617 vect_get_single_scalar_iteraion_cost): Likewise.
6618 (vect_supportable_dr_alignment): Add new argument.
6619 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
6621 (destroy_loop_vec_info): Free peeling hash table.
6622 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
6623 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
6624 vect_analyze_slp. Fix indentation.
6625 (vect_get_single_scalar_iteraion_cost): New function.
6626 (vect_get_known_peeling_cost): Likewise.
6627 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
6628 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
6629 statement. Move outside cost calculation inside unknown peeling case.
6630 Call vect_get_known_peeling_cost for known amount of peeling.
6631 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
6632 reference to the print message of forced alignment.
6633 (vect_verify_datarefs_alignment): Update call to
6634 vect_supportable_dr_alignment.
6635 (vect_get_data_access_cost): New function.
6636 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
6637 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
6638 vect_peeling_hash_choose_best_peeling): Likewise.
6639 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
6640 to store all the accesses in the loop and find best possible access to
6641 align using peeling for known alignment case. For unknown alignment
6642 check if stores are preferred or if peeling is worthy.
6643 (vect_find_same_alignment_drs): Analyze pairs of loads too.
6644 (vect_supportable_dr_alignment): Add new argument and check aligned
6645 accesses according to it.
6646 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
6647 (cost_for_stmt): Call vect_get_stmt_cost.
6648 (vect_model_simple_cost): Likewise.
6649 (vect_model_store_cost): Call vect_get_stmt_cost. Call
6650 vect_get_store_cost to calculate the cost of the statement.
6651 (vect_get_store_cost): New function.
6652 (vect_model_load_cost): Call vect_get_stmt_cost. Call
6653 vect_get_load_cost to calculate the cost of the statement.
6654 (vect_get_load_cost): New function.
6655 (vectorizable_store): Update call to vect_supportable_dr_alignment.
6656 (vectorizable_load): Likewise.
6657 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
6658 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
6659 arguments. Handle unaligned store.
6660 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
6661 (rs6000_builtin_support_vector_misalignment): Return true for word and
6662 double word alignments for VSX.
6663 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
6664 vect_supportable_dr_alignment and builtin_vectorization_cost.
6666 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6669 * config/pa/predicates.md (prefetch_cc_operand): Remove.
6670 (prefetch_nocc_operand): Likewise.
6671 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
6672 (prefetch_20): New insn.
6673 (prefetch_cc): Remove.
6674 (prefetch_nocc): Likewise.
6676 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6678 * expr.c (vector_mode_valid_p): Move to c-common.c.
6679 * expr.h (vector_mode_valid_p): Do not declare here.
6680 * system.h: Poison GCC_EXPR_H in front-ends.
6681 * Makefile.in: Update dependencies.
6683 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6686 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
6688 2010-07-03 Jan Hubicka <jh@suse.cz>
6690 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
6691 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
6692 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
6693 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
6696 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
6698 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
6699 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
6700 TV_IPA_LTO_DECL_OUT): New.
6701 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
6703 2010-07-03 Jan Hubicka <jh@suse.cz>
6705 * ipa-inline.c (update_edge_key): Break out from ...
6706 update_callers_keys): ... here;
6707 (update_callee_keys): Update only the edges from caller to callee.
6708 (update_all_calle_keys): Do what update_calle_keys did.
6709 (decide_inlining_of_small_functions): Avoid recomputing of all
6710 callees when badness increase.
6712 2010-07-03 Jie Zhang <jie@codesourcery.com>
6714 * config/arm/arm.c (arm_attr_length_move_neon): New.
6715 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
6716 * config/arm/neon.md (define_mode_attr V_slen): Remove.
6717 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
6718 to compute length attribute.
6720 2010-07-03 Jie Zhang <jie@codesourcery.com>
6722 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
6723 as predicate for operand 1 and remove its constraint.
6724 * config/arm/predicates.md (vfp_register_operand): New.
6725 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
6726 (*push_fp_multi): Likewise.
6728 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
6730 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
6732 2010-07-03 Jan Hubicka <jh@suse.cz>
6734 * config/i386/i386.c (override_options): Revert accidental commit.
6736 2010-07-02 Le-Chun Wu <lcwu@google.com>
6739 * doc/invoke.texi: Update documentation of -Wshadow.
6741 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
6742 Julian Brown <julian@codesourcery.com>
6743 Sandra Loosemore <sandra@codesourcery.com>
6745 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
6746 comparisons. Adjust to take both operands.
6747 (arm_select_cc_mode): Handle DImode comparisons.
6748 (arm_gen_compare_reg): Generate a scratch register for DImode
6749 comparisons which require one. Use xor for Thumb equality checks.
6750 (arm_const_double_by_immediates): New.
6751 (arm_print_operand): Allow 'Q' and 'R' for constants.
6752 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
6753 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
6754 arm_canonicalize_comparison.
6755 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
6756 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
6758 (arm_const_double_by_immediates): Declare.
6759 * config/arm/constraints.md (Di): New constraint.
6760 * config/arm/predicates.md (arm_immediate_di_operand)
6761 (arm_di_operand, cmpdi_operand): New.
6762 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
6763 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
6764 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
6765 (cstoredi4): Handle non-Cirrus also.
6767 2010-07-02 Julian Brown <julian@codesourcery.com>
6768 Sandra Loosemore <sandra@codesourcery.com>
6771 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
6772 (smax<mode>3): Disable for NEON float modes when
6773 flag_unsafe_math_optimizations is false.
6774 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
6776 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
6777 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
6778 for NEON float modes when flag_unsafe_math_optimizations is false.
6779 (quad_halves_<code>v4sf): Only enable if
6780 flag_unsafe_math_optimizations is true.
6781 * doc/invoke.texi (ARM Options): Add note about floating point
6782 vectorization requiring -funsafe-math-optimizations.
6784 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
6785 Julian Brown <julian@codesourcery.com>
6787 * config/arm/neon.md (UNSPEC_VABA): Delete.
6788 (UNSPEC_VABAL): Delete.
6789 (UNSPEC_VABS): Delete.
6790 (UNSPEC_VMUL_N): Delete.
6793 (mul<mode>3add<mode>_neon): Make the pattern named.
6794 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
6795 (neon_vadd<mode>): Replace with define_expand, and move the remaining
6797 (neon_vadd<mode>_unspec): ...to this.
6798 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
6799 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
6800 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
6801 (neon_vaba<mode>): Rewrite in terms of vabd.
6802 (neon_vabal<mode>): Rewrite in terms of vabdl.
6803 (neon_vabs<mode>): Rewrite without unspec.
6804 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
6805 (*arm_subdi3): Likewise.
6806 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
6807 No_op attribute to disable assembly output checks.
6808 * config/arm/arm_neon.h: Regenerated.
6809 * doc/arm-neon-intrinsics.texi: Regenerated.
6811 2010-07-02 Jan Hubicka <jh@suse.cz>
6813 * ipa-split.c (split_function): For aggregate values, set the return
6814 slot optimization bit. When passing DECL_BY_REFERENCE, produce
6815 *<retval> = fncall.part ().
6816 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
6818 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
6820 * config/arm/neon.md (UNSPEC_VAND): Delete.
6821 (UNSPEC_VBIC): Delete.
6822 (UNSPEC_VCLZ): Delete.
6823 (UNSPEC_VCNT): Delete.
6824 (UNSPEC_VEOR): Delete.
6825 (UNSPEC_VORN): Delete.
6826 (UNSPEC_VORR): Delete.
6827 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
6829 (anddi3_neon): Likewise.
6830 (orndi3_neon): Likewise.
6831 (bicdi3_neon): Likewise.
6832 (xordi3_neon): Likewise.
6833 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
6834 rid of unspec and handle unused operand.
6835 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
6836 * config/arm/predicates.md (imm_for_neon_logic_operand):
6837 Require TARGET_NEON.
6838 (imm_for_neon_inv_logic_operand): Likewise.
6839 * config/arm/arm.md (define_split for logical_binary_operator):
6840 Disable for NEON registers.
6841 (anddi3): Add new define_expand, and rename the insn. Disable
6842 this insn for NEON, where anddi3_neon now applies.
6843 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
6844 (iordi3): As for anddi3.
6846 * config/arm/neon.ml (Vand): Split DImode variants and mark them
6847 as No_op to disable testing for exact instruction match.
6852 * config/arm/arm_neon.h: Regenerated.
6853 * doc/arm-neon-intrinsics.texi: Regenerated.
6855 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
6857 * expr.h (emit_stack_probe): Declare.
6858 * explow.c (emit_stack_probe): Make global.
6859 (anti_adjust_stack_and_probe): Fix comments.
6860 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
6861 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6862 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6863 * config/sparc/sparc.c: Include except.h.
6864 (sparc_emit_probe_stack_range): New function.
6865 (output_probe_stack_range): Likewise.
6866 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
6867 built-in stack checking is enabled.
6868 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
6869 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
6870 (probe_stack_range): New insn.
6872 2010-07-02 Richard Guenther <rguenther@suse.de>
6875 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
6876 for argument alignment.
6878 2010-07-02 Jan Hubicka <jh@suse.cz>
6880 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
6881 walk backwards from entry_bb to check only those basic block of header
6882 that might lead to execution of split part.
6883 (consider_split) ... here.
6884 (find_return_bb): Allow assignment in return BB.
6886 (split_function): Fix name of cloned function; take care of updating
6887 return value in return_bb containing move.
6889 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
6892 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
6895 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
6897 * implicit-zee.c (combine_reaching_defs): Fix long lines.
6898 (is_set_with_extension_DI): Delete.
6899 (struct zero_extend_info): New structure.
6900 (add_removable_zero_extend): New function.
6901 (find_removable_zero_extends): Use note_stores to find SETs.
6902 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
6904 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
6906 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
6907 is_miss_rate_acceptable. Pull total_positions computation
6908 out of the loops. Early return if miss_positions exceeds
6909 the acceptable threshold.
6910 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
6911 is_miss_rate_acceptable after renaming of compute_miss_rate.
6913 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
6916 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
6917 of 1000) for miss rate if the address diference is greater than or
6918 equal to the cache line size (the two reference will never hit the
6921 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
6924 * config/arm/arm-modes.def (CC_NOTB): New mode.
6925 * config/arm/arm.c (get_arm_condition_code): Handle it.
6926 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
6927 * config/arm/arm.md (subsi3_compare0_c): New pattern.
6928 (compare_scc): Now a define_and_split. Add a number of extra
6929 splitters before it.
6932 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
6934 (arm_rtx_costs_1): Likewise.
6935 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
6936 * config/arm/arm.md (is_arch6): New attribute.
6937 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
6938 extendqisi2): Tighten the code somewhat, avoiding invalid
6939 RTL to occur in the expander patterns.
6940 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
6941 (thumb1_zero_extendhisi2_v6): Delete.
6942 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
6943 (thumb1_extendhisi2_v6): Delete.
6944 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
6945 (thumb1_extendqisi2_v6): Delete.
6946 (zero_extendhisi2 for register input splitter): New.
6947 (zero_extendqisi2 for register input splitter): New.
6948 (thumb1_extendhisi2 for register input splitter): New.
6949 (extendhisi2 for register input splitter): New.
6950 (extendqisi2 for register input splitter): New.
6951 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
6952 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
6953 and add support for a register alternative requiring a split.
6954 (thumb1_zero_extendqisi2): Likewise.
6955 (arm_zero_extendqisi2): Likewise.
6956 (arm_extendhisi2): Likewise.
6957 (arm_extendqisi2): Likewise.
6959 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
6961 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
6962 instead of an unspec.
6963 (neon_expand_vector_init): Likewise.
6964 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
6965 (UNSPEC_VDUP_LANE): Delete.
6966 (UNSPEC VDUP_N): Delete.
6967 (UNSPEC_VGET_HIGH): Delete.
6968 (UNSPEC_VGET_LANE): Delete.
6969 (UNSPEC_VGET_LOW): Delete.
6970 (UNSPEC_VMVN): Delete.
6971 (UNSPEC_VSET_LANE): Delete.
6972 (V_double_vector_mode): New.
6973 (vec_set<mode>_internal): Make code emitted match that for the
6974 corresponding intrinsics.
6975 (vec_setv2di_internal): Likewise.
6976 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
6977 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
6978 (neon_vset_lane<mode>): Combine double and quad patterns and
6979 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
6980 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
6981 (neon_vdup_n<mode>): Rewrite RTL without unspec.
6982 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
6983 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
6984 with neon_vdup_lanev2di, adjusting the pattern from the latter
6985 to be predicable for consistency.
6986 (neon_vdup_lane<mode>_internal): New.
6987 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
6988 to avoid using an unspec.
6989 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
6990 (neon_vdup_lanev2di): Turn into a define_expand.
6991 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
6992 (neon_vget_high<mode>): Replace with....
6993 (neon_vget_highv16qi): New pattern using canonical RTL.
6994 (neon_vget_highv8hi): Likewise.
6995 (neon_vget_highv4si): Likewise.
6996 (neon_vget_highv4sf): Likewise.
6997 (neon_vget_highv2di): Likewise.
6998 (neon_vget_low<mode>): Replace with....
6999 (neon_vget_lowv16qi): New pattern using canonical RTL.
7000 (neon_vget_lowv8hi): Likewise.
7001 (neon_vget_lowv4si): Likewise.
7002 (neon_vget_lowv4sf): Likewise.
7003 (neon_vget_lowv2di): Likewise.
7005 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
7006 test for this emitting vmov.
7007 (Vset_lane): Likewise.
7011 * doc/arm-neon-intrinsics.texi: Regenerated.
7013 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
7015 * config/arm/neon.md (vec_extractv2di): Correct error in register
7016 numbering to reconcile with neon_vget_lanev2di.
7018 2010-07-02 Richard Guenther <rguenther@suse.de>
7020 * tree-ssa-structalias.c (pt_solution_set_var): New function.
7021 * tree-ssa-alias.h (pt_solution_set_var): Declare.
7022 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
7023 points-to information.
7025 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
7027 * config/s390/s390.c (override_options): Adopt prefetching
7028 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
7030 2010-07-02 Jan Hubicka <jh@suse.cz>
7032 * df-problems.c (df_kill_notes): Do not collect dead notes.
7033 (df_set_note): Just call add_reg_note.
7034 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
7035 df_create_unused_note): Do not deal with lists of old notes.
7036 (df_note_bb_compute): Likewise.
7038 2010-07-02 Richard Guenther <rguenther@suse.de>
7040 * tree-ssa-structalias.c (find_func_aliases): Handle
7041 pointer alignment via BIT_AND_EXPR.
7042 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
7044 2010-07-02 Richard Guenther <rguenther@suse.de>
7046 * tree-data-ref.c (initialize_data_dependence_relation): Handle
7047 mismatching number of dimensions properly.
7049 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7052 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
7053 (lo_sum (high ...) ...) patterns generated by earlier passes.
7055 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7057 * doc/install.texi (Prerequisites): Document Perl requirement on
7059 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
7061 2010-07-02 Richard Guenther <rguenther@suse.de>
7064 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
7066 2010-07-02 Jan Hubicka <jh@suse.cz>
7069 * predict.c (predict_paths_for_bb): Handle case when control dependence
7070 BB has only abnormal edges.
7072 2010-07-02 Richard Guenther <rguenther@suse.de>
7074 PR tree-optimization/44748
7075 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
7076 the embedded conversion in MEM_REFs.
7078 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
7080 * reload.c: Include toplev.h.
7081 * recog.c: Likewise.
7082 * Makefile.in: Adjust dependencies.
7084 2010-07-01 Jakub Jelinek <jakub@redhat.com>
7087 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
7088 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
7090 2010-07-01 Richard Guenther <rguenther@suse.de>
7092 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
7095 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
7098 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
7101 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
7104 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7105 Make sure operand 0 dies.
7107 2010-07-01 Richard Guenther <rguenther@suse.de>
7111 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
7112 * doc/generic.texi (References to storage): Document MEM_REF.
7113 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
7114 (print_call_name): Likewise.
7115 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
7116 (build_simple_mem_ref_loc): New function.
7117 (mem_ref_offset): Likewise.
7118 * tree.h (build_simple_mem_ref_loc): Declare.
7119 (build_simple_mem_ref): Define.
7120 (mem_ref_offset): Declare.
7121 * fold-const.c: Include tree-flow.h.
7122 (operand_equal_p): Handle MEM_REF.
7123 (build_fold_addr_expr_with_type_loc): Likewise.
7124 (fold_comparison): Likewise.
7125 (fold_unary_loc): Fold
7126 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
7127 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
7128 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
7129 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
7130 (ptr_deref_may_alias_ref_p_1): Likewise.
7131 (ao_ref_base_alias_set): Properly differentiate base object for
7133 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
7134 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
7135 (indirect_refs_may_alias_p): Likewise.
7136 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
7138 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
7139 (call_may_clobber_ref_p_1): Likewise.
7140 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
7141 * expr.c (expand_assignment): Handle MEM_REF.
7142 (store_expr): Handle MEM_REFs from STRING_CSTs.
7143 (store_field): If expanding a MEM_REF of a non-addressable
7144 decl use bitfield operations.
7145 (get_inner_reference): Handle MEM_REF.
7146 (expand_expr_addr_expr_1): Likewise.
7147 (expand_expr_real_1): Likewise.
7148 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
7149 * alias.c (ao_ref_from_mem): Handle MEM_REF.
7150 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
7151 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
7152 (dr_analyze_indices): Likewise.
7153 (dr_analyze_alias): Likewise.
7154 (object_address_invariant_in_loop_p): Likewise.
7155 * gimplify.c (mark_addressable): Handle MEM_REF.
7156 (gimplify_cond_expr): Build MEM_REFs.
7157 (gimplify_modify_expr_to_memcpy): Likewise.
7158 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
7159 (gimple_fold_indirect_ref): Adjust.
7160 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
7161 * tree.def (MEM_REF): New tree code.
7162 * tree-dfa.c: Include toplev.h.
7163 (get_ref_base_and_extent): Handle MEM_REF.
7164 (get_addr_base_and_unit_offset): New function.
7165 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
7166 * gimple-fold.c (may_propagate_address_into_dereference): Handle
7168 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
7169 accesses if the array has just one dimension. Remove always true
7170 parameter. Do not require type compatibility here.
7171 (maybe_fold_offset_to_component_ref): Remove.
7172 (maybe_fold_stmt_indirect): Remove.
7173 (maybe_fold_reference): Remove INDIRECT_REF handling.
7174 Fold back to non-MEM_REF.
7175 (maybe_fold_offset_to_address): Simplify. Deal with type
7177 (maybe_fold_reference): Likewise.
7178 (maybe_fold_stmt_addition): Likewise. Also handle
7179 &ARRAY + I in addition to &ARRAY[0] + I.
7180 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
7181 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
7182 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
7183 * tree-ssa.c (useless_type_conversion_p): Make most pointer
7184 conversions useless.
7185 (warn_uninitialized_var): Handle MEM_REF.
7186 (maybe_rewrite_mem_ref_base): New function.
7187 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
7189 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
7190 INDIRECT_REF handling.
7191 (copy_tree_body_r): Handle MEM_REF.
7192 * gimple.c (is_gimple_addressable): Adjust.
7193 (is_gimple_address): Likewise.
7194 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
7195 invariant base are invariant.
7196 (is_gimple_min_lval): Adjust.
7197 (is_gimple_mem_ref_addr): New function.
7198 (get_base_address): Handle MEM_REF.
7199 (count_ptr_derefs): Likewise.
7200 (get_base_loadstore): Likewise.
7201 * gimple.h (is_gimple_mem_ref_addr): Declare.
7202 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
7203 * tree-cfg.c (verify_address): New function, split out from ...
7204 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
7205 the address operand of MEM_REFs. Verify MEM_REFs. Reject
7207 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
7208 INDIRECT_REF. Allow conversions.
7209 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
7210 a register does not change its size.
7211 (verify_types_in_gimple_reference): Verify MEM_REF.
7212 (verify_gimple_assign_single): Disallow INDIRECT_REF.
7214 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
7216 (mark_address_taken): Handle MEM_REF.
7217 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
7218 (get_asm_expr_operands): Pass opf_not_non_addressable.
7219 (get_expr_operands): Handle opf_[not_]non_addressable.
7220 Handle MEM_REF. Remove INDIRECT_REF handling.
7221 * tree-vrp.c (check_array_ref): Handle MEM_REF.
7222 (search_for_addr_array): Likewise.
7223 (check_array_bounds): Likewise.
7224 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
7225 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
7226 (ref_always_accessed_p): Likewise.
7227 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
7228 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
7230 * cgraphbuild.c (mark_load): Properly check for NULL result
7231 from get_base_address.
7232 (mark_store): Likewise.
7233 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
7234 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
7235 handling for MEM_REF.
7236 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
7237 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
7238 * builtins.c (stabilize_va_list_loc): Use the function ABI
7239 valist type if we couldn't canonicalize the argument type.
7240 Always dereference with the canonical va-list type.
7241 (maybe_emit_free_warning): Handle MEM_REF.
7242 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
7244 * builtins.c (fold_builtin_memory_op): Use ref-all types
7245 for all memcpy foldings.
7246 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
7247 (build_outer_var_ref): Likewise.
7248 (scan_omp_1_op): Likewise.
7249 (lower_rec_input_clauses): Likewise.
7250 (lower_lastprivate_clauses): Likewise.
7251 (lower_reduction_clauses): Likewise.
7252 (lower_copyprivate_clauses): Likewise.
7253 (expand_omp_atomic_pipeline): Likewise.
7254 (expand_omp_atomic_mutex): Likewise.
7255 (create_task_copyfn): Likewise.
7256 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
7257 Remove old union trick. Initialize constant offsets.
7258 (ao_ref_init_from_vn_reference): Likewise. Do not handle
7259 INDIRECT_REF. Init base_alias_set properly.
7260 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
7261 (vn_reference_fold_indirect): Adjust for MEM_REFs.
7262 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
7264 (may_insert): Remove.
7265 (visit_reference_op_load): Do not test may_insert.
7266 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
7267 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
7268 a field to store the constant offset this op applies.
7269 (run_scc_vn): Adjust prototype.
7270 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
7271 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
7272 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
7273 bother about volatile qualifiers on pointers.
7274 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
7275 * tree-ssa-loop-ivopts.c
7276 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
7277 (strip_offset_1): Likewise.
7278 (find_interesting_uses_address): Replace INDIRECT_REF handling with
7280 (get_computation_cost_at): Likewise.
7281 * ipa-pure-const.c (check_op): Handle MEM_REF.
7282 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
7283 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
7285 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
7286 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
7287 (eliminate_local_variables_1): Likewise.
7288 (create_call_for_reduction_1): Likewise.
7289 (create_loads_for_reductions): Likewise.
7290 (create_loads_and_stores_for_name): Likewise.
7291 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
7292 (ssa_accessed_in_tree): Handle MEM_REF.
7293 (ssa_accessed_in_assign_rhs): Likewise.
7294 (update_type_size): Likewise.
7295 (analyze_accesses_for_call_stmt): Likewise.
7296 (analyze_accesses_for_assign_stmt): Likewise.
7297 (transform_access_sites): Likewise.
7298 (transform_allocation_sites): Likewise.
7299 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
7300 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
7301 not handle INDIRECT_REF.
7302 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
7303 (cond_store_replacement): Likewise.
7304 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
7305 MEM_REF, no not handle INDIRECT_REFs.
7306 (insert_into_preds_of_block): Properly initialize avail.
7307 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
7308 for ARRAY_REFs. Properly handle reference lookups that
7309 require a bit re-interpretation.
7310 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
7311 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
7312 (build_ref_for_offset_1): Remove.
7313 (build_ref_for_offset): Build MEM_REFs.
7314 (gate_intra_sra): Disable for now.
7315 (sra_ipa_modify_expr): Handle MEM_REF.
7316 (ipa_early_sra_gate): Disable for now.
7317 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
7319 (disqualify_base_of_expr): Likewise.
7320 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
7322 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
7323 Use mem_ref_offset. Remove bogus folding.
7324 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
7325 (make_fancy_name_1): Add support for MEM_REF.
7326 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
7327 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
7328 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
7329 (compute_complex_ancestor_jump_func): Likewise.
7330 (ipa_analyze_virtual_call_uses): Likewise.
7331 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
7332 INDIRECT_REF folding with more generalized MEM_REF folding.
7333 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
7334 (forward_propagate_addr_into_variable_array_index): Also handle
7335 &ARRAY + I in addition to &ARRAY[0] + I.
7336 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
7337 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
7338 creates assignments with overlap.
7339 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
7340 (get_frame_field): Likewise.
7341 (get_nonlocal_debug_decl): Likewise.
7342 (convert_nonlocal_reference_op): Likewise.
7343 (struct nesting_info): Add mem_refs pointer-set.
7344 (create_nesting_tree): Allocate it.
7345 (convert_local_reference_op): Insert to be folded mem-refs.
7346 (fold_mem_refs): New function.
7347 (finalize_nesting_tree_1): Perform defered folding of mem-refs
7348 (free_nesting_tree): Free the pointer-set.
7349 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
7350 (vectorizable_load): Likewise.
7351 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
7352 (propagate_with_phi): Likewise.
7353 * tree-object-size.c (addr_object_size): Handle MEM_REFs
7354 instead of INDIRECT_REFs.
7355 (compute_object_offset): Handle MEM_REF.
7356 (plus_stmt_object_size): Handle MEM_REF.
7357 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
7359 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
7360 (symbol_marked_for_renaming): Likewise.
7361 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
7362 (fold-const.o): Add $(TREE_FLOW_H).
7363 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
7364 (find_func_clobbers): Likewise.
7365 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
7366 (decompose_access): Likewise.
7367 (replace_field_acc): Likewise.
7368 (replace_field_access_stmt): Likewise.
7369 (insert_new_var_in_stmt): Likewise.
7370 (get_stmt_accesses): Likewise.
7371 (reorg_structs_drive): Disable.
7372 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
7373 (ix86_canonical_va_list_type): Likewise.
7375 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
7378 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
7379 * target.def (struct gcc_target): Replace enum reg_class with
7380 reg_class_t in hook argument / return types.
7381 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
7382 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
7383 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
7384 * targhooks.h (default_branch_target_register_class): Likewise.
7385 (default_ira_cover_classes, default_secondary_reload): Likewise.
7386 (default_memory_move_cost, default_register_move_cost): Likewise.
7387 * targhooks.c (default_branch_target_register_class): Likewise.
7388 (default_ira_cover_classes, default_secondary_reload): Likewise.
7389 (default_memory_move_cost, default_register_move_cost): Likewise.
7390 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
7391 * bt-load.c (branch_target_load_optimize): Likewise.
7392 * ira.c (setup_cover_and_important_classes): Likewise.
7393 * ira-costs.c (copy_cost): Likewise.
7394 * reload1.c (emit_input_reload_insns): Likewise.
7395 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
7396 * config/frv/frv.c (frv_secondary_reload): Likewise.
7397 * config/s390/s390.c (s390_secondary_reload): Likewise.
7398 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
7399 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
7400 (ix86_register_move_cost): Likewise.
7401 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
7402 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
7403 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
7404 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
7405 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
7406 (rs6000_ira_cover_classes): Likewise.
7407 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
7408 * config/picochip/picochip-protos.h (picochip_secondary_reload):
7410 * config/pa/pa.c (pa_secondary_reload): Likewise.
7411 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
7412 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
7413 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
7414 * doc/tm.texi: Regenerate.
7416 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
7419 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
7421 (build_alias_set_optimal_p): Likewise.
7422 (build_base_obj_set_for_drs): Likewise.
7424 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
7426 * target.def: Remove comment about licensing problems of function
7429 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
7430 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
7431 * doc/tm.texi: Regenerate.
7433 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
7434 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
7436 * target.def (enum_va_list_p): Use DEFHOOK.
7437 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
7438 Rename ptype to ptree.
7439 * doc/tm.texi: Regenerate.
7441 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
7442 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
7443 * doc/tm.texi: Regenerate.
7445 * target.def (memory_move_cost): Use DEFHOOK.
7446 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
7447 Rename regclass AKA class to rclass.
7448 * doc/tm.texi: Regenerate.
7450 * target.def (pragma_parse): Use DEFHOOK.
7451 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
7452 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
7453 * doc/tm.texi: Regenerate.
7455 * target.def (pass_by_reference): Use DEFHOOK.
7456 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
7457 * doc/tm.texi: Regenerate.
7459 * target.def (resolve_overloaded_builtin): Rename params to arglist.
7461 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
7462 * doc/tm.texi: Regenerate.
7464 * target.def (return_pops_args): Use DEFHOOK.
7465 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
7466 Rename stack-size to size.
7467 * doc/tm.texi: Regenerate.
7469 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
7470 last-sched_cycle to last_clock, cur_cycle to clock.
7471 * doc/tm.texi.in: Use @hook.
7472 * doc/tm.texi: Regenerate.
7474 * target.def (print_operand, print_operand_address): Update comment.
7475 (print_operand_punct_valid_p): Likewise.
7477 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7479 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
7481 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
7482 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
7484 * regrename.c: Do not include toplev.h. Include rtl-error.h.
7485 * rtl-error.c: Likewise.
7486 * reload.c: Likewise.
7487 * recog.c: Likewise.
7488 * sel-sched.c: Likewise.
7489 * function.c: Likewise.
7490 * reg-stack.c: Likewise.
7491 * cfgrtl.c: Likewise.
7492 * reload1.c: Likewise.
7493 * final.c: Include rtl-error.
7494 * Makefile.in: Adjust dependencies.
7496 2010-06-30 Jan Hubicka <jh@suse.cz>
7498 PR middle-end/PR44706
7499 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
7500 to return the value.
7502 2010-06-30 Michael Matz <matz@suse.de>
7505 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
7506 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
7507 a gimple reg, attach the original VDEF to the last store in the
7510 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
7513 * config/darwin.c (darwin_override_options): Use renamed
7514 targetm.asm_out.emit_unwind_label.
7516 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
7518 PR tree-optimization/39799
7519 * tree-inline.c (remap_ssa_name): Initialize variable only if
7520 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
7522 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
7524 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
7526 2010-06-30 Richard Guenther <rguenther@suse.de>
7529 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
7530 against oscillation with reverse peephole2.
7532 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
7535 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7538 2010-06-30 Nick Clifton <nickc@redhat.com>
7540 * config/rx/rx-modes.def: New file.
7541 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
7542 (CC_REGNUM): Define.
7543 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
7545 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
7546 (SELECT_CC_MODE): Define.
7547 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
7548 (reg:CC CC_REG) instead of (cc0).
7549 (attr "cc"): Delete.
7550 (cbranchsi4): Do not split compare and branch here. Instead move
7552 (cbranchsi4_<code>): ... here. New patterns.
7553 (cmpsi): Call rx-compare_redundant to find out if it is necessary
7554 to emit the compare instruction.
7555 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
7557 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
7558 FIRST_PSEUDO_REGNUM.
7559 (rx_expand_prologue, rx_expand_epilogue): Likewise.
7560 (rx_notice_update_cc): Delete.
7561 (rx_cc_modes_compatible): New function.
7562 (flags_needed_for_conditional): New function.
7563 (flags_from_mode): New function.
7564 (rx_compare_redundant): New function - scans backwards through
7565 insn list to find out if condition flags are already set correctly.
7566 (TARGET_CC_MODES_COMPATIBLE): Define.
7567 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
7569 * config/rx/rx.h (BRANCH_COST): Define.
7570 (REGISTER_MOVE_COST): Define.
7571 * config/rx/predicates (rx_source_operand): Allow all constant types.
7572 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
7573 (tstsi4): New pattern.
7574 * config/rx/rx.c (rx_memory_move_cost): Define.
7575 (TARGET_MEMORY_MOVE_COST): Define.
7577 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7579 * tree.h (block_may_fallthru): Declare here.
7580 * tree-flow.h (block_may_fallthru): Do not declare here.
7581 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
7583 * Makefile.in (c-typeck.o): Update dependencies.
7585 2010-06-30 Jakub Jelinek <jakub@redhat.com>
7588 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
7589 * cselib.c (cfa_base_preserved_regno): New static variable.
7590 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
7591 of REGNO (cfa_base_preserved_val->locs->loc).
7592 (cselib_preserve_cfa_base_value): Add regno argument, set
7593 cfa_base_preserved_regno to it.
7594 (cselib_invalidate_regno): Allow removal of registers other than
7595 cfa_base_preserved_regno from cfa_base_preserved_val.
7596 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
7597 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
7598 of MEM addresses, if not on LHS.
7599 (reverse_op): Don't add reverse ops for cfa_base_rtx.
7600 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
7602 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
7604 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
7606 (peep2_buf_position): New static function.
7607 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
7608 peephole2_optimize): Use it.
7609 (peep2_attempt, peep2_update_life): New static functions, broken out
7610 of peephole2_optimize.
7611 (peep2_fill_buffer): New static function.
7612 (peephole2_optimize): Change the main loop to try to fill the buffer
7613 with the maximum number of insns before matching them against
7614 peepholes. Use a forward scan. Remove special case for targets with
7615 conditional execution.
7616 * genrecog.c (change_state): Delete dead code.
7617 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7618 Rewrite so as not to expect the second insn to have had a peephole
7621 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
7623 * genhooks.c (emit_findices): Cast field precision to int.
7624 (emit_documentation): Likewise.
7626 2010-06-29 Jakub Jelinek <jakub@redhat.com>
7628 PR tree-optimization/43801
7629 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
7630 if old_decl was DECL_ONE_ONLY.
7633 * dwarf2out.c (add_accessibility_attribute): New function.
7634 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
7635 instead of adding DW_AT_accessibility manually.
7636 (gen_enumeration_type_die, gen_struct_or_union_type_die,
7637 gen_typedef_die): Use it.
7639 2010-06-29 Douglas B Rupp <rupp@gnat.com>
7641 * vmsdbgout.c (full_name): Just output the file name if not native.
7643 2010-06-29 Douglas B Rupp <rupp@gnat.com>
7645 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
7646 (funcnam_table): New static table.
7647 (funcnum_table): New static table.
7648 (write_rtnbeg): Write value saved in funcnum_table.
7649 (write_rtnend): Write value saved in funcnum_table.
7650 (vmsdbgout_begin_function): Save current function info in
7651 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
7652 (vmsdbgout_finish): Iterate over funcnum_table.
7654 2010-06-29 Douglas B Rupp <rupp@gnat.com>
7656 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
7657 (vmsdbgout_type_decl): Declare
7658 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
7659 (FUNC_EPILOGUE_LABEL): New macro
7660 (vmsdbgout_begin_epilogue): New function.
7661 (vmsdbgout_type_decl): New function.
7663 2010-06-29 Douglas B Rupp <rupp@gnat.com>
7665 * vmsdbg.h: Update copyright.
7667 2010-06-29 Douglas B Rupp <rupp@gnat.com>
7669 * vmsdbg.h (DST_K_TBG): New DST constant.
7670 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
7671 (write_modbeg): Cast module_language to avoid warning.
7672 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
7674 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
7677 * target.def, doc/tm.texi.in, genhooks.c: New files.
7678 * target.h: Instead of defining individual hook members,
7679 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
7681 * target-def.h: Instead of defining individual hook initializers,
7682 include target-hooks-def.h.
7683 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
7684 targetm.live_on_entry -> targetm.extra_live_on_entry
7685 targetm.sched.md_finish ->targetm.sched.finish
7686 targetm.sched.md_init -> targetm.sched.init
7687 targetm.sched.md_init_global -> targetm.sched.init_global
7688 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
7689 targetm.asm_out.except_table_label ->
7690 targetm.asm_out.emit_except_table_label
7691 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
7692 targetm.target_help -> targetm.help
7693 targetm.vectorize.builtin_support_vector_misalignment ->
7694 targetm.vectorize.support_vector_misalignment
7695 targetm.file_start_app_off -> targetm.asm_file_start_app_off
7696 targetm.file_start_file_directive ->
7697 targetm.asm_file_start_file_directive
7698 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
7699 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
7700 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
7701 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
7702 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
7703 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
7704 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
7705 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
7706 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
7707 * Makefile.in (TARGET_H): Depend on target.def.
7708 (TARGET_DEF_H): Depend on target-hooks-def.h.
7709 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
7710 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
7711 * doc/tm.texi: Regenerate.
7713 * Makefile.in (s-tm-texi): Remove stray tab / rule.
7715 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
7716 (targetm.sched.init): Likewise.
7718 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
7721 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
7722 (function_arg_advance_32): Const-ify TYPE parameter.
7723 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
7724 (ix86_function_arg_advance): Change type of NAMED to bool.
7725 (function_arg_32): Const-ify CUM and TYPE parameters.
7726 (function_arg_64): Likewise. Change type of NAMED to bool.
7727 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
7729 (ix86_function_arg): Change type of NAMED to bool.
7730 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
7731 last argument as a bool.
7733 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
7735 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
7736 (OVERRIDE_OPTIONS): Add note of obsolescence.
7737 Replace references with references to TARGET_OPTION_OVERRIDE.
7738 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
7740 * targhooks.c (default_target_option_override): New function.
7741 * targhooks.h (default_target_option_override): Declare.
7742 * target.h (struct gcc_target): Add override member to
7743 target_option member.
7744 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
7745 targetm.target_option.override call.
7746 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
7747 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
7749 2010-06-29 Jan Hubicka <jh@suse.cz>
7751 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
7753 2010-06-29 Jan Hubicka <jh@suse.cz>
7755 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
7757 (rebuild_frequencies): New function.
7758 * predict.h (rebuild_frequencies): Declare.
7759 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
7760 entry block and edge reaching new_entry.
7761 (tree_function_versioning): When doing partial cloning, rebuild
7762 frequencies when done.
7763 * passes.c (execute_function_todo): Use rebild_frequencies.
7765 2010-06-29 Richard Guenther <rguenther@suse.de>
7767 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
7768 * tree-flow.h (enum noalias_state): Remove.
7769 (struct var_ann_d): Remove noalias_state member.
7771 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
7774 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
7775 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
7776 (maddhidi4): Likewise.
7778 Revert parts of the change for PR25130.
7779 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
7782 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
7784 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
7785 targetm.calls.function_incoming_arg, and
7786 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
7787 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
7788 * target.h (struct gcc_target): Add function_arg_advance,
7789 function_arg, and function_incoming_arg fields.
7790 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
7791 (TARGET_FUNCTION_INCOMING_ARG): Define.
7792 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
7793 and TARGET_FUNCTION_INCOMING_ARG.
7794 * targhooks.h (default_function_arg_advance): Declare.
7795 (default_function_arg, default_function_incoming_arg): Declare.
7796 * targhooks.c (default_function_arg_advance): New function.
7797 (default_function_arg, default_function_incoming_arg): New function.
7798 * config/i386/i386.c (function_arg_advance): Rename to...
7799 (ix86_function_arg_advance): ...this. Make static.
7800 (function_arg): Rename to...
7801 (ix86_function_arg): ...this. Make static.
7802 (TARGET_FUNCTION_ARG_ADVANCE): Define.
7803 (TARGET_FUNCTION_ARG): Define.
7804 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
7805 (FUNCTION_ARG): Delete.
7806 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
7807 (function_arg): Delete prototype.
7809 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
7811 * reginfo.c (init_reg_sets_1): Adjust comments.
7812 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
7813 * calls.c (prepare_call_address): Likewise.
7814 (emit_call_1): Use targetm.calls.return_pops_args.
7815 (expand_call): Likewise.
7816 * function.c (assign_parms): Likewise.
7817 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
7818 * target.h (struct gcc_target) [struct calls]: Add
7819 return_pops_args field.
7820 * targhooks.h (default_return_pops_args): Declare.
7821 * targhooks.c (default_return_pops_args): Define.
7822 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
7823 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
7824 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
7825 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
7827 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
7828 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
7829 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
7830 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
7831 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
7832 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
7833 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
7834 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
7835 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
7836 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
7837 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
7838 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
7839 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
7840 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
7841 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
7842 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
7843 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
7844 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
7845 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
7846 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
7847 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
7848 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
7849 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
7850 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
7851 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
7852 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
7853 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
7854 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
7855 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
7856 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
7857 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
7858 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
7859 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
7860 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
7861 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
7862 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
7863 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
7864 * config/i386/i386.c (ix86_return_pops_args): Make static.
7866 (TARGET_RETURN_POPS_ARGS): Define.
7867 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
7868 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
7869 (TARGET_RETURN_POPS_ARGS): Define.
7870 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
7871 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
7872 (TARGET_RETURN_POPS_ARGS): Define.
7874 2010-06-29 Richard Guenther <rguenther@suse.de>
7877 * tree-inline.c (initialize_inlined_parameters): Make sure
7878 to remap the inlined parameter variable substitutions types.
7880 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
7882 PR rtl-optimization/44659
7883 * combine.c (make_compound_operation) <SUBREG>: Do not return the
7884 result of force_to_mode if it partially re-expanded the compound.
7886 2010-06-28 Jan Hubicka <jh@suse.cz>
7889 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
7892 2010-06-28 Anatoly Sokolov <aesok@post.ru>
7894 * double-int.h (force_fit_type_double): Remove declaration.
7895 * double-int.c (force_fit_type_double): Move to tree.c.
7896 * tree.h (force_fit_type_double): Declare.
7897 * tree.h (force_fit_type_double): Moved from double-int.c. Use
7898 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
7899 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
7900 * convert.c (convert_to_pointer): Adjust call to
7901 force_fit_type_double.
7902 * tree-vrp.c (extract_range_from_assert,
7903 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
7904 * fold-const.c: Update comment.
7905 (int_const_binop, fold_convert_const_int_from_int,
7906 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
7907 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
7908 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
7909 round_up_loc): Adjust call to force_fit_type_double.
7911 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
7913 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
7915 2010-06-28 Martin Jambor <mjambor@suse.cz>
7917 * tree-sra.c (convert_callers): New parameter, change fndecls of
7919 (modify_function): Pass the old decl to convert_callers.
7921 2010-06-28 Martin Jambor <mjambor@suse.cz>
7923 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
7924 ipa_check_create_node_params and ipa_initialize_node_params with
7925 checking asserts they are not necessary.
7927 2010-06-28 Jan Hubicka <jh@suse.cz>
7929 PR tree-optimization/44687
7930 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
7932 2010-06-28 Martin Jambor <mjambor@suse.cz>
7935 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
7936 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
7937 instead of BINFO_BASE_BINFO.
7939 2010-06-28 Michael Matz <matz@suse.de>
7942 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
7943 proper VDEF chain for intermediate stores in the sequence.
7945 2010-06-28 Jan Hubicka <jh@suse.cz>
7947 PR tree-optimization/44357
7948 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
7949 uninlinable functions.
7951 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
7953 * config.gcc (powerpc*-*-*): Handle titan.
7954 * config/rs6000/rs6000.c (titan_cost): New costs.
7955 (rs6000_override_options): Add "titan" to processor_target_table.
7956 Add Titan to branch alignment logic.
7957 Correctly set rs6000_cost for titan.
7958 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
7959 * config/rs6000/titan.md: New file.
7960 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
7962 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
7964 * tree-browser.c (TB_history_stack): Convert to a VEC.
7965 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
7966 (TB_history_prev): Likewise.
7968 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
7970 * vec.h (vec_heap_free): Add parentheses around free.
7972 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
7974 * system.h: Poison GCC_EXCEPT_H for front-end files.
7976 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
7978 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
7979 Define to NULL by default.
7980 * except.h: Define GCC_EXCEPT_H.
7981 (doing_eh): Remove prototype.
7982 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
7983 (lang_protect_cleanup_actions): Remove.
7984 * except.c (lang_protect_cleanup_actions): Remove.
7986 (gen_eh_region): Don't check doing_eh here.
7987 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
7988 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
7989 instead of lang_protect_cleanup_actions.
7990 * omp-low.c (maybe_catch_exception): Likewise.
7991 * Makefile.in: Update dependencies.
7993 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
7995 * cgraph.h (struct varpool_node): new used_from_object_file flag.
7996 (struct cgraph_local_info): new used_from_object_file flag.
7997 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
7998 (cgraph_clone_node): initialize used_from_object_file.
7999 (cgraph_create_virtual_clone): initialize used_from_object_file.
8000 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
8001 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
8002 when compiling with -fwhole-program.
8003 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
8005 * ipa.c (function_and_variable_visibility): Set externally_visible
8006 flag of varpool_node if used_from_object_file flag is set.
8007 (cgraph_externally_visible_p): check used_from_object_file flag.
8008 * doc/invoke.texi (-fwhole-program option): Change description of
8009 externally_visible attribute accordingly.
8010 * doc/extend.texi (externally_visible): Ditto.
8012 2010-06-27 Jan Hubicka <jh@suse.cz>
8014 * params.def (max-inline-insns-auto): Default to 40.
8015 * doc/invoke.texi (max-inline-insns-auto): Document the change.
8017 2010-06-27 Jan Hubicka <jh@suse.cz>
8021 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
8023 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
8024 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
8026 2010-06-27 Anatoly Sokolov <aesok@post.ru>
8028 * target.h (struct gcc_target): Add register_move_cost field.
8029 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
8030 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
8031 * targhooks.c (default_register_move_cost): New function.
8032 * targhooks.h (default_register_move_cost): Declare function.
8033 * defaults.h (REGISTER_MOVE_COST): Delete.
8034 * ira-int.h (ira_register_move_cost): Update comment.
8035 * ira.c (ira_register_move_cost): Update comment.
8036 * reload.h (register_move_cost): Declare.
8037 * reginfo.c (register_move_cost): New function.
8038 (move_cost): Update comment.
8039 (init_move_cost, memory_move_secondary_cost): Replace
8040 REGISTER_MOVE_COST with register_move_cost.
8041 * postreload.c (reload_cse_simplify_set): (Ditto.).
8042 * reload.c (find_valid_class, find_reloads): (Ditto.).
8043 * reload1.c (choose_reload_regs): (Ditto.).
8044 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
8045 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
8046 * doc/md.texi (can_create_pseudo_p): Update documentation.
8048 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
8049 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
8050 * config/i386/i386.h (ix86_memory_move_cost): Make static.
8051 (TARGET_MEMORY_MOVE_COST): Define.
8053 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
8054 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
8055 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
8056 (TARGET_MEMORY_MOVE_COST): Define.
8058 2010-06-27 Richard Guenther <rguenther@suse.de>
8060 PR tree-optimization/44683
8061 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
8062 false edge from the inverted condition.
8064 2010-06-27 Richard Guenther <rguenther@suse.de>
8067 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
8068 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
8069 for register LHS. Or non-store assignments.
8071 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
8073 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
8074 (sparc_emit_set_const64): Likewise. Remove disabled code.
8075 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
8076 (sparc_emit_set_const64): Likewise.
8078 2010-06-26 Catherine Moore <clm@codesourcery.com>
8080 * config/mips/mips.md (alu_type): New attribute.
8081 (type): Infer type from alu_type.
8082 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
8083 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
8084 *subsi3_extended, negsi2, negdi2, *low<mode>,
8085 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
8086 xor<mode>3, *nor<mode>3,
8087 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
8088 *zero_extendhi_truncqi): Set alu_type instead of type.
8090 2010-06-26 Douglas B Rupp <rupp@gnat.com>
8092 * config/alpha/alpha.c (alpha_need_linkage): Adjust
8093 splay_tree_new_ggc call.
8094 (alpha_use_linkage): Likewise.
8096 2010-06-26 Joseph Myers <joseph@codesourcery.com>
8098 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
8099 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
8100 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
8101 (static_specs): Remove switches_need_spaces.
8102 (process_command, do_self_spec): Hardcode handling "-o" instead of
8103 checking switches_need_spaces.
8104 * system.h (SWITCHES_NEED_SPACES): Poison.
8106 2010-06-26 Richard Guenther <rguenther@suse.de>
8108 PR tree-optimization/44393
8109 * tree-loop-distribution.c (generate_loops_for_partition): Fix
8110 stmt removal and VOP renaming.
8111 (generate_memset_zero): Remove redundant stmt updating.
8112 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
8113 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
8115 2010-06-26 Jan Hubicka <jh@suse.cz>
8117 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
8118 edges comming from header are equivalent.
8119 (visit_bb): Handle PHIs correctly.
8120 * tree-inline.c (copy_phis_for_bb): Be able to copy
8121 PHI from entry edge.
8122 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
8124 2010-06-26 Richard Guenther <rguenther@suse.de>
8127 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
8128 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
8130 2010-06-26 Joseph Myers <joseph@codesourcery.com>
8132 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
8133 add_infile, alloc_switch): New.
8134 (process_command): Remove variable lang_n_infiles. Process
8135 options in a single pass. Use new functions for allocating
8136 infiles and switches arrays. Properly skip operands of
8137 -Xpreprocessor and -Xassembler.
8139 2010-06-26 Jan Hubicka <jh@suse.cz>
8142 * cgraphunit.c (cgraph_function_versioning): Remove wrong
8143 cgraph_make_decl_local call; fix typo copying RTL data.
8145 2010-06-25 DJ Delorie <dj@redhat.com>
8147 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
8148 (m32c_output_aligned_common): Likewise.
8149 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
8150 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
8151 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
8152 (m32c_register_pragmas): Register it.
8153 * config/m32c/m32c.c (m32c_get_pragma_address): New.
8154 (m32c_insert_attributes): Set #pragma address decls volatile.
8155 (pragma_entry_eq): New.
8156 (pragma_entry_hash): New.
8157 (m32c_note_pragma_address): New.
8158 (m32c_get_pragma_address): New.
8159 (m32c_output_aligned_common): New.
8160 * doc/extend.texi: Document the new pragma.
8162 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
8164 * config/m32c/predicates.md (m32c_any_operand): Check the code
8165 instead of memory_operand so as to allow matching volatile MEMs.
8166 (m32c_nonimmediate_operand): Likewise.
8167 (mra_operand): Allow volatiles.
8169 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
8172 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
8173 address if the offset is unknown.
8175 2010-06-25 Douglas B Rupp <rupp@gnat.com>
8177 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
8178 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
8179 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
8180 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
8181 to ia64_start_function. Invoke it.
8182 * config/ia64/ia64.c (ia64_start_function): Call new function
8183 dwarf2out_vms_debug_main_pointer.
8185 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
8187 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
8188 statements computing the true predicate.
8190 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
8192 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
8193 to boolean_true_node.
8194 (reset_bb_predicate): New.
8195 (predicate_bbs): Call reset_bb_predicate.
8197 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
8199 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
8200 (tree_if_conversion): Returns true when something has been changed.
8201 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
8204 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
8206 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
8207 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
8208 * tree-if-conv.c: Include dbgcnt.h.
8209 (tree_if_conversion): Use if_conversion_tree to count the number of
8210 if-convertible loops.
8212 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
8214 * common.opt (fprefetch-loop-arrays): Re-define
8215 -fprefetch-loop-arrays as a tri-state option with the initial
8217 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
8218 pass only when flag_prefetch_loop_arrays > 0.
8219 * toplev.c (process_options): Note that, with tri-states,
8220 flag_prefetch_loop_arrays>0 means prefetching is enabled.
8221 * config/i386/i386.c (override_options): Enable prefetching at -O3
8222 for a set of CPUs that sw prefetching is helpful.
8223 (software_prefetching_beneficial_p): New. Return TRUE if software
8224 prefetching is beneficial for the given CPU.
8226 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
8228 PR rtl-optimization/44326
8229 * implicit-zee.c (find_removable_zero_extends): Replace
8230 INSN_P with NONDEBUG_INSN_P.
8232 2010-06-25 Martin Jambor <mjambor@suse.cz>
8234 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
8235 (struct ipa_node_params): Removed the modification_analysis_done flag.
8236 (ipa_is_param_modified): Removed.
8237 (ipa_analyze_node): Declare.
8238 (ipa_compute_jump_functions): Remove declaration.
8239 (ipa_count_arguments): Likewise.
8240 (ipa_detect_param_modifications): Likewise.
8241 (ipa_analyze_params_uses): Likewise.
8242 * ipa-prop.c (struct param_analysis_info): New type.
8243 (visit_store_addr_for_mod_analysis): Removed.
8244 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
8245 moved down in the file.
8246 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
8247 (ipa_count_arguments): Made static.
8248 (mark_modified): New function.
8249 (is_parm_modified_before_call): New function.
8250 (compute_pass_through_member_ptrs): New parameter parms_info, call
8251 is_parm_modified_before_call instead of ipa_is_param_modified.
8252 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
8253 it to compute_pass_through_member_ptrs.
8254 (ipa_compute_jump_functions): New parameter parms_info, pass it to
8255 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
8256 on the callee if it is analyzed. Made static.
8257 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
8258 is_parm_modified_before_call instead of ipa_is_param_modified.
8259 (ipa_analyze_call_uses): New parameter parms_info, pass it to
8260 ipa_analyze_indirect_call_uses.
8261 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
8262 ipa_analyze_call_uses.
8263 (ipa_analyze_params_uses): New parameter parms_info, pass it to
8264 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
8265 (ipa_analyze_node): New function.
8266 (ipa_print_node_params): Do not dump the modified flag.
8267 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
8268 it. Do not stream the modified parameter flag.
8269 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
8270 it. Do not stream the modified parameter flag.
8271 * ipa-cp.c (ipcp_analyze_node): Removed.
8272 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
8273 with only a call to ipa_analyze_node.
8274 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
8275 node with only a call to ipa_analyze_node.
8277 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
8279 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
8281 2010-06-25 Jan Hubicka <jh@suse.cz>
8283 * tree-pass.h (pass_split_functions): Declare.
8284 * opts.c (decode_options): Enable function splitting at -O2
8285 * timevar.def (TV_IPA_FNSPLIT): New macro.
8286 * ipa-split.c: New file.
8287 * common.opt (-fpartial-inlining): New flag.
8288 * Makefile.in (ipa-split.o): New object file.
8289 * passes.c (init_optimization_passes): Add ipa-split.
8290 * params.def (partial-inlining-entry-probability): New parameters.
8291 * doc/invoke.texi (-fpartial-inlining): New.
8293 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
8296 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
8297 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
8298 (gimplify_expr): Likewise.
8300 2010-06-25 Martin Jambor <mjambor@suse.cz>
8302 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
8303 statements instead of bailing out on them.
8304 (ipa_analyze_indirect_call_uses): Do not require that loads from the
8305 parameter are in the same BB as the condition. Update comments.
8307 2010-06-25 Jakub Jelinek <jakub@redhat.com>
8310 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
8311 true or always false, return NULL_TREE.
8312 (tree_unswitch_single_loop): Optimize conditions even when reaching
8313 max-unswitch-level parameter. If num > 0, optimize first all conditions
8314 using entry checks, then do still reachable block discovery and consider
8315 only conditions in still reachable basic blocks in the loop.
8317 PR tree-optimization/44539
8318 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
8319 the call doesn't have LHS, but has VDEF.
8321 2010-06-25 Joseph Myers <joseph@codesourcery.com>
8323 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
8324 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
8325 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
8326 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
8327 * system.h (MODIFY_TARGET_NAME): Poison.
8329 2010-06-25 Alan Modra <amodra@gmail.com>
8331 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
8332 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
8333 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
8334 CMODEL_LARGE as default.
8335 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
8336 (offsettable_ok_by_alignment): Delete.
8337 (rs6000_emit_move): Remove mcmodel=medium optimization.
8339 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
8341 With large parts from Jim Wilson:
8343 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
8344 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
8345 * optabs.c (optab_for_tree_code): Likewise.
8346 (expand_widen_pattern_expr): Likewise.
8347 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
8348 out of execute_optimize_widening_mul.
8349 (convert_plusminus_to_widen): New function.
8350 (execute_optimize_widening_mul): Use the two new functions.
8351 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
8352 Remove code to generate widening multiply-accumulate. Add support
8353 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
8354 * gimple-pretty-print.c (dump_ternary_rhs): New function.
8355 (dump_gimple_assign): Call it when appropriate.
8356 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
8357 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
8358 (expand_gimple_stmt_1): Likewise.
8359 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
8360 WIDEN_MULT_MINUS_EXPR.
8361 * tree-ssa-operands.c (get_expr_operands): Likewise.
8362 * tree-inline.c (estimate_operator_cost): Likewise.
8363 * gimple.c (extract_ops_from_tree_1): Renamed from
8364 extract_ops_from_tree. Add new arg for a third operand; fill it.
8365 (gimple_build_assign_stat): Support operations with three operands.
8366 (gimple_build_assign_with_ops_stat): Likewise.
8367 (gimple_assign_set_rhs_from_tree): Likewise.
8368 (gimple_assign_set_rhs_with_ops_1): Renamed from
8369 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
8370 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
8371 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
8372 WIDEN_MULT_MINUS_EXPR.
8373 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
8374 (extract_ops_from_tree_1): Adjust declaration.
8375 (gimple_assign_set_rhs_with_ops_1): Likewise.
8376 (gimple_build_assign_with_ops): Pass NULL for last operand.
8377 (gimple_build_assign_with_ops3): New macro.
8378 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
8379 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
8381 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
8382 (verify_gimple_assign): Call it.
8383 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
8384 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
8385 functions for dealing with three-operand statements.
8386 * tree.c (commutative_ternary_tree_code): New function.
8387 * tree.h (commutative_ternary_tree_code): Declare it.
8388 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
8390 (gimple_assign_nonzero_warnv_p): Likewise.
8391 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
8392 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
8393 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
8394 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
8395 (struct hashtable_expr): New member ternary in the union.
8396 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
8397 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
8398 (iterative_hash_hashable_expr): Likewise.
8399 (print_expr_hash_elt): Handle EXPR_TERNARY.
8400 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
8401 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
8402 statements. Handle GIMPLE_TERNARY_RHS.
8404 2010-06-25 Jan Hubicka <jh@suse.cz>
8406 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
8408 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
8411 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
8412 parameters are not good.
8413 (c_parser_parameter_declaration): Error unknown type name if the type
8414 name can't start declaration specifiers.
8416 2010-06-25 Joseph Myers <joseph@codesourcery.com>
8418 * gcc.c (translate_options): Don't mention +e in comment.
8419 (process_command): Don't handle +e specially.
8421 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
8423 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
8425 * ira-build.c (merge_hard_reg_conflicts): New function.
8426 (create_cap_allocno, copy_info_to_removed_store_destinations,
8427 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
8428 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
8429 (remove_unnecessary_allocnos, remove_low_level_allocnos)
8430 copy_nifo_to_removed_store_destination): Use them.
8431 * ira-lives.c (make_hard_regno_born): New function, split out of
8433 (make_allocno_born): Likewise.
8434 (make_hard_regno_dead): New function, split out of make_regno_dead.
8435 (make_allocno_dead): Likewise.
8436 (inc_register_pressure): New function, split out of set_allocno_live.
8437 (dec_register_pressure): New function, split out of clear_allocno_live.
8438 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
8439 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
8440 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
8441 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
8442 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
8443 mark_pseudo_regno_live.
8444 (process_bb_node_lives): Use mark_pseudo_regno_live,
8445 make_hard_regno_born and make_allocno_dead.
8446 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
8447 set_allocno_live, clear_allocno_live): Delete functions.
8449 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
8450 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
8452 (ira_flattening): Use ira_parent_allocno.
8453 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
8454 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
8456 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
8459 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
8460 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
8461 minmax_set_iter_cond, minmax_set_iter_next,
8462 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
8463 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
8464 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
8465 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
8468 * ira-int.h (struct live_range, live_range_t): Renamed from struct
8469 ira_allocno_live_range and allocno_live_range_t; all uses changed.
8470 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
8473 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
8475 * thumb2.md (thumb2_tlobits_cbranch): Delete.
8476 (peephole2 to convert zero_extract/compare of single bit to
8477 lshift/compare): New.
8479 2010-06-24 Anatoly Sokolov <aesok@post.ru>
8481 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
8482 recursive call and call to 'int_const_binop'.
8483 (build_range_check, fold_cond_expr_with_comparison, unextend,
8484 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
8485 multiple_of_p): Adjust call to const_binop.
8487 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
8489 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
8490 determine size of XFmode operand.
8491 (XFmode extended DFmode push splitter): Ditto.
8492 (XFmode extended SFmode push splitter): Ditto.
8494 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
8497 * config/i386/i386.md (extract_code): New.
8498 (<u>divmodqi4): Likewise.
8499 (divmodhiqi3): Likewise.
8500 (udivmodhiqi3): Likewise.
8501 (<u>divqi3): Remvoved.
8503 2010-06-24 Jakub Jelinek <jakub@redhat.com>
8506 * recog.h (struct recog_data): Add is_asm field.
8507 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
8508 present in constraints of inline-asm operand and memory operand
8509 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
8510 (extract_insn): Initialize recog_data.is_asm.
8511 * doc/md.texi (Constraints): Document operand side-effect rules.
8513 2010-06-24 Andi Kleen <ak@linux.intel.com>
8515 * c-parser.c (c_parser_conditional_expression): Call
8516 warn_for_omitted_condop.
8517 * doc/invoke.texi: Document omitted condop warning.
8519 2010-06-24 Nick Clifton<nickc@redhat.com>
8521 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
8522 insn in the sequence is a jump insn before setting its label.
8524 2010-06-24 Alan Modra <amodra@gmail.com>
8526 * collect2.c (main): Match exactly --version and --help.
8528 2010-06-24 DJ Delorie <dj@redhat.com>
8530 * config/m32c/m32c-pragma.c: Don't include rtl.h.
8532 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
8534 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
8535 using X87MODEF mode iterator.
8536 (pushsf splitter): Macroize splitter using P mode iterator.
8537 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
8540 (*movxf_internal): Rename from *movxf_integer.
8541 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
8542 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
8543 (*movdf_internal): Rename from *movdf_integer.
8544 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
8545 (*movsf_internal): Rename from *movdf_1.
8547 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
8549 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
8550 (const_gimple_seq_node): Removed typedefs.
8552 * gimple.h (gimple_seq_node_d, gimple_seq_node)
8553 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
8555 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
8557 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
8558 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
8559 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
8560 and CODE_FOR_vec_extract_lo_v4df.
8562 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
8563 Changed to define_insn_and_split.
8564 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
8565 (vec_extract_lo_v16hi): Likewise.
8566 (vec_extract_lo_v32qi): Likewise.
8567 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
8568 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
8570 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
8573 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
8574 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
8575 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
8576 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
8577 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
8580 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
8583 * df-core.c (struct df): Rename to df_d.
8584 * df.h (struct df): Likewise.
8585 * dse.h (struct df): Remove forward declaration.
8586 * recog.h (struct insn_data): Rename to:
8587 (struct_insn_data_d). Adjusted all users.
8589 2010-06-23 Arnaud Charlet <charlet@adacore.com
8592 * doc/install.texi: Update requirements to build GNAT.
8594 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
8596 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
8598 (m68k_sched_attr_opx_type): Remove unreachable return.
8599 (m68k_sched_attr_opy_type): Likewise.
8600 (m68k_sched_attr_size): Likewise.
8601 (sched_get_opxy_mem_type): Likewise.
8602 (m68k_sched_attr_op_mem): Likewise.
8604 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
8606 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
8607 new statement and adjust VDEF only if necessary. Remove superfluous
8608 call to maybe_clean_or_replace_eh_stmt.
8609 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
8611 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
8612 * tree-inline.c (copy_bb): ...and not there.
8614 2010-06-22 Cary Coutant <ccoutant@google.com>
8616 * dwarf2out.c (is_nested_in_subprogram): New function.
8617 (should_move_die_to_comdat): Use it.
8618 (copy_ancestor_tree): Don't mark DIEs here.
8619 (copy_decls_walk): Start walk from root of newly-added tree;
8620 mark DIEs here instead.
8622 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
8624 * config/i386/i386.md (unit): Also check sseishft1.
8626 2010-06-22 Jan Hubicka <jh@suse.cz>
8628 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
8631 2010-06-22 Jan Hubicka <jh@suse.cz>
8633 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
8634 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
8635 Return true if something changed.
8636 * df.h (df_confluence_function_n): Return bool.
8637 * df-core.c (df_worklist_propagate_forward,
8638 df_worklist_propagate_backward): Track changes and ages.
8639 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
8641 * dse.c (dse_confluence_n): Return always true.
8643 2010-06-22 Jan Hubicka <jh@suse.cz>
8645 * bitmap.c (bitmap_clear_bit): Micro optimize.
8647 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
8649 * config/i386/i386.md (SWI1248x): New mode iterator.
8654 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
8655 SWI1248x mode iterator.
8656 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
8657 using SWI124 mode iterator.
8658 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
8660 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
8661 *pushdi2_prologue_rex64 using P mode iterator.
8662 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
8663 using SWI48 mode iterator.
8664 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
8665 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
8666 using SWI1248x mode iterator.
8667 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
8668 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
8669 SWI48 mode iterator.
8670 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
8672 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
8673 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
8674 SWI12 mode iterator.
8675 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
8676 SWI12 mode iterator.
8677 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
8678 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
8679 SWI24 mode iterator.
8680 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
8681 SWI48 mode iterator.
8682 (mov<mode>_insn_1): New expander.
8683 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
8684 using SWI48x mode iterator.
8686 (*movoi_internal_avx): Rename from *movoi_internal.
8687 (*movti_internal_rex64): Rename from *movti_rex64.
8688 (*movti_internal_sse): Rename from *movti_sse.
8689 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
8690 (*movdi_internal): Rename from *movdi_2.
8691 (*movsi_internal): Rename from *movsi_1.
8692 (*movhi_internal): Rename from *movhi_1.
8693 (*movqi_internal): Rename from *movqi_1.
8695 (insv): Update the call to gen_movsi_insv_1 for rename.
8696 * config/i386/i386.c (promote_duplicated_reg): Ditto.
8698 2010-06-22 Jan Hubicka <jh@suse.cz>
8700 * passes.c (execute_function_todo): Move call of statistics_fini_pass
8702 (execute_todo) ... this one.
8704 2010-06-22 Alan Modra <amodra@gmail.com>
8707 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
8708 * caller-save.c (insert_restore, insert_save): Use non-validate
8709 form of adjust_address.
8711 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8714 * config/pa/pa.c (override_options): Disable
8715 -freorder-blocks-and-partition.
8717 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
8720 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
8722 * config/i386/i386.md (type): Add sseishft1
8724 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
8725 (ppro_insn_load): Likewise.
8726 (ppro_insn_store): Likewise.
8727 (ppro_insn_both): Likewise.
8729 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
8730 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
8732 (*vec_extractv2di_1_avx): Likewise.
8733 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
8734 type. Remove atom_unit.
8735 (*vec_extractv2di_1_sse2): Likewise.
8737 2010-06-21 DJ Delorie <dj@redhat.com>
8739 * diagnostic.h (diagnostic_classification_change_t): New.
8740 (diagnostic_context): Add history and push/pop list.
8741 (diagnostic_push_diagnostics): Declare.
8742 (diagnostic_pop_diagnostics): Declare.
8743 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
8744 from pragmas in a history chain instead of the global table.
8745 (diagnostic_push_diagnostics): New.
8746 (diagnostic_pop_diagnostics): New.
8747 (diagnostic_report_diagnostic): Scan history chain to find state
8748 of diagnostics as of the diagnostic location.
8749 * opts.c (set_option): Pass UNKNOWN_LOCATION to
8750 diagnostic_classify_diagnostic.
8751 (enable_warning_as_error): Likewise.
8752 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
8753 use in the history chain.
8754 * doc/extend.texi: Document pragma GCC diagnostic changes.
8756 2010-06-21 Jakub Jelinek <jakub@redhat.com>
8758 * dwarf2out.c (add_linkage_name): New function. Don't add
8759 anything to DW_TAG_member DIEs.
8760 (add_name_and_src_coords_attributes): Use it.
8761 (gen_variable_die): Call it for C++ static data members if
8762 specification is DW_TAG_member.
8764 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
8765 C++ char16_t and char32_t.
8767 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
8768 * genattrtab.c: Include vecprim.h.
8769 (cached_attrs, cached_attr_count, attrs_seen_once,
8770 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
8771 attrs_cached_after): New variables.
8772 (find_attrs_to_cache): New function.
8773 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
8774 (write_test_expr): Add attrs_cached argument, return it too,
8775 attempt to cache non-const attributes used more than once in
8776 a single case handling.
8777 (write_attr_get): Use find_attrs_to_cache, for caching candidates
8778 emit cached_* variables. Adjust write_attr_set callers.
8779 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
8780 to find attributes that should be cached in this block. Adjust
8781 write_test_expr callers.
8782 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
8784 (make_automaton_attrs): Adjust write_test_expr caller.
8786 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
8787 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
8788 (make_automaton_attrs): If find_tune_attr returns non-NULL,
8789 write separate internal_dfa_insn_code_* and insn_default_latency_*
8790 functions for each attribute's value and emit init_sched_attrs
8791 function and function pointers.
8792 * genattr.c (const_attrs, reservations): New variables.
8793 (gen_attr): Add const attributes to const_attrs vector.
8794 (check_tune_attr, find_tune_attr): New functions.
8795 (main): Add reservations to reservations vector. If find_tune_attr
8796 returns true, add prototype for init_sched_attrs and make
8797 internal_dfa_insn_code and insn_default_latency function pointers,
8798 otherwise define init_sched_attrs as dummy macro.
8799 * cfgexpand.c: Include insn-attr.h.
8800 (gimple_expand_cfg): Call init_sched_attrs.
8802 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
8805 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
8806 va_arg from a set of register save slots into a temporary,
8807 if the container is bigger than type size, do the copying
8808 using smaller mode or using memcpy.
8811 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
8813 (sel_print_to_dot): Remove macro.
8814 (sel_print): Likewise. New prototype.
8815 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
8816 (sel_print): New function.
8818 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8820 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
8821 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
8823 2010-06-21 Nick Clifton <nickc@redhat.com>
8825 * config/rx/rx.h (PTRDIFF_TYPE): Define.
8826 (SMALL_REGISTER_CLASS): Define (to zero).
8827 (PRINT_OPERAND): Delete.
8828 (PRINT_OPERAND_ADDRESS): Delete.
8829 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
8830 (rx_print_operand_address): Delete prototype.
8831 * config/rx/rx.c (rx_print_operand): Make static.
8832 Allow %H and %L to handle CONST_DOUBLEs.
8833 (rx_print_operand_address): Make static.
8834 (rx_gen_move_template): Rename local variable 'template' to
8836 (rx_function_arg): Do not pass unknown sized objects in registers.
8837 (TARGET_PRINT_OPERAND): Define.
8838 (TARGET_PRINT_OPERAND_ADDRESS): Define.
8840 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8842 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
8844 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
8846 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
8847 stack-alignment for simple leaf-functions.
8849 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
8851 * doc/install.texi: Document bootstrap-lto.
8853 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
8856 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
8857 (input_function): Drop them here, if VTA is disabled.
8859 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
8862 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
8864 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
8865 ix86_swapped_fp_comparsion_operator instead of
8866 ix86_fp_comparison_operator.
8868 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
8869 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
8870 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
8871 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
8872 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
8873 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
8875 2010-06-20 Joseph Myers <joseph@codesourcery.com>
8878 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
8879 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
8880 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
8881 (decode_cmdline_option): Update for this return value. Set
8882 orig_option_with_args_text field. Set arg field for unknown
8883 options. Make static.
8884 (decode_cmdline_options_to_array): New.
8885 (prune_options): Update handling of find_opt return value.
8886 * opts.c (read_cmdline_option): Take decoded option. Return void.
8887 (read_cmdline_options): Take decoded options.
8888 (decode_options): Add parameters for decoded options. Use
8889 decode_cmdline_options_to_array. Use decoded options for -O
8890 scan. Use integral_argument for -O parameters. Update call to
8891 read_cmdline_options.
8892 (enable_warning_as_error): Update handling of find_opt return value.
8893 * opts.h: Update comment on unknown options.
8894 (struct cl_decoded_option): Update comments on opt_index and arg.
8895 Add orig_option_with_args_text.
8896 (decode_cmdline_option): Remove.
8897 (decode_cmdline_options_to_array): Declare.
8898 (decode_options): Update prototype.
8899 * toplev.c (save_argv): Remove.
8900 (save_decoded_options, save_decoded_options_count): New.
8901 (read_integral_parameter): Remove.
8902 (print_switch_values): Use decoded options.
8903 (toplev_main): Don't set save_argv. Update call to decode_options.
8904 * toplev.h (read_integral_parameter): Remove.
8905 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
8907 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
8910 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
8912 * constraints.md (Pw, Px): New constraints.
8913 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
8915 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
8917 * config/i386/sse.md (fma4modesuffixf4): Removed.
8918 (ssemodesuffixf2s): Likewise.
8919 (ssemodesuffixf4): Likewise.
8920 (ssemodesuffixf2c): Likewise.
8921 (ssescalarmodesuffix2s): Likewise.
8922 (avxmodesuffixf2c): Likewise.
8923 (ssemodesuffix): New.
8924 (ssescalarmodesuffix): Likewise.
8925 Update patterns with ssemodesuffix and ssescalarmodesuffix.
8927 2010-06-19 Philip Herron <herron.philip@googlemail.com>
8929 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
8931 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
8933 * stor-layout.c (debug_rli): Remove unused local variables.
8935 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
8937 PR rtl-optimization/40900
8938 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
8939 original expression for later reuse.
8940 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
8941 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
8943 2010-06-18 Anatoly Sokolov <aesok@post.ru>
8945 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
8946 double_int_fits_in_uhwi_p): Implement as static inline.
8947 (double_int_xor): New inline function.
8948 (double_int_lrotate, double_int_rrotate, double_int_max,
8949 double_int_umax, double_int_smax, double_int_min, double_int_umin,
8950 double_int_smin): Declare.
8951 (lrotate_double, rrotate_double): Remove declaration.
8952 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
8953 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
8954 (double_int_lrotate, double_int_rrotate, double_int_max,
8955 double_int_umax, double_int_smax, double_int_min, double_int_umin,
8956 double_int_smin): New function.
8957 * fold-const.c (int_const_binop): Clean up, use double_int_*
8959 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
8960 double_int_* and immed_double_int_const functions.
8962 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
8964 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
8965 * function.c (types_used_by_cur_var_decl): Likewise.
8966 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
8968 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
8970 * tree.h (record_layout_info): Change type of pending_statics field
8972 * stor-layout.c (start_record_layout): Store NULL into
8974 (debug_rli): Call debug_vec_tree instead of debug_tree.
8975 (place_field): Likewise.
8976 (finish_record_layout): Likewise.
8978 2010-06-18 Alan Modra <amodra@gmail.com>
8980 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
8982 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8985 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
8986 for SET source operand from SET destination operand.
8988 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
8990 PR rtl-optimization/39871
8991 * reload1.c (init_eliminable_invariants): For flag_pic, disable
8992 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
8993 (function_invariant_p): Rule out a plus of frame or arg pointer with
8995 * ira.c (find_reg_equiv_invariant_const): Likewise.
8997 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
8999 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
9000 print_operand_address and puts to output the operand for CONST.
9002 2010-06-17 Jakub Jelinek <jakub@redhat.com>
9005 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
9008 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
9010 * v850-protos.h (print_operand): Delete.
9011 (print_operand_address): Delete.
9012 * v850.h (PRINT_OPERAND): Delete.
9013 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9014 (PRINT_OPERAND_ADDRESS): Delete.
9015 * v850.c (print_operand_address): Rename to...
9016 (v850_print_operand_address): ...this. Make static. Call
9018 (print_operand): Rename to...
9019 (v850_print_operand): ...this. Make static. Call
9020 v850_print_operand_address.
9021 (v850_print_operand_punct_valid_p): New function.
9022 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9023 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9025 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
9027 * config/sh/sh-protos.h (print_operand): Delete.
9028 (print_operand_address): Delete.
9029 * config/sh/sh.h (PRINT_OPERAND): Delete.
9030 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9031 (PRINT_OPERAND_ADDRESS): Delete.
9032 * config/sh/sh.c (sh_print_operand_address): Make static.
9033 (sh_print_operand): Make static. Call sh_print_operand_address
9034 and sh_print_operand.
9035 (sh_print_operand_punct_valid_p): New function.
9036 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9037 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9039 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
9041 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
9042 (mcore_print_operand_address): Delete.
9043 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
9044 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9045 (PRINT_OPERAND_ADDRESS): Delete.
9046 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
9047 (mcore_print_operand): Make static.
9048 (mcore_print_operand_punct_valid_p): New function.
9049 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
9050 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9052 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
9054 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
9055 (print_operand_address): Delete.
9056 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
9057 (PRINT_OPERAND_ADDRESS): Delete.
9058 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
9060 (m68hc11_print_operand): Make static.
9061 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9063 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
9065 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
9066 (m32r_print_operand_address): Delete.
9067 * config/m32r/m32r.h (m32r_punct_chars): Delete.
9068 (PRINT_OPERAND): Delete.
9069 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9070 (PRINT_OPERAND_ADDRESS): Delete.
9071 * config/m32r/m32r.c (m32r_punct_chars): Make static.
9072 (m32r_print_operand_address): Make static.
9073 (m32r_print_operand): Make static.
9074 (m32r_print_operand_punct_valid_p): New function.
9075 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9076 (TARGET_PRINT_OPERAND_ADDRESS): Define.
9078 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
9080 * config/iq2000/iq2000-protos.h (print_operand): Delete.
9081 (print_operand_address): Delete.
9082 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
9083 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9084 (PRINT_OPERAND_ADDRESS): Delete.
9085 (iq2000_print_operand_punct): Delete.
9086 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
9087 (iq2000_print_operand_address): Make static.
9088 (iq2000_print_operand): Make static.
9089 (iq2000_print_operand_punct_valid_p): New function.
9090 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9091 (TARGET_PRINT_OPERAND_ADDRESS): Define.
9093 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
9095 * config/frv/frv-protos.h (frv_print_operand): Delete.
9096 (frv_print_operand_address): Delete.
9097 * config/frv/frv.h (PRINT_OPERAND): Delete.
9098 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9099 (PRINT_OPERAND_ADDRESS): Delete.
9100 * config/frv/frv.c (frv_print_operand_address): Make static.
9101 (frv_print_operand): Make static.
9102 (frv_print_operand_punct_valid_p): New function.
9103 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9104 (TARGET_PRINT_OPERAND_ADDRESS): Define.
9106 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
9108 * tree.h (vec_member): Declare.
9109 * tree.c (vec_member): Define.
9111 2010-06-17 Richard Guenther <rguenther@suse.de>
9113 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
9114 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
9116 2010-06-17 Richard Guenther <rguenther@suse.de>
9118 * tree-inline.c (declare_return_variable): Remove bogus code.
9120 2010-06-17 Richard Guenther <rguenther@suse.de>
9122 * gimplify.c (gimplify_bind_expr): Always promote complex
9123 and vector variables to registers if possible.
9125 2010-06-17 Richard Guenther <rguenther@suse.de>
9127 * expr.c (get_inner_reference): Use double_int for bit_offset
9130 2010-06-16 DJ Delorie <dj@redhat.com>
9132 * common.opt (-fstrict-volatile-bitfields): new.
9133 * doc/invoke.texi: Document it.
9134 * fold-const.c (optimize_bit_field_compare): For volatile
9135 bitfields, use the field's type to determine the mode, not the
9137 * expr.c (expand_assignment): Likewise.
9138 (get_inner_reference): Likewise.
9139 (expand_expr_real_1): Likewise.
9140 * expmed.c (store_fixed_bit_field): Likewise.
9141 (extract_bit_field_1): Likewise.
9142 (extract_fixed_bit_field): Likewise.
9144 2010-06-16 Richard Guenther <rguenther@suse.de>
9146 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
9148 2010-06-16 Douglas B Rupp <rupp@gnat.com>
9150 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
9151 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
9152 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
9153 * debug.c: Likewise.
9154 * sdbout.c: Likewise.
9155 * vmsdbgout.c: Likewise.
9156 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
9157 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
9158 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
9159 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
9160 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
9161 * dwarf2out.c (dw_fde_struct): New fields
9162 dw_fde_vms_{end,begin}_prologue.
9163 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
9164 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
9165 (dwarf2out_vms_end_prologue): New function.
9166 (dwarf2out_vms_begin_epilogue): New function.
9167 (dw_val_struct): New value dw_val_class_vms_delta.
9168 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
9169 begin_epilogue for VMS.
9170 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
9171 new static functions.
9172 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
9173 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
9175 (print_die): New case dw_val_class_vms_delta.
9176 (attr_checksum): Likewise.
9177 (same_dw_val_p: Likewise.
9178 (size_of_die): Likewise.
9179 (value_format): Likewise.
9180 (output_die): Likewise.
9181 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
9182 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
9183 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
9184 dwarf2out_cfi_begin_epilogue
9185 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
9187 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
9189 * config/cris/cris-protos.h (cris_print_operand): Delete.
9190 (cris_print_operand_address): Delete.
9191 * config/cris/cris.h (PRINT_OPERAND): Delete.
9192 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9193 (PRINT_OPERAND_ADDRESS): Delete.
9194 * config/cris/cris.c (cris_print_operand_address): Make static.
9195 (cris_print_operand): Make static.
9196 (cris_print_operand_punct_valid_p): New function.
9197 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9198 (TARGET_PRINT_OPERAND_ADDRESS): Define.
9200 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
9202 * config/arm/arm-protos.h (arm_print_operand): Delete.
9203 (arm_print_operand_address): Delete.
9204 * config/arm/arm.h (PRINT_OPERAND): Delete.
9205 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9206 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
9207 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
9208 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
9209 (arm_print_operand): Make static.
9210 (arm_print_operand_punct_valid_p): New function.
9211 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9212 (TARGET_PRINT_OPERAND_ADDRESS): Define.
9214 2010-06-16 Nick Clifton <nickc@redhat.com>
9216 * config/rx/constraints.md (NEGint4): New constraint.
9217 * config/rx/rx.md (attr cc): Add set_zsc.
9218 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
9221 (call_internal): Clobber the cc0 register.
9222 (call_value_internal): Likewise.
9223 (cstoresi4): Likewise.
9224 (movsieq): Likewise.
9225 (movsine): Likewise.
9226 (addsi3): Add alternative to handle small negative constants.
9228 (addsi3): Do not set the O bit in the cc0 register.
9232 (andsi3): Reorder alternatives to prefer shorter forms.
9235 (negsi2): Note that the cc0 flags are set.
9236 (rotlsi3): Note that only the Z and S bits are set in cc0.
9237 (lshrsi3): Likewise.
9238 (ashlsi3): Likewise.
9239 (subsf3): Use %Q for the MEM operand.
9240 (fix_truncsfsi2): Likewise.
9241 (floatsisf2): Likewise.
9242 (bitset): Remove early clobber from destination.
9243 (bitset_in_memory): Likewise.
9244 (lrintsf2): Clobber the cc0 register.
9245 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
9246 (rx_print_operand): Handle %N.
9248 2010-06-16 Jan Hubicka <jh@suse.cz>
9250 * df-core.c (df_compact_blocks): Free problem_temps vector.
9252 2010-06-16 Martin Jambor <mjambor@suse.cz>
9254 PR tree-optimization/43905
9255 * tree-sra.c: Include tree-inline.h.
9256 (create_abstract_origin): Removed.
9257 (modify_function): Version the call graph node instead of creating
9258 abstract origins and dealing with same_body aliases.
9259 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
9260 function is versionable.
9261 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
9263 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
9265 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
9266 (CHOOSE_DYNAMIC_LINKER): Update.
9268 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
9270 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
9271 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
9272 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
9273 *prefetch_3dnow_rex.
9275 2010-06-15 Anatoly Sokolov <aesok@post.ru>
9277 * target.h (struct asm_out):Add declare_constant_name field.
9278 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
9279 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
9280 * output.h (default_asm_declare_constant_name): Declare.
9281 (assemble_label): Update prototype.
9282 * varasm.c (assemble_constant_contents): Use
9283 targetm.asm_out.declare_constant_name target hook.
9284 (assemble_label): Add 'file' argument.
9285 (default_asm_declare_constant_name): New function.
9286 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
9287 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
9288 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
9290 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
9291 * config/darwin.c (darwin_asm_declare_constant_name): New function.
9292 (machopic_output_indirection): Update assemble_label argument list.
9293 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
9294 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
9296 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
9299 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
9300 size_one_node for pointer types. Do not call gmp_cst_to_tree.
9302 2010-06-15 Richard Guenther <rguenther@suse.de>
9304 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
9306 2010-06-15 Paul Brook <paul@codesourcery.com>
9308 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
9311 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
9313 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
9314 don't get a vector type for output.
9316 2010-06-15 Jakub Jelinek <jakub@redhat.com>
9319 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
9320 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
9321 (LANG_HOOKS_DECLS): Add it.
9322 * gimplify.c (omp_notice_variable): Call
9323 lang_hooks.decls.omp_report_decl.
9325 2010-06-15 Martin Jambor <mjambor@suse.cz>
9328 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
9329 on the newly dead SSA name.
9331 2010-06-15 Alan Modra <amodra@gmail.com>
9333 * doc/invoke.texi: Add mcmodel to powerpc options.
9334 * configure.ac: Add HAVE_LD_LARGE_TOC test.
9335 * configure: Regenerate.
9336 * config.in: Regenerate.
9337 * config/rs6000/linux64.opt (mcmodel): New.
9338 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
9339 (TARGET_CMODEL, SET_CMODEL): Define.
9340 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
9341 select CMODEL_MEDIUM default.
9342 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
9343 (TARGET_CMODEL): Define default.
9344 * config/rs6000/rs6000.c (cmodel): New variable.
9345 (rs6000_explicit_options): Add cmodel field.
9346 (rs6000_handle_option): Handle -mcmodel.
9347 (create_TOC_reference): Add largetoc_reg param. Generate high,
9348 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
9349 (rs6000_delegitimize_address): Recognise new toc reference rtl
9350 and minimal-toc rtl.
9351 (rs6000_legitimize_reload_address): Handle new toc references.
9352 (print_operand_address): Handle legitimate_constant_pool_address_p
9353 match before lo_sum.
9354 (rs6000_eliminate_indexed_memrefs): Tidy.
9355 (rs6000_emit_move): Tweak threshold for inlining constants.
9356 Keep rs6000_emit_allocate_stack large stack frame offsets
9357 loaded into r0 inline.
9358 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
9359 (tocrel_base, tocrel_offset): New variables.
9360 (toc_relative_expr_p): Set them here.
9361 (print_operand_address): Skip over any offset on constant pool address.
9362 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
9363 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
9364 (offsettable_ok_by_alignment): New function.
9365 (rs6000_emit_move): Address suitably aligned local symbol_refs
9366 relative to the toc pointer for -mcmodel=medium.
9367 (legitimate_constant_pool_address_p): Make param const_rtx. Add
9368 strict param. Allow lo_sum version of addressing. Verify reg
9369 used for -mminimal-toc and -mcmodel != small. Update all callers.
9370 * config/rs6000/constraints.md: Update for above change.
9371 * config/rs6000/predicates.md: Likewise.
9372 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
9374 (tls_gd): Split for -mcmodel=medium/large.
9375 (tls_gd_high, tls_gd_low): New.
9376 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
9377 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
9378 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
9379 (largetoc_high, largetoc_low): New.
9380 (cmptf_internal2): Add clobber.
9381 * config/rs6000/rs6000-protos.h: Update.
9383 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
9385 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
9386 true if no prefetch is going to be generated for a given group.
9387 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
9388 estimate the prefetch_count.
9389 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
9390 prefetch count by considering the unroll_factor and prefetch_mod
9391 for is_loop_prefetching_profitable.
9393 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
9395 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
9396 anything if the argument is not a MEM.
9398 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
9403 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
9405 (canonicalize_loop_ivs): Likewise.
9407 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
9410 * haifa-sched.c (setup_insn_reg_pressure_info,
9411 update_register_pressure): Reject debug insns.
9412 (ready_sort): Don't setup reg pressure for debug insns.
9413 (schedule_insn): Don't update reg pressure for debug insns.
9415 2010-06-14 Richard Guenther <rguenther@suse.de>
9417 * lto-streamer.c (cached_bp): Remove.
9418 (bitpack_delete): Likewise.
9419 (bitpack_create): Likewise.
9420 (bp_get_next_word): Likewise.
9421 (bp_pack_value, bp_unpack_value): Move ...
9422 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
9424 (struct bitpack_d): Likewise.
9425 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
9426 New inline functions.
9427 * lto-streamer-out.c (lto_output_bitpack): Remove.
9428 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
9429 (pack_value_fields): Adjust.
9430 (lto_write_tree): Likewise.
9431 (output_gimple_stmt): Likewise.
9432 (output_function): Likewise.
9433 * lto-streamer-in.c (input_gimple_stmt): Adjust.
9434 (input_function): Likewise.
9435 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
9436 (lto_input_bitpack): Remove.
9437 (lto_materialize_tree): Adjust.
9438 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
9439 * lto-cgraph.c (lto_output_edge): Adjust.
9440 (lto_output_node): Likewise.
9441 (lto_output_varpool_node): Likewise.
9442 (lto_output_ref): Likewise.
9443 (input_node): Likewise.
9444 (input_varpool_node): Likewise.
9445 (input_ref): Likewise.
9446 (input_edge): Likewise.
9447 (output_node_opt_summary): Likewise.
9448 (input_node_opt_summary): Likewise.
9449 * ipa-pure-const.c (pure_const_write_summary): Likewise.
9450 (pure_const_read_summary): Likewise.
9451 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
9452 (ipa_read_indirect_edge_info): Likewise.
9453 (ipa_write_node_info): Likewise.
9454 (ipa_read_node_info): Likewise.
9456 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
9459 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
9460 (vec_extract_lo_v16hi): Likewise.
9461 (vec_extract_lo_v32qi): Likewise.
9463 2010-06-14 Jakub Jelinek <jakub@redhat.com>
9466 * tree.h (build_call_expr): Don't define as vararg macro, instead
9468 * builtins.c (build_call_nofold): Remove.
9469 (expand_builtin_int_roundingfn, expand_builtin_pow,
9470 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
9471 expand_builtin_memset_args, expand_builtin_strcmp,
9472 expand_builtin_strncmp, expand_builtin_memory_chk): Use
9473 build_call_nofold_loc instead of build_call_nofold.
9474 (build_call_expr): New function.
9476 PR tree-optimization/44508
9477 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
9478 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
9479 don't eliminate trivially dead stmts.
9480 * tree-vrp.c (vrp_finalize): Pass false as last argument
9481 to substitute_and_fold.
9482 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
9483 to substitute_and_fold.
9484 * tree-ssa-ccp.c (ccp_finalize): Likewise.
9487 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
9489 2010-06-14 Ira Rosen <irar@il.ibm.com>
9491 PR tree-optimization/44507
9492 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
9493 to build initial vector for BIT_AND_EXPR.
9494 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
9496 2010-06-14 Jakub Jelinek <jakub@redhat.com>
9498 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
9499 adjust z10prop set_attr.
9501 2010-06-13 Jan Hubicka <jh@suse.cz>
9503 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
9504 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
9505 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
9506 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
9507 datastructure checks into checking asserts.
9508 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
9509 * tree-ssa-sccvn.c (VN_INFO): Likewise.
9510 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
9511 df_ref_create_structure): Likewise.
9512 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
9513 pool_free): Use gcc_checking_assert.
9514 * alias.c (get_alias_set): Likewise.
9515 * var-tracking.c (variable_htab_free, shared_hash_copy,
9516 canonicalize_values_mark, variable_merge_over_cur): Likewise.
9517 * lto-streamer.c (bp_unpack_value): Likewise.
9519 2010-06-13 Richard Guenther <rguenther@suse.de>
9521 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
9522 Do not stream but initialize TYPE_CANONICAL to NULL.
9523 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
9524 * gimple.c (gimple_types_compatible_p): Disregard
9525 TYPE_STRUCTURAL_EQUALITY_P.
9526 (gimple_register_type): Use TYPE_CANONICAL as cache.
9527 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
9528 before registering common types.
9529 * config/i386/i386.c (ix86_function_arg_boundary): Do not
9530 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
9531 * tree.h (TYPE_CANONICAL): Clarify documentation.
9533 2010-06-13 Anatoly Sokolov <aesok@post.ru>
9535 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9536 LIBCALL_VALUE): Remove macros.
9537 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
9538 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9539 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9540 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
9541 (ia64_function_value): Make static. Handle receiving the function
9542 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
9544 2010-06-12 Jan Hubicka <jh@suse.cz>
9546 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
9549 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
9551 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
9553 2010-06-12 Jan Hubicka <jh@suse.cz>
9555 * df-core.c (df_clear_bb_info): New function.
9556 (df_set_blocks): bb_info is always allocated.
9557 (df_get_bb_info): Use block_info_elt_size.
9558 (df_set_bb_info): Likewise.
9559 (df_compact_blocks): Update for new block_info.
9560 (grow_bb_info): New function.
9561 * df-problems.c (df_grow_bb_info): Move to df-core.c
9562 (df_rd_set_bb_info): Remove.
9563 (df_rd_free_bb_info): Do not free block pool.
9564 (df_rd_alloc): Do not create pool, use check for
9565 obstack presence instead of NULL pointer for new blocks.
9566 (df_rd_free): DO not free alloc pool; clear block_info.
9567 (problem_RD): Add size of block info structure.
9568 (df_lr_set_bb_info): Remove.
9569 (df_lr_free_bb_info): Do not free block pool.
9570 (df_lr_alloc): Do not create pool, use check for
9571 obstack presence instead of NULL pointer for new blocks.
9572 (df_lr_free): DO not free alloc pool; clear block_info.
9573 (problem_LR): Add size of block info structure.
9574 (df_live_set_bb_info): Remove.
9575 (df_live_free_bb_info): Do not free block pool.
9576 (df_live_alloc): Do not create pool, use check for
9577 obstack presence instead of NULL pointer for new blocks.
9578 (df_live_free): DO not free alloc pool; clear block_info.
9579 (problem_LIVE): Add size of block info structure.
9580 (problem_CHAIN): Add size of block info structure.
9581 (df_byte_lr_set_bb_info): Remove.
9582 (df_byte_lr_free_bb_info): Do not free block pool.
9583 (df_byte_lr_alloc): Do not create pool, use check for
9584 obstack presence instead of NULL pointer for new blocks.
9585 (df_byte_lr_free): DO not free alloc pool; clear block_info.
9586 (problem_BYTE_LR): Add size of block info structure.
9587 (problem_NOTE): Add size of block info structure.
9588 (df_byte_MD_set_bb_info): Remove.
9589 (df_byte_MD_free_bb_info): Do not free block pool.
9590 (df_byte_MD_alloc): Do not create pool, use check for
9591 obstack presence instead of NULL pointer for new blocks.
9592 (df_byte_MD_free): DO not free alloc pool; clear block_info.
9593 (problem_BD): Add size of block info structure.
9594 * df-scan.c (df_scan_free_internal): Free block pool.
9595 (df_scan_set_bb_info): Remove.
9596 (df_scan_free_bb_info): Check for artificial_defs instead
9597 of bb_info being non-NULL.
9598 (df_scan_alloc): DO not create df_scan_block pool.
9599 (problem_SCAN): Set size of block info.
9600 (df_bb_refs_record): Do not allocate bb_info.
9601 * df.h (df_problem): Add block_info_elt_size.
9602 (struct dataflow): Change block_info to void *.
9603 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
9604 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
9607 2010-06-12 Jan Hubicka <jh@suse.cz>
9609 PR tree-optimize/44485
9610 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
9611 containing use of return value of noreturn function.
9613 2010-06-12 Anatoly Sokolov <aesok@post.ru>
9615 * targhooks.c (default_function_value): Don't use
9616 FUNCTION_OUTGOING_VALUE.
9617 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
9618 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
9620 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
9622 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
9623 Add crtfastmath.o to extra_parts.
9624 * config/mips/crtfastmath.c: New.
9625 * config/mips/linux.h (ENDFILE_SPEC): New.
9627 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
9629 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
9630 old_type in parameter.
9631 (gcc_type_for_value): Update call to gcc_type_for_interval.
9632 (compute_type_for_level_1): Renamed compute_type_for_level.
9633 Update call to gcc_type_for_interval.
9635 2010-06-11 Joseph Myers <joseph@codesourcery.com>
9637 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
9638 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
9640 2010-06-11 Joseph Myers <joseph@codesourcery.com>
9642 * opts-common.c: Include options.h.
9643 (integral_argument): Move from opts.c.
9644 (decode_cmdline_option): New. Based on read_cmdline_option.
9645 * opts.c (integral_argument): Move to opts-common.c.
9646 (read_cmdline_option): Move most contents to
9647 decode_cmdline_option. Use %qs in diagnostics.
9648 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
9649 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
9650 decode_cmdline_option): New.
9652 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
9655 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
9656 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
9657 (partiysi2_cmp): Ditto.
9658 (*partiyhi2_cmp): Ditto.
9659 (*parityqi2_cmp): Remove.
9661 2010-06-11 Jan Hubicka <jh@suse.cz>
9663 * bitmap.h (bmp_iter_next_bit): New.
9664 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
9666 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
9667 Eric Botcazou <ebotcazou@adacore.com>
9669 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
9672 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
9674 * config/i386/i386.md (unspec): New define_c_enum.
9677 2010-06-10 Jakub Jelinek <jakub@redhat.com>
9679 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
9681 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
9684 * tree-if-conv.c (bb_predicate_s): New struct.
9685 (bb_predicate_p): New.
9686 (bb_has_predicate): New.
9687 (bb_predicate): New.
9688 (set_bb_predicate): New.
9689 (bb_predicate_gimplified_stmts): New.
9690 (set_bb_predicate_gimplified_stmts): New.
9691 (add_bb_predicate_gimplified_stmts): New.
9692 (init_bb_predicate): New.
9693 (free_bb_predicate): New.
9694 (is_predicated): Use bb_predicate.
9695 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
9696 (predicate_bbs): Same. Gimplify the condition of the basic blocks
9697 before processing their successors.
9698 (clean_predicate_lists): Removed.
9699 (find_phi_replacement_condition): Use bb_predicate.
9700 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
9702 (insert_gimplified_predicates): New.
9703 (combine_blocks): Call insert_gimplified_predicates.
9704 (tree_if_conversion): Call free_bb_predicate instead of
9705 clean_predicate_lists.
9707 2010-10-11 Paul Brook <paul@codesourcery.com>
9709 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
9710 * config/arm/arm.c (all_architectures): Change v7e-m default to
9712 * config/arm/arm-cores.def: Add cortex-m4.
9713 * config/arm/arm-tune.md: Regenerate.
9715 2010-06-11 Jan Hubicka <jh@suse.cz>
9717 * ipa-pure-const.c (special_builtlin_state): New function.
9718 (check_call): Use it instead of special casign BUILT_IN_RETURN.
9719 (propagate_pure_const): Use it.
9721 2010-06-11 Jan Hubicka <jh@suse.cz>
9723 * df-problems.c (df_live_scratch): Convert to bitmap_head.
9724 (df_live_alloc): Initialize df_live_scratch when initializing
9726 (df_live_transfer_function): Update uses of df_live_scratch.
9727 (df_live_free): Free problem_data; clear df_live_scratch before
9728 releasing the obstack.
9729 (df_md_free): Free problem data.
9731 2010-06-11 Jan Hubicka <jh@suse.cz>
9733 * doc/invoke.texi (Wsuggest-attribute): Document.
9734 (Wmissing-noreturn): Remove.
9735 * ipa-pure-const.c (warn_function_noreturn): New function.
9736 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
9737 warn_missing_noreturn.
9738 * common.opt (Wsuggest-attribute=noreturn): New.
9739 * tree-flow.h (warn_function_noreturn): Declare.
9740 * tree-cfg.c (execute_warn_function_noreturn): Use
9741 warn_function_noreturn.
9742 (gate_warn_function_noreturn): New.
9743 (pass_warn_function_noreturn): Update.
9745 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9747 * c-typeck.c (handle_warn_cast_qual): Add loc
9748 parameter. Improve warning message.
9749 (build_c_cast): Pass location to handle_warn_cast_qual.
9751 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
9753 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
9754 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
9756 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
9758 2010-06-10 Dodji Seketeli <dodji@redhat.com>
9760 Fix bootstap on mips
9761 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
9764 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
9766 * system.h (helper_const_non_const_cast): New inline for
9768 (CONST_CAST2): For gcc version <= 4.0 use
9769 new helper to do const/non-const casting.
9771 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9773 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
9774 * Makefile.in (OBJS-common): Include insn-enums.o.
9775 (insn-enums.o): New rule.
9776 (simple_generated_c): Add insn-enums.c.
9777 (build/genenums.o): New rule.
9778 (genprogmd): Add "enums".
9779 * genconstants.c (print_enum_type): Declare a C string array
9781 * genenums.c: New file.
9782 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
9783 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
9784 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
9786 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9788 * doc/md.texi (define_enum_attr): Document.
9789 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
9790 * read-md.h (lookup_enum_type): Declare.
9791 * read-md.c (lookup_enum_type): New function.
9792 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
9793 * genattrtab.c (attr_desc): Add an enum_name field.
9794 (evaluate_eq_attr): Take the associated attribute as argument.
9795 Get the enum prefix from the enum_name field, if defined.
9796 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
9797 (simplify_test_exp): Pass attr to evaluate_eq_attr.
9798 (add_attr_value): New function, split out from...
9799 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
9800 (write_test_expr): Pass attr to evaluate_eq_attr.
9801 (write_attr_get): Use the enum_name as the enum tag, if defined.
9802 (write_attr_valueq): Use the enum_name as a prefix, if defined.
9803 (find_attr): Initialize enum_name.
9804 (main): Handle DEFINE_ENUM_ATTR.
9805 * gensupport.c (process_rtx): Likewise.
9806 * config/mips/mips.h (mips_tune_attr): Delete.
9807 * config/mips/mips.md (cpu): Use define_attr_enum.
9809 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9811 * doc/md.texi (define_c_enum, define_enum): Document.
9812 * read-md.h (md_constant): Add a parent_enum field.
9813 (enum_value, enum_type): New structures.
9814 (upcase_string, traverse_enum_types): Declare.
9815 * read-md.c (enum_types): New variable.
9816 (upcase_string, add_constant): New functions.
9817 (handle_constants): Don't create the hash table here.
9819 (traverse_md_constants): Don't check for a null md_constants.
9820 (decimal_string, handle_enum, traverse_enum_types): New functions.
9821 (read_md_files): Initialize md_constants and md_enums.
9822 * genconstants.c (print_md_constant): Ignore info argument.
9823 Only print constants that belong to no enum.
9824 (print_enum_type): New function.
9825 (main): Don't pass stdout to print_md_constant. Call print_enum_type
9826 for each defined enum type.
9827 * config/mips/mips.md (processor): New define_enum.
9828 (unspec): New define_c_enum.
9829 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
9830 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
9831 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
9832 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
9833 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
9834 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
9835 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
9836 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
9837 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
9838 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
9839 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
9840 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
9841 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
9842 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
9843 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
9844 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
9845 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
9846 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
9847 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
9848 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
9849 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
9850 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
9851 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9852 (UNSPEC_RDDSP): Move to mips-dsp.md.
9853 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
9854 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
9855 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
9856 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
9857 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
9858 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
9859 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
9860 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
9861 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
9862 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
9863 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
9864 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
9865 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
9866 Moved to mips-dspr2.md.
9867 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
9868 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
9869 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
9870 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
9871 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
9872 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
9873 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
9874 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
9875 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
9876 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
9877 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
9878 UNSPEC_LOONGSON_PSADBH)
9879 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
9880 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
9881 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
9882 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9883 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9884 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9885 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
9886 (cpu): Update comment.
9887 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
9888 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
9889 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
9890 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
9891 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
9892 UNSPEC_LOONGSON_PCMPEQ)
9893 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
9894 UNSPEC_LOONGSON_PINSR_0)
9895 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
9896 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
9897 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
9898 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
9899 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
9900 UNSPEC_LOONGSON_PSADBH)
9901 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
9902 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
9903 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
9904 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9905 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9906 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9907 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
9908 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
9909 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
9910 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
9911 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
9912 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
9913 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
9914 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
9915 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
9916 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
9917 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
9918 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
9919 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
9920 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
9921 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
9922 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
9923 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
9924 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
9925 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
9926 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
9927 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9928 (UNSPEC_RDDSP): Moved from mips.md.
9929 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
9930 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
9931 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
9932 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
9933 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
9934 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
9935 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
9936 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
9937 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
9938 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
9939 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
9940 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
9941 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
9942 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
9943 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
9944 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
9945 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
9946 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
9947 (UNSPEC_SCC): Moved from mips.md.
9948 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
9949 "processor_type" to "processor".
9950 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
9951 * config/mips/mips.h (processor_type): Delete.
9952 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
9953 "processor_type" to "processor".
9955 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9957 * configure.ac (tm_include_list): Add insn-constants.h.
9958 * configure: Regenerate.
9959 * Makefile.in (GTM_H): Move insn-constants.h here from...
9961 * mkconfig.sh: Remove special handling for insn-constants.h.
9963 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9965 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
9966 (BUILD_MD): ...this new variable.
9967 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
9968 that include the old contents of simple_generated_h and
9970 (simple_generated_h, simple_generated_c): Include them. Add
9972 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
9973 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
9974 Remove these dependencies from the main rule and include
9975 insn-conditions.md in the command line only if it appears
9976 in the dependency list.
9977 (insn-constants.h, s-constants): Delete.
9978 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
9980 (build/genmddeps.o): Likewise.
9981 (genprogrtl): New variable that contains everything from genprogmd
9982 except mddeps and constants.
9983 (genprogmd): Redefine in terms of genprogrtl. Make these programs
9984 depend on $(BUILD_MD)
9985 (genprog): New variable. Make these programs depend on
9987 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
9988 (main): Use read_md_files instead of init_rtx_reader_args.
9989 * genconstants.c: As for genmddeps.c.
9990 * read-md.h (read_skip_construct): Declare.
9991 * read-md.c (read_skip_construct): New function.
9992 (handle_file): Allow a null handle_directive, skipping the
9994 (parse_include): Update the comment accordingly.
9996 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9998 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
9999 * genmddeps.c: Include read-md.h.
10000 (main): Call init_rtx_reader_args instead of init_md_reader_args.
10001 * genattr.c (main): Likewise.
10002 * genattrtab.c (main): Likewise.
10003 * genautomata.c (main): Likewise.
10004 * gencodes.c (main): Likewise.
10005 * genconditions.c (main): Likewise.
10006 * genconfig.c (main): Likewise.
10007 * genconstants.c (main): Likewise.
10008 * genemit.c (main): Likewise.
10009 * genextract.c (main): Likewise.
10010 * genflags.c (main): Likewise.
10011 * genopinit.c (main): Likewise.
10012 * genoutput.c (main): Likewise.
10013 * genpeep.c (main): Likewise.
10014 * genrecog.c (main): Likewise.
10015 * genpreds.c (main): Likewise.
10016 * gensupport.h (in_fname): Move to read-md.h.
10017 (init_md_reader_args_cb): Rename to...
10018 (init_rtx_reader_args_cb): ...this and return a bool.
10019 (init_md_reader_args): Rename to...
10020 (init_rtx_reader_args): ...this and return a bool.
10021 (include_callback): Move to read-md.h.
10022 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
10023 (file_name_list, first_dir_md_include): Move to read-md.c
10024 (first_bracket_include): Delete unused variable.
10025 (last_dir_md_include): Move to read-md.c.
10026 (process_include): Delete, moving code to read-md.c:handle_include.
10027 (process_rtx): Don't handle INCLUDE.
10028 (save_string): Delete.
10029 (rtx_handle_directive): New function.
10030 (init_md_reader_args_cb): Rename to...
10031 (init_rtx_reader_args_cb): ...this and return a boolean success value.
10033 (init_md_reader_args): Rename to...
10034 (init_rtx_reader_args): ...this and return a boolean success value.
10035 * rtl.def (INCLUDE): Delete.
10036 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
10038 * read-rtl.c (read_conditions): Don't gobble ')' here.
10039 (read_mapping): Likewise.
10040 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
10041 Handle top-level non-rtx constructs here rather than in read_rtx_1.
10042 Store the whole queue in *X. Remove call to init_md_reader.
10043 (read_rtx_1): Rename to...
10044 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
10045 Don't handle top-level non-rtx constructs here. Don't handle (nil)
10047 (read_nested_rtx): New function. Handle (nil) here rather than
10049 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
10051 * read-md.h (directive_handler_t): New type.
10052 (in_fname, include_callback): Moved from read-md.h.
10053 (read_constants, init_md_reader): Delete.
10054 (read_md_files): Declare.
10055 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
10056 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
10058 (read_constants): Rename to...
10059 (handle_constants): ...this. Don't gobble ')' here.
10060 (handle_include, handle_file, handle_toplevel_file)
10061 (parse_include): New functions, mostly taken from gensupport.c.
10062 (init_md_reader): Subsume into...
10063 (read_md_files): ...this new function.
10065 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
10067 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
10068 (unread_char): Decrement read_md_lineno after putting back '\n'.
10069 * read-md.c (fatal_with_file_and_line): Push back any characters
10070 that we decide not to add to the context.
10071 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
10072 fatal_expected_char in cases where '/' ends a line (for example).
10073 (read_name): Don't increment read_md_lineno here.
10074 (read_escape): Likewise.
10075 (read_quoted_string): Likewise.
10076 (read_braced_string): Likewise.
10078 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
10080 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
10081 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
10082 * genconstants.c: Include read-md.h.
10083 * read-rtl.c (md_constants): Move to read-md.c.
10084 (md_name): Move to read-md.h.
10085 (initialize_iterators): Use leading_string_hash instead of def_hash
10086 and leading_string_eq_p instead of def_name_eq_p.
10087 (read_name): Move to read-md.c.
10088 (def_hash, def_name_eq_p): Delete.
10089 (read_constants, traverse_md_constants): Move to read-md.c.
10090 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
10091 * read-md.h: Include hashtab.h.
10092 (md_name): Moved from read-rtl.c.
10093 (md_constant): Moved from read-md.h.
10094 (leading_string_hash, leading_string_eq_p, read_name)
10095 (read_constants, traverse_md_constants): Declare.
10096 * read-md.c (md_constants): Moved from read-rtl.c.
10097 (leading_string_hash, leading_string_eq_p): New functions.
10098 (read_name, read_constants, traverse_md_constants): Moved from
10101 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
10103 * read-rtl.c (md_name): New structure.
10104 (read_name): Take an md_name instead of a buffer pointer.
10105 Use the "string" field instead of strcpy when expanding constants.
10106 (read_constants): Remove the tmp_char argument. Update the calls
10107 to read_name, using two local name buffers instead of the tmp_char
10108 argument. Merge the constant-creation code.
10109 (read_conditions): Remove the tmp_char argument. Update the calls
10110 to read_name, using a local name buffer instead of the tmp_char
10112 (read_mapping): Replace tmp_char variable with a local name buffer.
10113 Update the calls to read_name.
10114 (read_rtx_1): Likewise. Update the calls to read_constants and
10117 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
10119 * Makefile.in (build/read-md.o): Depend on errors.h.
10120 * read-md.h (error_with_line): Declare.
10121 * read-md.c: Include errors.h.
10122 (message_with_line_1): New function, extracted from...
10123 (message_with_line): ...here.
10124 (error_with_line): New function.
10125 * genattrtab.c: If a call to message_with_line is followed by
10126 "have_error = 1;", replace both statements with a call to
10128 * genoutput.c: Likewise.
10129 * genpreds.c: Likewise.
10130 * genrecog.c: If a call to message_with_line is followed by
10131 "error_count++;", replace both statements with a call to
10133 (errorcount): Delete.
10134 (main): Don't check it.
10135 * gensupport.c: If a call to message_with_line is followed by
10136 "errors = 1;", replace both statements with a call to error_with_line.
10138 (process_define_cond_exec): Check have_error instead of errors.
10139 (init_md_reader_args_cb): Likewise. Don't set errors.
10141 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
10143 * read-md.h (read_md_file): Declare.
10144 (read_char, unread_char): New functions.
10145 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
10146 (read_quoted_string, read_string): Remove FILE * argument.
10147 * read-md.c (read_md_file): New variable.
10148 (read_md_filename, read_md_lineno): Update comments and remove
10149 unnecessary initialization.
10150 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
10151 (read_escape, read_quoted_string, read_braced_string, read_string):
10152 Remove FILE * argument. Update calls accordingly, using read_char
10153 and unread_char instead of getc and ungetc.
10154 * rtl.h (read_rtx): Remove FILE * argument.
10155 * read-rtl.c (iterator_group): Remove FILE * argument from
10157 (iterator_traverse_data): Remove "infile" field.
10158 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
10159 (add_mapping, read_name, read_constants, read_conditions)
10160 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
10161 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
10162 Remove file arguments from all calls, using read_char and unread_char
10163 instead of getc and ungetc.
10164 * gensupport.c (process_include): Preserve read_md_file around
10165 the include. Set read_md_file to the handle of the included file.
10166 Update call to read_rtx.
10167 (init_md_reader_args_cb): Set read_md_file to the handle of the file
10168 and remove local FILE *. Update calls to read_rtx.
10170 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
10172 * read-md.h (read_rtx_lineno): Rename to...
10173 (read_md_lineno): ...this.
10174 (read_rtx_filename): Rename to...
10175 (read_md_filename): ...this.
10176 (copy_rtx_ptr_loc): Rename to...
10177 (copy_md_ptr_loc): ...this.
10178 (print_rtx_ptr_loc): Rename to...
10179 (print_md_ptr_loc): ...this.
10180 * read-md.c: Likewise. Update references after renaming.
10181 (string_obstack): Replace RTL with MD in comment.
10182 (set_rtx_ptr_loc): Rename to...
10183 (set_md_ptr_loc): ...this.
10184 (get_rtx_ptr_loc): Rename to...
10185 (get_md_ptr_loc): ...this.
10186 * genconditions.c: Update references after renaming.
10187 * genemit.c: Likewise.
10188 * genoutput.c: Likewise.
10189 * genpreds.c: Likewise.
10190 * gensupport.c: Likewise.
10191 * read-rtl.c: Likewise.
10193 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
10195 * Makefile.in (READ_MD_H): New variable.
10196 (BUILD_RTL): Add build/read-md.o.
10197 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
10198 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
10199 (build/genattrtab.o, build/genconditions.o build/genemit.o)
10200 (build/genextract.o, build/genflags.o, build/genoutput.o)
10201 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
10202 (build/read-md.o): New rule.
10203 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
10204 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
10205 * coretypes.h: ...here.
10206 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
10207 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
10208 * genattr.c: Include read-md.h.
10209 * genattrtab.c: Likewise.
10210 * genconditions.c: Likewise.
10211 * genemit.c: Likewise.
10212 * genextract.c: Likewise.
10213 * genflags.c: Likewise.
10214 * genoutput.c: Likewise.
10215 * genpreds.c: Likewise.
10216 * genrecog.c: Likewise.
10217 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
10218 (join_c_conditions, print_c_condition, read_rtx_filename)
10219 (read_rtx_lineno): Move to read-md.h.
10220 * read-rtl.c: Include read-md.h.
10221 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
10222 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
10223 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
10224 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
10225 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
10226 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
10227 (read_braced_string, read_string): Move to read-md.c.
10228 (read_rtx): Move some initialization to init_md_reader and call
10229 init_md_reader here.
10230 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
10232 * gensupport.c: Include read-md.h.
10233 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
10234 * read-md.h, read-md.c: New files.
10236 2010-06-10 Anatoly Sokolov <aesok@post.ru>
10238 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10239 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10240 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
10241 * config/moxie/moxie.c (moxie_function_value): Make static.
10242 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
10243 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10245 2010-06-10 Martin Jambor <mjambor@suse.cz>
10247 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
10248 * dbgcnt.def (tree_sra): New counter.
10249 * tree-sra.c: Include dbgcnt.h.
10250 (gate_intra_sra): Check tree_sra debug counter.
10252 2010-06-10 Martin Jambor <mjambor@suse.cz>
10254 PR tree-optimization/44258
10255 * tree-sra.c (build_access_subtree): Return false iff there is a
10257 (build_access_trees): Likewise.
10258 (analyze_all_variable_accesses): Disqualify candidates if
10259 build_access_trees returns true for them.
10261 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
10264 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
10265 tail-recurse into canonical node. Fast-forward over
10266 non-canonical VALUEs.
10268 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
10271 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
10272 (*addsi_1_zext) <TYPE_LEA>: Likewise.
10273 (add lea splitter): Likewise.
10274 (add_zext lea splitter): Likewise.
10276 2010-06-10 Joseph Myers <joseph@codesourcery.com>
10278 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
10280 2010-06-10 Jan Hubicka <jh@suse.cz>
10282 * df-problems.c (df_live_problem_data): Add live_bitmaps.
10283 (df_live_alloc): Initialize problem data and live_osbtacks.
10284 (df_live_finalize): Remove obstack, problem data; do not
10286 (df_live_top_dump, df_live_bottom_dump): Do not dump old
10287 data when not allocated.
10288 (df_live_verify_solution_start): Do not allocate problem data.
10289 (df_live_verify_solution_end): Check if out is allocated.
10290 (struct df_md_problem_data): New structure.
10291 (df_md_alloc): Allocate problem data.
10292 (df_md_free): Free problem data; do not clear bitmaps.
10294 2010-06-10 Jan Beulich <jbeulich@novell.com>
10297 * configure.ac: Replace $() with ${} when intending to expand
10298 variables rather than invoking commands.
10299 * configure: Re-generate.
10301 2010-06-10 Jan Hubicka <jh@suse.cz>
10303 PR rtl-optimization/44460
10304 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
10305 TYPE_NEEDS_CONSTRUCTING sanity check.
10307 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
10309 * doc/include/fdl.texi: Move to GFDL version 1.3.
10311 * doc/cpp.texi: Move to GFDL version 1.3.
10312 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
10313 * doc/gccint.texi: Move to GFDL version 1.3.
10314 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
10315 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
10316 * doc/invoke.texi: Move to GFDL version 1.3.
10318 2010-06-09 Jan Hubicka <jh@suse.cz>
10320 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
10322 (propagate) ... here; swap the order.
10324 2010-06-09 Jan Hubicka <jh@suse.cz>
10326 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
10327 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
10328 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
10329 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
10331 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
10333 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
10334 Do not the gather memory reference in the outer loop if the step
10337 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
10339 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
10340 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
10341 8 to 4. Minor change of the related comments.
10343 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
10345 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
10346 the scev analysis when the variable is not used outside the loop
10347 in a close phi node: call compute_overall_effect_of_inner_loop.
10349 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
10351 * graphite-sese-to-poly.c (single_pred_cond): Renamed
10352 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
10353 (build_sese_conditions_before): Renamed call to single_pred_cond.
10354 (build_sese_conditions_after): Same.
10356 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
10358 * graphite-poly.h: Fix comments and indentation.
10359 * graphite-sese-to-poly.c: Same.
10360 (build_sese_conditions_before): Compute stmt and gbb only when needed.
10361 * tree-chrec.c: Fix comments and indentation.
10362 (tree-ssa-loop-niter.c): Same.
10364 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
10366 PR rtl-optimization/42461
10367 * dce.c (deletable_insn_p): Return true for const or pure calls again.
10368 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
10370 2010-06-09 Jan Hubicka <jh@suse.cz>
10372 * bitmap.c (bitmap_and): Walk array forward.
10373 (bitmap_and_compl_into): Likewise.
10374 (bitmap_xor): Likewise.
10375 (bitmap_xor_into): Likewise.
10376 (bitmap_equal_p): Likewise.
10377 (bitmap_intersect_p): Likewise.
10378 (bitmap_intersect_compl_p): Likewise.
10379 (bitmap_ior_and_into): Likewise.
10380 (bitmap_elt_copy): Likewise.
10381 (bitmap_and_compl): Likewise.
10382 (bitmap_elt_ior): Likewise.
10384 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
10386 * opts-common.c (prune_options): Ensure replacement argv array
10387 is correctly terminated by a NULL entry.
10389 2010-06-09 Jan Hubicka <jh@suse.cz>
10391 * cgraph.h (varpool_first_static_initializer,
10392 varpool_next_static_initializer): Make checking only when
10394 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
10395 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
10396 gcc_assert to gcc_checking_assert.
10397 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
10398 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
10399 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
10400 op_iter_init_phiuse, op_iter_init_phidef,
10401 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
10402 gcc_checking_assert.
10403 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
10404 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
10405 partition_is_global, live_on_entry, live_on_exit,
10406 live_merge_and_clear): Likewise.
10407 * system.h (gcc_checking_assert): New macro.
10408 * gimple.h (set_bb_seq): Use gcc_checking_assert.
10410 2010-06-09 Jason Merrill <jason@redhat.com>
10412 * Makefile.in (TAGS): Collect tags info from c-family.
10414 2010-06-09 Jan Hubicka <jh@suse.cz>
10416 * gimple.h (gcc_gimple_checking_assert): New macro.
10417 (gimple_set_def_ops, gimple_set_use_ops,
10418 gimple_set_vuse, gimple_set_vdef,
10419 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
10420 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
10421 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
10422 gimple_asm_output_op, gimple_asm_output_op_ptr,
10423 gimple_asm_set_output_op, gimple_asm_clobber_op,
10424 gimple_asm_set_clobber_op, gimple_asm_label_op,
10425 gimple_asm_set_label_op, gimple_try_set_kind,
10426 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
10427 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
10428 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
10429 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
10430 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
10431 gimple_omp_for_set_initial, gimple_omp_for_final,
10432 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
10433 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
10434 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
10435 conditional with ENABLE_GIMPLE_CHECKING.
10436 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
10438 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
10440 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
10441 (get_computation_cost_at): Use it.
10442 (determine_use_iv_cost_condition): Likewise.
10443 (determine_iv_cost): Likewise.
10445 2010-06-09 Richard Guenther <rguenther@suse.de>
10447 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
10450 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
10452 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
10454 2010-06-09 Martin Jambor <mjambor@suse.cz>
10456 PR tree-optimization/44423
10457 * tree-sra.c (dump_access): Dump also grp_assignment_read.
10458 (analyze_access_subtree): Pass negative allow_replacements to children
10459 if the current type is scalar.
10461 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
10464 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
10465 * doc/plugins.texi (Plugin license check): Update information
10466 on type of plugin_is_GPL_compatible.
10467 * Makefile.in (PLUGINCC): Define as $(COMPILER).
10468 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
10470 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
10472 * config/arm/arm.c (thumb2_reorg): New function.
10473 (arm_reorg): Call it.
10474 * config/arm/thumb2.md (define_peephole2 for flag clobbering
10475 arithmetic operations): Delete.
10477 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
10480 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
10483 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
10486 * gcc-plugin.h: Encapsulate all declarations in extern "C".
10488 2010-06-08 Jan Hubicka <jh@suse.cz>
10490 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
10491 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
10493 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
10495 PR tree-optimization/39874
10496 PR middle-end/28685
10497 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
10499 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
10500 same_bool_result_p): New.
10501 (and_var_with_comparison, and_var_with_comparison_1,
10502 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
10503 (or_var_with_comparison, or_var_with_comparison_1,
10504 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
10505 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
10506 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
10507 of combine_comparisons.
10508 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
10510 2010-06-08 Anatoly Sokolov <aesok@post.ru>
10512 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10513 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10514 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
10515 pdp11_function_value_regno_p): New functions.
10516 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10517 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10519 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
10521 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
10522 Thumb-2 in the MINUS case.
10524 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10526 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
10528 * doc/gty.texi (GTY Options): Document typed GC allocation and
10529 variable_size GTY option.
10531 * ggc-internal.h: New.
10533 * ggc.h: Update copyright year.
10534 (digit_string): Move to stringpool.c.
10535 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
10536 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
10537 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
10538 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
10539 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
10540 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
10541 (ggc_force_collect, ggc_get_size, ggc_statistics)
10542 (ggc_print_common_statistics): Move to ggc-internal.h.
10543 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
10544 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
10545 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
10546 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
10547 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
10548 (ggc_alloc_zone_pass_stat): Remove.
10549 (ggc_internal_alloc_stat, ggc_internal_alloc)
10550 (ggc_internal_cleared_alloc_stat): New.
10551 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
10552 (ggc_internal_vec_alloc_stat)
10553 (ggc_internal_cleared_vec_alloc_stat)
10554 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
10555 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
10556 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
10557 (ggc_cleared_alloc_ptr_array_two_args): New.
10558 (htab_create_ggc, splay_tree_new_ggc): Redefine.
10559 (ggc_splay_alloc): Change the type of the first argument to
10560 enum gt_types_enum.
10561 (ggc_alloc_string): Make macro.
10562 (ggc_alloc_string_stat): New.
10563 (ggc_strdup): Redefine.
10564 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
10565 (ggc_alloc_rtvec_sized): New.
10566 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
10567 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
10568 (ggc_internal_cleared_alloc_zone_stat)
10569 (ggc_internal_zone_alloc_stat)
10570 (ggc_internal_zone_cleared_alloc_stat)
10571 (ggc_internal_zone_vec_alloc_stat)
10572 (ggc_alloc_zone_rtx_def_stat)
10573 (ggc_alloc_zone_tree_node_stat)
10574 (ggc_alloc_zone_cleared_tree_node_stat)
10575 (ggc_alloc_cleared_gimple_statement_d_stat): New.
10577 * ggc-common.c: Include ggc-internal.h.
10578 (ggc_internal_cleared_alloc_stat): Rename from
10579 ggc_alloc_cleared_stat.
10580 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
10581 (ggc_calloc): Remove.
10582 (ggc_cleared_alloc_htab_ignore_args): New.
10583 (ggc_cleared_alloc_ptr_array_two_args): New.
10584 (ggc_splay_alloc): Add obj_type parameter.
10585 (init_ggc_heuristics): Formatting fixes.
10587 * ggc-none.c: Update copyright year.
10588 (ggc_alloc_stat): Rename to ggc_alloc_stat.
10589 (ggc_alloc_cleared_stat): Rename to
10590 ggc_internal_cleared_alloc_stat.
10591 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
10593 * ggc-page.c: Update copyright year. Include ggc-internal.h.
10594 Remove references to ggc_alloc in comments.
10595 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
10596 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
10597 (new_ggc_zone, destroy_ggc_zone): Remove.
10598 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
10600 * ggc-zone.c: Include ggc-internal.h. Remove references to
10601 ggc_alloc in comments.
10602 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
10603 (ggc_internal_alloc_zone_pass_stat): New.
10604 (ggc_internal_cleared_alloc_zone_stat): New.
10605 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
10606 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
10607 (new_ggc_zone, destroy_ggc_zone): Remove.
10609 * stringpool.c: Update copyright year. Include ggc-internal.h
10610 (digit_vector): Make static.
10611 (digit_string): Moved from ggc.h.
10612 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
10613 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
10615 * Makefile.in (GGC_INTERNAL_H): New.
10616 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
10617 $(GGC_INTERNAL_H) to dependencies.
10619 * gentype.c: Update copyright year.
10620 (walk_type): Accept variable_size GTY option.
10621 (USED_BY_TYPED_GC_P): New macro.
10622 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
10623 whitespace at the end of strings.
10624 (get_type_specifier, variable_size_p): New functions.
10625 (alloc_quantity, alloc_zone): New enums.
10626 (write_typed_alloc_def): New function.
10627 (write_typed_struct_alloc_def): Likewise.
10628 (write_typed_typed_typedef_alloc_def): Likewise.
10629 (write_typed_alloc_defns): Likewise.
10630 (output_typename, write_splay_tree_allocator_def): Likewise.
10631 (write_splay_tree_allocators): Likewise.
10632 (main): Call write_typed_alloc_defns and
10633 write_splay_tree_allocators.
10635 * lto-streamer.h (lto_file_decl_data_ptr): New.
10637 * passes.c (order): Define using cgraph_node_ptr.
10639 * strinpool.c (struct string_pool_data): Declare nested_ptr using
10642 * gimple.h (union gimple_statement_d): Likewise.
10644 * rtl.h (struct rtx_def): Likewise.
10645 (struct rtvec_def): Likewise.
10647 * tree.h (union tree_node): Likewise.
10649 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
10651 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
10653 * tree-scalar-evolution.c (scev_initialize): Likewise.
10655 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
10657 * dwarf2asm.c (dw2_force_const_mem): Likewise.
10659 * omp-low.c (lower_omp_critical): Likewise.
10661 * bitmap.h (struct bitmap_head_def): Update comment to not
10662 reference ggc_alloc.
10664 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
10666 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
10668 * ipa-prop.c (duplicate_ggc_array): Rename to
10669 duplicate_ipa_jump_func_array. Use typed GC allocation.
10670 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
10672 * gimple.c (gimple_alloc_stat): Use
10673 ggc_alloc_cleared_gimple_statement_d_stat.
10675 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
10677 * tree.c (make_node_stat): Use
10678 ggc_alloc_zone_cleared_tree_node_stat.
10679 (make_tree_vec_stat): Likewise.
10680 (build_vl_exp_stat): Likewise.
10681 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
10682 (make_tree_binfo_stat): Likewise.
10683 (tree_cons_stat): Likewise.
10685 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
10686 (shallow_copy_rtx_stat): Likewise.
10687 (make_node_stat): Likewise.
10689 * lto-symtab.c: Fix comment.
10691 * tree-cfg.c (create_bb): Update comment to not reference
10693 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
10695 * varpool.c (varpool_node): Use typed GC allocation.
10696 (varpool_extra_name_alias): Likewise.
10698 * varasm.c (emutls_decl): Likewise.
10699 (get_unnamed_section): Likewise.
10700 (get_noswitch_section): Likewise.
10701 (get_section): Likewise.
10702 (get_block_for_section): Likewise.
10703 (build_constant_desc): Likewise.
10704 (create_constant_pool): Likewise.
10705 (force_const_mem): Likewise.
10707 * tree.c (build_vl_exp_stat): Likewise.
10708 (build_real): Likewise.
10709 (build_string): Likewise.
10710 (decl_debug_expr_insert): Likewise.
10711 (decl_value_expr_insert): Likewise.
10712 (type_hash_add): Likewise.
10713 (build_omp_clause): Likewise.
10715 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
10717 * tree-ssa.c (init_tree_ssa): Likewise.
10719 * tree-ssa-structalias.c (heapvar_insert): Likewise.
10721 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
10723 * tree-ssa-loop-niter.c (record_estimate): Likewise.
10725 * tree-ssa-alias.c (get_ptr_info): Likewise.
10727 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
10729 * tree-phinodes.c (allocate_phi_node): Likewise.
10731 * tree-iterator.c (tsi_link_before): Likewise.
10732 (tsi_link_after): Likewise.
10734 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
10736 * tree-dfa.c (create_var_ann): Likewise.
10738 * tree-cfg.c (create_bb): Likewise.
10740 * toplev.c (alloc_for_identifier_to_locale): Likewise.
10741 (general_init): Likewise.
10743 * stringpool.c (stringpool_ggc_alloc): Likewise.
10744 (gt_pch_save_stringpool): Likewise.
10746 * sese.c (if_region_set_false_region): Likewise.
10748 * passes.c (do_per_function_toporder): Likewise.
10750 * optabs.c (set_optab_libfunc): Likewise.
10751 (set_conv_libfunc): Likewise.
10753 * lto-symtab.c (lto_symtab_register_decl): Likewise.
10755 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
10756 (input_eh_region): Likewise.
10757 (input_eh_lp): Likewise.
10758 (make_new_block): Likewise.
10759 (unpack_ts_real_cst_value_fields): Likewise.
10761 * lto-section-in.c (lto_new_in_decl_state): Likewise.
10763 * lto-cgraph.c (input_node_opt_summary): Likewise.
10765 * loop-init.c (loop_optimizer_init): Likewise.
10767 * lambda.h (lambda_vector_new): Likewise.
10769 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
10771 * ira.c (update_equiv_regs): Likewise.
10773 * ipa.c (cgraph_node_set_new): Likewise.
10774 (cgraph_node_set_add): Likewise.
10775 (varpool_node_set_new): Likewise.
10776 (varpool_node_set_add): Likewise.
10778 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
10779 (duplicate_ipa_jump_func_array): Likewise.
10780 (ipa_read_node_info): Likewise.
10782 * ipa-cp.c (ipcp_create_replace_map): Likewise.
10784 * integrate.c (get_hard_reg_initial_val): Likewise.
10786 * gimple.c (gimple_alloc_stat): Likewise.
10787 (gimple_build_omp_for): Likewise.
10788 (gimple_seq_alloc): Likewise.
10789 (gimple_copy): Likewise.
10791 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
10792 (gsi_insert_after_without_update): Likewise.
10794 * function.c (add_frame_space): Likewise.
10795 (insert_temp_slot_address): Likewise.
10796 (assign_stack_temp_for_type): Likewise.
10797 (allocate_struct_function): Likewise.
10798 (types_used_by_var_decl_insert): Likewise.
10800 * except.c (init_eh_for_function): Likewise.
10801 (gen_eh_region): Likewise.
10802 (gen_eh_region_catch): Likewise.
10803 (gen_eh_landing_pad): Likewise.
10804 (add_call_site): Likewise.
10806 * emit-rtl.c (get_mem_attrs): Likewise.
10807 (get_reg_attrs): Likewise.
10808 (start_sequence): Likewise.
10809 (init_emit): Likewise.
10811 * dwarf2out.c (new_cfi): Likewise.
10812 (queue_reg_save): Likewise.
10813 (dwarf2out_frame_init): Likewise.
10814 (new_loc_descr): Likewise.
10815 (find_AT_string): Likewise.
10816 (new_die): Likewise.
10817 (add_var_loc_to_decl): Likewise.
10818 (clone_die): Likewise.
10819 (clone_as_declaration): Likewise.
10820 (break_out_comdat_types): Likewise.
10821 (new_loc_list): Likewise.
10822 (loc_descriptor): Likewise.
10823 (add_loc_descr_to_each): Likewise.
10824 (add_const_value_attribute): Likewise.
10825 (tree_add_const_value_attribute): Likewise.
10826 (add_comp_dir_attribute): Likewise.
10827 (add_name_and_src_coords_attributes): Likewise.
10828 (lookup_filename): Likewise.
10829 (store_vcall_insn): Likewise.
10830 (dwarf2out_init): Likewise.
10832 * dbxout.c (dbxout_init): Likewise.
10834 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10836 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10838 * config/score/score7.c (score7_output_external): Likewise.
10840 * config/score/score3.c (score3_output_external): Likewise.
10842 * config/s390/s390.c (s390_init_machine_status): Likewise.
10844 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
10845 (rs6000_init_machine_status): Likewise.
10846 (output_toc): Likewise.
10848 * config/pa/pa.c (pa_init_machine_status): Likewise.
10849 (get_deferred_plabel): Likewise.
10851 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
10853 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
10855 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
10857 * config/mep/mep.c (mep_init_machine_status): Likewise.
10858 (mep_note_pragma_flag): Likewise.
10860 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
10862 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
10864 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
10866 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
10867 (i386_pe_maybe_record_exported_symbol): Likewise.
10869 * config/i386/i386.c (get_dllimport_decl): Likewise.
10870 (ix86_init_machine_status): Likewise.
10871 (assign_386_stack_local): Likewise.
10873 * config/frv/frv.c (frv_init_machine_status): Likewise.
10875 * config/darwin.c (machopic_indirection_name): Likewise.
10877 * config/cris/cris.c (cris_init_machine_status): Likewise.
10879 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
10881 * config/avr/avr.c (avr_init_machine_status): Likewise.
10883 * config/arm/arm.c (arm_init_machine_status): Likewise.
10885 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
10886 (alpha_need_linkage): Likewise.
10887 (alpha_use_linkage): Likewise.
10889 * cgraph.c (cgraph_allocate_node): Likewise.
10890 (cgraph_create_edge_1): Likewise.
10891 (cgraph_create_indirect_edge): Likewise.
10892 (cgraph_add_asm_node): Likewise.
10894 * cfgrtl.c (init_rtl_bb_info): Likewise.
10896 * cfgloop.c (alloc_loop): Likewise.
10897 (rescan_loop_exit): Likewise.
10899 * cfg.c (init_flow): Likewise.
10900 (alloc_block): Likewise.
10901 (unchecked_make_edge): Likewise.
10903 * c-parser.c (c_parse_init): Likewise.
10904 (c_parse_file): Likewise.
10906 * c-decl.c (bind): Likewise.
10907 (record_inline_static): Likewise.
10908 (push_scope): Likewise.
10909 (make_label): Likewise.
10910 (lookup_label_for_goto): Likewise.
10911 (finish_struct): Likewise.
10912 (finish_enum): Likewise.
10913 (c_push_function_context): Likewise.
10915 * bitmap.c (bitmap_element_allocate): Likewise.
10916 (bitmap_gc_alloc_stat): Likewise.
10918 * alias.c (record_alias_subset): Likewise.
10919 (init_alias_analysis): Likewise.
10921 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
10923 * fold-const.c (fold_comparison): Remove redundant parenthesis.
10924 * tree-inline.c (expand_call_inline): Pass translated return value of
10925 cgraph_inline_failed_string to diagnostic function.
10927 2010-06-08 Andrew Pinski <pinskia@gmail.com>
10928 Shujing Zhao <pearly.zhao@oracle.com>
10931 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
10932 implicit bad conversions is initialization.
10933 (error_init): Use gmsgid instead of msgid for argument name and change
10934 the call for error.
10935 (pedwarn_init): Use gmsgid instead of msgid for argument name and
10936 change the call for pedwarn.
10937 (warning_init): Use gmsgid instead of msgid for argument name and
10938 change the call for warning.
10940 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
10942 * config/mips/mips-protos.h (mips_print_operand): Delete.
10943 (mips_print_operand_address): Delete.
10944 * config/mips/mips.h (mips_print_operand_punct): Delete.
10945 (PRINT_OPERAND): Delete.
10946 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10947 (PRINT_OPERAND_ADDRESS): Delete.
10948 * config/mips/mips.c (mips_print_operand_punct): Make static.
10949 (mips_print_operand_address): Make static.
10950 (mips_print_operand): Make static. Call
10951 mips_print_operand_punct_valid_p.
10952 (mips_print_operand_punct_valid_p): New function.
10953 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10954 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10956 2010-06-07 Jan Hubicka <jh@suse.cz>
10958 PR middle-end/44454
10959 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
10962 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
10964 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
10967 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10969 * doc/sourcebuild.texi (Effective-Target Keywords, Other
10970 attributes): Document gas.
10972 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
10974 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
10975 <TYPE_LEA>: Split instruction.
10976 <default>: Remove alternative 2 handling.
10977 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
10978 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
10979 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
10981 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
10982 (ashift_zext lea splitter): Use DImode for multiplication.
10984 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
10985 to generate addition.
10987 2010-06-07 Joseph Myers <joseph@codesourcery.com>
10989 * common.opt (fira-verbose): Use Var.
10990 (fpcc-struct-return): Use Init instead of VarExists.
10991 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
10993 * flags.h (flag_signed_char, flag_short_enums,
10994 flag_pcc_struct_return, flag_ira_verbose,
10995 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
10996 * toplev.c (flag_detailed_statistics, flag_signed_char,
10997 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
10998 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
10999 * toplev.h (flag_crossjumping, flag_if_conversion,
11000 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
11001 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
11002 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
11003 flag_cprop_registers, time_report, flag_ira_loop_pressure,
11004 flag_ira_coalesce, flag_ira_move_spills,
11005 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
11007 2010-06-07 Jan Hubicka <jh@suse.cz>
11009 * df-core.c (df_analyze_problem): Do verification after allocation.
11011 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
11012 (df_lr_alloc): Initialize problem data; move bitmaps to
11013 lr_bitmaps obstack.
11014 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
11015 (df_lr_verify_solution_start): Do not initialize problem data;
11016 allocate bitmaps in lr_bitmaps.
11017 (df_lr_verify_solution_end): Do not free problem data.
11019 2010-06-07 Jan Hubicka <jh@suse.cz>
11021 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
11022 if caller is noreturn.
11023 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
11024 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
11025 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
11026 * ipa-pure-const.c (check_decl): Add IPA parameter.
11027 (state_from_flags): New function.
11028 (better_state, worse_state): New functions.
11029 (check_call): When in IPA mode, do not care about callees.
11030 (check_load, check_store): Update.
11031 (check_ipa_load, check_ipa_store): New.
11032 (check_stmt): When in IPA mode, use IPA checkers.
11033 (analyze_function): Use state_from_flags.
11034 (propagate): Check indirect edges and references.
11036 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
11038 PR rtl-optimization/44404
11039 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
11040 of count_occurrences to see if it's safe to modify mem_insn.
11042 2010-06-07 Richard Guenther <rguenther@suse.de>
11044 * gimplify.c (gimplify_cleanup_point_expr): For empty body
11045 and EH-only cleanup drop the cleanup instead of inserting it
11048 2010-06-07 Ira Rosen <irar@il.ibm.com>
11050 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
11052 * targhooks.c (default_builtin_vectorization_cost): New function.
11053 * targhooks.h (default_builtin_vectorization_cost): Declare.
11054 * target.h (enum vect_cost_for_stmt): Define.
11055 (builtin_vectorization_cost): Change argument and comment.
11056 * tree-vectorizer.h: Remove cost model macros.
11057 * tree-vect-loop.c: Include target.h.
11058 (vect_get_cost): New function.
11059 (vect_estimate_min_profitable_iters): Replace cost model macros with
11060 calls to vect_get_cost.
11061 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
11062 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
11063 default implementation.
11064 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
11065 calls to target hook builtin_vectorization_cost.
11066 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
11068 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
11069 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
11070 implementation to return costs.
11071 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
11072 * config/spu/spu.h: Remove vectorizer cost model macros.
11073 * config/i386/i386.h: Likewise.
11074 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
11075 a call to target hook builtin_vectorization_cost.
11077 2010-06-06 Sriraman Tallam <tmsriram@google.com>
11080 * config/i386/i386.c (override_options): Turn zee pass on for level 2
11081 and above and defer till target is known.
11082 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
11083 turn off otherwise.
11085 2010-05-25 Jan Hubicka <jh@suse.cz>
11087 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
11088 (df_compact_blocks): Likewise.
11089 * df.h (struct df): Turn hardware_regs_used,
11090 regular_block_artificial_uses, eh_block_artificial_uses,
11091 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
11093 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
11094 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
11095 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
11096 df_scan_blocks, df_insn_delete, df_insn_rescan,
11097 df_insn_rescan_debug_internal, df_insn_rescan_all,
11098 df_process_deferred_rescans, df_process_deferred_rescans,
11099 df_notes_rescan, df_get_call_refs, df_get_call_refs,
11100 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
11101 df_record_entry_block_defs, df_record_exit_block_uses,
11102 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
11103 df_scan_verify): Update.
11105 2010-05-25 Dodji Seketeli <dodji@redhat.com>
11108 * c-common.c (is_typedef_decl): Move this definition ...
11109 * tree.c (is_typedef_decl): ... here.
11110 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
11111 * c-common.h (is_typedef_decl): Move this declaration ...
11112 * tree.h (is_typedef_decl): ... here.
11113 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
11114 * dwarf2out.c (is_naming_typedef_decl): New function.
11115 (gen_tagged_type_die): Split out of ...
11116 (gen_type_die_with_usage): ... this function. When an anonymous
11117 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
11118 is emitted for the typedef.
11119 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
11120 anonymous tagged types.
11122 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
11125 * c-decl.c (grokdeclarator): Delete warning.
11127 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
11129 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
11130 newly built CALL_EXPR.
11131 * tree-profile.c (tree_profiling): Don't profile functions produced
11132 for built-in stuff.
11134 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
11138 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
11139 endianness-independent.
11141 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
11143 * c-common.c: Move to c-family/.
11144 * c-common.def: Likewise.
11145 * c-common.h: Likewise.
11146 * c-cppbuiltin.c: Likewise.
11147 * c-dump.c: Likewise.
11148 * c-format.c: Likewise.
11149 * c-format.h : Likewise.
11150 * c-gimplify.c: Likewise.
11151 * c-lex.c: Likewise.
11152 * c-omp.c: Likewise.
11154 * c-opts.c: Likewise.
11155 * c-pch.c: Likewise.
11156 * c-ppoutput.c: Likewise.
11157 * c-pragma.c: Likewise.
11158 * c-pragma.h: Likewise.
11159 * c-pretty-print.c: Likewise.
11160 * c-pretty-print.h: Likewise.
11161 * c-semantics.c: Likewise.
11162 * stub-objc.c: Likewise.
11164 * gengtype.c (get_file_langdir): Special-case files in c-family/.
11165 (get_output_file_with_visibility): Fix name for c-common.h.
11166 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
11168 * c-tree.h: Update include path for moved files.
11169 * c-lang.c: Likewise.
11170 * c-lang.h: Likewise.
11171 * c-parser.c: Likewise.
11172 * c-convert.c: Likewise.
11173 * c-decl.c: Likewise.
11174 * c-objc-common.c: Likewise.
11175 * configure.ac: Make sure c-family/ exists in the build directory.
11176 * configure: Regenerate.
11177 * Makefile.in: Update paths for moved files. Regroup files per
11178 location and update dependencies. Move generated_files down after
11181 * config/spu/spu-c.c: Update paths for moved files.
11182 * config/mep/mep-pragma.c: Likewise.
11183 * config/darwin-c.c: Likewise.
11184 * config/i386/msformat-c.c: Likewise.
11185 * config/i386/i386-c.c: Likewise.
11186 * config/avr/avr-c.c: Likewise.
11187 * config/sol2-c.c: Likewise.
11188 * config/ia64/ia64-c.c: Likewise.
11189 * config/rs6000/rs6000-c.c: Likewise.
11190 * config/arm/arm.c: Likewise.
11191 * config/arm/arm-c.c: Likewise.
11192 * config/h8300/h8300.c: Likewise.
11193 * config/v850/v850-c.c: Likewise.
11195 * config/t-darwin: Fix dependencies for moved files.
11196 * config/t-sol2: Fix dependencies for moved files.
11197 * config/mep/t-mep: Fix dependencies for moved files.
11198 * config/ia64/t-ia64: Fix dependencies for moved files.
11199 * config/rs6000/t-rs6000: Fix dependencies for moved files.
11200 * config/v850/t-v850: Fix dependencies for moved files.
11201 * config/v850/t-v850e: Fix dependencies for moved files.
11203 * config/m32c/m32c-pragma.c
11205 * po/exgettext: Look in c-family/ also.
11207 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
11209 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
11210 (mark_control_dependent_edges_necessary): Call it instead of marking
11211 the last statement manually.
11212 (propagate_necessity): Likewise.
11214 2010-06-05 Jan Hubicka <jh@suse.cz>
11216 * basic-block.h (compute_dominance_frontiers): Updated.
11217 (compute_idf): Likewise.
11219 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
11220 for dominance frontiers.
11221 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
11222 (insert_updated_phi_nodes_for): Likewise.
11223 (update_ssa): Likewise.
11224 * cfganal.c (compute_dominance_frontiers_1): Likewise.
11225 (compute_dominance_frontiers): Likewise.
11226 (compute_idf): Likewise.
11227 * df-problems.c (df_md_local_compute): Likewise.
11229 2010-06-05 Anatoly Sokolov <aesok@post.ru>
11231 * target.h (struct gcc_target): Add memory_move_cost field.
11232 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
11233 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
11234 * targhooks.c (default_memory_move_cost): New function.
11235 * targhooks.h (default_memory_move_cost): Declare function.
11236 * reload.h (memory_move_cost): Declare.
11237 (memory_move_secondary_cost): Change type of 'in' argument to bool.
11238 * reginfo.c (memory_move_cost): New function.
11239 (memory_move_secondary_cost): Change type of 'in' argument to bool.
11240 * ira.h (ira_memory_move_cost): Update comment.
11241 * ira.c (ira_memory_move_cost): Update comment.
11242 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
11243 with memory_move_cost.
11244 * postreload.c (reload_cse_simplify_set): (Ditto.).
11245 * reload1.c (choose_reload_regs): (Ditto.).
11246 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
11247 (MEMORY_MOVE_COST): Revise documentation.
11249 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
11250 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
11251 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
11252 type of 'in' argument to bool.
11253 (TARGET_MEMORY_MOVE_COST): Define.
11255 2010-06-05 Jan Hubicka <jh@suse.cz>
11257 * ipa-pure-const.c (propagate): Fix typo in handling of functions
11258 that cannot return. Be more careful when merging the results with
11259 previously known ones.
11261 2010-06-05 Matthias Klose <doko@ubuntu.com>
11263 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
11264 function to add the -iplugindir option.
11265 (find_plugindir_spec_function): Add new declaration and function.
11266 (static_spec_func): Use it for "find-plugindir".
11268 2010-06-05 Jakub Jelinek <jakub@redhat.com>
11271 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
11272 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
11273 statement expression.
11275 2010-06-05 Jan Hubicka <jh@suse.cz>
11277 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
11278 (df_rd_problem_data): Convert sparse_invalidated_by_call,
11279 dense_invalidated_by_call to bitmap head.
11280 (df_rd_alloc, df_rd_bb_local_compute_process_def,
11281 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
11282 df_rd_start_dump, df_lr_verify_transfer_functions,
11283 df_live_verify_transfer_functions, df_chain_create_bb,
11284 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
11285 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
11286 df_simulate_one_insn_forwards, df_md_alloc,
11287 df_md_bb_local_compute_process_def,
11288 df_md_bb_local_compute_process_def, df_md_local_compute,
11289 df_md_transfer_function df_md_free): Update.
11291 2010-06-05 Joseph Myers <joseph@codesourcery.com>
11294 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
11295 target type for ADDR_EXPR; require no changes to qualifiers except
11296 for function types.
11297 * c-tree.h (c_build_type_variant): Remove.
11299 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
11301 * genautomata.c (get_excl_set): Do work per element, not per char.
11302 (check_presence_pattern_sets): Similar.
11303 (check_absence_pattern_sets): Similar.
11305 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
11307 * genautomata.c (curr_state_pass_num): Delete.
11308 (min_issue_delay_pass_states): Delete.
11309 (min_issue_delay): Delete.
11310 (initiate_min_issue_delay_pass_states): Delete.
11311 (output_min_issue_delay_table): Compute min_issue_delay_vect
11312 using a breadth-first search variant.
11313 (output_tables): Don't call initiate_min_issue_delay_pass_states.
11315 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
11318 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
11319 (df_byte_lr_bb_local_compute): Likewise.
11321 2010-06-03 Jason Merrill <jason@redhat.com>
11323 Implement noexcept operator (5.3.7)
11324 * c-common.c (c_common_reswords): Add noexcept.
11325 * c-common.h (enum rid): Add RID_NOEXCEPT.
11327 2010-06-04 Joseph Myers <joseph@codesourcery.com>
11329 * config/darwin-driver.c (darwin_default_min_version): Use
11330 GCC-specific formats in diagnostics.
11331 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
11333 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
11334 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
11335 eval_spec_function, handle_braces, process_brace_body, main,
11336 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
11337 getenv_spec_function, compare_version_strings,
11338 version_compare_spec_function): Use GCC-specific formats in
11341 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
11343 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
11344 that operand 0 and operand 1 are equal.
11345 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
11346 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
11347 and operand 1 are equal.
11348 <default>: Ditto. Remove ??? comment.
11349 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
11350 and operand 1 are equal.
11351 <default>: Ditto. Remove ??? comment.
11352 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
11354 (*add<mode>_4) <default>: Ditto.
11355 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
11357 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
11359 * config/i386/i386-protos.h (ix86_print_operand): Declare.
11360 * config/i386/i386.c (ix86_print_operand): Make non-static.
11361 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
11362 * output.h (output_operand): Declare.
11363 * final.c (output_operand): Make non-static.
11365 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
11367 PR rtl-optimization/44013
11368 * sched-deps.c (add_dependence_list_and_free): Don't free lists
11369 when processing debug insns.
11372 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
11373 recursing. Check that recursion is bounded. Rename inner var
11374 to avoid hiding incoming argument.
11376 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
11378 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
11379 operands[2] == 255.
11383 (*addqi_ext_1_rex64): Ditto.
11384 (*addqi_ext_1): Ditto.
11386 (*addqi_4): Check for incdec_operand in QImode.
11388 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
11389 using SWI mode iterator.
11390 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
11391 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
11393 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
11394 using SWI mode iterator.
11396 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
11399 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
11400 * c-format.c (gcc_diag_flag_specs): Add hash.
11401 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
11402 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
11403 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
11404 pp_c_cv_qualifiers. Handle qualifiers spelling here.
11405 (pp_c_type_qualifier_list): Call the function above.
11406 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
11407 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
11408 (WARN_FOR_QUALIFIERS): New macro.
11409 (convert_for_assignment): Use it.
11411 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
11413 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
11415 2010-06-04 Jan Hubicka <jh@suse.cz>
11417 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
11418 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
11419 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
11420 DF_BYTE_LR_OUT): Update for embedded bitmaps.
11421 * fwprop.c (single_def_use_enter_block): Likewise.
11422 * ddg.c (create_ddg_dep_from_intra_loop_link,
11423 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
11424 * loop-iv.c (latch_dominating_def): Likewise.
11425 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
11426 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
11427 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
11428 df_rd_transfer_function, df_rd_top_dump,
11429 df_rd_bottom_dump): Update.
11430 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
11431 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
11432 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
11433 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
11434 df_lr_verify_solution_start, df_lr_verify_solution_end,
11435 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
11436 df_live_free_bb_info, df_live_alloc, df_live_reset,
11437 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
11438 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
11439 df_live_verify_solution_start, df_live_verify_solution_end,
11440 df_live_verify_transfer_functions, df_chain_create_bb,
11441 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
11442 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
11443 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
11444 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
11445 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
11446 df_byte_lr_transfer_function, df_byte_lr_top_dump,
11447 df_byte_lr_bottom_dump, df_create_unused_note,
11448 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
11449 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
11450 df_md_transfer_function, df_md_init, df_md_confluence_0,
11451 df_md_confluence_n,
11452 df_md_top_dump, df_md_bottom_dump): Update.
11453 (struct df_lr_problem_data): Embedd bitmap headers.
11455 2010-06-04 Jan Hubicka <jh@suse.cz>
11457 * dce.c (dce_process_block): Do not re-scan already marked
11460 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
11462 PR rtl-optimization/39871
11463 PR rtl-optimization/40615
11464 PR rtl-optimization/42500
11465 PR rtl-optimization/42502
11466 * ira.c (init_reg_equiv_memory_loc: New function.
11467 (ira): Call it twice.
11468 * reload.h (calculate_elim_costs_all_insns): Declare.
11469 * ira-costs.c: Include "reload.h".
11470 (regno_equiv_gains): New static variable.
11471 (init_costs): Allocate it.
11472 (finish_costs): Free it.
11473 (ira_costs): Call calculate_elim_costs_all_insns.
11474 (find_costs_and_classes): Take estimated elimination costs
11476 (ira_adjust_equiv_reg_cost): New function.
11477 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
11478 * reload1.c (init_eliminable_invariants, free_reg_equiv,
11479 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
11480 (elim_bb): New static variable.
11481 (reload): Move code out of here into init_eliminable_invariants and
11482 free_reg_equiv. Call them.
11483 (calculate_elim_costs_all_insns): New function.
11484 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
11485 all callers changed. If FOR_COSTS is true, don't call alter_reg,
11486 but call note_reg_elim_costly if we turned a valid memory address
11487 into an invalid one.
11488 * Makefile.in (ira-costs.o): Depend on reload.h.
11490 2010-06-04 Julian Brown <julian@codesourcery.com>
11492 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
11495 2010-06-04 Richard Guenther <rguenther@suse.de>
11498 * cgraph.h (struct varpool_node): Add lto_file_data field.
11499 * lto-cgraph.c (input_varpool_node): Initialize it.
11501 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
11503 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
11504 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
11505 predicate in "type" attribute calculation.
11506 (*addsi_1_zext): Ditto.
11507 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
11508 (*addsi_2_zext): Ditto.
11509 (*add<mode>_3): Ditto.
11510 (*addsi_3_zext): Ditto.
11511 (*add<mode>_5): Ditto.
11513 2010-06-03 Jan Hubicka <jh@suse.cz>
11515 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
11517 * cfganal.c (compute_dominance_frontiers_1): Likewise.
11519 2010-06-03 Jan Hubicka <jh@suse.cz>
11521 * df-problems.c (df_create_unused_note, df_note_bb_compute):
11522 micro-optimize the checks when to add new note.
11524 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
11526 * final.c (output_asm_insn): Call
11527 targetm.asm_out.print_operand_punct_valid_p. Update comments.
11528 (output_operand): Call targetm.asm_out.print_operand. Update comments.
11529 (output_address): Call targetm.asm_out.print_operand_address.
11531 * target.h (struct gcc_target): Add print_operand,
11532 print_operand_address, and print_operand_punct_valid_p fields.
11533 * targhooks.h (default_print_operand): Declare.
11534 (default_print_operand_address): Declare.
11535 (default_print_operand_punct_valid_p): Declare.
11536 * targhooks.c (default_print_operand): Define.
11537 (default_print_operand_address): Define.
11538 (default_print_operand_punct_valid_p): Define.
11539 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
11540 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
11541 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
11542 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
11543 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
11544 * vmsdbgout.c (addr_const_to_string): Update comment.
11545 * config/i386/i386.c (print_operand): Rename to...
11546 (ix86_print_operand): ...this. Make static.
11547 (print_operand_address): Rename to...
11548 (ix86_print_operand_address): ...this. Make static. Call
11549 ix86_print_operand instead of PRINT_OPERAND.
11550 (ix86_print_operand_punct_valid_p): New function.
11551 (TARGET_PRINT_OPERAND): Define.
11552 (TARGET_PRINT_OPERAND_ADDRESS): Define.
11553 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11554 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
11555 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11556 (PRINT_OPERAND): Delete.
11557 (PRINT_OPERAND_ADDRESS): Delete.
11558 * config/i386/i386-protos.h (print_operand): Delete prototype.
11559 (print_operand_address): Delete prototype.
11561 2010-06-03 Richard Guenther <rguenther@suse.de>
11563 PR tree-optimization/44403
11564 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11565 Preserve pointer qualifiers.
11566 (vect_create_data_ref_ptr): Likewise.
11568 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
11571 * defaults.h (MAX_FIXED_MODE_SIZE): New.
11573 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
11575 2010-06-03 Jakub Jelinek <jakub@redhat.com>
11578 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
11579 return false if merging the bbs would lead to goto_locus
11580 location being lost from the IL.
11582 2010-06-03 Jan Hubicka <jh@suse.cz>
11583 Jakub Jelinek <jakub@redhat.com>
11585 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
11586 set->regs[i] is NULL or has just one entry.
11588 2010-06-03 Jan Hubicka <jh@suse.cz>
11590 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
11591 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
11593 2010-06-03 Paul Brook <paul@codesourcery.com>
11595 * config/arm/arm.c (FL_TUNE): Define.
11596 (arm_default_cpu, arm_cpu_select): Remove.
11597 (all_cores): Populate core field.
11598 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
11599 (arm_find_cpu): New function.
11600 (arm_handle_option): Lookup cpu/architecture names.
11601 (arm_override_options): Cleanup mcpu/march/mtune handling.
11602 (arm_file_start): Ditto.
11604 2010-06-03 Alan Modra <amodra@gmail.com>
11607 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
11608 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
11609 rtx to gen_load_toc_v4_PIC_1b. Tidy.
11610 (rs6000_emit_load_toc_table): Likewise.
11612 2010-06-02 Jan Hubicka <jh@suse.cz>
11614 * passes.c (init_optimization_passes): Put ipa reference
11615 after ipa pure-const.
11617 2010-06-02 Jan Hubicka <jh@suse.cz>
11619 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
11620 calls_read_all and calls_write_all.
11621 (get_reference_optimization_summary): Fix formatting.
11622 (is_proper_for_analysis): Check that decl is not readonly.
11623 (propagate_bits): Check CONST/PURE/noreturn flags.
11624 (ipa_init): Move all_module_statics to optimization_summary_obstack.
11625 (analyze_function): Ignore indirect edges.
11626 (copy_global_bitmap): For all module statics, do nothing.
11627 (generate_summary): Do not print calls_read_all/calls_write_all.
11628 (read_write_all_from_decl): Take node as argument; check
11629 cgraph_node_cannot_return.
11630 (propagate): Reorganize read_all/write_all computation;
11631 check indirect edges; check ecf flags; use all_module_statics
11632 in the results; do not free all_module_statics.
11633 (stream_out_bitmap): Handle all_module_statics.
11634 (ipa_reference_write_optimization_summary): Likewise; use
11635 varpool/cgraph encoders to get boundaries.
11636 (ipa_reference_read_optimization_summary): Read in all_module_statics;
11637 use it when possible.
11639 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11642 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
11643 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
11645 * doc/extend.texi (powerpc builtins): Document vec_recip,
11646 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
11648 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
11649 (rs6000_emit_swrsqrt): Ditto.
11650 (rs6000_emit_swdivsf): Delete.
11651 (rs6000_emit_swdivdf): Ditto.
11652 (rs6000_emit_swrsqrtsf): Ditto.
11654 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
11655 describe the reciprocal estimate support for each type.
11656 (recip_options): Map -mrecip=<opt> into option bits.
11657 (gen_2arg_fn_t): New typedef for binary rtx gen function.
11658 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
11659 reciprocal estimate instructions.
11660 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
11661 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
11662 Set up rs6000_recip_bits based on the -mrecip* options. Print the
11663 cost information if -mdebug=cost or -mdebug=reg.
11664 (rs6000_override_options): Set -mrecip-precision for power6, and
11665 power7 machines. If -mvsx or -mdfp, enable various options that
11666 came in previous instruction set ISAs, unless the option was
11667 explicitly disabled by the command line option. Parse
11668 -mrecip=<opt> options.
11669 (rs6000_builtin_vectorized_function): Add support for vectorizing
11670 the reciprocal estimate builtins and expansions.
11671 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
11672 (bdesc_2arg): Add reciprocal estimate builtins.
11673 (bdesc_1arg): Add reciprocal square root estimate builtins.
11674 (rs6000_expand_builtin): Rewrite to use a switch statement,
11675 instead of multiple if/then/elses. Add reciprocal estimate builtins.
11676 (rs6000_init_builtins): Create declarations for reciprocal
11678 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
11679 sized, prefer traditional floating point registers, if integer
11680 vector types, prefer altivec registers. Don't actually look at
11681 the memory address any more.
11682 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
11684 (rs6000_load_constant_and_splat): New helper function to load up
11685 the constant for reciprocal estimate instructions.
11686 (rs6000_emit_madd): New helper function for generating
11687 multiply/add type instructions, based on the current switches.
11688 (rs6000_emit_msub): Ditto.
11689 (rs6000_emit_mnsub): Ditto.
11690 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
11691 replace a divide with a reciprocal estimate and fixup, adding
11692 support for machines with high precision and vectors.
11693 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
11694 low precision machines.
11695 (rs6000_emit_swdiv): New common function to be called to replace a
11696 division with reciprocal estimate and fixup.
11697 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
11698 for double and vector types. Add support for high precision machines.
11700 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
11701 the reciprocal estimate instructions can be generated.
11702 (TARGET_FRE): Ditto.
11703 (TARGET_FRSQRTES): Ditto.
11704 (TARGET_FRSQRTE): Ditto.
11705 (RS6000_RECIP_*): New macros for reciprocal estimate support.
11707 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
11708 square root estimate on vectors.
11709 (re<mode>2): New insn for reciprocal division estimate on vectors.
11711 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
11713 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
11714 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
11715 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
11716 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
11717 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
11718 (RS6000_BUILTIN_RSQRT): Ditto.
11719 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
11720 floating point builtin.
11722 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
11723 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
11724 __RECIP_PRECISION__ based on the command line switches.
11725 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
11727 * config/rs6000/rs6000.opt (-mrecip): Document add support for
11728 replacing division instructions with reciprocal estimate and fixup.
11729 (-mrecip=<opt>): New option.
11730 (-mrecip-precision): Ditto.
11732 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
11733 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
11734 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
11737 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
11738 (UNSPEC_VREFP): Ditto.
11739 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
11740 conterparts with regard to support of -mno-fused-madd and -ffast-math.
11741 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
11742 reciprocal estimate instructions to be generated.
11743 (altivec_vrefp): Ditto.
11745 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
11747 (rreg): New mode attribute for reciprocal estimate support.
11748 (recip<mode>3): New insn for division using reciprocal estimate
11749 and fixup builtins.
11750 (divide define_split): New define_split to convert floating point
11751 division to use reciprocal estimate if the user used the
11752 appropriate options and the split is run when we can add new
11753 pseudo registers for the fixup.
11754 (rsqrt<mode>2): New insn for reciprocal square root support.
11755 (recipsf3): Move into recip<mode>3.
11757 (fres): Use TARGET_FRES.
11758 (rsqrtsf2): Move into rsqrt<mode>2.
11759 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
11760 (copysignsf3): Add support for VSX.
11761 (fred): Use TARGET_FRE.
11763 (rsqrtdf_internal1): New function for frsqrte instruciton.
11765 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
11766 (vec_rsqrt): Ditto.
11768 2010-06-03 Richard Guenther <rguenther@suse.de>
11770 PR middle-end/44291
11771 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
11772 (set_user_assembler_libfunc): Likewise.
11774 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
11776 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
11778 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
11780 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
11781 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
11782 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
11783 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
11784 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
11785 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
11786 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
11787 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
11788 * defaults.h: Updated for above mentioned changes.
11790 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
11792 * c-common.c: Remove header include of tm_p.h.
11793 * Makefile.in (c-common.o): Remove TM_P_H dependency.
11795 2010-06-02 Jakub Jelinek <jakub@redhat.com>
11797 * tree.h (struct tree_decl_map): New type.
11798 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
11799 (tree_decl_map_hash): New prototype.
11800 (debug_expr_for_decl, value_expr_for_decl): Change into
11801 tree_decl_map hashtab from tree_map.
11802 (init_ttree): Adjust initialization.
11803 (tree_decl_map_hash): New function.
11804 (decl_debug_expr_lookup, decl_debug_expr_insert,
11805 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
11807 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11809 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
11811 * configure: Regenerate.
11812 * config.in: Regenerate.
11814 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
11815 (X86_64_EMULATION): Define.
11816 (TARGET_LD_EMULATION): Use them.
11818 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
11819 (SPARC64_EMULATION): Define.
11820 (LINK_ARCH_SPEC): Use them.
11822 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
11824 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
11825 smallest_mode_for_size for computing the precision types of new
11826 graphite IVs. Do not call lang_hooks.types.type_for_size.
11828 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
11830 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
11832 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
11834 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
11836 PR middle-end/44363
11837 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
11838 return false instead.
11840 2010-06-02 Jan Hubicka <jh@suse.cz>
11842 PR middle-end/44295
11843 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
11844 create new cgraph node to check callee.
11846 2010-06-02 Richard Guenther <rguenther@suse.de>
11848 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
11850 2010-06-02 Richard Guenther <rguenther@suse.de>
11852 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
11853 (lto_wrapper_cleanup): ... this. Do not exit.
11854 (fatal): Adjust. Exit here.
11855 (fatal_perror): Likewise.
11856 (fatal_signal): New function.
11857 (main): Set up signal handlers to cleanup temporary files.
11858 * Makefile.in (lto-wrapper.o): Adjust dependencies.
11860 2010-06-02 Richard Guenther <rguenther@suse.de>
11862 PR tree-optimization/44377
11863 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
11865 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11867 * config/s390/2097.md (z10_fhex): Remove insn reservation.
11868 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
11869 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
11870 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
11872 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
11874 2010-06-02 Jan Hubicka <jh@suse.cz>
11876 * bitmap.c (bitmap_descriptor): Add search_iter.
11877 (bitmap_find_bit): Increment it.
11878 (print_statistics): Print it.
11880 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
11882 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
11883 instead of gimple_build_call_vec. Delete unnecessary local variable.
11885 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
11887 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
11888 change from yesterday.
11890 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
11892 * c-ada-spec.c: Clean up redundant includes.
11894 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
11896 * gimplify.c: Do not include except.h and optabs.h.
11897 (gimplify_body): Do not initialize RTL profiling.
11898 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
11899 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
11900 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
11901 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
11904 * tree-pretty-print.h: Include pretty-print.h.
11905 * gimple-pretty-print.h: Include pretty-print.h.
11907 * tree-pretty-print.c: Do not include diagnostic.h.
11908 * tree-vrp.c: Likewise.
11909 * tree-tailcall.c: Likewise
11910 * tree-scalar-evolution.c: Likewise
11911 * tree-ssa-dse.c: Likewise
11912 * tree-chrec.c: Likewise
11913 * tree-ssa-sccvn.c: Likewise
11914 * tree-ssa-copyrename.c: Likewise
11915 * tree-nomudflap.c: Likewise
11916 * tree-call-cdce.c: Likewise
11917 * tree-stdarg.c: Likewise
11918 * tree-ssa-math-opts.c: Likewise
11919 * tree-nrv.c: Likewise
11920 * tree-ssa-sink.c: Likewise
11921 * tree-browser.c: Likewise
11922 * tree-ssa-loop-ivcanon.c: Likewise
11923 * tree-ssa-loop.c: Likewise
11924 * tree-parloops.c: Likewise
11925 * tree-ssa-address.c: Likewise
11926 * tree-ssa-ifcombine.c: Likewise
11927 * tree-if-conv.c: Likewise
11928 * tree-data-ref.c: Likewise
11929 * tree-affine.c: Likewise
11930 * tree-ssa-phiopt.c: Likewise
11931 * tree-ssa-coalesce.c: Likewise
11932 * tree-ssa-pre.c: Likewise
11933 * tree-ssa-live.c: Likewise
11934 * tree-predcom.c: Likewise
11935 * tree-ssa-forwprop.c: Likewise
11936 * tree-ssa-dce.c: Likewise
11937 * tree-ssa-ter.c: Likewise
11938 * tree-ssa-loop-prefetch.c: Likewise
11939 * tree-optimize.c: Likewise
11940 * tree-ssa-phiprop.c: Likewise
11941 * tree-object-size.c: Likewise
11942 * tree-outof-ssa.c: Likewise
11943 * tree-ssa-structalias.c: Likewise
11944 * tree-switch-conversion.c: Likewise
11945 * tree-ssa-reassoc.c: Likewise
11946 * tree-ssa-operands.c: Likewise
11947 * tree-vectorizer.c: Likewise
11948 * tree-vect-data-refs.c: Likewise
11949 * tree-vect-generic.c: Likewise
11950 * tree-vect-stmts.c: Likewise
11951 * tree-vect-patterns.c: Likewise
11952 * tree-vect-slp.c: Likewise
11953 * tree-vect-loop.c: Likewise
11954 * tree-ssa-loop-ivopts.c: Likewise
11955 * tree-ssa-loop-im.c: Likewise
11956 * tree-ssa-loop-niter.c: Likewise
11957 * tree-ssa-loop-unswitch.c: Likewise
11958 * tree-ssa-loop-manip.c: Likewise
11959 * tree-ssa-loop-ch.c: Likewise
11960 * tree-dump.c: Likewise
11961 * tree-complex.c: Likewise
11963 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
11964 * tree-ssa-uninit.c: Likewise
11965 * tree-ssa-threadupdate.c: Likewise
11966 * tree-ssa-uncprop.c: Likewise
11967 * tree-ssa-ccp.c: Likewise
11968 * tree-ssa-dom.c: Likewise
11969 * tree-ssa-propagate.c: Likewise
11970 * tree-ssa-alias.c: Likewise
11971 * tree-dfa.c: Likewise
11972 * tree-cfgcleanup.c: Likewise
11973 * tree-sra.c: Likewise
11974 * tree-ssa-copy.c: Likewise
11975 * tree-ssa.c: Likewise
11976 * tree-profile.c: Likewise
11977 * tree-cfg.c: Likewise
11978 * tree-ssa-threadedge.c: Likewise
11979 * tree-vect-loop-manip.c: Likewise
11981 * tree-inline.c: Do not include diagnostic.h and expr.h.
11983 (copy_decl_for_dup_finish): Do not use NULL_RTX.
11985 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
11986 * tree-loop-distribution.c: Likewise.
11988 2010-06-01 Jan Hubicka <jh@suse.cz>
11990 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
11992 2010-06-01 Jan Hubicka <jh@suse.cz>
11994 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
11995 remove return value.
11996 (split_bbs_on_noreturn_calls) .... here.
11997 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
11998 * tree-flow.h (fixup_noreturn_call): New.
12000 2010-06-01 Jan Hubicka <jh@suse.cz>
12002 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
12004 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
12006 * tree.h (build_nt_call_list): Delete.
12007 * tree.c (build_nt_call_list): Delete.
12009 2010-06-01 Jan Hubicka <jh@suse.cz>
12011 * fwprop.c: Make emit-rtl.h include last.
12012 * rtlanal.c: Include emit-rtl.h.
12013 * genautomata.c: Output emit-rtl include into insn-automata.c
12014 * df-scan.c: Include emit-rtl.h.
12015 * haifa-sched.c: Indlude emit-rtl.h.
12016 * mode-switching.c: Indlude emit-rtl.h.
12017 * graph.c: Indlude emit-rtl.h.
12018 * sel-sched.c: Include emit-rtl.h.
12019 * sel-sched-ir.c: Include emit-rtl.h.
12020 * ira-build.c: Include emit-rtl.h.
12021 * emit-rtl.c (first_insn, last_insn): Remove defines.
12022 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
12023 Move to emit-rtl.h.
12024 (set_new_first_and_last_insn, get_last_insn_anywhere,
12025 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
12026 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
12027 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
12028 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
12029 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
12030 Use accessor functions.
12031 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
12032 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
12033 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
12034 mem_expr_equal_p): Move here from rtl.h.
12035 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
12036 Move here from emit-rtl.c; make inline.
12037 * cfglayout.h: Include emit-rtl.h.
12038 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
12039 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
12040 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
12041 mem_expr_equal_p, get_insns, set_first-insn,
12042 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
12043 * reg-stack.c: Include emit-rtl.h.
12046 2010-06-01 Jan Hubicka <jh@suse.cz>
12048 * cgraph.h (tree_function_versioning): Update prototype.
12049 (cgraph_function_versioning): Update prototype.
12050 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
12052 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
12053 (cgraph_materialize_clone, save_inline_function_body): Update use of
12054 tree_function_versioning.
12055 * tree-inline.c (copy_bb): Look for previous copied block to link
12056 after; fix debug output.
12057 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
12058 (copy_body): Likewise.
12059 (expand_call_inline): Update use of copy_body.
12060 (tree_function_versioning): Update use of copy body; accept
12061 blocks_to_copy and new_entry.
12063 2010-06-01 Jan Hubicka <jh@suse.cz>
12065 * gegenrtl.c: Remove unnecesary prototypes.
12067 (gendef): Produce static inline.
12069 (main): Do not decode parameters; generate header only.
12070 * Makefile.in (genrtl.c): Remove.
12072 2010-06-01 Jan Hubicka <jh@suse.cz>
12074 * tree-switch-conversion.c (build_one_array): Make it readonly.
12076 2010-06-01 Richard Guenther <rguenther@suse.de>
12078 * optabs.c (init_optabs): Guard all accesses to reinit.
12079 * ipa-pure-const.c (propagate): Fix another typo.
12080 * opts.c (common_handle_option): Split assignment to bool.
12081 * c-opts.c (c_common_handle_option): Likewise.
12083 2010-06-01 Arnaud Charlet <charlet@adacore.com>
12084 Matthew Gingell <gingell@adacore.com>
12086 * doc/invoke.texi: Mention -fdump-ada-spec.
12087 * tree-dump.c (dump_files): Add ada-spec.
12088 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
12089 * tree-pass.h (tree_dump_index): Add TDI_ada.
12090 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
12091 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
12092 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
12093 * c-decl.c: Include c-ada-spec.h.
12094 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
12096 (c_write_global_declarations): Add handling of -fdump-ada-spec.
12097 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
12098 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
12099 * c-ada-spec.h, c-ada-spec.c: New files.
12101 2010-06-01 Richard Guenther <rguenther@suse.de>
12104 * ipa-pure-const.c (get_function_state): Hand back varying state
12105 if we do not have one.
12106 (has_function_state): New function.
12107 (duplicate_node_data): Adjust.
12108 (remove_node_data): Likewise.
12109 (pure_const_write_summary): Likewise.
12110 (propagate): Likewise. Fix typo.
12112 2010-06-01 Jan Hubicka <jh@suse.cz>
12114 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
12115 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
12116 (execute_all_ipa_transforms): Do not play with the states.
12118 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
12120 * config/arm/t-linux-androideabi: New.
12121 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
12123 2010-06-01 Jan Hubicka <jh@suse.cz>
12125 * tree-inline.c (estimate_num_insns): For stdarg functions look
12126 into call statement to count cost of argument passing.
12128 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
12130 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
12131 argument for fprintf.
12132 (ix86_output_addr_diff_elt): Likewise.
12133 (x86_function_profiler): Likewise.
12134 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
12135 (LPREFIX): Likewise.
12136 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
12138 2010-05-31 Jakub Jelinek <jakub@redhat.com>
12141 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
12142 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
12143 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
12144 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
12145 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
12146 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
12147 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
12148 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
12151 2010-05-31 Jan Hubicka <jh@suse.cz>
12153 * tree.h (tree_range_check_failed): Declare noreturn.
12155 2010-05-31 Jan Hubicka <jh@suse.cz>
12157 * gimple.c (gimple_call_builtin_p): New function.
12158 * gimple.h (gimple_call_builtin_p): Declare.
12159 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
12161 (execute_warn_function_return): BUILT_IN_RETURN is return.
12162 (split_critical_edges): Return edges are not critical.
12163 (is_ctrl_altering_stmt): Builtin_in_return is altering.
12164 (gimple_verify_flow_info): Handle built_in_return.
12165 (execute_warn_function_return): Handle built_in_return.
12166 * ipa-pure-const.c (check_call): Ignore builtin_return.
12168 2010-05-31 Jakub Jelinek <jakub@redhat.com>
12170 PR middle-end/44337
12171 * expr.c (expand_assignment): Don't store anything for out-of-bounds
12172 array accesses with non-MEM.
12174 PR tree-optimization/44182
12175 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
12176 newly needs to end a bb is followed by debug stmts, instead return
12177 true from the function at the end.
12178 (maybe_move_debug_stmts_to_successors): New function.
12179 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
12181 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
12184 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
12186 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
12188 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
12189 for nested functions in non-optimized compilation.
12191 2010-05-31 Richard Guenther <rguenther@suse.de>
12193 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
12195 2010-05-30 Jan Hubicka <jh@suse.cz>
12197 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
12199 2010-05-30 Richard Guenther <rguenther@suse.de>
12202 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
12203 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
12206 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
12208 * config/darwin.c (output_objc_section_asm_op): Add comment.
12209 (name_needs_quotes): Add '_' to list of valid comment chars.
12210 (machopic_output_function_base_name): Remove unneeded quotes.
12211 (darwin_encode_section_info): Adjust asm whitespace.
12212 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
12213 (ASM_OUTPUT_LOCAL): Ditto.
12214 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
12215 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
12216 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
12218 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
12220 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
12221 RS6000_OUTPUT_BASENAME unconditionally.
12222 (rs6000_output_function_epilogue): Likewise.
12224 2010-05-30 Jan Hubicka <jh@suse.cz>
12226 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
12229 2010-05-30 Richard Guenther <rguenther@suse.de>
12231 * tree-cfg.c (verify_gimple_assign_single): Implement
12232 verification for COND_EXPR rhs.
12234 2010-05-30 Jan Hubicka <jh@suse.cz>
12236 * cgraph.h (cgraph_dump_file): Declare.
12237 * cgraphunit.c (cgraph_dump_file): Export.
12238 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
12240 2010-05-30 Jan Hubicka <jh@suse.cz>
12242 * dwarf2out.c (reference_to_unused,
12243 premark_types_used_by_global_vars_helper): Avoid creation of new
12246 2010-05-30 Jan Hubicka <jh@suse.cz>
12248 * cgraph.h (cgraph_node_cannot_return,
12249 cgraph_edge_cannot_lead_to_return): New functions.
12250 * cgraph.c (cgraph_node_cannot_return,
12251 cgraph_edge_cannot_lead_to_return): Use them.
12252 * ipa-pure-const.c (pure_const_names): New static var.
12253 (check_call): Handle calls not leading to return.
12254 (pure_const_read_summary): Dump info read.
12255 (propagate): Dump info about propagation process; ignore side effects
12256 of functions not leading to exit; fix handling of pure functions.
12258 2010-05-30 Jan Hubicka <jh@suse.cz>
12260 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
12261 for tail call epilogues.
12263 2010-05-30 Jan Hubicka <jh@suse.cz>
12265 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
12266 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
12269 2010-05-29 Jan Hubicka <jh@suse.cz>
12271 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
12272 node; remove references in node we no longer keep in cgrpah but need
12275 2010-05-29 Jan Hubicka <jh@suse.cz>
12277 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
12279 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12282 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
12284 2010-05-29 Jan Hubicka <jh@suse.cz>
12286 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
12287 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
12288 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
12289 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
12290 debug_names_replaced_by, debug_update_ssa): Likewise.
12291 * sbitmap.c (debug_sbitmap): Likewise.
12292 * genrecog.c (debug_decision, debug_decision_list): Likewise.
12293 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
12294 debug_tree_chain): Likewise.
12295 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
12296 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
12297 * optabs.c (debug_optab_libfuncs): Likewise.
12298 (verify_loop_closed_ssa): Likewise.
12299 * value-prof.c (verify_histograms): Likewise.
12300 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
12301 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
12302 * cfghooks.c (verify_flow_info): Likewise.
12303 * fold-const.c (debug_fold_checksum): Likewise.
12304 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
12305 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
12307 * omega.c (debug_omega_problem): Likewise.
12308 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
12309 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
12310 * dominance.c (verify_dominators, debug_dominance_info,
12311 debug_dominance_tree): Likewise.
12312 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
12313 * df_regno_debug, df_ref_debug,
12314 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
12315 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
12316 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
12317 * sel-sched.c (debug_state): Likewise.
12318 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
12320 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
12321 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
12322 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
12323 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
12325 * c-pretty-print.c (debug_c_tree): Likewise.
12326 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
12327 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
12328 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
12329 * ebitmap.c (debug_ebitmap): Likewise.
12330 * function.c (debug_find_var_in_block_tree): Likewise.
12331 * print-rtl.c (debug_rtx): Likewise.
12332 (debug_rtx_count): Likewise.
12333 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
12334 * stor-layout.c (debug_rli): Likewise.
12335 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
12336 * tree-data-ref.c (debug_data_references,
12337 debug_data_dependence_relations, debug_data_reference,
12338 debug_data_dependence_relation, debug_rdg_vertex,
12339 debug_rdg_component, debug_rdg): Likewise.
12340 * tree-affine.c (debug_aff): Likewise.
12341 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
12343 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
12344 * emit-rtl.c (verify_rtl_sharing): Likewise.
12345 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
12346 debug_value_expressions): Likewise.
12347 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
12348 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
12349 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
12350 * cfglayout.c (verify_insn_chain): Likewise.
12351 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
12352 debug_clast_stmt, debug_generated_program): Likewise.
12353 * ggc-page.c (debug_print_page_list): Likewise.
12354 * tree-ssa-ter.c (debug_ter): Likewise.
12355 * graphite-dependences.c (debug_pddr): Likewise.
12356 * sched-deps.c (debug_ds): Likewise.
12357 * tree-ssa.c (verify_ssa): Likewise.
12358 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
12359 debug_scattering_functions, debug_iteration_domains, debug_pdr,
12360 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
12361 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
12362 * tree-inline.c (debug_find_tree): Likewise.
12363 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
12364 debug_ppl_powerset_matrix): Likewise.
12365 * var-tracking.c (debug_dv): Likewise.
12366 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
12367 * cfgloop.c (verify_loop_structure): Likewise.
12368 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
12369 * c-common.c (verify_sequence_points): Likewise.
12370 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
12371 debug_candidates, debug_rgn_dependencies): Likewise.
12372 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
12373 * debug_constraint_graph, debug_solution_for_var,
12374 debug_sa_points_to_info): Likewise.
12375 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
12377 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
12378 debug_loops, debug_loop, debug_loop_num): Likewise.
12379 * passes.c (debug_pass): Likewise.
12380 (dump_properties): Likewise; add cfglayout property.
12381 (debug_properties): Likewise.
12382 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
12383 * varpool.c (debug_varpool): Likewise.
12384 * regcprop.c (debug_value_data): Likewise.
12385 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
12386 debug_immediate_uses_for): Likewise.
12388 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
12391 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
12392 Filter out insn-flags.h.
12394 2010-05-29 Jan Hubicka <jh@suse.cz>
12396 * cgraph.h (struct varpool_node_set_def,
12397 struct cgraph_node_set_def): Remove unused AUX pointer.
12398 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
12401 2010-05-29 Jan Hubicka <jh@suse.cz>
12403 PR middle-end/44324
12404 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
12406 2010-05-29 Richard Guenther <rguenther@suse.de>
12408 * lto-streamer.c (cached_bp): New global variable.
12409 (bitpack_create): Return the cached bitpack, if available.
12410 (bitpack_delete): Clear and cache the bitpack, if appropriate.
12411 (bp_pack_value): Remove redundant asserts.
12413 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
12415 PR middle-end/44306
12416 * tree-if-conv.c (is_true_predicate): New.
12417 (is_predicated): Use is_true_predicate.
12418 (add_to_predicate_list): Same. Do not use unshare_expr.
12419 (add_to_dst_predicate_list): Same.
12421 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
12423 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
12425 (predicate_bbs): Same.
12426 (clean_predicate_lists): Same.
12427 (find_phi_replacement_condition): Do not AND the predicate from
12430 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
12433 * Makefile.in (build/gencondmd.o): Add a missing `\'.
12435 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12438 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
12439 (negdf2): Adjust expander pattern and use negdf2_slow.
12440 (negsf2): Likewise.
12442 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
12444 * basic-block.h (struct control_flow_graph): Move last_label_uid field
12446 * df.h (struct df_base_ref): Move regno field up.
12447 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
12448 * expr.h (struct separate_ops): Move location field up.
12449 * optabs.h (struct optab_d): Move libcall_basename field down.
12450 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
12451 * config/i386/i386.h (struct machine_function): Convert call_abi field
12452 into a bitfield. Move cfa field to the end of the structure.
12454 2010-05-29 Jan Hubicka <jh@suse.cz>
12456 * varpool.c (varpool_get_node): Fix lookup.
12458 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
12460 * config/spu/spu-protos.h: Do not include rtl.h. Protect
12461 RTL specific prototypes with #ifdef RTX_CODE.
12462 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
12463 * config/spu/t-spu-elf: Fix dependencies.
12465 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
12467 2010-05-29 Mike Stump <mikestump@comcast.net>
12470 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
12471 TM_H when building to avoid dependency loops.
12473 2010-05-29 Jan Hubicka <jh@suse.cz>
12475 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
12476 refs and body; not the whole node for masters of materialized clones.
12478 2010-05-29 Mike Stump <mikestump@comcast.net>
12480 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
12482 2010-05-29 Jan Hubicka <jh@suse.cz>
12484 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
12485 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
12486 use of clone_function_name.
12487 * cgraph.h (cgraph_create_virtual_clone,
12488 cgraph_function_versioning): update prototypes.
12489 (clone_function_name): Declare.
12490 * ipa-cp.c (ipcp_insert_stage): Update call of
12491 cgraph_create_virtual_clone.
12492 * omp-low.c (create_omp_child_function_name): Use
12493 cgraph_create_virtual_clone.
12494 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
12495 (cgraph_function_versioning): Take SUFFIX argument; produce new name
12496 and make decl local.
12498 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
12500 * vec.h: Include statistics.h
12501 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
12504 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
12506 * c-lex.c: Do not include c-tree.h.
12507 * c-pretty-print.c: Likewise.
12508 * c-opts.c: Likewise.
12509 * c-gimplify.c: Likewise.
12510 * c-common.c: Likewise.
12511 * c-dump.c: Likewise. Include c-common.h.
12513 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
12515 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
12516 before including diagnostic-core.h.
12517 (c_cpp_error): New prototype moved from c-tree.h.
12518 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
12519 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
12520 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
12521 (c_cpp_error): Prototype moved to c-common.h.
12522 * Makefile.in: Update dependency for C_COMMON_H.
12524 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
12526 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
12527 * c-common.c (c_register_addr_space): Remove here.
12528 * c-decl.c (c_register_addr_space): Re-add here.
12530 2010-05-28 Mike Stump <mikestump@comcast.net>
12532 * config/darwin-c.c: Remove c-tree.h include.
12534 2010-05-28 Joseph Myers <joseph@codesourcery.com>
12536 * gcc.c: Include diagnostic.h.
12537 (error_count): Remove. All users changed to use errorcount.
12538 (programname): Remove. All users changed to use progname.
12539 (fancy_abort, internal_error, fatal_error, error, warning, inform,
12541 (execute): Don't include "Internal error" and bug reporting
12542 information in argument of internal_error call.
12543 (process_command): Don't increment error_count after calling
12545 (input_filename): Rename to gcc_input_filename. All users
12547 (main): Call diagnostic_initialize. Register delete_temp_files
12548 with atexit. Use seen_error to test for errors.
12549 * gcc.h: Include diagnostic-core.h.
12550 (fatal_error, error, warning): Remove.
12551 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
12552 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
12553 (gcc.o): Update dependencies.
12555 2010-05-28 Jeff Law <law@redhat.com>
12557 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
12559 * ira.h (ira_bad_reload_regno): Declare
12560 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
12562 * ira-color.c (update_curr_costs): Free updated hard reg costs.
12563 (ira_reassign_conflict_allocnos): Remove bogus asserts.
12564 (allocno_reload_assign): Likewise.
12566 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
12568 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
12571 2010-05-28 Richard Guenther <rguenther@suse.de>
12574 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
12575 Stream fixed-point constants mode.
12576 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
12577 and TYPE_PRECISION.
12578 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
12579 Stream fixed-point constants mode.
12580 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
12581 and TYPE_PRECISION.
12583 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
12585 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
12586 only place it was called from.
12587 (number_of_latch_executions): Do not return chrec_dont_know when the
12588 may_be_zero is a runtime condition: instead, return a COND_EXPR
12589 including the may_be_zero condition.
12590 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
12592 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
12595 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
12597 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
12598 generate COND_EXPRs for degenerate_phi_result.
12600 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
12602 PR middle-end/44293
12603 * tree-if-conv.c (if_convertible_loop_p): Check the
12604 if-convertibility of phi nodes in non predicated BBs.
12606 2010-05-28 Joseph Myers <joseph@codesourcery.com>
12608 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
12610 2010-05-28 Joseph Myers <joseph@codesourcery.com>
12613 * gcc.c (inform, warning, inform): New functions.
12614 (fatal_ice): Rename to internal_error; change cmsgid parameter to
12615 gmsgid. All callers changed.
12616 (notice): Rename to fnotice; add parameter fp. All callers changed.
12617 (fatal_error): Rename to fatal_signal. All users changed.
12618 (fatal): Rename to fatal_error; change cmsgid parameter to
12619 gmsgid. All callers changed.
12620 (process_command): Use warning instead of error for warnings.
12621 (end_going_arg): Don't use _() around argument of error.
12622 (do_spec_1): Use inform for message from %n specs. Use warning
12623 instead of error for warnings.
12624 (main): Use inform for comparison messages. Use warning for
12625 message about unused linker input.
12626 (error): Increment error_count. Print "error: ".
12627 * gcc.h (fatal): Change to fatal_error.
12628 (warning): Declare.
12629 * config/darwin-driver.c (darwin_default_min_version): Use warning
12630 instead of fprintf for warnings.
12631 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
12633 2010-05-28 Julian Brown <julian@codesourcery.com>
12635 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
12636 (*thumb2_addsi3_compare0_scratch): New.
12637 * config/arm/constraints.md (Pv): New.
12638 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
12640 (*addsi3_compare0_scratch): Likewise.
12642 2010-05-28 Jan Hubicka <jh@suse.cz>
12644 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
12646 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
12647 only on local statics.
12649 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
12651 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
12653 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
12656 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
12657 (OPTION_GLIBC): Define.
12659 2010-05-28 Jakub Jelinek <jakub@redhat.com>
12662 * dwarf2out.c (double_int_type_size_in_bits): New function.
12663 (round_up_to_align): Change first argument and return value to
12665 (field_byte_offset): Work internally on double_ints.
12668 * builtins.c (expand_movstr): Use a temporary pseudo instead
12669 of target even when target is not NULL and not const0_rtx, but
12670 fails movstr predicate.
12671 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
12673 2010-05-28 Joseph Myers <joseph@codesourcery.com>
12675 * final.c (rest_of_clean_state): Use %m in errors instead of
12677 * gengtype.c (read_input_list, close_output_files): Use xstrerror
12678 instead of strerror.
12679 * toplev.c (process_options): Use %m in errors instead of strerror
12681 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
12684 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
12686 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
12687 (ix86_canonical_va_list_type): Make static. Add declaration.
12688 (ix86_enum_va_list): Make static. Reindent.
12689 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
12690 (ix86_canonical_va_list_type): Ditto.
12691 (ix86_enum_va_list): Ditto.
12693 2010-05-28 Richard Guenther <rguenther@suse.de>
12695 * lto-wrapper.c (run_gcc): With -save-temps generate a
12696 user-visible ltrans filename. Fixup ltrans unit numbering.
12698 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
12700 * c-common.c (c_common_nodes_and_builtins): Replace use
12701 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
12702 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
12703 to ix86_enum_va_list.
12704 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
12705 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
12706 (TARGET_ENUM_VA_LIST_P): Add hook description.
12707 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
12708 * target.h (gcc_target): Add enum_va_list hook.
12711 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
12712 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
12713 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
12715 2010-05-28 Alan Modra <amodra@gmail.com>
12718 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
12719 emit_library_call machinery to set up __tls_get_addr calls.
12721 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12723 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
12725 2010-05-28 Dodji Seketeli <dodji@redhat.com>
12727 Revert fix for PR c++/44188
12728 * c-common.c (is_typedef_decl): Revert the moving of this
12730 * tree.c (is_typedef_decl): ... here.
12731 (typdef_variant_p): Revert the moving of this definition
12732 here from gcc/cp/tree.c.
12733 * c-common.h (is_typedef_decl): Revert the moving of this
12735 * tree.h (is_typedef_decl): ... here.
12736 (typedef_variant_p): Revert the moving of this declaration here
12737 from gcc/cp/cp-tree.h
12738 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
12739 (gen_tagged_type_die): Revert the splitting out of ...
12740 (gen_type_die_with_usage): ... this function. Revert the anonymous
12741 tagged type handling.
12742 (gen_typedef_die): Revert emitting DW_TAG_typedef for
12743 typedefs naming anonymous tagged types.
12745 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
12747 * config/rs6000/rs6000-modes.def (PSImode): Delete.
12749 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
12751 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
12752 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
12754 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
12756 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
12757 XER_REGS to CA_REGS throughout.
12758 * config/rs6000/rs6000.h: Same.
12759 (ADDITIONAL_REGISTER_NAMES): Add "xer".
12760 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
12761 that mode_iterator "P" is the size for arithmetic carries as well.
12762 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
12764 2010-05-28 Jakub Jelinek <jakub@redhat.com>
12767 * combine.c (struct rtx_subst_pair): Define unconditionally.
12768 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
12769 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
12770 Call make_compound_operation on pair->to.
12771 (propagate_for_debug): Don't call make_compound_operation here.
12772 Always use simplify_replace_fn_rtx.
12774 2010-05-27 Sterling Augustine <sterling@tensilica.com>
12776 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
12777 * config/xtensa/xtensa.c (override_options): Check
12778 TARGET_FORCE_NO_PIC and set flag_pic.
12779 * config/xtensa/xtensa.opt: Document -mforce-no-pic
12781 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
12784 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
12785 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
12787 2010-05-27 Joseph Myers <joseph@codesourcery.com>
12789 * diagnostic-core.h: New. Contents moved from diagnostic.h and
12791 * diagnostic.c: Don't include toplev.h.
12792 (progname): Define. Moved from toplev.c.
12793 (seen_error): New function.
12794 * diagnostic.h: Include diagnostic-core.h.
12795 (diagnostic_t, emit_diagnostic): Don't declare here.
12796 * toplev.c (progname): Move to toplev.c.
12797 (emit_debug_global_declarations, compile_file, finalize,
12798 do_compile, toplev_main): Use seen_error.
12799 * toplev.h: Include diagnostic-core.h.
12800 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
12801 internal_error, warning, warning_at, error, error_n, error_at,
12802 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
12803 verbatim, fnotice, progname): Move to diagnostic-core.h.
12804 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
12805 (expand_builtin_expect): Use seen_error.
12806 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
12807 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
12808 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
12809 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
12810 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
12811 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
12812 errorcount for errors.
12813 * c-opts.c (c_common_finish): Use seen_error.
12814 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
12815 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
12816 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
12817 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
12818 (get_coverage_counts): Use seen_error.
12819 * dwarf2out.c (dwarf2out_finish): Use seen_error.
12820 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
12821 gimplify_body): Use seen_error.
12822 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
12823 * ipa-pure-const.c (gate_pure_const): Use seen_error.
12824 * ipa-reference.c (gate_reference): Use seen_error.
12825 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
12826 * lambda-code.c: Include diagnostic-core.h instead of
12828 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
12829 * lto-compress.c: Include diagnostic-core.h instead of
12831 * lto-section-in.c: Include diagnostic-core.h instead of
12833 * lto-streamer-out.c: Include diagnostic-core.h instead of
12835 * lto-streamer.c: Include diagnostic-core.h instead of
12837 (gate_lto_out): Use seen_error.
12838 * matrix-reorg.c: Include diagnostic-core.h instead of
12840 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
12841 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
12842 (gate_expand_omp, lower_omp_1): Use seen_error.
12843 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
12844 (rest_of_decl_compilation, rest_of_type_compilation,
12845 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
12846 * tree-cfg.c (label_to_block_fn): Use seen_error.
12847 * tree-inline.c (optimize_inline_calls): Use seen_error.
12848 * tree-mudflap.c (mudflap_finish_file): Use
12850 * tree-optimize.c (gate_all_optimizations,
12851 gate_all_early_local_passes, gate_all_early_optimizations): Use
12853 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
12854 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
12855 (varpool_remove_unreferenced_decls,
12856 varpool_assemble_pending_decls): Use seen_error.
12857 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
12858 (TOPLEV_H, DIAGNOSTIC_H): Update.
12859 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
12860 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
12861 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
12862 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
12863 coverage.o, lambda-code.o): Update dependencies.
12865 2010-05-25 Dodji Seketeli <dodji@redhat.com>
12868 * c-common.c (is_typedef_decl): Move this definition ...
12869 * tree.c (is_typedef_decl): ... here.
12870 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
12871 * c-common.h (is_typedef_decl): Move this declaration ...
12872 * tree.h (is_typedef_decl): ... here.
12873 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
12874 * dwarf2out.c (is_naming_typedef_decl): New function.
12875 (gen_tagged_type_die): Split out of ...
12876 (gen_type_die_with_usage): ... this function. When an anonymous
12877 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
12878 is emitted for the typedef.
12879 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
12880 anonymous tagged types.
12882 2010-05-27 Jason Merrill <jason@redhat.com>
12884 * print-tree.c (debug_vec_tree): New fn.
12885 (print_vec_tree): New fn.
12886 * tree.h: Declare them.
12887 * gdbinit.in (pvt): New command.
12889 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
12891 * gdbinit.in (pdd): New command.
12893 2010-05-27 Jan Hubicka <jh@suse.cz>
12895 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
12896 (update_caller_keys): Return early if there are no callers;
12897 only update fibheap when decresing the key.
12898 (update_callee_keys): Avoid recursion.
12899 (decide_inlining_of_small_functions): When badness does not match;
12900 re-insert into fibheap.
12902 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
12904 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
12905 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
12906 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
12907 (ALL_HOST_OBJS): Now a union of the above two.
12908 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
12909 all files in ALL_HOST_FRONTEND_OBJS.
12910 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
12912 * c-common.c: Pretend to be a backend file by undefining
12913 IN_GCC_FRONTEND (still need rtl.h here).
12915 2010-05-27 Jan Hubicka <jh@suse.cz>
12917 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
12918 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
12920 2010-05-27 Jan Hubicka <jh@suse.cz>
12922 * sched-ebb.c: Rename struct deps to struct deps_desc.
12924 * sel-sched-ir.c: Likewise.
12925 * sched-deps.c: Likewise.
12926 * sched-int.h: Likewise.
12927 * sched-rgn.c: Likewise.
12929 2010-05-27 Jon Beniston <jon@beniston.com>
12932 * config/lm32/lm32.h: Remove definition of
12933 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
12935 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
12938 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
12940 2010-05-27 Richard Guenther <rguenther@suse.de>
12942 PR tree-optimization/44284
12943 * tree-vect-stmts.c (vectorizable_assignment): Handle
12944 sign-changing conversions as simple copy.
12946 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12948 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
12950 (__gthread_active_p): Check for pthread_create if compiling against
12953 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12955 Support compilation for Android platform. Reimplement -mandroid.
12957 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
12958 (*android*): Set ANDROID_DEFAULT.
12959 (arm*-*-linux*): Include linux-android.h.
12960 (arm*-*-eabi*): Don't include previous -mandroid implementation.
12961 * config/arm/eabi.h: Remove, move Android-specific parts ...
12962 * config/linux-android.h: ... here. New file.
12963 * config/arm/eabi.opt: Rename to ...
12964 * config/linux-android.opt: ... this.
12965 (mandroid): Allow -mno-android option. Initialize based on
12967 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
12968 Move logic to corresponding LINUX_TARGET_* macros.
12969 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
12970 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
12971 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
12972 Android definitions.
12973 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
12974 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
12977 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12979 Add support for Bionic C library
12981 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
12983 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
12984 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
12986 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
12987 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
12988 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
12989 to support multiple C libraries. Handle Bionic.
12990 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
12991 (BIONIC_DYNAMIC_LINKER64): Define.
12992 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
12994 (TARGET_HAS_SINCOS): Enable for Bionic.
12996 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
12997 the last option specified on command line take effect.
12998 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
13000 (mglibc, muclibc): Update.
13002 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
13003 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
13006 * doc/invoke.texi (-mglibc, -muclibc): Update.
13007 (-mbionic): Document.
13009 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13011 * c-common.h (c_register_addr_space): Add prototype.
13012 (ADDR_SPACE_KEYWORD): Remove.
13013 * c-common.c (c_register_addr_space): New function.
13014 (c_addr_space_name): Reimplement.
13015 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
13017 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
13018 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
13020 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
13021 Remove TARGET_ADDR_SPACE_KEYWORDS.
13023 2010-05-27 Joseph Myers <joseph@codesourcery.com>
13025 * input.c: New file.
13026 * input.h (main_input_filename): Move declaration to toplev.h.
13027 * toplev.c (input_location, line_table): Move to input.c
13028 * toplev.h (main_input_filename): Move declaration from input.h.
13029 * tree.c (expand_location): Move to input.c.
13030 * Makefile.in (OBJS-common): Add input.o.
13031 (input.o): Add dependencies.
13033 2010-05-27 Richard Guenther <rguenther@suse.de>
13035 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
13036 for non-existant files.
13037 (fork_execute): Mark args_name file as deleted.
13039 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
13042 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
13043 (narrow_signed_type): Likewise.
13045 2010-05-26 Jan Hubicka <jh@suse.cz>
13047 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
13048 edge only when checking is enabled; check using former_clone_of;
13049 check inline clones too.
13050 (cgraph_materialize_clone): Record former_clone_of pointer.
13051 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
13052 combining redirections; dump args_to_skip bitmap
13053 (cgraph_materialize_all_clones): Do no redirection here.
13054 * ipa-inline.c (inline_transform): Do redirection here.
13055 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
13058 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
13060 * config/avr/avr-c.c: Do not include regs.h.
13061 Include cpplib.h for cpp_define and tree.h for c-common.h.
13062 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
13063 * config/avr/t-avr: Fix dependencies for avr-c.o.
13065 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
13067 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
13068 string instead of SYMBOL_REF rtx.
13069 * rtl.h (set_stack_check_libfunc): Move prototype from here...
13070 * libfuncs.h: ...to here. Adjust for explow.c change.
13072 2010-05-26 Joseph Myers <joseph@codesourcery.com>
13074 * pretty-print.c: Don't include ggc.h.
13075 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
13076 (identifier_to_locale): Use them for allocation.
13077 * pretty-print.h (identifier_to_locale_alloc,
13078 identifier_to_locale_free): Declare.
13079 * toplev.c (alloc_for_identifier_to_locale): New.
13080 (general_init): Set identifier_to_locale_alloc and
13081 identifier_to_locale_free.
13082 * Makefile.in (pretty-print.o): Update dependencies.
13084 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
13086 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
13087 pointer types if they have different alignment or mode.
13089 2010-05-26 Anatoly Sokolov <aesok@post.ru>
13091 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
13092 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13093 * config/sparc/sparc-protos.h (function_value): Remove declaration.
13094 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
13095 sparc_function_value_regno_p): New functions.
13096 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13097 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13098 (function_value): Rename to...
13099 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
13100 argument to 'outgoing'.
13101 (function_arg_record_value, function_arg_union_value,
13102 function_arg_vector_value): Update comment.
13104 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
13106 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
13107 (fde_needed_for_eh_p): New predicate.
13108 (output_call_frame_info): Use it throughout to decide whether FDEs
13109 are needed for EH purpose.
13110 (dwarf2out_begin_prologue): Reorder assignments.
13112 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
13114 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
13115 special case loop->header.
13116 (is_predicated): New.
13117 (if_convertible_loop_p): Call it.
13119 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
13121 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
13122 iterator in parameter. Do not generate code during the analysis.
13123 (tree_if_convert_cond_stmt): Removed.
13124 (tree_if_convert_stmt): Removed.
13125 (predicate_bbs): New.
13126 (if_convertible_loop_p): Call predicate_bbs.
13127 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
13128 now contains all the analysis part.
13130 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
13132 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
13133 statements in the analysis part.
13134 (tree_if_convert_stmt): Update comment.
13135 (remove_conditions_and_labels): New.
13136 (combine_blocks): Call remove_conditions_and_labels.
13137 (tree_if_conversion): Update comment.
13139 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
13141 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
13142 than 2 predecessors or more than 2 successors.
13144 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
13146 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
13147 of loops in which the data dependence analysis fails.
13149 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
13151 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
13152 CDI_POST_DOMINATORS.
13153 (tree_if_conversion): Same.
13155 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
13157 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
13159 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
13161 * tree-if-conv.c: Update copyright years. Fix comments.
13164 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
13166 * builtin-types.def (BT_INT128): New primitive type.
13167 (BT_UINT128): Likewise.
13168 * c-common.c (c_common_r): Add __int128 keyword.
13169 (c_common_type_for_size): Handle __int128.
13170 (c_common_type_for_mode): Likewise.
13171 (c_common_signed_or_unsigned_type): Likewise.
13172 (c_common_nodes_and_builtins): Add builtin type
13173 if target supports 128-bit integer scalar.
13174 * c-common.h (enum rid): Add RID_INT128.
13175 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
13176 if target supports 128-bit integer scalar.
13177 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
13178 (finish_declspecs): Likewise.
13179 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
13180 (c_token_starts_declspecs): Likewise.
13181 (c_parser_declspecs): Likewise.
13182 (c_parser_attributes): Likewise.
13183 (c_parser_objc_selector): Likewise.
13184 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
13185 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
13186 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
13187 * tree.c (make_or_reuse_type): Likewise.
13188 (make_unsigned_type): Likewise.
13189 (build_common_tree_nodes_2): Likewise.
13190 * tree.h (enum integer_type_kind): Add itk_int128 and
13191 itk_unsigned_int128.
13192 (int128_integer_type_node): New define.
13193 (int128_unsigned_type_node): New define.
13194 * doc/extend.texi: Add documentation about __int128 type.
13196 2010-05-26 Richard Guenther <rguenther@suse.de>
13198 * tree-ssa-sccvn.c (copy_nary): Adjust.
13199 (copy_phis): Rename to ...
13200 (copy_phi): ... this. Adjust.
13201 (copy_references): Rename to ...
13202 (copy_reference): ... this. Adjust.
13203 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
13204 result into the valid table.
13206 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
13208 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
13209 insn-config.h, insn-codes.h, recog.h, and optabs.h.
13211 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13213 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
13215 2010-05-26 Richard Guenther <rguenther@suse.de>
13217 * opts.c (common_handle_option): Handle OPT_Ofast.
13219 2010-05-26 Joseph Myers <joseph@codesourcery.com>
13221 * diagnostic.c: Don't include opts.h.
13222 (permissive_error_option): Define.
13223 (diagnostic_initialize): Take n_opts parameter. Allocate memory
13224 for classify_diagnostic. Don't use memset for
13225 classify_diagnostic. Initialize new and recently added fields.
13226 (diagnostic_classify_diagnostic): Use context->n_opts instead of
13228 (diagnostic_report_diagnostic): Pass context parameter to
13229 diagnostic_report_warnings_p. Use option_enabled and option_name
13230 hooks from context.
13231 (emit_diagnostic): Use permissive_error_option.
13232 (permerror): Likewise.
13233 * diagnostic.h: Don't include options.h.
13234 (struct diagnostic_context): Add n_opts, opt_permissive,
13235 inhibit_warnings, warn_system_headers, option_enabled and
13236 option_name fields. Change classify_diagnostic to a pointer.
13237 * opts-diagnostic.h: New file.
13238 * opts.c: Include opts-diagnostic.h.
13239 (common_handle_option): Set global_dc fields for -Wfatal-errors,
13240 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
13241 (option_name): New function.
13242 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
13243 (c_common_handle_option): Set global_dc->permissive for
13245 * c-common.c (c_cpp_error): Save and restore
13246 global_dc->warn_system_headers, not variable warn_system_headers.
13247 * toplev.c: Include opts-diagnostic.h.
13248 (general_init): Update call to diagnostic_initialize. Set
13249 global_dc->show_column, global_dc->option_enabled and
13250 global_dc->option_name.
13251 (process_options): Don't set global_dc fields here.
13252 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
13253 (diagnostic.o, opts.o, toplev.o): Update dependencies.
13255 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
13257 * config/picochip/picochip.md (movsi): Split a movsi from a
13258 const after reload.
13260 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13262 * ggc-zone.c: Update copyright year.
13263 (poison_region): Mark memory for Valgrind as undefined before
13264 memset () call and inaccessible afterwards.
13265 (ggc_pch_total_size): Change type of i to int.
13267 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13269 * ggc-common.c (ggc_free_overhead): Allow empty slot.
13271 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13273 * ggc-common.c: Update copyright year.
13274 (ggc_rlimit_bound): Remove prototype. Compile only if
13275 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
13276 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
13277 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
13278 (ggc_min_heapsize_heuristic): Likewise.
13280 2010-05-26 Richard Guenther <rguenther@suse.de>
13282 PR rtl-optimization/44164
13283 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
13284 no-common access-path disambiguation.
13285 (indirect_ref_may_alias_decl_p): Adjust.
13286 (indirect_refs_may_alias_p): Likewise.
13287 (refs_may_alias_p_1): Likewise.
13289 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
13291 * c-typeck.c: Do not include expr.h.
13293 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
13295 * rtl.h (decl_default_tls_model): Move prototype from here...
13296 * output.h: ...to here.
13297 * c-decl.c: Do not include rtl.h.
13298 * c-pragma.c: Likewise.
13299 * c-parser.c: Likewise.
13300 * c-gimplify.c: Likewise. And also not hard-reg-set.
13301 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
13302 FIXME note for it. Add a FIXME note for expr.h.
13303 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
13304 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
13307 2010-05-26 Jakub Jelinek <jakub@redhat.com>
13310 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
13311 or total_size is larger than red zone size for non-V4 ABI, emit a
13312 stack_tie resp. frame_tie insn before stack pointer restore.
13313 * config/rs6000/rs6000.md (frame_tie): New insn.
13315 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
13317 * function.h (struct function): Add can_throw_non_call_exceptions bit.
13318 * lto-streamer-in.c (input_function): Stream it in.
13319 * lto-streamer-out.c (output_function): Stream it out.
13320 * function.c (allocate_struct_function): Set it.
13321 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
13322 for flag_non_call_exceptions.
13323 * cfgbuild.c (control_flow_insn_p): Likewise.
13324 (make_edges): Likewise.
13325 * cfgexpand.c (expand_stack_alignment): Likewise.
13326 * combine.c (distribute_notes): Likewise.
13327 * cse.c (cse_extended_basic_block): Likewise.
13328 * except.c (insn_could_throw_p): Likewise.
13329 * gcse.c (simple_mem): Likewise.
13330 * ipa-pure-const.c (check_call): Likewise.
13331 (check_stmt ): Likewise.
13332 * lower-subreg.c (lower-subreg.c): Likewise.
13333 * optabs.c (emit_libcall_block): Likewise.
13334 (prepare_cmp_insn): Likewise.
13335 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
13336 * postreload.c (rest_of_handle_postreload): Likewise.
13337 * reload1.c (reload_as_needed): Likewise.
13338 (emit_input_reload_insns): Likewise.
13339 (emit_output_reload_insns): Likewise.
13340 (fixup_abnormal_edges): Likewise.
13341 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
13342 * store-motion.c (find_moveable_store): Likewise.
13343 * tree-eh.c (stmt_could_throw_p): Likewise.
13344 (tree_could_throw_p): Likewise.
13345 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13346 * config/arm/arm.c (arm_expand_prologue): Likewise.
13347 (thumb1_expand_prologue): Likewise.
13348 * config/rx/rx.md (cbranchsf4): Likewise.
13350 * config/s390/s390.c (s390_emit_prologue): Likewise.
13351 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
13352 (inline_forbidden_into_p): New predicate.
13353 (expand_call_inline): Use it to forbid inlining.
13354 (tree_can_inline_p): Likewise.
13356 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
13358 * config/i386/i386-c.c: Do not include rtl.h.
13359 * config/i386/t-i386: Update dependencies.
13361 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
13363 * attribs.c: Do not include rtl.h.
13364 * Makefile.in: Update dependencies.
13366 2010-05-25 Anatoly Sokolov <aesok@post.ru>
13368 * double-int.h (double_int_and): New.
13369 * combine.c (try_combine): Clean up, use double_int_* and
13370 immed_double_int_const functions.
13372 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13374 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
13375 stderr to /dev/null instead of grep -q.
13376 * configure: Regenerate.
13378 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
13380 * Makefile.in (EXCEPT_H): Fix typo.
13382 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
13384 * ira-build.c (update_conflict_hard_reg_costs): New.
13385 (ira_build): Call update_conflict_hard_reg_costs.
13387 2010-05-25 Jakub Jelinek <jakub@redhat.com>
13390 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
13392 (intersect_loc_chains): Walk the s2var's loc_chain together
13393 with s1node chain as long as the locations are equal, don't
13394 call find_loc_in_1pdv in that case.
13397 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
13398 (copy_bind_expr): ... instead of here.
13399 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
13400 if the block hasn't been remapped.
13401 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
13402 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
13404 2010-05-25 Richard Guenther <rguenther@suse.de>
13406 PR middle-end/44069
13407 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
13408 out-of-bounds array accesses.
13410 2010-05-25 Richard Guenther <rguenther@suse.de>
13412 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
13413 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
13414 (run_gcc): Re-organize to make cleanup easier.
13416 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13418 * config/s390/s390.c (optimization_options): Fix and move the
13419 flag_prefetch_loop_arrays override ...
13420 (override_options): ... here.
13422 2010-05-25 Joseph Myers <joseph@codesourcery.com>
13424 * diagnostic.c: Don't include plugin.h.
13425 (diagnostic_report_diagnostic): Don't handle plugins specially
13426 here. Pass context to internal_error callback.
13427 * diagnostic.h (struct diagnostic_context): Add context parameter
13428 to internal_error callback.
13429 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
13430 * plugin.h (struct diagnostic_context): Declare.
13431 (warn_if_plugins, plugins_internal_error_function): Declare.
13432 * toplev.c (general_init): Set global_dc->internal_error.
13433 * Makefile.in (diagnostic.o): Update dependencies.
13435 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
13437 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
13438 * config/rs6000/t-darwin64: New.
13439 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
13442 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
13445 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
13446 match the original (and intended) behaviour before r159557. This
13447 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
13450 2010-05-25 Richard Guenther <rguenther@suse.de>
13452 * doc/invoke.texi: Document -Ofast.
13453 * target.h (struct gcc_target): Add handle_ofast.
13454 * target-def.h (TARGET_HANDLE_OFAST): Add.
13455 (TARGET_INITIALIZER): Adjust.
13456 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
13457 * common.opt (Ofast): Add.
13459 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
13461 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
13462 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
13464 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
13467 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
13468 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
13469 false_rtx. Use false_rtx to compute the correct *ptest for reversed
13470 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
13472 2010-05-25 Jakub Jelinek <jakub@redhat.com>
13474 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
13475 DW_OP_minus with negated offset instead of DW_OP_plus.
13476 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
13478 2010-05-25 Wei Guozhi <carrot@google.com>
13480 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
13481 tst instruction and a new alternative.
13482 * config/arm/constraints.md (Pu): New constraint.
13484 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
13486 * function.c (assign_stack_local_1): Initialize variable
13487 to avoid warning when bootstrapping at -O3.
13489 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
13491 * configure.ac (all_lang_makefiles): Remove everything related to it.
13492 * configure: Regenerate.
13493 * Makefile.in: Fix reference to ada Make-lang.in.
13494 Remove support for LANG_MAKEFILES.
13496 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
13497 Sandra Loosemore <sandra@codesourcery.com>
13499 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
13500 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
13501 description. Add arm_neon_fp16_ok.
13502 (Add Options): Add arm_neon and arm_neon_fp16.
13504 2010-05-24 Joseph Myers <joseph@codesourcery.com>
13506 * diagnostic.c: Don't include flags.h.
13507 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
13508 context parameters. Check flags in the context passed as a parameter.
13509 (diagnostic_build_prefix): Add context parameter. Check
13510 show_column flag in context.
13511 (diagnostic_action_after_output): Check fatal_errors flag in context.
13512 (diagnostic_report_current_module): Check show_column flag in context.
13513 (default_diagnostic_starter): Update call to
13514 diagnostic_build_prefix.
13515 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
13516 (emit_diagnostic): Pass context to permissive_error_kind.
13517 (permerror): Pass context to permissive_error_kind.
13518 * diagnostic.h (struct diagnostic_context): Add show_column,
13519 pedantic_errors, permissive and fatal_errors fields.
13520 (diagnostic_build_prefix): Update prototype.
13522 * toplev.c (process_options): Set flags in global_dc from
13523 flag_show_column, flag_pedantic_errors, flag_permissive,
13525 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
13526 to diagnostic_build_prefix.
13527 * Makefile.in (diagnostic.o): Update dependencies.
13529 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
13531 * config/i386/ia32intrin.h (__crc32q): Define only if
13532 __SSE4_2__ is defined.
13534 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
13537 PR middle-end/43602
13538 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
13539 DECL_VISIBILITY_SPECIFIED.
13540 (emutls_decl): Set DECL_PRESERVE_P and copy
13541 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
13542 (emutls_finalize_control_var): New callback.
13543 (emutls_finish): Finalize emutls control variables.
13544 * toplev.c (compile_file): Move the call to emutls_finish ()
13545 before varpool_assemble_pending_decls ().
13547 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
13549 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
13550 added to the preprocessor condition.
13552 2010-05-24 Paul Brook <paul@codesourcery.com>
13554 * gengtype-lex.l: Add HARD_REG_SET.
13555 * expr.c (expand_expr_real_1): Record writes to hard registers.
13556 * function.c (rtl_data): Add asm_clobbers.
13557 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
13558 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
13559 Use crtl->asm_clobbers.
13561 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13563 * doc/makefile.texi (Makefile): Mention stages 'profile'
13564 and 'feedback' for profiledbootstrap.
13566 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
13569 * config/i386/i386.c (def_builtin): Properly check
13570 OPTION_MASK_ISA_64BIT.
13572 2010-05-23 Joseph Myers <joseph@codesourcery.com>
13574 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
13575 typedefs with different but compatible types. Allow duplicate
13576 typedefs with the same type except for pedantic non-C1X, but give
13577 warning for variably modified types.
13578 * c-typeck.c (tagged_types_tu_compatible_p,
13579 function_types_compatible_p, type_lists_compatible_p,
13580 comptypes_internal): Add parameter different_types_p; set
13581 *different_types_p for different but compatible types. All
13583 (comptypes_check_different_types): New.
13584 * c-tree.h (comptypes_check_different_types): Declare.
13586 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
13588 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
13589 * jump.c: Include basic-block.h.
13590 * profile.c: Likewise.
13591 * tree-profile.c: Likewise.
13592 * coverage.c: Likewise.
13593 * basic-block.h (optimize_function_for_size_p): Move to function.h.
13594 (optimize_function_for_speed_p): Likewise.
13595 * function.h (optimize_function_for_size_p,
13596 optimize_function_for_speed_p): Moved here from basic-block.h.
13597 * Makefile.in: Update dependencies.
13599 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13601 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
13602 before calling make; allow override through $MAKE.
13603 * doc/invoke.texi (Optimize Options): Document override.
13605 2010-05-23 Anatoly Sokolov <aesok@post.ru>
13607 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
13608 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13609 (rs6000_mode_dependent_address_ptr): Make static.
13610 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13611 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
13614 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
13617 * config/i386/i386.c: Make sure that the correct regparm is passed.
13619 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
13621 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
13622 * sbitmap.c: ...to here to internalize sbitmap element access.
13623 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
13624 Explain why basic-block.h is included.
13625 * function.h: Include tm.h for CUMULATIVE_ARGS.
13626 * Makefile.in: Update dependencies.
13628 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
13630 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
13632 * sbitmap.h (struct sbitmap_def): Do not typedef here.
13633 * sbitmap.c: Include sbitmap.h.
13634 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
13635 hard-reg-set.h. Split everything related to regsets out from here...
13636 * regset.h: ...to here. New file.
13637 * df.h: Include regset.h and sbitmap.h.
13638 * tree-flow.h: Likewise.
13639 * cfgloop.h: Likewise.
13640 * except.h: Do not include sbitmap.h. Include hashtab.h.
13641 * cgraph.h: Include vec.h and function.h.
13642 * reload.h (struct insn_chain): Change types of live_throughout
13643 and dead_or_set from regset_head to bitmap_head.
13644 (compute_use_by_pseudos): Be defined also if regset.h is not included.
13645 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
13646 spilled_regs from regset_head to bitmap_head to avoid dependency
13648 * sel-sched-ir.h: Include regset.h.
13649 * reload.c: Include df.h before reload.h.
13650 * caller-save.c: Likewise.
13651 * reload1.c: Likewise.
13653 (mark_elimination): Update type of r to bitmap, consistent with
13655 * dominance.c: Include bitmap.h.
13656 * modulo-sched.c: Include df.h.
13657 * cfganal.c: Include bitmap.h and sbitmap.h.
13658 * cfgbuild.c: Include sbitmap.h.
13659 * lcm.c: Include sbitmap.h.
13660 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
13661 * domwalk.c: Include sbitmap.h, exclude ggc.h.
13662 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
13663 * cselib.c: Include bitmap.h.
13664 * tree-optimize.c: Include regset.h.
13665 * stmt.c: Include bitmap.h.
13666 * Makefile.in: Update dependencies.
13668 2010-05-22 Jan Hubicka <jh@suse.cz>
13670 * cgraph.h (struct varpool_node): Add same_comdat_group.
13671 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
13673 (output_varpool): Update call of lto_output_varpool_node.
13674 (input_varpool): Read same_comdat_group pointer.
13675 (input_varpool_1): Fixup same_comdat_group pointer.
13676 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
13677 group is needed, all are.
13678 * varpool.c (varpool_remove_node): Remove node from same comdat group
13680 (varpool_analyze_pending_decls): Walk same comdat groups.
13682 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
13684 * rtl.h (union rtunion_def): Remove rt_bit member.
13685 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
13686 * print-rtl (print_rtx): Do not print the member.
13687 * gengtype.c (adjust_field_rtx_def): Do not handle it.
13688 * gengenrtl.c (type_from_format): Likewise.
13689 (accessor_from_format): Likewise.
13691 2010-05-22 Joseph Myers <joseph@codesourcery.com>
13693 * dbgcnt.c: Include toplev.h instead of errors.h.
13694 * ira-emit.c: Don't include errors.h.
13695 * ira.c: Include toplev.h instead of errors.h.
13696 * lto-compress.c: Include toplev.h instead of errors.h.
13697 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
13698 ira.o, dbgcnt.o): Update dependencies.
13700 2010-05-22 Richard Guenther <rguenther@suse.de>
13702 * gimple.c (gimple_types_compatible_p): Check type qualifications
13703 before merging pointer to complete and pointer to incomplete type.
13704 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
13705 we use our own resolution algorithm. The gold linker plugin
13706 doesn't do the job we want it to do here.
13708 2010-05-22 Anatoly Sokolov <aesok@post.ru>
13710 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13711 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13712 (sparc_mode_dependent_address_p): New function.
13714 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
13716 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
13718 * timevar.c: Do not include any core headers.
13719 (timevar_print): De-i18n-ize.
13720 (print_time): Likewise.
13721 * timevar.h (timevar_push, timevar_pop): Make inline functions.
13723 2010-05-21 Joseph Myers <joseph@codesourcery.com>
13725 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
13727 (diagnostic_initialize): Initialize x_data not last_function.
13728 (diagnostic_report_current_function): Move to tree-diagnostic.c.
13729 (default_diagnostic_starter): Call
13730 diagnostic_report_current_module not
13731 diagnostic_report_current_function.
13732 (diagnostic_report_diagnostic): Initialize x_data not
13734 (verbatim): Likewise.
13735 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
13737 (struct diagnostic_context): Change last_function to x_data.
13738 (diagnostic_auxiliary_data): Replace with
13739 diagnostic_context_auxiliary_data and
13740 diagnostic_info_auxiliary_data.
13741 (diagnostic_last_function_changed, diagnostic_set_last_function,
13742 diagnostic_report_current_function): Move to tree-diagnostic.h.
13743 (print_declaration, dump_generic_node, print_generic_stmt,
13744 print_generic_stmt_indented, print_generic_expr,
13745 print_generic_decl, debug_c_tree, dump_omp_clauses,
13746 print_call_name, debug_generic_expr, debug_generic_stmt,
13747 debug_tree_chain, default_tree_printer): Move to
13748 tree-pretty-print.h.
13749 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
13750 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
13751 gimple-pretty-print.h.
13752 * pretty-print.c: Don't include tree.h
13753 (pp_base_format): Don't handle %K here.
13754 (pp_base_tree_identifier): Move to tree-pretty-print.c.
13755 * pretty-print.h (text_info): Change abstract_origin to x_data.
13756 (pp_tree_identifier, pp_unsupported_tree,
13757 pp_base_tree_identifier): Move to tree-pretty-print.h.
13758 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
13759 tree-pretty-print.h: New files.
13760 * tree-pretty-print.c: Include tree-pretty-print.h.
13761 (percent_K_format): New. Moved from pretty-print.c.
13762 (pp_base_tree_identifier): Move from pretty-print.c.
13763 * c-objc-common.c: Include tree-pretty-print.h.
13764 (c_tree_printer): Handle %K here.
13765 * langhooks.c: Include tree-diagnostic.h.
13766 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
13767 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
13768 (default_tree_printer): Handle %K using percent_K_format.
13769 (general_init): Use default_tree_diagnostic_starter.
13770 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
13771 (free_lang_data): Use default_tree_diagnostic_starter.
13772 * c-pretty-print.c: Include tree-pretty-print.h.
13773 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13774 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13775 * dwarf2out.c: Include tree-pretty-print.h.
13776 * except.c: Include tree-pretty-print.h.
13777 * gimple-pretty-print.c: Include tree-pretty-print.h and
13778 gimple-pretty-print.h.
13779 * gimplify.c: Include tree-pretty-print.h.
13780 * graphite-poly.c: Include tree-pretty-print.h and
13781 gimple-pretty-print.h.
13782 * ipa-cp.c: Include tree-pretty-print.h.
13783 * ipa-inline.c: Include gimple-pretty-print.h.
13784 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13785 * ipa-pure-const.c: Include gimple-pretty-print.h.
13786 * ipa-struct-reorg.c: Include tree-pretty-print.h and
13787 gimple-pretty-print.h.
13788 * ipa-type-escape.c: Include tree-pretty-print.h.
13789 * print-rtl.c: Include tree-pretty-print.h.
13790 * print-tree.c: Include gimple-pretty-print.h.
13791 * sese.c: Include tree-pretty-print.h.
13792 * tree-affine.c: Include tree-pretty-print.h.
13793 * tree-browser.c: Include tree-pretty-print.h.
13794 * tree-call-cdce.c: Include gimple-pretty-print.h.
13795 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13796 * tree-chrec.c: Include tree-pretty-print.h.
13797 * tree-data-ref.c: Include tree-pretty-print.h and
13798 gimple-pretty-print.h.
13799 * tree-dfa.c: Include tree-pretty-print.h.
13800 * tree-if-conv.c: Include tree-pretty-print.h and
13801 gimple-pretty-print.h.
13802 * tree-inline.c: Include tree-pretty-print.h.
13803 * tree-into-ssa.c: Include tree-pretty-print.h and
13804 gimple-pretty-print.h.
13805 * tree-nrv.c: Include tree-pretty-print.h.
13806 * tree-object-size.c: Include tree-pretty-print.h and
13807 gimple-pretty-print.h.
13808 * tree-outof-ssa.c: Include tree-pretty-print.h and
13809 gimple-pretty-print.h.
13810 * tree-parloops.c: Include tree-pretty-print.h and
13811 gimple-pretty-print.h.
13812 * tree-predcom.c: Include tree-pretty-print.h and
13813 gimple-pretty-print.h.
13814 * tree-scalar-evolution.c: Include tree-pretty-print.h and
13815 gimple-pretty-print.h.
13816 * tree-sra.c: Include tree-pretty-print.h.
13817 * tree-ssa-address.c: Include tree-pretty-print.h.
13818 * tree-ssa-alias.c: Include tree-pretty-print.h.
13819 * tree-ssa-ccp.c: Include tree-pretty-print.h and
13820 gimple-pretty-print.h.
13821 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
13822 * tree-ssa-copy.c: Include tree-pretty-print.h and
13823 gimple-pretty-print.h.
13824 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
13825 * tree-ssa-dce.c: Include tree-pretty-print.h and
13826 gimple-pretty-print.h.
13827 * tree-ssa-dom.c: Include tree-pretty-print.h and
13828 gimple-pretty-print.h.
13829 * tree-ssa-dse.c: Include gimple-pretty-print.h.
13830 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
13831 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
13832 * tree-ssa-live.c: Include tree-pretty-print.h and
13833 gimple-pretty-print.h.
13834 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
13835 gimple-pretty-print.h.
13836 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
13837 gimple-pretty-print.h.
13838 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
13839 gimple-pretty-print.h.
13840 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
13841 gimple-pretty-print.h.
13842 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
13843 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
13844 * tree-ssa-operands.c: Include tree-pretty-print.h and
13845 gimple-pretty-print.h.
13846 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
13847 gimple-pretty-print.h.
13848 * tree-ssa-pre.c: Include tree-pretty-print.h and
13849 gimple-pretty-print.h.
13850 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
13851 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
13852 gimple-pretty-print.h.
13853 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
13854 gimple-pretty-print.h.
13855 * tree-ssa-sink.c: Include gimple-pretty-print.h.
13856 * tree-ssa-ter.c: Include tree-pretty-print.h and
13857 gimple-pretty-print.h.
13858 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
13859 * tree-ssa.c: Include tree-pretty-print.h and
13860 gimple-pretty-print.h.
13861 * tree-stdarg.c: Include gimple-pretty-print.h.
13862 * tree-switch-conversion.c: Include gimple-pretty-print.h.
13863 * tree-tailcall.c: Include tree-pretty-print.h and
13864 gimple-pretty-print.h.
13865 * tree-vect-data-refs.c: Include tree-pretty-print.h and
13866 gimple-pretty-print.h.
13867 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
13868 gimple-pretty-print.h.
13869 * tree-vect-loop.c: Include tree-pretty-print.h and
13870 gimple-pretty-print.h.
13871 * tree-vect-patterns.c: Include gimple-pretty-print.h.
13872 * tree-vect-slp.c: Include tree-pretty-print.h and
13873 gimple-pretty-print.h.
13874 * tree-vect-stmts.c: Include tree-pretty-print.h and
13875 gimple-pretty-print.h.
13876 * tree-vectorizer.c: Include tree-pretty-print.h.
13877 * tree-vrp.c: Include tree-pretty-print.h and
13878 gimple-pretty-print.h.
13879 * value-prof.c: Include tree-pretty-print.h and
13880 gimple-pretty-print.h.
13881 * var-tracking.c: Include tree-pretty-print.h.
13882 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
13883 (tree-diagnostic.o): New dependencies.
13884 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
13885 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
13886 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
13887 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
13888 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
13889 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
13890 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
13891 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
13892 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
13893 tree-ssa-address.o, tree-ssa-loop-niter.o,
13894 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
13895 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
13896 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
13897 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
13898 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
13899 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
13900 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
13901 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
13902 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
13903 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
13904 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
13905 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
13906 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
13907 tree-switch-conversion.o, var-tracking.o, value-prof.o,
13908 cfgexpand.o, pretty-print.o): Update dependencies.
13910 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
13912 * tree-ssa-structalias.c: Remove tm_p.h from include.
13914 2010-05-21 Jeff Law <law@redhat.com>
13916 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
13918 2010-05-21 Jason Merrill <jason@redhat.com>
13920 * tree-eh.c (cleanup_is_dead_in): New.
13921 (lower_try_finally): Don't generate a dead cleanup region.
13922 (lower_cleanup): Likewise.
13924 2010-05-21 Jakub Jelinek <jakub@redhat.com>
13927 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
13928 unchain each use from the cyclic next_regno_use chain first.
13930 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
13932 * real: Do not include gmp.h, mpfr.h, and mpc.h.
13933 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
13934 (real_value_negate, real_value_abs): New prototypes.
13935 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
13936 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
13937 new include file for interface between MPFR and REAL_VALUE_TYPE.
13938 * real.c: Include realmpfr.h.
13939 (real_arithmetic2): Remove legacy function.
13940 (real_value_negate): New.
13941 (real_value_abs): New.
13942 (mfpr_from_real, real_from_mpfr): Move from here...
13943 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
13944 * builtins.c: Include realmpfr.h.
13945 * fold-const.c: Include realmpfr.h.
13946 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
13947 (fold_negate_const): Likewise.
13948 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
13949 * toplev.c: Include realmpfr.h.
13950 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
13951 and real_value_negate.
13952 * fixed-value.c (check_real_for_fixed_mode): Likewise.
13953 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
13954 (vfp3_const_double_index): Likewise.
13955 (arm_print_operand): Likewise.
13956 * Makefile.in: Update dependencies.
13958 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13960 * config/s390/s390.c (override_options): Increase the default
13961 of max-completely-peel-times.
13963 2010-05-21 Julian Brown <julian@codesourcery.com>
13964 Mark Mitchell <mark@codesourcery.com>
13966 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
13967 sibling calls for Thumb-1.
13968 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
13969 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
13971 (*call_insn, *call_value_insn): Don't use for Thumb-2.
13972 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
13974 (return): New expander.
13975 (*arm_return): New name for ARM return insn.
13976 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
13978 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
13980 * config.gcc (sparc64-*-rtems*): New target.
13982 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
13984 * tree.c (build_function_decl_skip_args): Fix grammar.
13985 (build_function_type_list_1): Fix typos, adjust formatting.
13987 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
13989 * tree.h: Include real.h and fixed-value.h as basic datatypes.
13990 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
13991 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
13992 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
13993 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
13994 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
13995 tree-pretty-print.c, tree-loop-distribution.c,
13996 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
13997 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
13998 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
13999 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
14000 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
14001 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
14002 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
14003 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
14004 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
14005 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
14006 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
14007 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
14008 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
14009 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
14010 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
14011 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
14012 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
14013 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
14014 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
14015 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
14016 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
14017 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
14018 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
14019 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
14020 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
14021 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
14022 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
14023 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
14024 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
14025 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
14026 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
14027 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
14028 config/score/score7.c, config/score/score.c, config/arm/arm.c,
14029 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
14030 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
14031 config/bfin/bfin.c: Clean up redundant includes.
14032 * Makefile.in: Update accordingly.
14034 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
14036 PR middle-end/44204
14037 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
14038 statement has no arguments.
14040 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
14043 * varasm.c (emutls_decl): Merge attributes to new decl.
14045 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
14047 PR middle-end/44101
14048 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
14049 around the uniquized constructor if its type requires a conversion.
14051 2010-05-21 Jakub Jelinek <jakub@redhat.com>
14054 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
14055 at -O0 goto_locus of any of the incoming edges differs from
14056 goto_locus of outgoing edge, or gimple_location of any of the
14059 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
14061 * ira.c (ira_non_ordered_class_hard_regs): Define.
14062 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
14063 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
14064 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
14065 cost of unaligned hard regs when allocating multi-reg pseudos.
14067 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
14069 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
14070 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
14071 for TARGET_NO_FLOAT.
14072 * config/mips/mips.c (mips_file_start): Expand conditional expression
14073 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
14074 (mips_override_options): Move -mno-float override -msoft-float and
14076 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
14077 Condition(TARGET_SUPPORTS_NO_FLOAT).
14078 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
14079 __mips_no_float here.
14080 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
14081 (TARGET_SUPPORTS_NO_FLOAT): Define.
14082 * config/mips/sdemtk.opt: Delete.
14084 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
14086 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
14088 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
14091 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
14092 * configure: Regenerate.
14093 * config.in: Regenerate.
14094 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
14095 instead of sahf only for 64bit targets.
14097 2010-05-20 Jakub Jelinek <jakub@redhat.com>
14100 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
14101 setup_ref_regs for DEBUG_INSNs.
14103 2010-05-20 Jan Hubicka <jh@suse.cz>
14105 PR middle-end/44197
14106 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
14108 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
14111 * df-scan.c (df_ref_compare): Stabilize sort.
14113 2010-05-20 Jakub Jelinek <jakub@redhat.com>
14115 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
14116 argument. Don't use DW_OP_piece if offset is non-zero,
14117 put offset into second DW_OP_bit_piece argument.
14118 (dw_sra_loc_expr): Adjust callers. For memory expressions
14121 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
14124 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
14125 settings for 16-bit-constant "addo" alternative.
14127 2010-05-19 James E. Wilson <wilson@codesourcery.com>
14129 * config/mips/mips-dsp.md (add<DSPV:mode>3,
14130 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
14133 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
14134 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
14137 2010-05-19 Joseph Myers <joseph@codesourcery.com>
14139 * diagnostic.c (FLOAT, FFS): Don't undefine.
14140 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
14141 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
14144 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14146 * combine.c (propagate_for_debug): Call make_compound_operation
14147 on the source value.
14148 (try_combine): When implementing a split chosen by find_split_point,
14149 either copy i2src or set it to null. Assert that i2src is not null
14150 before substituting into CALL_INSN_FUNCTION_USAGE.
14152 2010-05-19 Anatoly Sokolov <aesok@post.ru>
14154 * double-int.h (double_int_ior): New function.
14155 * tree.h (build_int_cst_wide_type): Remove.
14156 * tree.c (build_int_cst_wide_type): Remove.
14157 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
14158 of build_int_cst_wide_type.
14159 * stor-layout.c (set_sizetype): (Ditto.).
14160 * dojump.c (do_jump): Use build_int_cstu instead of
14161 build_int_cst_wide_type.
14163 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
14165 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
14166 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
14167 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
14168 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
14169 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
14170 propagate the 'data' argument to copy_tree_r.
14171 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
14172 Propagate 'data' argument to walk_tree.
14173 (copy_if_shared): New function.
14174 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
14175 (unmark_visited): New function.
14176 (unshare_body): Call copy_if_shared instead of doing it manually.
14177 (unvisit_body): Call unmark_visited instead of doing it manually.
14179 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
14181 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
14182 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
14183 * hooks.c: Likewise.
14184 * target-def.h (TARGET_FOLD_BUILTIN): Define to
14185 hook_tree_tree_int_treep_bool_null.
14186 * target.h (struct gcc_target): Update signature of fold_builtin
14188 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
14189 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
14190 instead of the call expression.
14191 (fold_builtin_call_array): Pass n and argarray directly.
14192 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
14194 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
14195 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
14196 `i' and use it in place of `arity'.
14197 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
14198 Dereference `args' directly.
14199 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
14201 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14203 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14205 (Directives): Document optional dg-require-effective-target
14208 2010-05-19 Richard Guenther <rguenther@suse.de>
14211 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
14213 2010-05-19 Richard Guenther <rguenther@suse.de>
14215 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
14216 * common.opt (fwhopr=): New.
14217 * opts.c (common_handle_option): Handle OPT_fwhopr.
14218 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
14219 * collect2.c (main): Match -fwhopr*.
14220 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
14221 Execute ltrans stage in parallel when jobs is bigger than 1.
14223 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14225 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
14226 pentiumpro on Solaris 8/x86 with Sun as.
14227 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
14229 (gcc_cv_as_ix86_quad): Check for .quad directive.
14230 * configure: Regenerate.
14231 * config.in: Regenerate.
14232 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
14234 2010-05-19 Martin Jambor <mjambor@suse.cz>
14236 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
14237 also for indirect edges. Actual printing moved...
14238 (ipa_print_node_jump_functions_for_edge): ...here.
14239 (ipa_compute_jump_functions): Renamed to
14240 ipa_compute_jump_functions_for_edge and made static.
14241 (ipa_compute_jump_functions): New function.
14242 (make_edge_direct_to_target): Check if the number of arguments on
14243 the newly direct edge is the same as the number of parametrs of
14245 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
14246 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
14247 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
14248 analysis functions unconditionally, call the new
14249 ipa_analyze_params_uses on the node instead of every edge.
14251 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
14253 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
14255 (dump_mem_ref): Adopt debug code to handle a tree as step. This
14256 also checks for a constant int vs. non-constant but
14257 loop-invariant steps.
14258 (find_or_create_group): Change the sort algorithm to only consider
14259 steps that are constant ints.
14260 (idx_analyze_ref): Adopt code to handle a tree instead of a
14261 HOST_WIDE_INT for step.
14262 (gather_memory_references_ref): Handle tree instead of int and be
14263 prepared to see a NULL_TREE.
14264 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
14265 prefetches if the step cannot be calculated at compile time.
14266 (issue_prefetch_ref): Issue prefetches for non-constant but
14267 loop-invariant steps.
14269 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
14272 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
14274 * tree.h (build_call_list): Remove.
14275 * tree.c (build_call_list): Remove.
14277 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
14279 * tree.h (build_call_list): Remove.
14280 * tree.c (build_call_list): Remove.
14282 2010-05-18 Jan Hubicka <jh@suse.cz>
14284 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
14286 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
14288 PR rtl-optimization/43332
14289 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
14291 2010-05-18 Anatoly Sokolov <aesok@post.ru>
14293 * tree.h (build_int_cstu): Implement as static inline.
14294 * tree.c (build_int_cstu): Remove function.
14295 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
14298 2010-05-18 Richard Guenther <rguenther@suse.de>
14301 * lto-wrapper.c (verbose): New variable. Initialize from -v.
14302 (debug): Initialize from -save-temps.
14303 (collect_execute): Print command-line when verbose.
14304 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
14305 for ltrans invocation. Produce -dumpbase flag again.
14306 (process_args): Remove.
14308 * collect2.c (maybe_run_lto_and_relink): Only pass object
14309 files to lto-wrapper.
14310 * gcc.c (LINK_COMMAND_SPEC): Likewise.
14312 2010-05-18 Jan Hubicka <jh@suse.cz>
14314 * opts.c (decode_options): Do not disable whopr at ipa_cp.
14315 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
14317 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
14320 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
14322 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
14325 2010-05-18 Jakub Jelinek <jakub@redhat.com>
14328 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
14329 rtx_equal_p inline.
14331 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
14333 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
14334 lto-macho as lto_binary_reader.
14336 * darwin.c (darwin_asm_named_section): Do not add assembler comment
14337 after .section directive; just print it before the directive instead.
14339 2010-05-17 Jan Hubicka <jh@suse.cz>
14341 * cgraph.c (cgraph_create_virtual_clone): Only check
14342 versionable_function_p when not in wpa and checking is enabled.
14343 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
14344 there are no more functions to materialize.
14346 2010-05-17 Jan Hubicka <jh@suse.cz>
14348 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
14349 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
14351 (output_cgraph): Call output_cgraph_opt_summary.
14352 (input_cgrpah): Call input_cgraph_opt_summary.
14353 (output_cgraph_opt_summary_p, output_node_opt_summary,
14354 input_node_opt_summary, input_cgraph_opt_section): New functions.
14355 * lto-section-in.c (lto_section_name): Add cgraphopt.
14356 * tree-inline.c (tree_function_versioning): Handle parm_num.
14357 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
14358 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
14360 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
14362 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
14363 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
14364 the insn to prefetch ratio heuristic to loops with known trip count.
14366 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
14368 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
14369 (schedule_prefetches): Do not generate a prefetch if the unroll factor
14370 is far from what is required by the prefetch.
14372 2010-05-17 Jan Hubicka <jh@suse.cz>
14374 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
14375 (ipcp_estimate_growth): Likewise.
14376 (ipcp_const_param_count): Likewise.
14377 (ipcp_insert_stage): Likewise.
14378 * ipa-prop.c (visit_load_for_mod_analysis): New function.
14379 (visit_store_addr_for_mod_analysis): Set used flag.
14380 (ipa_detect_param_modifications): Set used flag for SSE params;
14381 update use of walk_stmt_load_store_addr_ops.
14382 (ipa_print_node_params): Print used flag.
14383 (ipa_write_node_info): Stream used flag.
14384 (ipa_read_node_info): Likewise.
14385 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
14386 (ipa_is_param_used): New function.
14387 (lto_ipa_fixup_call_notes): Remove unused declaration.
14389 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14392 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
14393 * configure: Regenerate.
14394 * config.in: Regenerate.
14395 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
14396 !HAVE_AS_IX86_REP_LOCK_PREFIX.
14397 Don't emit whitespace.
14398 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
14399 (*rep_movsi): Likewise.
14400 (*rep_movsi_rex64): Likewise.
14401 (*rep_movqi): Likewise.
14402 (*rep_movqi_rex64): Likewise.
14403 (*rep_stosdi_rex64): Likewise.
14404 (*rep_stossi): Likewise.
14405 (*rep_stossi_rex64): Likewise.
14406 (*rep_stosqi): Likewise.
14407 (*rep_stosqi_rex64): Likewise.
14408 (*cmpstrnqi_nz_1): Use {%;} after repz.
14409 (*cmpstrnqi_nz_rex_1): Likewise.
14410 (*cmpstrnqi_1): Likewise.
14411 (*cmpstrnqi_rex_1): Likewise.
14412 (*strlenqi_1): Use {%;} after repnz.
14413 (*strlenqi_rex_1): Likewise.
14414 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
14415 (*sync_compare_and_swap<mode>): Likewise.
14416 (sync_double_compare_and_swap<mode>): Likewise.
14417 (*sync_double_compare_and_swapdi_pic): Likewise.
14418 (sync_old_add<mode>): Likewise.
14419 (sync_add<mode>): Likewise.
14420 (sync_sub<mode>): Likewise.
14421 (sync_<code><mode>): Likewise.
14423 2010-05-17 Martin Jambor <mjambor@suse.cz>
14425 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
14426 otr_token and polymorphic.
14427 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
14428 (cgraph_clone_edge): Copy the above fields.
14429 * tree.c (get_binfo_at_offset): New function.
14430 * tree.h (get_binfo_at_offset): Declare.
14431 * ipa-prop.h (enum jump_func_type): Added known_type jump function
14432 type, reordered items, updated comments.
14433 (union jump_func_value): Added base_type field, reordered fields.
14434 (enum ipa_lattice_type): Moved down in the file.
14435 (struct ipa_param_descriptor): New field polymorphic.
14436 (ipa_is_param_polymorphic): New function.
14437 * ipa-prop.c: Include gimple.h and gimple-fold.h.
14438 (ipa_print_node_jump_functions): Print known type jump functions.
14439 (compute_complex_pass_through): Renamed to...
14440 (compute_complex_assign_jump_func): this.
14441 (compute_complex_ancestor_jump_func): New function.
14442 (compute_known_type_jump_func): Likewise.
14443 (compute_scalar_jump_functions): Create known type and complex ancestor
14445 (ipa_note_param_call): New parameter polymorphic, set the corresponding
14446 flag in the call note accordingly.
14447 (ipa_analyze_call_uses): Renamed to...
14448 (ipa_analyze_indirect_call_uses): this. New parameter target, define
14449 variable var only in the block where it is used.
14450 (ipa_analyze_virtual_call_uses): New function.
14451 (ipa_analyze_call_uses): Likewise.
14452 (combine_known_type_and_ancestor_jfs): Likewise.
14453 (update_jump_functions_after_inlining): Implemented handling of a
14454 number of new jump function types combination.
14455 (print_edge_addition_message): Removed.
14456 (make_edge_direct_to_target): New function.
14457 (try_make_edge_direct_simple_call): Likewise.
14458 (try_make_edge_direct_virtual_call): Likewise.
14459 (update_call_notes_after_inlining): Renamed to...
14460 (update_indirect_edges_after_inlining): this. Moved edge creation for
14461 indirect calls to try_make_edge_direct_simple_call, also calls
14462 try_make_edge_direct_virtual_call for virtual calls.
14463 (ipa_print_node_params): Changed the header message.
14464 (ipa_write_jump_function): Stream also known type jump functions.
14465 (ipa_read_jump_function): Likewise.
14466 (ipa_write_indirect_edge_info): Stream new fields in
14467 cgraph_indirect_call_info.
14468 (ipa_read_indirect_edge_info): Likewise.
14469 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
14472 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14474 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
14476 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
14478 * tree.h (CALL_EXPR_ARGS): Delete.
14479 (call_expr_arglist): Delete.
14480 * tree.c (call_expr_arglist): Delete.
14481 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
14482 targetm.fold_builtin.
14483 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
14484 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
14485 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
14486 arglist parameter. Use CALL_EXPR_ARG.
14487 (picochip_expand_builtin_3op): Likewise.
14488 (picochip_expand_builtin_2opvoid): Likewise.
14489 (picochip_expand_array_get): Likewise.
14490 (picochip_expand_array_put): Likewise.
14491 (picochip_expand_array_testport): Likewise.
14492 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
14493 rather than arglist.
14494 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
14496 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
14497 than TREE_VALUE and TREE_CHAIN.
14498 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
14499 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
14502 2010-05-17 Jakub Jelinek <jakub@redhat.com>
14505 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
14506 to have no fallthru edge.
14508 PR middle-end/44102
14509 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
14510 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
14511 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
14512 add BARRIER after previous bb if needed.
14514 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
14516 * tree.c (build_function_type_list_1): Remove bogus assert condition.
14518 2010-05-17 Alan Modra <amodra@gmail.com>
14520 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
14521 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
14522 with copy_reg rtx param.
14523 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
14524 Correct cases where code for ABI_V4 did not initialise the reg
14525 used to access frame. Also leave frame_reg_rtx as sp for large
14526 frames that save no regs.
14528 2010-05-17 Martin Jambor <mjambor@suse.cz>
14530 PR middle-end/44133
14531 * tree-sra.c (create_access_replacement): New parameter rename, mark
14532 the replaement for renaming only when it is true.
14533 (get_access_replacement): Pass true in the rename parameter of
14534 create_access_replacement.
14535 (get_unrenamed_access_replacement): New function.
14536 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
14537 replacement declaration from it.
14539 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
14541 * function.c (try_fit_stack_local, add_frame_space): New static
14543 (assign_stack_local_1): Use them. Look for opportunities to use
14544 space previously wasted on alignment.
14545 * function.h (struct frame_space): New.
14546 (struct rtl_data): Add FRAME_SPACE_LIST member.
14547 * reload1.c (something_was_spilled): New static variable.
14548 (alter_reg): Set it.
14549 (reload): Test it in addition to testing if the frame size changed.
14551 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
14553 * config/s390/s390.c: Define sane prefetch settings and activate
14554 flag_prefetch_loop_arrays on -O3.
14555 * config/s390/s390.h: Declare that read can use write prefetch.
14557 2010-05-17 Jakub Jelinek <jakub@redhat.com>
14559 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
14562 2010-05-16 Jan Hubicka <jh@suse.cz>
14564 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
14565 function body; do not check stdarg field of struct function.
14567 2010-05-16 Jan Hubicka <jh@suse.cz>
14569 * cgraph.c (dump_cgraph_node): Dump versionable flag.
14570 * cgraph.h (cgraph_local_info): Add versionable flag.
14571 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
14572 (ipcp_versionable_function_p): Use it.
14573 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
14576 2010-05-16 Jan Hubicka <jh@suse.cz>
14578 * cgraph.c (cgraph_clone_node): Take decl argument and insert
14579 clone into hash when it is different from orig.
14580 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
14581 * cgraph.h (cgraph_clone_node): Update prototype.
14582 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
14583 (lto_cgraph_encoder_delete): Delete body map.
14584 (lto_cgraph_encoder_size): Move to header.
14585 (lto_cgraph_encoder_encode_body_p,
14586 lto_set_cgraph_encoder_encode_body): New.
14587 (lto_output_node): Do not take written_decls argument; output clone_of
14589 (add_node_to): Add include_body_argument; call
14590 lto_set_cgraph_encoder_encode_body on master of the clone.
14591 (add_references): Update use of add_node_to.
14592 (compute_ltrans_boundary): Likewise.
14593 (output_cgraph): Do not create written_decls bitmap.
14594 (input_node): Take nodes argument; stream in clone_of correctly.
14595 (input_cgraph_1): Update use of input_node.
14596 * lto-streamer-out.c (lto_output): Use encoder info to decide
14597 what bodies to output.
14598 * ipa-inline.c (cgraph_clone_inlined_nodes,
14599 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
14600 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
14601 (lto_cgraph_encoder_size): Define here.
14602 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
14605 2010-05-16 Richard Guenther <rguenther@suse.de>
14607 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
14609 * ipa-type-escape.c (gate_type_escape_vars): Run when
14610 -fipa-struct-reorg runs.
14611 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
14612 * common.opt (fipa-type-escape): Remove.
14614 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
14616 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
14617 (decode_options): Likewise.
14618 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
14620 2010-05-16 Jan Hubicka <jh@suse.cz>
14622 * ipa.c (function_and_variable_visibility): Also bring local all
14625 2010-05-16 Richard Guenther <rguenther@suse.de>
14627 * alias.c (nonoverlapping_memrefs_p): Remove use of
14628 IPA type-escape information.
14630 2010-05-16 Joseph Myers <joseph@codesourcery.com>
14632 * c-common.c (c_common_reswords): Add _Static_assert for C.
14633 * c-parser.c (c_token_starts_declaration,
14634 c_parser_next_token_starts_declaration,
14635 c_parser_static_assert_declaration_no_semi,
14636 c_parser_static_assert_declaration): New.
14637 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
14638 Handle static assertions if static_assert_ok.
14639 (c_parser_external_declaration, c_parser_declaration_or_fndef,
14640 c_parser_compound_statement_nostart, c_parser_label,
14641 c_parser_for_statement, c_parser_objc_methodprotolist,
14642 c_parser_omp_for_loop): All callers of
14643 c_parser_declaration_or_fndef changed.
14644 (c_parser_struct_declaration): Handle static assertions.
14645 (c_parser_compound_statement_nostart): Use
14646 c_parser_next_token_starts_declaration and
14647 c_token_starts_declaration to detect start of declarations.
14648 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
14651 2010-05-16 Anatoly Sokolov <aesok@post.ru>
14653 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
14654 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14655 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14656 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14657 (mmix_function_outgoing_value): Rename to...
14658 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
14659 (mmix_function_value_regno_p): Make static.
14660 (mmix_libcall_value): New function.
14661 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
14662 mmix_function_value_regno_p): Remove declaration.
14664 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
14666 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
14667 BUILT_IN_ALLOCA if stack checking is enabled.
14669 2010-05-16 Richard Guenther <rguenther@suse.de>
14671 * var-tracking.c (vars_copy_1): Inline ...
14672 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
14673 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
14674 (variable_merge_over_cur): Adjust. Merge asserts.
14675 (variable_merge_over_src): Likewise.
14676 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
14677 (variable_post_merge_new_vals): Merge asserts.
14678 (variable_post_merge_perm_vals): Likewise.
14679 (find_mem_expr_in_1pdv): Likewise.
14680 (dataflow_set_different_value): Remove.
14681 (onepart_variable_different_p): Merge asserts.
14682 (variable_different_p): Likewise.
14683 (dataflow_set_different_1): Inline ...
14684 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
14685 (emit_notes_for_differences_1): Merge asserts.
14687 2010-05-16 Richard Guenther <rguenther@suse.de>
14689 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
14690 * optabs.c (libfunc_decl_hash): Likewise.
14691 * varasm.c (emutls_decl): Likewise.
14693 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
14695 * c-decl.c: Don't include gimple.h.
14696 (merge_decls): Do not copy gimple_body.
14698 2010-05-15 Jason Merrill <jason@redhat.com>
14700 * c.opt: Add -fnothrow-opt.
14702 2010-05-15 Jan Hubicka <jh@suse.cz>
14704 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
14706 * passes.c (ipa_write_summaries): Write all analyzed nodes.
14708 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
14710 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
14711 * Makefile.in: Add it.
14712 Fix all other Makefile dependencies for changes below.
14713 * tree.h: Include it instead of defining VEC primitives here.
14714 * gimple.h: Likewise.
14716 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
14717 * except.h: Include vecir.h, break dependence on tree.h.
14719 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
14721 * tree-iterator.c: ...to here.
14722 * tree-iterator.h: Fix file introduction comment. Add extern markers.
14724 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
14726 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
14727 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
14728 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
14729 tree-mudflap.h, and target.h.
14730 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
14731 predict.h, tree-inline.h, gimple.h, and langhooks.h.
14732 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
14733 Add FIXME for why gimple.h is still included (should be unnecessary
14734 since GCC 4.5 gimplification unit-at-a-time).
14735 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
14736 * c-pragma.c: Add FIXME for why function.h needs to be included just
14737 for cfun, at front-end level.
14738 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
14739 Do not include ggc.h, but include vecprim.h for VEC(char).
14740 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
14741 Explain why target.h is included.
14742 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
14743 Explain why gimple.h is included.
14744 * c-ppoutput.c: Do not include tm.h.
14745 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
14746 * c-parses.c: Explain why rtl.h is included, and that this (and only
14747 this) is also why tm.h must be included.
14748 Do not include except.h.
14749 * c-lang.c: Do not include ggc.h.
14751 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
14753 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
14755 2010-05-15 Joseph Myers <joseph@codesourcery.com>
14757 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
14758 unions by default if those structs and unions have no tags. Do
14759 not condition anonymous struct and unions handling on flag_iso.
14760 Allow anonymous structs and unions for C1X.
14761 (finish_struct): Do not diagnose lack of named fields when
14762 anonymous structs and unions present for C1X. Accept flexible
14763 array members in structure with anonymous structs or unions but no
14764 directly named fields.
14765 * doc/extend.texi (Unnamed Fields): Update.
14767 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
14769 * gimple.h (compare_field_offset): Rename into...
14770 (gimple_compare_field_offset): ...this.
14771 * gimple.c (compare_field_offset): Rename into...
14772 (gimple_compare_field_offset): ...this. Compare the full access if
14773 the offset is self-referential.
14774 (gimple_types_compatible_p): Adjust for above renaming.
14775 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
14776 DECL_NONADDRESSABLE_P flag of fields before merging them.
14778 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
14780 * tree.h (ctor_to_list): Delete.
14781 * tree.c (ctor_to_list): Delete.
14783 2010-05-15 Jan Hubicka <jh@suse.cz>
14785 * ipa-reference.c: Include toplev.h
14786 (is_proper_for_analysis): Only add to all_module_statics
14787 if it is allocated.
14788 (write_node_summary_p, stream_out_bitmap,
14789 ipa_reference_write_optimization_summary,
14790 ipa_reference_read_optimization_summary): New.
14791 (struct ipa_opt_pass_d pass_ipa_reference): Add
14792 optimization summary streaming.
14793 * lto-cgraph.c (referenced_from_this_partition_p,
14794 reachable_from_this_partition_p): New functions.
14795 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14796 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
14797 * opts.c (decode_options): Enable ipa_reference.
14798 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
14799 * lto-streamer.h (referenced_from_this_partition_p,
14800 reachable_from_this_partition_p): Declare.
14802 2010-05-15 Richard Guenther <rguenther@suse.de>
14804 PR tree-optimization/44038
14805 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
14806 taking the address of a V_C_E of a constant.
14808 2010-05-14 Jan Hubicka <jh@suse.cz>
14810 * tree.h (memory_identifier_string): Remove.
14811 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
14812 (ipa_reference_global_vars_info_d): Remove statics_not_read and
14813 statics_not_written.
14814 (ipa_reference_optimization_summary_d): New structure.
14815 (ipa_reference_optimization_summary_t): New type and vector.
14816 (ipa_reference_vars_info_d): Embedd structures instead of using
14818 (reference_vars_to_consider): Remove out of GGC space.
14819 (module_statics_escape): Remove.
14820 (global_info_obstack): Rename to ...
14821 (optimization_summary_obstack): ... this one.
14822 (initialization_status_t): Remove.
14823 (memory_identifier_string): Remove.
14824 (get_reference_vars_info): Fix indenting.
14825 (set_reference_vars_info): Likewise.
14826 (get_reference_optimization_summary): New.
14827 (set_reference_optimization_summary): New.
14828 (get_global_reference_vars_info): Remove.
14829 (ipa_reference_get_read_global): Remove.
14830 (ipa_reference_get_written_global): Remove.
14831 (ipa_reference_get_not_read_global): Update.
14832 (ipa_reference_get_not_written_global): Update.
14833 (is_proper_for_analysis): Outlaw addressable.
14834 (propagate_bits): Update for new datastructures.
14835 (analyze_variable): Remove.
14836 (init_function_info): Update for new datastructures.
14837 (clean_function_local_data): Remove.
14838 (clean_function): Remove.
14839 (copy_global_bitmap): Use optimizations_summary_obstack.
14840 (duplicate_node_data): Duplicate optimization summary only.
14841 (remove_node_data): Remove optimization summary only.
14842 (generate_summary): Do not analyze variables; do not compute
14843 module_statics_escape; do not prune solutions by it.
14844 (read_write_all_from_decl): Fix typos in comments.
14845 (propagate): Doscover readonly and nonaddressable first;
14846 update for new datastructures; share global bitmaps.
14847 * ipa-reference.h (ipa_reference_get_read_global,
14848 ipa_reference_get_written_global): Remove.
14849 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
14850 * Makefile.in: Remove ipa-refereference from GT files.
14852 2010-05-14 Jakub Jelinek <jakub@redhat.com>
14855 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
14856 for all SYMBOL_REF_DECLs.
14858 2010-05-14 Jan Hubicka <jh@suse.cz>
14860 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
14861 (varpool_all_refs_explicit_p): New inline function.
14862 * ipa-reference.c: Update comment.
14863 (module_statics_written): Remove.
14864 (get_static_decl): Remove.
14865 (ipa_init): Do not initialize module_statics_written.
14866 (analyze_function): Likewise.
14867 (generate_summary): Likewise; do not compute module_statics_readonly
14868 and do not update variable flags.
14869 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
14870 * ipa.c: Inlucde flags.h
14871 (cgraph_local_node_p): New.
14872 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
14873 promote functions to local.
14874 (ipa_discover_readonly_nonaddressable_vars): New function.
14875 (function_and_variable_visibility): Use cgraph_local_node_p.
14876 * varpool.c (varpool_finalize_decl): Set force_output for
14877 DECL_PRESERVE_P vars.
14879 2010-05-14 Jan Hubicka <jh@suse.cz>
14881 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
14883 2010-05-14 Richard Guenther <rguenther@suse.de>
14885 PR tree-optimization/44119
14886 * tree-ssa-pre.c (eliminate): Properly mark replacement of
14887 a PHI node necessary.
14889 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
14891 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
14893 2010-05-14 Jason Merrill <jason@redhat.com>
14896 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
14897 (gimple_call_set_nothrow): New.
14898 * gimple.c (gimple_build_call_from_tree): Call it.
14899 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
14902 * gimplify.c (gimplify_seq_add_stmt): No longer static.
14903 * gimple.h: Declare it.
14904 * gimple.c (gimple_build_eh_filter): No ops.
14906 2010-05-14 Jan Hubicka <jh@suse.cz>
14908 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
14909 nodes already in queue.
14910 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
14911 re-enqueueing node.
14913 2010-05-14 Jakub Jelinek <jakub@redhat.com>
14916 * cfgexpand.c (expand_debug_expr): If non-memory op0
14917 has BLKmode, return NULL.
14919 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
14921 * config.gcc: Add support for --with-cpu option for bdver1.
14922 * config/i386/i386.h (TARGET_BDVER1): New macro.
14923 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
14924 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
14925 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
14926 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
14927 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
14928 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
14929 (processor_type): Add PROCESSOR_BDVER1.
14930 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
14931 processor_type in config/i386/i386.h.
14932 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
14933 movaps <reg, reg> instead of movapd <reg, reg> when replacing
14934 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
14935 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
14936 to emit packed xor instead of packed double/packed integer
14937 xor for SSE and AVX when moving a zero value.
14938 * config/i386/sse.md: Add check for
14939 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
14940 movapd/movdqa for SSE and AVX.
14941 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
14942 single logical operations i.e and, or and xor instead of packed double
14943 logical operations for SSE and AVX.
14944 * config/i386/i386-c.c (ix86_target_macros_internal):
14945 Add PROCESSOR_BDVER1.
14946 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
14947 (has_fma4, has_xop): New.
14948 * config/i386/i386.c (bdver1_cost): New variable.
14949 (m_BDVER1): New macro.
14950 (m_AMD_MULTIPLE): Add m_BDVER1.
14951 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
14952 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
14953 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
14954 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
14955 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
14956 x86_tune_sse_partial_reg_dependency,
14957 x86_tune_sse_unaligned_load_optimal,
14958 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
14959 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
14960 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
14961 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
14962 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
14963 Enable/disable for bdver1.
14964 (processor_target_table): Add bdver1_cost.
14965 (cpu_names): Add bdver1.
14966 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
14967 processor_alias_table.
14968 (ix86_expand_vector_move_misalign): Change.
14969 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
14970 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
14971 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
14972 of movupd/movdqu for SSE and AVX.
14973 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
14974 (ix86_tune_adjust_cost): Add code for bdver1.
14975 (standard_sse_constant_opcode): Add check for
14976 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
14977 of packed double xor for SSE and AVX.
14979 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
14981 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
14982 result to unsigned.
14984 2010-05-14 Tristan Gingold <gingold@adacore.com>
14986 * toplev.c (default_debug_hooks): Remove this variable.
14987 (process_options): Remove assignments to default_debug_hooks.
14989 2010-05-14 Martin Jambor <mjambor@suse.cz>
14991 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
14992 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
14993 * langhooks.h (struct lang_hooks_for_decls): Removed field
14995 * tree.c (free_lang_data): Remove assignment to
14996 lang_hooks.fold_obj_type_ref.
14997 * tree.def (OBJ_TYPE_REF): Update comment.
14999 2010-05-14 Richard Guenther <rguenther@suse.de>
15001 PR tree-optimization/44124
15002 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
15004 2010-05-14 Alan Modra <amodra@gmail.com>
15007 * config/rs6000/rs6000.c (struct machine_function): Reorder
15008 fields for better packing. Add lr_save_state.
15009 (rs6000_ra_ever_killed): Return lr_save_state if set.
15010 (rs6000_emit_eh_reg_restore): Set lr_save_state.
15012 2010-05-13 Jan Hubicka <jh@suse.cz>
15014 * varpool.c (decide_is_variable_needed): Drop code checking
15015 TREE_SYMBOL_REFERENCED.
15017 2010-05-13 Jan Hubicka <jh@suse.cz>
15019 * final.c (output_addr_const): Do not call mark_decl_referenced.
15020 * cgraphunit.c (process_function_and_variable_attributes): Use
15021 mark_needed_node dirrectly.
15022 (assemble_thunk): Do not call mark_decl_referenced.
15024 2010-05-13 Anatoly Sokolov <aesok@post.ru>
15026 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
15028 2010-05-13 Jeff Law <law@redhat.com>
15030 * ira-conflicts.c (print_allocno_conflicts): New function broken out
15032 (print_conflicts): Call print_allocno_conflicts.
15034 2010-05-13 Jakub Jelinek <jakub@redhat.com>
15037 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
15040 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
15042 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
15043 t-mingw-w64 or t-mingw-w32 for multilib configuration.
15044 * config/i386/t-mingw-w32: New.
15045 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
15047 2010-05-13 Martin Jambor <mjambor@suse.cz>
15049 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
15051 * gimple-fold.c (get_base_binfo_for_type): New function.
15052 (gimple_get_relevant_ref_binfo): Likewise.
15053 (gimple_fold_obj_type_ref_known_binfo): Likewise.
15054 (gimple_fold_obj_type_ref): Likewise.
15055 (fold_gimple_call): Simplify condition for folding virtual calls
15056 and call gimple_fold_obj_type_ref.
15057 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
15058 (gimple_fold_obj_type_ref_known_binfo): Likewise.
15060 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
15062 * config/rs6000/rs6000-protos.h
15063 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
15064 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
15065 (rs6000_debug_mode_dependent_address)
15066 (rs6000_mode_dependent_address_ptr): Likewise.
15068 2010-05-13 Jakub Jelinek <jakub@redhat.com>
15071 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
15073 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
15074 * tree-sra.c (create_access_replacement): Call unshare_expr before
15075 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
15076 * dwarf2out.c: Include tree-flow.h.
15077 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
15078 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
15079 Handle DW_OP_bit_piece.
15080 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
15081 construct_piece_list, adjust_piece_list): New functions.
15082 (add_var_loc_to_decl): Handle SRA optimized variables.
15083 Adjust for var_loc_note to loc field renaming.
15084 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
15085 in VAR_LOCATION note.
15086 (new_loc_descr_op_bit_piece): New function.
15087 (dw_sra_loc_expr): New function.
15088 (dw_loc_list): Use it. Don't handle the last range after the
15089 loop, handle it inside of the loop. Adjust for var_loc_note
15090 to loc field renaming.
15091 (add_location_or_const_value_attribute): Only special case
15092 single entry loc lists if loc is NOTE_P. Adjust for
15093 var_loc_note to loc field renaming.
15094 (dwarf2out_var_location): Don't set newloc->var_loc_note
15095 and newloc->next here.
15097 2010-05-12 Jan Hubicka <jh@suse.cz>
15099 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
15101 * cgraph.h (cgraph_only_called_directly_p,
15102 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
15103 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
15104 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
15106 * ipa.c (cgraph_remove_unreachable_nodes): Use
15107 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
15109 * tree-inline.c (copy_bb): Check address_taken flag.
15110 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
15111 externally_visible flag.
15113 2010-05-12 Jason Merrill <jason@redhat.com>
15117 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
15118 * sdbout.c (plain_type_1): Likewise.
15119 * dwarf2out.c (is_base_type): Likewise.
15120 (gen_type_die_with_usage): Likewise. Generate
15121 DW_TAG_unspecified_type for any LANG_TYPE.
15123 2010-05-12 Jan Hubicka <jh@suse.cz>
15125 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
15127 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
15128 (cgraph_clone_edge): Update.
15129 (cgraph_node_remove_callees): Remove indirect calls too.
15130 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
15131 (cgraph_create_indirect_edge): Update prototype.
15132 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
15133 is_proper_for_analysis.
15134 (add_new_function, visited_nodes, function_insertion_hook_holder,
15135 get_local_reference_vars_info, mark_address_taken, mark_address,
15136 mark_load, mark_store, check_asm_memory_clobber, check_call,
15137 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
15138 (ipa_init): Do not initialize visited_nodes;
15139 function_insertion_hook_holder.
15140 (analyze_variable): Rewrite.
15141 (analyze_function): Rewrite.
15142 (copy_local_bitmap): Remove.
15143 (duplicate_node_dat): Do not duplicate local info.
15144 (generate_summary): Simplify to only walk cgraph.
15145 (write_node_summary_p, ipa_reference_write_summary,
15146 ipa_reference_read_summary): Remove.
15147 (propagate): Do not remove function insertion;
15149 (pass_ipa_reference): NULLify summary handling fields.
15150 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
15151 (input_edge): Input ecf_flags.
15152 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
15153 (update_indirect_edges_after_inlining): Ignore edges with unknown
15156 2010-05-12 Sriraman Tallam <tmsriram@google.com>
15158 * implicit-zee.c: New file.
15159 * tree-pass.h (pass_implicit_zee): Declare.
15160 * passes.c (init_optimization_passes): Add zee pass.
15161 * common.opt (fzee): New flag.
15162 * timevar.def (TV_ZEE): Define.
15163 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
15165 * Makefile.in (implicit-zee.o): Add new build file.
15167 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
15168 Nathan Froyd <froydnj@codesourcery.com>
15170 * c-common.c (sync_resolve_params): Remove write-only variable.
15172 2010-05-12 Anatoly Sokolov <aesok@post.ru>
15174 * target.h (struct gcc_target): Add mode_dependent_address_p field.
15175 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
15176 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
15177 * targhooks.c (default_mode_dependent_address_p): New function.
15178 * targhooks.h (default_mode_dependent_address_p): Declare function.
15179 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
15180 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
15181 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
15182 target hook. Change return type to bool.
15183 * recog.h (mode_dependent_address_p): Change return type to bool.
15185 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
15186 Nathan Froyd <froydnj@codesourcery.com>
15188 * tree-mudflap.c (build_function_type_0, build_function_type_1,
15189 build_function_type_2, build_function_type_3): Remove.
15190 (mudflap_init): Use build_function_type_list.
15192 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
15193 Nathan Froyd <froydnj@codesourcery.com>
15195 * coverage.c (build_fn_info_value): Call build_constructor instead of
15196 build_constructor_from_list.
15197 (build_ctr_info_value): Likewise.
15198 (build_gcov_info): Likewise.
15200 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
15202 * tree.c (build_constructor): Compute TREE_CONSTANT for the
15203 resultant constructor.
15204 (build_constructor_single): Don't set TREE_CONSTANT.
15205 (build_constructor_from_list): Don't compute TREE_CONSTANT.
15207 2010-05-12 Jan Hubicka <jh@suse.cz>
15209 * cgraph.h (struct varpool_node): Add aux.
15210 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
15211 * varpool.c (varpool_remove_node): Do not remove initializer.
15212 (varpool_reset_queue): Export.
15213 (varpool_finalize_decl): Volatile vars are forced to be output.
15214 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
15216 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
15217 process_references, varpool_can_remove_if_no_refs): New functions.
15218 (cgraph_remove_unreachable_nodes): Handle variables too.
15220 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
15223 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
15225 2010-05-12 Jakub Jelinek <jakub@redhat.com>
15227 PR middle-end/44085
15228 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
15229 change value of ORT_TASK.
15230 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
15231 (omp_notice_threadprivate_variable): New function.
15232 (omp_notice_variable): Call it for threadprivate variables.
15233 If enclosing ctx is a task, print enclosing task rather than
15234 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
15235 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
15236 if task has untied clause.
15239 * dwarf2out.c (base_type_die): Don't add name attribute here.
15240 (modified_type_die): Instead of sizetype use
15241 its underlying original type. If a DW_TAG_base_type doesn't
15242 have name added, add __unknown__.
15243 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
15244 always call force_type_die instead.
15246 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
15248 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
15249 for __stack_chk_guard.
15251 2010-05-11 Jakub Jelinek <jakub@redhat.com>
15253 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
15254 don't call start_source_file debug hook here...
15255 (finish_options): ... but here, after outputting predefined and
15256 command line defines and undefs.
15258 PR middle-end/44071
15259 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
15261 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
15262 optimizing away empty bb with no successors, move over its
15263 footer chain to fallthru predecessor.
15264 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
15265 (rtl_split_edge): For asm goto call patch_jump_insn even if
15266 splitting fallthru edge.
15269 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
15270 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
15271 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
15272 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
15276 * c-parser.c (c_parser_expression): Mark LHS of a comma
15277 expression as read if it is a decl, handled component or
15278 COMPOUND_EXPR with that on the RHS.
15279 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
15280 if it is a decl or handled component.
15282 2010-05-11 Jan Hubicka <jh@suse.cz>
15284 * lto-symtab.c (lto_symtab_free): New function.
15285 * lto-streamer.h (lto_symtab_free): Declare.
15287 2010-05-11 Jan Hubicka <jh@suse.cz>
15289 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
15290 that if function is needed it is reachable.
15291 (lto_output_node): See if it the function is reachable or referenced.
15292 (output_cgraph): Update call of lto_output_node.
15293 * lto-streamer.h (reachable_from_other_partition_p): Declare.
15295 2010-05-11 Jan Hubicka <jh@suse.cz>
15297 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
15300 2010-05-11 Jan Hubicka <jh@suse.cz>
15302 PR tree-optimize/44063
15303 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
15305 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
15307 (estimate_function_body_sizes): Compute sizes even when disregarding.
15309 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
15311 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
15313 2010-05-11 Jan Hubicka <jh@suse.cz>
15315 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
15316 into every boundary.
15318 2010-05-11 Jan Hubicka <jh@suse.cz>
15320 * matrix-reorg.c (matrix_reorg): Rebuild edges.
15322 2010-05-11 Jan Hubicka <jh@suse.cz>
15324 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
15325 lto_streamer_cache_delete): Put nodes into heap.
15326 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
15329 2010-05-11 Jan Hubicka <jh@suse.cz>
15331 * cgraphbuild.c (cgraph_rebuild_references): New.
15332 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
15333 out extern inlines.
15334 * cgraph.h (cgraph_rebuild_references): Declare.
15335 * tree-inline.c (tree_function_versioning): Use it.
15336 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
15338 2010-05-11 Jan Hubicka <jh@suse.cz>
15340 * cgraph.c: Include ipa-utils.h
15341 (cgraph_create_virtual_clone): Update references.
15342 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
15344 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
15346 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
15347 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
15350 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
15352 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
15354 2010-05-11 Jakub Jelinek <jakub@redhat.com>
15356 * gcc.c (execute): For -### don't quote arguments that
15357 contain just alphanumerics and _/-. characters.
15358 * doc/invoke.texi: Document that change for -###.
15361 * df-problems.c (struct dead_debug): Add to_rescan field.
15362 (dead_debug_init): Clear to_rescan field.
15363 (dead_debug_finish): Rescan all debug insns in to_rescan
15364 bitmap and free the bitmap.
15365 (dead_debug_insert_before): Instead of rescanning debug insns
15366 immediately queue their rescanning until dead_debug_finish.
15367 (df_note_bb_compute): After dead_debug_add do continue instead
15370 2010-05-10 Jakub Jelinek <jakub@redhat.com>
15373 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
15374 clear also INSN_REG_USE_LIST.
15376 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15378 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
15380 2010-05-10 Jan Hubicka <jh@suse.cz>
15382 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
15385 2010-05-10 Jan Hubicka <jh@suse.cz>
15387 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
15389 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
15390 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
15391 (lto_streamer_cache_create): Init alloc pool.
15392 (lto_streamer_cache_delete): Free alloc pool.
15393 * lto-streamer.h: Include alloc pool.
15394 (lto_streamer_cache_d): Use alloc pool.
15395 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
15397 2010-05-10 Jan Hubicka <jh@suse.cz>
15399 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
15400 * cgraphbuild.c: Include except.h
15401 (record_type_list, record_eh_tables): New function.
15402 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
15404 2010-05-10 Jan Hubicka <jh@suse.cz>
15406 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
15407 __frame_dummy_init_array_entry, force_to_data): Attribute as used
15408 rather than unused.
15410 2010-05-10 Michael Matz <matz@suse.de>
15412 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
15413 (can_reassociate_p): Use FLOAT_TYPE_P.
15414 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
15415 (vect_force_simple_reduction): ... this.
15416 * tree-parloops.c (gather_scalar_reductions): Use
15417 vect_force_simple_reduction.
15418 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
15419 vect_is_simple_reduction, add modify argument, if true rewrite
15420 "a-b" into "a+(-b)".
15421 (vect_is_simple_reduction, vect_force_simple_reduction): New
15423 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
15425 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
15426 Vladimir Makarov <vmakarov@redhat.com>
15428 PR rtl-optimization/44012
15429 * ira-build.c (remove_unnecessary_allocnos): Nullify
15430 regno_allocno_map of the removed allocno.
15432 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15434 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
15436 * configure: Regenerate.
15438 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15440 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
15442 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
15443 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
15445 * configure: Regenerate.
15447 2010-05-10 Richard Guenther <rguenther@suse.de>
15449 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
15450 marked if the entry identifier is marked.
15452 2010-05-10 Richard Guenther <rguenther@suse.de>
15454 * c-common.c (struct c_common_attributes): Add fnspec attribute.
15455 (handle_fnspec_attribute): New function.
15456 * gimple.h (gimple_call_return_flags): Declare.
15457 (gimple_call_arg_flags): Likewise.
15458 * gimple.c (gimple_call_arg_flags): New function.
15459 (gimple_call_return_flags): Likewise.
15460 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
15461 New argument flags.
15462 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
15463 return value flags.
15464 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
15465 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
15467 (make_heapvar_for): ... this new function.
15468 (handle_rhs_call): Handle fnspec attribute argument specifiers.
15469 (handle_lhs_call): Likewise.
15470 (find_func_aliases): Adjust.
15472 2010-05-10 Richard Guenther <rguenther@suse.de>
15474 PR tree-optimization/44050
15475 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
15477 2010-05-10 Wei Guozhi <carrot@google.com>
15480 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
15482 2010-05-09 Joseph Myers <joseph@codesourcery.com>
15485 * c-typeck.c (lookup_field): Take a type directly. Update
15487 (build_component_ref): Update call to lookup_field.
15488 (set_init_label): Use lookup_field to find initialized field.
15489 Handle returned list of fields like a sequence of designators.
15491 2010-05-09 Richard Guenther <rguenther@suse.de>
15493 PR middle-end/44024
15494 * fold-const.c (tree_single_nonzero_warnv_p): Properly
15495 handle &FUNCTION_DECL.
15497 2010-05-09 Joseph Myers <joseph@codesourcery.com>
15500 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
15501 structures and unions recursively.
15502 (detect_field_duplicates): Move duplicate detection with a hash to
15503 detect_field_duplicates_hash. Always use a hash if anonymous
15504 structures or unions are present.
15505 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
15508 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
15511 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
15512 detect Atom, Core 2 and Core i7.
15514 2010-05-09 Richard Guenther <rguenther@suse.de>
15516 * gcc.c (store_arg): Handle temporary file deletion for
15519 2010-05-09 Richard Guenther <rguenther@suse.de>
15521 PR middle-end/44043
15522 * ipa-inline.c (estimate_function_body_sizes): Return after
15523 disregarding inline limits.
15525 2010-05-09 Richard Guenther <rguenther@suse.de>
15527 * gcc.c (store_arg): Revert last change.
15529 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
15531 PR middle-end/28685
15532 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
15533 (optimize_ops_list): Call it.
15535 2010-05-08 Richard Guenther <rguenther@suse.de>
15537 PR tree-optimization/44030
15538 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
15539 NECESSARY flag if we propagate from a inserted expression.
15541 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
15543 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
15544 domain types as equal if they are both PLACEHOLDER_EXPRs.
15546 2010-05-08 Richard Guenther <rguenther@suse.de>
15548 * lto-wrapper.c (run_gcc): Remove linker output from
15549 command line for LTRANS invocation.
15551 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
15553 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
15554 lto-macho as lto_binary_reader.
15555 * target.h (struct gcc_target): New hooks lto_start and lto_end.
15556 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
15557 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
15558 in lto_start and lto_end calls.
15559 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
15561 (scan_prog_file): Update is_elf_or_coff call.
15562 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
15564 * collect2.c (main): Fix enum comparison.
15566 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
15568 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
15569 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
15570 and TARGET_ASM_LTO_END.
15571 * darwin.c: Include obstack.h and lto-streamer.h.
15572 (lto_section_names_offset, lto_section_names_obstack,
15573 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
15575 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
15576 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
15577 to a temporary file.
15578 (darwin_asm_lto_end): New function. Restore asm_out_file.
15579 (darwin_asm_named_section): For LTO sections, replace the name with
15580 the offset of the section name in a string table, and build this
15582 (darwin_file_start): Initialize global vars for LTO support.
15583 (darwin_file_end): If output to asm_out_file was redirected, append it
15584 to the proper asm_out_file here. Add the section names section.
15586 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
15588 * c-pragma.c (pending_weak_d, pending_weak): New.
15589 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
15590 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
15591 handle_pragma_weak): Update the uses of pending_weaks.
15593 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15595 PR documentation/44016
15596 * doc/standards.texi (Standards): Link to unversioned
15597 cxx0x_status.html page.
15599 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
15602 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
15603 in addition to TREE_USED, to avoid "set but unused" warnings.
15605 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
15607 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
15608 (is_loop_prefetching_profitable): Do not insert prefetches
15609 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
15610 times the prefetch ahead distance.
15612 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
15614 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
15615 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
15616 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
15619 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
15621 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
15622 a diagnostic info when the insn-to-mem ratio is too small.
15624 2010-05-07 Richard Guenther <rguenther@suse.de>
15626 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
15628 (store_arg): Queue temp_filename for deletion instead of
15629 the whole argument.
15631 2010-05-07 Richard Guenther <rguenther@suse.de>
15633 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
15634 (run_gcc): Handle LTRANS phase invocation.
15635 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
15637 2010-05-07 Jakub Jelinek <jakub@redhat.com>
15639 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
15640 this is also meaningful on PARM_DECLs and RESULT_DECLs.
15642 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15644 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
15646 2010-05-07 Richard Guenther <rguenther@suse.de>
15648 PR tree-optimization/44020
15649 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
15650 code when PRE is not yet initialized.
15652 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15654 * config/mips/dbxmdebug.h: Remove.
15655 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
15657 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
15659 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
15660 with null pointer and also warn about ordered comparison of zero with
15661 pointer if -Wextra.
15663 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
15665 * graphite-blocking.c
15666 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
15667 * graphite-clast-to-gimple.c
15668 (clast_to_gcc_expression): Same.
15669 (precision_for_value): Same.
15670 (precision_for_interval): Same.
15671 (gcc_type_for_interval): Same.
15672 (graphite_create_new_guard): Same.
15673 (compute_bounds_for_level): Same.
15674 (graphite_create_new_loop_guard): Same.
15675 * graphite-interchange.c
15676 (build_linearized_memory_access): Same.
15677 (pdr_stride_in_loop): Same.
15678 (memory_strides_in_loop_1): Same.
15679 (memory_strides_in_loop): Same.
15680 (extend_scattering): Same.
15681 (psct_scattering_dim_for_loop_depth): Same.
15682 (pbb_number_of_iterations): Same.
15684 (debug_iteration_domains): Same.
15686 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15687 (ppl_set_inhomogeneous_gmp): Same.
15688 (ppl_strip_loop): Same.
15689 (ppl_lexico_compare_linear_expressions): Same.
15690 (ppl_read_polyhedron_matrix): Same.
15691 (ppl_max_for_le_pointset): Same.
15693 (ppl_read_polyhedron_matrix): Same.
15694 (tree_int_to_gmp): Same.
15695 (gmp_cst_to_tree): Same.
15696 (ppl_set_inhomogeneous): Same.
15697 (ppl_set_inhomogeneous_tree): Same.
15698 (ppl_set_coef): Same.
15699 (ppl_set_coef_tree): Same.
15700 * graphite-sese-to-poly.c
15701 (build_pbb_scattering_polyhedrons): Same.
15702 (build_scop_scattering): Same.
15703 (scan_tree_for_params_right_scev): Same.
15704 (scan_tree_for_params): Same.
15705 (find_params_in_bb): Same.
15706 (find_scop_parameters): Same.
15707 (add_upper_bounds_from_estimated_nit): Same.
15708 (build_loop_iteration_domains): Same.
15709 (add_condition_to_domain): Same.
15710 (pdr_add_memory_accesses): Same.
15712 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
15714 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
15715 CLooG's value_* macros to their respective mpz_* counterparts.
15716 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
15717 (graphite_create_new_loop_guard): Same.
15718 * graphite-interchange.c (build_linearized_memory_access): Same.
15719 (pdr_stride_in_loop): Same.
15720 (memory_strides_in_loop_1): Same.
15721 (1st_interchange_profitable_p): Same.
15722 * graphite-poly.c (extend_scattering): Same.
15723 (psct_scattering_dim_for_loop_depth): Same.
15724 (pbb_number_of_iterations): Same.
15725 (pbb_number_of_iterations_at_time): Same.
15726 * graphite-poly.h (new_1st_loop): Same.
15727 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
15728 (oppose_constraint): Same.
15729 (insert_constraint_into_matrix): Same.
15730 (ppl_set_inhomogeneous_gmp): Same.
15731 (ppl_set_coef_gmp): Same.
15732 (ppl_strip_loop): Same.
15733 (ppl_lexico_compare_linear_expressions): Same.
15734 (ppl_max_for_le_pointset): Same.
15735 (ppl_min_for_le_pointset): Same.
15736 (ppl_build_realtion): Same.
15737 * graphite-ppl.h (gmp_cst_to_tree): Same.
15738 (ppl_set_inhomogeneous): Same.
15739 (ppl_set_inhomogeneous_tree): Same.
15740 (ppl_set_coef): Same.
15741 (ppl_set_coef_tree): Same.
15742 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
15743 (build_scop_scattering): Same.
15744 (add_value_to_dim): Same.
15745 (scan_tree_for_params_right_scev): Same.
15746 (scan_tree_for_params_int): Same.
15747 (scan_tree_for_params): Same.
15748 (find_params_in_bb): Same.
15749 (find_scop_parameters): Same.
15750 (add_upper_bounds_from_estimated_nit): Same.
15751 (build_loop_iteration_domains): Same.
15752 (create_linear_expr_from_tree): Same.
15753 (add_condition_to_domain): Same.
15754 (pdr_add_memory_accesses): Same.
15756 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
15757 Jason Merrill <jason@redhat.com>
15759 * c-common.c (c_common_reswords): Add nullptr.
15760 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
15761 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
15762 (gen_type_die_with_usage): Likewise.
15763 * dbxout.c (dbxout_type): Likewise.
15764 * sdbout.c (plain_type_1): Likewise.
15766 2010-05-06 Jason Merrill <jason@redhat.com>
15768 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
15769 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
15771 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
15773 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
15774 stripping WITH_SIZE_EXPR.
15775 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
15778 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15780 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
15781 list of obsolete configurations.
15782 Disabled check for obsolete configurations.
15783 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
15784 Removed support for previous versions.
15785 * config/mips/iris.h: Removed.
15786 * config/mips/iris5.h: Removed.
15787 * config/mips/iris6.h: Merged old iris.h contents.
15788 (TARGET_IRIX): Removed.
15789 (DRIVER_SELF_SPECS): Removed mabi=32.
15790 (IDENT_ASM_OP): Removed undef.
15791 (STARTFILE_SPEC): Removed mabi=32.
15792 (ENDFILE_SPEC): Likewise.
15793 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
15794 (MACHINE_TYPE): Update for IRIX 6.5.
15795 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
15796 TARGET_IRIX by TARGET_IRIX6.
15797 (mips_file_start): Likewise.
15798 (mips_output_external): Remove IRIX 5/6 O32 support.
15799 (mips_output_function_prologue): Likewise.
15800 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
15802 (TARGET_CPU_CPP_BUILTINS): Likewise.
15803 (TARGET_IRIX): Removed.
15804 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
15805 (MULTILIB_DIRNAMES): Removed 32.
15806 (MULTILIB_OSDIRNAMES): Removed ../lib.
15807 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
15808 (Specific, mips-sgi-irix5): Document removal.
15809 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
15810 Remove references to older IRIX 6 releases and the O32 ABI.
15812 2010-05-06 Jakub Jelinek <jakub@redhat.com>
15815 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
15816 instead of DF_REF_REAL_REG.
15818 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
15821 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
15822 handling to still return true for x64 targets.
15824 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
15826 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
15828 2010-05-06 Jan Hubicka <jh@suse.cz>
15830 PR tree-optimization/43791
15831 * ipa-inline.c (update_caller_keys): Remove bogus
15832 disregard_inline_limits check.
15834 2010-05-06 Michael Matz <matz@suse.de>
15836 PR tree-optimization/43984
15837 * tree-ssa-pre.c (inserted_phi_names): Remove.
15838 (inserted_exprs): Change to bitmap.
15839 (create_expression_by_pieces): Set bits, don't append to vector.
15840 (insert_into_preds_of_block): Don't handle inserted_phi_names.
15841 (eliminate): Don't look at inserted_phi_names, remove deleted
15842 insns from inserted_exprs.
15843 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
15844 (init_pre, fini_pre): Allocate and free bitmaps.
15845 (execute_pre): Insert insns on edges before elimination.
15847 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
15849 * tree.c (initializer_zerop): Handle STRING_CST.
15851 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
15854 * doc/invoke.texi (Wimplicit): Document as C only.
15855 * opts.c (common_handle_option): Add argument kind.
15856 (handle_option): Rename as read_cmdline_option. Factor out code to...
15857 (handle_option): ... here. New.
15858 (handle_options): Rename as read_cmdline_options.
15859 (decode_options): Update call.
15860 (set_option): Use option index instead of option pointer. Classify
15861 diagnostics correctly.
15862 (enable_warning_as_error): Call handle_option.
15863 * opts.h (set_option): Update declaration.
15864 (handle_option): Declare.
15865 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
15866 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
15867 * c-opts.c (set_Wimplicit): Delete.
15868 (c_family_lang_mask): New static constant.
15869 (c_common_handle_option): Add argument kind. Use handle_option
15870 instead of set_Wimplicit.
15871 (c_common_post_options): warn_implicit and warn_implicit_int
15872 are disabled by default.
15873 * c-common.c (warn_implicit): Do not define here.
15874 * c-common.h (warn_implicit): Do not declare here.
15875 (c_common_handle_option): Update declaration.
15876 * lto-opts.c (lto_reissue_options): Update call to set_option.
15878 2010-05-06 Richard Guenther <rguenther@suse.de>
15880 PR tree-optimization/43571
15881 * domwalk.c (walk_dominator_tree): Walk the dominator
15882 sons in more optimal order.
15884 2010-05-06 Richard Guenther <rguenther@suse.de>
15886 PR tree-optimization/43934
15887 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
15888 (stmt_cost): Likewise.
15889 (extract_true_false_args_from_phi): New helper.
15890 (determine_max_movement): For PHI nodes verify we can hoist them
15891 and compute their cost.
15892 (determine_invariantness_stmt): Handle PHI nodes.
15893 (move_computations_stmt): Likewise. Hoist PHI nodes in
15894 if-converted form using COND_EXPRs.
15895 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
15896 (tree_ssa_lim): Likewise.
15897 * tree-flow.h (tree_ssa_lim): Adjust prototype.
15898 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
15900 2010-05-06 Richard Guenther <rguenther@suse.de>
15902 PR tree-optimization/43987
15903 * tree-ssa-structalias.c (could_have_pointers): For possibly
15904 address-taken variables force pointers to be recorded.
15905 (create_variable_info_for_1): Likewise.
15906 (push_fields_onto_fieldstack): Pass in wheter all fields
15907 must have pointers.
15908 (find_func_aliases): Query types instead of vars whether
15909 they contain pointers where appropriate.
15911 2010-05-06 Jan Hubicka <jh@suse.cz>
15913 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
15914 (record_reference, mark_address, mark_load, mark_store): Record
15916 (record_references_in_initializer): Update call of record_references.
15917 (rebuild_cgraph_edges): Remove all references before rebuiding.
15918 * cgraph.c (cgraph_create_node): Clear ref list.
15919 (cgraph_remove_node): Remove references.
15920 (dump_cgraph_node): Dump references.
15921 (cgraph_clone_node): Clone references.
15922 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
15923 (struct cgraph_node, varpool_node): Add ref_lst.
15924 * ipa-ref.c: New file.
15925 * ipa-ref.h: New file.
15926 * ipa-ref-inline.h: New file.
15927 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
15928 (referenced_from_other_partition_p): New function.
15929 (lto_output_varpool_node): Take set arugment; call
15930 referenced_from_other_partition.
15931 (lto_output_ref): New.
15932 (add_references): New.
15933 (output_refs): New.
15934 (output_cgraph): Compute boundary based on references; output refs.
15935 (output_varpool): Accept cgraph_node_set argument.
15938 (input_cgraph): Call input_refs.
15939 * lto-section-in.c (lto_section_name): Add refs.
15940 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
15941 (ipa-ref.o): New file.
15942 * varpool.c (varpool_node): Clear ipa ref list.
15943 (varpool_remove_node): Remove references.
15944 (dump_varpool_node): Dump references.
15945 (varpool_assemble_decl): Only compile finalized ones.
15946 (varpool_extra_name_alias): Initialize ref list.
15947 * lto-streamer.c (lto-get_section_name): Add .refs section.
15948 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
15949 (referenced_from_other_partition_p): Declared.
15951 2010-05-06 Ira Rosen <irar@il.ibm.com>
15953 PR tree-optimization/43901
15954 * tree-vect-stmts.c (vectorizable_call): Assert that vector
15955 type is not NULL if it's transformation phase, and return
15956 FALSE if it's analysis.
15957 (vectorizable_conversion, vectorizable_operation,
15958 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
15960 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
15962 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
15964 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
15966 * config/mips/mips-protos.h
15967 (mips_small_register_classes_for_mode_p): Delete prototype.
15969 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
15971 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
15972 * config/arm/arm.c (multiple_operation_profitable_p,
15973 compute_offset_order): New static functions.
15974 (load_multiple_sequence, store_multiple_sequence): Use them.
15975 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
15976 memory offsets, not register numbers.
15977 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
15979 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
15981 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
15982 (get_pending_sizes, put_pending_size, put_pending_sizes):
15983 Update the uses of pending_sizes.
15984 * c-decl.c (store_parm_decls): Likewise.
15985 * c-tree.h (struct c_arg_info): Likewise.
15986 * tree.h: Update the prototype for get_pending_sizes and
15989 2010-05-05 Jason Merrill <jason@redhat.com>
15992 * c-common.c (handle_aligned_attribute): Respect
15993 ATTR_FLAG_TYPE_IN_PLACE.
15996 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
15997 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15998 (TARGET_INITIALIZER): Use it.
15999 * c-common.c (attribute_takes_identifier_p): Call it.
16000 * c-common.h: Update prototype.
16001 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
16002 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
16004 2010-05-05 Jakub Jelinek <jakub@redhat.com>
16007 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
16008 DW_ID_down_case for Fortran compilation units.
16010 2010-05-05 Jan Hubicka <jh@suse.cz>
16012 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
16015 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
16017 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
16018 a variable-sized RESULT_DECL.
16020 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
16022 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
16024 2010-05-05 Jason Merrill <jason@redhat.com>
16027 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
16029 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
16031 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
16032 Jakub Jelinek <jakub@redhat.com>
16035 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
16036 (dead_debug_init, dead_debug_finish): New functions.
16037 (dead_debug_add, dead_debug_insert_before): Likewise.
16038 (df_note_bb_compute): Initialize a dead_debug object, add dead
16039 debug uses to it, insert debug bind insns before death insns,
16040 reset debug insns that refer to pending uses at the end.
16041 * rtl.h (make_debug_expr_from_rtl): New prototype.
16042 * varasm.c (make_debug_expr_from_rtl): New function.
16044 2010-05-05 Jan Hubicka <jh@suse.cz>
16046 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
16047 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
16048 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
16049 lto_varpool_encoder_deref, lto_varpool_encoder_size,
16050 lto_varpool_encoder_encode_initializer_p,
16051 lto_set_varpool_encoder_encode_initializer): New functions.
16052 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
16053 call output_varpool.
16054 (input_varpool_node): Do not always set analyzed.
16055 (input_cgraph_1): Return vector of cgraph nodes.
16056 (input_varpool_1): Return vector of varpools.
16057 (input_cgraph): Free the vectors.
16058 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16059 output only initializers needed.
16060 (lto_output): Only call output_cgraph.
16061 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
16062 * lto-section-out.c (lto_new_out_decl_state): Initialize
16063 state->varpool_node_encoder.
16064 * lto-streamer.h (lto_varpool_encoder_d): New.
16065 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
16066 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
16067 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
16068 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
16069 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
16071 (output_varpool, input_varpool): Remove declarations.
16073 2010-05-05 Jan Hubicka <jh@suse.cz>
16075 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
16076 with body can prevail.
16078 2010-05-05 Jan Hubicka <jh@suse.cz>
16080 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
16083 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
16085 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
16087 * gengtype.h (erro_at_line): Constify pos argument.
16089 * gengtype.c: Include hashtab.h.
16090 (enum gc_used): Document GC_MAYBE_POINTED_TO.
16091 (error_at_line): Constify pos argument.
16092 (do_typedef): Initialize p->opt field.
16093 (get_file_gtfilename): Fix comment typo.
16094 (struct walk_type_data): Constify line field.
16095 (get_output_file_for_structure): New function.
16096 (write_local_func_for_structure): Constify orig_s argument.
16097 Use get_output_file_for_structure.
16098 (write_func_for_structure): Use get_output_file_for_structure.
16099 (INDENT): New define.
16100 (dump_pair, dump_type, dump_type_list, dump_typekind)
16101 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
16102 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
16104 (seen_types): New variable.
16105 (main): New variable do_dump. Process "-d" command line option.
16106 Call dump_everything if dump requested.
16108 2010-05-05 Jakub Jelinek <jakub@redhat.com>
16110 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
16111 in a temporary instead of invoking the macro multiple times.
16112 (track_expr_p): Likewise.
16114 2010-05-04 Neil Vachharajani <nvachhar@google.com>
16116 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
16118 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
16119 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
16120 conditions for printing notes.
16121 * common.opt (-Wcoverage-mismatch): Allow negative, default to
16122 true, update documentation.
16123 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
16125 2010-05-04 Jakub Jelinek <jakub@redhat.com>
16128 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
16131 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
16134 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
16135 (*sse_prologue_save_insn1): Likewise.
16136 (SSE prologue save splitter): Likewise.
16138 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
16140 * tree.c (free_lang_data_in_one_sizepos): New inline function.
16141 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
16142 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
16143 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
16144 all decls. Call it on DECL_FIELD_OFFSET of fields.
16145 (find_decls_types_r): Follow DECL_VALUE_EXPR.
16146 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
16148 2010-05-04 Martin Jambor <mjambor@suse.cz>
16150 * tree-sra.c (build_access_from_expr_1): The first parameter type
16151 changed to simple tree.
16152 (build_access_from_expr): Likewise, gsi parameter was eliminated.
16153 (scan_assign_result): Renamed to assignment_mod_result, enum elements
16155 (build_accesses_from_assign): Removed all parameters except for a
16156 simple gimple statement. Now returns a simple bool.
16157 (scan_function): All non-analysis parts moved to separate functions
16158 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
16159 parameters and updated both callers.
16160 (sra_modify_expr): Removed parameter data.
16161 (sra_modify_function_body): New function.
16162 (perform_intra_sra): Call sra_modify_function_body to modify the
16164 (replace_removed_params_ssa_names): Parameter data changed into
16165 adjustments vector.
16166 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
16167 changed the parameter dont_convert to convert with the opposite
16169 (sra_ipa_modify_assign): Parameter data changed into adjustments
16170 vector, return value changed to bool.
16171 (ipa_sra_modify_function_body): New function.
16172 (sra_ipa_reset_debug_stmts): Updated a comment.
16173 (modify_function): Use ipa_sra_modify_function_body to modify function
16176 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
16178 PR middle-end/43671
16179 * alias.c (true_dependence): Handle the same VALUE in x and mem.
16180 (canon_true_dependence): Likewise.
16181 (write_dependence_p): Likewise.
16183 2010-05-04 Jan Hubicka <jh@suse.cz>
16185 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
16186 * cgraphbuild.c: Include ipa-utils.h
16187 (record_reference_ctx): New struct.
16188 (record_reference): Simplify to work on initializers; not statements.
16189 (mark_address, mark_load, mark_store): New.
16190 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
16191 walk PHI nodes too.
16192 (record_references_in_initializer): Update use of record_reference.
16193 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
16194 walk PHI nodes too.
16196 2010-05-04 Jan Hubicka <jh@suse.cz>
16198 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
16199 node will be removed anyway.
16200 (lto_varpool_replace_node): Allow also unanalyzed nodes;
16201 relink aliases of node into prevailing node.
16202 * varpool.c (varpool_remove_node): Remove aliases properly;
16203 when removing node, remove all its aliases too; remove DECL_INITIAL
16204 of removed node; ggc_free the varpool node.
16206 2010-05-04 Richard Guenther <rguenther@suse.de>
16208 PR tree-optimization/43879
16209 * tree-ssa-structalias.c (alias_get_name): Use
16210 DECL_ASSEMBLER_NAME if available.
16211 (create_function_info_for): Return the varinfo node.
16212 (ipa_pta_execute): Associate same-body aliases and extra names
16213 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
16215 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
16217 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
16219 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
16222 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
16223 only if HONOR_REG_ALLOC_ORDER is not defined.
16225 2010-05-04 Richard Guenther <rguenther@suse.de>
16227 PR tree-optimization/43949
16228 * tree-vrp.c (extract_range_from_binary_expr): Only handle
16231 2010-04-26 Jason Merrill <jason@redhat.com>
16233 * c.opt (-fstrict-enums): New.
16234 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
16236 2010-05-03 David Ung <davidu@mips.com>
16237 James E. Wilson <wilson@codesourcery.com>
16239 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
16240 emit the trap instruction before the divide for TUNE_74K.
16242 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
16244 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
16245 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
16246 based on the above, for new target hook.
16248 * hooks.c (hook_bool_mode_true): New generic hook.
16249 * hooks.h (hook_bool_mode_true): Add prototype.
16251 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
16253 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
16254 target hook, set to hook_bool_mode_false.
16255 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
16256 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
16257 with targetm.small_register_classes_for_mode_p.
16258 (find_reusable_reload): Likewise.
16259 (combine_reloads): Likewise.
16260 * reload1.c (reload_as_needed): Likewise.
16261 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
16262 * ifcvt.c (noce_process_if_block, check_cond_move_block,
16263 dead_or_predicable): Likewise.
16264 * regmove.c (optimize_reg_copy_1): Likewise.
16265 * calls.c (prepare_call_address): Likewise.
16266 (precompute_register_parameters): Likewise.
16268 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
16270 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
16271 implementation of the hook that considers all register classes
16272 small except for SH64.
16273 (sh_override_options): Use the new hook.
16274 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
16277 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
16279 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
16280 implementation of the hook that considers all register classes
16282 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
16285 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
16287 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
16288 implementation of the hook that considers all register classes
16290 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
16293 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
16295 * config/m32c/m32c.h: Likewise.
16296 * config/pdp11/pdp11.h: Likewise.
16297 * config/avr/avr.h: Likewise.
16298 * config/xtensa/xtensa.h: Likewise.
16299 * config/m68hc11/m68hc11.h: Likewise.
16300 * config/mn10300/mn10300.h: Likewise.
16301 * config/mcore/mcore.h: Likewise.
16302 * config/h8300/h8300.h: Likewise.
16303 * config/bfin/bfin.h: Likewise.
16305 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
16306 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
16308 2010-05-03 Anatoly Sokolov <aesok@post.ru>
16310 * double-int.h (tree_to_double_int): Remove macro.
16311 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
16312 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
16313 (tree_to_double_int): New function.
16314 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
16316 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
16318 2010-05-03 Richard Guenther <rguenther@suse.de>
16320 PR tree-optimization/43971
16321 * tree-ssa-structalias.c (get_constraint_for_1): Fix
16322 constraints in the !flag_delete_null_pointer_checks case.
16324 2010-05-03 Jakub Jelinek <jakub@redhat.com>
16327 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
16328 result mode matches original rtl mode.
16330 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
16333 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
16335 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
16337 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
16338 when processing flag options.
16340 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
16342 * gcov-iov.c (main): Change format string placeholder
16343 from %#08x to 0x%08x.
16344 * genchecksum.c (dosum): Change format string placeholder
16345 from %#02x to 0x%02x.
16347 2010-05-02 Richard Guenther <rguenther@suse.de>
16349 PR tree-optimization/43879
16350 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
16352 2010-05-02 Bruno Haible <bruno@clisp.org>
16354 * doc/extend.texi (Function Attributes): Fix a typo.
16356 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
16359 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
16360 placeholder from 0x%x to %#x.
16361 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
16362 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
16363 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
16364 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
16365 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
16366 * config/i386/i386.c (ix86_target_string): Ditto.
16367 * config/i386/i386.c (output_pic_addr_const): Ditto.
16368 (print_operand): Ditto.
16370 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
16372 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
16373 placeholder from 0x%x to %#x.
16374 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
16375 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
16376 (ASM_OUTPUT_DEBUG_DATA): Ditto.
16377 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
16378 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
16379 * optc-gen.awk: Ditto.
16380 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
16381 (HOST_WIDE_INT_PRINT_HEX): Ditto.
16382 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
16383 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
16385 2010-05-01 Anatoly Sokolov <aesok@post.ru>
16387 * target.h (struct calls): Add function_value_regno_p field.
16388 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
16389 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
16390 * targhooks.c (default_function_value_regno_p): New function.
16391 * targhooks.h (default_function_value_regno_p): Declare function.
16392 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
16393 * builtins.c. (apply_result_size): (Ditto.).
16394 * combine.c. (likely_spilled_retval_p): (Ditto.).
16395 * mode-switching.c. Include 'target.h'.
16396 (create_pre_exit): Use function_value_regno_p hook.
16397 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
16398 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
16399 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
16401 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
16402 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
16403 (ix86_function_value_regno_p): Declare as static, change argument
16404 type to const unsigned int.
16405 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
16407 2010-05-01 Richard Guenther <rguenther@suse.de>
16409 PR tree-optimization/43949
16410 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
16412 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
16414 2010-05-01 Anatoly Sokolov <aesok@post.ru>
16416 * rtl.h (CONST_DOUBLE_P): Define.
16417 (rtx_to_double_int): Declare.
16418 * emit-rtl.c (rtx_to_double_int): New function.
16419 * dwarf2out.c (insert_double): New function.
16420 (loc_descriptor, add_const_value_attribute): Clean up, use
16421 rtx_to_double_int and insert_double functions.
16423 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
16425 * doc/extend.texi (Inline): Add missing return keyword to examples.
16426 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
16429 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
16431 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
16432 the variable part of the offset as well. Use highest_pow2_factor for
16433 all alignment checks.
16435 2010-04-30 Richard Guenther <rguenther@suse.de>
16437 PR tree-optimization/43879
16438 * tree-ssa-structalias.c (type_could_have_pointers): Functions
16441 2010-04-30 Jan Hubicka <jh@suse.cz>
16443 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
16445 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
16447 2010-04-30 Jan Hubicka <jh@suse.cz>
16449 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
16451 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
16452 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
16453 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
16454 cgraph_node_set_needs_ltrans_p): Remove.
16456 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
16458 * sdbout.c: Include vec.h, do not include varray.h.
16459 (deferred_global_decls, sdbout_global_decl,
16460 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
16461 * toplev.c: Do not include varray.h.
16462 (dump_memory_report): Do not dump VARRAY statistics.
16463 * gengtype.c (open_base_file): Ignore varray.h.
16464 * Makefile.in: Update for abovementioned changes.
16465 Remove all traces of varray.c and varray.h.
16466 * varray.c: Remove file.
16467 * varray.h: Remove file.
16469 2010-04-30 Jan Hubicka <jh@suse.cz>
16471 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
16474 2010-04-30 Jan Hubicka <jh@suse.cz>
16476 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
16479 2010-04-30 Richard Guenther <rguenther@suse.de>
16481 * tree-ssa-structalias.c (get_constraint_for_1): Generate
16482 constraints for CONSTRUCTOR.
16484 2010-04-30 Richard Guenther <rguenther@suse.de>
16487 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
16488 first after all lowering passes.
16490 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
16492 * toplev.c: Include varray.h for statistics dumping.
16493 * tree.h: Do not declare varray_head_tag.
16494 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
16495 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
16496 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
16497 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
16498 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
16499 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
16500 c-common.c, c-common.h, reg-stack.c, basic-block.h,
16501 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
16503 * Makefile.in: Update for abovementioned changes.
16505 2010-04-30 Jakub Jelinek <jakub@redhat.com>
16508 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
16510 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
16512 * config/picochip/picochip.c (picochip_legitimize_address): Define.
16513 Use this function to do machine-specific conversion.
16514 (picochip_legitimize_reload_address): Likewise.
16515 (picochip_legitimate_address_p): Check valid base register only if
16517 (picochip_check_conditional_copy): Check for modw only if opnd is
16519 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
16520 to call the function in c.
16521 * config/picochip/picochip-protos.h
16522 (picochip_legitimize_reload_address): Define.
16523 * config/picochip/picochip.md (supported_compare1): Define.
16525 2010-04-30 Jan Hubicka <jh@suse.cz>
16527 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
16528 (cgraph_global_info): Remove inlined.
16529 (LTO_cgraph_tag_names): Remove.
16530 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
16531 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
16532 simplify cgraph tags and document.
16533 (lto_output_node): Use only LTO_cgraph_unavail_node and
16534 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
16535 for_functions_valid, global info, process and output flags.
16536 (input_overwrite_node): Initialize estimated stack size and
16537 estimated growth. Do not read flags we no longer store.
16538 (input_node): Likewise do not read info no longer stored.
16539 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
16542 2010-04-30 Richard Guenther <rguenther@suse.de>
16544 PR tree-optimization/43879
16545 * tree-ssa-structalias.c (get_constraint_for_1): Properly
16546 handle non-zero initializers.
16548 2010-04-30 Richard Guenther <rguenther@suse.de>
16550 * builtins.c (fold_builtin_1): Delete free (0).
16552 2010-04-29 Jan Hubicka <jh@suse.cz>
16554 * gengtype.c (open_base_files): Add lto-streamer.h
16555 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
16556 (pass_ipa_cp): GGC collect.
16557 * toplev. (compile_file): Do not output symbols.
16558 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
16559 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
16560 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
16561 * lto-section-in.c: Include ggc.h
16562 (lto_new_in_decl_state): Alloc in GGC.
16563 (lto_delete_in_decl_state): Likewise.
16564 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
16567 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
16570 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
16571 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
16572 (HONOR_REG_ALLOC_ORDER): Describe new macro.
16573 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
16574 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
16575 account only if HONOR_REG_ALLOC_ORDER is not defined.
16576 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
16577 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
16579 2010-04-29 Jon Grant <04@jguk.org>
16581 * collect2.c (vflag): Change type from int to bool.
16583 (helpflag): New global bool.
16584 (main): Set vflag and debug with boolean, not integer truth values.
16585 Accept new "--help" option and output usage text if found.
16586 * collect2.h (vflag): Update prototype.
16589 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
16592 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
16594 2010-04-29 Richard Guenther <rguenther@suse.de>
16597 * plugin.h (invoke_plugin_callbacks): Annotate arguments
16598 with ATTRIBUTE_UNUSED.
16600 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
16603 * config/i386/i386.c (get_some_local_dynamic_name): Replace
16604 INSN_P with NONDEBUG_INSN_P.
16605 (distance_non_agu_define): Likewise.
16606 (distance_agu_use): Likewise.
16608 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
16610 From Dominique d'Humieres <dominiq@lps.ens.fr>
16612 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
16615 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
16617 * plugin.h (invoke_plugin_callbacks): New inline function.
16618 * plugin.c (flag_plugin_added): New global flag.
16619 (add_new_plugin): Initialize above flag.
16620 (invoke_plugin_callbacks): Rename to ...
16621 (invoke_plugin_callbacks_full): ... this.
16623 2010-04-28 Jan Hubicka <jh@suse.cz>
16625 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
16626 (lto_varpool_replace_node): New.
16627 (lto_symtab_resolve_symbols): Resolve varpool nodes.
16628 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
16629 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
16630 * cgraph.h (varpool_node_ptr): New type.
16631 (varpool_node_ptr): New vector.
16632 (varpool_node_set_def): New structure.
16633 (varpool_node_set): New type.
16634 (varpool_node_set): New vector.
16635 (varpool_node_set_element_def): New structure.
16636 (varpool_node_set_element, const_varpool_node_set_element): New types.
16637 (varpool_node_set_iterator): New type.
16638 (varpool_node): Add prev pointers, add used_from_other_partition,
16639 in_other_partition.
16640 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
16641 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
16642 varpool_get_node, varpool_remove_node): Declare.
16643 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
16644 varpool_node_set_size): New inlines.
16645 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
16646 * tree-pass.h (varpool_node_set_def): Forward declare.
16647 (ipa_opt_pass_d): Summary writting takes vnode sets too.
16648 (ipa_write_optimization_summaries): Update prototype.
16649 * ipa-cp.c (ipcp_write_summary): Update.
16650 * ipa-reference.c (ipa_reference_write_summary): Update.
16651 * lto-cgraph.c (lto_output_varpool_node): New static function.
16652 (output_varpool): New function.
16653 (input_varpool_node): New static function.
16654 (input_varpool_1): New function.
16655 (input_cgraph): Input varpool.
16656 * ipa-pure-const.c (pure_const_write_summary): Update.
16657 * lto-streamer-out.c (lto_output): Update, output varpool too.
16658 (write_global_stream): Kill WPA hack.
16659 (produce_asm_for_decls): Update.
16660 (output_alias_pair_p): Handle variables.
16661 (output_unreferenced_globals): Output only needed partition of varpool.
16662 * ipa-inline.c (inline_write_summary): Update.
16663 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
16665 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
16666 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
16667 varpool_node_set_new, varpool_node_set_add,
16668 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
16669 debug_varpool_node_set): New functions.
16670 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
16671 (execute_one_pass): Process new decls too.
16672 (ipa_write_summaries_2): Pass around vsets.
16673 (ipa_write_summaries_1): Likewise.
16674 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
16676 (ipa_write_optimization_summaries_1): Pass around vsets.
16677 (ipa_write_optimization_summaries): Likewise.
16678 * varpool.c (varpool_get_node): New.
16679 (varpool_node): Update doubly linked lists.
16680 (varpool_remove_node): New.
16681 (dump_varpool_node): More dumping.
16682 (varpool_enqueue_needed_node): Update doubly linked lists.
16683 (decide_is_variable_needed): Kill ltrans hack.
16684 (varpool_finalize_decl): Kill lto hack.
16685 (varpool_assemble_decl): Skip decls in other partitions.
16686 (varpool_assemble_pending_decls): Update doubly linkes lists.
16687 (varpool_empty_needed_queue): Likewise.
16688 (varpool_extra_name_alias): Likewise.
16689 * lto-streamer.c (lto_get_section_name): Add vars section.
16690 * lto-streamer.h (lto_section_type): Update.
16691 (output_varpool, input_varpool): Declare.
16693 2010-04-28 Mike Stump <mikestump@comcast.net>
16695 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
16697 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
16699 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
16700 record or union type with RECORD_OR_UNION_TYPE_P predicate.
16701 (lto_input_ts_type_tree_pointers): Likewise.
16702 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
16703 (lto_output_ts_type_tree_pointers): Likewise.
16705 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
16707 Uniquization of constants at the Tree level
16708 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
16709 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
16711 (tree_output_constant_def): Declare.
16712 * gimplify.c (gimplify_init_constructor): When using block copy, first
16713 uniquize the constant constructor on the RHS.
16714 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
16715 DECL_IN_CONSTANT_POOL flag.
16716 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
16717 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
16719 (assemble_variable): Deal with symbols belonging to the tree constant
16721 (get_constant_section): Add ALIGN parameter and simplify.
16722 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
16723 (assemble_constant_contents): Use the expression of the VAR_DECL.
16724 (output_constant_def_contents): Use the alignment of the VAR_DECL.
16725 (tree_output_constant_def): New global function.
16726 (mark_constant): Use the expression of the VAR_DECL.
16727 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
16729 (output_object_block): Likewise and assemble the expression.
16731 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
16733 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
16734 hash_tree, eq_tree): New tree hash table.
16735 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
16736 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
16737 lto_orig_address_remove): Reimplement.
16739 2010-04-28 Xinliang David Li <davidxl@google.com>
16742 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
16743 (compute_uninit_opnds_pos): New function.
16744 (is_non_loop_exit_postdominating): New function.
16745 (compute_control_dep_chain): New function.
16746 (find_pdom): New function.
16747 (convert_control_dep_chain_into_preds): New function.
16748 (find_predicates): New function.
16749 (find_control_equiv_block): New function.
16750 (collect_phi_def_edges): New function.
16751 (find_def_preds): New function.
16752 (find_dom): New function.
16753 (dump_predicates): New function.
16754 (get_cmp_code): New function.
16755 (is_value_included_in): New function.
16756 (find_matching_predicate_in_rest_chains): New function.
16757 (use_pred_not_overlap_with_undef_path_pred): New function.
16758 (is_use_properly_guarded): New function.
16759 (normalize_cond_1): New function.
16760 (is_and_or_or): New function.
16761 (normalize_cond): New function.
16762 (is_gcond_subset_of): New function.
16763 (is_subset_of_any): New function.
16764 (is_or_set_subset_of): New function.
16765 (is_and_set_subset_of): New function.
16766 (is_norm_cond_subset_of): New function.
16767 (is_pred_expr_subset_of): New function.
16768 (is_pred_chain_subset_of): New function.
16769 (is_included_in): New function.
16770 (is_superset_of): New function.
16771 (find_uninit_use): New function.
16772 (warn_uninitialized_phi): New function.
16773 (compute_possibly_undefined_names): New function.
16774 (ssa_undefined_value_p): New function.
16775 (execute_late_warn_uninitialized): New function.
16776 * tree-ssa.c (ssa_undefined_value_p): Removed.
16777 (warn_uninit): Changed to extern.
16778 (warn_uninitialized_phi): Removed.
16779 (warn_uninitialized_vars): Changed to extern.
16780 (execute_late_warn_uninitialized): Removed
16781 * tree-flow.h: Add new prototypes.
16782 * timevar.def: Add new time variable.
16783 * Makefile.in: Add new build file.
16785 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
16787 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
16790 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16793 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
16795 2010-04-28 Martin Jambor <mjambor@suse.cz>
16797 * cgraph.h (struct cgraph_node): New field indirect_calls.
16798 (struct cgraph_indirect_call_info): New type.
16799 (struct cgraph_edge): Removed field indirect_call. New fields
16800 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
16801 (cgraph_create_indirect_edge): Declare.
16802 (cgraph_make_edge_direct): Likewise.
16803 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
16804 * ipa-prop.h (struct ipa_param_call_note): Removed.
16805 (struct ipa_node_params): Removed field param_calls.
16806 (ipa_create_all_structures_for_iinln): Declare.
16807 * cgraph.c: Described indirect edges and uids in initial comment.
16808 (cgraph_add_edge_to_call_site_hash): New function.
16809 (cgraph_edge): Search also among the indirect edges, use
16810 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
16811 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
16812 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
16814 (initialize_inline_failed): Assign a reason to indirect edges.
16815 (cgraph_create_edge_1): New function.
16816 (cgraph_create_edge): Moved some functionality to
16817 cgraph_create_edge_1.
16818 (cgraph_create_indirect_edge): New function.
16819 (cgraph_edge_remove_callee): Add an assert checking for
16821 (cgraph_edge_remove_caller): Special-case indirect edges.
16822 (cgraph_remove_edge): Likewise.
16823 (cgraph_set_edge_callee): New function.
16824 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
16825 (cgraph_make_edge_direct): New function.
16826 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
16827 the declaration of the call statement matches.
16828 (cgraph_node_remove_callees): Special-case indirect edges.
16829 (cgraph_clone_edge): Likewise.
16830 (cgraph_clone_node): Clone also the indirect edges.
16831 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
16832 indirect_call, dump count of indirect_calls edges.
16833 * ipa-prop.c (iinlining_processed_edges): New variable.
16834 (ipa_note_param_call): Create indirect edges instead of
16835 creating notes. New parameter node.
16836 (ipa_analyze_call_uses): New parameter node, pass it on to
16837 ipa_note_param_call.
16838 (ipa_analyze_stmt_uses): Likewise.
16839 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
16840 (print_edge_addition_message): Work on edges rather than on notes.
16841 (update_call_notes_after_inlining): Likewise, renamed to
16842 update_indirect_edges_after_inlining.
16843 (ipa_create_all_structures_for_iinln): New function.
16844 (ipa_free_node_params_substructures): Do not free notes.
16845 (ipa_edge_duplication_hook): Propagate bits within
16846 iinlining_processed_edges bitmap.
16847 (ipa_node_duplication_hook): Do not duplicate notes.
16848 (free_all_ipa_structures_after_ipa_cp): Renamed to
16849 ipa_free_all_structures_after_ipa_cp.
16850 (free_all_ipa_structures_after_iinln): Renamed to
16851 ipa_free_all_structures_after_iinln.
16852 (ipa_write_param_call_note): Removed.
16853 (ipa_read_param_call_note): Removed.
16854 (ipa_write_indirect_edge_info): New function.
16855 (ipa_read_indirect_edge_info): Likewise.
16856 (ipa_write_node_info): Do not stream notes, do stream information
16858 (ipa_read_node_info): Likewise.
16859 (lto_ipa_fixup_call_notes): Removed.
16860 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
16861 * ipa-inline.c (pass_ipa_inline): Likewise.
16862 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
16863 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
16864 * tree-inline.c (copy_bb): Removed an unnecessary double check for
16866 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
16868 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
16869 (output_cgraph): Stream also indirect edges.
16870 (lto_output_edge): Added capability to stream indirect edges.
16871 (input_edge): Likewise.
16872 (input_cgraph_1): Likewise.
16873 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
16876 2010-04-28 Richard Guenther <rguenther@suse.de>
16878 PR tree-optimization/43879
16879 PR tree-optimization/43909
16880 * tree-ssa-structalias.c (struct variable_info): Add
16881 only_restrict_pointers flag.
16882 (new_var_info): Initialize it. Increment stats.total_vars here.
16883 (create_function_info_for): Do not increment stats.total_vars here.
16884 (get_function_part_constraint): Fix build with C++.
16885 (insert_into_field_list): Remove.
16886 (push_fields_onto_fieldstack): Properly merge fields.
16887 (create_variable_info_for): Split and simplify.
16888 (create_variable_info_for_1): New piece.
16889 (intra_create_variable_infos): Properly make restrict constraints
16892 2010-04-28 Richard Guenther <rguenther@suse.de>
16895 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
16897 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
16898 Jan Hubicka <hubicka@ucw.cz>
16900 * doc/invoke.texi (-Wsuggest-attribute=const,
16901 -Wsuggest-attribute=pure): Document.
16902 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
16903 (function_always_visible_to_compiler_p,
16904 suggest_attribute, warn_function_pure, warn_function_const):
16906 (check_call): Improve debug info.
16907 (analyze_function): Do not check availability.
16908 (add_new_function): Check availability.
16909 (propagate): Output warnings.
16910 (skip_function_for_local_pure_const): New function.
16911 (local_pure_const): Use it; output warnings.
16912 * common.opt (Wsuggest-attribute=const,
16913 Wsuggest-attribute=pure): New.
16915 2010-04-27 Jakub Jelinek <jakub@redhat.com>
16917 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
16918 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
16919 or DW_CFA_def_cfa_offset{,_sf}.
16921 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
16923 * tree.h: Fix truncated long macros.
16925 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
16927 * collect2.c (TARGET_64BIT): Redefine to target's default.
16928 * tlink.c: Likewise.
16929 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
16930 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
16931 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
16932 for underscoring __USER_LABEL_PREFIX__.
16933 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
16934 (SUB_LINK_ENTRY32): New.
16935 (SUB_LINK_ENTRY64): New.
16936 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
16937 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
16938 (SUB_LINK_ENTRY64): New.
16939 (SUB_LINK_ENTRY): New.
16940 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
16941 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
16942 x64 target is choosen.
16943 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
16944 * configure: Regenerated.
16945 * configure.ac (leading-mingw64-underscores): Option added.
16947 2010-04-27 Jan Hubicka <jh@suse.cz>
16949 * doc/invoke.texi (-fipa-profile): Document.
16950 * opts.c (decode_options): Enable ipa-profile at -O1.
16951 * timevar.def (TV_IPA_PROFILE): Define.
16952 * common.opt (fipa-profile): Add.
16953 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
16955 (cgraph_propagate_frequency): Handle only local ones.
16956 * tree-pass.h (pass_ipa_profile): Declare.
16957 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
16958 (pass_ipa_profile): Use TV_IPA_PROFILE.
16959 * ipa.c (ipa_profile): New function.
16960 (gate_ipa_profile): Likewise.
16961 (pass_ipa_profile): New global variable.
16962 * passes.c (pass_ipa_profile): New.
16964 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
16966 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
16968 2010-04-27 Martin Jambor <mjambor@suse.cz>
16970 PR middle-end/43812
16971 * ipa.c (dissolve_same_comdat_group_list): New function.
16972 (function_and_variable_visibility): Call
16973 dissolve_same_comdat_group_list when comdat group contains external or
16975 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
16976 lists are circular and that they contain only DECL_ONE_ONLY nodes.
16978 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
16980 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
16981 (const_hash_1) <VECTOR_CST>: New case.
16982 (compare_constant) <VECTOR_CST>: Likewise.
16983 <ADDR_EXPR>: Deal with LABEL_REFs.
16984 (copy_constant) <VECTOR_CST>: New case.
16986 2010-04-27 Jan Hubicka <jh@suse.cz>
16988 * cgraph.c (cgraph_propagate_frequency): New function.
16989 * cgraph.h (cgraph_propagate_frequency): Declare.
16990 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
16991 cgraph_propagate_frequency.
16993 2010-04-27 Jakub Jelinek <jakub@redhat.com>
16995 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
16997 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
17000 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
17001 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
17002 here to determine which regs to push and how much stack to reserve.
17004 2010-04-27 Jie Zhang <jie@codesourcery.com>
17006 * doc/gimple.texi (gimple_statement_with_ops): Remove
17007 addresses_taken field.
17008 (gimple_statement_with_memory_ops): Likewise.
17010 2010-04-27 Jan Hubicka <jh@suse.cz>
17012 * tree-inline.c (eni_inlining_weights): Remove.
17013 (estimate_num_insns): Special case more builtins.
17015 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
17018 * c-typeck.c (build_binary_op): Move forward check for comparison
17019 pointer with null pointer constant and adjust the diagnostic message.
17021 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
17024 * configure.ac (gcc_cv_as_section_has_align): Set if installed
17025 binutils supports extended .section directive needed by LTO, or
17026 warn if older binutils found.
17027 (LTO_BINARY_READER): New AC_SUBST'd variable.
17028 (LTO_USE_LIBELF): Likewise.
17029 * gcc/config.gcc (lto_binary_reader): New target-specific configure
17031 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
17032 (LTO_USE_LIBELF): Likewise.
17033 * configure: Regenerate.
17035 * collect2.c (is_elf): Rename from this ...
17036 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
17037 object files in addition to ELF-formatted ones.
17038 (scan_prog_file): Caller updated. Also allow for LTO info marker
17039 symbol to be prefixed or not by an extra underscore.
17041 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
17042 * config/i386/winnt.c: Also #include lto-streamer.h
17043 (i386_pe_asm_named_section): Specify 1-byte section alignment for
17044 LTO named sections.
17045 (i386_pe_asm_output_aligned_decl_common): Add comment.
17046 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
17048 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
17051 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
17052 Add missing earlyclobber for second alternative.
17054 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
17056 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
17057 bits for artificial defs at the top of the block.
17058 * fwprop.c (single_def_use_enter_block): Don't call it.
17060 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
17063 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
17064 instead of "$gcc_cv_objdump -T".
17065 Use "-undefined dynamic_lookup" on darwin.
17066 * gcc/configure: Regenerate.
17068 2010-04-26 Jakub Jelinek <jakub@redhat.com>
17071 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
17073 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
17075 * c-parser.c (struct c_token): Move location field up.
17076 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
17077 (struct c_declspecs): Convert typespec_word, storage_class, and
17078 default_int_p into bitfields.
17079 (struct c_declarator): Move loc field up.
17081 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
17083 * cfgloop.h (struct loop): Move can_be_parallel field up.
17084 * ipa-prop.h (struct ip_node_params): Move bitfields up.
17085 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
17087 (struct iv_cand): Convert pos field into a bitfield.
17088 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
17090 (struct _stmt_vec_info): Shuffle fields for better packing.
17092 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
17094 * varasm.c (IN_NAMED_SECTION): Remove guard.
17095 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
17096 (IN_NAMED_SECTION_P): ...this.
17097 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
17098 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
17100 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
17102 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
17103 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
17104 of shadowing it. Fix comments.
17106 2010-04-26 Jan Hubicka <jh@suse.cz>
17108 * cgraph.c (cgraph_create_node): Set node frequency to normal.
17109 (cgraph_clone_node): Copy function frequency.
17110 * cgraph.h (node_frequency): New enum
17111 (struct cgraph_node): Add.
17112 * final.c (rest_of_clean_state): Update.
17113 * lto-cgraph.c (lto_output_node): Output node frequency.
17114 (input_overwrite_node): Input node frequency.
17115 * tre-ssa-loop-ivopts (computation_cost): Update.
17116 * lto-streamer-out.c (output_function): Do not output function
17118 * predict.c (maybe_hot_frequency_p): Update and handle functions
17120 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
17122 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
17123 (compute_function_frequency): Set noreturn functions to be executed
17125 (choose_function_section): Update.
17126 * lto-streamer-in.c (input_function): Do not input function frequency.
17127 * function.c (allocate_struct_function): Do not initialize function
17129 * function.h (function_frequency): Remove.
17130 (struct function): Remove function frequency.
17131 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
17132 (try_update): Update.
17133 * tree-inline.c (initialize_cfun): Do not update function frequency.
17134 * passes.c (pass_init_dump_file): Update.
17135 * i386.c (ix86_compute_frame_layout): Update.
17136 (ix86_pad_returns): Update.
17138 2010-04-26 Jie Zhang <jie@codesourcery.com>
17140 PR tree-optimization/43833
17141 * tree-vrp.c (range_int_cst_p): New.
17142 (range_int_cst_singleton_p): New.
17143 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
17144 when both operands are constants. Use range_int_cst_p in
17147 2010-04-26 Jan Hubicka <jh@suse.cz>
17149 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
17151 2010-04-26 Richard Guenther <rguenther@suse.de>
17154 * gimple.c (gimple_decl_printable_name): Deal gracefully
17155 with a NULL DECL_NAME.
17157 2010-04-26 Richard Guenther <rguenther@suse.de>
17160 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
17161 if emitting debug information and it is either a function
17162 or a namespace decl.
17164 2010-04-26 Ira Rosen <irar@il.ibm.com>
17166 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
17167 determine if the statement is vectorizable, and a macro to access it.
17168 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
17169 Skip statements that can't be vectorized. If the analysis fails,
17170 mark the statement as unvectorizable if vectorizing basic block.
17171 (vect_compute_data_refs_alignment): Likewise.
17172 (vect_verify_datarefs_alignment): Skip statements marked as
17173 unvectorizable. Add print.
17174 (vect_analyze_group_access): Skip statements that can't be
17175 vectorized. If the analysis fails, mark the statement as
17176 unvectorizable if vectorizing basic block.
17177 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
17178 * tree-vect-stmts.c (vectorizable_store): Fix the number of
17179 generated stmts for SLP.
17180 (new_stmt_vec_info): Initialize the new field.
17181 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
17182 statements marked as unvectorizable.
17184 2010-04-25 Joseph Myers <joseph@codesourcery.com>
17186 * c-common.c (flag_isoc1x): New.
17187 (flag_isoc99): Update comment.
17188 * c-common.h (flag_isoc1x): New.
17189 (flag_isoc99): Update comment.
17190 * c-cppbuiltin.c (builtin_define_float_constants): Also define
17191 __<type>_DECIMAL_DIG__.
17192 * c-opts.c (set_std_c1x): New.
17193 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
17194 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
17195 * c.opt (-std=c1x, -std=gnu1x): New options.
17196 * doc/cpp.texi: Mention -std=c1x.
17197 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
17198 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
17199 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
17200 * doc/standards.texi: Mention C1X.
17201 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
17202 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
17203 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
17206 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
17208 * config/i386/gmon-sol2.c (_mcleanup): Change format string
17209 placeholder from 0x%x to %#x.
17210 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
17211 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
17212 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
17213 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
17214 * config/i386/i386.c (ix86_target_string): Ditto.
17215 (output_pic_addr_const): Ditto.
17216 (print_operand): Ditto.
17218 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
17220 * combine.c (find_split_point): Add third argument. Use it
17221 to find nested multiply-accumulate instructions. Adjust calls.
17222 (try_combine): Adjust call to find_split_point.
17224 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
17226 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
17228 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
17230 PR tree-optimization/41442
17231 * fold-const.c (merge_truthop_with_opposite_arm): New function.
17232 (fold_binary_loc): Call it.
17234 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
17236 * toplev.c (general_init): Set default for fdiagnostics-show-option.
17237 * opts.c (common_handle_option): Allow disabling it.
17238 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
17240 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
17242 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
17243 between modes if both types are integral.
17245 2010-04-23 Richard Guenther <rguenther@suse.de>
17247 PR tree-optimization/43572
17248 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
17250 2010-04-23 Richard Guenther <rguenther@suse.de>
17253 * tree-inline.c (tree_can_inline_p): Also check compatibility
17256 2010-04-23 Martin Jambor <mjambor@suse.cz>
17258 PR tree-optimization/43846
17259 * tree-sra.c (struct access): New flag grp_assignment_read.
17260 (build_accesses_from_assign): Set grp_assignment_read.
17261 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
17262 (enum mark_read_status): New type.
17263 (analyze_access_subtree): Propagate grp_assignment_read, create
17264 accesses also if both direct_read and root->grp_assignment_read.
17266 2010-04-23 Martin Jambor <mjambor@suse.cz>
17268 PR middle-end/43835
17269 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
17270 function does not have type attributes.
17272 2010-04-23 Richard Guenther <rguenther@suse.de>
17275 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
17278 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
17280 * sese.h (create_if_region_on_edge): Remove.
17282 * sese.c (create_if_region_on_edge): Make static.
17284 * tree-inline.c: Do not include ggc.h.
17286 * expr.c: Do not include ggc.h.
17288 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
17291 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
17294 * config/sh/sh.c (find_barrier): Don't emit a constant pool
17295 in the middle of insns for casesi_worker_2.
17297 2010-04-22 David Edelsohn <edelsohn@gnu.org>
17299 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
17301 2010-04-22 Ira Rosen <irar@il.ibm.com>
17303 PR tree-optimization/43842
17304 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
17305 loop unrolling in update of exit phis. Fix comment.
17306 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
17307 least two reduction statements in the loop before starting SLP
17310 2010-04-22 Nick Clifton <nickc@redhat.com>
17312 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
17314 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
17316 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
17317 to simplify a + ~a.
17319 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
17321 * tree-parloops.c (loop_parallel_p): New argument
17322 parloop_obstack. Pass it down.
17323 (parallelize_loops): New variable parloop_obstack. Initialize it,
17324 pass it down, free it.
17326 * tree-loop-linear.c (linear_transform_loops): Pass down
17329 * tree-data-ref.h (lambda_compute_access_matrices): New argument
17330 of type struct obstack *.
17332 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
17333 scratch_obstack. Initialize it, pass down, free it.
17335 * lambda.h (lambda_loop_new): Remove.
17336 (lambda_matrix_new, lambda_matrix_inverse)
17337 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
17338 argument of type struct obstack *.
17340 * lambda-trans.c (lambda_trans_matrix_new): New argument
17341 lambda_obstack. Pass it down, use obstack allocation for ret.
17342 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
17345 * lambda-mat.c (lambda_matrix_get_column)
17346 (lambda_matrix_project_to_null): Remove.
17347 (lambda_matrix_new): New argument lambda_obstack. Use obstack
17348 allocation for mat.
17349 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
17352 * lambda-code.c (lambda_loop_new): New function.
17353 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
17354 (lambda_compute_auxillary_space, lambda_compute_target_space)
17355 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
17356 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
17357 (build_access_matrix): New argument lambda_obstack. Use obstack
17359 (lambda_compute_step_signs, lambda_compute_access_matrices): New
17360 argument lambda_obstack. Pass it down.
17362 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
17364 * optabs.h (expand_widening_mult): Declare.
17366 2010-04-22 Richard Guenther <rguenther@suse.de>
17368 PR tree-optimization/43845
17369 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
17370 lookup the CALL_EXPR function and arguments.
17372 2010-04-22 Nick Clifton <nickc@redhat.com>
17374 * config/stormy16/stormy16.c
17375 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
17376 * config/stormy16/stormy16.h: Tidy up formatting.
17377 (DONT_USE_BUILTIN_SETJMP): Remove definition.
17378 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
17379 (ineqbranchsi): Delete pattern.
17380 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
17381 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
17382 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
17383 stormy16-lib2-ucmpsi2.c.
17385 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
17387 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
17388 df_simulate_find_noclobber_defs as appropriate. Keep track of an
17389 extra set merge_set_noclobber, and use it to relax the final test
17391 * df.h (df_simulate_find_noclobber_defs): Declare.
17392 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
17394 (df_simulate_find_noclobber_defs): New function.
17396 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
17398 * config/i386/i386.md: Use {} around multi-line preparation statements.
17400 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
17402 * c-tree.h (push_init_level, pop_init_level, set_init_index)
17403 (process_init_element): New argument of type struct obstack *.
17405 * c-typeck.c (push_init_level, pop_init_level, set_designator)
17406 (set_init_index, set_init_label, set_nonincremental_init)
17407 (set_nonincremental_init_from_string, find_init_member)
17408 (output_init_element, output_pending_init_elements)
17409 (process_init_element): New argument braced_init_obstack. Pass it
17411 (push_range_stack, add_pending_init): New argument
17412 braced_init_obstack. Use obstack allocation.
17414 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
17415 braced_init_obstack. Pass it down.
17416 (c_parser_braced_init): New variables ret, braced_init_obstack.
17417 Initialize obstack, pass it down and finally free it.
17419 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
17421 PR middle-end/29274
17422 * tree-pass.h (pass_optimize_widening_mul): Declare.
17423 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
17424 gate_optimize_widening_mul): New static functions.
17425 (pass_optimize_widening_mul): New.
17426 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
17427 <case MULT_EXPR>: Remove support for widening multiplies.
17428 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
17429 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
17430 simplify_gen_unary rather than directly building extensions.
17431 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
17433 * expmed.c (expand_widening_mult): New function.
17434 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
17436 2010-04-21 Jan Hubicka <jh@suse.cz>
17438 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
17439 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
17440 * lto-wpa-fixup.c: Remove.
17441 * Makefile.in (lto-wpa-fixup.o): Remove.
17442 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
17443 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
17444 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
17446 2010-04-21 Jan Hubicka <jh@suse.cz>
17448 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
17449 add write_optimization_summary, read_optimization_summary.
17450 (ipa_write_summaries_of_cgraph_node_set): Remove.
17451 (ipa_write_optimization_summaries): Declare.
17452 (ipa_read_optimization_summaries): Declare.
17453 * ipa-cp.c (pass_ipa_cp): Update.
17454 * ipa-reference.c (pass_ipa_reference): Update.
17455 * ipa-pure-const.c (pass_ipa_pure_const): Update.
17456 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
17458 * ipa-inline.c (pass_ipa_inline): Update.
17459 * ipa.c (pass_ipa_whole_program): Update.
17460 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
17461 * passes.c (ipa_write_summaries_1): Do not test wpa.
17462 (ipa_write_optimization_summaries_1): New.
17463 (ipa_write_optimization_summaries): New.
17464 (ipa_read_summaries): Do not test ltrans.
17465 (ipa_read_optimization_summaries_1): New.
17466 (ipa_read_optimization_summaries): New.
17468 2010-04-21 Jan Hubicka <jh@suse.cz>
17470 * lto-cgraph.c (lto_output_node): Do not output comdat groups
17471 for boundary nodes.
17472 (output_cgraph): Do not arrange comdat groups for boundary nodes.
17474 2010-04-21 Jakub Jelinek <jakub@redhat.com>
17477 * dwarf2out.c (add_name_and_src_coords_attributes): Add
17478 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
17480 2010-04-21 Jan Hubicka <jh@suse.cz>
17482 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
17484 2010-04-21 Jan Hubicka <jh@suse.cz>
17486 * varpool.c (decide_is_variable_needed): Variable is always needed
17489 2010-04-21 Jan Hubicka <jh@suse.cz>
17491 * opts.c (decode_options): Enable pure-const pass for whopr.
17493 2010-04-21 Jan Hubicka <jh@suse.cz>
17495 * cgraph.c (dump_cgraph_node): Dump also assembler name.
17496 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
17498 (cgraph_decide_inlining): Do not expect callee to be removed in all
17501 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
17503 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
17505 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
17507 * config/i386/i386.md (x86_shrd): Add athlon_decode and
17508 amdfam10_decode attributes.
17510 2010-04-21 Jakub Jelinek <jakub@redhat.com>
17512 PR middle-end/43570
17513 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
17514 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
17515 (lower_copyprivate_clauses): Use private var in outer
17516 context instead of original var. Make sure the types
17517 are correct for VLAs.
17519 2010-04-21 Richard Guenther <rguenther@suse.de>
17521 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
17522 to non-pointer objects.
17524 2010-04-21 Jakub Jelinek <jakub@redhat.com>
17526 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
17527 last chain entry if it starts with the still current label.
17528 (add_location_or_const_value_attribute): Check that
17529 loc_list->first->next is NULL instead of comparing ->first with ->last.
17530 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
17531 to add_var_loc_to_decl.
17533 * dwarf2out.c (output_call_frame_info): For dw_cie_version
17534 >= 4 add also address size and segment size fields into CIE header.
17536 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
17537 long as address size is the same as sizeof (void *) and
17539 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
17540 address size or segment size is unexpected, return DW_EH_PE_omit.
17541 (classify_object_over_fdes): If get_cie_encoding returned
17542 DW_EH_PE_omit, return -1.
17543 (init_object): If classify_object_over_fdes returned -1,
17544 pretend there were no FDEs at all.
17546 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
17548 * config/i386/i386.md (bswap<mode>2): Macroize expander from
17549 bswap{si,di}2 using SWI48 mode iterator.
17550 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
17551 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
17552 set modrm attribute of bswap insn to 0 and remove length attribute.
17553 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
17554 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
17555 set mode attribute to <MODE> and remove length attribute.
17557 2010-04-20 James E. Wilson <wilson@codesourcery.com>
17559 PR rtl-optimization/43520
17560 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
17561 zero available registers.
17563 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17565 * builtins.c (fold_builtin_cproj): Fold more cases.
17567 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17569 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
17570 (fold_builtin_1): Fold builtin cproj.
17571 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
17572 Use ATTR_CONST_NOTHROW_LIST.
17574 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
17576 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
17577 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
17578 ffsi2_no_cmove for !TARGET_CMOVE.
17579 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
17580 (ffssi2): Remove expander.
17581 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
17583 (ctz<mode>2): Ditto from ctz{si,di}2.
17584 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
17586 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
17589 2010-04-20 Jakub Jelinek <jakub@redhat.com>
17591 * dwarf2out.c (AT_linkage_name): Define.
17592 (clone_as_declaration): Handle DW_AT_linkage_name.
17593 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
17594 of DW_AT_MIPS_linkage_name.
17595 (move_linkage_attr): Likewise.
17596 (dwarf2out_finish): Likewise.
17598 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
17600 PR middle-end/41952
17601 * fold-const.c (fold_comparison): New folding rule.
17603 2010-04-20 Anatoly Sokolov <aesok@post.ru>
17605 * double-int.h (double_int_setbit): Declare.
17606 * double-int.c (double_int_setbit): New function.
17607 * rtl.h (immed_double_int_const): Declare.
17608 * emit-rtl.c (immed_double_int_const): New function.
17609 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
17610 and immed_double_int_const functions.
17611 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
17612 expand_copysign_bit): (Ditto.).
17613 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
17614 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
17615 * dojump.c (prefer_and_bit_test): (Ditto.).
17616 * expr.c (convert_modes, reduce_to_bit_field_precision,
17617 const_vector_from_tree): (Ditto.).
17618 * expmed.c (mask_rtx, lshift_value): (Ditto.).
17620 2010-04-20 Jan Hubicka <jh@suse.cz>
17622 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
17623 (dump_cgraph_node): Dump new flags.
17624 * cgraph.h (struct cgraph_node): Add flags
17625 reachable_from_other_partition and in_other_partition.
17626 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
17627 other partition can not be removed.
17628 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
17629 the other partition must be output; silence sanity checking on
17630 leaking functions bodies from other paritition.
17631 * lto-cgraph.c (reachable_from_other_partition_p): New function.
17632 (lto_output_node): Output new flags; do not sanity check that inline
17633 clones are output; drop lto_forced_extern_inline_p code; do not mock
17634 visibility flags at partition boundaries.
17635 (add_node_to): New function.
17636 (output_cgraph): Use it to sort functions so masters appear before
17638 (input_overwrite_node): Input new flags.
17639 * passes.c (ipa_write_summaries): Do not call
17640 lto_new_extern_inline_states.
17641 * lto-section-out.c (forced_extern_inline,
17642 lto_new_extern_inline_states lto_delete_extern_inline_states,
17643 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
17644 * lto-streamer.h (lto_new_extern_inline_states,
17645 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
17646 lto_forced_extern_inline_p): Kill.
17648 2010-04-20 Richard Guenther <rguenther@suse.de>
17650 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
17651 from vars that can have pointers.
17652 (process_constraint): Dump useless constraints.
17654 2010-04-20 Richard Guenther <rguenther@suse.de>
17656 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
17657 (dump_sa_points_to_info): Remove asserts.
17658 (init_base_vars): nothing_id isn't an escape point nor does it
17661 2010-04-20 Jakub Jelinek <jakub@redhat.com>
17663 * tree.h (TYPE_REF_IS_RVALUE): Define.
17664 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
17665 should_move_die_to_comdat, prune_unused_types_walk): Handle
17666 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
17667 (modified_type_die, gen_reference_type_die): Emit
17668 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
17669 if TYPE_REF_IS_RVALUE and -gdwarf-4.
17671 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17674 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
17675 calls for -fpic -m31 if they have been sibcall optimized.
17677 2010-04-19 James E. Wilson <wilson@codesourcery.com>
17679 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
17680 ar.lc fixed and call-used.
17682 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
17684 2010-04-19 Jan Hubicka <jh@suse.cz>
17686 * opts.c (decode_options): Disable whpr incompatible passes.
17687 * lto/lto.c (lto_1_to_1_map): Skip clones.
17688 (read_cgraph_and_symbols): Do not mark everything as needed.
17689 (do_whole_program_analysis): Do map only after optimizing;
17690 set proper cgraph_state; use passmanager.
17692 2010-04-19 DJ Delorie <dj@redhat.com>
17694 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
17695 POINTER_PLUS_EXPR and fix them.
17697 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
17699 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
17700 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
17701 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
17702 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
17703 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
17704 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
17705 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
17706 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
17707 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
17708 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
17709 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
17711 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
17713 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
17714 (check_cond_move_block): Likewise.
17715 (cond_move_process_if_block): Likewise.
17716 (noce_find_if_block): Improve formatting.
17717 (find_if_header): Pass 0 to memset and tweak conditions.
17718 (cond_exec_find_if_block): Fix long lines and tweak conditions.
17720 2010-04-19 Jakub Jelinek <jakub@redhat.com>
17722 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
17725 PR middle-end/43337
17726 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
17727 with non-local decl doesn't need chain.
17729 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
17731 * ira-color.c (allocno_reload_assign): Avoid accumulating
17732 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
17734 2010-04-19 Martin Jambor <mjambor@suse.cz>
17736 * gimple.h (create_tmp_reg): Declare.
17737 * gimplify.c (create_tmp_reg): New function.
17738 (gimplify_return_expr): Use create_tmp_reg.
17739 (gimplify_omp_atomic): Likewise.
17740 (gimple_regimplify_operands): Likewise.
17741 * tree-dfa.c (make_rename_temp): Likewise.
17742 * tree-predcom.c (predcom_tmp_var): Likewise.
17743 (reassociate_to_the_same_stmt): Likewise.
17744 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
17745 (get_replaced_param_substitute): Likewise.
17746 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
17747 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
17748 * tree-ssa-pre.c (get_representative_for): Likewise.
17749 (create_expression_by_pieces): Likewise.
17750 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
17751 (create_tailcall_accumulator): Likewise.
17753 2010-04-19 Martin Jambor <mjambor@suse.cz>
17755 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
17757 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
17759 2010-04-19 Richard Guenther <rguenther@suse.de>
17761 PR tree-optimization/43796
17762 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
17763 from SCEV in the lattice.
17764 (vrp_visit_phi_node): Dump change.
17766 2010-04-19 Richard Guenther <rguenther@suse.de>
17768 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
17769 * configure: Re-generated.
17771 2010-04-19 Richard Guenther <rguenther@suse.de>
17773 PR tree-optimization/43783
17774 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
17775 constant ARRAY_REF operands two and three if possible.
17777 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
17780 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
17782 2010-04-19 Jie Zhang <jie@codesourcery.com>
17785 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
17787 2010-04-19 Ira Rosen <irar@il.ibm.com>
17789 PR tree-optimization/37027
17790 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
17791 and macro to access it.
17792 (vectorizable_reduction): Add argument.
17793 (vect_get_slp_defs): Likewise.
17794 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
17795 statements for possible use in SLP.
17796 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
17797 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
17798 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
17800 (vectorizable_reduction): Likewise.
17801 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
17803 (vectorizable_type_demotion, vectorizable_type_promotion,
17804 vectorizable_store): Likewise.
17805 (vect_analyze_stmt): Update call to vectorizable_reduction.
17806 (vect_transform_stmt): Likewise.
17807 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
17808 (vect_build_slp_tree): Fix indentation. Check that there are no loads
17809 from different interleaving chains in same node.
17810 (vect_slp_rearrange_stmts): New function.
17811 (vect_supported_load_permutation_p): Allow load permutations for
17812 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
17813 inside SLP nodes if necessary.
17814 (vect_analyze_slp_instance): Handle reductions.
17815 (vect_analyze_slp): Try to build SLP instances originating from groups
17817 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
17818 (vect_get_constant_vectors): Create initial vectors for reductions
17819 according to reduction code. Add new argument.
17820 (vect_get_slp_defs): Add new argument, pass it to
17821 vect_get_constant_vectors.
17822 (vect_schedule_slp_instance): Remove SLP tree root statements.
17824 2010-04-19 Jakub Jelinek <jakub@redhat.com>
17826 * tree.h (ENUM_IS_SCOPED): Define.
17827 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
17828 for ENUM_IS_SCOPED enums.
17830 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
17832 * fold-const.c (fold_comparison): Use ssizetype.
17833 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
17834 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
17835 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
17836 * tree-object-size.c (compute_object_sizes): Use size_type_node.
17838 * tree.h (initialize_sizetypes): Remove parameter.
17839 (build_common_tree_nodes): Remove second parameter.
17840 * stor-layout.c (initialize_sizetypes): Remove parameter.
17841 Always create an unsigned type.
17842 (set_sizetype): Assert that the passed type is unsigned and simplify.
17843 * tree.c (build_common_tree_nodes): Remove second parameter.
17844 Adjust call to initialize_sizetypes.
17845 * c-decl.c (c_init_decl_processing): Remove second argument in call to
17846 build_common_tree_nodes.
17848 2010-04-18 Matthias Klose <doko@ubuntu.com>
17850 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
17852 2010-04-18 Ira Rosen <irar@il.ibm.com>
17854 PR tree-optimization/43771
17855 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
17856 load permutation doesn't have gaps.
17858 2010-04-18 Jan Hubicka <jh@suse.cz>
17860 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
17861 (sse_prologue_save_insn expander): Use new pattern.
17862 (sse_prologue_save_insn1): New pattern and splitter.
17863 (sse_prologue_save_insn): Update to deal also with 64bit aligned
17865 * i386.c (setup_incoming_varargs_64): Do not compute jump
17867 (ix86_gimplify_va_arg): Update alignment needed.
17868 (ix86_local_alignment): Do not align all local arrays to 128bit.
17870 2010-04-17 Jan Hubicka <jh@suse.cz>
17872 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
17874 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
17876 * arm.md (negdi2): Remove redundant code to force values into a
17879 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
17881 * arm/bpabi.S: Add EABI alignment attributes to objects.
17882 * arm/bpabi-v6m.S: Likewise.
17883 * arm/crti.asm: Likewise.
17884 * arm/crtn.asm: Likewise.
17885 * arm/lib1funcs.asm: Likewise.
17886 * arm/libunwind.S: Likewise.
17888 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
17890 * arm-protos.h (tune_params): New structure.
17891 * arm.c (current_tune): New variable.
17892 (arm_constant_limit): Delete.
17893 (struct processors): Add pointer to the tune parameters.
17894 (arm_slowmul_tune): New tuning option.
17895 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
17896 (all_cores): Adjust to pick up the tuning model.
17897 (arm_constant_limit): New function.
17898 (arm_override_options): Select the appropriate tuning model. Delete
17899 initialization of arm_const_limit.
17900 (arm_split_constant): Use the new constant-limit model.
17901 (arm_rtx_costs): Pick up the current tuning model.
17902 * arm.md (is_strongarm, is_xscale): Delete.
17903 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
17904 for Xscale variant architectures.
17905 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
17907 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17909 * config/arm/arm.c (arm_gen_constant): Remove unused variable
17911 (arm_rtx_costs_1): Remove unused variable extra_cost.
17912 (arm_unwind_emit_set): Use variable offset.
17913 (thumb1_output_casesi): Remove unused variable flags.
17915 2010-04-16 Jeff Law <law@redhat.com>
17917 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
17918 needing assignment rather than doing a two-phase assignment. Remove
17919 unused variable 'm'.
17921 2010-04-16 Jakub Jelinek <jakub@redhat.com>
17924 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
17926 2010-04-16 Doug Kwan <dougkwan@google.com>
17928 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
17929 (next_operand_entry_id): New static variable.
17930 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
17931 (add_to_ops_vec): Assigned unique ID to operand entry.
17932 (struct oecount_s): New field ID.
17933 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
17934 (undistribute_ops_list): Assign unique IDs to oecounts.
17935 (init_reassoc): reset next_operand_entry_id.
17937 2010-04-16 Doug Kwan <dougkwan@google.com>
17939 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
17940 missing left parenthesis.
17942 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
17944 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
17945 *btdi_rex64 using SWI48 mode iterator.
17946 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
17947 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
17948 *jcc_btdi_mask_rex64.
17950 2010-04-16 Anatoly Sokolov <aesok@post.ru>
17952 * double-int.h (tree_to_double_int): Convert to macro.
17953 * double-int.c (tree_to_double_int): Remove.
17955 2010-04-16 Jakub Jelinek <jakub@redhat.com>
17958 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
17959 with want_address 2 and in case a single element list might be
17960 possible, call it again with want_address 0.
17962 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
17964 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
17965 case 'W' print operands for HI mode.
17966 * config/h8300/h8300.h (Y0, Y2) : New constraints.
17967 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
17968 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
17969 * config/h8300/predicate.md (bit_register_indirect_operand): New.
17971 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
17973 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
17974 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
17975 #xx:3 and #xx:4 mode.
17977 * config/h8300/h8300.md (inverted load with HImode dest): Add
17978 support for H8300SX.
17980 * config/h8300/predicate.md (bit_operand): Allow immediate values that
17981 satisfy 'U' constraint.
17983 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17985 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
17986 * configure: Regenerate.
17987 * config.in: Regenerate.
17988 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
17991 2010-04-16 Richard Guenther <rguenther@suse.de>
17993 * tree.h (struct tree_decl_minimal): Move pt_uid ...
17994 (struct tree_decl_common): ... here.
17995 (DECL_PT_UID): Adjust.
17996 (SET_DECL_PT_UID): Likewise.
17997 (DECL_PT_UID_SET_P): Likewise.
17999 2010-04-16 Richard Guenther <rguenther@suse.de>
18001 PR tree-optimization/43572
18002 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
18003 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
18004 * tree-flow.h (is_call_clobbered): Remove.
18005 * tree-flow-inline.h (is_call_clobbered): Likewise.
18006 * tree-dfa.c (dump_variable): Do not dump call clobber state.
18007 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
18008 (execute_return_slot_opt): Adjust.
18009 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
18010 check for call clobbered vars here.
18011 (find_tail_calls): Move tailcall verification to the
18014 2010-04-16 Diego Novillo <dnovillo@google.com>
18016 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
18018 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
18021 * config/arm/arm.md (cbranchqi4): New pattern.
18022 * config/arm/predicates.md (const0_operand,
18023 cbranchqi4_comparison_operator): New predicates.
18025 2010-04-16 Richard Guenther <rguenther@suse.de>
18027 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
18028 (dump_gimple_stmt): Likewise.
18030 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
18032 * recog.h (struct recog_data): New field is_operator.
18033 (struct insn_operand_data): New field is_operator.
18034 * recog.c (extract_insn): Set recog_data.is_operator.
18035 * genoutput.c (output_operand_data): Emit code to set the
18037 * reload.c (find_reloads): Use it rather than testing for an
18038 empty constraint string.
18041 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
18042 If the previous insn is a cbranchsi4_insn with the same arguments,
18043 omit the compare instruction.
18045 * config/arm/arm.md (addsi3_cbranch): If destination is a high
18046 register, inputs must be low registers and we need a low register
18047 scratch. Handle alternative 2 like alternative 3.
18049 2010-04-16 Jakub Jelinek <jakub@redhat.com>
18051 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
18052 don't call get_addr on both. If one expression is a VALUE and
18053 the other a REG, check VALUE's locs if the REG isn't among them.
18055 2010-04-16 Christian Bruel <christian.bruel@st.com>
18057 * config/sh/sh.h (sh_frame_pointer_required): New function.
18058 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
18059 (flag_omit_frame_pointer) Set.
18060 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
18061 (rounded_frame_size): Adjust size with outgoing_args_size.
18062 (sh_set_return_address): Must return from stack pointer.
18063 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
18064 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
18065 (ACCUMULATE_OUTGOING_ARGS): Define.
18066 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
18067 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
18069 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
18072 * config/sh/sh.c (sh_legitimize_reload_address): Use
18073 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
18074 Remove a unneeded check for offset_base.
18076 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
18078 * configure: Regenerated.
18080 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18082 * config/s390/s390.c (s390_call_save_register_used): Switch back
18083 to HARD_REGNO_NREGS.
18085 2010-04-15 Richard Guenther <rguenther@suse.de>
18087 * alias.c (alias_set_subset_of): Handle alias-set zero
18090 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
18091 Julian Brown <julian@codesourcery.com>
18093 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
18094 alternatives according to use of high and low regs.
18095 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18096 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
18097 optimizing for size on Thumb-2.
18099 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
18101 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
18103 2010-04-15 Richard Guenther <rguenther@suse.de>
18105 * tree-ssa-structalias.c (struct variable_info): Add
18107 (new_var_info): Initialize it.
18108 (dump_constraints): Support printing last added constraints.
18109 (debug_constraints): Adjust.
18110 (dump_constraint_graph): Likewise.
18111 (make_heapvar_for): Check for NULL cfun.
18112 (get_function_part_constraint): New function.
18113 (get_fi_for_callee): Likewise.
18114 (find_func_aliases): Properly implement IPA PTA constraints.
18115 (process_ipa_clobber): New function.
18116 (find_func_clobbers): Likewise.
18117 (insert_into_field_list_sorted): Remove.
18118 (create_function_info_for): Properly allocate vars for IPA mode.
18119 Do not use insert_into_field_list_sorted.
18120 (create_variable_info_for): Properly generate constraints for
18121 global vars in IPA mode.
18122 (dump_solution_for_var): Always dump the solution.
18123 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
18124 (find_what_var_points_to): Adjust.
18125 (pt_solution_set): Change.
18126 (pt_solution_ior_into): New function.
18127 (pt_solution_empty_p): Export.
18128 (pt_solution_includes_global): Adjust.
18129 (pt_solution_includes_1): Likewise.
18130 (pt_solutions_intersect_1): Likewise.
18131 (dump_sa_points_to_info): Check some invariants.
18132 (solve_constraints): Move constraint dumping ...
18133 (compute_points_to_sets): ... here.
18134 (ipa_pta_execute): ... and here.
18135 (compute_may_aliases): Do not re-compute points-to info
18136 locally if IPA info is available.
18137 (ipa_escaped_pt): New global var.
18138 (ipa_pta_execute): Properly implement IPA PTA.
18139 * tree-into-ssa.c (dump_decl_set): Support dumping
18140 decls not in referenced-vars.
18141 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
18142 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
18143 (dump_points_to_solution): Likewise.
18144 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
18145 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
18146 (remap_gimple_stmt): Reset call clobber/use information if necessary.
18147 (copy_decl_to_var): Copy DECL_PT_UID.
18148 (copy_result_decl_to_var): Likewise.
18149 * tree.c (make_node_stat): Initialize DECL_PT_UID.
18150 (copy_node_stat): Copy it.
18151 * tree.h (DECL_PT_UID): New macro.
18152 (SET_DECL_PT_UID): Likewise.
18153 (DECL_PT_UID_SET_P): Likewise.
18154 (struct tree_decl_minimal): Add pt_uid member.
18155 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
18156 (pt_solution_empty_p): Declare.
18157 (pt_solution_set): Adjust.
18158 (ipa_escaped_pt): Declare.
18159 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
18160 * gimple-pretty-print.c (pp_points_to_solution): New function.
18161 (dump_gimple_call): Dump call clobber/use information.
18162 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
18163 * tree-pass.h (TDF_ALIAS): New dump option.
18164 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
18165 * doc/invoke.texi (-fipa-pta): Update documentation.
18167 2010-04-15 Richard Guenther <rguenther@suse.de>
18169 * Makefile.in (OBJS-common): Add gimple-fold.o.
18170 (gimple-fold.o): New rule.
18171 * tree.h (maybe_fold_offset_to_reference,
18172 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
18174 * gimple.h: ... here.
18175 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
18176 may_propagate_address_into_dereference): Move prototypes ...
18177 * gimple.h: ... here.
18178 * tree-ssa-ccp.c (get_symbol_constant_value,
18179 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
18180 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
18181 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
18182 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
18183 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
18184 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
18185 gimplify_and_update_call_from_tree): Move ...
18186 * gimple-fold.c: ... here. New file.
18187 (ccp_fold_builtin): Rename to ...
18188 (gimple_fold_builtin): ... this.
18189 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
18191 2010-04-15 Richard Guenther <rguenther@suse.de>
18193 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
18194 fit_double_type, force_fit_type_double, add_double_with_sign,
18195 neg_double, mul_double_with_sign, lshift_double, rshift_double,
18196 lrotate_double, rrotate_double, div_and_round_double): Move ...
18197 * double-int.c: ... here.
18198 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
18199 add_double, neg_double, mul_double_with_sign, mul_double,
18200 lshift_double, rshift_double, lrotate_double, rrotate_double,
18201 div_and_round_double): Move prototypes ...
18202 * double-int.h: ... here.
18204 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
18207 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
18208 matching constraints to ensure inputs match the output.
18210 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
18213 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
18214 in an input-only operand.
18216 2010-04-15 Anatoly Sokolov <aesok@post.ru>
18218 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
18219 (double_int_not, double_int_lshift, double_int_rshift): Declare.
18220 (double_int_negative_p): Convert to static inline function.
18221 * double-int.c (double_int_lshift, double_int_lshift): New functions.
18222 (double_int_negative_p): Remove.
18223 * tree.h (lshift_double, rshift_double):
18224 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
18225 * fold-const.c (fold_convert_const_int_from_real,
18226 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
18227 (lshift_double): Change type of arith argument to bool.
18228 (rshift_double): Change type of arith argument to bool. Correct
18230 * expmed.c (mask_rtx, lshift_value): (Ditto.).
18232 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
18235 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
18236 at the start and end of the then/else blocks, and omit them from the
18238 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
18239 argument; all callers changed. Pass zero to old_insns_match_p instead.
18240 (flow_find_head_matching_sequence): New function.
18241 (old_insns_match_p): Check REG_EH_REGION notes for calls.
18242 * basic-block.h (flow_find_cross_jump,
18243 flow_find_head_matching_sequence): Declare functions.
18245 2010-04-14 Jason Merrill <jason@redhat.com>
18248 * c-common.c (attribute_takes_identifier_p): New fn.
18249 * c-common.h: Declare it.
18251 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
18253 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
18254 splitter condition.
18255 (*udivmod<mode>4): Ditto.
18257 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
18259 * config/i386/i386.md (maxmin_int): Rename code attribute from
18260 maxminiprefix and update all users.
18261 (maxmin_float): Ditto from maxminfprefix.
18262 (logic): Ditto from logicprefix.
18263 (absneg_mnemonic): Ditto from absnegprefix.
18264 * config/i386/mmx.md: Update all users of maxminiprefix,
18265 maxminfprefix and logicprefix for rename.
18266 * config/i386/sse.md: Ditto.
18267 * config/i386/sync.md (sync_<code><mode>): Update for
18268 logicprefix rename.
18270 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
18273 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
18274 warnings converted to errors.
18276 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
18278 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
18279 used insn_type variable.
18280 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
18281 to avoid set-but-not-used warning.
18283 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
18285 * df-core.c (df_ref_debug): Change format string placeholder
18287 * dwarf2asm.c (dw2_asm_output_data_raw,
18288 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
18289 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
18290 * dwarf2out.c (output_cfi, output_cfi_directive,
18291 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
18292 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
18294 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
18295 * print-rtl.c (print_rtx): Ditto.
18297 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18299 PR middle-end/42694
18300 * builtins.c (expand_builtin_pow_root): New function to expand pow
18301 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
18302 series of sqrt and cbrt calls under -ffast-math.
18303 (expand_builtin_pow): Call it.
18305 2010-04-14 Michael Matz <matz@suse.de>
18307 PR tree-optimization/42963
18308 * tree-cfg.c (touched_switch_bbs): New static variable.
18309 (group_case_labels_stmt): New function broken out from ...
18310 (group_case_labels): ... here, use the above.
18311 (start_recording_case_labels): Allocate touched_switch_bbs.
18312 (end_recording_case_labels): Deallocate it, call
18313 group_case_labels_stmt.
18314 (gimple_redirect_edge_and_branch): Remember index of affected BB.
18316 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
18318 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
18319 from insn template.
18321 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
18323 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
18325 2010-04-13 Jan Hubicka <jh@suse.cz>
18327 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
18328 of optimized out static functions.
18329 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
18330 cost computation. Also sanity check for overflows.
18331 (update_caller_keys): Update cgraph_edge_badness call; properly
18332 update fibheap and sanity check that it is up to date.
18333 (add_new_edges_to_heap): Update cgraph_edge_badness.
18334 (cgraph_decide_inlining_of_small_function): Likewise;
18335 add sanity checking that badness in heap is up to date;
18336 improve dumping of reason; Update badness of calls to the
18337 offline copy of function currently inlined; dump badness
18338 of functions not inlined because of unit growth limits.
18340 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
18342 PR middle-end/32628
18343 * c-common.c (pointer_int_sum): Disregard overflow that occured only
18344 because of sign-extension change when converting to sizetype here...
18345 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
18347 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
18348 the folding to constants. Remove redundant final conversion.
18349 (fold_binary) <associate>: Do not associate if the re-association of
18350 constants alone overflows.
18351 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
18352 to the end of the list.
18353 (multiple_of_p) <COND_EXPR>: New case.
18355 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
18357 * opt-functions.awk (opt_sanitized_name): New.
18359 * optc-gen.awk: Use it
18360 * opth-gen.awk: Use it.
18362 2010-04-13 Martin Jambor <mjambor@suse.cz>
18364 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
18365 (sra_modify_assign): Delete stmts loading dead data even if racc has no
18366 children. Call replace_uses_with_default_def_ssa_name to handle
18369 2010-04-13 Michael Matz <matz@suse.de>
18371 PR middle-end/43730
18372 * builtins.c (expand_builtin_interclass_mathfn): Also create
18373 a register if the predicate doesn't match.
18375 2010-04-13 Diego Novillo <dnovillo@google.com>
18377 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
18378 * c-pch.c: Include timevar.h.
18379 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
18380 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
18381 * ggc-common.c: Include timevar.h.
18382 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
18383 * timevar.def (TV_PCH_SAVE): Define.
18384 (TV_PCH_CPP_SAVE): Define.
18385 (TV_PCH_PTR_REALLOC): Define.
18386 (TV_PCH_PTR_SORT): Define.
18387 (TV_PCH_RESTORE): Define.
18388 (TV_PCH_CPP_RESTORE): Define.
18390 2010-04-13 Michael Matz <matz@suse.de>
18392 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
18394 (can_reassociate_p): New function.
18395 (break_up_subtract_bb, reassociate_bb): Use it.
18397 2010-04-13 Richard Guenther <rguenther@suse.de>
18400 * builtins.c (c_readstr): Fix assert.
18402 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
18404 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
18405 when generating cltd insn.
18407 (*ashl<mode>3_1): Remove special handling for register operand 2.
18408 (*ashlsi3_1_zext): Ditto.
18409 (*ashlhi3_1): Ditto.
18410 (*ashlhi3_1_lea): Ditto.
18411 (*ashlqi3_1): Ditto.
18412 (*ashlqi3_1_lea): Ditto.
18413 (*<shiftrt_insn><mode>3_1): Ditto.
18414 (*<shiftrt_insn>si3_1_zext): Ditto.
18415 (*<shiftrt_insn>qi3_1_slp): Ditto.
18416 (*<rotate_insn><mode>3_1): Ditto.
18417 (*<rotate_insn>si3_1_zext): Ditto.
18418 (*<rotate_insn>qi3_1_slp): Ditto.
18420 2010-04-13 Richard Guenther <rguenther@suse.de>
18422 * tree-ssa-structalias.c (callused_id): Remove.
18423 (call_stmt_vars): New.
18424 (get_call_vi): Likewise.
18425 (lookup_call_use_vi): Likewise.
18426 (lookup_call_clobber_vi): Likewise.
18427 (get_call_use_vi): Likewise.
18428 (get_call_clobber_vi): Likewise.
18429 (make_transitive_closure_constraints): Likewise.
18430 (handle_const_call): Adjust to do per-call call-used handling.
18431 (handle_pure_call): Likewise.
18432 (find_what_var_points_to): Remove general callused handling.
18433 (init_base_vars): Likewise.
18434 (init_alias_vars): Initialize call_stmt_vars.
18435 (compute_points_to_sets): Process call-used and call-clobbered
18436 vars for call statements.
18437 (delete_points_to_sets): Free call_stmt_vars.
18439 2010-04-13 Richard Guenther <rguenther@suse.de>
18441 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18442 Only add RW dependence for dependence distance zero.
18443 Adjust maximal vectorization factor according to dependences.
18444 Move alignment handling ...
18445 (vect_find_same_alignment_drs): ... here. New function.
18446 (vect_analyze_data_ref_dependences): Adjust.
18447 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
18448 (vect_analyze_data_refs): Adjust minimal vectorization factor
18449 according to data references.
18450 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
18451 dependences before determining the vectorization factor.
18452 Analyze alignment after determining the vectorization factor.
18453 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
18454 dependences before alignment.
18455 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
18457 (vect_analyze_data_refs): Likewise.
18458 (MAX_VECTORIZATION_FACTOR): New define.
18460 2010-04-13 Duncan Sands <baldrick@free.fr>
18462 * except.h (lang_eh_type_covers): Remove.
18463 * except.c (lang_eh_type_covers): Likewise.
18465 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18466 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18468 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
18469 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
18470 UNITS_PER_LONG where it is ABI relevant.
18471 (s390_return_addr_rtx): Likewise.
18472 (s390_back_chain_rtx): Likewise.
18473 (s390_frame_area): Likewise.
18474 (s390_frame_info): Likewise.
18475 (s390_initial_elimination_offset): Likewise.
18476 (save_gprs): Likewise.
18477 (s390_emit_prologue): Likewise.
18478 (s390_emit_epilogue): Likewise.
18479 (s390_function_arg_advance): Likewise.
18480 (s390_function_arg): Likewise.
18481 (s390_va_start): Likewise.
18482 (s390_gimplify_va_arg): Likewise.
18483 (s390_function_profiler): Likewise.
18484 (s390_optimize_prologue): Likewise.
18485 (s390_rtx_costs): Likewise.
18486 (s390_secondary_reload): Likewise.
18487 (s390_promote_function_mode): Likewise.
18488 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
18489 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
18490 registers available.
18491 (s390_unwind_word_mode): New function.
18492 (s390_function_value): Split 64 bit values into register pair if
18493 used as return value.
18494 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
18495 function call parameters. Handle parallels.
18496 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
18497 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
18498 (DWARF_CIE_DATA_ALIGNMENT): New macro.
18499 (s390_expand_setmem): Remove unused variable src_addr.
18500 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
18501 deal with 64 bit registers.
18502 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
18503 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
18504 (UNITS_PER_LONG): New macro.
18505 * libjava/include/s390-signal.h: Define extended ucontext
18506 structure containing the upper halfs of the 64 bit registers.
18508 2010-04-13 Simon Baldwin <simonb@google.com>
18510 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
18512 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
18514 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
18515 rvalue on the RHS if the LHS is of a non-renamable type.
18516 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
18518 2010-04-13 Matthias Klose <doko@ubuntu.com>
18520 * gcc.c (cc1_options): Handle -iplugindir before processing
18521 the cc1 spec. Only add -iplugindir once.
18522 (cpp_unique_options): Add -iplugindir option if -fplugin* options
18524 * common.opt (iplugindir): Remove `Separate' property, initialize.
18525 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
18527 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
18528 (distclean): Remove plugin dir.
18529 * doc/invoke.texi: Document -iplugindir.
18531 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
18533 * doc/plugins.texi (Loading Plugins): Document short
18534 -fplugin=foo option.
18535 (Plugin API): Mention default_plugin_dir_name function.
18537 * gcc.c (find_file_spec_function): Add new declaration.
18538 (static_spec_func): Use it for "find-file".
18539 (find_file_spec_function): Add new function.
18540 (cc1_options): Add -iplugindir option if -fplugin* options found.
18542 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
18544 * plugin.c (add_new_plugin): Updated comment, and handle short
18546 (default_plugin_dir_name): Added new function.
18548 * common.opt (iplugindir): New option to set the plugin directory.
18550 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
18552 * config/i386/i386.md (any_rotate): New code iterator.
18553 (rotate_insn): New code attribute.
18555 (SWIM124): New mode iterator.
18556 (<rotate_insn>ti3): New expander.
18557 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
18558 any_rotate code iterator.
18559 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
18560 using any_rotate code iterator and SWIM124 mode iterator.
18561 (ix86_rotlti3): New insn_and_split pattern.
18562 (ix86_rotrti3): Ditto.
18563 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
18564 ix86_rotl{di,ti}3 patterns.
18565 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
18566 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
18567 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
18568 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
18569 code iterator and SWI mode iterator.
18570 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
18571 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
18573 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
18574 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
18575 (bswap rotatert splitter): Add splitter.
18576 (bswap splitter): Macroize splitter using any_rotate code iterator.
18577 Add insn predicate to split only for TARGET_USE_XCHGB or when
18578 optimizing function for size.
18580 2010-04-12 Steve Ellcey <sje@cup.hp.com>
18582 * config/pa/pa.c (emit_move_sequence): Remove use of
18583 deleted variable flag_argument_noalias.
18585 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18587 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
18589 Add to unsupported targets list.
18590 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
18591 sparc*-sun-solaris2.[567]* from target lists.
18592 * configure: Regenerate.
18593 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
18595 Remove Solaris 7 patch references.
18596 (Specific, sparc-sun-solaris2.7): Removed.
18597 (sparc-sun-solaris2*): Update Solaris 7 example.
18598 (sparc64-*-solaris2*): Likewise.
18600 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18602 * config.build (alpha*-dec-osf4*): Remove.
18603 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
18604 of obsolete configurations.
18605 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
18607 * config/alpha/t-osf4: Renamed to ...
18608 * config/alpha/t-osf5: ... this.
18609 * config/alpha/osf.h: Renamed to ...
18610 * config/alpha/osf5.h: ... this.
18611 Merged old osf5.h contents.
18613 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
18614 (EXTRA_SPECS): Removed.
18615 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
18616 reflect removal of Tru64 UNIX V4.0/V5.0 support.
18619 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18621 * doc/contrib.texi (Contributors, Rainer Orth): Update.
18623 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
18626 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
18627 __thiscall convention.
18629 2010-04-12 Steve Ellcey <sje@cup.hp.com>
18631 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
18633 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
18635 2010-04-12 Steve Ellcey <sje@cup.hp.com>
18637 * function.c (assign_parms_initialize_all): Add unused attribute
18640 2010-04-12 Richard Guenther <rguenther@suse.de>
18642 * gsstruct.def (GSS_CALL): New.
18643 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
18644 * gimple.h: Include tree-ssa-alias.h.
18645 (struct gimple_statement_call): New.
18646 (union gimple_statement_struct_d): Add gimple_call member.
18647 (gimple_call_reset_alias_info): Declare.
18648 (gimple_call_use_set): New function.
18649 (gimple_call_clobber_set): Likewise.
18650 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
18651 * gimple.c (gimple_call_reset_alias_info): New function.
18652 (gimple_build_call_1): Call it.
18653 * lto-streamer-in.c (input_gimple_stmt): Likewise.
18654 * tree-inline.c (remap_gimple_stmt): Likewise.
18655 (expand_call_inline): Remove callused handling.
18656 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
18657 * tree-dfa.c (dump_variable): Likewise.
18658 * tree-parloops.c (parallelize_loops): Likewise.
18659 * tree-ssa.c (init_tree_ssa): Likewise.
18660 (delete_tree_ssa): Likewise.
18661 * tree-flow-inline.h (is_call_used): Remove.
18662 * tree-flow.h (struct gimple_df): Remove callused member.
18663 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
18664 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
18665 (ref_maybe_used_by_call_p_1): Simplify.
18666 (call_may_clobber_ref_p_1): Likewise.
18667 * tree-ssa-structalias.c (compute_points_to_sets): Set
18668 the call stmt used and clobbered sets.
18669 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
18670 (find_tail_calls): Verify the tail call.
18672 2010-04-12 Richard Guenther <rguenther@suse.de>
18674 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
18675 single-iteration always-inline inlining.
18676 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
18677 (cgraph_decide_inlining): Do not handle always-inline specially.
18678 (try_inline): Remove always-inline cycle detection special case.
18679 Do not recurse on always-inlines.
18680 (cgraph_early_inlining): Do not iterate if not optimizing.
18681 (cgraph_gate_early_inlining): remove.
18682 (pass_early_inline): Run unconditionally.
18683 (gate_cgraph_decide_inlining): New function.
18684 (pass_ipa_inline): Use it. Do not run the IPA inliner if
18685 not inlining or optimizing.
18686 (cgraph_decide_inlining_of_small_functions): Also consider
18687 always-inline functions.
18688 (cgraph_default_inline_p): Return true for nodes which should
18689 disregard inline limits.
18690 (estimate_function_body_sizes): Assume zero size and time for
18691 nodes which are marked as disregarding inline limits.
18692 (cgraph_decide_recursive_inlining): Do not perform recursive
18693 inlining on always-inline nodes.
18695 2010-04-12 Jakub Jelinek <jakub@redhat.com>
18698 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
18699 for exprs satisfying handled_component_p.
18701 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
18703 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
18704 non-constant aggregate elements.
18706 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
18707 is a real initialization.
18709 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
18712 * c-decl.c (start_function): Move forward check for nested function.
18714 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
18716 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
18717 * config/sh/sh.c: Include reload.h.
18718 (sh_legitimize_reload_address): New.
18719 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
18720 sh_legitimize_reload_address.
18722 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
18724 * config/sh/sh.md (*movqi_pop): New insn pattern.
18725 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
18727 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
18729 * config/i386/i386.md (any_shiftrt): New code iterator.
18730 (shiftrt_insn): New code attribute.
18732 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
18733 using any_shiftrt code iterator.
18734 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
18735 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
18736 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
18737 pattern from corresponding peephole2 patterns.
18738 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
18739 using any_shiftrt code iterator.
18740 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
18741 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
18742 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
18743 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
18744 *{ashr,lshr}<mode>3_cmp_zext.
18745 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
18747 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
18749 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
18751 (*lshr<mode>3_cconly): Ditto.
18753 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
18755 * config/i386/i386.md (lshr<mode>3): Macroize expander from
18756 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
18757 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
18758 pattern from *lshr{di,ti}3_1 and corresponding splitters using
18760 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
18761 from corresponding peephole2 patterns.
18762 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
18763 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
18764 and *lshrdi3_1_rex64 using SWI mode iterator.
18765 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
18766 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
18767 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
18768 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
18769 and *lshrdi3_cmp_rex64 using SWI mode iterator.
18770 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
18771 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
18772 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
18773 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
18776 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
18778 * config/i386/i386.md (ashr<mode>3): Macroize expander from
18779 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
18780 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
18781 pattern from *ashr{di,ti}3_1 and corresponding splitters using
18783 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
18784 from corresponding peephole2 patterns.
18785 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
18786 (ashrsi3_cvt): Rename from ashrsi3_31.
18787 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
18788 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
18789 and x86_64_shift_adj_3 using SWI48 mode iterator.
18790 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
18791 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
18792 and *ashrdi3_1_rex64 using SWI mode iterator.
18793 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
18794 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
18795 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
18796 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
18797 and *ashrdi3_cmp_rex64 using SWI mode iterator.
18798 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
18799 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
18800 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
18801 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
18803 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
18804 * config/i386/i386.c (ix86_split_ashr): Update for renamed
18805 x86_shift<mode>_adj_3 expanders.
18807 2010-04-10 Wei Guozhi <carrot@google.com>
18810 * config/arm/arm.c (arm_pic_static_addr): New function.
18811 (legitimize_pic_address): Call arm_pic_static_addr when it detects
18813 (arm_output_addr_const_extra): Output expression for new pattern.
18814 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
18816 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
18818 * ira-costs.c (record_reg_classes): Ignore alternatives that are
18821 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
18822 * web.c: Include "insn-config.h" and "recog.h".
18823 (union_match_dups): New function.
18824 (web_main): Call it.
18825 (union_defs): Don't try to recognize match_dups.
18827 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
18828 if doing so would replace the entire pattern.
18830 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
18834 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
18835 and splitter pattern. Change splitter operand 1 predicate to
18838 2010-04-09 Martin Jambor <mjambor@suse.cz>
18840 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
18841 lattices are addresses of CONST_DECLs with the same initial value.
18842 (ipcp_print_all_lattices): Print values of CONST_DECLs.
18843 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
18845 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
18846 Bernd Schmidt <bernds@codesourcery.com>
18848 * loop-invariant.c (replace_uses): New static function.
18849 (move_invariant_reg): Use it to ensure we can replace the uses.
18851 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
18853 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
18855 (picochip_override_options): Enable section anchors only above -O1.
18856 (picochip_reorg): Fixed a couple of build warnings.
18858 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18860 * configure.ac (plugin -rdynamic test): Log result.
18861 * configure: Regenerate.
18862 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
18863 (RDYNAMIC_SPEC): Define.
18864 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
18866 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18868 * configure.ac: Determine Sun ld version numbers.
18869 (comdat_group): Restrict GNU ld version checks to gld.
18870 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
18871 (enable_comdat): Support --enable-comdat.
18872 * configure: Regenerate.
18873 * doc/install.texi (Configuration): Document --enable-comdat.
18875 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18877 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
18878 * config/sol2-gld.h: ... here.
18879 * config.gcc (sparc*-*-solaris2*): Reflect this.
18880 (i[34567]86-*-solaris2*): Use it.
18882 2010-04-09 Steve Ellcey <sje@cup.hp.com>
18884 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
18886 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
18888 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18891 * diagnostic.c (diagnostic_initialize): Initialize
18892 some_warnings_are_errors.
18893 (diagnostic_finish): New.
18894 (diagnostic_action_after_output): Call it before exiting.
18895 (diagnostic_report_diagnostic): Do not print message here. Set
18896 some_warnings_are_errors.
18897 * diagnostic.h (diagnostic_context): Delete
18898 issue_warnings_are_errors_message. Add some_warnings_are_errors.
18899 (diagnostic_finish): Declare.
18900 * toplev.c (toplev_main): Call it before exit.
18902 2010-04-09 Jason Merrill <jason@redhat.com>
18905 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
18906 for incomplete type.
18909 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
18910 based on a warning flag.
18912 2010-04-09 Richard Guenther <rguenther@suse.de>
18914 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
18916 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
18919 * varasm.c (default_assemble_visibility): Wrap vars that are
18920 set, but unused, by targets without GAS.
18921 * config/rs6000/rs6000.c (paired_emit_vector_compare):
18922 Remove set, but unused, vars.
18923 (rs6000_legitimize_tls_address): Likewise.
18924 (altivec_expand_dst_builtin): Likewise.
18925 * config/darwin.c (machopic_classify_symbol): Likewise.
18926 (machopic_indirection_name): Likewise.
18928 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
18930 * config/i386/i386.md (DWI): New mode iterator.
18931 (S): New mode attribute.
18932 (shift_operand): Ditto.
18933 (shift_immediate_operand): Ditto.
18934 (ashl_input_operand): Ditto.
18935 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
18936 using SDWIM mode iterator.
18937 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
18938 pattern from *ashl{di,ti}3_1 and corresponding splitters using
18940 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
18941 from corresponding peephole2 patterns.
18942 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
18943 and x86_64_shift_adj_1 using SWI48 mode iterator.
18944 (x86_shift<mode>_adj_2): Ditto.
18945 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
18946 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
18947 using SWI48 mode iterator.
18948 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
18949 *ashldi3_cmp_rex64 using SWI mode iterator.
18950 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
18951 *ashldi3_cconly_rex64 using SWI mode iterator.
18952 * config/i386/i386.c (ix86_split_ashl): Update for renamed
18953 x86_shift<mode>_adj_{1,2}.
18954 (ix86_split_ashr): Ditto.
18955 (ix86_split_lshr): Ditto.
18957 2010-04-09 Richard Guenther <rguenther@suse.de>
18959 * target.h (builtin_conversion): Pass in input and output types.
18960 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
18961 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
18962 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
18963 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
18965 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
18967 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
18969 2010-04-09 Richard Guenther <rguenther@suse.de>
18972 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
18974 2010-04-09 Richard Guenther <rguenther@suse.de>
18976 * tree-vectorizer.h (struct _stmt_vec_info): Document
18977 that vectype is the type of the LHS.
18978 (supportable_widening_operation, supportable_narrowing_operation):
18979 Get both input and output vector types as arguments.
18980 (vect_is_simple_use_1): Declare.
18981 (get_same_sized_vectype): Likewise.
18982 * tree-vect-loop.c (vect_determine_vectorization_factor):
18983 Set STMT_VINFO_VECTYPE to the vector type of the def.
18984 (vectorizable_reduction): Adjust.
18985 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
18986 Adjust. Specify the output vector type.
18987 (vect_pattern_recog_1): Adjust.
18988 * tree-vect-stmts.c (get_same_sized_vectype): New function.
18989 (vectorizable_call): Adjust.
18990 (vectorizable_conversion): Likewise.
18991 (vectorizable_operation): Likewise.
18992 (vectorizable_type_demotion): Likewise.
18993 (vectorizable_type_promotion): Likewise.
18994 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
18996 (vect_is_simple_use_1): New function.
18997 (supportable_widening_operation): Get both input and output
18999 (supportable_narrowing_operation): Likewise.
19000 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
19002 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
19004 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
19005 __thiscall and _thiscall as predefined macros.
19006 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
19007 thiscall attribute handling.
19008 (ix86_comp_type_attributes): Likewise.
19009 (ix86_function_regparm): Likewise.
19010 (ix86_return_pops_args): Likewise.
19011 (init_cumulative_args): Likewise.
19012 (find_drap_reg): Likewise.
19013 (ix86_static_chain): Likewise.
19014 (x86_this_parameter): Likewise.
19015 (x86_output_mi_thunk): Likewise.
19016 (ix86_attribute_table): Add description for thiscall attribute.
19017 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
19018 * doc/extend.texi: Add documentation for thiscall.
19020 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
19023 * c.opt (Wint-to-pointer-cast): Available in C++.
19024 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
19026 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
19028 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
19029 * calls.c (expand_call): Pass the function type to aggregate_value_p.
19030 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
19031 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
19032 function type instead. Reorder and simplify checks.
19034 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
19036 2010-04-08 Jing Yu <jingyu@google.com>
19037 Zdenek Dvorak <ook@ucw.cz>
19039 PR tree-optimization/42720
19040 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
19041 loop unswitch conditions here from ...
19042 (tree_unswitch_single_loop): ... here.
19044 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
19046 * tree-if-conv.c: Fix comments and simplify logic.
19048 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
19050 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
19051 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
19052 (main_tree_if_conversion): Update call to tree_if_conversion.
19054 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
19057 * doc/invoke.texi (-b,-V): Delete.
19058 * doc/tm.texi: Do not mention -b.
19059 * gcc.c (display_help): Delete -b and -V.
19060 (process_command): Delete -b and -V.
19061 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
19063 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
19064 Wolfgang Gellerich <gellerich@de.ibm.com>
19066 Implement target hook for loop unrolling
19067 * target.h (loop_unroll_adjust): Add a new target hook function.
19068 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
19069 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
19070 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
19071 (s390_loop_unroll_adjust): Implement the new target hook for s390.
19072 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
19074 (decide_unroll_stupid): Likewise.
19076 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19079 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
19081 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19083 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
19084 (Specific, *-*-solaris2*): Likewise.
19085 Don't prefer Sun as over GNU as.
19087 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
19089 * config/s390/s390.c (override_options): Adjust the z10 defaults
19090 for max-unroll-times, max-completely-peeled-insns
19091 and max-completely-peel-times.
19093 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19095 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
19096 instructions for z10.
19097 (s390_expand_setmem): Likewise.
19098 (s390_expand_cmpmem): Likewise.
19100 2010-04-08 Richard Guenther <rguenther@suse.de>
19102 PR tree-optimization/43679
19103 * tree-ssa-pre.c (eliminate): Only propagate copies.
19105 2010-04-08 Jakub Jelinek <jakub@redhat.com>
19108 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
19109 set but not used variable warning.
19111 2010-04-08 Wei Guozhi <carrot@google.com>
19114 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
19115 (arm_size_rtx_costs): Call the new function when optimized for size.
19117 2010-04-08 Jakub Jelinek <jakub@redhat.com>
19120 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
19121 op0 is not a MEM, just return NULL instead of assertion
19123 (discover_nonconstant_array_refs): Don't walk debug stmts.
19125 2010-04-08 Doug Kwan <dougkwan@google.com>
19127 * configure.ac: Recognize gold and do not use its version number
19128 to test ld features.
19129 * configure: Regenerate.
19131 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
19133 PR middle-end/40815
19134 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
19135 (negate_value): Move code to push elements to broken_up_substracts ...
19136 (eliminate_plus_minus_pair): ... here. Push operands that have no
19137 negative pair to plus_negates.
19138 (repropagate_negates, init_reassoc, fini_reassoc): Update.
19140 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19142 * doc/install.texi (Configuration): Move description of
19143 --enable-lto, --with-libelf*, --enable-gold from Java section to
19146 * doc/generic.texi (Working with declarations)
19147 (Function Properties, C and C++ Trees): Fix typos.
19148 * doc/sourcebuild.texi (Top Level): Likewise.
19150 2010-04-07 Jakub Jelinek <jakub@redhat.com>
19153 * tree.h (DECL_READ_P): Define.
19154 (struct tree_decl_common): Add decl_read_flag.
19155 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
19156 a set but not used warning.
19157 (merge_decls): Merge DECL_READ_P flag.
19158 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
19159 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
19160 * c-common.c (handle_used_attribute, handle_unused_attribute):
19162 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
19164 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
19166 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
19167 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
19168 c_parser_binary_expression, c_parser_cast_expression,
19169 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
19170 Call default_function_array_read_conversion instead of
19171 default_function_array_conversion where needed.
19172 (c_parser_unary_expression, c_parser_conditional_expression,
19173 c_parser_postfix_expression_after_primary, c_parser_initelt):
19174 Likewise. Call mark_exp_read where needed.
19175 (c_parser_statement_after_labels, c_parser_asm_operands,
19176 c_parser_typeof_specifier, c_parser_sizeof_expression,
19177 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
19179 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
19181 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
19182 (warn_unused_but_set_parameter): Default to warn_unused
19184 * doc/invoke.texi: Document -Wunused-but-set-variable and
19185 -Wunused-but-set-parameter.
19187 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
19188 used count variable.
19189 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
19190 when operandN variables aren't used in the body of the expander
19192 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
19193 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
19194 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
19195 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
19196 FOR_EACH_IMM_USE_ON_STMT): Likewise.
19197 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
19198 * tree.c (PROCESS_ARG): Likewise.
19200 2010-04-07 Simon Baldwin <simonb@google.com>
19202 * diagnostic.h (diagnostic_override_option_index): New macro to
19203 set a diagnostic's option_index.
19204 * c-tree.h (c_cpp_error): Add warning reason argument.
19205 * opts.c (_warning_as_error_callback): New.
19206 (register_warning_as_error_callback): Store callback for
19207 warnings enabled via enable_warning_as_error.
19208 (enable_warning_as_error): Call callback, minor code tidy.
19209 * opts.h (register_warning_as_error_callback): Declare.
19210 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
19211 response to -Werror=.
19212 (c_common_init_options): Register warning_as_error_callback in opts.c.
19213 * common.opt: Add -Wno-cpp option.
19214 * c-common.c (struct reason_option_codes_t): Map cpp warning
19215 reason codes to gcc option indexes.
19216 * (c_option_controlling_cpp_error): New function, lookup the gcc
19217 option index for a cpp warning reason code.
19218 * (c_cpp_error): Add warning reason argument, call
19219 c_option_controlling_cpp_error for diagnostic_override_option_index.
19220 * doc/invoke.texi: Document -Wno-cpp.
19222 2010-04-07 Richard Guenther <rguenther@suse.de>
19224 * ipa-reference.c (mark_load): Use get_base_address.
19225 (mark_store): Likewise.
19227 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
19228 inserting GIMPLE_NOPs into the IL.
19229 * tree-ssa-structalias.c (get_constraint_for_component_ref):
19230 Explicitly strip handled components and indirect references.
19232 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
19233 folding address expressions.
19234 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
19235 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
19236 operand_equal_p to compare decls.
19237 (ptr_deref_may_alias_decl_p): Likewise.
19238 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
19239 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
19240 Handle reversed comparison ops.
19241 * tree-sra.c (asm_visit_addr): Use get_base_address.
19242 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
19243 * ipa-reference.c (mark_address): Use get_base_address.
19245 2010-04-07 Richard Guenther <rguenther@suse.de>
19247 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
19248 Propagate constants everywhere.
19250 2010-04-07 Jakub Jelinek <jakub@redhat.com>
19253 * tree.c (MAX_INT_CACHED_PREC): Define.
19254 (nonstandard_integer_type_cache): New array.
19255 (build_nonstandard_integer_type): Cache results for precision
19256 <= MAX_INT_CACHED_PREC.
19258 2010-04-07 Richard Guenther <rguenther@suse.de>
19260 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
19261 -fargument-noalias-global, -fargument-noalias-anything): Remove.
19262 * common.opt: Likewise.
19263 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
19264 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
19265 (nonoverlapping_memrefs_p): Likewise.
19266 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
19267 * opts.c (common_handle_option): Handle OPT_fargument_alias,
19268 OPT_fargument_noalias, OPT_fargument_noalias_anything and
19269 OPT_fargument_noalias_global for backward compatibility.
19271 2010-04-07 Richard Guenther <rguenther@suse.de>
19273 PR tree-optimization/43270
19274 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
19275 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
19276 * tree-ssa-pre.c (phi_translate_1): Adjust.
19277 (fully_constant_expression): Split out vn_reference handling to ...
19278 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
19279 Fold reads from constant strings.
19280 (vn_reference_lookup): Handle fully constant references.
19281 (vn_reference_lookup_pieces): Likewise.
19282 * Makefile.in (expmed.o-warn): Add -Wno-error.
19284 2010-04-07 Martin Jambor <mjambor@suse.cz>
19286 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
19288 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
19291 * gcc.c: Add -static-libstdc++ to list of recognized options.
19293 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19295 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
19297 2010-04-07 Richard Guenther <rguenther@suse.de>
19299 PR middle-end/42617
19300 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
19301 bases build simple mem attributes to retain points-to information.
19303 2010-04-07 Richard Guenther <rguenther@suse.de>
19305 PR middle-end/42617
19306 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
19307 preserve points-to related information.
19309 2010-04-07 Richard Guenther <rguenther@suse.de>
19311 PR middle-end/42617
19312 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
19313 discard plain indirect references.
19314 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
19315 * tree.c (tree_nop_conversion): Likewise.
19317 2010-04-07 Dodji Seketeli <dodji@redhat.com>
19320 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
19322 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
19324 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
19325 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
19327 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
19329 * tree-if-conv.c: Fix indentation and comments.
19331 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
19333 * tree-if-conv.c: Sort static functions in topological order.
19335 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
19337 * tree-if-conv.c: Fix indentation and comments.
19339 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
19341 PR middle-end/43519
19342 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
19343 lang_hooks.types.type_for_size instead of
19344 build_nonstandard_integer_type.
19345 When converting an unsigned type to signed, double its precision.
19346 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
19347 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
19348 (graphite_create_new_loop_guard): When ub + 1 wraps around,
19351 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
19353 PR middle-end/43519
19354 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
19355 POINTER_PLUS_EXPR for pointer types.
19357 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
19359 PR middle-end/43519
19360 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
19361 * graphite-clast-to-gimple.c: Include langhooks.h.
19362 (max_signed_precision_type): New.
19363 (max_precision_type): Takes two types as arguments.
19364 (precision_for_value): New.
19365 (precision_for_interval): New.
19366 (gcc_type_for_interval): New.
19367 (gcc_type_for_value): New.
19368 (gcc_type_for_clast_term): New.
19369 (gcc_type_for_clast_red): New.
19370 (gcc_type_for_clast_bin): New.
19371 (gcc_type_for_clast_expr): Split up into several functions.
19372 (gcc_type_for_clast_eq): Rewritten.
19373 (compute_bounds_for_level): New.
19374 (compute_type_for_level_1): New.
19375 (compute_type_for_level): New.
19376 (gcc_type_for_cloog_iv): Removed.
19377 (gcc_type_for_iv_of_clast_loop): Rewritten.
19378 (graphite_create_new_loop): Compute the lower and upper bound types
19379 with gcc_type_for_clast_expr.
19380 (graphite_create_new_loop_guard): Same.
19381 (find_cloog_iv_in_expr): Removed.
19382 (compute_cloog_iv_types_1): Removed.
19383 (compute_cloog_iv_types): Removed.
19384 (gloog): Do not call compute_cloog_iv_types.
19385 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
19386 GBB_CLOOG_IV_TYPES.
19387 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
19388 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
19389 (GBB_CLOOG_IV_TYPES): Removed.
19391 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
19393 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
19394 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
19395 (detect_commutative_reduction): Same.
19397 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
19399 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
19400 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
19402 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
19403 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
19404 (rewrite_commutative_reductions_out_of_ssa): Same.
19405 * passes.c (execute_function_todo): Call verify_ssa for every pass
19406 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
19407 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
19408 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
19409 with an extra argument.
19410 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
19411 verify_ssa only when the extra argument is true.
19412 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
19413 with an extra argument.
19414 (tree_transform_and_unroll_loop): Same.
19416 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
19418 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
19419 for all the passes of the LNO having LOOP_CLOSED_SSA.
19420 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
19421 * tree-loop-distribution.c (pass_loop_distribution): Same.
19422 * tree-pass.h (TODO_verify_loops): Removed.
19423 * tree-ssa-loop.c (pass_tree_loop_init): Same.
19425 (pass_tree_unswitch): Same.
19426 (pass_predcom): Same.
19427 (pass_vectorize): Same.
19428 (pass_linear_transform): Same.
19429 (pass_graphite_transforms): Same.
19430 (pass_iv_canon): Same.
19431 (pass_complete_unroll): Same.
19432 (pass_complete_unrolli): Same.
19433 (pass_parallelize_loops): Same.
19434 (pass_loop_prefetch): Same.
19435 (pass_iv_optimize): Same.
19437 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
19439 PR middle-end/32824
19440 * passes.c (init_optimization_passes): Move pass_lim before
19441 pass_copy_prop and pass_dce_loop.
19443 2010-04-06 Jakub Jelinek <jakub@redhat.com>
19446 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
19447 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
19448 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
19449 MULTI_* defines for 4 argument vpermil2p* builtins.
19451 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
19453 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
19454 * config/i386/i386.c (x86_maybe_negate_const_int): New.
19455 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
19456 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
19457 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
19458 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
19459 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
19460 Use x86_maybe_negate_const_int to output insn mnemonic.
19461 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
19462 check from instruction predicate. Update comments.
19463 * config/i386/sync.md (sync_add<mode>): Use
19464 x86_maybe_negate_const_int to output insn mnemonic.
19466 2010-04-06 Jan Hubicka <jh@suse.cz>
19468 PR tree-optimization/42906
19469 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
19470 IGNORE_SELF argument. Set visited_control_parents for fully
19472 (find_obviously_necessary_stmts): Update call of
19473 mark_control_dependent_edges_necessary.
19474 (propagate_necessity): Likewise. Handle PHI edges more curefully.
19476 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
19478 * config/i386/i386.md: Remove comment about 'e' and 'E'
19481 2010-04-06 Richard Guenther <rguenther@suse.de>
19483 PR tree-optimization/43627
19484 * tree-vrp.c (extract_range_from_unary_expr): Widenings
19485 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
19488 2010-04-06 Jakub Jelinek <jakub@redhat.com>
19490 * BASE-VER: Change to 4.6.0.
19493 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
19496 2010-04-06 Richard Guenther <rguenther@suse.de>
19498 PR middle-end/43661
19499 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
19501 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19503 * doc/invoke.texi (Optimize Options): Document that LTO
19504 won't remove object access purely due to incompatible
19507 2010-04-04 Matthias Klose <doko@ubuntu.com>
19509 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
19510 Initialize variable.
19512 2010-04-03 Richard Guenther <rguenther@suse.de>
19514 PR middle-end/42509
19515 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
19516 require a non-NULL MEM_OFFSET.
19518 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
19520 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
19521 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
19522 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
19523 config/alpha/predicates.md, config/arm/arm.md,
19524 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
19525 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
19526 config/darwin9.h, config/darwin.c, config/darwin.h,
19527 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
19528 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
19529 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
19530 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
19531 config/mips/mips.md, config/mn10300/mn10300.c,
19532 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
19533 config/rs6000/aix.h, config/rs6000/dfp.md,
19534 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
19535 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
19536 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
19537 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
19538 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
19539 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
19540 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
19541 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
19542 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
19543 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
19544 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
19545 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
19546 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
19547 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
19548 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
19549 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
19550 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
19551 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
19552 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
19553 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
19554 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
19555 opt-functions.awk, opth-gen.awk, params.def, passes.c,
19556 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
19557 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
19558 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
19559 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
19560 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
19561 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
19562 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
19563 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
19564 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
19565 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
19566 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
19567 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
19568 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
19569 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
19571 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19574 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
19575 * aclocal.m4: Regenerate.
19577 2010-04-02 Richard Guenther <rguenther@suse.de>
19579 PR tree-optimization/43629
19580 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
19581 if we have seen a constant value.
19583 2010-04-02 Joseph Myers <joseph@codesourcery.com>
19585 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
19587 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
19590 * arm.c (legitimize_tls_address): Adjust call to
19591 gen_tls_load_dot_plus_four.
19592 (arm_note_pic_base): New function.
19593 (arm_cannot_copy_insn_p): Use it.
19594 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
19597 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19602 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19604 * Makefile.in ($(out_object_file)): Depend on
19605 gt-$(basename $(notdir $(out_file))).h.
19607 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
19609 * config.gcc (lm32-*-rtems*): Add t-lm32.
19611 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
19613 * config.gcc: Add lm32-*-rtems*.
19614 * config/lm32/rtems.h: New file.
19616 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
19619 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
19621 2010-04-01 Jakub Jelinek <jakub@redhat.com>
19623 * dwarf2out.c (output_compilation_unit_header): For
19624 -gdwarf-4 use version 4 instead of version 3.
19625 (output_line_info): For version 4 and above emit additional
19626 maximum ops per insn header field.
19627 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
19629 * dwarf2out.c (is_c_family, is_java): Remove.
19630 (lower_bound_default): New function.
19631 (add_bound_info, gen_descr_array_type_die): Use it.
19633 2010-04-01 Dodji Seketeli <dodji@redhat.com>
19636 * dwarf2out.c (gen_variable_die): Allow debug info for variable
19637 re-declaration when it happens in a function.
19639 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
19641 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
19642 (cgraph_remove_function_insertion_hook): Same.
19643 (cgraph_call_function_insertion_hooks): Same.
19645 2010-04-01 Richard Guenther <rguenther@suse.de>
19647 PR middle-end/43614
19648 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
19649 and TREE_THIS_VOLATILE.
19650 (copy_ref_info): Likewise.
19651 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
19652 * tree.c (build6_stat): Ignore side-effects of all but arg5
19653 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
19656 2010-04-01 Richard Guenther <rguenther@suse.de>
19658 PR tree-optimization/43607
19659 * ipa-type-escape.c (check_call): Do not access non-existing
19662 2010-04-01 Richard Guenther <rguenther@suse.de>
19664 PR middle-end/43602
19666 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
19667 Jack Howarth <howarth@bromo.med.uc.edu>
19669 * tree-profile.c (tree_init_ic_make_global_vars): Make static
19672 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19674 * doc/install.texi (Prerequisites): Document libelf usability on
19675 IRIX 5/6 and Solaris 2.
19676 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
19677 Update GNU as, GNU ld requirements.
19678 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
19679 Document Sun Studio compiler download.
19680 Update and simplify as, ld recommendations.
19681 (Specific, *-*-solaris2.7): Note obsoletion, removal.
19683 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19685 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
19686 with_tune_32 to pentium4.
19688 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
19690 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
19692 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19694 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
19695 obsoletion, removal.
19697 Document GNU as requirement.
19698 Update configure requirements.
19699 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
19700 Recomment IRIX 6.5.18+.
19701 Document IDF/IDL requirement.
19702 Document GNU as requirement.
19703 Document GNU ld bootstrap failure.
19704 Remove freeware.sgi.com reference.
19706 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19708 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
19709 UNIX V4.0, V5.0 obsoletion, removal.
19710 Remove --with-gc=simple reference.
19711 Update VM requirements during bootstrap.
19712 Remove -oldas bootstrap description.
19713 Update binutils reference.
19714 Remove comparison failure note.
19716 2010-03-31 Richard Guenther <rguenther@suse.de>
19717 Zdenek Dvorak <ook@ucw.cz>
19718 Sebastian Pop <sebastian.pop@amd.com>
19720 PR middle-end/43464
19721 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
19722 with multiple arguments.
19723 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
19725 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
19727 * graphite-dependences.c (print_pddr): Call print_pdr with an
19729 * graphite-poly.c (debug_pdr): Add an extra argument for the
19732 (print_pbb_domain): Same.
19734 (print_scop_context): Same.
19735 (print_scop): Same.
19736 (print_cloog): Same.
19737 (debug_pbb_domain): Same.
19739 (print_pdrs): Same.
19740 (debug_pdrs): Same.
19741 (debug_scop_context): Same.
19742 (debug_scop): Same.
19743 (debug_cloog): Same.
19744 (print_scop_params): Same.
19745 (debug_scop_params): Same.
19746 (print_iteration_domain): Same.
19747 (print_iteration_domains): Same.
19748 (debug_iteration_domain): Same.
19749 (debug_iteration_domains): Same.
19750 (print_scattering_function): Same.
19751 (print_scattering_functions): Same.
19752 (debug_scattering_function): Same.
19753 (debug_scattering_functions): Same.
19754 * graphite-poly.h (debug_pdr): Update declaration.
19756 (print_pbb_domain): Same.
19758 (print_scop_context): Same.
19759 (print_scop): Same.
19760 (print_cloog): Same.
19761 (debug_pbb_domain): Same.
19763 (print_pdrs): Same.
19764 (debug_pdrs): Same.
19765 (debug_scop_context): Same.
19766 (debug_scop): Same.
19767 (debug_cloog): Same.
19768 (print_scop_params): Same.
19769 (debug_scop_params): Same.
19770 (print_iteration_domain): Same.
19771 (print_iteration_domains): Same.
19772 (debug_iteration_domain): Same.
19773 (debug_iteration_domains): Same.
19774 (print_scattering_function): Same.
19775 (print_scattering_functions): Same.
19776 (debug_scattering_function): Same.
19777 (debug_scattering_functions): Same.
19779 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
19781 * graphite-poly.c (print_scattering_function_1): New.
19782 (print_scattering_function): Call it.
19783 (print_scop_params): Remove spaces at the end of lines.
19784 (print_cloog): New.
19785 (debug_cloog): New.
19786 * graphite-poly.h (print_cloog): Declared.
19787 (debug_cloog): Declared.
19789 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
19791 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
19793 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
19794 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
19795 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
19796 to switch between adding the IV bump in loop->latch or in loop->header.
19798 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
19800 * graphite-poly.c (print_scattering_function): Pretty print following
19801 the scoplib format.
19803 (print_pbb_domain): Same.
19804 (dump_gbb_cases): Same.
19805 (dump_gbb_conditions): Same.
19806 (print_pdrs): Same.
19808 (print_scop_params): Same.
19809 (print_scop_context): Same.
19810 (print_scop): Same.
19811 (print_pbb_body): New.
19812 (lst_indent_to): New.
19813 (print_lst): Start new lines with a #.
19814 * graphite-poly.h (pbb_bb): New.
19815 (pbb_index): Use pbb_bb.
19816 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
19818 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
19820 2010-03-31 Jakub Jelinek <jakub@redhat.com>
19822 * dwarf2out.c (size_of_die): For -gdwarf-4 use
19823 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
19824 and 0 instead of 1 for dw_val_class_flag.
19825 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
19826 dw_val_class_range_list, dw_val_class_loc_list,
19827 dw_val_class_lineptr and dw_val_class_macptr, use
19828 DW_FORM_flag_present for dw_val_class_flag and
19829 DW_FORM_exprloc for dw_val_class_loc.
19830 (output_die): For -gdwarf-4 print dw_val_class_loc
19831 size as uleb128 instead of 1 or 2 bytes and don't print
19832 anything for dw_val_class_flag.
19834 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
19835 instead of cselib_lookup following by tweaking locs->setting_insn.
19838 * cselib.c (cselib_process_insn): Clear cselib_current_insn
19839 even before returning from label, setjmp call or volatile asm
19842 2010-03-31 Richard Guenther <rguenther@suse.de>
19844 PR middle-end/43600
19845 * cgraphunit.c (cgraph_output_in_order): Do not allocate
19846 temporary data on stack.
19848 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19850 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
19851 (PUSHSECTION_ASM_OP): Remove.
19852 (POPSECTION_ASM_OP): Remove.
19853 (PUSHSECTION_FORMAT): Remove.
19854 * config/sol2.h (PUSHSECTION_FORMAT): Define.
19855 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
19856 * config/sol2.c (solaris_output_init_fini): Use it.
19858 2010-03-31 Jie Zhang <jie@codesourcery.com>
19861 * opt-functions.awk (var_type_struct): Use signed char type
19862 for simple variables.
19864 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19866 * config/sol2.c: Include output.h.
19867 (solaris_assemble_visibility): New function.
19868 * config/t-sol2 (sol2.o): Add output.h dependency.
19869 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
19870 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
19873 2010-03-31 Jakub Jelinek <jakub@redhat.com>
19876 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
19877 V2SImode or XFmode on PRE_DEC.
19880 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
19883 2010-03-31 Jie Zhang <jie@codesourcery.com>
19886 * reload.h (caller_save_initialized_p): Declare.
19887 * toplev.c (backend_init_target): Don't call
19888 init_caller_save but set caller_save_initialized_p to false.
19889 * caller-save.c (caller_save_initialized_p): Define.
19890 (init_caller_save): Check caller_save_initialized_p.
19891 * ira.c (ira): Call init_caller_save if flag_caller_saves.
19893 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19896 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
19897 and soft-fp/t-softfp to tmake_file.
19898 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
19899 (LIBGCC2_TF_CEXT): Define.
19902 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
19905 * cselib.c (n_useless_values): Document handling of debug locs.
19906 (n_useless_debug_values, n_debug_values): New variables.
19907 (new_elt_loc_list): Don't add to debug values, keep count.
19908 (promote_debug_loc): New.
19909 (cselib_reset_table): Zero new variables.
19910 (entry_and_rtx_equal_p): Promote debug locs.
19911 (discard_useless_locs): Increment n_useless_debug_values for
19913 (remove_useless_values): Adjust n_useless_values and n_debug_values
19914 with n_useless_debug_values.
19915 (add_mem_for_addr): Promote debug locs.
19916 (cselib_lookup_mem): Likewise.
19917 (cselib_lookup_addr): Renamed to...
19918 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
19919 (cselib_log_lookup): ... this. Turn into...
19920 (cselib_lookup_addr): ... new wrapper.
19921 (cselib_lookup_from_insn): New.
19922 (cselib_invalidate_regno): Increment n_useless_debug_values for
19924 (cselib_invalidate_mem): Likewise.
19925 (cselib_process_insn): Take n_deleted and n_debug_values into
19926 account to guard remove_useless_value call.
19927 (cselib_finish): Zero n_useless_debug_values.
19928 * cselib.h (cselib_lookup_from_insn): Declare.
19929 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
19930 (sched_analyze_2): Likewise.
19932 2010-03-30 Jakub Jelinek <jakub@redhat.com>
19934 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
19936 (adjust_mems): Replace narrowing SUBREG of expression containing
19937 just PLUS, MINUS, MULT and ASHIFT of registers and constants
19938 with operations in the narrower mode.
19941 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
19942 regs_invalidated_by_call instead all call_used_reg_set registers.
19944 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
19946 PR middle-end/43430
19947 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
19948 pointer comparisons with types_compatible_p.
19949 * tree-vect-stmts.c (vectorizable_call): Same.
19950 (vectorizable_condition): Same.
19952 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19954 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
19955 stack check if the mask would be zero.
19957 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
19958 Jack Howarth <howarth@bromo.med.uc.edu>
19960 * tree-profile.c (tree_init_ic_make_global_vars): Make static
19963 2010-03-30 Joseph Myers <joseph@codesourcery.com>
19966 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
19968 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
19969 Include ___unordxf2 and ___unordtf2.
19970 * config/i386/libgcc-glibc.ver: Do not define inheritance from
19973 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
19975 * config/lm32/t-lm32: New file.
19976 * config.gcc: Use the above file when targetting lm32.
19978 2010-03-28 Duncan Sands <baldrick@free.fr>
19980 * Makefile.in (PLUGIN_HEADERS): Add except.h.
19982 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
19984 PR middle-end/43431
19985 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
19986 Improve vectorization cost model diagnostic.
19988 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
19990 PR middle-end/43436
19991 * tree-vect-data-refs.c (vect_analyze_data_refs): When
19992 compute_data_dependences_for_loop returns false, early exit
19993 and output an extra diagnostic for the failed data reference
19996 2010-03-29 Richard Guenther <rguenther@suse.de>
19998 PR tree-optimization/43560
19999 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
20000 (can_sm_ref_p): Treat stores to readonly locations as trapping.
20002 2010-03-29 Jie Zhang <jie@codesourcery.com>
20005 * toplev.c (process_options): Set optimization_default_node
20006 and optimization_current_node.
20007 * opts.c (decode_options): Don't set optimization_default_node
20008 and optimization_current_node.
20010 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
20012 * config/rtems.h: Abandon -qrtems_debug.
20014 2010-03-28 Jan Hubicka <jh@suse.cz>
20016 PR tree-optimization/43505
20017 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
20018 map should not be copied.
20020 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20022 PR middle-end/41674
20023 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
20024 cdtors, set DECL_PRESERVE_P.
20025 * ipa.c (cgraph_externally_visible_p): Return true if declaration
20026 should be preseved.
20028 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
20030 PR tree-optimization/43528
20031 * stor-layout.c (place_field): Check that constant fits into
20032 unsigned HWI when skipping calculation of MS bitfield layout.
20034 2010-03-27 Jan Hubicka <jh@suse.cz>
20036 PR middle-end/43391
20037 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
20038 notice_global_symbol work.
20040 2010-03-27 Jakub Jelinek <jakub@redhat.com>
20042 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
20043 instead of dwarf2out_decl.
20044 (struct var_loc_node): Remove section_label field.
20045 (dwarf2out_function_decl): New function.
20046 (dwarf2out_var_location): Don't set section_label field.
20047 (dwarf2out_begin_function): Don't empty decl_loc_table here.
20049 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
20051 PR tree-optimization/43544
20052 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
20053 First argument for builtin vectorized function hook is now a
20054 tree to be able to distinguish between machine specific and
20056 * targhooks.c (default_builtin_vectorized_function): Ditto.
20057 * targhooks.h (default_builtin_vectorized_function): Ditto.
20058 * target.h (struct gcc_target): Ditto.
20059 * tree-vect-stmts.c (vectorizable_function): Ditto.
20060 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
20061 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
20064 2010-03-26 Joseph Myers <joseph@codesourcery.com>
20067 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
20068 nested binding iff it is a FUNCTION_DECL.
20069 (store_parm_decls_newstyle): Pass nested=true to bind for
20070 FUNCTION_DECLs amongst parameters.
20072 2010-03-26 Jakub Jelinek <jakub@redhat.com>
20074 * var-tracking.c (vt_expand_loc_callback): Don't run
20075 cselib_expand_value_rtx_cb in dummy mode if
20076 cselib_dummy_expand_value_rtx_cb returned false.
20078 * var-tracking.c (emit_note_insn_var_location): For one part
20079 notes with offset 0, don't add EXPR_LIST around the location.
20080 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
20081 add_location_or_const_value_attribute): Adjust for that change.
20084 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
20085 into first operand and location into second.
20086 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
20087 dw_cfi_oprnd_loc for DW_CFA_expression.
20088 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
20089 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
20090 assume first argument is regnum and second argument is location.
20092 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
20095 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
20096 of scratch register to DImode. Split to DImode comparison operator.
20097 Use SImode subreg of scratch register in the multiplication.
20098 (*cmp_sadd_sidi): Ditto.
20099 (*cmp_ssub_si): Ditto.
20100 (*cmp_ssub_sidi): Ditto.
20102 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
20105 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
20106 Remove invalid assert and wrong comment.
20108 2010-03-26 Jakub Jelinek <jakub@redhat.com>
20111 * flags.h (final_insns_dump_p): New extern.
20112 * final.c (final_insns_dump_p): New variable.
20113 (rest_of_clean_state): Set it before -fdump-final-insns=
20114 dumping, clear afterwards.
20115 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
20116 MEM_ALIAS_SET on MEMs.
20118 2010-03-26 David S. Miller <davem@davemloft.net>
20120 * configure.ac: Fix sparc GOTDATA_OP bug check.
20121 * configure: Rebuild.
20123 2010-03-26 Alan Modra <amodra@gmail.com>
20125 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
20127 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20129 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
20130 TLS_SECTION_ASM_FLAG.
20132 2010-03-25 Jakub Jelinek <jakub@redhat.com>
20135 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
20136 Clear first_function_block_is_cold.
20139 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
20140 argument if the argument is truth_value_p.
20142 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20144 * config/rs6000/constraints.md: Update copyright year for my changes.
20147 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
20148 used in reg+reg addressing, swap registers.
20150 2010-03-24 Jakub Jelinek <jakub@redhat.com>
20153 * target.h (struct gcc_target): Add code_end hook.
20154 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
20155 if not yet defined.
20156 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
20157 * toplev.c (compile_file): Call targetm.asm_out.code_end
20158 hook before unwind info/debug info output.
20159 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
20160 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
20161 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
20162 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
20163 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
20164 * config/i386/i386.c (ix86_file_end): Renamed to...
20165 (ix86_code_end): ... this. Make static. Don't call
20166 file_end_indicate_exec_stack. Emit unwind info using
20167 final_start_function/final_end_function.
20168 (darwin_x86_file_end): Remove.
20169 (TARGET_ASM_CODE_END): Define.
20170 * config/i386/i386.h (TARGET_ASM_FILE_END,
20171 NEED_INDICATE_EXEC_STACK): Don't define.
20172 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
20173 (TARGET_ASM_FILE_END): Define to darwin_file_end.
20174 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
20175 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
20178 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
20179 at the beginning and final_end_function at the end.
20180 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
20182 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20184 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
20185 and Sun as TLS syntax.
20186 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
20187 * configure: Regenerate.
20188 * config.in: Regenerate.
20189 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
20190 (default_elf_asm_named_section): Use it.
20191 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
20192 (i386_output_dwarf_dtprel): Likewise.
20193 (output_addr_const_extra): Likewise.
20194 (output_pic_addr_const): Lowercase @GOTTPOFF.
20195 (output_addr_const_extra): Likewise.
20196 (output_pic_addr_const): Lowercase @GOTNTPOFF.
20197 (output_addr_const_extra): Likewise.
20198 (output_pic_addr_const): Lowercase @INDNTPOFF.
20199 (output_addr_const_extra): Likewise.
20200 (output_pic_addr_const): Lowercase @NTPOFF.
20201 (output_addr_const_extra): Likewise.
20202 (output_pic_addr_const): Lowercase @TPOFF.
20203 (output_addr_const_extra): Likewise.
20204 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
20205 (*tls_global_dynamic_64): Likewise.
20206 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
20207 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
20209 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
20210 (ASM_OUTPUT_TLS_COMMON): Use it.
20211 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
20214 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
20215 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
20216 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
20217 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
20218 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
20219 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
20221 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20223 * config/i386/i386.c (override_options): Don't accept
20224 -mtls-dialect=sun any longer.
20225 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
20226 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
20227 (*tls_local_dynamic_base_32_sun): Likewise.
20228 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
20230 2010-03-24 Jakub Jelinek <jakub@redhat.com>
20233 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
20234 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
20237 * ira.c (adjust_cleared_regs): New function.
20238 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
20242 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
20244 * expr.c (expand_expr_real): Restore previous
20245 curr_insn_source_location and curr_insn_block after
20246 expand_expr_real_1 call.
20247 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
20248 instead of expand_expr_real_1.
20250 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
20252 PR rtl-optimization/43413
20253 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
20256 2010-03-22 James E. Wilson <wilson@codesourcery.com>
20259 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
20260 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
20262 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
20264 * config/i386/i386.c (ix86_target_string): Add -mfma.
20265 Fix a typo in comment.
20267 2010-03-22 Mike Stump <mikestump@comcast.net>
20270 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
20271 Don't overly align based upon packed packed fields.
20273 2010-03-22 Jason Merrill <jason@redhat.com>
20275 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
20276 Use () rather than [], and move before the element type.
20278 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20280 * doc/configfiles.texi (Configuration Files): Removed
20281 fixinc/Makefile*, intl/Makefile.*.
20282 * doc/makefile.texi: Fixed markup. Abstract from version
20283 control system used.
20284 (Makefile): Removed obsolete gcc/java/parse.y example.
20285 * doc/sourcebuild.texi: Likewise.
20286 (Top Level): Added config, gnattools, libdecnumber, libgcc,
20287 libgomp, libssp. Removed fastjar.
20288 (Miscellaneous Docs): Clarify location.
20289 Added COPYING3, COPYING3.LIB.
20290 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
20292 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20295 * config/i386/i386.c (x86_function_profiler)
20296 [!NO_PROFILE_COUNTERS]: Fix typo.
20297 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
20300 2010-03-22 Janis Johnson <janis187@us.ibm.com>
20301 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20303 * doc/sourcebuild.texi (Test Directives): Split into six
20304 subsections, with most of the current text in new subsections
20305 Directives, Selectors, and Final Actions.
20306 (Directives): Split list of test directives into multiple
20308 (Selectors): Describe use and syntax of selectors.
20309 (Effective-Target Keywords): Describe all existing keywords.
20310 (Add Options): Describe features for dg-add-options.
20311 (Require Support): Describe variants of dg-require-support.
20312 (Final Actions): Describe commands to use in dg-final.
20314 2010-03-22 Michael Matz <matz@suse.de>
20316 PR middle-end/43475
20317 * recog.c (validate_replace_rtx_group): Replace also in
20318 REG_EQUAL and REG_EQUIV notes.
20320 2010-03-22 Richard Guenther <rguenther@suse.de>
20322 PR tree-optimization/43390
20323 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
20324 sure vector extracts are type correct.
20326 2010-03-22 Richard Guenther <rguenther@suse.de>
20328 PR middle-end/40106
20329 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
20330 x * sqrt (x) even when optimizing for size if the target
20331 has native support for sqrt.
20333 2010-03-22 Jakub Jelinek <jakub@redhat.com>
20335 * varasm.c (make_decl_rtl_for_debug): Also clear
20336 flag_mudflap for the duration of make_decl_rtl call.
20339 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
20340 locs from preserved VALUEs.
20342 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20344 PR middle-end/42718
20345 * pa.md (movmemsi): Set align to one if zero.
20346 (movmemdi): Likewise.
20348 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
20351 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
20352 with their corresponding prologue pushes.
20354 2010-03-20 Andrew Pinski <pinskia@gmail.com>
20357 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
20358 at the begining or end.
20359 (spu_expand_epilogue): Likewise.
20361 2010-03-20 Richard Guenther <rguenther@suse.de>
20363 PR rtl-optimization/43438
20364 * combine.c (make_extraction): Properly zero-/sign-extend an
20365 extraction of the low part of a CONST_INT. Also handle
20368 2010-03-19 Mike Stump <mikestump@comcast.net>
20370 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
20371 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
20372 (override_options): Use SUBTARGET32_DEFAULT_CPU.
20374 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
20377 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
20380 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
20382 PR rtl-optimization/42258
20383 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
20384 use that may match DEF.
20387 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
20388 the cost of loading the constant rather than assuming
20390 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
20391 outer code is AND, do the same tests as the andsi3 expander and
20392 return COSTS_N_INSNS (1) if and is cheap.
20394 * optabs.c (avoid_expensive_constant): Fix formatting.
20396 2010-03-19 Michael Matz <matz@suse.de>
20399 * attribs.c (decl_attributes): When rebuilding a function pointer
20400 type use the same qualifiers as the original pointer type.
20402 2010-03-19 Martin Jambor <mjambor@suse.cz>
20404 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
20405 and is_gimple_ip_invariant_address.
20407 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20410 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20412 * config/arm/arm.c (arm_override_options): Turn off
20413 flag_dwarf2_cfi_asm for AAPCS variants.
20415 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20418 * config/arm/arm.c (emit_multi_reg_push): Update comments.
20419 Use PRE_MODIFY instead of PRE_DEC.
20420 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
20421 (vfp_emit_fstmd): Likewise.
20423 2010-03-19 Michael Matz <matz@suse.de>
20426 * builtins.c (expand_builtin_interclass_mathfn,
20427 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
20430 2010-03-19 Richard Guenther <rguenther@suse.de>
20432 PR tree-optimization/43415
20433 * tree-ssa-pre.c (phi_translate): Split out worker to ...
20434 (phi_translate_1): ... this.
20435 (phi_translate): Move all caching here. Cache all NARY
20436 and REFERENCE translations.
20438 2010-03-19 David S. Miller <davem@davemloft.net>
20440 With help from Eric Botcazou.
20441 * config/sparc/sparc.c: Include dwarf2out.h.
20442 (emit_pic_helper): Delete.
20443 (pic_helper_symbol_name): Delete.
20444 (pic_helper_emitted_p): Delete.
20445 (pic_helper_needed): New.
20446 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
20447 (get_pc_thunk_name): New.
20448 (load_pic_register): Remove 'delay_pic_helper' arg. Use
20449 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
20450 Set pic_helper_needed to true. Don't call emit_pic_helper.
20451 (sparc_expand_prologue): Update load_pic_register call.
20452 (sparc_output_mi_thunk): Likewise.
20453 (sparc_file_end): Emit a hidden comdat symbol for the PIC
20454 thunk if possible. Output CFI information as needed.
20456 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
20457 Jack Howarth <howarth@bromo.med.uc.edu>
20460 * config/i386/i386.h: Fix ABI on darwin x86-32.
20462 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
20464 * tree.h: Declare make_decl_rtl_for_debug.
20465 * varasm.c (make_decl_rtl_for_debug): New.
20466 * dwarf2out.c (rtl_for_decl_location): Call it.
20467 * cfgexpand.c (expand_debug_expr): Call it.
20469 2010-03-18 Jakub Jelinek <jakub@redhat.com>
20472 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
20476 * var-tracking.c (vt_init_cfa_base): Do nothing if
20477 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
20479 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
20482 * var-tracking.c (canonicalize_vars_star): New.
20483 (dataflow_post_merge_adjust): Use it.
20485 2010-03-18 Jakub Jelinek <jakub@redhat.com>
20488 * var-tracking.c (non_suitable_const): New function.
20489 (add_uses): For DEBUG_INSNs with constants, don't record any
20490 value, instead just the constant value itself.
20491 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
20492 is not VAR_LOC_UNKNOWN_P, set var to the constant.
20493 (emit_notes_in_bb): Likewise.
20494 (emit_note_insn_var_location): For onepart variables if
20495 cur_loc is a VOIDmode constant, use DECL_MODE.
20497 2010-03-18 Martin Jambor <mjambor@suse.cz>
20499 PR middle-end/42450
20500 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
20501 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
20502 all non-clones. Moved call redirection...
20503 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
20504 (cgraph_materialize_all_clones): Dispose of all
20505 combined_args_to_skip bitmaps.
20506 (verify_cgraph_node): Do not check for edges pointing to wrong
20507 nodes in inline clones.
20508 * tree-inline.c (copy_bb): Call
20509 cgraph_redirect_edge_call_stmt_to_callee.
20510 * ipa.c (cgraph_remove_unreachable_nodes): Call
20511 cgraph_node_remove_callees even when there are used clones.
20513 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
20515 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
20517 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
20520 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
20523 2010-03-18 Michael Matz <matz@suse.de>
20525 PR middle-end/43419
20526 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
20527 into sqrt(x) if we need to preserve signed zeros.
20529 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
20530 Eric Botcazou <ebotcazou@adacore.com>
20532 PR rtl-optimization/43360
20533 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
20534 note if we don't know its invariant status.
20536 2010-03-18 Michael Matz <matz@suse.de>
20538 PR tree-optimization/43402
20539 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
20540 PHI chains of ssa names registered for update.
20542 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
20545 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
20546 non-offsettable and pre_modify update addressing.
20547 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
20548 and "2" alternatives "#".
20549 (*movdd_softfloat32): Make all alternatives "#";
20550 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
20551 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
20552 (*movdf_softfloat32): Make all alternatives "#";
20553 (movdi): Use the new DIFD mode iterator to create a common splitter
20554 for movdi, movdf and movdd patterns.
20556 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
20558 * common.opt (dumpdir): Remove redundant tab.
20560 2010-03-17 Martin Jambor <mjambor@suse.cz>
20562 PR tree-optimization/43347
20563 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
20564 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
20566 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
20568 PR rtl-optimization/42216
20569 * regrename.c (create_new_chain): New function, broken out from...
20570 (scan_rtx_reg): ... here. Call it. Handle the case where we are
20571 appending a use to an empty chain.
20572 (build_def_use): Remove previous changes that convert OP_INOUT to
20573 OP_OUT operands; instead detect the case where an OP_INOUT operand
20574 uses a previously untracked register and create an empty chain for it.
20576 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20578 * doc/extend.texi (Function Attributes): Rewrite unfinished
20579 sentence in ms_abi documentation.
20581 2010-03-17 Alan Modra <amodra@gmail.com>
20583 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
20584 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
20585 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
20586 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
20588 2010-03-16 Richard Henderson <rth@redhat.com>
20590 PR middle-end/43365
20591 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
20592 (lower_try_finally): Save and restore eh_seq around the expansion
20593 of the try-finally.
20595 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
20597 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
20598 statements before splitting block.
20600 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20602 * doc/sourcebuild.texi (Testsuites): Fix markup.
20603 Use pathnames relative to gcc/testsuite.
20604 (Test Directives): Move description of how timeout is determined.
20605 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
20606 (C Tests): Correct gcc.misc-tests directory.
20607 Framework tests now live in gcc.test-framework.
20609 2010-03-16 Richard Guenther <rguenther@suse.de>
20611 PR middle-end/43379
20612 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
20613 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
20615 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
20616 Alexandre Oliva <aoliva@redhat.com>
20618 PR tree-optimization/42917
20619 * lambda-code.c (remove_iv): Skip debug statements.
20620 (lambda_loopnest_to_gcc_loopnest): Likewise.
20621 (not_interesting_stmt): Debug statements are not interesting.
20623 2010-03-16 Jakub Jelinek <jakub@redhat.com>
20627 * cselib.c (cselib_preserve_constants,
20628 cfa_base_preserved_val): New static variables.
20629 (preserve_only_constants): New function.
20630 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
20631 clear its REG_VALUES. If cselib_preserve_constants, don't
20632 empty the whole hash table, but preserve there VALUEs with constants,
20633 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
20634 (cselib_preserve_cfa_base_value): New function.
20635 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
20636 (cselib_init): Change argument to int bitfield. Set
20637 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
20639 (cselib_finish): Clear cselib_preserve_constants and
20640 cfa_base_preserved_val.
20641 * cselib.h (enum cselib_record_what): New enum.
20642 (cselib_init): Change argument to int.
20643 (cselib_preserve_cfa_base_value): New prototype.
20644 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
20645 * dse.c (dse_step1): Likewise.
20646 * cfgcleanup.c (thread_jump): Likewise.
20647 * sched-deps.c (sched_analyze): Likewise.
20648 * gcse.c (local_cprop_pass): Likewise.
20649 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
20650 If FN is non-NULL, call the callback always and whenever it returns
20651 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
20652 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
20653 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
20654 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
20655 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
20656 * var-tracking.c: Include recog.h.
20657 (bb_stack_adjust_offset): Remove.
20658 (vt_stack_adjustments): Don't call it, instead just gather the
20659 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
20660 (adjust_stack_reference): Remove.
20661 (compute_cfa_pointer): New function.
20662 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
20663 (struct adjust_mem_data): New type.
20664 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
20666 (get_address_mode): New function.
20667 (replace_expr_with_values): Use it.
20668 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
20669 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
20670 (adjust_sets): Remove.
20671 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
20672 Use get_address_mode.
20673 (get_adjusted_src): Remove.
20674 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
20675 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
20676 (add_with_sets): Don't call adjust_sets.
20677 (fp_setter, vt_init_cfa_base): New functions.
20678 (vt_initialize): Change return type to bool. Move most of pool etc.
20679 initialization to the beginning of the function from end. Pass
20680 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
20681 If !frame_pointer_needed, call vt_stack_adjustment before mos
20682 vector is filled, call vt_init_cfa_base if argp/framep has been
20683 eliminated to sp. If frame_pointer_needed and argp/framep has
20684 been eliminated to hard frame pointer, set
20685 hard_frame_pointer_adjustment and call vt_init_cfa_base after
20686 encountering fp setter in the prologue. For MO_ADJUST, call
20687 log_op_type before pusing the op into mos vector, not afterwards.
20688 Call adjust_insn before cselib_process_insn/add_with_sets,
20689 call cancel_changes (0) afterwards.
20690 (variable_tracking_main_1): Adjust for vt_initialize calling
20691 vt_stack_adjustments and returning whether it succeeded or not.
20693 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
20695 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
20698 2010-03-15 Jakub Jelinek <jakub@redhat.com>
20700 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
20702 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
20703 drap_reg has not been set.
20705 2010-03-15 Michael Matz <matz@suse.de>
20707 PR middle-end/43300
20708 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
20709 use it to expand block copies.
20710 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
20711 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
20712 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
20714 2010-03-15 Richard Guenther <rguenther@suse.de>
20716 PR tree-optimization/43367
20717 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
20720 2010-03-15 Richard Guenther <rguenther@suse.de>
20722 PR tree-optimization/43317
20723 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
20725 2010-03-15 Martin Jambor <mjambor@suse.cz>
20727 PR tree-optimization/43141
20728 * tree-sra.c (create_abstract_origin): New function.
20729 (modify_function): Call create_abstract_origin.
20731 2010-03-15 Chris Demetriou <cgd@google.com>
20733 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
20736 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
20738 PR middle-end/43354
20739 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
20740 call insert_out_of_ssa_copy for default definitions.
20742 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
20744 * graphite-clast-to-gimple.c (my_long_long): Defined.
20745 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
20746 * graphite-sese-to-poly.c (my_long_long): Defined.
20747 (scop_ivs_can_be_represented): Use it.
20749 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
20751 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
20752 graphite-max-bbs-per-function, and loop-block-tile-size.
20753 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
20755 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
20757 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
20759 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
20760 forward declaration.
20761 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
20762 (add_upper_bounds_from_estimated_nit): New.
20763 (build_loop_iteration_domains): Use it.
20765 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
20767 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
20769 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
20771 PR middle-end/43306
20772 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
20773 should be an INTEGER_CST. Also handle CASE_CONVERT.
20775 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
20777 * graphite.c (graphite_initialize): To bound the number of bbs per
20778 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
20779 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
20780 * doc/invoke.texi: Document it.
20782 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
20784 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
20785 * graphite-sese-to-poly.h (build_poly_scop): Same.
20787 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
20789 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
20790 the number of parameters in the scop. Use as an upper bound
20791 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
20792 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
20793 * doc/invoke.texi: Document it.
20795 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
20797 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
20798 * doc/c-tree.texi: Remove.
20799 * doc/generic.texi: Merge c-tree.texi here.
20800 * doc/gccint.texi (Trees): Remove menu entry.
20801 (c-tree.texi): Remove @include.
20802 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
20803 * doc/languages.texi (Reading RTL): Ditto.
20805 2010-03-12 Steve Ellcey <sje@cup.hp.com>
20808 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
20810 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
20812 PR middle-end/42431
20813 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
20814 code added to work around reload clobbering CONST insns.
20816 2010-03-12 Jakub Jelinek <jakub@redhat.com>
20818 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
20819 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
20820 (cselib_preserve_only_values): Remove retain argument, don't
20821 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
20822 * cselib.h (cselib_preserve_only_values): Remove retain argument.
20823 * var-tracking.c (micro_operation): Move insn field before union.
20824 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
20825 (struct variable_tracking_info_def): Remove n_mos field, change
20826 mos into a vector of micro_operations.
20827 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
20828 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
20829 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
20830 changing into a vector.
20831 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
20832 come before all other uops generated by add_stores.
20833 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
20835 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
20836 a vector. Run just one pass over the bbs instead of separate counting
20837 and computation phase.
20838 (vt_finalize): Free VTI (bb)->mos vector instead of array.
20841 * tree-inline.c (remap_decls): Put old_var rather than origin_var
20842 into *nonlocalized_list vector.
20843 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
20844 even if origin is non-NULL.
20845 (gen_variable_die): Likewise.
20846 (process_scope_var): Don't change origin.
20847 (gen_decl_die): Likewise.
20848 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
20849 before adding new edges instead of after it, fix moving over
20852 2010-03-11 David S. Miller <davem@davemloft.net>
20854 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
20856 * configure: Rebuild.
20858 2010-03-11 Martin Jambor <mjambor@suse.cz>
20860 PR tree-optimization/43257
20861 * tree.c (assign_assembler_name_if_neeeded): New function.
20862 (free_lang_data_in_cgraph): Assembler name assignment moved to the
20863 above new function.
20864 * tree.h (assign_assembler_name_if_neeeded): Declare.
20865 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
20866 the function if needed.
20868 2010-03-11 Chris Demetriou <cgd@google.com>
20870 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
20871 include/stdint-gcc.h, and include/stdint.h world-readable.
20873 2010-03-11 Richard Guenther <rguenther@suse.de>
20875 PR tree-optimization/43255
20876 * tree-vrp.c (process_assert_insertions_for): Do not insert
20877 asserts for trivial conditions.
20879 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20881 PR tree-optimization/43280
20882 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
20883 generation. Move calculation of size out of the if branch.
20884 (find_bswap): Modify compare number generation.
20886 2010-03-11 Richard Guenther <rguenther@suse.de>
20889 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
20890 (input_gimple_stmt): Fixup handled component types during
20891 operand read. Also fix up decls in ADDR_EXPRs.
20893 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
20895 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
20896 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
20898 2010-03-10 Jan Hubicka <jh@suse.cz>
20901 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
20902 * varasm.c (get_variable_section): Don't do that here...
20903 (make_decl_rtl): ... and here.
20904 (do_assemble_alias): Produce decl RTL.
20905 (assemble_alias): Likewise.
20907 2010-03-10 Jakub Jelinek <jakub@redhat.com>
20910 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
20911 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
20913 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
20914 (based_loc_descr): Only express drap or vdrap regno based expressions
20915 using DW_OP_fbreg when not optimizing.
20916 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
20917 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
20918 REG_CFA_SET_VDRAP note.
20920 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
20922 PR tree-optimization/43236
20923 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
20924 error in calculation of base address in reverse iteration case.
20925 (generate_builtin): Take number of latch executions if the statement
20928 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
20930 PR middle-end/42859
20931 * tree-eh.c: Include pointer-set.h.
20932 (lower_eh_dispatch): Filter out duplicate case labels and
20933 remove the unneeded edge when the label is unused. Return
20934 true when some edges are removed.
20935 (execute_lower_eh_dispatch): When any lowering resulted in
20936 removing an edge, also delete unreachable blocks.
20938 2010-03-10 Jakub Jelinek <jakub@redhat.com>
20941 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
20942 UNSPEC_MACHOPIC_OFFSET.
20944 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
20947 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
20948 (m68k_delegitimize_address): New function.
20950 2010-03-09 Jakub Jelinek <jakub@redhat.com>
20953 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
20956 * var-tracking.c (adjust_sets): New function.
20957 (count_with_sets, add_with_sets): Use it.
20958 (get_adjusted_src): New inline function.
20959 (add_stores): Use it.
20962 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
20963 call cselib_dummy_expand_value_rtx_cb instead of
20964 cselib_expand_value_rtx_cb.
20967 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
20968 * config/i386/i386.c: Include debug.h and dwarf2out.h.
20969 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
20970 and .cfi_endproc around the pic thunks.
20971 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
20972 all queued unwind info register saves are saved before the call.
20973 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
20974 considered as sp-=4 for unwind info and the pop as sp+=4 which
20975 also clobbers dest, but doesn't actually restore it.
20978 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
20979 RTX_FRAME_RELATED_P.
20981 2010-03-09 Jie Zhang <jie@codesourcery.com>
20983 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
20984 whitespaces in output template.
20986 2010-03-09 Jie Zhang <jie@codesourcery.com>
20988 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
20989 out array boundary.
20991 2010-03-08 Jakub Jelinek <jakub@redhat.com>
20993 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
20994 builtins.exp in a separate job.
20996 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20998 * graphite-sese-to-poly.c (add_param_constraints): Use
20999 lower_bound_in_type and upper_bound_in_type.
21001 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
21003 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
21004 instead of unsigned_type_node.
21006 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
21007 Reza Yazdani <reza.yazdani@amd.com>
21009 PR middle-end/43065
21010 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
21011 on pointer type parameters.
21013 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
21015 PR middle-end/42644
21016 PR middle-end/42130
21017 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
21018 handle conversions from pointer to integers.
21019 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
21020 induction variable, to be able to work with code generated by CLooG.
21021 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
21022 (build_poly_scop): Bail out if we cannot codegen a loop.
21024 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
21026 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
21027 code generation with gloog_error.
21029 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
21031 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
21032 Call fold_convert on all the returned values.
21033 (expand_scalar_variables_expr): Pass to
21034 expand_scalar_variables_ssa_name the type of the resulting expression.
21036 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
21038 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
21039 ppl_min_for_le_pointset.
21040 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
21041 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
21043 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
21045 * graphite-dependences.c (map_into_dep_poly): Removed.
21046 (dependence_polyhedron_1): Use combine_context_id_scat.
21048 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
21050 * graphite-poly.h (struct poly_scattering): Add layout documentation.
21051 (struct poly_bb): Same.
21052 (combine_context_id_scat): New.
21054 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
21056 PR middle-end/42326
21057 * sese.c (name_defined_in_loop_p): Return false for default
21060 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
21062 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
21063 and clean up the logic.
21065 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
21067 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
21070 2010-03-08 Jakub Jelinek <jakub@redhat.com>
21072 * var-tracking.c (remove_cselib_value_chains): Define only for
21074 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
21075 delete_slot_part, emit_notes_for_differences_1): Don't call
21076 remove_cselib_value_chains here.
21077 (set_slot_part, emit_notes_for_differences_2): Don't call
21078 add_cselib_value_chains here.
21079 (preserved_values): New vector.
21080 (preserve_value): New function.
21081 (add_uses, add_stores, vt_add_function_parameters): Use it
21082 instead of cselib_preserve_value.
21083 (changed_values_stack): New vector.
21084 (check_changed_vars_0): New function.
21085 (check_changed_vars_1, check_changed_vars_2): Use it.
21086 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
21087 changed_values_stack VALUEs.
21088 (vt_emit_notes): For all preserved_values call
21089 add_cselib_value_chains. If ENABLE_CHECKING call
21090 remove_cselib_value_chains before verifying value_chains is empty.
21091 Initialize and free changed_values_stack.
21092 (vt_initialize): Initialize preserved_values.
21093 (vt_finalize): Free preserved_values.
21095 2010-03-08 Richard Guenther <rguenther@suse.de>
21097 PR tree-optimization/43269
21098 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
21101 2010-03-08 Martin Jambor <mjambor@suse.cz>
21103 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
21104 (ipa_is_param_called): Removed.
21105 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
21106 (ipa_print_node_params): Do not print the called flag.
21107 (ipa_write_node_info): Do not stream the called flag.
21108 (ipa_read_node_info): Likewise.
21110 2010-03-07 Jakub Jelinek <jakub@redhat.com>
21113 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
21114 * cselib.c (struct expand_value_data): Add dummy field.
21115 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
21117 (cselib_dummy_expand_value_rtx_cb): New function.
21118 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
21120 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
21121 * var-tracking.c: Include pointer-set.h.
21122 (variable): Change n_var_parts to char from int. Add
21123 cur_loc_changed and in_changed_variables fields.
21124 (variable_canonicalize): Remove.
21125 (shared_var_p): New inline function.
21126 (unshare_variable): Maintain cur_loc_changed and
21127 in_changed_variables fields. If var was in changed_variables,
21128 replace it there with new_var. Just copy cur_loc instead of
21129 resetting it to something else.
21130 (variable_union): Don't recompute cur_loc. Use shared_var_p.
21131 (dataflow_set_union): Don't call variable_canonicalize.
21132 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
21133 of their DEBUG_EXPR_TREE_DECLs.
21134 (canonicalize_loc_order_check): Verify that cur_loc is NULL
21135 and in_changed_variables and cur_loc_changed is false.
21136 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
21137 and cur_loc_changed. Don't update cur_loc here.
21138 (variable_merge_over_src): Don't call variable_canonicalize.
21139 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
21140 removing loc that is equal to cur_loc, clear cur_loc,
21141 set cur_loc_changed and ensure variable_was_changed is called.
21142 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
21143 compare pointers in cur_loc check, if it is equal to loc,
21144 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
21145 (variable_different_p): Remove compare_current_location argument,
21146 don't compare cur_loc.
21147 (dataflow_set_different_1): Adjust variable_different_p caller.
21148 (variable_was_changed): If dv had some var in changed_variables
21149 already, reset in_changed_variables flag for it and propagate
21150 cur_loc_changed over to the new variable. On empty var
21151 always set cur_loc_changed. Set in_changed_variables on whatever
21152 var is added to changed_variables.
21153 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
21154 Use shared_var_p. When removing loc that is equal to cur_loc,
21155 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
21156 end, don't set it to something else, just call variable_was_changed.
21157 (delete_slot_part): Use shared_var_p. When cur_loc equals to
21158 loc being removed, clear cur_loc and set cur_loc_changed.
21159 Set cur_loc_changed if all locations have been removed.
21160 (struct expand_loc_callback_data): New type.
21161 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
21162 allocated. Always create SUBREGs if simplify_subreg failed.
21163 Prefer to use cur_loc, when that fails and still in
21164 changed_variables (and seen first time) recompute it. Set
21165 cur_loc_changed of variables which had to change cur_loc and
21166 compute elcd->cur_loc_changed if any of the subexpressions used
21167 had to change cur_loc.
21168 (vt_expand_loc): Adjust to pass arguments in
21169 expand_loc_callback_data structure.
21170 (vt_expand_loc_dummy): New function.
21171 (emitted_notes): New variable.
21172 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
21173 that weren't used for any other decl in current
21174 emit_notes_for_changes call call vt_expand_loc_dummy to update
21175 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
21176 first loc_chain location if NULL before. Always use just
21177 cur_loc instead of first loc_chain location. When cur_loc_changed
21178 is false, when not --enable-checking=rtl just don't emit any note.
21179 When rtl checking, compute the note and assert it is the same
21180 as previous note. Clear cur_loc_changed and in_changed_variables
21181 at the end before removing from changed_variables.
21182 (check_changed_vars_3): New function.
21183 (emit_notes_for_changes): Traverse changed_vars to call
21184 check_changed_vars_3 on each changed var.
21185 (emit_notes_for_differences_1): Clear cur_loc_changed and
21186 in_changed_variables. Recompute cur_loc of new_var.
21187 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
21188 (vt_emit_notes): Initialize and destroy emitted_notes.
21190 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
21192 PR rtl-optimization/42220
21193 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
21194 Use verify_reg_tracked to determine if we should use OP_OUT rather
21196 (build_def_use): If we see an in-out operand for a register that we
21197 know nothing about, treat is an output if possible, fail the block if
21200 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
21203 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
21206 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
21209 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
21210 uses of relevant DEFs that are dead outside the loop too.
21212 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
21214 * var-tracking.c (dataflow_set_merge): Swap src and src2.
21216 2010-01-13 Jakub Jelinek <jakub@redhat.com>
21218 * var-tracking.c (values_to_unmark): New variable.
21219 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
21220 values_to_unmark vector. Moved body to...
21221 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
21222 instead queue it into values_to_unmark vector.
21223 (vt_find_locations): Free values_to_unmark vector.
21225 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
21227 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
21228 (site.exp): Export them when plugins are enabled.
21230 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
21232 PR middle-end/42326
21233 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
21234 that contain scevs.
21235 (chrec_fold_multiply): Same.
21237 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
21240 * c-decl.c (build_compound_literal): Return early if init is
21241 an error_mark_node.
21243 2010-03-04 Martin Jambor <mjambor@suse.cz>
21245 PR tree-optimization/43164
21246 PR tree-optimization/43191
21247 * tree-sra.c (type_consists_of_records_p): Reject records with
21248 zero-size bit-fields at the end.
21250 2010-03-04 Mike Stump <mikestump@comcast.net>
21252 * Makefile.in (TAGS): Remove *.y.
21254 2010-03-04 Richard Guenther <rguenther@suse.de>
21256 PR tree-optimization/40761
21257 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
21259 (my_rev_post_order_compute): New function.
21260 (init_pre): Call it.
21262 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
21264 PR middle-end/43209
21265 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
21266 decrease the cost of an IV candidate when the cost is infinite.
21268 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21270 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
21271 Use '3DNow!' for the extension of that name, ensure normal space
21273 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
21275 2010-03-03 Jeff Law <law@redhat.com>
21277 * PR middle-end/32693
21278 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
21279 than gen_rtx_SUBREG.
21280 (extract_bit_field_1): Likewise.
21282 2010-03-03 Janis Johnson <janis187@us.ibm.com>
21284 * doc/sourcebuild.texi (Test directives): Document that arguments
21285 include-opts and exclude-opts are now optional for dg-skip-if,
21286 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
21288 2010-03-03 Jason Merrill <jason@redhat.com>
21291 * cgraph.h (varpool_node): Add extra_name field.
21292 * varpool.c (varpool_extra_name_alias): New.
21293 (varpool_assemble_decl): Emit extra name aliases.
21294 (varpool_mark_needed_node): Look past an extra name alias.
21295 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
21296 * lto-streamer-in.c (lto_input_tree): Read it.
21297 * lto-streamer-out.c (output_unreferenced_globals): Write it.
21299 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
21301 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
21302 (sparc*-*-solaris2*): ...this.
21304 2010-03-03 Jakub Jelinek <jakub@redhat.com>
21307 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
21308 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
21309 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
21310 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
21313 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
21314 fallthrough to default handling, just with want_address 0 instead of 2.
21315 For single element lists, add_AT_loc directly, otherwise create an
21316 artificial variable DIE and stick location list to it.
21319 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
21320 (VAL_EXPR_HAS_REVERSE): Define.
21321 (reverse_op): New function.
21322 (add_stores): For reversible operations add an extra MO_VAL_USE.
21324 2010-03-02 Jason Merrill <jason@redhat.com>
21326 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
21328 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
21330 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
21331 (sparc64-*-linux*): Likewise.
21332 (sparc64-*-solaris2*): Include assembler files before linker ones.
21333 (sparc-*-solaris2*): Simplify and reorder to match previous case.
21334 * config/sparc/gas.h: Delete.
21335 * config/sparc/sol2-64.h: Add copyright notice.
21336 * config/sparc/sol2-gas-bi.h: Likewise.
21337 * config/sparc/sol2-gld.h: Likewise.
21338 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
21339 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
21340 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
21341 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
21342 (sparc_elf_asm_named_section): Rename into...
21343 (sparc_solaris_elf_asm_named_section): ...this. Always define.
21345 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
21347 * config/alpha/alpha.c (override_options): Fix -mtune error message.
21349 2010-03-02 Jeff Law <law@redhat.com>
21351 PR middle-end/42431
21352 * reload1.c (rtx_p, substitute_stack): Declare.
21353 (substitute): Record addresses of changed rtxs.
21354 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
21355 Restore the original rtx when complete.
21356 (reload): Free subsitute_stack when complete.
21358 2010-03-02 Janis Johnson <janis187@us.ibm.com>
21360 * doc/gccint.texi (menu): Add Testsuites as a chapter.
21361 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
21363 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
21364 LTO Testing, gcov Testing, profopt Testing, compat Testing,
21365 Torture Tests): Change from subsection to section.
21367 2010-03-02 Jakub Jelinek <jakub@redhat.com>
21368 Steven Bosscher <steven@gcc.gnu.org>
21370 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
21373 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
21375 PR middle-end/42640
21376 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
21377 the assignment from the new induction variable to the assignment
21378 of the value from the original loop PHI function.
21380 2010-03-01 Janis Johnson <janis187@us.ibm.com>
21381 Daniel Jacobowitz <dan@codesourcery.com>
21383 * doc/sourcebuild.texi (Test directives): Clarify options to
21386 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21388 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
21389 Disable cfi directives unless GCC and gas agree on using read-only
21390 .eh_frame sections for 64-bit.
21391 * configure: Regenerate.
21393 2010-03-01 Richard Guenther <rguenther@suse.de>
21395 PR tree-optimization/43220
21396 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
21397 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
21399 2010-03-01 Richard Guenther <rguenther@suse.de>
21400 Martin Jambor <mjambor@suse.cz>
21402 PR middle-end/41250
21403 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
21404 gimplified parameters.
21406 2010-03-01 Christian Bruel <christian.bruel@st.com>
21408 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
21410 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
21412 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
21414 2010-03-01 Richard Guenther <rguenther@suse.de>
21416 PR middle-end/43213
21417 * expr.c (expand_assignment): Use the alias-oracle to tell
21418 if the rhs aliases the result decl.
21420 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21423 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
21424 to sol_gt_pch_get_address.
21425 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
21426 64-bit, SPARC and x86.
21427 (sol_gt_pch_get_address): New function.
21429 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
21431 * toplev.h (inform_n, error_n): Declare.
21432 * diagnostic.c (inform_n, error_n): New function.
21434 2010-03-01 Jakub Jelinek <jakub@redhat.com>
21436 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
21437 has no rtl yet when processing local_decls, queue it and recheck
21438 if deferred stack allocation hasn't assigned it rtl.
21440 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
21442 * config/sh/sh.c (unspec_bbr_uid): New.
21443 (gen_block_redirect): Use it instead of INSN_UID.
21444 (gen_far_branch): Likewise.
21446 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
21448 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
21449 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
21451 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21453 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
21454 (Warning Options): -Wno-conversion-null is valid for
21455 Objective-C++ as well.
21456 * doc/tm.texi (Named Address Spaces): Likewise.
21457 * doc/plugins.texi (Plugins): Replace TABs with spaces.
21458 * doc/tree-ssa.texi (Tree SSA): Likewise.
21460 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
21463 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
21464 by default. Don't set the default arch for
21465 i[34567]86-*-darwin*|x86_64-*-darwin*.
21467 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
21470 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
21471 default. Set the default 32bit/64bit archs with $with_arch
21472 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
21474 2010-02-27 Richard Guenther <rguenther@suse.de>
21476 PR tree-optimization/43186
21477 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
21478 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
21479 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
21480 unroller iterations.
21482 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
21484 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
21485 required and i[34567]86-*-* targets don't support 64bit ISA.
21487 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
21490 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
21491 the same alias set.
21493 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
21495 * config.gcc: Set the default arch at least to Prescott for
21496 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
21497 if SSE math is enabled.
21499 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
21501 * diagnostic.c (diagnostic_initialize): Update.
21502 (diagnostic_report_diagnostic): Test inhibit_notes_p for
21504 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
21505 (diagnostic_inhibit_notes): New.
21506 * toplev.c (process_options): inhibit notes with -fcompare-debug.
21508 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
21511 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
21512 * doc/standards.texi: Likewise.
21513 * doc/extend.texi: Likewise.
21514 * doc/trouble.texi: Likewise.
21515 * doc/cppopts.texi: Likewise.
21516 * doc/install.texi: Likewise.
21517 * c.opt (std=c90,std=gnu90): New options.
21518 * c-opts.c (c_common_handle_option): Handle them.
21520 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
21523 * c-decl.c (undeclared_variable): Use an informative note.
21525 2010-02-26 Richard Guenther <rguenther@suse.de>
21527 PR tree-optimization/43186
21528 * gimple.h (gimple_fold): Remove.
21529 * gimple.c (gimple_fold): Remove. Inline into single user ...
21530 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
21531 Try harder for conditions.
21533 2010-02-26 Jakub Jelinek <jakub@redhat.com>
21536 * function.c (used_types_insert): Don't skip through named pointer
21537 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
21538 and it is different from the main variant's type.
21540 2010-02-26 Nick Clifton <nickc@redhat.com>
21542 * config/rx/rx.md (sminsi3): Remove bogus alternative.
21544 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
21546 * config.gcc: Support --with-fpmath=sse for x86.
21548 * config/i386/ssemath.h: New.
21550 * doc/install.texi (--with-fpmath=sse): Documented.
21552 2010-02-26 Richard Guenther <rguenther@suse.de>
21554 PR tree-optimization/43188
21555 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
21556 vector types of over-aligned element type.
21558 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
21561 * config/i386/i386.c (expand_vec_perm_blend): Use correct
21562 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
21564 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
21566 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
21568 2010-02-26 Jakub Jelinek <jakub@redhat.com>
21570 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
21571 * var-tracking.c: Include diagnostic.h.
21572 (debug_dv): New function.
21573 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
21576 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
21577 (add_value_chain, add_value_chains, remove_value_chain,
21578 remove_value_chains): Handle DEBUG_EXPRs.
21579 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
21582 * regcprop.c (struct queued_debug_insn_change): New type.
21583 (struct value_data_entry): Add debug_insn_changes field.
21584 (struct value_data): Add n_debug_insn_changes field.
21585 (debug_insn_changes_pool): New variable.
21586 (free_debug_insn_changes, apply_debug_insn_changes,
21587 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
21588 (kill_value_one_regno): Call free_debug_insn_changes if needed.
21589 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
21591 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
21593 (copyprop_hardreg_forward_1): Don't call apply_change_group for
21594 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
21595 changes, call cprop_find_used_regs via note_stores.
21596 (copyprop_hardreg_forward): When copying vd from predecessor
21597 which has any queued DEBUG_INSN changes, make sure the pointers are
21598 cleared. At the end call df_analyze and then if there are any
21599 DEBUG_INSN changes queued at the end of some basic block for still
21600 live registers, apply them.
21601 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
21603 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
21605 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
21608 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
21610 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
21611 targets. Set the default with_cpu/with_arch from arch/cpu.
21612 Allow x86-64 and native for with_cpu/with_arch.
21614 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
21616 * ebitmap.c: Change calls to verify_popcount with calls to
21617 sbitmap_verify_popcount.
21618 (ebitmap_clear_bit): Fixed map->cacheindex test and
21619 map>cache update when bit clearing results in an empty
21622 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
21625 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
21626 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
21627 and support both V2DF and V2DI modes.
21628 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
21629 support both V2DF and V2DI modes.
21630 (general): Delete trailing whitespace from a few patterns.
21632 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21633 V2DF/V2DI interleave high/low builtins.
21635 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
21638 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
21639 interleave high/low functions.
21641 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
21643 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
21644 #pragma extern_prefix.
21646 2010-02-25 Jakub Jelinek <jakub@redhat.com>
21649 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
21650 BLKmode, assert op0 is a MEM and just adjust its mode.
21653 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
21654 if bitpos isn't multiple of mode's bitsize.
21656 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
21658 * c.opt (-ftemplate-depth=): New.
21659 (-ftemplate-depth-): Deprecate.
21660 * optc-gen.awk: Handle -ftemplate-depth=.
21661 * opth-gen.awk: Likewise.
21662 * c-opts.c (c_common_handle_option): Likewise.
21663 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
21665 2010-02-24 Jason Merrill <jason@redhat.com>
21667 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
21669 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21671 * cfg.c (alloc_aux_for_block): Remove inline.
21672 (alloc_aux_for_edge): Likewise.
21674 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21676 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
21678 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21680 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
21681 * config/i386/sol2-gas.h: New file.
21682 * config.gcc (i[34567]86-*-solaris2*): Use it.
21684 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
21687 * c-typeck.c (ep_convert_and_check): New.
21688 (build_conditional_expr): Use it.
21689 (build_binary_op): Likewise.
21691 2010-02-24 Jakub Jelinek <jakub@redhat.com>
21693 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
21696 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
21697 bounds even for -O+.
21698 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
21699 expr needs to have DECL_NAME set.
21701 2010-02-24 Nick Clifton <nickc@redhat.com>
21703 * config/mep/mep.c: Include gimple.h.
21704 (mep_function_uses_sp): Delete unused function.
21705 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
21706 parameters. Use unsigned integers to count args. Return a
21707 NULL_RTX instead of an error_mark_node. Toidy up formatting.
21709 2010-02-23 Jakub Jelinek <jakub@redhat.com>
21712 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
21713 greater or equal to nelt instead of 2 * nelt.
21714 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
21717 2010-02-23 Jason Merrill <jason@redhat.com>
21720 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
21721 in cfun->local_decls even if they have register types.
21724 * stor-layout.c (place_field): Don't warn about unnecessary
21725 DECL_PACKED if the type is packed.
21727 2010-02-23 Jakub Jelinek <jakub@redhat.com>
21730 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
21731 GOTOFF relocs, even when the base reg isn't pic pointer.
21733 2010-02-23 Michael Matz <matz@suse.de>
21736 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
21737 (expand_gimple_basic_block): Generate and use debug temps if there
21738 are debug uses left after the last real use of TERed ssa names.
21739 Unlink debug immediate uses when they are expanded.
21741 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
21744 * config/i386/i386.c (override_options): Reorganise to provide
21745 better error messages.
21747 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
21749 PR middle-end/43083
21750 * graphite-scop-detection.c (create_single_exit_edge): Move
21751 the call to find_single_exit_edge to....
21752 (create_sese_edges): ...here. Don't handle multiple edges
21753 exiting the function.
21754 (build_graphite_scops): Don't handle multiple edges
21755 exiting the function.
21757 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
21759 PR middle-end/43097
21760 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
21761 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
21763 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
21765 PR middle-end/43026
21766 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
21768 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
21771 * c-typeck.c (convert_arguments): Print declaration location.
21772 * c-common.c (validate_nargs): Rename as
21773 builtin_function_validate_nargs.
21774 (check_builtin_function_arguments): Update.
21776 2010-02-22 Richard Guenther <rguenther@suse.de>
21779 * tree-inline.c (declare_return_variable): Use the type of
21780 the call stmt lhs if available.
21782 2010-02-22 Duncan Sands <baldrick@free.fr>
21784 * passes.c (register_pass): Always consider all pass lists when
21785 ref_pass_instance_number is zero.
21787 2010-02-22 Richard Guenther <rguenther@suse.de>
21789 PR tree-optimization/42749
21790 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
21791 parameter. Do arithmetic in the original type.
21792 (update_accumulator_with_ops): Likewise.
21793 (adjust_accumulator_values): Adjust.
21795 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21797 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
21798 (QI to BLKmode splitter): New splitter.
21800 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
21802 * config/i386/i386.c (initial_ix86_tune_features): Turn on
21803 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
21805 2010-02-22 Richard Guenther <rguenther@suse.de>
21807 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
21809 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
21811 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
21812 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
21813 ($(T)crti.o, $(T)crtn.o): Remove rules.
21815 2010-02-21 Tobias Burnus <burnus@net-b.de>
21818 * doc/invoke.texi (-fassociative-math): Document that this
21819 option is automatically enabled for Fortran.
21821 2010-02-20 David S. Miller <davem@davemloft.net>
21823 * configure.ac: Test if linker and assembler properly support
21824 GOTDATA_OP relocations.
21825 * configure: Rebuild.
21826 * config.in: Likewise.
21827 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
21828 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
21829 (movsi_high_pic): Likewise.
21830 (movdi_lo_sum_pic): Likewise.
21831 (movdi_high_pic): Likewise.
21832 (movsi_pic_gotdata_op): New pattern.
21833 (movdi_pic_gotdata_op): Likewise.
21834 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
21835 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
21837 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
21840 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
21841 attribute to ssemul.
21842 (xop_mulv2div2di3_high): Ditto.
21844 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
21847 * c.opt (Wconversion-null): New option.
21848 * doc/invoke.texi (Wconversion-null): Document.
21850 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
21852 * common.opt (Wlarger-than-): Add Undocumented.
21854 2010-02-19 Mike Stump <mikestump@comcast.net>
21856 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
21858 2010-02-19 Jason Merrill <jason@redhat.com>
21861 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
21862 * configure: Likewise.
21864 2010-02-20 Alan Modra <amodra@gmail.com>
21866 PR middle-end/42344
21867 * cgraph.h (cgraph_make_decl_local): Declare.
21868 * cgraph.c (cgraph_make_decl_local): New function.
21869 (cgraph_make_node_local): Use it.
21870 * cgraphunit.c (cgraph_function_versioning): Likewise.
21871 * ipa.c (function_and_variable_visibility): Likewise.
21873 2010-02-19 Jakub Jelinek <jakub@redhat.com>
21876 * except.c (sjlj_emit_function_enter): Don't call
21877 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
21879 * rtl.h (add_reg_br_prob_note): Remove prototype.
21881 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
21884 * c-common.c (conversion_warning): Remove widening conversions
21885 before checking the conversion of integers to reals.
21887 2010-02-19 Mike Stump <mikestump@comcast.net>
21889 PR middle-end/43125
21890 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
21893 * cgraphunit.c (process_function_and_variable_attributes): Check
21894 DECL_PRESERVE_P instead of looking up attribute "used".
21895 * ipa-pure-const.c (check_decl): Likewise.
21896 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
21897 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
21898 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
21899 instead of attribute "used".
21900 * config/sol2-c.c (solaris_pragma_init): Likewise.
21901 (solaris_pragma_fini): Likewise.
21903 2010-02-19 Jakub Jelinek <jakub@redhat.com>
21905 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
21906 Use XCNEW instead of xcalloc.
21907 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
21908 XNEW instead of xmalloc.
21909 (get_fields): Use XNEWVEC instead of xmalloc.
21912 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
21913 populate vars array.
21914 (create_new_general_access): For debug stmts just reset value.
21915 (get_stmt_accesses): For accesses within debug stmts just record them
21916 using add_access_to_acc_sites instead of preventing the peeling or
21917 counting them as accesses.
21919 PR middle-end/42233
21920 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
21922 2010-02-19 Richard Guenther <rguenther@suse.de>
21924 PR tree-optimization/42916
21925 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
21928 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
21930 * configure.ac: Replace all uses of changequote in macro arguments
21931 with proper quoting.
21933 2010-02-19 Jakub Jelinek <jakub@redhat.com>
21935 PR middle-end/42233
21936 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
21938 2010-02-19 Richard Guenther <rguenther@suse.de>
21940 PR tree-optimization/42944
21941 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
21942 test for aliasing with errno.
21944 2010-02-19 Jakub Jelinek <jakub@redhat.com>
21946 PR middle-end/42233
21947 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
21948 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
21949 * dojump.c: Include output.h.
21950 (inv): New inline function.
21951 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
21952 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
21953 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
21954 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
21955 argument, pass it down to other calls.
21956 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
21957 add REG_BR_PROB note to the conditional jump.
21958 * cfgexpand.c (add_reg_br_prob_note): Removed.
21959 (expand_gimple_cond): Don't call it, add the probability
21960 as last argument to jumpif_1/jumpifnot_1.
21961 * Makefile.in (dojump.o): Depend on output.h.
21962 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
21964 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
21965 * stmt.c (do_jump_if_equal): Likewise.
21966 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
21967 * loop-unswitch.c (compare_and_jump_seq): Likewise.
21968 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
21970 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
21971 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
21972 jumpifnot_1 callers.
21973 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
21975 (store_expr): Adjust jumpifnot caller.
21976 (store_constructor): Adjust jumpif caller.
21978 PR middle-end/42233
21979 * gimplify.c (gimple_boolify): For __builtin_expect call
21980 gimple_boolify also on its first argument.
21982 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
21984 * configure.ac (gnu-unique-object): Wrap regexps using [] in
21986 (__stack_chk_fail): Ditto. Remove quadrigraphs.
21987 * configure: Regenerated.
21989 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21991 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
21992 lang_hooks.types_compatible_p instead of comptypes.
21994 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
21996 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
21997 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
21998 if __prefer_thumb__ is defined.
22000 2010-02-18 Martin Jambor <mjambor@suse.cz>
22002 PR tree-optimization/43066
22003 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
22004 array with zero-sized element type.
22006 2010-02-18 Jakub Jelinek <jakub@redhat.com>
22008 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
22009 rtx, allocate struct var_loc_node here and return it to the
22010 caller, and only if it is actually needed.
22011 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
22012 move it earlier and return immediately if it returns NULL.
22014 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
22016 * config/sparc/gas.h: New file. Restore
22017 TARGET_ASM_NAMED_SECTION to its ELF default.
22018 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
22019 check !HAVE_GNU_AS.
22020 * config/sparc/sparc.c (sparc_elf_asm_named_section):
22021 Likewise. Add ATTRIBUTE_UNUSED to prototype.
22022 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
22023 after sparc/sysv4.h.
22025 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
22027 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
22029 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
22031 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
22032 patterns from predicated pattern.
22034 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
22037 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
22038 for insn mnemonic suffix.
22040 2010-02-17 Richard Guenther <rguenther@suse.de>
22042 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
22045 2010-02-17 Jakub Jelinek <jakub@redhat.com>
22048 * caller-save.c (save_call_clobbered_regs): If BB ends with
22049 a DEBUG_INSN, move any notes in between last real insn and the last
22050 DEBUG_INSN after the last DEBUG_INSN.
22052 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
22054 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
22055 Fix return type. Fix argument type. Explain meaning of return value.
22057 2010-02-16 Richard Guenther <rguenther@suse.de>
22059 PR tree-optimization/41043
22060 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
22061 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
22063 (vrp_visit_phi_node): ... but only for loop PHI nodes.
22065 2010-02-16 Ira Rosen <irar@il.ibm.com>
22067 PR tree-optimization/43074
22068 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
22069 * tree-vect-loop.c (vect_analyze_loop_operations): Add
22070 vectorizable cycles in hybrid SLP check.
22071 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
22073 2010-02-16 Richard Guenther <rguenther@suse.de>
22075 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
22076 (true_dependence): If memrefs_conflict_p computes must-alias
22077 trust it. Move TBAA check after offset-based disambiguation.
22078 (canon_true_dependence): Likewise.
22080 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
22082 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
22083 * doc/invoke.texi: Document it.
22084 * var-tracking.c: Include toplev.h and params.h.
22085 (vt_find_locations): Return bool indicating success. Compute
22086 hash sizes unconditionally. Check new parameter, report.
22087 (variable_tracking_main_1): Check vt_find_locations results and
22088 retry. Renamed from...
22089 (variable_tracking_main): ... this. New wrapper to preserve
22090 flag_var_tracking_assignments.
22091 * Makefile.in (var-tracking.o): Adjust dependencies.
22093 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
22094 Jakub Jelinek <jakub@redhat.com>
22097 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
22098 if weak_import attribute is present.
22099 * config/darwin.c (machopic_select_section): Likewise.
22101 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
22103 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
22104 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
22105 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
22106 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
22108 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
22111 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
22112 Fix argument types.
22114 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
22115 Rewrite text to refer to the names.
22117 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
22119 * config/i386/i386-builtin-types.def
22120 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
22121 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
22122 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
22123 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
22124 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
22125 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
22126 IX86_BUILTIN_VPERMIL2PS256.
22127 (MULTI_ARG_4_DF2_DI_I): Defined.
22128 (MULTI_ARG_4_DF2_DI_I1): Defined.
22129 (MULTI_ARG_4_SF2_SI_I): Defined.
22130 (MULTI_ARG_4_SF2_SI_I1): Defined.
22131 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
22132 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
22133 __builtin_ia32_vpermil2ps256.
22134 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
22135 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
22136 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
22137 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
22138 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
22139 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
22140 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
22141 CODE_FOR_xop_vpermil2v8sf3.
22142 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
22143 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
22144 * config/i386/xopintrin.h (_mm_permute2_pd): New.
22145 (_mm256_permute2_pd): New.
22146 (_mm_permute2_ps): New.
22147 (_mm256_permute2_ps): New.
22149 2010-02-15 Nick Clifton <nickc@redhat.com>
22151 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
22152 boolean parameters. Use emit_jump_insn when emitting a pop
22153 instruction containing a return insn.
22154 (push): Use 'true' rather than '1' as second parameter to F.
22155 (h8300_expand_prologue): Likewise.
22156 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
22157 (h8300_expand_epilogue): Likewise.
22159 2010-02-15 Richard Guenther <rguenther@suse.de>
22161 PR middle-end/43068
22162 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
22165 2010-02-15 Nick Clifton <nickc@redhat.com>
22167 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
22170 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
22172 * intl.c (fake_ngettext): New function.
22173 * intl.h (fake_ngettext): Declare.
22174 (ngettext): Define macro.
22175 * collect2.c (notice_translated): New function.
22176 (main): Use notice_translated and ngettext.
22177 * collect2.h (notice_translated): Declare.
22179 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
22181 * reorg.c (delete_computation): Comment fixes.
22182 * caller-save.c (setup_save_areas): Idem.
22183 * sel-sched-dump.c (dump_lv_set): Idem.
22186 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22188 * config/s390/s390.c (s390_sched_init): New function.
22189 (TARGET_SCHED_INIT): Target hook defined.
22191 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
22192 Jack Howarth <howarth@bromo.med.uc.edu>
22193 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
22196 Partial revert of unintended change in fix for PR41605.
22197 * config/darwin.h: Fix typo.
22198 * config/darwin9.h: Same.
22200 2010-02-11 Jakub Jelinek <jakub@redhat.com>
22202 * c-pch.c (pch_init): Clear v.
22204 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
22206 PR middle-end/42930
22207 * graphite-scop-detection.c (graphite_can_represent_scev): Call
22208 graphite_can_represent_init for MULT_EXPR.
22210 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
22212 PR middle-end/42914
22213 PR middle-end/42530
22214 * graphite-sese-to-poly.c (remove_phi): New.
22215 (translate_scalar_reduction_to_array): Call remove_phi.
22217 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
22219 PR middle-end/42771
22220 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
22221 * graphite-clast-to-gimple.h (gloog): Update declaration.
22222 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
22223 * graphite-poly.h (struct poly_bb): Add missing comments.
22224 (struct scop): Add poly_scop_p field.
22225 (POLY_SCOP_P): New.
22226 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
22227 * graphite.c (graphite_transform_loops): Build the polyhedral
22228 representation for each scop before code generation.
22229 * sese.c (rename_variables_in_operand): Removed.
22230 (rename_variables_in_expr): Return the renamed expression.
22231 (rename_sese_parameters): New.
22232 * sese.h (rename_sese_parameters): Declared.
22234 2010-02-11 Richard Guenther <rguenther@suse.de>
22236 PR tree-optimization/42998
22237 * tree-ssa-pre.c (create_expression_by_pieces): Treat
22238 POINTER_PLUS_EXPR properly.
22240 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
22241 Changpeng Fang <changpeng.fang@amd.com>
22243 PR middle-end/40886
22244 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
22245 the cost of an IV candidate when the IV is used in a test against zero.
22247 * gcc.dg/tree-ssa/ivopts-3.c: New.
22249 2010-02-11 Richard Guenther <rguenther@suse.de>
22252 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
22253 pointer-vs-decl case by swapping refs. Handle some cases
22254 of pointer-vs-decl disambiguations more conservatively.
22255 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
22256 to false after expanding.
22258 2010-02-11 Richard Guenther <rguenther@suse.de>
22261 * gcc.c (process_command): Handle LTO file@offset case more
22264 2010-02-11 Jakub Jelinek <jakub@redhat.com>
22266 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
22267 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
22269 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
22271 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
22272 if MEM's mode size isn't DWARF2_ADDR_SIZE.
22273 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
22274 Optimize eq/ne comparisons when both arguments are known to be
22276 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
22277 Don't mask operands unnecessarily if they are known to be already
22280 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
22282 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
22285 2010-02-10 Richard Guenther <rguenther@suse.de>
22287 PR tree-optimization/43017
22288 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
22289 for wrapping signed arithmetic.
22291 2010-02-10 Jakub Jelinek <jakub@redhat.com>
22294 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
22295 if no debug info should be emitted for it.
22297 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
22299 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
22300 note when flag_exceptions is set.
22302 2010-02-10 Duncan Sands <baldrick@free.fr>
22304 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
22306 2010-02-10 Richard Guenther <rguenther@suse.de>
22309 * tree.c (get_unwidened): Handle constants.
22310 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
22312 2010-02-10 Martin Jambor <mjambor@suse.cz>
22315 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
22316 check for variable argument counts independently.
22318 2010-02-10 Christian Bruel <christian.bruel@st.com>
22321 * config/sh/sh.c (find_barrier): Increase length for non delayed
22322 conditional branches.
22324 2010-02-10 Christian Bruel <christian.bruel@st.com>
22326 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
22328 2010-02-10 Jakub Jelinek <jakub@redhat.com>
22330 * builtins.c (set_builtin_user_assembler_name): Also handle
22331 ffs if int is smaller than word.
22333 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
22335 PR middle-end/42973
22336 * ira-conflicts.c (get_dup): Remove.
22337 (process_reg_shuffles): Add new parameter. Use it as an
22338 additional guard for copy generation.
22339 (add_insn_allocno_copies): Rewrite.
22341 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
22343 * common.opt (fsched2-use-traces): Preserved for backward
22345 * doc/invoke.texi: Remove the documentation about option
22346 -fsched2-use-traces.
22347 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
22348 flag_sched2_use_traces.
22349 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
22350 the backward compatibility flag section.
22352 2010-02-09 Richard Guenther <rguenther@suse.de>
22354 PR tree-optimization/43008
22355 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
22356 make HEAP variables initialized from global memory if they
22357 are not known builtin functions.
22358 (find_func_aliases): Adjust.
22360 2010-02-09 Richard Guenther <rguenther@suse.de>
22362 PR tree-optimization/43000
22363 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
22364 arithmetic manually.
22366 2010-02-08 Jakub Jelinek <jakub@redhat.com>
22368 PR tree-optimization/42931
22369 * tree-loop-linear.c (try_interchange_loops): Don't call
22370 double_int_mul if estimated_loop_iterations failed.
22372 2010-02-08 Martin Jambor <mjambor@suse.cz>
22374 PR middle-end/42898
22375 * tree-sra.c (build_accesses_from_assign): Do not mark in
22376 should_scalarize_away_bitmap if stmt has volatile ops.
22377 (sra_modify_assign): Do not process assigns piecemeal if if stmt
22380 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
22382 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
22384 2010-02-07 Adam Nemet <adambnmet@gmail.com>
22386 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
22387 before the pattern.
22389 2010-02-07 Andrew Pinski <pinskia@gmail.com>
22391 PR middle-end/42946
22392 * df-core.c (df_finish_pass): Change type of saved_flags to int.
22394 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
22396 PR middle-end/42988
22397 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
22398 to unknown_dependence.
22399 (graphite_legal_transform_dr): Handle the unknown_dependence.
22400 (graphite_carried_dependence_level_k): Same.
22402 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
22404 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
22406 2010-02-07 Richard Guenther <rguenther@suse.de>
22408 PR middle-end/42991
22409 * expr.c (get_inner_reference): Always initialize *pbitsize.
22411 2010-02-07 Richard Guenther <rguenther@suse.de>
22413 PR middle-end/42956
22414 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
22415 new ARRAY_REFs on variable size element or minimal index arrays.
22417 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
22418 gimple_fold_indirect_ref.
22420 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
22423 * arm.c (arm_override_options): Just return if the user has specified
22424 an invalid fpu name.
22426 2010-02-03 Jason Merrill <jason@redhat.com>
22429 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
22430 i386_pe_maybe_record_exported_symbol.
22432 2010-02-05 Steve Ellcey <sje@cup.hp.com>
22435 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
22436 (pa_delegitimize_address): New function.
22438 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
22440 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
22441 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
22443 2010-02-05 Richard Guenther <rguenther@suse.de>
22446 * lto-streamer-in.c (get_resolution): Deal with references
22447 to undefined functions.
22449 2010-02-05 Richard Guenther <rguenther@suse.de>
22451 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
22452 (fold_const_aggregate_ref): Likewise.
22453 (ccp_fold_stmt): Substitute loads.
22454 (maybe_fold_reference): Verify types before substituting.
22456 (fold_gimple_assign): Unshare properly.
22457 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
22459 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
22461 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
22462 for rs6000_gen_cell_microcode.
22464 2010-02-04 Richard Guenther <rguenther@suse.de>
22466 PR rtl-optimization/42952
22467 * dse.c (const_or_frame_p): Remove MEM handling.
22469 2010-02-04 Nick Clifton <nickc@redhat.com>
22471 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
22472 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
22473 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
22474 (mn10300_asm_output_mi_thunk): New function.
22475 (mn10300_can_output_mu_thunk): New function.
22476 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
22477 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
22478 (FUNCTION_ARG): Delete incorrect comment.
22480 2010-02-03 Jason Merrill <jason@redhat.com>
22483 * fold-const.c (operand_equal_p): Handle erroneous types.
22485 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
22487 * config/h8300/h8300.md (can_delay): Fix attibute condition.
22489 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
22491 PR rtl-optimization/42941
22492 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
22495 2010-02-03 Jason Merrill <jason@redhat.com>
22498 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
22500 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
22503 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
22504 (cselib_reset_table): Renamed from...
22505 (cselib_reset_table_with_next_value): ... this.
22506 (cselib_get_next_uid): Renamed from...
22507 (cselib_get_next_unknown_value): ... this.
22508 * cselib.c (next_uid): Renamed from...
22509 (next_unknown_value): ... this.
22510 (cselib_clear_table): Adjust.
22511 (cselib_reset_table): Adjust. Renamed from...
22512 (cselib_reset_table_with_next_value): ... this.
22513 (cselib_get_next_uid): Adjust. Renamed from...
22514 (cselib_get_next_unknown_value): ... this.
22515 (get_value_hash): Use hash.
22516 (cselib_hash_rtx): Likewise.
22517 (new_cselib_val): Adjust. Set and dump uid.
22518 (cselib_lookup_mem): Pass next_uid as hash.
22519 (cselib_subst_to_values): Likewise.
22520 (cselib_log_lookup): Dump uid.
22521 (cselib_lookup): Pass next_uid as hash. Adjust.
22522 (cselib_process_insn): Adjust.
22523 (cselib_init): Initialize next_uid.
22524 (cselib_finish): Adjust.
22525 (dump_cselib_table): Likewise.
22526 * dse.c (canon_address): Dump value uid.
22527 * print-rtl.c (print_rtx): Print value uid.
22528 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
22530 (dv_uid): New function, sort of renamed from...
22531 (dv_htab_hash): ... this, reimplemented in terms of it and...
22532 (dv_uid2hash): ... this. New.
22533 (variable_htab_eq): Drop excess assertions.
22534 (tie_break_pointers): Removed.
22535 (canon_value_cmp): Compare uids.
22536 (variable_post_merge_New_vals): Print uids.
22537 (vt_add_function_parameters): Adjust.
22538 (vt_initialize): Reset table. Adjust.
22540 2010-02-03 Richard Guenther <rguenther@suse.de>
22542 PR tree-optimization/42944
22543 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
22544 (call_may_clobber_ref_p_1): Likewise. Properly handle
22545 malloc and calloc clobbering errno.
22547 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
22549 * doc/invoke.texi: Fix name of sched1 dump.
22551 * opts.c (decode_options): Set flag_tree_switch_conversion
22552 only conditionally on optimize >= 2.
22554 * gcse.c: Assorted comment fixes in pass description.
22556 2010-02-03 Anthony Green <green@moxielogic.com>
22558 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
22559 nop padding in order to maintain alignment of storage location of
22560 target function address.
22561 (moxie_trampoline_init): Store target function address at newly
22563 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
22565 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
22567 2010-02-03 Richard Guenther <rguenther@suse.de>
22569 PR middle-end/42927
22570 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
22572 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22574 * config.gcc: Reenable check for obsolete targets.
22575 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
22576 mips-sgi-irix6.[0-4]*.
22578 2010-02-02 Nick Clifton <nickc@redhat.com>
22580 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
22581 constant size of 4 as being the same as 0.
22582 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
22583 can take values in the range 0..4.
22585 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
22588 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
22589 as _darwin10_Unwind_FindEnclosingFunction().
22590 * libgcc-libsystem.ver: New.
22592 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
22595 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
22596 implicitly set registers.
22598 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
22600 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
22601 (arm_override_options): Allow automatic selection of the thread
22602 pointer register if thumb2.
22603 (legitimize_pic_address): Improve code sequences for Thumb2.
22604 (arm_call_tls_get_addr): Likewise.
22605 (legitimize_tls_address): Likewise.
22606 * arm.md (pic_load_addr_arm): Delete. Replace with ...
22607 (pic_load_addr_32bit): ... this. New named pattern.
22608 * thumb2.md (pic_load_addr_thumb2): Delete.
22609 (pic_load_dot_plus_four): Delete.
22610 (tls_load_dot_plus_four): New named pattern.
22612 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22615 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
22616 Document fix for TLS bug.
22618 2010-01-31 Richard Guenther <rguenther@suse.de>
22620 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
22621 conservatively correct.
22623 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22627 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22629 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
22631 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22633 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
22635 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
22637 * config.gcc: Adjust order of makefile fragments for mingw targets.
22639 2010-01-31 Richard Guenther <rguenther@suse.de>
22641 PR middle-end/42898
22642 * gimplify.c (gimplify_init_constructor): For volatile LHS
22643 initialize a temporary.
22645 2010-01-31 Matthias Klose <doko@ubuntu.com>
22647 * configure.ac: Fix __stack_chk_fail check for cross builds configured
22649 * configure: Regenerate.
22651 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
22653 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
22654 the same alias set and their sizes different constantness.
22655 (aliasing_component_refs_p): Revert 2009-10-24 change.
22657 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22659 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
22662 2010-01-29 Richard Guenther <rguenther@suse.de>
22664 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
22665 Assert we successfully updated the call.
22667 2010-01-29 Jakub Jelinek <jakub@redhat.com>
22669 PR rtl-optimization/42889
22670 * df.h (df_set_bb_dirty_nonlr): New prototype.
22671 * df-core.c (df_set_bb_dirty_nonlr): New function.
22672 * df-scan.c (df_insn_rescan): Call it instead of
22673 df_set_bb_dirty for DEBUG_INSNs.
22675 2010-01-29 Richard Guenther <rguenther@suse.de>
22677 PR middle-end/37448
22678 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
22679 quadratic behavior in most cases.
22681 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
22684 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
22685 in the call to gen_x86_movsicc_0_m1.
22687 2010-01-28 Richard Guenther <rguenther@suse.de>
22689 PR tree-optimization/42871
22690 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
22692 2010-01-28 Richard Guenther <rguenther@suse.de>
22694 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
22695 into call arguments.
22697 2010-01-28 Richard Guenther <rguenther@suse.de>
22699 PR middle-end/42883
22700 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
22701 the forwarder if the destination is an EH landing pad.
22703 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
22705 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
22706 block list passed to gimple_duplicate_sese_tail.
22707 (parallelize_loops): Avoid parallelization when the function
22708 has_nonlocal_label.
22709 Avoid parallelization when the preheader is IRREDUCIBLE.
22710 Try to optimize when estimated_loop_iterations_int is unresolved.
22711 Add the loop's location to the dump file.
22712 * tree-cfg.c (add_phi_args_after_redirect): Remove.
22713 (gimple_duplicate_sese_tail): Remove the check for the latch.
22714 Redirect nexits to the exit block.
22715 Remove handling of the incoming edges to the latch.
22716 Redirect the backedge from the copied latch to the exit bb.
22718 2010-01-28 Michael Matz <matz@suse.de>
22721 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
22722 Wrap force_reg into a sequence, emit it before user.
22724 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
22726 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
22728 (arm_legacy_rev): Likewise.
22729 (thumb_legacy_rev): Likewise.
22731 2010-01-27 Jakub Jelinek <jakub@redhat.com>
22733 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
22734 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
22735 on MEM's address failed, try avoid_constant_pool_reference and
22736 recurse if it returned something different.
22737 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
22738 address, try avoid_constant_pool_reference and recurse if it
22739 returned something different.
22740 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
22741 address and avoid_constant_pool_reference returned something
22742 different, don't set have_address.
22744 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
22747 * var-tracking.c (val_store): Add modified argument, obey it.
22749 (count_uses): Move down logging of main.
22750 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
22751 don't need resolution.
22752 (emit_notes_in_bb): Likewise.
22754 2010-01-27 Richard Guenther <rguenther@suse.de>
22756 PR middle-end/42878
22757 * tree-inline.c (remap_decl): Delay remapping of SSA name
22758 default definitions until we need them.
22760 2010-01-27 Jakub Jelinek <jakub@redhat.com>
22762 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
22763 (rs6000_delegitimize_address): New function.
22765 * config/s390/s390.c (s390_delegitimize_address): Call
22766 delegitimize_mem_from_attrs.
22768 PR middle-end/42874
22769 * tree-inline.c (cannot_copy_type_1): Removed.
22770 (copy_forbidden): Don't forbid copying of functions containing
22771 records/unions with variable length fields.
22773 2010-01-27 Christian Bruel <christian.bruel@st.com>
22777 * config/sh/sh.c (find_barrier): Increase length for non delayed
22778 conditional branches.
22780 2010-01-27 Matthias Klose <doko@ubuntu.com>
22782 * configure.ac (gnu-unique-object): Fix ldd version check.
22783 * configure: Regenerate.
22785 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22787 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
22789 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
22790 Test for HAVE_GNU_AS value.
22792 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22794 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
22795 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
22796 INT64_TYPE): Define.
22797 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
22798 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22799 INT_LEAST64_TYPE): Define.
22800 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
22801 UINT_LEAST64_TYPE): Define.
22802 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
22803 INT_FAST64_TYPE): Define.
22804 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22805 UINT_FAST64_TYPE): Define.
22806 (INTMAX_TYPE, UINTMAX_TYPE): Define.
22807 (INTPTR_TYPE, UINTPTR_TYPE): Define.
22808 (SIG_ATOMIC_TYPE): Define.
22810 2010-01-26 Richard Guenther <rguenther@suse.de>
22812 * df-scan.c (df_scan_set_bb_info): Remove assert.
22813 (df_insn_rescan_debug_internal): Merge asserts.
22814 (df_install_ref): Likewise.
22815 (df_mark_reg): Use bitmap_set_range.
22816 (df_hard_reg_used_p): Remove assert.
22817 (df_hard_reg_used_count): Likewise.
22819 2010-01-26 Richard Guenther <rguenther@suse.de>
22821 PR rtl-optimization/42685
22822 * web.c (web_main): Ignore DEBUG_INSNs.
22824 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
22826 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
22828 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
22829 Fix types of fndecl and arglist parameters.
22831 2010-01-26 Richard Guenther <rguenther@suse.de>
22833 PR middle-end/42806
22834 * tree-eh.c (unsplit_eh): Skip debug insns.
22836 2010-01-26 Richard Guenther <rguenther@suse.de>
22838 PR tree-optimization/42250
22839 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
22841 2010-01-26 Jakub Jelinek <jakub@redhat.com>
22844 * omp-low.c (expand_omp_sections): Only use single_pred if
22845 l2_bb is single_pred_p.
22847 2010-01-25 Christian Bruel <christian.bruel@st.com>
22850 * config/sh/sh.c (find_barrier): Increase length for non delayed
22851 conditional branches.
22852 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
22854 2010-01-24 David S. Miller <davem@davemloft.net>
22856 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
22857 define if not using GAS.
22858 * config/sparc/sparc.c (sparc_elf_asm_named_section):
22859 Likewise. Delete SECTION_MERGE code, which is only applicable
22862 2010-01-24 Mark Mitchell <mark@codesourcery.com>
22865 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
22866 mangling of va_list in system headers.
22868 2010-01-23 Toon Moene <toon@moene.org>
22870 * tree-predcom.c (combine_chains): Return NULL, not false.
22872 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
22874 * tree-loop-distribution.c (distribute_loop): Fix declaration and
22875 initialization of variable res to agree with return type.
22877 2010-01-22 Steve Ellcey <sje@cup.hp.com>
22879 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
22880 * tree-sra.c: Add include of expr.h.
22882 2010-01-22 Jakub Jelinek <jakub@redhat.com>
22884 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
22885 insert the debug stmt on the single non-EH edge from the stmt.
22887 2010-01-22 Richard Henderson <rth@redhat.com>
22890 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
22891 the RHS until after generate_subtree_copies has insertted its
22892 code before the current statement.
22894 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
22896 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
22898 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
22900 2010-01-21 Martin Jambor <mjambor@suse.cz>
22902 PR tree-optimization/42585
22903 * tree-sra.c (struct access): New field grp_total_scalarization.
22904 (dump_access): Dump the new field.
22905 (should_scalarize_away_bitmap): New variable.
22906 (cannot_scalarize_away_bitmap): Likewise.
22907 (sra_initialize): Allocate new bitmaps.
22908 (sra_deinitialize): Free new bitmaps.
22909 (create_access_1): New function.
22910 (create_access): Parts moved to create_access_1.
22911 (type_consists_of_records_p): New function.
22912 (completely_scalarize_record): Likewise.
22913 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
22914 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
22915 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
22917 (analyze_all_variable_accesses): Completely scalarize small eligible
22920 2010-01-21 Martin Jambor <mjambor@suse.cz>
22922 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
22924 2010-01-21 Andrew Haley <aph@redhat.com>
22926 * gcc.c (process_command): Move lang_specific_driver before
22927 setting cc_libexec_prefix.
22929 2010-01-21 Richard Guenther <rguenther@suse.de>
22931 PR middle-end/19988
22932 * fold-const.c (negate_expr_p): Pretend only negative
22933 real constants are easily negatable.
22935 2010-01-20 Janis Johnson <janis187@us.ibm.com>
22936 Jason Merrill <jason@redhat.com>
22938 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
22939 (TYPE_TRANSPARENT_AGGR): this, for union and record.
22940 * calls.c (initialize argument_information): Handle it.
22941 * c-common.c (handle_transparent_union_attribute): Use new name.
22942 * c-decl.c (finish_struct): Ditto.
22943 * c-typeck.c (type_lists_compatible_p): Ditto.
22944 (convert_for_assignment): Use new name and also handle record.
22945 * function.c (aggregate_value_p): Handle it.
22946 (pass_by_reference): Ditto.
22947 (assign_parm_data_types): Ditto.
22948 * print-tree.c (print_node): Ditto.
22949 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
22950 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
22951 * tree.c (first_field): New fn.
22953 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
22956 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
22957 even when linking statically, for now.
22959 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
22962 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
22963 without a cselib val.
22964 (count_uses): Accept MO_VAL_SET with no val on stores.
22965 (add_stores): Likewise.
22967 2010-01-20 Jakub Jelinek <jakub@redhat.com>
22969 * var-tracking.c (check_value_val): Add a compile time assertion.
22970 (dv_is_decl_p): Simplify.
22971 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
22972 gcc_assert if ENABLE_CHECKING.
22974 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
22977 * var-tracking.c: Include tree-flow.h.
22978 (mem_dies_at_call): New.
22979 (dataflow_set_preserve_mem_locs): Use it.
22980 (dataflow_set_remove_mem_locs): Likewise.
22981 (dump_var): Renamed from dump_variable. Adjust all callers.
22982 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
22983 * Makefile.in (var-tracking.o): Adjust deps.
22985 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
22987 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
22989 2010-01-20 Richard Guenther <rguenther@suse.de>
22991 PR tree-optimization/42717
22992 * tree-ssa-dce.c (get_live_post_dom): Remove.
22993 (forward_edge_to_pdom): Take an arbitrary edge to copy
22994 degenerate PHI args from.
22995 (remove_dead_stmt): Use the first post-dominator even if it
22996 does not contain live statements as redirection destination.
22998 2010-01-20 Richard Guenther <rguenther@suse.de>
23000 * tree-inline.c (estimate_num_insns): Handle EH builtins.
23002 2010-01-20 Jakub Jelinek <jakub@redhat.com>
23004 * sel-sched.c (create_speculation_check): Remove set but not used
23006 (try_transformation_cache): Remove set but not used variable ds.
23007 (calculate_privileged_insns): Remove set but not used variables
23008 cur_insn and min_spec_insn.
23009 (find_best_expr): Remove set but not used variable avail_n.
23010 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
23012 * cgraphunit.c (assemble_thunk): Remove set but not used variable
23014 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
23015 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
23016 new_scop_exit_edge.
23018 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
23021 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
23022 cpu types. Add support for *-sse3 cpu types.
23023 (x86_64-*-*): Ditto.
23025 2010-01-20 Jakub Jelinek <jakub@redhat.com>
23027 PR middle-end/42803
23028 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
23029 argument, call initializer_constant_valid_p_1 instead of
23030 initializer_constant_valid_p, pass CACHE to it, return NULL
23031 immediately if first call returns NULL.
23032 (initializer_constant_valid_p_1): New function.
23033 (initializer_constant_valid_p): Use it.
23035 2010-01-20 Thomas Quinot <quinot@adacore.com>
23037 * tree.def (PLACEHOLDER_EXPR): Fix comment.
23039 2010-01-20 Jakub Jelinek <jakub@redhat.com>
23041 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
23042 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
23043 (loc_list_from_tree): Don't handle unsigned division. Handle
23044 signed modulo using DW_OP_{over,over,div,mul,minus}.
23045 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
23046 modulo instead of signed.
23048 2010-01-20 DJ Delorie <dj@redhat.com>
23050 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
23052 (h8300_emit_stack_adjustment): Propogate it.
23054 (h8300_expand_prologue): Likewise.
23055 (h8300_expand_epilogue): Likewise.
23057 2010-01-19 Michael Matz <matz@suse.de>
23059 PR tree-optimization/41783
23060 * tree-data-ref.c (toplevel): Include flags.h.
23061 (dump_data_dependence_relation): Also dump the inputs if the
23062 result will be unknown.
23063 (split_constant_offset_1): Look through some conversions.
23064 * tree-predcom.c (determine_roots_comp): Restart a new chain if
23065 the offset from last element is too large.
23066 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
23067 (reassociate_to_the_same_stmt): Handle vector registers.
23068 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
23069 (e.g. conversions).
23070 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
23071 wide_prolog_niters argument, emit widening instructions.
23072 (vect_do_peeling_for_alignment): Adjust caller, use widened
23073 variant of the iteration cound.
23074 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
23076 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23079 * config/arm/neon-testgen.m (emit_automatics): New parameter
23080 features. Adjust for Fixed_return_reg feature.
23081 (test_intrinsic): Call emit_automatics with new feature.
23082 * config/arm/neon.ml: Update copyright years.
23083 (features): New Fixed_return_reg feature.
23084 (ops): Update feature for Vget_low.
23086 2010-01-19 Jakub Jelinek <jakub@redhat.com>
23088 PR tree-optimization/42719
23089 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
23093 * fwprop.c (all_uses_available_at): Return false if def_set dest
23094 is a REG that is used in def_insn.
23096 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
23098 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
23100 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
23101 Add argument names.
23103 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
23105 * target.h (struct gcc_target) <secondary_reload>: Change type
23106 of last argument to secondary_reload_info *.
23108 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
23111 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
23112 memory references with unaligned offsets. Remove CQImode handling.
23113 (unaligned_memory_operand): Return 1 for memory references with
23114 unaligned offsets. Remove CQImode handling.
23116 2010-01-18 Richard Guenther <rguenther@suse.de>
23118 PR middle-end/39954
23119 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
23122 2010-01-18 Richard Guenther <rguenther@suse.de>
23124 PR tree-optimization/42781
23125 * tree-ssa-structalias.c (find_what_var_points_to): Skip
23126 restrict processing only if the original variable was artificial.
23128 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
23130 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
23131 find number of popped argument bytes.
23133 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
23134 Fix the text that describes the return value for invalid insns.
23136 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
23138 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
23139 Clarify what 'cost of the -dependence' is. Fix quoting.
23141 * toplev.c (default_get_pch_validity): Rename argument to "sz".
23142 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
23144 2010-01-17 Jakub Jelinek <jakub@redhat.com>
23146 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
23147 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
23149 2010-01-17 Richard Guenther <rguenther@suse.de>
23151 PR middle-end/42248
23152 * function.c (split_complex_args): Take a VEC to modify.
23153 (assign_parms_augmented_arg_list): Build a VEC instead of
23154 a chain of PARM_DECLs.
23155 (assign_parms_unsplit_complex): Take a VEC of arguments.
23156 Do not fixup unmodified parms.
23157 (assign_parms): Deal with the VEC.
23158 (gimplify_parameters): Likewise.
23160 2010-01-17 Richard Guenther <rguenther@suse.de>
23162 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
23163 node existence check.
23164 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
23165 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
23166 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
23167 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
23168 (gimple_execute_on_growing_pred): Likewise.
23170 2010-01-17 Richard Guenther <rguenther@suse.de>
23172 PR tree-optimization/42773
23173 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
23174 (compute_antic_aux): Likewise.
23175 (compute_partial_antic_aux): Likewise.
23177 2010-01-17 Jie Zhang <jie.zhang@analog.com>
23180 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
23183 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
23185 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
23188 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
23189 Fix markup for strict argument.
23191 (TARGET_SCHED_REORDER2): Fix argument types.
23193 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
23194 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
23196 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
23197 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
23199 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
23202 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
23203 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
23204 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
23205 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
23206 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
23208 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
23210 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
23212 (TARGET_ASM_RELOC_RW_MASK): Add return type.
23213 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
23215 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
23217 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
23220 (TARGET_ASM_NAMED_SECTION): Fix argument list.
23222 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
23223 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
23225 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
23227 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
23229 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
23230 referring to it. Fix language.
23232 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
23234 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
23236 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
23238 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
23240 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
23241 '@var{stream}. Remove stray 'and'.
23243 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
23245 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
23247 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
23249 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
23250 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
23252 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
23253 Fix description of return value.
23254 Rename argument "sz" to "len."
23256 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
23257 Clarify meaning of 'true' return value.
23259 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
23261 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
23262 rep_mode versus mode_rep.
23264 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
23266 (TARGET_BUILTIN_DECL): Fix name.
23268 (TARGET_COMMUTATIVE_P): Fix type of first argument.
23270 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
23272 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
23274 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
23276 (TARGET_RELAXED_ORDERING): Use @deftypevr.
23278 (TARGET_GET_DRAP_RTX): Note that this is a hook.
23281 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
23282 Rename argument tm_fn to md_fn.
23284 (TARGET_OPTION_PRINT): Fix argument list.
23286 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
23289 * config/i386/i386.c (ix86_fixup_binary_operands):
23290 Revert FMA4 fixup of operands.
23292 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23295 * Makefile.in (write_entries_to_file, install-plugin):
23296 Use \012 instead of \n with tr.
23298 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
23300 * configure.ac (HAVE_AS_REF): New C macro.
23301 * configure: Regenerate.
23302 * config.in: Likewise.
23303 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
23305 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
23308 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
23310 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
23312 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
23314 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
23316 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
23318 (TARGET_IN_SMALL_DATA_P): Fix argument type.
23320 (TARGET_BINDS_LOCAL_P): Fix argument type.
23322 (TARGET_ASM_FILE_END): Use prototype.
23324 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
23326 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
23328 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
23330 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
23332 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
23333 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
23335 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
23336 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
23338 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
23339 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
23340 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
23341 (TARGET_ADDR_SPACE_CONVERT): Likewise.
23343 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
23345 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
23347 (TARGET_INIT_BUILTINS): Use prototype.
23349 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
23350 Put 'const char *' in braces. Fix parameter types.
23351 (TARGET_INVALID_CONVERSION): Fix parameter types.
23352 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
23353 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
23355 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
23358 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
23360 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
23362 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
23364 * doc/tm.texi (TARGET_HELP): Fix return type.
23366 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
23367 in braces. Fix argument types.
23369 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
23371 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
23373 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
23375 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
23376 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
23378 (TARGET_MANGLE_TYPE): Fix argument types.
23380 (TARGET_IRA_COVER_CLASSES): Use prototype.
23382 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
23384 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
23386 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
23388 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
23390 (TARGET_CALLEE_COPIES): Fix argument types.
23392 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
23394 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
23396 (TARGET_FUNCTION_VALUE): Fix argument types.
23398 (TARGET_RETURN_IN_MSB): Fix argument type.
23400 (TARGET_RETURN_IN_MEMORY): Fix argument types.
23402 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
23404 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
23406 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
23407 agree with return type.
23409 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
23411 2010-01-15 Jing Yu <jingyu@google.com>
23413 PR rtl-optimization/42691
23414 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
23415 a pseudo to a constant and are merged, and adjust comments.
23417 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
23419 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
23421 2010-01-15 Richard Guenther <rguenther@suse.de>
23423 PR middle-end/42739
23424 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
23425 labels of computed or non-local gotos to the destination.
23426 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
23427 landing pad label is the first label.
23429 2010-01-15 Richard Guenther <rguenther@suse.de>
23431 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
23433 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
23436 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
23437 to allow generation of the xssqrtdp instruction on power7.
23438 (sqrtdf2_fpr): Ditto.
23440 2010-01-14 Jakub Jelinek <jakub@redhat.com>
23442 PR middle-end/42674
23443 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
23444 functions with noreturn attribute.
23447 * varasm.c (declare_weak): Add weak attribute to decl if it
23448 doesn't have one already.
23449 (assemble_external): Only add decls to weak_decls if they also
23450 have weak attribute.
23452 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
23454 * var-tracking.c (var_reg_delete): Don't delete the association
23455 between REGs and values or one-part variables if the register
23458 2010-01-14 Jakub Jelinek <jakub@redhat.com>
23461 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
23462 because its first operand is a non-localized variable.
23464 2010-01-14 Martin Jambor <mjambor@suse.cz>
23466 PR tree-optimization/42706
23467 * tree-sra.c (encountered_recursive_call): New variable.
23468 (encountered_unchangable_recursive_call): Likewise.
23469 (sra_initialize): Initialize both new variables.
23470 (callsite_has_enough_arguments_p): New function.
23471 (scan_function): Call decl and flags check only for IPA-SRA, check
23472 whether there is a recursive call and whether it has enough arguments.
23473 (all_callers_have_enough_arguments_p): New function.
23474 (convert_callers): Look for recursive calls only when
23475 encountered_recursive_call is set.
23476 (ipa_early_sra): Bail out either if
23477 !all_callers_have_enough_arguments_p or
23478 encountered_unchangable_recursive_call.
23480 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
23482 * sel-sched.c: Add 2010 to copyright years.
23483 * sel-sched-ir.c: Likewise.
23484 * sel-sched-ir.h: Likewise.
23486 2010-01-14 Martin Jambor <mjambor@suse.cz>
23488 PR tree-optimization/42714
23489 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
23490 constructors specially.
23492 2010-01-14 Andi Kleen <ak@linux.intel.com>
23494 * config/i386/drivers-i386.c (detect_caches_intel):
23495 Add l2sizekb parameter and fill in.
23496 (host_detect_local_cpu): Add l2sizekb, fill in.
23497 Add Atom small cache heuristic.
23499 2010-01-14 Andi Kleen <ak@linux.intel.com>
23501 * config/i386/drivers-i386.c (detect_caches_cpuid4):
23502 Add level3 parameter and fill in.
23503 (detect_caches_intel): Handle level3 cache.
23505 2010-01-14 Andi Kleen <ak@linux.intel.com>
23507 * config/i386/drivers-i386.c (host_detect_local_cpu):
23508 Fix core duo detection.
23510 2010-01-14 Andi Kleen <ak@linux.intel.com>
23512 * config/i386/drivers-i386.c (host_detect_local_cpu):
23513 Fix Atom detection.
23515 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
23517 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
23518 (rs6000_variable_issue_1): this. Use...
23519 (rs6000_variable_issue): here. Reimplement. Print debug info.
23521 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
23523 * sel-sched-ir.c (sel_restore_other_notes): Rename to
23524 sel_restore_notes. Update all callers. Call reemit_notes
23527 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
23529 PR rtl-optimization/42246
23530 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
23533 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
23535 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
23536 all successors is the same as number of successors in current region.
23538 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
23540 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
23541 to rename is not separable. Otherwise check that its LHS is not NULL.
23543 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
23545 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
23547 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
23549 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
23550 available registers when failed to discover LHS register class.
23551 Fix indentation. Update comment.
23553 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
23554 Alexander Monakov <amonakov@ispras.ru>
23556 PR rtl-optimization/42389
23557 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
23559 (advance_state_on_fence): Likewise.
23560 (sel_target_adjust_priority): Print debug output only when
23561 sched_verbose >= 4, not 2.
23562 (get_expr_cost): Do not issue all unique insns on the next cycle.
23563 (fill_insns): Initialize can_issue_more from the value saved
23565 * sel-sched-ir.c (flist_add): New parameter issue_more.
23566 Init FENCE_ISSUE_MORE with it.
23567 (merge_fences): Likewise.
23568 (init_fences): Update call to flist_add.
23569 (add_to_fences, add_clean_fence_to_fences)
23570 (add_dirty_fence_to_fences): Likewise.
23571 (move_fence_to_fences): Update call to merge_fences.
23572 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
23574 * sel-sched-ir.h (struct _fence): New field issue_more.
23575 (FENCE_ISSUE_MORE): New accessor macro.
23577 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
23579 PR rtl-optimization/42388
23580 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
23581 that have no predecessors nor successors. Do not call move_bb_info
23582 for empty blocks outside of current region.
23584 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
23586 PR rtl-optimization/42294
23587 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
23588 * sel-sched.c (move_exprs_to_boundary): Transitively add all
23589 originators' originators.
23591 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
23593 PR rtl-optimization/39453
23594 PR rtl-optimization/42246
23595 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
23597 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
23599 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
23600 Alexander Monakov <amonakov@ispras.ru>
23602 PR middle-end/42245
23603 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
23604 (maybe_tidy_empty_bb): ... here. Make static. Add new
23605 argument. Update all callers.
23606 (tidy_control_flow): ... and here. Recompute topological order
23607 of basic blocks in region if necessary.
23608 (sel_redirect_edge_and_branch): Change return type. Return true
23609 if topological order might have been invalidated.
23610 (purge_empty_blocks): Export and move from...
23611 * sel-sched.c (purge_empty_blocks): ... here.
23612 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
23613 (maybe_tidy_empty_bb): Delete prototype.
23614 (purge_empty_blocks): Declare.
23616 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
23618 PR rtl-optimization/42249
23619 * sel-sched.c (try_replace_dest_reg): When chosen register
23620 and original register is the same, do not bail out early, but
23621 still check all original insns for validity of replacing destination
23622 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
23625 2010-01-14 Jakub Jelinek <jakub@redhat.com>
23628 Port from no-undefined-overflow branch:
23629 2009-03-09 Richard Guenther <rguenther@suse.de>
23631 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
23633 2010-01-14 Richard Guenther <rguenther@suse.de>
23636 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
23638 2010-01-14 Ira Rosen <irar@il.ibm.com>
23640 PR tree-optimization/42709
23641 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
23642 as scalar type in creation of constant vector operand.
23644 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23647 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
23648 (check-parallel-%): Match `testsuite' directory component only
23651 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
23653 PR translation/39521
23654 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
23657 2010-01-13 Richard Guenther <rguenther@suse.de>
23659 PR tree-optimization/42730
23660 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
23663 2010-01-13 Steve Ellcey <sje@cup.hp.com>
23666 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
23667 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
23670 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
23672 * config/bfin/libgcc-bfin.ver: Regenerate based on current
23673 libgcc-std.ver. Add entries for ___smulsi3_highpart and
23674 ___umulsi3_highpart.
23676 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
23677 rather than schedule_insns if the pass is enabled.
23679 2010-01-13 Martin Jambor <mjambor@suse.cz>
23681 PR tree-optimization/42704
23682 * tree-sra.c (sra_modify_assign): Do not delete assignments to
23685 2010-01-13 Martin Jambor <mjambor@suse.cz>
23687 PR tree-optimization/42703
23688 * tree-sra.c (analyze_access_subtree): Check that we can build a
23689 reference to the original data within the aggregate.
23691 2010-01-13 Richard Guenther <rguenther@suse.de>
23693 PR tree-optimization/42705
23694 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
23696 2010-01-13 Richard Guenther <rguenther@suse.de>
23698 PR middle-end/42716
23699 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
23701 2010-01-13 Jakub Jelinek <jakub@redhat.com>
23704 * var-tracking.c (values_to_unmark): New variable.
23705 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
23706 values_to_unmark vector. Moved body to...
23707 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
23708 instead queue it into values_to_unmark vector.
23709 (vt_find_locations): Free values_to_unmark vector.
23711 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
23713 * config/s390/s390.c (override_options): Set
23714 default of max-pending-list-length to 256
23716 2010-01-13 Richard Guenther <rguenther@suse.de>
23719 * tree-pass.h (PROP_gimple_lcx): New.
23720 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
23721 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
23722 before the final cleanup_eh.
23723 (dump_properties): Dump PROP_gimple_lcx.
23724 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
23725 (tree_lower_complex_O0): Remove.
23726 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
23727 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
23728 tree_lower_complex, schedule TODO_update_ssa.
23729 * lto-streamer-out.c (output_function): Stream the functions
23731 * lto-streamer-in.c (input_function): Likewise.
23732 (lto_read_body): Do not override them here.
23734 2010-01-12 Joseph Myers <joseph@codesourcery.com>
23737 * c-typeck.c (build_c_cast): Fold value cast to union type before
23738 wrapping it in a CONSTRUCTOR.
23740 2010-01-12 Jakub Jelinek <jakub@redhat.com>
23742 PR rtl-optimization/42699
23743 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
23746 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23748 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
23749 SUBTARGET_WARN_UNUSED_SPEC): Move ...
23750 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
23751 SUBTARGET_WARN_UNUSED_SPEC): ... here
23752 * config/mips/iris5.h (LIBGCC_SPEC): Define.
23754 2010-01-12 Julian Brown <julian@codesourcery.com>
23756 * config/arm/neon-schedgen.ml (Utils): Don't try to
23757 open missing module.
23758 (find_with_result): New.
23760 2010-01-12 Jakub Jelinek <jakub@redhat.com>
23763 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
23764 sharing when canonicalizing ({lt,ge}u (plus a b) b).
23766 PR tree-optimization/42645
23767 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
23768 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
23769 decl_map, set processing_debug_stmt to -1 and return name without
23772 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
23774 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
23775 binutils version, and reword target configuration description.
23777 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
23779 * config/avr/avr.h (LINKER_NAME): Remove.
23781 2010-01-11 Janis Johnson <janis187@us.ibm.com>
23784 * config/rs6000/rs6000.c (rs6000_override_options): On targets
23785 that support VSX, warn for -mno-altivec if vsx is not disabled,
23788 2010-01-11 Joseph Myers <joseph@codesourcery.com>
23789 Shujing Zhao <pearly.zhao@oracle.com>
23791 PR translation/42469
23792 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
23793 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
23794 character between option name and help text.
23795 * c.opt (imultilib): Likewise.
23797 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
23799 * lto-streamer-out.c (output_unreferenced_globals): Output static
23802 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
23804 PR rtl-optimization/42621
23805 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
23806 optimizing for size.
23807 (duplicate_computed_gotos): Remove now-redundant check.
23809 2010-01-10 Steve Ellcey <sje@cup.hp.com>
23812 * configure.ac: Save and restore LDFLAGS and LIBS
23813 * configure: Regenerate.
23815 2010-01-10 Richard Guenther <rguenther@suse.de>
23817 PR middle-end/42667
23818 * builtins.c (fold_builtin_strlen): Add type argument and
23819 convert the resulting length to it.
23820 (fold_builtin_1): Adjust.
23822 2010-01-09 Jakub Jelinek <jakub@redhat.com>
23824 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
23825 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
23827 (num_insns_constant_wide): Adjust for that change.
23829 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23832 * web.c (union_defs): Add used argument, to combine uses of
23833 uninitialized regs.
23834 (entry_register): Adjust type and tests of used argument.
23835 (web_main): Widen used for new use. Pass it to union_defs.
23836 * df.h (union_defs): Adjust prototype.
23838 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23841 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
23842 uses in new incoming argument. Free body.
23843 (reset_debug_uses_in_loop): New.
23844 (analyze_insn_to_expand_var): Call the latter if the former found
23845 anything. Fix whitespace. Reject invalid dest overlaps before
23846 going through all insns in the loop.
23848 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23851 * haifa-sched.c (dying_use_p): Debug insns don't count.
23853 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23855 PR middle-end/42363
23856 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
23857 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
23858 (verify_gimple_call): Reject LHS in noreturn calls.
23860 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23864 * tree-vect-loop-manip.c (adjust_info): New type.
23865 (adjust_vec): New pointer to vector.
23866 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
23867 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
23868 (slpeel_update_phis_for_duplicate_loop): Use them.
23869 (slpeel_update_phi_nodes_for_guard1): Likewise.
23870 (slpeel_update_phi_nodes_for_guard2): Likewise.
23871 (slpeel_tree_peel_loop_to_edge): Likewise.
23872 (vect_update_ivs_after_vectorizer): Likewise.
23874 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23876 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
23877 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
23879 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23881 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
23882 bogus uninitialized warning.
23884 2010-01-09 Richard Guenther <rguenther@suse.de>
23886 PR middle-end/42512
23887 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
23888 the evolution is compatible with the initial condition.
23890 2010-01-09 Jakub Jelinek <jakub@redhat.com>
23892 * gcc.c (process_command): Update copyright notice dates.
23893 * gcov.c (print_version): Likewise.
23894 * gcov-dump.c (print_version): Likewise.
23895 * mips-tfile.c (main): Likewise.
23896 * mips-tdump.c (main): Likewise.
23898 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
23901 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
23903 (rotlhi3_8): Delete.
23905 (rotlsi3_8): Delete.
23906 (rotlsi3_16): Delete.
23907 (rotlsi3_24): Delete.
23908 (rotl<mode>3): New.
23909 (*rotw<mode>3): New.
23910 (*rotb<mode>3): New.
23911 * config/avr/avr.c (avr_rotate_bytes): New function.
23912 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
23914 2010-01-08 Steve Ellcey <sje@cup.hp.com>
23917 * configure.ac: Modify -rdynamic check.
23918 * configure: Regenerate.
23920 2010-01-08 DJ Delorie <dj@redhat.com>
23922 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
23923 register popping order.
23925 2010-01-08 Richard Guenther <rguenther@suse.de>
23928 * c.opt (fsigned-char): Also let LTO handle this option.
23929 (funsigned-char): Likewise.
23931 2010-01-07 Richard Guenther <rguenther@suse.de>
23933 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
23934 (gimple_op): Likewise.
23935 (gimple_op_ptr): Likewise.
23936 (gimple_assign_set_lhs): Remove gcc_assert.
23937 (gimple_assign_set_rhs1): Likewise.
23938 (gimple_assign_set_rhs2): Likewise.
23939 (gimple_call_set_lhs): Likewise.
23940 (gimple_call_set_fn): Likewise.
23941 (gimple_call_set_fndecl): Likewise.
23942 (gimple_call_fndecl): Likewise.
23943 (gimple_call_return_type): Likewise.
23944 (gimple_call_set_chain): Likewise.
23945 (gimple_call_num_args): Likewise.
23946 (gimple_call_set_arg): Likewise.
23947 (gimple_cond_set_code): Likewise.
23948 (gimple_cond_set_lhs): Likewise.
23949 (gimple_cond_set_rhs): Likewise.
23950 (gimple_cond_set_true_label): Likewise.
23951 (gimple_cond_set_false_label): Likewise.
23952 (gimple_label_set_label): Likewise.
23953 (gimple_goto_set_dest): Likewise.
23954 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
23955 (gimple_debug_bind_get_value): Likewise.
23956 (gimple_debug_bind_get_value_ptr): Likewise.
23957 (gimple_debug_bind_set_var): Likewise.
23958 (gimple_debug_bind_set_value): Likewise.
23959 (gimple_debug_bind_reset_value): Likewise.
23960 (gimple_debug_bind_has_value_p): Likewise.
23961 (gimple_return_retval_ptr): Remove gcc_assert.
23962 (gimple_return_retval): Likewise.
23963 (gimple_return_set_retval): Likewise.
23964 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
23965 (safe_referenced_var_iterator): Remove.
23966 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
23967 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
23968 (fill_referenced_var_vec): Remove.
23969 (first_readonly_imm_use): Remove redundant gcc_assert.
23970 (phi_arg_index_from_use): Combine gcc_asserts.
23971 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
23972 (first_imm_use_stmt): Remove redundant gcc_assert.
23973 * tree-cfg.c (verify_gimple_call): Verify function and chain
23974 operands. Verify arguments.
23975 (verify_types_in_gimple_stmt): Verify condition code and labels.
23977 2010-01-07 Richard Guenther <rguenther@suse.de>
23979 PR tree-optimization/42641
23980 * sese.c (rename_map_elt_info): Use the SSA name version, do
23983 2010-01-07 Jakub Jelinek <jakub@redhat.com>
23985 PR tree-optimization/42625
23986 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
23987 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
23989 2010-01-07 Duncan Sands <baldrick@free.fr>
23991 * Makefile.in (PLUGIN_HEADERS): Add version.h.
23993 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
23996 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
23997 note itself is not function_invariant_p.
23999 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
24001 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
24002 Do not add the DF_NOTE problem.
24003 * store-motion.c (execute_rtl_store_motion): Likewise.
24005 2010-01-07 Martin Jambor <mjambor@suse.cz>
24007 PR tree-optimization/42157
24008 * tree-sra.c (compare_access_positions): Stabilize sort if both
24009 accesses have integer types, return zero immediately if they are the
24012 2010-01-06 Richard Henderson <rth@redhat.com>
24014 PR middle-end/41883
24015 * haifa-sched.c (add_to_note_list): Merge into ...
24016 (concat_note_lists): ... here, and ...
24017 (unlink_other_notes, rm_other_notes): Merge into...
24018 (remove_notes): ... here. Create REG_SAVE_NOTEs for
24019 NOTE_INSN_EPILOGUE_BEG.
24021 2010-01-06 Richard Guenther <rguenther@suse.de>
24023 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
24024 not inline regular functions into always-inline functions.
24026 2010-01-06 Nick Clifton <nickc@redhat.com>
24028 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
24029 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
24031 (OVERRIDE_OPTIONS): Delete.
24032 (OPTIMIZATION_OPTIONS): Define.
24033 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
24034 * config/rx/rx.c (rx_handle_option): Issue an error message if
24035 -mcpu=rx200 and -fpu are used together.
24036 (rx_set_optimization_options): New function. Issue an error
24037 message if an optimization attribute attempts to reset the FPU/
24038 math optimization pairing.
24039 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
24040 * config/rx/rx.opt: Set the default to 32-bit doubles.
24041 * config/rx/t-rx: Add multilibs for -nofpu option.
24042 * doc/invoke.texi: Update documentation of RX options.
24044 2010-01-06 Richard Guenther <rguenther@suse.de>
24046 * tree-ssa-pre.c (name_to_id): New global.
24047 (alloc_expression_id): Simplify SSA name handling.
24048 (lookup_expression_id): Likewise.
24049 (init_pre): Zero name_to_id.
24050 (fini_pre): Free it.
24052 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
24054 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
24056 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
24059 * config/i386/sse.md (smaxv2di3): New.
24060 (umaxv2di3): Likewise.
24061 (sminv2di3): Likewise.
24062 (uminv2di3): Likewise.
24064 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
24067 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
24068 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
24069 (legitimize_tls_address): Likewise.
24070 (sparc_tls_referenced_p): Likewise.
24071 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
24072 and adjust calls to legitimize_pic_address.
24073 (legitimate_constant_p) Use sparc_tls_referenced_p.
24074 (legitimate_pic_operand_p): Likewise.
24075 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
24076 (sparc_tls_symbol_ref_1): Delete.
24077 (sparc_tls_referenced_p): Make static, recognize specific patterns.
24078 (legitimize_tls_address): Make static, handle CONST patterns.
24079 (legitimize_pic_address): Make static, remove unused parameter and
24080 adjust recursive calls.
24081 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
24082 and adjust call to legitimize_pic_address.
24083 (sparc_output_mi_thunk): Likewise.
24085 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
24086 H.J. Lu <hongjiu.lu@intel.com>
24089 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
24090 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
24091 operands to make them signed.
24094 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
24097 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
24098 GTU to GT for V4SI and V2DI.
24100 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
24101 (umin<mode>3): Removed.
24103 (uminv4si3): Likewise.
24105 2010-01-05 Martin Jambor <mjambor@suse.cz>
24107 PR tree-optimization/42462
24108 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
24109 current_function_decl to helper functions and macros.
24111 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24114 * flags.h: Don't include real.h.
24115 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
24116 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
24117 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
24118 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
24119 * dominance.c: Update copyright.
24120 * gimple.c (walk_gimple_op): Remove inline.
24121 * tree-ssa-reassoc.c: Include real.h.
24122 * Makefile.in (FLAGS_H): Remove $(REAL_H).
24123 (tree-ssa-reassoc.o): Depend on $(REAL_H).
24125 2010-01-05 Nick Clifton <nickc@redhat.com>
24127 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
24128 register to push into the stack frame when the accumulator has to
24129 be saved during interrupts.
24131 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
24133 * doc/invoke.texi: Remove the documentation about option
24134 -Wunreachable-code.
24135 * common.opt (Wunreachable-code): Preserved for backward
24137 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
24138 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
24139 the backward compatibility flag section.
24141 2010-01-05 Richard Guenther <rguenther@suse.de>
24143 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
24145 2010-01-05 Jakub Jelinek <jakub@redhat.com>
24148 * cfgexpand.c (expand_one_var): Diagnose too large variables.
24150 PR tree-optimization/42508
24151 * tree-sra.c (convert_callers): Check for recursive call
24152 by comparing cgraph nodes instead of decls.
24153 (modify_function): Call ipa_modify_formal_parameters also
24154 on all same_body aliases.
24156 * cgraphunit.c (cgraph_materialize_all_clones): Compare
24157 cgraph nodes when checking for same_body aliases.
24159 2010-01-05 Richard Guenther <rguenther@suse.de>
24161 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
24162 allocation and lookup.
24163 (get_or_alloc_expr_for_constant): Likewise.
24164 (phi_translate): Sink allocation.
24166 2010-01-04 Richard Guenther <rguenther@suse.de>
24168 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
24169 a new entry only if needed.
24170 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
24171 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
24173 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
24175 (phi_translate): Handle CONSTANTs early.
24177 2010-01-04 Martin Jambor <mjambor@suse.cz>
24179 PR tree-optimization/42398
24180 * tree-sra.c (struct access): Removed flag grp_different_types.
24181 (dump_access): Do not dump the removed flag.
24182 (sort_and_splice_var_accesses): Do not set the removed flag.
24183 (sra_modify_expr): Check for type compatibility directly.
24185 2010-01-04 Martin Jambor <mjambor@suse.cz>
24187 PR tree-optimization/42366
24188 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
24189 edges with variable number of parameters.
24190 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
24191 flag instead of asserting it.
24192 (ipa_read_node_info): Read uses_analysis_done flag.
24194 2010-01-04 Richard Guenther <rguenther@suse.de>
24196 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
24197 iterative_hash_* as intended.
24198 (vn_reference_compute_hash): Likewise. Simplify hashing
24200 (vn_reference_lookup_2): Likewise.
24201 (vn_nary_op_compute_hash): Likewise.
24202 (vn_phi_compute_hash): Likewise.
24203 (expressions_equal_p): Remove strange code.
24204 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
24205 (pre_expr_hash): Likewise. Simplify hashing SSA names.
24206 (bitmap_insert_into_set_1): Take value-id as parameter.
24207 (add_to_value): Pass it.
24208 (bitmap_insert_into_set): Likewise.
24209 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
24211 2010-01-04 Jakub Jelinek <jakub@redhat.com>
24214 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
24215 (do_self_spec): For switches with SWITCH_IGNORE set set also
24216 SWITCH_IGNORE_PERMANENTLY.
24217 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
24220 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
24222 * lto-streamer-out.c (output_unreferenced_globals): Output the full
24223 tree of an unreferenced global var.
24225 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
24228 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
24229 GTU to GT for V4SI and V2DI.
24231 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
24232 (umin<mode>3): Removed.
24234 (uminv4si3): Likewise.
24236 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
24239 * collect2.c (main): Turn on trace in collect2 if -v is passed
24242 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
24244 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
24245 description of expression operand.
24247 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
24249 * configure.ac: Add install-html to target_list for Make-hooks.
24250 * configure: Regenerate.
24251 * fortran/Make-lang.in (F95_HTMLFILES): New.
24252 (fortran.html): Use it.
24253 (fortran.install-html): New.
24254 * Makefile.in (install-html): Add lang.install-html.
24255 * java/Make-lang.in (JAVA_HTMLFILES): New.
24256 (java.html): Use it.
24257 (java.install-html): New.
24258 * objc/Make-lang.in (objc.install-html): New.
24259 * objcp/Make-lang.in (obj-c++.install-html): New.
24260 * cp/Make-lang.in (c++.install-html): New.
24261 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
24262 * lto/Make-lang.in (lto.install-html): New.
24264 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
24267 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
24269 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
24271 PR rtl-optimization/41862
24272 * store-motion.c (store_killed_in_insn, compute_store_table,
24273 remove_reachable_equiv_notes, replace_store_insn,
24274 build_store_vectors): Ignore all DEBUG_INSNs.
24276 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
24279 * common.opt: Add dumpdir.
24281 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
24283 (option_map): Add --dumpdir.
24285 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
24287 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
24289 * opts.c (decode_options): Try dump_dir_name first if
24290 dump_base_name isn't an absolute path.
24291 (common_handle_option): Handle OPT_dumpdir.
24293 * toplev.c (dump_dir_name): New.
24294 (print_switch_values): Also ignore -dumpdir.
24296 * toplev.h (dump_dir_name): New.
24298 2010-01-03 Richard Guenther <rguenther@suse.de>
24300 PR tree-optimization/42589
24301 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
24302 double-word expansion of bswap32.
24304 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
24306 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
24307 with BLOCK_FOR_INSN.
24308 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
24309 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
24310 noce_process_if_block): Likewise.
24311 * gcse.c (compute_local_properties, insert_expr_in_table,
24312 insert_set_in_table, canon_list_insert, find_avail_set,
24313 pre_insert_copy_insn): Likewise.
24315 * basic-block.h (BLOCK_NUM): Move from here...
24316 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
24318 2010-01-03 Richard Guenther <rguenther@suse.de>
24320 PR tree-optimization/42438
24321 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
24322 contains_may_not_return_call flag.
24323 (BB_MAY_NOTRETURN): New.
24324 (valid_in_sets): Trapping nary operations are not valid
24325 in blocks that may not return.
24326 (insert_into_preds_of_block): Remove check for trapping expressions.
24327 (compute_avail): Compute also BB_MAY_NOTRETURN.
24329 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
24331 * doc/invoke.texi: Add 2010 to copyright years.
24333 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
24335 * config/sparc/sparc.c: Fix formatting nits.
24337 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
24338 Alexander Monakov <amonakov@ispras.ru>
24340 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
24342 2010-01-02 Richard Guenther <rguenther@suse.de>
24344 PR middle-end/42577
24345 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
24346 (simplify_switch_using_ranges): Mark to be removed edges
24349 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24351 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
24353 * collect2.c (scan_libraries): Add missing argument in call to
24356 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
24359 * config/alpha/predicates.md (aligned_memory_operand): Return false
24361 (unaligned_memory_operand): Return true for CQImode.
24362 * config/alpha/alpha.c (get_aligned_mem): Assert that location
24363 doesn not cross aligned SImode word boundary.
24365 2010-01-02 Anatoly Sokolov <aesok@post.ru>
24367 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
24369 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
24370 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
24372 2010-01-02 Richard Guenther <rguenther@suse.de>
24375 * toplev.c (compile_file): Emit LTO marker properly. Change
24376 it to __gnu_lto_v1.
24377 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
24379 2010-01-01 Richard Guenther <rguenther@suse.de>
24382 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
24384 2010-01-01 Richard Guenther <rguenther@suse.de>
24387 * c-decl.c (grokdeclarator): For zero-size arrays force
24388 structural equality checks as layout_type does.
24390 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
24392 * builtins.c: Update copyright to 2010.
24394 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
24397 * lto-streamer-out.c (produce_asm): Revert the last change.
24398 (copy_function): Likewise.
24400 * lto-streamer.c (lto_get_section_name): Skip any leading
24403 2010-01-01 Richard Guenther <rguenther@suse.de>
24405 PR middle-end/42559
24406 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
24410 Copyright (C) 2010 Free Software Foundation, Inc.
24412 Copying and distribution of this file, with or without modification,
24413 are permitted in any medium without royalty provided the copyright
24414 notice and this notice are preserved.