1 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3 * doc/sourcebuild.texi (Effective-Target Keywords): Document
4 sse_runtime, sse2_runtime.
6 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
8 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
9 low half of a single-register SCmode return value before ORing
10 it with the high half.
11 * config/mips/mips16.S (MERGE_GPRf): Likewise.
13 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
19 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
22 * postreload.c (reload_cse_move2add): Return bool, true if anything.
23 changed. All callers changed.
24 (move2add_use_add2_insn): Likewise.
25 (move2add_use_add3_insn): Likewise.
26 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
28 (RELOAD_COMBINE_MAX_USES): Bump to 16.
29 (last_jump_ruid): New static variable.
30 (struct reg_use): New members CONTAINING_MEM and RUID.
31 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
32 (reload_combine_split_one_ruid, reload_combine_split_ruids,
33 reload_combine_purge_insn_uses, reload_combine_closest_single_use
34 reload_combine_purge_reg_uses_after_ruid,
35 reload_combine_recognize_const_pattern): New static functions.
36 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
37 is true for our reg and that we have available index regs.
38 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
39 callers changed. Use them to initialize fields in struct reg_use.
40 (reload_combine): Initialize last_jump_ruid. Be careful when to
41 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
42 Call reload_combine_recognize_const_pattern.
43 (reload_combine_note_store): Update REAL_STORE_RUID field.
45 2010-07-16 Jason Merrill <jason@redhat.com>
47 * Makefile.in (opts-common.o): Depend on options.h.
49 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
51 * tree.c (build_common_builtin_nodes): Use build_function_type_list
52 instead of build_function_type.
53 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
54 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
56 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
58 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
60 (rs6000_emit_int_cmove): Use function pointers for insn generation.
61 Don't force values into registers unnecessarily.
62 (output_isel): Assert that we're not given conditions we can't handle.
63 Delete corresponding code.
64 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
65 scc_comparison_operator constraint. Permit 0 for the consequent
66 operand. Permit any GPR for the alternative operand.
67 (isel_unsigned_<mode>): Likewise.
69 2010-07-16 Jakub Jelinek <jakub@redhat.com>
72 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
73 argument to const_tree.
74 * config/i386/i386.c (function_arg_advance): If padding needs to be
75 inserted before argument, increment cum->words by number of padding
77 (contains_aligned_value_p): Change argument to const_tree.
78 (ix86_function_arg_boundary): Change second argument to const_tree.
80 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
83 * function.c (record_hard_reg_sets): New static function.
84 (assign_parm_setup_reg): If an optab for extending exists and the
85 generated code clobbbers no hard regs, emit the insn directly and
86 create a REG_EQUIV note.
88 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
90 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
92 * c-typeck.c (push_init_level): Likewise.
93 (process_init_element): Likewise.
95 2010-07-15 Anatoly Sokolov <aesok@post.ru>
97 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
98 (integer_three_node): Add.
99 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
100 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
101 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
102 of call build_int_cst.
103 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
104 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
105 (find_interesting_uses_address): Ditto.
106 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
107 * tree-eh.c (lower_eh_constructs_2): Ditto.
108 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
109 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
110 * expmed.c (expand_divmod): Ditto.
111 * tree-mudflap.c (mx_register_decls): Ditto.
112 * varasm.c (array_size_for_constructor): Ditto.
113 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
114 * c-parser.c (c_parser_postfix_expression): Ditto.
116 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
118 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
119 New static variables.
120 (reload_combine_recognize_pattern): New static function, broken out
122 (reload_combine): Use it. Only initialize first_index_reg and
125 2010-07-15 Richard Henderson <rth@redhat.com>
127 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
130 2010-07-15 Jan Hubicka <jh@suse.cz>
132 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling comdats
134 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
136 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
138 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
140 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
142 * tree.h (DECL_CHAIN): Define.
143 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
144 * c-decl.c: Likewise.
145 * c-parser.c: Likewise.
146 * c-typeck.c: Likewise.
147 * cfgexpand.c: Likewise.
148 * cgraph.c: Likewise.
149 * cgraphunit.c: Likewise.
150 * combine.c: Likewise.
151 * config/alpha/alpha.c: Likewise.
152 * config/arm/arm.c: Likewise.
153 * config/frv/frv.c: Likewise.
154 * config/i386/i386.c: Likewise.
155 * config/i386/winnt-cxx.c: Likewise.
156 * config/ia64/ia64.c: Likewise.
157 * config/iq2000/iq2000.c: Likewise.
158 * config/mep/mep.c: Likewise.
159 * config/mips/mips.c: Likewise.
160 * config/pa/som.h: Likewise.
161 * config/rs6000/rs6000.c: Likewise.
162 * config/s390/s390.c: Likewise.
163 * config/sh/sh.c: Likewise.
164 * config/sh/symbian-cxx.c: Likewise.
165 * config/sparc/sparc.c: Likewise.
166 * config/spu/spu.c: Likewise.
167 * config/stormy16/stormy16.c: Likewise.
168 * config/vxworks.c: Likewise.
169 * config/xtensa/xtensa.c: Likewise.
170 * coverage.c: Likewise.
171 * dbxout.c: Likewise.
172 * dwarf2out.c: Likewise.
173 * emit-rtl.c: Likewise.
175 * function.c: Likewise.
176 * gimple-low.c: Likewise.
177 * gimple-pretty-print.c: Likewise.
178 * gimplify.c: Likewise.
179 * integrate.c: Likewise.
180 * ipa-inline.c: Likewise.
181 * ipa-prop.c: Likewise.
182 * ipa-split.c: Likewise.
183 * ipa-struct-reorg.c: Likewise.
184 * ipa-type-escape.c: Likewise.
185 * langhooks.c: Likewise.
186 * lto-cgraph.c: Likewise.
187 * omp-low.c: Likewise.
188 * stor-layout.c: Likewise.
189 * tree-cfg.c: Likewise.
190 * tree-complex.c: Likewise.
191 * tree-dfa.c: Likewise.
192 * tree-dump.c: Likewise.
193 * tree-inline.c: Likewise.
194 * tree-mudflap.c: Likewise.
195 * tree-nested.c: Likewise.
196 * tree-object-size.c: Likewise.
197 * tree-pretty-print.c: Likewise.
198 * tree-sra.c: Likewise.
199 * tree-ssa-live.c: Likewise.
200 * tree-ssa-loop-niter.c: Likewise.
201 * tree-ssa-math-opts.c: Likewise.
202 * tree-ssa-reassoc.c: Likewise.
203 * tree-ssa-sccvn.c: Likewise.
204 * tree-ssa-structalias.c: Likewise.
205 * tree-tailcall.c: Likewise.
206 * tree-vrp.c: Likewise.
208 * var-tracking.c: Likewise.
209 * varasm.c: Likewise.
211 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
214 * config/spu/spu.c (spu_expand_builtin_1): Allow references
215 (as well as pointers) as argument to mask_for_load builtins.
217 2010-07-15 Richard Guenther <rguenther@suse.de>
219 PR tree-optimization/44946
220 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
221 with accessing only padding properly.
223 2010-07-15 Jan Hubicka <jh@suse.cz>
225 * ipa.c (function_and_variable_visibility): Variables marked as used
226 should not be localized.
228 2010-07-15 Jan Hubicka <jh@suse.cz>
230 * cgraph.c: Include lto-streamer.h
231 (change_decl_assembler_name): Work when assembler name hash is at place.
232 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage, be
233 sure to rename it to avoid name clash.
234 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
235 Localize hidden symbols only when locally defined.
237 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
239 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
241 2010-07-15 Magnus Granberg <zorry@gentoo.org>
242 Kevin F. Quinn <kevquinn@gentoo.org>
244 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
245 * common.opt: Add -Wtrampolines.
246 * doc/invoke.texi: Add -Wtrampolines.
248 2010-07-15 Jie Zhang <jie@codesourcery.com>
250 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
253 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
255 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
256 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
258 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
260 * config/spu/spu.c (reg_names): Remove prototype.
261 (call_used_regs): Likewise.
263 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
265 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
266 "unused" with attribute "used".
267 (__JCR_END__): Likewise.
268 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
270 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
272 2010-07-14 Richard Guenther <rguenther@suse.de>
274 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
275 (maybe_fixup_decls): Likewise.
276 (input_gimple_stmt): Do not fixup anything.
277 * lto-streamer-out.c (output_gimple_stmt): Make sure all
278 non-automatic variable uses are wrapped inside a MEM_REF.
280 2010-07-14 Richard Henderson <rth@redhat.com>
282 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
284 * varasm.c (assemble_variable): Remove early exit for functions;
285 assert that we're given a variable.
287 2010-07-14 Jie Zhang <jie@codesourcery.com>
289 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
290 cortex_a8_default when neon_type is not none.
292 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
294 * lower-subreg.c (subreg_context): New static bitmap.
295 (decompose_multiword_subregs): Allocate and free it.
296 (find_decomposable_subregs): Set a bit in it for a register that
297 occurs in a subreg that changes mode but not size.
298 (can_decompose_p): Test it instead of non_decomposable_context.
300 2010-07-14 Richard Guenther <rguenther@suse.de>
302 PR tree-optimization/44824
303 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
304 is_gimple_mem_ref_addr.
305 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
306 non-decl_address_invariant_p addresses.
308 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
310 * reload.c (find_reloads): Revert code to penalize small register
311 classes that was brought in with the IRA merge.
313 2010-07-14 Richard Guenther <rguenther@suse.de>
315 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
316 as base of ARRAY_REFs.
318 2010-07-14 Richard Guenther <rguenther@suse.de>
321 * tree-pretty-print.c (do_niy): Do not print a newline.
323 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
325 * ira-int.h (struct ira_object): New.
326 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
327 (struct ira_allocno): Remove members min, max,
328 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
329 conflict_allocnos_num and conflict_vec_p. Add new member object.
330 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
331 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
332 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
333 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
334 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
335 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
336 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
337 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
338 an ira_object_t rather than ira_allocno_t. All uses changed.
339 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
340 contains a vector of ira_object_t; all uses changed.
341 (ira_objects_num): Declare variable.
342 (ira_create_allocno_object): Declare function.
343 (ira_conflict_vector_profitable_p): Adjust prototype.
344 (ira_allocate_conflict_vec): Renamed from
345 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
346 (ira_allocate_object_conflicts): Renamed from
347 ira_allocate_allocno_conflicts; first arg now ira_object_t.
348 (struct ira_object_iterator): New.
349 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
350 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
351 to conflict_vec_p. All uses changed.
352 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
353 Changed to take into account that conflicts are now tracked for
355 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
356 Args changed to accept ira_object_t. All uses changed.
357 (allocnos_conflict_p): New static function.
358 (collected_conflict_objects): Renamed from collected_allocno_objects;
359 now a vector of ira_object_t. All uses changed.
360 (build_conflict_bit_table): Changed to take into account that
361 conflicts are now tracked for objects.
362 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
363 (print_allocno_conflicts, ira_build_conflicts): Likewise.
364 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
365 setup_allocno_left_conflicts_size, allocno_reload_assign,
366 fast_allocation): Likewise.
367 * ira-lives.c (make_hard_regno_born, make_allocno_born)
368 process_single_reg_class_operands, process_bb_node_lives): Likewise.
369 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
371 * ira-build.c (ira_objects_num): New variable.
372 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
373 contains a vector of ira_object_t; all uses changed.
374 (ira_object_id_map_vec): Corresponding change.
375 (object_pool): New static variable.
376 (initiate_allocnos): Initialize it.
377 (finish_allocnos): Free it.
378 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
380 (ira_create_allocno): Don't set members that were removed.
381 (ira_set_allocno_cover_class): Don't change conflict hard regs.
382 (merge_hard_reg_conflicts): Changed to take into account that
383 conflicts are now tracked for objects.
384 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
385 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
386 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
387 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
388 setup_min_max_conflict_allocno_ids, ): Likewise.
389 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
390 to ira_object_t; all callers changed.
391 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
392 to ira_object_t, all callers changed.
393 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
394 to ira_object_t, all callers changed.
395 (conflict_check, curr_conflict_check_tick): Renamed from
396 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
398 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
399 arg changed to ira_object_t, all callers changed.
400 (create_cap_allocno): Call ira_create_allocno_object.
401 (finish_allocno): Free the corresponding object.
402 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
403 callers changed. Adjusted for dealing with objects.
404 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
405 dealing with objects.
406 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
408 * ira-int.h (struct live_range): Rename allocno member to object
409 and change type to ira_object_t.
410 (struct ira_object): New member live_ranges.
411 (struct ira_allocno): Remove member live_ranges.
412 (ALLOCNO_LIVE_RANGES): Remove.
413 (OBJECT_LIVE_RANGES): New macro.
414 (ira_create_live_range, ira_copy_live_range_list,
415 ira_merge_live_range_list, ira_live_ranges_intersect_p,
416 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
417 * ira-build.c (ira_create_object): Initialize live ranges here.
418 (ira_create_allocno): Not here.
419 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
420 changed to ira_object_t, all callers changed.
421 (copy_live_range): Rename from copy_allocno_live_range, all callers
423 (ira_copy_live_range_list): Rename from
424 ira_copy_allocno_live_range_list, all callers changed.
425 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
427 (ira_live_ranges_intersect_p): Rename from
428 ira_allocno_live_ranges_intersect_p, all callers changed.
429 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
431 (ira_finish_live_range_list): Rename from
432 ira_finish_allocno_live_range_list, all callers changed.
433 (change_object_in_range_list): Rename from change_allocno_in_range_list,
434 last arg changed to ira_object_t, all callers changed.
435 (finish_allocno): Changed to expect live ranges in the allocno's object.
436 (move_allocno_live_ranges, copy_allocno_live_ranges,
437 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
438 ira_flattening, ira_build): Likewise.
439 * ira-color.c (allocnos_have_intersected_live_ranges_p,
440 slot_coalesced_allocno_live_ranges_intersect,
441 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
442 * ira-conflicts.c (build_conflict_bit_table): Likewise.
443 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
444 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
445 make_allocno_dead, create_start_finish_chains,
446 remove_some_program_points_and_update_live_ranges,
447 ira_debug_live_range_list): Likewise.
449 * ira-int.h (ira_object_conflict_iterator): Rename from
450 ira_allocno_conflict_iterator.
451 (ira_object_conflict_iter_init): Rename from
452 ira_allocno_conflict_iter_init, second arg changed to
453 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
454 FOR_EACH_ALLOCNO_CONFLICT.
455 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
456 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
457 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
458 * ira-conflicts.c (print_allocno_conflicts): Likewise.
460 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
463 * tree-dump.c (dump_options): Add enumerate_locals entry.
464 Add TDF_NOID exclusion to all entry.
465 * tree-dump.h (dump_enumerated_decls): Declare.
466 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
467 Don't display type uid.
468 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
469 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
470 * tree-ssa-live.c: Include gimple.h.
471 (numbered_tree_d): New struct.
472 (numbered_tree): New typedef.
473 (DEF_VEC_O (numbered_tree): New.
474 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
475 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
476 (dump_enumerated_decls): Likewise.
477 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
478 debug info and flag_dump_final_insns, call dump_enumerated_decls.
479 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
480 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
482 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
484 * expmed.h (MAX_BITS_PER_WORD): Move to...
485 * defaults.h (MAX_BITS_PER_WORD): ...here.
487 2010-07-13 DJ Delorie <dj@redhat.com>
489 * config/h8300/h8300.c (h8300_init_once): Default to
490 -fstrict_volatile_bitfields.
492 * config/sh/sh.c (sh_override_options): Default to
493 -fstrict_volatile_bitfields.
495 * config/rx/rx.c (rx_option_override): New.
497 * config/m32c/m32c.c (m32c_override_options): Default to
498 -fstrict_volatile_bitfields.
500 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
502 * tree.h (build_function_call_expr): Delete.
503 (build_call_expr_loc_array): New function.
504 (build_call_expr_loc_vec): New function.
505 * tree-flow.h (struct omp_region): Change type of ws_args field
507 * builtins.c (build_function_call_expr): Delete.
508 (build_call_expr_loc_array): New function.
509 (build_call_expr_loc): Call it. Use XALLOCAVEC.
510 (build_call_expr): Likewise.
511 (build_call_expr_loc_vec): New function.
512 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
513 build_function_call_expr.
514 * expr.c (emutls_var_address): Likewise.
515 * varasm.c (emutls_common_1): Likewise.
516 * omp-low.c (expand_omp_atomic_mutex): Likewise.
517 (expand_omp_taskreg): Adjust for new type of region->ws_args.
518 (get_ws_args_for): Return a VEC instead of a tree.
519 (expand_parallel_call): Call build_call_expr_loc_vec instead of
520 build_function_call_expr.
521 * stor-layout.c (self_referential_size): Likewise.
523 2010-07-13 Jakub Jelinek <jakub@redhat.com>
526 * recog.c (constrain_operands): Allow side-effects in memory
527 operands if either < or > constraint is used, rather than if
528 both < and > is used.
530 2010-07-13 Richard Guenther <rguenther@suse.de>
533 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
534 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
537 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
540 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
542 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
543 * config/sh/sh.md (symGOT_load): Likewise.
544 (symDTPOFF2reg): Likewise.
545 (symTPOFF2reg): Likewise.
547 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
549 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
550 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
552 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
554 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
556 Find ucontext_t * on Solaris 11.
557 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
558 Handle new Solaris 11 __sighndlr patterns.
560 2010-07-13 Jakub Jelinek <jakub@redhat.com>
563 * vec.h (VEC_block_remove): Fix comment.
564 * tree-ssa-live.c (remove_unused_locals): Don't use
565 VEC_unordered_remove on local_decls, instead replace a single
566 vector element in each iteration if at least one element had
567 to be removed and VEC_truncate at the end.
568 * omp-low.c (expand_omp_taskreg): Likewise.
570 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
572 * c-decl.c (finish_function): Fix typo in comment.
574 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
577 * postreload.c (move2add_use_add3_insn): Silence gcc warning
580 2010-07-12 Jakub Jelinek <jakub@redhat.com>
582 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
583 (simplify_stmt_using_ranges): Use it.
585 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
587 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
588 member. Do not mark as GTY(()).
589 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
590 (spu_builtin_decls): New static variable.
591 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
592 (spu_init_builtins): Likewise.
593 (spu_builtin_mul_widen_even): Likewise.
594 (spu_builtin_mul_widen_odd): Likewise.
595 (spu_builtin_mask_for_load): Likewise.
596 (spu_builtin_vec_perm): Likewise.
597 * config/spu/spu-c.c: Include "target.h".
598 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
599 of using spu_builtins[].fndecl.
601 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
603 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
604 imply -minterlink-mips16.
606 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
608 * config/mips/mips.h (mips16_globals): Declare.
609 (SWITCHABLE_TARGET): Define.
610 * config/mips/mips.c: Include target-globals.h.
611 (mips16_globals): New variable.
612 (mips_set_mips16_mode): Use save_target_globals and
613 restore_target_globals instead of target_reinit.
615 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
617 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
618 to say that the function can be called more than once.
619 * target-globals.c (save_target_globals): Call init_reg_sets.
621 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
623 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
624 * bb-reorder.h: New file.
625 * bb-reorder.c (default_target_bb_reorder): New variable.
626 (this_target_bb_reorder): New conditional variable.
627 (uncond_jump_length): Redefine as a macro.
628 * target-globals.h (this_target_bb_reorder): Declare.
629 (target_globals): Add a bb_reorder field.
630 (restore_target_globals): Copy the bb_reorder field to
631 this_target_bb-reorder.
632 * target-globals.c: Include bb-reorder.h.
633 (default_target_globals): Initialize the bb_reorder field.
634 (save_target_globals): Likewise.
636 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
638 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
640 * gcse.c: Include gcse.h.
641 (default_target_gcse): New variable.
642 (this_target_gcse): New conditional variable.
643 (can_copy): Redefine as a macro.
644 (can_copy_init_p): New macro.
645 (can_copy_p): Remove can_copy_init_p.
646 * target-globals.h (this_target_gcse): Declare.
647 (target_globals): Add a gcse field.
648 (restore_target_globals): Copy the gcse field to this_target_gcse.
649 * target-globals.c: Include gcse.h.
650 (default_target_globals): Initialize the gcse field.
651 (save_target_globals): Likewise.
653 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
655 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
656 and x_ira_prohibited_mode_move_regs_initialized_p.
657 (ira_prohibited_mode_move_regs): Redefine as a macro.
658 * ira.c (ira_prohibited_mode_move_regs): Delete.
659 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
661 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
663 * reload.h (target_reload): Add x_cached_reg_save_code and
664 x_cached_reg_restore_code.
665 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
668 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
670 * Makefile.in (target-globals.o): Depend on builtins.h.
671 * builtins.h: New file.
672 * builtins.c: Include builtins.h.
673 (default_target_builtins): New variable.
674 (this_target_builtins): New conditional variable.
675 (apply_args_mode, apply_result_mode): Redefine as macros.
676 * target-globals.h (this_target_builtins): Declare.
677 (target_globals): Add a builtins field.
678 (restore_target_globals): Copy the builtins field to
679 this_target_builtins.
680 * target-globals.c: Include builtins.h.
681 (default_target_globals): Initialize the builtins field.
682 (save_target_globals): Likewise.
684 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
686 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
687 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
689 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
690 (alg_hash, alg_hash_used_p): New macros.
691 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
692 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
693 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
695 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
697 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
698 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
699 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
700 (this_op_costs, costs_classes): Redefine as macros.
701 (record_reg_classes): Don't take op_costs as a parameter.
702 (record_operand_costs): Likewise. Update calls to record_reg_classes.
703 (scan_one_insn): Update call to record_operand_costs.
705 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
707 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
708 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
709 (target_ira_int): New structure.
710 (default_target_ira_int): Declare.
711 (this_target_ira_int): Declare as a variable or define as a macro.
712 (ira_reg_mode_hard_regset, ira_register_move_cost)
713 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
714 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
715 (prohibited_class_mode_regs, ira_important_classes_num)
716 (ira_important_classes, ira_reg_class_intersect)
717 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
718 (ira_reg_class_union): Redefine as macros.
719 * ira.h (target_ira): New structure.
720 (default_target_ira): Declare.
721 (this_target_ira): Declare as a variable or define as a macro.
722 (ira_available_class_regs, ira_hard_regno_cover_class)
723 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
724 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
725 (ira_class_hard_regs_num): Redefine as macros.
726 * ira.c (default_target_ira, default_target_ira_int): New variables.
727 (this_target_ira, this_target_ira_int): New conditional variables.
728 (ira_reg_mode_hard_regset, ira_memory_move_cost)
729 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
730 (ira_class_subset_p): Delete.
731 (no_unit_alloc_regs): Redefine as a macro.
732 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
733 (ira_class_hard_regs_num, ira_class_hard_reg_index)
734 (ira_available_class_regs): Delete.
735 (alloc_reg_class_subclasses): Redefine as a macro.
736 (ira_reg_class_cover_size, ira_reg_class_cover)
737 (ira_important_classes_num, ira_important_classes)
738 (ira_important_class_nums, ira_class_translate): Delete.
739 (cover_class_order): Document the variable's lifetime.
740 (reorder_important_classes): Don't set ira_important_class_nums.
741 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
742 (ira_reg_class_super_classes, ira_reg_class_union)
743 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
745 (setup_reg_class_nregs): Don't set ira_max_regs.
746 (prohibited_class_mode_regs): Delete.
747 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
748 (target_globals): Add ira and ira_int fields.
749 (restore_target_globals): Copy the ira field to this_target_ira
750 and the ira_int field to this_target_ira_int.
751 * target-globals.c: Include ira-int.h.
752 (default_target_globals): Initialize the ira and ira_int fields.
753 (save_target_globals): Likewise.
755 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
757 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
758 * cfgloop.h (target_cfgloop): New structure.
759 (default_target_cfgloop): Declare.
760 (this_target_cfgloop): Declare as a variable or define as a macro.
761 (target_avail_regs, target_clobbered_regs, target_res_regs)
762 (target_reg_cost, target_spill_cost): Redefine as macros.
763 * cfgloopanal.c (default_target_cfgloop): New variable.
764 (this_target_cfgloop): New conditional variable.
765 (target_avail_regs, target_clobbered_regs, target_res_regs)
766 (target_reg_cost, target_spill_cost): Delete.
767 * target-globals.h (this_target_cfgloop): Declare.
768 (target_globals): Add a cfgloop field.
769 (restore_target_globals): Copy the cfgloop field to
771 * target-globals.c: Include cfgloop.h.
772 (default_target_globals): Initialize the cfgloop field.
773 (save_target_globals): Likewise.
775 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
777 * regs.h (target_regs): Add x_direct_load, x_direct_store and
778 x_float_extend_from_mem.
779 (direct_load, direct_store, float_extend_from_mem): New macros.
780 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
782 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
784 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
785 (target-globals.o): Depend on $(LIBFUNCS_H).
786 * libfuncs.h: Include hashtab.h.
787 (libfunc_entry): Moved from optabs.c.
788 (target_libfuncs): New structure.
789 (default_target_libfuncs): Declare.
790 (this_target_libfuncs): Declare as a variable or define as a macro.
791 (libfunc_table): Redefine as a macro.
792 * optabs.c (default_target_libfuncs): New variable.
793 (this_target_libfuncs): New conditional variable.
794 (libfunc_table): Delete.
795 (libfunc_entry): Moved to optabs.h.
796 (libfunc_hash): Redefine as a macro.
797 (hash_libfunc, eq_libfunc): Fix comments.
798 (init_optabs): Use libfunc_hash to detect cases where the function
799 has already been called. Clear the hash table instead of
801 * target-globals.h (this_target_libfuncs): Declare.
802 (target_globals): Add a libfuncs field.
803 (restore_target_globals): Copy the libfuncs field to
804 this_target_libfuncs.
805 * target-globals.c: Include libfuncs.h.
806 (default_target_globals): Initialize the libfuncs field.
807 (save_target_globals): Likewise.
809 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
811 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
812 in all dependency lists.
814 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
816 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
817 * optabs.h (target_optabs): New structure.
818 (default_target_optabs): Declare.
819 (this_target_optabs): Declare as a variable or define as a macro.
820 (optab_table, convert_optab_table, direct_optab_table): Redefine
822 * optabs.c (default_target_optabs): New variable.
823 (this_target_optabs): New conditional variable.
824 (optab_table, convert_optab_table, direct_optab_table): Delete.
825 * target-globals.h (this_target_optabs): Declare.
826 (target_globals): Add a optabs field.
827 (restore_target_globals): Copy the optabs field to
829 * target-globals.c: Include expr.h and optabs.h.
830 (default_target_globals): Initialize the optabs field.
831 (save_target_globals): Likewise.
833 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
835 * flags.h (target_flagstate): Add x_flag_excess_precision.
836 (flag_excess_precision): Redefine as a macro.
837 * toplev.c (flag_excess_precision): Delete.
839 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
841 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
842 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
843 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
844 (no_caller_save_reg_set): Redefine as a macro.
845 * reload.h (target_reload): Add x_caller_save_initialized_p and
847 (caller_save_initialized_p): Redefine as a macro.
848 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
849 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
850 (regno_save_mode): Redefine as a macro.
852 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
854 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
855 * expmed.h: New file.
856 * expmed.c (default_target_costs): New variable.
857 (this_target_costs): New conditional variable.
858 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
859 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
860 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
861 * target-globals.h (this_target_expmed): Declare.
862 (target_globals): Add a expmed field.
863 (restore_target_globals): Copy the expmed field to
865 * target-globals.c: Include expmed.h.
866 (default_target_globals): Initialize the expmed field.
867 (save_target_globals): Likewise.
869 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
871 * Makefile.in (target-globals.o): Depend on reload.h.
872 * reload.h (target_reload): New structure.
873 (default_target_reload): Declare.
874 (this_target_reload): Declare as a variable or define as a macro.
875 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
876 * reload1.c (default_target_reload): New variable
877 (this_target_reload): New conditional variable.
878 (indirect_symref_ok, double_reg_address_ok): Delete.
879 (spill_indirect_levels): Redefine as a macro.
880 * target-globals.h (this_target_reload): Declare.
881 (target_globals): Add a reload field.
882 (restore_target_globals): Copy the reload field to
884 * target-globals.c: Include hard-reg-set.h.
885 (default_target_globals): Initialize the reload field.
886 (save_target_globals): Likewise.
888 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
890 * rtl.h (target_rtl): Add x_static_reg_base_value.
891 * alias.c (static_reg_base_value): Redefine as a macro.
893 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
895 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
896 (GTFILES): Remove reginfo.c.
897 * rtl.h (target_rtl): Add x_top_of_stack.
898 (top_of_stack): New macro.
899 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
900 (top_of_stack): Delete.
902 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
904 * regs.h (target_regs): Add x_hard_regs_of_mode,
905 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
906 x_may_move_out_cost and x_last_mode_for_init_move_cost.
907 (have_regs_of_mode, contains_reg_of_mode, move_cost)
908 (may_move_in_cost, may_move_out_cost): Redefine as macros.
909 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
910 (may_move_in_cost, may_move_out_cost): Delete.
911 (last_mode_for_init_move_cost): Redefine as a macro.
913 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
915 * hard-reg-set.h (target_hard_regs): New structure.
916 (default_target_hard_regs): Declare.
917 (this_target_hard_regs): Declare as a variable or define as a macro.
918 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
919 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
920 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
921 (reg_class_size, reg_class_subclasses, reg_class_subunion)
922 (reg_class_superunion, reg_names): Redefine as macros.
923 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
924 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
925 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
926 (reg_class_contents, reg_class_size, reg_class_subclasses)
927 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
928 (default_target_hard_regs): New variable
929 (this_target_hard_regs, initial_call_really_used_regs)
930 (initial_reg_alloc_order): New conditional variables.
931 (initial_reg_names): New variable.
932 (init_reg_sets): Assert that initial_call_really_used_regs,
933 initial_reg_alloc_order and initial_reg_names
934 are all the same size as their variable counterparts. Use them to
935 initialize those counterparts.
936 * target-globals.h (this_target_hard_regs): Declare.
937 (target_globals): Add a hard_regs field.
938 (restore_target_globals): Copy the hard_regs field to
939 this_target_hard_regs.
940 * target-globals.c: Include hard-reg-set.h.
941 (default_target_globals): Initialize the hard_regs field.
942 (save_target_globals): Likewise.
944 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
946 * Makefile.in (target-globals.o): Depend on $(RTL_H).
947 * rtl.h: (target_rtl): New structure.
948 (default_target_rtl): Declare.
949 (this_target_rtl): Declare as a variable or define as a macro.
950 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
952 * emit-rtl.c (default_target_rtl): New variable.
953 (this_target_rtl): New conditional variable.
954 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
955 (return_address_pointer_rtx): Delete.
956 (initial_regno_reg_rtx): New macro.
957 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
958 (init_emit_regs): Likewise.
959 * target-globals.h (this_target_rtl): Declare.
960 (target_globals): Add a rtl field.
961 (restore_target_globals): Copy the rtl field to this_target_rtl.
962 * target-globals.c: Include rtl.h.
963 (default_target_globals): Initialize the rtl field.
964 (save_target_globals): Likewise.
966 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
968 * Makefile.in (target-globals.o): Depend on $(REGS_H).
969 * regs.h (target_reg_modes): New structure.
970 (default_target_reg_modes): Declare.
971 (this_target_reg_modes): Declare as a variable or define as a macro.
972 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
973 * reginfo.c (default_target_reg_modes): New variable.
974 (this_target_reg_modes): New conditional variable.
975 (hard_regno_nregs, reg_raw_mode): Delete.
976 * target-globals.h (this_target_regs): Declare.
977 (target_globals): Add a regs field.
978 (restore_target_globals): Copy the regs field to this_target_regs.
979 * target-globals.c: Include regs.h.
980 (default_target_globals): Initialize the regs field.
981 (save_target_globals): Likewise.
983 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
985 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
986 * doc/tm.texi: Regenerate.
987 * Makefile.in (OBJS-common): Add target-globals.o.
988 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
989 and target-globals.h.
990 (target-globals.o): New rule.
991 (GTFILES): Include $(srcdir)/target-globals.h.
992 * defaults.h (SWITCHABLE_TARGET): Define.
993 * gengtype.c (open_base_files): Add target-globals.h to the
995 * target-globals.h: New file.
996 * target-globals.c: Likewise.
998 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
999 * flags.h (target_flag_state): New structure.
1000 (default_target_flag_state): Declare.
1001 (this_target_flag_state): Declare as a variable or define as a macro.
1002 (align_loops_log): Redefine as a macro.
1003 (align_loops_max_skip, align_jumps_log): Likewise.
1004 (align_jumps_max_skip, align_labels_log): Likewise.
1005 (align_labels_max_skip, align_functions_log): Likewise.
1006 * toplev.c (default_target_flag_state): New variable.
1007 (this_target_flag_state): New conditional variable.
1008 (align_loops_log): Delete.
1009 (align_loops_max_skip, align_jumps_log): Likewise.
1010 (align_jumps_max_skip, align_labels_log): Likewise.
1011 (align_labels_max_skip, align_functions_log): Likewise.
1012 * target-globals.h (this_target_flag_state): Declare.
1013 (target_globals): Add a flag_state field.
1014 (restore_target_globals): Copy the flag_state field to
1015 this_target_flag_state.
1016 * target-globals.c: Include flags.h.
1017 (default_target_globals): Initialize the flag_state field.
1018 (save_target_globals): Likewise.
1020 2010-07-12 Jie Zhang <jie@codesourcery.com>
1022 * postreload.c (reg_symbol_ref[]): New.
1023 (move2add_use_add2_insn): New.
1024 (move2add_use_add3_insn): New.
1025 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
1026 (move2add_note_store): Likewise.
1028 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
1030 PR rtl-optimization/44752
1031 * genautomata.c (main): Don't emit an empty file even if there
1034 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1036 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
1037 ix86_solaris_return_in_memory.
1038 * config/i386-protos.h: Reflect this.
1039 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
1040 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
1042 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
1044 2010-07-12 Jie Zhang <jie@codesourcery.com>
1046 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
1047 align the stack when it's going to be saved.
1049 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1052 * config/host-solaris.c (mmap_fixed): New function.
1053 (sol_gt_pch_get_address): Use it.
1054 (sol_gt_pch_use_address): Likewise.
1056 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1058 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
1059 pentiumpro on Solaris 8 and 9/x86.
1060 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
1061 Document SSE/SSE2 support.
1062 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
1064 2010-07-12 Andi Kleen <ak@linux.intel.com>
1066 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
1067 instead of gcc_assert to print better error message for multiple
1070 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
1072 * config/i386/i386.c (ix86_asm_output_function_label): Change format
1073 string placeholder from 0x%x to %#x.
1074 (ix86_code_end): Use putc to output '\n'.
1075 (ix86_print_operand) <case ';'>: Use putc to output ';'.
1077 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
1079 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
1080 in directive -export.
1082 2010-07-10 Anatoly Sokolov <aesok@post.ru>
1084 * reginfo.h (reg_classes_intersect_p): Change arguments type to
1086 * rtl.h (reg_classes_intersect_p): Adjust prototype.
1088 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
1090 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
1091 rs6000_memory_move_cost): Remove
1092 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
1093 TARGET_MEMORY_MOVE_COST): Define.
1094 (rs6000_register_move_cost): Make static. Change arguments type from
1095 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
1096 (rs6000_memory_move_cost): Make static. Change arguments type from
1097 'enum reg_class' to reg_class_t.
1099 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
1102 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
1103 lookup code into....
1104 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
1106 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
1107 * cfgloopanal.c (target_clobbered_regs): Define.
1108 (init_set_costs): Initialize target_clobbered_regs.
1109 (estimate_reg_pressure_cost): Add call_p argument. When true,
1110 adjust the number of available registers to exclude the
1111 call-clobbered registers.
1112 * cfgloop.h (target_clobbered_regs): Declare.
1113 (estimate_reg_pressure_cost): Adjust declaration.
1114 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
1115 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
1116 (determine_set_costs): Dump target_clobbered_regs.
1117 (loop_body_includes_call): New function.
1118 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
1119 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
1120 call_p flag through.
1121 (best_gain_for_invariant): Likewise.
1122 (find_invariants_to_move): Likewise.
1123 (move_single_loop_invariants): Likewise, using already-computed
1126 2010-07-10 Richard Guenther <rguenther@suse.de>
1127 Joern Rennecke <joern.rennecke@embecosm.com>
1130 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
1131 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
1132 unless they have DECL_IGNORED_P set.
1134 2010-07-10 Richard Guenther <rguenther@suse.de>
1137 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
1139 (gimple_types_compatible_p): Similar to pointed-to
1140 types allow and merge a mix of complete and incomplete aggregate.
1141 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
1142 (iterative_hash_gimple_type): Adjust for that.
1144 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
1146 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
1148 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
1151 * config/darwin.c (output_objc_section_asm_op): Save and restore
1152 section when outputting ObjC section list.
1154 2010-07-09 Jan Hubicka <jh@suse.cz>
1156 * lto-streamer-out.c (produce_symtab): Do not write alias
1157 cgraph/varpool nodes.
1159 2010-07-09 Jan Hubicka <jh@suse.cz>
1161 * tree-inline.c (declare_return_variable): Fix ICE while
1162 inlining DECL_BY_VALUE function not in SSA form
1164 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
1166 PR tree-optimization/44576
1167 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
1168 New. Pull out from is_loop_prefetching_profitable to implement
1169 the trip count to ahead ratio heuristic.
1170 (mem_ref_count_reasonable_p): New. Pull out from
1171 is_loop_prefetching_profitable to implement the instruction to
1172 memory reference ratio heuristic. Also consider not reasonable if
1173 the memory reference count is above a threshold (to avoid
1174 explosive compilation time.
1175 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
1176 is_loop_prefetching_profitable to implement the instruction to
1177 prefetch ratio heuristic.
1178 (is_loop_prefetching_profitable): Removed.
1179 (loop_prefetch_arrays): Distribute the cost analysis across the
1180 function to allow early exit of the prefetch analysis.
1181 is_loop_prefetching_profitable is splitted into three functions,
1182 with each one called as early as possible.
1183 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
1184 number of memory references in a loop is considered too many.
1186 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
1188 * reload.c (find_reloads): Don't clear badop if we have a winreg
1189 alternative, but not win, and the class only has fixed regs.
1190 * hard-reg-set.h (class_only_fixed_regs): Declare.
1191 * reginfo.c (class_only_fixed_regs): New array.
1192 (init_reg_sets_1): Initialize it.
1193 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
1194 discourage alternatives using the stack pointer.
1196 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
1198 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
1200 * config/arm/arm.md (cbranchqi4): Fix array size.
1201 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
1204 2010-07-09 Richard Guenther <rguenther@suse.de>
1206 * gimple.c (struct type_fixup_s): New struct and VEC type.
1207 (gimple_register_type_fixups): New static global.
1208 (gimple_queue_type_fixup): New function.
1209 (gimple_types_compatible_p): Queue type fixups instead of
1211 (gimple_register_type): Apply queued fixups for the
1212 canonical type. Empty the type fixup queue.
1214 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
1216 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
1217 * configure: Regenerate.
1220 2010-07-09 Jakub Jelinek <jakub@redhat.com>
1221 Denys Vlasenko <dvlasenk@redhat.com>
1222 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1224 PR tree-optimization/28632
1225 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
1226 (extract_range_from_binary_expr): Further optimize
1227 BIT_AND_EXPR and BIT_IOR_EXPR.
1229 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
1231 * tree-if-conv.c (fold_or_predicates): New.
1232 (add_to_predicate_list): Call it.
1234 2010-07-09 Richard Guenther <rguenther@suse.de>
1237 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
1238 if base is a pointer.
1239 * tree-cfg.c (verify_expr): Update MEM_REF checking.
1241 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1244 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
1245 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
1246 builtin mask for load/store builtins.
1248 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
1250 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
1252 * configure: Regenerate.
1253 * config/i386/i386.c (ix86_print_operand) <case ';'>:
1254 Remove TARGET_MACHO.
1256 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
1258 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
1260 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
1262 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
1264 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
1266 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
1268 * config/picochip/picochip.md (commsTestPort): Emit more
1269 efficient sequence for tstport instruction.
1271 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
1273 * config/i386/i386.c (ix86_veclib_handler): Make static.
1275 2010-07-09 Richard Guenther <rguenther@suse.de>
1277 PR tree-optimization/44852
1278 * tree-ssa-alias.c: Include toplev.h for exact_log2.
1279 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
1281 (indirect_refs_may_alias_p): Likewise.
1282 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
1284 2010-07-09 Richard Guenther <rguenther@suse.de>
1286 PR tree-optimization/44882
1287 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
1289 (vectorizable_load): Likewise.
1291 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
1294 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
1295 All callers changed.
1296 Handle the case when we're called for the epilogue.
1297 (thumb_unexpanded_epilogue): Use it.
1298 (thumb1_expand_epilogue): Likewise.
1300 2010-07-09 Jakub Jelinek <jakub@redhat.com>
1302 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
1303 both ranges are range_int_cst_p with non-negative minimum,
1304 try harder to derive smaller range.
1306 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1308 * genrecog.c: Include diagnostic-core.h before toplev.h.
1309 * genoutput.c: Likewise.
1310 * genextract.c: Likewise.
1311 * genautomata.c: Likewise.
1312 * genemit.c: Likewise.
1313 * genpeep.c: Likewise.
1314 * genattrtab.c: Likewise.
1315 * genconditions.c: Likewise.
1316 * genpreds.c: Likewise.
1318 2010-07-08 Andi Kleen <ak@linux.intel.com>
1320 * lto-section-in.c (lto_section_name): Add missing comma.
1322 2010-07-08 Anatoly Sokolov <aesok@post.ru>
1324 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
1325 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
1326 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
1327 (ia64_override_options): Rename to...
1328 (ia64_option_override): ... this one. Make static.
1330 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1333 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
1334 pointed-to type of the offset in a MEM_REF to compute the alignment.
1336 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
1338 * final.c (final_scan_insn): Replace
1339 TARGET_UNWIND_INFO macro check by unwind_emit
1341 * targhooks.c (default_unwind_emit): Removed.
1342 * targhooks.h (default_unwind_emit): Likewise.
1343 * target.def (unwind_emit): Set default value to NULL.
1345 * config/i386/i386-protos.h (ix86_asm_output_function_label):
1347 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
1348 for NULL fntype argument and allow 64-bit targets.
1349 (ix86_asm_output_function_label): New function.
1350 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
1351 (ix86_handle_fndecl_attribute): Likewise.
1352 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
1353 * doc/doc/tm.texi: Regenerated.
1354 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
1355 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
1356 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
1357 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
1358 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
1359 * config/elfos.h: Likewise.
1360 * config/i386/cygming.h: Likewise.
1361 * config/netbsd-aout.h: Likewise.
1362 * config/openbsd.h: Likewise.
1363 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
1364 by ix86_asm_output_function_label function call.
1365 * varasm.c (assemble_start_function): Use
1366 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
1368 2010-07-08 Jan Hubicka <jh@suse.cz>
1370 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
1372 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
1374 * ipa-cp.c (ipcp_estimate_growth): Use it.
1375 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
1378 2010-07-08 Jan Hubicka <jh@suse.cz>
1380 * tree-inline.c (declare_return_variable): Allocate annotation for new
1383 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
1385 PR tree-optimization/44710
1386 * tree-if-conv.c (parse_predicate): New.
1387 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
1388 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
1390 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
1392 * common.opt (ftree-loop-if-convert): New flag.
1393 * doc/invoke.texi (ftree-loop-if-convert): Documented.
1394 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
1395 when flag_tree_loop_if_convert is set.
1397 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
1399 * config/i386/i386.c: Use short syntax for function calls
1400 through function pointers.
1401 * config/i386/i386.md: Ditto.
1403 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1405 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
1407 2010-07-08 Richard Guenther <rguenther@suse.de>
1409 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
1410 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
1412 2010-07-08 Jakub Jelinek <jakub@redhat.com>
1414 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
1415 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
1416 (loc_list_from_tree): Likewise.
1417 (output_loc_operands): Handle outputting DW_OP_const[48]u
1418 with loc->dtprel set.
1419 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
1421 2010-07-08 Jan Hubicka <jh@suse.cz>
1423 * ipa.c: Include pointer-set.h
1424 (cgraph_externally_visible_p): New attribute ALIASED;
1425 when in LTO, hidden symbols are local unless they are aliased.
1426 (function_and_variable_visibility): Compute aliased nodes;
1427 handle LTO and hidden symbol on functions and vars.
1428 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
1429 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
1431 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1433 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
1434 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1435 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1436 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1437 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1438 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
1439 (ix86_gen_probe_stack_range): Likewise.
1440 (override_options): Set them.
1441 (ix86_target_stack_probe): New function.
1442 (ix86_compute_frame_layout): Force use of push instructions to
1443 save registers if stack checking with probes is enabled.
1444 (get_scratch_register_on_entry): New function.
1445 (release_scratch_register_on_entry): Likewise.
1446 (ix86_adjust_stack_and_probe): Likewise.
1447 (output_adjust_stack_and_probe): Likewise.
1448 (ix86_emit_probe_stack_range): Likewise.
1449 (output_probe_stack_range): Likewise.
1450 (ix86_expand_prologue): Emit stack checking code if static built-in
1451 stack checking is enabled.
1452 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
1453 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
1454 (output_adjust_stack_and_probe): Likewise.
1455 (output_probe_stack_range): Likewise.
1456 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
1457 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
1459 (allocate_stack_worker_64): Likewise.
1460 (allocate_stack): Likewise.
1461 (adjust_stack_and_probe): New insn.
1462 (probe_stack_range): Likewise.
1464 2010-07-08 Richard Guenther <rguenther@suse.de>
1466 PR tree-optimization/44831
1467 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
1468 a MEM_REF preserving TBAA info of the original dereference.
1469 Dereference the original pointer if the address is not invariant.
1470 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
1471 at least one invariant address that we are going to dereference.
1473 2010-07-08 Richard Guenther <rguenther@suse.de>
1475 PR tree-optimization/44861
1476 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
1477 information when building MEM_REFs.
1478 (vectorizable_load): Likewise.
1479 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
1481 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1483 * config/sol2-c.c: Do not include diagnostic-core.h.
1485 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1488 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
1489 with respect to current_function_decl. Pass decl of the function.
1490 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
1491 * ipa-inline.c (compute_inline_parameters): Pass decl to
1492 estimated_stack_frame_size.
1494 2010-07-08 Richard Guenther <rguenther@suse.de>
1496 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
1498 (valueize_refs): Call it.
1500 2010-07-08 Richard Guenther <rguenther@suse.de>
1502 PR rtl-optimization/44838
1503 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
1504 SSA form do not use pointer equivalence.
1506 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1508 * dwarf2out.c (AT_linkage_name): Delete.
1509 (add_linkage_attr): New function.
1510 (add_linkage_name): Call it to emit the linkage attribute.
1511 (dwarf2out_finish): Likewise.
1512 (move_linkage_attr): Explicitly accept both attribute variants.
1514 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1516 * toplev.h: Do not include diagnostic-core.h.
1517 Include diagnostic-core.h in every file that includes toplev.h.
1518 * c-tree.h: Do not include toplev.h.
1519 * pretty-print.h: Update comment.
1520 * Makefile.in: Update dependencies.
1521 * alias.c: Include diagnostic-core.h in every file that includes
1523 * attribs.c: Likewise.
1524 * auto-inc-dec.c: Likewise.
1525 * bb-reorder.c: Likewise.
1526 * bt-load.c: Likewise.
1527 * caller-save.c: Likewise.
1528 * calls.c: Likewise.
1530 * cfganal.c: Likewise.
1531 * cfgbuild.c: Likewise.
1532 * cfgcleanup.c: Likewise.
1533 * cfghooks.c: Likewise.
1534 * cfgloop.c: Likewise.
1535 * combine.c: Likewise.
1536 * config/alpha/alpha.c: Likewise.
1537 * config/arc/arc.c: Likewise.
1538 * config/arm/arm.c: Likewise.
1539 * config/arm/pe.c: Likewise.
1540 * config/avr/avr.c: Likewise.
1541 * config/bfin/bfin.c: Likewise.
1542 * config/cris/cris.c: Likewise.
1543 * config/crx/crx.c: Likewise.
1544 * config/darwin-c.c: Likewise.
1545 * config/darwin.c: Likewise.
1546 * config/fr30/fr30.c: Likewise.
1547 * config/frv/frv.c: Likewise.
1548 * config/h8300/h8300.c: Likewise.
1549 * config/host-darwin.c: Likewise.
1550 * config/i386/i386.c: Likewise.
1551 * config/i386/netware.c: Likewise.
1552 * config/i386/nwld.c: Likewise.
1553 * config/i386/winnt-cxx.c: Likewise.
1554 * config/i386/winnt-stubs.c: Likewise.
1555 * config/i386/winnt.c: Likewise.
1556 * config/ia64/ia64-c.c: Likewise.
1557 * config/ia64/ia64.c: Likewise.
1558 * config/iq2000/iq2000.c: Likewise.
1559 * config/lm32/lm32.c: Likewise.
1560 * config/m32c/m32c-pragma.c: Likewise.
1561 * config/m32c/m32c.c: Likewise.
1562 * config/m32r/m32r.c: Likewise.
1563 * config/m68hc11/m68hc11.c: Likewise.
1564 * config/m68k/m68k.c: Likewise.
1565 * config/mcore/mcore.c: Likewise.
1566 * config/mep/mep-pragma.c: Likewise.
1567 * config/mep/mep.c: Likewise.
1568 * config/mmix/mmix.c: Likewise.
1569 * config/mn10300/mn10300.c: Likewise.
1570 * config/moxie/moxie.c: Likewise.
1571 * config/pa/pa.c: Likewise.
1572 * config/pdp11/pdp11.c: Likewise.
1573 * config/picochip/picochip.c: Likewise.
1574 * config/rs6000/rs6000-c.c: Likewise.
1575 * config/rs6000/rs6000.c: Likewise.
1576 * config/rx/rx.c: Likewise.
1577 * config/s390/s390.c: Likewise.
1578 * config/score/score.c: Likewise.
1579 * config/score/score3.c: Likewise.
1580 * config/score/score7.c: Likewise.
1581 * config/sh/sh.c: Likewise.
1582 * config/sh/symbian-base.c: Likewise.
1583 * config/sh/symbian-c.c: Likewise.
1584 * config/sh/symbian-cxx.c: Likewise.
1585 * config/sol2-c.c: Likewise.
1586 * config/sol2.c: Likewise.
1587 * config/sparc/sparc.c: Likewise.
1588 * config/spu/spu.c: Likewise.
1589 * config/stormy16/stormy16.c: Likewise.
1590 * config/v850/v850-c.c: Likewise.
1591 * config/v850/v850.c: Likewise.
1592 * config/vax/vax.c: Likewise.
1593 * config/vxworks.c: Likewise.
1594 * config/xtensa/xtensa.c: Likewise.
1595 * convert.c: Likewise.
1597 * cselib.c: Likewise.
1598 * dbgcnt.c: Likewise.
1599 * dbxout.c: Likewise.
1601 * dominance.c: Likewise.
1602 * emit-rtl.c: Likewise.
1603 * explow.c: Likewise.
1604 * expmed.c: Likewise.
1605 * fixed-value.c: Likewise.
1606 * fold-const.c: Likewise.
1607 * fwprop.c: Likewise.
1609 * ggc-common.c: Likewise.
1610 * ggc-page.c: Likewise.
1611 * ggc-zone.c: Likewise.
1612 * gimple-low.c: Likewise.
1613 * gimplify.c: Likewise.
1614 * graph.c: Likewise.
1615 * haifa-sched.c: Likewise.
1616 * ifcvt.c: Likewise.
1617 * implicit-zee.c: Likewise.
1618 * integrate.c: Likewise.
1619 * ira-build.c: Likewise.
1620 * ira-color.c: Likewise.
1621 * ira-conflicts.c: Likewise.
1622 * ira-costs.c: Likewise.
1623 * ira-lives.c: Likewise.
1625 * lists.c: Likewise.
1626 * loop-doloop.c: Likewise.
1627 * loop-iv.c: Likewise.
1628 * lto-opts.c: Likewise.
1629 * lto-symtab.c: Likewise.
1631 * modulo-sched.c: Likewise.
1632 * optabs.c: Likewise.
1633 * params.c: Likewise.
1634 * plugin.c: Likewise.
1635 * postreload-gcse.c: Likewise.
1636 * postreload.c: Likewise.
1637 * predict.c: Likewise.
1638 * profile.c: Likewise.
1640 * regcprop.c: Likewise.
1641 * reginfo.c: Likewise.
1642 * regmove.c: Likewise.
1643 * reorg.c: Likewise.
1644 * resource.c: Likewise.
1646 * rtlanal.c: Likewise.
1647 * sched-deps.c: Likewise.
1648 * sched-ebb.c: Likewise.
1649 * sched-rgn.c: Likewise.
1650 * sdbout.c: Likewise.
1651 * sel-sched-dump.c: Likewise.
1652 * sel-sched-ir.c: Likewise.
1653 * simplify-rtx.c: Likewise.
1655 * stor-layout.c: Likewise.
1656 * store-motion.c: Likewise.
1657 * targhooks.c: Likewise.
1658 * tree-cfg.c: Likewise.
1659 * tree-cfgcleanup.c: Likewise.
1660 * tree-dump.c: Likewise.
1661 * tree-eh.c: Likewise.
1662 * tree-inline.c: Likewise.
1663 * tree-nomudflap.c: Likewise.
1664 * tree-object-size.c: Likewise.
1665 * tree-optimize.c: Likewise.
1666 * tree-outof-ssa.c: Likewise.
1667 * tree-phinodes.c: Likewise.
1668 * tree-profile.c: Likewise.
1669 * tree-ssa-ccp.c: Likewise.
1670 * tree-ssa-coalesce.c: Likewise.
1671 * tree-ssa-live.c: Likewise.
1672 * tree-ssa-loop-niter.c: Likewise.
1673 * tree-ssa-loop-prefetch.c: Likewise.
1674 * tree-ssa-loop.c: Likewise.
1675 * tree-ssa-structalias.c: Likewise.
1676 * tree-ssa-uninit.c: Likewise.
1677 * tree-ssa.c: Likewise.
1678 * tree-vect-data-refs.c: Likewise.
1679 * tree-vect-loop-manip.c: Likewise.
1680 * tree-vect-loop.c: Likewise.
1681 * tree-vect-patterns.c: Likewise.
1682 * tree-vect-stmts.c: Likewise.
1683 * tree-vrp.c: Likewise.
1684 * varasm.c: Likewise.
1687 * xcoffout.c: Likewise.
1689 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
1691 * gengtype.c (write_field_root): New function.
1692 (write_root): Use it.
1694 2010-07-07 Wei Guozhi <carrot@google.com>
1696 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
1697 of lowest bits to lshift/compare): Add a missing line.
1699 2010-07-07 Wei Guozhi <carrot@google.com>
1701 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
1702 of lowest bits to lshift/compare): New.
1704 2010-07-07 Tom Tromey <tromey@redhat.com>
1706 * doc/tm.texi: Update.
1707 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
1709 * target.def (want_debug_pub_sections): New hook.
1710 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
1711 * dwarf2out.c (add_pubname_string): Check
1712 targetm.want_debug_pub_sections.
1713 (add_pubname): Likewise.
1714 (add_pubtype): Likewise.
1716 2010-07-07 Jie Zhang <jie@codesourcery.com>
1718 * genautomata.c (output_automata_list_min_issue_delay_code):
1719 Correctly decompress min_issue_delay.
1721 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
1723 PR rtl-optimization/44404
1724 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
1725 possible, use reg_overlap_mentioned_p instead.
1727 2010-07-07 Duncan Sands <baldrick@free.fr>
1730 * tree.c (build_function_type_skip_args): Copy the original type using
1731 build_distinct_type_copy rather than copy_node.
1733 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
1736 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
1738 (ix86_expand_prologue): Likewise.
1739 (ix86_handle_fndecl_attribute): Likewise.
1740 (ix86_asm_declare_function_name): Likewise.
1741 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1742 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1743 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
1744 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
1745 * doc/extend.texi: Likewise.
1747 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
1750 * config/i386/i386.md (rdrand<mode>): Changed to expand to
1751 retry if the carry flag isn't valid.
1752 (rdrand<mode>_1): New.
1754 2010-07-07 Richard Guenther <rguenther@suse.de>
1757 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
1758 for expanding the constant offset for MEM_REFs.
1760 2010-07-07 Richard Guenther <rguenther@suse.de>
1762 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
1763 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
1764 * gimple.h (is_gimple_operand): Remove.
1765 * gimple.c (is_gimple_operand): Likewise.
1766 (walk_gimple_op): Fix wi->val_only setting for calls.
1767 * tree-cfg.c (verify_gimple_call): Fix argument validation.
1768 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
1769 invalid gimple calls.
1771 2010-07-06 Jan Hubicka <jh@suse.cz>
1773 * lto-cgraph.c (output_cgraph): Add missing declaration.
1775 2010-07-06 Jan Hubicka <jh@suse.cz>
1777 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
1780 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
1782 * doc/gimple.texi (GIMPLE_DEBUG): Document.
1783 * doc/rtl.texi (Debug Information): New node.
1784 (NOTE_INSN_VAR_LOCATION): Document.
1785 (debug_insn): Likewise.
1786 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
1788 2010-07-07 Jan Hubicka <jh@suse.cz>
1790 With parts by Richard Guenther.
1793 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
1794 for functions passed by reference.
1795 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
1796 in memory when passed by reference.
1797 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
1799 * ipa-split.c (split_function): Cleanup way return value is passed;
1800 handle SSA DECL_BY_REFERENCE retvals.
1801 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
1802 DECL_BY_REFERENCE is set.
1803 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
1804 find_what_p_points_to): Handle RESULT_DECL.
1805 * tree-inline.c (declare_return_variable): Get new entry_block argument;
1806 when passing by reference ensure that RESULT_DECL is gimple_val.
1807 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
1808 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
1810 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
1812 PR rtl-optimization/44787
1813 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
1814 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
1816 2010-07-06 Jan Hubicka <jh@suse.cz>
1818 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
1819 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
1820 with body can prevail.
1821 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
1822 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
1823 * cgraph.c (cgraph_get_node_or_alias): New function.
1824 * cgraph.h (cgraph_get_node_or_alias): Declare.
1826 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
1828 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
1830 (ix86_expand_prologue): Likewise.
1831 (ix86_handle_fndecl_attribute): Likewise.
1832 (ix86_asm_declare_function_name): New function for
1833 ASM_DECLARE_FUNCTION_NAME.
1834 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
1835 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
1836 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
1837 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
1838 * doc/extend.texi: Adjust documentation about ms_hook_prologue
1841 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
1843 * config/i386/i386.md (immediate_operand): New mode attribute.
1845 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
1846 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
1847 using P mode iterator.
1848 (pro_epilogue_adjust_stack_di_2): Rename from
1849 pro_epilogue_adjust_stack_rex64_2.
1851 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
1853 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
1855 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
1856 through gen_mov_insv_1 function pointer.
1857 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
1858 gen_truncxf<mode>2 through gen_truncxf function pointer.
1859 (remainder<mode>3): Ditto.
1860 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
1861 (allocate_stack): Call gen_allocate_stack_worker_64 or
1862 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
1864 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
1867 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
1869 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
1870 operand constraint instead of <r><i>m.
1872 2010-07-06 Richard Guenther <rguenther@suse.de>
1875 * convert.c (convert_to_integer): Watch out for overflowing
1878 2010-07-05 Jan Hubicka <jh@suse.cz>
1880 * lto-streamer.c (write_symbol_vec): Rename to ...
1881 (write_symbol) ... this one; write only symbol given and when
1882 present in cache. Sanity check that what is defined is present
1883 in cgraph/varpool with body/finalized decl.
1884 (write_symbols_of_kind): Remove.
1885 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
1886 pairs to produce symtab.
1887 (produce_asm_for_decls): Update call of produce_symtab; don't do so
1888 when doing WPA streaming.
1890 2010-07-05 Jan Hubicka <jh@suse.cz>
1892 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
1893 function is still available to fold into.
1895 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
1897 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
1898 * function.h (struct_function): Change type of local_decls field
1900 (add_local_decl): New function.
1901 (FOR_EACH_LOCAL_DECL): New macro.
1902 * cfgexpand.c (init_vars_expansion): Adjust for new type of
1904 (estimated_stack_frame_size): Likewise.
1905 (expand_used_vars): Likewise.
1906 * cgraphbuild.c (build_cgraph_edges): Likewise.
1907 * function.c (instantiate_decls_1): Likewise.
1908 * ipa-struct-reorg.c (build_data_structure): Likewise.
1909 * ipa-type-escape.c (analyze_function): Likewise.
1910 * lto-streamer-in.c (input_function): Likewise.
1911 * lto-streamer-out.c (output_function): Likewise.
1912 * tree-ssa-live.c (remove_unused_locals): Likewise.
1913 * tree.c (free_lang_data_in_decl): Likewise.
1914 (find_decls_types_in_node): Likewise.
1915 * omp-low.c (remove_exit_barrier): Likewise.
1916 (expand_omp_taskreg): Likewise.
1917 (list2chain): Rename to...
1918 (vec2chain): ...this. Adjust.
1919 * cgraphunit.c (assemble_thunk): Call add_local_decl.
1920 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
1921 * gimple-low.c (record_vars_into): Likewise.
1922 * tree-inline.c (remap_decls): Likewise.
1923 (declare_return_variable): Likewise.
1924 (declare_inline_vars): Likewise.
1925 (copy_forbidden): Adjust for new type of cfun->local_decls.
1926 (add_local_variables): New function.
1927 (expand_call_inline): Call it.
1928 (tree_function_versioning): Likewise.
1930 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
1932 AVX Programming Reference (June, 2010)
1933 * config/i386/cpuid.h (bit_F16C): New.
1934 (bit_RDRND): Likewise.
1935 (bit_FSGSBASE): Likewise.
1937 * config/i386/i386-builtin-types.def: Add
1938 "DEF_FUNCTION_TYPE (UINT16)", function types for
1939 float16 <-> float conversions and
1940 "DEF_FUNCTION_TYPE (VOID, UINT64)".
1942 * config/i386/i386-c.c (ix86_target_macros_internal): Support
1943 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
1944 OPTION_MASK_ISA_F16C.
1946 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
1947 (OPTION_MASK_ISA_RDRND_SET): Likewise.
1948 (OPTION_MASK_ISA_F16C_SET): Likewise.
1949 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
1950 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
1951 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
1952 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
1953 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
1954 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
1955 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
1956 (override_options): Handle them.
1957 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
1958 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
1959 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
1960 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
1961 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
1962 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
1963 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
1964 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
1965 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
1966 (bdesc_args): Likewise.
1967 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
1968 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
1969 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
1970 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
1971 Handle non-memory store.
1973 * config/i386/i386.h (TARGET_FSGSBASE): New.
1974 (TARGET_RDRND): Likewise.
1975 (TARGET_F12C): Likewise.
1977 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
1978 (UNSPEC_VCVTPS2PH): Likewise.
1979 (UNSPECV_RDFSBASE): Likewise.
1980 (UNSPECV_RDGSBASE): Likewise.
1981 (UNSPECV_WRFSBASE): Likewise.
1982 (UNSPECV_WRGSBASE): Likewise.
1983 (UNSPECV_RDRAND): Likewise.
1984 (rdfsbase<mode>): Likewise.
1985 (rdgsbase<mode>): Likewise.
1986 (wrfsbase<mode>): Likewise.
1987 (wrgsbase<mode>): Likewise.
1988 (rdrand<mode>): Likewise.
1990 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
1992 * config/i386/immintrin.h (_rdrand_u16): New.
1993 (_rdrand_u32): Likewise.
1994 (_readfsbase_u32): Likewise.
1995 (_readfsbase_u64): Likewise.
1996 (_readgsbase_u32): Likewise.
1997 (_readgsbase_u64): Likewise.
1998 (_writefsbase_u32): Likewise.
1999 (_writefsbase_u64): Likewise.
2000 (_writegsbase_u32): Likewise.
2001 (_writegsbase_u64): Likewise.
2002 (_rdrand_u64): Likewise.
2003 (_cvtsh_ss): Likewise.
2004 (_mm_cvtph_ps): Likewise.
2005 (_mm256_cvtph_ps): Likewise.
2006 (_cvtss_sh): Likewise.
2007 (_mm_cvtps_ph): Likewise.
2008 (_mm256_cvtps_ph): Likewise.
2010 * config/i386/sse.md (vcvtph2ps): New.
2011 (*vcvtph2ps_load): Likewise.
2012 (vcvtph2ps256): Likewise.
2013 (vcvtps2ph): Likewise.
2014 (*vcvtps2ph): Likewise.
2015 (*vcvtps2ph_store): Likewise.
2016 (vcvtps2ph256): Likewise.
2018 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
2020 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
2022 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
2025 * genenums.c (main): Output include of insn-constants.h
2026 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
2028 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
2030 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
2031 (override_options): Initialize it.
2032 (ix86_expand_prologue): Use it.
2034 2010-07-05 Jakub Jelinek <jakub@redhat.com>
2036 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
2038 2010-07-05 Anatoly Sokolov <aesok@post.ru>
2040 * double-int.h (fit_double_type): Remove declaration.
2041 * double-int.c (fit_double_type): Remove function.
2042 * tree.h (int_fits_type_p): Adjust prototype.
2043 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
2044 instead of fit_double_type.
2045 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
2046 instead of fit_double_type and build_int_cst_wide.
2047 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
2048 instead of fit_double_type and build_int_cst_wide.
2049 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
2052 2010-07-05 Jan Hubicka <jh@suse.cz>
2054 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
2056 * lto-cgraph.c (referenced_from_other_partition_p,
2057 reachable_from_other_partition_p): Use in_other_partition flags.
2058 (output_node, output_varpool_node): COMDAT nodes always have private
2059 copies and thus are never used from other partition.
2061 2010-07-05 Anatoly Sokolov <aesok@post.ru>
2063 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
2064 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
2065 * config/ia64/ia64.c Include reload.h.
2066 (ia64_memory_move_cost): New function.
2067 (TARGET_MEMORY_MOVE_COST): Define.
2068 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
2071 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
2074 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
2075 comments about cost model.
2076 (try_add_cand_for): Add second strategy for choosing initial set
2077 based on original IVs, controlled by ORIGINALP argument.
2078 (get_initial_solution): Add ORIGINALP argument.
2079 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
2080 (find_optimal_iv_set): Try two different strategies for choosing
2081 the IV set, and return the one with lower cost.
2083 2010-07-05 Richard Guenther <rguenther@suse.de>
2085 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
2087 2010-07-05 Richard Guenther <rguenther@suse.de>
2089 * tree.c (reference_alias_ptr_type): New function.
2090 * tree.h (reference_alias_ptr_type): Declare.
2091 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
2092 allow non-TARGET_MEM_REF new refs.
2093 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
2094 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
2095 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
2096 (create_mem_ref): Get alias pointer type. Adjust calls to
2098 (maybe_fold_tmr): Likewise.
2099 * tree-flow.h (create_mem_ref): Adjust prototype.
2101 2010-07-05 Jakub Jelinek <jakub@redhat.com>
2104 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
2105 *from_p is VAR_DECL.
2107 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
2109 * tree.h (build_call_list): Remove.
2110 * tree.c (build_call_list): Remove.
2112 2010-07-05 Richard Guenther <rguenther@suse.de>
2114 * double-int.h (double_int_sub): Declare.
2115 * double-int.c (double_int_sub): New function.
2116 * dwarf2out.c (field_byte_offset): Use it.
2117 * fixed-value.c (do_fixed_add): Likewise.
2118 (do_fixed_multiply): Likewise.
2119 (do_fixed_divide): Likewise.
2120 * tree-predcom.c (add_ref_to_chain): Likewise.
2121 (determine_roots_comp): Likewise.
2122 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
2124 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
2126 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
2129 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
2131 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
2132 * arm-modes.def (CC_NOTB): Don't define.
2133 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
2134 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
2135 (LTUGEU): New code_iterator.
2136 (cnb, optab): New corresponding code_attrs.
2137 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
2138 to canonical form. Operands 1 and 2 are commutative. Parametrize
2140 (addsi3_carryin_shift_<optab>): Likewise.
2141 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
2142 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
2143 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
2144 (subsi3_compare): Renamed from subsi3_compare0_c.
2145 Change CC_NOTB to CC.
2146 (arm_subsi3_insn): Allow constants for operand 0.
2147 (compare_scc peephole for eq case): New.
2148 (compare_scc splitters): Change CC_NOTB to CC.
2150 2010-07-05 Richard Guenther <rguenther@suse.de>
2152 * tree-ssa-loop-im.c (for_each_index): Do not handle
2154 (gen_lsm_tmp_name): Likewise.
2155 * tree-dump.c (dequeue_and_dump): Likewise.
2156 * tree-pretty-print.c (dump_generic_node): Likewise.
2157 (op_code_prio): Likewise.
2158 (op_symbol_code): Likewise.
2159 * tree.c (staticp): Likewise.
2160 (build1_stat): Likewise.
2161 * tree.h (INDIRECT_REF_P): Likewise.
2162 * fold-const.c (maybe_lvalue_p): Likewise.
2163 (operand_equal_p): Likewise.
2164 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2165 (ao_ref_init_from_vn_reference): Likewise.
2166 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
2167 (find_interesting_uses_address): Likewise.
2168 * dwarf2out.c (loc_list_from_tree): Likewise.
2169 * gimplify.c (gimplify_expr): Likewise.
2170 * tree-eh.c (tree_could_trap_p): Likewise.
2171 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
2172 * cfgexpand.c (expand_debug_expr): Likewise.
2173 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2174 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
2175 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
2176 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
2177 * tree-ssa-operands.c (get_expr_operands): Likewise.
2178 * expr.c (safe_from_p): Likewise.
2179 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
2180 * tree-vect-data-refs.c (vect_setup_realignment): Build
2181 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
2182 * tree-vect-stmts.c (vectorizable_load): Likewise.
2183 * tree.def (ALIGN_INDIRECT_REF): Remove.
2185 2010-07-05 Richard Guenther <rguenther@suse.de>
2187 PR tree-optimization/44784
2188 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
2190 (find_or_generate_expression): Fix SCCVN insertion check.
2192 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
2194 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
2195 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
2196 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
2199 2010-07-05 Ira Rosen <irar@il.ibm.com>
2201 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
2202 statements that are not vectorized.
2203 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
2206 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
2209 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
2211 2010-07-05 Richard Guenther <rguenther@suse.de>
2213 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
2214 RESULT_DECLs properly.
2216 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
2218 PR rtl-optimization/44695
2219 * config/i386/i386.md (extract_code): Removed.
2220 (<u>divmodqi4): Likewise.
2222 (udivmodqi4): Likewise.
2223 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
2224 (udivmodhiqi3): Likewise.
2226 2010-07-04 Jan Hubicka <jh@suse.cz>
2228 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
2230 2010-07-04 Jan Hubicka <jh@suse.cz>
2232 * cgraphunit.c (init_cgraph): Only initialize dump file if it
2233 is not already initialized.
2235 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
2237 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
2238 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
2239 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
2240 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
2241 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
2242 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
2243 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
2244 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
2245 (sync_new_nand_optab): Redefine as macros.
2246 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
2248 (direct_optab_index): New enum.
2249 (direct_optab_d): New structure.
2250 (direct_optab): New typedef.
2251 (direct_optab_table): Declare.
2252 (direct_optab_handler, set_direct_optab_handler): New functions.
2253 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
2254 (sync_lock_release_optab): New macros.
2255 * optabs.c (direct_optab_table): New variable.
2256 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
2257 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
2258 cmpstr_optab and cmpstrn_optab.
2259 (emit_conditional_move): Likewise for movcc_optab.
2260 (can_conditionally_move_p): Likewise for movcc_gen_code.
2261 (init_insn_codes): Clear direct_optab_table.
2262 (init_optabs): Don't initialize the new "direct optabs" here.
2263 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
2265 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
2266 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
2267 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
2268 (expand_sync_operation): Likewise other sync_*_optabs.
2269 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
2270 to sync_compare_and_swap_optab.
2271 (expand_sync_lock_test_and_set): Use direct_optab_handler for
2272 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
2273 to the names of both.
2274 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
2275 cmpstr_optab and cmpstrn_optab.
2276 (expand_builtin_lock_release): Likewise sync_lock_release.
2277 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
2278 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
2279 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
2280 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
2281 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
2282 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
2283 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
2284 (sync_lock_test_and_set, sync_lock_release): Delete.
2285 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
2286 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
2287 * genopinit.c (optabs): Use set_direct_optab_handler for the new
2289 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
2290 the "optab" local variable. Use direct_optab_handler for optab and
2291 sync_compare_and_swap_optab.
2292 * reload1.c (reload_in_optab, reload_out_optab): Delete.
2293 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
2294 reload_in_optab and reload_out_optab.
2295 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
2296 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
2297 * config/pa/pa.c (pa_secondary_reload): Likewise.
2298 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
2299 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
2300 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
2301 (VMSupportsCS8_builtin): Likewise.
2303 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
2305 * optabs.h (optab_handlers): Change type of insn_code to int.
2306 (optab_handler, set_optab_handler, convert_optab_handler)
2307 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
2309 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
2310 (init_insn_codes): Zero both the above arrays.
2311 (init_optabs): Never call init_insn_codes first time around.
2313 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
2315 * optabs.h (optab_handler, convert_optab_handler): Turn into
2316 inline functions that return an insn code.
2317 (set_optab_handler, set_convert_optab_handler): New functions.
2318 * builtins.c: Replace optab_handler(X)->insn_code with
2319 optab_handler or set_optab_handler thoughout. Likewise
2320 convert_optab_handler(X)->insn_code with convert_optab_handler
2321 and set_convert_optab_handler.
2322 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
2323 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
2324 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
2325 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
2326 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
2327 config/spu/spu.c: Likewise.
2329 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
2332 * config.gcc (sh*-*-*): Use regular expressions instead of
2333 the 'i' modifier for sed substitutions.
2335 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
2337 * gimple.c (gimple_body): Comments added.
2339 2010-07-04 Richard Guenther <rguenther@suse.de>
2342 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
2345 2010-07-04 Richard Guenther <rguenther@suse.de>
2347 PR tree-optimization/44479
2348 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
2349 extra SSA name copy statements which preserves points-to
2351 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2352 Copy points-to information for all pointers. Properly handle
2354 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
2356 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
2359 2010-07-04 Richard Guenther <rguenther@suse.de>
2362 * tree-inline.c (initialize_inlined_parameters): Do not
2363 re-use pointer-map slot over remap_type call.
2365 2010-07-04 Richard Guenther <rguenther@suse.de>
2367 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
2369 2010-07-04 Richard Guenther <rguenther@suse.de>
2371 PR tree-optimization/44656
2372 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
2373 again after value-replacing in the defintions lhs.
2375 2010-07-04 Ira Rosen <irar@il.ibm.com>
2376 Revital Eres <eres@il.ibm.com>
2378 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
2379 Document new arguments.
2380 * doc/tm.texi: Regenerate.
2381 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
2382 Handle unaligned store.
2383 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
2384 * target.def (builtin_vectorization_cost): Add new arguments.
2385 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
2386 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
2387 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
2388 (vect_vfa_segment_size): Fix indentation.
2389 * tree-vectorizer.h (struct _vect_peel_info): New.
2390 (struct _vect_peel_extended_info): New.
2391 (struct _loop_vec_info): Add new field for peeling hash table and a
2392 macro for its access.
2393 (VECT_MAX_COST): Define.
2394 (vect_get_load_cost): Declare.
2395 (vect_get_store_cost, vect_get_known_peeling_cost,
2396 vect_get_single_scalar_iteraion_cost): Likewise.
2397 (vect_supportable_dr_alignment): Add new argument.
2398 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
2400 (destroy_loop_vec_info): Free peeling hash table.
2401 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
2402 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
2403 vect_analyze_slp. Fix indentation.
2404 (vect_get_single_scalar_iteraion_cost): New function.
2405 (vect_get_known_peeling_cost): Likewise.
2406 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
2407 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
2408 statement. Move outside cost calculation inside unknown peeling case.
2409 Call vect_get_known_peeling_cost for known amount of peeling.
2410 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
2411 reference to the print message of forced alignment.
2412 (vect_verify_datarefs_alignment): Update call to
2413 vect_supportable_dr_alignment.
2414 (vect_get_data_access_cost): New function.
2415 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
2416 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
2417 vect_peeling_hash_choose_best_peeling): Likewise.
2418 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
2419 to store all the accesses in the loop and find best possible access to
2420 align using peeling for known alignment case. For unknown alignment
2421 check if stores are preferred or if peeling is worthy.
2422 (vect_find_same_alignment_drs): Analyze pairs of loads too.
2423 (vect_supportable_dr_alignment): Add new argument and check aligned
2424 accesses according to it.
2425 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
2426 (cost_for_stmt): Call vect_get_stmt_cost.
2427 (vect_model_simple_cost): Likewise.
2428 (vect_model_store_cost): Call vect_get_stmt_cost. Call
2429 vect_get_store_cost to calculate the cost of the statement.
2430 (vect_get_store_cost): New function.
2431 (vect_model_load_cost): Call vect_get_stmt_cost. Call
2432 vect_get_load_cost to calculate the cost of the statement.
2433 (vect_get_load_cost): New function.
2434 (vectorizable_store): Update call to vect_supportable_dr_alignment.
2435 (vectorizable_load): Likewise.
2436 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
2437 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
2438 arguments. Handle unaligned store.
2439 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
2440 (rs6000_builtin_support_vector_misalignment): Return true for word and
2441 double word alignments for VSX.
2442 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
2443 vect_supportable_dr_alignment and builtin_vectorization_cost.
2445 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2448 * config/pa/predicates.md (prefetch_cc_operand): Remove.
2449 (prefetch_nocc_operand): Likewise.
2450 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
2451 (prefetch_20): New insn.
2452 (prefetch_cc): Remove.
2453 (prefetch_nocc): Likewise.
2455 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2457 * expr.c (vector_mode_valid_p): Move to c-common.c.
2458 * expr.h (vector_mode_valid_p): Do not declare here.
2459 * system.h: Poison GCC_EXPR_H in front-ends.
2460 * Makefile.in: Update dependencies.
2462 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2465 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
2467 2010-07-03 Jan Hubicka <jh@suse.cz>
2469 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
2470 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
2471 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
2472 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
2475 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
2477 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
2478 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
2479 TV_IPA_LTO_DECL_OUT): New.
2480 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
2482 2010-07-03 Jan Hubicka <jh@suse.cz>
2484 * ipa-inline.c (update_edge_key): Break out from ...
2485 update_callers_keys): ... here;
2486 (update_callee_keys): Update only the edges from caller to callee.
2487 (update_all_calle_keys): Do what update_calle_keys did.
2488 (decide_inlining_of_small_functions): Avoid recomputing of all
2489 callees when badness increase.
2491 2010-07-03 Jie Zhang <jie@codesourcery.com>
2493 * config/arm/arm.c (arm_attr_length_move_neon): New.
2494 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
2495 * config/arm/neon.md (define_mode_attr V_slen): Remove.
2496 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
2497 to compute length attribute.
2499 2010-07-03 Jie Zhang <jie@codesourcery.com>
2501 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
2502 as predicate for operand 1 and remove its constraint.
2503 * config/arm/predicates.md (vfp_register_operand): New.
2504 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
2505 (*push_fp_multi): Likewise.
2507 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
2509 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
2511 2010-07-03 Jan Hubicka <jh@suse.cz>
2513 * config/i386/i386.c (override_options): Revert accidental commit.
2515 2010-07-02 Le-Chun Wu <lcwu@google.com>
2518 * doc/invoke.texi: Update documentation of -Wshadow.
2520 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2521 Julian Brown <julian@codesourcery.com>
2522 Sandra Loosemore <sandra@codesourcery.com>
2524 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
2525 comparisons. Adjust to take both operands.
2526 (arm_select_cc_mode): Handle DImode comparisons.
2527 (arm_gen_compare_reg): Generate a scratch register for DImode
2528 comparisons which require one. Use xor for Thumb equality checks.
2529 (arm_const_double_by_immediates): New.
2530 (arm_print_operand): Allow 'Q' and 'R' for constants.
2531 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
2532 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
2533 arm_canonicalize_comparison.
2534 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
2535 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
2537 (arm_const_double_by_immediates): Declare.
2538 * config/arm/constraints.md (Di): New constraint.
2539 * config/arm/predicates.md (arm_immediate_di_operand)
2540 (arm_di_operand, cmpdi_operand): New.
2541 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
2542 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
2543 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
2544 (cstoredi4): Handle non-Cirrus also.
2546 2010-07-02 Julian Brown <julian@codesourcery.com>
2547 Sandra Loosemore <sandra@codesourcery.com>
2550 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
2551 (smax<mode>3): Disable for NEON float modes when
2552 flag_unsafe_math_optimizations is false.
2553 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
2555 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
2556 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
2557 for NEON float modes when flag_unsafe_math_optimizations is false.
2558 (quad_halves_<code>v4sf): Only enable if
2559 flag_unsafe_math_optimizations is true.
2560 * doc/invoke.texi (ARM Options): Add note about floating point
2561 vectorization requiring -funsafe-math-optimizations.
2563 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2564 Julian Brown <julian@codesourcery.com>
2566 * config/arm/neon.md (UNSPEC_VABA): Delete.
2567 (UNSPEC_VABAL): Delete.
2568 (UNSPEC_VABS): Delete.
2569 (UNSPEC_VMUL_N): Delete.
2572 (mul<mode>3add<mode>_neon): Make the pattern named.
2573 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
2574 (neon_vadd<mode>): Replace with define_expand, and move the remaining
2576 (neon_vadd<mode>_unspec): ...to this.
2577 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
2578 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
2579 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
2580 (neon_vaba<mode>): Rewrite in terms of vabd.
2581 (neon_vabal<mode>): Rewrite in terms of vabdl.
2582 (neon_vabs<mode>): Rewrite without unspec.
2583 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
2584 (*arm_subdi3): Likewise.
2585 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
2586 No_op attribute to disable assembly output checks.
2587 * config/arm/arm_neon.h: Regenerated.
2588 * doc/arm-neon-intrinsics.texi: Regenerated.
2590 2010-07-02 Jan Hubicka <jh@suse.cz>
2592 * ipa-split.c (split_function): For aggregate values, set the return
2593 slot optimization bit. When passing DECL_BY_REFERENCE, produce
2594 *<retval> = fncall.part ().
2595 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
2597 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2599 * config/arm/neon.md (UNSPEC_VAND): Delete.
2600 (UNSPEC_VBIC): Delete.
2601 (UNSPEC_VCLZ): Delete.
2602 (UNSPEC_VCNT): Delete.
2603 (UNSPEC_VEOR): Delete.
2604 (UNSPEC_VORN): Delete.
2605 (UNSPEC_VORR): Delete.
2606 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
2608 (anddi3_neon): Likewise.
2609 (orndi3_neon): Likewise.
2610 (bicdi3_neon): Likewise.
2611 (xordi3_neon): Likewise.
2612 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
2613 rid of unspec and handle unused operand.
2614 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
2615 * config/arm/predicates.md (imm_for_neon_logic_operand):
2616 Require TARGET_NEON.
2617 (imm_for_neon_inv_logic_operand): Likewise.
2618 * config/arm/arm.md (define_split for logical_binary_operator):
2619 Disable for NEON registers.
2620 (anddi3): Add new define_expand, and rename the insn. Disable
2621 this insn for NEON, where anddi3_neon now applies.
2622 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
2623 (iordi3): As for anddi3.
2625 * config/arm/neon.ml (Vand): Split DImode variants and mark them
2626 as No_op to disable testing for exact instruction match.
2631 * config/arm/arm_neon.h: Regenerated.
2632 * doc/arm-neon-intrinsics.texi: Regenerated.
2634 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
2636 * expr.h (emit_stack_probe): Declare.
2637 * explow.c (emit_stack_probe): Make global.
2638 (anti_adjust_stack_and_probe): Fix comments.
2639 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
2640 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2641 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2642 * config/sparc/sparc.c: Include except.h.
2643 (sparc_emit_probe_stack_range): New function.
2644 (output_probe_stack_range): Likewise.
2645 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
2646 built-in stack checking is enabled.
2647 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
2648 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
2649 (probe_stack_range): New insn.
2651 2010-07-02 Richard Guenther <rguenther@suse.de>
2654 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
2655 for argument alignment.
2657 2010-07-02 Jan Hubicka <jh@suse.cz>
2659 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
2660 walk backwards from entry_bb to check only those basic block of header
2661 that might lead to execution of split part.
2662 (consider_split) ... here.
2663 (find_return_bb): Allow assignment in return BB.
2665 (split_function): Fix name of cloned function; take care of updating
2666 return value in return_bb containing move.
2668 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
2671 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
2674 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
2676 * implicit-zee.c (combine_reaching_defs): Fix long lines.
2677 (is_set_with_extension_DI): Delete.
2678 (struct zero_extend_info): New structure.
2679 (add_removable_zero_extend): New function.
2680 (find_removable_zero_extends): Use note_stores to find SETs.
2681 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
2683 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
2685 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
2686 is_miss_rate_acceptable. Pull total_positions computation
2687 out of the loops. Early return if miss_positions exceeds
2688 the acceptable threshold.
2689 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
2690 is_miss_rate_acceptable after renaming of compute_miss_rate.
2692 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
2695 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
2696 of 1000) for miss rate if the address diference is greater than or
2697 equal to the cache line size (the two reference will never hit the
2700 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
2703 * config/arm/arm-modes.def (CC_NOTB): New mode.
2704 * config/arm/arm.c (get_arm_condition_code): Handle it.
2705 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
2706 * config/arm/arm.md (subsi3_compare0_c): New pattern.
2707 (compare_scc): Now a define_and_split. Add a number of extra
2708 splitters before it.
2711 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
2713 (arm_rtx_costs_1): Likewise.
2714 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
2715 * config/arm/arm.md (is_arch6): New attribute.
2716 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
2717 extendqisi2): Tighten the code somewhat, avoiding invalid
2718 RTL to occur in the expander patterns.
2719 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
2720 (thumb1_zero_extendhisi2_v6): Delete.
2721 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
2722 (thumb1_extendhisi2_v6): Delete.
2723 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
2724 (thumb1_extendqisi2_v6): Delete.
2725 (zero_extendhisi2 for register input splitter): New.
2726 (zero_extendqisi2 for register input splitter): New.
2727 (thumb1_extendhisi2 for register input splitter): New.
2728 (extendhisi2 for register input splitter): New.
2729 (extendqisi2 for register input splitter): New.
2730 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
2731 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
2732 and add support for a register alternative requiring a split.
2733 (thumb1_zero_extendqisi2): Likewise.
2734 (arm_zero_extendqisi2): Likewise.
2735 (arm_extendhisi2): Likewise.
2736 (arm_extendqisi2): Likewise.
2738 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2740 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
2741 instead of an unspec.
2742 (neon_expand_vector_init): Likewise.
2743 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
2744 (UNSPEC_VDUP_LANE): Delete.
2745 (UNSPEC VDUP_N): Delete.
2746 (UNSPEC_VGET_HIGH): Delete.
2747 (UNSPEC_VGET_LANE): Delete.
2748 (UNSPEC_VGET_LOW): Delete.
2749 (UNSPEC_VMVN): Delete.
2750 (UNSPEC_VSET_LANE): Delete.
2751 (V_double_vector_mode): New.
2752 (vec_set<mode>_internal): Make code emitted match that for the
2753 corresponding intrinsics.
2754 (vec_setv2di_internal): Likewise.
2755 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
2756 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
2757 (neon_vset_lane<mode>): Combine double and quad patterns and
2758 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
2759 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
2760 (neon_vdup_n<mode>): Rewrite RTL without unspec.
2761 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
2762 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
2763 with neon_vdup_lanev2di, adjusting the pattern from the latter
2764 to be predicable for consistency.
2765 (neon_vdup_lane<mode>_internal): New.
2766 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
2767 to avoid using an unspec.
2768 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
2769 (neon_vdup_lanev2di): Turn into a define_expand.
2770 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
2771 (neon_vget_high<mode>): Replace with....
2772 (neon_vget_highv16qi): New pattern using canonical RTL.
2773 (neon_vget_highv8hi): Likewise.
2774 (neon_vget_highv4si): Likewise.
2775 (neon_vget_highv4sf): Likewise.
2776 (neon_vget_highv2di): Likewise.
2777 (neon_vget_low<mode>): Replace with....
2778 (neon_vget_lowv16qi): New pattern using canonical RTL.
2779 (neon_vget_lowv8hi): Likewise.
2780 (neon_vget_lowv4si): Likewise.
2781 (neon_vget_lowv4sf): Likewise.
2782 (neon_vget_lowv2di): Likewise.
2784 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
2785 test for this emitting vmov.
2786 (Vset_lane): Likewise.
2790 * doc/arm-neon-intrinsics.texi: Regenerated.
2792 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2794 * config/arm/neon.md (vec_extractv2di): Correct error in register
2795 numbering to reconcile with neon_vget_lanev2di.
2797 2010-07-02 Richard Guenther <rguenther@suse.de>
2799 * tree-ssa-structalias.c (pt_solution_set_var): New function.
2800 * tree-ssa-alias.h (pt_solution_set_var): Declare.
2801 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
2802 points-to information.
2804 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
2806 * config/s390/s390.c (override_options): Adopt prefetching
2807 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
2809 2010-07-02 Jan Hubicka <jh@suse.cz>
2811 * df-problems.c (df_kill_notes): Do not collect dead notes.
2812 (df_set_note): Just call add_reg_note.
2813 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
2814 df_create_unused_note): Do not deal with lists of old notes.
2815 (df_note_bb_compute): Likewise.
2817 2010-07-02 Richard Guenther <rguenther@suse.de>
2819 * tree-ssa-structalias.c (find_func_aliases): Handle
2820 pointer alignment via BIT_AND_EXPR.
2821 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
2823 2010-07-02 Richard Guenther <rguenther@suse.de>
2825 * tree-data-ref.c (initialize_data_dependence_relation): Handle
2826 mismatching number of dimensions properly.
2828 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2831 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
2832 (lo_sum (high ...) ...) patterns generated by earlier passes.
2834 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2836 * doc/install.texi (Prerequisites): Document Perl requirement on
2838 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
2840 2010-07-02 Richard Guenther <rguenther@suse.de>
2843 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
2845 2010-07-02 Jan Hubicka <jh@suse.cz>
2848 * predict.c (predict_paths_for_bb): Handle case when control dependence
2849 BB has only abnormal edges.
2851 2010-07-02 Richard Guenther <rguenther@suse.de>
2853 PR tree-optimization/44748
2854 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
2855 the embedded conversion in MEM_REFs.
2857 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
2859 * reload.c: Include toplev.h.
2860 * recog.c: Likewise.
2861 * Makefile.in: Adjust dependencies.
2863 2010-07-01 Jakub Jelinek <jakub@redhat.com>
2866 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
2867 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
2869 2010-07-01 Richard Guenther <rguenther@suse.de>
2871 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
2874 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
2877 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
2880 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
2883 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2884 Make sure operand 0 dies.
2886 2010-07-01 Richard Guenther <rguenther@suse.de>
2890 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
2891 * doc/generic.texi (References to storage): Document MEM_REF.
2892 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
2893 (print_call_name): Likewise.
2894 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
2895 (build_simple_mem_ref_loc): New function.
2896 (mem_ref_offset): Likewise.
2897 * tree.h (build_simple_mem_ref_loc): Declare.
2898 (build_simple_mem_ref): Define.
2899 (mem_ref_offset): Declare.
2900 * fold-const.c: Include tree-flow.h.
2901 (operand_equal_p): Handle MEM_REF.
2902 (build_fold_addr_expr_with_type_loc): Likewise.
2903 (fold_comparison): Likewise.
2904 (fold_unary_loc): Fold
2905 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
2906 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
2907 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
2908 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
2909 (ptr_deref_may_alias_ref_p_1): Likewise.
2910 (ao_ref_base_alias_set): Properly differentiate base object for
2912 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
2913 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
2914 (indirect_refs_may_alias_p): Likewise.
2915 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
2917 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
2918 (call_may_clobber_ref_p_1): Likewise.
2919 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
2920 * expr.c (expand_assignment): Handle MEM_REF.
2921 (store_expr): Handle MEM_REFs from STRING_CSTs.
2922 (store_field): If expanding a MEM_REF of a non-addressable
2923 decl use bitfield operations.
2924 (get_inner_reference): Handle MEM_REF.
2925 (expand_expr_addr_expr_1): Likewise.
2926 (expand_expr_real_1): Likewise.
2927 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
2928 * alias.c (ao_ref_from_mem): Handle MEM_REF.
2929 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
2930 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
2931 (dr_analyze_indices): Likewise.
2932 (dr_analyze_alias): Likewise.
2933 (object_address_invariant_in_loop_p): Likewise.
2934 * gimplify.c (mark_addressable): Handle MEM_REF.
2935 (gimplify_cond_expr): Build MEM_REFs.
2936 (gimplify_modify_expr_to_memcpy): Likewise.
2937 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
2938 (gimple_fold_indirect_ref): Adjust.
2939 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
2940 * tree.def (MEM_REF): New tree code.
2941 * tree-dfa.c: Include toplev.h.
2942 (get_ref_base_and_extent): Handle MEM_REF.
2943 (get_addr_base_and_unit_offset): New function.
2944 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
2945 * gimple-fold.c (may_propagate_address_into_dereference): Handle
2947 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
2948 accesses if the array has just one dimension. Remove always true
2949 parameter. Do not require type compatibility here.
2950 (maybe_fold_offset_to_component_ref): Remove.
2951 (maybe_fold_stmt_indirect): Remove.
2952 (maybe_fold_reference): Remove INDIRECT_REF handling.
2953 Fold back to non-MEM_REF.
2954 (maybe_fold_offset_to_address): Simplify. Deal with type
2956 (maybe_fold_reference): Likewise.
2957 (maybe_fold_stmt_addition): Likewise. Also handle
2958 &ARRAY + I in addition to &ARRAY[0] + I.
2959 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
2960 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
2961 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
2962 * tree-ssa.c (useless_type_conversion_p): Make most pointer
2963 conversions useless.
2964 (warn_uninitialized_var): Handle MEM_REF.
2965 (maybe_rewrite_mem_ref_base): New function.
2966 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
2968 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
2969 INDIRECT_REF handling.
2970 (copy_tree_body_r): Handle MEM_REF.
2971 * gimple.c (is_gimple_addressable): Adjust.
2972 (is_gimple_address): Likewise.
2973 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
2974 invariant base are invariant.
2975 (is_gimple_min_lval): Adjust.
2976 (is_gimple_mem_ref_addr): New function.
2977 (get_base_address): Handle MEM_REF.
2978 (count_ptr_derefs): Likewise.
2979 (get_base_loadstore): Likewise.
2980 * gimple.h (is_gimple_mem_ref_addr): Declare.
2981 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
2982 * tree-cfg.c (verify_address): New function, split out from ...
2983 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
2984 the address operand of MEM_REFs. Verify MEM_REFs. Reject
2986 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
2987 INDIRECT_REF. Allow conversions.
2988 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
2989 a register does not change its size.
2990 (verify_types_in_gimple_reference): Verify MEM_REF.
2991 (verify_gimple_assign_single): Disallow INDIRECT_REF.
2993 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
2995 (mark_address_taken): Handle MEM_REF.
2996 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
2997 (get_asm_expr_operands): Pass opf_not_non_addressable.
2998 (get_expr_operands): Handle opf_[not_]non_addressable.
2999 Handle MEM_REF. Remove INDIRECT_REF handling.
3000 * tree-vrp.c: (check_array_ref): Handle MEM_REF.
3001 (search_for_addr_array): Likewise.
3002 (check_array_bounds): Likewise.
3003 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
3004 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
3005 (ref_always_accessed_p): Likewise.
3006 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
3007 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
3009 * cgraphbuild.c (mark_load): Properly check for NULL result
3010 from get_base_address.
3011 (mark_store): Likewise.
3012 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
3013 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
3014 handling for MEM_REF.
3015 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
3016 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
3017 * builtins.c (stabilize_va_list_loc): Use the function ABI
3018 valist type if we couldn't canonicalize the argument type.
3019 Always dereference with the canonical va-list type.
3020 (maybe_emit_free_warning): Handle MEM_REF.
3021 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
3023 * builtins.c (fold_builtin_memory_op): Use ref-all types
3024 for all memcpy foldings.
3025 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
3026 (build_outer_var_ref): Likewise.
3027 (scan_omp_1_op): Likewise.
3028 (lower_rec_input_clauses): Likewise.
3029 (lower_lastprivate_clauses): Likewise.
3030 (lower_reduction_clauses): Likewise.
3031 (lower_copyprivate_clauses): Likewise.
3032 (expand_omp_atomic_pipeline): Likewise.
3033 (expand_omp_atomic_mutex): Likewise.
3034 (create_task_copyfn): Likewise.
3035 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
3036 Remove old union trick. Initialize constant offsets.
3037 (ao_ref_init_from_vn_reference): Likewise. Do not handle
3038 INDIRECT_REF. Init base_alias_set properly.
3039 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
3040 (vn_reference_fold_indirect): Adjust for MEM_REFs.
3041 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
3043 (may_insert): Remove.
3044 (visit_reference_op_load): Do not test may_insert.
3045 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
3046 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
3047 a field to store the constant offset this op applies.
3048 (run_scc_vn): Adjust prototype.
3049 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
3050 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
3051 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
3052 bother about volatile qualifiers on pointers.
3053 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
3054 * tree-ssa-loop-ivopts.c
3055 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
3056 (strip_offset_1): Likewise.
3057 (find_interesting_uses_address): Replace INDIRECT_REF handling with
3059 (get_computation_cost_at): Likewise.
3060 * ipa-pure-const.c (check_op): Handle MEM_REF.
3061 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
3062 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
3064 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
3065 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
3066 (eliminate_local_variables_1): Likewise.
3067 (create_call_for_reduction_1): Likewise.
3068 (create_loads_for_reductions): Likewise.
3069 (create_loads_and_stores_for_name): Likewise.
3070 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
3071 (ssa_accessed_in_tree): Handle MEM_REF.
3072 (ssa_accessed_in_assign_rhs): Likewise.
3073 (update_type_size): Likewise.
3074 (analyze_accesses_for_call_stmt): Likewise.
3075 (analyze_accesses_for_assign_stmt): Likewise.
3076 (transform_access_sites): Likewise.
3077 (transform_allocation_sites): Likewise.
3078 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
3079 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
3080 not handle INDIRECT_REF.
3081 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
3082 (cond_store_replacement): Likewise.
3083 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
3084 MEM_REF, no not handle INDIRECT_REFs.
3085 (insert_into_preds_of_block): Properly initialize avail.
3086 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
3087 for ARRAY_REFs. Properly handle reference lookups that
3088 require a bit re-interpretation.
3089 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
3090 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
3091 (build_ref_for_offset_1): Remove.
3092 (build_ref_for_offset): Build MEM_REFs.
3093 (gate_intra_sra): Disable for now.
3094 (sra_ipa_modify_expr): Handle MEM_REF.
3095 (ipa_early_sra_gate): Disable for now.
3096 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
3098 (disqualify_base_of_expr): Likewise.
3099 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
3101 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
3102 Use mem_ref_offset. Remove bogus folding.
3103 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
3104 (make_fancy_name_1): Add support for MEM_REF.
3105 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
3106 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
3107 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
3108 (compute_complex_ancestor_jump_func): Likewise.
3109 (ipa_analyze_virtual_call_uses): Likewise.
3110 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
3111 INDIRECT_REF folding with more generalized MEM_REF folding.
3112 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
3113 (forward_propagate_addr_into_variable_array_index): Also handle
3114 &ARRAY + I in addition to &ARRAY[0] + I.
3115 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
3116 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
3117 creates assignments with overlap.
3118 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
3119 (get_frame_field): Likewise.
3120 (get_nonlocal_debug_decl): Likewise.
3121 (convert_nonlocal_reference_op): Likewise.
3122 (struct nesting_info): Add mem_refs pointer-set.
3123 (create_nesting_tree): Allocate it.
3124 (convert_local_reference_op): Insert to be folded mem-refs.
3125 (fold_mem_refs): New function.
3126 (finalize_nesting_tree_1): Perform defered folding of mem-refs
3127 (free_nesting_tree): Free the pointer-set.
3128 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
3129 (vectorizable_load): Likewise.
3130 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
3131 (propagate_with_phi): Likewise.
3132 * tree-object-size.c (addr_object_size): Handle MEM_REFs
3133 instead of INDIRECT_REFs.
3134 (compute_object_offset): Handle MEM_REF.
3135 (plus_stmt_object_size): Handle MEM_REF.
3136 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
3138 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
3139 (symbol_marked_for_renaming): Likewise.
3140 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
3141 (fold-const.o): Add $(TREE_FLOW_H).
3142 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
3143 (find_func_clobbers): Likewise.
3144 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
3145 (decompose_access): Likewise.
3146 (replace_field_acc): Likewise.
3147 (replace_field_access_stmt): Likewise.
3148 (insert_new_var_in_stmt): Likewise.
3149 (get_stmt_accesses): Likewise.
3150 (reorg_structs_drive): Disable.
3151 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
3152 (ix86_canonical_va_list_type): Likewise.
3154 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
3157 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
3158 * target.def (struct gcc_target): Replace enum reg_class with
3159 reg_class_t in hook argument / return types.
3160 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
3161 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
3162 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
3163 * targhooks.h (default_branch_target_register_class): Likewise.
3164 (default_ira_cover_classes, default_secondary_reload): Likewise.
3165 (default_memory_move_cost, default_register_move_cost): Likewise.
3166 * targhooks.c (default_branch_target_register_class): Likewise.
3167 (default_ira_cover_classes, default_secondary_reload): Likewise.
3168 (default_memory_move_cost, default_register_move_cost): Likewise.
3169 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
3170 * bt-load.c (branch_target_load_optimize): Likewise.
3171 * ira.c (setup_cover_and_important_classes): Likewise.
3172 * ira-costs.c (copy_cost): Likewise.
3173 * reload1.c (emit_input_reload_insns): Likewise.
3174 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
3175 * config/frv/frv.c (frv_secondary_reload): Likewise.
3176 * config/s390/s390.c (s390_secondary_reload): Likewise.
3177 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
3178 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
3179 (ix86_register_move_cost): Likewise.
3180 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
3181 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
3182 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
3183 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
3184 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
3185 (rs6000_ira_cover_classes): Likewise.
3186 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
3187 * config/picochip/picochip-protos.h (picochip_secondary_reload):
3189 * config/pa/pa.c (pa_secondary_reload): Likewise.
3190 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
3191 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
3192 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
3193 * doc/tm.texi: Regenerate.
3195 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
3198 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
3200 (build_alias_set_optimal_p): Likewise.
3201 (build_base_obj_set_for_drs): Likewise.
3203 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
3205 * target.def: Remove comment about licensing problems of function
3208 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
3209 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
3210 * doc/tm.texi: Regenerate.
3212 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
3213 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
3215 * target.def (enum_va_list_p): Use DEFHOOK.
3216 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
3217 Rename ptype to ptree.
3218 * doc/tm.texi: Regenerate.
3220 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
3221 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
3222 * doc/tm.texi: Regenerate.
3224 * target.def (memory_move_cost): Use DEFHOOK.
3225 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
3226 Rename regclass AKA class to rclass.
3227 * doc/tm.texi: Regenerate.
3229 * target.def (pragma_parse): Use DEFHOOK.
3230 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
3231 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
3232 * doc/tm.texi: Regenerate.
3234 * target.def (pass_by_reference): Use DEFHOOK.
3235 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
3236 * doc/tm.texi: Regenerate.
3238 * target.def (resolve_overloaded_builtin): Rename params to arglist.
3240 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
3241 * doc/tm.texi: Regenerate.
3243 * target.def (return_pops_args): Use DEFHOOK.
3244 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
3245 Rename stack-size to size.
3246 * doc/tm.texi: Regenerate.
3248 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
3249 last-sched_cycle to last_clock, cur_cycle to clock.
3250 * doc/tm.texi.in: Use @hook.
3251 * doc/tm.texi: Regenerate.
3253 * target.def (print_operand, print_operand_address): Update comment.
3254 (print_operand_punct_valid_p): Likewise.
3256 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3258 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
3260 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
3261 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
3263 * regrename.c: Do not include toplev.h. Include rtl-error.h.
3264 * rtl-error.c: Likewise.
3265 * reload.c: Likewise.
3266 * recog.c: Likewise.
3267 * sel-sched.c: Likewise.
3268 * function.c: Likewise.
3269 * reg-stack.c: Likewise.
3270 * cfgrtl.c: Likewise.
3271 * reload1.c: Likewise.
3272 * final.c: Include rtl-error.
3273 * Makefile.in: Adjust dependencies.
3275 2010-06-30 Jan Hubicka <jh@suse.cz>
3277 PR middle-end/PR44706
3278 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
3279 to return the value.
3281 2010-06-30 Michael Matz <matz@suse.de>
3284 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
3285 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
3286 a gimple reg, attach the original VDEF to the last store in the
3289 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
3292 * config/darwin.c (darwin_override_options): Use renamed
3293 targetm.asm_out.emit_unwind_label.
3295 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
3297 PR tree-optimization/39799
3298 * tree-inline.c (remap_ssa_name): Initialize variable only if
3299 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3301 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
3303 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
3305 2010-06-30 Richard Guenther <rguenther@suse.de>
3308 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
3309 against oscillation with reverse peephole2.
3311 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
3314 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
3317 2010-06-30 Nick Clifton <nickc@redhat.com>
3319 * config/rx/rx-modes.def: New file.
3320 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
3321 (CC_REGNUM): Define.
3322 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
3324 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
3325 (SELECT_CC_MODE): Define.
3326 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
3327 (reg:CC CC_REG) instead of (cc0).
3328 (attr "cc"): Delete.
3329 (cbranchsi4): Do not split compare and branch here. Instead move
3331 (cbranchsi4_<code>): ... here. New patterns.
3332 (cmpsi): Call rx-compare_redundant to find out if it is necessary
3333 to emit the compare instruction.
3334 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
3336 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
3337 FIRST_PSEUDO_REGNUM.
3338 (rx_expand_prologue, rx_expand_epilogue): Likewise.
3339 (rx_notice_update_cc): Delete.
3340 (rx_cc_modes_compatible): New function.
3341 (flags_needed_for_conditional): New function.
3342 (flags_from_mode): New function.
3343 (rx_compare_redundant): New function - scans backwards through
3344 insn list to find out if condition flags are already set correctly.
3345 (TARGET_CC_MODES_COMPATIBLE): Define.
3346 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
3348 * config/rx/rx.h (BRANCH_COST): Define.
3349 (REGISTER_MOVE_COST): Define.
3350 * config/rx/predicates (rx_source_operand): Allow all constant types.
3351 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
3352 (tstsi4): New pattern.
3353 * config/rx/rx.c (rx_memory_move_cost): Define.
3354 (TARGET_MEMORY_MOVE_COST): Define.
3356 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3358 * tree.h (block_may_fallthru): Declare here.
3359 * tree-flow.h (block_may_fallthru): Do not declare here.
3360 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
3362 * Makefile.in (c-typeck.o): Update dependencies.
3364 2010-06-30 Jakub Jelinek <jakub@redhat.com>
3367 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
3368 * cselib.c (cfa_base_preserved_regno): New static variable.
3369 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
3370 of REGNO (cfa_base_preserved_val->locs->loc).
3371 (cselib_preserve_cfa_base_value): Add regno argument, set
3372 cfa_base_preserved_regno to it.
3373 (cselib_invalidate_regno): Allow removal of registers other than
3374 cfa_base_preserved_regno from cfa_base_preserved_val.
3375 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
3376 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
3377 of MEM addresses, if not on LHS.
3378 (reverse_op): Don't add reverse ops for cfa_base_rtx.
3379 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
3381 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
3383 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
3385 (peep2_buf_position): New static function.
3386 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
3387 peephole2_optimize): Use it.
3388 (peep2_attempt, peep2_update_life): New static functions, broken out
3389 of peephole2_optimize.
3390 (peep2_fill_buffer): New static function.
3391 (peephole2_optimize): Change the main loop to try to fill the buffer
3392 with the maximum number of insns before matching them against
3393 peepholes. Use a forward scan. Remove special case for targets with
3394 conditional execution.
3395 * genrecog.c (change_state): Delete dead code.
3396 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
3397 Rewrite so as not to expect the second insn to have had a peephole
3400 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3402 * genhooks.c (emit_findices): Cast field precision to int.
3403 (emit_documentation): Likewise.
3405 2010-06-29 Jakub Jelinek <jakub@redhat.com>
3407 PR tree-optimization/43801
3408 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
3409 if old_decl was DECL_ONE_ONLY.
3412 * dwarf2out.c (add_accessibility_attribute): New function.
3413 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
3414 instead of adding DW_AT_accessibility manually.
3415 (gen_enumeration_type_die, gen_struct_or_union_type_die,
3416 gen_typedef_die): Use it.
3418 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3420 * vmsdbgout.c (full_name): Just output the file name if not native.
3422 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3424 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
3425 (funcnam_table): New static table.
3426 (funcnum_table): New static table.
3427 (write_rtnbeg): Write value saved in funcnum_table.
3428 (write_rtnend): Write value saved in funcnum_table.
3429 (vmsdbgout_begin_function): Save current function info in
3430 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
3431 (vmsdbgout_finish): Iterate over funcnum_table.
3433 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3435 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
3436 (vmsdbgout_type_decl): Declare
3437 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
3438 (FUNC_EPILOGUE_LABEL): New macro
3439 (vmsdbgout_begin_epilogue): New function.
3440 (vmsdbgout_type_decl): New function.
3442 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3444 * vmsdbg.h: Update copyright.
3446 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3448 * vmsdbg.h (DST_K_TBG): New DST constant.
3449 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
3450 (write_modbeg): Cast module_language to avoid warning.
3451 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
3453 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3456 * target.def, doc/tm.texi.in, genhooks.c: New files.
3457 * target.h: Instead of defining individual hook members,
3458 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
3460 * target-def.h: Instead of defining individual hook initializers,
3461 include target-hooks-def.h.
3462 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
3463 targetm.live_on_entry -> targetm.extra_live_on_entry
3464 targetm.sched.md_finish ->targetm.sched.finish
3465 targetm.sched.md_init -> targetm.sched.init
3466 targetm.sched.md_init_global -> targetm.sched.init_global
3467 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
3468 targetm.asm_out.except_table_label ->
3469 targetm.asm_out.emit_except_table_label
3470 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
3471 targetm.target_help -> targetm.help
3472 targetm.vectorize.builtin_support_vector_misalignment ->
3473 targetm.vectorize.support_vector_misalignment
3474 targetm.file_start_app_off -> targetm.asm_file_start_app_off
3475 targetm.file_start_file_directive ->
3476 targetm.asm_file_start_file_directive
3477 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
3478 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
3479 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
3480 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
3481 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
3482 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
3483 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
3484 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
3485 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
3486 * Makefile.in (TARGET_H): Depend on target.def.
3487 (TARGET_DEF_H): Depend on target-hooks-def.h.
3488 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
3489 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
3490 * doc/tm.texi: Regenerate.
3492 * Makefile.in (s-tm-texi): Remove stray tab / rule.
3494 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
3495 (targetm.sched.init): Likewise.
3497 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3500 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
3501 (function_arg_advance_32): Const-ify TYPE parameter.
3502 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
3503 (ix86_function_arg_advance): Change type of NAMED to bool.
3504 (function_arg_32): Const-ify CUM and TYPE parameters.
3505 (function_arg_64): Likewise. Change type of NAMED to bool.
3506 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
3508 (ix86_function_arg): Change type of NAMED to bool.
3509 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
3510 last argument as a bool.
3512 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3514 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
3515 (OVERRIDE_OPTIONS): Add note of obsolescence.
3516 Replace references with references to TARGET_OPTION_OVERRIDE.
3517 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
3519 * targhooks.c (default_target_option_override): New function.
3520 * targhooks.h (default_target_option_override): Declare.
3521 * target.h (struct gcc_target): Add override member to
3522 target_option member.
3523 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
3524 targetm.target_option.override call.
3525 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
3526 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
3528 2010-06-29 Jan Hubicka <jh@suse.cz>
3530 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
3532 2010-06-29 Jan Hubicka <jh@suse.cz>
3534 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
3536 (rebuild_frequencies): New function.
3537 * predict.h (rebuild_frequencies): Declare.
3538 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
3539 entry block and edge reaching new_entry.
3540 (tree_function_versioning): When doing partial cloning, rebuild
3541 frequencies when done.
3542 * passes.c (execute_function_todo): Use rebild_frequencies.
3544 2010-06-29 Richard Guenther <rguenther@suse.de>
3546 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
3547 * tree-flow.h (enum noalias_state): Remove.
3548 (struct var_ann_d): Remove noalias_state member.
3550 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
3553 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
3554 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
3555 (maddhidi4): Likewise.
3557 Revert parts of the change for PR25130.
3558 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
3561 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3563 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
3564 targetm.calls.function_incoming_arg, and
3565 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
3566 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
3567 * target.h (struct gcc_target): Add function_arg_advance,
3568 function_arg, and function_incoming_arg fields.
3569 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
3570 (TARGET_FUNCTION_INCOMING_ARG): Define.
3571 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
3572 and TARGET_FUNCTION_INCOMING_ARG.
3573 * targhooks.h (default_function_arg_advance): Declare.
3574 (default_function_arg, default_function_incoming_arg): Declare.
3575 * targhooks.c (default_function_arg_advance): New function.
3576 (default_function_arg, default_function_incoming_arg): New function.
3577 * config/i386/i386.c (function_arg_advance): Rename to...
3578 (ix86_function_arg_advance): ...this. Make static.
3579 (function_arg): Rename to...
3580 (ix86_function_arg): ...this. Make static.
3581 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3582 (TARGET_FUNCTION_ARG): Define.
3583 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
3584 (FUNCTION_ARG): Delete.
3585 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
3586 (function_arg): Delete prototype.
3588 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3590 * reginfo.c (init_reg_sets_1): Adjust comments.
3591 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
3592 * calls.c (prepare_call_address): Likewise.
3593 (emit_call_1): Use targetm.calls.return_pops_args.
3594 (expand_call): Likewise.
3595 * function.c (assign_parms): Likewise.
3596 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
3597 * target.h (struct gcc_target) [struct calls]: Add
3598 return_pops_args field.
3599 * targhooks.h (default_return_pops_args): Declare.
3600 * targhooks.c (default_return_pops_args): Define.
3601 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
3602 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
3603 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
3604 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
3606 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
3607 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
3608 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
3609 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
3610 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
3611 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
3612 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
3613 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
3614 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
3615 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
3616 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
3617 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
3618 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
3619 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
3620 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
3621 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
3622 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
3623 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
3624 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
3625 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
3626 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
3627 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
3628 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
3629 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
3630 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
3631 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
3632 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
3633 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
3634 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
3635 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
3636 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
3637 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
3638 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
3639 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
3640 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
3641 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
3642 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
3643 * config/i386/i386.c (ix86_return_pops_args): Make static.
3645 (TARGET_RETURN_POPS_ARGS): Define.
3646 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
3647 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
3648 (TARGET_RETURN_POPS_ARGS): Define.
3649 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
3650 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
3651 (TARGET_RETURN_POPS_ARGS): Define.
3653 2010-06-29 Richard Guenther <rguenther@suse.de>
3656 * tree-inline.c (initialize_inlined_parameters): Make sure
3657 to remap the inlined parameter variable substitutions types.
3659 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
3661 PR rtl-optimization/44659
3662 * combine.c (make_compound_operation) <SUBREG>: Do not return the
3663 result of force_to_mode if it partially re-expanded the compound.
3665 2010-06-28 Jan Hubicka <jh@suse.cz>
3668 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
3671 2010-06-28 Anatoly Sokolov <aesok@post.ru>
3673 * double-int.h (force_fit_type_double): Remove declaration.
3674 * double-int.c (force_fit_type_double): Move to tree.c.
3675 * tree.h (force_fit_type_double): Declare.
3676 * tree.h (force_fit_type_double): Moved from double-int.c. Use
3677 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
3678 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
3679 * convert.c (convert_to_pointer): Adjust call to
3680 force_fit_type_double.
3681 * tree-vrp.c (extract_range_from_assert,
3682 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
3683 * fold-const.c: Update comment.
3684 (int_const_binop, fold_convert_const_int_from_int,
3685 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
3686 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
3687 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
3688 round_up_loc): Adjust call to force_fit_type_double.
3690 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3692 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
3694 2010-06-28 Martin Jambor <mjambor@suse.cz>
3696 * tree-sra.c (convert_callers): New parameter, change fndecls of
3698 (modify_function): Pass the old decl to convert_callers.
3700 2010-06-28 Martin Jambor <mjambor@suse.cz>
3702 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
3703 ipa_check_create_node_params and ipa_initialize_node_params with
3704 checking asserts they are not necessary.
3706 2010-06-28 Jan Hubicka <jh@suse.cz>
3708 PR tree-optimization/44687
3709 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
3711 2010-06-28 Martin Jambor <mjambor@suse.cz>
3714 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
3715 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
3716 instead of BINFO_BASE_BINFO.
3718 2010-06-28 Michael Matz <matz@suse.de>
3721 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
3722 proper VDEF chain for intermediate stores in the sequence.
3724 2010-06-28 Jan Hubicka <jh@suse.cz>
3726 PR tree-optimization/44357
3727 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
3728 uninlinable functions.
3730 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3732 * config.gcc (powerpc*-*-*): Handle titan.
3733 * config/rs6000/rs6000.c (titan_cost): New costs.
3734 (rs6000_override_options): Add "titan" to processor_target_table.
3735 Add Titan to branch alignment logic.
3736 Correctly set rs6000_cost for titan.
3737 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
3738 * config/rs6000/titan.md: New file.
3739 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
3741 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
3743 * tree-browser.c (TB_history_stack): Convert to a VEC.
3744 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
3745 (TB_history_prev): Likewise.
3747 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
3749 * vec.h (vec_heap_free): Add parentheses around free.
3751 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3753 * system.h: Poison GCC_EXCEPT_H for front-end files.
3755 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
3757 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
3758 Define to NULL by default.
3759 * except.h: Define GCC_EXCEPT_H.
3760 (doing_eh): Remove prototype.
3761 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
3762 (lang_protect_cleanup_actions): Remove.
3763 * except.c (lang_protect_cleanup_actions): Remove.
3765 (gen_eh_region): Don't check doing_eh here.
3766 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
3767 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
3768 instead of lang_protect_cleanup_actions.
3769 * omp-low.c (maybe_catch_exception): Likewise.
3770 * Makefile.in: Update dependencies.
3772 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
3774 * cgraph.h (struct varpool_node): new used_from_object_file flag.
3775 (struct cgraph_local_info): new used_from_object_file flag.
3776 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
3777 (cgraph_clone_node): initialize used_from_object_file.
3778 (cgraph_create_virtual_clone): initialize used_from_object_file.
3779 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
3780 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
3781 when compiling with -fwhole-program.
3782 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
3784 * ipa.c (function_and_variable_visibility): Set externally_visible
3785 flag of varpool_node if used_from_object_file flag is set.
3786 (cgraph_externally_visible_p): check used_from_object_file flag.
3787 * doc/invoke.texi (-fwhole-program option): Change description of
3788 externally_visible attribute accordingly.
3789 * doc/extend.texi (externally_visible): Ditto.
3791 2010-06-27 Jan Hubicka <jh@suse.cz>
3793 * params.def (max-inline-insns-auto): Default to 40.
3794 * doc/invoke.texi (max-inline-insns-auto): Document the change.
3796 2010-06-27 Jan Hubicka <jh@suse.cz>
3800 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
3802 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
3803 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
3805 2010-06-27 Anatoly Sokolov <aesok@post.ru>
3807 * target.h (struct gcc_target): Add register_move_cost field.
3808 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
3809 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
3810 * targhooks.c (default_register_move_cost): New function.
3811 * targhooks.h (default_register_move_cost): Declare function.
3812 * defaults.h (REGISTER_MOVE_COST): Delete.
3813 * ira-int.h (ira_register_move_cost): Update comment.
3814 * ira.c: (ira_register_move_cost): Update comment.
3815 * reload.h (register_move_cost): Declare.
3816 * reginfo.c (register_move_cost): New function.
3817 (move_cost): Update comment.
3818 (init_move_cost, memory_move_secondary_cost): Replace
3819 REGISTER_MOVE_COST with register_move_cost.
3820 * postreload.c (reload_cse_simplify_set): (Ditto.).
3821 * reload.c (find_valid_class, find_reloads): (Ditto.).
3822 * reload1.c (choose_reload_regs): (Ditto.).
3823 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
3824 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
3825 * doc/md.texi (can_create_pseudo_p): Update documentation.
3827 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
3828 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
3829 * config/i386/i386.h (ix86_memory_move_cost): Make static.
3830 (TARGET_MEMORY_MOVE_COST): Define.
3832 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
3833 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
3834 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
3835 (TARGET_MEMORY_MOVE_COST): Define.
3837 2010-06-27 Richard Guenther <rguenther@suse.de>
3839 PR tree-optimization/44683
3840 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
3841 false edge from the inverted condition.
3843 2010-06-27 Richard Guenther <rguenther@suse.de>
3846 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
3847 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
3848 for register LHS. Or non-store assignments.
3850 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
3852 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
3853 (sparc_emit_set_const64): Likewise. Remove disabled code.
3854 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
3855 (sparc_emit_set_const64): Likewise.
3857 2010-06-26 Catherine Moore <clm@codesourcery.com>
3859 * config/mips/mips.md (alu_type): New attribute.
3860 (type): Infer type from alu_type.
3861 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
3862 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
3863 *subsi3_extended, negsi2, negdi2, *low<mode>,
3864 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
3865 xor<mode>3, *nor<mode>3,
3866 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
3867 *zero_extendhi_truncqi): Set alu_type instead of type.
3869 2010-06-26 Douglas B Rupp <rupp@gnat.com>
3871 * config/alpha/alpha.c (alpha_need_linkage): Adjust
3872 splay_tree_new_ggc call.
3873 (alpha_use_linkage): Likewise.
3875 2010-06-26 Joseph Myers <joseph@codesourcery.com>
3877 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
3878 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
3879 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
3880 (static_specs): Remove switches_need_spaces.
3881 (process_command, do_self_spec): Hardcode handling "-o" instead of
3882 checking switches_need_spaces.
3883 * system.h (SWITCHES_NEED_SPACES): Poison.
3885 2010-06-26 Richard Guenther <rguenther@suse.de>
3887 PR tree-optimization/44393
3888 * tree-loop-distribution.c (generate_loops_for_partition): Fix
3889 stmt removal and VOP renaming.
3890 (generate_memset_zero): Remove redundant stmt updating.
3891 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
3892 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
3894 2010-06-26 Jan Hubicka <jh@suse.cz>
3896 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
3897 edges comming from header are equivalent.
3898 (visit_bb): Handle PHIs correctly.
3899 * tree-inline.c (copy_phis_for_bb): Be able to copy
3900 PHI from entry edge.
3901 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
3903 2010-06-26 Richard Guenther <rguenther@suse.de>
3906 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
3907 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
3909 2010-06-26 Joseph Myers <joseph@codesourcery.com>
3911 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
3912 add_infile, alloc_switch): New.
3913 (process_command): Remove variable lang_n_infiles. Process
3914 options in a single pass. Use new functions for allocating
3915 infiles and switches arrays. Properly skip operands of
3916 -Xpreprocessor and -Xassembler.
3918 2010-06-26 Jan Hubicka <jh@suse.cz>
3921 * cgraphunit.c (cgraph_function_versioning): Remove wrong
3922 cgraph_make_decl_local call; fix typo copying RTL data.
3924 2010-06-25 DJ Delorie <dj@redhat.com>
3926 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
3927 (m32c_output_aligned_common): Likewise.
3928 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
3929 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3930 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
3931 (m32c_register_pragmas): Register it.
3932 * config/m32c/m32c.c (m32c_get_pragma_address): New.
3933 (m32c_insert_attributes): Set #pragma address decls volatile.
3934 (pragma_entry_eq): New.
3935 (pragma_entry_hash): New.
3936 (m32c_note_pragma_address): New.
3937 (m32c_get_pragma_address): New.
3938 (m32c_output_aligned_common): New.
3939 * doc/extend.texi: Document the new pragma.
3941 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
3943 * config/m32c/predicates.md (m32c_any_operand): Check the code
3944 instead of memory_operand so as to allow matching volatile MEMs.
3945 (m32c_nonimmediate_operand): Likewise.
3946 (mra_operand): Allow volatiles.
3948 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
3951 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
3952 address if the offset is unknown.
3954 2010-06-25 Douglas B Rupp <rupp@gnat.com>
3956 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
3957 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
3958 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
3959 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
3960 to ia64_start_function. Invoke it.
3961 * config/ia64/ia64.c (ia64_start_function): Call new function
3962 dwarf2out_vms_debug_main_pointer.
3964 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3966 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
3967 statements computing the true predicate.
3969 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3971 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
3972 to boolean_true_node.
3973 (reset_bb_predicate): New.
3974 (predicate_bbs): Call reset_bb_predicate.
3976 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3978 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
3979 (tree_if_conversion): Returns true when something has been changed.
3980 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
3983 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3985 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
3986 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
3987 * tree-if-conv.c: Include dbgcnt.h.
3988 (tree_if_conversion): Use if_conversion_tree to count the number of
3989 if-convertible loops.
3991 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
3993 * common.opt (fprefetch-loop-arrays): Re-define
3994 -fprefetch-loop-arrays as a tri-state option with the initial
3996 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
3997 pass only when flag_prefetch_loop_arrays > 0.
3998 * toplev.c (process_options): Note that, with tri-states,
3999 flag_prefetch_loop_arrays>0 means prefetching is enabled.
4000 * config/i386/i386.c (override_options): Enable prefetching at -O3
4001 for a set of CPUs that sw prefetching is helpful.
4002 (software_prefetching_beneficial_p): New. Return TRUE if software
4003 prefetching is beneficial for the given CPU.
4005 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
4007 PR rtl-optimization/44326
4008 * implicit-zee.c (find_removable_zero_extends): Replace
4009 INSN_P with NONDEBUG_INSN_P.
4011 2010-06-25 Martin Jambor <mjambor@suse.cz>
4013 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
4014 (struct ipa_node_params): Removed the modification_analysis_done flag.
4015 (ipa_is_param_modified): Removed.
4016 (ipa_analyze_node): Declare.
4017 (ipa_compute_jump_functions): Remove declaration.
4018 (ipa_count_arguments): Likewise.
4019 (ipa_detect_param_modifications): Likewise.
4020 (ipa_analyze_params_uses): Likewise.
4021 * ipa-prop.c (struct param_analysis_info): New type.
4022 (visit_store_addr_for_mod_analysis): Removed.
4023 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
4024 moved down in the file.
4025 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
4026 (ipa_count_arguments): Made static.
4027 (mark_modified): New function.
4028 (is_parm_modified_before_call): New function.
4029 (compute_pass_through_member_ptrs): New parameter parms_info, call
4030 is_parm_modified_before_call instead of ipa_is_param_modified.
4031 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
4032 it to compute_pass_through_member_ptrs.
4033 (ipa_compute_jump_functions): New parameter parms_info, pass it to
4034 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
4035 on the callee if it is analyzed. Made static.
4036 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
4037 is_parm_modified_before_call instead of ipa_is_param_modified.
4038 (ipa_analyze_call_uses): New parameter parms_info, pass it to
4039 ipa_analyze_indirect_call_uses.
4040 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
4041 ipa_analyze_call_uses.
4042 (ipa_analyze_params_uses): New parameter parms_info, pass it to
4043 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
4044 (ipa_analyze_node): New function.
4045 (ipa_print_node_params): Do not dump the modified flag.
4046 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
4047 it. Do not stream the modified parameter flag.
4048 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
4049 it. Do not stream the modified parameter flag.
4050 * ipa-cp.c (ipcp_analyze_node): Removed.
4051 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
4052 with only a call to ipa_analyze_node.
4053 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
4054 node with only a call to ipa_analyze_node.
4056 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
4058 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
4060 2010-06-25 Jan Hubicka <jh@suse.cz>
4062 * tree-pass.h (pass_split_functions): Declare.
4063 * opts.c (decode_options): Enable function splitting at -O2
4064 * timevar.def (TV_IPA_FNSPLIT): New macro.
4065 * ipa-split.c: New file.
4066 * common.opt (-fpartial-inlining): New flag.
4067 * Makefile.in (ipa-split.o): New object file.
4068 * passes.c (init_optimization_passes): Add ipa-split.
4069 * params.def (partial-inlining-entry-probability): New parameters.
4070 * doc/invoke.texi (-fpartial-inlining): New.
4072 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
4075 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
4076 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
4077 (gimplify_expr): Likewise.
4079 2010-06-25 Martin Jambor <mjambor@suse.cz>
4081 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
4082 statements instead of bailing out on them.
4083 (ipa_analyze_indirect_call_uses): Do not require that loads from the
4084 parameter are in the same BB as the condition. Update comments.
4086 2010-06-25 Jakub Jelinek <jakub@redhat.com>
4089 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
4090 true or always false, return NULL_TREE.
4091 (tree_unswitch_single_loop): Optimize conditions even when reaching
4092 max-unswitch-level parameter. If num > 0, optimize first all conditions
4093 using entry checks, then do still reachable block discovery and consider
4094 only conditions in still reachable basic blocks in the loop.
4096 PR tree-optimization/44539
4097 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
4098 the call doesn't have LHS, but has VDEF.
4100 2010-06-25 Joseph Myers <joseph@codesourcery.com>
4102 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
4103 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
4104 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
4105 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
4106 * system.h (MODIFY_TARGET_NAME): Poison.
4108 2010-06-25 Alan Modra <amodra@gmail.com>
4110 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
4111 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
4112 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
4113 CMODEL_LARGE as default.
4114 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
4115 (offsettable_ok_by_alignment): Delete.
4116 (rs6000_emit_move): Remove mcmodel=medium optimization.
4118 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
4120 With large parts from Jim Wilson:
4122 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
4123 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
4124 * optabs.c (optab_for_tree_code): Likewise.
4125 (expand_widen_pattern_expr): Likewise.
4126 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
4127 out of execute_optimize_widening_mul.
4128 (convert_plusminus_to_widen): New function.
4129 (execute_optimize_widening_mul): Use the two new functions.
4130 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
4131 Remove code to generate widening multiply-accumulate. Add support
4132 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
4133 * gimple-pretty-print.c (dump_ternary_rhs): New function.
4134 (dump_gimple_assign): Call it when appropriate.
4135 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
4136 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
4137 (expand_gimple_stmt_1): Likewise.
4138 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
4139 WIDEN_MULT_MINUS_EXPR.
4140 * tree-ssa-operands.c (get_expr_operands): Likewise.
4141 * tree-inline.c (estimate_operator_cost): Likewise.
4142 * gimple.c (extract_ops_from_tree_1): Renamed from
4143 extract_ops_from_tree. Add new arg for a third operand; fill it.
4144 (gimple_build_assign_stat): Support operations with three operands.
4145 (gimple_build_assign_with_ops_stat): Likewise.
4146 (gimple_assign_set_rhs_from_tree): Likewise.
4147 (gimple_assign_set_rhs_with_ops_1): Renamed from
4148 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
4149 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
4150 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
4151 WIDEN_MULT_MINUS_EXPR.
4152 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
4153 (extract_ops_from_tree_1): Adjust declaration.
4154 (gimple_assign_set_rhs_with_ops_1): Likewise.
4155 (gimple_build_assign_with_ops): Pass NULL for last operand.
4156 (gimple_build_assign_with_ops3): New macro.
4157 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
4158 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
4160 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
4161 (verify_gimple_assign): Call it.
4162 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
4163 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
4164 functions for dealing with three-operand statements.
4165 * tree.c (commutative_ternary_tree_code): New function.
4166 * tree.h (commutative_ternary_tree_code): Declare it.
4167 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
4169 (gimple_assign_nonzero_warnv_p): Likewise.
4170 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
4171 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
4172 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
4173 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
4174 (struct hashtable_expr): New member ternary in the union.
4175 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
4176 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
4177 (iterative_hash_hashable_expr): Likewise.
4178 (print_expr_hash_elt): Handle EXPR_TERNARY.
4179 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
4180 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
4181 statements. Handle GIMPLE_TERNARY_RHS.
4183 2010-06-25 Jan Hubicka <jh@suse.cz>
4185 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
4187 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
4190 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
4191 parameters are not good.
4192 (c_parser_parameter_declaration): Error unknown type name if the type
4193 name can't start declaration specifiers.
4195 2010-06-25 Joseph Myers <joseph@codesourcery.com>
4197 * gcc.c (translate_options): Don't mention +e in comment.
4198 (process_command): Don't handle +e specially.
4200 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
4202 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
4204 * ira-build.c (merge_hard_reg_conflicts): New function.
4205 (create_cap_allocno, copy_info_to_removed_store_destinations,
4206 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
4207 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
4208 (remove_unnecessary_allocnos, remove_low_level_allocnos)
4209 copy_nifo_to_removed_store_destination): Use them.
4210 * ira-lives.c (make_hard_regno_born): New function, split out of
4212 (make_allocno_born): Likewise.
4213 (make_hard_regno_dead): New function, split out of make_regno_dead.
4214 (make_allocno_dead): Likewise.
4215 (inc_register_pressure): New function, split out of set_allocno_live.
4216 (dec_register_pressure): New function, split out of clear_allocno_live.
4217 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
4218 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
4219 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
4220 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
4221 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
4222 mark_pseudo_regno_live.
4223 (process_bb_node_lives): Use mark_pseudo_regno_live,
4224 make_hard_regno_born and make_allocno_dead.
4225 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
4226 set_allocno_live, clear_allocno_live): Delete functions.
4228 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
4229 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
4231 (ira_flattening): Use ira_parent_allocno.
4232 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
4233 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
4235 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
4238 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
4239 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
4240 minmax_set_iter_cond, minmax_set_iter_next,
4241 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
4242 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
4243 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
4244 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
4247 * ira-int.h (struct live_range, live_range_t): Renamed from struct
4248 ira_allocno_live_range and allocno_live_range_t; all uses changed.
4249 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
4252 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
4254 * thumb2.md (thumb2_tlobits_cbranch): Delete.
4255 (peephole2 to convert zero_extract/compare of single bit to
4256 lshift/compare): New.
4258 2010-06-24 Anatoly Sokolov <aesok@post.ru>
4260 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
4261 recursive call and call to 'int_const_binop'.
4262 (build_range_check, fold_cond_expr_with_comparison, unextend,
4263 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
4264 multiple_of_p): Adjust call to const_binop.
4266 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
4268 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
4269 determine size of XFmode operand.
4270 (XFmode extended DFmode push splitter): Ditto.
4271 (XFmode extended SFmode push splitter): Ditto.
4273 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
4276 * config/i386/i386.md (extract_code): New.
4277 (<u>divmodqi4): Likewise.
4278 (divmodhiqi3): Likewise.
4279 (udivmodhiqi3): Likewise.
4280 (<u>divqi3): Remvoved.
4282 2010-06-24 Jakub Jelinek <jakub@redhat.com>
4285 * recog.h (struct recog_data): Add is_asm field.
4286 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
4287 present in constraints of inline-asm operand and memory operand
4288 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
4289 (extract_insn): Initialize recog_data.is_asm.
4290 * doc/md.texi (Constraints): Document operand side-effect rules.
4292 2010-06-24 Andi Kleen <ak@linux.intel.com>
4294 * c-parser.c (c_parser_conditional_expression): Call
4295 warn_for_omitted_condop.
4296 * doc/invoke.texi: Document omitted condop warning.
4298 2010-06-24 Nick Clifton<nickc@redhat.com>
4300 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
4301 insn in the sequence is a jump insn before setting its label.
4303 2010-06-24 Alan Modra <amodra@gmail.com>
4305 * collect2.c (main): Match exactly --version and --help.
4307 2010-06-24 DJ Delorie <dj@redhat.com>
4309 * config/m32c/m32c-pragma.c: Don't include rtl.h.
4311 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
4313 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
4314 using X87MODEF mode iterator.
4315 (pushsf splitter): Macroize splitter using P mode iterator.
4316 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
4319 (*movxf_internal): Rename from *movxf_integer.
4320 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
4321 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
4322 (*movdf_internal): Rename from *movdf_integer.
4323 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
4324 (*movsf_internal): Rename from *movdf_1.
4326 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
4328 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
4329 (const_gimple_seq_node): Removed typedefs.
4331 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
4332 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
4334 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
4336 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
4337 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
4338 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
4339 and CODE_FOR_vec_extract_lo_v4df.
4341 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
4342 Changed to define_insn_and_split.
4343 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
4344 (vec_extract_lo_v16hi): Likewise.
4345 (vec_extract_lo_v32qi): Likewise.
4346 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
4347 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
4349 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
4352 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
4353 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
4354 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
4355 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
4356 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
4359 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
4362 * df-core.c (struct df): Rename to df_d.
4363 * df.h (struct df): Likewise.
4364 * dse.h (struct df): Remove forward declaration.
4365 * recog.h (struct insn_data): Rename to:
4366 (struct_insn_data_d). Adjusted all users.
4368 2010-06-23 Arnaud Charlet <charlet@adacore.com
4371 * doc/install.texi: Update requirements to build GNAT.
4373 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
4375 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
4377 (m68k_sched_attr_opx_type): Remove unreachable return.
4378 (m68k_sched_attr_opy_type): Likewise.
4379 (m68k_sched_attr_size): Likewise.
4380 (sched_get_opxy_mem_type): Likewise.
4381 (m68k_sched_attr_op_mem): Likewise.
4383 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
4385 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
4386 new statement and adjust VDEF only if necessary. Remove superfluous
4387 call to maybe_clean_or_replace_eh_stmt.
4388 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
4390 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
4391 * tree-inline.c (copy_bb): ...and not there.
4393 2010-06-22 Cary Coutant <ccoutant@google.com>
4395 * dwarf2out.c (is_nested_in_subprogram): New function.
4396 (should_move_die_to_comdat): Use it.
4397 (copy_ancestor_tree): Don't mark DIEs here.
4398 (copy_decls_walk): Start walk from root of newly-added tree;
4399 mark DIEs here instead.
4401 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
4403 * config/i386/i386.md (unit): Also check sseishft1.
4405 2010-06-22 Jan Hubicka <jh@suse.cz>
4407 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
4410 2010-06-22 Jan Hubicka <jh@suse.cz>
4412 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
4413 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
4414 Return true if something changed.
4415 * df.h (df_confluence_function_n): Return bool.
4416 * df-core.c (df_worklist_propagate_forward,
4417 df_worklist_propagate_backward): Track changes and ages.
4418 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
4420 * dse.c (dse_confluence_n): Return always true.
4422 2010-06-22 Jan Hubicka <jh@suse.cz>
4424 * bitmap.c (bitmap_clear_bit): Micro optimize.
4426 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
4428 * config/i386/i386.md (SWI1248x): New mode iterator.
4433 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
4434 SWI1248x mode iterator.
4435 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
4436 using SWI124 mode iterator.
4437 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
4439 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
4440 *pushdi2_prologue_rex64 using P mode iterator.
4441 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
4442 using SWI48 mode iterator.
4443 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
4444 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
4445 using SWI1248x mode iterator.
4446 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
4447 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
4448 SWI48 mode iterator.
4449 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
4451 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
4452 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
4453 SWI12 mode iterator.
4454 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
4455 SWI12 mode iterator.
4456 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
4457 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
4458 SWI24 mode iterator.
4459 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
4460 SWI48 mode iterator.
4461 (mov<mode>_insn_1): New expander.
4462 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
4463 using SWI48x mode iterator.
4465 (*movoi_internal_avx): Rename from *movoi_internal.
4466 (*movti_internal_rex64): Rename from *movti_rex64.
4467 (*movti_internal_sse): Rename from *movti_sse.
4468 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
4469 (*movdi_internal): Rename from *movdi_2.
4470 (*movsi_internal): Rename from *movsi_1.
4471 (*movhi_internal): Rename from *movhi_1.
4472 (*movqi_internal): Rename from *movqi_1.
4474 (insv): Update the call to gen_movsi_insv_1 for rename.
4475 * config/i386/i386.c (promote_duplicated_reg): Ditto.
4477 2010-06-22 Jan Hubicka <jh@suse.cz>
4479 * passes.c (execute_function_todo): Move call of statistics_fini_pass
4481 (execute_todo) ... this one.
4483 2010-06-22 Alan Modra <amodra@gmail.com>
4486 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4487 * caller-save.c (insert_restore, insert_save): Use non-validate
4488 form of adjust_address.
4490 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4493 * config/pa/pa.c (override_options): Disable
4494 -freorder-blocks-and-partition.
4496 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
4499 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
4501 * config/i386/i386.md (type): Add sseishft1
4503 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
4504 (ppro_insn_load): Likewise.
4505 (ppro_insn_store): Likewise.
4506 (ppro_insn_both): Likewise.
4508 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
4509 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
4511 (*vec_extractv2di_1_avx): Likewise.
4512 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
4513 type. Remove atom_unit.
4514 (*vec_extractv2di_1_sse2): Likewise.
4516 2010-06-21 DJ Delorie <dj@redhat.com>
4518 * diagnostic.h (diagnostic_classification_change_t): New.
4519 (diagnostic_context): Add history and push/pop list.
4520 (diagnostic_push_diagnostics): Declare.
4521 (diagnostic_pop_diagnostics): Declare.
4522 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
4523 from pragmas in a history chain instead of the global table.
4524 (diagnostic_push_diagnostics): New.
4525 (diagnostic_pop_diagnostics): New.
4526 (diagnostic_report_diagnostic): Scan history chain to find state
4527 of diagnostics as of the diagnostic location.
4528 * opts.c (set_option): Pass UNKNOWN_LOCATION to
4529 diagnostic_classify_diagnostic.
4530 (enable_warning_as_error): Likewise.
4531 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
4532 use in the history chain.
4533 * doc/extend.texi: Document pragma GCC diagnostic changes.
4535 2010-06-21 Jakub Jelinek <jakub@redhat.com>
4537 * dwarf2out.c (add_linkage_name): New function. Don't add
4538 anything to DW_TAG_member DIEs.
4539 (add_name_and_src_coords_attributes): Use it.
4540 (gen_variable_die): Call it for C++ static data members if
4541 specification is DW_TAG_member.
4543 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
4544 C++ char16_t and char32_t.
4546 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
4547 * genattrtab.c: Include vecprim.h.
4548 (cached_attrs, cached_attr_count, attrs_seen_once,
4549 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
4550 attrs_cached_after): New variables.
4551 (find_attrs_to_cache): New function.
4552 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
4553 (write_test_expr): Add attrs_cached argument, return it too,
4554 attempt to cache non-const attributes used more than once in
4555 a single case handling.
4556 (write_attr_get): Use find_attrs_to_cache, for caching candidates
4557 emit cached_* variables. Adjust write_attr_set callers.
4558 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
4559 to find attributes that should be cached in this block. Adjust
4560 write_test_expr callers.
4561 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
4563 (make_automaton_attrs): Adjust write_test_expr caller.
4565 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
4566 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
4567 (make_automaton_attrs): If find_tune_attr returns non-NULL,
4568 write separate internal_dfa_insn_code_* and insn_default_latency_*
4569 functions for each attribute's value and emit init_sched_attrs
4570 function and function pointers.
4571 * genattr.c (const_attrs, reservations): New variables.
4572 (gen_attr): Add const attributes to const_attrs vector.
4573 (check_tune_attr, find_tune_attr): New functions.
4574 (main): Add reservations to reservations vector. If find_tune_attr
4575 returns true, add prototype for init_sched_attrs and make
4576 internal_dfa_insn_code and insn_default_latency function pointers,
4577 otherwise define init_sched_attrs as dummy macro.
4578 * cfgexpand.c: Include insn-attr.h.
4579 (gimple_expand_cfg): Call init_sched_attrs.
4581 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
4584 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
4585 va_arg from a set of register save slots into a temporary,
4586 if the container is bigger than type size, do the copying
4587 using smaller mode or using memcpy.
4590 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
4592 (sel_print_to_dot): Remove macro.
4593 (sel_print): Likewise. New prototype.
4594 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
4595 (sel_print): New function.
4597 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4599 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
4600 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
4602 2010-06-21 Nick Clifton <nickc@redhat.com>
4604 * config/rx/rx.h (PTRDIFF_TYPE): Define.
4605 (SMALL_REGISTER_CLASS): Define (to zero).
4606 (PRINT_OPERAND): Delete.
4607 (PRINT_OPERAND_ADDRESS): Delete.
4608 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
4609 (rx_print_operand_address): Delete prototype.
4610 * config/rx/rx.c (rx_print_operand): Make static.
4611 Allow %H and %L to handle CONST_DOUBLEs.
4612 (rx_print_operand_address): Make static.
4613 (rx_gen_move_template): Rename local variable 'template' to
4615 (rx_function_arg): Do not pass unknown sized objects in registers.
4616 (TARGET_PRINT_OPERAND): Define.
4617 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4619 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4621 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
4623 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
4625 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
4626 stack-alignment for simple leaf-functions.
4628 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
4630 * doc/install.texi: Document bootstrap-lto.
4632 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
4635 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
4636 (input_function): Drop them here, if VTA is disabled.
4638 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
4641 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
4643 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
4644 ix86_swapped_fp_comparsion_operator instead of
4645 ix86_fp_comparison_operator.
4647 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
4648 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
4649 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
4650 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
4651 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
4652 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
4654 2010-06-20 Joseph Myers <joseph@codesourcery.com>
4657 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
4658 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
4659 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
4660 (decode_cmdline_option): Update for this return value. Set
4661 orig_option_with_args_text field. Set arg field for unknown
4662 options. Make static.
4663 (decode_cmdline_options_to_array): New.
4664 (prune_options): Update handling of find_opt return value.
4665 * opts.c (read_cmdline_option): Take decoded option. Return void.
4666 (read_cmdline_options): Take decoded options.
4667 (decode_options): Add parameters for decoded options. Use
4668 decode_cmdline_options_to_array. Use decoded options for -O
4669 scan. Use integral_argument for -O parameters. Update call to
4670 read_cmdline_options.
4671 (enable_warning_as_error): Update handling of find_opt return value.
4672 * opts.h: Update comment on unknown options.
4673 (struct cl_decoded_option): Update comments on opt_index and arg.
4674 Add orig_option_with_args_text.
4675 (decode_cmdline_option): Remove.
4676 (decode_cmdline_options_to_array): Declare.
4677 (decode_options): Update prototype.
4678 * toplev.c (save_argv): Remove.
4679 (save_decoded_options, save_decoded_options_count): New.
4680 (read_integral_parameter): Remove.
4681 (print_switch_values): Use decoded options.
4682 (toplev_main): Don't set save_argv. Update call to decode_options.
4683 * toplev.h (read_integral_parameter): Remove.
4684 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
4686 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
4689 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
4691 * constraints.md (Pw, Px): New constraints.
4692 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
4694 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
4696 * config/i386/sse.md (fma4modesuffixf4): Removed.
4697 (ssemodesuffixf2s): Likewise.
4698 (ssemodesuffixf4): Likewise.
4699 (ssemodesuffixf2c): Likewise.
4700 (ssescalarmodesuffix2s): Likewise.
4701 (avxmodesuffixf2c): Likewise.
4702 (ssemodesuffix): New.
4703 (ssescalarmodesuffix): Likewise.
4704 Update patterns with ssemodesuffix and ssescalarmodesuffix.
4706 2010-06-19 Philip Herron <herron.philip@googlemail.com>
4708 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
4710 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
4712 * stor-layout.c (debug_rli): Remove unused local variables.
4714 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
4716 PR rtl-optimization/40900
4717 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
4718 original expression for later reuse.
4719 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
4720 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
4722 2010-06-18 Anatoly Sokolov <aesok@post.ru>
4724 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
4725 double_int_fits_in_uhwi_p): Implement as static inline.
4726 (double_int_xor): New inline function.
4727 (double_int_lrotate, double_int_rrotate, double_int_max,
4728 double_int_umax, double_int_smax, double_int_min, double_int_umin,
4729 double_int_smin): Declare.
4730 (lrotate_double, rrotate_double): Remove declaration.
4731 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
4732 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
4733 (double_int_lrotate, double_int_rrotate, double_int_max,
4734 double_int_umax, double_int_smax, double_int_min, double_int_umin,
4735 double_int_smin): New function.
4736 * fold-const.c (int_const_binop): Clean up, use double_int_*
4738 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
4739 double_int_* and immed_double_int_const functions.
4741 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4743 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
4744 * function.c (types_used_by_cur_var_decl): Likewise.
4745 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
4747 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4749 * tree.h (record_layout_info): Change type of pending_statics field
4751 * stor-layout.c (start_record_layout): Store NULL into
4753 (debug_rli): Call debug_vec_tree instead of debug_tree.
4754 (place_field): Likewise.
4755 (finish_record_layout): Likewise.
4757 2010-06-18 Alan Modra <amodra@gmail.com>
4759 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
4761 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4764 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
4765 for SET source operand from SET destination operand.
4767 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
4769 PR rtl-optimization/39871
4770 * reload1.c (init_eliminable_invariants): For flag_pic, disable
4771 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
4772 (function_invariant_p): Rule out a plus of frame or arg pointer with
4774 * ira.c (find_reg_equiv_invariant_const): Likewise.
4776 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
4778 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
4779 print_operand_address and puts to output the operand for CONST.
4781 2010-06-17 Jakub Jelinek <jakub@redhat.com>
4784 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
4787 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4789 * v850-protos.h (print_operand): Delete.
4790 (print_operand_address): Delete.
4791 * v850.h (PRINT_OPERAND): Delete.
4792 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4793 (PRINT_OPERAND_ADDRESS): Delete.
4794 * v850.c (print_operand_address): Rename to...
4795 (v850_print_operand_address): ...this. Make static. Call
4797 (print_operand): Rename to...
4798 (v850_print_operand): ...this. Make static. Call
4799 v850_print_operand_address.
4800 (v850_print_operand_punct_valid_p): New function.
4801 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4802 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4804 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4806 * config/sh/sh-protos.h (print_operand): Delete.
4807 (print_operand_address): Delete.
4808 * config/sh/sh.h (PRINT_OPERAND): Delete.
4809 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4810 (PRINT_OPERAND_ADDRESS): Delete.
4811 * config/sh/sh.c (sh_print_operand_address): Make static.
4812 (sh_print_operand): Make static. Call sh_print_operand_address
4813 and sh_print_operand.
4814 (sh_print_operand_punct_valid_p): New function.
4815 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4816 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4818 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4820 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
4821 (mcore_print_operand_address): Delete.
4822 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
4823 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4824 (PRINT_OPERAND_ADDRESS): Delete.
4825 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
4826 (mcore_print_operand): Make static.
4827 (mcore_print_operand_punct_valid_p): New function.
4828 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
4829 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4831 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4833 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
4834 (print_operand_address): Delete.
4835 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
4836 (PRINT_OPERAND_ADDRESS): Delete.
4837 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
4839 (m68hc11_print_operand): Make static.
4840 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4842 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4844 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
4845 (m32r_print_operand_address): Delete.
4846 * config/m32r/m32r.h (m32r_punct_chars): Delete.
4847 (PRINT_OPERAND): Delete.
4848 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4849 (PRINT_OPERAND_ADDRESS): Delete.
4850 * config/m32r/m32r.c (m32r_punct_chars): Make static.
4851 (m32r_print_operand_address): Make static.
4852 (m32r_print_operand): Make static.
4853 (m32r_print_operand_punct_valid_p): New function.
4854 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4855 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4857 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4859 * config/iq2000/iq2000-protos.h (print_operand): Delete.
4860 (print_operand_address): Delete.
4861 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
4862 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4863 (PRINT_OPERAND_ADDRESS): Delete.
4864 (iq2000_print_operand_punct): Delete.
4865 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
4866 (iq2000_print_operand_address): Make static.
4867 (iq2000_print_operand): Make static.
4868 (iq2000_print_operand_punct_valid_p): New function.
4869 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4870 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4872 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4874 * config/frv/frv-protos.h (frv_print_operand): Delete.
4875 (frv_print_operand_address): Delete.
4876 * config/frv/frv.h (PRINT_OPERAND): Delete.
4877 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4878 (PRINT_OPERAND_ADDRESS): Delete.
4879 * config/frv/frv.c (frv_print_operand_address): Make static.
4880 (frv_print_operand): Make static.
4881 (frv_print_operand_punct_valid_p): New function.
4882 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4883 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4885 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4887 * tree.h (vec_member): Declare.
4888 * tree.c (vec_member): Define.
4890 2010-06-17 Richard Guenther <rguenther@suse.de>
4892 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
4893 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
4895 2010-06-17 Richard Guenther <rguenther@suse.de>
4897 * tree-inline.c (declare_return_variable): Remove bogus code.
4899 2010-06-17 Richard Guenther <rguenther@suse.de>
4901 * gimplify.c (gimplify_bind_expr): Always promote complex
4902 and vector variables to registers if possible.
4904 2010-06-17 Richard Guenther <rguenther@suse.de>
4906 * expr.c (get_inner_reference): Use double_int for bit_offset
4909 2010-06-16 DJ Delorie <dj@redhat.com>
4911 * common.opt (-fstrict-volatile-bitfields): new.
4912 * doc/invoke.texi: Document it.
4913 * fold-const.c (optimize_bit_field_compare): For volatile
4914 bitfields, use the field's type to determine the mode, not the
4916 * expr.c (expand_assignment): Likewise.
4917 (get_inner_reference): Likewise.
4918 (expand_expr_real_1): Likewise.
4919 * expmed.c (store_fixed_bit_field): Likewise.
4920 (extract_bit_field_1): Likewise.
4921 (extract_fixed_bit_field): Likewise.
4923 2010-06-16 Richard Guenther <rguenther@suse.de>
4925 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
4927 2010-06-16 Douglas B Rupp <rupp@gnat.com>
4929 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
4930 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
4931 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
4932 * debug.c: Likewise.
4933 * sdbout.c: Likewise.
4934 * vmsdbgout.c: Likewise.
4935 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
4936 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
4937 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
4938 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
4939 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
4940 * dwarf2out.c (dw_fde_struct): New fields
4941 dw_fde_vms_{end,begin}_prologue.
4942 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
4943 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
4944 (dwarf2out_vms_end_prologue): New function.
4945 (dwarf2out_vms_begin_epilogue): New function.
4946 (dw_val_struct): New value dw_val_class_vms_delta.
4947 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
4948 begin_epilogue for VMS.
4949 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
4950 new static functions.
4951 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
4952 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
4954 (print_die): New case dw_val_class_vms_delta.
4955 (attr_checksum): Likewise.
4956 (same_dw_val_p: Likewise.
4957 (size_of_die): Likewise.
4958 (value_format): Likewise.
4959 (output_die): Likewise.
4960 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
4961 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
4962 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
4963 dwarf2out_cfi_begin_epilogue
4964 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
4966 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
4968 * config/cris/cris-protos.h (cris_print_operand): Delete.
4969 (cris_print_operand_address): Delete.
4970 * config/cris/cris.h (PRINT_OPERAND): Delete.
4971 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4972 (PRINT_OPERAND_ADDRESS): Delete.
4973 * config/cris/cris.c (cris_print_operand_address): Make static.
4974 (cris_print_operand): Make static.
4975 (cris_print_operand_punct_valid_p): New function.
4976 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4977 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4979 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
4981 * config/arm/arm-protos.h (arm_print_operand): Delete.
4982 (arm_print_operand_address): Delete.
4983 * config/arm/arm.h (PRINT_OPERAND): Delete.
4984 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4985 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
4986 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
4987 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
4988 (arm_print_operand): Make static.
4989 (arm_print_operand_punct_valid_p): New function.
4990 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4991 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4993 2010-06-16 Nick Clifton <nickc@redhat.com>
4995 * config/rx/constraints.md (NEGint4): New constraint.
4996 * config/rx/rx.md (attr cc): Add set_zsc.
4997 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
5000 (call_internal): Clobber the cc0 register.
5001 (call_value_internal): Likewise.
5002 (cstoresi4): Likewise.
5003 (movsieq): Likewise.
5004 (movsine): Likewise.
5005 (addsi3): Add alternative to handle small negative constants.
5007 (addsi3): Do not set the O bit in the cc0 register.
5011 (andsi3): Reorder alternatives to prefer shorter forms.
5014 (negsi2): Note that the cc0 flags are set.
5015 (rotlsi3): Note that only the Z and S bits are set in cc0.
5016 (lshrsi3): Likewise.
5017 (ashlsi3): Likewise.
5018 (subsf3): Use %Q for the MEM operand.
5019 (fix_truncsfsi2): Likewise.
5020 (floatsisf2): Likewise.
5021 (bitset): Remove early clobber from destination.
5022 (bitset_in_memory): Likewise.
5023 (lrintsf2): Clobber the cc0 register.
5024 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
5025 (rx_print_operand): Handle %N.
5027 2010-06-16 Jan Hubicka <jh@suse.cz>
5029 * df-core.c (df_compact_blocks): Free problem_temps vector.
5031 2010-06-16 Martin Jambor <mjambor@suse.cz>
5033 PR tree-optimization/43905
5034 * tree-sra.c: Include tree-inline.h.
5035 (create_abstract_origin): Removed.
5036 (modify_function): Version the call graph node instead of creating
5037 abstract origins and dealing with same_body aliases.
5038 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
5039 function is versionable.
5040 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
5042 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
5044 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
5045 (CHOOSE_DYNAMIC_LINKER): Update.
5047 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
5049 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
5050 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
5051 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
5052 *prefetch_3dnow_rex.
5054 2010-06-15 Anatoly Sokolov <aesok@post.ru>
5056 * target.h (struct asm_out):Add declare_constant_name field.
5057 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
5058 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
5059 * output.h (default_asm_declare_constant_name): Declare.
5060 (assemble_label): Update prototype.
5061 * varasm.c (assemble_constant_contents): Use
5062 targetm.asm_out.declare_constant_name target hook.
5063 (assemble_label): Add 'file' argument.
5064 (default_asm_declare_constant_name): New function.
5065 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
5066 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
5067 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
5069 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
5070 * config/darwin.c (darwin_asm_declare_constant_name): New function.
5071 (machopic_output_indirection): Update assemble_label argument list.
5072 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
5073 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
5075 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
5078 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
5079 size_one_node for pointer types. Do not call gmp_cst_to_tree.
5081 2010-06-15 Richard Guenther <rguenther@suse.de>
5083 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
5085 2010-06-15 Paul Brook <paul@codesourcery.com>
5087 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
5090 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
5092 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
5093 don't get a vector type for output.
5095 2010-06-15 Jakub Jelinek <jakub@redhat.com>
5098 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
5099 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
5100 (LANG_HOOKS_DECLS): Add it.
5101 * gimplify.c (omp_notice_variable): Call
5102 lang_hooks.decls.omp_report_decl.
5104 2010-06-15 Martin Jambor <mjambor@suse.cz>
5107 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
5108 on the newly dead SSA name.
5110 2010-06-15 Alan Modra <amodra@gmail.com>
5112 * doc/invoke.texi: Add mcmodel to powerpc options.
5113 * configure.ac: Add HAVE_LD_LARGE_TOC test.
5114 * configure: Regenerate.
5115 * config.in: Regenerate.
5116 * config/rs6000/linux64.opt (mcmodel): New.
5117 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
5118 (TARGET_CMODEL, SET_CMODEL): Define.
5119 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
5120 select CMODEL_MEDIUM default.
5121 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
5122 (TARGET_CMODEL): Define default.
5123 * config/rs6000/rs6000.c (cmodel): New variable.
5124 (rs6000_explicit_options): Add cmodel field.
5125 (rs6000_handle_option): Handle -mcmodel.
5126 (create_TOC_reference): Add largetoc_reg param. Generate high,
5127 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
5128 (rs6000_delegitimize_address): Recognise new toc reference rtl
5129 and minimal-toc rtl.
5130 (rs6000_legitimize_reload_address): Handle new toc references.
5131 (print_operand_address): Handle legitimate_constant_pool_address_p
5132 match before lo_sum.
5133 (rs6000_eliminate_indexed_memrefs): Tidy.
5134 (rs6000_emit_move): Tweak threshold for inlining constants.
5135 Keep rs6000_emit_allocate_stack large stack frame offsets
5136 loaded into r0 inline.
5137 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
5138 (tocrel_base, tocrel_offset): New variables.
5139 (toc_relative_expr_p): Set them here.
5140 (print_operand_address): Skip over any offset on constant pool address.
5141 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
5142 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
5143 (offsettable_ok_by_alignment): New function.
5144 (rs6000_emit_move): Address suitably aligned local symbol_refs
5145 relative to the toc pointer for -mcmodel=medium.
5146 (legitimate_constant_pool_address_p): Make param const_rtx. Add
5147 strict param. Allow lo_sum version of addressing. Verify reg
5148 used for -mminimal-toc and -mcmodel != small. Update all callers.
5149 * config/rs6000/constraints.md: Update for above change.
5150 * config/rs6000/predicates.md: Likewise.
5151 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
5153 (tls_gd): Split for -mcmodel=medium/large.
5154 (tls_gd_high, tls_gd_low): New.
5155 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
5156 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
5157 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
5158 (largetoc_high, largetoc_low): New.
5159 (cmptf_internal2): Add clobber.
5160 * config/rs6000/rs6000-protos.h: Update.
5162 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
5164 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
5165 true if no prefetch is going to be generated for a given group.
5166 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
5167 estimate the prefetch_count.
5168 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
5169 prefetch count by considering the unroll_factor and prefetch_mod
5170 for is_loop_prefetching_profitable.
5172 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
5174 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
5175 anything if the argument is not a MEM.
5177 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
5182 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
5184 (canonicalize_loop_ivs): Likewise.
5186 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
5189 * haifa-sched.c (setup_insn_reg_pressure_info,
5190 update_register_pressure): Reject debug insns.
5191 (ready_sort): Don't setup reg pressure for debug insns.
5192 (schedule_insn): Don't update reg pressure for debug insns.
5194 2010-06-14 Richard Guenther <rguenther@suse.de>
5196 * lto-streamer.c (cached_bp): Remove.
5197 (bitpack_delete): Likewise.
5198 (bitpack_create): Likewise.
5199 (bp_get_next_word): Likewise.
5200 (bp_pack_value, bp_unpack_value): Move ...
5201 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
5203 (struct bitpack_d): Likewise.
5204 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
5205 New inline functions.
5206 * lto-streamer-out.c (lto_output_bitpack): Remove.
5207 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
5208 (pack_value_fields): Adjust.
5209 (lto_write_tree): Likewise.
5210 (output_gimple_stmt): Likewise.
5211 (output_function): Likewise.
5212 * lto-streamer-in.c (input_gimple_stmt): Adjust.
5213 (input_function): Likewise.
5214 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
5215 (lto_input_bitpack): Remove.
5216 (lto_materialize_tree): Adjust.
5217 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
5218 * lto-cgraph.c (lto_output_edge): Adjust.
5219 (lto_output_node): Likewise.
5220 (lto_output_varpool_node): Likewise.
5221 (lto_output_ref): Likewise.
5222 (input_node): Likewise.
5223 (input_varpool_node): Likewise.
5224 (input_ref): Likewise.
5225 (input_edge): Likewise.
5226 (output_node_opt_summary): Likewise.
5227 (input_node_opt_summary): Likewise.
5228 * ipa-pure-const.c (pure_const_write_summary): Likewise.
5229 (pure_const_read_summary): Likewise.
5230 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
5231 (ipa_read_indirect_edge_info): Likewise.
5232 (ipa_write_node_info): Likewise.
5233 (ipa_read_node_info): Likewise.
5235 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
5238 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
5239 (vec_extract_lo_v16hi): Likewise.
5240 (vec_extract_lo_v32qi): Likewise.
5242 2010-06-14 Jakub Jelinek <jakub@redhat.com>
5245 * tree.h (build_call_expr): Don't define as vararg macro, instead
5247 * builtins.c (build_call_nofold): Remove.
5248 (expand_builtin_int_roundingfn, expand_builtin_pow,
5249 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
5250 expand_builtin_memset_args, expand_builtin_strcmp,
5251 expand_builtin_strncmp, expand_builtin_memory_chk): Use
5252 build_call_nofold_loc instead of build_call_nofold.
5253 (build_call_expr): New function.
5255 PR tree-optimization/44508
5256 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
5257 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
5258 don't eliminate trivially dead stmts.
5259 * tree-vrp.c (vrp_finalize): Pass false as last argument
5260 to substitute_and_fold.
5261 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
5262 to substitute_and_fold.
5263 * tree-ssa-ccp.c (ccp_finalize): Likewise.
5266 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
5268 2010-06-14 Ira Rosen <irar@il.ibm.com>
5270 PR tree-optimization/44507
5271 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
5272 to build initial vector for BIT_AND_EXPR.
5273 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
5275 2010-06-14 Jakub Jelinek <jakub@redhat.com>
5277 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
5278 adjust z10prop set_attr.
5280 2010-06-13 Jan Hubicka <jh@suse.cz>
5282 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
5283 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
5284 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
5285 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
5286 datastructure checks into checking asserts.
5287 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
5288 * tree-ssa-sccvn.c (VN_INFO): Likewise.
5289 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
5290 df_ref_create_structure): Likewise.
5291 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
5292 pool_free): Use gcc_checking_assert.
5293 * alias.c (get_alias_set): Likewise.
5294 * var-tracking.c (variable_htab_free, shared_hash_copy,
5295 canonicalize_values_mark, variable_merge_over_cur): Likewise.
5296 * lto-streamer.c (bp_unpack_value): Likewise.
5298 2010-06-13 Richard Guenther <rguenther@suse.de>
5300 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
5301 Do not stream but initialize TYPE_CANONICAL to NULL.
5302 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
5303 * gimple.c (gimple_types_compatible_p): Disregard
5304 TYPE_STRUCTURAL_EQUALITY_P.
5305 (gimple_register_type): Use TYPE_CANONICAL as cache.
5306 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
5307 before registering common types.
5308 * config/i386/i386.c (ix86_function_arg_boundary): Do not
5309 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
5310 * tree.h (TYPE_CANONICAL): Clarify documentation.
5312 2010-06-13 Anatoly Sokolov <aesok@post.ru>
5314 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
5315 LIBCALL_VALUE): Remove macros.
5316 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
5317 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5318 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5319 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
5320 (ia64_function_value): Make static. Handle receiving the function
5321 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
5323 2010-06-12 Jan Hubicka <jh@suse.cz>
5325 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
5328 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
5330 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
5332 2010-06-12 Jan Hubicka <jh@suse.cz>
5334 * df-core.c (df_clear_bb_info): New function.
5335 (df_set_blocks): bb_info is always allocated.
5336 (df_get_bb_info): Use block_info_elt_size.
5337 (df_set_bb_info): Likewise.
5338 (df_compact_blocks): Update for new block_info.
5339 (grow_bb_info): New function.
5340 * df-problems.c (df_grow_bb_info): Move to df-core.c
5341 (df_rd_set_bb_info): Remove.
5342 (df_rd_free_bb_info): Do not free block pool.
5343 (df_rd_alloc): Do not create pool, use check for
5344 obstack presence instead of NULL pointer for new blocks.
5345 (df_rd_free): DO not free alloc pool; clear block_info.
5346 (problem_RD): Add size of block info structure.
5347 (df_lr_set_bb_info): Remove.
5348 (df_lr_free_bb_info): Do not free block pool.
5349 (df_lr_alloc): Do not create pool, use check for
5350 obstack presence instead of NULL pointer for new blocks.
5351 (df_lr_free): DO not free alloc pool; clear block_info.
5352 (problem_LR): Add size of block info structure.
5353 (df_live_set_bb_info): Remove.
5354 (df_live_free_bb_info): Do not free block pool.
5355 (df_live_alloc): Do not create pool, use check for
5356 obstack presence instead of NULL pointer for new blocks.
5357 (df_live_free): DO not free alloc pool; clear block_info.
5358 (problem_LIVE): Add size of block info structure.
5359 (problem_CHAIN): Add size of block info structure.
5360 (df_byte_lr_set_bb_info): Remove.
5361 (df_byte_lr_free_bb_info): Do not free block pool.
5362 (df_byte_lr_alloc): Do not create pool, use check for
5363 obstack presence instead of NULL pointer for new blocks.
5364 (df_byte_lr_free): DO not free alloc pool; clear block_info.
5365 (problem_BYTE_LR): Add size of block info structure.
5366 (problem_NOTE): Add size of block info structure.
5367 (df_byte_MD_set_bb_info): Remove.
5368 (df_byte_MD_free_bb_info): Do not free block pool.
5369 (df_byte_MD_alloc): Do not create pool, use check for
5370 obstack presence instead of NULL pointer for new blocks.
5371 (df_byte_MD_free): DO not free alloc pool; clear block_info.
5372 (problem_BD): Add size of block info structure.
5373 * df-scan.c (df_scan_free_internal): Free block pool.
5374 (df_scan_set_bb_info): Remove.
5375 (df_scan_free_bb_info): Check for artificial_defs instead
5376 of bb_info being non-NULL.
5377 (df_scan_alloc): DO not create df_scan_block pool.
5378 (problem_SCAN): Set size of block info.
5379 (df_bb_refs_record): Do not allocate bb_info.
5380 * df.h (df_problem): Add block_info_elt_size.
5381 (struct dataflow): Change block_info to void *.
5382 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
5383 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
5386 2010-06-12 Jan Hubicka <jh@suse.cz>
5388 PR tree-optimize/44485
5389 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
5390 containing use of return value of noreturn function.
5392 2010-06-12 Anatoly Sokolov <aesok@post.ru>
5394 * targhooks.c (default_function_value): Don't use
5395 FUNCTION_OUTGOING_VALUE.
5396 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
5397 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
5399 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
5401 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
5402 Add crtfastmath.o to extra_parts.
5403 * config/mips/crtfastmath.c: New.
5404 * config/mips/linux.h (ENDFILE_SPEC): New.
5406 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
5408 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
5409 old_type in parameter.
5410 (gcc_type_for_value): Update call to gcc_type_for_interval.
5411 (compute_type_for_level_1): Renamed compute_type_for_level.
5412 Update call to gcc_type_for_interval.
5414 2010-06-11 Joseph Myers <joseph@codesourcery.com>
5416 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
5417 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
5419 2010-06-11 Joseph Myers <joseph@codesourcery.com>
5421 * opts-common.c: Include options.h.
5422 (integral_argument): Move from opts.c.
5423 (decode_cmdline_option): New. Based on read_cmdline_option.
5424 * opts.c (integral_argument): Move to opts-common.c.
5425 (read_cmdline_option): Move most contents to
5426 decode_cmdline_option. Use %qs in diagnostics.
5427 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
5428 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
5429 decode_cmdline_option): New.
5431 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
5434 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
5435 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
5436 (partiysi2_cmp): Ditto.
5437 (*partiyhi2_cmp): Ditto.
5438 (*parityqi2_cmp): Remove.
5440 2010-06-11 Jan Hubicka <jh@suse.cz>
5442 * bitmap.h (bmp_iter_next_bit): New.
5443 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
5445 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
5446 Eric Botcazou <ebotcazou@adacore.com>
5448 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
5451 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
5453 * config/i386/i386.md (unspec): New define_c_enum.
5456 2010-06-10 Jakub Jelinek <jakub@redhat.com>
5458 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
5460 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
5463 * tree-if-conv.c (bb_predicate_s): New struct.
5464 (bb_predicate_p): New.
5465 (bb_has_predicate): New.
5466 (bb_predicate): New.
5467 (set_bb_predicate): New.
5468 (bb_predicate_gimplified_stmts): New.
5469 (set_bb_predicate_gimplified_stmts): New.
5470 (add_bb_predicate_gimplified_stmts): New.
5471 (init_bb_predicate): New.
5472 (free_bb_predicate): New.
5473 (is_predicated): Use bb_predicate.
5474 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
5475 (predicate_bbs): Same. Gimplify the condition of the basic blocks
5476 before processing their successors.
5477 (clean_predicate_lists): Removed.
5478 (find_phi_replacement_condition): Use bb_predicate.
5479 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
5481 (insert_gimplified_predicates): New.
5482 (combine_blocks): Call insert_gimplified_predicates.
5483 (tree_if_conversion): Call free_bb_predicate instead of
5484 clean_predicate_lists.
5486 2010-10-11 Paul Brook <paul@codesourcery.com>
5488 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
5489 * config/arm/arm.c (all_architectures): Change v7e-m default to
5491 * config/arm/arm-cores.def: Add cortex-m4.
5492 * config/arm/arm-tune.md: Regenerate.
5494 2010-06-11 Jan Hubicka <jh@suse.cz>
5496 * ipa-pure-const.c (special_builtlin_state): New function.
5497 (check_call): Use it instead of special casign BUILT_IN_RETURN.
5498 (propagate_pure_const): Use it.
5500 2010-06-11 Jan Hubicka <jh@suse.cz>
5502 * df-problems.c (df_live_scratch): Convert to bitmap_head.
5503 (df_live_alloc): Initialize df_live_scratch when initializing
5505 (df_live_transfer_function): Update uses of df_live_scratch.
5506 (df_live_free): Free problem_data; clear df_live_scratch before
5507 releasing the obstack.
5508 (df_md_free): Free problem data.
5510 2010-06-11 Jan Hubicka <jh@suse.cz>
5512 * doc/invoke.texi (Wsuggest-attribute): Document.
5513 (Wmissing-noreturn): Remove.
5514 * ipa-pure-const.c (warn_function_noreturn): New function.
5515 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
5516 warn_missing_noreturn.
5517 * common.opt (Wsuggest-attribute=noreturn): New.
5518 * tree-flow.h (warn_function_noreturn): Declare.
5519 * tree-cfg.c (execute_warn_function_noreturn): Use
5520 warn_function_noreturn.
5521 (gate_warn_function_noreturn): New.
5522 (pass_warn_function_noreturn): Update.
5524 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5526 * c-typeck.c (handle_warn_cast_qual): Add loc
5527 parameter. Improve warning message.
5528 (build_c_cast): Pass location to handle_warn_cast_qual.
5530 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
5532 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
5533 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
5535 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
5537 2010-06-10 Dodji Seketeli <dodji@redhat.com>
5539 Fix bootstap on mips
5540 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
5543 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
5545 * system.h (helper_const_non_const_cast): New inline for
5547 (CONST_CAST2): For gcc version <= 4.0 use
5548 new helper to do const/non-const casting.
5550 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5552 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
5553 * Makefile.in (OBJS-common): Include insn-enums.o.
5554 (insn-enums.o): New rule.
5555 (simple_generated_c): Add insn-enums.c.
5556 (build/genenums.o): New rule.
5557 (genprogmd): Add "enums".
5558 * genconstants.c (print_enum_type): Declare a C string array
5560 * genenums.c: New file.
5561 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
5562 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
5563 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
5565 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5567 * doc/md.texi (define_enum_attr): Document.
5568 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
5569 * read-md.h (lookup_enum_type): Declare.
5570 * read-md.c (lookup_enum_type): New function.
5571 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
5572 * genattrtab.c (attr_desc): Add an enum_name field.
5573 (evaluate_eq_attr): Take the associated attribute as argument.
5574 Get the enum prefix from the enum_name field, if defined.
5575 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
5576 (simplify_test_exp): Pass attr to evaluate_eq_attr.
5577 (add_attr_value): New function, split out from...
5578 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
5579 (write_test_expr): Pass attr to evaluate_eq_attr.
5580 (write_attr_get): Use the enum_name as the enum tag, if defined.
5581 (write_attr_valueq): Use the enum_name as a prefix, if defined.
5582 (find_attr): Initialize enum_name.
5583 (main): Handle DEFINE_ENUM_ATTR.
5584 * gensupport.c (process_rtx): Likewise.
5585 * config/mips/mips.h (mips_tune_attr): Delete.
5586 * config/mips/mips.md (cpu): Use define_attr_enum.
5588 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5590 * doc/md.texi (define_c_enum, define_enum): Document.
5591 * read-md.h (md_constant): Add a parent_enum field.
5592 (enum_value, enum_type): New structures.
5593 (upcase_string, traverse_enum_types): Declare.
5594 * read-md.c (enum_types): New variable.
5595 (upcase_string, add_constant): New functions.
5596 (handle_constants): Don't create the hash table here.
5598 (traverse_md_constants): Don't check for a null md_constants.
5599 (decimal_string, handle_enum, traverse_enum_types): New functions.
5600 (read_md_files): Initialize md_constants and md_enums.
5601 * genconstants.c (print_md_constant): Ignore info argument.
5602 Only print constants that belong to no enum.
5603 (print_enum_type): New function.
5604 (main): Don't pass stdout to print_md_constant. Call print_enum_type
5605 for each defined enum type.
5606 * config/mips/mips.md (processor): New define_enum.
5607 (unspec): New define_c_enum.
5608 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
5609 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
5610 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
5611 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
5612 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
5613 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
5614 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
5615 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
5616 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
5617 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
5618 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
5619 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
5620 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
5621 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
5622 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
5623 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
5624 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
5625 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
5626 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
5627 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
5628 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
5629 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
5630 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5631 (UNSPEC_RDDSP): Move to mips-dsp.md.
5632 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
5633 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
5634 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
5635 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
5636 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
5637 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
5638 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
5639 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
5640 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
5641 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
5642 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
5643 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
5644 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
5645 Moved to mips-dspr2.md.
5646 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
5647 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
5648 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
5649 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
5650 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
5651 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
5652 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5653 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5654 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5655 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5656 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5657 UNSPEC_LOONGSON_PSADBH)
5658 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5659 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5660 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
5661 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5662 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5663 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5664 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
5665 (cpu): Update comment.
5666 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
5667 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
5668 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
5669 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
5670 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
5671 UNSPEC_LOONGSON_PCMPEQ)
5672 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
5673 UNSPEC_LOONGSON_PINSR_0)
5674 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5675 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5676 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5677 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5678 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5679 UNSPEC_LOONGSON_PSADBH)
5680 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5681 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5682 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
5683 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5684 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5685 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5686 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
5687 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
5688 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
5689 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
5690 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
5691 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
5692 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
5693 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
5694 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
5695 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
5696 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
5697 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
5698 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
5699 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
5700 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
5701 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
5702 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
5703 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
5704 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
5705 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
5706 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5707 (UNSPEC_RDDSP): Moved from mips.md.
5708 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
5709 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
5710 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
5711 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
5712 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
5713 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
5714 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
5715 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
5716 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
5717 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
5718 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
5719 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
5720 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
5721 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
5722 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
5723 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
5724 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
5725 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
5726 (UNSPEC_SCC): Moved from mips.md.
5727 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
5728 "processor_type" to "processor".
5729 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
5730 * config/mips/mips.h (processor_type): Delete.
5731 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
5732 "processor_type" to "processor".
5734 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5736 * configure.ac (tm_include_list): Add insn-constants.h.
5737 * configure: Regenerate.
5738 * Makefile.in (GTM_H): Move insn-constants.h here from...
5740 * mkconfig.sh: Remove special handling for insn-constants.h.
5742 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5744 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
5745 (BUILD_MD): ...this new variable.
5746 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
5747 that include the old contents of simple_generated_h and
5749 (simple_generated_h, simple_generated_c): Include them. Add
5751 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
5752 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
5753 Remove these dependencies from the main rule and include
5754 insn-conditions.md in the command line only if it appears
5755 in the dependency list.
5756 (insn-constants.h, s-constants): Delete.
5757 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
5759 (build/genmddeps.o): Likewise.
5760 (genprogrtl): New variable that contains everything from genprogmd
5761 except mddeps and constants.
5762 (genprogmd): Redefine in terms of genprogrtl. Make these programs
5763 depend on $(BUILD_MD)
5764 (genprog): New variable. Make these programs depend on
5766 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
5767 (main): Use read_md_files instead of init_rtx_reader_args.
5768 * genconstants.c: As for genmddeps.c.
5769 * read-md.h (read_skip_construct): Declare.
5770 * read-md.c (read_skip_construct): New function.
5771 (handle_file): Allow a null handle_directive, skipping the
5773 (parse_include): Update the comment accordingly.
5775 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5777 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
5778 * genmddeps.c: Include read-md.h.
5779 (main): Call init_rtx_reader_args instead of init_md_reader_args.
5780 * genattr.c (main): Likewise.
5781 * genattrtab.c (main): Likewise.
5782 * genautomata.c (main): Likewise.
5783 * gencodes.c (main): Likewise.
5784 * genconditions.c (main): Likewise.
5785 * genconfig.c (main): Likewise.
5786 * genconstants.c (main): Likewise.
5787 * genemit.c (main): Likewise.
5788 * genextract.c (main): Likewise.
5789 * genflags.c (main): Likewise.
5790 * genopinit.c (main): Likewise.
5791 * genoutput.c (main): Likewise.
5792 * genpeep.c (main): Likewise.
5793 * genrecog.c (main): Likewise.
5794 * genpreds.c (main): Likewise.
5795 * gensupport.h (in_fname): Move to read-md.h.
5796 (init_md_reader_args_cb): Rename to...
5797 (init_rtx_reader_args_cb): ...this and return a bool.
5798 (init_md_reader_args): Rename to...
5799 (init_rtx_reader_args): ...this and return a bool.
5800 (include_callback): Move to read-md.h.
5801 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
5802 (file_name_list, first_dir_md_include): Move to read-md.c
5803 (first_bracket_include): Delete unused variable.
5804 (last_dir_md_include): Move to read-md.c.
5805 (process_include): Delete, moving code to read-md.c:handle_include.
5806 (process_rtx): Don't handle INCLUDE.
5807 (save_string): Delete.
5808 (rtx_handle_directive): New function.
5809 (init_md_reader_args_cb): Rename to...
5810 (init_rtx_reader_args_cb): ...this and return a boolean success value.
5812 (init_md_reader_args): Rename to...
5813 (init_rtx_reader_args): ...this and return a boolean success value.
5814 * rtl.def (INCLUDE): Delete.
5815 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
5817 * read-rtl.c (read_conditions): Don't gobble ')' here.
5818 (read_mapping): Likewise.
5819 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
5820 Handle top-level non-rtx constructs here rather than in read_rtx_1.
5821 Store the whole queue in *X. Remove call to init_md_reader.
5822 (read_rtx_1): Rename to...
5823 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
5824 Don't handle top-level non-rtx constructs here. Don't handle (nil)
5826 (read_nested_rtx): New function. Handle (nil) here rather than
5828 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
5830 * read-md.h (directive_handler_t): New type.
5831 (in_fname, include_callback): Moved from read-md.h.
5832 (read_constants, init_md_reader): Delete.
5833 (read_md_files): Declare.
5834 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
5835 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
5837 (read_constants): Rename to...
5838 (handle_constants): ...this. Don't gobble ')' here.
5839 (handle_include, handle_file, handle_toplevel_file)
5840 (parse_include): New functions, mostly taken from gensupport.c.
5841 (init_md_reader): Subsume into...
5842 (read_md_files): ...this new function.
5844 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5846 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
5847 (unread_char): Decrement read_md_lineno after putting back '\n'.
5848 * read-md.c (fatal_with_file_and_line): Push back any characters
5849 that we decide not to add to the context.
5850 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
5851 fatal_expected_char in cases where '/' ends a line (for example).
5852 (read_name): Don't increment read_md_lineno here.
5853 (read_escape): Likewise.
5854 (read_quoted_string): Likewise.
5855 (read_braced_string): Likewise.
5857 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5859 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
5860 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
5861 * genconstants.c: Include read-md.h.
5862 * read-rtl.c (md_constants): Move to read-md.c.
5863 (md_name): Move to read-md.h.
5864 (initialize_iterators): Use leading_string_hash instead of def_hash
5865 and leading_string_eq_p instead of def_name_eq_p.
5866 (read_name): Move to read-md.c.
5867 (def_hash, def_name_eq_p): Delete.
5868 (read_constants, traverse_md_constants): Move to read-md.c.
5869 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
5870 * read-md.h: Include hashtab.h.
5871 (md_name): Moved from read-rtl.c.
5872 (md_constant): Moved from read-md.h.
5873 (leading_string_hash, leading_string_eq_p, read_name)
5874 (read_constants, traverse_md_constants): Declare.
5875 * read-md.c (md_constants): Moved from read-rtl.c.
5876 (leading_string_hash, leading_string_eq_p): New functions.
5877 (read_name, read_constants, traverse_md_constants): Moved from
5880 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5882 * read-rtl.c (md_name): New structure.
5883 (read_name): Take an md_name instead of a buffer pointer.
5884 Use the "string" field instead of strcpy when expanding constants.
5885 (read_constants): Remove the tmp_char argument. Update the calls
5886 to read_name, using two local name buffers instead of the tmp_char
5887 argument. Merge the constant-creation code.
5888 (read_conditions): Remove the tmp_char argument. Update the calls
5889 to read_name, using a local name buffer instead of the tmp_char
5891 (read_mapping): Replace tmp_char variable with a local name buffer.
5892 Update the calls to read_name.
5893 (read_rtx_1): Likewise. Update the calls to read_constants and
5896 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5898 * Makefile.in (build/read-md.o): Depend on errors.h.
5899 * read-md.h (error_with_line): Declare.
5900 * read-md.c: Include errors.h.
5901 (message_with_line_1): New function, extracted from...
5902 (message_with_line): ...here.
5903 (error_with_line): New function.
5904 * genattrtab.c: If a call to message_with_line is followed by
5905 "have_error = 1;", replace both statements with a call to
5907 * genoutput.c: Likewise.
5908 * genpreds.c: Likewise.
5909 * genrecog.c: If a call to message_with_line is followed by
5910 "error_count++;", replace both statements with a call to
5912 (errorcount): Delete.
5913 (main): Don't check it.
5914 * gensupport.c: If a call to message_with_line is followed by
5915 "errors = 1;", replace both statements with a call to error_with_line.
5917 (process_define_cond_exec): Check have_error instead of errors.
5918 (init_md_reader_args_cb): Likewise. Don't set errors.
5920 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5922 * read-md.h (read_md_file): Declare.
5923 (read_char, unread_char): New functions.
5924 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
5925 (read_quoted_string, read_string): Remove FILE * argument.
5926 * read-md.c (read_md_file): New variable.
5927 (read_md_filename, read_md_lineno): Update comments and remove
5928 unnecessary initialization.
5929 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
5930 (read_escape, read_quoted_string, read_braced_string, read_string):
5931 Remove FILE * argument. Update calls accordingly, using read_char
5932 and unread_char instead of getc and ungetc.
5933 * rtl.h (read_rtx): Remove FILE * argument.
5934 * read-rtl.c (iterator_group): Remove FILE * argument from
5936 (iterator_traverse_data): Remove "infile" field.
5937 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
5938 (add_mapping, read_name, read_constants, read_conditions)
5939 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
5940 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
5941 Remove file arguments from all calls, using read_char and unread_char
5942 instead of getc and ungetc.
5943 * gensupport.c (process_include): Preserve read_md_file around
5944 the include. Set read_md_file to the handle of the included file.
5945 Update call to read_rtx.
5946 (init_md_reader_args_cb): Set read_md_file to the handle of the file
5947 and remove local FILE *. Update calls to read_rtx.
5949 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5951 * read-md.h (read_rtx_lineno): Rename to...
5952 (read_md_lineno): ...this.
5953 (read_rtx_filename): Rename to...
5954 (read_md_filename): ...this.
5955 (copy_rtx_ptr_loc): Rename to...
5956 (copy_md_ptr_loc): ...this.
5957 (print_rtx_ptr_loc): Rename to...
5958 (print_md_ptr_loc): ...this.
5959 * read-md.c: Likewise. Update references after renaming.
5960 (string_obstack): Replace RTL with MD in comment.
5961 (set_rtx_ptr_loc): Rename to...
5962 (set_md_ptr_loc): ...this.
5963 (get_rtx_ptr_loc): Rename to...
5964 (get_md_ptr_loc): ...this.
5965 * genconditions.c: Update references after renaming.
5966 * genemit.c: Likewise.
5967 * genoutput.c: Likewise.
5968 * genpreds.c: Likewise.
5969 * gensupport.c: Likewise.
5970 * read-rtl.c: Likewise.
5972 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5974 * Makefile.in (READ_MD_H): New variable.
5975 (BUILD_RTL): Add build/read-md.o.
5976 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
5977 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
5978 (build/genattrtab.o, build/genconditions.o build/genemit.o)
5979 (build/genextract.o, build/genflags.o, build/genoutput.o)
5980 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
5981 (build/read-md.o): New rule.
5982 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
5983 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
5984 * coretypes.h: ...here.
5985 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
5986 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
5987 * genattr.c: Include read-md.h.
5988 * genattrtab.c: Likewise.
5989 * genconditions.c: Likewise.
5990 * genemit.c: Likewise.
5991 * genextract.c: Likewise.
5992 * genflags.c: Likewise.
5993 * genoutput.c: Likewise.
5994 * genpreds.c: Likewise.
5995 * genrecog.c: Likewise.
5996 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
5997 (join_c_conditions, print_c_condition, read_rtx_filename)
5998 (read_rtx_lineno): Move to read-md.h.
5999 * read-rtl.c: Include read-md.h.
6000 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
6001 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
6002 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
6003 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
6004 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
6005 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
6006 (read_braced_string, read_string): Move to read-md.c.
6007 (read_rtx): Move some initialization to init_md_reader and call
6008 init_md_reader here.
6009 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
6011 * gensupport.c: Include read-md.h.
6012 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
6013 * read-md.h, read-md.c: New files.
6015 2010-06-10 Anatoly Sokolov <aesok@post.ru>
6017 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6018 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6019 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
6020 * config/moxie/moxie.c (moxie_function_value): Make static.
6021 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
6022 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6024 2010-06-10 Martin Jambor <mjambor@suse.cz>
6026 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
6027 * dbgcnt.def (tree_sra): New counter.
6028 * tree-sra.c: Include dbgcnt.h.
6029 (gate_intra_sra): Check tree_sra debug counter.
6031 2010-06-10 Martin Jambor <mjambor@suse.cz>
6033 PR tree-optimization/44258
6034 * tree-sra.c (build_access_subtree): Return false iff there is a
6036 (build_access_trees): Likewise.
6037 (analyze_all_variable_accesses): Disqualify candidates if
6038 build_access_trees returns true for them.
6040 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
6043 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
6044 tail-recurse into canonical node. Fast-forward over
6045 non-canonical VALUEs.
6047 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
6050 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
6051 (*addsi_1_zext) <TYPE_LEA>: Likewise.
6052 (add lea splitter): Likewise.
6053 (add_zext lea splitter): Likewise.
6055 2010-06-10 Joseph Myers <joseph@codesourcery.com>
6057 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
6059 2010-06-10 Jan Hubicka <jh@suse.cz>
6061 * df-problems.c (df_live_problem_data): Add live_bitmaps.
6062 (df_live_alloc): Initialize problem data and live_osbtacks.
6063 (df_live_finalize): Remove obstack, problem data; do not
6065 (df_live_top_dump, df_live_bottom_dump): Do not dump old
6066 data when not allocated.
6067 (df_live_verify_solution_start): Do not allocate problem data.
6068 (df_live_verify_solution_end): Check if out is allocated.
6069 (struct df_md_problem_data): New structure.
6070 (df_md_alloc): Allocate problem data.
6071 (df_md_free): Free problem data; do not clear bitmaps.
6073 2010-06-10 Jan Beulich <jbeulich@novell.com>
6076 * configure.ac: Replace $() with ${} when intending to expand
6077 variables rather than invoking commands.
6078 * configure: Re-generate.
6080 2010-06-10 Jan Hubicka <jh@suse.cz>
6082 PR rtl-optimization/44460
6083 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
6084 TYPE_NEEDS_CONSTRUCTING sanity check.
6086 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
6088 * doc/include/fdl.texi: Move to GFDL version 1.3.
6090 * doc/cpp.texi: Move to GFDL version 1.3.
6091 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
6092 * doc/gccint.texi: Move to GFDL version 1.3.
6093 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
6094 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
6095 * doc/invoke.texi: Move to GFDL version 1.3.
6097 2010-06-09 Jan Hubicka <jh@suse.cz>
6099 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
6101 (propagate) ... here; swap the order.
6103 2010-06-09 Jan Hubicka <jh@suse.cz>
6105 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
6106 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
6107 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
6108 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
6110 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
6112 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
6113 Do not the gather memory reference in the outer loop if the step
6116 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
6118 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
6119 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
6120 8 to 4. Minor change of the related comments.
6122 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
6124 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
6125 the scev analysis when the variable is not used outside the loop
6126 in a close phi node: call compute_overall_effect_of_inner_loop.
6128 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
6130 * graphite-sese-to-poly.c (single_pred_cond): Renamed
6131 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
6132 (build_sese_conditions_before): Renamed call to single_pred_cond.
6133 (build_sese_conditions_after): Same.
6135 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
6137 * graphite-poly.h: Fix comments and indentation.
6138 * graphite-sese-to-poly.c: Same.
6139 (build_sese_conditions_before): Compute stmt and gbb only when needed.
6140 * tree-chrec.c: Fix comments and indentation.
6141 (tree-ssa-loop-niter.c): Same.
6143 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
6145 PR rtl-optimization/42461
6146 * dce.c (deletable_insn_p): Return true for const or pure calls again.
6147 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
6149 2010-06-09 Jan Hubicka <jh@suse.cz>
6151 * bitmap.c (bitmap_and): Walk array forward.
6152 (bitmap_and_compl_into): Likewise.
6153 (bitmap_xor): Likewise.
6154 (bitmap_xor_into): Likewise.
6155 (bitmap_equal_p): Likewise.
6156 (bitmap_intersect_p): Likewise.
6157 (bitmap_intersect_compl_p): Likewise.
6158 (bitmap_ior_and_into): Likewise.
6159 (bitmap_elt_copy): Likewise.
6160 (bitmap_and_compl): Likewise.
6161 (bitmap_elt_ior): Likewise.
6163 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
6165 * opts-common.c (prune_options): Ensure replacement argv array
6166 is correctly terminated by a NULL entry.
6168 2010-06-09 Jan Hubicka <jh@suse.cz>
6170 * cgraph.h (varpool_first_static_initializer,
6171 varpool_next_static_initializer): Make checking only when
6173 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
6174 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
6175 gcc_assert to gcc_checking_assert.
6176 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
6177 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
6178 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
6179 op_iter_init_phiuse, op_iter_init_phidef,
6180 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
6181 gcc_checking_assert.
6182 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
6183 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
6184 partition_is_global, live_on_entry, live_on_exit,
6185 live_merge_and_clear): Likewise.
6186 * system.h (gcc_checking_assert): New macro.
6187 * gimple.h (set_bb_seq): Use gcc_checking_assert.
6189 2010-06-09 Jason Merrill <jason@redhat.com>
6191 * Makefile.in (TAGS): Collect tags info from c-family.
6193 2010-06-09 Jan Hubicka <jh@suse.cz>
6195 * gimple.h (gcc_gimple_checking_assert): New macro.
6196 (gimple_set_def_ops, gimple_set_use_ops,
6197 gimple_set_vuse, gimple_set_vdef,
6198 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
6199 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
6200 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
6201 gimple_asm_output_op, gimple_asm_output_op_ptr,
6202 gimple_asm_set_output_op, gimple_asm_clobber_op,
6203 gimple_asm_set_clobber_op, gimple_asm_label_op,
6204 gimple_asm_set_label_op, gimple_try_set_kind,
6205 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
6206 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
6207 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
6208 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
6209 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
6210 gimple_omp_for_set_initial, gimple_omp_for_final,
6211 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
6212 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
6213 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
6214 conditional with ENABLE_GIMPLE_CHECKING.
6215 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
6217 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
6219 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
6220 (get_computation_cost_at): Use it.
6221 (determine_use_iv_cost_condition): Likewise.
6222 (determine_iv_cost): Likewise.
6224 2010-06-09 Richard Guenther <rguenther@suse.de>
6226 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
6229 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
6231 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
6233 2010-06-09 Martin Jambor <mjambor@suse.cz>
6235 PR tree-optimization/44423
6236 * tree-sra.c (dump_access): Dump also grp_assignment_read.
6237 (analyze_access_subtree): Pass negative allow_replacements to children
6238 if the current type is scalar.
6240 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
6243 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
6244 * doc/plugins.texi (Plugin license check): Update information
6245 on type of plugin_is_GPL_compatible.
6246 * Makefile.in (PLUGINCC): Define as $(COMPILER).
6247 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
6249 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
6251 * config/arm/arm.c (thumb2_reorg): New function.
6252 (arm_reorg): Call it.
6253 * config/arm/thumb2.md (define_peephole2 for flag clobbering
6254 arithmetic operations): Delete.
6256 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
6259 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
6262 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
6265 * gcc-plugin.h: Encapsulate all declarations in extern "C".
6267 2010-06-08 Jan Hubicka <jh@suse.cz>
6269 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
6270 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
6272 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
6274 PR tree-optimization/39874
6276 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
6278 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
6279 same_bool_result_p): New.
6280 (and_var_with_comparison, and_var_with_comparison_1,
6281 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
6282 (or_var_with_comparison, or_var_with_comparison_1,
6283 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
6284 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
6285 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
6286 of combine_comparisons.
6287 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
6289 2010-06-08 Anatoly Sokolov <aesok@post.ru>
6291 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6292 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6293 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
6294 pdp11_function_value_regno_p): New functions.
6295 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6296 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6298 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
6300 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
6301 Thumb-2 in the MINUS case.
6303 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6305 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
6307 * doc/gty.texi (GTY Options): Document typed GC allocation and
6308 variable_size GTY option.
6310 * ggc-internal.h: New.
6312 * ggc.h: Update copyright year.
6313 (digit_string): Move to stringpool.c.
6314 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
6315 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
6316 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
6317 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
6318 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
6319 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
6320 (ggc_force_collect, ggc_get_size, ggc_statistics)
6321 (ggc_print_common_statistics): Move to ggc-internal.h.
6322 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
6323 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
6324 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
6325 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
6326 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
6327 (ggc_alloc_zone_pass_stat): Remove.
6328 (ggc_internal_alloc_stat, ggc_internal_alloc)
6329 (ggc_internal_cleared_alloc_stat): New.
6330 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
6331 (ggc_internal_vec_alloc_stat)
6332 (ggc_internal_cleared_vec_alloc_stat)
6333 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
6334 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
6335 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
6336 (ggc_cleared_alloc_ptr_array_two_args): New.
6337 (htab_create_ggc, splay_tree_new_ggc): Redefine.
6338 (ggc_splay_alloc): Change the type of the first argument to
6340 (ggc_alloc_string): Make macro.
6341 (ggc_alloc_string_stat): New.
6342 (ggc_strdup): Redefine.
6343 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
6344 (ggc_alloc_rtvec_sized): New.
6345 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
6346 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
6347 (ggc_internal_cleared_alloc_zone_stat)
6348 (ggc_internal_zone_alloc_stat)
6349 (ggc_internal_zone_cleared_alloc_stat)
6350 (ggc_internal_zone_vec_alloc_stat)
6351 (ggc_alloc_zone_rtx_def_stat)
6352 (ggc_alloc_zone_tree_node_stat)
6353 (ggc_alloc_zone_cleared_tree_node_stat)
6354 (ggc_alloc_cleared_gimple_statement_d_stat): New.
6356 * ggc-common.c: Include ggc-internal.h.
6357 (ggc_internal_cleared_alloc_stat): Rename from
6358 ggc_alloc_cleared_stat.
6359 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
6360 (ggc_calloc): Remove.
6361 (ggc_cleared_alloc_htab_ignore_args): New.
6362 (ggc_cleared_alloc_ptr_array_two_args): New.
6363 (ggc_splay_alloc): Add obj_type parameter.
6364 (init_ggc_heuristics): Formatting fixes.
6366 * ggc-none.c: Update copyright year.
6367 (ggc_alloc_stat): Rename to ggc_alloc_stat.
6368 (ggc_alloc_cleared_stat): Rename to
6369 ggc_internal_cleared_alloc_stat.
6370 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
6372 * ggc-page.c: Update copyright year. Include ggc-internal.h.
6373 Remove references to ggc_alloc in comments.
6374 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
6375 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
6376 (new_ggc_zone, destroy_ggc_zone): Remove.
6377 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
6379 * ggc-zone.c: Include ggc-internal.h. Remove references to
6380 ggc_alloc in comments.
6381 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
6382 (ggc_internal_alloc_zone_pass_stat): New.
6383 (ggc_internal_cleared_alloc_zone_stat): New.
6384 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
6385 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
6386 (new_ggc_zone, destroy_ggc_zone): Remove.
6388 * stringpool.c: Update copyright year. Include ggc-internal.h
6389 (digit_vector): Make static.
6390 (digit_string): Moved from ggc.h.
6391 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
6392 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
6394 * Makefile.in (GGC_INTERNAL_H): New.
6395 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
6396 $(GGC_INTERNAL_H) to dependencies.
6398 * gentype.c: Update copyright year.
6399 (walk_type): Accept variable_size GTY option.
6400 (USED_BY_TYPED_GC_P): New macro.
6401 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
6402 whitespace at the end of strings.
6403 (get_type_specifier, variable_size_p): New functions.
6404 (alloc_quantity, alloc_zone): New enums.
6405 (write_typed_alloc_def): New function.
6406 (write_typed_struct_alloc_def): Likewise.
6407 (write_typed_typed_typedef_alloc_def): Likewise.
6408 (write_typed_alloc_defns): Likewise.
6409 (output_typename, write_splay_tree_allocator_def): Likewise.
6410 (write_splay_tree_allocators): Likewise.
6411 (main): Call write_typed_alloc_defns and
6412 write_splay_tree_allocators.
6414 * lto-streamer.h (lto_file_decl_data_ptr): New.
6416 * passes.c (order): Define using cgraph_node_ptr.
6418 * strinpool.c (struct string_pool_data): Declare nested_ptr using
6421 * gimple.h (union gimple_statement_d): Likewise.
6423 * rtl.h (struct rtx_def): Likewise.
6424 (struct rtvec_def): Likewise.
6426 * tree.h (union tree_node): Likewise.
6428 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
6430 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
6432 * tree-scalar-evolution.c (scev_initialize): Likewise.
6434 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
6436 * dwarf2asm.c (dw2_force_const_mem): Likewise.
6438 * omp-low.c (lower_omp_critical): Likewise.
6440 * bitmap.h (struct bitmap_head_def): Update comment to not
6441 reference ggc_alloc.
6443 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
6445 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
6447 * ipa-prop.c (duplicate_ggc_array): Rename to
6448 duplicate_ipa_jump_func_array. Use typed GC allocation.
6449 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
6451 * gimple.c (gimple_alloc_stat): Use
6452 ggc_alloc_cleared_gimple_statement_d_stat.
6454 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
6456 * tree.c (make_node_stat): Use
6457 ggc_alloc_zone_cleared_tree_node_stat.
6458 (make_tree_vec_stat): Likewise.
6459 (build_vl_exp_stat): Likewise.
6460 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
6461 (make_tree_binfo_stat): Likewise.
6462 (tree_cons_stat): Likewise.
6464 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
6465 (shallow_copy_rtx_stat): Likewise.
6466 (make_node_stat): Likewise.
6468 * lto-symtab.c: Fix comment.
6470 * tree-cfg.c (create_bb): Update comment to not reference
6472 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
6474 * varpool.c (varpool_node): Use typed GC allocation.
6475 (varpool_extra_name_alias): Likewise.
6477 * varasm.c (emutls_decl): Likewise.
6478 (get_unnamed_section): Likewise.
6479 (get_noswitch_section): Likewise.
6480 (get_section): Likewise.
6481 (get_block_for_section): Likewise.
6482 (build_constant_desc): Likewise.
6483 (create_constant_pool): Likewise.
6484 (force_const_mem): Likewise.
6486 * tree.c (build_vl_exp_stat): Likewise.
6487 (build_real): Likewise.
6488 (build_string): Likewise.
6489 (decl_debug_expr_insert): Likewise.
6490 (decl_value_expr_insert): Likewise.
6491 (type_hash_add): Likewise.
6492 (build_omp_clause): Likewise.
6494 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
6496 * tree-ssa.c (init_tree_ssa): Likewise.
6498 * tree-ssa-structalias.c (heapvar_insert): Likewise.
6500 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
6502 * tree-ssa-loop-niter.c (record_estimate): Likewise.
6504 * tree-ssa-alias.c (get_ptr_info): Likewise.
6506 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
6508 * tree-phinodes.c (allocate_phi_node): Likewise.
6510 * tree-iterator.c (tsi_link_before): Likewise.
6511 (tsi_link_after): Likewise.
6513 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
6515 * tree-dfa.c (create_var_ann): Likewise.
6517 * tree-cfg.c (create_bb): Likewise.
6519 * toplev.c (alloc_for_identifier_to_locale): Likewise.
6520 (general_init): Likewise.
6522 * stringpool.c (stringpool_ggc_alloc): Likewise.
6523 (gt_pch_save_stringpool): Likewise.
6525 * sese.c (if_region_set_false_region): Likewise.
6527 * passes.c (do_per_function_toporder): Likewise.
6529 * optabs.c (set_optab_libfunc): Likewise.
6530 (set_conv_libfunc): Likewise.
6532 * lto-symtab.c (lto_symtab_register_decl): Likewise.
6534 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
6535 (input_eh_region): Likewise.
6536 (input_eh_lp): Likewise.
6537 (make_new_block): Likewise.
6538 (unpack_ts_real_cst_value_fields): Likewise.
6540 * lto-section-in.c (lto_new_in_decl_state): Likewise.
6542 * lto-cgraph.c (input_node_opt_summary): Likewise.
6544 * loop-init.c (loop_optimizer_init): Likewise.
6546 * lambda.h (lambda_vector_new): Likewise.
6548 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
6550 * ira.c (update_equiv_regs): Likewise.
6552 * ipa.c (cgraph_node_set_new): Likewise.
6553 (cgraph_node_set_add): Likewise.
6554 (varpool_node_set_new): Likewise.
6555 (varpool_node_set_add): Likewise.
6557 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
6558 (duplicate_ipa_jump_func_array): Likewise.
6559 (ipa_read_node_info): Likewise.
6561 * ipa-cp.c (ipcp_create_replace_map): Likewise.
6563 * integrate.c (get_hard_reg_initial_val): Likewise.
6565 * gimple.c (gimple_alloc_stat): Likewise.
6566 (gimple_build_omp_for): Likewise.
6567 (gimple_seq_alloc): Likewise.
6568 (gimple_copy): Likewise.
6570 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
6571 (gsi_insert_after_without_update): Likewise.
6573 * function.c (add_frame_space): Likewise.
6574 (insert_temp_slot_address): Likewise.
6575 (assign_stack_temp_for_type): Likewise.
6576 (allocate_struct_function): Likewise.
6577 (types_used_by_var_decl_insert): Likewise.
6579 * except.c (init_eh_for_function): Likewise.
6580 (gen_eh_region): Likewise.
6581 (gen_eh_region_catch): Likewise.
6582 (gen_eh_landing_pad): Likewise.
6583 (add_call_site): Likewise.
6585 * emit-rtl.c (get_mem_attrs): Likewise.
6586 (get_reg_attrs): Likewise.
6587 (start_sequence): Likewise.
6588 (init_emit): Likewise.
6590 * dwarf2out.c (new_cfi): Likewise.
6591 (queue_reg_save): Likewise.
6592 (dwarf2out_frame_init): Likewise.
6593 (new_loc_descr): Likewise.
6594 (find_AT_string): Likewise.
6595 (new_die): Likewise.
6596 (add_var_loc_to_decl): Likewise.
6597 (clone_die): Likewise.
6598 (clone_as_declaration): Likewise.
6599 (break_out_comdat_types): Likewise.
6600 (new_loc_list): Likewise.
6601 (loc_descriptor): Likewise.
6602 (add_loc_descr_to_each): Likewise.
6603 (add_const_value_attribute): Likewise.
6604 (tree_add_const_value_attribute): Likewise.
6605 (add_comp_dir_attribute): Likewise.
6606 (add_name_and_src_coords_attributes): Likewise.
6607 (lookup_filename): Likewise.
6608 (store_vcall_insn): Likewise.
6609 (dwarf2out_init): Likewise.
6611 * dbxout.c (dbxout_init): Likewise.
6613 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
6615 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
6617 * config/score/score7.c (score7_output_external): Likewise.
6619 * config/score/score3.c (score3_output_external): Likewise.
6621 * config/s390/s390.c (s390_init_machine_status): Likewise.
6623 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
6624 (rs6000_init_machine_status): Likewise.
6625 (output_toc): Likewise.
6627 * config/pa/pa.c (pa_init_machine_status): Likewise.
6628 (get_deferred_plabel): Likewise.
6630 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
6632 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
6634 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
6636 * config/mep/mep.c (mep_init_machine_status): Likewise.
6637 (mep_note_pragma_flag): Likewise.
6639 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
6641 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
6643 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
6645 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
6646 (i386_pe_maybe_record_exported_symbol): Likewise.
6648 * config/i386/i386.c (get_dllimport_decl): Likewise.
6649 (ix86_init_machine_status): Likewise.
6650 (assign_386_stack_local): Likewise.
6652 * config/frv/frv.c (frv_init_machine_status): Likewise.
6654 * config/darwin.c (machopic_indirection_name): Likewise.
6656 * config/cris/cris.c (cris_init_machine_status): Likewise.
6658 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
6660 * config/avr/avr.c (avr_init_machine_status): Likewise.
6662 * config/arm/arm.c (arm_init_machine_status): Likewise.
6664 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
6665 (alpha_need_linkage): Likewise.
6666 (alpha_use_linkage): Likewise.
6668 * cgraph.c (cgraph_allocate_node): Likewise.
6669 (cgraph_create_edge_1): Likewise.
6670 (cgraph_create_indirect_edge): Likewise.
6671 (cgraph_add_asm_node): Likewise.
6673 * cfgrtl.c (init_rtl_bb_info): Likewise.
6675 * cfgloop.c (alloc_loop): Likewise.
6676 (rescan_loop_exit): Likewise.
6678 * cfg.c (init_flow): Likewise.
6679 (alloc_block): Likewise.
6680 (unchecked_make_edge): Likewise.
6682 * c-parser.c (c_parse_init): Likewise.
6683 (c_parse_file): Likewise.
6685 * c-decl.c (bind): Likewise.
6686 (record_inline_static): Likewise.
6687 (push_scope): Likewise.
6688 (make_label): Likewise.
6689 (lookup_label_for_goto): Likewise.
6690 (finish_struct): Likewise.
6691 (finish_enum): Likewise.
6692 (c_push_function_context): Likewise.
6694 * bitmap.c (bitmap_element_allocate): Likewise.
6695 (bitmap_gc_alloc_stat): Likewise.
6697 * alias.c (record_alias_subset): Likewise.
6698 (init_alias_analysis): Likewise.
6700 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
6702 * fold-const.c (fold_comparison): Remove redundant parenthesis.
6703 * tree-inline.c (expand_call_inline): Pass translated return value of
6704 cgraph_inline_failed_string to diagnostic function.
6706 2010-06-08 Andrew Pinski <pinskia@gmail.com>
6707 Shujing Zhao <pearly.zhao@oracle.com>
6710 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
6711 implicit bad conversions is initialization.
6712 (error_init): Use gmsgid instead of msgid for argument name and change
6714 (pedwarn_init): Use gmsgid instead of msgid for argument name and
6715 change the call for pedwarn.
6716 (warning_init): Use gmsgid instead of msgid for argument name and
6717 change the call for warning.
6719 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
6721 * config/mips/mips-protos.h (mips_print_operand): Delete.
6722 (mips_print_operand_address): Delete.
6723 * config/mips/mips.h (mips_print_operand_punct): Delete.
6724 (PRINT_OPERAND): Delete.
6725 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6726 (PRINT_OPERAND_ADDRESS): Delete.
6727 * config/mips/mips.c (mips_print_operand_punct): Make static.
6728 (mips_print_operand_address): Make static.
6729 (mips_print_operand): Make static. Call
6730 mips_print_operand_punct_valid_p.
6731 (mips_print_operand_punct_valid_p): New function.
6732 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6733 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6735 2010-06-07 Jan Hubicka <jh@suse.cz>
6738 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
6741 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
6743 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
6746 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6748 * doc/sourcebuild.texi (Effective-Target Keywords, Other
6749 attributes): Document gas.
6751 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
6753 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
6754 <TYPE_LEA>: Split instruction.
6755 <default>: Remove alternative 2 handling.
6756 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
6757 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
6758 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
6760 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
6761 (ashift_zext lea splitter): Use DImode for multiplication.
6763 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
6764 to generate addition.
6766 2010-06-07 Joseph Myers <joseph@codesourcery.com>
6768 * common.opt (fira-verbose): Use Var.
6769 (fpcc-struct-return): Use Init instead of VarExists.
6770 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
6772 * flags.h (flag_signed_char, flag_short_enums,
6773 flag_pcc_struct_return, flag_ira_verbose,
6774 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
6775 * toplev.c (flag_detailed_statistics, flag_signed_char,
6776 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
6777 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
6778 * toplev.h (flag_crossjumping, flag_if_conversion,
6779 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
6780 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
6781 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
6782 flag_cprop_registers, time_report, flag_ira_loop_pressure,
6783 flag_ira_coalesce, flag_ira_move_spills,
6784 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
6786 2010-06-07 Jan Hubicka <jh@suse.cz>
6788 * df-core.c (df_analyze_problem): Do verification after allocation.
6790 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
6791 (df_lr_alloc): Initialize problem data; move bitmaps to
6793 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
6794 (df_lr_verify_solution_start): Do not initialize problem data;
6795 allocate bitmaps in lr_bitmaps.
6796 (df_lr_verify_solution_end): Do not free problem data.
6798 2010-06-07 Jan Hubicka <jh@suse.cz>
6800 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
6801 if caller is noreturn.
6802 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
6803 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
6804 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
6805 * ipa-pure-const.c (check_decl): Add IPA parameter.
6806 (state_from_flags): New function.
6807 (better_state, worse_state): New functions.
6808 (check_call): When in IPA mode, do not care about callees.
6809 (check_load, check_store): Update.
6810 (check_ipa_load, check_ipa_store): New.
6811 (check_stmt): When in IPA mode, use IPA checkers.
6812 (analyze_function): Use state_from_flags.
6813 (propagate): Check indirect edges and references.
6815 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
6817 PR rtl-optimization/44404
6818 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
6819 of count_occurrences to see if it's safe to modify mem_insn.
6821 2010-06-07 Richard Guenther <rguenther@suse.de>
6823 * gimplify.c (gimplify_cleanup_point_expr): For empty body
6824 and EH-only cleanup drop the cleanup instead of inserting it
6827 2010-06-07 Ira Rosen <irar@il.ibm.com>
6829 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
6831 * targhooks.c (default_builtin_vectorization_cost): New function.
6832 * targhooks.h (default_builtin_vectorization_cost): Declare.
6833 * target.h (enum vect_cost_for_stmt): Define.
6834 (builtin_vectorization_cost): Change argument and comment.
6835 * tree-vectorizer.h: Remove cost model macros.
6836 * tree-vect-loop.c: Include target.h.
6837 (vect_get_cost): New function.
6838 (vect_estimate_min_profitable_iters): Replace cost model macros with
6839 calls to vect_get_cost.
6840 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
6841 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
6842 default implementation.
6843 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
6844 calls to target hook builtin_vectorization_cost.
6845 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
6847 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
6848 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
6849 implementation to return costs.
6850 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
6851 * config/spu/spu.h: Remove vectorizer cost model macros.
6852 * config/i386/i386.h: Likewise.
6853 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
6854 a call to target hook builtin_vectorization_cost.
6856 2010-06-06 Sriraman Tallam <tmsriram@google.com>
6859 * config/i386/i386.c (override_options): Turn zee pass on for level 2
6860 and above and defer till target is known.
6861 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
6864 2010-05-25 Jan Hubicka <jh@suse.cz>
6866 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
6867 (df_compact_blocks): Likewise.
6868 * df.h (struct df): Turn hardware_regs_used,
6869 regular_block_artificial_uses, eh_block_artificial_uses,
6870 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
6872 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
6873 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
6874 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
6875 df_scan_blocks, df_insn_delete, df_insn_rescan,
6876 df_insn_rescan_debug_internal, df_insn_rescan_all,
6877 df_process_deferred_rescans, df_process_deferred_rescans,
6878 df_notes_rescan, df_get_call_refs, df_get_call_refs,
6879 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
6880 df_record_entry_block_defs, df_record_exit_block_uses,
6881 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
6882 df_scan_verify): Update.
6884 2010-05-25 Dodji Seketeli <dodji@redhat.com>
6887 * c-common.c (is_typedef_decl): Move this definition ...
6888 * tree.c (is_typedef_decl): ... here.
6889 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
6890 * c-common.h (is_typedef_decl): Move this declaration ...
6891 * tree.h (is_typedef_decl): ... here.
6892 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
6893 * dwarf2out.c (is_naming_typedef_decl): New function.
6894 (gen_tagged_type_die): Split out of ...
6895 (gen_type_die_with_usage): ... this function. When an anonymous
6896 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
6897 is emitted for the typedef.
6898 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
6899 anonymous tagged types.
6901 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
6904 * c-decl.c (grokdeclarator): Delete warning.
6906 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
6908 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
6909 newly built CALL_EXPR.
6910 * tree-profile.c (tree_profiling): Don't profile functions produced
6913 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
6917 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
6918 endianness-independent.
6920 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6922 * c-common.c: Move to c-family/.
6923 * c-common.def: Likewise.
6924 * c-common.h: Likewise.
6925 * c-cppbuiltin.c: Likewise.
6926 * c-dump.c: Likewise.
6927 * c-format.c: Likewise.
6928 * c-format.h : Likewise.
6929 * c-gimplify.c: Likewise.
6930 * c-lex.c: Likewise.
6931 * c-omp.c: Likewise.
6933 * c-opts.c: Likewise.
6934 * c-pch.c: Likewise.
6935 * c-ppoutput.c: Likewise.
6936 * c-pragma.c: Likewise.
6937 * c-pragma.h: Likewise.
6938 * c-pretty-print.c: Likewise.
6939 * c-pretty-print.h: Likewise.
6940 * c-semantics.c: Likewise.
6941 * stub-objc.c: Likewise.
6943 * gengtype.c (get_file_langdir): Special-case files in c-family/.
6944 (get_output_file_with_visibility): Fix name for c-common.h.
6945 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
6947 * c-tree.h: Update include path for moved files.
6948 * c-lang.c: Likewise.
6949 * c-lang.h: Likewise.
6950 * c-parser.c: Likewise.
6951 * c-convert.c: Likewise.
6952 * c-decl.c: Likewise.
6953 * c-objc-common.c: Likewise.
6954 * configure.ac: Make sure c-family/ exists in the build directory.
6955 * configure: Regenerate.
6956 * Makefile.in: Update paths for moved files. Regroup files per
6957 location and update dependencies. Move generated_files down after
6960 * config/spu/spu-c.c: Update paths for moved files.
6961 * config/mep/mep-pragma.c: Likewise.
6962 * config/darwin-c.c: Likewise.
6963 * config/i386/msformat-c.c: Likewise.
6964 * config/i386/i386-c.c: Likewise.
6965 * config/avr/avr-c.c: Likewise.
6966 * config/sol2-c.c: Likewise.
6967 * config/ia64/ia64-c.c: Likewise.
6968 * config/rs6000/rs6000-c.c: Likewise.
6969 * config/arm/arm.c: Likewise.
6970 * config/arm/arm-c.c: Likewise.
6971 * config/h8300/h8300.c: Likewise.
6972 * config/v850/v850-c.c: Likewise.
6974 * config/t-darwin: Fix dependencies for moved files.
6975 * config/t-sol2: Fix dependencies for moved files.
6976 * config/mep/t-mep: Fix dependencies for moved files.
6977 * config/ia64/t-ia64: Fix dependencies for moved files.
6978 * config/rs6000/t-rs6000: Fix dependencies for moved files.
6979 * config/v850/t-v850: Fix dependencies for moved files.
6980 * config/v850/t-v850e: Fix dependencies for moved files.
6982 * config/m32c/m32c-pragma.c
6984 * po/exgettext: Look in c-family/ also.
6986 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
6988 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
6989 (mark_control_dependent_edges_necessary): Call it instead of marking
6990 the last statement manually.
6991 (propagate_necessity): Likewise.
6993 2010-06-05 Jan Hubicka <jh@suse.cz>
6995 * basic-block.h (compute_dominance_frontiers): Updated.
6996 (compute_idf): Likewise.
6998 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
6999 for dominance frontiers.
7000 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
7001 (insert_updated_phi_nodes_for): Likewise.
7002 (update_ssa): Likewise.
7003 * cfganal.c (compute_dominance_frontiers_1): Likewise.
7004 (compute_dominance_frontiers): Likewise.
7005 (compute_idf): Likewise.
7006 * df-problems.c (df_md_local_compute): Likewise.
7008 2010-06-05 Anatoly Sokolov <aesok@post.ru>
7010 * target.h (struct gcc_target): Add memory_move_cost field.
7011 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
7012 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
7013 * targhooks.c (default_memory_move_cost): New function.
7014 * targhooks.h (default_memory_move_cost): Declare function.
7015 * reload.h (memory_move_cost): Declare.
7016 (memory_move_secondary_cost): Change type of 'in' argument to bool.
7017 * reginfo.c (memory_move_cost): New function.
7018 (memory_move_secondary_cost): Change type of 'in' argument to bool.
7019 * ira.h (ira_memory_move_cost): Update comment.
7020 * ira.c: (ira_memory_move_cost): Update comment.
7021 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
7022 with memory_move_cost.
7023 * postreload.c (reload_cse_simplify_set): (Ditto.).
7024 * reload1.c (choose_reload_regs): (Ditto.).
7025 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
7026 (MEMORY_MOVE_COST): Revise documentation.
7028 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
7029 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
7030 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
7031 type of 'in' argument to bool.
7032 (TARGET_MEMORY_MOVE_COST): Define.
7034 2010-06-05 Jan Hubicka <jh@suse.cz>
7036 * ipa-pure-const.c (propagate): Fix typo in handling of functions
7037 that cannot return. Be more careful when merging the results with
7038 previously known ones.
7040 2010-06-05 Matthias Klose <doko@ubuntu.com>
7042 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
7043 function to add the -iplugindir option.
7044 (find_plugindir_spec_function): Add new declaration and function.
7045 (static_spec_func): Use it for "find-plugindir".
7047 2010-06-05 Jakub Jelinek <jakub@redhat.com>
7050 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
7051 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
7052 statement expression.
7054 2010-06-05 Jan Hubicka <jh@suse.cz>
7056 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
7057 (df_rd_problem_data): Convert sparse_invalidated_by_call,
7058 dense_invalidated_by_call to bitmap head.
7059 (df_rd_alloc, df_rd_bb_local_compute_process_def,
7060 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
7061 df_rd_start_dump, df_lr_verify_transfer_functions,
7062 df_live_verify_transfer_functions, df_chain_create_bb,
7063 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
7064 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
7065 df_simulate_one_insn_forwards, df_md_alloc,
7066 df_md_bb_local_compute_process_def,
7067 df_md_bb_local_compute_process_def, df_md_local_compute,
7068 df_md_transfer_function df_md_free): Update.
7070 2010-06-05 Joseph Myers <joseph@codesourcery.com>
7073 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
7074 target type for ADDR_EXPR; require no changes to qualifiers except
7076 * c-tree.h (c_build_type_variant): Remove.
7078 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
7080 * genautomata.c (get_excl_set): Do work per element, not per char.
7081 (check_presence_pattern_sets): Similar.
7082 (check_absence_pattern_sets): Similar.
7084 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
7086 * genautomata.c (curr_state_pass_num): Delete.
7087 (min_issue_delay_pass_states): Delete.
7088 (min_issue_delay): Delete.
7089 (initiate_min_issue_delay_pass_states): Delete.
7090 (output_min_issue_delay_table): Compute min_issue_delay_vect
7091 using a breadth-first search variant.
7092 (output_tables): Don't call initiate_min_issue_delay_pass_states.
7094 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
7097 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
7098 (df_byte_lr_bb_local_compute): Likewise.
7100 2010-06-03 Jason Merrill <jason@redhat.com>
7102 Implement noexcept operator (5.3.7)
7103 * c-common.c (c_common_reswords): Add noexcept.
7104 * c-common.h (enum rid): Add RID_NOEXCEPT.
7106 2010-06-04 Joseph Myers <joseph@codesourcery.com>
7108 * config/darwin-driver.c (darwin_default_min_version): Use
7109 GCC-specific formats in diagnostics.
7110 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
7112 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
7113 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
7114 eval_spec_function, handle_braces, process_brace_body, main,
7115 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
7116 getenv_spec_function, compare_version_strings,
7117 version_compare_spec_function): Use GCC-specific formats in
7120 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
7122 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
7123 that operand 0 and operand 1 are equal.
7124 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
7125 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
7126 and operand 1 are equal.
7127 <default>: Ditto. Remove ??? comment.
7128 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
7129 and operand 1 are equal.
7130 <default>: Ditto. Remove ??? comment.
7131 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
7133 (*add<mode>_4) <default>: Ditto.
7134 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
7136 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
7138 * config/i386/i386-protos.h (ix86_print_operand): Declare.
7139 * config/i386/i386.c (ix86_print_operand): Make non-static.
7140 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
7141 * output.h (output_operand): Declare.
7142 * final.c (output_operand): Make non-static.
7144 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
7146 PR rtl-optimization/44013
7147 * sched-deps.c (add_dependence_list_and_free): Don't free lists
7148 when processing debug insns.
7151 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
7152 recursing. Check that recursion is bounded. Rename inner var
7153 to avoid hiding incoming argument.
7155 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
7157 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
7162 (*addqi_ext_1_rex64): Ditto.
7163 (*addqi_ext_1): Ditto.
7165 (*addqi_4): Check for incdec_operand in QImode.
7167 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
7168 using SWI mode iterator.
7169 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
7170 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
7172 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
7173 using SWI mode iterator.
7175 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
7178 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
7179 * c-format.c (gcc_diag_flag_specs): Add hash.
7180 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
7181 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
7182 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
7183 pp_c_cv_qualifiers. Handle qualifiers spelling here.
7184 (pp_c_type_qualifier_list): Call the function above.
7185 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
7186 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
7187 (WARN_FOR_QUALIFIERS): New macro.
7188 (convert_for_assignment): Use it.
7190 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
7192 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
7194 2010-06-04 Jan Hubicka <jh@suse.cz>
7196 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
7197 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
7198 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
7199 DF_BYTE_LR_OUT): Update for embedded bitmaps.
7200 * fwprop.c (single_def_use_enter_block): Likewise.
7201 * ddg.c (create_ddg_dep_from_intra_loop_link,
7202 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
7203 * loop-iv.c (latch_dominating_def): Likewise.
7204 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
7205 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
7206 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
7207 df_rd_transfer_function, df_rd_top_dump,
7208 df_rd_bottom_dump): Update.
7209 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
7210 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
7211 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
7212 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
7213 df_lr_verify_solution_start, df_lr_verify_solution_end,
7214 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
7215 df_live_free_bb_info, df_live_alloc, df_live_reset,
7216 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
7217 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
7218 df_live_verify_solution_start, df_live_verify_solution_end,
7219 df_live_verify_transfer_functions, df_chain_create_bb,
7220 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
7221 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
7222 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
7223 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
7224 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
7225 df_byte_lr_transfer_function, df_byte_lr_top_dump,
7226 df_byte_lr_bottom_dump, df_create_unused_note,
7227 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
7228 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
7229 df_md_transfer_function, df_md_init, df_md_confluence_0,
7231 df_md_top_dump, df_md_bottom_dump): Update.
7232 (struct df_lr_problem_data): Embedd bitmap headers.
7234 2010-06-04 Jan Hubicka <jh@suse.cz>
7236 * dce.c (dce_process_block): Do not re-scan already marked
7239 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
7241 PR rtl-optimization/39871
7242 PR rtl-optimization/40615
7243 PR rtl-optimization/42500
7244 PR rtl-optimization/42502
7245 * ira.c (init_reg_equiv_memory_loc: New function.
7246 (ira): Call it twice.
7247 * reload.h (calculate_elim_costs_all_insns): Declare.
7248 * ira-costs.c: Include "reload.h".
7249 (regno_equiv_gains): New static variable.
7250 (init_costs): Allocate it.
7251 (finish_costs): Free it.
7252 (ira_costs): Call calculate_elim_costs_all_insns.
7253 (find_costs_and_classes): Take estimated elimination costs
7255 (ira_adjust_equiv_reg_cost): New function.
7256 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
7257 * reload1.c (init_eliminable_invariants, free_reg_equiv,
7258 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
7259 (elim_bb): New static variable.
7260 (reload): Move code out of here into init_eliminable_invariants and
7261 free_reg_equiv. Call them.
7262 (calculate_elim_costs_all_insns): New function.
7263 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
7264 all callers changed. If FOR_COSTS is true, don't call alter_reg,
7265 but call note_reg_elim_costly if we turned a valid memory address
7266 into an invalid one.
7267 * Makefile.in (ira-costs.o): Depend on reload.h.
7269 2010-06-04 Julian Brown <julian@codesourcery.com>
7271 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
7274 2010-06-04 Richard Guenther <rguenther@suse.de>
7277 * cgraph.h (struct varpool_node): Add lto_file_data field.
7278 * lto-cgraph.c (input_varpool_node): Initialize it.
7280 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
7282 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
7283 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
7284 predicate in "type" attribute calculation.
7285 (*addsi_1_zext): Ditto.
7286 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
7287 (*addsi_2_zext): Ditto.
7288 (*add<mode>_3): Ditto.
7289 (*addsi_3_zext): Ditto.
7290 (*add<mode>_5): Ditto.
7292 2010-06-03 Jan Hubicka <jh@suse.cz>
7294 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
7296 * cfganal.c (compute_dominance_frontiers_1): Likewise.
7298 2010-06-03 Jan Hubicka <jh@suse.cz>
7300 * df-problems.c (df_create_unused_note, df_note_bb_compute):
7301 micro-optimize the checks when to add new note.
7303 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
7305 * final.c (output_asm_insn): Call
7306 targetm.asm_out.print_operand_punct_valid_p. Update comments.
7307 (output_operand): Call targetm.asm_out.print_operand. Update comments.
7308 (output_address): Call targetm.asm_out.print_operand_address.
7310 * target.h (struct gcc_target): Add print_operand,
7311 print_operand_address, and print_operand_punct_valid_p fields.
7312 * targhooks.h (default_print_operand): Declare.
7313 (default_print_operand_address): Declare.
7314 (default_print_operand_punct_valid_p): Declare.
7315 * targhooks.c (default_print_operand): Define.
7316 (default_print_operand_address): Define.
7317 (default_print_operand_punct_valid_p): Define.
7318 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
7319 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
7320 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
7321 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
7322 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
7323 * vmsdbgout.c (addr_const_to_string): Update comment.
7324 * config/i386/i386.c (print_operand): Rename to...
7325 (ix86_print_operand): ...this. Make static.
7326 (print_operand_address): Rename to...
7327 (ix86_print_operand_address): ...this. Make static. Call
7328 ix86_print_operand instead of PRINT_OPERAND.
7329 (ix86_print_operand_punct_valid_p): New function.
7330 (TARGET_PRINT_OPERAND): Define.
7331 (TARGET_PRINT_OPERAND_ADDRESS): Define.
7332 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7333 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
7334 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7335 (PRINT_OPERAND): Delete.
7336 (PRINT_OPERAND_ADDRESS): Delete.
7337 * config/i386/i386-protos.h (print_operand): Delete prototype.
7338 (print_operand_address): Delete prototype.
7340 2010-06-03 Richard Guenther <rguenther@suse.de>
7342 PR tree-optimization/44403
7343 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7344 Preserve pointer qualifiers.
7345 (vect_create_data_ref_ptr): Likewise.
7347 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
7350 * defaults.h (MAX_FIXED_MODE_SIZE): New.
7352 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
7354 2010-06-03 Jakub Jelinek <jakub@redhat.com>
7357 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
7358 return false if merging the bbs would lead to goto_locus
7359 location being lost from the IL.
7361 2010-06-03 Jan Hubicka <jh@suse.cz>
7362 Jakub Jelinek <jakub@redhat.com>
7364 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
7365 set->regs[i] is NULL or has just one entry.
7367 2010-06-03 Jan Hubicka <jh@suse.cz>
7369 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
7370 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
7372 2010-06-03 Paul Brook <paul@codesourcery.com>
7374 * config/arm/arm.c (FL_TUNE): Define.
7375 (arm_default_cpu, arm_cpu_select): Remove.
7376 (all_cores): Populate core field.
7377 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
7378 (arm_find_cpu): New function.
7379 (arm_handle_option): Lookup cpu/architecture names.
7380 (arm_override_options): Cleanup mcpu/march/mtune handling.
7381 (arm_file_start): Ditto.
7383 2010-06-03 Alan Modra <amodra@gmail.com>
7386 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
7387 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
7388 rtx to gen_load_toc_v4_PIC_1b. Tidy.
7389 (rs6000_emit_load_toc_table): Likewise.
7391 2010-06-02 Jan Hubicka <jh@suse.cz>
7393 * passes.c (init_optimization_passes): Put ipa reference
7394 after ipa pure-const.
7396 2010-06-02 Jan Hubicka <jh@suse.cz>
7398 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
7399 calls_read_all and calls_write_all.
7400 (get_reference_optimization_summary): Fix formatting.
7401 (is_proper_for_analysis): Check that decl is not readonly.
7402 (propagate_bits): Check CONST/PURE/noreturn flags.
7403 (ipa_init): Move all_module_statics to optimization_summary_obstack.
7404 (analyze_function): Ignore indirect edges.
7405 (copy_global_bitmap): For all module statics, do nothing.
7406 (generate_summary): Do not print calls_read_all/calls_write_all.
7407 (read_write_all_from_decl): Take node as argument; check
7408 cgraph_node_cannot_return.
7409 (propagate): Reorganize read_all/write_all computation;
7410 check indirect edges; check ecf flags; use all_module_statics
7411 in the results; do not free all_module_statics.
7412 (stream_out_bitmap): Handle all_module_statics.
7413 (ipa_reference_write_optimization_summary): Likewise; use
7414 varpool/cgraph encoders to get boundaries.
7415 (ipa_reference_read_optimization_summary): Read in all_module_statics;
7416 use it when possible.
7418 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
7421 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
7422 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
7424 * doc/extend.texi (powerpc builtins): Document vec_recip,
7425 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
7427 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
7428 (rs6000_emit_swrsqrt): Ditto.
7429 (rs6000_emit_swdivsf): Delete.
7430 (rs6000_emit_swdivdf): Ditto.
7431 (rs6000_emit_swrsqrtsf): Ditto.
7433 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
7434 describe the reciprocal estimate support for each type.
7435 (recip_options): Map -mrecip=<opt> into option bits.
7436 (gen_2arg_fn_t): New typedef for binary rtx gen function.
7437 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
7438 reciprocal estimate instructions.
7439 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
7440 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
7441 Set up rs6000_recip_bits based on the -mrecip* options. Print the
7442 cost information if -mdebug=cost or -mdebug=reg.
7443 (rs6000_override_options): Set -mrecip-precision for power6, and
7444 power7 machines. If -mvsx or -mdfp, enable various options that
7445 came in previous instruction set ISAs, unless the option was
7446 explicitly disabled by the command line option. Parse
7447 -mrecip=<opt> options.
7448 (rs6000_builtin_vectorized_function): Add support for vectorizing
7449 the reciprocal estimate builtins and expansions.
7450 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
7451 (bdesc_2arg): Add reciprocal estimate builtins.
7452 (bdesc_1arg): Add reciprocal square root estimate builtins.
7453 (rs6000_expand_builtin): Rewrite to use a switch statement,
7454 instead of multiple if/then/elses. Add reciprocal estimate builtins.
7455 (rs6000_init_builtins): Create declarations for reciprocal
7457 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
7458 sized, prefer traditional floating point registers, if integer
7459 vector types, prefer altivec registers. Don't actually look at
7460 the memory address any more.
7461 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
7463 (rs6000_load_constant_and_splat): New helper function to load up
7464 the constant for reciprocal estimate instructions.
7465 (rs6000_emit_madd): New helper function for generating
7466 multiply/add type instructions, based on the current switches.
7467 (rs6000_emit_msub): Ditto.
7468 (rs6000_emit_mnsub): Ditto.
7469 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
7470 replace a divide with a reciprocal estimate and fixup, adding
7471 support for machines with high precision and vectors.
7472 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
7473 low precision machines.
7474 (rs6000_emit_swdiv): New common function to be called to replace a
7475 division with reciprocal estimate and fixup.
7476 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
7477 for double and vector types. Add support for high precision machines.
7479 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
7480 the reciprocal estimate instructions can be generated.
7481 (TARGET_FRE): Ditto.
7482 (TARGET_FRSQRTES): Ditto.
7483 (TARGET_FRSQRTE): Ditto.
7484 (RS6000_RECIP_*): New macros for reciprocal estimate support.
7486 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
7487 square root estimate on vectors.
7488 (re<mode>2): New insn for reciprocal division estimate on vectors.
7490 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
7492 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
7493 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
7494 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
7495 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
7496 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
7497 (RS6000_BUILTIN_RSQRT): Ditto.
7498 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
7499 floating point builtin.
7501 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7502 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
7503 __RECIP_PRECISION__ based on the command line switches.
7504 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
7506 * config/rs6000/rs6000.opt (-mrecip): Document add support for
7507 replacing division instructions with reciprocal estimate and fixup.
7508 (-mrecip=<opt>): New option.
7509 (-mrecip-precision): Ditto.
7511 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
7512 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
7513 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
7516 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
7517 (UNSPEC_VREFP): Ditto.
7518 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
7519 conterparts with regard to support of -mno-fused-madd and -ffast-math.
7520 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
7521 reciprocal estimate instructions to be generated.
7522 (altivec_vrefp): Ditto.
7524 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
7526 (rreg): New mode attribute for reciprocal estimate support.
7527 (recip<mode>3): New insn for division using reciprocal estimate
7529 (divide define_split): New define_split to convert floating point
7530 division to use reciprocal estimate if the user used the
7531 appropriate options and the split is run when we can add new
7532 pseudo registers for the fixup.
7533 (rsqrt<mode>2): New insn for reciprocal square root support.
7534 (recipsf3): Move into recip<mode>3.
7536 (fres): Use TARGET_FRES.
7537 (rsqrtsf2): Move into rsqrt<mode>2.
7538 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
7539 (copysignsf3): Add support for VSX.
7540 (fred): Use TARGET_FRE.
7542 (rsqrtdf_internal1): New function for frsqrte instruciton.
7544 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
7547 2010-06-03 Richard Guenther <rguenther@suse.de>
7550 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
7551 (set_user_assembler_libfunc): Likewise.
7553 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
7555 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
7557 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
7559 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
7560 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
7561 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
7562 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
7563 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
7564 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
7565 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
7566 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
7567 * defaults.h: Updated for above mentioned changes.
7569 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
7571 * c-common.c: Remove header include of tm_p.h.
7572 * Makefile.in (c-common.o): Remove TM_P_H dependency.
7574 2010-06-02 Jakub Jelinek <jakub@redhat.com>
7576 * tree.h (struct tree_decl_map): New type.
7577 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
7578 (tree_decl_map_hash): New prototype.
7579 (debug_expr_for_decl, value_expr_for_decl): Change into
7580 tree_decl_map hashtab from tree_map.
7581 (init_ttree): Adjust initialization.
7582 (tree_decl_map_hash): New function.
7583 (decl_debug_expr_lookup, decl_debug_expr_insert,
7584 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
7586 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7588 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
7590 * configure: Regenerate.
7591 * config.in: Regenerate.
7593 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
7594 (X86_64_EMULATION): Define.
7595 (TARGET_LD_EMULATION): Use them.
7597 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
7598 (SPARC64_EMULATION): Define.
7599 (LINK_ARCH_SPEC): Use them.
7601 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
7603 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
7604 smallest_mode_for_size for computing the precision types of new
7605 graphite IVs. Do not call lang_hooks.types.type_for_size.
7607 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
7609 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
7611 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
7613 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
7616 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
7617 return false instead.
7619 2010-06-02 Jan Hubicka <jh@suse.cz>
7622 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
7623 create new cgraph node to check callee.
7625 2010-06-02 Richard Guenther <rguenther@suse.de>
7627 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
7629 2010-06-02 Richard Guenther <rguenther@suse.de>
7631 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
7632 (lto_wrapper_cleanup): ... this. Do not exit.
7633 (fatal): Adjust. Exit here.
7634 (fatal_perror): Likewise.
7635 (fatal_signal): New function.
7636 (main): Set up signal handlers to cleanup temporary files.
7637 * Makefile.in (lto-wrapper.o): Adjust dependencies.
7639 2010-06-02 Richard Guenther <rguenther@suse.de>
7641 PR tree-optimization/44377
7642 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
7644 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7646 * config/s390/2097.md (z10_fhex): Remove insn reservation.
7647 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
7648 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
7649 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
7651 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
7653 2010-06-02 Jan Hubicka <jh@suse.cz>
7655 * bitmap.c (bitmap_descriptor): Add search_iter.
7656 (bitmap_find_bit): Increment it.
7657 (print_statistics): Print it.
7659 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
7661 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
7662 instead of gimple_build_call_vec. Delete unnecessary local variable.
7664 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
7666 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
7667 change from yesterday.
7669 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
7671 * c-ada-spec.c: Clean up redundant includes.
7673 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
7675 * gimplify.c: Do not include except.h and optabs.h.
7676 (gimplify_body): Do not initialize RTL profiling.
7677 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
7678 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
7679 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
7680 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
7683 * tree-pretty-print.h: Include pretty-print.h.
7684 * gimple-pretty-print.h: Include pretty-print.h.
7686 * tree-pretty-print.c: Do not include diagnostic.h.
7687 * tree-vrp.c: Likewise.
7688 * tree-tailcall.c: Likewise
7689 * tree-scalar-evolution.c: Likewise
7690 * tree-ssa-dse.c: Likewise
7691 * tree-chrec.c: Likewise
7692 * tree-ssa-sccvn.c: Likewise
7693 * tree-ssa-copyrename.c: Likewise
7694 * tree-nomudflap.c: Likewise
7695 * tree-call-cdce.c: Likewise
7696 * tree-stdarg.c: Likewise
7697 * tree-ssa-math-opts.c: Likewise
7698 * tree-nrv.c: Likewise
7699 * tree-ssa-sink.c: Likewise
7700 * tree-browser.c: Likewise
7701 * tree-ssa-loop-ivcanon.c: Likewise
7702 * tree-ssa-loop.c: Likewise
7703 * tree-parloops.c: Likewise
7704 * tree-ssa-address.c: Likewise
7705 * tree-ssa-ifcombine.c: Likewise
7706 * tree-if-conv.c: Likewise
7707 * tree-data-ref.c: Likewise
7708 * tree-affine.c: Likewise
7709 * tree-ssa-phiopt.c: Likewise
7710 * tree-ssa-coalesce.c: Likewise
7711 * tree-ssa-pre.c: Likewise
7712 * tree-ssa-live.c: Likewise
7713 * tree-predcom.c: Likewise
7714 * tree-ssa-forwprop.c: Likewise
7715 * tree-ssa-dce.c: Likewise
7716 * tree-ssa-ter.c: Likewise
7717 * tree-ssa-loop-prefetch.c: Likewise
7718 * tree-optimize.c: Likewise
7719 * tree-ssa-phiprop.c: Likewise
7720 * tree-object-size.c: Likewise
7721 * tree-outof-ssa.c: Likewise
7722 * tree-ssa-structalias.c: Likewise
7723 * tree-switch-conversion.c: Likewise
7724 * tree-ssa-reassoc.c: Likewise
7725 * tree-ssa-operands.c: Likewise
7726 * tree-vectorizer.c: Likewise
7727 * tree-vect-data-refs.c: Likewise
7728 * tree-vect-generic.c: Likewise
7729 * tree-vect-stmts.c: Likewise
7730 * tree-vect-patterns.c: Likewise
7731 * tree-vect-slp.c: Likewise
7732 * tree-vect-loop.c: Likewise
7733 * tree-ssa-loop-ivopts.c: Likewise
7734 * tree-ssa-loop-im.c: Likewise
7735 * tree-ssa-loop-niter.c: Likewise
7736 * tree-ssa-loop-unswitch.c: Likewise
7737 * tree-ssa-loop-manip.c: Likewise
7738 * tree-ssa-loop-ch.c: Likewise
7739 * tree-dump.c: Likewise
7740 * tree-complex.c: Likewise
7742 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
7743 * tree-ssa-uninit.c: Likewise
7744 * tree-ssa-threadupdate.c: Likewise
7745 * tree-ssa-uncprop.c: Likewise
7746 * tree-ssa-ccp.c: Likewise
7747 * tree-ssa-dom.c: Likewise
7748 * tree-ssa-propagate.c: Likewise
7749 * tree-ssa-alias.c: Likewise
7750 * tree-dfa.c: Likewise
7751 * tree-cfgcleanup.c: Likewise
7752 * tree-sra.c: Likewise
7753 * tree-ssa-copy.c: Likewise
7754 * tree-ssa.c: Likewise
7755 * tree-profile.c: Likewise
7756 * tree-cfg.c: Likewise
7757 * tree-ssa-threadedge.c: Likewise
7758 * tree-vect-loop-manip.c: Likewise
7760 * tree-inline.c: Do not include diagnostic.h and expr.h.
7762 (copy_decl_for_dup_finish): Do not use NULL_RTX.
7764 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
7765 * tree-loop-distribution.c: Likewise.
7767 2010-06-01 Jan Hubicka <jh@suse.cz>
7769 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
7771 2010-06-01 Jan Hubicka <jh@suse.cz>
7773 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
7774 remove return value.
7775 (split_bbs_on_noreturn_calls) .... here.
7776 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
7777 * tree-flow.h (fixup_noreturn_call): New.
7779 2010-06-01 Jan Hubicka <jh@suse.cz>
7781 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
7783 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
7785 * tree.h (build_nt_call_list): Delete.
7786 * tree.c (build_nt_call_list): Delete.
7788 2010-06-01 Jan Hubicka <jh@suse.cz>
7790 * fwprop.c: Make emit-rtl.h include last.
7791 * rtlanal.c: Include emit-rtl.h.
7792 * genautomata.c: Output emit-rtl include into insn-automata.c
7793 * df-scan.c: Include emit-rtl.h.
7794 * haifa-sched.c: Indlude emit-rtl.h.
7795 * mode-switching.c: Indlude emit-rtl.h.
7796 * graph.c: Indlude emit-rtl.h.
7797 * sel-sched.c: Include emit-rtl.h.
7798 * sel-sched-ir.c: Include emit-rtl.h.
7799 * ira-build.c: Include emit-rtl.h.
7800 * emit-rtl.c: (first_insn, last_insn): Remove defines.
7801 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
7803 (set_new_first_and_last_insn, get_last_insn_anywhere,
7804 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
7805 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
7806 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
7807 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
7808 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
7809 Use accessor functions.
7810 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
7811 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
7812 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
7813 mem_expr_equal_p): Move here from rtl.h.
7814 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
7815 Move here from emit-rtl.c; make inline.
7816 * cfglayout.h: Include emit-rtl.h.
7817 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
7818 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
7819 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
7820 mem_expr_equal_p, get_insns, set_first-insn,
7821 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
7822 * reg-stack.c: Include emit-rtl.h.
7825 2010-06-01 Jan Hubicka <jh@suse.cz>
7827 * cgraph.h (tree_function_versioning): Update prototype.
7828 (cgraph_function_versioning): Update prototype.
7829 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
7831 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
7832 (cgraph_materialize_clone, save_inline_function_body): Update use of
7833 tree_function_versioning.
7834 * tree-inline.c (copy_bb): Look for previous copied block to link
7835 after; fix debug output.
7836 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
7837 (copy_body): Likewise.
7838 (expand_call_inline): Update use of copy_body.
7839 (tree_function_versioning): Update use of copy body; accept
7840 blocks_to_copy and new_entry.
7842 2010-06-01 Jan Hubicka <jh@suse.cz>
7844 * gegenrtl.c: Remove unnecesary prototypes.
7846 (gendef): Produce static inline.
7848 (main): Do not decode parameters; generate header only.
7849 * Makefile.in (genrtl.c): Remove.
7851 2010-06-01 Jan Hubicka <jh@suse.cz>
7853 * tree-switch-conversion.c (build_one_array): Make it readonly.
7855 2010-06-01 Richard Guenther <rguenther@suse.de>
7857 * optabs.c (init_optabs): Guard all accesses to reinit.
7858 * ipa-pure-const.c (propagate): Fix another typo.
7859 * opts.c (common_handle_option): Split assignment to bool.
7860 * c-opts.c (c_common_handle_option): Likewise.
7862 2010-06-01 Arnaud Charlet <charlet@adacore.com>
7863 Matthew Gingell <gingell@adacore.com>
7865 * doc/invoke.texi: Mention -fdump-ada-spec.
7866 * tree-dump.c (dump_files): Add ada-spec.
7867 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
7868 * tree-pass.h (tree_dump_index): Add TDI_ada.
7869 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
7870 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
7871 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
7872 * c-decl.c: Include c-ada-spec.h.
7873 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
7875 (c_write_global_declarations): Add handling of -fdump-ada-spec.
7876 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
7877 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
7878 * c-ada-spec.h, c-ada-spec.c: New files.
7880 2010-06-01 Richard Guenther <rguenther@suse.de>
7883 * ipa-pure-const.c (get_function_state): Hand back varying state
7884 if we do not have one.
7885 (has_function_state): New function.
7886 (duplicate_node_data): Adjust.
7887 (remove_node_data): Likewise.
7888 (pure_const_write_summary): Likewise.
7889 (propagate): Likewise. Fix typo.
7891 2010-06-01 Jan Hubicka <jh@suse.cz>
7893 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
7894 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
7895 (execute_all_ipa_transforms): Do not play with the states.
7897 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
7899 * config/arm/t-linux-androideabi: New.
7900 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
7902 2010-06-01 Jan Hubicka <jh@suse.cz>
7904 * tree-inline.c (estimate_num_insns): For stdarg functions look
7905 into call statement to count cost of argument passing.
7907 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
7909 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
7910 argument for fprintf.
7911 (ix86_output_addr_diff_elt): Likewise.
7912 (x86_function_profiler): Likewise.
7913 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
7914 (LPREFIX): Likewise.
7915 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
7917 2010-05-31 Jakub Jelinek <jakub@redhat.com>
7920 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
7921 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
7922 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
7923 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
7924 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
7925 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
7926 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
7927 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
7930 2010-05-31 Jan Hubicka <jh@suse.cz>
7932 * tree.h (tree_range_check_failed): Declare noreturn.
7934 2010-05-31 Jan Hubicka <jh@suse.cz>
7936 * gimple.c (gimple_call_builtin_p): New function.
7937 * gimple.h (gimple_call_builtin_p): Declare.
7938 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
7940 (execute_warn_function_return): BUILT_IN_RETURN is return.
7941 (split_critical_edges): Return edges are not critical.
7942 (is_ctrl_altering_stmt): Builtin_in_return is altering.
7943 (gimple_verify_flow_info): Handle built_in_return.
7944 (execute_warn_function_return): Handle built_in_return.
7945 * ipa-pure-const.c (check_call): Ignore builtin_return.
7947 2010-05-31 Jakub Jelinek <jakub@redhat.com>
7950 * expr.c (expand_assignment): Don't store anything for out-of-bounds
7951 array accesses with non-MEM.
7953 PR tree-optimization/44182
7954 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
7955 newly needs to end a bb is followed by debug stmts, instead return
7956 true from the function at the end.
7957 (maybe_move_debug_stmts_to_successors): New function.
7958 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
7960 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
7963 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
7965 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
7967 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
7968 for nested functions in non-optimized compilation.
7970 2010-05-31 Richard Guenther <rguenther@suse.de>
7972 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
7974 2010-05-30 Jan Hubicka <jh@suse.cz>
7976 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
7978 2010-05-30 Richard Guenther <rguenther@suse.de>
7981 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
7982 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
7985 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
7987 * config/darwin.c (output_objc_section_asm_op): Add comment.
7988 (name_needs_quotes): Add '_' to list of valid comment chars.
7989 (machopic_output_function_base_name): Remove unneeded quotes.
7990 (darwin_encode_section_info): Adjust asm whitespace.
7991 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
7992 (ASM_OUTPUT_LOCAL): Ditto.
7993 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
7994 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
7995 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
7997 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
7999 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
8000 RS6000_OUTPUT_BASENAME unconditionally.
8001 (rs6000_output_function_epilogue): Likewise.
8003 2010-05-30 Jan Hubicka <jh@suse.cz>
8005 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
8008 2010-05-30 Richard Guenther <rguenther@suse.de>
8010 * tree-cfg.c (verify_gimple_assign_single): Implement
8011 verification for COND_EXPR rhs.
8013 2010-05-30 Jan Hubicka <jh@suse.cz>
8015 * cgraph.h (cgraph_dump_file): Declare.
8016 * cgraphunit.c (cgraph_dump_file): Export.
8017 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
8019 2010-05-30 Jan Hubicka <jh@suse.cz>
8021 * dwarf2out.c (reference_to_unused,
8022 premark_types_used_by_global_vars_helper): Avoid creation of new
8025 2010-05-30 Jan Hubicka <jh@suse.cz>
8027 * cgraph.h (cgraph_node_cannot_return,
8028 cgraph_edge_cannot_lead_to_return): New functions.
8029 * cgraph.c (cgraph_node_cannot_return,
8030 cgraph_edge_cannot_lead_to_return): Use them.
8031 * ipa-pure-const.c (pure_const_names): New static var.
8032 (check_call): Handle calls not leading to return.
8033 (pure_const_read_summary): Dump info read.
8034 (propagate): Dump info about propagation process; ignore side effects
8035 of functions not leading to exit; fix handling of pure functions.
8037 2010-05-30 Jan Hubicka <jh@suse.cz>
8039 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
8040 for tail call epilogues.
8042 2010-05-30 Jan Hubicka <jh@suse.cz>
8044 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
8045 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
8048 2010-05-29 Jan Hubicka <jh@suse.cz>
8050 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
8051 node; remove references in node we no longer keep in cgrpah but need
8054 2010-05-29 Jan Hubicka <jh@suse.cz>
8056 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
8058 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8061 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
8063 2010-05-29 Jan Hubicka <jh@suse.cz>
8065 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
8066 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
8067 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
8068 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
8069 debug_names_replaced_by, debug_update_ssa): Likewise.
8070 * sbitmap.c (debug_sbitmap): Likewise.
8071 * genrecog.c (debug_decision, debug_decision_list): Likewise.
8072 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
8073 debug_tree_chain): Likewise.
8074 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
8075 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
8076 * optabs.c (debug_optab_libfuncs): Likewise.
8077 (verify_loop_closed_ssa): Likewise.
8078 * value-prof.c (verify_histograms): Likewise.
8079 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
8080 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
8081 * cfghooks.c (verify_flow_info): Likewise.
8082 * fold-const.c (debug_fold_checksum): Likewise.
8083 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
8084 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
8086 * omega.c (debug_omega_problem): Likewise.
8087 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
8088 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
8089 * dominance.c (verify_dominators, debug_dominance_info,
8090 debug_dominance_tree): Likewise.
8091 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
8092 * df_regno_debug, df_ref_debug,
8093 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
8094 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
8095 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
8096 * sel-sched.c (debug_state): Likewise.
8097 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
8099 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
8100 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
8101 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
8102 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
8104 * c-pretty-print.c (debug_c_tree): Likewise.
8105 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
8106 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
8107 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
8108 * ebitmap.c (debug_ebitmap): Likewise.
8109 * function.c (debug_find_var_in_block_tree): Likewise.
8110 * print-rtl.c (debug_rtx): Likewise.
8111 (debug_rtx_count): Likewise.
8112 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
8113 * stor-layout.c (debug_rli): Likewise.
8114 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
8115 * tree-data-ref.c (debug_data_references,
8116 debug_data_dependence_relations, debug_data_reference,
8117 debug_data_dependence_relation, debug_rdg_vertex,
8118 debug_rdg_component, debug_rdg): Likewise.
8119 * tree-affine.c (debug_aff): Likewise.
8120 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
8122 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
8123 * emit-rtl.c (verify_rtl_sharing): Likewise.
8124 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
8125 debug_value_expressions): Likewise.
8126 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
8127 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
8128 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
8129 * cfglayout.c (verify_insn_chain): Likewise.
8130 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
8131 debug_clast_stmt, debug_generated_program): Likewise.
8132 * ggc-page.c (debug_print_page_list): Likewise.
8133 * tree-ssa-ter.c (debug_ter): Likewise.
8134 * graphite-dependences.c (debug_pddr): Likewise.
8135 * sched-deps.c (debug_ds): Likewise.
8136 * tree-ssa.c (verify_ssa): Likewise.
8137 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
8138 debug_scattering_functions, debug_iteration_domains, debug_pdr,
8139 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
8140 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
8141 * tree-inline.c (debug_find_tree): Likewise.
8142 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
8143 debug_ppl_powerset_matrix): Likewise.
8144 * var-tracking.c (debug_dv): Likewise.
8145 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
8146 * cfgloop.c (verify_loop_structure): Likewise.
8147 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
8148 * c-common.c (verify_sequence_points): Likewise.
8149 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
8150 debug_candidates, debug_rgn_dependencies): Likewise.
8151 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
8152 * debug_constraint_graph, debug_solution_for_var,
8153 debug_sa_points_to_info): Likewise.
8154 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
8156 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
8157 debug_loops, debug_loop, debug_loop_num): Likewise.
8158 * passes.c (debug_pass): Likewise.
8159 (dump_properties): Likewise; add cfglayout property.
8160 (debug_properties): Likewise.
8161 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
8162 * varpool.c (debug_varpool): Likewise.
8163 * regcprop.c (debug_value_data): Likewise.
8164 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
8165 debug_immediate_uses_for): Likewise.
8167 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
8170 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
8171 Filter out insn-flags.h.
8173 2010-05-29 Jan Hubicka <jh@suse.cz>
8175 * cgraph.h (struct varpool_node_set_def,
8176 struct cgraph_node_set_def): Remove unused AUX pointer.
8177 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
8180 2010-05-29 Jan Hubicka <jh@suse.cz>
8183 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
8185 2010-05-29 Richard Guenther <rguenther@suse.de>
8187 * lto-streamer.c (cached_bp): New global variable.
8188 (bitpack_create): Return the cached bitpack, if available.
8189 (bitpack_delete): Clear and cache the bitpack, if appropriate.
8190 (bp_pack_value): Remove redundant asserts.
8192 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
8195 * tree-if-conv.c (is_true_predicate): New.
8196 (is_predicated): Use is_true_predicate.
8197 (add_to_predicate_list): Same. Do not use unshare_expr.
8198 (add_to_dst_predicate_list): Same.
8200 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
8202 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
8204 (predicate_bbs): Same.
8205 (clean_predicate_lists): Same.
8206 (find_phi_replacement_condition): Do not AND the predicate from
8209 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
8212 * Makefile.in (build/gencondmd.o): Add a missing `\'.
8214 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8217 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
8218 (negdf2): Adjust expander pattern and use negdf2_slow.
8221 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
8223 * basic-block.h (struct control_flow_graph): Move last_label_uid field
8225 * df.h (struct df_base_ref): Move regno field up.
8226 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
8227 * expr.h (struct separate_ops): Move location field up.
8228 * optabs.h (struct optab_d): Move libcall_basename field down.
8229 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
8230 * config/i386/i386.h (struct machine_function): Convert call_abi field
8231 into a bitfield. Move cfa field to the end of the structure.
8233 2010-05-29 Jan Hubicka <jh@suse.cz>
8235 * varpool.c (varpool_get_node): Fix lookup.
8237 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
8239 * config/spu/spu-protos.h: Do not include rtl.h. Protect
8240 RTL specific prototypes with #ifdef RTX_CODE.
8241 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
8242 * config/spu/t-spu-elf: Fix dependencies.
8244 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
8246 2010-05-29 Mike Stump <mikestump@comcast.net>
8249 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
8250 TM_H when building to avoid dependency loops.
8252 2010-05-29 Jan Hubicka <jh@suse.cz>
8254 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
8255 refs and body; not the whole node for masters of materialized clones.
8257 2010-05-29 Mike Stump <mikestump@comcast.net>
8259 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
8261 2010-05-29 Jan Hubicka <jh@suse.cz>
8263 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
8264 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
8265 use of clone_function_name.
8266 * cgraph.h (cgraph_create_virtual_clone,
8267 cgraph_function_versioning): update prototypes.
8268 (clone_function_name): Declare.
8269 * ipa-cp.c (ipcp_insert_stage): Update call of
8270 cgraph_create_virtual_clone.
8271 * omp-low.c (create_omp_child_function_name): Use
8272 cgraph_create_virtual_clone.
8273 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
8274 (cgraph_function_versioning): Take SUFFIX argument; produce new name
8275 and make decl local.
8277 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
8279 * vec.h: Include statistics.h
8280 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
8283 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
8285 * c-lex.c: Do not include c-tree.h.
8286 * c-pretty-print.c: Likewise.
8287 * c-opts.c: Likewise.
8288 * c-gimplify.c: Likewise.
8289 * c-common.c: Likewise.
8290 * c-dump.c: Likewise. Include c-common.h.
8292 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
8294 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
8295 before including diagnostic-core.h.
8296 (c_cpp_error): New prototype moved from c-tree.h.
8297 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
8298 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
8299 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
8300 (c_cpp_error): Prototype moved to c-common.h.
8301 * Makefile.in: Update dependency for C_COMMON_H.
8303 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
8305 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
8306 * c-common.c (c_register_addr_space): Remove here.
8307 * c-decl.c (c_register_addr_space): Re-add here.
8309 2010-05-28 Mike Stump <mikestump@comcast.net>
8311 * config/darwin-c.c: Remove c-tree.h include.
8313 2010-05-28 Joseph Myers <joseph@codesourcery.com>
8315 * gcc.c: Include diagnostic.h.
8316 (error_count): Remove. All users changed to use errorcount.
8317 (programname): Remove. All users changed to use progname.
8318 (fancy_abort, internal_error, fatal_error, error, warning, inform,
8320 (execute): Don't include "Internal error" and bug reporting
8321 information in argument of internal_error call.
8322 (process_command): Don't increment error_count after calling
8324 (input_filename): Rename to gcc_input_filename. All users
8326 (main): Call diagnostic_initialize. Register delete_temp_files
8327 with atexit. Use seen_error to test for errors.
8328 * gcc.h: Include diagnostic-core.h.
8329 (fatal_error, error, warning): Remove.
8330 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
8331 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
8332 (gcc.o): Update dependencies.
8334 2010-05-28 Jeff Law <law@redhat.com>
8336 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
8338 * ira.h (ira_bad_reload_regno): Declare
8339 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
8341 * ira-color.c (update_curr_costs): Free updated hard reg costs.
8342 (ira_reassign_conflict_allocnos): Remove bogus asserts.
8343 (allocno_reload_assign): Likewise.
8345 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
8347 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
8350 2010-05-28 Richard Guenther <rguenther@suse.de>
8353 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
8354 Stream fixed-point constants mode.
8355 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
8357 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
8358 Stream fixed-point constants mode.
8359 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
8362 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
8364 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
8365 only place it was called from.
8366 (number_of_latch_executions): Do not return chrec_dont_know when the
8367 may_be_zero is a runtime condition: instead, return a COND_EXPR
8368 including the may_be_zero condition.
8369 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
8371 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
8374 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
8376 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
8377 generate COND_EXPRs for degenerate_phi_result.
8379 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
8382 * tree-if-conv.c (if_convertible_loop_p): Check the
8383 if-convertibility of phi nodes in non predicated BBs.
8385 2010-05-28 Joseph Myers <joseph@codesourcery.com>
8387 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
8389 2010-05-28 Joseph Myers <joseph@codesourcery.com>
8392 * gcc.c (inform, warning, inform): New functions.
8393 (fatal_ice): Rename to internal_error; change cmsgid parameter to
8394 gmsgid. All callers changed.
8395 (notice): Rename to fnotice; add parameter fp. All callers changed.
8396 (fatal_error): Rename to fatal_signal. All users changed.
8397 (fatal): Rename to fatal_error; change cmsgid parameter to
8398 gmsgid. All callers changed.
8399 (process_command): Use warning instead of error for warnings.
8400 (end_going_arg): Don't use _() around argument of error.
8401 (do_spec_1): Use inform for message from %n specs. Use warning
8402 instead of error for warnings.
8403 (main): Use inform for comparison messages. Use warning for
8404 message about unused linker input.
8405 (error): Increment error_count. Print "error: ".
8406 * gcc.h (fatal): Change to fatal_error.
8408 * config/darwin-driver.c (darwin_default_min_version): Use warning
8409 instead of fprintf for warnings.
8410 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
8412 2010-05-28 Julian Brown <julian@codesourcery.com>
8414 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
8415 (*thumb2_addsi3_compare0_scratch): New.
8416 * config/arm/constraints.md (Pv): New.
8417 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
8419 (*addsi3_compare0_scratch): Likewise.
8421 2010-05-28 Jan Hubicka <jh@suse.cz>
8423 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
8425 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
8426 only on local statics.
8428 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
8430 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
8432 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
8435 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
8436 (OPTION_GLIBC): Define.
8438 2010-05-28 Jakub Jelinek <jakub@redhat.com>
8441 * dwarf2out.c (double_int_type_size_in_bits): New function.
8442 (round_up_to_align): Change first argument and return value to
8444 (field_byte_offset): Work internally on double_ints.
8447 * builtins.c (expand_movstr): Use a temporary pseudo instead
8448 of target even when target is not NULL and not const0_rtx, but
8449 fails movstr predicate.
8450 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
8452 2010-05-28 Joseph Myers <joseph@codesourcery.com>
8454 * final.c (rest_of_clean_state): Use %m in errors instead of
8456 * gengtype.c (read_input_list, close_output_files): Use xstrerror
8457 instead of strerror.
8458 * toplev.c (process_options): Use %m in errors instead of strerror
8460 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
8463 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
8465 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
8466 (ix86_canonical_va_list_type): Make static. Add declaration.
8467 (ix86_enum_va_list): Make static. Reindent.
8468 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
8469 (ix86_canonical_va_list_type): Ditto.
8470 (ix86_enum_va_list): Ditto.
8472 2010-05-28 Richard Guenther <rguenther@suse.de>
8474 * lto-wrapper.c (run_gcc): With -save-temps generate a
8475 user-visible ltrans filename. Fixup ltrans unit numbering.
8477 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
8479 * c-common.c (c_common_nodes_and_builtins): Replace use
8480 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
8481 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
8482 to ix86_enum_va_list.
8483 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
8484 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
8485 (TARGET_ENUM_VA_LIST_P): Add hook description.
8486 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
8487 * target.h (gcc_target): Add enum_va_list hook.
8490 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
8491 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
8492 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
8494 2010-05-28 Alan Modra <amodra@gmail.com>
8497 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
8498 emit_library_call machinery to set up __tls_get_addr calls.
8500 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8502 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
8504 2010-05-28 Dodji Seketeli <dodji@redhat.com>
8506 Revert fix for PR c++/44188
8507 * c-common.c (is_typedef_decl): Revert the moving of this
8509 * tree.c (is_typedef_decl): ... here.
8510 (typdef_variant_p): Revert the moving of this definition
8511 here from gcc/cp/tree.c.
8512 * c-common.h (is_typedef_decl): Revert the moving of this
8514 * tree.h (is_typedef_decl): ... here.
8515 (typedef_variant_p): Revert the moving of this declaration here
8516 from gcc/cp/cp-tree.h
8517 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
8518 (gen_tagged_type_die): Revert the splitting out of ...
8519 (gen_type_die_with_usage): ... this function. Revert the anonymous
8520 tagged type handling.
8521 (gen_typedef_die): Revert emitting DW_TAG_typedef for
8522 typedefs naming anonymous tagged types.
8524 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
8526 * config/rs6000/rs6000-modes.def (PSImode): Delete.
8528 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
8530 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
8531 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
8533 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
8535 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
8536 XER_REGS to CA_REGS throughout.
8537 * config/rs6000/rs6000.h: Same.
8538 (ADDITIONAL_REGISTER_NAMES): Add "xer".
8539 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
8540 that mode_iterator "P" is the size for arithmetic carries as well.
8541 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
8543 2010-05-28 Jakub Jelinek <jakub@redhat.com>
8546 * combine.c (struct rtx_subst_pair): Define unconditionally.
8547 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
8548 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
8549 Call make_compound_operation on pair->to.
8550 (propagate_for_debug): Don't call make_compound_operation here.
8551 Always use simplify_replace_fn_rtx.
8553 2010-05-27 Sterling Augustine <sterling@tensilica.com>
8555 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
8556 * config/xtensa/xtensa.c (override_options): Check
8557 TARGET_FORCE_NO_PIC and set flag_pic.
8558 * config/xtensa/xtensa.opt: Document -mforce-no-pic
8560 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
8563 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
8564 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
8566 2010-05-27 Joseph Myers <joseph@codesourcery.com>
8568 * diagnostic-core.h: New. Contents moved from diagnostic.h and
8570 * diagnostic.c: Don't include toplev.h.
8571 (progname): Define. Moved from toplev.c.
8572 (seen_error): New function.
8573 * diagnostic.h: Include diagnostic-core.h.
8574 (diagnostic_t, emit_diagnostic): Don't declare here.
8575 * toplev.c (progname): Move to toplev.c.
8576 (emit_debug_global_declarations, compile_file, finalize,
8577 do_compile, toplev_main): Use seen_error.
8578 * toplev.h: Include diagnostic-core.h.
8579 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
8580 internal_error, warning, warning_at, error, error_n, error_at,
8581 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
8582 verbatim, fnotice, progname): Move to diagnostic-core.h.
8583 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
8584 (expand_builtin_expect): Use seen_error.
8585 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
8586 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
8587 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
8588 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
8589 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
8590 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
8591 errorcount for errors.
8592 * c-opts.c (c_common_finish): Use seen_error.
8593 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
8594 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
8595 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
8596 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
8597 (get_coverage_counts): Use seen_error.
8598 * dwarf2out.c (dwarf2out_finish): Use seen_error.
8599 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
8600 gimplify_body): Use seen_error.
8601 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
8602 * ipa-pure-const.c (gate_pure_const): Use seen_error.
8603 * ipa-reference.c (gate_reference): Use seen_error.
8604 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
8605 * lambda-code.c: Include diagnostic-core.h instead of
8607 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
8608 * lto-compress.c: Include diagnostic-core.h instead of
8610 * lto-section-in.c: Include diagnostic-core.h instead of
8612 * lto-streamer-out.c: Include diagnostic-core.h instead of
8614 * lto-streamer.c: Include diagnostic-core.h instead of
8616 (gate_lto_out): Use seen_error.
8617 * matrix-reorg.c: Include diagnostic-core.h instead of
8619 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
8620 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
8621 (gate_expand_omp, lower_omp_1): Use seen_error.
8622 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
8623 (rest_of_decl_compilation, rest_of_type_compilation,
8624 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
8625 * tree-cfg.c (label_to_block_fn): Use seen_error.
8626 * tree-inline.c (optimize_inline_calls): Use seen_error.
8627 * tree-mudflap.c (mudflap_finish_file): Use
8629 * tree-optimize.c (gate_all_optimizations,
8630 gate_all_early_local_passes, gate_all_early_optimizations): Use
8632 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
8633 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
8634 (varpool_remove_unreferenced_decls,
8635 varpool_assemble_pending_decls): Use seen_error.
8636 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
8637 (TOPLEV_H, DIAGNOSTIC_H): Update.
8638 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
8639 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
8640 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
8641 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
8642 coverage.o, lambda-code.o): Update dependencies.
8644 2010-05-25 Dodji Seketeli <dodji@redhat.com>
8647 * c-common.c (is_typedef_decl): Move this definition ...
8648 * tree.c (is_typedef_decl): ... here.
8649 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
8650 * c-common.h (is_typedef_decl): Move this declaration ...
8651 * tree.h (is_typedef_decl): ... here.
8652 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
8653 * dwarf2out.c (is_naming_typedef_decl): New function.
8654 (gen_tagged_type_die): Split out of ...
8655 (gen_type_die_with_usage): ... this function. When an anonymous
8656 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
8657 is emitted for the typedef.
8658 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
8659 anonymous tagged types.
8661 2010-05-27 Jason Merrill <jason@redhat.com>
8663 * print-tree.c (debug_vec_tree): New fn.
8664 (print_vec_tree): New fn.
8665 * tree.h: Declare them.
8666 * gdbinit.in (pvt): New command.
8668 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
8670 * gdbinit.in (pdd): New command.
8672 2010-05-27 Jan Hubicka <jh@suse.cz>
8674 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
8675 (update_caller_keys): Return early if there are no callers;
8676 only update fibheap when decresing the key.
8677 (update_callee_keys): Avoid recursion.
8678 (decide_inlining_of_small_functions): When badness does not match;
8679 re-insert into fibheap.
8681 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
8683 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
8684 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
8685 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
8686 (ALL_HOST_OBJS): Now a union of the above two.
8687 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
8688 all files in ALL_HOST_FRONTEND_OBJS.
8689 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
8691 * c-common.c: Pretend to be a backend file by undefining
8692 IN_GCC_FRONTEND (still need rtl.h here).
8694 2010-05-27 Jan Hubicka <jh@suse.cz>
8696 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
8697 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
8699 2010-05-27 Jan Hubicka <jh@suse.cz>
8701 * sched-ebb.c: Rename struct deps to struct deps_desc.
8703 * sel-sched-ir.c: Likewise.
8704 * sched-deps.c: Likewise.
8705 * sched-int.h: Likewise.
8706 * sched-rgn.c: Likewise.
8708 2010-05-27 Jon Beniston <jon@beniston.com>
8711 * config/lm32/lm32.h: Remove definition of
8712 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
8714 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
8717 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
8719 2010-05-27 Richard Guenther <rguenther@suse.de>
8721 PR tree-optimization/44284
8722 * tree-vect-stmts.c (vectorizable_assignment): Handle
8723 sign-changing conversions as simple copy.
8725 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8727 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
8729 (__gthread_active_p): Check for pthread_create if compiling against
8732 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8734 Support compilation for Android platform. Reimplement -mandroid.
8736 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
8737 (*android*): Set ANDROID_DEFAULT.
8738 (arm*-*-linux*): Include linux-android.h.
8739 (arm*-*-eabi*): Don't include previous -mandroid implementation.
8740 * config/arm/eabi.h: Remove, move Android-specific parts ...
8741 * config/linux-android.h: ... here. New file.
8742 * config/arm/eabi.opt: Rename to ...
8743 * config/linux-android.opt: ... this.
8744 (mandroid): Allow -mno-android option. Initialize based on
8746 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
8747 Move logic to corresponding LINUX_TARGET_* macros.
8748 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
8749 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
8750 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
8751 Android definitions.
8752 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
8753 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
8756 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8758 Add support for Bionic C library
8760 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
8762 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
8763 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
8765 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
8766 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
8767 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
8768 to support multiple C libraries. Handle Bionic.
8769 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
8770 (BIONIC_DYNAMIC_LINKER64): Define.
8771 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
8773 (TARGET_HAS_SINCOS): Enable for Bionic.
8775 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
8776 the last option specified on command line take effect.
8777 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
8779 (mglibc, muclibc): Update.
8781 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
8782 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
8785 * doc/invoke.texi (-mglibc, -muclibc): Update.
8786 (-mbionic): Document.
8788 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8790 * c-common.h (c_register_addr_space): Add prototype.
8791 (ADDR_SPACE_KEYWORD): Remove.
8792 * c-common.c (c_register_addr_space): New function.
8793 (c_addr_space_name): Reimplement.
8794 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
8796 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
8797 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
8799 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
8800 Remove TARGET_ADDR_SPACE_KEYWORDS.
8802 2010-05-27 Joseph Myers <joseph@codesourcery.com>
8804 * input.c: New file.
8805 * input.h (main_input_filename): Move declaration to toplev.h.
8806 * toplev.c (input_location, line_table): Move to input.c
8807 * toplev.h (main_input_filename): Move declaration from input.h.
8808 * tree.c (expand_location): Move to input.c.
8809 * Makefile.in (OBJS-common): Add input.o.
8810 (input.o): Add dependencies.
8812 2010-05-27 Richard Guenther <rguenther@suse.de>
8814 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
8815 for non-existant files.
8816 (fork_execute): Mark args_name file as deleted.
8818 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
8821 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
8822 (narrow_signed_type): Likewise.
8824 2010-05-26 Jan Hubicka <jh@suse.cz>
8826 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
8827 edge only when checking is enabled; check using former_clone_of;
8828 check inline clones too.
8829 (cgraph_materialize_clone): Record former_clone_of pointer.
8830 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
8831 combining redirections; dump args_to_skip bitmap
8832 (cgraph_materialize_all_clones): Do no redirection here.
8833 * ipa-inline.c (inline_transform): Do redirection here.
8834 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
8837 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8839 * config/avr/avr-c.c: Do not include regs.h.
8840 Include cpplib.h for cpp_define and tree.h for c-common.h.
8841 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
8842 * config/avr/t-avr: Fix dependencies for avr-c.o.
8844 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8846 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
8847 string instead of SYMBOL_REF rtx.
8848 * rtl.h (set_stack_check_libfunc): Move prototype from here...
8849 * libfuncs.h: ...to here. Adjust for explow.c change.
8851 2010-05-26 Joseph Myers <joseph@codesourcery.com>
8853 * pretty-print.c: Don't include ggc.h.
8854 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
8855 (identifier_to_locale): Use them for allocation.
8856 * pretty-print.h (identifier_to_locale_alloc,
8857 identifier_to_locale_free): Declare.
8858 * toplev.c (alloc_for_identifier_to_locale): New.
8859 (general_init): Set identifier_to_locale_alloc and
8860 identifier_to_locale_free.
8861 * Makefile.in (pretty-print.o): Update dependencies.
8863 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
8865 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
8866 pointer types if they have different alignment or mode.
8868 2010-05-26 Anatoly Sokolov <aesok@post.ru>
8870 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8871 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8872 * config/sparc/sparc-protos.h (function_value): Remove declaration.
8873 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
8874 sparc_function_value_regno_p): New functions.
8875 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8876 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8877 (function_value): Rename to...
8878 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
8879 argument to 'outgoing'.
8880 (function_arg_record_value, function_arg_union_value,
8881 function_arg_vector_value): Update comment.
8883 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
8885 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
8886 (fde_needed_for_eh_p): New predicate.
8887 (output_call_frame_info): Use it throughout to decide whether FDEs
8888 are needed for EH purpose.
8889 (dwarf2out_begin_prologue): Reorder assignments.
8891 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8893 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
8894 special case loop->header.
8895 (is_predicated): New.
8896 (if_convertible_loop_p): Call it.
8898 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8900 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
8901 iterator in parameter. Do not generate code during the analysis.
8902 (tree_if_convert_cond_stmt): Removed.
8903 (tree_if_convert_stmt): Removed.
8904 (predicate_bbs): New.
8905 (if_convertible_loop_p): Call predicate_bbs.
8906 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
8907 now contains all the analysis part.
8909 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8911 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
8912 statements in the analysis part.
8913 (tree_if_convert_stmt): Update comment.
8914 (remove_conditions_and_labels): New.
8915 (combine_blocks): Call remove_conditions_and_labels.
8916 (tree_if_conversion): Update comment.
8918 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8920 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
8921 than 2 predecessors or more than 2 successors.
8923 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8925 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
8926 of loops in which the data dependence analysis fails.
8928 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8930 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
8931 CDI_POST_DOMINATORS.
8932 (tree_if_conversion): Same.
8934 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8936 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
8938 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8940 * tree-if-conv.c: Update copyright years. Fix comments.
8943 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
8945 * builtin-types.def (BT_INT128): New primitive type.
8946 (BT_UINT128): Likewise.
8947 * c-common.c (c_common_r): Add __int128 keyword.
8948 (c_common_type_for_size): Handle __int128.
8949 (c_common_type_for_mode): Likewise.
8950 (c_common_signed_or_unsigned_type): Likewise.
8951 (c_common_nodes_and_builtins): Add builtin type
8952 if target supports 128-bit integer scalar.
8953 * c-common.h (enum rid): Add RID_INT128.
8954 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
8955 if target supports 128-bit integer scalar.
8956 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
8957 (finish_declspecs): Likewise.
8958 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
8959 (c_token_starts_declspecs): Likewise.
8960 (c_parser_declspecs): Likewise.
8961 (c_parser_attributes): Likewise.
8962 (c_parser_objc_selector): Likewise.
8963 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
8964 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
8965 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
8966 * tree.c (make_or_reuse_type): Likewise.
8967 (make_unsigned_type): Likewise.
8968 (build_common_tree_nodes_2): Likewise.
8969 * tree.h (enum integer_type_kind): Add itk_int128 and
8970 itk_unsigned_int128.
8971 (int128_integer_type_node): New define.
8972 (int128_unsigned_type_node): New define.
8973 * doc/extend.texi: Add documentation about __int128 type.
8975 2010-05-26 Richard Guenther <rguenther@suse.de>
8977 * tree-ssa-sccvn.c (copy_nary): Adjust.
8978 (copy_phis): Rename to ...
8979 (copy_phi): ... this. Adjust.
8980 (copy_references): Rename to ...
8981 (copy_reference): ... this. Adjust.
8982 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
8983 result into the valid table.
8985 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8987 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
8988 insn-config.h, insn-codes.h, recog.h, and optabs.h.
8990 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8992 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
8994 2010-05-26 Richard Guenther <rguenther@suse.de>
8996 * opts.c (common_handle_option): Handle OPT_Ofast.
8998 2010-05-26 Joseph Myers <joseph@codesourcery.com>
9000 * diagnostic.c: Don't include opts.h.
9001 (permissive_error_option): Define.
9002 (diagnostic_initialize): Take n_opts parameter. Allocate memory
9003 for classify_diagnostic. Don't use memset for
9004 classify_diagnostic. Initialize new and recently added fields.
9005 (diagnostic_classify_diagnostic): Use context->n_opts instead of
9007 (diagnostic_report_diagnostic): Pass context parameter to
9008 diagnostic_report_warnings_p. Use option_enabled and option_name
9010 (emit_diagnostic): Use permissive_error_option.
9011 (permerror): Likewise.
9012 * diagnostic.h: Don't include options.h.
9013 (struct diagnostic_context): Add n_opts, opt_permissive,
9014 inhibit_warnings, warn_system_headers, option_enabled and
9015 option_name fields. Change classify_diagnostic to a pointer.
9016 * opts-diagnostic.h: New file.
9017 * opts.c: Include opts-diagnostic.h.
9018 (common_handle_option): Set global_dc fields for -Wfatal-errors,
9019 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
9020 (option_name): New function.
9021 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
9022 (c_common_handle_option): Set global_dc->permissive for
9024 * c-common.c (c_cpp_error): Save and restore
9025 global_dc->warn_system_headers, not variable warn_system_headers.
9026 * toplev.c: Include opts-diagnostic.h.
9027 (general_init): Update call to diagnostic_initialize. Set
9028 global_dc->show_column, global_dc->option_enabled and
9029 global_dc->option_name.
9030 (process_options): Don't set global_dc fields here.
9031 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
9032 (diagnostic.o, opts.o, toplev.o): Update dependencies.
9034 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
9036 * config/picochip/picochip.md (movsi): Split a movsi from a
9039 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9041 * ggc-zone.c: Update copyright year.
9042 (poison_region): Mark memory for Valgrind as undefined before
9043 memset () call and inaccessible afterwards.
9044 (ggc_pch_total_size): Change type of i to int.
9046 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9048 * ggc-common.c (ggc_free_overhead): Allow empty slot.
9050 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9052 * ggc-common.c: Update copyright year.
9053 (ggc_rlimit_bound): Remove prototype. Compile only if
9054 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
9055 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
9056 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
9057 (ggc_min_heapsize_heuristic): Likewise.
9059 2010-05-26 Richard Guenther <rguenther@suse.de>
9061 PR rtl-optimization/44164
9062 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
9063 no-common access-path disambiguation.
9064 (indirect_ref_may_alias_decl_p): Adjust.
9065 (indirect_refs_may_alias_p): Likewise.
9066 (refs_may_alias_p_1): Likewise.
9068 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
9070 * c-typeck.c: Do not include expr.h.
9072 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
9074 * rtl.h (decl_default_tls_model): Move prototype from here...
9075 * output.h: ...to here.
9076 * c-decl.c: Do not include rtl.h.
9077 * c-pragma.c: Likewise.
9078 * c-parser.c: Likewise.
9079 * c-gimplify.c: Likewise. And also not hard-reg-set.
9080 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
9081 FIXME note for it. Add a FIXME note for expr.h.
9082 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
9083 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
9086 2010-05-26 Jakub Jelinek <jakub@redhat.com>
9089 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
9090 or total_size is larger than red zone size for non-V4 ABI, emit a
9091 stack_tie resp. frame_tie insn before stack pointer restore.
9092 * config/rs6000/rs6000.md (frame_tie): New insn.
9094 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
9096 * function.h (struct function): Add can_throw_non_call_exceptions bit.
9097 * lto-streamer-in.c (input_function): Stream it in.
9098 * lto-streamer-out.c (output_function): Stream it out.
9099 * function.c (allocate_struct_function): Set it.
9100 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
9101 for flag_non_call_exceptions.
9102 * cfgbuild.c (control_flow_insn_p): Likewise.
9103 (make_edges): Likewise.
9104 * cfgexpand.c (expand_stack_alignment): Likewise.
9105 * combine.c (distribute_notes): Likewise.
9106 * cse.c (cse_extended_basic_block): Likewise.
9107 * except.c (insn_could_throw_p): Likewise.
9108 * gcse.c (simple_mem): Likewise.
9109 * ipa-pure-const.c (check_call): Likewise.
9110 (check_stmt ): Likewise.
9111 * lower-subreg.c (lower-subreg.c): Likewise.
9112 * optabs.c (emit_libcall_block): Likewise.
9113 (prepare_cmp_insn): Likewise.
9114 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
9115 * postreload.c (rest_of_handle_postreload): Likewise.
9116 * reload1.c (reload_as_needed): Likewise.
9117 (emit_input_reload_insns): Likewise.
9118 (emit_output_reload_insns): Likewise.
9119 (fixup_abnormal_edges): Likewise.
9120 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
9121 * store-motion.c (find_moveable_store): Likewise.
9122 * tree-eh.c (stmt_could_throw_p): Likewise.
9123 (tree_could_throw_p): Likewise.
9124 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9125 * config/arm/arm.c (arm_expand_prologue): Likewise.
9126 (thumb1_expand_prologue): Likewise.
9127 * config/rx/rx.md (cbranchsf4): Likewise.
9129 * config/s390/s390.c (s390_emit_prologue): Likewise.
9130 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
9131 (inline_forbidden_into_p): New predicate.
9132 (expand_call_inline): Use it to forbid inlining.
9133 (tree_can_inline_p): Likewise.
9135 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
9137 * config/i386/i386-c.c: Do not include rtl.h.
9138 * config/i386/t-i386: Update dependencies.
9140 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
9142 * attribs.c: Do not include rtl.h.
9143 * Makefile.in: Update dependencies.
9145 2010-05-25 Anatoly Sokolov <aesok@post.ru>
9147 * double-int.h (double_int_and): New.
9148 * combine.c (try_combine): Clean up, use double_int_* and
9149 immed_double_int_const functions.
9151 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9153 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
9154 stderr to /dev/null instead of grep -q.
9155 * configure: Regenerate.
9157 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
9159 * Makefile.in (EXCEPT_H): Fix typo.
9161 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
9163 * ira-build.c (update_conflict_hard_reg_costs): New.
9164 (ira_build): Call update_conflict_hard_reg_costs.
9166 2010-05-25 Jakub Jelinek <jakub@redhat.com>
9169 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
9171 (intersect_loc_chains): Walk the s2var's loc_chain together
9172 with s1node chain as long as the locations are equal, don't
9173 call find_loc_in_1pdv in that case.
9176 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
9177 (copy_bind_expr): ... instead of here.
9178 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
9179 if the block hasn't been remapped.
9180 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
9181 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
9183 2010-05-25 Richard Guenther <rguenther@suse.de>
9186 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
9187 out-of-bounds array accesses.
9189 2010-05-25 Richard Guenther <rguenther@suse.de>
9191 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
9192 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
9193 (run_gcc): Re-organize to make cleanup easier.
9195 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9197 * config/s390/s390.c (optimization_options): Fix and move the
9198 flag_prefetch_loop_arrays override ...
9199 (override_options): ... here.
9201 2010-05-25 Joseph Myers <joseph@codesourcery.com>
9203 * diagnostic.c: Don't include plugin.h.
9204 (diagnostic_report_diagnostic): Don't handle plugins specially
9205 here. Pass context to internal_error callback.
9206 * diagnostic.h (struct diagnostic_context): Add context parameter
9207 to internal_error callback.
9208 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
9209 * plugin.h (struct diagnostic_context): Declare.
9210 (warn_if_plugins, plugins_internal_error_function): Declare.
9211 * toplev.c (general_init): Set global_dc->internal_error.
9212 * Makefile.in (diagnostic.o): Update dependencies.
9214 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
9216 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
9217 * config/rs6000/t-darwin64: New.
9218 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
9221 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
9224 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
9225 match the original (and intended) behaviour before r159557. This
9226 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
9229 2010-05-25 Richard Guenther <rguenther@suse.de>
9231 * doc/invoke.texi: Document -Ofast.
9232 * target.h (struct gcc_target): Add handle_ofast.
9233 * target-def.h (TARGET_HANDLE_OFAST): Add.
9234 (TARGET_INITIALIZER): Adjust.
9235 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
9236 * common.opt (Ofast): Add.
9238 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
9240 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
9241 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
9243 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
9246 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
9247 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
9248 false_rtx. Use false_rtx to compute the correct *ptest for reversed
9249 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
9251 2010-05-25 Jakub Jelinek <jakub@redhat.com>
9253 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
9254 DW_OP_minus with negated offset instead of DW_OP_plus.
9255 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
9257 2010-05-25 Wei Guozhi <carrot@google.com>
9259 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
9260 tst instruction and a new alternative.
9261 * config/arm/constraints.md (Pu): New constraint.
9263 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
9265 * function.c (assign_stack_local_1): Initialize variable
9266 to avoid warning when bootstrapping at -O3.
9268 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
9270 * configure.ac (all_lang_makefiles): Remove everything related to it.
9271 * configure: Regenerate.
9272 * Makefile.in: Fix reference to ada Make-lang.in.
9273 Remove support for LANG_MAKEFILES.
9275 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
9276 Sandra Loosemore <sandra@codesourcery.com>
9278 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
9279 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
9280 description. Add arm_neon_fp16_ok.
9281 (Add Options): Add arm_neon and arm_neon_fp16.
9283 2010-05-24 Joseph Myers <joseph@codesourcery.com>
9285 * diagnostic.c: Don't include flags.h.
9286 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
9287 context parameters. Check flags in the context passed as a parameter.
9288 (diagnostic_build_prefix): Add context parameter. Check
9289 show_column flag in context.
9290 (diagnostic_action_after_output): Check fatal_errors flag in context.
9291 (diagnostic_report_current_module): Check show_column flag in context.
9292 (default_diagnostic_starter): Update call to
9293 diagnostic_build_prefix.
9294 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
9295 (emit_diagnostic): Pass context to permissive_error_kind.
9296 (permerror): Pass context to permissive_error_kind.
9297 * diagnostic.h (struct diagnostic_context): Add show_column,
9298 pedantic_errors, permissive and fatal_errors fields.
9299 (diagnostic_build_prefix): Update prototype.
9301 * toplev.c (process_options): Set flags in global_dc from
9302 flag_show_column, flag_pedantic_errors, flag_permissive,
9304 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
9305 to diagnostic_build_prefix.
9306 * Makefile.in (diagnostic.o): Update dependencies.
9308 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
9310 * config/i386/ia32intrin.h (__crc32q): Define only if
9311 __SSE4_2__ is defined.
9313 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
9317 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
9318 DECL_VISIBILITY_SPECIFIED.
9319 (emutls_decl): Set DECL_PRESERVE_P and copy
9320 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
9321 (emutls_finalize_control_var): New callback.
9322 (emutls_finish): Finalize emutls control variables.
9323 * toplev.c (compile_file): Move the call to emutls_finish ()
9324 before varpool_assemble_pending_decls ().
9326 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
9328 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
9329 added to the preprocessor condition.
9331 2010-05-24 Paul Brook <paul@codesourcery.com>
9333 * gengtype-lex.l: Add HARD_REG_SET.
9334 * expr.c (expand_expr_real_1): Record writes to hard registers.
9335 * function.c (rtl_data): Add asm_clobbers.
9336 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
9337 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
9338 Use crtl->asm_clobbers.
9340 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9342 * doc/makefile.texi (Makefile): Mention stages 'profile'
9343 and 'feedback' for profiledbootstrap.
9345 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
9348 * config/i386/i386.c (def_builtin): Properly check
9349 OPTION_MASK_ISA_64BIT.
9351 2010-05-23 Joseph Myers <joseph@codesourcery.com>
9353 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
9354 typedefs with different but compatible types. Allow duplicate
9355 typedefs with the same type except for pedantic non-C1X, but give
9356 warning for variably modified types.
9357 * c-typeck.c (tagged_types_tu_compatible_p,
9358 function_types_compatible_p, type_lists_compatible_p,
9359 comptypes_internal): Add parameter different_types_p; set
9360 *different_types_p for different but compatible types. All
9362 (comptypes_check_different_types): New.
9363 * c-tree.h (comptypes_check_different_types): Declare.
9365 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
9367 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
9368 * jump.c: Include basic-block.h.
9369 * profile.c: Likewise.
9370 * tree-profile.c: Likewise.
9371 * coverage.c: Likewise.
9372 * basic-block.h (optimize_function_for_size_p): Move to function.h.
9373 (optimize_function_for_speed_p): Likewise.
9374 * function.h (optimize_function_for_size_p,
9375 optimize_function_for_speed_p): Moved here from basic-block.h.
9376 * Makefile.in: Update dependencies.
9378 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9380 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
9381 before calling make; allow override through $MAKE.
9382 * doc/invoke.texi (Optimize Options): Document override.
9384 2010-05-23 Anatoly Sokolov <aesok@post.ru>
9386 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
9387 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9388 (rs6000_mode_dependent_address_ptr): Make static.
9389 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9390 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
9393 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
9396 * config/i386/i386.c: Make sure that the correct regparm is passed.
9398 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
9400 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
9401 * sbitmap.c: ...to here to internalize sbitmap element access.
9402 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
9403 Explain why basic-block.h is included.
9404 * function.h: Include tm.h for CUMULATIVE_ARGS.
9405 * Makefile.in: Update dependencies.
9407 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
9409 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
9411 * sbitmap.h (struct sbitmap_def): Do not typedef here.
9412 * sbitmap.c: Include sbitmap.h.
9413 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
9414 hard-reg-set.h. Split everything related to regsets out from here...
9415 * regset.h: ...to here. New file.
9416 * df.h: Include regset.h and sbitmap.h.
9417 * tree-flow.h: Likewise.
9418 * cfgloop.h: Likewise.
9419 * except.h: Do not include sbitmap.h. Include hashtab.h.
9420 * cgraph.h: Include vec.h and function.h.
9421 * reload.h (struct insn_chain): Change types of live_throughout
9422 and dead_or_set from regset_head to bitmap_head.
9423 (compute_use_by_pseudos): Be defined also if regset.h is not included.
9424 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
9425 spilled_regs from regset_head to bitmap_head to avoid dependency
9427 * sel-sched-ir.h: Include regset.h.
9428 * reload.c: Include df.h before reload.h.
9429 * caller-save.c: Likewise.
9430 * reload1.c: Likewise.
9432 (mark_elimination): Update type of r to bitmap, consistent with
9434 * dominance.c: Include bitmap.h.
9435 * modulo-sched.c: Include df.h.
9436 * cfganal.c: Include bitmap.h and sbitmap.h.
9437 * cfgbuild.c: Include sbitmap.h.
9438 * lcm.c: Include sbitmap.h.
9439 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
9440 * domwalk.c: Include sbitmap.h, exclude ggc.h.
9441 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
9442 * cselib.c: Include bitmap.h.
9443 * tree-optimize.c: Include regset.h.
9444 * stmt.c: Include bitmap.h.
9445 * Makefile.in: Update dependencies.
9447 2010-05-22 Jan Hubicka <jh@suse.cz>
9449 * cgraph.h (struct varpool_node): Add same_comdat_group.
9450 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
9452 (output_varpool): Update call of lto_output_varpool_node.
9453 (input_varpool): Read same_comdat_group pointer.
9454 (input_varpool_1): Fixup same_comdat_group pointer.
9455 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
9456 group is needed, all are.
9457 * varpool.c (varpool_remove_node): Remove node from same comdat group
9459 (varpool_analyze_pending_decls): Walk same comdat groups.
9461 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
9463 * rtl.h (union rtunion_def): Remove rt_bit member.
9464 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
9465 * print-rtl (print_rtx): Do not print the member.
9466 * gengtype.c (adjust_field_rtx_def): Do not handle it.
9467 * gengenrtl.c (type_from_format): Likewise.
9468 (accessor_from_format): Likewise.
9470 2010-05-22 Joseph Myers <joseph@codesourcery.com>
9472 * dbgcnt.c: Include toplev.h instead of errors.h.
9473 * ira-emit.c: Don't include errors.h.
9474 * ira.c: Include toplev.h instead of errors.h.
9475 * lto-compress.c: Include toplev.h instead of errors.h.
9476 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
9477 ira.o, dbgcnt.o): Update dependencies.
9479 2010-05-22 Richard Guenther <rguenther@suse.de>
9481 * gimple.c (gimple_types_compatible_p): Check type qualifications
9482 before merging pointer to complete and pointer to incomplete type.
9483 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
9484 we use our own resolution algorithm. The gold linker plugin
9485 doesn't do the job we want it to do here.
9487 2010-05-22 Anatoly Sokolov <aesok@post.ru>
9489 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9490 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9491 (sparc_mode_dependent_address_p): New function.
9493 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
9495 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
9497 * timevar.c: Do not include any core headers.
9498 (timevar_print): De-i18n-ize.
9499 (print_time): Likewise.
9500 * timevar.h (timevar_push, timevar_pop): Make inline functions.
9502 2010-05-21 Joseph Myers <joseph@codesourcery.com>
9504 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
9506 (diagnostic_initialize): Initialize x_data not last_function.
9507 (diagnostic_report_current_function): Move to tree-diagnostic.c.
9508 (default_diagnostic_starter): Call
9509 diagnostic_report_current_module not
9510 diagnostic_report_current_function.
9511 (diagnostic_report_diagnostic): Initialize x_data not
9513 (verbatim): Likewise.
9514 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
9516 (struct diagnostic_context): Change last_function to x_data.
9517 (diagnostic_auxiliary_data): Replace with
9518 diagnostic_context_auxiliary_data and
9519 diagnostic_info_auxiliary_data.
9520 (diagnostic_last_function_changed, diagnostic_set_last_function,
9521 diagnostic_report_current_function): Move to tree-diagnostic.h.
9522 (print_declaration, dump_generic_node, print_generic_stmt,
9523 print_generic_stmt_indented, print_generic_expr,
9524 print_generic_decl, debug_c_tree, dump_omp_clauses,
9525 print_call_name, debug_generic_expr, debug_generic_stmt,
9526 debug_tree_chain, default_tree_printer): Move to
9527 tree-pretty-print.h.
9528 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
9529 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
9530 gimple-pretty-print.h.
9531 * pretty-print.c: Don't include tree.h
9532 (pp_base_format): Don't handle %K here.
9533 (pp_base_tree_identifier): Move to tree-pretty-print.c.
9534 * pretty-print.h (text_info): Change abstract_origin to x_data.
9535 (pp_tree_identifier, pp_unsupported_tree,
9536 pp_base_tree_identifier): Move to tree-pretty-print.h.
9537 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
9538 tree-pretty-print.h: New files.
9539 * tree-pretty-print.c: Include tree-pretty-print.h.
9540 (percent_K_format): New. Moved from pretty-print.c.
9541 (pp_base_tree_identifier): Move from pretty-print.c.
9542 * c-objc-common.c: Include tree-pretty-print.h.
9543 (c_tree_printer): Handle %K here.
9544 * langhooks.c: Include tree-diagnostic.h.
9545 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
9546 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
9547 (default_tree_printer): Handle %K using percent_K_format.
9548 (general_init): Use default_tree_diagnostic_starter.
9549 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
9550 (free_lang_data): Use default_tree_diagnostic_starter.
9551 * c-pretty-print.c: Include tree-pretty-print.h.
9552 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9553 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9554 * dwarf2out.c: Include tree-pretty-print.h.
9555 * except.c: Include tree-pretty-print.h.
9556 * gimple-pretty-print.c: Include tree-pretty-print.h and
9557 gimple-pretty-print.h.
9558 * gimplify.c: Include tree-pretty-print.h.
9559 * graphite-poly.c: Include tree-pretty-print.h and
9560 gimple-pretty-print.h.
9561 * ipa-cp.c: Include tree-pretty-print.h.
9562 * ipa-inline.c: Include gimple-pretty-print.h.
9563 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9564 * ipa-pure-const.c: Include gimple-pretty-print.h.
9565 * ipa-struct-reorg.c: Include tree-pretty-print.h and
9566 gimple-pretty-print.h.
9567 * ipa-type-escape.c: Include tree-pretty-print.h.
9568 * print-rtl.c: Include tree-pretty-print.h.
9569 * print-tree.c: Include gimple-pretty-print.h.
9570 * sese.c: Include tree-pretty-print.h.
9571 * tree-affine.c: Include tree-pretty-print.h.
9572 * tree-browser.c: Include tree-pretty-print.h.
9573 * tree-call-cdce.c: Include gimple-pretty-print.h.
9574 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9575 * tree-chrec.c: Include tree-pretty-print.h.
9576 * tree-data-ref.c: Include tree-pretty-print.h and
9577 gimple-pretty-print.h.
9578 * tree-dfa.c: Include tree-pretty-print.h.
9579 * tree-if-conv.c: Include tree-pretty-print.h and
9580 gimple-pretty-print.h.
9581 * tree-inline.c: Include tree-pretty-print.h.
9582 * tree-into-ssa.c: Include tree-pretty-print.h and
9583 gimple-pretty-print.h.
9584 * tree-nrv.c: Include tree-pretty-print.h.
9585 * tree-object-size.c: Include tree-pretty-print.h and
9586 gimple-pretty-print.h.
9587 * tree-outof-ssa.c: Include tree-pretty-print.h and
9588 gimple-pretty-print.h.
9589 * tree-parloops.c: Include tree-pretty-print.h and
9590 gimple-pretty-print.h.
9591 * tree-predcom.c: Include tree-pretty-print.h and
9592 gimple-pretty-print.h.
9593 * tree-scalar-evolution.c: Include tree-pretty-print.h and
9594 gimple-pretty-print.h.
9595 * tree-sra.c: Include tree-pretty-print.h.
9596 * tree-ssa-address.c: Include tree-pretty-print.h.
9597 * tree-ssa-alias.c: Include tree-pretty-print.h.
9598 * tree-ssa-ccp.c: Include tree-pretty-print.h and
9599 gimple-pretty-print.h.
9600 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
9601 * tree-ssa-copy.c: Include tree-pretty-print.h and
9602 gimple-pretty-print.h.
9603 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
9604 * tree-ssa-dce.c: Include tree-pretty-print.h and
9605 gimple-pretty-print.h.
9606 * tree-ssa-dom.c: Include tree-pretty-print.h and
9607 gimple-pretty-print.h.
9608 * tree-ssa-dse.c: Include gimple-pretty-print.h.
9609 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
9610 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
9611 * tree-ssa-live.c: Include tree-pretty-print.h and
9612 gimple-pretty-print.h.
9613 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
9614 gimple-pretty-print.h.
9615 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
9616 gimple-pretty-print.h.
9617 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
9618 gimple-pretty-print.h.
9619 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
9620 gimple-pretty-print.h.
9621 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
9622 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
9623 * tree-ssa-operands.c: Include tree-pretty-print.h and
9624 gimple-pretty-print.h.
9625 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
9626 gimple-pretty-print.h.
9627 * tree-ssa-pre.c: Include tree-pretty-print.h and
9628 gimple-pretty-print.h.
9629 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
9630 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
9631 gimple-pretty-print.h.
9632 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
9633 gimple-pretty-print.h.
9634 * tree-ssa-sink.c: Include gimple-pretty-print.h.
9635 * tree-ssa-ter.c: Include tree-pretty-print.h and
9636 gimple-pretty-print.h.
9637 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
9638 * tree-ssa.c: Include tree-pretty-print.h and
9639 gimple-pretty-print.h.
9640 * tree-stdarg.c: Include gimple-pretty-print.h.
9641 * tree-switch-conversion.c: Include gimple-pretty-print.h.
9642 * tree-tailcall.c: Include tree-pretty-print.h and
9643 gimple-pretty-print.h.
9644 * tree-vect-data-refs.c: Include tree-pretty-print.h and
9645 gimple-pretty-print.h.
9646 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
9647 gimple-pretty-print.h.
9648 * tree-vect-loop.c: Include tree-pretty-print.h and
9649 gimple-pretty-print.h.
9650 * tree-vect-patterns.c: Include gimple-pretty-print.h.
9651 * tree-vect-slp.c: Include tree-pretty-print.h and
9652 gimple-pretty-print.h.
9653 * tree-vect-stmts.c: Include tree-pretty-print.h and
9654 gimple-pretty-print.h.
9655 * tree-vectorizer.c: Include tree-pretty-print.h.
9656 * tree-vrp.c: Include tree-pretty-print.h and
9657 gimple-pretty-print.h.
9658 * value-prof.c: Include tree-pretty-print.h and
9659 gimple-pretty-print.h.
9660 * var-tracking.c: Include tree-pretty-print.h.
9661 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
9662 (tree-diagnostic.o): New dependencies.
9663 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
9664 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
9665 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
9666 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
9667 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
9668 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
9669 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
9670 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
9671 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
9672 tree-ssa-address.o, tree-ssa-loop-niter.o,
9673 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
9674 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
9675 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
9676 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
9677 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
9678 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
9679 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
9680 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
9681 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
9682 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
9683 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
9684 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
9685 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
9686 tree-switch-conversion.o, var-tracking.o, value-prof.o,
9687 cfgexpand.o, pretty-print.o): Update dependencies.
9689 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
9691 * tree-ssa-structalias.c: Remove tm_p.h from include.
9693 2010-05-21 Jeff Law <law@redhat.com>
9695 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
9697 2010-05-21 Jason Merrill <jason@redhat.com>
9699 * tree-eh.c (cleanup_is_dead_in): New.
9700 (lower_try_finally): Don't generate a dead cleanup region.
9701 (lower_cleanup): Likewise.
9703 2010-05-21 Jakub Jelinek <jakub@redhat.com>
9706 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
9707 unchain each use from the cyclic next_regno_use chain first.
9709 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
9711 * real: Do not include gmp.h, mpfr.h, and mpc.h.
9712 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
9713 (real_value_negate, real_value_abs): New prototypes.
9714 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
9715 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
9716 new include file for interface between MPFR and REAL_VALUE_TYPE.
9717 * real.c: Include realmpfr.h.
9718 (real_arithmetic2): Remove legacy function.
9719 (real_value_negate): New.
9720 (real_value_abs): New.
9721 (mfpr_from_real, real_from_mpfr): Move from here...
9722 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
9723 * builtins.c: Include realmpfr.h.
9724 * fold-const.c: Include realmpfr.h.
9725 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
9726 (fold_negate_const): Likewise.
9727 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
9728 * toplev.c: Include realmpfr.h.
9729 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
9730 and real_value_negate.
9731 * fixed-value.c (check_real_for_fixed_mode): Likewise.
9732 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
9733 (vfp3_const_double_index): Likewise.
9734 (arm_print_operand): Likewise.
9735 * Makefile.in: Update dependencies.
9737 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9739 * config/s390/s390.c (override_options): Increase the default
9740 of max-completely-peel-times.
9742 2010-05-21 Julian Brown <julian@codesourcery.com>
9743 Mark Mitchell <mark@codesourcery.com>
9745 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
9746 sibling calls for Thumb-1.
9747 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
9748 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
9750 (*call_insn, *call_value_insn): Don't use for Thumb-2.
9751 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
9753 (return): New expander.
9754 (*arm_return): New name for ARM return insn.
9755 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
9757 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
9759 * config.gcc (sparc64-*-rtems*): New target.
9761 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
9763 * tree.c (build_function_decl_skip_args): Fix grammar.
9764 (build_function_type_list_1): Fix typos, adjust formatting.
9766 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
9768 * tree.h: Include real.h and fixed-value.h as basic datatypes.
9769 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
9770 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
9771 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
9772 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
9773 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
9774 tree-pretty-print.c, tree-loop-distribution.c,
9775 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
9776 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
9777 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
9778 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
9779 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
9780 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
9781 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
9782 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
9783 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
9784 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
9785 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
9786 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
9787 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
9788 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
9789 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
9790 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
9791 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
9792 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
9793 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
9794 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
9795 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
9796 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
9797 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
9798 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
9799 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
9800 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
9801 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
9802 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
9803 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
9804 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
9805 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
9806 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
9807 config/score/score7.c, config/score/score.c, config/arm/arm.c,
9808 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
9809 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
9810 config/bfin/bfin.c: Clean up redundant includes.
9811 * Makefile.in: Update accordingly.
9813 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
9816 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
9817 statement has no arguments.
9819 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
9822 * varasm.c (emutls_decl): Merge attributes to new decl.
9824 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
9827 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
9828 around the uniquized constructor if its type requires a conversion.
9830 2010-05-21 Jakub Jelinek <jakub@redhat.com>
9833 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
9834 at -O0 goto_locus of any of the incoming edges differs from
9835 goto_locus of outgoing edge, or gimple_location of any of the
9838 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
9840 * ira.c (ira_non_ordered_class_hard_regs): Define.
9841 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
9842 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
9843 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
9844 cost of unaligned hard regs when allocating multi-reg pseudos.
9846 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
9848 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
9849 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
9850 for TARGET_NO_FLOAT.
9851 * config/mips/mips.c (mips_file_start): Expand conditional expression
9852 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
9853 (mips_override_options): Move -mno-float override -msoft-float and
9855 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
9856 Condition(TARGET_SUPPORTS_NO_FLOAT).
9857 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
9858 __mips_no_float here.
9859 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
9860 (TARGET_SUPPORTS_NO_FLOAT): Define.
9861 * config/mips/sdemtk.opt: Delete.
9863 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
9865 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
9867 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
9870 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
9871 * configure: Regenerate.
9872 * config.in: Regenerate.
9873 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
9874 instead of sahf only for 64bit targets.
9876 2010-05-20 Jakub Jelinek <jakub@redhat.com>
9879 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
9880 setup_ref_regs for DEBUG_INSNs.
9882 2010-05-20 Jan Hubicka <jh@suse.cz>
9885 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
9887 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
9890 * df-scan.c (df_ref_compare): Stabilize sort.
9892 2010-05-20 Jakub Jelinek <jakub@redhat.com>
9894 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
9895 argument. Don't use DW_OP_piece if offset is non-zero,
9896 put offset into second DW_OP_bit_piece argument.
9897 (dw_sra_loc_expr): Adjust callers. For memory expressions
9900 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
9903 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
9904 settings for 16-bit-constant "addo" alternative.
9906 2010-05-19 James E. Wilson <wilson@codesourcery.com>
9908 * config/mips/mips-dsp.md (add<DSPV:mode>3,
9909 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
9912 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
9913 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
9916 2010-05-19 Joseph Myers <joseph@codesourcery.com>
9918 * diagnostic.c (FLOAT, FFS): Don't undefine.
9919 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
9920 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
9923 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
9925 * combine.c (propagate_for_debug): Call make_compound_operation
9926 on the source value.
9927 (try_combine): When implementing a split chosen by find_split_point,
9928 either copy i2src or set it to null. Assert that i2src is not null
9929 before substituting into CALL_INSN_FUNCTION_USAGE.
9931 2010-05-19 Anatoly Sokolov <aesok@post.ru>
9933 * double-int.h (double_int_ior): New function.
9934 * tree.h (build_int_cst_wide_type): Remove.
9935 * tree.c (build_int_cst_wide_type): Remove.
9936 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
9937 of build_int_cst_wide_type.
9938 * stor-layout.c (set_sizetype): (Ditto.).
9939 * dojump.c (do_jump): Use build_int_cstu instead of
9940 build_int_cst_wide_type.
9942 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
9944 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
9945 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
9946 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
9947 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
9948 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
9949 propagate the 'data' argument to copy_tree_r.
9950 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
9951 Propagate 'data' argument to walk_tree.
9952 (copy_if_shared): New function.
9953 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
9954 (unmark_visited): New function.
9955 (unshare_body): Call copy_if_shared instead of doing it manually.
9956 (unvisit_body): Call unmark_visited instead of doing it manually.
9958 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
9960 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
9961 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
9962 * hooks.c: Likewise.
9963 * target-def.h (TARGET_FOLD_BUILTIN): Define to
9964 hook_tree_tree_int_treep_bool_null.
9965 * target.h (struct gcc_target): Update signature of fold_builtin
9967 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
9968 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
9969 instead of the call expression.
9970 (fold_builtin_call_array): Pass n and argarray directly.
9971 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
9973 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
9974 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
9975 `i' and use it in place of `arity'.
9976 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
9977 Dereference `args' directly.
9978 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
9980 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9982 * doc/sourcebuild.texi (Effective-Target Keywords): Document
9984 (Directives): Document optional dg-require-effective-target
9987 2010-05-19 Richard Guenther <rguenther@suse.de>
9990 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
9992 2010-05-19 Richard Guenther <rguenther@suse.de>
9994 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
9995 * common.opt (fwhopr=): New.
9996 * opts.c (common_handle_option): Handle OPT_fwhopr.
9997 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
9998 * collect2.c (main): Match -fwhopr*.
9999 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
10000 Execute ltrans stage in parallel when jobs is bigger than 1.
10002 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10004 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
10005 pentiumpro on Solaris 8/x86 with Sun as.
10006 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
10008 (gcc_cv_as_ix86_quad): Check for .quad directive.
10009 * configure: Regenerate.
10010 * config.in: Regenerate.
10011 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
10013 2010-05-19 Martin Jambor <mjambor@suse.cz>
10015 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
10016 also for indirect edges. Actual printing moved...
10017 (ipa_print_node_jump_functions_for_edge): ...here.
10018 (ipa_compute_jump_functions): Renamed to
10019 ipa_compute_jump_functions_for_edge and made static.
10020 (ipa_compute_jump_functions): New function.
10021 (make_edge_direct_to_target): Check if the number of arguments on
10022 the newly direct edge is the same as the number of parametrs of
10024 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
10025 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
10026 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
10027 analysis functions unconditionally, call the new
10028 ipa_analyze_params_uses on the node instead of every edge.
10030 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
10032 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
10034 (dump_mem_ref): Adopt debug code to handle a tree as step. This
10035 also checks for a constant int vs. non-constant but
10036 loop-invariant steps.
10037 (find_or_create_group): Change the sort algorithm to only consider
10038 steps that are constant ints.
10039 (idx_analyze_ref): Adopt code to handle a tree instead of a
10040 HOST_WIDE_INT for step.
10041 (gather_memory_references_ref): Handle tree instead of int and be
10042 prepared to see a NULL_TREE.
10043 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
10044 prefetches if the step cannot be calculated at compile time.
10045 (issue_prefetch_ref): Issue prefetches for non-constant but
10046 loop-invariant steps.
10048 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
10051 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
10053 * tree.h (build_call_list): Remove.
10054 * tree.c (build_call_list): Remove.
10056 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
10058 * tree.h (build_call_list): Remove.
10059 * tree.c (build_call_list): Remove.
10061 2010-05-18 Jan Hubicka <jh@suse.cz>
10063 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
10065 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
10067 PR rtl-optimization/43332
10068 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
10070 2010-05-18 Anatoly Sokolov <aesok@post.ru>
10072 * tree.h (build_int_cstu): Implement as static inline.
10073 * tree.c (build_int_cstu): Remove function.
10074 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
10077 2010-05-18 Richard Guenther <rguenther@suse.de>
10080 * lto-wrapper.c (verbose): New variable. Initialize from -v.
10081 (debug): Initialize from -save-temps.
10082 (collect_execute): Print command-line when verbose.
10083 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
10084 for ltrans invocation. Produce -dumpbase flag again.
10085 (process_args): Remove.
10087 * collect2.c (maybe_run_lto_and_relink): Only pass object
10088 files to lto-wrapper.
10089 * gcc.c (LINK_COMMAND_SPEC): Likewise.
10091 2010-05-18 Jan Hubicka <jh@suse.cz>
10093 * opts.c (decode_options): Do not disable whopr at ipa_cp.
10094 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
10096 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
10099 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
10101 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
10104 2010-05-18 Jakub Jelinek <jakub@redhat.com>
10107 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
10108 rtx_equal_p inline.
10110 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
10112 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
10113 lto-macho as lto_binary_reader.
10115 * darwin.c (darwin_asm_named_section): Do not add assembler comment
10116 after .section directive; just print it before the directive instead.
10118 2010-05-17 Jan Hubicka <jh@suse.cz>
10120 * cgraph.c (cgraph_create_virtual_clone): Only check
10121 versionable_function_p when not in wpa and checking is enabled.
10122 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
10123 there are no more functions to materialize.
10125 2010-05-17 Jan Hubicka <jh@suse.cz>
10127 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
10128 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
10130 (output_cgraph): Call output_cgraph_opt_summary.
10131 (input_cgrpah): Call input_cgraph_opt_summary.
10132 (output_cgraph_opt_summary_p, output_node_opt_summary,
10133 input_node_opt_summary, input_cgraph_opt_section): New functions.
10134 * lto-section-in.c (lto_section_name): Add cgraphopt.
10135 * tree-inline.c (tree_function_versioning): Handle parm_num.
10136 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
10137 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
10139 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
10141 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
10142 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
10143 the insn to prefetch ratio heuristic to loops with known trip count.
10145 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
10147 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
10148 (schedule_prefetches): Do not generate a prefetch if the unroll factor
10149 is far from what is required by the prefetch.
10151 2010-05-17 Jan Hubicka <jh@suse.cz>
10153 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
10154 (ipcp_estimate_growth): Likewise.
10155 (ipcp_const_param_count): Likewise.
10156 (ipcp_insert_stage): Likewise.
10157 * ipa-prop.c (visit_load_for_mod_analysis): New function.
10158 (visit_store_addr_for_mod_analysis): Set used flag.
10159 (ipa_detect_param_modifications): Set used flag for SSE params;
10160 update use of walk_stmt_load_store_addr_ops.
10161 (ipa_print_node_params): Print used flag.
10162 (ipa_write_node_info): Stream used flag.
10163 (ipa_read_node_info): Likewise.
10164 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
10165 (ipa_is_param_used): New function.
10166 (lto_ipa_fixup_call_notes): Remove unused declaration.
10168 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10171 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
10172 * configure: Regenerate.
10173 * config.in: Regenerate.
10174 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
10175 !HAVE_AS_IX86_REP_LOCK_PREFIX.
10176 Don't emit whitespace.
10177 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
10178 (*rep_movsi): Likewise.
10179 (*rep_movsi_rex64): Likewise.
10180 (*rep_movqi): Likewise.
10181 (*rep_movqi_rex64): Likewise.
10182 (*rep_stosdi_rex64): Likewise.
10183 (*rep_stossi): Likewise.
10184 (*rep_stossi_rex64): Likewise.
10185 (*rep_stosqi): Likewise.
10186 (*rep_stosqi_rex64): Likewise.
10187 (*cmpstrnqi_nz_1): Use {%;} after repz.
10188 (*cmpstrnqi_nz_rex_1): Likewise.
10189 (*cmpstrnqi_1): Likewise.
10190 (*cmpstrnqi_rex_1): Likewise.
10191 (*strlenqi_1): Use {%;} after repnz.
10192 (*strlenqi_rex_1): Likewise.
10193 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
10194 (*sync_compare_and_swap<mode>): Likewise.
10195 (sync_double_compare_and_swap<mode>): Likewise.
10196 (*sync_double_compare_and_swapdi_pic): Likewise.
10197 (sync_old_add<mode>): Likewise.
10198 (sync_add<mode>): Likewise.
10199 (sync_sub<mode>): Likewise.
10200 (sync_<code><mode>): Likewise.
10202 2010-05-17 Martin Jambor <mjambor@suse.cz>
10204 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
10205 otr_token and polymorphic.
10206 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
10207 (cgraph_clone_edge): Copy the above fields.
10208 * tree.c (get_binfo_at_offset): New function.
10209 * tree.h (get_binfo_at_offset): Declare.
10210 * ipa-prop.h (enum jump_func_type): Added known_type jump function
10211 type, reordered items, updated comments.
10212 (union jump_func_value): Added base_type field, reordered fields.
10213 (enum ipa_lattice_type): Moved down in the file.
10214 (struct ipa_param_descriptor): New field polymorphic.
10215 (ipa_is_param_polymorphic): New function.
10216 * ipa-prop.c: Include gimple.h and gimple-fold.h.
10217 (ipa_print_node_jump_functions): Print known type jump functions.
10218 (compute_complex_pass_through): Renamed to...
10219 (compute_complex_assign_jump_func): this.
10220 (compute_complex_ancestor_jump_func): New function.
10221 (compute_known_type_jump_func): Likewise.
10222 (compute_scalar_jump_functions): Create known type and complex ancestor
10224 (ipa_note_param_call): New parameter polymorphic, set the corresponding
10225 flag in the call note accordingly.
10226 (ipa_analyze_call_uses): Renamed to...
10227 (ipa_analyze_indirect_call_uses): this. New parameter target, define
10228 variable var only in the block where it is used.
10229 (ipa_analyze_virtual_call_uses): New function.
10230 (ipa_analyze_call_uses): Likewise.
10231 (combine_known_type_and_ancestor_jfs): Likewise.
10232 (update_jump_functions_after_inlining): Implemented handling of a
10233 number of new jump function types combination.
10234 (print_edge_addition_message): Removed.
10235 (make_edge_direct_to_target): New function.
10236 (try_make_edge_direct_simple_call): Likewise.
10237 (try_make_edge_direct_virtual_call): Likewise.
10238 (update_call_notes_after_inlining): Renamed to...
10239 (update_indirect_edges_after_inlining): this. Moved edge creation for
10240 indirect calls to try_make_edge_direct_simple_call, also calls
10241 try_make_edge_direct_virtual_call for virtual calls.
10242 (ipa_print_node_params): Changed the header message.
10243 (ipa_write_jump_function): Stream also known type jump functions.
10244 (ipa_read_jump_function): Likewise.
10245 (ipa_write_indirect_edge_info): Stream new fields in
10246 cgraph_indirect_call_info.
10247 (ipa_read_indirect_edge_info): Likewise.
10248 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
10251 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10253 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
10255 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
10257 * tree.h (CALL_EXPR_ARGS): Delete.
10258 (call_expr_arglist): Delete.
10259 * tree.c (call_expr_arglist): Delete.
10260 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
10261 targetm.fold_builtin.
10262 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
10263 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
10264 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
10265 arglist parameter. Use CALL_EXPR_ARG.
10266 (picochip_expand_builtin_3op): Likewise.
10267 (picochip_expand_builtin_2opvoid): Likewise.
10268 (picochip_expand_array_get): Likewise.
10269 (picochip_expand_array_put): Likewise.
10270 (picochip_expand_array_testport): Likewise.
10271 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
10272 rather than arglist.
10273 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
10275 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
10276 than TREE_VALUE and TREE_CHAIN.
10277 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
10278 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
10281 2010-05-17 Jakub Jelinek <jakub@redhat.com>
10284 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
10285 to have no fallthru edge.
10287 PR middle-end/44102
10288 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
10289 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
10290 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
10291 add BARRIER after previous bb if needed.
10293 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
10295 * tree.c (build_function_type_list_1): Remove bogus assert condition.
10297 2010-05-17 Alan Modra <amodra@gmail.com>
10299 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
10300 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
10301 with copy_reg rtx param.
10302 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
10303 Correct cases where code for ABI_V4 did not initialise the reg
10304 used to access frame. Also leave frame_reg_rtx as sp for large
10305 frames that save no regs.
10307 2010-05-17 Martin Jambor <mjambor@suse.cz>
10309 PR middle-end/44133
10310 * tree-sra.c (create_access_replacement): New parameter rename, mark
10311 the replaement for renaming only when it is true.
10312 (get_access_replacement): Pass true in the rename parameter of
10313 create_access_replacement.
10314 (get_unrenamed_access_replacement): New function.
10315 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
10316 replacement declaration from it.
10318 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
10320 * function.c (try_fit_stack_local, add_frame_space): New static
10322 (assign_stack_local_1): Use them. Look for opportunities to use
10323 space previously wasted on alignment.
10324 * function.h (struct frame_space): New.
10325 (struct rtl_data): Add FRAME_SPACE_LIST member.
10326 * reload1.c (something_was_spilled): New static variable.
10327 (alter_reg): Set it.
10328 (reload): Test it in addition to testing if the frame size changed.
10330 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
10332 * config/s390/s390.c: Define sane prefetch settings and activate
10333 flag_prefetch_loop_arrays on -O3.
10334 * config/s390/s390.h: Declare that read can use write prefetch.
10336 2010-05-17 Jakub Jelinek <jakub@redhat.com>
10338 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
10341 2010-05-16 Jan Hubicka <jh@suse.cz>
10343 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
10344 function body; do not check stdarg field of struct function.
10346 2010-05-16 Jan Hubicka <jh@suse.cz>
10348 * cgraph.c (dump_cgraph_node): Dump versionable flag.
10349 * cgraph.h (cgraph_local_info): Add versionable flag.
10350 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
10351 (ipcp_versionable_function_p): Use it.
10352 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
10355 2010-05-16 Jan Hubicka <jh@suse.cz>
10357 * cgraph.c (cgraph_clone_node): Take decl argument and insert
10358 clone into hash when it is different from orig.
10359 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
10360 * cgraph.h (cgraph_clone_node): Update prototype.
10361 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
10362 (lto_cgraph_encoder_delete): Delete body map.
10363 (lto_cgraph_encoder_size): Move to header.
10364 (lto_cgraph_encoder_encode_body_p,
10365 lto_set_cgraph_encoder_encode_body): New.
10366 (lto_output_node): Do not take written_decls argument; output clone_of
10368 (add_node_to): Add include_body_argument; call
10369 lto_set_cgraph_encoder_encode_body on master of the clone.
10370 (add_references): Update use of add_node_to.
10371 (compute_ltrans_boundary): Likewise.
10372 (output_cgraph): Do not create written_decls bitmap.
10373 (input_node): Take nodes argument; stream in clone_of correctly.
10374 (input_cgraph_1): Update use of input_node.
10375 * lto-streamer-out.c (lto_output): Use encoder info to decide
10376 what bodies to output.
10377 * ipa-inline.c (cgraph_clone_inlined_nodes,
10378 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
10379 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
10380 (lto_cgraph_encoder_size): Define here.
10381 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
10384 2010-05-16 Richard Guenther <rguenther@suse.de>
10386 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
10388 * ipa-type-escape.c (gate_type_escape_vars): Run when
10389 -fipa-struct-reorg runs.
10390 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
10391 * common.opt (fipa-type-escape): Remove.
10393 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
10395 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
10396 (decode_options): Likewise.
10397 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
10399 2010-05-16 Jan Hubicka <jh@suse.cz>
10401 * ipa.c (function_and_variable_visibility): Also bring local all
10404 2010-05-16 Richard Guenther <rguenther@suse.de>
10406 * alias.c (nonoverlapping_memrefs_p): Remove use of
10407 IPA type-escape information.
10409 2010-05-16 Joseph Myers <joseph@codesourcery.com>
10411 * c-common.c (c_common_reswords): Add _Static_assert for C.
10412 * c-parser.c (c_token_starts_declaration,
10413 c_parser_next_token_starts_declaration,
10414 c_parser_static_assert_declaration_no_semi,
10415 c_parser_static_assert_declaration): New.
10416 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
10417 Handle static assertions if static_assert_ok.
10418 (c_parser_external_declaration, c_parser_declaration_or_fndef,
10419 c_parser_compound_statement_nostart, c_parser_label,
10420 c_parser_for_statement, c_parser_objc_methodprotolist,
10421 c_parser_omp_for_loop): All callers of
10422 c_parser_declaration_or_fndef changed.
10423 (c_parser_struct_declaration): Handle static assertions.
10424 (c_parser_compound_statement_nostart): Use
10425 c_parser_next_token_starts_declaration and
10426 c_token_starts_declaration to detect start of declarations.
10427 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
10430 2010-05-16 Anatoly Sokolov <aesok@post.ru>
10432 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10433 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10434 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10435 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10436 (mmix_function_outgoing_value): Rename to...
10437 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
10438 (mmix_function_value_regno_p): Make static.
10439 (mmix_libcall_value): New function.
10440 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
10441 mmix_function_value_regno_p): Remove declaration.
10443 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
10445 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
10446 BUILT_IN_ALLOCA if stack checking is enabled.
10448 2010-05-16 Richard Guenther <rguenther@suse.de>
10450 * var-tracking.c (vars_copy_1): Inline ...
10451 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
10452 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
10453 (variable_merge_over_cur): Adjust. Merge asserts.
10454 (variable_merge_over_src): Likewise.
10455 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
10456 (variable_post_merge_new_vals): Merge asserts.
10457 (variable_post_merge_perm_vals): Likewise.
10458 (find_mem_expr_in_1pdv): Likewise.
10459 (dataflow_set_different_value): Remove.
10460 (onepart_variable_different_p): Merge asserts.
10461 (variable_different_p): Likewise.
10462 (dataflow_set_different_1): Inline ...
10463 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
10464 (emit_notes_for_differences_1): Merge asserts.
10466 2010-05-16 Richard Guenther <rguenther@suse.de>
10468 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
10469 * optabs.c (libfunc_decl_hash): Likewise.
10470 * varasm.c (emutls_decl): Likewise.
10472 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
10474 * c-decl.c: Don't include gimple.h.
10475 (merge_decls): Do not copy gimple_body.
10477 2010-05-15 Jason Merrill <jason@redhat.com>
10479 * c.opt: Add -fnothrow-opt.
10481 2010-05-15 Jan Hubicka <jh@suse.cz>
10483 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
10485 * passes.c (ipa_write_summaries): Write all analyzed nodes.
10487 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
10489 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
10490 * Makefile.in: Add it.
10491 Fix all other Makefile dependencies for changes below.
10492 * tree.h: Include it instead of defining VEC primitives here.
10493 * gimple.h: Likewise.
10495 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
10496 * except.h: Include vecir.h, break dependence on tree.h.
10498 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
10500 * tree-iterator.c: ...to here.
10501 * tree-iterator.h: Fix file introduction comment. Add extern markers.
10503 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
10505 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
10506 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
10507 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
10508 tree-mudflap.h, and target.h.
10509 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
10510 predict.h, tree-inline.h, gimple.h, and langhooks.h.
10511 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
10512 Add FIXME for why gimple.h is still included (should be unnecessary
10513 since GCC 4.5 gimplification unit-at-a-time).
10514 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
10515 * c-pragma.c: Add FIXME for why function.h needs to be included just
10516 for cfun, at front-end level.
10517 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
10518 Do not include ggc.h, but include vecprim.h for VEC(char).
10519 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
10520 Explain why target.h is included.
10521 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
10522 Explain why gimple.h is included.
10523 * c-ppoutput.c: Do not include tm.h.
10524 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
10525 * c-parses.c: Explain why rtl.h is included, and that this (and only
10526 this) is also why tm.h must be included.
10527 Do not include except.h.
10528 * c-lang.c: Do not include ggc.h.
10530 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
10532 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
10534 2010-05-15 Joseph Myers <joseph@codesourcery.com>
10536 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
10537 unions by default if those structs and unions have no tags. Do
10538 not condition anonymous struct and unions handling on flag_iso.
10539 Allow anonymous structs and unions for C1X.
10540 (finish_struct): Do not diagnose lack of named fields when
10541 anonymous structs and unions present for C1X. Accept flexible
10542 array members in structure with anonymous structs or unions but no
10543 directly named fields.
10544 * doc/extend.texi (Unnamed Fields): Update.
10546 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
10548 * gimple.h (compare_field_offset): Rename into...
10549 (gimple_compare_field_offset): ...this.
10550 * gimple.c (compare_field_offset): Rename into...
10551 (gimple_compare_field_offset): ...this. Compare the full access if
10552 the offset is self-referential.
10553 (gimple_types_compatible_p): Adjust for above renaming.
10554 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
10555 DECL_NONADDRESSABLE_P flag of fields before merging them.
10557 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
10559 * tree.h (ctor_to_list): Delete.
10560 * tree.c (ctor_to_list): Delete.
10562 2010-05-15 Jan Hubicka <jh@suse.cz>
10564 * ipa-reference.c: Include toplev.h
10565 (is_proper_for_analysis): Only add to all_module_statics
10566 if it is allocated.
10567 (write_node_summary_p, stream_out_bitmap,
10568 ipa_reference_write_optimization_summary,
10569 ipa_reference_read_optimization_summary): New.
10570 (struct ipa_opt_pass_d pass_ipa_reference): Add
10571 optimization summary streaming.
10572 * lto-cgraph.c (referenced_from_this_partition_p,
10573 reachable_from_this_partition_p): New functions.
10574 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10575 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
10576 * opts.c (decode_options): Enable ipa_reference.
10577 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
10578 * lto-streamer.h (referenced_from_this_partition_p,
10579 reachable_from_this_partition_p): Declare.
10581 2010-05-15 Richard Guenther <rguenther@suse.de>
10583 PR tree-optimization/44038
10584 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
10585 taking the address of a V_C_E of a constant.
10587 2010-05-14 Jan Hubicka <jh@suse.cz>
10589 * tree.h (memory_identifier_string): Remove.
10590 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
10591 (ipa_reference_global_vars_info_d): Remove statics_not_read and
10592 statics_not_written.
10593 (ipa_reference_optimization_summary_d): New structure.
10594 (ipa_reference_optimization_summary_t): New type and vector.
10595 (ipa_reference_vars_info_d): Embedd structures instead of using
10597 (reference_vars_to_consider): Remove out of GGC space.
10598 (module_statics_escape): Remove.
10599 (global_info_obstack): Rename to ...
10600 (optimization_summary_obstack): ... this one.
10601 (initialization_status_t): Remove.
10602 (memory_identifier_string): Remove.
10603 (get_reference_vars_info): Fix indenting.
10604 (set_reference_vars_info): Likewise.
10605 (get_reference_optimization_summary): New.
10606 (set_reference_optimization_summary): New.
10607 (get_global_reference_vars_info): Remove.
10608 (ipa_reference_get_read_global): Remove.
10609 (ipa_reference_get_written_global): Remove.
10610 (ipa_reference_get_not_read_global): Update.
10611 (ipa_reference_get_not_written_global): Update.
10612 (is_proper_for_analysis): Outlaw addressable.
10613 (propagate_bits): Update for new datastructures.
10614 (analyze_variable): Remove.
10615 (init_function_info): Update for new datastructures.
10616 (clean_function_local_data): Remove.
10617 (clean_function): Remove.
10618 (copy_global_bitmap): Use optimizations_summary_obstack.
10619 (duplicate_node_data): Duplicate optimization summary only.
10620 (remove_node_data): Remove optimization summary only.
10621 (generate_summary): Do not analyze variables; do not compute
10622 module_statics_escape; do not prune solutions by it.
10623 (read_write_all_from_decl): Fix typos in comments.
10624 (propagate): Doscover readonly and nonaddressable first;
10625 update for new datastructures; share global bitmaps.
10626 * ipa-reference.h (ipa_reference_get_read_global,
10627 ipa_reference_get_written_global): Remove.
10628 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
10629 * Makefile.in: Remove ipa-refereference from GT files.
10631 2010-05-14 Jakub Jelinek <jakub@redhat.com>
10634 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
10635 for all SYMBOL_REF_DECLs.
10637 2010-05-14 Jan Hubicka <jh@suse.cz>
10639 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
10640 (varpool_all_refs_explicit_p): New inline function.
10641 * ipa-reference.c: Update comment.
10642 (module_statics_written): Remove.
10643 (get_static_decl): Remove.
10644 (ipa_init): Do not initialize module_statics_written.
10645 (analyze_function): Likewise.
10646 (generate_summary): Likewise; do not compute module_statics_readonly
10647 and do not update variable flags.
10648 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
10649 * ipa.c: Inlucde flags.h
10650 (cgraph_local_node_p): New.
10651 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
10652 promote functions to local.
10653 (ipa_discover_readonly_nonaddressable_vars): New function.
10654 (function_and_variable_visibility): Use cgraph_local_node_p.
10655 * varpool.c (varpool_finalize_decl): Set force_output for
10656 DECL_PRESERVE_P vars.
10658 2010-05-14 Jan Hubicka <jh@suse.cz>
10660 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
10662 2010-05-14 Richard Guenther <rguenther@suse.de>
10664 PR tree-optimization/44119
10665 * tree-ssa-pre.c (eliminate): Properly mark replacement of
10666 a PHI node necessary.
10668 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
10670 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
10672 2010-05-14 Jason Merrill <jason@redhat.com>
10675 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
10676 (gimple_call_set_nothrow): New.
10677 * gimple.c (gimple_build_call_from_tree): Call it.
10678 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
10681 * gimplify.c (gimplify_seq_add_stmt): No longer static.
10682 * gimple.h: Declare it.
10683 * gimple.c (gimple_build_eh_filter): No ops.
10685 2010-05-14 Jan Hubicka <jh@suse.cz>
10687 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
10688 nodes already in queue.
10689 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
10690 re-enqueueing node.
10692 2010-05-14 Jakub Jelinek <jakub@redhat.com>
10695 * cfgexpand.c (expand_debug_expr): If non-memory op0
10696 has BLKmode, return NULL.
10698 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
10700 * config.gcc: Add support for --with-cpu option for bdver1.
10701 * config/i386/i386.h (TARGET_BDVER1): New macro.
10702 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
10703 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
10704 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
10705 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
10706 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
10707 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
10708 (processor_type): Add PROCESSOR_BDVER1.
10709 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
10710 processor_type in config/i386/i386.h.
10711 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
10712 movaps <reg, reg> instead of movapd <reg, reg> when replacing
10713 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
10714 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
10715 to emit packed xor instead of packed double/packed integer
10716 xor for SSE and AVX when moving a zero value.
10717 * config/i386/sse.md: Add check for
10718 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
10719 movapd/movdqa for SSE and AVX.
10720 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
10721 single logical operations i.e and, or and xor instead of packed double
10722 logical operations for SSE and AVX.
10723 * config/i386/i386-c.c (ix86_target_macros_internal):
10724 Add PROCESSOR_BDVER1.
10725 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
10726 (has_fma4, has_xop): New.
10727 * config/i386/i386.c (bdver1_cost): New variable.
10728 (m_BDVER1): New macro.
10729 (m_AMD_MULTIPLE): Add m_BDVER1.
10730 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
10731 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
10732 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
10733 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
10734 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
10735 x86_tune_sse_partial_reg_dependency,
10736 x86_tune_sse_unaligned_load_optimal,
10737 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
10738 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
10739 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
10740 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
10741 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
10742 Enable/disable for bdver1.
10743 (processor_target_table): Add bdver1_cost.
10744 (cpu_names): Add bdver1.
10745 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
10746 processor_alias_table.
10747 (ix86_expand_vector_move_misalign): Change.
10748 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
10749 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
10750 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
10751 of movupd/movdqu for SSE and AVX.
10752 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
10753 (ix86_tune_adjust_cost): Add code for bdver1.
10754 (standard_sse_constant_opcode): Add check for
10755 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
10756 of packed double xor for SSE and AVX.
10758 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
10760 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
10761 result to unsigned.
10763 2010-05-14 Tristan Gingold <gingold@adacore.com>
10765 * toplev.c (default_debug_hooks): Remove this variable.
10766 (process_options): Remove assignments to default_debug_hooks.
10768 2010-05-14 Martin Jambor <mjambor@suse.cz>
10770 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
10771 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
10772 * langhooks.h (struct lang_hooks_for_decls): Removed field
10774 * tree.c (free_lang_data): Remove assignment to
10775 lang_hooks.fold_obj_type_ref.
10776 * tree.def (OBJ_TYPE_REF): Update comment.
10778 2010-05-14 Richard Guenther <rguenther@suse.de>
10780 PR tree-optimization/44124
10781 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
10783 2010-05-14 Alan Modra <amodra@gmail.com>
10786 * config/rs6000/rs6000.c (struct machine_function): Reorder
10787 fields for better packing. Add lr_save_state.
10788 (rs6000_ra_ever_killed): Return lr_save_state if set.
10789 (rs6000_emit_eh_reg_restore): Set lr_save_state.
10791 2010-05-13 Jan Hubicka <jh@suse.cz>
10793 * varpool.c (decide_is_variable_needed): Drop code checking
10794 TREE_SYMBOL_REFERENCED.
10796 2010-05-13 Jan Hubicka <jh@suse.cz>
10798 * final.c (output_addr_const): Do not call mark_decl_referenced.
10799 * cgraphunit.c (process_function_and_variable_attributes): Use
10800 mark_needed_node dirrectly.
10801 (assemble_thunk): Do not call mark_decl_referenced.
10803 2010-05-13 Anatoly Sokolov <aesok@post.ru>
10805 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
10807 2010-05-13 Jeff Law <law@redhat.com>
10809 * ira-conflicts.c (print_allocno_conflicts): New function broken out
10811 (print_conflicts): Call print_allocno_conflicts.
10813 2010-05-13 Jakub Jelinek <jakub@redhat.com>
10816 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
10819 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
10821 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
10822 t-mingw-w64 or t-mingw-w32 for multilib configuration.
10823 * config/i386/t-mingw-w32: New.
10824 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
10826 2010-05-13 Martin Jambor <mjambor@suse.cz>
10828 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
10830 * gimple-fold.c (get_base_binfo_for_type): New function.
10831 (gimple_get_relevant_ref_binfo): Likewise.
10832 (gimple_fold_obj_type_ref_known_binfo): Likewise.
10833 (gimple_fold_obj_type_ref): Likewise.
10834 (fold_gimple_call): Simplify condition for folding virtual calls
10835 and call gimple_fold_obj_type_ref.
10836 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
10837 (gimple_fold_obj_type_ref_known_binfo): Likewise.
10839 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
10841 * config/rs6000/rs6000-protos.h
10842 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
10843 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
10844 (rs6000_debug_mode_dependent_address)
10845 (rs6000_mode_dependent_address_ptr): Likewise.
10847 2010-05-13 Jakub Jelinek <jakub@redhat.com>
10850 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
10852 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
10853 * tree-sra.c (create_access_replacement): Call unshare_expr before
10854 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
10855 * dwarf2out.c: Include tree-flow.h.
10856 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
10857 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
10858 Handle DW_OP_bit_piece.
10859 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
10860 construct_piece_list, adjust_piece_list): New functions.
10861 (add_var_loc_to_decl): Handle SRA optimized variables.
10862 Adjust for var_loc_note to loc field renaming.
10863 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
10864 in VAR_LOCATION note.
10865 (new_loc_descr_op_bit_piece): New function.
10866 (dw_sra_loc_expr): New function.
10867 (dw_loc_list): Use it. Don't handle the last range after the
10868 loop, handle it inside of the loop. Adjust for var_loc_note
10869 to loc field renaming.
10870 (add_location_or_const_value_attribute): Only special case
10871 single entry loc lists if loc is NOTE_P. Adjust for
10872 var_loc_note to loc field renaming.
10873 (dwarf2out_var_location): Don't set newloc->var_loc_note
10874 and newloc->next here.
10876 2010-05-12 Jan Hubicka <jh@suse.cz>
10878 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
10880 * cgraph.h (cgraph_only_called_directly_p,
10881 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
10882 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
10883 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
10885 * ipa.c (cgraph_remove_unreachable_nodes): Use
10886 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
10888 * tree-inline.c (copy_bb): Check address_taken flag.
10889 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
10890 externally_visible flag.
10892 2010-05-12 Jason Merrill <jason@redhat.com>
10896 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
10897 * sdbout.c (plain_type_1): Likewise.
10898 * dwarf2out.c (is_base_type): Likewise.
10899 (gen_type_die_with_usage): Likewise. Generate
10900 DW_TAG_unspecified_type for any LANG_TYPE.
10902 2010-05-12 Jan Hubicka <jh@suse.cz>
10904 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
10906 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
10907 (cgraph_clone_edge): Update.
10908 (cgraph_node_remove_callees): Remove indirect calls too.
10909 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
10910 (cgraph_create_indirect_edge): Update prototype.
10911 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
10912 is_proper_for_analysis.
10913 (add_new_function, visited_nodes, function_insertion_hook_holder,
10914 get_local_reference_vars_info, mark_address_taken, mark_address,
10915 mark_load, mark_store, check_asm_memory_clobber, check_call,
10916 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
10917 (ipa_init): Do not initialize visited_nodes;
10918 function_insertion_hook_holder.
10919 (analyze_variable): Rewrite.
10920 (analyze_function): Rewrite.
10921 (copy_local_bitmap): Remove.
10922 (duplicate_node_dat): Do not duplicate local info.
10923 (generate_summary): Simplify to only walk cgraph.
10924 (write_node_summary_p, ipa_reference_write_summary,
10925 ipa_reference_read_summary): Remove.
10926 (propagate): Do not remove function insertion;
10928 (pass_ipa_reference): NULLify summary handling fields.
10929 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
10930 (input_edge): Input ecf_flags.
10931 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
10932 (update_indirect_edges_after_inlining): Ignore edges with unknown
10935 2010-05-12 Sriraman Tallam <tmsriram@google.com>
10937 * implicit-zee.c: New file.
10938 * tree-pass.h (pass_implicit_zee): Declare.
10939 * passes.c (init_optimization_passes): Add zee pass.
10940 * common.opt (fzee): New flag.
10941 * timevar.def (TV_ZEE): Define.
10942 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
10944 * Makefile.in (implicit-zee.o): Add new build file.
10946 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
10947 Nathan Froyd <froydnj@codesourcery.com>
10949 * c-common.c (sync_resolve_params): Remove write-only variable.
10951 2010-05-12 Anatoly Sokolov <aesok@post.ru>
10953 * target.h (struct gcc_target): Add mode_dependent_address_p field.
10954 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
10955 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
10956 * targhooks.c (default_mode_dependent_address_p): New function.
10957 * targhooks.h (default_mode_dependent_address_p): Declare function.
10958 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
10959 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
10960 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
10961 target hook. Change return type to bool.
10962 * recog.h (mode_dependent_address_p): Change return type to bool.
10964 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
10965 Nathan Froyd <froydnj@codesourcery.com>
10967 * tree-mudflap.c (build_function_type_0, build_function_type_1,
10968 build_function_type_2, build_function_type_3): Remove.
10969 (mudflap_init): Use build_function_type_list.
10971 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
10972 Nathan Froyd <froydnj@codesourcery.com>
10974 * coverage.c (build_fn_info_value): Call build_constructor instead of
10975 build_constructor_from_list.
10976 (build_ctr_info_value): Likewise.
10977 (build_gcov_info): Likewise.
10979 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
10981 * tree.c (build_constructor): Compute TREE_CONSTANT for the
10982 resultant constructor.
10983 (build_constructor_single): Don't set TREE_CONSTANT.
10984 (build_constructor_from_list): Don't compute TREE_CONSTANT.
10986 2010-05-12 Jan Hubicka <jh@suse.cz>
10988 * cgraph.h (struct varpool_node): Add aux.
10989 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
10990 * varpool.c (varpool_remove_node): Do not remove initializer.
10991 (varpool_reset_queue): Export.
10992 (varpool_finalize_decl): Volatile vars are forced to be output.
10993 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
10995 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
10996 process_references, varpool_can_remove_if_no_refs): New functions.
10997 (cgraph_remove_unreachable_nodes): Handle variables too.
10999 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
11002 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
11004 2010-05-12 Jakub Jelinek <jakub@redhat.com>
11006 PR middle-end/44085
11007 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
11008 change value of ORT_TASK.
11009 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
11010 (omp_notice_threadprivate_variable): New function.
11011 (omp_notice_variable): Call it for threadprivate variables.
11012 If enclosing ctx is a task, print enclosing task rather than
11013 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
11014 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
11015 if task has untied clause.
11018 * dwarf2out.c (base_type_die): Don't add name attribute here.
11019 (modified_type_die): Instead of sizetype use
11020 its underlying original type. If a DW_TAG_base_type doesn't
11021 have name added, add __unknown__.
11022 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
11023 always call force_type_die instead.
11025 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
11027 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
11028 for __stack_chk_guard.
11030 2010-05-11 Jakub Jelinek <jakub@redhat.com>
11032 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
11033 don't call start_source_file debug hook here...
11034 (finish_options): ... but here, after outputting predefined and
11035 command line defines and undefs.
11037 PR middle-end/44071
11038 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
11040 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
11041 optimizing away empty bb with no successors, move over its
11042 footer chain to fallthru predecessor.
11043 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
11044 (rtl_split_edge): For asm goto call patch_jump_insn even if
11045 splitting fallthru edge.
11048 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
11049 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
11050 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
11051 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
11055 * c-parser.c (c_parser_expression): Mark LHS of a comma
11056 expression as read if it is a decl, handled component or
11057 COMPOUND_EXPR with that on the RHS.
11058 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
11059 if it is a decl or handled component.
11061 2010-05-11 Jan Hubicka <jh@suse.cz>
11063 * lto-symtab.c (lto_symtab_free): New function.
11064 * lto-streamer.h (lto_symtab_free): Declare.
11066 2010-05-11 Jan Hubicka <jh@suse.cz>
11068 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
11069 that if function is needed it is reachable.
11070 (lto_output_node): See if it the function is reachable or referenced.
11071 (output_cgraph): Update call of lto_output_node.
11072 * lto-streamer.h (reachable_from_other_partition_p): Declare.
11074 2010-05-11 Jan Hubicka <jh@suse.cz>
11076 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
11079 2010-05-11 Jan Hubicka <jh@suse.cz>
11081 PR tree-optimize/44063
11082 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
11084 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
11086 (estimate_function_body_sizes): Compute sizes even when disregarding.
11088 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
11090 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
11092 2010-05-11 Jan Hubicka <jh@suse.cz>
11094 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
11095 into every boundary.
11097 2010-05-11 Jan Hubicka <jh@suse.cz>
11099 * matrix-reorg.c (matrix_reorg): Rebuild edges.
11101 2010-05-11 Jan Hubicka <jh@suse.cz>
11103 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
11104 lto_streamer_cache_delete): Put nodes into heap.
11105 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
11108 2010-05-11 Jan Hubicka <jh@suse.cz>
11110 * cgraphbuild.c (cgraph_rebuild_references): New.
11111 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
11112 out extern inlines.
11113 * cgraph.h (cgraph_rebuild_references): Declare.
11114 * tree-inline.c (tree_function_versioning): Use it.
11115 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
11117 2010-05-11 Jan Hubicka <jh@suse.cz>
11119 * cgraph.c: Include ipa-utils.h
11120 (cgraph_create_virtual_clone): Update references.
11121 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
11123 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
11125 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
11126 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
11129 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
11131 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
11133 2010-05-11 Jakub Jelinek <jakub@redhat.com>
11135 * gcc.c (execute): For -### don't quote arguments that
11136 contain just alphanumerics and _/-. characters.
11137 * doc/invoke.texi: Document that change for -###.
11140 * df-problems.c (struct dead_debug): Add to_rescan field.
11141 (dead_debug_init): Clear to_rescan field.
11142 (dead_debug_finish): Rescan all debug insns in to_rescan
11143 bitmap and free the bitmap.
11144 (dead_debug_insert_before): Instead of rescanning debug insns
11145 immediately queue their rescanning until dead_debug_finish.
11146 (df_note_bb_compute): After dead_debug_add do continue instead
11149 2010-05-10 Jakub Jelinek <jakub@redhat.com>
11152 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
11153 clear also INSN_REG_USE_LIST.
11155 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11157 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
11159 2010-05-10 Jan Hubicka <jh@suse.cz>
11161 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
11164 2010-05-10 Jan Hubicka <jh@suse.cz>
11166 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
11168 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
11169 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
11170 (lto_streamer_cache_create): Init alloc pool.
11171 (lto_streamer_cache_delete): Free alloc pool.
11172 * lto-streamer.h: Include alloc pool.
11173 (lto_streamer_cache_d): Use alloc pool.
11174 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
11176 2010-05-10 Jan Hubicka <jh@suse.cz>
11178 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
11179 * cgraphbuild.c: Include except.h
11180 (record_type_list, record_eh_tables): New function.
11181 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
11183 2010-05-10 Jan Hubicka <jh@suse.cz>
11185 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
11186 __frame_dummy_init_array_entry, force_to_data): Attribute as used
11187 rather than unused.
11189 2010-05-10 Michael Matz <matz@suse.de>
11191 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
11192 (can_reassociate_p): Use FLOAT_TYPE_P.
11193 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
11194 (vect_force_simple_reduction): ... this.
11195 * tree-parloops.c (gather_scalar_reductions): Use
11196 vect_force_simple_reduction.
11197 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
11198 vect_is_simple_reduction, add modify argument, if true rewrite
11199 "a-b" into "a+(-b)".
11200 (vect_is_simple_reduction, vect_force_simple_reduction): New
11202 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
11204 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
11205 Vladimir Makarov <vmakarov@redhat.com>
11207 PR rtl-optimization/44012
11208 * ira-build.c (remove_unnecessary_allocnos): Nullify
11209 regno_allocno_map of the removed allocno.
11211 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11213 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
11215 * configure: Regenerate.
11217 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11219 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
11221 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
11222 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
11224 * configure: Regenerate.
11226 2010-05-10 Richard Guenther <rguenther@suse.de>
11228 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
11229 marked if the entry identifier is marked.
11231 2010-05-10 Richard Guenther <rguenther@suse.de>
11233 * c-common.c (struct c_common_attributes): Add fnspec attribute.
11234 (handle_fnspec_attribute): New function.
11235 * gimple.h (gimple_call_return_flags): Declare.
11236 (gimple_call_arg_flags): Likewise.
11237 * gimple.c (gimple_call_arg_flags): New function.
11238 (gimple_call_return_flags): Likewise.
11239 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
11240 New argument flags.
11241 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
11242 return value flags.
11243 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
11244 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
11246 (make_heapvar_for): ... this new function.
11247 (handle_rhs_call): Handle fnspec attribute argument specifiers.
11248 (handle_lhs_call): Likewise.
11249 (find_func_aliases): Adjust.
11251 2010-05-10 Richard Guenther <rguenther@suse.de>
11253 PR tree-optimization/44050
11254 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
11256 2010-05-10 Wei Guozhi <carrot@google.com>
11259 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
11261 2010-05-09 Joseph Myers <joseph@codesourcery.com>
11264 * c-typeck.c (lookup_field): Take a type directly. Update
11266 (build_component_ref): Update call to lookup_field.
11267 (set_init_label): Use lookup_field to find initialized field.
11268 Handle returned list of fields like a sequence of designators.
11270 2010-05-09 Richard Guenther <rguenther@suse.de>
11272 PR middle-end/44024
11273 * fold-const.c (tree_single_nonzero_warnv_p): Properly
11274 handle &FUNCTION_DECL.
11276 2010-05-09 Joseph Myers <joseph@codesourcery.com>
11279 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
11280 structures and unions recursively.
11281 (detect_field_duplicates): Move duplicate detection with a hash to
11282 detect_field_duplicates_hash. Always use a hash if anonymous
11283 structures or unions are present.
11284 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
11287 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
11290 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
11291 detect Atom, Core 2 and Core i7.
11293 2010-05-09 Richard Guenther <rguenther@suse.de>
11295 * gcc.c (store_arg): Handle temporary file deletion for
11298 2010-05-09 Richard Guenther <rguenther@suse.de>
11300 PR middle-end/44043
11301 * ipa-inline.c (estimate_function_body_sizes): Return after
11302 disregarding inline limits.
11304 2010-05-09 Richard Guenther <rguenther@suse.de>
11306 * gcc.c (store_arg): Revert last change.
11308 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
11310 PR middle-end/28685
11311 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
11312 (optimize_ops_list): Call it.
11314 2010-05-08 Richard Guenther <rguenther@suse.de>
11316 PR tree-optimization/44030
11317 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
11318 NECESSARY flag if we propagate from a inserted expression.
11320 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
11322 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
11323 domain types as equal if they are both PLACEHOLDER_EXPRs.
11325 2010-05-08 Richard Guenther <rguenther@suse.de>
11327 * lto-wrapper.c (run_gcc): Remove linker output from
11328 command line for LTRANS invocation.
11330 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
11332 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
11333 lto-macho as lto_binary_reader.
11334 * target.h (struct gcc_target): New hooks lto_start and lto_end.
11335 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
11336 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
11337 in lto_start and lto_end calls.
11338 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
11340 (scan_prog_file): Update is_elf_or_coff call.
11341 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
11343 * collect2.c (main): Fix enum comparison.
11345 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
11347 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
11348 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
11349 and TARGET_ASM_LTO_END.
11350 * darwin.c: Include obstack.h and lto-streamer.h.
11351 (lto_section_names_offset, lto_section_names_obstack,
11352 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
11354 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
11355 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
11356 to a temporary file.
11357 (darwin_asm_lto_end): New function. Restore asm_out_file.
11358 (darwin_asm_named_section): For LTO sections, replace the name with
11359 the offset of the section name in a string table, and build this
11361 (darwin_file_start): Initialize global vars for LTO support.
11362 (darwin_file_end): If output to asm_out_file was redirected, append it
11363 to the proper asm_out_file here. Add the section names section.
11365 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
11367 * c-pragma.c (pending_weak_d, pending_weak): New.
11368 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
11369 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
11370 handle_pragma_weak): Update the uses of pending_weaks.
11372 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11374 PR documentation/44016
11375 * doc/standards.texi (Standards): Link to unversioned
11376 cxx0x_status.html page.
11378 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
11381 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
11382 in addition to TREE_USED, to avoid "set but unused" warnings.
11384 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
11386 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
11387 (is_loop_prefetching_profitable): Do not insert prefetches
11388 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
11389 times the prefetch ahead distance.
11391 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
11393 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
11394 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
11395 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
11398 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
11400 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
11401 a diagnostic info when the insn-to-mem ratio is too small.
11403 2010-05-07 Richard Guenther <rguenther@suse.de>
11405 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
11407 (store_arg): Queue temp_filename for deletion instead of
11408 the whole argument.
11410 2010-05-07 Richard Guenther <rguenther@suse.de>
11412 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
11413 (run_gcc): Handle LTRANS phase invocation.
11414 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
11416 2010-05-07 Jakub Jelinek <jakub@redhat.com>
11418 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
11419 this is also meaningful on PARM_DECLs and RESULT_DECLs.
11421 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11423 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
11425 2010-05-07 Richard Guenther <rguenther@suse.de>
11427 PR tree-optimization/44020
11428 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
11429 code when PRE is not yet initialized.
11431 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11433 * config/mips/dbxmdebug.h: Remove.
11434 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
11436 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
11438 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
11439 with null pointer and also warn about ordered comparison of zero with
11440 pointer if -Wextra.
11442 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11444 * graphite-blocking.c
11445 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
11446 * graphite-clast-to-gimple.c
11447 (clast_to_gcc_expression): Same.
11448 (precision_for_value): Same.
11449 (precision_for_interval): Same.
11450 (gcc_type_for_interval): Same.
11451 (graphite_create_new_guard): Same.
11452 (compute_bounds_for_level): Same.
11453 (graphite_create_new_loop_guard): Same.
11454 * graphite-interchange.c
11455 (build_linearized_memory_access): Same.
11456 (pdr_stride_in_loop): Same.
11457 (memory_strides_in_loop_1): Same.
11458 (memory_strides_in_loop): Same.
11459 (extend_scattering): Same.
11460 (psct_scattering_dim_for_loop_depth): Same.
11461 (pbb_number_of_iterations): Same.
11463 (debug_iteration_domains): Same.
11465 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11466 (ppl_set_inhomogeneous_gmp): Same.
11467 (ppl_strip_loop): Same.
11468 (ppl_lexico_compare_linear_expressions): Same.
11469 (ppl_read_polyhedron_matrix): Same.
11470 (ppl_max_for_le_pointset): Same.
11472 (ppl_read_polyhedron_matrix): Same.
11473 (tree_int_to_gmp): Same.
11474 (gmp_cst_to_tree): Same.
11475 (ppl_set_inhomogeneous): Same.
11476 (ppl_set_inhomogeneous_tree): Same.
11477 (ppl_set_coef): Same.
11478 (ppl_set_coef_tree): Same.
11479 * graphite-sese-to-poly.c
11480 (build_pbb_scattering_polyhedrons): Same.
11481 (build_scop_scattering): Same.
11482 (scan_tree_for_params_right_scev): Same.
11483 (scan_tree_for_params): Same.
11484 (find_params_in_bb): Same.
11485 (find_scop_parameters): Same.
11486 (add_upper_bounds_from_estimated_nit): Same.
11487 (build_loop_iteration_domains): Same.
11488 (add_condition_to_domain): Same.
11489 (pdr_add_memory_accesses): Same.
11491 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11493 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
11494 CLooG's value_* macros to their respective mpz_* counterparts.
11495 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
11496 (graphite_create_new_loop_guard): Same.
11497 * graphite-interchange.c (build_linearized_memory_access): Same.
11498 (pdr_stride_in_loop): Same.
11499 (memory_strides_in_loop_1): Same.
11500 (1st_interchange_profitable_p): Same.
11501 * graphite-poly.c (extend_scattering): Same.
11502 (psct_scattering_dim_for_loop_depth): Same.
11503 (pbb_number_of_iterations): Same.
11504 (pbb_number_of_iterations_at_time): Same.
11505 * graphite-poly.h (new_1st_loop): Same.
11506 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
11507 (oppose_constraint): Same.
11508 (insert_constraint_into_matrix): Same.
11509 (ppl_set_inhomogeneous_gmp): Same.
11510 (ppl_set_coef_gmp): Same.
11511 (ppl_strip_loop): Same.
11512 (ppl_lexico_compare_linear_expressions): Same.
11513 (ppl_max_for_le_pointset): Same.
11514 (ppl_min_for_le_pointset): Same.
11515 (ppl_build_realtion): Same.
11516 * graphite-ppl.h (gmp_cst_to_tree): Same.
11517 (ppl_set_inhomogeneous): Same.
11518 (ppl_set_inhomogeneous_tree): Same.
11519 (ppl_set_coef): Same.
11520 (ppl_set_coef_tree): Same.
11521 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
11522 (build_scop_scattering): Same.
11523 (add_value_to_dim): Same.
11524 (scan_tree_for_params_right_scev): Same.
11525 (scan_tree_for_params_int): Same.
11526 (scan_tree_for_params): Same.
11527 (find_params_in_bb): Same.
11528 (find_scop_parameters): Same.
11529 (add_upper_bounds_from_estimated_nit): Same.
11530 (build_loop_iteration_domains): Same.
11531 (create_linear_expr_from_tree): Same.
11532 (add_condition_to_domain): Same.
11533 (pdr_add_memory_accesses): Same.
11535 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
11536 Jason Merrill <jason@redhat.com>
11538 * c-common.c (c_common_reswords): Add nullptr.
11539 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
11540 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
11541 (gen_type_die_with_usage): Likewise.
11542 * dbxout.c (dbxout_type): Likewise.
11543 * sdbout.c (plain_type_1): Likewise.
11545 2010-05-06 Jason Merrill <jason@redhat.com>
11547 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
11548 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
11550 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
11552 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
11553 stripping WITH_SIZE_EXPR.
11554 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
11557 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11559 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
11560 list of obsolete configurations.
11561 Disabled check for obsolete configurations.
11562 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
11563 Removed support for previous versions.
11564 * config/mips/iris.h: Removed.
11565 * config/mips/iris5.h: Removed.
11566 * config/mips/iris6.h: Merged old iris.h contents.
11567 (TARGET_IRIX): Removed.
11568 (DRIVER_SELF_SPECS): Removed mabi=32.
11569 (IDENT_ASM_OP): Removed undef.
11570 (STARTFILE_SPEC): Removed mabi=32.
11571 (ENDFILE_SPEC): Likewise.
11572 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
11573 (MACHINE_TYPE): Update for IRIX 6.5.
11574 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
11575 TARGET_IRIX by TARGET_IRIX6.
11576 (mips_file_start): Likewise.
11577 (mips_output_external): Remove IRIX 5/6 O32 support.
11578 (mips_output_function_prologue): Likewise.
11579 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
11581 (TARGET_CPU_CPP_BUILTINS): Likewise.
11582 (TARGET_IRIX): Removed.
11583 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
11584 (MULTILIB_DIRNAMES): Removed 32.
11585 (MULTILIB_OSDIRNAMES): Removed ../lib.
11586 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
11587 (Specific, mips-sgi-irix5): Document removal.
11588 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
11589 Remove references to older IRIX 6 releases and the O32 ABI.
11591 2010-05-06 Jakub Jelinek <jakub@redhat.com>
11594 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
11595 instead of DF_REF_REAL_REG.
11597 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
11600 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
11601 handling to still return true for x64 targets.
11603 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
11605 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
11607 2010-05-06 Jan Hubicka <jh@suse.cz>
11609 PR tree-optimization/43791
11610 * ipa-inline.c (update_caller_keys): Remove bogus
11611 disregard_inline_limits check.
11613 2010-05-06 Michael Matz <matz@suse.de>
11615 PR tree-optimization/43984
11616 * tree-ssa-pre.c (inserted_phi_names): Remove.
11617 (inserted_exprs): Change to bitmap.
11618 (create_expression_by_pieces): Set bits, don't append to vector.
11619 (insert_into_preds_of_block): Don't handle inserted_phi_names.
11620 (eliminate): Don't look at inserted_phi_names, remove deleted
11621 insns from inserted_exprs.
11622 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
11623 (init_pre, fini_pre): Allocate and free bitmaps.
11624 (execute_pre): Insert insns on edges before elimination.
11626 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
11628 * tree.c (initializer_zerop): Handle STRING_CST.
11630 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
11633 * doc/invoke.texi (Wimplicit): Document as C only.
11634 * opts.c (common_handle_option): Add argument kind.
11635 (handle_option): Rename as read_cmdline_option. Factor out code to...
11636 (handle_option): ... here. New.
11637 (handle_options): Rename as read_cmdline_options.
11638 (decode_options): Update call.
11639 (set_option): Use option index instead of option pointer. Classify
11640 diagnostics correctly.
11641 (enable_warning_as_error): Call handle_option.
11642 * opts.h (set_option): Update declaration.
11643 (handle_option): Declare.
11644 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
11645 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
11646 * c-opts.c (set_Wimplicit): Delete.
11647 (c_family_lang_mask): New static constant.
11648 (c_common_handle_option): Add argument kind. Use handle_option
11649 instead of set_Wimplicit.
11650 (c_common_post_options): warn_implicit and warn_implicit_int
11651 are disabled by default.
11652 * c-common.c (warn_implicit): Do not define here.
11653 * c-common.h (warn_implicit): Do not declare here.
11654 (c_common_handle_option): Update declaration.
11655 * lto-opts.c (lto_reissue_options): Update call to set_option.
11657 2010-05-06 Richard Guenther <rguenther@suse.de>
11659 PR tree-optimization/43571
11660 * domwalk.c (walk_dominator_tree): Walk the dominator
11661 sons in more optimal order.
11663 2010-05-06 Richard Guenther <rguenther@suse.de>
11665 PR tree-optimization/43934
11666 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
11667 (stmt_cost): Likewise.
11668 (extract_true_false_args_from_phi): New helper.
11669 (determine_max_movement): For PHI nodes verify we can hoist them
11670 and compute their cost.
11671 (determine_invariantness_stmt): Handle PHI nodes.
11672 (move_computations_stmt): Likewise. Hoist PHI nodes in
11673 if-converted form using COND_EXPRs.
11674 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
11675 (tree_ssa_lim): Likewise.
11676 * tree-flow.h (tree_ssa_lim): Adjust prototype.
11677 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
11679 2010-05-06 Richard Guenther <rguenther@suse.de>
11681 PR tree-optimization/43987
11682 * tree-ssa-structalias.c (could_have_pointers): For possibly
11683 address-taken variables force pointers to be recorded.
11684 (create_variable_info_for_1): Likewise.
11685 (push_fields_onto_fieldstack): Pass in wheter all fields
11686 must have pointers.
11687 (find_func_aliases): Query types instead of vars whether
11688 they contain pointers where appropriate.
11690 2010-05-06 Jan Hubicka <jh@suse.cz>
11692 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
11693 (record_reference, mark_address, mark_load, mark_store): Record
11695 (record_references_in_initializer): Update call of record_references.
11696 (rebuild_cgraph_edges): Remove all references before rebuiding.
11697 * cgraph.c (cgraph_create_node): Clear ref list.
11698 (cgraph_remove_node): Remove references.
11699 (dump_cgraph_node): Dump references.
11700 (cgraph_clone_node): Clone references.
11701 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
11702 (struct cgraph_node, varpool_node): Add ref_lst.
11703 * ipa-ref.c: New file.
11704 * ipa-ref.h: New file.
11705 * ipa-ref-inline.h: New file.
11706 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
11707 (referenced_from_other_partition_p): New function.
11708 (lto_output_varpool_node): Take set arugment; call
11709 referenced_from_other_partition.
11710 (lto_output_ref): New.
11711 (add_references): New.
11712 (output_refs): New.
11713 (output_cgraph): Compute boundary based on references; output refs.
11714 (output_varpool): Accept cgraph_node_set argument.
11717 (input_cgraph): Call input_refs.
11718 * lto-section-in.c (lto_section_name): Add refs.
11719 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
11720 (ipa-ref.o): New file.
11721 * varpool.c (varpool_node): Clear ipa ref list.
11722 (varpool_remove_node): Remove references.
11723 (dump_varpool_node): Dump references.
11724 (varpool_assemble_decl): Only compile finalized ones.
11725 (varpool_extra_name_alias): Initialize ref list.
11726 * lto-streamer.c (lto-get_section_name): Add .refs section.
11727 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
11728 (referenced_from_other_partition_p): Declared.
11730 2010-05-06 Ira Rosen <irar@il.ibm.com>
11732 PR tree-optimization/43901
11733 * tree-vect-stmts.c (vectorizable_call): Assert that vector
11734 type is not NULL if it's transformation phase, and return
11735 FALSE if it's analysis.
11736 (vectorizable_conversion, vectorizable_operation,
11737 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
11739 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
11741 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
11743 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
11745 * config/mips/mips-protos.h
11746 (mips_small_register_classes_for_mode_p): Delete prototype.
11748 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
11750 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
11751 * config/arm/arm.c (multiple_operation_profitable_p,
11752 compute_offset_order): New static functions.
11753 (load_multiple_sequence, store_multiple_sequence): Use them.
11754 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
11755 memory offsets, not register numbers.
11756 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
11758 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
11760 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
11761 (get_pending_sizes, put_pending_size, put_pending_sizes):
11762 Update the uses of pending_sizes.
11763 * c-decl.c (store_parm_decls): Likewise.
11764 * c-tree.h (struct c_arg_info): Likewise.
11765 * tree.h: Update the prototype for get_pending_sizes and
11768 2010-05-05 Jason Merrill <jason@redhat.com>
11771 * c-common.c (handle_aligned_attribute): Respect
11772 ATTR_FLAG_TYPE_IN_PLACE.
11775 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
11776 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11777 (TARGET_INITIALIZER): Use it.
11778 * c-common.c (attribute_takes_identifier_p): Call it.
11779 * c-common.h: Update prototype.
11780 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
11781 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11783 2010-05-05 Jakub Jelinek <jakub@redhat.com>
11786 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
11787 DW_ID_down_case for Fortran compilation units.
11789 2010-05-05 Jan Hubicka <jh@suse.cz>
11791 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
11794 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
11796 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
11797 a variable-sized RESULT_DECL.
11799 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
11801 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
11803 2010-05-05 Jason Merrill <jason@redhat.com>
11806 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
11808 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
11810 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
11811 Jakub Jelinek <jakub@redhat.com>
11814 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
11815 (dead_debug_init, dead_debug_finish): New functions.
11816 (dead_debug_add, dead_debug_insert_before): Likewise.
11817 (df_note_bb_compute): Initialize a dead_debug object, add dead
11818 debug uses to it, insert debug bind insns before death insns,
11819 reset debug insns that refer to pending uses at the end.
11820 * rtl.h (make_debug_expr_from_rtl): New prototype.
11821 * varasm.c (make_debug_expr_from_rtl): New function.
11823 2010-05-05 Jan Hubicka <jh@suse.cz>
11825 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
11826 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
11827 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
11828 lto_varpool_encoder_deref, lto_varpool_encoder_size,
11829 lto_varpool_encoder_encode_initializer_p,
11830 lto_set_varpool_encoder_encode_initializer): New functions.
11831 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
11832 call output_varpool.
11833 (input_varpool_node): Do not always set analyzed.
11834 (input_cgraph_1): Return vector of cgraph nodes.
11835 (input_varpool_1): Return vector of varpools.
11836 (input_cgraph): Free the vectors.
11837 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11838 output only initializers needed.
11839 (lto_output): Only call output_cgraph.
11840 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
11841 * lto-section-out.c (lto_new_out_decl_state): Initialize
11842 state->varpool_node_encoder.
11843 * lto-streamer.h (lto_varpool_encoder_d): New.
11844 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
11845 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
11846 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
11847 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
11848 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
11850 (output_varpool, input_varpool): Remove declarations.
11852 2010-05-05 Jan Hubicka <jh@suse.cz>
11854 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
11855 with body can prevail.
11857 2010-05-05 Jan Hubicka <jh@suse.cz>
11859 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
11862 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11864 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
11866 * gengtype.h (erro_at_line): Constify pos argument.
11868 * gengtype.c: Include hashtab.h.
11869 (enum gc_used): Document GC_MAYBE_POINTED_TO.
11870 (error_at_line): Constify pos argument.
11871 (do_typedef): Initialize p->opt field.
11872 (get_file_gtfilename): Fix comment typo.
11873 (struct walk_type_data): Constify line field.
11874 (get_output_file_for_structure): New function.
11875 (write_local_func_for_structure): Constify orig_s argument.
11876 Use get_output_file_for_structure.
11877 (write_func_for_structure): Use get_output_file_for_structure.
11878 (INDENT): New define.
11879 (dump_pair, dump_type, dump_type_list, dump_typekind)
11880 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
11881 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
11883 (seen_types): New variable.
11884 (main): New variable do_dump. Process "-d" command line option.
11885 Call dump_everything if dump requested.
11887 2010-05-05 Jakub Jelinek <jakub@redhat.com>
11889 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
11890 in a temporary instead of invoking the macro multiple times.
11891 (track_expr_p): Likewise.
11893 2010-05-04 Neil Vachharajani <nvachhar@google.com>
11895 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
11897 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
11898 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
11899 conditions for printing notes.
11900 * common.opt (-Wcoverage-mismatch): Allow negative, default to
11901 true, update documentation.
11902 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
11904 2010-05-04 Jakub Jelinek <jakub@redhat.com>
11907 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
11910 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
11913 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
11914 (*sse_prologue_save_insn1): Likewise.
11915 (SSE prologue save splitter): Likewise.
11917 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
11919 * tree.c (free_lang_data_in_one_sizepos): New inline function.
11920 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
11921 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
11922 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
11923 all decls. Call it on DECL_FIELD_OFFSET of fields.
11924 (find_decls_types_r): Follow DECL_VALUE_EXPR.
11925 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
11927 2010-05-04 Martin Jambor <mjambor@suse.cz>
11929 * tree-sra.c (build_access_from_expr_1): The first parameter type
11930 changed to simple tree.
11931 (build_access_from_expr): Likewise, gsi parameter was eliminated.
11932 (scan_assign_result): Renamed to assignment_mod_result, enum elements
11934 (build_accesses_from_assign): Removed all parameters except for a
11935 simple gimple statement. Now returns a simple bool.
11936 (scan_function): All non-analysis parts moved to separate functions
11937 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
11938 parameters and updated both callers.
11939 (sra_modify_expr): Removed parameter data.
11940 (sra_modify_function_body): New function.
11941 (perform_intra_sra): Call sra_modify_function_body to modify the
11943 (replace_removed_params_ssa_names): Parameter data changed into
11944 adjustments vector.
11945 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
11946 changed the parameter dont_convert to convert with the opposite
11948 (sra_ipa_modify_assign): Parameter data changed into adjustments
11949 vector, return value changed to bool.
11950 (ipa_sra_modify_function_body): New function.
11951 (sra_ipa_reset_debug_stmts): Updated a comment.
11952 (modify_function): Use ipa_sra_modify_function_body to modify function
11955 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
11957 PR middle-end/43671
11958 * alias.c (true_dependence): Handle the same VALUE in x and mem.
11959 (canon_true_dependence): Likewise.
11960 (write_dependence_p): Likewise.
11962 2010-05-04 Jan Hubicka <jh@suse.cz>
11964 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
11965 * cgraphbuild.c: Include ipa-utils.h
11966 (record_reference_ctx): New struct.
11967 (record_reference): Simplify to work on initializers; not statements.
11968 (mark_address, mark_load, mark_store): New.
11969 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
11970 walk PHI nodes too.
11971 (record_references_in_initializer): Update use of record_reference.
11972 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
11973 walk PHI nodes too.
11975 2010-05-04 Jan Hubicka <jh@suse.cz>
11977 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
11978 node will be removed anyway.
11979 (lto_varpool_replace_node): Allow also unanalyzed nodes;
11980 relink aliases of node into prevailing node.
11981 * varpool.c (varpool_remove_node): Remove aliases properly;
11982 when removing node, remove all its aliases too; remove DECL_INITIAL
11983 of removed node; ggc_free the varpool node.
11985 2010-05-04 Richard Guenther <rguenther@suse.de>
11987 PR tree-optimization/43879
11988 * tree-ssa-structalias.c (alias_get_name): Use
11989 DECL_ASSEMBLER_NAME if available.
11990 (create_function_info_for): Return the varinfo node.
11991 (ipa_pta_execute): Associate same-body aliases and extra names
11992 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
11994 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
11996 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
11998 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
12001 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
12002 only if HONOR_REG_ALLOC_ORDER is not defined.
12004 2010-05-04 Richard Guenther <rguenther@suse.de>
12006 PR tree-optimization/43949
12007 * tree-vrp.c (extract_range_from_binary_expr): Only handle
12010 2010-04-26 Jason Merrill <jason@redhat.com>
12012 * c.opt (-fstrict-enums): New.
12013 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
12015 2010-05-03 David Ung <davidu@mips.com>
12016 James E. Wilson <wilson@codesourcery.com>
12018 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
12019 emit the trap instruction before the divide for TUNE_74K.
12021 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
12023 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
12024 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
12025 based on the above, for new target hook.
12027 * hooks.c (hook_bool_mode_true): New generic hook.
12028 * hooks.h (hook_bool_mode_true): Add prototype.
12030 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
12032 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
12033 target hook, set to hook_bool_mode_false.
12034 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
12035 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
12036 with targetm.small_register_classes_for_mode_p.
12037 (find_reusable_reload): Likewise.
12038 (combine_reloads): Likewise.
12039 * reload1.c (reload_as_needed): Likewise.
12040 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
12041 * ifcvt.c (noce_process_if_block, check_cond_move_block,
12042 dead_or_predicable): Likewise.
12043 * regmove.c (optimize_reg_copy_1): Likewise.
12044 * calls.c (prepare_call_address): Likewise.
12045 (precompute_register_parameters): Likewise.
12047 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
12049 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
12050 implementation of the hook that considers all register classes
12051 small except for SH64.
12052 (sh_override_options): Use the new hook.
12053 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
12056 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
12058 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
12059 implementation of the hook that considers all register classes
12061 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
12064 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
12066 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
12067 implementation of the hook that considers all register classes
12069 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
12072 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
12074 * config/m32c/m32c.h: Likewise.
12075 * config/pdp11/pdp11.h: Likewise.
12076 * config/avr/avr.h: Likewise.
12077 * config/xtensa/xtensa.h: Likewise.
12078 * config/m68hc11/m68hc11.h: Likewise.
12079 * config/mn10300/mn10300.h: Likewise.
12080 * config/mcore/mcore.h: Likewise.
12081 * config/h8300/h8300.h: Likewise.
12082 * config/bfin/bfin.h: Likewise.
12084 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
12085 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
12087 2010-05-03 Anatoly Sokolov <aesok@post.ru>
12089 * double-int.h (tree_to_double_int): Remove macro.
12090 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
12091 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
12092 (tree_to_double_int): New function.
12093 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
12095 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
12097 2010-05-03 Richard Guenther <rguenther@suse.de>
12099 PR tree-optimization/43971
12100 * tree-ssa-structalias.c (get_constraint_for_1): Fix
12101 constraints in the !flag_delete_null_pointer_checks case.
12103 2010-05-03 Jakub Jelinek <jakub@redhat.com>
12106 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
12107 result mode matches original rtl mode.
12109 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
12112 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
12114 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
12116 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
12117 when processing flag options.
12119 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
12121 * gcov-iov.c (main): Change format string placeholder
12122 from %#08x to 0x%08x.
12123 * genchecksum.c (dosum): Change format string placeholder
12124 from %#02x to 0x%02x.
12126 2010-05-02 Richard Guenther <rguenther@suse.de>
12128 PR tree-optimization/43879
12129 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
12131 2010-05-02 Bruno Haible <bruno@clisp.org>
12133 * doc/extend.texi (Function Attributes): Fix a typo.
12135 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
12138 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
12139 placeholder from 0x%x to %#x.
12140 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
12141 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
12142 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
12143 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
12144 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
12145 * config/i386/i386.c (ix86_target_string): Ditto.
12146 * config/i386/i386.c (output_pic_addr_const): Ditto.
12147 (print_operand): Ditto.
12149 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
12151 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
12152 placeholder from 0x%x to %#x.
12153 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
12154 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
12155 (ASM_OUTPUT_DEBUG_DATA): Ditto.
12156 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
12157 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
12158 * optc-gen.awk: Ditto.
12159 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
12160 (HOST_WIDE_INT_PRINT_HEX): Ditto.
12161 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
12162 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
12164 2010-05-01 Anatoly Sokolov <aesok@post.ru>
12166 * target.h (struct calls): Add function_value_regno_p field.
12167 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
12168 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
12169 * targhooks.c (default_function_value_regno_p): New function.
12170 * targhooks.h (default_function_value_regno_p): Declare function.
12171 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
12172 * builtins.c. (apply_result_size): (Ditto.).
12173 * combine.c. (likely_spilled_retval_p): (Ditto.).
12174 * mode-switching.c. Include 'target.h'.
12175 (create_pre_exit): Use function_value_regno_p hook.
12176 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
12177 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
12178 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
12180 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
12181 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
12182 (ix86_function_value_regno_p): Declare as static, change argument
12183 type to const unsigned int.
12184 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
12186 2010-05-01 Richard Guenther <rguenther@suse.de>
12188 PR tree-optimization/43949
12189 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
12191 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
12193 2010-05-01 Anatoly Sokolov <aesok@post.ru>
12195 * rtl.h (CONST_DOUBLE_P): Define.
12196 (rtx_to_double_int): Declare.
12197 * emit-rtl.c (rtx_to_double_int): New function.
12198 * dwarf2out.c (insert_double): New function.
12199 (loc_descriptor, add_const_value_attribute): Clean up, use
12200 rtx_to_double_int and insert_double functions.
12202 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
12204 * doc/extend.texi (Inline): Add missing return keyword to examples.
12205 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
12208 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
12210 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
12211 the variable part of the offset as well. Use highest_pow2_factor for
12212 all alignment checks.
12214 2010-04-30 Richard Guenther <rguenther@suse.de>
12216 PR tree-optimization/43879
12217 * tree-ssa-structalias.c (type_could_have_pointers): Functions
12220 2010-04-30 Jan Hubicka <jh@suse.cz>
12222 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
12224 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
12226 2010-04-30 Jan Hubicka <jh@suse.cz>
12228 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
12230 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
12231 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
12232 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
12233 cgraph_node_set_needs_ltrans_p): Remove.
12235 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
12237 * sdbout.c: Include vec.h, do not include varray.h.
12238 (deferred_global_decls, sdbout_global_decl,
12239 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
12240 * toplev.c: Do not include varray.h.
12241 (dump_memory_report): Do not dump VARRAY statistics.
12242 * gengtype.c (open_base_file): Ignore varray.h.
12243 * Makefile.in: Update for abovementioned changes.
12244 Remove all traces of varray.c and varray.h.
12245 * varray.c: Remove file.
12246 * varray.h: Remove file.
12248 2010-04-30 Jan Hubicka <jh@suse.cz>
12250 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
12253 2010-04-30 Jan Hubicka <jh@suse.cz>
12255 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
12258 2010-04-30 Richard Guenther <rguenther@suse.de>
12260 * tree-ssa-structalias.c (get_constraint_for_1): Generate
12261 constraints for CONSTRUCTOR.
12263 2010-04-30 Richard Guenther <rguenther@suse.de>
12266 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
12267 first after all lowering passes.
12269 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
12271 * toplev.c: Include varray.h for statistics dumping.
12272 * tree.h: Do not declare varray_head_tag.
12273 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
12274 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
12275 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
12276 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
12277 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
12278 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
12279 c-common.c, c-common.h, reg-stack.c, basic-block.h,
12280 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
12282 * Makefile.in: Update for abovementioned changes.
12284 2010-04-30 Jakub Jelinek <jakub@redhat.com>
12287 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
12289 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
12291 * config/picochip/picochip.c (picochip_legitimize_address): Define.
12292 Use this function to do machine-specific conversion.
12293 (picochip_legitimize_reload_address): Likewise.
12294 (picochip_legitimate_address_p): Check valid base register only if
12296 (picochip_check_conditional_copy): Check for modw only if opnd is
12298 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
12299 to call the function in c.
12300 * config/picochip/picochip-protos.h
12301 (picochip_legitimize_reload_address): Define.
12302 * config/picochip/picochip.md (supported_compare1): Define.
12304 2010-04-30 Jan Hubicka <jh@suse.cz>
12306 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
12307 (cgraph_global_info): Remove inlined.
12308 (LTO_cgraph_tag_names): Remove.
12309 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
12310 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
12311 simplify cgraph tags and document.
12312 (lto_output_node): Use only LTO_cgraph_unavail_node and
12313 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
12314 for_functions_valid, global info, process and output flags.
12315 (input_overwrite_node): Initialize estimated stack size and
12316 estimated growth. Do not read flags we no longer store.
12317 (input_node): Likewise do not read info no longer stored.
12318 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
12321 2010-04-30 Richard Guenther <rguenther@suse.de>
12323 PR tree-optimization/43879
12324 * tree-ssa-structalias.c (get_constraint_for_1): Properly
12325 handle non-zero initializers.
12327 2010-04-30 Richard Guenther <rguenther@suse.de>
12329 * builtins.c (fold_builtin_1): Delete free (0).
12331 2010-04-29 Jan Hubicka <jh@suse.cz>
12333 * gengtype.c (open_base_files): Add lto-streamer.h
12334 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
12335 (pass_ipa_cp): GGC collect.
12336 * toplev. (compile_file): Do not output symbols.
12337 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
12338 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
12339 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
12340 * lto-section-in.c: Include ggc.h
12341 (lto_new_in_decl_state): Alloc in GGC.
12342 (lto_delete_in_decl_state): Likewise.
12343 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
12346 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
12349 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
12350 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
12351 (HONOR_REG_ALLOC_ORDER): Describe new macro.
12352 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
12353 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
12354 account only if HONOR_REG_ALLOC_ORDER is not defined.
12355 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
12356 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
12358 2010-04-29 Jon Grant <04@jguk.org>
12360 * collect2.c (vflag): Change type from int to bool.
12362 (helpflag): New global bool.
12363 (main): Set vflag and debug with boolean, not integer truth values.
12364 Accept new "--help" option and output usage text if found.
12365 * collect2.h (vflag): Update prototype.
12368 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
12371 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
12373 2010-04-29 Richard Guenther <rguenther@suse.de>
12376 * plugin.h (invoke_plugin_callbacks): Annotate arguments
12377 with ATTRIBUTE_UNUSED.
12379 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
12382 * config/i386/i386.c (get_some_local_dynamic_name): Replace
12383 INSN_P with NONDEBUG_INSN_P.
12384 (distance_non_agu_define): Likewise.
12385 (distance_agu_use): Likewise.
12387 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
12389 From Dominique d'Humieres <dominiq@lps.ens.fr>
12391 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
12394 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
12396 * plugin.h (invoke_plugin_callbacks): New inline function.
12397 * plugin.c (flag_plugin_added): New global flag.
12398 (add_new_plugin): Initialize above flag.
12399 (invoke_plugin_callbacks): Rename to ...
12400 (invoke_plugin_callbacks_full): ... this.
12402 2010-04-28 Jan Hubicka <jh@suse.cz>
12404 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
12405 (lto_varpool_replace_node): New.
12406 (lto_symtab_resolve_symbols): Resolve varpool nodes.
12407 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
12408 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
12409 * cgraph.h (varpool_node_ptr): New type.
12410 (varpool_node_ptr): New vector.
12411 (varpool_node_set_def): New structure.
12412 (varpool_node_set): New type.
12413 (varpool_node_set): New vector.
12414 (varpool_node_set_element_def): New structure.
12415 (varpool_node_set_element, const_varpool_node_set_element): New types.
12416 (varpool_node_set_iterator): New type.
12417 (varpool_node): Add prev pointers, add used_from_other_partition,
12418 in_other_partition.
12419 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
12420 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
12421 varpool_get_node, varpool_remove_node): Declare.
12422 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
12423 varpool_node_set_size): New inlines.
12424 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
12425 * tree-pass.h (varpool_node_set_def): Forward declare.
12426 (ipa_opt_pass_d): Summary writting takes vnode sets too.
12427 (ipa_write_optimization_summaries): Update prototype.
12428 * ipa-cp.c (ipcp_write_summary): Update.
12429 * ipa-reference.c (ipa_reference_write_summary): Update.
12430 * lto-cgraph.c (lto_output_varpool_node): New static function.
12431 (output_varpool): New function.
12432 (input_varpool_node): New static function.
12433 (input_varpool_1): New function.
12434 (input_cgraph): Input varpool.
12435 * ipa-pure-const.c (pure_const_write_summary): Update.
12436 * lto-streamer-out.c (lto_output): Update, output varpool too.
12437 (write_global_stream): Kill WPA hack.
12438 (produce_asm_for_decls): Update.
12439 (output_alias_pair_p): Handle variables.
12440 (output_unreferenced_globals): Output only needed partition of varpool.
12441 * ipa-inline.c (inline_write_summary): Update.
12442 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
12444 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
12445 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
12446 varpool_node_set_new, varpool_node_set_add,
12447 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
12448 debug_varpool_node_set): New functions.
12449 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
12450 (execute_one_pass): Process new decls too.
12451 (ipa_write_summaries_2): Pass around vsets.
12452 (ipa_write_summaries_1): Likewise.
12453 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
12455 (ipa_write_optimization_summaries_1): Pass around vsets.
12456 (ipa_write_optimization_summaries): Likewise.
12457 * varpool.c (varpool_get_node): New.
12458 (varpool_node): Update doubly linked lists.
12459 (varpool_remove_node): New.
12460 (dump_varpool_node): More dumping.
12461 (varpool_enqueue_needed_node): Update doubly linked lists.
12462 (decide_is_variable_needed): Kill ltrans hack.
12463 (varpool_finalize_decl): Kill lto hack.
12464 (varpool_assemble_decl): Skip decls in other partitions.
12465 (varpool_assemble_pending_decls): Update doubly linkes lists.
12466 (varpool_empty_needed_queue): Likewise.
12467 (varpool_extra_name_alias): Likewise.
12468 * lto-streamer.c (lto_get_section_name): Add vars section.
12469 * lto-streamer.h (lto_section_type): Update.
12470 (output_varpool, input_varpool): Declare.
12472 2010-04-28 Mike Stump <mikestump@comcast.net>
12474 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
12476 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
12478 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
12479 record or union type with RECORD_OR_UNION_TYPE_P predicate.
12480 (lto_input_ts_type_tree_pointers): Likewise.
12481 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
12482 (lto_output_ts_type_tree_pointers): Likewise.
12484 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
12486 Uniquization of constants at the Tree level
12487 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
12488 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
12490 (tree_output_constant_def): Declare.
12491 * gimplify.c (gimplify_init_constructor): When using block copy, first
12492 uniquize the constant constructor on the RHS.
12493 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
12494 DECL_IN_CONSTANT_POOL flag.
12495 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
12496 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
12498 (assemble_variable): Deal with symbols belonging to the tree constant
12500 (get_constant_section): Add ALIGN parameter and simplify.
12501 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
12502 (assemble_constant_contents): Use the expression of the VAR_DECL.
12503 (output_constant_def_contents): Use the alignment of the VAR_DECL.
12504 (tree_output_constant_def): New global function.
12505 (mark_constant): Use the expression of the VAR_DECL.
12506 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
12508 (output_object_block): Likewise and assemble the expression.
12510 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
12512 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
12513 hash_tree, eq_tree): New tree hash table.
12514 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
12515 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
12516 lto_orig_address_remove): Reimplement.
12518 2010-04-28 Xinliang David Li <davidxl@google.com>
12521 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
12522 (compute_uninit_opnds_pos): New function.
12523 (is_non_loop_exit_postdominating): New function.
12524 (compute_control_dep_chain): New function.
12525 (find_pdom): New function.
12526 (convert_control_dep_chain_into_preds): New function.
12527 (find_predicates): New function.
12528 (find_control_equiv_block): New function.
12529 (collect_phi_def_edges): New function.
12530 (find_def_preds): New function.
12531 (find_dom): New function.
12532 (dump_predicates): New function.
12533 (get_cmp_code): New function.
12534 (is_value_included_in): New function.
12535 (find_matching_predicate_in_rest_chains): New function.
12536 (use_pred_not_overlap_with_undef_path_pred): New function.
12537 (is_use_properly_guarded): New function.
12538 (normalize_cond_1): New function.
12539 (is_and_or_or): New function.
12540 (normalize_cond): New function.
12541 (is_gcond_subset_of): New function.
12542 (is_subset_of_any): New function.
12543 (is_or_set_subset_of): New function.
12544 (is_and_set_subset_of): New function.
12545 (is_norm_cond_subset_of): New function.
12546 (is_pred_expr_subset_of): New function.
12547 (is_pred_chain_subset_of): New function.
12548 (is_included_in): New function.
12549 (is_superset_of): New function.
12550 (find_uninit_use): New function.
12551 (warn_uninitialized_phi): New function.
12552 (compute_possibly_undefined_names): New function.
12553 (ssa_undefined_value_p): New function.
12554 (execute_late_warn_uninitialized): New function.
12555 * tree-ssa.c (ssa_undefined_value_p): Removed.
12556 (warn_uninit): Changed to extern.
12557 (warn_uninitialized_phi): Removed.
12558 (warn_uninitialized_vars): Changed to extern.
12559 (execute_late_warn_uninitialized): Removed
12560 * tree-flow.h: Add new prototypes.
12561 * timevar.def: Add new time variable.
12562 * Makefile.in: Add new build file.
12564 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
12566 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
12569 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12572 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
12574 2010-04-28 Martin Jambor <mjambor@suse.cz>
12576 * cgraph.h (struct cgraph_node): New field indirect_calls.
12577 (struct cgraph_indirect_call_info): New type.
12578 (struct cgraph_edge): Removed field indirect_call. New fields
12579 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
12580 (cgraph_create_indirect_edge): Declare.
12581 (cgraph_make_edge_direct): Likewise.
12582 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
12583 * ipa-prop.h (struct ipa_param_call_note): Removed.
12584 (struct ipa_node_params): Removed field param_calls.
12585 (ipa_create_all_structures_for_iinln): Declare.
12586 * cgraph.c: Described indirect edges and uids in initial comment.
12587 (cgraph_add_edge_to_call_site_hash): New function.
12588 (cgraph_edge): Search also among the indirect edges, use
12589 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
12590 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
12591 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
12593 (initialize_inline_failed): Assign a reason to indirect edges.
12594 (cgraph_create_edge_1): New function.
12595 (cgraph_create_edge): Moved some functionality to
12596 cgraph_create_edge_1.
12597 (cgraph_create_indirect_edge): New function.
12598 (cgraph_edge_remove_callee): Add an assert checking for
12600 (cgraph_edge_remove_caller): Special-case indirect edges.
12601 (cgraph_remove_edge): Likewise.
12602 (cgraph_set_edge_callee): New function.
12603 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
12604 (cgraph_make_edge_direct): New function.
12605 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
12606 the declaration of the call statement matches.
12607 (cgraph_node_remove_callees): Special-case indirect edges.
12608 (cgraph_clone_edge): Likewise.
12609 (cgraph_clone_node): Clone also the indirect edges.
12610 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
12611 indirect_call, dump count of indirect_calls edges.
12612 * ipa-prop.c (iinlining_processed_edges): New variable.
12613 (ipa_note_param_call): Create indirect edges instead of
12614 creating notes. New parameter node.
12615 (ipa_analyze_call_uses): New parameter node, pass it on to
12616 ipa_note_param_call.
12617 (ipa_analyze_stmt_uses): Likewise.
12618 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
12619 (print_edge_addition_message): Work on edges rather than on notes.
12620 (update_call_notes_after_inlining): Likewise, renamed to
12621 update_indirect_edges_after_inlining.
12622 (ipa_create_all_structures_for_iinln): New function.
12623 (ipa_free_node_params_substructures): Do not free notes.
12624 (ipa_edge_duplication_hook): Propagate bits within
12625 iinlining_processed_edges bitmap.
12626 (ipa_node_duplication_hook): Do not duplicate notes.
12627 (free_all_ipa_structures_after_ipa_cp): Renamed to
12628 ipa_free_all_structures_after_ipa_cp.
12629 (free_all_ipa_structures_after_iinln): Renamed to
12630 ipa_free_all_structures_after_iinln.
12631 (ipa_write_param_call_note): Removed.
12632 (ipa_read_param_call_note): Removed.
12633 (ipa_write_indirect_edge_info): New function.
12634 (ipa_read_indirect_edge_info): Likewise.
12635 (ipa_write_node_info): Do not stream notes, do stream information
12637 (ipa_read_node_info): Likewise.
12638 (lto_ipa_fixup_call_notes): Removed.
12639 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
12640 * ipa-inline.c (pass_ipa_inline): Likewise.
12641 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
12642 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
12643 * tree-inline.c (copy_bb): Removed an unnecessary double check for
12645 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
12647 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
12648 (output_cgraph): Stream also indirect edges.
12649 (lto_output_edge): Added capability to stream indirect edges.
12650 (input_edge): Likewise.
12651 (input_cgraph_1): Likewise.
12652 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
12655 2010-04-28 Richard Guenther <rguenther@suse.de>
12657 PR tree-optimization/43879
12658 PR tree-optimization/43909
12659 * tree-ssa-structalias.c (struct variable_info): Add
12660 only_restrict_pointers flag.
12661 (new_var_info): Initialize it. Increment stats.total_vars here.
12662 (create_function_info_for): Do not increment stats.total_vars here.
12663 (get_function_part_constraint): Fix build with C++.
12664 (insert_into_field_list): Remove.
12665 (push_fields_onto_fieldstack): Properly merge fields.
12666 (create_variable_info_for): Split and simplify.
12667 (create_variable_info_for_1): New piece.
12668 (intra_create_variable_infos): Properly make restrict constraints
12671 2010-04-28 Richard Guenther <rguenther@suse.de>
12674 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
12676 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
12677 Jan Hubicka <hubicka@ucw.cz>
12679 * doc/invoke.texi (-Wsuggest-attribute=const,
12680 -Wsuggest-attribute=pure): Document.
12681 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
12682 (function_always_visible_to_compiler_p,
12683 suggest_attribute, warn_function_pure, warn_function_const):
12685 (check_call): Improve debug info.
12686 (analyze_function): Do not check availability.
12687 (add_new_function): Check availability.
12688 (propagate): Output warnings.
12689 (skip_function_for_local_pure_const): New function.
12690 (local_pure_const): Use it; output warnings.
12691 * common.opt (Wsuggest-attribute=const,
12692 Wsuggest-attribute=pure): New.
12694 2010-04-27 Jakub Jelinek <jakub@redhat.com>
12696 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
12697 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
12698 or DW_CFA_def_cfa_offset{,_sf}.
12700 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
12702 * tree.h: Fix truncated long macros.
12704 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
12706 * collect2.c (TARGET_64BIT): Redefine to target's default.
12707 * tlink.c: Likewise.
12708 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
12709 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
12710 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
12711 for underscoring __USER_LABEL_PREFIX__.
12712 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
12713 (SUB_LINK_ENTRY32): New.
12714 (SUB_LINK_ENTRY64): New.
12715 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
12716 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
12717 (SUB_LINK_ENTRY64): New.
12718 (SUB_LINK_ENTRY): New.
12719 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
12720 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
12721 x64 target is choosen.
12722 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
12723 * configure: Regenerated.
12724 * configure.ac (leading-mingw64-underscores): Option added.
12726 2010-04-27 Jan Hubicka <jh@suse.cz>
12728 * doc/invoke.texi (-fipa-profile): Document.
12729 * opts.c (decode_options): Enable ipa-profile at -O1.
12730 * timevar.def (TV_IPA_PROFILE): Define.
12731 * common.opt (fipa-profile): Add.
12732 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
12734 (cgraph_propagate_frequency): Handle only local ones.
12735 * tree-pass.h (pass_ipa_profile): Declare.
12736 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
12737 (pass_ipa_profile): Use TV_IPA_PROFILE.
12738 * ipa.c (ipa_profile): New function.
12739 (gate_ipa_profile): Likewise.
12740 (pass_ipa_profile): New global variable.
12741 * passes.c (pass_ipa_profile): New.
12743 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
12745 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
12747 2010-04-27 Martin Jambor <mjambor@suse.cz>
12749 PR middle-end/43812
12750 * ipa.c (dissolve_same_comdat_group_list): New function.
12751 (function_and_variable_visibility): Call
12752 dissolve_same_comdat_group_list when comdat group contains external or
12754 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
12755 lists are circular and that they contain only DECL_ONE_ONLY nodes.
12757 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
12759 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
12760 (const_hash_1) <VECTOR_CST>: New case.
12761 (compare_constant) <VECTOR_CST>: Likewise.
12762 <ADDR_EXPR>: Deal with LABEL_REFs.
12763 (copy_constant) <VECTOR_CST>: New case.
12765 2010-04-27 Jan Hubicka <jh@suse.cz>
12767 * cgraph.c (cgraph_propagate_frequency): New function.
12768 * cgraph.h (cgraph_propagate_frequency): Declare.
12769 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
12770 cgraph_propagate_frequency.
12772 2010-04-27 Jakub Jelinek <jakub@redhat.com>
12774 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
12776 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
12779 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
12780 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
12781 here to determine which regs to push and how much stack to reserve.
12783 2010-04-27 Jie Zhang <jie@codesourcery.com>
12785 * doc/gimple.texi (gimple_statement_with_ops): Remove
12786 addresses_taken field.
12787 (gimple_statement_with_memory_ops): Likewise.
12789 2010-04-27 Jan Hubicka <jh@suse.cz>
12791 * tree-inline.c (eni_inlining_weights): Remove.
12792 (estimate_num_insns): Special case more builtins.
12794 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
12797 * c-typeck.c (build_binary_op): Move forward check for comparison
12798 pointer with null pointer constant and adjust the diagnostic message.
12800 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
12803 * configure.ac (gcc_cv_as_section_has_align): Set if installed
12804 binutils supports extended .section directive needed by LTO, or
12805 warn if older binutils found.
12806 (LTO_BINARY_READER): New AC_SUBST'd variable.
12807 (LTO_USE_LIBELF): Likewise.
12808 * gcc/config.gcc (lto_binary_reader): New target-specific configure
12810 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
12811 (LTO_USE_LIBELF): Likewise.
12812 * configure: Regenerate.
12814 * collect2.c (is_elf): Rename from this ...
12815 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
12816 object files in addition to ELF-formatted ones.
12817 (scan_prog_file): Caller updated. Also allow for LTO info marker
12818 symbol to be prefixed or not by an extra underscore.
12820 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
12821 * config/i386/winnt.c: Also #include lto-streamer.h
12822 (i386_pe_asm_named_section): Specify 1-byte section alignment for
12823 LTO named sections.
12824 (i386_pe_asm_output_aligned_decl_common): Add comment.
12825 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
12827 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
12830 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
12831 Add missing earlyclobber for second alternative.
12833 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
12835 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
12836 bits for artificial defs at the top of the block.
12837 * fwprop.c (single_def_use_enter_block): Don't call it.
12839 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
12842 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
12843 instead of "$gcc_cv_objdump -T".
12844 Use "-undefined dynamic_lookup" on darwin.
12845 * gcc/configure: Regenerate.
12847 2010-04-26 Jakub Jelinek <jakub@redhat.com>
12850 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
12852 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
12854 * c-parser.c (struct c_token): Move location field up.
12855 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
12856 (struct c_declspecs): Convert typespec_word, storage_class, and
12857 default_int_p into bitfields.
12858 (struct c_declarator): Move loc field up.
12860 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
12862 * cfgloop.h (struct loop): Move can_be_parallel field up.
12863 * ipa-prop.h (struct ip_node_params): Move bitfields up.
12864 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
12866 (struct iv_cand): Convert pos field into a bitfield.
12867 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
12869 (struct _stmt_vec_info): Shuffle fields for better packing.
12871 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
12873 * varasm.c (IN_NAMED_SECTION): Remove guard.
12874 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
12875 (IN_NAMED_SECTION_P): ...this.
12876 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
12877 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
12879 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
12881 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
12882 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
12883 of shadowing it. Fix comments.
12885 2010-04-26 Jan Hubicka <jh@suse.cz>
12887 * cgraph.c (cgraph_create_node): Set node frequency to normal.
12888 (cgraph_clone_node): Copy function frequency.
12889 * cgraph.h (node_frequency): New enum
12890 (struct cgraph_node): Add.
12891 * final.c (rest_of_clean_state): Update.
12892 * lto-cgraph.c (lto_output_node): Output node frequency.
12893 (input_overwrite_node): Input node frequency.
12894 * tre-ssa-loop-ivopts (computation_cost): Update.
12895 * lto-streamer-out.c (output_function): Do not output function
12897 * predict.c (maybe_hot_frequency_p): Update and handle functions
12899 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
12901 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
12902 (compute_function_frequency): Set noreturn functions to be executed
12904 (choose_function_section): Update.
12905 * lto-streamer-in.c (input_function): Do not input function frequency.
12906 * function.c (allocate_struct_function): Do not initialize function
12908 * function.h (function_frequency): Remove.
12909 (struct function): Remove function frequency.
12910 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
12911 (try_update): Update.
12912 * tree-inline.c (initialize_cfun): Do not update function frequency.
12913 * passes.c (pass_init_dump_file): Update.
12914 * i386.c (ix86_compute_frame_layout): Update.
12915 (ix86_pad_returns): Update.
12917 2010-04-26 Jie Zhang <jie@codesourcery.com>
12919 PR tree-optimization/43833
12920 * tree-vrp.c (range_int_cst_p): New.
12921 (range_int_cst_singleton_p): New.
12922 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
12923 when both operands are constants. Use range_int_cst_p in
12926 2010-04-26 Jan Hubicka <jh@suse.cz>
12928 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
12930 2010-04-26 Richard Guenther <rguenther@suse.de>
12933 * gimple.c (gimple_decl_printable_name): Deal gracefully
12934 with a NULL DECL_NAME.
12936 2010-04-26 Richard Guenther <rguenther@suse.de>
12939 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
12940 if emitting debug information and it is either a function
12941 or a namespace decl.
12943 2010-04-26 Ira Rosen <irar@il.ibm.com>
12945 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
12946 determine if the statement is vectorizable, and a macro to access it.
12947 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12948 Skip statements that can't be vectorized. If the analysis fails,
12949 mark the statement as unvectorizable if vectorizing basic block.
12950 (vect_compute_data_refs_alignment): Likewise.
12951 (vect_verify_datarefs_alignment): Skip statements marked as
12952 unvectorizable. Add print.
12953 (vect_analyze_group_access): Skip statements that can't be
12954 vectorized. If the analysis fails, mark the statement as
12955 unvectorizable if vectorizing basic block.
12956 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
12957 * tree-vect-stmts.c (vectorizable_store): Fix the number of
12958 generated stmts for SLP.
12959 (new_stmt_vec_info): Initialize the new field.
12960 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
12961 statements marked as unvectorizable.
12963 2010-04-25 Joseph Myers <joseph@codesourcery.com>
12965 * c-common.c (flag_isoc1x): New.
12966 (flag_isoc99): Update comment.
12967 * c-common.h (flag_isoc1x): New.
12968 (flag_isoc99): Update comment.
12969 * c-cppbuiltin.c (builtin_define_float_constants): Also define
12970 __<type>_DECIMAL_DIG__.
12971 * c-opts.c (set_std_c1x): New.
12972 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
12973 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
12974 * c.opt (-std=c1x, -std=gnu1x): New options.
12975 * doc/cpp.texi: Mention -std=c1x.
12976 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
12977 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
12978 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
12979 * doc/standards.texi: Mention C1X.
12980 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
12981 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
12982 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
12985 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
12987 * config/i386/gmon-sol2.c (_mcleanup): Change format string
12988 placeholder from 0x%x to %#x.
12989 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
12990 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
12991 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
12992 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
12993 * config/i386/i386.c (ix86_target_string): Ditto.
12994 (output_pic_addr_const): Ditto.
12995 (print_operand): Ditto.
12997 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
12999 * combine.c (find_split_point): Add third argument. Use it
13000 to find nested multiply-accumulate instructions. Adjust calls.
13001 (try_combine): Adjust call to find_split_point.
13003 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
13005 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
13007 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
13009 PR tree-optimization/41442
13010 * fold-const.c (merge_truthop_with_opposite_arm): New function.
13011 (fold_binary_loc): Call it.
13013 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
13015 * toplev.c (general_init): Set default for fdiagnostics-show-option.
13016 * opts.c (common_handle_option): Allow disabling it.
13017 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
13019 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
13021 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
13022 between modes if both types are integral.
13024 2010-04-23 Richard Guenther <rguenther@suse.de>
13026 PR tree-optimization/43572
13027 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
13029 2010-04-23 Richard Guenther <rguenther@suse.de>
13032 * tree-inline.c (tree_can_inline_p): Also check compatibility
13035 2010-04-23 Martin Jambor <mjambor@suse.cz>
13037 PR tree-optimization/43846
13038 * tree-sra.c (struct access): New flag grp_assignment_read.
13039 (build_accesses_from_assign): Set grp_assignment_read.
13040 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
13041 (enum mark_read_status): New type.
13042 (analyze_access_subtree): Propagate grp_assignment_read, create
13043 accesses also if both direct_read and root->grp_assignment_read.
13045 2010-04-23 Martin Jambor <mjambor@suse.cz>
13047 PR middle-end/43835
13048 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
13049 function does not have type attributes.
13051 2010-04-23 Richard Guenther <rguenther@suse.de>
13054 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
13057 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13059 * sese.h (create_if_region_on_edge): Remove.
13061 * sese.c (create_if_region_on_edge): Make static.
13063 * tree-inline.c: Do not include ggc.h.
13065 * expr.c: Do not include ggc.h.
13067 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
13070 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
13073 * config/sh/sh.c (find_barrier): Don't emit a constant pool
13074 in the middle of insns for casesi_worker_2.
13076 2010-04-22 David Edelsohn <edelsohn@gnu.org>
13078 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
13080 2010-04-22 Ira Rosen <irar@il.ibm.com>
13082 PR tree-optimization/43842
13083 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
13084 loop unrolling in update of exit phis. Fix comment.
13085 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
13086 least two reduction statements in the loop before starting SLP
13089 2010-04-22 Nick Clifton <nickc@redhat.com>
13091 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
13093 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
13095 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
13096 to simplify a + ~a.
13098 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13100 * tree-parloops.c (loop_parallel_p): New argument
13101 parloop_obstack. Pass it down.
13102 (parallelize_loops): New variable parloop_obstack. Initialize it,
13103 pass it down, free it.
13105 * tree-loop-linear.c (linear_transform_loops): Pass down
13108 * tree-data-ref.h (lambda_compute_access_matrices): New argument
13109 of type struct obstack *.
13111 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
13112 scratch_obstack. Initialize it, pass down, free it.
13114 * lambda.h (lambda_loop_new): Remove.
13115 (lambda_matrix_new, lambda_matrix_inverse)
13116 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
13117 argument of type struct obstack *.
13119 * lambda-trans.c (lambda_trans_matrix_new): New argument
13120 lambda_obstack. Pass it down, use obstack allocation for ret.
13121 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
13124 * lambda-mat.c (lambda_matrix_get_column)
13125 (lambda_matrix_project_to_null): Remove.
13126 (lambda_matrix_new): New argument lambda_obstack. Use obstack
13127 allocation for mat.
13128 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
13131 * lambda-code.c (lambda_loop_new): New function.
13132 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
13133 (lambda_compute_auxillary_space, lambda_compute_target_space)
13134 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
13135 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
13136 (build_access_matrix): New argument lambda_obstack. Use obstack
13138 (lambda_compute_step_signs, lambda_compute_access_matrices): New
13139 argument lambda_obstack. Pass it down.
13141 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
13143 * optabs.h (expand_widening_mult): Declare.
13145 2010-04-22 Richard Guenther <rguenther@suse.de>
13147 PR tree-optimization/43845
13148 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
13149 lookup the CALL_EXPR function and arguments.
13151 2010-04-22 Nick Clifton <nickc@redhat.com>
13153 * config/stormy16/stormy16.c
13154 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
13155 * config/stormy16/stormy16.h: Tidy up formatting.
13156 (DONT_USE_BUILTIN_SETJMP): Remove definition.
13157 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
13158 (ineqbranchsi): Delete pattern.
13159 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
13160 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
13161 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
13162 stormy16-lib2-ucmpsi2.c.
13164 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
13166 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
13167 df_simulate_find_noclobber_defs as appropriate. Keep track of an
13168 extra set merge_set_noclobber, and use it to relax the final test
13170 * df.h (df_simulate_find_noclobber_defs): Declare.
13171 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
13173 (df_simulate_find_noclobber_defs): New function.
13175 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
13177 * config/i386/i386.md: Use {} around multi-line preparation statements.
13179 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13181 * c-tree.h (push_init_level, pop_init_level, set_init_index)
13182 (process_init_element): New argument of type struct obstack *.
13184 * c-typeck.c (push_init_level, pop_init_level, set_designator)
13185 (set_init_index, set_init_label, set_nonincremental_init)
13186 (set_nonincremental_init_from_string, find_init_member)
13187 (output_init_element, output_pending_init_elements)
13188 (process_init_element): New argument braced_init_obstack. Pass it
13190 (push_range_stack, add_pending_init): New argument
13191 braced_init_obstack. Use obstack allocation.
13193 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
13194 braced_init_obstack. Pass it down.
13195 (c_parser_braced_init): New variables ret, braced_init_obstack.
13196 Initialize obstack, pass it down and finally free it.
13198 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
13200 PR middle-end/29274
13201 * tree-pass.h (pass_optimize_widening_mul): Declare.
13202 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
13203 gate_optimize_widening_mul): New static functions.
13204 (pass_optimize_widening_mul): New.
13205 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
13206 <case MULT_EXPR>: Remove support for widening multiplies.
13207 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
13208 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
13209 simplify_gen_unary rather than directly building extensions.
13210 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
13212 * expmed.c (expand_widening_mult): New function.
13213 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
13215 2010-04-21 Jan Hubicka <jh@suse.cz>
13217 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
13218 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
13219 * lto-wpa-fixup.c: Remove.
13220 * Makefile.in (lto-wpa-fixup.o): Remove.
13221 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
13222 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
13223 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
13225 2010-04-21 Jan Hubicka <jh@suse.cz>
13227 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
13228 add write_optimization_summary, read_optimization_summary.
13229 (ipa_write_summaries_of_cgraph_node_set): Remove.
13230 (ipa_write_optimization_summaries): Declare.
13231 (ipa_read_optimization_summaries): Declare.
13232 * ipa-cp.c (pass_ipa_cp): Update.
13233 * ipa-reference.c (pass_ipa_reference): Update.
13234 * ipa-pure-const.c (pass_ipa_pure_const): Update.
13235 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
13237 * ipa-inline.c (pass_ipa_inline): Update.
13238 * ipa.c (pass_ipa_whole_program): Update.
13239 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
13240 * passes.c (ipa_write_summaries_1): Do not test wpa.
13241 (ipa_write_optimization_summaries_1): New.
13242 (ipa_write_optimization_summaries): New.
13243 (ipa_read_summaries): Do not test ltrans.
13244 (ipa_read_optimization_summaries_1): New.
13245 (ipa_read_optimization_summaries): New.
13247 2010-04-21 Jan Hubicka <jh@suse.cz>
13249 * lto-cgraph.c (lto_output_node): Do not output comdat groups
13250 for boundary nodes.
13251 (output_cgraph): Do not arrange comdat groups for boundary nodes.
13253 2010-04-21 Jakub Jelinek <jakub@redhat.com>
13256 * dwarf2out.c (add_name_and_src_coords_attributes): Add
13257 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
13259 2010-04-21 Jan Hubicka <jh@suse.cz>
13261 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
13263 2010-04-21 Jan Hubicka <jh@suse.cz>
13265 * varpool.c (decide_is_variable_needed): Variable is always needed
13268 2010-04-21 Jan Hubicka <jh@suse.cz>
13270 * opts.c (decode_options): Enable pure-const pass for whopr.
13272 2010-04-21 Jan Hubicka <jh@suse.cz>
13274 * cgraph.c (dump_cgraph_node): Dump also assembler name.
13275 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
13277 (cgraph_decide_inlining): Do not expect callee to be removed in all
13280 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
13282 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
13284 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
13286 * config/i386/i386.md (x86_shrd): Add athlon_decode and
13287 amdfam10_decode attributes.
13289 2010-04-21 Jakub Jelinek <jakub@redhat.com>
13291 PR middle-end/43570
13292 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
13293 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
13294 (lower_copyprivate_clauses): Use private var in outer
13295 context instead of original var. Make sure the types
13296 are correct for VLAs.
13298 2010-04-21 Richard Guenther <rguenther@suse.de>
13300 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
13301 to non-pointer objects.
13303 2010-04-21 Jakub Jelinek <jakub@redhat.com>
13305 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
13306 last chain entry if it starts with the still current label.
13307 (add_location_or_const_value_attribute): Check that
13308 loc_list->first->next is NULL instead of comparing ->first with ->last.
13309 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
13310 to add_var_loc_to_decl.
13312 * dwarf2out.c (output_call_frame_info): For dw_cie_version
13313 >= 4 add also address size and segment size fields into CIE header.
13315 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
13316 long as address size is the same as sizeof (void *) and
13318 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
13319 address size or segment size is unexpected, return DW_EH_PE_omit.
13320 (classify_object_over_fdes): If get_cie_encoding returned
13321 DW_EH_PE_omit, return -1.
13322 (init_object): If classify_object_over_fdes returned -1,
13323 pretend there were no FDEs at all.
13325 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
13327 * config/i386/i386.md (bswap<mode>2): Macroize expander from
13328 bswap{si,di}2 using SWI48 mode iterator.
13329 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
13330 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
13331 set modrm attribute of bswap insn to 0 and remove length attribute.
13332 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
13333 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
13334 set mode attribute to <MODE> and remove length attribute.
13336 2010-04-20 James E. Wilson <wilson@codesourcery.com>
13338 PR rtl-optimization/43520
13339 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
13340 zero available registers.
13342 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13344 * builtins.c (fold_builtin_cproj): Fold more cases.
13346 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13348 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
13349 (fold_builtin_1): Fold builtin cproj.
13350 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
13351 Use ATTR_CONST_NOTHROW_LIST.
13353 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
13355 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
13356 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
13357 ffsi2_no_cmove for !TARGET_CMOVE.
13358 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
13359 (ffssi2): Remove expander.
13360 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
13362 (ctz<mode>2): Ditto from ctz{si,di}2.
13363 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
13365 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
13368 2010-04-20 Jakub Jelinek <jakub@redhat.com>
13370 * dwarf2out.c (AT_linkage_name): Define.
13371 (clone_as_declaration): Handle DW_AT_linkage_name.
13372 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
13373 of DW_AT_MIPS_linkage_name.
13374 (move_linkage_attr): Likewise.
13375 (dwarf2out_finish): Likewise.
13377 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
13379 PR middle-end/41952
13380 * fold-const.c (fold_comparison): New folding rule.
13382 2010-04-20 Anatoly Sokolov <aesok@post.ru>
13384 * double-int.h (double_int_setbit): Declare.
13385 * double-int.c (double_int_setbit): New function.
13386 * rtl.h (immed_double_int_const): Declare.
13387 * emit-rtl.c (immed_double_int_const): New function.
13388 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
13389 and immed_double_int_const functions.
13390 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
13391 expand_copysign_bit): (Ditto.).
13392 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
13393 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
13394 * dojump.c (prefer_and_bit_test): (Ditto.).
13395 * expr.c (convert_modes, reduce_to_bit_field_precision,
13396 const_vector_from_tree): (Ditto.).
13397 * expmed.c (mask_rtx, lshift_value): (Ditto.).
13399 2010-04-20 Jan Hubicka <jh@suse.cz>
13401 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
13402 (dump_cgraph_node): Dump new flags.
13403 * cgraph.h (struct cgraph_node): Add flags
13404 reachable_from_other_partition and in_other_partition.
13405 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
13406 other partition can not be removed.
13407 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
13408 the other partition must be output; silence sanity checking on
13409 leaking functions bodies from other paritition.
13410 * lto-cgraph.c (reachable_from_other_partition_p): New function.
13411 (lto_output_node): Output new flags; do not sanity check that inline
13412 clones are output; drop lto_forced_extern_inline_p code; do not mock
13413 visibility flags at partition boundaries.
13414 (add_node_to): New function.
13415 (output_cgraph): Use it to sort functions so masters appear before
13417 (input_overwrite_node): Input new flags.
13418 * passes.c (ipa_write_summaries): Do not call
13419 lto_new_extern_inline_states.
13420 * lto-section-out.c (forced_extern_inline,
13421 lto_new_extern_inline_states lto_delete_extern_inline_states,
13422 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
13423 * lto-streamer.h (lto_new_extern_inline_states,
13424 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
13425 lto_forced_extern_inline_p): Kill.
13427 2010-04-20 Richard Guenther <rguenther@suse.de>
13429 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
13430 from vars that can have pointers.
13431 (process_constraint): Dump useless constraints.
13433 2010-04-20 Richard Guenther <rguenther@suse.de>
13435 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
13436 (dump_sa_points_to_info): Remove asserts.
13437 (init_base_vars): nothing_id isn't an escape point nor does it
13440 2010-04-20 Jakub Jelinek <jakub@redhat.com>
13442 * tree.h (TYPE_REF_IS_RVALUE): Define.
13443 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
13444 should_move_die_to_comdat, prune_unused_types_walk): Handle
13445 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
13446 (modified_type_die, gen_reference_type_die): Emit
13447 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
13448 if TYPE_REF_IS_RVALUE and -gdwarf-4.
13450 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13453 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
13454 calls for -fpic -m31 if they have been sibcall optimized.
13456 2010-04-19 James E. Wilson <wilson@codesourcery.com>
13458 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
13459 ar.lc fixed and call-used.
13461 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
13463 2010-04-19 Jan Hubicka <jh@suse.cz>
13465 * opts.c (decode_options): Disable whpr incompatible passes.
13466 * lto/lto.c (lto_1_to_1_map): Skip clones.
13467 (read_cgraph_and_symbols): Do not mark everything as needed.
13468 (do_whole_program_analysis): Do map only after optimizing;
13469 set proper cgraph_state; use passmanager.
13471 2010-04-19 DJ Delorie <dj@redhat.com>
13473 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
13474 POINTER_PLUS_EXPR and fix them.
13476 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
13478 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
13479 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
13480 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
13481 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
13482 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
13483 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
13484 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
13485 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
13486 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
13487 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
13488 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
13490 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
13492 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
13493 (check_cond_move_block): Likewise.
13494 (cond_move_process_if_block): Likewise.
13495 (noce_find_if_block): Improve formatting.
13496 (find_if_header): Pass 0 to memset and tweak conditions.
13497 (cond_exec_find_if_block): Fix long lines and tweak conditions.
13499 2010-04-19 Jakub Jelinek <jakub@redhat.com>
13501 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
13504 PR middle-end/43337
13505 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
13506 with non-local decl doesn't need chain.
13508 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
13510 * ira-color.c (allocno_reload_assign): Avoid accumulating
13511 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
13513 2010-04-19 Martin Jambor <mjambor@suse.cz>
13515 * gimple.h (create_tmp_reg): Declare.
13516 * gimplify.c (create_tmp_reg): New function.
13517 (gimplify_return_expr): Use create_tmp_reg.
13518 (gimplify_omp_atomic): Likewise.
13519 (gimple_regimplify_operands): Likewise.
13520 * tree-dfa.c (make_rename_temp): Likewise.
13521 * tree-predcom.c (predcom_tmp_var): Likewise.
13522 (reassociate_to_the_same_stmt): Likewise.
13523 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
13524 (get_replaced_param_substitute): Likewise.
13525 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
13526 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
13527 * tree-ssa-pre.c (get_representative_for): Likewise.
13528 (create_expression_by_pieces): Likewise.
13529 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
13530 (create_tailcall_accumulator): Likewise.
13532 2010-04-19 Martin Jambor <mjambor@suse.cz>
13534 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
13536 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
13538 2010-04-19 Richard Guenther <rguenther@suse.de>
13540 PR tree-optimization/43796
13541 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
13542 from SCEV in the lattice.
13543 (vrp_visit_phi_node): Dump change.
13545 2010-04-19 Richard Guenther <rguenther@suse.de>
13547 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
13548 * configure: Re-generated.
13550 2010-04-19 Richard Guenther <rguenther@suse.de>
13552 PR tree-optimization/43783
13553 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
13554 constant ARRAY_REF operands two and three if possible.
13556 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
13559 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
13561 2010-04-19 Jie Zhang <jie@codesourcery.com>
13564 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
13566 2010-04-19 Ira Rosen <irar@il.ibm.com>
13568 PR tree-optimization/37027
13569 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
13570 and macro to access it.
13571 (vectorizable_reduction): Add argument.
13572 (vect_get_slp_defs): Likewise.
13573 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
13574 statements for possible use in SLP.
13575 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
13576 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
13577 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
13579 (vectorizable_reduction): Likewise.
13580 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
13582 (vectorizable_type_demotion, vectorizable_type_promotion,
13583 vectorizable_store): Likewise.
13584 (vect_analyze_stmt): Update call to vectorizable_reduction.
13585 (vect_transform_stmt): Likewise.
13586 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
13587 (vect_build_slp_tree): Fix indentation. Check that there are no loads
13588 from different interleaving chains in same node.
13589 (vect_slp_rearrange_stmts): New function.
13590 (vect_supported_load_permutation_p): Allow load permutations for
13591 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
13592 inside SLP nodes if necessary.
13593 (vect_analyze_slp_instance): Handle reductions.
13594 (vect_analyze_slp): Try to build SLP instances originating from groups
13596 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
13597 (vect_get_constant_vectors): Create initial vectors for reductions
13598 according to reduction code. Add new argument.
13599 (vect_get_slp_defs): Add new argument, pass it to
13600 vect_get_constant_vectors.
13601 (vect_schedule_slp_instance): Remove SLP tree root statements.
13603 2010-04-19 Jakub Jelinek <jakub@redhat.com>
13605 * tree.h (ENUM_IS_SCOPED): Define.
13606 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
13607 for ENUM_IS_SCOPED enums.
13609 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
13611 * fold-const.c (fold_comparison): Use ssizetype.
13612 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
13613 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
13614 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
13615 * tree-object-size.c (compute_object_sizes): Use size_type_node.
13617 * tree.h (initialize_sizetypes): Remove parameter.
13618 (build_common_tree_nodes): Remove second parameter.
13619 * stor-layout.c (initialize_sizetypes): Remove parameter.
13620 Always create an unsigned type.
13621 (set_sizetype): Assert that the passed type is unsigned and simplify.
13622 * tree.c (build_common_tree_nodes): Remove second parameter.
13623 Adjust call to initialize_sizetypes.
13624 * c-decl.c (c_init_decl_processing): Remove second argument in call to
13625 build_common_tree_nodes.
13627 2010-04-18 Matthias Klose <doko@ubuntu.com>
13629 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
13631 2010-04-18 Ira Rosen <irar@il.ibm.com>
13633 PR tree-optimization/43771
13634 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
13635 load permutation doesn't have gaps.
13637 2010-04-18 Jan Hubicka <jh@suse.cz>
13639 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
13640 (sse_prologue_save_insn expander): Use new pattern.
13641 (sse_prologue_save_insn1): New pattern and splitter.
13642 (sse_prologue_save_insn): Update to deal also with 64bit aligned
13644 * i386.c (setup_incoming_varargs_64): Do not compute jump
13646 (ix86_gimplify_va_arg): Update alignment needed.
13647 (ix86_local_alignment): Do not align all local arrays to 128bit.
13649 2010-04-17 Jan Hubicka <jh@suse.cz>
13651 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
13653 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
13655 * arm.md (negdi2): Remove redundant code to force values into a
13658 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
13660 * arm/bpabi.S: Add EABI alignment attributes to objects.
13661 * arm/bpabi-v6m.S: Likewise.
13662 * arm/crti.asm: Likewise.
13663 * arm/crtn.asm: Likewise.
13664 * arm/lib1funcs.asm: Likewise.
13665 * arm/libunwind.S: Likewise.
13667 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
13669 * arm-protos.h (tune_params): New structure.
13670 * arm.c (current_tune): New variable.
13671 (arm_constant_limit): Delete.
13672 (struct processors): Add pointer to the tune parameters.
13673 (arm_slowmul_tune): New tuning option.
13674 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
13675 (all_cores): Adjust to pick up the tuning model.
13676 (arm_constant_limit): New function.
13677 (arm_override_options): Select the appropriate tuning model. Delete
13678 initialization of arm_const_limit.
13679 (arm_split_constant): Use the new constant-limit model.
13680 (arm_rtx_costs): Pick up the current tuning model.
13681 * arm.md (is_strongarm, is_xscale): Delete.
13682 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
13683 for Xscale variant architectures.
13684 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
13686 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13688 * config/arm/arm.c (arm_gen_constant): Remove unused variable
13690 (arm_rtx_costs_1): Remove unused variable extra_cost.
13691 (arm_unwind_emit_set): Use variable offset.
13692 (thumb1_output_casesi): Remove unused variable flags.
13694 2010-04-16 Jeff Law <law@redhat.com>
13696 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
13697 needing assignment rather than doing a two-phase assignment. Remove
13698 unused variable 'm'.
13700 2010-04-16 Jakub Jelinek <jakub@redhat.com>
13703 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
13705 2010-04-16 Doug Kwan <dougkwan@google.com>
13707 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
13708 (next_operand_entry_id): New static variable.
13709 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
13710 (add_to_ops_vec): Assigned unique ID to operand entry.
13711 (struct oecount_s): New field ID.
13712 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
13713 (undistribute_ops_list): Assign unique IDs to oecounts.
13714 (init_reassoc): reset next_operand_entry_id.
13716 2010-04-16 Doug Kwan <dougkwan@google.com>
13718 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
13719 missing left parenthesis.
13721 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
13723 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
13724 *btdi_rex64 using SWI48 mode iterator.
13725 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
13726 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
13727 *jcc_btdi_mask_rex64.
13729 2010-04-16 Anatoly Sokolov <aesok@post.ru>
13731 * double-int.h (tree_to_double_int): Convert to macro.
13732 * double-int.c (tree_to_double_int): Remove.
13734 2010-04-16 Jakub Jelinek <jakub@redhat.com>
13737 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
13738 with want_address 2 and in case a single element list might be
13739 possible, call it again with want_address 0.
13741 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
13743 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
13744 case 'W' print operands for HI mode.
13745 * config/h8300/h8300.h (Y0, Y2) : New constraints.
13746 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
13747 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
13748 * config/h8300/predicate.md (bit_register_indirect_operand): New.
13750 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
13752 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
13753 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
13754 #xx:3 and #xx:4 mode.
13756 * config/h8300/h8300.md (inverted load with HImode dest): Add
13757 support for H8300SX.
13759 * config/h8300/predicate.md (bit_operand): Allow immediate values that
13760 satisfy 'U' constraint.
13762 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13764 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
13765 * configure: Regenerate.
13766 * config.in: Regenerate.
13767 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
13770 2010-04-16 Richard Guenther <rguenther@suse.de>
13772 * tree.h (struct tree_decl_minimal): Move pt_uid ...
13773 (struct tree_decl_common): ... here.
13774 (DECL_PT_UID): Adjust.
13775 (SET_DECL_PT_UID): Likewise.
13776 (DECL_PT_UID_SET_P): Likewise.
13778 2010-04-16 Richard Guenther <rguenther@suse.de>
13780 PR tree-optimization/43572
13781 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
13782 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
13783 * tree-flow.h (is_call_clobbered): Remove.
13784 * tree-flow-inline.h (is_call_clobbered): Likewise.
13785 * tree-dfa.c (dump_variable): Do not dump call clobber state.
13786 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
13787 (execute_return_slot_opt): Adjust.
13788 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
13789 check for call clobbered vars here.
13790 (find_tail_calls): Move tailcall verification to the
13793 2010-04-16 Diego Novillo <dnovillo@google.com>
13795 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
13797 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
13800 * config/arm/arm.md (cbranchqi4): New pattern.
13801 * config/arm/predicates.md (const0_operand,
13802 cbranchqi4_comparison_operator): New predicates.
13804 2010-04-16 Richard Guenther <rguenther@suse.de>
13806 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
13807 (dump_gimple_stmt): Likewise.
13809 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
13811 * recog.h (struct recog_data): New field is_operator.
13812 (struct insn_operand_data): New field is_operator.
13813 * recog.c (extract_insn): Set recog_data.is_operator.
13814 * genoutput.c (output_operand_data): Emit code to set the
13816 * reload.c (find_reloads): Use it rather than testing for an
13817 empty constraint string.
13820 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
13821 If the previous insn is a cbranchsi4_insn with the same arguments,
13822 omit the compare instruction.
13824 * config/arm/arm.md (addsi3_cbranch): If destination is a high
13825 register, inputs must be low registers and we need a low register
13826 scratch. Handle alternative 2 like alternative 3.
13828 2010-04-16 Jakub Jelinek <jakub@redhat.com>
13830 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
13831 don't call get_addr on both. If one expression is a VALUE and
13832 the other a REG, check VALUE's locs if the REG isn't among them.
13834 2010-04-16 Christian Bruel <christian.bruel@st.com>
13836 * config/sh/sh.h (sh_frame_pointer_required): New function.
13837 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
13838 (flag_omit_frame_pointer) Set.
13839 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
13840 (rounded_frame_size): Adjust size with outgoing_args_size.
13841 (sh_set_return_address): Must return from stack pointer.
13842 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
13843 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
13844 (ACCUMULATE_OUTGOING_ARGS): Define.
13845 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
13846 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
13848 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
13851 * config/sh/sh.c (sh_legitimize_reload_address): Use
13852 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
13853 Remove a unneeded check for offset_base.
13855 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
13857 * configure: Regenerated.
13859 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13861 * config/s390/s390.c (s390_call_save_register_used): Switch back
13862 to HARD_REGNO_NREGS.
13864 2010-04-15 Richard Guenther <rguenther@suse.de>
13866 * alias.c (alias_set_subset_of): Handle alias-set zero
13869 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
13870 Julian Brown <julian@codesourcery.com>
13872 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
13873 alternatives according to use of high and low regs.
13874 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
13875 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
13876 optimizing for size on Thumb-2.
13878 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
13880 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
13882 2010-04-15 Richard Guenther <rguenther@suse.de>
13884 * tree-ssa-structalias.c (struct variable_info): Add
13886 (new_var_info): Initialize it.
13887 (dump_constraints): Support printing last added constraints.
13888 (debug_constraints): Adjust.
13889 (dump_constraint_graph): Likewise.
13890 (make_heapvar_for): Check for NULL cfun.
13891 (get_function_part_constraint): New function.
13892 (get_fi_for_callee): Likewise.
13893 (find_func_aliases): Properly implement IPA PTA constraints.
13894 (process_ipa_clobber): New function.
13895 (find_func_clobbers): Likewise.
13896 (insert_into_field_list_sorted): Remove.
13897 (create_function_info_for): Properly allocate vars for IPA mode.
13898 Do not use insert_into_field_list_sorted.
13899 (create_variable_info_for): Properly generate constraints for
13900 global vars in IPA mode.
13901 (dump_solution_for_var): Always dump the solution.
13902 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
13903 (find_what_var_points_to): Adjust.
13904 (pt_solution_set): Change.
13905 (pt_solution_ior_into): New function.
13906 (pt_solution_empty_p): Export.
13907 (pt_solution_includes_global): Adjust.
13908 (pt_solution_includes_1): Likewise.
13909 (pt_solutions_intersect_1): Likewise.
13910 (dump_sa_points_to_info): Check some invariants.
13911 (solve_constraints): Move constraint dumping ...
13912 (compute_points_to_sets): ... here.
13913 (ipa_pta_execute): ... and here.
13914 (compute_may_aliases): Do not re-compute points-to info
13915 locally if IPA info is available.
13916 (ipa_escaped_pt): New global var.
13917 (ipa_pta_execute): Properly implement IPA PTA.
13918 * tree-into-ssa.c (dump_decl_set): Support dumping
13919 decls not in referenced-vars.
13920 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
13921 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
13922 (dump_points_to_solution): Likewise.
13923 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
13924 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
13925 (remap_gimple_stmt): Reset call clobber/use information if necessary.
13926 (copy_decl_to_var): Copy DECL_PT_UID.
13927 (copy_result_decl_to_var): Likewise.
13928 * tree.c (make_node_stat): Initialize DECL_PT_UID.
13929 (copy_node_stat): Copy it.
13930 * tree.h (DECL_PT_UID): New macro.
13931 (SET_DECL_PT_UID): Likewise.
13932 (DECL_PT_UID_SET_P): Likewise.
13933 (struct tree_decl_minimal): Add pt_uid member.
13934 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
13935 (pt_solution_empty_p): Declare.
13936 (pt_solution_set): Adjust.
13937 (ipa_escaped_pt): Declare.
13938 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
13939 * gimple-pretty-print.c (pp_points_to_solution): New function.
13940 (dump_gimple_call): Dump call clobber/use information.
13941 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
13942 * tree-pass.h (TDF_ALIAS): New dump option.
13943 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
13944 * doc/invoke.texi (-fipa-pta): Update documentation.
13946 2010-04-15 Richard Guenther <rguenther@suse.de>
13948 * Makefile.in (OBJS-common): Add gimple-fold.o.
13949 (gimple-fold.o): New rule.
13950 * tree.h (maybe_fold_offset_to_reference,
13951 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
13953 * gimple.h: ... here.
13954 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
13955 may_propagate_address_into_dereference): Move prototypes ...
13956 * gimple.h: ... here.
13957 * tree-ssa-ccp.c (get_symbol_constant_value,
13958 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
13959 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
13960 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
13961 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
13962 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
13963 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
13964 gimplify_and_update_call_from_tree): Move ...
13965 * gimple-fold.c: ... here. New file.
13966 (ccp_fold_builtin): Rename to ...
13967 (gimple_fold_builtin): ... this.
13968 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
13970 2010-04-15 Richard Guenther <rguenther@suse.de>
13972 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
13973 fit_double_type, force_fit_type_double, add_double_with_sign,
13974 neg_double, mul_double_with_sign, lshift_double, rshift_double,
13975 lrotate_double, rrotate_double, div_and_round_double): Move ...
13976 * double-int.c: ... here.
13977 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
13978 add_double, neg_double, mul_double_with_sign, mul_double,
13979 lshift_double, rshift_double, lrotate_double, rrotate_double,
13980 div_and_round_double): Move prototypes ...
13981 * double-int.h: ... here.
13983 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
13986 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
13987 matching constraints to ensure inputs match the output.
13989 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
13992 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
13993 in an input-only operand.
13995 2010-04-15 Anatoly Sokolov <aesok@post.ru>
13997 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
13998 (double_int_not, double_int_lshift, double_int_rshift): Declare.
13999 (double_int_negative_p): Convert to static inline function.
14000 * double-int.c (double_int_lshift, double_int_lshift): New functions.
14001 (double_int_negative_p): Remove.
14002 * tree.h (lshift_double, rshift_double):
14003 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
14004 * fold-const.c (fold_convert_const_int_from_real,
14005 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
14006 (lshift_double): Change type of arith argument to bool.
14007 (rshift_double): Change type of arith argument to bool. Correct
14009 * expmed.c (mask_rtx, lshift_value): (Ditto.).
14011 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
14014 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
14015 at the start and end of the then/else blocks, and omit them from the
14017 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
14018 argument; all callers changed. Pass zero to old_insns_match_p instead.
14019 (flow_find_head_matching_sequence): New function.
14020 (old_insns_match_p): Check REG_EH_REGION notes for calls.
14021 * basic-block.h (flow_find_cross_jump,
14022 flow_find_head_matching_sequence): Declare functions.
14024 2010-04-14 Jason Merrill <jason@redhat.com>
14027 * c-common.c (attribute_takes_identifier_p): New fn.
14028 * c-common.h: Declare it.
14030 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14032 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
14033 splitter condition.
14034 (*udivmod<mode>4): Ditto.
14036 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14038 * config/i386/i386.md (maxmin_int): Rename code attribute from
14039 maxminiprefix and update all users.
14040 (maxmin_float): Ditto from maxminfprefix.
14041 (logic): Ditto from logicprefix.
14042 (absneg_mnemonic): Ditto from absnegprefix.
14043 * config/i386/mmx.md: Update all users of maxminiprefix,
14044 maxminfprefix and logicprefix for rename.
14045 * config/i386/sse.md: Ditto.
14046 * config/i386/sync.md (sync_<code><mode>): Update for
14047 logicprefix rename.
14049 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
14052 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
14053 warnings converted to errors.
14055 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14057 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
14058 used insn_type variable.
14059 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
14060 to avoid set-but-not-used warning.
14062 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14064 * df-core.c (df_ref_debug): Change format string placeholder
14066 * dwarf2asm.c (dw2_asm_output_data_raw,
14067 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
14068 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
14069 * dwarf2out.c (output_cfi, output_cfi_directive,
14070 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
14071 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
14073 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
14074 * print-rtl.c (print_rtx): Ditto.
14076 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14078 PR middle-end/42694
14079 * builtins.c (expand_builtin_pow_root): New function to expand pow
14080 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
14081 series of sqrt and cbrt calls under -ffast-math.
14082 (expand_builtin_pow): Call it.
14084 2010-04-14 Michael Matz <matz@suse.de>
14086 PR tree-optimization/42963
14087 * tree-cfg.c (touched_switch_bbs): New static variable.
14088 (group_case_labels_stmt): New function broken out from ...
14089 (group_case_labels): ... here, use the above.
14090 (start_recording_case_labels): Allocate touched_switch_bbs.
14091 (end_recording_case_labels): Deallocate it, call
14092 group_case_labels_stmt.
14093 (gimple_redirect_edge_and_branch): Remember index of affected BB.
14095 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14097 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
14098 from insn template.
14100 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14102 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
14104 2010-04-13 Jan Hubicka <jh@suse.cz>
14106 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
14107 of optimized out static functions.
14108 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
14109 cost computation. Also sanity check for overflows.
14110 (update_caller_keys): Update cgraph_edge_badness call; properly
14111 update fibheap and sanity check that it is up to date.
14112 (add_new_edges_to_heap): Update cgraph_edge_badness.
14113 (cgraph_decide_inlining_of_small_function): Likewise;
14114 add sanity checking that badness in heap is up to date;
14115 improve dumping of reason; Update badness of calls to the
14116 offline copy of function currently inlined; dump badness
14117 of functions not inlined because of unit growth limits.
14119 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
14121 PR middle-end/32628
14122 * c-common.c (pointer_int_sum): Disregard overflow that occured only
14123 because of sign-extension change when converting to sizetype here...
14124 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
14126 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
14127 the folding to constants. Remove redundant final conversion.
14128 (fold_binary) <associate>: Do not associate if the re-association of
14129 constants alone overflows.
14130 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
14131 to the end of the list.
14132 (multiple_of_p) <COND_EXPR>: New case.
14134 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
14136 * opt-functions.awk (opt_sanitized_name): New.
14138 * optc-gen.awk: Use it
14139 * opth-gen.awk: Use it.
14141 2010-04-13 Martin Jambor <mjambor@suse.cz>
14143 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
14144 (sra_modify_assign): Delete stmts loading dead data even if racc has no
14145 children. Call replace_uses_with_default_def_ssa_name to handle
14148 2010-04-13 Michael Matz <matz@suse.de>
14150 PR middle-end/43730
14151 * builtins.c (expand_builtin_interclass_mathfn): Also create
14152 a register if the predicate doesn't match.
14154 2010-04-13 Diego Novillo <dnovillo@google.com>
14156 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
14157 * c-pch.c: Include timevar.h.
14158 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
14159 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
14160 * ggc-common.c: Include timevar.h.
14161 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
14162 * timevar.def (TV_PCH_SAVE): Define.
14163 (TV_PCH_CPP_SAVE): Define.
14164 (TV_PCH_PTR_REALLOC): Define.
14165 (TV_PCH_PTR_SORT): Define.
14166 (TV_PCH_RESTORE): Define.
14167 (TV_PCH_CPP_RESTORE): Define.
14169 2010-04-13 Michael Matz <matz@suse.de>
14171 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
14173 (can_reassociate_p): New function.
14174 (break_up_subtract_bb, reassociate_bb): Use it.
14176 2010-04-13 Richard Guenther <rguenther@suse.de>
14179 * builtins.c (c_readstr): Fix assert.
14181 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
14183 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
14184 when generating cltd insn.
14186 (*ashl<mode>3_1): Remove special handling for register operand 2.
14187 (*ashlsi3_1_zext): Ditto.
14188 (*ashlhi3_1): Ditto.
14189 (*ashlhi3_1_lea): Ditto.
14190 (*ashlqi3_1): Ditto.
14191 (*ashlqi3_1_lea): Ditto.
14192 (*<shiftrt_insn><mode>3_1): Ditto.
14193 (*<shiftrt_insn>si3_1_zext): Ditto.
14194 (*<shiftrt_insn>qi3_1_slp): Ditto.
14195 (*<rotate_insn><mode>3_1): Ditto.
14196 (*<rotate_insn>si3_1_zext): Ditto.
14197 (*<rotate_insn>qi3_1_slp): Ditto.
14199 2010-04-13 Richard Guenther <rguenther@suse.de>
14201 * tree-ssa-structalias.c (callused_id): Remove.
14202 (call_stmt_vars): New.
14203 (get_call_vi): Likewise.
14204 (lookup_call_use_vi): Likewise.
14205 (lookup_call_clobber_vi): Likewise.
14206 (get_call_use_vi): Likewise.
14207 (get_call_clobber_vi): Likewise.
14208 (make_transitive_closure_constraints): Likewise.
14209 (handle_const_call): Adjust to do per-call call-used handling.
14210 (handle_pure_call): Likewise.
14211 (find_what_var_points_to): Remove general callused handling.
14212 (init_base_vars): Likewise.
14213 (init_alias_vars): Initialize call_stmt_vars.
14214 (compute_points_to_sets): Process call-used and call-clobbered
14215 vars for call statements.
14216 (delete_points_to_sets): Free call_stmt_vars.
14218 2010-04-13 Richard Guenther <rguenther@suse.de>
14220 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
14221 Only add RW dependence for dependence distance zero.
14222 Adjust maximal vectorization factor according to dependences.
14223 Move alignment handling ...
14224 (vect_find_same_alignment_drs): ... here. New function.
14225 (vect_analyze_data_ref_dependences): Adjust.
14226 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
14227 (vect_analyze_data_refs): Adjust minimal vectorization factor
14228 according to data references.
14229 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
14230 dependences before determining the vectorization factor.
14231 Analyze alignment after determining the vectorization factor.
14232 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
14233 dependences before alignment.
14234 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
14236 (vect_analyze_data_refs): Likewise.
14237 (MAX_VECTORIZATION_FACTOR): New define.
14239 2010-04-13 Duncan Sands <baldrick@free.fr>
14241 * except.h (lang_eh_type_covers): Remove.
14242 * except.c (lang_eh_type_covers): Likewise.
14244 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14245 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14247 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
14248 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
14249 UNITS_PER_LONG where it is ABI relevant.
14250 (s390_return_addr_rtx): Likewise.
14251 (s390_back_chain_rtx): Likewise.
14252 (s390_frame_area): Likewise.
14253 (s390_frame_info): Likewise.
14254 (s390_initial_elimination_offset): Likewise.
14255 (save_gprs): Likewise.
14256 (s390_emit_prologue): Likewise.
14257 (s390_emit_epilogue): Likewise.
14258 (s390_function_arg_advance): Likewise.
14259 (s390_function_arg): Likewise.
14260 (s390_va_start): Likewise.
14261 (s390_gimplify_va_arg): Likewise.
14262 (s390_function_profiler): Likewise.
14263 (s390_optimize_prologue): Likewise.
14264 (s390_rtx_costs): Likewise.
14265 (s390_secondary_reload): Likewise.
14266 (s390_promote_function_mode): Likewise.
14267 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
14268 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
14269 registers available.
14270 (s390_unwind_word_mode): New function.
14271 (s390_function_value): Split 64 bit values into register pair if
14272 used as return value.
14273 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
14274 function call parameters. Handle parallels.
14275 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
14276 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
14277 (DWARF_CIE_DATA_ALIGNMENT): New macro.
14278 (s390_expand_setmem): Remove unused variable src_addr.
14279 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
14280 deal with 64 bit registers.
14281 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
14282 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
14283 (UNITS_PER_LONG): New macro.
14284 * libjava/include/s390-signal.h: Define extended ucontext
14285 structure containing the upper halfs of the 64 bit registers.
14287 2010-04-13 Simon Baldwin <simonb@google.com>
14289 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
14291 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
14293 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
14294 rvalue on the RHS if the LHS is of a non-renamable type.
14295 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
14297 2010-04-13 Matthias Klose <doko@ubuntu.com>
14299 * gcc.c (cc1_options): Handle -iplugindir before processing
14300 the cc1 spec. Only add -iplugindir once.
14301 (cpp_unique_options): Add -iplugindir option if -fplugin* options
14303 * common.opt (iplugindir): Remove `Separate' property, initialize.
14304 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
14306 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
14307 (distclean): Remove plugin dir.
14308 * doc/invoke.texi: Document -iplugindir.
14310 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
14312 * doc/plugins.texi (Loading Plugins): Document short
14313 -fplugin=foo option.
14314 (Plugin API): Mention default_plugin_dir_name function.
14316 * gcc.c (find_file_spec_function): Add new declaration.
14317 (static_spec_func): Use it for "find-file".
14318 (find_file_spec_function): Add new function.
14319 (cc1_options): Add -iplugindir option if -fplugin* options found.
14321 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
14323 * plugin.c (add_new_plugin): Updated comment, and handle short
14325 (default_plugin_dir_name): Added new function.
14327 * common.opt (iplugindir): New option to set the plugin directory.
14329 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
14331 * config/i386/i386.md (any_rotate): New code iterator.
14332 (rotate_insn): New code attribute.
14334 (SWIM124): New mode iterator.
14335 (<rotate_insn>ti3): New expander.
14336 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
14337 any_rotate code iterator.
14338 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
14339 using any_rotate code iterator and SWIM124 mode iterator.
14340 (ix86_rotlti3): New insn_and_split pattern.
14341 (ix86_rotrti3): Ditto.
14342 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
14343 ix86_rotl{di,ti}3 patterns.
14344 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
14345 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
14346 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
14347 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
14348 code iterator and SWI mode iterator.
14349 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
14350 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
14352 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
14353 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
14354 (bswap rotatert splitter): Add splitter.
14355 (bswap splitter): Macroize splitter using any_rotate code iterator.
14356 Add insn predicate to split only for TARGET_USE_XCHGB or when
14357 optimizing function for size.
14359 2010-04-12 Steve Ellcey <sje@cup.hp.com>
14361 * config/pa/pa.c (emit_move_sequence): Remove use of
14362 deleted variable flag_argument_noalias.
14364 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14366 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
14368 Add to unsupported targets list.
14369 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
14370 sparc*-sun-solaris2.[567]* from target lists.
14371 * configure: Regenerate.
14372 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
14374 Remove Solaris 7 patch references.
14375 (Specific, sparc-sun-solaris2.7): Removed.
14376 (sparc-sun-solaris2*): Update Solaris 7 example.
14377 (sparc64-*-solaris2*): Likewise.
14379 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14381 * config.build (alpha*-dec-osf4*): Remove.
14382 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
14383 of obsolete configurations.
14384 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
14386 * config/alpha/t-osf4: Renamed to ...
14387 * config/alpha/t-osf5: ... this.
14388 * config/alpha/osf.h: Renamed to ...
14389 * config/alpha/osf5.h: ... this.
14390 Merged old osf5.h contents.
14392 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
14393 (EXTRA_SPECS): Removed.
14394 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
14395 reflect removal of Tru64 UNIX V4.0/V5.0 support.
14398 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14400 * doc/contrib.texi (Contributors, Rainer Orth): Update.
14402 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
14405 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
14406 __thiscall convention.
14408 2010-04-12 Steve Ellcey <sje@cup.hp.com>
14410 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
14412 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
14414 2010-04-12 Steve Ellcey <sje@cup.hp.com>
14416 * function.c (assign_parms_initialize_all): Add unused attribute
14419 2010-04-12 Richard Guenther <rguenther@suse.de>
14421 * gsstruct.def (GSS_CALL): New.
14422 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
14423 * gimple.h: Include tree-ssa-alias.h.
14424 (struct gimple_statement_call): New.
14425 (union gimple_statement_struct_d): Add gimple_call member.
14426 (gimple_call_reset_alias_info): Declare.
14427 (gimple_call_use_set): New function.
14428 (gimple_call_clobber_set): Likewise.
14429 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
14430 * gimple.c (gimple_call_reset_alias_info): New function.
14431 (gimple_build_call_1): Call it.
14432 * lto-streamer-in.c (input_gimple_stmt): Likewise.
14433 * tree-inline.c (remap_gimple_stmt): Likewise.
14434 (expand_call_inline): Remove callused handling.
14435 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
14436 * tree-dfa.c (dump_variable): Likewise.
14437 * tree-parloops.c (parallelize_loops): Likewise.
14438 * tree-ssa.c (init_tree_ssa): Likewise.
14439 (delete_tree_ssa): Likewise.
14440 * tree-flow-inline.h (is_call_used): Remove.
14441 * tree-flow.h (struct gimple_df): Remove callused member.
14442 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
14443 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
14444 (ref_maybe_used_by_call_p_1): Simplify.
14445 (call_may_clobber_ref_p_1): Likewise.
14446 * tree-ssa-structalias.c (compute_points_to_sets): Set
14447 the call stmt used and clobbered sets.
14448 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
14449 (find_tail_calls): Verify the tail call.
14451 2010-04-12 Richard Guenther <rguenther@suse.de>
14453 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
14454 single-iteration always-inline inlining.
14455 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
14456 (cgraph_decide_inlining): Do not handle always-inline specially.
14457 (try_inline): Remove always-inline cycle detection special case.
14458 Do not recurse on always-inlines.
14459 (cgraph_early_inlining): Do not iterate if not optimizing.
14460 (cgraph_gate_early_inlining): remove.
14461 (pass_early_inline): Run unconditionally.
14462 (gate_cgraph_decide_inlining): New function.
14463 (pass_ipa_inline): Use it. Do not run the IPA inliner if
14464 not inlining or optimizing.
14465 (cgraph_decide_inlining_of_small_functions): Also consider
14466 always-inline functions.
14467 (cgraph_default_inline_p): Return true for nodes which should
14468 disregard inline limits.
14469 (estimate_function_body_sizes): Assume zero size and time for
14470 nodes which are marked as disregarding inline limits.
14471 (cgraph_decide_recursive_inlining): Do not perform recursive
14472 inlining on always-inline nodes.
14474 2010-04-12 Jakub Jelinek <jakub@redhat.com>
14477 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
14478 for exprs satisfying handled_component_p.
14480 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
14482 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
14483 non-constant aggregate elements.
14485 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
14486 is a real initialization.
14488 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
14491 * c-decl.c (start_function): Move forward check for nested function.
14493 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
14495 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
14496 * config/sh/sh.c: Include reload.h.
14497 (sh_legitimize_reload_address): New.
14498 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
14499 sh_legitimize_reload_address.
14501 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14503 * config/sh/sh.md (*movqi_pop): New insn pattern.
14504 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
14506 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
14508 * config/i386/i386.md (any_shiftrt): New code iterator.
14509 (shiftrt_insn): New code attribute.
14511 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
14512 using any_shiftrt code iterator.
14513 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
14514 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
14515 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
14516 pattern from corresponding peephole2 patterns.
14517 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
14518 using any_shiftrt code iterator.
14519 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
14520 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
14521 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
14522 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
14523 *{ashr,lshr}<mode>3_cmp_zext.
14524 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
14526 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
14528 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
14530 (*lshr<mode>3_cconly): Ditto.
14532 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
14534 * config/i386/i386.md (lshr<mode>3): Macroize expander from
14535 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
14536 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
14537 pattern from *lshr{di,ti}3_1 and corresponding splitters using
14539 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
14540 from corresponding peephole2 patterns.
14541 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
14542 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
14543 and *lshrdi3_1_rex64 using SWI mode iterator.
14544 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
14545 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
14546 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
14547 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
14548 and *lshrdi3_cmp_rex64 using SWI mode iterator.
14549 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
14550 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
14551 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
14552 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
14555 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
14557 * config/i386/i386.md (ashr<mode>3): Macroize expander from
14558 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
14559 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
14560 pattern from *ashr{di,ti}3_1 and corresponding splitters using
14562 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
14563 from corresponding peephole2 patterns.
14564 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
14565 (ashrsi3_cvt): Rename from ashrsi3_31.
14566 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
14567 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
14568 and x86_64_shift_adj_3 using SWI48 mode iterator.
14569 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
14570 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
14571 and *ashrdi3_1_rex64 using SWI mode iterator.
14572 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
14573 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
14574 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
14575 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
14576 and *ashrdi3_cmp_rex64 using SWI mode iterator.
14577 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
14578 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
14579 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
14580 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
14582 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
14583 * config/i386/i386.c (ix86_split_ashr): Update for renamed
14584 x86_shift<mode>_adj_3 expanders.
14586 2010-04-10 Wei Guozhi <carrot@google.com>
14589 * config/arm/arm.c (arm_pic_static_addr): New function.
14590 (legitimize_pic_address): Call arm_pic_static_addr when it detects
14592 (arm_output_addr_const_extra): Output expression for new pattern.
14593 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
14595 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
14597 * ira-costs.c (record_reg_classes): Ignore alternatives that are
14600 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
14601 * web.c: Include "insn-config.h" and "recog.h".
14602 (union_match_dups): New function.
14603 (web_main): Call it.
14604 (union_defs): Don't try to recognize match_dups.
14606 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
14607 if doing so would replace the entire pattern.
14609 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
14613 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
14614 and splitter pattern. Change splitter operand 1 predicate to
14617 2010-04-09 Martin Jambor <mjambor@suse.cz>
14619 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
14620 lattices are addresses of CONST_DECLs with the same initial value.
14621 (ipcp_print_all_lattices): Print values of CONST_DECLs.
14622 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
14624 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
14625 Bernd Schmidt <bernds@codesourcery.com>
14627 * loop-invariant.c (replace_uses): New static function.
14628 (move_invariant_reg): Use it to ensure we can replace the uses.
14630 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
14632 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
14634 (picochip_override_options): Enable section anchors only above -O1.
14635 (picochip_reorg): Fixed a couple of build warnings.
14637 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14639 * configure.ac (plugin -rdynamic test): Log result.
14640 * configure: Regenerate.
14641 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
14642 (RDYNAMIC_SPEC): Define.
14643 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
14645 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14647 * configure.ac: Determine Sun ld version numbers.
14648 (comdat_group): Restrict GNU ld version checks to gld.
14649 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
14650 (enable_comdat): Support --enable-comdat.
14651 * configure: Regenerate.
14652 * doc/install.texi (Configuration): Document --enable-comdat.
14654 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14656 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
14657 * config/sol2-gld.h: ... here.
14658 * config.gcc (sparc*-*-solaris2*): Reflect this.
14659 (i[34567]86-*-solaris2*): Use it.
14661 2010-04-09 Steve Ellcey <sje@cup.hp.com>
14663 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
14665 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
14667 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
14670 * diagnostic.c (diagnostic_initialize): Initialize
14671 some_warnings_are_errors.
14672 (diagnostic_finish): New.
14673 (diagnostic_action_after_output): Call it before exiting.
14674 (diagnostic_report_diagnostic): Do not print message here. Set
14675 some_warnings_are_errors.
14676 * diagnostic.h (diagnostic_context): Delete
14677 issue_warnings_are_errors_message. Add some_warnings_are_errors.
14678 (diagnostic_finish): Declare.
14679 * toplev.c (toplev_main): Call it before exit.
14681 2010-04-09 Jason Merrill <jason@redhat.com>
14684 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
14685 for incomplete type.
14688 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
14689 based on a warning flag.
14691 2010-04-09 Richard Guenther <rguenther@suse.de>
14693 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
14695 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
14698 * varasm.c (default_assemble_visibility): Wrap vars that are
14699 set, but unused, by targets without GAS.
14700 * config/rs6000/rs6000.c (paired_emit_vector_compare):
14701 Remove set, but unused, vars.
14702 (rs6000_legitimize_tls_address): Likewise.
14703 (altivec_expand_dst_builtin): Likewise.
14704 * config/darwin.c (machopic_classify_symbol): Likewise.
14705 (machopic_indirection_name): Likewise.
14707 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
14709 * config/i386/i386.md (DWI): New mode iterator.
14710 (S): New mode attribute.
14711 (shift_operand): Ditto.
14712 (shift_immediate_operand): Ditto.
14713 (ashl_input_operand): Ditto.
14714 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
14715 using SDWIM mode iterator.
14716 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
14717 pattern from *ashl{di,ti}3_1 and corresponding splitters using
14719 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
14720 from corresponding peephole2 patterns.
14721 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
14722 and x86_64_shift_adj_1 using SWI48 mode iterator.
14723 (x86_shift<mode>_adj_2): Ditto.
14724 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
14725 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
14726 using SWI48 mode iterator.
14727 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
14728 *ashldi3_cmp_rex64 using SWI mode iterator.
14729 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
14730 *ashldi3_cconly_rex64 using SWI mode iterator.
14731 * config/i386/i386.c (ix86_split_ashl): Update for renamed
14732 x86_shift<mode>_adj_{1,2}.
14733 (ix86_split_ashr): Ditto.
14734 (ix86_split_lshr): Ditto.
14736 2010-04-09 Richard Guenther <rguenther@suse.de>
14738 * target.h (builtin_conversion): Pass in input and output types.
14739 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
14740 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
14741 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
14742 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
14744 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
14746 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
14748 2010-04-09 Richard Guenther <rguenther@suse.de>
14751 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
14753 2010-04-09 Richard Guenther <rguenther@suse.de>
14755 * tree-vectorizer.h (struct _stmt_vec_info): Document
14756 that vectype is the type of the LHS.
14757 (supportable_widening_operation, supportable_narrowing_operation):
14758 Get both input and output vector types as arguments.
14759 (vect_is_simple_use_1): Declare.
14760 (get_same_sized_vectype): Likewise.
14761 * tree-vect-loop.c (vect_determine_vectorization_factor):
14762 Set STMT_VINFO_VECTYPE to the vector type of the def.
14763 (vectorizable_reduction): Adjust.
14764 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
14765 Adjust. Specify the output vector type.
14766 (vect_pattern_recog_1): Adjust.
14767 * tree-vect-stmts.c (get_same_sized_vectype): New function.
14768 (vectorizable_call): Adjust.
14769 (vectorizable_conversion): Likewise.
14770 (vectorizable_operation): Likewise.
14771 (vectorizable_type_demotion): Likewise.
14772 (vectorizable_type_promotion): Likewise.
14773 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
14775 (vect_is_simple_use_1): New function.
14776 (supportable_widening_operation): Get both input and output
14778 (supportable_narrowing_operation): Likewise.
14779 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
14781 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
14783 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
14784 __thiscall and _thiscall as predefined macros.
14785 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
14786 thiscall attribute handling.
14787 (ix86_comp_type_attributes): Likewise.
14788 (ix86_function_regparm): Likewise.
14789 (ix86_return_pops_args): Likewise.
14790 (init_cumulative_args): Likewise.
14791 (find_drap_reg): Likewise.
14792 (ix86_static_chain): Likewise.
14793 (x86_this_parameter): Likewise.
14794 (x86_output_mi_thunk): Likewise.
14795 (ix86_attribute_table): Add description for thiscall attribute.
14796 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
14797 * doc/extend.texi: Add documentation for thiscall.
14799 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
14802 * c.opt (Wint-to-pointer-cast): Available in C++.
14803 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
14805 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
14807 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
14808 * calls.c (expand_call): Pass the function type to aggregate_value_p.
14809 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
14810 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
14811 function type instead. Reorder and simplify checks.
14813 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
14815 2010-04-08 Jing Yu <jingyu@google.com>
14816 Zdenek Dvorak <ook@ucw.cz>
14818 PR tree-optimization/42720
14819 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
14820 loop unswitch conditions here from ...
14821 (tree_unswitch_single_loop): ... here.
14823 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
14825 * tree-if-conv.c: Fix comments and simplify logic.
14827 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
14829 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
14830 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
14831 (main_tree_if_conversion): Update call to tree_if_conversion.
14833 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
14836 * doc/invoke.texi (-b,-V): Delete.
14837 * doc/tm.texi: Do not mention -b.
14838 * gcc.c (display_help): Delete -b and -V.
14839 (process_command): Delete -b and -V.
14840 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
14842 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
14843 Wolfgang Gellerich <gellerich@de.ibm.com>
14845 Implement target hook for loop unrolling
14846 * target.h (loop_unroll_adjust): Add a new target hook function.
14847 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
14848 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
14849 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
14850 (s390_loop_unroll_adjust): Implement the new target hook for s390.
14851 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
14853 (decide_unroll_stupid): Likewise.
14855 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14858 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
14860 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14862 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
14863 (Specific, *-*-solaris2*): Likewise.
14864 Don't prefer Sun as over GNU as.
14866 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
14868 * config/s390/s390.c (override_options): Adjust the z10 defaults
14869 for max-unroll-times, max-completely-peeled-insns
14870 and max-completely-peel-times.
14872 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14874 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
14875 instructions for z10.
14876 (s390_expand_setmem): Likewise.
14877 (s390_expand_cmpmem): Likewise.
14879 2010-04-08 Richard Guenther <rguenther@suse.de>
14881 PR tree-optimization/43679
14882 * tree-ssa-pre.c (eliminate): Only propagate copies.
14884 2010-04-08 Jakub Jelinek <jakub@redhat.com>
14887 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
14888 set but not used variable warning.
14890 2010-04-08 Wei Guozhi <carrot@google.com>
14893 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
14894 (arm_size_rtx_costs): Call the new function when optimized for size.
14896 2010-04-08 Jakub Jelinek <jakub@redhat.com>
14899 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
14900 op0 is not a MEM, just return NULL instead of assertion
14902 (discover_nonconstant_array_refs): Don't walk debug stmts.
14904 2010-04-08 Doug Kwan <dougkwan@google.com>
14906 * configure.ac: Recognize gold and do not use its version number
14907 to test ld features.
14908 * configure: Regenerate.
14910 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
14912 PR middle-end/40815
14913 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
14914 (negate_value): Move code to push elements to broken_up_substracts ...
14915 (eliminate_plus_minus_pair): ... here. Push operands that have no
14916 negative pair to plus_negates.
14917 (repropagate_negates, init_reassoc, fini_reassoc): Update.
14919 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14921 * doc/install.texi (Configuration): Move description of
14922 --enable-lto, --with-libelf*, --enable-gold from Java section to
14925 * doc/generic.texi (Working with declarations)
14926 (Function Properties, C and C++ Trees): Fix typos.
14927 * doc/sourcebuild.texi (Top Level): Likewise.
14929 2010-04-07 Jakub Jelinek <jakub@redhat.com>
14932 * tree.h (DECL_READ_P): Define.
14933 (struct tree_decl_common): Add decl_read_flag.
14934 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
14935 a set but not used warning.
14936 (merge_decls): Merge DECL_READ_P flag.
14937 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
14938 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
14939 * c-common.c (handle_used_attribute, handle_unused_attribute):
14941 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
14943 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
14945 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
14946 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
14947 c_parser_binary_expression, c_parser_cast_expression,
14948 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
14949 Call default_function_array_read_conversion instead of
14950 default_function_array_conversion where needed.
14951 (c_parser_unary_expression, c_parser_conditional_expression,
14952 c_parser_postfix_expression_after_primary, c_parser_initelt):
14953 Likewise. Call mark_exp_read where needed.
14954 (c_parser_statement_after_labels, c_parser_asm_operands,
14955 c_parser_typeof_specifier, c_parser_sizeof_expression,
14956 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
14958 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
14960 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
14961 (warn_unused_but_set_parameter): Default to warn_unused
14963 * doc/invoke.texi: Document -Wunused-but-set-variable and
14964 -Wunused-but-set-parameter.
14966 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
14967 used count variable.
14968 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
14969 when operandN variables aren't used in the body of the expander
14971 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
14972 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
14973 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
14974 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
14975 FOR_EACH_IMM_USE_ON_STMT): Likewise.
14976 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
14977 * tree.c (PROCESS_ARG): Likewise.
14979 2010-04-07 Simon Baldwin <simonb@google.com>
14981 * diagnostic.h (diagnostic_override_option_index): New macro to
14982 set a diagnostic's option_index.
14983 * c-tree.h (c_cpp_error): Add warning reason argument.
14984 * opts.c (_warning_as_error_callback): New.
14985 (register_warning_as_error_callback): Store callback for
14986 warnings enabled via enable_warning_as_error.
14987 (enable_warning_as_error): Call callback, minor code tidy.
14988 * opts.h (register_warning_as_error_callback): Declare.
14989 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
14990 response to -Werror=.
14991 (c_common_init_options): Register warning_as_error_callback in opts.c.
14992 * common.opt: Add -Wno-cpp option.
14993 * c-common.c (struct reason_option_codes_t): Map cpp warning
14994 reason codes to gcc option indexes.
14995 * (c_option_controlling_cpp_error): New function, lookup the gcc
14996 option index for a cpp warning reason code.
14997 * (c_cpp_error): Add warning reason argument, call
14998 c_option_controlling_cpp_error for diagnostic_override_option_index.
14999 * doc/invoke.texi: Document -Wno-cpp.
15001 2010-04-07 Richard Guenther <rguenther@suse.de>
15003 * ipa-reference.c (mark_load): Use get_base_address.
15004 (mark_store): Likewise.
15006 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
15007 inserting GIMPLE_NOPs into the IL.
15008 * tree-ssa-structalias.c (get_constraint_for_component_ref):
15009 Explicitly strip handled components and indirect references.
15011 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
15012 folding address expressions.
15013 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
15014 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
15015 operand_equal_p to compare decls.
15016 (ptr_deref_may_alias_decl_p): Likewise.
15017 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
15018 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
15019 Handle reversed comparison ops.
15020 * tree-sra.c (asm_visit_addr): Use get_base_address.
15021 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
15022 * ipa-reference.c (mark_address): Use get_base_address.
15024 2010-04-07 Richard Guenther <rguenther@suse.de>
15026 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
15027 Propagate constants everywhere.
15029 2010-04-07 Jakub Jelinek <jakub@redhat.com>
15032 * tree.c (MAX_INT_CACHED_PREC): Define.
15033 (nonstandard_integer_type_cache): New array.
15034 (build_nonstandard_integer_type): Cache results for precision
15035 <= MAX_INT_CACHED_PREC.
15037 2010-04-07 Richard Guenther <rguenther@suse.de>
15039 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
15040 -fargument-noalias-global, -fargument-noalias-anything): Remove.
15041 * common.opt: Likewise.
15042 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
15043 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
15044 (nonoverlapping_memrefs_p): Likewise.
15045 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
15046 * opts.c (common_handle_option): Handle OPT_fargument_alias,
15047 OPT_fargument_noalias, OPT_fargument_noalias_anything and
15048 OPT_fargument_noalias_global for backward compatibility.
15050 2010-04-07 Richard Guenther <rguenther@suse.de>
15052 PR tree-optimization/43270
15053 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
15054 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
15055 * tree-ssa-pre.c (phi_translate_1): Adjust.
15056 (fully_constant_expression): Split out vn_reference handling to ...
15057 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
15058 Fold reads from constant strings.
15059 (vn_reference_lookup): Handle fully constant references.
15060 (vn_reference_lookup_pieces): Likewise.
15061 * Makefile.in (expmed.o-warn): Add -Wno-error.
15063 2010-04-07 Martin Jambor <mjambor@suse.cz>
15065 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
15067 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
15070 * gcc.c: Add -static-libstdc++ to list of recognized options.
15072 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15074 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
15076 2010-04-07 Richard Guenther <rguenther@suse.de>
15078 PR middle-end/42617
15079 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
15080 bases build simple mem attributes to retain points-to information.
15082 2010-04-07 Richard Guenther <rguenther@suse.de>
15084 PR middle-end/42617
15085 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
15086 preserve points-to related information.
15088 2010-04-07 Richard Guenther <rguenther@suse.de>
15090 PR middle-end/42617
15091 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
15092 discard plain indirect references.
15093 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
15094 * tree.c (tree_nop_conversion): Likewise.
15096 2010-04-07 Dodji Seketeli <dodji@redhat.com>
15099 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
15101 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
15103 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
15104 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
15106 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
15108 * tree-if-conv.c: Fix indentation and comments.
15110 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
15112 * tree-if-conv.c: Sort static functions in topological order.
15114 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
15116 * tree-if-conv.c: Fix indentation and comments.
15118 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15120 PR middle-end/43519
15121 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
15122 lang_hooks.types.type_for_size instead of
15123 build_nonstandard_integer_type.
15124 When converting an unsigned type to signed, double its precision.
15125 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
15126 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
15127 (graphite_create_new_loop_guard): When ub + 1 wraps around,
15130 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15132 PR middle-end/43519
15133 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
15134 POINTER_PLUS_EXPR for pointer types.
15136 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15138 PR middle-end/43519
15139 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
15140 * graphite-clast-to-gimple.c: Include langhooks.h.
15141 (max_signed_precision_type): New.
15142 (max_precision_type): Takes two types as arguments.
15143 (precision_for_value): New.
15144 (precision_for_interval): New.
15145 (gcc_type_for_interval): New.
15146 (gcc_type_for_value): New.
15147 (gcc_type_for_clast_term): New.
15148 (gcc_type_for_clast_red): New.
15149 (gcc_type_for_clast_bin): New.
15150 (gcc_type_for_clast_expr): Split up into several functions.
15151 (gcc_type_for_clast_eq): Rewritten.
15152 (compute_bounds_for_level): New.
15153 (compute_type_for_level_1): New.
15154 (compute_type_for_level): New.
15155 (gcc_type_for_cloog_iv): Removed.
15156 (gcc_type_for_iv_of_clast_loop): Rewritten.
15157 (graphite_create_new_loop): Compute the lower and upper bound types
15158 with gcc_type_for_clast_expr.
15159 (graphite_create_new_loop_guard): Same.
15160 (find_cloog_iv_in_expr): Removed.
15161 (compute_cloog_iv_types_1): Removed.
15162 (compute_cloog_iv_types): Removed.
15163 (gloog): Do not call compute_cloog_iv_types.
15164 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
15165 GBB_CLOOG_IV_TYPES.
15166 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
15167 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
15168 (GBB_CLOOG_IV_TYPES): Removed.
15170 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15172 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
15173 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
15174 (detect_commutative_reduction): Same.
15176 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15178 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
15179 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
15181 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
15182 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
15183 (rewrite_commutative_reductions_out_of_ssa): Same.
15184 * passes.c (execute_function_todo): Call verify_ssa for every pass
15185 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
15186 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
15187 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
15188 with an extra argument.
15189 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
15190 verify_ssa only when the extra argument is true.
15191 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
15192 with an extra argument.
15193 (tree_transform_and_unroll_loop): Same.
15195 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15197 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
15198 for all the passes of the LNO having LOOP_CLOSED_SSA.
15199 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
15200 * tree-loop-distribution.c (pass_loop_distribution): Same.
15201 * tree-pass.h (TODO_verify_loops): Removed.
15202 * tree-ssa-loop.c (pass_tree_loop_init): Same.
15204 (pass_tree_unswitch): Same.
15205 (pass_predcom): Same.
15206 (pass_vectorize): Same.
15207 (pass_linear_transform): Same.
15208 (pass_graphite_transforms): Same.
15209 (pass_iv_canon): Same.
15210 (pass_complete_unroll): Same.
15211 (pass_complete_unrolli): Same.
15212 (pass_parallelize_loops): Same.
15213 (pass_loop_prefetch): Same.
15214 (pass_iv_optimize): Same.
15216 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
15218 PR middle-end/32824
15219 * passes.c (init_optimization_passes): Move pass_lim before
15220 pass_copy_prop and pass_dce_loop.
15222 2010-04-06 Jakub Jelinek <jakub@redhat.com>
15225 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
15226 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
15227 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
15228 MULTI_* defines for 4 argument vpermil2p* builtins.
15230 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
15232 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
15233 * config/i386/i386.c (x86_maybe_negate_const_int): New.
15234 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
15235 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
15236 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
15237 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
15238 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
15239 Use x86_maybe_negate_const_int to output insn mnemonic.
15240 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
15241 check from instruction predicate. Update comments.
15242 * config/i386/sync.md (sync_add<mode>): Use
15243 x86_maybe_negate_const_int to output insn mnemonic.
15245 2010-04-06 Jan Hubicka <jh@suse.cz>
15247 PR tree-optimization/42906
15248 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
15249 IGNORE_SELF argument. Set visited_control_parents for fully
15251 (find_obviously_necessary_stmts): Update call of
15252 mark_control_dependent_edges_necessary.
15253 (propagate_necessity): Likewise. Handle PHI edges more curefully.
15255 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
15257 * config/i386/i386.md: Remove comment about 'e' and 'E'
15260 2010-04-06 Richard Guenther <rguenther@suse.de>
15262 PR tree-optimization/43627
15263 * tree-vrp.c (extract_range_from_unary_expr): Widenings
15264 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
15267 2010-04-06 Jakub Jelinek <jakub@redhat.com>
15269 * BASE-VER: Change to 4.6.0.
15272 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
15275 2010-04-06 Richard Guenther <rguenther@suse.de>
15277 PR middle-end/43661
15278 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
15280 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15282 * doc/invoke.texi (Optimize Options): Document that LTO
15283 won't remove object access purely due to incompatible
15286 2010-04-04 Matthias Klose <doko@ubuntu.com>
15288 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
15289 Initialize variable.
15291 2010-04-03 Richard Guenther <rguenther@suse.de>
15293 PR middle-end/42509
15294 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
15295 require a non-NULL MEM_OFFSET.
15297 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
15299 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
15300 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
15301 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
15302 config/alpha/predicates.md, config/arm/arm.md,
15303 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
15304 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
15305 config/darwin9.h, config/darwin.c, config/darwin.h,
15306 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
15307 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
15308 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
15309 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
15310 config/mips/mips.md, config/mn10300/mn10300.c,
15311 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
15312 config/rs6000/aix.h, config/rs6000/dfp.md,
15313 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
15314 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
15315 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
15316 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
15317 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
15318 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
15319 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
15320 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
15321 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
15322 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
15323 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
15324 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
15325 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
15326 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
15327 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
15328 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
15329 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
15330 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
15331 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
15332 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
15333 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
15334 opt-functions.awk, opth-gen.awk, params.def, passes.c,
15335 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
15336 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
15337 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
15338 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
15339 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
15340 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
15341 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
15342 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
15343 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
15344 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
15345 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
15346 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
15347 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
15348 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
15350 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15353 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
15354 * aclocal.m4: Regenerate.
15356 2010-04-02 Richard Guenther <rguenther@suse.de>
15358 PR tree-optimization/43629
15359 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
15360 if we have seen a constant value.
15362 2010-04-02 Joseph Myers <joseph@codesourcery.com>
15364 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
15366 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
15369 * arm.c (legitimize_tls_address): Adjust call to
15370 gen_tls_load_dot_plus_four.
15371 (arm_note_pic_base): New function.
15372 (arm_cannot_copy_insn_p): Use it.
15373 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
15376 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15381 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15383 * Makefile.in ($(out_object_file)): Depend on
15384 gt-$(basename $(notdir $(out_file))).h.
15386 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
15388 * config.gcc (lm32-*-rtems*): Add t-lm32.
15390 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
15392 * config.gcc: Add lm32-*-rtems*.
15393 * config/lm32/rtems.h: New file.
15395 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
15398 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
15400 2010-04-01 Jakub Jelinek <jakub@redhat.com>
15402 * dwarf2out.c (output_compilation_unit_header): For
15403 -gdwarf-4 use version 4 instead of version 3.
15404 (output_line_info): For version 4 and above emit additional
15405 maximum ops per insn header field.
15406 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
15408 * dwarf2out.c (is_c_family, is_java): Remove.
15409 (lower_bound_default): New function.
15410 (add_bound_info, gen_descr_array_type_die): Use it.
15412 2010-04-01 Dodji Seketeli <dodji@redhat.com>
15415 * dwarf2out.c (gen_variable_die): Allow debug info for variable
15416 re-declaration when it happens in a function.
15418 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
15420 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
15421 (cgraph_remove_function_insertion_hook): Same.
15422 (cgraph_call_function_insertion_hooks): Same.
15424 2010-04-01 Richard Guenther <rguenther@suse.de>
15426 PR middle-end/43614
15427 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
15428 and TREE_THIS_VOLATILE.
15429 (copy_ref_info): Likewise.
15430 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
15431 * tree.c (build6_stat): Ignore side-effects of all but arg5
15432 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
15435 2010-04-01 Richard Guenther <rguenther@suse.de>
15437 PR tree-optimization/43607
15438 * ipa-type-escape.c (check_call): Do not access non-existing
15441 2010-04-01 Richard Guenther <rguenther@suse.de>
15443 PR middle-end/43602
15445 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
15446 Jack Howarth <howarth@bromo.med.uc.edu>
15448 * tree-profile.c (tree_init_ic_make_global_vars): Make static
15451 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15453 * doc/install.texi (Prerequisites): Document libelf usability on
15454 IRIX 5/6 and Solaris 2.
15455 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
15456 Update GNU as, GNU ld requirements.
15457 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
15458 Document Sun Studio compiler download.
15459 Update and simplify as, ld recommendations.
15460 (Specific, *-*-solaris2.7): Note obsoletion, removal.
15462 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15464 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
15465 with_tune_32 to pentium4.
15467 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
15469 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
15471 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15473 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
15474 obsoletion, removal.
15476 Document GNU as requirement.
15477 Update configure requirements.
15478 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
15479 Recomment IRIX 6.5.18+.
15480 Document IDF/IDL requirement.
15481 Document GNU as requirement.
15482 Document GNU ld bootstrap failure.
15483 Remove freeware.sgi.com reference.
15485 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15487 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
15488 UNIX V4.0, V5.0 obsoletion, removal.
15489 Remove --with-gc=simple reference.
15490 Update VM requirements during bootstrap.
15491 Remove -oldas bootstrap description.
15492 Update binutils reference.
15493 Remove comparison failure note.
15495 2010-03-31 Richard Guenther <rguenther@suse.de>
15496 Zdenek Dvorak <ook@ucw.cz>
15497 Sebastian Pop <sebastian.pop@amd.com>
15499 PR middle-end/43464
15500 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
15501 with multiple arguments.
15502 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
15504 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
15506 * graphite-dependences.c (print_pddr): Call print_pdr with an
15508 * graphite-poly.c (debug_pdr): Add an extra argument for the
15511 (print_pbb_domain): Same.
15513 (print_scop_context): Same.
15514 (print_scop): Same.
15515 (print_cloog): Same.
15516 (debug_pbb_domain): Same.
15518 (print_pdrs): Same.
15519 (debug_pdrs): Same.
15520 (debug_scop_context): Same.
15521 (debug_scop): Same.
15522 (debug_cloog): Same.
15523 (print_scop_params): Same.
15524 (debug_scop_params): Same.
15525 (print_iteration_domain): Same.
15526 (print_iteration_domains): Same.
15527 (debug_iteration_domain): Same.
15528 (debug_iteration_domains): Same.
15529 (print_scattering_function): Same.
15530 (print_scattering_functions): Same.
15531 (debug_scattering_function): Same.
15532 (debug_scattering_functions): Same.
15533 * graphite-poly.h (debug_pdr): Update declaration.
15535 (print_pbb_domain): Same.
15537 (print_scop_context): Same.
15538 (print_scop): Same.
15539 (print_cloog): Same.
15540 (debug_pbb_domain): Same.
15542 (print_pdrs): Same.
15543 (debug_pdrs): Same.
15544 (debug_scop_context): Same.
15545 (debug_scop): Same.
15546 (debug_cloog): Same.
15547 (print_scop_params): Same.
15548 (debug_scop_params): Same.
15549 (print_iteration_domain): Same.
15550 (print_iteration_domains): Same.
15551 (debug_iteration_domain): Same.
15552 (debug_iteration_domains): Same.
15553 (print_scattering_function): Same.
15554 (print_scattering_functions): Same.
15555 (debug_scattering_function): Same.
15556 (debug_scattering_functions): Same.
15558 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
15560 * graphite-poly.c (print_scattering_function_1): New.
15561 (print_scattering_function): Call it.
15562 (print_scop_params): Remove spaces at the end of lines.
15563 (print_cloog): New.
15564 (debug_cloog): New.
15565 * graphite-poly.h (print_cloog): Declared.
15566 (debug_cloog): Declared.
15568 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
15570 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
15572 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
15573 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
15574 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
15575 to switch between adding the IV bump in loop->latch or in loop->header.
15577 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
15579 * graphite-poly.c (print_scattering_function): Pretty print following
15580 the scoplib format.
15582 (print_pbb_domain): Same.
15583 (dump_gbb_cases): Same.
15584 (dump_gbb_conditions): Same.
15585 (print_pdrs): Same.
15587 (print_scop_params): Same.
15588 (print_scop_context): Same.
15589 (print_scop): Same.
15590 (print_pbb_body): New.
15591 (lst_indent_to): New.
15592 (print_lst): Start new lines with a #.
15593 * graphite-poly.h (pbb_bb): New.
15594 (pbb_index): Use pbb_bb.
15595 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
15597 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
15599 2010-03-31 Jakub Jelinek <jakub@redhat.com>
15601 * dwarf2out.c (size_of_die): For -gdwarf-4 use
15602 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
15603 and 0 instead of 1 for dw_val_class_flag.
15604 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
15605 dw_val_class_range_list, dw_val_class_loc_list,
15606 dw_val_class_lineptr and dw_val_class_macptr, use
15607 DW_FORM_flag_present for dw_val_class_flag and
15608 DW_FORM_exprloc for dw_val_class_loc.
15609 (output_die): For -gdwarf-4 print dw_val_class_loc
15610 size as uleb128 instead of 1 or 2 bytes and don't print
15611 anything for dw_val_class_flag.
15613 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
15614 instead of cselib_lookup following by tweaking locs->setting_insn.
15617 * cselib.c (cselib_process_insn): Clear cselib_current_insn
15618 even before returning from label, setjmp call or volatile asm
15621 2010-03-31 Richard Guenther <rguenther@suse.de>
15623 PR middle-end/43600
15624 * cgraphunit.c (cgraph_output_in_order): Do not allocate
15625 temporary data on stack.
15627 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15629 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
15630 (PUSHSECTION_ASM_OP): Remove.
15631 (POPSECTION_ASM_OP): Remove.
15632 (PUSHSECTION_FORMAT): Remove.
15633 * config/sol2.h (PUSHSECTION_FORMAT): Define.
15634 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
15635 * config/sol2.c (solaris_output_init_fini): Use it.
15637 2010-03-31 Jie Zhang <jie@codesourcery.com>
15640 * opt-functions.awk (var_type_struct): Use signed char type
15641 for simple variables.
15643 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15645 * config/sol2.c: Include output.h.
15646 (solaris_assemble_visibility): New function.
15647 * config/t-sol2 (sol2.o): Add output.h dependency.
15648 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
15649 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
15652 2010-03-31 Jakub Jelinek <jakub@redhat.com>
15655 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
15656 V2SImode or XFmode on PRE_DEC.
15659 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
15662 2010-03-31 Jie Zhang <jie@codesourcery.com>
15665 * reload.h (caller_save_initialized_p): Declare.
15666 * toplev.c (backend_init_target): Don't call
15667 init_caller_save but set caller_save_initialized_p to false.
15668 * caller-save.c (caller_save_initialized_p): Define.
15669 (init_caller_save): Check caller_save_initialized_p.
15670 * ira.c (ira): Call init_caller_save if flag_caller_saves.
15672 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15675 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
15676 and soft-fp/t-softfp to tmake_file.
15677 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
15678 (LIBGCC2_TF_CEXT): Define.
15681 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
15684 * cselib.c (n_useless_values): Document handling of debug locs.
15685 (n_useless_debug_values, n_debug_values): New variables.
15686 (new_elt_loc_list): Don't add to debug values, keep count.
15687 (promote_debug_loc): New.
15688 (cselib_reset_table): Zero new variables.
15689 (entry_and_rtx_equal_p): Promote debug locs.
15690 (discard_useless_locs): Increment n_useless_debug_values for
15692 (remove_useless_values): Adjust n_useless_values and n_debug_values
15693 with n_useless_debug_values.
15694 (add_mem_for_addr): Promote debug locs.
15695 (cselib_lookup_mem): Likewise.
15696 (cselib_lookup_addr): Renamed to...
15697 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
15698 (cselib_log_lookup): ... this. Turn into...
15699 (cselib_lookup_addr): ... new wrapper.
15700 (cselib_lookup_from_insn): New.
15701 (cselib_invalidate_regno): Increment n_useless_debug_values for
15703 (cselib_invalidate_mem): Likewise.
15704 (cselib_process_insn): Take n_deleted and n_debug_values into
15705 account to guard remove_useless_value call.
15706 (cselib_finish): Zero n_useless_debug_values.
15707 * cselib.h (cselib_lookup_from_insn): Declare.
15708 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
15709 (sched_analyze_2): Likewise.
15711 2010-03-30 Jakub Jelinek <jakub@redhat.com>
15713 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
15715 (adjust_mems): Replace narrowing SUBREG of expression containing
15716 just PLUS, MINUS, MULT and ASHIFT of registers and constants
15717 with operations in the narrower mode.
15720 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
15721 regs_invalidated_by_call instead all call_used_reg_set registers.
15723 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
15725 PR middle-end/43430
15726 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
15727 pointer comparisons with types_compatible_p.
15728 * tree-vect-stmts.c (vectorizable_call): Same.
15729 (vectorizable_condition): Same.
15731 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15733 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
15734 stack check if the mask would be zero.
15736 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
15737 Jack Howarth <howarth@bromo.med.uc.edu>
15739 * tree-profile.c (tree_init_ic_make_global_vars): Make static
15742 2010-03-30 Joseph Myers <joseph@codesourcery.com>
15745 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
15747 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
15748 Include ___unordxf2 and ___unordtf2.
15749 * config/i386/libgcc-glibc.ver: Do not define inheritance from
15752 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
15754 * config/lm32/t-lm32: New file.
15755 * config.gcc: Use the above file when targetting lm32.
15757 2010-03-28 Duncan Sands <baldrick@free.fr>
15759 * Makefile.in (PLUGIN_HEADERS): Add except.h.
15761 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
15763 PR middle-end/43431
15764 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
15765 Improve vectorization cost model diagnostic.
15767 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
15769 PR middle-end/43436
15770 * tree-vect-data-refs.c (vect_analyze_data_refs): When
15771 compute_data_dependences_for_loop returns false, early exit
15772 and output an extra diagnostic for the failed data reference
15775 2010-03-29 Richard Guenther <rguenther@suse.de>
15777 PR tree-optimization/43560
15778 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
15779 (can_sm_ref_p): Treat stores to readonly locations as trapping.
15781 2010-03-29 Jie Zhang <jie@codesourcery.com>
15784 * toplev.c (process_options): Set optimization_default_node
15785 and optimization_current_node.
15786 * opts.c (decode_options): Don't set optimization_default_node
15787 and optimization_current_node.
15789 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
15791 * config/rtems.h: Abandon -qrtems_debug.
15793 2010-03-28 Jan Hubicka <jh@suse.cz>
15795 PR tree-optimization/43505
15796 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
15797 map should not be copied.
15799 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15801 PR middle-end/41674
15802 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
15803 cdtors, set DECL_PRESERVE_P.
15804 * ipa.c (cgraph_externally_visible_p): Return true if declaration
15805 should be preseved.
15807 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
15809 PR tree-optimization/43528
15810 * stor-layout.c (place_field): Check that constant fits into
15811 unsigned HWI when skipping calculation of MS bitfield layout.
15813 2010-03-27 Jan Hubicka <jh@suse.cz>
15815 PR middle-end/43391
15816 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
15817 notice_global_symbol work.
15819 2010-03-27 Jakub Jelinek <jakub@redhat.com>
15821 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
15822 instead of dwarf2out_decl.
15823 (struct var_loc_node): Remove section_label field.
15824 (dwarf2out_function_decl): New function.
15825 (dwarf2out_var_location): Don't set section_label field.
15826 (dwarf2out_begin_function): Don't empty decl_loc_table here.
15828 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15830 PR tree-optimization/43544
15831 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
15832 First argument for builtin vectorized function hook is now a
15833 tree to be able to distinguish between machine specific and
15835 * targhooks.c (default_builtin_vectorized_function): Ditto.
15836 * targhooks.h (default_builtin_vectorized_function): Ditto.
15837 * target.h (struct gcc_target): Ditto.
15838 * tree-vect-stmts.c (vectorizable_function): Ditto.
15839 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
15840 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
15843 2010-03-26 Joseph Myers <joseph@codesourcery.com>
15846 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
15847 nested binding iff it is a FUNCTION_DECL.
15848 (store_parm_decls_newstyle): Pass nested=true to bind for
15849 FUNCTION_DECLs amongst parameters.
15851 2010-03-26 Jakub Jelinek <jakub@redhat.com>
15853 * var-tracking.c (vt_expand_loc_callback): Don't run
15854 cselib_expand_value_rtx_cb in dummy mode if
15855 cselib_dummy_expand_value_rtx_cb returned false.
15857 * var-tracking.c (emit_note_insn_var_location): For one part
15858 notes with offset 0, don't add EXPR_LIST around the location.
15859 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
15860 add_location_or_const_value_attribute): Adjust for that change.
15863 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
15864 into first operand and location into second.
15865 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
15866 dw_cfi_oprnd_loc for DW_CFA_expression.
15867 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
15868 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
15869 assume first argument is regnum and second argument is location.
15871 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
15874 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
15875 of scratch register to DImode. Split to DImode comparison operator.
15876 Use SImode subreg of scratch register in the multiplication.
15877 (*cmp_sadd_sidi): Ditto.
15878 (*cmp_ssub_si): Ditto.
15879 (*cmp_ssub_sidi): Ditto.
15881 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
15884 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
15885 Remove invalid assert and wrong comment.
15887 2010-03-26 Jakub Jelinek <jakub@redhat.com>
15890 * flags.h (final_insns_dump_p): New extern.
15891 * final.c (final_insns_dump_p): New variable.
15892 (rest_of_clean_state): Set it before -fdump-final-insns=
15893 dumping, clear afterwards.
15894 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
15895 MEM_ALIAS_SET on MEMs.
15897 2010-03-26 David S. Miller <davem@davemloft.net>
15899 * configure.ac: Fix sparc GOTDATA_OP bug check.
15900 * configure: Rebuild.
15902 2010-03-26 Alan Modra <amodra@gmail.com>
15904 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
15906 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15908 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
15909 TLS_SECTION_ASM_FLAG.
15911 2010-03-25 Jakub Jelinek <jakub@redhat.com>
15914 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
15915 Clear first_function_block_is_cold.
15918 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
15919 argument if the argument is truth_value_p.
15921 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15923 * config/rs6000/constraints.md: Update copyright year for my changes.
15926 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
15927 used in reg+reg addressing, swap registers.
15929 2010-03-24 Jakub Jelinek <jakub@redhat.com>
15932 * target.h (struct gcc_target): Add code_end hook.
15933 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
15934 if not yet defined.
15935 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
15936 * toplev.c (compile_file): Call targetm.asm_out.code_end
15937 hook before unwind info/debug info output.
15938 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
15939 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
15940 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
15941 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
15942 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
15943 * config/i386/i386.c (ix86_file_end): Renamed to...
15944 (ix86_code_end): ... this. Make static. Don't call
15945 file_end_indicate_exec_stack. Emit unwind info using
15946 final_start_function/final_end_function.
15947 (darwin_x86_file_end): Remove.
15948 (TARGET_ASM_CODE_END): Define.
15949 * config/i386/i386.h (TARGET_ASM_FILE_END,
15950 NEED_INDICATE_EXEC_STACK): Don't define.
15951 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
15952 (TARGET_ASM_FILE_END): Define to darwin_file_end.
15953 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
15954 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
15957 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
15958 at the beginning and final_end_function at the end.
15959 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
15961 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15963 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
15964 and Sun as TLS syntax.
15965 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
15966 * configure: Regenerate.
15967 * config.in: Regenerate.
15968 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
15969 (default_elf_asm_named_section): Use it.
15970 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
15971 (i386_output_dwarf_dtprel): Likewise.
15972 (output_addr_const_extra): Likewise.
15973 (output_pic_addr_const): Lowercase @GOTTPOFF.
15974 (output_addr_const_extra): Likewise.
15975 (output_pic_addr_const): Lowercase @GOTNTPOFF.
15976 (output_addr_const_extra): Likewise.
15977 (output_pic_addr_const): Lowercase @INDNTPOFF.
15978 (output_addr_const_extra): Likewise.
15979 (output_pic_addr_const): Lowercase @NTPOFF.
15980 (output_addr_const_extra): Likewise.
15981 (output_pic_addr_const): Lowercase @TPOFF.
15982 (output_addr_const_extra): Likewise.
15983 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
15984 (*tls_global_dynamic_64): Likewise.
15985 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
15986 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
15988 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
15989 (ASM_OUTPUT_TLS_COMMON): Use it.
15990 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
15993 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
15994 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
15995 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
15996 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
15997 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
15998 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
16000 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16002 * config/i386/i386.c (override_options): Don't accept
16003 -mtls-dialect=sun any longer.
16004 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
16005 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
16006 (*tls_local_dynamic_base_32_sun): Likewise.
16007 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
16009 2010-03-24 Jakub Jelinek <jakub@redhat.com>
16012 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
16013 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
16016 * ira.c (adjust_cleared_regs): New function.
16017 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
16021 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
16023 * expr.c (expand_expr_real): Restore previous
16024 curr_insn_source_location and curr_insn_block after
16025 expand_expr_real_1 call.
16026 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
16027 instead of expand_expr_real_1.
16029 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
16031 PR rtl-optimization/43413
16032 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
16035 2010-03-22 James E. Wilson <wilson@codesourcery.com>
16038 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
16039 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
16041 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
16043 * config/i386/i386.c (ix86_target_string): Add -mfma.
16044 Fix a typo in comment.
16046 2010-03-22 Mike Stump <mikestump@comcast.net>
16049 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
16050 Don't overly align based upon packed packed fields.
16052 2010-03-22 Jason Merrill <jason@redhat.com>
16054 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
16055 Use () rather than [], and move before the element type.
16057 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16059 * doc/configfiles.texi (Configuration Files): Removed
16060 fixinc/Makefile*, intl/Makefile.*.
16061 * doc/makefile.texi: Fixed markup. Abstract from version
16062 control system used.
16063 (Makefile): Removed obsolete gcc/java/parse.y example.
16064 * doc/sourcebuild.texi: Likewise.
16065 (Top Level): Added config, gnattools, libdecnumber, libgcc,
16066 libgomp, libssp. Removed fastjar.
16067 (Miscellaneous Docs): Clarify location.
16068 Added COPYING3, COPYING3.LIB.
16069 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
16071 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16074 * config/i386/i386.c (x86_function_profiler)
16075 [!NO_PROFILE_COUNTERS]: Fix typo.
16076 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
16079 2010-03-22 Janis Johnson <janis187@us.ibm.com>
16080 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16082 * doc/sourcebuild.texi (Test Directives): Split into six
16083 subsections, with most of the current text in new subsections
16084 Directives, Selectors, and Final Actions.
16085 (Directives): Split list of test directives into multiple
16087 (Selectors): Describe use and syntax of selectors.
16088 (Effective-Target Keywords): Describe all existing keywords.
16089 (Add Options): Describe features for dg-add-options.
16090 (Require Support): Describe variants of dg-require-support.
16091 (Final Actions): Describe commands to use in dg-final.
16093 2010-03-22 Michael Matz <matz@suse.de>
16095 PR middle-end/43475
16096 * recog.c (validate_replace_rtx_group): Replace also in
16097 REG_EQUAL and REG_EQUIV notes.
16099 2010-03-22 Richard Guenther <rguenther@suse.de>
16101 PR tree-optimization/43390
16102 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
16103 sure vector extracts are type correct.
16105 2010-03-22 Richard Guenther <rguenther@suse.de>
16107 PR middle-end/40106
16108 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
16109 x * sqrt (x) even when optimizing for size if the target
16110 has native support for sqrt.
16112 2010-03-22 Jakub Jelinek <jakub@redhat.com>
16114 * varasm.c (make_decl_rtl_for_debug): Also clear
16115 flag_mudflap for the duration of make_decl_rtl call.
16118 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
16119 locs from preserved VALUEs.
16121 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16123 PR middle-end/42718
16124 * pa.md (movmemsi): Set align to one if zero.
16125 (movmemdi): Likewise.
16127 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
16130 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
16131 with their corresponding prologue pushes.
16133 2010-03-20 Andrew Pinski <pinskia@gmail.com>
16136 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
16137 at the begining or end.
16138 (spu_expand_epilogue): Likewise.
16140 2010-03-20 Richard Guenther <rguenther@suse.de>
16142 PR rtl-optimization/43438
16143 * combine.c (make_extraction): Properly zero-/sign-extend an
16144 extraction of the low part of a CONST_INT. Also handle
16147 2010-03-19 Mike Stump <mikestump@comcast.net>
16149 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
16150 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
16151 (override_options): Use SUBTARGET32_DEFAULT_CPU.
16153 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
16156 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
16159 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
16161 PR rtl-optimization/42258
16162 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
16163 use that may match DEF.
16166 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
16167 the cost of loading the constant rather than assuming
16169 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
16170 outer code is AND, do the same tests as the andsi3 expander and
16171 return COSTS_N_INSNS (1) if and is cheap.
16173 * optabs.c (avoid_expensive_constant): Fix formatting.
16175 2010-03-19 Michael Matz <matz@suse.de>
16178 * attribs.c (decl_attributes): When rebuilding a function pointer
16179 type use the same qualifiers as the original pointer type.
16181 2010-03-19 Martin Jambor <mjambor@suse.cz>
16183 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
16184 and is_gimple_ip_invariant_address.
16186 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16189 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16191 * config/arm/arm.c (arm_override_options): Turn off
16192 flag_dwarf2_cfi_asm for AAPCS variants.
16194 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16197 * config/arm/arm.c (emit_multi_reg_push): Update comments.
16198 Use PRE_MODIFY instead of PRE_DEC.
16199 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
16200 (vfp_emit_fstmd): Likewise.
16202 2010-03-19 Michael Matz <matz@suse.de>
16205 * builtins.c (expand_builtin_interclass_mathfn,
16206 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
16209 2010-03-19 Richard Guenther <rguenther@suse.de>
16211 PR tree-optimization/43415
16212 * tree-ssa-pre.c (phi_translate): Split out worker to ...
16213 (phi_translate_1): ... this.
16214 (phi_translate): Move all caching here. Cache all NARY
16215 and REFERENCE translations.
16217 2010-03-19 David S. Miller <davem@davemloft.net>
16219 With help from Eric Botcazou.
16220 * config/sparc/sparc.c: Include dwarf2out.h.
16221 (emit_pic_helper): Delete.
16222 (pic_helper_symbol_name): Delete.
16223 (pic_helper_emitted_p): Delete.
16224 (pic_helper_needed): New.
16225 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
16226 (get_pc_thunk_name): New.
16227 (load_pic_register): Remove 'delay_pic_helper' arg. Use
16228 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
16229 Set pic_helper_needed to true. Don't call emit_pic_helper.
16230 (sparc_expand_prologue): Update load_pic_register call.
16231 (sparc_output_mi_thunk): Likewise.
16232 (sparc_file_end): Emit a hidden comdat symbol for the PIC
16233 thunk if possible. Output CFI information as needed.
16235 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16236 Jack Howarth <howarth@bromo.med.uc.edu>
16239 * config/i386/i386.h: Fix ABI on darwin x86-32.
16241 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
16243 * tree.h: Declare make_decl_rtl_for_debug.
16244 * varasm.c (make_decl_rtl_for_debug): New.
16245 * dwarf2out.c (rtl_for_decl_location): Call it.
16246 * cfgexpand.c (expand_debug_expr): Call it.
16248 2010-03-18 Jakub Jelinek <jakub@redhat.com>
16251 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
16255 * var-tracking.c (vt_init_cfa_base): Do nothing if
16256 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
16258 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
16261 * var-tracking.c (canonicalize_vars_star): New.
16262 (dataflow_post_merge_adjust): Use it.
16264 2010-03-18 Jakub Jelinek <jakub@redhat.com>
16267 * var-tracking.c (non_suitable_const): New function.
16268 (add_uses): For DEBUG_INSNs with constants, don't record any
16269 value, instead just the constant value itself.
16270 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
16271 is not VAR_LOC_UNKNOWN_P, set var to the constant.
16272 (emit_notes_in_bb): Likewise.
16273 (emit_note_insn_var_location): For onepart variables if
16274 cur_loc is a VOIDmode constant, use DECL_MODE.
16276 2010-03-18 Martin Jambor <mjambor@suse.cz>
16278 PR middle-end/42450
16279 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
16280 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
16281 all non-clones. Moved call redirection...
16282 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
16283 (cgraph_materialize_all_clones): Dispose of all
16284 combined_args_to_skip bitmaps.
16285 (verify_cgraph_node): Do not check for edges pointing to wrong
16286 nodes in inline clones.
16287 * tree-inline.c (copy_bb): Call
16288 cgraph_redirect_edge_call_stmt_to_callee.
16289 * ipa.c (cgraph_remove_unreachable_nodes): Call
16290 cgraph_node_remove_callees even when there are used clones.
16292 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
16294 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
16296 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
16299 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
16302 2010-03-18 Michael Matz <matz@suse.de>
16304 PR middle-end/43419
16305 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
16306 into sqrt(x) if we need to preserve signed zeros.
16308 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
16309 Eric Botcazou <ebotcazou@adacore.com>
16311 PR rtl-optimization/43360
16312 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
16313 note if we don't know its invariant status.
16315 2010-03-18 Michael Matz <matz@suse.de>
16317 PR tree-optimization/43402
16318 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
16319 PHI chains of ssa names registered for update.
16321 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
16324 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
16325 non-offsettable and pre_modify update addressing.
16326 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
16327 and "2" alternatives "#".
16328 (*movdd_softfloat32): Make all alternatives "#";
16329 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
16330 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
16331 (*movdf_softfloat32): Make all alternatives "#";
16332 (movdi): Use the new DIFD mode iterator to create a common splitter
16333 for movdi, movdf and movdd patterns.
16335 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
16337 * common.opt (dumpdir): Remove redundant tab.
16339 2010-03-17 Martin Jambor <mjambor@suse.cz>
16341 PR tree-optimization/43347
16342 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
16343 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
16345 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
16347 PR rtl-optimization/42216
16348 * regrename.c (create_new_chain): New function, broken out from...
16349 (scan_rtx_reg): ... here. Call it. Handle the case where we are
16350 appending a use to an empty chain.
16351 (build_def_use): Remove previous changes that convert OP_INOUT to
16352 OP_OUT operands; instead detect the case where an OP_INOUT operand
16353 uses a previously untracked register and create an empty chain for it.
16355 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16357 * doc/extend.texi (Function Attributes): Rewrite unfinished
16358 sentence in ms_abi documentation.
16360 2010-03-17 Alan Modra <amodra@gmail.com>
16362 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
16363 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
16364 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
16365 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
16367 2010-03-16 Richard Henderson <rth@redhat.com>
16369 PR middle-end/43365
16370 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
16371 (lower_try_finally): Save and restore eh_seq around the expansion
16372 of the try-finally.
16374 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
16376 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
16377 statements before splitting block.
16379 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16381 * doc/sourcebuild.texi (Testsuites): Fix markup.
16382 Use pathnames relative to gcc/testsuite.
16383 (Test Directives): Move description of how timeout is determined.
16384 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
16385 (C Tests): Correct gcc.misc-tests directory.
16386 Framework tests now live in gcc.test-framework.
16388 2010-03-16 Richard Guenther <rguenther@suse.de>
16390 PR middle-end/43379
16391 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
16392 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
16394 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
16395 Alexandre Oliva <aoliva@redhat.com>
16397 PR tree-optimization/42917
16398 * lambda-code.c (remove_iv): Skip debug statements.
16399 (lambda_loopnest_to_gcc_loopnest): Likewise.
16400 (not_interesting_stmt): Debug statements are not interesting.
16402 2010-03-16 Jakub Jelinek <jakub@redhat.com>
16406 * cselib.c (cselib_preserve_constants,
16407 cfa_base_preserved_val): New static variables.
16408 (preserve_only_constants): New function.
16409 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
16410 clear its REG_VALUES. If cselib_preserve_constants, don't
16411 empty the whole hash table, but preserve there VALUEs with constants,
16412 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
16413 (cselib_preserve_cfa_base_value): New function.
16414 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
16415 (cselib_init): Change argument to int bitfield. Set
16416 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
16418 (cselib_finish): Clear cselib_preserve_constants and
16419 cfa_base_preserved_val.
16420 * cselib.h (enum cselib_record_what): New enum.
16421 (cselib_init): Change argument to int.
16422 (cselib_preserve_cfa_base_value): New prototype.
16423 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
16424 * dse.c (dse_step1): Likewise.
16425 * cfgcleanup.c (thread_jump): Likewise.
16426 * sched-deps.c (sched_analyze): Likewise.
16427 * gcse.c (local_cprop_pass): Likewise.
16428 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
16429 If FN is non-NULL, call the callback always and whenever it returns
16430 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
16431 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
16432 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
16433 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
16434 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
16435 * var-tracking.c: Include recog.h.
16436 (bb_stack_adjust_offset): Remove.
16437 (vt_stack_adjustments): Don't call it, instead just gather the
16438 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
16439 (adjust_stack_reference): Remove.
16440 (compute_cfa_pointer): New function.
16441 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
16442 (struct adjust_mem_data): New type.
16443 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
16445 (get_address_mode): New function.
16446 (replace_expr_with_values): Use it.
16447 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
16448 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
16449 (adjust_sets): Remove.
16450 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
16451 Use get_address_mode.
16452 (get_adjusted_src): Remove.
16453 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
16454 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
16455 (add_with_sets): Don't call adjust_sets.
16456 (fp_setter, vt_init_cfa_base): New functions.
16457 (vt_initialize): Change return type to bool. Move most of pool etc.
16458 initialization to the beginning of the function from end. Pass
16459 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
16460 If !frame_pointer_needed, call vt_stack_adjustment before mos
16461 vector is filled, call vt_init_cfa_base if argp/framep has been
16462 eliminated to sp. If frame_pointer_needed and argp/framep has
16463 been eliminated to hard frame pointer, set
16464 hard_frame_pointer_adjustment and call vt_init_cfa_base after
16465 encountering fp setter in the prologue. For MO_ADJUST, call
16466 log_op_type before pusing the op into mos vector, not afterwards.
16467 Call adjust_insn before cselib_process_insn/add_with_sets,
16468 call cancel_changes (0) afterwards.
16469 (variable_tracking_main_1): Adjust for vt_initialize calling
16470 vt_stack_adjustments and returning whether it succeeded or not.
16472 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
16474 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
16477 2010-03-15 Jakub Jelinek <jakub@redhat.com>
16479 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
16481 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
16482 drap_reg has not been set.
16484 2010-03-15 Michael Matz <matz@suse.de>
16486 PR middle-end/43300
16487 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
16488 use it to expand block copies.
16489 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
16490 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
16491 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
16493 2010-03-15 Richard Guenther <rguenther@suse.de>
16495 PR tree-optimization/43367
16496 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
16499 2010-03-15 Richard Guenther <rguenther@suse.de>
16501 PR tree-optimization/43317
16502 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
16504 2010-03-15 Martin Jambor <mjambor@suse.cz>
16506 PR tree-optimization/43141
16507 * tree-sra.c (create_abstract_origin): New function.
16508 (modify_function): Call create_abstract_origin.
16510 2010-03-15 Chris Demetriou <cgd@google.com>
16512 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
16515 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16517 PR middle-end/43354
16518 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
16519 call insert_out_of_ssa_copy for default definitions.
16521 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16523 * graphite-clast-to-gimple.c (my_long_long): Defined.
16524 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
16525 * graphite-sese-to-poly.c (my_long_long): Defined.
16526 (scop_ivs_can_be_represented): Use it.
16528 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16530 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
16531 graphite-max-bbs-per-function, and loop-block-tile-size.
16532 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
16534 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
16536 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16538 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
16539 forward declaration.
16540 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
16541 (add_upper_bounds_from_estimated_nit): New.
16542 (build_loop_iteration_domains): Use it.
16544 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16546 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
16548 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16550 PR middle-end/43306
16551 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
16552 should be an INTEGER_CST. Also handle CASE_CONVERT.
16554 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16556 * graphite.c (graphite_initialize): To bound the number of bbs per
16557 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
16558 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
16559 * doc/invoke.texi: Document it.
16561 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16563 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
16564 * graphite-sese-to-poly.h (build_poly_scop): Same.
16566 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16568 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
16569 the number of parameters in the scop. Use as an upper bound
16570 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
16571 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
16572 * doc/invoke.texi: Document it.
16574 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
16576 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
16577 * doc/c-tree.texi: Remove.
16578 * doc/generic.texi: Merge c-tree.texi here.
16579 * doc/gccint.texi (Trees): Remove menu entry.
16580 (c-tree.texi): Remove @include.
16581 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
16582 * doc/languages.texi (Reading RTL): Ditto.
16584 2010-03-12 Steve Ellcey <sje@cup.hp.com>
16587 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
16589 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
16591 PR middle-end/42431
16592 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
16593 code added to work around reload clobbering CONST insns.
16595 2010-03-12 Jakub Jelinek <jakub@redhat.com>
16597 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
16598 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
16599 (cselib_preserve_only_values): Remove retain argument, don't
16600 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
16601 * cselib.h (cselib_preserve_only_values): Remove retain argument.
16602 * var-tracking.c (micro_operation): Move insn field before union.
16603 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
16604 (struct variable_tracking_info_def): Remove n_mos field, change
16605 mos into a vector of micro_operations.
16606 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
16607 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
16608 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
16609 changing into a vector.
16610 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
16611 come before all other uops generated by add_stores.
16612 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
16614 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
16615 a vector. Run just one pass over the bbs instead of separate counting
16616 and computation phase.
16617 (vt_finalize): Free VTI (bb)->mos vector instead of array.
16620 * tree-inline.c (remap_decls): Put old_var rather than origin_var
16621 into *nonlocalized_list vector.
16622 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
16623 even if origin is non-NULL.
16624 (gen_variable_die): Likewise.
16625 (process_scope_var): Don't change origin.
16626 (gen_decl_die): Likewise.
16627 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
16628 before adding new edges instead of after it, fix moving over
16631 2010-03-11 David S. Miller <davem@davemloft.net>
16633 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
16635 * configure: Rebuild.
16637 2010-03-11 Martin Jambor <mjambor@suse.cz>
16639 PR tree-optimization/43257
16640 * tree.c (assign_assembler_name_if_neeeded): New function.
16641 (free_lang_data_in_cgraph): Assembler name assignment moved to the
16642 above new function.
16643 * tree.h (assign_assembler_name_if_neeeded): Declare.
16644 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
16645 the function if needed.
16647 2010-03-11 Chris Demetriou <cgd@google.com>
16649 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
16650 include/stdint-gcc.h, and include/stdint.h world-readable.
16652 2010-03-11 Richard Guenther <rguenther@suse.de>
16654 PR tree-optimization/43255
16655 * tree-vrp.c (process_assert_insertions_for): Do not insert
16656 asserts for trivial conditions.
16658 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16660 PR tree-optimization/43280
16661 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
16662 generation. Move calculation of size out of the if branch.
16663 (find_bswap): Modify compare number generation.
16665 2010-03-11 Richard Guenther <rguenther@suse.de>
16668 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
16669 (input_gimple_stmt): Fixup handled component types during
16670 operand read. Also fix up decls in ADDR_EXPRs.
16672 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
16674 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
16675 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
16677 2010-03-10 Jan Hubicka <jh@suse.cz>
16680 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
16681 * varasm.c (get_variable_section): Don't do that here...
16682 (make_decl_rtl): ... and here.
16683 (do_assemble_alias): Produce decl RTL.
16684 (assemble_alias): Likewise.
16686 2010-03-10 Jakub Jelinek <jakub@redhat.com>
16689 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
16690 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
16692 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
16693 (based_loc_descr): Only express drap or vdrap regno based expressions
16694 using DW_OP_fbreg when not optimizing.
16695 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
16696 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
16697 REG_CFA_SET_VDRAP note.
16699 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
16701 PR tree-optimization/43236
16702 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
16703 error in calculation of base address in reverse iteration case.
16704 (generate_builtin): Take number of latch executions if the statement
16707 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
16709 PR middle-end/42859
16710 * tree-eh.c: Include pointer-set.h.
16711 (lower_eh_dispatch): Filter out duplicate case labels and
16712 remove the unneeded edge when the label is unused. Return
16713 true when some edges are removed.
16714 (execute_lower_eh_dispatch): When any lowering resulted in
16715 removing an edge, also delete unreachable blocks.
16717 2010-03-10 Jakub Jelinek <jakub@redhat.com>
16720 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16721 UNSPEC_MACHOPIC_OFFSET.
16723 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
16726 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
16727 (m68k_delegitimize_address): New function.
16729 2010-03-09 Jakub Jelinek <jakub@redhat.com>
16732 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
16735 * var-tracking.c (adjust_sets): New function.
16736 (count_with_sets, add_with_sets): Use it.
16737 (get_adjusted_src): New inline function.
16738 (add_stores): Use it.
16741 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
16742 call cselib_dummy_expand_value_rtx_cb instead of
16743 cselib_expand_value_rtx_cb.
16746 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
16747 * config/i386/i386.c: Include debug.h and dwarf2out.h.
16748 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
16749 and .cfi_endproc around the pic thunks.
16750 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
16751 all queued unwind info register saves are saved before the call.
16752 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
16753 considered as sp-=4 for unwind info and the pop as sp+=4 which
16754 also clobbers dest, but doesn't actually restore it.
16757 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
16758 RTX_FRAME_RELATED_P.
16760 2010-03-09 Jie Zhang <jie@codesourcery.com>
16762 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
16763 whitespaces in output template.
16765 2010-03-09 Jie Zhang <jie@codesourcery.com>
16767 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
16768 out array boundary.
16770 2010-03-08 Jakub Jelinek <jakub@redhat.com>
16772 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
16773 builtins.exp in a separate job.
16775 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16777 * graphite-sese-to-poly.c (add_param_constraints): Use
16778 lower_bound_in_type and upper_bound_in_type.
16780 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16782 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
16783 instead of unsigned_type_node.
16785 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16786 Reza Yazdani <reza.yazdani@amd.com>
16788 PR middle-end/43065
16789 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
16790 on pointer type parameters.
16792 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
16794 PR middle-end/42644
16795 PR middle-end/42130
16796 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
16797 handle conversions from pointer to integers.
16798 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
16799 induction variable, to be able to work with code generated by CLooG.
16800 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
16801 (build_poly_scop): Bail out if we cannot codegen a loop.
16803 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
16805 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
16806 code generation with gloog_error.
16808 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16810 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
16811 Call fold_convert on all the returned values.
16812 (expand_scalar_variables_expr): Pass to
16813 expand_scalar_variables_ssa_name the type of the resulting expression.
16815 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16817 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
16818 ppl_min_for_le_pointset.
16819 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
16820 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
16822 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16824 * graphite-dependences.c (map_into_dep_poly): Removed.
16825 (dependence_polyhedron_1): Use combine_context_id_scat.
16827 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16829 * graphite-poly.h (struct poly_scattering): Add layout documentation.
16830 (struct poly_bb): Same.
16831 (combine_context_id_scat): New.
16833 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16835 PR middle-end/42326
16836 * sese.c (name_defined_in_loop_p): Return false for default
16839 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16841 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
16842 and clean up the logic.
16844 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16846 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
16849 2010-03-08 Jakub Jelinek <jakub@redhat.com>
16851 * var-tracking.c (remove_cselib_value_chains): Define only for
16853 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
16854 delete_slot_part, emit_notes_for_differences_1): Don't call
16855 remove_cselib_value_chains here.
16856 (set_slot_part, emit_notes_for_differences_2): Don't call
16857 add_cselib_value_chains here.
16858 (preserved_values): New vector.
16859 (preserve_value): New function.
16860 (add_uses, add_stores, vt_add_function_parameters): Use it
16861 instead of cselib_preserve_value.
16862 (changed_values_stack): New vector.
16863 (check_changed_vars_0): New function.
16864 (check_changed_vars_1, check_changed_vars_2): Use it.
16865 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
16866 changed_values_stack VALUEs.
16867 (vt_emit_notes): For all preserved_values call
16868 add_cselib_value_chains. If ENABLE_CHECKING call
16869 remove_cselib_value_chains before verifying value_chains is empty.
16870 Initialize and free changed_values_stack.
16871 (vt_initialize): Initialize preserved_values.
16872 (vt_finalize): Free preserved_values.
16874 2010-03-08 Richard Guenther <rguenther@suse.de>
16876 PR tree-optimization/43269
16877 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
16880 2010-03-08 Martin Jambor <mjambor@suse.cz>
16882 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
16883 (ipa_is_param_called): Removed.
16884 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
16885 (ipa_print_node_params): Do not print the called flag.
16886 (ipa_write_node_info): Do not stream the called flag.
16887 (ipa_read_node_info): Likewise.
16889 2010-03-07 Jakub Jelinek <jakub@redhat.com>
16892 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
16893 * cselib.c (struct expand_value_data): Add dummy field.
16894 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
16896 (cselib_dummy_expand_value_rtx_cb): New function.
16897 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
16899 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
16900 * var-tracking.c: Include pointer-set.h.
16901 (variable): Change n_var_parts to char from int. Add
16902 cur_loc_changed and in_changed_variables fields.
16903 (variable_canonicalize): Remove.
16904 (shared_var_p): New inline function.
16905 (unshare_variable): Maintain cur_loc_changed and
16906 in_changed_variables fields. If var was in changed_variables,
16907 replace it there with new_var. Just copy cur_loc instead of
16908 resetting it to something else.
16909 (variable_union): Don't recompute cur_loc. Use shared_var_p.
16910 (dataflow_set_union): Don't call variable_canonicalize.
16911 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
16912 of their DEBUG_EXPR_TREE_DECLs.
16913 (canonicalize_loc_order_check): Verify that cur_loc is NULL
16914 and in_changed_variables and cur_loc_changed is false.
16915 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
16916 and cur_loc_changed. Don't update cur_loc here.
16917 (variable_merge_over_src): Don't call variable_canonicalize.
16918 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
16919 removing loc that is equal to cur_loc, clear cur_loc,
16920 set cur_loc_changed and ensure variable_was_changed is called.
16921 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
16922 compare pointers in cur_loc check, if it is equal to loc,
16923 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
16924 (variable_different_p): Remove compare_current_location argument,
16925 don't compare cur_loc.
16926 (dataflow_set_different_1): Adjust variable_different_p caller.
16927 (variable_was_changed): If dv had some var in changed_variables
16928 already, reset in_changed_variables flag for it and propagate
16929 cur_loc_changed over to the new variable. On empty var
16930 always set cur_loc_changed. Set in_changed_variables on whatever
16931 var is added to changed_variables.
16932 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
16933 Use shared_var_p. When removing loc that is equal to cur_loc,
16934 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
16935 end, don't set it to something else, just call variable_was_changed.
16936 (delete_slot_part): Use shared_var_p. When cur_loc equals to
16937 loc being removed, clear cur_loc and set cur_loc_changed.
16938 Set cur_loc_changed if all locations have been removed.
16939 (struct expand_loc_callback_data): New type.
16940 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
16941 allocated. Always create SUBREGs if simplify_subreg failed.
16942 Prefer to use cur_loc, when that fails and still in
16943 changed_variables (and seen first time) recompute it. Set
16944 cur_loc_changed of variables which had to change cur_loc and
16945 compute elcd->cur_loc_changed if any of the subexpressions used
16946 had to change cur_loc.
16947 (vt_expand_loc): Adjust to pass arguments in
16948 expand_loc_callback_data structure.
16949 (vt_expand_loc_dummy): New function.
16950 (emitted_notes): New variable.
16951 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
16952 that weren't used for any other decl in current
16953 emit_notes_for_changes call call vt_expand_loc_dummy to update
16954 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
16955 first loc_chain location if NULL before. Always use just
16956 cur_loc instead of first loc_chain location. When cur_loc_changed
16957 is false, when not --enable-checking=rtl just don't emit any note.
16958 When rtl checking, compute the note and assert it is the same
16959 as previous note. Clear cur_loc_changed and in_changed_variables
16960 at the end before removing from changed_variables.
16961 (check_changed_vars_3): New function.
16962 (emit_notes_for_changes): Traverse changed_vars to call
16963 check_changed_vars_3 on each changed var.
16964 (emit_notes_for_differences_1): Clear cur_loc_changed and
16965 in_changed_variables. Recompute cur_loc of new_var.
16966 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
16967 (vt_emit_notes): Initialize and destroy emitted_notes.
16969 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
16971 PR rtl-optimization/42220
16972 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
16973 Use verify_reg_tracked to determine if we should use OP_OUT rather
16975 (build_def_use): If we see an in-out operand for a register that we
16976 know nothing about, treat is an output if possible, fail the block if
16979 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
16982 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
16985 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
16988 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
16989 uses of relevant DEFs that are dead outside the loop too.
16991 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
16993 * var-tracking.c (dataflow_set_merge): Swap src and src2.
16995 2010-01-13 Jakub Jelinek <jakub@redhat.com>
16997 * var-tracking.c (values_to_unmark): New variable.
16998 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
16999 values_to_unmark vector. Moved body to...
17000 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
17001 instead queue it into values_to_unmark vector.
17002 (vt_find_locations): Free values_to_unmark vector.
17004 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
17006 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
17007 (site.exp): Export them when plugins are enabled.
17009 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
17011 PR middle-end/42326
17012 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
17013 that contain scevs.
17014 (chrec_fold_multiply): Same.
17016 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
17019 * c-decl.c (build_compound_literal): Return early if init is
17020 an error_mark_node.
17022 2010-03-04 Martin Jambor <mjambor@suse.cz>
17024 PR tree-optimization/43164
17025 PR tree-optimization/43191
17026 * tree-sra.c (type_consists_of_records_p): Reject records with
17027 zero-size bit-fields at the end.
17029 2010-03-04 Mike Stump <mikestump@comcast.net>
17031 * Makefile.in (TAGS): Remove *.y.
17033 2010-03-04 Richard Guenther <rguenther@suse.de>
17035 PR tree-optimization/40761
17036 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
17038 (my_rev_post_order_compute): New function.
17039 (init_pre): Call it.
17041 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
17043 PR middle-end/43209
17044 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
17045 decrease the cost of an IV candidate when the cost is infinite.
17047 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17049 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
17050 Use '3DNow!' for the extension of that name, ensure normal space
17052 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
17054 2010-03-03 Jeff Law <law@redhat.com>
17056 * PR middle-end/32693
17057 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
17058 than gen_rtx_SUBREG.
17059 (extract_bit_field_1): Likewise.
17061 2010-03-03 Janis Johnson <janis187@us.ibm.com>
17063 * doc/sourcebuild.texi (Test directives): Document that arguments
17064 include-opts and exclude-opts are now optional for dg-skip-if,
17065 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
17067 2010-03-03 Jason Merrill <jason@redhat.com>
17070 * cgraph.h (varpool_node): Add extra_name field.
17071 * varpool.c (varpool_extra_name_alias): New.
17072 (varpool_assemble_decl): Emit extra name aliases.
17073 (varpool_mark_needed_node): Look past an extra name alias.
17074 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
17075 * lto-streamer-in.c (lto_input_tree): Read it.
17076 * lto-streamer-out.c (output_unreferenced_globals): Write it.
17078 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
17080 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
17081 (sparc*-*-solaris2*): ...this.
17083 2010-03-03 Jakub Jelinek <jakub@redhat.com>
17086 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
17087 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
17088 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
17089 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
17092 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
17093 fallthrough to default handling, just with want_address 0 instead of 2.
17094 For single element lists, add_AT_loc directly, otherwise create an
17095 artificial variable DIE and stick location list to it.
17098 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
17099 (VAL_EXPR_HAS_REVERSE): Define.
17100 (reverse_op): New function.
17101 (add_stores): For reversible operations add an extra MO_VAL_USE.
17103 2010-03-02 Jason Merrill <jason@redhat.com>
17105 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
17107 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
17109 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
17110 (sparc64-*-linux*): Likewise.
17111 (sparc64-*-solaris2*): Include assembler files before linker ones.
17112 (sparc-*-solaris2*): Simplify and reorder to match previous case.
17113 * config/sparc/gas.h: Delete.
17114 * config/sparc/sol2-64.h: Add copyright notice.
17115 * config/sparc/sol2-gas-bi.h: Likewise.
17116 * config/sparc/sol2-gld.h: Likewise.
17117 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
17118 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
17119 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
17120 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
17121 (sparc_elf_asm_named_section): Rename into...
17122 (sparc_solaris_elf_asm_named_section): ...this. Always define.
17124 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
17126 * config/alpha/alpha.c (override_options): Fix -mtune error message.
17128 2010-03-02 Jeff Law <law@redhat.com>
17130 PR middle-end/42431
17131 * reload1.c (rtx_p, substitute_stack): Declare.
17132 (substitute): Record addresses of changed rtxs.
17133 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
17134 Restore the original rtx when complete.
17135 (reload): Free subsitute_stack when complete.
17137 2010-03-02 Janis Johnson <janis187@us.ibm.com>
17139 * doc/gccint.texi (menu): Add Testsuites as a chapter.
17140 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
17142 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
17143 LTO Testing, gcov Testing, profopt Testing, compat Testing,
17144 Torture Tests): Change from subsection to section.
17146 2010-03-02 Jakub Jelinek <jakub@redhat.com>
17147 Steven Bosscher <steven@gcc.gnu.org>
17149 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
17152 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
17154 PR middle-end/42640
17155 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
17156 the assignment from the new induction variable to the assignment
17157 of the value from the original loop PHI function.
17159 2010-03-01 Janis Johnson <janis187@us.ibm.com>
17160 Daniel Jacobowitz <dan@codesourcery.com>
17162 * doc/sourcebuild.texi (Test directives): Clarify options to
17165 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17167 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
17168 Disable cfi directives unless GCC and gas agree on using read-only
17169 .eh_frame sections for 64-bit.
17170 * configure: Regenerate.
17172 2010-03-01 Richard Guenther <rguenther@suse.de>
17174 PR tree-optimization/43220
17175 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
17176 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
17178 2010-03-01 Richard Guenther <rguenther@suse.de>
17179 Martin Jambor <mjambor@suse.cz>
17181 PR middle-end/41250
17182 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
17183 gimplified parameters.
17185 2010-03-01 Christian Bruel <christian.bruel@st.com>
17187 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
17189 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
17191 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
17193 2010-03-01 Richard Guenther <rguenther@suse.de>
17195 PR middle-end/43213
17196 * expr.c (expand_assignment): Use the alias-oracle to tell
17197 if the rhs aliases the result decl.
17199 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17202 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
17203 to sol_gt_pch_get_address.
17204 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
17205 64-bit, SPARC and x86.
17206 (sol_gt_pch_get_address): New function.
17208 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
17210 * toplev.h (inform_n, error_n): Declare.
17211 * diagnostic.c (inform_n, error_n): New function.
17213 2010-03-01 Jakub Jelinek <jakub@redhat.com>
17215 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
17216 has no rtl yet when processing local_decls, queue it and recheck
17217 if deferred stack allocation hasn't assigned it rtl.
17219 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
17221 * config/sh/sh.c (unspec_bbr_uid): New.
17222 (gen_block_redirect): Use it instead of INSN_UID.
17223 (gen_far_branch): Likewise.
17225 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
17227 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
17228 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
17230 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17232 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
17233 (Warning Options): -Wno-conversion-null is valid for
17234 Objective-C++ as well.
17235 * doc/tm.texi (Named Address Spaces): Likewise.
17236 * doc/plugins.texi (Plugins): Replace TABs with spaces.
17237 * doc/tree-ssa.texi (Tree SSA): Likewise.
17239 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
17242 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
17243 by default. Don't set the default arch for
17244 i[34567]86-*-darwin*|x86_64-*-darwin*.
17246 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
17249 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
17250 default. Set the default 32bit/64bit archs with $with_arch
17251 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
17253 2010-02-27 Richard Guenther <rguenther@suse.de>
17255 PR tree-optimization/43186
17256 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
17257 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
17258 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
17259 unroller iterations.
17261 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
17263 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
17264 required and i[34567]86-*-* targets don't support 64bit ISA.
17266 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
17269 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
17270 the same alias set.
17272 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
17274 * config.gcc: Set the default arch at least to Prescott for
17275 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
17276 if SSE math is enabled.
17278 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
17280 * diagnostic.c (diagnostic_initialize): Update.
17281 (diagnostic_report_diagnostic): Test inhibit_notes_p for
17283 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
17284 (diagnostic_inhibit_notes): New.
17285 * toplev.c (process_options): inhibit notes with -fcompare-debug.
17287 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
17290 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
17291 * doc/standards.texi: Likewise.
17292 * doc/extend.texi: Likewise.
17293 * doc/trouble.texi: Likewise.
17294 * doc/cppopts.texi: Likewise.
17295 * doc/install.texi: Likewise.
17296 * c.opt (std=c90,std=gnu90): New options.
17297 * c-opts.c (c_common_handle_option): Handle them.
17299 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
17302 * c-decl.c (undeclared_variable): Use an informative note.
17304 2010-02-26 Richard Guenther <rguenther@suse.de>
17306 PR tree-optimization/43186
17307 * gimple.h (gimple_fold): Remove.
17308 * gimple.c (gimple_fold): Remove. Inline into single user ...
17309 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
17310 Try harder for conditions.
17312 2010-02-26 Jakub Jelinek <jakub@redhat.com>
17315 * function.c (used_types_insert): Don't skip through named pointer
17316 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
17317 and it is different from the main variant's type.
17319 2010-02-26 Nick Clifton <nickc@redhat.com>
17321 * config/rx/rx.md (sminsi3): Remove bogus alternative.
17323 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
17325 * config.gcc: Support --with-fpmath=sse for x86.
17327 * config/i386/ssemath.h: New.
17329 * doc/install.texi (--with-fpmath=sse): Documented.
17331 2010-02-26 Richard Guenther <rguenther@suse.de>
17333 PR tree-optimization/43188
17334 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
17335 vector types of over-aligned element type.
17337 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
17340 * config/i386/i386.c (expand_vec_perm_blend): Use correct
17341 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
17343 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
17345 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
17347 2010-02-26 Jakub Jelinek <jakub@redhat.com>
17349 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
17350 * var-tracking.c: Include diagnostic.h.
17351 (debug_dv): New function.
17352 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
17355 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
17356 (add_value_chain, add_value_chains, remove_value_chain,
17357 remove_value_chains): Handle DEBUG_EXPRs.
17358 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
17361 * regcprop.c (struct queued_debug_insn_change): New type.
17362 (struct value_data_entry): Add debug_insn_changes field.
17363 (struct value_data): Add n_debug_insn_changes field.
17364 (debug_insn_changes_pool): New variable.
17365 (free_debug_insn_changes, apply_debug_insn_changes,
17366 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
17367 (kill_value_one_regno): Call free_debug_insn_changes if needed.
17368 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
17370 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
17372 (copyprop_hardreg_forward_1): Don't call apply_change_group for
17373 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
17374 changes, call cprop_find_used_regs via note_stores.
17375 (copyprop_hardreg_forward): When copying vd from predecessor
17376 which has any queued DEBUG_INSN changes, make sure the pointers are
17377 cleared. At the end call df_analyze and then if there are any
17378 DEBUG_INSN changes queued at the end of some basic block for still
17379 live registers, apply them.
17380 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
17382 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
17384 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
17387 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
17389 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
17390 targets. Set the default with_cpu/with_arch from arch/cpu.
17391 Allow x86-64 and native for with_cpu/with_arch.
17393 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
17395 * ebitmap.c: Change calls to verify_popcount with calls to
17396 sbitmap_verify_popcount.
17397 (ebitmap_clear_bit): Fixed map->cacheindex test and
17398 map>cache update when bit clearing results in an empty
17401 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
17404 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
17405 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
17406 and support both V2DF and V2DI modes.
17407 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
17408 support both V2DF and V2DI modes.
17409 (general): Delete trailing whitespace from a few patterns.
17411 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17412 V2DF/V2DI interleave high/low builtins.
17414 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
17417 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
17418 interleave high/low functions.
17420 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
17422 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
17423 #pragma extern_prefix.
17425 2010-02-25 Jakub Jelinek <jakub@redhat.com>
17428 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
17429 BLKmode, assert op0 is a MEM and just adjust its mode.
17432 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
17433 if bitpos isn't multiple of mode's bitsize.
17435 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
17437 * c.opt (-ftemplate-depth=): New.
17438 (-ftemplate-depth-): Deprecate.
17439 * optc-gen.awk: Handle -ftemplate-depth=.
17440 * opth-gen.awk: Likewise.
17441 * c-opts.c (c_common_handle_option): Likewise.
17442 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
17444 2010-02-24 Jason Merrill <jason@redhat.com>
17446 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
17448 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17450 * cfg.c (alloc_aux_for_block): Remove inline.
17451 (alloc_aux_for_edge): Likewise.
17453 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17455 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
17457 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17459 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
17460 * config/i386/sol2-gas.h: New file.
17461 * config.gcc (i[34567]86-*-solaris2*): Use it.
17463 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
17466 * c-typeck.c (ep_convert_and_check): New.
17467 (build_conditional_expr): Use it.
17468 (build_binary_op): Likewise.
17470 2010-02-24 Jakub Jelinek <jakub@redhat.com>
17472 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
17475 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
17476 bounds even for -O+.
17477 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
17478 expr needs to have DECL_NAME set.
17480 2010-02-24 Nick Clifton <nickc@redhat.com>
17482 * config/mep/mep.c: Include gimple.h.
17483 (mep_function_uses_sp): Delete unused function.
17484 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
17485 parameters. Use unsigned integers to count args. Return a
17486 NULL_RTX instead of an error_mark_node. Toidy up formatting.
17488 2010-02-23 Jakub Jelinek <jakub@redhat.com>
17491 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
17492 greater or equal to nelt instead of 2 * nelt.
17493 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
17496 2010-02-23 Jason Merrill <jason@redhat.com>
17499 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
17500 in cfun->local_decls even if they have register types.
17503 * stor-layout.c (place_field): Don't warn about unnecessary
17504 DECL_PACKED if the type is packed.
17506 2010-02-23 Jakub Jelinek <jakub@redhat.com>
17509 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
17510 GOTOFF relocs, even when the base reg isn't pic pointer.
17512 2010-02-23 Michael Matz <matz@suse.de>
17515 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
17516 (expand_gimple_basic_block): Generate and use debug temps if there
17517 are debug uses left after the last real use of TERed ssa names.
17518 Unlink debug immediate uses when they are expanded.
17520 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
17523 * config/i386/i386.c (override_options): Reorganise to provide
17524 better error messages.
17526 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
17528 PR middle-end/43083
17529 * graphite-scop-detection.c (create_single_exit_edge): Move
17530 the call to find_single_exit_edge to....
17531 (create_sese_edges): ...here. Don't handle multiple edges
17532 exiting the function.
17533 (build_graphite_scops): Don't handle multiple edges
17534 exiting the function.
17536 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
17538 PR middle-end/43097
17539 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
17540 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
17542 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
17544 PR middle-end/43026
17545 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
17547 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
17550 * c-typeck.c (convert_arguments): Print declaration location.
17551 * c-common.c (validate_nargs): Rename as
17552 builtin_function_validate_nargs.
17553 (check_builtin_function_arguments): Update.
17555 2010-02-22 Richard Guenther <rguenther@suse.de>
17558 * tree-inline.c (declare_return_variable): Use the type of
17559 the call stmt lhs if available.
17561 2010-02-22 Duncan Sands <baldrick@free.fr>
17563 * passes.c (register_pass): Always consider all pass lists when
17564 ref_pass_instance_number is zero.
17566 2010-02-22 Richard Guenther <rguenther@suse.de>
17568 PR tree-optimization/42749
17569 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
17570 parameter. Do arithmetic in the original type.
17571 (update_accumulator_with_ops): Likewise.
17572 (adjust_accumulator_values): Adjust.
17574 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17576 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
17577 (QI to BLKmode splitter): New splitter.
17579 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
17581 * config/i386/i386.c (initial_ix86_tune_features): Turn on
17582 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
17584 2010-02-22 Richard Guenther <rguenther@suse.de>
17586 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
17588 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
17590 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
17591 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
17592 ($(T)crti.o, $(T)crtn.o): Remove rules.
17594 2010-02-21 Tobias Burnus <burnus@net-b.de>
17597 * doc/invoke.texi (-fassociative-math): Document that this
17598 option is automatically enabled for Fortran.
17600 2010-02-20 David S. Miller <davem@davemloft.net>
17602 * configure.ac: Test if linker and assembler properly support
17603 GOTDATA_OP relocations.
17604 * configure: Rebuild.
17605 * config.in: Likewise.
17606 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
17607 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
17608 (movsi_high_pic): Likewise.
17609 (movdi_lo_sum_pic): Likewise.
17610 (movdi_high_pic): Likewise.
17611 (movsi_pic_gotdata_op): New pattern.
17612 (movdi_pic_gotdata_op): Likewise.
17613 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
17614 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
17616 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
17619 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
17620 attribute to ssemul.
17621 (xop_mulv2div2di3_high): Ditto.
17623 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
17626 * c.opt (Wconversion-null): New option.
17627 * doc/invoke.texi (Wconversion-null): Document.
17629 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
17631 * common.opt (Wlarger-than-): Add Undocumented.
17633 2010-02-19 Mike Stump <mikestump@comcast.net>
17635 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
17637 2010-02-19 Jason Merrill <jason@redhat.com>
17640 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
17641 * configure: Likewise.
17643 2010-02-20 Alan Modra <amodra@gmail.com>
17645 PR middle-end/42344
17646 * cgraph.h (cgraph_make_decl_local): Declare.
17647 * cgraph.c (cgraph_make_decl_local): New function.
17648 (cgraph_make_node_local): Use it.
17649 * cgraphunit.c (cgraph_function_versioning): Likewise.
17650 * ipa.c (function_and_variable_visibility): Likewise.
17652 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17655 * except.c (sjlj_emit_function_enter): Don't call
17656 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
17658 * rtl.h (add_reg_br_prob_note): Remove prototype.
17660 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
17663 * c-common.c (conversion_warning): Remove widening conversions
17664 before checking the conversion of integers to reals.
17666 2010-02-19 Mike Stump <mikestump@comcast.net>
17668 PR middle-end/43125
17669 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
17672 * cgraphunit.c (process_function_and_variable_attributes): Check
17673 DECL_PRESERVE_P instead of looking up attribute "used".
17674 * ipa-pure-const.c (check_decl): Likewise.
17675 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
17676 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
17677 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
17678 instead of attribute "used".
17679 * config/sol2-c.c (solaris_pragma_init): Likewise.
17680 (solaris_pragma_fini): Likewise.
17682 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17684 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
17685 Use XCNEW instead of xcalloc.
17686 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
17687 XNEW instead of xmalloc.
17688 (get_fields): Use XNEWVEC instead of xmalloc.
17691 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
17692 populate vars array.
17693 (create_new_general_access): For debug stmts just reset value.
17694 (get_stmt_accesses): For accesses within debug stmts just record them
17695 using add_access_to_acc_sites instead of preventing the peeling or
17696 counting them as accesses.
17698 PR middle-end/42233
17699 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
17701 2010-02-19 Richard Guenther <rguenther@suse.de>
17703 PR tree-optimization/42916
17704 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
17707 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
17709 * configure.ac: Replace all uses of changequote in macro arguments
17710 with proper quoting.
17712 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17714 PR middle-end/42233
17715 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
17717 2010-02-19 Richard Guenther <rguenther@suse.de>
17719 PR tree-optimization/42944
17720 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
17721 test for aliasing with errno.
17723 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17725 PR middle-end/42233
17726 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
17727 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
17728 * dojump.c: Include output.h.
17729 (inv): New inline function.
17730 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
17731 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
17732 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
17733 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
17734 argument, pass it down to other calls.
17735 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
17736 add REG_BR_PROB note to the conditional jump.
17737 * cfgexpand.c (add_reg_br_prob_note): Removed.
17738 (expand_gimple_cond): Don't call it, add the probability
17739 as last argument to jumpif_1/jumpifnot_1.
17740 * Makefile.in (dojump.o): Depend on output.h.
17741 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
17743 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
17744 * stmt.c (do_jump_if_equal): Likewise.
17745 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
17746 * loop-unswitch.c (compare_and_jump_seq): Likewise.
17747 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
17749 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
17750 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
17751 jumpifnot_1 callers.
17752 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
17754 (store_expr): Adjust jumpifnot caller.
17755 (store_constructor): Adjust jumpif caller.
17757 PR middle-end/42233
17758 * gimplify.c (gimple_boolify): For __builtin_expect call
17759 gimple_boolify also on its first argument.
17761 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
17763 * configure.ac (gnu-unique-object): Wrap regexps using [] in
17765 (__stack_chk_fail): Ditto. Remove quadrigraphs.
17766 * configure: Regenerated.
17768 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17770 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
17771 lang_hooks.types_compatible_p instead of comptypes.
17773 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
17775 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
17776 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
17777 if __prefer_thumb__ is defined.
17779 2010-02-18 Martin Jambor <mjambor@suse.cz>
17781 PR tree-optimization/43066
17782 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
17783 array with zero-sized element type.
17785 2010-02-18 Jakub Jelinek <jakub@redhat.com>
17787 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
17788 rtx, allocate struct var_loc_node here and return it to the
17789 caller, and only if it is actually needed.
17790 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
17791 move it earlier and return immediately if it returns NULL.
17793 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
17795 * config/sparc/gas.h: New file. Restore
17796 TARGET_ASM_NAMED_SECTION to its ELF default.
17797 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
17798 check !HAVE_GNU_AS.
17799 * config/sparc/sparc.c (sparc_elf_asm_named_section):
17800 Likewise. Add ATTRIBUTE_UNUSED to prototype.
17801 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
17802 after sparc/sysv4.h.
17804 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
17806 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
17808 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
17810 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
17811 patterns from predicated pattern.
17813 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
17816 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
17817 for insn mnemonic suffix.
17819 2010-02-17 Richard Guenther <rguenther@suse.de>
17821 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
17824 2010-02-17 Jakub Jelinek <jakub@redhat.com>
17827 * caller-save.c (save_call_clobbered_regs): If BB ends with
17828 a DEBUG_INSN, move any notes in between last real insn and the last
17829 DEBUG_INSN after the last DEBUG_INSN.
17831 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
17833 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
17834 Fix return type. Fix argument type. Explain meaning of return value.
17836 2010-02-16 Richard Guenther <rguenther@suse.de>
17838 PR tree-optimization/41043
17839 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
17840 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
17842 (vrp_visit_phi_node): ... but only for loop PHI nodes.
17844 2010-02-16 Ira Rosen <irar@il.ibm.com>
17846 PR tree-optimization/43074
17847 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
17848 * tree-vect-loop.c (vect_analyze_loop_operations): Add
17849 vectorizable cycles in hybrid SLP check.
17850 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
17852 2010-02-16 Richard Guenther <rguenther@suse.de>
17854 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
17855 (true_dependence): If memrefs_conflict_p computes must-alias
17856 trust it. Move TBAA check after offset-based disambiguation.
17857 (canon_true_dependence): Likewise.
17859 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
17861 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
17862 * doc/invoke.texi: Document it.
17863 * var-tracking.c: Include toplev.h and params.h.
17864 (vt_find_locations): Return bool indicating success. Compute
17865 hash sizes unconditionally. Check new parameter, report.
17866 (variable_tracking_main_1): Check vt_find_locations results and
17867 retry. Renamed from...
17868 (variable_tracking_main): ... this. New wrapper to preserve
17869 flag_var_tracking_assignments.
17870 * Makefile.in (var-tracking.o): Adjust dependencies.
17872 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
17873 Jakub Jelinek <jakub@redhat.com>
17876 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
17877 if weak_import attribute is present.
17878 * config/darwin.c (machopic_select_section): Likewise.
17880 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
17882 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
17883 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
17884 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
17885 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
17887 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
17890 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
17891 Fix argument types.
17893 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
17894 Rewrite text to refer to the names.
17896 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
17898 * config/i386/i386-builtin-types.def
17899 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
17900 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
17901 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
17902 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
17903 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
17904 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
17905 IX86_BUILTIN_VPERMIL2PS256.
17906 (MULTI_ARG_4_DF2_DI_I): Defined.
17907 (MULTI_ARG_4_DF2_DI_I1): Defined.
17908 (MULTI_ARG_4_SF2_SI_I): Defined.
17909 (MULTI_ARG_4_SF2_SI_I1): Defined.
17910 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
17911 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
17912 __builtin_ia32_vpermil2ps256.
17913 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
17914 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
17915 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
17916 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
17917 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
17918 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
17919 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
17920 CODE_FOR_xop_vpermil2v8sf3.
17921 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
17922 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
17923 * config/i386/xopintrin.h (_mm_permute2_pd): New.
17924 (_mm256_permute2_pd): New.
17925 (_mm_permute2_ps): New.
17926 (_mm256_permute2_ps): New.
17928 2010-02-15 Nick Clifton <nickc@redhat.com>
17930 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
17931 boolean parameters. Use emit_jump_insn when emitting a pop
17932 instruction containing a return insn.
17933 (push): Use 'true' rather than '1' as second parameter to F.
17934 (h8300_expand_prologue): Likewise.
17935 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
17936 (h8300_expand_epilogue): Likewise.
17938 2010-02-15 Richard Guenther <rguenther@suse.de>
17940 PR middle-end/43068
17941 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
17944 2010-02-15 Nick Clifton <nickc@redhat.com>
17946 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
17949 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
17951 * intl.c (fake_ngettext): New function.
17952 * intl.h (fake_ngettext): Declare.
17953 (ngettext): Define macro.
17954 * collect2.c (notice_translated): New function.
17955 (main): Use notice_translated and ngettext.
17956 * collect2.h (notice_translated): Declare.
17958 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
17960 * reorg.c (delete_computation): Comment fixes.
17961 * caller-save.c (setup_save_areas): Idem.
17962 * sel-sched-dump.c (dump_lv_set): Idem.
17965 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17967 * config/s390/s390.c (s390_sched_init): New function.
17968 (TARGET_SCHED_INIT): Target hook defined.
17970 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
17971 Jack Howarth <howarth@bromo.med.uc.edu>
17972 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17975 Partial revert of unintended change in fix for PR41605.
17976 * config/darwin.h: Fix typo.
17977 * config/darwin9.h: Same.
17979 2010-02-11 Jakub Jelinek <jakub@redhat.com>
17981 * c-pch.c (pch_init): Clear v.
17983 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
17985 PR middle-end/42930
17986 * graphite-scop-detection.c (graphite_can_represent_scev): Call
17987 graphite_can_represent_init for MULT_EXPR.
17989 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
17991 PR middle-end/42914
17992 PR middle-end/42530
17993 * graphite-sese-to-poly.c (remove_phi): New.
17994 (translate_scalar_reduction_to_array): Call remove_phi.
17996 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
17998 PR middle-end/42771
17999 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
18000 * graphite-clast-to-gimple.h (gloog): Update declaration.
18001 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
18002 * graphite-poly.h (struct poly_bb): Add missing comments.
18003 (struct scop): Add poly_scop_p field.
18004 (POLY_SCOP_P): New.
18005 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
18006 * graphite.c (graphite_transform_loops): Build the polyhedral
18007 representation for each scop before code generation.
18008 * sese.c (rename_variables_in_operand): Removed.
18009 (rename_variables_in_expr): Return the renamed expression.
18010 (rename_sese_parameters): New.
18011 * sese.h (rename_sese_parameters): Declared.
18013 2010-02-11 Richard Guenther <rguenther@suse.de>
18015 PR tree-optimization/42998
18016 * tree-ssa-pre.c (create_expression_by_pieces): Treat
18017 POINTER_PLUS_EXPR properly.
18019 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
18020 Changpeng Fang <changpeng.fang@amd.com>
18022 PR middle-end/40886
18023 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
18024 the cost of an IV candidate when the IV is used in a test against zero.
18026 * gcc.dg/tree-ssa/ivopts-3.c: New.
18028 2010-02-11 Richard Guenther <rguenther@suse.de>
18031 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
18032 pointer-vs-decl case by swapping refs. Handle some cases
18033 of pointer-vs-decl disambiguations more conservatively.
18034 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
18035 to false after expanding.
18037 2010-02-11 Richard Guenther <rguenther@suse.de>
18040 * gcc.c (process_command): Handle LTO file@offset case more
18043 2010-02-11 Jakub Jelinek <jakub@redhat.com>
18045 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
18046 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
18048 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
18050 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
18051 if MEM's mode size isn't DWARF2_ADDR_SIZE.
18052 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
18053 Optimize eq/ne comparisons when both arguments are known to be
18055 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
18056 Don't mask operands unnecessarily if they are known to be already
18059 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
18061 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
18064 2010-02-10 Richard Guenther <rguenther@suse.de>
18066 PR tree-optimization/43017
18067 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
18068 for wrapping signed arithmetic.
18070 2010-02-10 Jakub Jelinek <jakub@redhat.com>
18073 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
18074 if no debug info should be emitted for it.
18076 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
18078 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
18079 note when flag_exceptions is set.
18081 2010-02-10 Duncan Sands <baldrick@free.fr>
18083 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
18085 2010-02-10 Richard Guenther <rguenther@suse.de>
18088 * tree.c (get_unwidened): Handle constants.
18089 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
18091 2010-02-10 Martin Jambor <mjambor@suse.cz>
18094 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
18095 check for variable argument counts independently.
18097 2010-02-10 Christian Bruel <christian.bruel@st.com>
18100 * config/sh/sh.c (find_barrier): Increase length for non delayed
18101 conditional branches.
18103 2010-02-10 Christian Bruel <christian.bruel@st.com>
18105 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
18107 2010-02-10 Jakub Jelinek <jakub@redhat.com>
18109 * builtins.c (set_builtin_user_assembler_name): Also handle
18110 ffs if int is smaller than word.
18112 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
18114 PR middle-end/42973
18115 * ira-conflicts.c (get_dup): Remove.
18116 (process_reg_shuffles): Add new parameter. Use it as an
18117 additional guard for copy generation.
18118 (add_insn_allocno_copies): Rewrite.
18120 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
18122 * common.opt (fsched2-use-traces): Preserved for backward
18124 * doc/invoke.texi: Remove the documentation about option
18125 -fsched2-use-traces.
18126 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
18127 flag_sched2_use_traces.
18128 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
18129 the backward compatibility flag section.
18131 2010-02-09 Richard Guenther <rguenther@suse.de>
18133 PR tree-optimization/43008
18134 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
18135 make HEAP variables initialized from global memory if they
18136 are not known builtin functions.
18137 (find_func_aliases): Adjust.
18139 2010-02-09 Richard Guenther <rguenther@suse.de>
18141 PR tree-optimization/43000
18142 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
18143 arithmetic manually.
18145 2010-02-08 Jakub Jelinek <jakub@redhat.com>
18147 PR tree-optimization/42931
18148 * tree-loop-linear.c (try_interchange_loops): Don't call
18149 double_int_mul if estimated_loop_iterations failed.
18151 2010-02-08 Martin Jambor <mjambor@suse.cz>
18153 PR middle-end/42898
18154 * tree-sra.c (build_accesses_from_assign): Do not mark in
18155 should_scalarize_away_bitmap if stmt has volatile ops.
18156 (sra_modify_assign): Do not process assigns piecemeal if if stmt
18159 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
18161 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
18163 2010-02-07 Adam Nemet <adambnmet@gmail.com>
18165 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
18166 before the pattern.
18168 2010-02-07 Andrew Pinski <pinskia@gmail.com>
18170 PR middle-end/42946
18171 * df-core.c (df_finish_pass): Change type of saved_flags to int.
18173 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
18175 PR middle-end/42988
18176 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
18177 to unknown_dependence.
18178 (graphite_legal_transform_dr): Handle the unknown_dependence.
18179 (graphite_carried_dependence_level_k): Same.
18181 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
18183 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
18185 2010-02-07 Richard Guenther <rguenther@suse.de>
18187 PR middle-end/42991
18188 * expr.c (get_inner_reference): Always initialize *pbitsize.
18190 2010-02-07 Richard Guenther <rguenther@suse.de>
18192 PR middle-end/42956
18193 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
18194 new ARRAY_REFs on variable size element or minimal index arrays.
18196 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
18197 gimple_fold_indirect_ref.
18199 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
18202 * arm.c (arm_override_options): Just return if the user has specified
18203 an invalid fpu name.
18205 2010-02-03 Jason Merrill <jason@redhat.com>
18208 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
18209 i386_pe_maybe_record_exported_symbol.
18211 2010-02-05 Steve Ellcey <sje@cup.hp.com>
18214 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
18215 (pa_delegitimize_address): New function.
18217 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
18219 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
18220 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
18222 2010-02-05 Richard Guenther <rguenther@suse.de>
18225 * lto-streamer-in.c (get_resolution): Deal with references
18226 to undefined functions.
18228 2010-02-05 Richard Guenther <rguenther@suse.de>
18230 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
18231 (fold_const_aggregate_ref): Likewise.
18232 (ccp_fold_stmt): Substitute loads.
18233 (maybe_fold_reference): Verify types before substituting.
18235 (fold_gimple_assign): Unshare properly.
18236 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
18238 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
18240 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
18241 for rs6000_gen_cell_microcode.
18243 2010-02-04 Richard Guenther <rguenther@suse.de>
18245 PR rtl-optimization/42952
18246 * dse.c (const_or_frame_p): Remove MEM handling.
18248 2010-02-04 Nick Clifton <nickc@redhat.com>
18250 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
18251 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
18252 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
18253 (mn10300_asm_output_mi_thunk): New function.
18254 (mn10300_can_output_mu_thunk): New function.
18255 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
18256 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
18257 (FUNCTION_ARG): Delete incorrect comment.
18259 2010-02-03 Jason Merrill <jason@redhat.com>
18262 * fold-const.c (operand_equal_p): Handle erroneous types.
18264 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
18266 * config/h8300/h8300.md (can_delay): Fix attibute condition.
18268 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
18270 PR rtl-optimization/42941
18271 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
18274 2010-02-03 Jason Merrill <jason@redhat.com>
18277 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
18279 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
18282 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
18283 (cselib_reset_table): Renamed from...
18284 (cselib_reset_table_with_next_value): ... this.
18285 (cselib_get_next_uid): Renamed from...
18286 (cselib_get_next_unknown_value): ... this.
18287 * cselib.c (next_uid): Renamed from...
18288 (next_unknown_value): ... this.
18289 (cselib_clear_table): Adjust.
18290 (cselib_reset_table): Adjust. Renamed from...
18291 (cselib_reset_table_with_next_value): ... this.
18292 (cselib_get_next_uid): Adjust. Renamed from...
18293 (cselib_get_next_unknown_value): ... this.
18294 (get_value_hash): Use hash.
18295 (cselib_hash_rtx): Likewise.
18296 (new_cselib_val): Adjust. Set and dump uid.
18297 (cselib_lookup_mem): Pass next_uid as hash.
18298 (cselib_subst_to_values): Likewise.
18299 (cselib_log_lookup): Dump uid.
18300 (cselib_lookup): Pass next_uid as hash. Adjust.
18301 (cselib_process_insn): Adjust.
18302 (cselib_init): Initialize next_uid.
18303 (cselib_finish): Adjust.
18304 (dump_cselib_table): Likewise.
18305 * dse.c (canon_address): Dump value uid.
18306 * print-rtl.c (print_rtx): Print value uid.
18307 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
18309 (dv_uid): New function, sort of renamed from...
18310 (dv_htab_hash): ... this, reimplemented in terms of it and...
18311 (dv_uid2hash): ... this. New.
18312 (variable_htab_eq): Drop excess assertions.
18313 (tie_break_pointers): Removed.
18314 (canon_value_cmp): Compare uids.
18315 (variable_post_merge_New_vals): Print uids.
18316 (vt_add_function_parameters): Adjust.
18317 (vt_initialize): Reset table. Adjust.
18319 2010-02-03 Richard Guenther <rguenther@suse.de>
18321 PR tree-optimization/42944
18322 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
18323 (call_may_clobber_ref_p_1): Likewise. Properly handle
18324 malloc and calloc clobbering errno.
18326 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
18328 * doc/invoke.texi: Fix name of sched1 dump.
18330 * opts.c (decode_options): Set flag_tree_switch_conversion
18331 only conditionally on optimize >= 2.
18333 * gcse.c: Assorted comment fixes in pass description.
18335 2010-02-03 Anthony Green <green@moxielogic.com>
18337 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
18338 nop padding in order to maintain alignment of storage location of
18339 target function address.
18340 (moxie_trampoline_init): Store target function address at newly
18342 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
18344 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
18346 2010-02-03 Richard Guenther <rguenther@suse.de>
18348 PR middle-end/42927
18349 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
18351 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18353 * config.gcc: Reenable check for obsolete targets.
18354 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
18355 mips-sgi-irix6.[0-4]*.
18357 2010-02-02 Nick Clifton <nickc@redhat.com>
18359 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
18360 constant size of 4 as being the same as 0.
18361 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
18362 can take values in the range 0..4.
18364 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
18367 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
18368 as _darwin10_Unwind_FindEnclosingFunction().
18369 * libgcc-libsystem.ver: New.
18371 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
18374 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
18375 implicitly set registers.
18377 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
18379 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
18380 (arm_override_options): Allow automatic selection of the thread
18381 pointer register if thumb2.
18382 (legitimize_pic_address): Improve code sequences for Thumb2.
18383 (arm_call_tls_get_addr): Likewise.
18384 (legitimize_tls_address): Likewise.
18385 * arm.md (pic_load_addr_arm): Delete. Replace with ...
18386 (pic_load_addr_32bit): ... this. New named pattern.
18387 * thumb2.md (pic_load_addr_thumb2): Delete.
18388 (pic_load_dot_plus_four): Delete.
18389 (tls_load_dot_plus_four): New named pattern.
18391 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18394 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
18395 Document fix for TLS bug.
18397 2010-01-31 Richard Guenther <rguenther@suse.de>
18399 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
18400 conservatively correct.
18402 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18406 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18408 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
18410 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18412 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
18414 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
18416 * config.gcc: Adjust order of makefile fragments for mingw targets.
18418 2010-01-31 Richard Guenther <rguenther@suse.de>
18420 PR middle-end/42898
18421 * gimplify.c (gimplify_init_constructor): For volatile LHS
18422 initialize a temporary.
18424 2010-01-31 Matthias Klose <doko@ubuntu.com>
18426 * configure.ac: Fix __stack_chk_fail check for cross builds configured
18428 * configure: Regenerate.
18430 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
18432 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
18433 the same alias set and their sizes different constantness.
18434 (aliasing_component_refs_p): Revert 2009-10-24 change.
18436 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18438 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
18441 2010-01-29 Richard Guenther <rguenther@suse.de>
18443 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
18444 Assert we successfully updated the call.
18446 2010-01-29 Jakub Jelinek <jakub@redhat.com>
18448 PR rtl-optimization/42889
18449 * df.h (df_set_bb_dirty_nonlr): New prototype.
18450 * df-core.c (df_set_bb_dirty_nonlr): New function.
18451 * df-scan.c (df_insn_rescan): Call it instead of
18452 df_set_bb_dirty for DEBUG_INSNs.
18454 2010-01-29 Richard Guenther <rguenther@suse.de>
18456 PR middle-end/37448
18457 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
18458 quadratic behavior in most cases.
18460 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
18463 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
18464 in the call to gen_x86_movsicc_0_m1.
18466 2010-01-28 Richard Guenther <rguenther@suse.de>
18468 PR tree-optimization/42871
18469 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
18471 2010-01-28 Richard Guenther <rguenther@suse.de>
18473 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
18474 into call arguments.
18476 2010-01-28 Richard Guenther <rguenther@suse.de>
18478 PR middle-end/42883
18479 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
18480 the forwarder if the destination is an EH landing pad.
18482 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
18484 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
18485 block list passed to gimple_duplicate_sese_tail.
18486 (parallelize_loops): Avoid parallelization when the function
18487 has_nonlocal_label.
18488 Avoid parallelization when the preheader is IRREDUCIBLE.
18489 Try to optimize when estimated_loop_iterations_int is unresolved.
18490 Add the loop's location to the dump file.
18491 * tree-cfg.c (add_phi_args_after_redirect): Remove.
18492 (gimple_duplicate_sese_tail): Remove the check for the latch.
18493 Redirect nexits to the exit block.
18494 Remove handling of the incoming edges to the latch.
18495 Redirect the backedge from the copied latch to the exit bb.
18497 2010-01-28 Michael Matz <matz@suse.de>
18500 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
18501 Wrap force_reg into a sequence, emit it before user.
18503 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
18505 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
18507 (arm_legacy_rev): Likewise.
18508 (thumb_legacy_rev): Likewise.
18510 2010-01-27 Jakub Jelinek <jakub@redhat.com>
18512 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
18513 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
18514 on MEM's address failed, try avoid_constant_pool_reference and
18515 recurse if it returned something different.
18516 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
18517 address, try avoid_constant_pool_reference and recurse if it
18518 returned something different.
18519 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
18520 address and avoid_constant_pool_reference returned something
18521 different, don't set have_address.
18523 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
18526 * var-tracking.c (val_store): Add modified argument, obey it.
18528 (count_uses): Move down logging of main.
18529 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
18530 don't need resolution.
18531 (emit_notes_in_bb): Likewise.
18533 2010-01-27 Richard Guenther <rguenther@suse.de>
18535 PR middle-end/42878
18536 * tree-inline.c (remap_decl): Delay remapping of SSA name
18537 default definitions until we need them.
18539 2010-01-27 Jakub Jelinek <jakub@redhat.com>
18541 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
18542 (rs6000_delegitimize_address): New function.
18544 * config/s390/s390.c (s390_delegitimize_address): Call
18545 delegitimize_mem_from_attrs.
18547 PR middle-end/42874
18548 * tree-inline.c (cannot_copy_type_1): Removed.
18549 (copy_forbidden): Don't forbid copying of functions containing
18550 records/unions with variable length fields.
18552 2010-01-27 Christian Bruel <christian.bruel@st.com>
18556 * config/sh/sh.c (find_barrier): Increase length for non delayed
18557 conditional branches.
18559 2010-01-27 Matthias Klose <doko@ubuntu.com>
18561 * configure.ac (gnu-unique-object): Fix ldd version check.
18562 * configure: Regenerate.
18564 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18566 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
18568 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
18569 Test for HAVE_GNU_AS value.
18571 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18573 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
18574 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
18575 INT64_TYPE): Define.
18576 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
18577 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
18578 INT_LEAST64_TYPE): Define.
18579 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
18580 UINT_LEAST64_TYPE): Define.
18581 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
18582 INT_FAST64_TYPE): Define.
18583 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
18584 UINT_FAST64_TYPE): Define.
18585 (INTMAX_TYPE, UINTMAX_TYPE): Define.
18586 (INTPTR_TYPE, UINTPTR_TYPE): Define.
18587 (SIG_ATOMIC_TYPE): Define.
18589 2010-01-26 Richard Guenther <rguenther@suse.de>
18591 * df-scan.c (df_scan_set_bb_info): Remove assert.
18592 (df_insn_rescan_debug_internal): Merge asserts.
18593 (df_install_ref): Likewise.
18594 (df_mark_reg): Use bitmap_set_range.
18595 (df_hard_reg_used_p): Remove assert.
18596 (df_hard_reg_used_count): Likewise.
18598 2010-01-26 Richard Guenther <rguenther@suse.de>
18600 PR rtl-optimization/42685
18601 * web.c (web_main): Ignore DEBUG_INSNs.
18603 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
18605 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
18607 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
18608 Fix types of fndecl and arglist parameters.
18610 2010-01-26 Richard Guenther <rguenther@suse.de>
18612 PR middle-end/42806
18613 * tree-eh.c (unsplit_eh): Skip debug insns.
18615 2010-01-26 Richard Guenther <rguenther@suse.de>
18617 PR tree-optimization/42250
18618 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
18620 2010-01-26 Jakub Jelinek <jakub@redhat.com>
18623 * omp-low.c (expand_omp_sections): Only use single_pred if
18624 l2_bb is single_pred_p.
18626 2010-01-25 Christian Bruel <christian.bruel@st.com>
18629 * config/sh/sh.c (find_barrier): Increase length for non delayed
18630 conditional branches.
18631 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
18633 2010-01-24 David S. Miller <davem@davemloft.net>
18635 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
18636 define if not using GAS.
18637 * config/sparc/sparc.c (sparc_elf_asm_named_section):
18638 Likewise. Delete SECTION_MERGE code, which is only applicable
18641 2010-01-24 Mark Mitchell <mark@codesourcery.com>
18644 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
18645 mangling of va_list in system headers.
18647 2010-01-23 Toon Moene <toon@moene.org>
18649 * tree-predcom.c (combine_chains): Return NULL, not false.
18651 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
18653 * tree-loop-distribution.c (distribute_loop): Fix declaration and
18654 initialization of variable res to agree with return type.
18656 2010-01-22 Steve Ellcey <sje@cup.hp.com>
18658 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
18659 * tree-sra.c: Add include of expr.h.
18661 2010-01-22 Jakub Jelinek <jakub@redhat.com>
18663 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
18664 insert the debug stmt on the single non-EH edge from the stmt.
18666 2010-01-22 Richard Henderson <rth@redhat.com>
18669 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
18670 the RHS until after generate_subtree_copies has insertted its
18671 code before the current statement.
18673 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
18675 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
18677 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
18679 2010-01-21 Martin Jambor <mjambor@suse.cz>
18681 PR tree-optimization/42585
18682 * tree-sra.c (struct access): New field grp_total_scalarization.
18683 (dump_access): Dump the new field.
18684 (should_scalarize_away_bitmap): New variable.
18685 (cannot_scalarize_away_bitmap): Likewise.
18686 (sra_initialize): Allocate new bitmaps.
18687 (sra_deinitialize): Free new bitmaps.
18688 (create_access_1): New function.
18689 (create_access): Parts moved to create_access_1.
18690 (type_consists_of_records_p): New function.
18691 (completely_scalarize_record): Likewise.
18692 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
18693 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
18694 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
18696 (analyze_all_variable_accesses): Completely scalarize small eligible
18699 2010-01-21 Martin Jambor <mjambor@suse.cz>
18701 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
18703 2010-01-21 Andrew Haley <aph@redhat.com>
18705 * gcc.c (process_command): Move lang_specific_driver before
18706 setting cc_libexec_prefix.
18708 2010-01-21 Richard Guenther <rguenther@suse.de>
18710 PR middle-end/19988
18711 * fold-const.c (negate_expr_p): Pretend only negative
18712 real constants are easily negatable.
18714 2010-01-20 Janis Johnson <janis187@us.ibm.com>
18715 Jason Merrill <jason@redhat.com>
18717 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
18718 (TYPE_TRANSPARENT_AGGR): this, for union and record.
18719 * calls.c (initialize argument_information): Handle it.
18720 * c-common.c (handle_transparent_union_attribute): Use new name.
18721 * c-decl.c (finish_struct): Ditto.
18722 * c-typeck.c (type_lists_compatible_p): Ditto.
18723 (convert_for_assignment): Use new name and also handle record.
18724 * function.c (aggregate_value_p): Handle it.
18725 (pass_by_reference): Ditto.
18726 (assign_parm_data_types): Ditto.
18727 * print-tree.c (print_node): Ditto.
18728 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
18729 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
18730 * tree.c (first_field): New fn.
18732 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
18735 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
18736 even when linking statically, for now.
18738 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
18741 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
18742 without a cselib val.
18743 (count_uses): Accept MO_VAL_SET with no val on stores.
18744 (add_stores): Likewise.
18746 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18748 * var-tracking.c (check_value_val): Add a compile time assertion.
18749 (dv_is_decl_p): Simplify.
18750 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
18751 gcc_assert if ENABLE_CHECKING.
18753 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
18756 * var-tracking.c: Include tree-flow.h.
18757 (mem_dies_at_call): New.
18758 (dataflow_set_preserve_mem_locs): Use it.
18759 (dataflow_set_remove_mem_locs): Likewise.
18760 (dump_var): Renamed from dump_variable. Adjust all callers.
18761 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
18762 * Makefile.in (var-tracking.o): Adjust deps.
18764 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
18766 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
18768 2010-01-20 Richard Guenther <rguenther@suse.de>
18770 PR tree-optimization/42717
18771 * tree-ssa-dce.c (get_live_post_dom): Remove.
18772 (forward_edge_to_pdom): Take an arbitrary edge to copy
18773 degenerate PHI args from.
18774 (remove_dead_stmt): Use the first post-dominator even if it
18775 does not contain live statements as redirection destination.
18777 2010-01-20 Richard Guenther <rguenther@suse.de>
18779 * tree-inline.c (estimate_num_insns): Handle EH builtins.
18781 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18783 * sel-sched.c (create_speculation_check): Remove set but not used
18785 (try_transformation_cache): Remove set but not used variable ds.
18786 (calculate_privileged_insns): Remove set but not used variables
18787 cur_insn and min_spec_insn.
18788 (find_best_expr): Remove set but not used variable avail_n.
18789 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
18791 * cgraphunit.c (assemble_thunk): Remove set but not used variable
18793 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
18794 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
18795 new_scop_exit_edge.
18797 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
18800 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
18801 cpu types. Add support for *-sse3 cpu types.
18802 (x86_64-*-*): Ditto.
18804 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18806 PR middle-end/42803
18807 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
18808 argument, call initializer_constant_valid_p_1 instead of
18809 initializer_constant_valid_p, pass CACHE to it, return NULL
18810 immediately if first call returns NULL.
18811 (initializer_constant_valid_p_1): New function.
18812 (initializer_constant_valid_p): Use it.
18814 2010-01-20 Thomas Quinot <quinot@adacore.com>
18816 * tree.def (PLACEHOLDER_EXPR): Fix comment.
18818 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18820 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
18821 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
18822 (loc_list_from_tree): Don't handle unsigned division. Handle
18823 signed modulo using DW_OP_{over,over,div,mul,minus}.
18824 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
18825 modulo instead of signed.
18827 2010-01-20 DJ Delorie <dj@redhat.com>
18829 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
18831 (h8300_emit_stack_adjustment): Propogate it.
18833 (h8300_expand_prologue): Likewise.
18834 (h8300_expand_epilogue): Likewise.
18836 2010-01-19 Michael Matz <matz@suse.de>
18838 PR tree-optimization/41783
18839 * tree-data-ref.c (toplevel): Include flags.h.
18840 (dump_data_dependence_relation): Also dump the inputs if the
18841 result will be unknown.
18842 (split_constant_offset_1): Look through some conversions.
18843 * tree-predcom.c (determine_roots_comp): Restart a new chain if
18844 the offset from last element is too large.
18845 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
18846 (reassociate_to_the_same_stmt): Handle vector registers.
18847 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
18848 (e.g. conversions).
18849 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
18850 wide_prolog_niters argument, emit widening instructions.
18851 (vect_do_peeling_for_alignment): Adjust caller, use widened
18852 variant of the iteration cound.
18853 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
18855 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18858 * config/arm/neon-testgen.m (emit_automatics): New parameter
18859 features. Adjust for Fixed_return_reg feature.
18860 (test_intrinsic): Call emit_automatics with new feature.
18861 * config/arm/neon.ml: Update copyright years.
18862 (features): New Fixed_return_reg feature.
18863 (ops): Update feature for Vget_low.
18865 2010-01-19 Jakub Jelinek <jakub@redhat.com>
18867 PR tree-optimization/42719
18868 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
18872 * fwprop.c (all_uses_available_at): Return false if def_set dest
18873 is a REG that is used in def_insn.
18875 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
18877 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
18879 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
18880 Add argument names.
18882 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
18884 * target.h (struct gcc_target) <secondary_reload>: Change type
18885 of last argument to secondary_reload_info *.
18887 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
18890 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
18891 memory references with unaligned offsets. Remove CQImode handling.
18892 (unaligned_memory_operand): Return 1 for memory references with
18893 unaligned offsets. Remove CQImode handling.
18895 2010-01-18 Richard Guenther <rguenther@suse.de>
18897 PR middle-end/39954
18898 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
18901 2010-01-18 Richard Guenther <rguenther@suse.de>
18903 PR tree-optimization/42781
18904 * tree-ssa-structalias.c (find_what_var_points_to): Skip
18905 restrict processing only if the original variable was artificial.
18907 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
18909 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
18910 find number of popped argument bytes.
18912 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
18913 Fix the text that describes the return value for invalid insns.
18915 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
18917 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
18918 Clarify what 'cost of the -dependence' is. Fix quoting.
18920 * toplev.c (default_get_pch_validity): Rename argument to "sz".
18921 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
18923 2010-01-17 Jakub Jelinek <jakub@redhat.com>
18925 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
18926 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
18928 2010-01-17 Richard Guenther <rguenther@suse.de>
18930 PR middle-end/42248
18931 * function.c (split_complex_args): Take a VEC to modify.
18932 (assign_parms_augmented_arg_list): Build a VEC instead of
18933 a chain of PARM_DECLs.
18934 (assign_parms_unsplit_complex): Take a VEC of arguments.
18935 Do not fixup unmodified parms.
18936 (assign_parms): Deal with the VEC.
18937 (gimplify_parameters): Likewise.
18939 2010-01-17 Richard Guenther <rguenther@suse.de>
18941 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
18942 node existence check.
18943 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
18944 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
18945 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
18946 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
18947 (gimple_execute_on_growing_pred): Likewise.
18949 2010-01-17 Richard Guenther <rguenther@suse.de>
18951 PR tree-optimization/42773
18952 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
18953 (compute_antic_aux): Likewise.
18954 (compute_partial_antic_aux): Likewise.
18956 2010-01-17 Jie Zhang <jie.zhang@analog.com>
18959 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
18962 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
18964 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
18967 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
18968 Fix markup for strict argument.
18970 (TARGET_SCHED_REORDER2): Fix argument types.
18972 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
18973 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
18975 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
18976 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
18978 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
18981 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
18982 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
18983 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
18984 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
18985 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
18987 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
18989 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
18991 (TARGET_ASM_RELOC_RW_MASK): Add return type.
18992 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
18994 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
18996 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
18999 (TARGET_ASM_NAMED_SECTION): Fix argument list.
19001 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
19002 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
19004 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
19006 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
19008 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
19009 referring to it. Fix language.
19011 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
19013 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
19015 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
19017 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
19019 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
19020 '@var{stream}. Remove stray 'and'.
19022 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
19024 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
19026 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
19028 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
19029 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
19031 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
19032 Fix description of return value.
19033 Rename argument "sz" to "len."
19035 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
19036 Clarify meaning of 'true' return value.
19038 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
19040 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
19041 rep_mode versus mode_rep.
19043 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
19045 (TARGET_BUILTIN_DECL): Fix name.
19047 (TARGET_COMMUTATIVE_P): Fix type of first argument.
19049 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
19051 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
19053 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
19055 (TARGET_RELAXED_ORDERING): Use @deftypevr.
19057 (TARGET_GET_DRAP_RTX): Note that this is a hook.
19060 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
19061 Rename argument tm_fn to md_fn.
19063 (TARGET_OPTION_PRINT): Fix argument list.
19065 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
19068 * config/i386/i386.c (ix86_fixup_binary_operands):
19069 Revert FMA4 fixup of operands.
19071 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19074 * Makefile.in (write_entries_to_file, install-plugin):
19075 Use \012 instead of \n with tr.
19077 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
19079 * configure.ac (HAVE_AS_REF): New C macro.
19080 * configure: Regenerate.
19081 * config.in: Likewise.
19082 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
19084 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
19087 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
19089 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
19091 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
19093 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
19095 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
19097 (TARGET_IN_SMALL_DATA_P): Fix argument type.
19099 (TARGET_BINDS_LOCAL_P): Fix argument type.
19101 (TARGET_ASM_FILE_END): Use prototype.
19103 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
19105 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
19107 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
19109 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
19111 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
19112 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
19114 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
19115 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
19117 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
19118 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
19119 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
19120 (TARGET_ADDR_SPACE_CONVERT): Likewise.
19122 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
19124 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
19126 (TARGET_INIT_BUILTINS): Use prototype.
19128 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
19129 Put 'const char *' in braces. Fix parameter types.
19130 (TARGET_INVALID_CONVERSION): Fix parameter types.
19131 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
19132 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
19134 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
19137 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
19139 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
19141 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
19143 * doc/tm.texi (TARGET_HELP): Fix return type.
19145 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
19146 in braces. Fix argument types.
19148 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
19150 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
19152 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
19154 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
19155 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
19157 (TARGET_MANGLE_TYPE): Fix argument types.
19159 (TARGET_IRA_COVER_CLASSES): Use prototype.
19161 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
19163 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
19165 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
19167 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
19169 (TARGET_CALLEE_COPIES): Fix argument types.
19171 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
19173 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
19175 (TARGET_FUNCTION_VALUE): Fix argument types.
19177 (TARGET_RETURN_IN_MSB): Fix argument type.
19179 (TARGET_RETURN_IN_MEMORY): Fix argument types.
19181 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
19183 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
19185 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
19186 agree with return type.
19188 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
19190 2010-01-15 Jing Yu <jingyu@google.com>
19192 PR rtl-optimization/42691
19193 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
19194 a pseudo to a constant and are merged, and adjust comments.
19196 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
19198 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
19200 2010-01-15 Richard Guenther <rguenther@suse.de>
19202 PR middle-end/42739
19203 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
19204 labels of computed or non-local gotos to the destination.
19205 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
19206 landing pad label is the first label.
19208 2010-01-15 Richard Guenther <rguenther@suse.de>
19210 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
19212 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19215 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
19216 to allow generation of the xssqrtdp instruction on power7.
19217 (sqrtdf2_fpr): Ditto.
19219 2010-01-14 Jakub Jelinek <jakub@redhat.com>
19221 PR middle-end/42674
19222 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
19223 functions with noreturn attribute.
19226 * varasm.c (declare_weak): Add weak attribute to decl if it
19227 doesn't have one already.
19228 (assemble_external): Only add decls to weak_decls if they also
19229 have weak attribute.
19231 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
19233 * var-tracking.c (var_reg_delete): Don't delete the association
19234 between REGs and values or one-part variables if the register
19237 2010-01-14 Jakub Jelinek <jakub@redhat.com>
19240 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
19241 because its first operand is a non-localized variable.
19243 2010-01-14 Martin Jambor <mjambor@suse.cz>
19245 PR tree-optimization/42706
19246 * tree-sra.c (encountered_recursive_call): New variable.
19247 (encountered_unchangable_recursive_call): Likewise.
19248 (sra_initialize): Initialize both new variables.
19249 (callsite_has_enough_arguments_p): New function.
19250 (scan_function): Call decl and flags check only for IPA-SRA, check
19251 whether there is a recursive call and whether it has enough arguments.
19252 (all_callers_have_enough_arguments_p): New function.
19253 (convert_callers): Look for recursive calls only when
19254 encountered_recursive_call is set.
19255 (ipa_early_sra): Bail out either if
19256 !all_callers_have_enough_arguments_p or
19257 encountered_unchangable_recursive_call.
19259 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19261 * sel-sched.c: Add 2010 to copyright years.
19262 * sel-sched-ir.c: Likewise.
19263 * sel-sched-ir.h: Likewise.
19265 2010-01-14 Martin Jambor <mjambor@suse.cz>
19267 PR tree-optimization/42714
19268 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
19269 constructors specially.
19271 2010-01-14 Andi Kleen <ak@linux.intel.com>
19273 * config/i386/drivers-i386.c (detect_caches_intel):
19274 Add l2sizekb parameter and fill in.
19275 (host_detect_local_cpu): Add l2sizekb, fill in.
19276 Add Atom small cache heuristic.
19278 2010-01-14 Andi Kleen <ak@linux.intel.com>
19280 * config/i386/drivers-i386.c (detect_caches_cpuid4):
19281 Add level3 parameter and fill in.
19282 (detect_caches_intel): Handle level3 cache.
19284 2010-01-14 Andi Kleen <ak@linux.intel.com>
19286 * config/i386/drivers-i386.c (host_detect_local_cpu):
19287 Fix core duo detection.
19289 2010-01-14 Andi Kleen <ak@linux.intel.com>
19291 * config/i386/drivers-i386.c (host_detect_local_cpu):
19292 Fix Atom detection.
19294 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19296 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
19297 (rs6000_variable_issue_1): this. Use...
19298 (rs6000_variable_issue): here. Reimplement. Print debug info.
19300 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19302 * sel-sched-ir.c (sel_restore_other_notes): Rename to
19303 sel_restore_notes. Update all callers. Call reemit_notes
19306 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19308 PR rtl-optimization/42246
19309 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
19312 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19314 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
19315 all successors is the same as number of successors in current region.
19317 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19319 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
19320 to rename is not separable. Otherwise check that its LHS is not NULL.
19322 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19324 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
19326 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19328 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
19329 available registers when failed to discover LHS register class.
19330 Fix indentation. Update comment.
19332 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19333 Alexander Monakov <amonakov@ispras.ru>
19335 PR rtl-optimization/42389
19336 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
19338 (advance_state_on_fence): Likewise.
19339 (sel_target_adjust_priority): Print debug output only when
19340 sched_verbose >= 4, not 2.
19341 (get_expr_cost): Do not issue all unique insns on the next cycle.
19342 (fill_insns): Initialize can_issue_more from the value saved
19344 * sel-sched-ir.c (flist_add): New parameter issue_more.
19345 Init FENCE_ISSUE_MORE with it.
19346 (merge_fences): Likewise.
19347 (init_fences): Update call to flist_add.
19348 (add_to_fences, add_clean_fence_to_fences)
19349 (add_dirty_fence_to_fences): Likewise.
19350 (move_fence_to_fences): Update call to merge_fences.
19351 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
19353 * sel-sched-ir.h (struct _fence): New field issue_more.
19354 (FENCE_ISSUE_MORE): New accessor macro.
19356 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19358 PR rtl-optimization/42388
19359 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
19360 that have no predecessors nor successors. Do not call move_bb_info
19361 for empty blocks outside of current region.
19363 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19365 PR rtl-optimization/42294
19366 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
19367 * sel-sched.c (move_exprs_to_boundary): Transitively add all
19368 originators' originators.
19370 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19372 PR rtl-optimization/39453
19373 PR rtl-optimization/42246
19374 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
19376 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
19378 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19379 Alexander Monakov <amonakov@ispras.ru>
19381 PR middle-end/42245
19382 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
19383 (maybe_tidy_empty_bb): ... here. Make static. Add new
19384 argument. Update all callers.
19385 (tidy_control_flow): ... and here. Recompute topological order
19386 of basic blocks in region if necessary.
19387 (sel_redirect_edge_and_branch): Change return type. Return true
19388 if topological order might have been invalidated.
19389 (purge_empty_blocks): Export and move from...
19390 * sel-sched.c (purge_empty_blocks): ... here.
19391 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
19392 (maybe_tidy_empty_bb): Delete prototype.
19393 (purge_empty_blocks): Declare.
19395 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19397 PR rtl-optimization/42249
19398 * sel-sched.c (try_replace_dest_reg): When chosen register
19399 and original register is the same, do not bail out early, but
19400 still check all original insns for validity of replacing destination
19401 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
19404 2010-01-14 Jakub Jelinek <jakub@redhat.com>
19407 Port from no-undefined-overflow branch:
19408 2009-03-09 Richard Guenther <rguenther@suse.de>
19410 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
19412 2010-01-14 Richard Guenther <rguenther@suse.de>
19415 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
19417 2010-01-14 Ira Rosen <irar@il.ibm.com>
19419 PR tree-optimization/42709
19420 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
19421 as scalar type in creation of constant vector operand.
19423 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19426 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
19427 (check-parallel-%): Match `testsuite' directory component only
19430 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
19432 PR translation/39521
19433 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
19436 2010-01-13 Richard Guenther <rguenther@suse.de>
19438 PR tree-optimization/42730
19439 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
19442 2010-01-13 Steve Ellcey <sje@cup.hp.com>
19445 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
19446 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
19449 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
19451 * config/bfin/libgcc-bfin.ver: Regenerate based on current
19452 libgcc-std.ver. Add entries for ___smulsi3_highpart and
19453 ___umulsi3_highpart.
19455 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
19456 rather than schedule_insns if the pass is enabled.
19458 2010-01-13 Martin Jambor <mjambor@suse.cz>
19460 PR tree-optimization/42704
19461 * tree-sra.c (sra_modify_assign): Do not delete assignments to
19464 2010-01-13 Martin Jambor <mjambor@suse.cz>
19466 PR tree-optimization/42703
19467 * tree-sra.c (analyze_access_subtree): Check that we can build a
19468 reference to the original data within the aggregate.
19470 2010-01-13 Richard Guenther <rguenther@suse.de>
19472 PR tree-optimization/42705
19473 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
19475 2010-01-13 Richard Guenther <rguenther@suse.de>
19477 PR middle-end/42716
19478 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
19480 2010-01-13 Jakub Jelinek <jakub@redhat.com>
19483 * var-tracking.c (values_to_unmark): New variable.
19484 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
19485 values_to_unmark vector. Moved body to...
19486 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
19487 instead queue it into values_to_unmark vector.
19488 (vt_find_locations): Free values_to_unmark vector.
19490 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
19492 * config/s390/s390.c (override_options): Set
19493 default of max-pending-list-length to 256
19495 2010-01-13 Richard Guenther <rguenther@suse.de>
19498 * tree-pass.h (PROP_gimple_lcx): New.
19499 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
19500 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
19501 before the final cleanup_eh.
19502 (dump_properties): Dump PROP_gimple_lcx.
19503 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
19504 (tree_lower_complex_O0): Remove.
19505 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
19506 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
19507 tree_lower_complex, schedule TODO_update_ssa.
19508 * lto-streamer-out.c (output_function): Stream the functions
19510 * lto-streamer-in.c (input_function): Likewise.
19511 (lto_read_body): Do not override them here.
19513 2010-01-12 Joseph Myers <joseph@codesourcery.com>
19516 * c-typeck.c (build_c_cast): Fold value cast to union type before
19517 wrapping it in a CONSTRUCTOR.
19519 2010-01-12 Jakub Jelinek <jakub@redhat.com>
19521 PR rtl-optimization/42699
19522 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
19525 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19527 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
19528 SUBTARGET_WARN_UNUSED_SPEC): Move ...
19529 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
19530 SUBTARGET_WARN_UNUSED_SPEC): ... here
19531 * config/mips/iris5.h (LIBGCC_SPEC): Define.
19533 2010-01-12 Julian Brown <julian@codesourcery.com>
19535 * config/arm/neon-schedgen.ml (Utils): Don't try to
19536 open missing module.
19537 (find_with_result): New.
19539 2010-01-12 Jakub Jelinek <jakub@redhat.com>
19542 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
19543 sharing when canonicalizing ({lt,ge}u (plus a b) b).
19545 PR tree-optimization/42645
19546 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
19547 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
19548 decl_map, set processing_debug_stmt to -1 and return name without
19551 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
19553 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
19554 binutils version, and reword target configuration description.
19556 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
19558 * config/avr/avr.h (LINKER_NAME): Remove.
19560 2010-01-11 Janis Johnson <janis187@us.ibm.com>
19563 * config/rs6000/rs6000.c (rs6000_override_options): On targets
19564 that support VSX, warn for -mno-altivec if vsx is not disabled,
19567 2010-01-11 Joseph Myers <joseph@codesourcery.com>
19568 Shujing Zhao <pearly.zhao@oracle.com>
19570 PR translation/42469
19571 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
19572 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
19573 character between option name and help text.
19574 * c.opt (imultilib): Likewise.
19576 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
19578 * lto-streamer-out.c (output_unreferenced_globals): Output static
19581 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
19583 PR rtl-optimization/42621
19584 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
19585 optimizing for size.
19586 (duplicate_computed_gotos): Remove now-redundant check.
19588 2010-01-10 Steve Ellcey <sje@cup.hp.com>
19591 * configure.ac: Save and restore LDFLAGS and LIBS
19592 * configure: Regenerate.
19594 2010-01-10 Richard Guenther <rguenther@suse.de>
19596 PR middle-end/42667
19597 * builtins.c (fold_builtin_strlen): Add type argument and
19598 convert the resulting length to it.
19599 (fold_builtin_1): Adjust.
19601 2010-01-09 Jakub Jelinek <jakub@redhat.com>
19603 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
19604 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
19606 (num_insns_constant_wide): Adjust for that change.
19608 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19611 * web.c (union_defs): Add used argument, to combine uses of
19612 uninitialized regs.
19613 (entry_register): Adjust type and tests of used argument.
19614 (web_main): Widen used for new use. Pass it to union_defs.
19615 * df.h (union_defs): Adjust prototype.
19617 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19620 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
19621 uses in new incoming argument. Free body.
19622 (reset_debug_uses_in_loop): New.
19623 (analyze_insn_to_expand_var): Call the latter if the former found
19624 anything. Fix whitespace. Reject invalid dest overlaps before
19625 going through all insns in the loop.
19627 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19630 * haifa-sched.c (dying_use_p): Debug insns don't count.
19632 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19634 PR middle-end/42363
19635 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
19636 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
19637 (verify_gimple_call): Reject LHS in noreturn calls.
19639 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19643 * tree-vect-loop-manip.c (adjust_info): New type.
19644 (adjust_vec): New pointer to vector.
19645 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
19646 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
19647 (slpeel_update_phis_for_duplicate_loop): Use them.
19648 (slpeel_update_phi_nodes_for_guard1): Likewise.
19649 (slpeel_update_phi_nodes_for_guard2): Likewise.
19650 (slpeel_tree_peel_loop_to_edge): Likewise.
19651 (vect_update_ivs_after_vectorizer): Likewise.
19653 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19655 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
19656 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
19658 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19660 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
19661 bogus uninitialized warning.
19663 2010-01-09 Richard Guenther <rguenther@suse.de>
19665 PR middle-end/42512
19666 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
19667 the evolution is compatible with the initial condition.
19669 2010-01-09 Jakub Jelinek <jakub@redhat.com>
19671 * gcc.c (process_command): Update copyright notice dates.
19672 * gcov.c (print_version): Likewise.
19673 * gcov-dump.c (print_version): Likewise.
19674 * mips-tfile.c (main): Likewise.
19675 * mips-tdump.c (main): Likewise.
19677 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
19680 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
19682 (rotlhi3_8): Delete.
19684 (rotlsi3_8): Delete.
19685 (rotlsi3_16): Delete.
19686 (rotlsi3_24): Delete.
19687 (rotl<mode>3): New.
19688 (*rotw<mode>3): New.
19689 (*rotb<mode>3): New.
19690 * config/avr/avr.c (avr_rotate_bytes): New function.
19691 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
19693 2010-01-08 Steve Ellcey <sje@cup.hp.com>
19696 * configure.ac: Modify -rdynamic check.
19697 * configure: Regenerate.
19699 2010-01-08 DJ Delorie <dj@redhat.com>
19701 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
19702 register popping order.
19704 2010-01-08 Richard Guenther <rguenther@suse.de>
19707 * c.opt (fsigned-char): Also let LTO handle this option.
19708 (funsigned-char): Likewise.
19710 2010-01-07 Richard Guenther <rguenther@suse.de>
19712 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
19713 (gimple_op): Likewise.
19714 (gimple_op_ptr): Likewise.
19715 (gimple_assign_set_lhs): Remove gcc_assert.
19716 (gimple_assign_set_rhs1): Likewise.
19717 (gimple_assign_set_rhs2): Likewise.
19718 (gimple_call_set_lhs): Likewise.
19719 (gimple_call_set_fn): Likewise.
19720 (gimple_call_set_fndecl): Likewise.
19721 (gimple_call_fndecl): Likewise.
19722 (gimple_call_return_type): Likewise.
19723 (gimple_call_set_chain): Likewise.
19724 (gimple_call_num_args): Likewise.
19725 (gimple_call_set_arg): Likewise.
19726 (gimple_cond_set_code): Likewise.
19727 (gimple_cond_set_lhs): Likewise.
19728 (gimple_cond_set_rhs): Likewise.
19729 (gimple_cond_set_true_label): Likewise.
19730 (gimple_cond_set_false_label): Likewise.
19731 (gimple_label_set_label): Likewise.
19732 (gimple_goto_set_dest): Likewise.
19733 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
19734 (gimple_debug_bind_get_value): Likewise.
19735 (gimple_debug_bind_get_value_ptr): Likewise.
19736 (gimple_debug_bind_set_var): Likewise.
19737 (gimple_debug_bind_set_value): Likewise.
19738 (gimple_debug_bind_reset_value): Likewise.
19739 (gimple_debug_bind_has_value_p): Likewise.
19740 (gimple_return_retval_ptr): Remove gcc_assert.
19741 (gimple_return_retval): Likewise.
19742 (gimple_return_set_retval): Likewise.
19743 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
19744 (safe_referenced_var_iterator): Remove.
19745 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
19746 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
19747 (fill_referenced_var_vec): Remove.
19748 (first_readonly_imm_use): Remove redundant gcc_assert.
19749 (phi_arg_index_from_use): Combine gcc_asserts.
19750 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
19751 (first_imm_use_stmt): Remove redundant gcc_assert.
19752 * tree-cfg.c (verify_gimple_call): Verify function and chain
19753 operands. Verify arguments.
19754 (verify_types_in_gimple_stmt): Verify condition code and labels.
19756 2010-01-07 Richard Guenther <rguenther@suse.de>
19758 PR tree-optimization/42641
19759 * sese.c (rename_map_elt_info): Use the SSA name version, do
19762 2010-01-07 Jakub Jelinek <jakub@redhat.com>
19764 PR tree-optimization/42625
19765 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
19766 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
19768 2010-01-07 Duncan Sands <baldrick@free.fr>
19770 * Makefile.in (PLUGIN_HEADERS): Add version.h.
19772 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
19775 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
19776 note itself is not function_invariant_p.
19778 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
19780 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
19781 Do not add the DF_NOTE problem.
19782 * store-motion.c (execute_rtl_store_motion): Likewise.
19784 2010-01-07 Martin Jambor <mjambor@suse.cz>
19786 PR tree-optimization/42157
19787 * tree-sra.c (compare_access_positions): Stabilize sort if both
19788 accesses have integer types, return zero immediately if they are the
19791 2010-01-06 Richard Henderson <rth@redhat.com>
19793 PR middle-end/41883
19794 * haifa-sched.c (add_to_note_list): Merge into ...
19795 (concat_note_lists): ... here, and ...
19796 (unlink_other_notes, rm_other_notes): Merge into...
19797 (remove_notes): ... here. Create REG_SAVE_NOTEs for
19798 NOTE_INSN_EPILOGUE_BEG.
19800 2010-01-06 Richard Guenther <rguenther@suse.de>
19802 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
19803 not inline regular functions into always-inline functions.
19805 2010-01-06 Nick Clifton <nickc@redhat.com>
19807 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
19808 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
19810 (OVERRIDE_OPTIONS): Delete.
19811 (OPTIMIZATION_OPTIONS): Define.
19812 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
19813 * config/rx/rx.c (rx_handle_option): Issue an error message if
19814 -mcpu=rx200 and -fpu are used together.
19815 (rx_set_optimization_options): New function. Issue an error
19816 message if an optimization attribute attempts to reset the FPU/
19817 math optimization pairing.
19818 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
19819 * config/rx/rx.opt: Set the default to 32-bit doubles.
19820 * config/rx/t-rx: Add multilibs for -nofpu option.
19821 * doc/invoke.texi: Update documentation of RX options.
19823 2010-01-06 Richard Guenther <rguenther@suse.de>
19825 * tree-ssa-pre.c (name_to_id): New global.
19826 (alloc_expression_id): Simplify SSA name handling.
19827 (lookup_expression_id): Likewise.
19828 (init_pre): Zero name_to_id.
19829 (fini_pre): Free it.
19831 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
19833 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
19835 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
19838 * config/i386/sse.md (smaxv2di3): New.
19839 (umaxv2di3): Likewise.
19840 (sminv2di3): Likewise.
19841 (uminv2di3): Likewise.
19843 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
19846 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
19847 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
19848 (legitimize_tls_address): Likewise.
19849 (sparc_tls_referenced_p): Likewise.
19850 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
19851 and adjust calls to legitimize_pic_address.
19852 (legitimate_constant_p) Use sparc_tls_referenced_p.
19853 (legitimate_pic_operand_p): Likewise.
19854 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
19855 (sparc_tls_symbol_ref_1): Delete.
19856 (sparc_tls_referenced_p): Make static, recognize specific patterns.
19857 (legitimize_tls_address): Make static, handle CONST patterns.
19858 (legitimize_pic_address): Make static, remove unused parameter and
19859 adjust recursive calls.
19860 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
19861 and adjust call to legitimize_pic_address.
19862 (sparc_output_mi_thunk): Likewise.
19864 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
19865 H.J. Lu <hongjiu.lu@intel.com>
19868 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
19869 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
19870 operands to make them signed.
19873 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
19876 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
19877 GTU to GT for V4SI and V2DI.
19879 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
19880 (umin<mode>3): Removed.
19882 (uminv4si3): Likewise.
19884 2010-01-05 Martin Jambor <mjambor@suse.cz>
19886 PR tree-optimization/42462
19887 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
19888 current_function_decl to helper functions and macros.
19890 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19893 * flags.h: Don't include real.h.
19894 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
19895 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
19896 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
19897 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
19898 * dominance.c: Update copyright.
19899 * gimple.c (walk_gimple_op): Remove inline.
19900 * tree-ssa-reassoc.c: Include real.h.
19901 * Makefile.in (FLAGS_H): Remove $(REAL_H).
19902 (tree-ssa-reassoc.o): Depend on $(REAL_H).
19904 2010-01-05 Nick Clifton <nickc@redhat.com>
19906 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
19907 register to push into the stack frame when the accumulator has to
19908 be saved during interrupts.
19910 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
19912 * doc/invoke.texi: Remove the documentation about option
19913 -Wunreachable-code.
19914 * common.opt (Wunreachable-code): Preserved for backward
19916 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
19917 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
19918 the backward compatibility flag section.
19920 2010-01-05 Richard Guenther <rguenther@suse.de>
19922 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
19924 2010-01-05 Jakub Jelinek <jakub@redhat.com>
19927 * cfgexpand.c (expand_one_var): Diagnose too large variables.
19929 PR tree-optimization/42508
19930 * tree-sra.c (convert_callers): Check for recursive call
19931 by comparing cgraph nodes instead of decls.
19932 (modify_function): Call ipa_modify_formal_parameters also
19933 on all same_body aliases.
19935 * cgraphunit.c (cgraph_materialize_all_clones): Compare
19936 cgraph nodes when checking for same_body aliases.
19938 2010-01-05 Richard Guenther <rguenther@suse.de>
19940 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
19941 allocation and lookup.
19942 (get_or_alloc_expr_for_constant): Likewise.
19943 (phi_translate): Sink allocation.
19945 2010-01-04 Richard Guenther <rguenther@suse.de>
19947 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
19948 a new entry only if needed.
19949 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
19950 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
19952 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
19954 (phi_translate): Handle CONSTANTs early.
19956 2010-01-04 Martin Jambor <mjambor@suse.cz>
19958 PR tree-optimization/42398
19959 * tree-sra.c (struct access): Removed flag grp_different_types.
19960 (dump_access): Do not dump the removed flag.
19961 (sort_and_splice_var_accesses): Do not set the removed flag.
19962 (sra_modify_expr): Check for type compatibility directly.
19964 2010-01-04 Martin Jambor <mjambor@suse.cz>
19966 PR tree-optimization/42366
19967 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
19968 edges with variable number of parameters.
19969 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
19970 flag instead of asserting it.
19971 (ipa_read_node_info): Read uses_analysis_done flag.
19973 2010-01-04 Richard Guenther <rguenther@suse.de>
19975 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
19976 iterative_hash_* as intended.
19977 (vn_reference_compute_hash): Likewise. Simplify hashing
19979 (vn_reference_lookup_2): Likewise.
19980 (vn_nary_op_compute_hash): Likewise.
19981 (vn_phi_compute_hash): Likewise.
19982 (expressions_equal_p): Remove strange code.
19983 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
19984 (pre_expr_hash): Likewise. Simplify hashing SSA names.
19985 (bitmap_insert_into_set_1): Take value-id as parameter.
19986 (add_to_value): Pass it.
19987 (bitmap_insert_into_set): Likewise.
19988 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
19990 2010-01-04 Jakub Jelinek <jakub@redhat.com>
19993 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
19994 (do_self_spec): For switches with SWITCH_IGNORE set set also
19995 SWITCH_IGNORE_PERMANENTLY.
19996 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
19999 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
20001 * lto-streamer-out.c (output_unreferenced_globals): Output the full
20002 tree of an unreferenced global var.
20004 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
20007 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
20008 GTU to GT for V4SI and V2DI.
20010 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
20011 (umin<mode>3): Removed.
20013 (uminv4si3): Likewise.
20015 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
20018 * collect2.c (main): Turn on trace in collect2 if -v is passed
20021 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
20023 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
20024 description of expression operand.
20026 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
20028 * configure.ac: Add install-html to target_list for Make-hooks.
20029 * configure: Regenerate.
20030 * fortran/Make-lang.in (F95_HTMLFILES): New.
20031 (fortran.html): Use it.
20032 (fortran.install-html): New.
20033 * Makefile.in (install-html): Add lang.install-html.
20034 * java/Make-lang.in (JAVA_HTMLFILES): New.
20035 (java.html): Use it.
20036 (java.install-html): New.
20037 * objc/Make-lang.in (objc.install-html): New.
20038 * objcp/Make-lang.in (obj-c++.install-html): New.
20039 * cp/Make-lang.in (c++.install-html): New.
20040 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
20041 * lto/Make-lang.in (lto.install-html): New.
20043 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
20046 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
20048 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
20050 PR rtl-optimization/41862
20051 * store-motion.c (store_killed_in_insn, compute_store_table,
20052 remove_reachable_equiv_notes, replace_store_insn,
20053 build_store_vectors): Ignore all DEBUG_INSNs.
20055 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
20058 * common.opt: Add dumpdir.
20060 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
20062 (option_map): Add --dumpdir.
20064 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
20066 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
20068 * opts.c (decode_options): Try dump_dir_name first if
20069 dump_base_name isn't an absolute path.
20070 (common_handle_option): Handle OPT_dumpdir.
20072 * toplev.c (dump_dir_name): New.
20073 (print_switch_values): Also ignore -dumpdir.
20075 * toplev.h (dump_dir_name): New.
20077 2010-01-03 Richard Guenther <rguenther@suse.de>
20079 PR tree-optimization/42589
20080 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
20081 double-word expansion of bswap32.
20083 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
20085 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
20086 with BLOCK_FOR_INSN.
20087 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
20088 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
20089 noce_process_if_block): Likewise.
20090 * gcse.c (compute_local_properties, insert_expr_in_table,
20091 insert_set_in_table, canon_list_insert, find_avail_set,
20092 pre_insert_copy_insn): Likewise.
20094 * basic-block.h (BLOCK_NUM): Move from here...
20095 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
20097 2010-01-03 Richard Guenther <rguenther@suse.de>
20099 PR tree-optimization/42438
20100 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
20101 contains_may_not_return_call flag.
20102 (BB_MAY_NOTRETURN): New.
20103 (valid_in_sets): Trapping nary operations are not valid
20104 in blocks that may not return.
20105 (insert_into_preds_of_block): Remove check for trapping expressions.
20106 (compute_avail): Compute also BB_MAY_NOTRETURN.
20108 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
20110 * doc/invoke.texi: Add 2010 to copyright years.
20112 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
20114 * config/sparc/sparc.c: Fix formatting nits.
20116 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
20117 Alexander Monakov <amonakov@ispras.ru>
20119 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
20121 2010-01-02 Richard Guenther <rguenther@suse.de>
20123 PR middle-end/42577
20124 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
20125 (simplify_switch_using_ranges): Mark to be removed edges
20128 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20130 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
20132 * collect2.c (scan_libraries): Add missing argument in call to
20135 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
20138 * config/alpha/predicates.md (aligned_memory_operand): Return false
20140 (unaligned_memory_operand): Return true for CQImode.
20141 * config/alpha/alpha.c (get_aligned_mem): Assert that location
20142 doesn not cross aligned SImode word boundary.
20144 2010-01-02 Anatoly Sokolov <aesok@post.ru>
20146 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
20148 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
20149 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
20151 2010-01-02 Richard Guenther <rguenther@suse.de>
20154 * toplev.c (compile_file): Emit LTO marker properly. Change
20155 it to __gnu_lto_v1.
20156 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
20158 2010-01-01 Richard Guenther <rguenther@suse.de>
20161 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
20163 2010-01-01 Richard Guenther <rguenther@suse.de>
20166 * c-decl.c (grokdeclarator): For zero-size arrays force
20167 structural equality checks as layout_type does.
20169 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
20171 * builtins.c: Update copyright to 2010.
20173 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
20176 * lto-streamer-out.c (produce_asm): Revert the last change.
20177 (copy_function): Likewise.
20179 * lto-streamer.c (lto_get_section_name): Skip any leading
20182 2010-01-01 Richard Guenther <rguenther@suse.de>
20184 PR middle-end/42559
20185 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
20189 Copyright (C) 2010 Free Software Foundation, Inc.
20191 Copying and distribution of this file, with or without modification,
20192 are permitted in any medium without royalty provided the copyright
20193 notice and this notice are preserved.