ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes of a loop.
[gcc.git] / gcc / ChangeLog
1 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
2 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
3 of a loop.
4 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
5
6 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
7
8 * config/i386/darwin.h: Define darwin_emit_branch_islands.
9 (TARGET_MACHO_BRANCH_ISLANDS): New.
10 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
11 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
12 default value.
13 * config/i386/i386.c (output_pic_addr_const): Do not emit
14 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
15 (x86_output_mi_thunk): Adjust symbol creation.
16 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
17 Remove out of date comment.
18 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
19 DARWIN_LINKER_GENERATES_ISLANDS: Remove.
20 DARWIN_GENERATE_ISLANDS: Ditto.
21 (output_call): Do not emit branch islands unless
22 darwin_emit_branch_islands is set.
23 * config/darwin.c: Declare darwin_emit_branch_islands.
24 (machopic_indirect_data_reference): Do not emit unless
25 darwin_emit_branch_islands is set.
26 (darwin_override_options): Set darwin_emit_branch_islands
27 where it is needed.
28 * config/darwin9.h
29 DARWIN_LINKER_GENERATES_ISLANDS: Remove.
30
31 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32
33 * doc/sourcebuild.texi (Effective-Target Keywords): Document
34 sse_runtime, sse2_runtime.
35
36 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
37
38 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
39 low half of a single-register SCmode return value before ORing
40 it with the high half.
41 * config/mips/mips16.S (MERGE_GPRf): Likewise.
42
43 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
44
45 PR target/44805
46 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
47 on all targets.
48
49 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
50
51 PR target/42235
52 * postreload.c (reload_cse_move2add): Return bool, true if anything.
53 changed. All callers changed.
54 (move2add_use_add2_insn): Likewise.
55 (move2add_use_add3_insn): Likewise.
56 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
57 reload_combine.
58 (RELOAD_COMBINE_MAX_USES): Bump to 16.
59 (last_jump_ruid): New static variable.
60 (struct reg_use): New members CONTAINING_MEM and RUID.
61 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
62 (reload_combine_split_one_ruid, reload_combine_split_ruids,
63 reload_combine_purge_insn_uses, reload_combine_closest_single_use
64 reload_combine_purge_reg_uses_after_ruid,
65 reload_combine_recognize_const_pattern): New static functions.
66 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
67 is true for our reg and that we have available index regs.
68 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
69 callers changed. Use them to initialize fields in struct reg_use.
70 (reload_combine): Initialize last_jump_ruid. Be careful when to
71 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
72 Call reload_combine_recognize_const_pattern.
73 (reload_combine_note_store): Update REAL_STORE_RUID field.
74
75 2010-07-16 Jason Merrill <jason@redhat.com>
76
77 * Makefile.in (opts-common.o): Depend on options.h.
78
79 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
80
81 * tree.c (build_common_builtin_nodes): Use build_function_type_list
82 instead of build_function_type.
83 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
84 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
85
86 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
87
88 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
89 do all the work.
90 (rs6000_emit_int_cmove): Use function pointers for insn generation.
91 Don't force values into registers unnecessarily.
92 (output_isel): Assert that we're not given conditions we can't handle.
93 Delete corresponding code.
94 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
95 scc_comparison_operator constraint. Permit 0 for the consequent
96 operand. Permit any GPR for the alternative operand.
97 (isel_unsigned_<mode>): Likewise.
98
99 2010-07-16 Jakub Jelinek <jakub@redhat.com>
100
101 PR target/44942
102 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
103 argument to const_tree.
104 * config/i386/i386.c (function_arg_advance): If padding needs to be
105 inserted before argument, increment cum->words by number of padding
106 words as well.
107 (contains_aligned_value_p): Change argument to const_tree.
108 (ix86_function_arg_boundary): Change second argument to const_tree.
109
110 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
111
112 PR target/42235
113 * function.c (record_hard_reg_sets): New static function.
114 (assign_parm_setup_reg): If an optab for extending exists and the
115 generated code clobbbers no hard regs, emit the insn directly and
116 create a REG_EQUIV note.
117
118 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
119
120 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
121 TREE_CHAIN.
122 * c-typeck.c (push_init_level): Likewise.
123 (process_init_element): Likewise.
124
125 2010-07-15 Anatoly Sokolov <aesok@post.ru>
126
127 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
128 (integer_three_node): Add.
129 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
130 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
131 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
132 of call build_int_cst.
133 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
134 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
135 (find_interesting_uses_address): Ditto.
136 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
137 * tree-eh.c (lower_eh_constructs_2): Ditto.
138 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
139 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
140 * expmed.c (expand_divmod): Ditto.
141 * tree-mudflap.c (mx_register_decls): Ditto.
142 * varasm.c (array_size_for_constructor): Ditto.
143 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
144 * c-parser.c (c_parser_postfix_expression): Ditto.
145
146 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
147
148 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
149 New static variables.
150 (reload_combine_recognize_pattern): New static function, broken out
151 of reload_combine.
152 (reload_combine): Use it. Only initialize first_index_reg and
153 last_index_reg once.
154
155 2010-07-15 Richard Henderson <rth@redhat.com>
156
157 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
158 when done.
159
160 2010-07-15 Jan Hubicka <jh@suse.cz>
161
162 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling comdats
163 for broken gold.
164 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
165
166 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
167
168 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
169
170 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
171
172 * tree.h (DECL_CHAIN): Define.
173 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
174 * c-decl.c: Likewise.
175 * c-parser.c: Likewise.
176 * c-typeck.c: Likewise.
177 * cfgexpand.c: Likewise.
178 * cgraph.c: Likewise.
179 * cgraphunit.c: Likewise.
180 * combine.c: Likewise.
181 * config/alpha/alpha.c: Likewise.
182 * config/arm/arm.c: Likewise.
183 * config/frv/frv.c: Likewise.
184 * config/i386/i386.c: Likewise.
185 * config/i386/winnt-cxx.c: Likewise.
186 * config/ia64/ia64.c: Likewise.
187 * config/iq2000/iq2000.c: Likewise.
188 * config/mep/mep.c: Likewise.
189 * config/mips/mips.c: Likewise.
190 * config/pa/som.h: Likewise.
191 * config/rs6000/rs6000.c: Likewise.
192 * config/s390/s390.c: Likewise.
193 * config/sh/sh.c: Likewise.
194 * config/sh/symbian-cxx.c: Likewise.
195 * config/sparc/sparc.c: Likewise.
196 * config/spu/spu.c: Likewise.
197 * config/stormy16/stormy16.c: Likewise.
198 * config/vxworks.c: Likewise.
199 * config/xtensa/xtensa.c: Likewise.
200 * coverage.c: Likewise.
201 * dbxout.c: Likewise.
202 * dwarf2out.c: Likewise.
203 * emit-rtl.c: Likewise.
204 * expr.c: Likewise.
205 * function.c: Likewise.
206 * gimple-low.c: Likewise.
207 * gimple-pretty-print.c: Likewise.
208 * gimplify.c: Likewise.
209 * integrate.c: Likewise.
210 * ipa-inline.c: Likewise.
211 * ipa-prop.c: Likewise.
212 * ipa-split.c: Likewise.
213 * ipa-struct-reorg.c: Likewise.
214 * ipa-type-escape.c: Likewise.
215 * langhooks.c: Likewise.
216 * lto-cgraph.c: Likewise.
217 * omp-low.c: Likewise.
218 * stor-layout.c: Likewise.
219 * tree-cfg.c: Likewise.
220 * tree-complex.c: Likewise.
221 * tree-dfa.c: Likewise.
222 * tree-dump.c: Likewise.
223 * tree-inline.c: Likewise.
224 * tree-mudflap.c: Likewise.
225 * tree-nested.c: Likewise.
226 * tree-object-size.c: Likewise.
227 * tree-pretty-print.c: Likewise.
228 * tree-sra.c: Likewise.
229 * tree-ssa-live.c: Likewise.
230 * tree-ssa-loop-niter.c: Likewise.
231 * tree-ssa-math-opts.c: Likewise.
232 * tree-ssa-reassoc.c: Likewise.
233 * tree-ssa-sccvn.c: Likewise.
234 * tree-ssa-structalias.c: Likewise.
235 * tree-tailcall.c: Likewise.
236 * tree-vrp.c: Likewise.
237 * tree.c: Likewise.
238 * var-tracking.c: Likewise.
239 * varasm.c: Likewise.
240
241 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
242
243 PR target/44877
244 * config/spu/spu.c (spu_expand_builtin_1): Allow references
245 (as well as pointers) as argument to mask_for_load builtins.
246
247 2010-07-15 Richard Guenther <rguenther@suse.de>
248
249 PR tree-optimization/44946
250 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
251 with accessing only padding properly.
252
253 2010-07-15 Jan Hubicka <jh@suse.cz>
254
255 * ipa.c (function_and_variable_visibility): Variables marked as used
256 should not be localized.
257
258 2010-07-15 Jan Hubicka <jh@suse.cz>
259
260 * cgraph.c: Include lto-streamer.h
261 (change_decl_assembler_name): Work when assembler name hash is at place.
262 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage, be
263 sure to rename it to avoid name clash.
264 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
265 Localize hidden symbols only when locally defined.
266
267 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
268
269 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
270
271 2010-07-15 Magnus Granberg <zorry@gentoo.org>
272 Kevin F. Quinn <kevquinn@gentoo.org>
273
274 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
275 * common.opt: Add -Wtrampolines.
276 * doc/invoke.texi: Add -Wtrampolines.
277
278 2010-07-15 Jie Zhang <jie@codesourcery.com>
279
280 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
281 cortex_a8_issue_ls.
282
283 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
284
285 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
286 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
287
288 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
289
290 * config/spu/spu.c (reg_names): Remove prototype.
291 (call_used_regs): Likewise.
292
293 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
294
295 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
296 "unused" with attribute "used".
297 (__JCR_END__): Likewise.
298 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
299 "used" attribute.
300 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
301
302 2010-07-14 Richard Guenther <rguenther@suse.de>
303
304 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
305 (maybe_fixup_decls): Likewise.
306 (input_gimple_stmt): Do not fixup anything.
307 * lto-streamer-out.c (output_gimple_stmt): Make sure all
308 non-automatic variable uses are wrapped inside a MEM_REF.
309
310 2010-07-14 Richard Henderson <rth@redhat.com>
311
312 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
313 for functions.
314 * varasm.c (assemble_variable): Remove early exit for functions;
315 assert that we're given a variable.
316
317 2010-07-14 Jie Zhang <jie@codesourcery.com>
318
319 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
320 cortex_a8_default when neon_type is not none.
321
322 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
323
324 * lower-subreg.c (subreg_context): New static bitmap.
325 (decompose_multiword_subregs): Allocate and free it.
326 (find_decomposable_subregs): Set a bit in it for a register that
327 occurs in a subreg that changes mode but not size.
328 (can_decompose_p): Test it instead of non_decomposable_context.
329
330 2010-07-14 Richard Guenther <rguenther@suse.de>
331
332 PR tree-optimization/44824
333 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
334 is_gimple_mem_ref_addr.
335 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
336 non-decl_address_invariant_p addresses.
337
338 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
339
340 * reload.c (find_reloads): Revert code to penalize small register
341 classes that was brought in with the IRA merge.
342
343 2010-07-14 Richard Guenther <rguenther@suse.de>
344
345 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
346 as base of ARRAY_REFs.
347
348 2010-07-14 Richard Guenther <rguenther@suse.de>
349
350 PR middle-end/44930
351 * tree-pretty-print.c (do_niy): Do not print a newline.
352
353 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
354
355 * ira-int.h (struct ira_object): New.
356 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
357 (struct ira_allocno): Remove members min, max,
358 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
359 conflict_allocnos_num and conflict_vec_p. Add new member object.
360 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
361 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
362 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
363 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
364 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
365 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
366 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
367 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
368 an ira_object_t rather than ira_allocno_t. All uses changed.
369 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
370 contains a vector of ira_object_t; all uses changed.
371 (ira_objects_num): Declare variable.
372 (ira_create_allocno_object): Declare function.
373 (ira_conflict_vector_profitable_p): Adjust prototype.
374 (ira_allocate_conflict_vec): Renamed from
375 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
376 (ira_allocate_object_conflicts): Renamed from
377 ira_allocate_allocno_conflicts; first arg now ira_object_t.
378 (struct ira_object_iterator): New.
379 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
380 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
381 to conflict_vec_p. All uses changed.
382 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
383 Changed to take into account that conflicts are now tracked for
384 objects.
385 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
386 Args changed to accept ira_object_t. All uses changed.
387 (allocnos_conflict_p): New static function.
388 (collected_conflict_objects): Renamed from collected_allocno_objects;
389 now a vector of ira_object_t. All uses changed.
390 (build_conflict_bit_table): Changed to take into account that
391 conflicts are now tracked for objects.
392 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
393 (print_allocno_conflicts, ira_build_conflicts): Likewise.
394 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
395 setup_allocno_left_conflicts_size, allocno_reload_assign,
396 fast_allocation): Likewise.
397 * ira-lives.c (make_hard_regno_born, make_allocno_born)
398 process_single_reg_class_operands, process_bb_node_lives): Likewise.
399 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
400 Likewise.
401 * ira-build.c (ira_objects_num): New variable.
402 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
403 contains a vector of ira_object_t; all uses changed.
404 (ira_object_id_map_vec): Corresponding change.
405 (object_pool): New static variable.
406 (initiate_allocnos): Initialize it.
407 (finish_allocnos): Free it.
408 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
409 New functions.
410 (ira_create_allocno): Don't set members that were removed.
411 (ira_set_allocno_cover_class): Don't change conflict hard regs.
412 (merge_hard_reg_conflicts): Changed to take into account that
413 conflicts are now tracked for objects.
414 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
415 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
416 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
417 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
418 setup_min_max_conflict_allocno_ids, ): Likewise.
419 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
420 to ira_object_t; all callers changed.
421 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
422 to ira_object_t, all callers changed.
423 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
424 to ira_object_t, all callers changed.
425 (conflict_check, curr_conflict_check_tick): Renamed from
426 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
427 changed.
428 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
429 arg changed to ira_object_t, all callers changed.
430 (create_cap_allocno): Call ira_create_allocno_object.
431 (finish_allocno): Free the corresponding object.
432 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
433 callers changed. Adjusted for dealing with objects.
434 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
435 dealing with objects.
436 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
437
438 * ira-int.h (struct live_range): Rename allocno member to object
439 and change type to ira_object_t.
440 (struct ira_object): New member live_ranges.
441 (struct ira_allocno): Remove member live_ranges.
442 (ALLOCNO_LIVE_RANGES): Remove.
443 (OBJECT_LIVE_RANGES): New macro.
444 (ira_create_live_range, ira_copy_live_range_list,
445 ira_merge_live_range_list, ira_live_ranges_intersect_p,
446 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
447 * ira-build.c (ira_create_object): Initialize live ranges here.
448 (ira_create_allocno): Not here.
449 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
450 changed to ira_object_t, all callers changed.
451 (copy_live_range): Rename from copy_allocno_live_range, all callers
452 changed.
453 (ira_copy_live_range_list): Rename from
454 ira_copy_allocno_live_range_list, all callers changed.
455 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
456 all callers changed.
457 (ira_live_ranges_intersect_p): Rename from
458 ira_allocno_live_ranges_intersect_p, all callers changed.
459 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
460 callers changed.
461 (ira_finish_live_range_list): Rename from
462 ira_finish_allocno_live_range_list, all callers changed.
463 (change_object_in_range_list): Rename from change_allocno_in_range_list,
464 last arg changed to ira_object_t, all callers changed.
465 (finish_allocno): Changed to expect live ranges in the allocno's object.
466 (move_allocno_live_ranges, copy_allocno_live_ranges,
467 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
468 ira_flattening, ira_build): Likewise.
469 * ira-color.c (allocnos_have_intersected_live_ranges_p,
470 slot_coalesced_allocno_live_ranges_intersect,
471 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
472 * ira-conflicts.c (build_conflict_bit_table): Likewise.
473 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
474 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
475 make_allocno_dead, create_start_finish_chains,
476 remove_some_program_points_and_update_live_ranges,
477 ira_debug_live_range_list): Likewise.
478
479 * ira-int.h (ira_object_conflict_iterator): Rename from
480 ira_allocno_conflict_iterator.
481 (ira_object_conflict_iter_init): Rename from
482 ira_allocno_conflict_iter_init, second arg changed to
483 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
484 FOR_EACH_ALLOCNO_CONFLICT.
485 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
486 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
487 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
488 * ira-conflicts.c (print_allocno_conflicts): Likewise.
489
490 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
491
492 PR other/44874
493 * tree-dump.c (dump_options): Add enumerate_locals entry.
494 Add TDF_NOID exclusion to all entry.
495 * tree-dump.h (dump_enumerated_decls): Declare.
496 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
497 Don't display type uid.
498 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
499 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
500 * tree-ssa-live.c: Include gimple.h.
501 (numbered_tree_d): New struct.
502 (numbered_tree): New typedef.
503 (DEF_VEC_O (numbered_tree): New.
504 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
505 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
506 (dump_enumerated_decls): Likewise.
507 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
508 debug info and flag_dump_final_insns, call dump_enumerated_decls.
509 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
510 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
511
512 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
513
514 * expmed.h (MAX_BITS_PER_WORD): Move to...
515 * defaults.h (MAX_BITS_PER_WORD): ...here.
516
517 2010-07-13 DJ Delorie <dj@redhat.com>
518
519 * config/h8300/h8300.c (h8300_init_once): Default to
520 -fstrict_volatile_bitfields.
521
522 * config/sh/sh.c (sh_override_options): Default to
523 -fstrict_volatile_bitfields.
524
525 * config/rx/rx.c (rx_option_override): New.
526
527 * config/m32c/m32c.c (m32c_override_options): Default to
528 -fstrict_volatile_bitfields.
529
530 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
531
532 * tree.h (build_function_call_expr): Delete.
533 (build_call_expr_loc_array): New function.
534 (build_call_expr_loc_vec): New function.
535 * tree-flow.h (struct omp_region): Change type of ws_args field
536 to a VEC.
537 * builtins.c (build_function_call_expr): Delete.
538 (build_call_expr_loc_array): New function.
539 (build_call_expr_loc): Call it. Use XALLOCAVEC.
540 (build_call_expr): Likewise.
541 (build_call_expr_loc_vec): New function.
542 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
543 build_function_call_expr.
544 * expr.c (emutls_var_address): Likewise.
545 * varasm.c (emutls_common_1): Likewise.
546 * omp-low.c (expand_omp_atomic_mutex): Likewise.
547 (expand_omp_taskreg): Adjust for new type of region->ws_args.
548 (get_ws_args_for): Return a VEC instead of a tree.
549 (expand_parallel_call): Call build_call_expr_loc_vec instead of
550 build_function_call_expr.
551 * stor-layout.c (self_referential_size): Likewise.
552
553 2010-07-13 Jakub Jelinek <jakub@redhat.com>
554
555 PR testsuite/44701
556 * recog.c (constrain_operands): Allow side-effects in memory
557 operands if either < or > constraint is used, rather than if
558 both < and > is used.
559
560 2010-07-13 Richard Guenther <rguenther@suse.de>
561
562 PR middle-end/44911
563 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
564 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
565 without name.
566
567 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
568
569 PR target/44761
570 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
571 to variable emited.
572 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
573 * config/sh/sh.md (symGOT_load): Likewise.
574 (symDTPOFF2reg): Likewise.
575 (symTPOFF2reg): Likewise.
576
577 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
578
579 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
580 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
581
582 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
583
584 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
585 explanation.
586 Find ucontext_t * on Solaris 11.
587 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
588 Handle new Solaris 11 __sighndlr patterns.
589
590 2010-07-13 Jakub Jelinek <jakub@redhat.com>
591
592 PR debug/44901
593 * vec.h (VEC_block_remove): Fix comment.
594 * tree-ssa-live.c (remove_unused_locals): Don't use
595 VEC_unordered_remove on local_decls, instead replace a single
596 vector element in each iteration if at least one element had
597 to be removed and VEC_truncate at the end.
598 * omp-low.c (expand_omp_taskreg): Likewise.
599
600 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
601
602 * c-decl.c (finish_function): Fix typo in comment.
603
604 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
605
606 PR bootstrap/44921
607 * postreload.c (move2add_use_add3_insn): Silence gcc warning
608 on min_regno.
609
610 2010-07-12 Jakub Jelinek <jakub@redhat.com>
611
612 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
613 (simplify_stmt_using_ranges): Use it.
614
615 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
616
617 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
618 member. Do not mark as GTY(()).
619 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
620 (spu_builtin_decls): New static variable.
621 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
622 (spu_init_builtins): Likewise.
623 (spu_builtin_mul_widen_even): Likewise.
624 (spu_builtin_mul_widen_odd): Likewise.
625 (spu_builtin_mask_for_load): Likewise.
626 (spu_builtin_vec_perm): Likewise.
627 * config/spu/spu-c.c: Include "target.h".
628 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
629 of using spu_builtins[].fndecl.
630
631 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
632
633 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
634 imply -minterlink-mips16.
635
636 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
637
638 * config/mips/mips.h (mips16_globals): Declare.
639 (SWITCHABLE_TARGET): Define.
640 * config/mips/mips.c: Include target-globals.h.
641 (mips16_globals): New variable.
642 (mips_set_mips16_mode): Use save_target_globals and
643 restore_target_globals instead of target_reinit.
644
645 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
646
647 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
648 to say that the function can be called more than once.
649 * target-globals.c (save_target_globals): Call init_reg_sets.
650
651 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
652
653 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
654 * bb-reorder.h: New file.
655 * bb-reorder.c (default_target_bb_reorder): New variable.
656 (this_target_bb_reorder): New conditional variable.
657 (uncond_jump_length): Redefine as a macro.
658 * target-globals.h (this_target_bb_reorder): Declare.
659 (target_globals): Add a bb_reorder field.
660 (restore_target_globals): Copy the bb_reorder field to
661 this_target_bb-reorder.
662 * target-globals.c: Include bb-reorder.h.
663 (default_target_globals): Initialize the bb_reorder field.
664 (save_target_globals): Likewise.
665
666 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
667
668 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
669 * gcse.h: New file.
670 * gcse.c: Include gcse.h.
671 (default_target_gcse): New variable.
672 (this_target_gcse): New conditional variable.
673 (can_copy): Redefine as a macro.
674 (can_copy_init_p): New macro.
675 (can_copy_p): Remove can_copy_init_p.
676 * target-globals.h (this_target_gcse): Declare.
677 (target_globals): Add a gcse field.
678 (restore_target_globals): Copy the gcse field to this_target_gcse.
679 * target-globals.c: Include gcse.h.
680 (default_target_globals): Initialize the gcse field.
681 (save_target_globals): Likewise.
682
683 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
684
685 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
686 and x_ira_prohibited_mode_move_regs_initialized_p.
687 (ira_prohibited_mode_move_regs): Redefine as a macro.
688 * ira.c (ira_prohibited_mode_move_regs): Delete.
689 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
690
691 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
692
693 * reload.h (target_reload): Add x_cached_reg_save_code and
694 x_cached_reg_restore_code.
695 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
696 Redefine as macros.
697
698 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
699
700 * Makefile.in (target-globals.o): Depend on builtins.h.
701 * builtins.h: New file.
702 * builtins.c: Include builtins.h.
703 (default_target_builtins): New variable.
704 (this_target_builtins): New conditional variable.
705 (apply_args_mode, apply_result_mode): Redefine as macros.
706 * target-globals.h (this_target_builtins): Declare.
707 (target_globals): Add a builtins field.
708 (restore_target_globals): Copy the builtins field to
709 this_target_builtins.
710 * target-globals.c: Include builtins.h.
711 (default_target_globals): Initialize the builtins field.
712 (save_target_globals): Likewise.
713
714 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
715
716 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
717 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
718 from expmed.c.
719 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
720 (alg_hash, alg_hash_used_p): New macros.
721 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
722 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
723 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
724
725 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
726
727 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
728 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
729 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
730 (this_op_costs, costs_classes): Redefine as macros.
731 (record_reg_classes): Don't take op_costs as a parameter.
732 (record_operand_costs): Likewise. Update calls to record_reg_classes.
733 (scan_one_insn): Update call to record_operand_costs.
734
735 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
736
737 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
738 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
739 (target_ira_int): New structure.
740 (default_target_ira_int): Declare.
741 (this_target_ira_int): Declare as a variable or define as a macro.
742 (ira_reg_mode_hard_regset, ira_register_move_cost)
743 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
744 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
745 (prohibited_class_mode_regs, ira_important_classes_num)
746 (ira_important_classes, ira_reg_class_intersect)
747 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
748 (ira_reg_class_union): Redefine as macros.
749 * ira.h (target_ira): New structure.
750 (default_target_ira): Declare.
751 (this_target_ira): Declare as a variable or define as a macro.
752 (ira_available_class_regs, ira_hard_regno_cover_class)
753 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
754 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
755 (ira_class_hard_regs_num): Redefine as macros.
756 * ira.c (default_target_ira, default_target_ira_int): New variables.
757 (this_target_ira, this_target_ira_int): New conditional variables.
758 (ira_reg_mode_hard_regset, ira_memory_move_cost)
759 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
760 (ira_class_subset_p): Delete.
761 (no_unit_alloc_regs): Redefine as a macro.
762 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
763 (ira_class_hard_regs_num, ira_class_hard_reg_index)
764 (ira_available_class_regs): Delete.
765 (alloc_reg_class_subclasses): Redefine as a macro.
766 (ira_reg_class_cover_size, ira_reg_class_cover)
767 (ira_important_classes_num, ira_important_classes)
768 (ira_important_class_nums, ira_class_translate): Delete.
769 (cover_class_order): Document the variable's lifetime.
770 (reorder_important_classes): Don't set ira_important_class_nums.
771 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
772 (ira_reg_class_super_classes, ira_reg_class_union)
773 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
774 Delete.
775 (setup_reg_class_nregs): Don't set ira_max_regs.
776 (prohibited_class_mode_regs): Delete.
777 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
778 (target_globals): Add ira and ira_int fields.
779 (restore_target_globals): Copy the ira field to this_target_ira
780 and the ira_int field to this_target_ira_int.
781 * target-globals.c: Include ira-int.h.
782 (default_target_globals): Initialize the ira and ira_int fields.
783 (save_target_globals): Likewise.
784
785 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
786
787 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
788 * cfgloop.h (target_cfgloop): New structure.
789 (default_target_cfgloop): Declare.
790 (this_target_cfgloop): Declare as a variable or define as a macro.
791 (target_avail_regs, target_clobbered_regs, target_res_regs)
792 (target_reg_cost, target_spill_cost): Redefine as macros.
793 * cfgloopanal.c (default_target_cfgloop): New variable.
794 (this_target_cfgloop): New conditional variable.
795 (target_avail_regs, target_clobbered_regs, target_res_regs)
796 (target_reg_cost, target_spill_cost): Delete.
797 * target-globals.h (this_target_cfgloop): Declare.
798 (target_globals): Add a cfgloop field.
799 (restore_target_globals): Copy the cfgloop field to
800 this_target_cfgloop.
801 * target-globals.c: Include cfgloop.h.
802 (default_target_globals): Initialize the cfgloop field.
803 (save_target_globals): Likewise.
804
805 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
806
807 * regs.h (target_regs): Add x_direct_load, x_direct_store and
808 x_float_extend_from_mem.
809 (direct_load, direct_store, float_extend_from_mem): New macros.
810 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
811
812 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
813
814 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
815 (target-globals.o): Depend on $(LIBFUNCS_H).
816 * libfuncs.h: Include hashtab.h.
817 (libfunc_entry): Moved from optabs.c.
818 (target_libfuncs): New structure.
819 (default_target_libfuncs): Declare.
820 (this_target_libfuncs): Declare as a variable or define as a macro.
821 (libfunc_table): Redefine as a macro.
822 * optabs.c (default_target_libfuncs): New variable.
823 (this_target_libfuncs): New conditional variable.
824 (libfunc_table): Delete.
825 (libfunc_entry): Moved to optabs.h.
826 (libfunc_hash): Redefine as a macro.
827 (hash_libfunc, eq_libfunc): Fix comments.
828 (init_optabs): Use libfunc_hash to detect cases where the function
829 has already been called. Clear the hash table instead of
830 recreating it.
831 * target-globals.h (this_target_libfuncs): Declare.
832 (target_globals): Add a libfuncs field.
833 (restore_target_globals): Copy the libfuncs field to
834 this_target_libfuncs.
835 * target-globals.c: Include libfuncs.h.
836 (default_target_globals): Initialize the libfuncs field.
837 (save_target_globals): Likewise.
838
839 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
840
841 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
842 in all dependency lists.
843
844 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
845
846 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
847 * optabs.h (target_optabs): New structure.
848 (default_target_optabs): Declare.
849 (this_target_optabs): Declare as a variable or define as a macro.
850 (optab_table, convert_optab_table, direct_optab_table): Redefine
851 as macros.
852 * optabs.c (default_target_optabs): New variable.
853 (this_target_optabs): New conditional variable.
854 (optab_table, convert_optab_table, direct_optab_table): Delete.
855 * target-globals.h (this_target_optabs): Declare.
856 (target_globals): Add a optabs field.
857 (restore_target_globals): Copy the optabs field to
858 this_target_optabs.
859 * target-globals.c: Include expr.h and optabs.h.
860 (default_target_globals): Initialize the optabs field.
861 (save_target_globals): Likewise.
862
863 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
864
865 * flags.h (target_flagstate): Add x_flag_excess_precision.
866 (flag_excess_precision): Redefine as a macro.
867 * toplev.c (flag_excess_precision): Delete.
868
869 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
870
871 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
872 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
873 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
874 (no_caller_save_reg_set): Redefine as a macro.
875 * reload.h (target_reload): Add x_caller_save_initialized_p and
876 x_regno_save_mode.
877 (caller_save_initialized_p): Redefine as a macro.
878 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
879 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
880 (regno_save_mode): Redefine as a macro.
881
882 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
883
884 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
885 * expmed.h: New file.
886 * expmed.c (default_target_costs): New variable.
887 (this_target_costs): New conditional variable.
888 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
889 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
890 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
891 * target-globals.h (this_target_expmed): Declare.
892 (target_globals): Add a expmed field.
893 (restore_target_globals): Copy the expmed field to
894 this_target_expmed.
895 * target-globals.c: Include expmed.h.
896 (default_target_globals): Initialize the expmed field.
897 (save_target_globals): Likewise.
898
899 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
900
901 * Makefile.in (target-globals.o): Depend on reload.h.
902 * reload.h (target_reload): New structure.
903 (default_target_reload): Declare.
904 (this_target_reload): Declare as a variable or define as a macro.
905 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
906 * reload1.c (default_target_reload): New variable
907 (this_target_reload): New conditional variable.
908 (indirect_symref_ok, double_reg_address_ok): Delete.
909 (spill_indirect_levels): Redefine as a macro.
910 * target-globals.h (this_target_reload): Declare.
911 (target_globals): Add a reload field.
912 (restore_target_globals): Copy the reload field to
913 this_target_reload.
914 * target-globals.c: Include hard-reg-set.h.
915 (default_target_globals): Initialize the reload field.
916 (save_target_globals): Likewise.
917
918 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
919
920 * rtl.h (target_rtl): Add x_static_reg_base_value.
921 * alias.c (static_reg_base_value): Redefine as a macro.
922
923 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
924
925 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
926 (GTFILES): Remove reginfo.c.
927 * rtl.h (target_rtl): Add x_top_of_stack.
928 (top_of_stack): New macro.
929 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
930 (top_of_stack): Delete.
931
932 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
933
934 * regs.h (target_regs): Add x_hard_regs_of_mode,
935 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
936 x_may_move_out_cost and x_last_mode_for_init_move_cost.
937 (have_regs_of_mode, contains_reg_of_mode, move_cost)
938 (may_move_in_cost, may_move_out_cost): Redefine as macros.
939 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
940 (may_move_in_cost, may_move_out_cost): Delete.
941 (last_mode_for_init_move_cost): Redefine as a macro.
942
943 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
944
945 * hard-reg-set.h (target_hard_regs): New structure.
946 (default_target_hard_regs): Declare.
947 (this_target_hard_regs): Declare as a variable or define as a macro.
948 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
949 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
950 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
951 (reg_class_size, reg_class_subclasses, reg_class_subunion)
952 (reg_class_superunion, reg_names): Redefine as macros.
953 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
954 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
955 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
956 (reg_class_contents, reg_class_size, reg_class_subclasses)
957 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
958 (default_target_hard_regs): New variable
959 (this_target_hard_regs, initial_call_really_used_regs)
960 (initial_reg_alloc_order): New conditional variables.
961 (initial_reg_names): New variable.
962 (init_reg_sets): Assert that initial_call_really_used_regs,
963 initial_reg_alloc_order and initial_reg_names
964 are all the same size as their variable counterparts. Use them to
965 initialize those counterparts.
966 * target-globals.h (this_target_hard_regs): Declare.
967 (target_globals): Add a hard_regs field.
968 (restore_target_globals): Copy the hard_regs field to
969 this_target_hard_regs.
970 * target-globals.c: Include hard-reg-set.h.
971 (default_target_globals): Initialize the hard_regs field.
972 (save_target_globals): Likewise.
973
974 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
975
976 * Makefile.in (target-globals.o): Depend on $(RTL_H).
977 * rtl.h: (target_rtl): New structure.
978 (default_target_rtl): Declare.
979 (this_target_rtl): Declare as a variable or define as a macro.
980 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
981 Redefine as macros.
982 * emit-rtl.c (default_target_rtl): New variable.
983 (this_target_rtl): New conditional variable.
984 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
985 (return_address_pointer_rtx): Delete.
986 (initial_regno_reg_rtx): New macro.
987 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
988 (init_emit_regs): Likewise.
989 * target-globals.h (this_target_rtl): Declare.
990 (target_globals): Add a rtl field.
991 (restore_target_globals): Copy the rtl field to this_target_rtl.
992 * target-globals.c: Include rtl.h.
993 (default_target_globals): Initialize the rtl field.
994 (save_target_globals): Likewise.
995
996 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
997
998 * Makefile.in (target-globals.o): Depend on $(REGS_H).
999 * regs.h (target_reg_modes): New structure.
1000 (default_target_reg_modes): Declare.
1001 (this_target_reg_modes): Declare as a variable or define as a macro.
1002 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
1003 * reginfo.c (default_target_reg_modes): New variable.
1004 (this_target_reg_modes): New conditional variable.
1005 (hard_regno_nregs, reg_raw_mode): Delete.
1006 * target-globals.h (this_target_regs): Declare.
1007 (target_globals): Add a regs field.
1008 (restore_target_globals): Copy the regs field to this_target_regs.
1009 * target-globals.c: Include regs.h.
1010 (default_target_globals): Initialize the regs field.
1011 (save_target_globals): Likewise.
1012
1013 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1014
1015 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
1016 * doc/tm.texi: Regenerate.
1017 * Makefile.in (OBJS-common): Add target-globals.o.
1018 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
1019 and target-globals.h.
1020 (target-globals.o): New rule.
1021 (GTFILES): Include $(srcdir)/target-globals.h.
1022 * defaults.h (SWITCHABLE_TARGET): Define.
1023 * gengtype.c (open_base_files): Add target-globals.h to the
1024 list of includes.
1025 * target-globals.h: New file.
1026 * target-globals.c: Likewise.
1027
1028 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
1029 * flags.h (target_flag_state): New structure.
1030 (default_target_flag_state): Declare.
1031 (this_target_flag_state): Declare as a variable or define as a macro.
1032 (align_loops_log): Redefine as a macro.
1033 (align_loops_max_skip, align_jumps_log): Likewise.
1034 (align_jumps_max_skip, align_labels_log): Likewise.
1035 (align_labels_max_skip, align_functions_log): Likewise.
1036 * toplev.c (default_target_flag_state): New variable.
1037 (this_target_flag_state): New conditional variable.
1038 (align_loops_log): Delete.
1039 (align_loops_max_skip, align_jumps_log): Likewise.
1040 (align_jumps_max_skip, align_labels_log): Likewise.
1041 (align_labels_max_skip, align_functions_log): Likewise.
1042 * target-globals.h (this_target_flag_state): Declare.
1043 (target_globals): Add a flag_state field.
1044 (restore_target_globals): Copy the flag_state field to
1045 this_target_flag_state.
1046 * target-globals.c: Include flags.h.
1047 (default_target_globals): Initialize the flag_state field.
1048 (save_target_globals): Likewise.
1049
1050 2010-07-12 Jie Zhang <jie@codesourcery.com>
1051
1052 * postreload.c (reg_symbol_ref[]): New.
1053 (move2add_use_add2_insn): New.
1054 (move2add_use_add3_insn): New.
1055 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
1056 (move2add_note_store): Likewise.
1057
1058 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
1059
1060 PR rtl-optimization/44752
1061 * genautomata.c (main): Don't emit an empty file even if there
1062 is no automaton.
1063
1064 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1065
1066 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
1067 ix86_solaris_return_in_memory.
1068 * config/i386-protos.h: Reflect this.
1069 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
1070 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
1071 Move ...
1072 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
1073
1074 2010-07-12 Jie Zhang <jie@codesourcery.com>
1075
1076 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
1077 align the stack when it's going to be saved.
1078
1079 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1080
1081 PR pch/14940
1082 * config/host-solaris.c (mmap_fixed): New function.
1083 (sol_gt_pch_get_address): Use it.
1084 (sol_gt_pch_use_address): Likewise.
1085
1086 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1087
1088 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
1089 pentiumpro on Solaris 8 and 9/x86.
1090 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
1091 Document SSE/SSE2 support.
1092 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
1093
1094 2010-07-12 Andi Kleen <ak@linux.intel.com>
1095
1096 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
1097 instead of gcc_assert to print better error message for multiple
1098 prevailing defs.
1099
1100 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
1101
1102 * config/i386/i386.c (ix86_asm_output_function_label): Change format
1103 string placeholder from 0x%x to %#x.
1104 (ix86_code_end): Use putc to output '\n'.
1105 (ix86_print_operand) <case ';'>: Use putc to output ';'.
1106
1107 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
1108
1109 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
1110 in directive -export.
1111
1112 2010-07-10 Anatoly Sokolov <aesok@post.ru>
1113
1114 * reginfo.h (reg_classes_intersect_p): Change arguments type to
1115 reg_class_t.
1116 * rtl.h (reg_classes_intersect_p): Adjust prototype.
1117
1118 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
1119 Remove macros.
1120 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
1121 rs6000_memory_move_cost): Remove
1122 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
1123 TARGET_MEMORY_MOVE_COST): Define.
1124 (rs6000_register_move_cost): Make static. Change arguments type from
1125 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
1126 (rs6000_memory_move_cost): Make static. Change arguments type from
1127 'enum reg_class' to reg_class_t.
1128
1129 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
1130
1131 PR middle-end/42505
1132 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
1133 lookup code into....
1134 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
1135 new functions.
1136 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
1137 * cfgloopanal.c (target_clobbered_regs): Define.
1138 (init_set_costs): Initialize target_clobbered_regs.
1139 (estimate_reg_pressure_cost): Add call_p argument. When true,
1140 adjust the number of available registers to exclude the
1141 call-clobbered registers.
1142 * cfgloop.h (target_clobbered_regs): Declare.
1143 (estimate_reg_pressure_cost): Adjust declaration.
1144 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
1145 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
1146 (determine_set_costs): Dump target_clobbered_regs.
1147 (loop_body_includes_call): New function.
1148 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
1149 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
1150 call_p flag through.
1151 (best_gain_for_invariant): Likewise.
1152 (find_invariants_to_move): Likewise.
1153 (move_single_loop_invariants): Likewise, using already-computed
1154 has_call field.
1155
1156 2010-07-10 Richard Guenther <rguenther@suse.de>
1157 Joern Rennecke <joern.rennecke@embecosm.com>
1158
1159 PR debug/44832
1160 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
1161 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
1162 unless they have DECL_IGNORED_P set.
1163
1164 2010-07-10 Richard Guenther <rguenther@suse.de>
1165
1166 PR lto/44889
1167 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
1168 helper function.
1169 (gimple_types_compatible_p): Similar to pointed-to
1170 types allow and merge a mix of complete and incomplete aggregate.
1171 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
1172 (iterative_hash_gimple_type): Adjust for that.
1173
1174 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
1175
1176 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
1177
1178 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
1179
1180 PR objc/44140
1181 * config/darwin.c (output_objc_section_asm_op): Save and restore
1182 section when outputting ObjC section list.
1183
1184 2010-07-09 Jan Hubicka <jh@suse.cz>
1185
1186 * lto-streamer-out.c (produce_symtab): Do not write alias
1187 cgraph/varpool nodes.
1188
1189 2010-07-09 Jan Hubicka <jh@suse.cz>
1190
1191 * tree-inline.c (declare_return_variable): Fix ICE while
1192 inlining DECL_BY_VALUE function not in SSA form
1193
1194 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
1195
1196 PR tree-optimization/44576
1197 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
1198 New. Pull out from is_loop_prefetching_profitable to implement
1199 the trip count to ahead ratio heuristic.
1200 (mem_ref_count_reasonable_p): New. Pull out from
1201 is_loop_prefetching_profitable to implement the instruction to
1202 memory reference ratio heuristic. Also consider not reasonable if
1203 the memory reference count is above a threshold (to avoid
1204 explosive compilation time.
1205 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
1206 is_loop_prefetching_profitable to implement the instruction to
1207 prefetch ratio heuristic.
1208 (is_loop_prefetching_profitable): Removed.
1209 (loop_prefetch_arrays): Distribute the cost analysis across the
1210 function to allow early exit of the prefetch analysis.
1211 is_loop_prefetching_profitable is splitted into three functions,
1212 with each one called as early as possible.
1213 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
1214 number of memory references in a loop is considered too many.
1215
1216 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
1217
1218 * reload.c (find_reloads): Don't clear badop if we have a winreg
1219 alternative, but not win, and the class only has fixed regs.
1220 * hard-reg-set.h (class_only_fixed_regs): Declare.
1221 * reginfo.c (class_only_fixed_regs): New array.
1222 (init_reg_sets_1): Initialize it.
1223 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
1224 discourage alternatives using the stack pointer.
1225
1226 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
1227
1228 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
1229
1230 * config/arm/arm.md (cbranchqi4): Fix array size.
1231 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
1232 calculating length.
1233
1234 2010-07-09 Richard Guenther <rguenther@suse.de>
1235
1236 * gimple.c (struct type_fixup_s): New struct and VEC type.
1237 (gimple_register_type_fixups): New static global.
1238 (gimple_queue_type_fixup): New function.
1239 (gimple_types_compatible_p): Queue type fixups instead of
1240 applying them here.
1241 (gimple_register_type): Apply queued fixups for the
1242 canonical type. Empty the type fixup queue.
1243
1244 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
1245
1246 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
1247 * configure: Regenerate.
1248 * config.in: Ditto.
1249
1250 2010-07-09 Jakub Jelinek <jakub@redhat.com>
1251 Denys Vlasenko <dvlasenk@redhat.com>
1252 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1253
1254 PR tree-optimization/28632
1255 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
1256 (extract_range_from_binary_expr): Further optimize
1257 BIT_AND_EXPR and BIT_IOR_EXPR.
1258
1259 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
1260
1261 * tree-if-conv.c (fold_or_predicates): New.
1262 (add_to_predicate_list): Call it.
1263
1264 2010-07-09 Richard Guenther <rguenther@suse.de>
1265
1266 PR middle-end/44890
1267 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
1268 if base is a pointer.
1269 * tree-cfg.c (verify_expr): Update MEM_REF checking.
1270
1271 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1272
1273 PR target/44877
1274 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
1275 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
1276 builtin mask for load/store builtins.
1277
1278 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
1279
1280 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
1281 for "lock addl".
1282 * configure: Regenerate.
1283 * config/i386/i386.c (ix86_print_operand) <case ';'>:
1284 Remove TARGET_MACHO.
1285
1286 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
1287
1288 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
1289 default ISA flags.
1290 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
1291
1292 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
1293
1294 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
1295
1296 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
1297
1298 * config/picochip/picochip.md (commsTestPort): Emit more
1299 efficient sequence for tstport instruction.
1300
1301 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
1302
1303 * config/i386/i386.c (ix86_veclib_handler): Make static.
1304
1305 2010-07-09 Richard Guenther <rguenther@suse.de>
1306
1307 PR tree-optimization/44852
1308 * tree-ssa-alias.c: Include toplev.h for exact_log2.
1309 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
1310 in MEM_REF.
1311 (indirect_refs_may_alias_p): Likewise.
1312 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
1313
1314 2010-07-09 Richard Guenther <rguenther@suse.de>
1315
1316 PR tree-optimization/44882
1317 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
1318 sets do conflict.
1319 (vectorizable_load): Likewise.
1320
1321 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
1322
1323 PR target/40657
1324 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
1325 All callers changed.
1326 Handle the case when we're called for the epilogue.
1327 (thumb_unexpanded_epilogue): Use it.
1328 (thumb1_expand_epilogue): Likewise.
1329
1330 2010-07-09 Jakub Jelinek <jakub@redhat.com>
1331
1332 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
1333 both ranges are range_int_cst_p with non-negative minimum,
1334 try harder to derive smaller range.
1335
1336 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1337
1338 * genrecog.c: Include diagnostic-core.h before toplev.h.
1339 * genoutput.c: Likewise.
1340 * genextract.c: Likewise.
1341 * genautomata.c: Likewise.
1342 * genemit.c: Likewise.
1343 * genpeep.c: Likewise.
1344 * genattrtab.c: Likewise.
1345 * genconditions.c: Likewise.
1346 * genpreds.c: Likewise.
1347
1348 2010-07-08 Andi Kleen <ak@linux.intel.com>
1349
1350 * lto-section-in.c (lto_section_name): Add missing comma.
1351
1352 2010-07-08 Anatoly Sokolov <aesok@post.ru>
1353
1354 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
1355 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
1356 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
1357 (ia64_override_options): Rename to...
1358 (ia64_option_override): ... this one. Make static.
1359
1360 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1361
1362 PR middle-end/44843
1363 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
1364 pointed-to type of the offset in a MEM_REF to compute the alignment.
1365
1366 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
1367
1368 * final.c (final_scan_insn): Replace
1369 TARGET_UNWIND_INFO macro check by unwind_emit
1370 hook NULL check.
1371 * targhooks.c (default_unwind_emit): Removed.
1372 * targhooks.h (default_unwind_emit): Likewise.
1373 * target.def (unwind_emit): Set default value to NULL.
1374
1375 * config/i386/i386-protos.h (ix86_asm_output_function_label):
1376 New prototype.
1377 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
1378 for NULL fntype argument and allow 64-bit targets.
1379 (ix86_asm_output_function_label): New function.
1380 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
1381 (ix86_handle_fndecl_attribute): Likewise.
1382 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
1383 * doc/doc/tm.texi: Regenerated.
1384 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
1385 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
1386 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
1387 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
1388 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
1389 * config/elfos.h: Likewise.
1390 * config/i386/cygming.h: Likewise.
1391 * config/netbsd-aout.h: Likewise.
1392 * config/openbsd.h: Likewise.
1393 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
1394 by ix86_asm_output_function_label function call.
1395 * varasm.c (assemble_start_function): Use
1396 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
1397
1398 2010-07-08 Jan Hubicka <jh@suse.cz>
1399
1400 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
1401 New function.
1402 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
1403 Declare.
1404 * ipa-cp.c (ipcp_estimate_growth): Use it.
1405 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
1406 Likewise.
1407
1408 2010-07-08 Jan Hubicka <jh@suse.cz>
1409
1410 * tree-inline.c (declare_return_variable): Allocate annotation for new
1411 temporary.
1412
1413 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
1414
1415 PR tree-optimization/44710
1416 * tree-if-conv.c (parse_predicate): New.
1417 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
1418 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
1419
1420 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
1421
1422 * common.opt (ftree-loop-if-convert): New flag.
1423 * doc/invoke.texi (ftree-loop-if-convert): Documented.
1424 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
1425 when flag_tree_loop_if_convert is set.
1426
1427 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
1428
1429 * config/i386/i386.c: Use short syntax for function calls
1430 through function pointers.
1431 * config/i386/i386.md: Ditto.
1432
1433 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1434
1435 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
1436
1437 2010-07-08 Richard Guenther <rguenther@suse.de>
1438
1439 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
1440 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
1441
1442 2010-07-08 Jakub Jelinek <jakub@redhat.com>
1443
1444 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
1445 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
1446 (loc_list_from_tree): Likewise.
1447 (output_loc_operands): Handle outputting DW_OP_const[48]u
1448 with loc->dtprel set.
1449 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
1450
1451 2010-07-08 Jan Hubicka <jh@suse.cz>
1452
1453 * ipa.c: Include pointer-set.h
1454 (cgraph_externally_visible_p): New attribute ALIASED;
1455 when in LTO, hidden symbols are local unless they are aliased.
1456 (function_and_variable_visibility): Compute aliased nodes;
1457 handle LTO and hidden symbol on functions and vars.
1458 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
1459 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
1460
1461 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1462
1463 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
1464 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1465 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1466 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1467 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1468 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
1469 (ix86_gen_probe_stack_range): Likewise.
1470 (override_options): Set them.
1471 (ix86_target_stack_probe): New function.
1472 (ix86_compute_frame_layout): Force use of push instructions to
1473 save registers if stack checking with probes is enabled.
1474 (get_scratch_register_on_entry): New function.
1475 (release_scratch_register_on_entry): Likewise.
1476 (ix86_adjust_stack_and_probe): Likewise.
1477 (output_adjust_stack_and_probe): Likewise.
1478 (ix86_emit_probe_stack_range): Likewise.
1479 (output_probe_stack_range): Likewise.
1480 (ix86_expand_prologue): Emit stack checking code if static built-in
1481 stack checking is enabled.
1482 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
1483 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
1484 (output_adjust_stack_and_probe): Likewise.
1485 (output_probe_stack_range): Likewise.
1486 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
1487 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
1488 TARGET_STACK_PROBE.
1489 (allocate_stack_worker_64): Likewise.
1490 (allocate_stack): Likewise.
1491 (adjust_stack_and_probe): New insn.
1492 (probe_stack_range): Likewise.
1493
1494 2010-07-08 Richard Guenther <rguenther@suse.de>
1495
1496 PR tree-optimization/44831
1497 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
1498 a MEM_REF preserving TBAA info of the original dereference.
1499 Dereference the original pointer if the address is not invariant.
1500 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
1501 at least one invariant address that we are going to dereference.
1502
1503 2010-07-08 Richard Guenther <rguenther@suse.de>
1504
1505 PR tree-optimization/44861
1506 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
1507 information when building MEM_REFs.
1508 (vectorizable_load): Likewise.
1509 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
1510
1511 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1512
1513 * config/sol2-c.c: Do not include diagnostic-core.h.
1514
1515 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1516
1517 PR bootstrap/44768
1518 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
1519 with respect to current_function_decl. Pass decl of the function.
1520 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
1521 * ipa-inline.c (compute_inline_parameters): Pass decl to
1522 estimated_stack_frame_size.
1523
1524 2010-07-08 Richard Guenther <rguenther@suse.de>
1525
1526 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
1527 New function.
1528 (valueize_refs): Call it.
1529
1530 2010-07-08 Richard Guenther <rguenther@suse.de>
1531
1532 PR rtl-optimization/44838
1533 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
1534 SSA form do not use pointer equivalence.
1535
1536 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1537
1538 * dwarf2out.c (AT_linkage_name): Delete.
1539 (add_linkage_attr): New function.
1540 (add_linkage_name): Call it to emit the linkage attribute.
1541 (dwarf2out_finish): Likewise.
1542 (move_linkage_attr): Explicitly accept both attribute variants.
1543
1544 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1545
1546 * toplev.h: Do not include diagnostic-core.h.
1547 Include diagnostic-core.h in every file that includes toplev.h.
1548 * c-tree.h: Do not include toplev.h.
1549 * pretty-print.h: Update comment.
1550 * Makefile.in: Update dependencies.
1551 * alias.c: Include diagnostic-core.h in every file that includes
1552 toplev.h.
1553 * attribs.c: Likewise.
1554 * auto-inc-dec.c: Likewise.
1555 * bb-reorder.c: Likewise.
1556 * bt-load.c: Likewise.
1557 * caller-save.c: Likewise.
1558 * calls.c: Likewise.
1559 * cfg.c: Likewise.
1560 * cfganal.c: Likewise.
1561 * cfgbuild.c: Likewise.
1562 * cfgcleanup.c: Likewise.
1563 * cfghooks.c: Likewise.
1564 * cfgloop.c: Likewise.
1565 * combine.c: Likewise.
1566 * config/alpha/alpha.c: Likewise.
1567 * config/arc/arc.c: Likewise.
1568 * config/arm/arm.c: Likewise.
1569 * config/arm/pe.c: Likewise.
1570 * config/avr/avr.c: Likewise.
1571 * config/bfin/bfin.c: Likewise.
1572 * config/cris/cris.c: Likewise.
1573 * config/crx/crx.c: Likewise.
1574 * config/darwin-c.c: Likewise.
1575 * config/darwin.c: Likewise.
1576 * config/fr30/fr30.c: Likewise.
1577 * config/frv/frv.c: Likewise.
1578 * config/h8300/h8300.c: Likewise.
1579 * config/host-darwin.c: Likewise.
1580 * config/i386/i386.c: Likewise.
1581 * config/i386/netware.c: Likewise.
1582 * config/i386/nwld.c: Likewise.
1583 * config/i386/winnt-cxx.c: Likewise.
1584 * config/i386/winnt-stubs.c: Likewise.
1585 * config/i386/winnt.c: Likewise.
1586 * config/ia64/ia64-c.c: Likewise.
1587 * config/ia64/ia64.c: Likewise.
1588 * config/iq2000/iq2000.c: Likewise.
1589 * config/lm32/lm32.c: Likewise.
1590 * config/m32c/m32c-pragma.c: Likewise.
1591 * config/m32c/m32c.c: Likewise.
1592 * config/m32r/m32r.c: Likewise.
1593 * config/m68hc11/m68hc11.c: Likewise.
1594 * config/m68k/m68k.c: Likewise.
1595 * config/mcore/mcore.c: Likewise.
1596 * config/mep/mep-pragma.c: Likewise.
1597 * config/mep/mep.c: Likewise.
1598 * config/mmix/mmix.c: Likewise.
1599 * config/mn10300/mn10300.c: Likewise.
1600 * config/moxie/moxie.c: Likewise.
1601 * config/pa/pa.c: Likewise.
1602 * config/pdp11/pdp11.c: Likewise.
1603 * config/picochip/picochip.c: Likewise.
1604 * config/rs6000/rs6000-c.c: Likewise.
1605 * config/rs6000/rs6000.c: Likewise.
1606 * config/rx/rx.c: Likewise.
1607 * config/s390/s390.c: Likewise.
1608 * config/score/score.c: Likewise.
1609 * config/score/score3.c: Likewise.
1610 * config/score/score7.c: Likewise.
1611 * config/sh/sh.c: Likewise.
1612 * config/sh/symbian-base.c: Likewise.
1613 * config/sh/symbian-c.c: Likewise.
1614 * config/sh/symbian-cxx.c: Likewise.
1615 * config/sol2-c.c: Likewise.
1616 * config/sol2.c: Likewise.
1617 * config/sparc/sparc.c: Likewise.
1618 * config/spu/spu.c: Likewise.
1619 * config/stormy16/stormy16.c: Likewise.
1620 * config/v850/v850-c.c: Likewise.
1621 * config/v850/v850.c: Likewise.
1622 * config/vax/vax.c: Likewise.
1623 * config/vxworks.c: Likewise.
1624 * config/xtensa/xtensa.c: Likewise.
1625 * convert.c: Likewise.
1626 * cse.c: Likewise.
1627 * cselib.c: Likewise.
1628 * dbgcnt.c: Likewise.
1629 * dbxout.c: Likewise.
1630 * ddg.c: Likewise.
1631 * dominance.c: Likewise.
1632 * emit-rtl.c: Likewise.
1633 * explow.c: Likewise.
1634 * expmed.c: Likewise.
1635 * fixed-value.c: Likewise.
1636 * fold-const.c: Likewise.
1637 * fwprop.c: Likewise.
1638 * gcse.c: Likewise.
1639 * ggc-common.c: Likewise.
1640 * ggc-page.c: Likewise.
1641 * ggc-zone.c: Likewise.
1642 * gimple-low.c: Likewise.
1643 * gimplify.c: Likewise.
1644 * graph.c: Likewise.
1645 * haifa-sched.c: Likewise.
1646 * ifcvt.c: Likewise.
1647 * implicit-zee.c: Likewise.
1648 * integrate.c: Likewise.
1649 * ira-build.c: Likewise.
1650 * ira-color.c: Likewise.
1651 * ira-conflicts.c: Likewise.
1652 * ira-costs.c: Likewise.
1653 * ira-lives.c: Likewise.
1654 * ira.c: Likewise.
1655 * lists.c: Likewise.
1656 * loop-doloop.c: Likewise.
1657 * loop-iv.c: Likewise.
1658 * lto-opts.c: Likewise.
1659 * lto-symtab.c: Likewise.
1660 * main.c: Likewise.
1661 * modulo-sched.c: Likewise.
1662 * optabs.c: Likewise.
1663 * params.c: Likewise.
1664 * plugin.c: Likewise.
1665 * postreload-gcse.c: Likewise.
1666 * postreload.c: Likewise.
1667 * predict.c: Likewise.
1668 * profile.c: Likewise.
1669 * real.c: Likewise.
1670 * regcprop.c: Likewise.
1671 * reginfo.c: Likewise.
1672 * regmove.c: Likewise.
1673 * reorg.c: Likewise.
1674 * resource.c: Likewise.
1675 * rtl.c: Likewise.
1676 * rtlanal.c: Likewise.
1677 * sched-deps.c: Likewise.
1678 * sched-ebb.c: Likewise.
1679 * sched-rgn.c: Likewise.
1680 * sdbout.c: Likewise.
1681 * sel-sched-dump.c: Likewise.
1682 * sel-sched-ir.c: Likewise.
1683 * simplify-rtx.c: Likewise.
1684 * stmt.c: Likewise.
1685 * stor-layout.c: Likewise.
1686 * store-motion.c: Likewise.
1687 * targhooks.c: Likewise.
1688 * tree-cfg.c: Likewise.
1689 * tree-cfgcleanup.c: Likewise.
1690 * tree-dump.c: Likewise.
1691 * tree-eh.c: Likewise.
1692 * tree-inline.c: Likewise.
1693 * tree-nomudflap.c: Likewise.
1694 * tree-object-size.c: Likewise.
1695 * tree-optimize.c: Likewise.
1696 * tree-outof-ssa.c: Likewise.
1697 * tree-phinodes.c: Likewise.
1698 * tree-profile.c: Likewise.
1699 * tree-ssa-ccp.c: Likewise.
1700 * tree-ssa-coalesce.c: Likewise.
1701 * tree-ssa-live.c: Likewise.
1702 * tree-ssa-loop-niter.c: Likewise.
1703 * tree-ssa-loop-prefetch.c: Likewise.
1704 * tree-ssa-loop.c: Likewise.
1705 * tree-ssa-structalias.c: Likewise.
1706 * tree-ssa-uninit.c: Likewise.
1707 * tree-ssa.c: Likewise.
1708 * tree-vect-data-refs.c: Likewise.
1709 * tree-vect-loop-manip.c: Likewise.
1710 * tree-vect-loop.c: Likewise.
1711 * tree-vect-patterns.c: Likewise.
1712 * tree-vect-stmts.c: Likewise.
1713 * tree-vrp.c: Likewise.
1714 * varasm.c: Likewise.
1715 * vec.c: Likewise.
1716 * web.c: Likewise.
1717 * xcoffout.c: Likewise.
1718
1719 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
1720
1721 * gengtype.c (write_field_root): New function.
1722 (write_root): Use it.
1723
1724 2010-07-07 Wei Guozhi <carrot@google.com>
1725
1726 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
1727 of lowest bits to lshift/compare): Add a missing line.
1728
1729 2010-07-07 Wei Guozhi <carrot@google.com>
1730
1731 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
1732 of lowest bits to lshift/compare): New.
1733
1734 2010-07-07 Tom Tromey <tromey@redhat.com>
1735
1736 * doc/tm.texi: Update.
1737 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
1738 Add @hook.
1739 * target.def (want_debug_pub_sections): New hook.
1740 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
1741 * dwarf2out.c (add_pubname_string): Check
1742 targetm.want_debug_pub_sections.
1743 (add_pubname): Likewise.
1744 (add_pubtype): Likewise.
1745
1746 2010-07-07 Jie Zhang <jie@codesourcery.com>
1747
1748 * genautomata.c (output_automata_list_min_issue_delay_code):
1749 Correctly decompress min_issue_delay.
1750
1751 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
1752
1753 PR rtl-optimization/44404
1754 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
1755 possible, use reg_overlap_mentioned_p instead.
1756
1757 2010-07-07 Duncan Sands <baldrick@free.fr>
1758
1759 PR middle-end/41355
1760 * tree.c (build_function_type_skip_args): Copy the original type using
1761 build_distinct_type_copy rather than copy_node.
1762
1763 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
1764
1765 PR target/44850
1766 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
1767 revision 161876.
1768 (ix86_expand_prologue): Likewise.
1769 (ix86_handle_fndecl_attribute): Likewise.
1770 (ix86_asm_declare_function_name): Likewise.
1771 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1772 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1773 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
1774 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
1775 * doc/extend.texi: Likewise.
1776
1777 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
1778
1779 PR target/44844
1780 * config/i386/i386.md (rdrand<mode>): Changed to expand to
1781 retry if the carry flag isn't valid.
1782 (rdrand<mode>_1): New.
1783
1784 2010-07-07 Richard Guenther <rguenther@suse.de>
1785
1786 PR middle-end/44790
1787 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
1788 for expanding the constant offset for MEM_REFs.
1789
1790 2010-07-07 Richard Guenther <rguenther@suse.de>
1791
1792 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
1793 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
1794 * gimple.h (is_gimple_operand): Remove.
1795 * gimple.c (is_gimple_operand): Likewise.
1796 (walk_gimple_op): Fix wi->val_only setting for calls.
1797 * tree-cfg.c (verify_gimple_call): Fix argument validation.
1798 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
1799 invalid gimple calls.
1800
1801 2010-07-06 Jan Hubicka <jh@suse.cz>
1802
1803 * lto-cgraph.c (output_cgraph): Add missing declaration.
1804
1805 2010-07-06 Jan Hubicka <jh@suse.cz>
1806
1807 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
1808 partition.
1809
1810 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
1811
1812 * doc/gimple.texi (GIMPLE_DEBUG): Document.
1813 * doc/rtl.texi (Debug Information): New node.
1814 (NOTE_INSN_VAR_LOCATION): Document.
1815 (debug_insn): Likewise.
1816 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
1817
1818 2010-07-07 Jan Hubicka <jh@suse.cz>
1819
1820 With parts by Richard Guenther.
1821
1822 PR middle-end/44813
1823 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
1824 for functions passed by reference.
1825 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
1826 in memory when passed by reference.
1827 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
1828 beggining.
1829 * ipa-split.c (split_function): Cleanup way return value is passed;
1830 handle SSA DECL_BY_REFERENCE retvals.
1831 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
1832 DECL_BY_REFERENCE is set.
1833 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
1834 find_what_p_points_to): Handle RESULT_DECL.
1835 * tree-inline.c (declare_return_variable): Get new entry_block argument;
1836 when passing by reference ensure that RESULT_DECL is gimple_val.
1837 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
1838 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
1839
1840 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
1841
1842 PR rtl-optimization/44787
1843 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
1844 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
1845
1846 2010-07-06 Jan Hubicka <jh@suse.cz>
1847
1848 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
1849 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
1850 with body can prevail.
1851 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
1852 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
1853 * cgraph.c (cgraph_get_node_or_alias): New function.
1854 * cgraph.h (cgraph_get_node_or_alias): Declare.
1855
1856 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
1857
1858 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
1859 support.
1860 (ix86_expand_prologue): Likewise.
1861 (ix86_handle_fndecl_attribute): Likewise.
1862 (ix86_asm_declare_function_name): New function for
1863 ASM_DECLARE_FUNCTION_NAME.
1864 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
1865 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
1866 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
1867 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
1868 * doc/extend.texi: Adjust documentation about ms_hook_prologue
1869 attribute.
1870
1871 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
1872
1873 * config/i386/i386.md (immediate_operand): New mode attribute.
1874
1875 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
1876 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
1877 using P mode iterator.
1878 (pro_epilogue_adjust_stack_di_2): Rename from
1879 pro_epilogue_adjust_stack_rex64_2.
1880
1881 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
1882
1883 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
1884
1885 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
1886 through gen_mov_insv_1 function pointer.
1887 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
1888 gen_truncxf<mode>2 through gen_truncxf function pointer.
1889 (remainder<mode>3): Ditto.
1890 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
1891 (allocate_stack): Call gen_allocate_stack_worker_64 or
1892 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
1893 function pointer.
1894 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
1895 function pointer.
1896
1897 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
1898
1899 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
1900 operand constraint instead of <r><i>m.
1901
1902 2010-07-06 Richard Guenther <rguenther@suse.de>
1903
1904 PR middle-end/44828
1905 * convert.c (convert_to_integer): Watch out for overflowing
1906 MULT_EXPR as well.
1907
1908 2010-07-05 Jan Hubicka <jh@suse.cz>
1909
1910 * lto-streamer.c (write_symbol_vec): Rename to ...
1911 (write_symbol) ... this one; write only symbol given and when
1912 present in cache. Sanity check that what is defined is present
1913 in cgraph/varpool with body/finalized decl.
1914 (write_symbols_of_kind): Remove.
1915 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
1916 pairs to produce symtab.
1917 (produce_asm_for_decls): Update call of produce_symtab; don't do so
1918 when doing WPA streaming.
1919
1920 2010-07-05 Jan Hubicka <jh@suse.cz>
1921
1922 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
1923 function is still available to fold into.
1924
1925 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
1926
1927 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
1928 * function.h (struct_function): Change type of local_decls field
1929 to a VEC.
1930 (add_local_decl): New function.
1931 (FOR_EACH_LOCAL_DECL): New macro.
1932 * cfgexpand.c (init_vars_expansion): Adjust for new type of
1933 cfun->local_decls.
1934 (estimated_stack_frame_size): Likewise.
1935 (expand_used_vars): Likewise.
1936 * cgraphbuild.c (build_cgraph_edges): Likewise.
1937 * function.c (instantiate_decls_1): Likewise.
1938 * ipa-struct-reorg.c (build_data_structure): Likewise.
1939 * ipa-type-escape.c (analyze_function): Likewise.
1940 * lto-streamer-in.c (input_function): Likewise.
1941 * lto-streamer-out.c (output_function): Likewise.
1942 * tree-ssa-live.c (remove_unused_locals): Likewise.
1943 * tree.c (free_lang_data_in_decl): Likewise.
1944 (find_decls_types_in_node): Likewise.
1945 * omp-low.c (remove_exit_barrier): Likewise.
1946 (expand_omp_taskreg): Likewise.
1947 (list2chain): Rename to...
1948 (vec2chain): ...this. Adjust.
1949 * cgraphunit.c (assemble_thunk): Call add_local_decl.
1950 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
1951 * gimple-low.c (record_vars_into): Likewise.
1952 * tree-inline.c (remap_decls): Likewise.
1953 (declare_return_variable): Likewise.
1954 (declare_inline_vars): Likewise.
1955 (copy_forbidden): Adjust for new type of cfun->local_decls.
1956 (add_local_variables): New function.
1957 (expand_call_inline): Call it.
1958 (tree_function_versioning): Likewise.
1959
1960 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
1961
1962 AVX Programming Reference (June, 2010)
1963 * config/i386/cpuid.h (bit_F16C): New.
1964 (bit_RDRND): Likewise.
1965 (bit_FSGSBASE): Likewise.
1966
1967 * config/i386/i386-builtin-types.def: Add
1968 "DEF_FUNCTION_TYPE (UINT16)", function types for
1969 float16 <-> float conversions and
1970 "DEF_FUNCTION_TYPE (VOID, UINT64)".
1971
1972 * config/i386/i386-c.c (ix86_target_macros_internal): Support
1973 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
1974 OPTION_MASK_ISA_F16C.
1975
1976 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
1977 (OPTION_MASK_ISA_RDRND_SET): Likewise.
1978 (OPTION_MASK_ISA_F16C_SET): Likewise.
1979 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
1980 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
1981 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
1982 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
1983 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
1984 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
1985 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
1986 (override_options): Handle them.
1987 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
1988 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
1989 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
1990 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
1991 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
1992 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
1993 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
1994 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
1995 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
1996 (bdesc_args): Likewise.
1997 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
1998 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
1999 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
2000 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
2001 Handle non-memory store.
2002
2003 * config/i386/i386.h (TARGET_FSGSBASE): New.
2004 (TARGET_RDRND): Likewise.
2005 (TARGET_F12C): Likewise.
2006
2007 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
2008 (UNSPEC_VCVTPS2PH): Likewise.
2009 (UNSPECV_RDFSBASE): Likewise.
2010 (UNSPECV_RDGSBASE): Likewise.
2011 (UNSPECV_WRFSBASE): Likewise.
2012 (UNSPECV_WRGSBASE): Likewise.
2013 (UNSPECV_RDRAND): Likewise.
2014 (rdfsbase<mode>): Likewise.
2015 (rdgsbase<mode>): Likewise.
2016 (wrfsbase<mode>): Likewise.
2017 (wrgsbase<mode>): Likewise.
2018 (rdrand<mode>): Likewise.
2019
2020 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
2021
2022 * config/i386/immintrin.h (_rdrand_u16): New.
2023 (_rdrand_u32): Likewise.
2024 (_readfsbase_u32): Likewise.
2025 (_readfsbase_u64): Likewise.
2026 (_readgsbase_u32): Likewise.
2027 (_readgsbase_u64): Likewise.
2028 (_writefsbase_u32): Likewise.
2029 (_writefsbase_u64): Likewise.
2030 (_writegsbase_u32): Likewise.
2031 (_writegsbase_u64): Likewise.
2032 (_rdrand_u64): Likewise.
2033 (_cvtsh_ss): Likewise.
2034 (_mm_cvtph_ps): Likewise.
2035 (_mm256_cvtph_ps): Likewise.
2036 (_cvtss_sh): Likewise.
2037 (_mm_cvtps_ph): Likewise.
2038 (_mm256_cvtps_ph): Likewise.
2039
2040 * config/i386/sse.md (vcvtph2ps): New.
2041 (*vcvtph2ps_load): Likewise.
2042 (vcvtph2ps256): Likewise.
2043 (vcvtps2ph): Likewise.
2044 (*vcvtps2ph): Likewise.
2045 (*vcvtps2ph_store): Likewise.
2046 (vcvtps2ph256): Likewise.
2047
2048 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
2049
2050 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
2051
2052 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
2053
2054 PR bootstrap/44512
2055 * genenums.c (main): Output include of insn-constants.h
2056 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
2057
2058 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
2059
2060 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
2061 (override_options): Initialize it.
2062 (ix86_expand_prologue): Use it.
2063
2064 2010-07-05 Jakub Jelinek <jakub@redhat.com>
2065
2066 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
2067
2068 2010-07-05 Anatoly Sokolov <aesok@post.ru>
2069
2070 * double-int.h (fit_double_type): Remove declaration.
2071 * double-int.c (fit_double_type): Remove function.
2072 * tree.h (int_fits_type_p): Adjust prototype.
2073 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
2074 instead of fit_double_type.
2075 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
2076 instead of fit_double_type and build_int_cst_wide.
2077 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
2078 instead of fit_double_type and build_int_cst_wide.
2079 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
2080 of fit_double_type.
2081
2082 2010-07-05 Jan Hubicka <jh@suse.cz>
2083
2084 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
2085 in_other_partition.
2086 * lto-cgraph.c (referenced_from_other_partition_p,
2087 reachable_from_other_partition_p): Use in_other_partition flags.
2088 (output_node, output_varpool_node): COMDAT nodes always have private
2089 copies and thus are never used from other partition.
2090
2091 2010-07-05 Anatoly Sokolov <aesok@post.ru>
2092
2093 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
2094 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
2095 * config/ia64/ia64.c Include reload.h.
2096 (ia64_memory_move_cost): New function.
2097 (TARGET_MEMORY_MOVE_COST): Define.
2098 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
2099 memory_move_cost.
2100
2101 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
2102
2103 PR middle-end/42505
2104 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
2105 comments about cost model.
2106 (try_add_cand_for): Add second strategy for choosing initial set
2107 based on original IVs, controlled by ORIGINALP argument.
2108 (get_initial_solution): Add ORIGINALP argument.
2109 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
2110 (find_optimal_iv_set): Try two different strategies for choosing
2111 the IV set, and return the one with lower cost.
2112
2113 2010-07-05 Richard Guenther <rguenther@suse.de>
2114
2115 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
2116
2117 2010-07-05 Richard Guenther <rguenther@suse.de>
2118
2119 * tree.c (reference_alias_ptr_type): New function.
2120 * tree.h (reference_alias_ptr_type): Declare.
2121 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
2122 allow non-TARGET_MEM_REF new refs.
2123 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
2124 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
2125 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
2126 (create_mem_ref): Get alias pointer type. Adjust calls to
2127 create_mem_ref_raw.
2128 (maybe_fold_tmr): Likewise.
2129 * tree-flow.h (create_mem_ref): Adjust prototype.
2130
2131 2010-07-05 Jakub Jelinek <jakub@redhat.com>
2132
2133 PR c++/44808
2134 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
2135 *from_p is VAR_DECL.
2136
2137 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
2138
2139 * tree.h (build_call_list): Remove.
2140 * tree.c (build_call_list): Remove.
2141
2142 2010-07-05 Richard Guenther <rguenther@suse.de>
2143
2144 * double-int.h (double_int_sub): Declare.
2145 * double-int.c (double_int_sub): New function.
2146 * dwarf2out.c (field_byte_offset): Use it.
2147 * fixed-value.c (do_fixed_add): Likewise.
2148 (do_fixed_multiply): Likewise.
2149 (do_fixed_divide): Likewise.
2150 * tree-predcom.c (add_ref_to_chain): Likewise.
2151 (determine_roots_comp): Likewise.
2152 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
2153
2154 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
2155
2156 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
2157 implementations.
2158
2159 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
2160
2161 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
2162 * arm-modes.def (CC_NOTB): Don't define.
2163 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
2164 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
2165 (LTUGEU): New code_iterator.
2166 (cnb, optab): New corresponding code_attrs.
2167 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
2168 to canonical form. Operands 1 and 2 are commutative. Parametrize
2169 using LTUGEU.
2170 (addsi3_carryin_shift_<optab>): Likewise.
2171 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
2172 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
2173 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
2174 (subsi3_compare): Renamed from subsi3_compare0_c.
2175 Change CC_NOTB to CC.
2176 (arm_subsi3_insn): Allow constants for operand 0.
2177 (compare_scc peephole for eq case): New.
2178 (compare_scc splitters): Change CC_NOTB to CC.
2179
2180 2010-07-05 Richard Guenther <rguenther@suse.de>
2181
2182 * tree-ssa-loop-im.c (for_each_index): Do not handle
2183 ALIGN_INDIRECT_REF.
2184 (gen_lsm_tmp_name): Likewise.
2185 * tree-dump.c (dequeue_and_dump): Likewise.
2186 * tree-pretty-print.c (dump_generic_node): Likewise.
2187 (op_code_prio): Likewise.
2188 (op_symbol_code): Likewise.
2189 * tree.c (staticp): Likewise.
2190 (build1_stat): Likewise.
2191 * tree.h (INDIRECT_REF_P): Likewise.
2192 * fold-const.c (maybe_lvalue_p): Likewise.
2193 (operand_equal_p): Likewise.
2194 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2195 (ao_ref_init_from_vn_reference): Likewise.
2196 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
2197 (find_interesting_uses_address): Likewise.
2198 * dwarf2out.c (loc_list_from_tree): Likewise.
2199 * gimplify.c (gimplify_expr): Likewise.
2200 * tree-eh.c (tree_could_trap_p): Likewise.
2201 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
2202 * cfgexpand.c (expand_debug_expr): Likewise.
2203 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2204 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
2205 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
2206 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
2207 * tree-ssa-operands.c (get_expr_operands): Likewise.
2208 * expr.c (safe_from_p): Likewise.
2209 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
2210 * tree-vect-data-refs.c (vect_setup_realignment): Build
2211 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
2212 * tree-vect-stmts.c (vectorizable_load): Likewise.
2213 * tree.def (ALIGN_INDIRECT_REF): Remove.
2214
2215 2010-07-05 Richard Guenther <rguenther@suse.de>
2216
2217 PR tree-optimization/44784
2218 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
2219 for inserted stmts.
2220 (find_or_generate_expression): Fix SCCVN insertion check.
2221
2222 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
2223
2224 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
2225 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
2226 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
2227 directives.
2228
2229 2010-07-05 Ira Rosen <irar@il.ibm.com>
2230
2231 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
2232 statements that are not vectorized.
2233 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
2234 in INSIDE_COST.
2235
2236 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
2237
2238 PR bootstrap/44820
2239 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
2240
2241 2010-07-05 Richard Guenther <rguenther@suse.de>
2242
2243 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
2244 RESULT_DECLs properly.
2245
2246 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
2247
2248 PR rtl-optimization/44695
2249 * config/i386/i386.md (extract_code): Removed.
2250 (<u>divmodqi4): Likewise.
2251 (divmodqi4): New.
2252 (udivmodqi4): Likewise.
2253 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
2254 (udivmodhiqi3): Likewise.
2255
2256 2010-07-04 Jan Hubicka <jh@suse.cz>
2257
2258 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
2259
2260 2010-07-04 Jan Hubicka <jh@suse.cz>
2261
2262 * cgraphunit.c (init_cgraph): Only initialize dump file if it
2263 is not already initialized.
2264
2265 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
2266
2267 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
2268 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
2269 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
2270 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
2271 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
2272 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
2273 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
2274 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
2275 (sync_new_nand_optab): Redefine as macros.
2276 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
2277 Delete.
2278 (direct_optab_index): New enum.
2279 (direct_optab_d): New structure.
2280 (direct_optab): New typedef.
2281 (direct_optab_table): Declare.
2282 (direct_optab_handler, set_direct_optab_handler): New functions.
2283 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
2284 (sync_lock_release_optab): New macros.
2285 * optabs.c (direct_optab_table): New variable.
2286 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
2287 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
2288 cmpstr_optab and cmpstrn_optab.
2289 (emit_conditional_move): Likewise for movcc_optab.
2290 (can_conditionally_move_p): Likewise for movcc_gen_code.
2291 (init_insn_codes): Clear direct_optab_table.
2292 (init_optabs): Don't initialize the new "direct optabs" here.
2293 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
2294 vcond_gen_code.
2295 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
2296 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
2297 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
2298 (expand_sync_operation): Likewise other sync_*_optabs.
2299 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
2300 to sync_compare_and_swap_optab.
2301 (expand_sync_lock_test_and_set): Use direct_optab_handler for
2302 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
2303 to the names of both.
2304 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
2305 cmpstr_optab and cmpstrn_optab.
2306 (expand_builtin_lock_release): Likewise sync_lock_release.
2307 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
2308 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
2309 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
2310 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
2311 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
2312 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
2313 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
2314 (sync_lock_test_and_set, sync_lock_release): Delete.
2315 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
2316 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
2317 * genopinit.c (optabs): Use set_direct_optab_handler for the new
2318 macro optabs.
2319 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
2320 the "optab" local variable. Use direct_optab_handler for optab and
2321 sync_compare_and_swap_optab.
2322 * reload1.c (reload_in_optab, reload_out_optab): Delete.
2323 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
2324 reload_in_optab and reload_out_optab.
2325 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
2326 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
2327 * config/pa/pa.c (pa_secondary_reload): Likewise.
2328 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
2329 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
2330 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
2331 (VMSupportsCS8_builtin): Likewise.
2332
2333 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
2334
2335 * optabs.h (optab_handlers): Change type of insn_code to int.
2336 (optab_handler, set_optab_handler, convert_optab_handler)
2337 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
2338 CODE_FOR_nothing".
2339 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
2340 (init_insn_codes): Zero both the above arrays.
2341 (init_optabs): Never call init_insn_codes first time around.
2342
2343 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
2344
2345 * optabs.h (optab_handler, convert_optab_handler): Turn into
2346 inline functions that return an insn code.
2347 (set_optab_handler, set_convert_optab_handler): New functions.
2348 * builtins.c: Replace optab_handler(X)->insn_code with
2349 optab_handler or set_optab_handler thoughout. Likewise
2350 convert_optab_handler(X)->insn_code with convert_optab_handler
2351 and set_convert_optab_handler.
2352 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
2353 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
2354 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
2355 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
2356 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
2357 config/spu/spu.c: Likewise.
2358
2359 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
2360
2361 PR target/44531
2362 * config.gcc (sh*-*-*): Use regular expressions instead of
2363 the 'i' modifier for sed substitutions.
2364
2365 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
2366
2367 * gimple.c (gimple_body): Comments added.
2368
2369 2010-07-04 Richard Guenther <rguenther@suse.de>
2370
2371 PR middle-end/44809
2372 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
2373 of an INDIRECT_REF.
2374
2375 2010-07-04 Richard Guenther <rguenther@suse.de>
2376
2377 PR tree-optimization/44479
2378 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
2379 extra SSA name copy statements which preserves points-to
2380 information.
2381 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2382 Copy points-to information for all pointers. Properly handle
2383 MEM_REFs.
2384 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
2385 copy statements.
2386 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
2387 dependency.
2388
2389 2010-07-04 Richard Guenther <rguenther@suse.de>
2390
2391 PR middle-end/44785
2392 * tree-inline.c (initialize_inlined_parameters): Do not
2393 re-use pointer-map slot over remap_type call.
2394
2395 2010-07-04 Richard Guenther <rguenther@suse.de>
2396
2397 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
2398
2399 2010-07-04 Richard Guenther <rguenther@suse.de>
2400
2401 PR tree-optimization/44656
2402 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
2403 again after value-replacing in the defintions lhs.
2404
2405 2010-07-04 Ira Rosen <irar@il.ibm.com>
2406 Revital Eres <eres@il.ibm.com>
2407
2408 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
2409 Document new arguments.
2410 * doc/tm.texi: Regenerate.
2411 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
2412 Handle unaligned store.
2413 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
2414 * target.def (builtin_vectorization_cost): Add new arguments.
2415 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
2416 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
2417 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
2418 (vect_vfa_segment_size): Fix indentation.
2419 * tree-vectorizer.h (struct _vect_peel_info): New.
2420 (struct _vect_peel_extended_info): New.
2421 (struct _loop_vec_info): Add new field for peeling hash table and a
2422 macro for its access.
2423 (VECT_MAX_COST): Define.
2424 (vect_get_load_cost): Declare.
2425 (vect_get_store_cost, vect_get_known_peeling_cost,
2426 vect_get_single_scalar_iteraion_cost): Likewise.
2427 (vect_supportable_dr_alignment): Add new argument.
2428 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
2429 field.
2430 (destroy_loop_vec_info): Free peeling hash table.
2431 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
2432 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
2433 vect_analyze_slp. Fix indentation.
2434 (vect_get_single_scalar_iteraion_cost): New function.
2435 (vect_get_known_peeling_cost): Likewise.
2436 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
2437 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
2438 statement. Move outside cost calculation inside unknown peeling case.
2439 Call vect_get_known_peeling_cost for known amount of peeling.
2440 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
2441 reference to the print message of forced alignment.
2442 (vect_verify_datarefs_alignment): Update call to
2443 vect_supportable_dr_alignment.
2444 (vect_get_data_access_cost): New function.
2445 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
2446 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
2447 vect_peeling_hash_choose_best_peeling): Likewise.
2448 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
2449 to store all the accesses in the loop and find best possible access to
2450 align using peeling for known alignment case. For unknown alignment
2451 check if stores are preferred or if peeling is worthy.
2452 (vect_find_same_alignment_drs): Analyze pairs of loads too.
2453 (vect_supportable_dr_alignment): Add new argument and check aligned
2454 accesses according to it.
2455 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
2456 (cost_for_stmt): Call vect_get_stmt_cost.
2457 (vect_model_simple_cost): Likewise.
2458 (vect_model_store_cost): Call vect_get_stmt_cost. Call
2459 vect_get_store_cost to calculate the cost of the statement.
2460 (vect_get_store_cost): New function.
2461 (vect_model_load_cost): Call vect_get_stmt_cost. Call
2462 vect_get_load_cost to calculate the cost of the statement.
2463 (vect_get_load_cost): New function.
2464 (vectorizable_store): Update call to vect_supportable_dr_alignment.
2465 (vectorizable_load): Likewise.
2466 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
2467 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
2468 arguments. Handle unaligned store.
2469 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
2470 (rs6000_builtin_support_vector_misalignment): Return true for word and
2471 double word alignments for VSX.
2472 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
2473 vect_supportable_dr_alignment and builtin_vectorization_cost.
2474
2475 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2476
2477 PR target/44597
2478 * config/pa/predicates.md (prefetch_cc_operand): Remove.
2479 (prefetch_nocc_operand): Likewise.
2480 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
2481 (prefetch_20): New insn.
2482 (prefetch_cc): Remove.
2483 (prefetch_nocc): Likewise.
2484
2485 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2486
2487 * expr.c (vector_mode_valid_p): Move to c-common.c.
2488 * expr.h (vector_mode_valid_p): Do not declare here.
2489 * system.h: Poison GCC_EXPR_H in front-ends.
2490 * Makefile.in: Update dependencies.
2491
2492 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2493
2494 PR target/44705
2495 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
2496
2497 2010-07-03 Jan Hubicka <jh@suse.cz>
2498
2499 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
2500 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
2501 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
2502 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
2503 Likewise.
2504
2505 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
2506 Update timevars.V
2507 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
2508 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
2509 TV_IPA_LTO_DECL_OUT): New.
2510 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
2511
2512 2010-07-03 Jan Hubicka <jh@suse.cz>
2513
2514 * ipa-inline.c (update_edge_key): Break out from ...
2515 update_callers_keys): ... here;
2516 (update_callee_keys): Update only the edges from caller to callee.
2517 (update_all_calle_keys): Do what update_calle_keys did.
2518 (decide_inlining_of_small_functions): Avoid recomputing of all
2519 callees when badness increase.
2520
2521 2010-07-03 Jie Zhang <jie@codesourcery.com>
2522
2523 * config/arm/arm.c (arm_attr_length_move_neon): New.
2524 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
2525 * config/arm/neon.md (define_mode_attr V_slen): Remove.
2526 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
2527 to compute length attribute.
2528
2529 2010-07-03 Jie Zhang <jie@codesourcery.com>
2530
2531 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
2532 as predicate for operand 1 and remove its constraint.
2533 * config/arm/predicates.md (vfp_register_operand): New.
2534 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
2535 (*push_fp_multi): Likewise.
2536
2537 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
2538
2539 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
2540
2541 2010-07-03 Jan Hubicka <jh@suse.cz>
2542
2543 * config/i386/i386.c (override_options): Revert accidental commit.
2544
2545 2010-07-02 Le-Chun Wu <lcwu@google.com>
2546
2547 PR c++/44128
2548 * doc/invoke.texi: Update documentation of -Wshadow.
2549
2550 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2551 Julian Brown <julian@codesourcery.com>
2552 Sandra Loosemore <sandra@codesourcery.com>
2553
2554 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
2555 comparisons. Adjust to take both operands.
2556 (arm_select_cc_mode): Handle DImode comparisons.
2557 (arm_gen_compare_reg): Generate a scratch register for DImode
2558 comparisons which require one. Use xor for Thumb equality checks.
2559 (arm_const_double_by_immediates): New.
2560 (arm_print_operand): Allow 'Q' and 'R' for constants.
2561 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
2562 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
2563 arm_canonicalize_comparison.
2564 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
2565 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
2566 prototype.
2567 (arm_const_double_by_immediates): Declare.
2568 * config/arm/constraints.md (Di): New constraint.
2569 * config/arm/predicates.md (arm_immediate_di_operand)
2570 (arm_di_operand, cmpdi_operand): New.
2571 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
2572 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
2573 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
2574 (cstoredi4): Handle non-Cirrus also.
2575
2576 2010-07-02 Julian Brown <julian@codesourcery.com>
2577 Sandra Loosemore <sandra@codesourcery.com>
2578
2579 PR target/43703
2580 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
2581 (smax<mode>3): Disable for NEON float modes when
2582 flag_unsafe_math_optimizations is false.
2583 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
2584 (*mul<mode>3_neon)
2585 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
2586 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
2587 for NEON float modes when flag_unsafe_math_optimizations is false.
2588 (quad_halves_<code>v4sf): Only enable if
2589 flag_unsafe_math_optimizations is true.
2590 * doc/invoke.texi (ARM Options): Add note about floating point
2591 vectorization requiring -funsafe-math-optimizations.
2592
2593 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2594 Julian Brown <julian@codesourcery.com>
2595
2596 * config/arm/neon.md (UNSPEC_VABA): Delete.
2597 (UNSPEC_VABAL): Delete.
2598 (UNSPEC_VABS): Delete.
2599 (UNSPEC_VMUL_N): Delete.
2600 (adddi3_neon): New.
2601 (subdi3_neon): New.
2602 (mul<mode>3add<mode>_neon): Make the pattern named.
2603 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
2604 (neon_vadd<mode>): Replace with define_expand, and move the remaining
2605 unspec parts...
2606 (neon_vadd<mode>_unspec): ...to this.
2607 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
2608 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
2609 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
2610 (neon_vaba<mode>): Rewrite in terms of vabd.
2611 (neon_vabal<mode>): Rewrite in terms of vabdl.
2612 (neon_vabs<mode>): Rewrite without unspec.
2613 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
2614 (*arm_subdi3): Likewise.
2615 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
2616 No_op attribute to disable assembly output checks.
2617 * config/arm/arm_neon.h: Regenerated.
2618 * doc/arm-neon-intrinsics.texi: Regenerated.
2619
2620 2010-07-02 Jan Hubicka <jh@suse.cz>
2621
2622 * ipa-split.c (split_function): For aggregate values, set the return
2623 slot optimization bit. When passing DECL_BY_REFERENCE, produce
2624 *<retval> = fncall.part ().
2625 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
2626
2627 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2628
2629 * config/arm/neon.md (UNSPEC_VAND): Delete.
2630 (UNSPEC_VBIC): Delete.
2631 (UNSPEC_VCLZ): Delete.
2632 (UNSPEC_VCNT): Delete.
2633 (UNSPEC_VEOR): Delete.
2634 (UNSPEC_VORN): Delete.
2635 (UNSPEC_VORR): Delete.
2636 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
2637 core registers too.
2638 (anddi3_neon): Likewise.
2639 (orndi3_neon): Likewise.
2640 (bicdi3_neon): Likewise.
2641 (xordi3_neon): Likewise.
2642 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
2643 rid of unspec and handle unused operand.
2644 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
2645 * config/arm/predicates.md (imm_for_neon_logic_operand):
2646 Require TARGET_NEON.
2647 (imm_for_neon_inv_logic_operand): Likewise.
2648 * config/arm/arm.md (define_split for logical_binary_operator):
2649 Disable for NEON registers.
2650 (anddi3): Add new define_expand, and rename the insn. Disable
2651 this insn for NEON, where anddi3_neon now applies.
2652 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
2653 (iordi3): As for anddi3.
2654 (xordi3): Likewise.
2655 * config/arm/neon.ml (Vand): Split DImode variants and mark them
2656 as No_op to disable testing for exact instruction match.
2657 (Vorr): Likewise.
2658 (Veor): Likewise.
2659 (Vbic): Likewise.
2660 (Vorn): Likewise.
2661 * config/arm/arm_neon.h: Regenerated.
2662 * doc/arm-neon-intrinsics.texi: Regenerated.
2663
2664 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
2665
2666 * expr.h (emit_stack_probe): Declare.
2667 * explow.c (emit_stack_probe): Make global.
2668 (anti_adjust_stack_and_probe): Fix comments.
2669 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
2670 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2671 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2672 * config/sparc/sparc.c: Include except.h.
2673 (sparc_emit_probe_stack_range): New function.
2674 (output_probe_stack_range): Likewise.
2675 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
2676 built-in stack checking is enabled.
2677 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
2678 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
2679 (probe_stack_range): New insn.
2680
2681 2010-07-02 Richard Guenther <rguenther@suse.de>
2682
2683 PR target/43958
2684 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
2685 for argument alignment.
2686
2687 2010-07-02 Jan Hubicka <jh@suse.cz>
2688
2689 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
2690 walk backwards from entry_bb to check only those basic block of header
2691 that might lead to execution of split part.
2692 (consider_split) ... here.
2693 (find_return_bb): Allow assignment in return BB.
2694 (find_retval): New.
2695 (split_function): Fix name of cloned function; take care of updating
2696 return value in return_bb containing move.
2697
2698 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
2699
2700 PR target/44771
2701 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
2702 used variable insn.
2703
2704 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
2705
2706 * implicit-zee.c (combine_reaching_defs): Fix long lines.
2707 (is_set_with_extension_DI): Delete.
2708 (struct zero_extend_info): New structure.
2709 (add_removable_zero_extend): New function.
2710 (find_removable_zero_extends): Use note_stores to find SETs.
2711 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
2712
2713 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
2714
2715 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
2716 is_miss_rate_acceptable. Pull total_positions computation
2717 out of the loops. Early return if miss_positions exceeds
2718 the acceptable threshold.
2719 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
2720 is_miss_rate_acceptable after renaming of compute_miss_rate.
2721
2722 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
2723
2724 PR middle-end/44576
2725 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
2726 of 1000) for miss rate if the address diference is greater than or
2727 equal to the cache line size (the two reference will never hit the
2728 same cache line).
2729
2730 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
2731
2732 PR target/42835
2733 * config/arm/arm-modes.def (CC_NOTB): New mode.
2734 * config/arm/arm.c (get_arm_condition_code): Handle it.
2735 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
2736 * config/arm/arm.md (subsi3_compare0_c): New pattern.
2737 (compare_scc): Now a define_and_split. Add a number of extra
2738 splitters before it.
2739
2740 PR target/42172
2741 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
2742 and ZERO_EXTEND.
2743 (arm_rtx_costs_1): Likewise.
2744 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
2745 * config/arm/arm.md (is_arch6): New attribute.
2746 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
2747 extendqisi2): Tighten the code somewhat, avoiding invalid
2748 RTL to occur in the expander patterns.
2749 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
2750 (thumb1_zero_extendhisi2_v6): Delete.
2751 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
2752 (thumb1_extendhisi2_v6): Delete.
2753 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
2754 (thumb1_extendqisi2_v6): Delete.
2755 (zero_extendhisi2 for register input splitter): New.
2756 (zero_extendqisi2 for register input splitter): New.
2757 (thumb1_extendhisi2 for register input splitter): New.
2758 (extendhisi2 for register input splitter): New.
2759 (extendqisi2 for register input splitter): New.
2760 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
2761 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
2762 and add support for a register alternative requiring a split.
2763 (thumb1_zero_extendqisi2): Likewise.
2764 (arm_zero_extendqisi2): Likewise.
2765 (arm_extendhisi2): Likewise.
2766 (arm_extendqisi2): Likewise.
2767
2768 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2769
2770 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
2771 instead of an unspec.
2772 (neon_expand_vector_init): Likewise.
2773 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
2774 (UNSPEC_VDUP_LANE): Delete.
2775 (UNSPEC VDUP_N): Delete.
2776 (UNSPEC_VGET_HIGH): Delete.
2777 (UNSPEC_VGET_LANE): Delete.
2778 (UNSPEC_VGET_LOW): Delete.
2779 (UNSPEC_VMVN): Delete.
2780 (UNSPEC_VSET_LANE): Delete.
2781 (V_double_vector_mode): New.
2782 (vec_set<mode>_internal): Make code emitted match that for the
2783 corresponding intrinsics.
2784 (vec_setv2di_internal): Likewise.
2785 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
2786 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
2787 (neon_vset_lane<mode>): Combine double and quad patterns and
2788 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
2789 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
2790 (neon_vdup_n<mode>): Rewrite RTL without unspec.
2791 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
2792 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
2793 with neon_vdup_lanev2di, adjusting the pattern from the latter
2794 to be predicable for consistency.
2795 (neon_vdup_lane<mode>_internal): New.
2796 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
2797 to avoid using an unspec.
2798 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
2799 (neon_vdup_lanev2di): Turn into a define_expand.
2800 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
2801 (neon_vget_high<mode>): Replace with....
2802 (neon_vget_highv16qi): New pattern using canonical RTL.
2803 (neon_vget_highv8hi): Likewise.
2804 (neon_vget_highv4si): Likewise.
2805 (neon_vget_highv4sf): Likewise.
2806 (neon_vget_highv2di): Likewise.
2807 (neon_vget_low<mode>): Replace with....
2808 (neon_vget_lowv16qi): New pattern using canonical RTL.
2809 (neon_vget_lowv8hi): Likewise.
2810 (neon_vget_lowv4si): Likewise.
2811 (neon_vget_lowv4sf): Likewise.
2812 (neon_vget_lowv2di): Likewise.
2813
2814 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
2815 test for this emitting vmov.
2816 (Vset_lane): Likewise.
2817 (Vdup_n): Likewise.
2818 (Vmov_n): Likewise.
2819
2820 * doc/arm-neon-intrinsics.texi: Regenerated.
2821
2822 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2823
2824 * config/arm/neon.md (vec_extractv2di): Correct error in register
2825 numbering to reconcile with neon_vget_lanev2di.
2826
2827 2010-07-02 Richard Guenther <rguenther@suse.de>
2828
2829 * tree-ssa-structalias.c (pt_solution_set_var): New function.
2830 * tree-ssa-alias.h (pt_solution_set_var): Declare.
2831 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
2832 points-to information.
2833
2834 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
2835
2836 * config/s390/s390.c (override_options): Adopt prefetching
2837 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
2838
2839 2010-07-02 Jan Hubicka <jh@suse.cz>
2840
2841 * df-problems.c (df_kill_notes): Do not collect dead notes.
2842 (df_set_note): Just call add_reg_note.
2843 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
2844 df_create_unused_note): Do not deal with lists of old notes.
2845 (df_note_bb_compute): Likewise.
2846
2847 2010-07-02 Richard Guenther <rguenther@suse.de>
2848
2849 * tree-ssa-structalias.c (find_func_aliases): Handle
2850 pointer alignment via BIT_AND_EXPR.
2851 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
2852
2853 2010-07-02 Richard Guenther <rguenther@suse.de>
2854
2855 * tree-data-ref.c (initialize_data_dependence_relation): Handle
2856 mismatching number of dimensions properly.
2857
2858 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2859
2860 PR target/44707
2861 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
2862 (lo_sum (high ...) ...) patterns generated by earlier passes.
2863
2864 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2865
2866 * doc/install.texi (Prerequisites): Document Perl requirement on
2867 Solaris 2.
2868 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
2869
2870 2010-07-02 Richard Guenther <rguenther@suse.de>
2871
2872 PR middle-end/44777
2873 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
2874
2875 2010-07-02 Jan Hubicka <jh@suse.cz>
2876
2877 PR middle-end/44706
2878 * predict.c (predict_paths_for_bb): Handle case when control dependence
2879 BB has only abnormal edges.
2880
2881 2010-07-02 Richard Guenther <rguenther@suse.de>
2882
2883 PR tree-optimization/44748
2884 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
2885 the embedded conversion in MEM_REFs.
2886
2887 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
2888
2889 * reload.c: Include toplev.h.
2890 * recog.c: Likewise.
2891 * Makefile.in: Adjust dependencies.
2892
2893 2010-07-01 Jakub Jelinek <jakub@redhat.com>
2894
2895 PR debug/44694
2896 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
2897 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
2898
2899 2010-07-01 Richard Guenther <rguenther@suse.de>
2900
2901 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
2902 types for offsets.
2903
2904 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
2905
2906 PR target/44732
2907 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
2908 Fix argument types.
2909
2910 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
2911
2912 PR target/44727
2913 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2914 Make sure operand 0 dies.
2915
2916 2010-07-01 Richard Guenther <rguenther@suse.de>
2917
2918 PR middle-end/42834
2919 PR middle-end/44468
2920 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
2921 * doc/generic.texi (References to storage): Document MEM_REF.
2922 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
2923 (print_call_name): Likewise.
2924 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
2925 (build_simple_mem_ref_loc): New function.
2926 (mem_ref_offset): Likewise.
2927 * tree.h (build_simple_mem_ref_loc): Declare.
2928 (build_simple_mem_ref): Define.
2929 (mem_ref_offset): Declare.
2930 * fold-const.c: Include tree-flow.h.
2931 (operand_equal_p): Handle MEM_REF.
2932 (build_fold_addr_expr_with_type_loc): Likewise.
2933 (fold_comparison): Likewise.
2934 (fold_unary_loc): Fold
2935 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
2936 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
2937 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
2938 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
2939 (ptr_deref_may_alias_ref_p_1): Likewise.
2940 (ao_ref_base_alias_set): Properly differentiate base object for
2941 offset and TBAA.
2942 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
2943 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
2944 (indirect_refs_may_alias_p): Likewise.
2945 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
2946 chasing code.
2947 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
2948 (call_may_clobber_ref_p_1): Likewise.
2949 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
2950 * expr.c (expand_assignment): Handle MEM_REF.
2951 (store_expr): Handle MEM_REFs from STRING_CSTs.
2952 (store_field): If expanding a MEM_REF of a non-addressable
2953 decl use bitfield operations.
2954 (get_inner_reference): Handle MEM_REF.
2955 (expand_expr_addr_expr_1): Likewise.
2956 (expand_expr_real_1): Likewise.
2957 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
2958 * alias.c (ao_ref_from_mem): Handle MEM_REF.
2959 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
2960 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
2961 (dr_analyze_indices): Likewise.
2962 (dr_analyze_alias): Likewise.
2963 (object_address_invariant_in_loop_p): Likewise.
2964 * gimplify.c (mark_addressable): Handle MEM_REF.
2965 (gimplify_cond_expr): Build MEM_REFs.
2966 (gimplify_modify_expr_to_memcpy): Likewise.
2967 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
2968 (gimple_fold_indirect_ref): Adjust.
2969 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
2970 * tree.def (MEM_REF): New tree code.
2971 * tree-dfa.c: Include toplev.h.
2972 (get_ref_base_and_extent): Handle MEM_REF.
2973 (get_addr_base_and_unit_offset): New function.
2974 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
2975 * gimple-fold.c (may_propagate_address_into_dereference): Handle
2976 MEM_REF.
2977 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
2978 accesses if the array has just one dimension. Remove always true
2979 parameter. Do not require type compatibility here.
2980 (maybe_fold_offset_to_component_ref): Remove.
2981 (maybe_fold_stmt_indirect): Remove.
2982 (maybe_fold_reference): Remove INDIRECT_REF handling.
2983 Fold back to non-MEM_REF.
2984 (maybe_fold_offset_to_address): Simplify. Deal with type
2985 mismatches here.
2986 (maybe_fold_reference): Likewise.
2987 (maybe_fold_stmt_addition): Likewise. Also handle
2988 &ARRAY + I in addition to &ARRAY[0] + I.
2989 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
2990 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
2991 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
2992 * tree-ssa.c (useless_type_conversion_p): Make most pointer
2993 conversions useless.
2994 (warn_uninitialized_var): Handle MEM_REF.
2995 (maybe_rewrite_mem_ref_base): New function.
2996 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
2997 to SSA form.
2998 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
2999 INDIRECT_REF handling.
3000 (copy_tree_body_r): Handle MEM_REF.
3001 * gimple.c (is_gimple_addressable): Adjust.
3002 (is_gimple_address): Likewise.
3003 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
3004 invariant base are invariant.
3005 (is_gimple_min_lval): Adjust.
3006 (is_gimple_mem_ref_addr): New function.
3007 (get_base_address): Handle MEM_REF.
3008 (count_ptr_derefs): Likewise.
3009 (get_base_loadstore): Likewise.
3010 * gimple.h (is_gimple_mem_ref_addr): Declare.
3011 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
3012 * tree-cfg.c (verify_address): New function, split out from ...
3013 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
3014 the address operand of MEM_REFs. Verify MEM_REFs. Reject
3015 INDIRECT_REFs.
3016 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
3017 INDIRECT_REF. Allow conversions.
3018 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
3019 a register does not change its size.
3020 (verify_types_in_gimple_reference): Verify MEM_REF.
3021 (verify_gimple_assign_single): Disallow INDIRECT_REF.
3022 Handle MEM_REF.
3023 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
3024 New.
3025 (mark_address_taken): Handle MEM_REF.
3026 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
3027 (get_asm_expr_operands): Pass opf_not_non_addressable.
3028 (get_expr_operands): Handle opf_[not_]non_addressable.
3029 Handle MEM_REF. Remove INDIRECT_REF handling.
3030 * tree-vrp.c: (check_array_ref): Handle MEM_REF.
3031 (search_for_addr_array): Likewise.
3032 (check_array_bounds): Likewise.
3033 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
3034 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
3035 (ref_always_accessed_p): Likewise.
3036 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
3037 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
3038 Handle MEM_REF.
3039 * cgraphbuild.c (mark_load): Properly check for NULL result
3040 from get_base_address.
3041 (mark_store): Likewise.
3042 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
3043 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
3044 handling for MEM_REF.
3045 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
3046 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
3047 * builtins.c (stabilize_va_list_loc): Use the function ABI
3048 valist type if we couldn't canonicalize the argument type.
3049 Always dereference with the canonical va-list type.
3050 (maybe_emit_free_warning): Handle MEM_REF.
3051 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
3052 memmove to memcpy.
3053 * builtins.c (fold_builtin_memory_op): Use ref-all types
3054 for all memcpy foldings.
3055 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
3056 (build_outer_var_ref): Likewise.
3057 (scan_omp_1_op): Likewise.
3058 (lower_rec_input_clauses): Likewise.
3059 (lower_lastprivate_clauses): Likewise.
3060 (lower_reduction_clauses): Likewise.
3061 (lower_copyprivate_clauses): Likewise.
3062 (expand_omp_atomic_pipeline): Likewise.
3063 (expand_omp_atomic_mutex): Likewise.
3064 (create_task_copyfn): Likewise.
3065 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
3066 Remove old union trick. Initialize constant offsets.
3067 (ao_ref_init_from_vn_reference): Likewise. Do not handle
3068 INDIRECT_REF. Init base_alias_set properly.
3069 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
3070 (vn_reference_fold_indirect): Adjust for MEM_REFs.
3071 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
3072 for ARRAY_REFs.
3073 (may_insert): Remove.
3074 (visit_reference_op_load): Do not test may_insert.
3075 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
3076 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
3077 a field to store the constant offset this op applies.
3078 (run_scc_vn): Adjust prototype.
3079 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
3080 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
3081 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
3082 bother about volatile qualifiers on pointers.
3083 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
3084 * tree-ssa-loop-ivopts.c
3085 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
3086 (strip_offset_1): Likewise.
3087 (find_interesting_uses_address): Replace INDIRECT_REF handling with
3088 MEM_REF handling.
3089 (get_computation_cost_at): Likewise.
3090 * ipa-pure-const.c (check_op): Handle MEM_REF.
3091 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
3092 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
3093 and constants.
3094 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
3095 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
3096 (eliminate_local_variables_1): Likewise.
3097 (create_call_for_reduction_1): Likewise.
3098 (create_loads_for_reductions): Likewise.
3099 (create_loads_and_stores_for_name): Likewise.
3100 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
3101 (ssa_accessed_in_tree): Handle MEM_REF.
3102 (ssa_accessed_in_assign_rhs): Likewise.
3103 (update_type_size): Likewise.
3104 (analyze_accesses_for_call_stmt): Likewise.
3105 (analyze_accesses_for_assign_stmt): Likewise.
3106 (transform_access_sites): Likewise.
3107 (transform_allocation_sites): Likewise.
3108 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
3109 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
3110 not handle INDIRECT_REF.
3111 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
3112 (cond_store_replacement): Likewise.
3113 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
3114 MEM_REF, no not handle INDIRECT_REFs.
3115 (insert_into_preds_of_block): Properly initialize avail.
3116 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
3117 for ARRAY_REFs. Properly handle reference lookups that
3118 require a bit re-interpretation.
3119 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
3120 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
3121 (build_ref_for_offset_1): Remove.
3122 (build_ref_for_offset): Build MEM_REFs.
3123 (gate_intra_sra): Disable for now.
3124 (sra_ipa_modify_expr): Handle MEM_REF.
3125 (ipa_early_sra_gate): Disable for now.
3126 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
3127 MEM_REF handling.
3128 (disqualify_base_of_expr): Likewise.
3129 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
3130 MEM_REF handling.
3131 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
3132 Use mem_ref_offset. Remove bogus folding.
3133 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
3134 (make_fancy_name_1): Add support for MEM_REF.
3135 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
3136 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
3137 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
3138 (compute_complex_ancestor_jump_func): Likewise.
3139 (ipa_analyze_virtual_call_uses): Likewise.
3140 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
3141 INDIRECT_REF folding with more generalized MEM_REF folding.
3142 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
3143 (forward_propagate_addr_into_variable_array_index): Also handle
3144 &ARRAY + I in addition to &ARRAY[0] + I.
3145 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
3146 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
3147 creates assignments with overlap.
3148 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
3149 (get_frame_field): Likewise.
3150 (get_nonlocal_debug_decl): Likewise.
3151 (convert_nonlocal_reference_op): Likewise.
3152 (struct nesting_info): Add mem_refs pointer-set.
3153 (create_nesting_tree): Allocate it.
3154 (convert_local_reference_op): Insert to be folded mem-refs.
3155 (fold_mem_refs): New function.
3156 (finalize_nesting_tree_1): Perform defered folding of mem-refs
3157 (free_nesting_tree): Free the pointer-set.
3158 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
3159 (vectorizable_load): Likewise.
3160 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
3161 (propagate_with_phi): Likewise.
3162 * tree-object-size.c (addr_object_size): Handle MEM_REFs
3163 instead of INDIRECT_REFs.
3164 (compute_object_offset): Handle MEM_REF.
3165 (plus_stmt_object_size): Handle MEM_REF.
3166 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
3167 for &MEM_REF.
3168 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
3169 (symbol_marked_for_renaming): Likewise.
3170 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
3171 (fold-const.o): Add $(TREE_FLOW_H).
3172 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
3173 (find_func_clobbers): Likewise.
3174 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
3175 (decompose_access): Likewise.
3176 (replace_field_acc): Likewise.
3177 (replace_field_access_stmt): Likewise.
3178 (insert_new_var_in_stmt): Likewise.
3179 (get_stmt_accesses): Likewise.
3180 (reorg_structs_drive): Disable.
3181 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
3182 (ix86_canonical_va_list_type): Likewise.
3183
3184 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
3185
3186 PR other/44566
3187 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
3188 * target.def (struct gcc_target): Replace enum reg_class with
3189 reg_class_t in hook argument / return types.
3190 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
3191 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
3192 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
3193 * targhooks.h (default_branch_target_register_class): Likewise.
3194 (default_ira_cover_classes, default_secondary_reload): Likewise.
3195 (default_memory_move_cost, default_register_move_cost): Likewise.
3196 * targhooks.c (default_branch_target_register_class): Likewise.
3197 (default_ira_cover_classes, default_secondary_reload): Likewise.
3198 (default_memory_move_cost, default_register_move_cost): Likewise.
3199 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
3200 * bt-load.c (branch_target_load_optimize): Likewise.
3201 * ira.c (setup_cover_and_important_classes): Likewise.
3202 * ira-costs.c (copy_cost): Likewise.
3203 * reload1.c (emit_input_reload_insns): Likewise.
3204 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
3205 * config/frv/frv.c (frv_secondary_reload): Likewise.
3206 * config/s390/s390.c (s390_secondary_reload): Likewise.
3207 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
3208 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
3209 (ix86_register_move_cost): Likewise.
3210 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
3211 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
3212 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
3213 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
3214 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
3215 (rs6000_ira_cover_classes): Likewise.
3216 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
3217 * config/picochip/picochip-protos.h (picochip_secondary_reload):
3218 Likewise.
3219 * config/pa/pa.c (pa_secondary_reload): Likewise.
3220 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
3221 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
3222 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
3223 * doc/tm.texi: Regenerate.
3224
3225 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
3226
3227 PR bootstrrap/44726
3228 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
3229 use.
3230 (build_alias_set_optimal_p): Likewise.
3231 (build_base_obj_set_for_drs): Likewise.
3232
3233 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
3234
3235 * target.def: Remove comment about licensing problems of function
3236 declarations.
3237
3238 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
3239 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
3240 * doc/tm.texi: Regenerate.
3241
3242 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
3243 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
3244
3245 * target.def (enum_va_list_p): Use DEFHOOK.
3246 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
3247 Rename ptype to ptree.
3248 * doc/tm.texi: Regenerate.
3249
3250 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
3251 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
3252 * doc/tm.texi: Regenerate.
3253
3254 * target.def (memory_move_cost): Use DEFHOOK.
3255 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
3256 Rename regclass AKA class to rclass.
3257 * doc/tm.texi: Regenerate.
3258
3259 * target.def (pragma_parse): Use DEFHOOK.
3260 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
3261 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
3262 * doc/tm.texi: Regenerate.
3263
3264 * target.def (pass_by_reference): Use DEFHOOK.
3265 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
3266 * doc/tm.texi: Regenerate.
3267
3268 * target.def (resolve_overloaded_builtin): Rename params to arglist.
3269 Use DEFHOOK.
3270 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
3271 * doc/tm.texi: Regenerate.
3272
3273 * target.def (return_pops_args): Use DEFHOOK.
3274 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
3275 Rename stack-size to size.
3276 * doc/tm.texi: Regenerate.
3277
3278 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
3279 last-sched_cycle to last_clock, cur_cycle to clock.
3280 * doc/tm.texi.in: Use @hook.
3281 * doc/tm.texi: Regenerate.
3282
3283 * target.def (print_operand, print_operand_address): Update comment.
3284 (print_operand_punct_valid_p): Likewise.
3285
3286 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3287
3288 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
3289 to rtl.h.
3290 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
3291 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
3292 * rtl-error.h: New.
3293 * regrename.c: Do not include toplev.h. Include rtl-error.h.
3294 * rtl-error.c: Likewise.
3295 * reload.c: Likewise.
3296 * recog.c: Likewise.
3297 * sel-sched.c: Likewise.
3298 * function.c: Likewise.
3299 * reg-stack.c: Likewise.
3300 * cfgrtl.c: Likewise.
3301 * reload1.c: Likewise.
3302 * final.c: Include rtl-error.
3303 * Makefile.in: Adjust dependencies.
3304
3305 2010-06-30 Jan Hubicka <jh@suse.cz>
3306
3307 PR middle-end/PR44706
3308 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
3309 to return the value.
3310
3311 2010-06-30 Michael Matz <matz@suse.de>
3312
3313 PR bootstrap/44699
3314 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
3315 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
3316 a gimple reg, attach the original VDEF to the last store in the
3317 sequence.
3318
3319 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
3320
3321 PR other/44034
3322 * config/darwin.c (darwin_override_options): Use renamed
3323 targetm.asm_out.emit_unwind_label.
3324
3325 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
3326
3327 PR tree-optimization/39799
3328 * tree-inline.c (remap_ssa_name): Initialize variable only if
3329 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3330
3331 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
3332
3333 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
3334
3335 2010-06-30 Richard Guenther <rguenther@suse.de>
3336
3337 PR target/44722
3338 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
3339 against oscillation with reverse peephole2.
3340
3341 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
3342
3343 PR target/44721
3344 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
3345 Fix last commit.
3346
3347 2010-06-30 Nick Clifton <nickc@redhat.com>
3348
3349 * config/rx/rx-modes.def: New file.
3350 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
3351 (CC_REGNUM): Define.
3352 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
3353 register.
3354 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
3355 (SELECT_CC_MODE): Define.
3356 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
3357 (reg:CC CC_REG) instead of (cc0).
3358 (attr "cc"): Delete.
3359 (cbranchsi4): Do not split compare and branch here. Instead move
3360 it to...
3361 (cbranchsi4_<code>): ... here. New patterns.
3362 (cmpsi): Call rx-compare_redundant to find out if it is necessary
3363 to emit the compare instruction.
3364 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
3365 cc_status flags.
3366 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
3367 FIRST_PSEUDO_REGNUM.
3368 (rx_expand_prologue, rx_expand_epilogue): Likewise.
3369 (rx_notice_update_cc): Delete.
3370 (rx_cc_modes_compatible): New function.
3371 (flags_needed_for_conditional): New function.
3372 (flags_from_mode): New function.
3373 (rx_compare_redundant): New function - scans backwards through
3374 insn list to find out if condition flags are already set correctly.
3375 (TARGET_CC_MODES_COMPATIBLE): Define.
3376 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
3377
3378 * config/rx/rx.h (BRANCH_COST): Define.
3379 (REGISTER_MOVE_COST): Define.
3380 * config/rx/predicates (rx_source_operand): Allow all constant types.
3381 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
3382 (tstsi4): New pattern.
3383 * config/rx/rx.c (rx_memory_move_cost): Define.
3384 (TARGET_MEMORY_MOVE_COST): Define.
3385
3386 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3387
3388 * tree.h (block_may_fallthru): Declare here.
3389 * tree-flow.h (block_may_fallthru): Do not declare here.
3390 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
3391 bitmap.h
3392 * Makefile.in (c-typeck.o): Update dependencies.
3393
3394 2010-06-30 Jakub Jelinek <jakub@redhat.com>
3395
3396 PR debug/44694
3397 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
3398 * cselib.c (cfa_base_preserved_regno): New static variable.
3399 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
3400 of REGNO (cfa_base_preserved_val->locs->loc).
3401 (cselib_preserve_cfa_base_value): Add regno argument, set
3402 cfa_base_preserved_regno to it.
3403 (cselib_invalidate_regno): Allow removal of registers other than
3404 cfa_base_preserved_regno from cfa_base_preserved_val.
3405 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
3406 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
3407 of MEM addresses, if not on LHS.
3408 (reverse_op): Don't add reverse ops for cfa_base_rtx.
3409 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
3410
3411 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
3412
3413 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
3414 static variables.
3415 (peep2_buf_position): New static function.
3416 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
3417 peephole2_optimize): Use it.
3418 (peep2_attempt, peep2_update_life): New static functions, broken out
3419 of peephole2_optimize.
3420 (peep2_fill_buffer): New static function.
3421 (peephole2_optimize): Change the main loop to try to fill the buffer
3422 with the maximum number of insns before matching them against
3423 peepholes. Use a forward scan. Remove special case for targets with
3424 conditional execution.
3425 * genrecog.c (change_state): Delete dead code.
3426 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
3427 Rewrite so as not to expect the second insn to have had a peephole
3428 applied yet.
3429
3430 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3431
3432 * genhooks.c (emit_findices): Cast field precision to int.
3433 (emit_documentation): Likewise.
3434
3435 2010-06-29 Jakub Jelinek <jakub@redhat.com>
3436
3437 PR tree-optimization/43801
3438 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
3439 if old_decl was DECL_ONE_ONLY.
3440
3441 PR debug/44668
3442 * dwarf2out.c (add_accessibility_attribute): New function.
3443 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
3444 instead of adding DW_AT_accessibility manually.
3445 (gen_enumeration_type_die, gen_struct_or_union_type_die,
3446 gen_typedef_die): Use it.
3447
3448 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3449
3450 * vmsdbgout.c (full_name): Just output the file name if not native.
3451
3452 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3453
3454 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
3455 (funcnam_table): New static table.
3456 (funcnum_table): New static table.
3457 (write_rtnbeg): Write value saved in funcnum_table.
3458 (write_rtnend): Write value saved in funcnum_table.
3459 (vmsdbgout_begin_function): Save current function info in
3460 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
3461 (vmsdbgout_finish): Iterate over funcnum_table.
3462
3463 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3464
3465 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
3466 (vmsdbgout_type_decl): Declare
3467 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
3468 (FUNC_EPILOGUE_LABEL): New macro
3469 (vmsdbgout_begin_epilogue): New function.
3470 (vmsdbgout_type_decl): New function.
3471
3472 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3473
3474 * vmsdbg.h: Update copyright.
3475
3476 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3477
3478 * vmsdbg.h (DST_K_TBG): New DST constant.
3479 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
3480 (write_modbeg): Cast module_language to avoid warning.
3481 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
3482
3483 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3484
3485 PR other/44034
3486 * target.def, doc/tm.texi.in, genhooks.c: New files.
3487 * target.h: Instead of defining individual hook members,
3488 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
3489 include target.def.
3490 * target-def.h: Instead of defining individual hook initializers,
3491 include target-hooks-def.h.
3492 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
3493 targetm.live_on_entry -> targetm.extra_live_on_entry
3494 targetm.sched.md_finish ->targetm.sched.finish
3495 targetm.sched.md_init -> targetm.sched.init
3496 targetm.sched.md_init_global -> targetm.sched.init_global
3497 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
3498 targetm.asm_out.except_table_label ->
3499 targetm.asm_out.emit_except_table_label
3500 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
3501 targetm.target_help -> targetm.help
3502 targetm.vectorize.builtin_support_vector_misalignment ->
3503 targetm.vectorize.support_vector_misalignment
3504 targetm.file_start_app_off -> targetm.asm_file_start_app_off
3505 targetm.file_start_file_directive ->
3506 targetm.asm_file_start_file_directive
3507 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
3508 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
3509 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
3510 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
3511 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
3512 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
3513 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
3514 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
3515 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
3516 * Makefile.in (TARGET_H): Depend on target.def.
3517 (TARGET_DEF_H): Depend on target-hooks-def.h.
3518 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
3519 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
3520 * doc/tm.texi: Regenerate.
3521
3522 * Makefile.in (s-tm-texi): Remove stray tab / rule.
3523
3524 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
3525 (targetm.sched.init): Likewise.
3526
3527 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3528
3529 PR bootstrap/44713
3530 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
3531 (function_arg_advance_32): Const-ify TYPE parameter.
3532 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
3533 (ix86_function_arg_advance): Change type of NAMED to bool.
3534 (function_arg_32): Const-ify CUM and TYPE parameters.
3535 (function_arg_64): Likewise. Change type of NAMED to bool.
3536 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
3537 to bool.
3538 (ix86_function_arg): Change type of NAMED to bool.
3539 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
3540 last argument as a bool.
3541
3542 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3543
3544 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
3545 (OVERRIDE_OPTIONS): Add note of obsolescence.
3546 Replace references with references to TARGET_OPTION_OVERRIDE.
3547 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
3548 the macro).
3549 * targhooks.c (default_target_option_override): New function.
3550 * targhooks.h (default_target_option_override): Declare.
3551 * target.h (struct gcc_target): Add override member to
3552 target_option member.
3553 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
3554 targetm.target_option.override call.
3555 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
3556 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
3557
3558 2010-06-29 Jan Hubicka <jh@suse.cz>
3559
3560 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
3561
3562 2010-06-29 Jan Hubicka <jh@suse.cz>
3563
3564 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
3565 unreachable.
3566 (rebuild_frequencies): New function.
3567 * predict.h (rebuild_frequencies): Declare.
3568 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
3569 entry block and edge reaching new_entry.
3570 (tree_function_versioning): When doing partial cloning, rebuild
3571 frequencies when done.
3572 * passes.c (execute_function_todo): Use rebild_frequencies.
3573
3574 2010-06-29 Richard Guenther <rguenther@suse.de>
3575
3576 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
3577 * tree-flow.h (enum noalias_state): Remove.
3578 (struct var_ann_d): Remove noalias_state member.
3579
3580 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
3581
3582 PR target/43902
3583 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
3584 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
3585 (maddhidi4): Likewise.
3586
3587 Revert parts of the change for PR25130.
3588 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
3589 MEM_ALIAS_SET.
3590
3591 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3592
3593 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
3594 targetm.calls.function_incoming_arg, and
3595 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
3596 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
3597 * target.h (struct gcc_target): Add function_arg_advance,
3598 function_arg, and function_incoming_arg fields.
3599 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
3600 (TARGET_FUNCTION_INCOMING_ARG): Define.
3601 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
3602 and TARGET_FUNCTION_INCOMING_ARG.
3603 * targhooks.h (default_function_arg_advance): Declare.
3604 (default_function_arg, default_function_incoming_arg): Declare.
3605 * targhooks.c (default_function_arg_advance): New function.
3606 (default_function_arg, default_function_incoming_arg): New function.
3607 * config/i386/i386.c (function_arg_advance): Rename to...
3608 (ix86_function_arg_advance): ...this. Make static.
3609 (function_arg): Rename to...
3610 (ix86_function_arg): ...this. Make static.
3611 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3612 (TARGET_FUNCTION_ARG): Define.
3613 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
3614 (FUNCTION_ARG): Delete.
3615 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
3616 (function_arg): Delete prototype.
3617
3618 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3619
3620 * reginfo.c (init_reg_sets_1): Adjust comments.
3621 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
3622 * calls.c (prepare_call_address): Likewise.
3623 (emit_call_1): Use targetm.calls.return_pops_args.
3624 (expand_call): Likewise.
3625 * function.c (assign_parms): Likewise.
3626 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
3627 * target.h (struct gcc_target) [struct calls]: Add
3628 return_pops_args field.
3629 * targhooks.h (default_return_pops_args): Declare.
3630 * targhooks.c (default_return_pops_args): Define.
3631 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
3632 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
3633 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
3634 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
3635 documentation.
3636 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
3637 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
3638 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
3639 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
3640 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
3641 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
3642 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
3643 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
3644 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
3645 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
3646 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
3647 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
3648 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
3649 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
3650 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
3651 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
3652 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
3653 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
3654 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
3655 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
3656 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
3657 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
3658 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
3659 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
3660 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
3661 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
3662 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
3663 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
3664 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
3665 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
3666 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
3667 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
3668 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
3669 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
3670 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
3671 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
3672 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
3673 * config/i386/i386.c (ix86_return_pops_args): Make static.
3674 Constify arguments.
3675 (TARGET_RETURN_POPS_ARGS): Define.
3676 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
3677 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
3678 (TARGET_RETURN_POPS_ARGS): Define.
3679 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
3680 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
3681 (TARGET_RETURN_POPS_ARGS): Define.
3682
3683 2010-06-29 Richard Guenther <rguenther@suse.de>
3684
3685 PR middle-end/44667
3686 * tree-inline.c (initialize_inlined_parameters): Make sure
3687 to remap the inlined parameter variable substitutions types.
3688
3689 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
3690
3691 PR rtl-optimization/44659
3692 * combine.c (make_compound_operation) <SUBREG>: Do not return the
3693 result of force_to_mode if it partially re-expanded the compound.
3694
3695 2010-06-28 Jan Hubicka <jh@suse.cz>
3696
3697 PR middle-end/44671
3698 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
3699 RESULT_DECL.
3700
3701 2010-06-28 Anatoly Sokolov <aesok@post.ru>
3702
3703 * double-int.h (force_fit_type_double): Remove declaration.
3704 * double-int.c (force_fit_type_double): Move to tree.c.
3705 * tree.h (force_fit_type_double): Declare.
3706 * tree.h (force_fit_type_double): Moved from double-int.c. Use
3707 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
3708 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
3709 * convert.c (convert_to_pointer): Adjust call to
3710 force_fit_type_double.
3711 * tree-vrp.c (extract_range_from_assert,
3712 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
3713 * fold-const.c: Update comment.
3714 (int_const_binop, fold_convert_const_int_from_int,
3715 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
3716 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
3717 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
3718 round_up_loc): Adjust call to force_fit_type_double.
3719
3720 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3721
3722 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
3723
3724 2010-06-28 Martin Jambor <mjambor@suse.cz>
3725
3726 * tree-sra.c (convert_callers): New parameter, change fndecls of
3727 recursive calls.
3728 (modify_function): Pass the old decl to convert_callers.
3729
3730 2010-06-28 Martin Jambor <mjambor@suse.cz>
3731
3732 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
3733 ipa_check_create_node_params and ipa_initialize_node_params with
3734 checking asserts they are not necessary.
3735
3736 2010-06-28 Jan Hubicka <jh@suse.cz>
3737
3738 PR tree-optimization/44687
3739 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
3740
3741 2010-06-28 Martin Jambor <mjambor@suse.cz>
3742
3743 PR c++/44535
3744 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
3745 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
3746 instead of BINFO_BASE_BINFO.
3747
3748 2010-06-28 Michael Matz <matz@suse.de>
3749
3750 PR middle-end/44592
3751 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
3752 proper VDEF chain for intermediate stores in the sequence.
3753
3754 2010-06-28 Jan Hubicka <jh@suse.cz>
3755
3756 PR tree-optimization/44357
3757 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
3758 uninlinable functions.
3759
3760 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3761
3762 * config.gcc (powerpc*-*-*): Handle titan.
3763 * config/rs6000/rs6000.c (titan_cost): New costs.
3764 (rs6000_override_options): Add "titan" to processor_target_table.
3765 Add Titan to branch alignment logic.
3766 Correctly set rs6000_cost for titan.
3767 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
3768 * config/rs6000/titan.md: New file.
3769 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
3770
3771 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
3772
3773 * tree-browser.c (TB_history_stack): Convert to a VEC.
3774 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
3775 (TB_history_prev): Likewise.
3776
3777 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
3778
3779 * vec.h (vec_heap_free): Add parentheses around free.
3780
3781 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3782
3783 * system.h: Poison GCC_EXCEPT_H for front-end files.
3784
3785 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
3786 langhook.
3787 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
3788 Define to NULL by default.
3789 * except.h: Define GCC_EXCEPT_H.
3790 (doing_eh): Remove prototype.
3791 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
3792 (lang_protect_cleanup_actions): Remove.
3793 * except.c (lang_protect_cleanup_actions): Remove.
3794 (doing_eh): Remove.
3795 (gen_eh_region): Don't check doing_eh here.
3796 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
3797 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
3798 instead of lang_protect_cleanup_actions.
3799 * omp-low.c (maybe_catch_exception): Likewise.
3800 * Makefile.in: Update dependencies.
3801
3802 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
3803
3804 * cgraph.h (struct varpool_node): new used_from_object_file flag.
3805 (struct cgraph_local_info): new used_from_object_file flag.
3806 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
3807 (cgraph_clone_node): initialize used_from_object_file.
3808 (cgraph_create_virtual_clone): initialize used_from_object_file.
3809 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
3810 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
3811 when compiling with -fwhole-program.
3812 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
3813 internal resolver.
3814 * ipa.c (function_and_variable_visibility): Set externally_visible
3815 flag of varpool_node if used_from_object_file flag is set.
3816 (cgraph_externally_visible_p): check used_from_object_file flag.
3817 * doc/invoke.texi (-fwhole-program option): Change description of
3818 externally_visible attribute accordingly.
3819 * doc/extend.texi (externally_visible): Ditto.
3820
3821 2010-06-27 Jan Hubicka <jh@suse.cz>
3822
3823 * params.def (max-inline-insns-auto): Default to 40.
3824 * doc/invoke.texi (max-inline-insns-auto): Document the change.
3825
3826 2010-06-27 Jan Hubicka <jh@suse.cz>
3827
3828 PR middle-end/44671
3829 PR middle-end/44686
3830 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
3831 signature change.
3832 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
3833 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
3834
3835 2010-06-27 Anatoly Sokolov <aesok@post.ru>
3836
3837 * target.h (struct gcc_target): Add register_move_cost field.
3838 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
3839 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
3840 * targhooks.c (default_register_move_cost): New function.
3841 * targhooks.h (default_register_move_cost): Declare function.
3842 * defaults.h (REGISTER_MOVE_COST): Delete.
3843 * ira-int.h (ira_register_move_cost): Update comment.
3844 * ira.c: (ira_register_move_cost): Update comment.
3845 * reload.h (register_move_cost): Declare.
3846 * reginfo.c (register_move_cost): New function.
3847 (move_cost): Update comment.
3848 (init_move_cost, memory_move_secondary_cost): Replace
3849 REGISTER_MOVE_COST with register_move_cost.
3850 * postreload.c (reload_cse_simplify_set): (Ditto.).
3851 * reload.c (find_valid_class, find_reloads): (Ditto.).
3852 * reload1.c (choose_reload_regs): (Ditto.).
3853 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
3854 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
3855 * doc/md.texi (can_create_pseudo_p): Update documentation.
3856
3857 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
3858 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
3859 * config/i386/i386.h (ix86_memory_move_cost): Make static.
3860 (TARGET_MEMORY_MOVE_COST): Define.
3861
3862 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
3863 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
3864 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
3865 (TARGET_MEMORY_MOVE_COST): Define.
3866
3867 2010-06-27 Richard Guenther <rguenther@suse.de>
3868
3869 PR tree-optimization/44683
3870 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
3871 false edge from the inverted condition.
3872
3873 2010-06-27 Richard Guenther <rguenther@suse.de>
3874
3875 PR middle-end/44684
3876 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
3877 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
3878 for register LHS. Or non-store assignments.
3879
3880 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
3881
3882 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
3883 (sparc_emit_set_const64): Likewise. Remove disabled code.
3884 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
3885 (sparc_emit_set_const64): Likewise.
3886
3887 2010-06-26 Catherine Moore <clm@codesourcery.com>
3888
3889 * config/mips/mips.md (alu_type): New attribute.
3890 (type): Infer type from alu_type.
3891 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
3892 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
3893 *subsi3_extended, negsi2, negdi2, *low<mode>,
3894 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
3895 xor<mode>3, *nor<mode>3,
3896 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
3897 *zero_extendhi_truncqi): Set alu_type instead of type.
3898
3899 2010-06-26 Douglas B Rupp <rupp@gnat.com>
3900
3901 * config/alpha/alpha.c (alpha_need_linkage): Adjust
3902 splay_tree_new_ggc call.
3903 (alpha_use_linkage): Likewise.
3904
3905 2010-06-26 Joseph Myers <joseph@codesourcery.com>
3906
3907 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
3908 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
3909 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
3910 (static_specs): Remove switches_need_spaces.
3911 (process_command, do_self_spec): Hardcode handling "-o" instead of
3912 checking switches_need_spaces.
3913 * system.h (SWITCHES_NEED_SPACES): Poison.
3914
3915 2010-06-26 Richard Guenther <rguenther@suse.de>
3916
3917 PR tree-optimization/44393
3918 * tree-loop-distribution.c (generate_loops_for_partition): Fix
3919 stmt removal and VOP renaming.
3920 (generate_memset_zero): Remove redundant stmt updating.
3921 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
3922 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
3923
3924 2010-06-26 Jan Hubicka <jh@suse.cz>
3925
3926 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
3927 edges comming from header are equivalent.
3928 (visit_bb): Handle PHIs correctly.
3929 * tree-inline.c (copy_phis_for_bb): Be able to copy
3930 PHI from entry edge.
3931 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
3932
3933 2010-06-26 Richard Guenther <rguenther@suse.de>
3934
3935 PR middle-end/44674
3936 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
3937 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
3938
3939 2010-06-26 Joseph Myers <joseph@codesourcery.com>
3940
3941 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
3942 add_infile, alloc_switch): New.
3943 (process_command): Remove variable lang_n_infiles. Process
3944 options in a single pass. Use new functions for allocating
3945 infiles and switches arrays. Properly skip operands of
3946 -Xpreprocessor and -Xassembler.
3947
3948 2010-06-26 Jan Hubicka <jh@suse.cz>
3949
3950 PR middle-end/44671
3951 * cgraphunit.c (cgraph_function_versioning): Remove wrong
3952 cgraph_make_decl_local call; fix typo copying RTL data.
3953
3954 2010-06-25 DJ Delorie <dj@redhat.com>
3955
3956 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
3957 (m32c_output_aligned_common): Likewise.
3958 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
3959 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3960 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
3961 (m32c_register_pragmas): Register it.
3962 * config/m32c/m32c.c (m32c_get_pragma_address): New.
3963 (m32c_insert_attributes): Set #pragma address decls volatile.
3964 (pragma_entry_eq): New.
3965 (pragma_entry_hash): New.
3966 (m32c_note_pragma_address): New.
3967 (m32c_get_pragma_address): New.
3968 (m32c_output_aligned_common): New.
3969 * doc/extend.texi: Document the new pragma.
3970
3971 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
3972 also.
3973 * config/m32c/predicates.md (m32c_any_operand): Check the code
3974 instead of memory_operand so as to allow matching volatile MEMs.
3975 (m32c_nonimmediate_operand): Likewise.
3976 (mra_operand): Allow volatiles.
3977
3978 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
3979
3980 PR debug/44610
3981 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
3982 address if the offset is unknown.
3983
3984 2010-06-25 Douglas B Rupp <rupp@gnat.com>
3985
3986 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
3987 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
3988 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
3989 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
3990 to ia64_start_function. Invoke it.
3991 * config/ia64/ia64.c (ia64_start_function): Call new function
3992 dwarf2out_vms_debug_main_pointer.
3993
3994 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3995
3996 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
3997 statements computing the true predicate.
3998
3999 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
4000
4001 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
4002 to boolean_true_node.
4003 (reset_bb_predicate): New.
4004 (predicate_bbs): Call reset_bb_predicate.
4005
4006 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
4007
4008 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
4009 (tree_if_conversion): Returns true when something has been changed.
4010 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
4011 changed something.
4012
4013 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
4014
4015 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
4016 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
4017 * tree-if-conv.c: Include dbgcnt.h.
4018 (tree_if_conversion): Use if_conversion_tree to count the number of
4019 if-convertible loops.
4020
4021 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
4022
4023 * common.opt (fprefetch-loop-arrays): Re-define
4024 -fprefetch-loop-arrays as a tri-state option with the initial
4025 value of -1.
4026 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
4027 pass only when flag_prefetch_loop_arrays > 0.
4028 * toplev.c (process_options): Note that, with tri-states,
4029 flag_prefetch_loop_arrays>0 means prefetching is enabled.
4030 * config/i386/i386.c (override_options): Enable prefetching at -O3
4031 for a set of CPUs that sw prefetching is helpful.
4032 (software_prefetching_beneficial_p): New. Return TRUE if software
4033 prefetching is beneficial for the given CPU.
4034
4035 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
4036
4037 PR rtl-optimization/44326
4038 * implicit-zee.c (find_removable_zero_extends): Replace
4039 INSN_P with NONDEBUG_INSN_P.
4040
4041 2010-06-25 Martin Jambor <mjambor@suse.cz>
4042
4043 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
4044 (struct ipa_node_params): Removed the modification_analysis_done flag.
4045 (ipa_is_param_modified): Removed.
4046 (ipa_analyze_node): Declare.
4047 (ipa_compute_jump_functions): Remove declaration.
4048 (ipa_count_arguments): Likewise.
4049 (ipa_detect_param_modifications): Likewise.
4050 (ipa_analyze_params_uses): Likewise.
4051 * ipa-prop.c (struct param_analysis_info): New type.
4052 (visit_store_addr_for_mod_analysis): Removed.
4053 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
4054 moved down in the file.
4055 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
4056 (ipa_count_arguments): Made static.
4057 (mark_modified): New function.
4058 (is_parm_modified_before_call): New function.
4059 (compute_pass_through_member_ptrs): New parameter parms_info, call
4060 is_parm_modified_before_call instead of ipa_is_param_modified.
4061 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
4062 it to compute_pass_through_member_ptrs.
4063 (ipa_compute_jump_functions): New parameter parms_info, pass it to
4064 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
4065 on the callee if it is analyzed. Made static.
4066 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
4067 is_parm_modified_before_call instead of ipa_is_param_modified.
4068 (ipa_analyze_call_uses): New parameter parms_info, pass it to
4069 ipa_analyze_indirect_call_uses.
4070 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
4071 ipa_analyze_call_uses.
4072 (ipa_analyze_params_uses): New parameter parms_info, pass it to
4073 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
4074 (ipa_analyze_node): New function.
4075 (ipa_print_node_params): Do not dump the modified flag.
4076 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
4077 it. Do not stream the modified parameter flag.
4078 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
4079 it. Do not stream the modified parameter flag.
4080 * ipa-cp.c (ipcp_analyze_node): Removed.
4081 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
4082 with only a call to ipa_analyze_node.
4083 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
4084 node with only a call to ipa_analyze_node.
4085
4086 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
4087
4088 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
4089
4090 2010-06-25 Jan Hubicka <jh@suse.cz>
4091
4092 * tree-pass.h (pass_split_functions): Declare.
4093 * opts.c (decode_options): Enable function splitting at -O2
4094 * timevar.def (TV_IPA_FNSPLIT): New macro.
4095 * ipa-split.c: New file.
4096 * common.opt (-fpartial-inlining): New flag.
4097 * Makefile.in (ipa-split.o): New object file.
4098 * passes.c (init_optimization_passes): Add ipa-split.
4099 * params.def (partial-inlining-entry-probability): New parameters.
4100 * doc/invoke.texi (-fpartial-inlining): New.
4101
4102 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
4103
4104 PR 44665
4105 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
4106 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
4107 (gimplify_expr): Likewise.
4108
4109 2010-06-25 Martin Jambor <mjambor@suse.cz>
4110
4111 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
4112 statements instead of bailing out on them.
4113 (ipa_analyze_indirect_call_uses): Do not require that loads from the
4114 parameter are in the same BB as the condition. Update comments.
4115
4116 2010-06-25 Jakub Jelinek <jakub@redhat.com>
4117
4118 PR middle-end/43866
4119 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
4120 true or always false, return NULL_TREE.
4121 (tree_unswitch_single_loop): Optimize conditions even when reaching
4122 max-unswitch-level parameter. If num > 0, optimize first all conditions
4123 using entry checks, then do still reachable block discovery and consider
4124 only conditions in still reachable basic blocks in the loop.
4125
4126 PR tree-optimization/44539
4127 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
4128 the call doesn't have LHS, but has VDEF.
4129
4130 2010-06-25 Joseph Myers <joseph@codesourcery.com>
4131
4132 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
4133 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
4134 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
4135 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
4136 * system.h (MODIFY_TARGET_NAME): Poison.
4137
4138 2010-06-25 Alan Modra <amodra@gmail.com>
4139
4140 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
4141 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
4142 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
4143 CMODEL_LARGE as default.
4144 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
4145 (offsettable_ok_by_alignment): Delete.
4146 (rs6000_emit_move): Remove mcmodel=medium optimization.
4147
4148 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
4149
4150 With large parts from Jim Wilson:
4151 PR target/43902
4152 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
4153 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
4154 * optabs.c (optab_for_tree_code): Likewise.
4155 (expand_widen_pattern_expr): Likewise.
4156 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
4157 out of execute_optimize_widening_mul.
4158 (convert_plusminus_to_widen): New function.
4159 (execute_optimize_widening_mul): Use the two new functions.
4160 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
4161 Remove code to generate widening multiply-accumulate. Add support
4162 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
4163 * gimple-pretty-print.c (dump_ternary_rhs): New function.
4164 (dump_gimple_assign): Call it when appropriate.
4165 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
4166 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
4167 (expand_gimple_stmt_1): Likewise.
4168 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
4169 WIDEN_MULT_MINUS_EXPR.
4170 * tree-ssa-operands.c (get_expr_operands): Likewise.
4171 * tree-inline.c (estimate_operator_cost): Likewise.
4172 * gimple.c (extract_ops_from_tree_1): Renamed from
4173 extract_ops_from_tree. Add new arg for a third operand; fill it.
4174 (gimple_build_assign_stat): Support operations with three operands.
4175 (gimple_build_assign_with_ops_stat): Likewise.
4176 (gimple_assign_set_rhs_from_tree): Likewise.
4177 (gimple_assign_set_rhs_with_ops_1): Renamed from
4178 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
4179 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
4180 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
4181 WIDEN_MULT_MINUS_EXPR.
4182 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
4183 (extract_ops_from_tree_1): Adjust declaration.
4184 (gimple_assign_set_rhs_with_ops_1): Likewise.
4185 (gimple_build_assign_with_ops): Pass NULL for last operand.
4186 (gimple_build_assign_with_ops3): New macro.
4187 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
4188 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
4189 functions.
4190 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
4191 (verify_gimple_assign): Call it.
4192 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
4193 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
4194 functions for dealing with three-operand statements.
4195 * tree.c (commutative_ternary_tree_code): New function.
4196 * tree.h (commutative_ternary_tree_code): Declare it.
4197 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
4198 ternary statements.
4199 (gimple_assign_nonzero_warnv_p): Likewise.
4200 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
4201 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
4202 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
4203 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
4204 (struct hashtable_expr): New member ternary in the union.
4205 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
4206 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
4207 (iterative_hash_hashable_expr): Likewise.
4208 (print_expr_hash_elt): Handle EXPR_TERNARY.
4209 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
4210 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
4211 statements. Handle GIMPLE_TERNARY_RHS.
4212
4213 2010-06-25 Jan Hubicka <jh@suse.cz>
4214
4215 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
4216
4217 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
4218
4219 PR c/44517
4220 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
4221 parameters are not good.
4222 (c_parser_parameter_declaration): Error unknown type name if the type
4223 name can't start declaration specifiers.
4224
4225 2010-06-25 Joseph Myers <joseph@codesourcery.com>
4226
4227 * gcc.c (translate_options): Don't mention +e in comment.
4228 (process_command): Don't handle +e specially.
4229
4230 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
4231
4232 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
4233
4234 * ira-build.c (merge_hard_reg_conflicts): New function.
4235 (create_cap_allocno, copy_info_to_removed_store_destinations,
4236 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
4237 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
4238 (remove_unnecessary_allocnos, remove_low_level_allocnos)
4239 copy_nifo_to_removed_store_destination): Use them.
4240 * ira-lives.c (make_hard_regno_born): New function, split out of
4241 make_regno_born.
4242 (make_allocno_born): Likewise.
4243 (make_hard_regno_dead): New function, split out of make_regno_dead.
4244 (make_allocno_dead): Likewise.
4245 (inc_register_pressure): New function, split out of set_allocno_live.
4246 (dec_register_pressure): New function, split out of clear_allocno_live.
4247 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
4248 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
4249 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
4250 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
4251 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
4252 mark_pseudo_regno_live.
4253 (process_bb_node_lives): Use mark_pseudo_regno_live,
4254 make_hard_regno_born and make_allocno_dead.
4255 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
4256 set_allocno_live, clear_allocno_live): Delete functions.
4257
4258 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
4259 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
4260 functions.
4261 (ira_flattening): Use ira_parent_allocno.
4262 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
4263 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
4264
4265 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
4266 statement.
4267
4268 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
4269 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
4270 minmax_set_iter_cond, minmax_set_iter_next,
4271 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
4272 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
4273 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
4274 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
4275 uses changed.
4276
4277 * ira-int.h (struct live_range, live_range_t): Renamed from struct
4278 ira_allocno_live_range and allocno_live_range_t; all uses changed.
4279 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
4280 All uses changed.
4281
4282 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
4283
4284 * thumb2.md (thumb2_tlobits_cbranch): Delete.
4285 (peephole2 to convert zero_extract/compare of single bit to
4286 lshift/compare): New.
4287
4288 2010-06-24 Anatoly Sokolov <aesok@post.ru>
4289
4290 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
4291 recursive call and call to 'int_const_binop'.
4292 (build_range_check, fold_cond_expr_with_comparison, unextend,
4293 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
4294 multiple_of_p): Adjust call to const_binop.
4295
4296 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
4297
4298 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
4299 determine size of XFmode operand.
4300 (XFmode extended DFmode push splitter): Ditto.
4301 (XFmode extended SFmode push splitter): Ditto.
4302
4303 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
4304
4305 PR target/44588
4306 * config/i386/i386.md (extract_code): New.
4307 (<u>divmodqi4): Likewise.
4308 (divmodhiqi3): Likewise.
4309 (udivmodhiqi3): Likewise.
4310 (<u>divqi3): Remvoved.
4311
4312 2010-06-24 Jakub Jelinek <jakub@redhat.com>
4313
4314 PR middle-end/44492
4315 * recog.h (struct recog_data): Add is_asm field.
4316 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
4317 present in constraints of inline-asm operand and memory operand
4318 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
4319 (extract_insn): Initialize recog_data.is_asm.
4320 * doc/md.texi (Constraints): Document operand side-effect rules.
4321
4322 2010-06-24 Andi Kleen <ak@linux.intel.com>
4323
4324 * c-parser.c (c_parser_conditional_expression): Call
4325 warn_for_omitted_condop.
4326 * doc/invoke.texi: Document omitted condop warning.
4327
4328 2010-06-24 Nick Clifton<nickc@redhat.com>
4329
4330 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
4331 insn in the sequence is a jump insn before setting its label.
4332
4333 2010-06-24 Alan Modra <amodra@gmail.com>
4334
4335 * collect2.c (main): Match exactly --version and --help.
4336
4337 2010-06-24 DJ Delorie <dj@redhat.com>
4338
4339 * config/m32c/m32c-pragma.c: Don't include rtl.h.
4340
4341 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
4342
4343 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
4344 using X87MODEF mode iterator.
4345 (pushsf splitter): Macroize splitter using P mode iterator.
4346 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
4347 mode iterator.
4348
4349 (*movxf_internal): Rename from *movxf_integer.
4350 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
4351 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
4352 (*movdf_internal): Rename from *movdf_integer.
4353 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
4354 (*movsf_internal): Rename from *movdf_1.
4355
4356 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
4357
4358 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
4359 (const_gimple_seq_node): Removed typedefs.
4360
4361 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
4362 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
4363
4364 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
4365
4366 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
4367 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
4368 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
4369 and CODE_FOR_vec_extract_lo_v4df.
4370
4371 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
4372 Changed to define_insn_and_split.
4373 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
4374 (vec_extract_lo_v16hi): Likewise.
4375 (vec_extract_lo_v32qi): Likewise.
4376 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
4377 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
4378
4379 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
4380
4381 PR target/44640
4382 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
4383 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
4384 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
4385 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
4386 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
4387
4388 PR target/44640
4389 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
4390
4391 PR other/44644
4392 * df-core.c (struct df): Rename to df_d.
4393 * df.h (struct df): Likewise.
4394 * dse.h (struct df): Remove forward declaration.
4395 * recog.h (struct insn_data): Rename to:
4396 (struct_insn_data_d). Adjusted all users.
4397
4398 2010-06-23 Arnaud Charlet <charlet@adacore.com
4399
4400 PR ada/22220
4401 * doc/install.texi: Update requirements to build GNAT.
4402
4403 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
4404
4405 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
4406 enum type.
4407 (m68k_sched_attr_opx_type): Remove unreachable return.
4408 (m68k_sched_attr_opy_type): Likewise.
4409 (m68k_sched_attr_size): Likewise.
4410 (sched_get_opxy_mem_type): Likewise.
4411 (m68k_sched_attr_op_mem): Likewise.
4412
4413 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
4414
4415 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
4416 new statement and adjust VDEF only if necessary. Remove superfluous
4417 call to maybe_clean_or_replace_eh_stmt.
4418 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
4419 copy the flags.
4420 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
4421 * tree-inline.c (copy_bb): ...and not there.
4422
4423 2010-06-22 Cary Coutant <ccoutant@google.com>
4424
4425 * dwarf2out.c (is_nested_in_subprogram): New function.
4426 (should_move_die_to_comdat): Use it.
4427 (copy_ancestor_tree): Don't mark DIEs here.
4428 (copy_decls_walk): Start walk from root of newly-added tree;
4429 mark DIEs here instead.
4430
4431 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
4432
4433 * config/i386/i386.md (unit): Also check sseishft1.
4434
4435 2010-06-22 Jan Hubicka <jh@suse.cz>
4436
4437 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
4438 enabled.
4439
4440 2010-06-22 Jan Hubicka <jh@suse.cz>
4441
4442 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
4443 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
4444 Return true if something changed.
4445 * df.h (df_confluence_function_n): Return bool.
4446 * df-core.c (df_worklist_propagate_forward,
4447 df_worklist_propagate_backward): Track changes and ages.
4448 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
4449 track ages.
4450 * dse.c (dse_confluence_n): Return always true.
4451
4452 2010-06-22 Jan Hubicka <jh@suse.cz>
4453
4454 * bitmap.c (bitmap_clear_bit): Micro optimize.
4455
4456 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
4457
4458 * config/i386/i386.md (SWI1248x): New mode iterator.
4459 (SWI48x): Ditto.
4460 (SWI12): Ditto.
4461 (SWI24): Ditto.
4462
4463 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
4464 SWI1248x mode iterator.
4465 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
4466 using SWI124 mode iterator.
4467 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
4468 mode iterator.
4469 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
4470 *pushdi2_prologue_rex64 using P mode iterator.
4471 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
4472 using SWI48 mode iterator.
4473 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
4474 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
4475 using SWI1248x mode iterator.
4476 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
4477 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
4478 SWI48 mode iterator.
4479 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
4480 iterator.
4481 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
4482 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
4483 SWI12 mode iterator.
4484 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
4485 SWI12 mode iterator.
4486 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
4487 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
4488 SWI24 mode iterator.
4489 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
4490 SWI48 mode iterator.
4491 (mov<mode>_insn_1): New expander.
4492 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
4493 using SWI48x mode iterator.
4494
4495 (*movoi_internal_avx): Rename from *movoi_internal.
4496 (*movti_internal_rex64): Rename from *movti_rex64.
4497 (*movti_internal_sse): Rename from *movti_sse.
4498 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
4499 (*movdi_internal): Rename from *movdi_2.
4500 (*movsi_internal): Rename from *movsi_1.
4501 (*movhi_internal): Rename from *movhi_1.
4502 (*movqi_internal): Rename from *movqi_1.
4503
4504 (insv): Update the call to gen_movsi_insv_1 for rename.
4505 * config/i386/i386.c (promote_duplicated_reg): Ditto.
4506
4507 2010-06-22 Jan Hubicka <jh@suse.cz>
4508
4509 * passes.c (execute_function_todo): Move call of statistics_fini_pass
4510 to ...
4511 (execute_todo) ... this one.
4512
4513 2010-06-22 Alan Modra <amodra@gmail.com>
4514
4515 PR target/44364
4516 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4517 * caller-save.c (insert_restore, insert_save): Use non-validate
4518 form of adjust_address.
4519
4520 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4521
4522 PR target/39690
4523 * config/pa/pa.c (override_options): Disable
4524 -freorder-blocks-and-partition.
4525
4526 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
4527
4528 PR target/44615
4529 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
4530
4531 * config/i386/i386.md (type): Add sseishft1
4532
4533 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
4534 (ppro_insn_load): Likewise.
4535 (ppro_insn_store): Likewise.
4536 (ppro_insn_both): Likewise.
4537
4538 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
4539 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
4540 for type.
4541 (*vec_extractv2di_1_avx): Likewise.
4542 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
4543 type. Remove atom_unit.
4544 (*vec_extractv2di_1_sse2): Likewise.
4545
4546 2010-06-21 DJ Delorie <dj@redhat.com>
4547
4548 * diagnostic.h (diagnostic_classification_change_t): New.
4549 (diagnostic_context): Add history and push/pop list.
4550 (diagnostic_push_diagnostics): Declare.
4551 (diagnostic_pop_diagnostics): Declare.
4552 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
4553 from pragmas in a history chain instead of the global table.
4554 (diagnostic_push_diagnostics): New.
4555 (diagnostic_pop_diagnostics): New.
4556 (diagnostic_report_diagnostic): Scan history chain to find state
4557 of diagnostics as of the diagnostic location.
4558 * opts.c (set_option): Pass UNKNOWN_LOCATION to
4559 diagnostic_classify_diagnostic.
4560 (enable_warning_as_error): Likewise.
4561 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
4562 use in the history chain.
4563 * doc/extend.texi: Document pragma GCC diagnostic changes.
4564
4565 2010-06-21 Jakub Jelinek <jakub@redhat.com>
4566
4567 * dwarf2out.c (add_linkage_name): New function. Don't add
4568 anything to DW_TAG_member DIEs.
4569 (add_name_and_src_coords_attributes): Use it.
4570 (gen_variable_die): Call it for C++ static data members if
4571 specification is DW_TAG_member.
4572
4573 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
4574 C++ char16_t and char32_t.
4575
4576 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
4577 * genattrtab.c: Include vecprim.h.
4578 (cached_attrs, cached_attr_count, attrs_seen_once,
4579 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
4580 attrs_cached_after): New variables.
4581 (find_attrs_to_cache): New function.
4582 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
4583 (write_test_expr): Add attrs_cached argument, return it too,
4584 attempt to cache non-const attributes used more than once in
4585 a single case handling.
4586 (write_attr_get): Use find_attrs_to_cache, for caching candidates
4587 emit cached_* variables. Adjust write_attr_set callers.
4588 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
4589 to find attributes that should be cached in this block. Adjust
4590 write_test_expr callers.
4591 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
4592 callers.
4593 (make_automaton_attrs): Adjust write_test_expr caller.
4594
4595 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
4596 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
4597 (make_automaton_attrs): If find_tune_attr returns non-NULL,
4598 write separate internal_dfa_insn_code_* and insn_default_latency_*
4599 functions for each attribute's value and emit init_sched_attrs
4600 function and function pointers.
4601 * genattr.c (const_attrs, reservations): New variables.
4602 (gen_attr): Add const attributes to const_attrs vector.
4603 (check_tune_attr, find_tune_attr): New functions.
4604 (main): Add reservations to reservations vector. If find_tune_attr
4605 returns true, add prototype for init_sched_attrs and make
4606 internal_dfa_insn_code and insn_default_latency function pointers,
4607 otherwise define init_sched_attrs as dummy macro.
4608 * cfgexpand.c: Include insn-attr.h.
4609 (gimple_expand_cfg): Call init_sched_attrs.
4610
4611 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
4612
4613 PR target/44575
4614 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
4615 va_arg from a set of register save slots into a temporary,
4616 if the container is bigger than type size, do the copying
4617 using smaller mode or using memcpy.
4618
4619 PR bootstrap/44426
4620 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
4621 prototype.
4622 (sel_print_to_dot): Remove macro.
4623 (sel_print): Likewise. New prototype.
4624 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
4625 (sel_print): New function.
4626
4627 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4628
4629 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
4630 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
4631
4632 2010-06-21 Nick Clifton <nickc@redhat.com>
4633
4634 * config/rx/rx.h (PTRDIFF_TYPE): Define.
4635 (SMALL_REGISTER_CLASS): Define (to zero).
4636 (PRINT_OPERAND): Delete.
4637 (PRINT_OPERAND_ADDRESS): Delete.
4638 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
4639 (rx_print_operand_address): Delete prototype.
4640 * config/rx/rx.c (rx_print_operand): Make static.
4641 Allow %H and %L to handle CONST_DOUBLEs.
4642 (rx_print_operand_address): Make static.
4643 (rx_gen_move_template): Rename local variable 'template' to
4644 out_template.
4645 (rx_function_arg): Do not pass unknown sized objects in registers.
4646 (TARGET_PRINT_OPERAND): Define.
4647 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4648
4649 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4650
4651 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
4652
4653 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
4654
4655 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
4656 stack-alignment for simple leaf-functions.
4657
4658 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
4659
4660 * doc/install.texi: Document bootstrap-lto.
4661
4662 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
4663
4664 PR debug/44248
4665 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
4666 (input_function): Drop them here, if VTA is disabled.
4667
4668 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
4669
4670 PR target/44546
4671 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
4672 New predicate.
4673 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
4674 ix86_swapped_fp_comparsion_operator instead of
4675 ix86_fp_comparison_operator.
4676
4677 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
4678 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
4679 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
4680 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
4681 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
4682 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
4683
4684 2010-06-20 Joseph Myers <joseph@codesourcery.com>
4685
4686 PR other/32998
4687 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
4688 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
4689 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
4690 (decode_cmdline_option): Update for this return value. Set
4691 orig_option_with_args_text field. Set arg field for unknown
4692 options. Make static.
4693 (decode_cmdline_options_to_array): New.
4694 (prune_options): Update handling of find_opt return value.
4695 * opts.c (read_cmdline_option): Take decoded option. Return void.
4696 (read_cmdline_options): Take decoded options.
4697 (decode_options): Add parameters for decoded options. Use
4698 decode_cmdline_options_to_array. Use decoded options for -O
4699 scan. Use integral_argument for -O parameters. Update call to
4700 read_cmdline_options.
4701 (enable_warning_as_error): Update handling of find_opt return value.
4702 * opts.h: Update comment on unknown options.
4703 (struct cl_decoded_option): Update comments on opt_index and arg.
4704 Add orig_option_with_args_text.
4705 (decode_cmdline_option): Remove.
4706 (decode_cmdline_options_to_array): Declare.
4707 (decode_options): Update prototype.
4708 * toplev.c (save_argv): Remove.
4709 (save_decoded_options, save_decoded_options_count): New.
4710 (read_integral_parameter): Remove.
4711 (print_switch_values): Use decoded options.
4712 (toplev_main): Don't set save_argv. Update call to decode_options.
4713 * toplev.h (read_integral_parameter): Remove.
4714 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
4715
4716 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
4717
4718 PR target/44072
4719 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
4720 immediate.
4721 * constraints.md (Pw, Px): New constraints.
4722 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
4723
4724 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
4725
4726 * config/i386/sse.md (fma4modesuffixf4): Removed.
4727 (ssemodesuffixf2s): Likewise.
4728 (ssemodesuffixf4): Likewise.
4729 (ssemodesuffixf2c): Likewise.
4730 (ssescalarmodesuffix2s): Likewise.
4731 (avxmodesuffixf2c): Likewise.
4732 (ssemodesuffix): New.
4733 (ssescalarmodesuffix): Likewise.
4734 Update patterns with ssemodesuffix and ssescalarmodesuffix.
4735
4736 2010-06-19 Philip Herron <herron.philip@googlemail.com>
4737
4738 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
4739
4740 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
4741
4742 * stor-layout.c (debug_rli): Remove unused local variables.
4743
4744 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
4745
4746 PR rtl-optimization/40900
4747 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
4748 original expression for later reuse.
4749 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
4750 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
4751
4752 2010-06-18 Anatoly Sokolov <aesok@post.ru>
4753
4754 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
4755 double_int_fits_in_uhwi_p): Implement as static inline.
4756 (double_int_xor): New inline function.
4757 (double_int_lrotate, double_int_rrotate, double_int_max,
4758 double_int_umax, double_int_smax, double_int_min, double_int_umin,
4759 double_int_smin): Declare.
4760 (lrotate_double, rrotate_double): Remove declaration.
4761 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
4762 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
4763 (double_int_lrotate, double_int_rrotate, double_int_max,
4764 double_int_umax, double_int_smax, double_int_min, double_int_umin,
4765 double_int_smin): New function.
4766 * fold-const.c (int_const_binop): Clean up, use double_int_*
4767 functions.
4768 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
4769 double_int_* and immed_double_int_const functions.
4770
4771 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4772
4773 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
4774 * function.c (types_used_by_cur_var_decl): Likewise.
4775 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
4776
4777 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4778
4779 * tree.h (record_layout_info): Change type of pending_statics field
4780 to a VEC.
4781 * stor-layout.c (start_record_layout): Store NULL into
4782 pending_statics.
4783 (debug_rli): Call debug_vec_tree instead of debug_tree.
4784 (place_field): Likewise.
4785 (finish_record_layout): Likewise.
4786
4787 2010-06-18 Alan Modra <amodra@gmail.com>
4788
4789 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
4790
4791 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4792
4793 PR target/43740
4794 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
4795 for SET source operand from SET destination operand.
4796
4797 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
4798
4799 PR rtl-optimization/39871
4800 * reload1.c (init_eliminable_invariants): For flag_pic, disable
4801 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
4802 (function_invariant_p): Rule out a plus of frame or arg pointer with
4803 a SYMBOL_REF.
4804 * ira.c (find_reg_equiv_invariant_const): Likewise.
4805
4806 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
4807
4808 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
4809 print_operand_address and puts to output the operand for CONST.
4810
4811 2010-06-17 Jakub Jelinek <jakub@redhat.com>
4812
4813 PR debug/44572
4814 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
4815 hook.
4816
4817 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4818
4819 * v850-protos.h (print_operand): Delete.
4820 (print_operand_address): Delete.
4821 * v850.h (PRINT_OPERAND): Delete.
4822 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4823 (PRINT_OPERAND_ADDRESS): Delete.
4824 * v850.c (print_operand_address): Rename to...
4825 (v850_print_operand_address): ...this. Make static. Call
4826 v850_print_operand.
4827 (print_operand): Rename to...
4828 (v850_print_operand): ...this. Make static. Call
4829 v850_print_operand_address.
4830 (v850_print_operand_punct_valid_p): New function.
4831 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4832 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4833
4834 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4835
4836 * config/sh/sh-protos.h (print_operand): Delete.
4837 (print_operand_address): Delete.
4838 * config/sh/sh.h (PRINT_OPERAND): Delete.
4839 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4840 (PRINT_OPERAND_ADDRESS): Delete.
4841 * config/sh/sh.c (sh_print_operand_address): Make static.
4842 (sh_print_operand): Make static. Call sh_print_operand_address
4843 and sh_print_operand.
4844 (sh_print_operand_punct_valid_p): New function.
4845 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4846 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4847
4848 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4849
4850 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
4851 (mcore_print_operand_address): Delete.
4852 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
4853 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4854 (PRINT_OPERAND_ADDRESS): Delete.
4855 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
4856 (mcore_print_operand): Make static.
4857 (mcore_print_operand_punct_valid_p): New function.
4858 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
4859 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4860
4861 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4862
4863 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
4864 (print_operand_address): Delete.
4865 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
4866 (PRINT_OPERAND_ADDRESS): Delete.
4867 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
4868 static.
4869 (m68hc11_print_operand): Make static.
4870 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4871
4872 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4873
4874 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
4875 (m32r_print_operand_address): Delete.
4876 * config/m32r/m32r.h (m32r_punct_chars): Delete.
4877 (PRINT_OPERAND): Delete.
4878 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4879 (PRINT_OPERAND_ADDRESS): Delete.
4880 * config/m32r/m32r.c (m32r_punct_chars): Make static.
4881 (m32r_print_operand_address): Make static.
4882 (m32r_print_operand): Make static.
4883 (m32r_print_operand_punct_valid_p): New function.
4884 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4885 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4886
4887 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4888
4889 * config/iq2000/iq2000-protos.h (print_operand): Delete.
4890 (print_operand_address): Delete.
4891 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
4892 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4893 (PRINT_OPERAND_ADDRESS): Delete.
4894 (iq2000_print_operand_punct): Delete.
4895 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
4896 (iq2000_print_operand_address): Make static.
4897 (iq2000_print_operand): Make static.
4898 (iq2000_print_operand_punct_valid_p): New function.
4899 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4900 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4901
4902 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4903
4904 * config/frv/frv-protos.h (frv_print_operand): Delete.
4905 (frv_print_operand_address): Delete.
4906 * config/frv/frv.h (PRINT_OPERAND): Delete.
4907 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4908 (PRINT_OPERAND_ADDRESS): Delete.
4909 * config/frv/frv.c (frv_print_operand_address): Make static.
4910 (frv_print_operand): Make static.
4911 (frv_print_operand_punct_valid_p): New function.
4912 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4913 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4914
4915 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4916
4917 * tree.h (vec_member): Declare.
4918 * tree.c (vec_member): Define.
4919
4920 2010-06-17 Richard Guenther <rguenther@suse.de>
4921
4922 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
4923 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
4924
4925 2010-06-17 Richard Guenther <rguenther@suse.de>
4926
4927 * tree-inline.c (declare_return_variable): Remove bogus code.
4928
4929 2010-06-17 Richard Guenther <rguenther@suse.de>
4930
4931 * gimplify.c (gimplify_bind_expr): Always promote complex
4932 and vector variables to registers if possible.
4933
4934 2010-06-17 Richard Guenther <rguenther@suse.de>
4935
4936 * expr.c (get_inner_reference): Use double_int for bit_offset
4937 calculation.
4938
4939 2010-06-16 DJ Delorie <dj@redhat.com>
4940
4941 * common.opt (-fstrict-volatile-bitfields): new.
4942 * doc/invoke.texi: Document it.
4943 * fold-const.c (optimize_bit_field_compare): For volatile
4944 bitfields, use the field's type to determine the mode, not the
4945 field's size.
4946 * expr.c (expand_assignment): Likewise.
4947 (get_inner_reference): Likewise.
4948 (expand_expr_real_1): Likewise.
4949 * expmed.c (store_fixed_bit_field): Likewise.
4950 (extract_bit_field_1): Likewise.
4951 (extract_fixed_bit_field): Likewise.
4952
4953 2010-06-16 Richard Guenther <rguenther@suse.de>
4954
4955 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
4956
4957 2010-06-16 Douglas B Rupp <rupp@gnat.com>
4958
4959 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
4960 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
4961 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
4962 * debug.c: Likewise.
4963 * sdbout.c: Likewise.
4964 * vmsdbgout.c: Likewise.
4965 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
4966 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
4967 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
4968 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
4969 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
4970 * dwarf2out.c (dw_fde_struct): New fields
4971 dw_fde_vms_{end,begin}_prologue.
4972 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
4973 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
4974 (dwarf2out_vms_end_prologue): New function.
4975 (dwarf2out_vms_begin_epilogue): New function.
4976 (dw_val_struct): New value dw_val_class_vms_delta.
4977 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
4978 begin_epilogue for VMS.
4979 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
4980 new static functions.
4981 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
4982 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
4983 static functions.
4984 (print_die): New case dw_val_class_vms_delta.
4985 (attr_checksum): Likewise.
4986 (same_dw_val_p: Likewise.
4987 (size_of_die): Likewise.
4988 (value_format): Likewise.
4989 (output_die): Likewise.
4990 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
4991 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
4992 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
4993 dwarf2out_cfi_begin_epilogue
4994 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
4995
4996 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
4997
4998 * config/cris/cris-protos.h (cris_print_operand): Delete.
4999 (cris_print_operand_address): Delete.
5000 * config/cris/cris.h (PRINT_OPERAND): Delete.
5001 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5002 (PRINT_OPERAND_ADDRESS): Delete.
5003 * config/cris/cris.c (cris_print_operand_address): Make static.
5004 (cris_print_operand): Make static.
5005 (cris_print_operand_punct_valid_p): New function.
5006 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5007 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5008
5009 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
5010
5011 * config/arm/arm-protos.h (arm_print_operand): Delete.
5012 (arm_print_operand_address): Delete.
5013 * config/arm/arm.h (PRINT_OPERAND): Delete.
5014 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5015 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
5016 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
5017 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
5018 (arm_print_operand): Make static.
5019 (arm_print_operand_punct_valid_p): New function.
5020 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5021 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5022
5023 2010-06-16 Nick Clifton <nickc@redhat.com>
5024
5025 * config/rx/constraints.md (NEGint4): New constraint.
5026 * config/rx/rx.md (attr cc): Add set_zsc.
5027 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
5028 initialised.
5029 (cmpsf): Likewise.
5030 (call_internal): Clobber the cc0 register.
5031 (call_value_internal): Likewise.
5032 (cstoresi4): Likewise.
5033 (movsieq): Likewise.
5034 (movsine): Likewise.
5035 (addsi3): Add alternative to handle small negative constants.
5036 (sunsi3): Likewise.
5037 (addsi3): Do not set the O bit in the cc0 register.
5038 (adddi3): Likewise.
5039 (subsi3): Likewise.
5040 (subdi3): Likewise.
5041 (andsi3): Reorder alternatives to prefer shorter forms.
5042 (mulsi3): Likewise.
5043 (iorsi3): Likewise.
5044 (negsi2): Note that the cc0 flags are set.
5045 (rotlsi3): Note that only the Z and S bits are set in cc0.
5046 (lshrsi3): Likewise.
5047 (ashlsi3): Likewise.
5048 (subsf3): Use %Q for the MEM operand.
5049 (fix_truncsfsi2): Likewise.
5050 (floatsisf2): Likewise.
5051 (bitset): Remove early clobber from destination.
5052 (bitset_in_memory): Likewise.
5053 (lrintsf2): Clobber the cc0 register.
5054 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
5055 (rx_print_operand): Handle %N.
5056
5057 2010-06-16 Jan Hubicka <jh@suse.cz>
5058
5059 * df-core.c (df_compact_blocks): Free problem_temps vector.
5060
5061 2010-06-16 Martin Jambor <mjambor@suse.cz>
5062
5063 PR tree-optimization/43905
5064 * tree-sra.c: Include tree-inline.h.
5065 (create_abstract_origin): Removed.
5066 (modify_function): Version the call graph node instead of creating
5067 abstract origins and dealing with same_body aliases.
5068 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
5069 function is versionable.
5070 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
5071
5072 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
5073
5074 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
5075 (CHOOSE_DYNAMIC_LINKER): Update.
5076
5077 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
5078
5079 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
5080 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
5081 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
5082 *prefetch_3dnow_rex.
5083
5084 2010-06-15 Anatoly Sokolov <aesok@post.ru>
5085
5086 * target.h (struct asm_out):Add declare_constant_name field.
5087 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
5088 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
5089 * output.h (default_asm_declare_constant_name): Declare.
5090 (assemble_label): Update prototype.
5091 * varasm.c (assemble_constant_contents): Use
5092 targetm.asm_out.declare_constant_name target hook.
5093 (assemble_label): Add 'file' argument.
5094 (default_asm_declare_constant_name): New function.
5095 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
5096 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
5097 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
5098
5099 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
5100 * config/darwin.c (darwin_asm_declare_constant_name): New function.
5101 (machopic_output_indirection): Update assemble_label argument list.
5102 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
5103 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
5104
5105 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
5106
5107 PR middle-end/44391
5108 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
5109 size_one_node for pointer types. Do not call gmp_cst_to_tree.
5110
5111 2010-06-15 Richard Guenther <rguenther@suse.de>
5112
5113 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
5114
5115 2010-06-15 Paul Brook <paul@codesourcery.com>
5116
5117 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
5118 hard-float ABI.
5119
5120 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
5121
5122 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
5123 don't get a vector type for output.
5124
5125 2010-06-15 Jakub Jelinek <jakub@redhat.com>
5126
5127 PR fortran/44536
5128 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
5129 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
5130 (LANG_HOOKS_DECLS): Add it.
5131 * gimplify.c (omp_notice_variable): Call
5132 lang_hooks.decls.omp_report_decl.
5133
5134 2010-06-15 Martin Jambor <mjambor@suse.cz>
5135
5136 PR lto/44464
5137 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
5138 on the newly dead SSA name.
5139
5140 2010-06-15 Alan Modra <amodra@gmail.com>
5141
5142 * doc/invoke.texi: Add mcmodel to powerpc options.
5143 * configure.ac: Add HAVE_LD_LARGE_TOC test.
5144 * configure: Regenerate.
5145 * config.in: Regenerate.
5146 * config/rs6000/linux64.opt (mcmodel): New.
5147 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
5148 (TARGET_CMODEL, SET_CMODEL): Define.
5149 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
5150 select CMODEL_MEDIUM default.
5151 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
5152 (TARGET_CMODEL): Define default.
5153 * config/rs6000/rs6000.c (cmodel): New variable.
5154 (rs6000_explicit_options): Add cmodel field.
5155 (rs6000_handle_option): Handle -mcmodel.
5156 (create_TOC_reference): Add largetoc_reg param. Generate high,
5157 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
5158 (rs6000_delegitimize_address): Recognise new toc reference rtl
5159 and minimal-toc rtl.
5160 (rs6000_legitimize_reload_address): Handle new toc references.
5161 (print_operand_address): Handle legitimate_constant_pool_address_p
5162 match before lo_sum.
5163 (rs6000_eliminate_indexed_memrefs): Tidy.
5164 (rs6000_emit_move): Tweak threshold for inlining constants.
5165 Keep rs6000_emit_allocate_stack large stack frame offsets
5166 loaded into r0 inline.
5167 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
5168 (tocrel_base, tocrel_offset): New variables.
5169 (toc_relative_expr_p): Set them here.
5170 (print_operand_address): Skip over any offset on constant pool address.
5171 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
5172 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
5173 (offsettable_ok_by_alignment): New function.
5174 (rs6000_emit_move): Address suitably aligned local symbol_refs
5175 relative to the toc pointer for -mcmodel=medium.
5176 (legitimate_constant_pool_address_p): Make param const_rtx. Add
5177 strict param. Allow lo_sum version of addressing. Verify reg
5178 used for -mminimal-toc and -mcmodel != small. Update all callers.
5179 * config/rs6000/constraints.md: Update for above change.
5180 * config/rs6000/predicates.md: Likewise.
5181 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
5182 code.
5183 (tls_gd): Split for -mcmodel=medium/large.
5184 (tls_gd_high, tls_gd_low): New.
5185 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
5186 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
5187 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
5188 (largetoc_high, largetoc_low): New.
5189 (cmptf_internal2): Add clobber.
5190 * config/rs6000/rs6000-protos.h: Update.
5191
5192 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
5193
5194 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
5195 true if no prefetch is going to be generated for a given group.
5196 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
5197 estimate the prefetch_count.
5198 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
5199 prefetch count by considering the unroll_factor and prefetch_mod
5200 for is_loop_prefetching_profitable.
5201
5202 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
5203
5204 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
5205 anything if the argument is not a MEM.
5206
5207 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
5208
5209 PR debug/43650
5210 PR debug/44181
5211 PR debug/44247
5212 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
5213 debug stmts.
5214 (canonicalize_loop_ivs): Likewise.
5215
5216 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
5217
5218 PR debug/43656
5219 * haifa-sched.c (setup_insn_reg_pressure_info,
5220 update_register_pressure): Reject debug insns.
5221 (ready_sort): Don't setup reg pressure for debug insns.
5222 (schedule_insn): Don't update reg pressure for debug insns.
5223
5224 2010-06-14 Richard Guenther <rguenther@suse.de>
5225
5226 * lto-streamer.c (cached_bp): Remove.
5227 (bitpack_delete): Likewise.
5228 (bitpack_create): Likewise.
5229 (bp_get_next_word): Likewise.
5230 (bp_pack_value, bp_unpack_value): Move ...
5231 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
5232 Re-implement.
5233 (struct bitpack_d): Likewise.
5234 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
5235 New inline functions.
5236 * lto-streamer-out.c (lto_output_bitpack): Remove.
5237 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
5238 (pack_value_fields): Adjust.
5239 (lto_write_tree): Likewise.
5240 (output_gimple_stmt): Likewise.
5241 (output_function): Likewise.
5242 * lto-streamer-in.c (input_gimple_stmt): Adjust.
5243 (input_function): Likewise.
5244 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
5245 (lto_input_bitpack): Remove.
5246 (lto_materialize_tree): Adjust.
5247 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
5248 * lto-cgraph.c (lto_output_edge): Adjust.
5249 (lto_output_node): Likewise.
5250 (lto_output_varpool_node): Likewise.
5251 (lto_output_ref): Likewise.
5252 (input_node): Likewise.
5253 (input_varpool_node): Likewise.
5254 (input_ref): Likewise.
5255 (input_edge): Likewise.
5256 (output_node_opt_summary): Likewise.
5257 (input_node_opt_summary): Likewise.
5258 * ipa-pure-const.c (pure_const_write_summary): Likewise.
5259 (pure_const_read_summary): Likewise.
5260 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
5261 (ipa_read_indirect_edge_info): Likewise.
5262 (ipa_write_node_info): Likewise.
5263 (ipa_read_node_info): Likewise.
5264
5265 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
5266
5267 PR target/44534
5268 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
5269 (vec_extract_lo_v16hi): Likewise.
5270 (vec_extract_lo_v32qi): Likewise.
5271
5272 2010-06-14 Jakub Jelinek <jakub@redhat.com>
5273
5274 PR bootstrap/44426
5275 * tree.h (build_call_expr): Don't define as vararg macro, instead
5276 add a prototype.
5277 * builtins.c (build_call_nofold): Remove.
5278 (expand_builtin_int_roundingfn, expand_builtin_pow,
5279 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
5280 expand_builtin_memset_args, expand_builtin_strcmp,
5281 expand_builtin_strncmp, expand_builtin_memory_chk): Use
5282 build_call_nofold_loc instead of build_call_nofold.
5283 (build_call_expr): New function.
5284
5285 PR tree-optimization/44508
5286 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
5287 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
5288 don't eliminate trivially dead stmts.
5289 * tree-vrp.c (vrp_finalize): Pass false as last argument
5290 to substitute_and_fold.
5291 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
5292 to substitute_and_fold.
5293 * tree-ssa-ccp.c (ccp_finalize): Likewise.
5294
5295 PR bootstrap/44509
5296 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
5297
5298 2010-06-14 Ira Rosen <irar@il.ibm.com>
5299
5300 PR tree-optimization/44507
5301 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
5302 to build initial vector for BIT_AND_EXPR.
5303 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
5304
5305 2010-06-14 Jakub Jelinek <jakub@redhat.com>
5306
5307 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
5308 adjust z10prop set_attr.
5309
5310 2010-06-13 Jan Hubicka <jh@suse.cz>
5311
5312 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
5313 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
5314 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
5315 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
5316 datastructure checks into checking asserts.
5317 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
5318 * tree-ssa-sccvn.c (VN_INFO): Likewise.
5319 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
5320 df_ref_create_structure): Likewise.
5321 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
5322 pool_free): Use gcc_checking_assert.
5323 * alias.c (get_alias_set): Likewise.
5324 * var-tracking.c (variable_htab_free, shared_hash_copy,
5325 canonicalize_values_mark, variable_merge_over_cur): Likewise.
5326 * lto-streamer.c (bp_unpack_value): Likewise.
5327
5328 2010-06-13 Richard Guenther <rguenther@suse.de>
5329
5330 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
5331 Do not stream but initialize TYPE_CANONICAL to NULL.
5332 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
5333 * gimple.c (gimple_types_compatible_p): Disregard
5334 TYPE_STRUCTURAL_EQUALITY_P.
5335 (gimple_register_type): Use TYPE_CANONICAL as cache.
5336 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
5337 before registering common types.
5338 * config/i386/i386.c (ix86_function_arg_boundary): Do not
5339 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
5340 * tree.h (TYPE_CANONICAL): Clarify documentation.
5341
5342 2010-06-13 Anatoly Sokolov <aesok@post.ru>
5343
5344 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
5345 LIBCALL_VALUE): Remove macros.
5346 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
5347 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5348 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5349 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
5350 (ia64_function_value): Make static. Handle receiving the function
5351 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
5352
5353 2010-06-12 Jan Hubicka <jh@suse.cz>
5354
5355 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
5356 at correct place.
5357
5358 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
5359
5360 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
5361
5362 2010-06-12 Jan Hubicka <jh@suse.cz>
5363
5364 * df-core.c (df_clear_bb_info): New function.
5365 (df_set_blocks): bb_info is always allocated.
5366 (df_get_bb_info): Use block_info_elt_size.
5367 (df_set_bb_info): Likewise.
5368 (df_compact_blocks): Update for new block_info.
5369 (grow_bb_info): New function.
5370 * df-problems.c (df_grow_bb_info): Move to df-core.c
5371 (df_rd_set_bb_info): Remove.
5372 (df_rd_free_bb_info): Do not free block pool.
5373 (df_rd_alloc): Do not create pool, use check for
5374 obstack presence instead of NULL pointer for new blocks.
5375 (df_rd_free): DO not free alloc pool; clear block_info.
5376 (problem_RD): Add size of block info structure.
5377 (df_lr_set_bb_info): Remove.
5378 (df_lr_free_bb_info): Do not free block pool.
5379 (df_lr_alloc): Do not create pool, use check for
5380 obstack presence instead of NULL pointer for new blocks.
5381 (df_lr_free): DO not free alloc pool; clear block_info.
5382 (problem_LR): Add size of block info structure.
5383 (df_live_set_bb_info): Remove.
5384 (df_live_free_bb_info): Do not free block pool.
5385 (df_live_alloc): Do not create pool, use check for
5386 obstack presence instead of NULL pointer for new blocks.
5387 (df_live_free): DO not free alloc pool; clear block_info.
5388 (problem_LIVE): Add size of block info structure.
5389 (problem_CHAIN): Add size of block info structure.
5390 (df_byte_lr_set_bb_info): Remove.
5391 (df_byte_lr_free_bb_info): Do not free block pool.
5392 (df_byte_lr_alloc): Do not create pool, use check for
5393 obstack presence instead of NULL pointer for new blocks.
5394 (df_byte_lr_free): DO not free alloc pool; clear block_info.
5395 (problem_BYTE_LR): Add size of block info structure.
5396 (problem_NOTE): Add size of block info structure.
5397 (df_byte_MD_set_bb_info): Remove.
5398 (df_byte_MD_free_bb_info): Do not free block pool.
5399 (df_byte_MD_alloc): Do not create pool, use check for
5400 obstack presence instead of NULL pointer for new blocks.
5401 (df_byte_MD_free): DO not free alloc pool; clear block_info.
5402 (problem_BD): Add size of block info structure.
5403 * df-scan.c (df_scan_free_internal): Free block pool.
5404 (df_scan_set_bb_info): Remove.
5405 (df_scan_free_bb_info): Check for artificial_defs instead
5406 of bb_info being non-NULL.
5407 (df_scan_alloc): DO not create df_scan_block pool.
5408 (problem_SCAN): Set size of block info.
5409 (df_bb_refs_record): Do not allocate bb_info.
5410 * df.h (df_problem): Add block_info_elt_size.
5411 (struct dataflow): Change block_info to void *.
5412 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
5413 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
5414 in-line structures.
5415
5416 2010-06-12 Jan Hubicka <jh@suse.cz>
5417
5418 PR tree-optimize/44485
5419 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
5420 containing use of return value of noreturn function.
5421
5422 2010-06-12 Anatoly Sokolov <aesok@post.ru>
5423
5424 * targhooks.c (default_function_value): Don't use
5425 FUNCTION_OUTGOING_VALUE.
5426 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
5427 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
5428
5429 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
5430
5431 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
5432 Add crtfastmath.o to extra_parts.
5433 * config/mips/crtfastmath.c: New.
5434 * config/mips/linux.h (ENDFILE_SPEC): New.
5435
5436 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
5437
5438 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
5439 old_type in parameter.
5440 (gcc_type_for_value): Update call to gcc_type_for_interval.
5441 (compute_type_for_level_1): Renamed compute_type_for_level.
5442 Update call to gcc_type_for_interval.
5443
5444 2010-06-11 Joseph Myers <joseph@codesourcery.com>
5445
5446 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
5447 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
5448
5449 2010-06-11 Joseph Myers <joseph@codesourcery.com>
5450
5451 * opts-common.c: Include options.h.
5452 (integral_argument): Move from opts.c.
5453 (decode_cmdline_option): New. Based on read_cmdline_option.
5454 * opts.c (integral_argument): Move to opts-common.c.
5455 (read_cmdline_option): Move most contents to
5456 decode_cmdline_option. Use %qs in diagnostics.
5457 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
5458 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
5459 decode_cmdline_option): New.
5460
5461 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
5462
5463 PR target/44481
5464 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
5465 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
5466 (partiysi2_cmp): Ditto.
5467 (*partiyhi2_cmp): Ditto.
5468 (*parityqi2_cmp): Remove.
5469
5470 2010-06-11 Jan Hubicka <jh@suse.cz>
5471
5472 * bitmap.h (bmp_iter_next_bit): New.
5473 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
5474
5475 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
5476 Eric Botcazou <ebotcazou@adacore.com>
5477
5478 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
5479 computed cost.
5480
5481 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
5482
5483 * config/i386/i386.md (unspec): New define_c_enum.
5484 (unspecv): Ditto.
5485
5486 2010-06-10 Jakub Jelinek <jakub@redhat.com>
5487
5488 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
5489
5490 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
5491
5492 PR middle-end/44483
5493 * tree-if-conv.c (bb_predicate_s): New struct.
5494 (bb_predicate_p): New.
5495 (bb_has_predicate): New.
5496 (bb_predicate): New.
5497 (set_bb_predicate): New.
5498 (bb_predicate_gimplified_stmts): New.
5499 (set_bb_predicate_gimplified_stmts): New.
5500 (add_bb_predicate_gimplified_stmts): New.
5501 (init_bb_predicate): New.
5502 (free_bb_predicate): New.
5503 (is_predicated): Use bb_predicate.
5504 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
5505 (predicate_bbs): Same. Gimplify the condition of the basic blocks
5506 before processing their successors.
5507 (clean_predicate_lists): Removed.
5508 (find_phi_replacement_condition): Use bb_predicate.
5509 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
5510 computations.
5511 (insert_gimplified_predicates): New.
5512 (combine_blocks): Call insert_gimplified_predicates.
5513 (tree_if_conversion): Call free_bb_predicate instead of
5514 clean_predicate_lists.
5515
5516 2010-10-11 Paul Brook <paul@codesourcery.com>
5517
5518 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
5519 * config/arm/arm.c (all_architectures): Change v7e-m default to
5520 cortexm4.
5521 * config/arm/arm-cores.def: Add cortex-m4.
5522 * config/arm/arm-tune.md: Regenerate.
5523
5524 2010-06-11 Jan Hubicka <jh@suse.cz>
5525
5526 * ipa-pure-const.c (special_builtlin_state): New function.
5527 (check_call): Use it instead of special casign BUILT_IN_RETURN.
5528 (propagate_pure_const): Use it.
5529
5530 2010-06-11 Jan Hubicka <jh@suse.cz>
5531
5532 * df-problems.c (df_live_scratch): Convert to bitmap_head.
5533 (df_live_alloc): Initialize df_live_scratch when initializing
5534 problem_data.
5535 (df_live_transfer_function): Update uses of df_live_scratch.
5536 (df_live_free): Free problem_data; clear df_live_scratch before
5537 releasing the obstack.
5538 (df_md_free): Free problem data.
5539
5540 2010-06-11 Jan Hubicka <jh@suse.cz>
5541
5542 * doc/invoke.texi (Wsuggest-attribute): Document.
5543 (Wmissing-noreturn): Remove.
5544 * ipa-pure-const.c (warn_function_noreturn): New function.
5545 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
5546 warn_missing_noreturn.
5547 * common.opt (Wsuggest-attribute=noreturn): New.
5548 * tree-flow.h (warn_function_noreturn): Declare.
5549 * tree-cfg.c (execute_warn_function_noreturn): Use
5550 warn_function_noreturn.
5551 (gate_warn_function_noreturn): New.
5552 (pass_warn_function_noreturn): Update.
5553
5554 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5555
5556 * c-typeck.c (handle_warn_cast_qual): Add loc
5557 parameter. Improve warning message.
5558 (build_c_cast): Pass location to handle_warn_cast_qual.
5559
5560 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
5561
5562 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
5563 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
5564 insn mnemonic.
5565 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
5566
5567 2010-06-10 Dodji Seketeli <dodji@redhat.com>
5568
5569 Fix bootstap on mips
5570 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
5571 be naming typedefs.
5572
5573 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
5574
5575 * system.h (helper_const_non_const_cast): New inline for
5576 gcc version <= 4.0.
5577 (CONST_CAST2): For gcc version <= 4.0 use
5578 new helper to do const/non-const casting.
5579
5580 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5581
5582 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
5583 * Makefile.in (OBJS-common): Include insn-enums.o.
5584 (insn-enums.o): New rule.
5585 (simple_generated_c): Add insn-enums.c.
5586 (build/genenums.o): New rule.
5587 (genprogmd): Add "enums".
5588 * genconstants.c (print_enum_type): Declare a C string array
5589 for each enum.
5590 * genenums.c: New file.
5591 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
5592 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
5593 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
5594
5595 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5596
5597 * doc/md.texi (define_enum_attr): Document.
5598 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
5599 * read-md.h (lookup_enum_type): Declare.
5600 * read-md.c (lookup_enum_type): New function.
5601 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
5602 * genattrtab.c (attr_desc): Add an enum_name field.
5603 (evaluate_eq_attr): Take the associated attribute as argument.
5604 Get the enum prefix from the enum_name field, if defined.
5605 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
5606 (simplify_test_exp): Pass attr to evaluate_eq_attr.
5607 (add_attr_value): New function, split out from...
5608 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
5609 (write_test_expr): Pass attr to evaluate_eq_attr.
5610 (write_attr_get): Use the enum_name as the enum tag, if defined.
5611 (write_attr_valueq): Use the enum_name as a prefix, if defined.
5612 (find_attr): Initialize enum_name.
5613 (main): Handle DEFINE_ENUM_ATTR.
5614 * gensupport.c (process_rtx): Likewise.
5615 * config/mips/mips.h (mips_tune_attr): Delete.
5616 * config/mips/mips.md (cpu): Use define_attr_enum.
5617
5618 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5619
5620 * doc/md.texi (define_c_enum, define_enum): Document.
5621 * read-md.h (md_constant): Add a parent_enum field.
5622 (enum_value, enum_type): New structures.
5623 (upcase_string, traverse_enum_types): Declare.
5624 * read-md.c (enum_types): New variable.
5625 (upcase_string, add_constant): New functions.
5626 (handle_constants): Don't create the hash table here.
5627 Use add_constant.
5628 (traverse_md_constants): Don't check for a null md_constants.
5629 (decimal_string, handle_enum, traverse_enum_types): New functions.
5630 (read_md_files): Initialize md_constants and md_enums.
5631 * genconstants.c (print_md_constant): Ignore info argument.
5632 Only print constants that belong to no enum.
5633 (print_enum_type): New function.
5634 (main): Don't pass stdout to print_md_constant. Call print_enum_type
5635 for each defined enum type.
5636 * config/mips/mips.md (processor): New define_enum.
5637 (unspec): New define_c_enum.
5638 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
5639 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
5640 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
5641 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
5642 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
5643 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
5644 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
5645 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
5646 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
5647 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
5648 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
5649 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
5650 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
5651 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
5652 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
5653 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
5654 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
5655 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
5656 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
5657 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
5658 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
5659 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
5660 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5661 (UNSPEC_RDDSP): Move to mips-dsp.md.
5662 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
5663 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
5664 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
5665 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
5666 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
5667 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
5668 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
5669 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
5670 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
5671 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
5672 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
5673 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
5674 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
5675 Moved to mips-dspr2.md.
5676 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
5677 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
5678 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
5679 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
5680 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
5681 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
5682 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5683 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5684 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5685 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5686 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5687 UNSPEC_LOONGSON_PSADBH)
5688 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5689 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5690 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
5691 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5692 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5693 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5694 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
5695 (cpu): Update comment.
5696 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
5697 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
5698 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
5699 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
5700 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
5701 UNSPEC_LOONGSON_PCMPEQ)
5702 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
5703 UNSPEC_LOONGSON_PINSR_0)
5704 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5705 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5706 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5707 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5708 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5709 UNSPEC_LOONGSON_PSADBH)
5710 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5711 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5712 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
5713 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5714 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5715 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5716 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
5717 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
5718 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
5719 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
5720 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
5721 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
5722 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
5723 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
5724 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
5725 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
5726 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
5727 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
5728 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
5729 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
5730 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
5731 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
5732 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
5733 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
5734 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
5735 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
5736 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5737 (UNSPEC_RDDSP): Moved from mips.md.
5738 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
5739 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
5740 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
5741 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
5742 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
5743 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
5744 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
5745 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
5746 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
5747 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
5748 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
5749 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
5750 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
5751 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
5752 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
5753 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
5754 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
5755 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
5756 (UNSPEC_SCC): Moved from mips.md.
5757 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
5758 "processor_type" to "processor".
5759 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
5760 * config/mips/mips.h (processor_type): Delete.
5761 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
5762 "processor_type" to "processor".
5763
5764 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5765
5766 * configure.ac (tm_include_list): Add insn-constants.h.
5767 * configure: Regenerate.
5768 * Makefile.in (GTM_H): Move insn-constants.h here from...
5769 (TM_H): ...here.
5770 * mkconfig.sh: Remove special handling for insn-constants.h.
5771
5772 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5773
5774 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
5775 (BUILD_MD): ...this new variable.
5776 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
5777 that include the old contents of simple_generated_h and
5778 simple_generated_c.
5779 (simple_generated_h, simple_generated_c): Include them. Add
5780 insn-constants.h.
5781 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
5782 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
5783 Remove these dependencies from the main rule and include
5784 insn-conditions.md in the command line only if it appears
5785 in the dependency list.
5786 (insn-constants.h, s-constants): Delete.
5787 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
5788 or gensupport.h.
5789 (build/genmddeps.o): Likewise.
5790 (genprogrtl): New variable that contains everything from genprogmd
5791 except mddeps and constants.
5792 (genprogmd): Redefine in terms of genprogrtl. Make these programs
5793 depend on $(BUILD_MD)
5794 (genprog): New variable. Make these programs depend on
5795 $(BUILD_ERRORS).
5796 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
5797 (main): Use read_md_files instead of init_rtx_reader_args.
5798 * genconstants.c: As for genmddeps.c.
5799 * read-md.h (read_skip_construct): Declare.
5800 * read-md.c (read_skip_construct): New function.
5801 (handle_file): Allow a null handle_directive, skipping the
5802 construct if so.
5803 (parse_include): Update the comment accordingly.
5804
5805 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5806
5807 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
5808 * genmddeps.c: Include read-md.h.
5809 (main): Call init_rtx_reader_args instead of init_md_reader_args.
5810 * genattr.c (main): Likewise.
5811 * genattrtab.c (main): Likewise.
5812 * genautomata.c (main): Likewise.
5813 * gencodes.c (main): Likewise.
5814 * genconditions.c (main): Likewise.
5815 * genconfig.c (main): Likewise.
5816 * genconstants.c (main): Likewise.
5817 * genemit.c (main): Likewise.
5818 * genextract.c (main): Likewise.
5819 * genflags.c (main): Likewise.
5820 * genopinit.c (main): Likewise.
5821 * genoutput.c (main): Likewise.
5822 * genpeep.c (main): Likewise.
5823 * genrecog.c (main): Likewise.
5824 * genpreds.c (main): Likewise.
5825 * gensupport.h (in_fname): Move to read-md.h.
5826 (init_md_reader_args_cb): Rename to...
5827 (init_rtx_reader_args_cb): ...this and return a bool.
5828 (init_md_reader_args): Rename to...
5829 (init_rtx_reader_args): ...this and return a bool.
5830 (include_callback): Move to read-md.h.
5831 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
5832 (file_name_list, first_dir_md_include): Move to read-md.c
5833 (first_bracket_include): Delete unused variable.
5834 (last_dir_md_include): Move to read-md.c.
5835 (process_include): Delete, moving code to read-md.c:handle_include.
5836 (process_rtx): Don't handle INCLUDE.
5837 (save_string): Delete.
5838 (rtx_handle_directive): New function.
5839 (init_md_reader_args_cb): Rename to...
5840 (init_rtx_reader_args_cb): ...this and return a boolean success value.
5841 Use read_md_args.
5842 (init_md_reader_args): Rename to...
5843 (init_rtx_reader_args): ...this and return a boolean success value.
5844 * rtl.def (INCLUDE): Delete.
5845 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
5846 argument.
5847 * read-rtl.c (read_conditions): Don't gobble ')' here.
5848 (read_mapping): Likewise.
5849 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
5850 Handle top-level non-rtx constructs here rather than in read_rtx_1.
5851 Store the whole queue in *X. Remove call to init_md_reader.
5852 (read_rtx_1): Rename to...
5853 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
5854 Don't handle top-level non-rtx constructs here. Don't handle (nil)
5855 here.
5856 (read_nested_rtx): New function. Handle (nil) here rather than
5857 in read_rtx_code.
5858 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
5859 gobble ')' here.
5860 * read-md.h (directive_handler_t): New type.
5861 (in_fname, include_callback): Moved from read-md.h.
5862 (read_constants, init_md_reader): Delete.
5863 (read_md_files): Declare.
5864 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
5865 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
5866 from gensupport.c.
5867 (read_constants): Rename to...
5868 (handle_constants): ...this. Don't gobble ')' here.
5869 (handle_include, handle_file, handle_toplevel_file)
5870 (parse_include): New functions, mostly taken from gensupport.c.
5871 (init_md_reader): Subsume into...
5872 (read_md_files): ...this new function.
5873
5874 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5875
5876 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
5877 (unread_char): Decrement read_md_lineno after putting back '\n'.
5878 * read-md.c (fatal_with_file_and_line): Push back any characters
5879 that we decide not to add to the context.
5880 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
5881 fatal_expected_char in cases where '/' ends a line (for example).
5882 (read_name): Don't increment read_md_lineno here.
5883 (read_escape): Likewise.
5884 (read_quoted_string): Likewise.
5885 (read_braced_string): Likewise.
5886
5887 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5888
5889 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
5890 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
5891 * genconstants.c: Include read-md.h.
5892 * read-rtl.c (md_constants): Move to read-md.c.
5893 (md_name): Move to read-md.h.
5894 (initialize_iterators): Use leading_string_hash instead of def_hash
5895 and leading_string_eq_p instead of def_name_eq_p.
5896 (read_name): Move to read-md.c.
5897 (def_hash, def_name_eq_p): Delete.
5898 (read_constants, traverse_md_constants): Move to read-md.c.
5899 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
5900 * read-md.h: Include hashtab.h.
5901 (md_name): Moved from read-rtl.c.
5902 (md_constant): Moved from read-md.h.
5903 (leading_string_hash, leading_string_eq_p, read_name)
5904 (read_constants, traverse_md_constants): Declare.
5905 * read-md.c (md_constants): Moved from read-rtl.c.
5906 (leading_string_hash, leading_string_eq_p): New functions.
5907 (read_name, read_constants, traverse_md_constants): Moved from
5908 read-rtl.c.
5909
5910 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5911
5912 * read-rtl.c (md_name): New structure.
5913 (read_name): Take an md_name instead of a buffer pointer.
5914 Use the "string" field instead of strcpy when expanding constants.
5915 (read_constants): Remove the tmp_char argument. Update the calls
5916 to read_name, using two local name buffers instead of the tmp_char
5917 argument. Merge the constant-creation code.
5918 (read_conditions): Remove the tmp_char argument. Update the calls
5919 to read_name, using a local name buffer instead of the tmp_char
5920 argument.
5921 (read_mapping): Replace tmp_char variable with a local name buffer.
5922 Update the calls to read_name.
5923 (read_rtx_1): Likewise. Update the calls to read_constants and
5924 read_conditions.
5925
5926 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5927
5928 * Makefile.in (build/read-md.o): Depend on errors.h.
5929 * read-md.h (error_with_line): Declare.
5930 * read-md.c: Include errors.h.
5931 (message_with_line_1): New function, extracted from...
5932 (message_with_line): ...here.
5933 (error_with_line): New function.
5934 * genattrtab.c: If a call to message_with_line is followed by
5935 "have_error = 1;", replace both statements with a call to
5936 error_with_line.
5937 * genoutput.c: Likewise.
5938 * genpreds.c: Likewise.
5939 * genrecog.c: If a call to message_with_line is followed by
5940 "error_count++;", replace both statements with a call to
5941 error_with_line.
5942 (errorcount): Delete.
5943 (main): Don't check it.
5944 * gensupport.c: If a call to message_with_line is followed by
5945 "errors = 1;", replace both statements with a call to error_with_line.
5946 (errors): Delete.
5947 (process_define_cond_exec): Check have_error instead of errors.
5948 (init_md_reader_args_cb): Likewise. Don't set errors.
5949
5950 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5951
5952 * read-md.h (read_md_file): Declare.
5953 (read_char, unread_char): New functions.
5954 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
5955 (read_quoted_string, read_string): Remove FILE * argument.
5956 * read-md.c (read_md_file): New variable.
5957 (read_md_filename, read_md_lineno): Update comments and remove
5958 unnecessary initialization.
5959 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
5960 (read_escape, read_quoted_string, read_braced_string, read_string):
5961 Remove FILE * argument. Update calls accordingly, using read_char
5962 and unread_char instead of getc and ungetc.
5963 * rtl.h (read_rtx): Remove FILE * argument.
5964 * read-rtl.c (iterator_group): Remove FILE * argument from
5965 "find_builtin".
5966 (iterator_traverse_data): Remove "infile" field.
5967 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
5968 (add_mapping, read_name, read_constants, read_conditions)
5969 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
5970 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
5971 Remove file arguments from all calls, using read_char and unread_char
5972 instead of getc and ungetc.
5973 * gensupport.c (process_include): Preserve read_md_file around
5974 the include. Set read_md_file to the handle of the included file.
5975 Update call to read_rtx.
5976 (init_md_reader_args_cb): Set read_md_file to the handle of the file
5977 and remove local FILE *. Update calls to read_rtx.
5978
5979 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5980
5981 * read-md.h (read_rtx_lineno): Rename to...
5982 (read_md_lineno): ...this.
5983 (read_rtx_filename): Rename to...
5984 (read_md_filename): ...this.
5985 (copy_rtx_ptr_loc): Rename to...
5986 (copy_md_ptr_loc): ...this.
5987 (print_rtx_ptr_loc): Rename to...
5988 (print_md_ptr_loc): ...this.
5989 * read-md.c: Likewise. Update references after renaming.
5990 (string_obstack): Replace RTL with MD in comment.
5991 (set_rtx_ptr_loc): Rename to...
5992 (set_md_ptr_loc): ...this.
5993 (get_rtx_ptr_loc): Rename to...
5994 (get_md_ptr_loc): ...this.
5995 * genconditions.c: Update references after renaming.
5996 * genemit.c: Likewise.
5997 * genoutput.c: Likewise.
5998 * genpreds.c: Likewise.
5999 * gensupport.c: Likewise.
6000 * read-rtl.c: Likewise.
6001
6002 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6003
6004 * Makefile.in (READ_MD_H): New variable.
6005 (BUILD_RTL): Add build/read-md.o.
6006 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
6007 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
6008 (build/genattrtab.o, build/genconditions.o build/genemit.o)
6009 (build/genextract.o, build/genflags.o, build/genoutput.o)
6010 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
6011 (build/read-md.o): New rule.
6012 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
6013 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
6014 * coretypes.h: ...here.
6015 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
6016 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
6017 * genattr.c: Include read-md.h.
6018 * genattrtab.c: Likewise.
6019 * genconditions.c: Likewise.
6020 * genemit.c: Likewise.
6021 * genextract.c: Likewise.
6022 * genflags.c: Likewise.
6023 * genoutput.c: Likewise.
6024 * genpreds.c: Likewise.
6025 * genrecog.c: Likewise.
6026 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
6027 (join_c_conditions, print_c_condition, read_rtx_filename)
6028 (read_rtx_lineno): Move to read-md.h.
6029 * read-rtl.c: Include read-md.h.
6030 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
6031 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
6032 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
6033 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
6034 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
6035 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
6036 (read_braced_string, read_string): Move to read-md.c.
6037 (read_rtx): Move some initialization to init_md_reader and call
6038 init_md_reader here.
6039 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
6040 Move to read-md.h.
6041 * gensupport.c: Include read-md.h.
6042 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
6043 * read-md.h, read-md.c: New files.
6044
6045 2010-06-10 Anatoly Sokolov <aesok@post.ru>
6046
6047 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6048 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6049 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
6050 * config/moxie/moxie.c (moxie_function_value): Make static.
6051 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
6052 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6053
6054 2010-06-10 Martin Jambor <mjambor@suse.cz>
6055
6056 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
6057 * dbgcnt.def (tree_sra): New counter.
6058 * tree-sra.c: Include dbgcnt.h.
6059 (gate_intra_sra): Check tree_sra debug counter.
6060
6061 2010-06-10 Martin Jambor <mjambor@suse.cz>
6062
6063 PR tree-optimization/44258
6064 * tree-sra.c (build_access_subtree): Return false iff there is a
6065 partial overlap.
6066 (build_access_trees): Likewise.
6067 (analyze_all_variable_accesses): Disqualify candidates if
6068 build_access_trees returns true for them.
6069
6070 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
6071
6072 PR debug/41371
6073 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
6074 tail-recurse into canonical node. Fast-forward over
6075 non-canonical VALUEs.
6076
6077 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
6078
6079 PR boostrap/44470
6080 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
6081 (*addsi_1_zext) <TYPE_LEA>: Likewise.
6082 (add lea splitter): Likewise.
6083 (add_zext lea splitter): Likewise.
6084
6085 2010-06-10 Joseph Myers <joseph@codesourcery.com>
6086
6087 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
6088
6089 2010-06-10 Jan Hubicka <jh@suse.cz>
6090
6091 * df-problems.c (df_live_problem_data): Add live_bitmaps.
6092 (df_live_alloc): Initialize problem data and live_osbtacks.
6093 (df_live_finalize): Remove obstack, problem data; do not
6094 clear all bitmaps.
6095 (df_live_top_dump, df_live_bottom_dump): Do not dump old
6096 data when not allocated.
6097 (df_live_verify_solution_start): Do not allocate problem data.
6098 (df_live_verify_solution_end): Check if out is allocated.
6099 (struct df_md_problem_data): New structure.
6100 (df_md_alloc): Allocate problem data.
6101 (df_md_free): Free problem data; do not clear bitmaps.
6102
6103 2010-06-10 Jan Beulich <jbeulich@novell.com>
6104
6105 PR bootstrap/37304
6106 * configure.ac: Replace $() with ${} when intending to expand
6107 variables rather than invoking commands.
6108 * configure: Re-generate.
6109
6110 2010-06-10 Jan Hubicka <jh@suse.cz>
6111
6112 PR rtl-optimization/44460
6113 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
6114 TYPE_NEEDS_CONSTRUCTING sanity check.
6115
6116 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
6117
6118 * doc/include/fdl.texi: Move to GFDL version 1.3.
6119
6120 * doc/cpp.texi: Move to GFDL version 1.3.
6121 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
6122 * doc/gccint.texi: Move to GFDL version 1.3.
6123 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
6124 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
6125 * doc/invoke.texi: Move to GFDL version 1.3.
6126
6127 2010-06-09 Jan Hubicka <jh@suse.cz>
6128
6129 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
6130 Break out from ...
6131 (propagate) ... here; swap the order.
6132
6133 2010-06-09 Jan Hubicka <jh@suse.cz>
6134
6135 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
6136 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
6137 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
6138 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
6139
6140 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
6141
6142 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
6143 Do not the gather memory reference in the outer loop if the step
6144 is not a constant.
6145
6146 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
6147
6148 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
6149 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
6150 8 to 4. Minor change of the related comments.
6151
6152 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
6153
6154 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
6155 the scev analysis when the variable is not used outside the loop
6156 in a close phi node: call compute_overall_effect_of_inner_loop.
6157
6158 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
6159
6160 * graphite-sese-to-poly.c (single_pred_cond): Renamed
6161 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
6162 (build_sese_conditions_before): Renamed call to single_pred_cond.
6163 (build_sese_conditions_after): Same.
6164
6165 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
6166
6167 * graphite-poly.h: Fix comments and indentation.
6168 * graphite-sese-to-poly.c: Same.
6169 (build_sese_conditions_before): Compute stmt and gbb only when needed.
6170 * tree-chrec.c: Fix comments and indentation.
6171 (tree-ssa-loop-niter.c): Same.
6172
6173 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
6174
6175 PR rtl-optimization/42461
6176 * dce.c (deletable_insn_p): Return true for const or pure calls again.
6177 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
6178
6179 2010-06-09 Jan Hubicka <jh@suse.cz>
6180
6181 * bitmap.c (bitmap_and): Walk array forward.
6182 (bitmap_and_compl_into): Likewise.
6183 (bitmap_xor): Likewise.
6184 (bitmap_xor_into): Likewise.
6185 (bitmap_equal_p): Likewise.
6186 (bitmap_intersect_p): Likewise.
6187 (bitmap_intersect_compl_p): Likewise.
6188 (bitmap_ior_and_into): Likewise.
6189 (bitmap_elt_copy): Likewise.
6190 (bitmap_and_compl): Likewise.
6191 (bitmap_elt_ior): Likewise.
6192
6193 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
6194
6195 * opts-common.c (prune_options): Ensure replacement argv array
6196 is correctly terminated by a NULL entry.
6197
6198 2010-06-09 Jan Hubicka <jh@suse.cz>
6199
6200 * cgraph.h (varpool_first_static_initializer,
6201 varpool_next_static_initializer): Make checking only when
6202 checking enabled.
6203 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
6204 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
6205 gcc_assert to gcc_checking_assert.
6206 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
6207 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
6208 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
6209 op_iter_init_phiuse, op_iter_init_phidef,
6210 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
6211 gcc_checking_assert.
6212 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
6213 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
6214 partition_is_global, live_on_entry, live_on_exit,
6215 live_merge_and_clear): Likewise.
6216 * system.h (gcc_checking_assert): New macro.
6217 * gimple.h (set_bb_seq): Use gcc_checking_assert.
6218
6219 2010-06-09 Jason Merrill <jason@redhat.com>
6220
6221 * Makefile.in (TAGS): Collect tags info from c-family.
6222
6223 2010-06-09 Jan Hubicka <jh@suse.cz>
6224
6225 * gimple.h (gcc_gimple_checking_assert): New macro.
6226 (gimple_set_def_ops, gimple_set_use_ops,
6227 gimple_set_vuse, gimple_set_vdef,
6228 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
6229 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
6230 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
6231 gimple_asm_output_op, gimple_asm_output_op_ptr,
6232 gimple_asm_set_output_op, gimple_asm_clobber_op,
6233 gimple_asm_set_clobber_op, gimple_asm_label_op,
6234 gimple_asm_set_label_op, gimple_try_set_kind,
6235 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
6236 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
6237 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
6238 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
6239 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
6240 gimple_omp_for_set_initial, gimple_omp_for_final,
6241 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
6242 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
6243 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
6244 conditional with ENABLE_GIMPLE_CHECKING.
6245 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
6246
6247 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
6248
6249 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
6250 (get_computation_cost_at): Use it.
6251 (determine_use_iv_cost_condition): Likewise.
6252 (determine_iv_cost): Likewise.
6253
6254 2010-06-09 Richard Guenther <rguenther@suse.de>
6255
6256 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
6257 replace constants.
6258
6259 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
6260
6261 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
6262
6263 2010-06-09 Martin Jambor <mjambor@suse.cz>
6264
6265 PR tree-optimization/44423
6266 * tree-sra.c (dump_access): Dump also grp_assignment_read.
6267 (analyze_access_subtree): Pass negative allow_replacements to children
6268 if the current type is scalar.
6269
6270 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
6271
6272 PR testsuite/42843
6273 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
6274 * doc/plugins.texi (Plugin license check): Update information
6275 on type of plugin_is_GPL_compatible.
6276 * Makefile.in (PLUGINCC): Define as $(COMPILER).
6277 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
6278
6279 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
6280
6281 * config/arm/arm.c (thumb2_reorg): New function.
6282 (arm_reorg): Call it.
6283 * config/arm/thumb2.md (define_peephole2 for flag clobbering
6284 arithmetic operations): Delete.
6285
6286 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
6287
6288 PR target/44067
6289 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
6290 e500v2 target.
6291
6292 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
6293
6294 PR plugins/44459
6295 * gcc-plugin.h: Encapsulate all declarations in extern "C".
6296
6297 2010-06-08 Jan Hubicka <jh@suse.cz>
6298
6299 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
6300 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
6301
6302 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
6303
6304 PR tree-optimization/39874
6305 PR middle-end/28685
6306 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
6307 Declare.
6308 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
6309 same_bool_result_p): New.
6310 (and_var_with_comparison, and_var_with_comparison_1,
6311 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
6312 (or_var_with_comparison, or_var_with_comparison_1,
6313 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
6314 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
6315 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
6316 of combine_comparisons.
6317 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
6318
6319 2010-06-08 Anatoly Sokolov <aesok@post.ru>
6320
6321 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6322 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6323 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
6324 pdp11_function_value_regno_p): New functions.
6325 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6326 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6327
6328 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
6329
6330 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
6331 Thumb-2 in the MINUS case.
6332
6333 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6334
6335 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
6336
6337 * doc/gty.texi (GTY Options): Document typed GC allocation and
6338 variable_size GTY option.
6339
6340 * ggc-internal.h: New.
6341
6342 * ggc.h: Update copyright year.
6343 (digit_string): Move to stringpool.c.
6344 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
6345 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
6346 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
6347 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
6348 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
6349 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
6350 (ggc_force_collect, ggc_get_size, ggc_statistics)
6351 (ggc_print_common_statistics): Move to ggc-internal.h.
6352 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
6353 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
6354 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
6355 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
6356 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
6357 (ggc_alloc_zone_pass_stat): Remove.
6358 (ggc_internal_alloc_stat, ggc_internal_alloc)
6359 (ggc_internal_cleared_alloc_stat): New.
6360 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
6361 (ggc_internal_vec_alloc_stat)
6362 (ggc_internal_cleared_vec_alloc_stat)
6363 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
6364 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
6365 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
6366 (ggc_cleared_alloc_ptr_array_two_args): New.
6367 (htab_create_ggc, splay_tree_new_ggc): Redefine.
6368 (ggc_splay_alloc): Change the type of the first argument to
6369 enum gt_types_enum.
6370 (ggc_alloc_string): Make macro.
6371 (ggc_alloc_string_stat): New.
6372 (ggc_strdup): Redefine.
6373 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
6374 (ggc_alloc_rtvec_sized): New.
6375 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
6376 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
6377 (ggc_internal_cleared_alloc_zone_stat)
6378 (ggc_internal_zone_alloc_stat)
6379 (ggc_internal_zone_cleared_alloc_stat)
6380 (ggc_internal_zone_vec_alloc_stat)
6381 (ggc_alloc_zone_rtx_def_stat)
6382 (ggc_alloc_zone_tree_node_stat)
6383 (ggc_alloc_zone_cleared_tree_node_stat)
6384 (ggc_alloc_cleared_gimple_statement_d_stat): New.
6385
6386 * ggc-common.c: Include ggc-internal.h.
6387 (ggc_internal_cleared_alloc_stat): Rename from
6388 ggc_alloc_cleared_stat.
6389 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
6390 (ggc_calloc): Remove.
6391 (ggc_cleared_alloc_htab_ignore_args): New.
6392 (ggc_cleared_alloc_ptr_array_two_args): New.
6393 (ggc_splay_alloc): Add obj_type parameter.
6394 (init_ggc_heuristics): Formatting fixes.
6395
6396 * ggc-none.c: Update copyright year.
6397 (ggc_alloc_stat): Rename to ggc_alloc_stat.
6398 (ggc_alloc_cleared_stat): Rename to
6399 ggc_internal_cleared_alloc_stat.
6400 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
6401
6402 * ggc-page.c: Update copyright year. Include ggc-internal.h.
6403 Remove references to ggc_alloc in comments.
6404 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
6405 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
6406 (new_ggc_zone, destroy_ggc_zone): Remove.
6407 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
6408
6409 * ggc-zone.c: Include ggc-internal.h. Remove references to
6410 ggc_alloc in comments.
6411 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
6412 (ggc_internal_alloc_zone_pass_stat): New.
6413 (ggc_internal_cleared_alloc_zone_stat): New.
6414 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
6415 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
6416 (new_ggc_zone, destroy_ggc_zone): Remove.
6417
6418 * stringpool.c: Update copyright year. Include ggc-internal.h
6419 (digit_vector): Make static.
6420 (digit_string): Moved from ggc.h.
6421 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
6422 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
6423
6424 * Makefile.in (GGC_INTERNAL_H): New.
6425 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
6426 $(GGC_INTERNAL_H) to dependencies.
6427
6428 * gentype.c: Update copyright year.
6429 (walk_type): Accept variable_size GTY option.
6430 (USED_BY_TYPED_GC_P): New macro.
6431 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
6432 whitespace at the end of strings.
6433 (get_type_specifier, variable_size_p): New functions.
6434 (alloc_quantity, alloc_zone): New enums.
6435 (write_typed_alloc_def): New function.
6436 (write_typed_struct_alloc_def): Likewise.
6437 (write_typed_typed_typedef_alloc_def): Likewise.
6438 (write_typed_alloc_defns): Likewise.
6439 (output_typename, write_splay_tree_allocator_def): Likewise.
6440 (write_splay_tree_allocators): Likewise.
6441 (main): Call write_typed_alloc_defns and
6442 write_splay_tree_allocators.
6443
6444 * lto-streamer.h (lto_file_decl_data_ptr): New.
6445
6446 * passes.c (order): Define using cgraph_node_ptr.
6447
6448 * strinpool.c (struct string_pool_data): Declare nested_ptr using
6449 ht_identifier_ptr.
6450
6451 * gimple.h (union gimple_statement_d): Likewise.
6452
6453 * rtl.h (struct rtx_def): Likewise.
6454 (struct rtvec_def): Likewise.
6455
6456 * tree.h (union tree_node): Likewise.
6457
6458 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
6459
6460 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
6461
6462 * tree-scalar-evolution.c (scev_initialize): Likewise.
6463
6464 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
6465
6466 * dwarf2asm.c (dw2_force_const_mem): Likewise.
6467
6468 * omp-low.c (lower_omp_critical): Likewise.
6469
6470 * bitmap.h (struct bitmap_head_def): Update comment to not
6471 reference ggc_alloc.
6472
6473 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
6474
6475 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
6476
6477 * ipa-prop.c (duplicate_ggc_array): Rename to
6478 duplicate_ipa_jump_func_array. Use typed GC allocation.
6479 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
6480
6481 * gimple.c (gimple_alloc_stat): Use
6482 ggc_alloc_cleared_gimple_statement_d_stat.
6483
6484 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
6485
6486 * tree.c (make_node_stat): Use
6487 ggc_alloc_zone_cleared_tree_node_stat.
6488 (make_tree_vec_stat): Likewise.
6489 (build_vl_exp_stat): Likewise.
6490 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
6491 (make_tree_binfo_stat): Likewise.
6492 (tree_cons_stat): Likewise.
6493
6494 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
6495 (shallow_copy_rtx_stat): Likewise.
6496 (make_node_stat): Likewise.
6497
6498 * lto-symtab.c: Fix comment.
6499
6500 * tree-cfg.c (create_bb): Update comment to not reference
6501 ggc_alloc_cleared.
6502 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
6503
6504 * varpool.c (varpool_node): Use typed GC allocation.
6505 (varpool_extra_name_alias): Likewise.
6506
6507 * varasm.c (emutls_decl): Likewise.
6508 (get_unnamed_section): Likewise.
6509 (get_noswitch_section): Likewise.
6510 (get_section): Likewise.
6511 (get_block_for_section): Likewise.
6512 (build_constant_desc): Likewise.
6513 (create_constant_pool): Likewise.
6514 (force_const_mem): Likewise.
6515
6516 * tree.c (build_vl_exp_stat): Likewise.
6517 (build_real): Likewise.
6518 (build_string): Likewise.
6519 (decl_debug_expr_insert): Likewise.
6520 (decl_value_expr_insert): Likewise.
6521 (type_hash_add): Likewise.
6522 (build_omp_clause): Likewise.
6523
6524 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
6525
6526 * tree-ssa.c (init_tree_ssa): Likewise.
6527
6528 * tree-ssa-structalias.c (heapvar_insert): Likewise.
6529
6530 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
6531
6532 * tree-ssa-loop-niter.c (record_estimate): Likewise.
6533
6534 * tree-ssa-alias.c (get_ptr_info): Likewise.
6535
6536 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
6537
6538 * tree-phinodes.c (allocate_phi_node): Likewise.
6539
6540 * tree-iterator.c (tsi_link_before): Likewise.
6541 (tsi_link_after): Likewise.
6542
6543 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
6544
6545 * tree-dfa.c (create_var_ann): Likewise.
6546
6547 * tree-cfg.c (create_bb): Likewise.
6548
6549 * toplev.c (alloc_for_identifier_to_locale): Likewise.
6550 (general_init): Likewise.
6551
6552 * stringpool.c (stringpool_ggc_alloc): Likewise.
6553 (gt_pch_save_stringpool): Likewise.
6554
6555 * sese.c (if_region_set_false_region): Likewise.
6556
6557 * passes.c (do_per_function_toporder): Likewise.
6558
6559 * optabs.c (set_optab_libfunc): Likewise.
6560 (set_conv_libfunc): Likewise.
6561
6562 * lto-symtab.c (lto_symtab_register_decl): Likewise.
6563
6564 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
6565 (input_eh_region): Likewise.
6566 (input_eh_lp): Likewise.
6567 (make_new_block): Likewise.
6568 (unpack_ts_real_cst_value_fields): Likewise.
6569
6570 * lto-section-in.c (lto_new_in_decl_state): Likewise.
6571
6572 * lto-cgraph.c (input_node_opt_summary): Likewise.
6573
6574 * loop-init.c (loop_optimizer_init): Likewise.
6575
6576 * lambda.h (lambda_vector_new): Likewise.
6577
6578 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
6579
6580 * ira.c (update_equiv_regs): Likewise.
6581
6582 * ipa.c (cgraph_node_set_new): Likewise.
6583 (cgraph_node_set_add): Likewise.
6584 (varpool_node_set_new): Likewise.
6585 (varpool_node_set_add): Likewise.
6586
6587 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
6588 (duplicate_ipa_jump_func_array): Likewise.
6589 (ipa_read_node_info): Likewise.
6590
6591 * ipa-cp.c (ipcp_create_replace_map): Likewise.
6592
6593 * integrate.c (get_hard_reg_initial_val): Likewise.
6594
6595 * gimple.c (gimple_alloc_stat): Likewise.
6596 (gimple_build_omp_for): Likewise.
6597 (gimple_seq_alloc): Likewise.
6598 (gimple_copy): Likewise.
6599
6600 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
6601 (gsi_insert_after_without_update): Likewise.
6602
6603 * function.c (add_frame_space): Likewise.
6604 (insert_temp_slot_address): Likewise.
6605 (assign_stack_temp_for_type): Likewise.
6606 (allocate_struct_function): Likewise.
6607 (types_used_by_var_decl_insert): Likewise.
6608
6609 * except.c (init_eh_for_function): Likewise.
6610 (gen_eh_region): Likewise.
6611 (gen_eh_region_catch): Likewise.
6612 (gen_eh_landing_pad): Likewise.
6613 (add_call_site): Likewise.
6614
6615 * emit-rtl.c (get_mem_attrs): Likewise.
6616 (get_reg_attrs): Likewise.
6617 (start_sequence): Likewise.
6618 (init_emit): Likewise.
6619
6620 * dwarf2out.c (new_cfi): Likewise.
6621 (queue_reg_save): Likewise.
6622 (dwarf2out_frame_init): Likewise.
6623 (new_loc_descr): Likewise.
6624 (find_AT_string): Likewise.
6625 (new_die): Likewise.
6626 (add_var_loc_to_decl): Likewise.
6627 (clone_die): Likewise.
6628 (clone_as_declaration): Likewise.
6629 (break_out_comdat_types): Likewise.
6630 (new_loc_list): Likewise.
6631 (loc_descriptor): Likewise.
6632 (add_loc_descr_to_each): Likewise.
6633 (add_const_value_attribute): Likewise.
6634 (tree_add_const_value_attribute): Likewise.
6635 (add_comp_dir_attribute): Likewise.
6636 (add_name_and_src_coords_attributes): Likewise.
6637 (lookup_filename): Likewise.
6638 (store_vcall_insn): Likewise.
6639 (dwarf2out_init): Likewise.
6640
6641 * dbxout.c (dbxout_init): Likewise.
6642
6643 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
6644
6645 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
6646
6647 * config/score/score7.c (score7_output_external): Likewise.
6648
6649 * config/score/score3.c (score3_output_external): Likewise.
6650
6651 * config/s390/s390.c (s390_init_machine_status): Likewise.
6652
6653 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
6654 (rs6000_init_machine_status): Likewise.
6655 (output_toc): Likewise.
6656
6657 * config/pa/pa.c (pa_init_machine_status): Likewise.
6658 (get_deferred_plabel): Likewise.
6659
6660 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
6661
6662 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
6663
6664 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
6665
6666 * config/mep/mep.c (mep_init_machine_status): Likewise.
6667 (mep_note_pragma_flag): Likewise.
6668
6669 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
6670
6671 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
6672
6673 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
6674
6675 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
6676 (i386_pe_maybe_record_exported_symbol): Likewise.
6677
6678 * config/i386/i386.c (get_dllimport_decl): Likewise.
6679 (ix86_init_machine_status): Likewise.
6680 (assign_386_stack_local): Likewise.
6681
6682 * config/frv/frv.c (frv_init_machine_status): Likewise.
6683
6684 * config/darwin.c (machopic_indirection_name): Likewise.
6685
6686 * config/cris/cris.c (cris_init_machine_status): Likewise.
6687
6688 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
6689
6690 * config/avr/avr.c (avr_init_machine_status): Likewise.
6691
6692 * config/arm/arm.c (arm_init_machine_status): Likewise.
6693
6694 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
6695 (alpha_need_linkage): Likewise.
6696 (alpha_use_linkage): Likewise.
6697
6698 * cgraph.c (cgraph_allocate_node): Likewise.
6699 (cgraph_create_edge_1): Likewise.
6700 (cgraph_create_indirect_edge): Likewise.
6701 (cgraph_add_asm_node): Likewise.
6702
6703 * cfgrtl.c (init_rtl_bb_info): Likewise.
6704
6705 * cfgloop.c (alloc_loop): Likewise.
6706 (rescan_loop_exit): Likewise.
6707
6708 * cfg.c (init_flow): Likewise.
6709 (alloc_block): Likewise.
6710 (unchecked_make_edge): Likewise.
6711
6712 * c-parser.c (c_parse_init): Likewise.
6713 (c_parse_file): Likewise.
6714
6715 * c-decl.c (bind): Likewise.
6716 (record_inline_static): Likewise.
6717 (push_scope): Likewise.
6718 (make_label): Likewise.
6719 (lookup_label_for_goto): Likewise.
6720 (finish_struct): Likewise.
6721 (finish_enum): Likewise.
6722 (c_push_function_context): Likewise.
6723
6724 * bitmap.c (bitmap_element_allocate): Likewise.
6725 (bitmap_gc_alloc_stat): Likewise.
6726
6727 * alias.c (record_alias_subset): Likewise.
6728 (init_alias_analysis): Likewise.
6729
6730 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
6731
6732 * fold-const.c (fold_comparison): Remove redundant parenthesis.
6733 * tree-inline.c (expand_call_inline): Pass translated return value of
6734 cgraph_inline_failed_string to diagnostic function.
6735
6736 2010-06-08 Andrew Pinski <pinskia@gmail.com>
6737 Shujing Zhao <pearly.zhao@oracle.com>
6738
6739 PR c/37724
6740 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
6741 implicit bad conversions is initialization.
6742 (error_init): Use gmsgid instead of msgid for argument name and change
6743 the call for error.
6744 (pedwarn_init): Use gmsgid instead of msgid for argument name and
6745 change the call for pedwarn.
6746 (warning_init): Use gmsgid instead of msgid for argument name and
6747 change the call for warning.
6748
6749 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
6750
6751 * config/mips/mips-protos.h (mips_print_operand): Delete.
6752 (mips_print_operand_address): Delete.
6753 * config/mips/mips.h (mips_print_operand_punct): Delete.
6754 (PRINT_OPERAND): Delete.
6755 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6756 (PRINT_OPERAND_ADDRESS): Delete.
6757 * config/mips/mips.c (mips_print_operand_punct): Make static.
6758 (mips_print_operand_address): Make static.
6759 (mips_print_operand): Make static. Call
6760 mips_print_operand_punct_valid_p.
6761 (mips_print_operand_punct_valid_p): New function.
6762 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6763 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6764
6765 2010-06-07 Jan Hubicka <jh@suse.cz>
6766
6767 PR middle-end/44454
6768 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
6769 are allocated.
6770
6771 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
6772
6773 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
6774 name of RECORD.
6775
6776 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6777
6778 * doc/sourcebuild.texi (Effective-Target Keywords, Other
6779 attributes): Document gas.
6780
6781 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
6782
6783 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
6784 <TYPE_LEA>: Split instruction.
6785 <default>: Remove alternative 2 handling.
6786 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
6787 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
6788 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
6789
6790 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
6791 (ashift_zext lea splitter): Use DImode for multiplication.
6792
6793 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
6794 to generate addition.
6795
6796 2010-06-07 Joseph Myers <joseph@codesourcery.com>
6797
6798 * common.opt (fira-verbose): Use Var.
6799 (fpcc-struct-return): Use Init instead of VarExists.
6800 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
6801 toplev.c.
6802 * flags.h (flag_signed_char, flag_short_enums,
6803 flag_pcc_struct_return, flag_ira_verbose,
6804 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
6805 * toplev.c (flag_detailed_statistics, flag_signed_char,
6806 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
6807 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
6808 * toplev.h (flag_crossjumping, flag_if_conversion,
6809 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
6810 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
6811 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
6812 flag_cprop_registers, time_report, flag_ira_loop_pressure,
6813 flag_ira_coalesce, flag_ira_move_spills,
6814 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
6815
6816 2010-06-07 Jan Hubicka <jh@suse.cz>
6817
6818 * df-core.c (df_analyze_problem): Do verification after allocation.
6819
6820 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
6821 (df_lr_alloc): Initialize problem data; move bitmaps to
6822 lr_bitmaps obstack.
6823 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
6824 (df_lr_verify_solution_start): Do not initialize problem data;
6825 allocate bitmaps in lr_bitmaps.
6826 (df_lr_verify_solution_end): Do not free problem data.
6827
6828 2010-06-07 Jan Hubicka <jh@suse.cz>
6829
6830 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
6831 if caller is noreturn.
6832 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
6833 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
6834 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
6835 * ipa-pure-const.c (check_decl): Add IPA parameter.
6836 (state_from_flags): New function.
6837 (better_state, worse_state): New functions.
6838 (check_call): When in IPA mode, do not care about callees.
6839 (check_load, check_store): Update.
6840 (check_ipa_load, check_ipa_store): New.
6841 (check_stmt): When in IPA mode, use IPA checkers.
6842 (analyze_function): Use state_from_flags.
6843 (propagate): Check indirect edges and references.
6844
6845 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
6846
6847 PR rtl-optimization/44404
6848 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
6849 of count_occurrences to see if it's safe to modify mem_insn.
6850
6851 2010-06-07 Richard Guenther <rguenther@suse.de>
6852
6853 * gimplify.c (gimplify_cleanup_point_expr): For empty body
6854 and EH-only cleanup drop the cleanup instead of inserting it
6855 unconditionally.
6856
6857 2010-06-07 Ira Rosen <irar@il.ibm.com>
6858
6859 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
6860 documentation.
6861 * targhooks.c (default_builtin_vectorization_cost): New function.
6862 * targhooks.h (default_builtin_vectorization_cost): Declare.
6863 * target.h (enum vect_cost_for_stmt): Define.
6864 (builtin_vectorization_cost): Change argument and comment.
6865 * tree-vectorizer.h: Remove cost model macros.
6866 * tree-vect-loop.c: Include target.h.
6867 (vect_get_cost): New function.
6868 (vect_estimate_min_profitable_iters): Replace cost model macros with
6869 calls to vect_get_cost.
6870 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
6871 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
6872 default implementation.
6873 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
6874 calls to target hook builtin_vectorization_cost.
6875 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
6876 Likewise.
6877 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
6878 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
6879 implementation to return costs.
6880 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
6881 * config/spu/spu.h: Remove vectorizer cost model macros.
6882 * config/i386/i386.h: Likewise.
6883 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
6884 a call to target hook builtin_vectorization_cost.
6885
6886 2010-06-06 Sriraman Tallam <tmsriram@google.com>
6887
6888 PR target/44319
6889 * config/i386/i386.c (override_options): Turn zee pass on for level 2
6890 and above and defer till target is known.
6891 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
6892 turn off otherwise.
6893
6894 2010-05-25 Jan Hubicka <jh@suse.cz>
6895
6896 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
6897 (df_compact_blocks): Likewise.
6898 * df.h (struct df): Turn hardware_regs_used,
6899 regular_block_artificial_uses, eh_block_artificial_uses,
6900 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
6901 bitmap_head.
6902 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
6903 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
6904 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
6905 df_scan_blocks, df_insn_delete, df_insn_rescan,
6906 df_insn_rescan_debug_internal, df_insn_rescan_all,
6907 df_process_deferred_rescans, df_process_deferred_rescans,
6908 df_notes_rescan, df_get_call_refs, df_get_call_refs,
6909 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
6910 df_record_entry_block_defs, df_record_exit_block_uses,
6911 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
6912 df_scan_verify): Update.
6913
6914 2010-05-25 Dodji Seketeli <dodji@redhat.com>
6915
6916 PR c++/44188
6917 * c-common.c (is_typedef_decl): Move this definition ...
6918 * tree.c (is_typedef_decl): ... here.
6919 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
6920 * c-common.h (is_typedef_decl): Move this declaration ...
6921 * tree.h (is_typedef_decl): ... here.
6922 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
6923 * dwarf2out.c (is_naming_typedef_decl): New function.
6924 (gen_tagged_type_die): Split out of ...
6925 (gen_type_die_with_usage): ... this function. When an anonymous
6926 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
6927 is emitted for the typedef.
6928 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
6929 anonymous tagged types.
6930
6931 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
6932
6933 PR c/20000
6934 * c-decl.c (grokdeclarator): Delete warning.
6935
6936 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
6937
6938 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
6939 newly built CALL_EXPR.
6940 * tree-profile.c (tree_profiling): Don't profile functions produced
6941 for built-in stuff.
6942
6943 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
6944
6945 PR bootstrap/44427
6946 PR bootstrap/44428
6947 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
6948 endianness-independent.
6949
6950 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6951
6952 * c-common.c: Move to c-family/.
6953 * c-common.def: Likewise.
6954 * c-common.h: Likewise.
6955 * c-cppbuiltin.c: Likewise.
6956 * c-dump.c: Likewise.
6957 * c-format.c: Likewise.
6958 * c-format.h : Likewise.
6959 * c-gimplify.c: Likewise.
6960 * c-lex.c: Likewise.
6961 * c-omp.c: Likewise.
6962 * c.opt: Likewise.
6963 * c-opts.c: Likewise.
6964 * c-pch.c: Likewise.
6965 * c-ppoutput.c: Likewise.
6966 * c-pragma.c: Likewise.
6967 * c-pragma.h: Likewise.
6968 * c-pretty-print.c: Likewise.
6969 * c-pretty-print.h: Likewise.
6970 * c-semantics.c: Likewise.
6971 * stub-objc.c: Likewise.
6972
6973 * gengtype.c (get_file_langdir): Special-case files in c-family/.
6974 (get_output_file_with_visibility): Fix name for c-common.h.
6975 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
6976
6977 * c-tree.h: Update include path for moved files.
6978 * c-lang.c: Likewise.
6979 * c-lang.h: Likewise.
6980 * c-parser.c: Likewise.
6981 * c-convert.c: Likewise.
6982 * c-decl.c: Likewise.
6983 * c-objc-common.c: Likewise.
6984 * configure.ac: Make sure c-family/ exists in the build directory.
6985 * configure: Regenerate.
6986 * Makefile.in: Update paths for moved files. Regroup files per
6987 location and update dependencies. Move generated_files down after
6988 ALL_GTFILES_H.
6989
6990 * config/spu/spu-c.c: Update paths for moved files.
6991 * config/mep/mep-pragma.c: Likewise.
6992 * config/darwin-c.c: Likewise.
6993 * config/i386/msformat-c.c: Likewise.
6994 * config/i386/i386-c.c: Likewise.
6995 * config/avr/avr-c.c: Likewise.
6996 * config/sol2-c.c: Likewise.
6997 * config/ia64/ia64-c.c: Likewise.
6998 * config/rs6000/rs6000-c.c: Likewise.
6999 * config/arm/arm.c: Likewise.
7000 * config/arm/arm-c.c: Likewise.
7001 * config/h8300/h8300.c: Likewise.
7002 * config/v850/v850-c.c: Likewise.
7003
7004 * config/t-darwin: Fix dependencies for moved files.
7005 * config/t-sol2: Fix dependencies for moved files.
7006 * config/mep/t-mep: Fix dependencies for moved files.
7007 * config/ia64/t-ia64: Fix dependencies for moved files.
7008 * config/rs6000/t-rs6000: Fix dependencies for moved files.
7009 * config/v850/t-v850: Fix dependencies for moved files.
7010 * config/v850/t-v850e: Fix dependencies for moved files.
7011
7012 * config/m32c/m32c-pragma.c
7013
7014 * po/exgettext: Look in c-family/ also.
7015
7016 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
7017
7018 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
7019 (mark_control_dependent_edges_necessary): Call it instead of marking
7020 the last statement manually.
7021 (propagate_necessity): Likewise.
7022
7023 2010-06-05 Jan Hubicka <jh@suse.cz>
7024
7025 * basic-block.h (compute_dominance_frontiers): Updated.
7026 (compute_idf): Likewise.
7027
7028 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
7029 for dominance frontiers.
7030 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
7031 (insert_updated_phi_nodes_for): Likewise.
7032 (update_ssa): Likewise.
7033 * cfganal.c (compute_dominance_frontiers_1): Likewise.
7034 (compute_dominance_frontiers): Likewise.
7035 (compute_idf): Likewise.
7036 * df-problems.c (df_md_local_compute): Likewise.
7037
7038 2010-06-05 Anatoly Sokolov <aesok@post.ru>
7039
7040 * target.h (struct gcc_target): Add memory_move_cost field.
7041 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
7042 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
7043 * targhooks.c (default_memory_move_cost): New function.
7044 * targhooks.h (default_memory_move_cost): Declare function.
7045 * reload.h (memory_move_cost): Declare.
7046 (memory_move_secondary_cost): Change type of 'in' argument to bool.
7047 * reginfo.c (memory_move_cost): New function.
7048 (memory_move_secondary_cost): Change type of 'in' argument to bool.
7049 * ira.h (ira_memory_move_cost): Update comment.
7050 * ira.c: (ira_memory_move_cost): Update comment.
7051 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
7052 with memory_move_cost.
7053 * postreload.c (reload_cse_simplify_set): (Ditto.).
7054 * reload1.c (choose_reload_regs): (Ditto.).
7055 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
7056 (MEMORY_MOVE_COST): Revise documentation.
7057
7058 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
7059 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
7060 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
7061 type of 'in' argument to bool.
7062 (TARGET_MEMORY_MOVE_COST): Define.
7063
7064 2010-06-05 Jan Hubicka <jh@suse.cz>
7065
7066 * ipa-pure-const.c (propagate): Fix typo in handling of functions
7067 that cannot return. Be more careful when merging the results with
7068 previously known ones.
7069
7070 2010-06-05 Matthias Klose <doko@ubuntu.com>
7071
7072 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
7073 function to add the -iplugindir option.
7074 (find_plugindir_spec_function): Add new declaration and function.
7075 (static_spec_func): Use it for "find-plugindir".
7076
7077 2010-06-05 Jakub Jelinek <jakub@redhat.com>
7078
7079 PR c++/44361
7080 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
7081 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
7082 statement expression.
7083
7084 2010-06-05 Jan Hubicka <jh@suse.cz>
7085
7086 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
7087 (df_rd_problem_data): Convert sparse_invalidated_by_call,
7088 dense_invalidated_by_call to bitmap head.
7089 (df_rd_alloc, df_rd_bb_local_compute_process_def,
7090 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
7091 df_rd_start_dump, df_lr_verify_transfer_functions,
7092 df_live_verify_transfer_functions, df_chain_create_bb,
7093 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
7094 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
7095 df_simulate_one_insn_forwards, df_md_alloc,
7096 df_md_bb_local_compute_process_def,
7097 df_md_bb_local_compute_process_def, df_md_local_compute,
7098 df_md_transfer_function df_md_free): Update.
7099
7100 2010-06-05 Joseph Myers <joseph@codesourcery.com>
7101
7102 PR c/44322
7103 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
7104 target type for ADDR_EXPR; require no changes to qualifiers except
7105 for function types.
7106 * c-tree.h (c_build_type_variant): Remove.
7107
7108 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
7109
7110 * genautomata.c (get_excl_set): Do work per element, not per char.
7111 (check_presence_pattern_sets): Similar.
7112 (check_absence_pattern_sets): Similar.
7113
7114 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
7115
7116 * genautomata.c (curr_state_pass_num): Delete.
7117 (min_issue_delay_pass_states): Delete.
7118 (min_issue_delay): Delete.
7119 (initiate_min_issue_delay_pass_states): Delete.
7120 (output_min_issue_delay_table): Compute min_issue_delay_vect
7121 using a breadth-first search variant.
7122 (output_tables): Don't call initiate_min_issue_delay_pass_states.
7123
7124 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
7125
7126 PR boostrap/44421
7127 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
7128 (df_byte_lr_bb_local_compute): Likewise.
7129
7130 2010-06-03 Jason Merrill <jason@redhat.com>
7131
7132 Implement noexcept operator (5.3.7)
7133 * c-common.c (c_common_reswords): Add noexcept.
7134 * c-common.h (enum rid): Add RID_NOEXCEPT.
7135
7136 2010-06-04 Joseph Myers <joseph@codesourcery.com>
7137
7138 * config/darwin-driver.c (darwin_default_min_version): Use
7139 GCC-specific formats in diagnostics.
7140 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
7141 diagnostics.
7142 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
7143 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
7144 eval_spec_function, handle_braces, process_brace_body, main,
7145 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
7146 getenv_spec_function, compare_version_strings,
7147 version_compare_spec_function): Use GCC-specific formats in
7148 diagnostics.
7149
7150 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
7151
7152 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
7153 that operand 0 and operand 1 are equal.
7154 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
7155 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
7156 and operand 1 are equal.
7157 <default>: Ditto. Remove ??? comment.
7158 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
7159 and operand 1 are equal.
7160 <default>: Ditto. Remove ??? comment.
7161 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
7162 are equal.
7163 (*add<mode>_4) <default>: Ditto.
7164 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
7165
7166 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
7167
7168 * config/i386/i386-protos.h (ix86_print_operand): Declare.
7169 * config/i386/i386.c (ix86_print_operand): Make non-static.
7170 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
7171 * output.h (output_operand): Declare.
7172 * final.c (output_operand): Make non-static.
7173
7174 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
7175
7176 PR rtl-optimization/44013
7177 * sched-deps.c (add_dependence_list_and_free): Don't free lists
7178 when processing debug insns.
7179
7180 PR debug/41371
7181 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
7182 recursing. Check that recursion is bounded. Rename inner var
7183 to avoid hiding incoming argument.
7184
7185 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
7186
7187 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
7188 operands[2] == 255.
7189 (*addqi_3): Ditto.
7190 (*addqi_4): Ditto.
7191 (*addqi_5): Ditto.
7192 (*addqi_ext_1_rex64): Ditto.
7193 (*addqi_ext_1): Ditto.
7194
7195 (*addqi_4): Check for incdec_operand in QImode.
7196
7197 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
7198 using SWI mode iterator.
7199 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
7200 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
7201 mode iterator.
7202 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
7203 using SWI mode iterator.
7204
7205 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
7206
7207 PR c/25880
7208 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
7209 * c-format.c (gcc_diag_flag_specs): Add hash.
7210 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
7211 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
7212 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
7213 pp_c_cv_qualifiers. Handle qualifiers spelling here.
7214 (pp_c_type_qualifier_list): Call the function above.
7215 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
7216 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
7217 (WARN_FOR_QUALIFIERS): New macro.
7218 (convert_for_assignment): Use it.
7219
7220 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
7221
7222 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
7223
7224 2010-06-04 Jan Hubicka <jh@suse.cz>
7225
7226 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
7227 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
7228 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
7229 DF_BYTE_LR_OUT): Update for embedded bitmaps.
7230 * fwprop.c (single_def_use_enter_block): Likewise.
7231 * ddg.c (create_ddg_dep_from_intra_loop_link,
7232 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
7233 * loop-iv.c (latch_dominating_def): Likewise.
7234 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
7235 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
7236 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
7237 df_rd_transfer_function, df_rd_top_dump,
7238 df_rd_bottom_dump): Update.
7239 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
7240 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
7241 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
7242 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
7243 df_lr_verify_solution_start, df_lr_verify_solution_end,
7244 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
7245 df_live_free_bb_info, df_live_alloc, df_live_reset,
7246 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
7247 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
7248 df_live_verify_solution_start, df_live_verify_solution_end,
7249 df_live_verify_transfer_functions, df_chain_create_bb,
7250 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
7251 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
7252 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
7253 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
7254 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
7255 df_byte_lr_transfer_function, df_byte_lr_top_dump,
7256 df_byte_lr_bottom_dump, df_create_unused_note,
7257 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
7258 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
7259 df_md_transfer_function, df_md_init, df_md_confluence_0,
7260 df_md_confluence_n,
7261 df_md_top_dump, df_md_bottom_dump): Update.
7262 (struct df_lr_problem_data): Embedd bitmap headers.
7263
7264 2010-06-04 Jan Hubicka <jh@suse.cz>
7265
7266 * dce.c (dce_process_block): Do not re-scan already marked
7267 instructions.
7268
7269 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
7270
7271 PR rtl-optimization/39871
7272 PR rtl-optimization/40615
7273 PR rtl-optimization/42500
7274 PR rtl-optimization/42502
7275 * ira.c (init_reg_equiv_memory_loc: New function.
7276 (ira): Call it twice.
7277 * reload.h (calculate_elim_costs_all_insns): Declare.
7278 * ira-costs.c: Include "reload.h".
7279 (regno_equiv_gains): New static variable.
7280 (init_costs): Allocate it.
7281 (finish_costs): Free it.
7282 (ira_costs): Call calculate_elim_costs_all_insns.
7283 (find_costs_and_classes): Take estimated elimination costs
7284 into account.
7285 (ira_adjust_equiv_reg_cost): New function.
7286 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
7287 * reload1.c (init_eliminable_invariants, free_reg_equiv,
7288 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
7289 (elim_bb): New static variable.
7290 (reload): Move code out of here into init_eliminable_invariants and
7291 free_reg_equiv. Call them.
7292 (calculate_elim_costs_all_insns): New function.
7293 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
7294 all callers changed. If FOR_COSTS is true, don't call alter_reg,
7295 but call note_reg_elim_costly if we turned a valid memory address
7296 into an invalid one.
7297 * Makefile.in (ira-costs.o): Depend on reload.h.
7298
7299 2010-06-04 Julian Brown <julian@codesourcery.com>
7300
7301 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
7302 for pool ranges.
7303
7304 2010-06-04 Richard Guenther <rguenther@suse.de>
7305
7306 PR lto/41584
7307 * cgraph.h (struct varpool_node): Add lto_file_data field.
7308 * lto-cgraph.c (input_varpool_node): Initialize it.
7309
7310 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
7311
7312 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
7313 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
7314 predicate in "type" attribute calculation.
7315 (*addsi_1_zext): Ditto.
7316 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
7317 (*addsi_2_zext): Ditto.
7318 (*add<mode>_3): Ditto.
7319 (*addsi_3_zext): Ditto.
7320 (*add<mode>_5): Ditto.
7321
7322 2010-06-03 Jan Hubicka <jh@suse.cz>
7323
7324 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
7325 of bitmap_bit_p.
7326 * cfganal.c (compute_dominance_frontiers_1): Likewise.
7327
7328 2010-06-03 Jan Hubicka <jh@suse.cz>
7329
7330 * df-problems.c (df_create_unused_note, df_note_bb_compute):
7331 micro-optimize the checks when to add new note.
7332
7333 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
7334
7335 * final.c (output_asm_insn): Call
7336 targetm.asm_out.print_operand_punct_valid_p. Update comments.
7337 (output_operand): Call targetm.asm_out.print_operand. Update comments.
7338 (output_address): Call targetm.asm_out.print_operand_address.
7339 Update comments.
7340 * target.h (struct gcc_target): Add print_operand,
7341 print_operand_address, and print_operand_punct_valid_p fields.
7342 * targhooks.h (default_print_operand): Declare.
7343 (default_print_operand_address): Declare.
7344 (default_print_operand_punct_valid_p): Declare.
7345 * targhooks.c (default_print_operand): Define.
7346 (default_print_operand_address): Define.
7347 (default_print_operand_punct_valid_p): Define.
7348 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
7349 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
7350 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
7351 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
7352 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
7353 * vmsdbgout.c (addr_const_to_string): Update comment.
7354 * config/i386/i386.c (print_operand): Rename to...
7355 (ix86_print_operand): ...this. Make static.
7356 (print_operand_address): Rename to...
7357 (ix86_print_operand_address): ...this. Make static. Call
7358 ix86_print_operand instead of PRINT_OPERAND.
7359 (ix86_print_operand_punct_valid_p): New function.
7360 (TARGET_PRINT_OPERAND): Define.
7361 (TARGET_PRINT_OPERAND_ADDRESS): Define.
7362 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7363 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
7364 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7365 (PRINT_OPERAND): Delete.
7366 (PRINT_OPERAND_ADDRESS): Delete.
7367 * config/i386/i386-protos.h (print_operand): Delete prototype.
7368 (print_operand_address): Delete prototype.
7369
7370 2010-06-03 Richard Guenther <rguenther@suse.de>
7371
7372 PR tree-optimization/44403
7373 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7374 Preserve pointer qualifiers.
7375 (vect_create_data_ref_ptr): Likewise.
7376
7377 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
7378
7379 PR c++/44294
7380 * defaults.h (MAX_FIXED_MODE_SIZE): New.
7381
7382 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
7383
7384 2010-06-03 Jakub Jelinek <jakub@redhat.com>
7385
7386 PR debug/44375
7387 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
7388 return false if merging the bbs would lead to goto_locus
7389 location being lost from the IL.
7390
7391 2010-06-03 Jan Hubicka <jh@suse.cz>
7392 Jakub Jelinek <jakub@redhat.com>
7393
7394 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
7395 set->regs[i] is NULL or has just one entry.
7396
7397 2010-06-03 Jan Hubicka <jh@suse.cz>
7398
7399 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
7400 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
7401
7402 2010-06-03 Paul Brook <paul@codesourcery.com>
7403
7404 * config/arm/arm.c (FL_TUNE): Define.
7405 (arm_default_cpu, arm_cpu_select): Remove.
7406 (all_cores): Populate core field.
7407 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
7408 (arm_find_cpu): New function.
7409 (arm_handle_option): Lookup cpu/architecture names.
7410 (arm_override_options): Cleanup mcpu/march/mtune handling.
7411 (arm_file_start): Ditto.
7412
7413 2010-06-03 Alan Modra <amodra@gmail.com>
7414
7415 PR target/44169
7416 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
7417 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
7418 rtx to gen_load_toc_v4_PIC_1b. Tidy.
7419 (rs6000_emit_load_toc_table): Likewise.
7420
7421 2010-06-02 Jan Hubicka <jh@suse.cz>
7422
7423 * passes.c (init_optimization_passes): Put ipa reference
7424 after ipa pure-const.
7425
7426 2010-06-02 Jan Hubicka <jh@suse.cz>
7427
7428 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
7429 calls_read_all and calls_write_all.
7430 (get_reference_optimization_summary): Fix formatting.
7431 (is_proper_for_analysis): Check that decl is not readonly.
7432 (propagate_bits): Check CONST/PURE/noreturn flags.
7433 (ipa_init): Move all_module_statics to optimization_summary_obstack.
7434 (analyze_function): Ignore indirect edges.
7435 (copy_global_bitmap): For all module statics, do nothing.
7436 (generate_summary): Do not print calls_read_all/calls_write_all.
7437 (read_write_all_from_decl): Take node as argument; check
7438 cgraph_node_cannot_return.
7439 (propagate): Reorganize read_all/write_all computation;
7440 check indirect edges; check ecf flags; use all_module_statics
7441 in the results; do not free all_module_statics.
7442 (stream_out_bitmap): Handle all_module_statics.
7443 (ipa_reference_write_optimization_summary): Likewise; use
7444 varpool/cgraph encoders to get boundaries.
7445 (ipa_reference_read_optimization_summary): Read in all_module_statics;
7446 use it when possible.
7447
7448 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
7449
7450 PR target/44218
7451 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
7452 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
7453
7454 * doc/extend.texi (powerpc builtins): Document vec_recip,
7455 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
7456
7457 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
7458 (rs6000_emit_swrsqrt): Ditto.
7459 (rs6000_emit_swdivsf): Delete.
7460 (rs6000_emit_swdivdf): Ditto.
7461 (rs6000_emit_swrsqrtsf): Ditto.
7462
7463 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
7464 describe the reciprocal estimate support for each type.
7465 (recip_options): Map -mrecip=<opt> into option bits.
7466 (gen_2arg_fn_t): New typedef for binary rtx gen function.
7467 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
7468 reciprocal estimate instructions.
7469 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
7470 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
7471 Set up rs6000_recip_bits based on the -mrecip* options. Print the
7472 cost information if -mdebug=cost or -mdebug=reg.
7473 (rs6000_override_options): Set -mrecip-precision for power6, and
7474 power7 machines. If -mvsx or -mdfp, enable various options that
7475 came in previous instruction set ISAs, unless the option was
7476 explicitly disabled by the command line option. Parse
7477 -mrecip=<opt> options.
7478 (rs6000_builtin_vectorized_function): Add support for vectorizing
7479 the reciprocal estimate builtins and expansions.
7480 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
7481 (bdesc_2arg): Add reciprocal estimate builtins.
7482 (bdesc_1arg): Add reciprocal square root estimate builtins.
7483 (rs6000_expand_builtin): Rewrite to use a switch statement,
7484 instead of multiple if/then/elses. Add reciprocal estimate builtins.
7485 (rs6000_init_builtins): Create declarations for reciprocal
7486 estimate builtins.
7487 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
7488 sized, prefer traditional floating point registers, if integer
7489 vector types, prefer altivec registers. Don't actually look at
7490 the memory address any more.
7491 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
7492 builtins.
7493 (rs6000_load_constant_and_splat): New helper function to load up
7494 the constant for reciprocal estimate instructions.
7495 (rs6000_emit_madd): New helper function for generating
7496 multiply/add type instructions, based on the current switches.
7497 (rs6000_emit_msub): Ditto.
7498 (rs6000_emit_mnsub): Ditto.
7499 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
7500 replace a divide with a reciprocal estimate and fixup, adding
7501 support for machines with high precision and vectors.
7502 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
7503 low precision machines.
7504 (rs6000_emit_swdiv): New common function to be called to replace a
7505 division with reciprocal estimate and fixup.
7506 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
7507 for double and vector types. Add support for high precision machines.
7508
7509 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
7510 the reciprocal estimate instructions can be generated.
7511 (TARGET_FRE): Ditto.
7512 (TARGET_FRSQRTES): Ditto.
7513 (TARGET_FRSQRTE): Ditto.
7514 (RS6000_RECIP_*): New macros for reciprocal estimate support.
7515
7516 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
7517 square root estimate on vectors.
7518 (re<mode>2): New insn for reciprocal division estimate on vectors.
7519
7520 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
7521 New builtin.
7522 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
7523 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
7524 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
7525 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
7526 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
7527 (RS6000_BUILTIN_RSQRT): Ditto.
7528 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
7529 floating point builtin.
7530
7531 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7532 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
7533 __RECIP_PRECISION__ based on the command line switches.
7534 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
7535
7536 * config/rs6000/rs6000.opt (-mrecip): Document add support for
7537 replacing division instructions with reciprocal estimate and fixup.
7538 (-mrecip=<opt>): New option.
7539 (-mrecip-precision): Ditto.
7540
7541 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
7542 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
7543 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
7544 precision scalar.
7545
7546 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
7547 (UNSPEC_VREFP): Ditto.
7548 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
7549 conterparts with regard to support of -mno-fused-madd and -ffast-math.
7550 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
7551 reciprocal estimate instructions to be generated.
7552 (altivec_vrefp): Ditto.
7553
7554 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
7555 estimate support.
7556 (rreg): New mode attribute for reciprocal estimate support.
7557 (recip<mode>3): New insn for division using reciprocal estimate
7558 and fixup builtins.
7559 (divide define_split): New define_split to convert floating point
7560 division to use reciprocal estimate if the user used the
7561 appropriate options and the split is run when we can add new
7562 pseudo registers for the fixup.
7563 (rsqrt<mode>2): New insn for reciprocal square root support.
7564 (recipsf3): Move into recip<mode>3.
7565 (recipdf3): Ditto.
7566 (fres): Use TARGET_FRES.
7567 (rsqrtsf2): Move into rsqrt<mode>2.
7568 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
7569 (copysignsf3): Add support for VSX.
7570 (fred): Use TARGET_FRE.
7571 (fred_fpr): Ditto.
7572 (rsqrtdf_internal1): New function for frsqrte instruciton.
7573
7574 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
7575 (vec_rsqrt): Ditto.
7576
7577 2010-06-03 Richard Guenther <rguenther@suse.de>
7578
7579 PR middle-end/44291
7580 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
7581 (set_user_assembler_libfunc): Likewise.
7582
7583 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
7584
7585 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
7586 defaults.h.
7587 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
7588 to defaults.h
7589 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
7590 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
7591 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
7592 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
7593 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
7594 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
7595 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
7596 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
7597 * defaults.h: Updated for above mentioned changes.
7598
7599 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
7600
7601 * c-common.c: Remove header include of tm_p.h.
7602 * Makefile.in (c-common.o): Remove TM_P_H dependency.
7603
7604 2010-06-02 Jakub Jelinek <jakub@redhat.com>
7605
7606 * tree.h (struct tree_decl_map): New type.
7607 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
7608 (tree_decl_map_hash): New prototype.
7609 (debug_expr_for_decl, value_expr_for_decl): Change into
7610 tree_decl_map hashtab from tree_map.
7611 (init_ttree): Adjust initialization.
7612 (tree_decl_map_hash): New function.
7613 (decl_debug_expr_lookup, decl_debug_expr_insert,
7614 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
7615
7616 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7617
7618 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
7619 linker emulations.
7620 * configure: Regenerate.
7621 * config.in: Regenerate.
7622
7623 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
7624 (X86_64_EMULATION): Define.
7625 (TARGET_LD_EMULATION): Use them.
7626
7627 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
7628 (SPARC64_EMULATION): Define.
7629 (LINK_ARCH_SPEC): Use them.
7630
7631 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
7632
7633 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
7634 smallest_mode_for_size for computing the precision types of new
7635 graphite IVs. Do not call lang_hooks.types.type_for_size.
7636
7637 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
7638
7639 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
7640 information.
7641 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
7642
7643 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
7644
7645 PR middle-end/44363
7646 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
7647 return false instead.
7648
7649 2010-06-02 Jan Hubicka <jh@suse.cz>
7650
7651 PR middle-end/44295
7652 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
7653 create new cgraph node to check callee.
7654
7655 2010-06-02 Richard Guenther <rguenther@suse.de>
7656
7657 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
7658
7659 2010-06-02 Richard Guenther <rguenther@suse.de>
7660
7661 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
7662 (lto_wrapper_cleanup): ... this. Do not exit.
7663 (fatal): Adjust. Exit here.
7664 (fatal_perror): Likewise.
7665 (fatal_signal): New function.
7666 (main): Set up signal handlers to cleanup temporary files.
7667 * Makefile.in (lto-wrapper.o): Adjust dependencies.
7668
7669 2010-06-02 Richard Guenther <rguenther@suse.de>
7670
7671 PR tree-optimization/44377
7672 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
7673
7674 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7675
7676 * config/s390/2097.md (z10_fhex): Remove insn reservation.
7677 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
7678 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
7679 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
7680 instruction.
7681 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
7682
7683 2010-06-02 Jan Hubicka <jh@suse.cz>
7684
7685 * bitmap.c (bitmap_descriptor): Add search_iter.
7686 (bitmap_find_bit): Increment it.
7687 (print_statistics): Print it.
7688
7689 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
7690
7691 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
7692 instead of gimple_build_call_vec. Delete unnecessary local variable.
7693
7694 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
7695
7696 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
7697 change from yesterday.
7698
7699 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
7700
7701 * c-ada-spec.c: Clean up redundant includes.
7702
7703 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
7704
7705 * gimplify.c: Do not include except.h and optabs.h.
7706 (gimplify_body): Do not initialize RTL profiling.
7707 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
7708 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
7709 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
7710 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
7711 langhooks.h.
7712
7713 * tree-pretty-print.h: Include pretty-print.h.
7714 * gimple-pretty-print.h: Include pretty-print.h.
7715
7716 * tree-pretty-print.c: Do not include diagnostic.h.
7717 * tree-vrp.c: Likewise.
7718 * tree-tailcall.c: Likewise
7719 * tree-scalar-evolution.c: Likewise
7720 * tree-ssa-dse.c: Likewise
7721 * tree-chrec.c: Likewise
7722 * tree-ssa-sccvn.c: Likewise
7723 * tree-ssa-copyrename.c: Likewise
7724 * tree-nomudflap.c: Likewise
7725 * tree-call-cdce.c: Likewise
7726 * tree-stdarg.c: Likewise
7727 * tree-ssa-math-opts.c: Likewise
7728 * tree-nrv.c: Likewise
7729 * tree-ssa-sink.c: Likewise
7730 * tree-browser.c: Likewise
7731 * tree-ssa-loop-ivcanon.c: Likewise
7732 * tree-ssa-loop.c: Likewise
7733 * tree-parloops.c: Likewise
7734 * tree-ssa-address.c: Likewise
7735 * tree-ssa-ifcombine.c: Likewise
7736 * tree-if-conv.c: Likewise
7737 * tree-data-ref.c: Likewise
7738 * tree-affine.c: Likewise
7739 * tree-ssa-phiopt.c: Likewise
7740 * tree-ssa-coalesce.c: Likewise
7741 * tree-ssa-pre.c: Likewise
7742 * tree-ssa-live.c: Likewise
7743 * tree-predcom.c: Likewise
7744 * tree-ssa-forwprop.c: Likewise
7745 * tree-ssa-dce.c: Likewise
7746 * tree-ssa-ter.c: Likewise
7747 * tree-ssa-loop-prefetch.c: Likewise
7748 * tree-optimize.c: Likewise
7749 * tree-ssa-phiprop.c: Likewise
7750 * tree-object-size.c: Likewise
7751 * tree-outof-ssa.c: Likewise
7752 * tree-ssa-structalias.c: Likewise
7753 * tree-switch-conversion.c: Likewise
7754 * tree-ssa-reassoc.c: Likewise
7755 * tree-ssa-operands.c: Likewise
7756 * tree-vectorizer.c: Likewise
7757 * tree-vect-data-refs.c: Likewise
7758 * tree-vect-generic.c: Likewise
7759 * tree-vect-stmts.c: Likewise
7760 * tree-vect-patterns.c: Likewise
7761 * tree-vect-slp.c: Likewise
7762 * tree-vect-loop.c: Likewise
7763 * tree-ssa-loop-ivopts.c: Likewise
7764 * tree-ssa-loop-im.c: Likewise
7765 * tree-ssa-loop-niter.c: Likewise
7766 * tree-ssa-loop-unswitch.c: Likewise
7767 * tree-ssa-loop-manip.c: Likewise
7768 * tree-ssa-loop-ch.c: Likewise
7769 * tree-dump.c: Likewise
7770 * tree-complex.c: Likewise
7771
7772 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
7773 * tree-ssa-uninit.c: Likewise
7774 * tree-ssa-threadupdate.c: Likewise
7775 * tree-ssa-uncprop.c: Likewise
7776 * tree-ssa-ccp.c: Likewise
7777 * tree-ssa-dom.c: Likewise
7778 * tree-ssa-propagate.c: Likewise
7779 * tree-ssa-alias.c: Likewise
7780 * tree-dfa.c: Likewise
7781 * tree-cfgcleanup.c: Likewise
7782 * tree-sra.c: Likewise
7783 * tree-ssa-copy.c: Likewise
7784 * tree-ssa.c: Likewise
7785 * tree-profile.c: Likewise
7786 * tree-cfg.c: Likewise
7787 * tree-ssa-threadedge.c: Likewise
7788 * tree-vect-loop-manip.c: Likewise
7789
7790 * tree-inline.c: Do not include diagnostic.h and expr.h.
7791 Include rtl.h.
7792 (copy_decl_for_dup_finish): Do not use NULL_RTX.
7793
7794 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
7795 * tree-loop-distribution.c: Likewise.
7796
7797 2010-06-01 Jan Hubicka <jh@suse.cz>
7798
7799 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
7800
7801 2010-06-01 Jan Hubicka <jh@suse.cz>
7802
7803 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
7804 remove return value.
7805 (split_bbs_on_noreturn_calls) .... here.
7806 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
7807 * tree-flow.h (fixup_noreturn_call): New.
7808
7809 2010-06-01 Jan Hubicka <jh@suse.cz>
7810
7811 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
7812
7813 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
7814
7815 * tree.h (build_nt_call_list): Delete.
7816 * tree.c (build_nt_call_list): Delete.
7817
7818 2010-06-01 Jan Hubicka <jh@suse.cz>
7819
7820 * fwprop.c: Make emit-rtl.h include last.
7821 * rtlanal.c: Include emit-rtl.h.
7822 * genautomata.c: Output emit-rtl include into insn-automata.c
7823 * df-scan.c: Include emit-rtl.h.
7824 * haifa-sched.c: Indlude emit-rtl.h.
7825 * mode-switching.c: Indlude emit-rtl.h.
7826 * graph.c: Indlude emit-rtl.h.
7827 * sel-sched.c: Include emit-rtl.h.
7828 * sel-sched-ir.c: Include emit-rtl.h.
7829 * ira-build.c: Include emit-rtl.h.
7830 * emit-rtl.c: (first_insn, last_insn): Remove defines.
7831 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
7832 Move to emit-rtl.h.
7833 (set_new_first_and_last_insn, get_last_insn_anywhere,
7834 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
7835 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
7836 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
7837 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
7838 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
7839 Use accessor functions.
7840 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
7841 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
7842 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
7843 mem_expr_equal_p): Move here from rtl.h.
7844 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
7845 Move here from emit-rtl.c; make inline.
7846 * cfglayout.h: Include emit-rtl.h.
7847 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
7848 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
7849 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
7850 mem_expr_equal_p, get_insns, set_first-insn,
7851 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
7852 * reg-stack.c: Include emit-rtl.h.
7853 * dce.c: Likewise.
7854
7855 2010-06-01 Jan Hubicka <jh@suse.cz>
7856
7857 * cgraph.h (tree_function_versioning): Update prototype.
7858 (cgraph_function_versioning): Update prototype.
7859 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
7860 bitmap.
7861 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
7862 (cgraph_materialize_clone, save_inline_function_body): Update use of
7863 tree_function_versioning.
7864 * tree-inline.c (copy_bb): Look for previous copied block to link
7865 after; fix debug output.
7866 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
7867 (copy_body): Likewise.
7868 (expand_call_inline): Update use of copy_body.
7869 (tree_function_versioning): Update use of copy body; accept
7870 blocks_to_copy and new_entry.
7871
7872 2010-06-01 Jan Hubicka <jh@suse.cz>
7873
7874 * gegenrtl.c: Remove unnecesary prototypes.
7875 (gendecl): Remove.
7876 (gendef): Produce static inline.
7877 (gencode): Remove.
7878 (main): Do not decode parameters; generate header only.
7879 * Makefile.in (genrtl.c): Remove.
7880
7881 2010-06-01 Jan Hubicka <jh@suse.cz>
7882
7883 * tree-switch-conversion.c (build_one_array): Make it readonly.
7884
7885 2010-06-01 Richard Guenther <rguenther@suse.de>
7886
7887 * optabs.c (init_optabs): Guard all accesses to reinit.
7888 * ipa-pure-const.c (propagate): Fix another typo.
7889 * opts.c (common_handle_option): Split assignment to bool.
7890 * c-opts.c (c_common_handle_option): Likewise.
7891
7892 2010-06-01 Arnaud Charlet <charlet@adacore.com>
7893 Matthew Gingell <gingell@adacore.com>
7894
7895 * doc/invoke.texi: Mention -fdump-ada-spec.
7896 * tree-dump.c (dump_files): Add ada-spec.
7897 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
7898 * tree-pass.h (tree_dump_index): Add TDI_ada.
7899 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
7900 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
7901 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
7902 * c-decl.c: Include c-ada-spec.h.
7903 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
7904 functions.
7905 (c_write_global_declarations): Add handling of -fdump-ada-spec.
7906 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
7907 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
7908 * c-ada-spec.h, c-ada-spec.c: New files.
7909
7910 2010-06-01 Richard Guenther <rguenther@suse.de>
7911
7912 PR lto/43853
7913 * ipa-pure-const.c (get_function_state): Hand back varying state
7914 if we do not have one.
7915 (has_function_state): New function.
7916 (duplicate_node_data): Adjust.
7917 (remove_node_data): Likewise.
7918 (pure_const_write_summary): Likewise.
7919 (propagate): Likewise. Fix typo.
7920
7921 2010-06-01 Jan Hubicka <jh@suse.cz>
7922
7923 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
7924 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
7925 (execute_all_ipa_transforms): Do not play with the states.
7926
7927 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
7928
7929 * config/arm/t-linux-androideabi: New.
7930 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
7931
7932 2010-06-01 Jan Hubicka <jh@suse.cz>
7933
7934 * tree-inline.c (estimate_num_insns): For stdarg functions look
7935 into call statement to count cost of argument passing.
7936
7937 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
7938
7939 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
7940 argument for fprintf.
7941 (ix86_output_addr_diff_elt): Likewise.
7942 (x86_function_profiler): Likewise.
7943 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
7944 (LPREFIX): Likewise.
7945 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
7946
7947 2010-05-31 Jakub Jelinek <jakub@redhat.com>
7948
7949 PR target/44338
7950 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
7951 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
7952 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
7953 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
7954 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
7955 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
7956 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
7957 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
7958 TARGET_FUSED_MADD.
7959
7960 2010-05-31 Jan Hubicka <jh@suse.cz>
7961
7962 * tree.h (tree_range_check_failed): Declare noreturn.
7963
7964 2010-05-31 Jan Hubicka <jh@suse.cz>
7965
7966 * gimple.c (gimple_call_builtin_p): New function.
7967 * gimple.h (gimple_call_builtin_p): Declare.
7968 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
7969 to exit.
7970 (execute_warn_function_return): BUILT_IN_RETURN is return.
7971 (split_critical_edges): Return edges are not critical.
7972 (is_ctrl_altering_stmt): Builtin_in_return is altering.
7973 (gimple_verify_flow_info): Handle built_in_return.
7974 (execute_warn_function_return): Handle built_in_return.
7975 * ipa-pure-const.c (check_call): Ignore builtin_return.
7976
7977 2010-05-31 Jakub Jelinek <jakub@redhat.com>
7978
7979 PR middle-end/44337
7980 * expr.c (expand_assignment): Don't store anything for out-of-bounds
7981 array accesses with non-MEM.
7982
7983 PR tree-optimization/44182
7984 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
7985 newly needs to end a bb is followed by debug stmts, instead return
7986 true from the function at the end.
7987 (maybe_move_debug_stmts_to_successors): New function.
7988 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
7989
7990 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
7991
7992 PR target/44161
7993 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
7994
7995 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
7996
7997 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
7998 for nested functions in non-optimized compilation.
7999
8000 2010-05-31 Richard Guenther <rguenther@suse.de>
8001
8002 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
8003
8004 2010-05-30 Jan Hubicka <jh@suse.cz>
8005
8006 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
8007
8008 2010-05-30 Richard Guenther <rguenther@suse.de>
8009
8010 PR lto/42975
8011 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
8012 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
8013 no longer needed.
8014
8015 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
8016
8017 * config/darwin.c (output_objc_section_asm_op): Add comment.
8018 (name_needs_quotes): Add '_' to list of valid comment chars.
8019 (machopic_output_function_base_name): Remove unneeded quotes.
8020 (darwin_encode_section_info): Adjust asm whitespace.
8021 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
8022 (ASM_OUTPUT_LOCAL): Ditto.
8023 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
8024 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
8025 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
8026
8027 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8028
8029 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
8030 RS6000_OUTPUT_BASENAME unconditionally.
8031 (rs6000_output_function_epilogue): Likewise.
8032
8033 2010-05-30 Jan Hubicka <jh@suse.cz>
8034
8035 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
8036 nodes.
8037
8038 2010-05-30 Richard Guenther <rguenther@suse.de>
8039
8040 * tree-cfg.c (verify_gimple_assign_single): Implement
8041 verification for COND_EXPR rhs.
8042
8043 2010-05-30 Jan Hubicka <jh@suse.cz>
8044
8045 * cgraph.h (cgraph_dump_file): Declare.
8046 * cgraphunit.c (cgraph_dump_file): Export.
8047 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
8048
8049 2010-05-30 Jan Hubicka <jh@suse.cz>
8050
8051 * dwarf2out.c (reference_to_unused,
8052 premark_types_used_by_global_vars_helper): Avoid creation of new
8053 varpool nodes.
8054
8055 2010-05-30 Jan Hubicka <jh@suse.cz>
8056
8057 * cgraph.h (cgraph_node_cannot_return,
8058 cgraph_edge_cannot_lead_to_return): New functions.
8059 * cgraph.c (cgraph_node_cannot_return,
8060 cgraph_edge_cannot_lead_to_return): Use them.
8061 * ipa-pure-const.c (pure_const_names): New static var.
8062 (check_call): Handle calls not leading to return.
8063 (pure_const_read_summary): Dump info read.
8064 (propagate): Dump info about propagation process; ignore side effects
8065 of functions not leading to exit; fix handling of pure functions.
8066
8067 2010-05-30 Jan Hubicka <jh@suse.cz>
8068
8069 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
8070 for tail call epilogues.
8071
8072 2010-05-30 Jan Hubicka <jh@suse.cz>
8073
8074 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
8075 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
8076 dump files.
8077
8078 2010-05-29 Jan Hubicka <jh@suse.cz>
8079
8080 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
8081 node; remove references in node we no longer keep in cgrpah but need
8082 body of.
8083
8084 2010-05-29 Jan Hubicka <jh@suse.cz>
8085
8086 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
8087
8088 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8089
8090 PR target/44165
8091 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
8092
8093 2010-05-29 Jan Hubicka <jh@suse.cz>
8094
8095 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
8096 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
8097 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
8098 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
8099 debug_names_replaced_by, debug_update_ssa): Likewise.
8100 * sbitmap.c (debug_sbitmap): Likewise.
8101 * genrecog.c (debug_decision, debug_decision_list): Likewise.
8102 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
8103 debug_tree_chain): Likewise.
8104 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
8105 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
8106 * optabs.c (debug_optab_libfuncs): Likewise.
8107 (verify_loop_closed_ssa): Likewise.
8108 * value-prof.c (verify_histograms): Likewise.
8109 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
8110 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
8111 * cfghooks.c (verify_flow_info): Likewise.
8112 * fold-const.c (debug_fold_checksum): Likewise.
8113 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
8114 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
8115 Likewise.
8116 * omega.c (debug_omega_problem): Likewise.
8117 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
8118 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
8119 * dominance.c (verify_dominators, debug_dominance_info,
8120 debug_dominance_tree): Likewise.
8121 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
8122 * df_regno_debug, df_ref_debug,
8123 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
8124 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
8125 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
8126 * sel-sched.c (debug_state): Likewise.
8127 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
8128 Likewise.
8129 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
8130 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
8131 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
8132 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
8133 Likewise.
8134 * c-pretty-print.c (debug_c_tree): Likewise.
8135 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
8136 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
8137 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
8138 * ebitmap.c (debug_ebitmap): Likewise.
8139 * function.c (debug_find_var_in_block_tree): Likewise.
8140 * print-rtl.c (debug_rtx): Likewise.
8141 (debug_rtx_count): Likewise.
8142 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
8143 * stor-layout.c (debug_rli): Likewise.
8144 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
8145 * tree-data-ref.c (debug_data_references,
8146 debug_data_dependence_relations, debug_data_reference,
8147 debug_data_dependence_relation, debug_rdg_vertex,
8148 debug_rdg_component, debug_rdg): Likewise.
8149 * tree-affine.c (debug_aff): Likewise.
8150 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
8151 Likewise.
8152 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
8153 * emit-rtl.c (verify_rtl_sharing): Likewise.
8154 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
8155 debug_value_expressions): Likewise.
8156 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
8157 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
8158 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
8159 * cfglayout.c (verify_insn_chain): Likewise.
8160 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
8161 debug_clast_stmt, debug_generated_program): Likewise.
8162 * ggc-page.c (debug_print_page_list): Likewise.
8163 * tree-ssa-ter.c (debug_ter): Likewise.
8164 * graphite-dependences.c (debug_pddr): Likewise.
8165 * sched-deps.c (debug_ds): Likewise.
8166 * tree-ssa.c (verify_ssa): Likewise.
8167 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
8168 debug_scattering_functions, debug_iteration_domains, debug_pdr,
8169 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
8170 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
8171 * tree-inline.c (debug_find_tree): Likewise.
8172 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
8173 debug_ppl_powerset_matrix): Likewise.
8174 * var-tracking.c (debug_dv): Likewise.
8175 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
8176 * cfgloop.c (verify_loop_structure): Likewise.
8177 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
8178 * c-common.c (verify_sequence_points): Likewise.
8179 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
8180 debug_candidates, debug_rgn_dependencies): Likewise.
8181 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
8182 * debug_constraint_graph, debug_solution_for_var,
8183 debug_sa_points_to_info): Likewise.
8184 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
8185 Likewie.
8186 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
8187 debug_loops, debug_loop, debug_loop_num): Likewise.
8188 * passes.c (debug_pass): Likewise.
8189 (dump_properties): Likewise; add cfglayout property.
8190 (debug_properties): Likewise.
8191 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
8192 * varpool.c (debug_varpool): Likewise.
8193 * regcprop.c (debug_value_data): Likewise.
8194 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
8195 debug_immediate_uses_for): Likewise.
8196
8197 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
8198
8199 PR bootstrap/44315
8200 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
8201 Filter out insn-flags.h.
8202
8203 2010-05-29 Jan Hubicka <jh@suse.cz>
8204
8205 * cgraph.h (struct varpool_node_set_def,
8206 struct cgraph_node_set_def): Remove unused AUX pointer.
8207 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
8208 VEC_empty macro.
8209
8210 2010-05-29 Jan Hubicka <jh@suse.cz>
8211
8212 PR middle-end/44324
8213 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
8214
8215 2010-05-29 Richard Guenther <rguenther@suse.de>
8216
8217 * lto-streamer.c (cached_bp): New global variable.
8218 (bitpack_create): Return the cached bitpack, if available.
8219 (bitpack_delete): Clear and cache the bitpack, if appropriate.
8220 (bp_pack_value): Remove redundant asserts.
8221
8222 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
8223
8224 PR middle-end/44306
8225 * tree-if-conv.c (is_true_predicate): New.
8226 (is_predicated): Use is_true_predicate.
8227 (add_to_predicate_list): Same. Do not use unshare_expr.
8228 (add_to_dst_predicate_list): Same.
8229
8230 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
8231
8232 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
8233 field on edges.
8234 (predicate_bbs): Same.
8235 (clean_predicate_lists): Same.
8236 (find_phi_replacement_condition): Do not AND the predicate from
8237 edge->aux.
8238
8239 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
8240
8241 PR bootstrap/44315
8242 * Makefile.in (build/gencondmd.o): Add a missing `\'.
8243
8244 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8245
8246 PR target/44261
8247 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
8248 (negdf2): Adjust expander pattern and use negdf2_slow.
8249 (negsf2): Likewise.
8250
8251 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
8252
8253 * basic-block.h (struct control_flow_graph): Move last_label_uid field
8254 up.
8255 * df.h (struct df_base_ref): Move regno field up.
8256 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
8257 * expr.h (struct separate_ops): Move location field up.
8258 * optabs.h (struct optab_d): Move libcall_basename field down.
8259 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
8260 * config/i386/i386.h (struct machine_function): Convert call_abi field
8261 into a bitfield. Move cfa field to the end of the structure.
8262
8263 2010-05-29 Jan Hubicka <jh@suse.cz>
8264
8265 * varpool.c (varpool_get_node): Fix lookup.
8266
8267 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
8268
8269 * config/spu/spu-protos.h: Do not include rtl.h. Protect
8270 RTL specific prototypes with #ifdef RTX_CODE.
8271 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
8272 * config/spu/t-spu-elf: Fix dependencies.
8273
8274 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
8275
8276 2010-05-29 Mike Stump <mikestump@comcast.net>
8277
8278 PR bootstrap/44315
8279 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
8280 TM_H when building to avoid dependency loops.
8281
8282 2010-05-29 Jan Hubicka <jh@suse.cz>
8283
8284 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
8285 refs and body; not the whole node for masters of materialized clones.
8286
8287 2010-05-29 Mike Stump <mikestump@comcast.net>
8288
8289 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
8290
8291 2010-05-29 Jan Hubicka <jh@suse.cz>
8292
8293 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
8294 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
8295 use of clone_function_name.
8296 * cgraph.h (cgraph_create_virtual_clone,
8297 cgraph_function_versioning): update prototypes.
8298 (clone_function_name): Declare.
8299 * ipa-cp.c (ipcp_insert_stage): Update call of
8300 cgraph_create_virtual_clone.
8301 * omp-low.c (create_omp_child_function_name): Use
8302 cgraph_create_virtual_clone.
8303 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
8304 (cgraph_function_versioning): Take SUFFIX argument; produce new name
8305 and make decl local.
8306
8307 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
8308
8309 * vec.h: Include statistics.h
8310 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
8311 with VEC_H.
8312
8313 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
8314
8315 * c-lex.c: Do not include c-tree.h.
8316 * c-pretty-print.c: Likewise.
8317 * c-opts.c: Likewise.
8318 * c-gimplify.c: Likewise.
8319 * c-common.c: Likewise.
8320 * c-dump.c: Likewise. Include c-common.h.
8321
8322 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
8323
8324 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
8325 before including diagnostic-core.h.
8326 (c_cpp_error): New prototype moved from c-tree.h.
8327 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
8328 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
8329 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
8330 (c_cpp_error): Prototype moved to c-common.h.
8331 * Makefile.in: Update dependency for C_COMMON_H.
8332
8333 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
8334
8335 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
8336 * c-common.c (c_register_addr_space): Remove here.
8337 * c-decl.c (c_register_addr_space): Re-add here.
8338
8339 2010-05-28 Mike Stump <mikestump@comcast.net>
8340
8341 * config/darwin-c.c: Remove c-tree.h include.
8342
8343 2010-05-28 Joseph Myers <joseph@codesourcery.com>
8344
8345 * gcc.c: Include diagnostic.h.
8346 (error_count): Remove. All users changed to use errorcount.
8347 (programname): Remove. All users changed to use progname.
8348 (fancy_abort, internal_error, fatal_error, error, warning, inform,
8349 fnotice): Remove.
8350 (execute): Don't include "Internal error" and bug reporting
8351 information in argument of internal_error call.
8352 (process_command): Don't increment error_count after calling
8353 perror_with_name.
8354 (input_filename): Rename to gcc_input_filename. All users
8355 changed.
8356 (main): Call diagnostic_initialize. Register delete_temp_files
8357 with atexit. Use seen_error to test for errors.
8358 * gcc.h: Include diagnostic-core.h.
8359 (fatal_error, error, warning): Remove.
8360 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
8361 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
8362 (gcc.o): Update dependencies.
8363
8364 2010-05-28 Jeff Law <law@redhat.com>
8365
8366 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
8367 functions.
8368 * ira.h (ira_bad_reload_regno): Declare
8369 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
8370
8371 * ira-color.c (update_curr_costs): Free updated hard reg costs.
8372 (ira_reassign_conflict_allocnos): Remove bogus asserts.
8373 (allocno_reload_assign): Likewise.
8374
8375 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
8376
8377 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
8378 build1_stat.
8379
8380 2010-05-28 Richard Guenther <rguenther@suse.de>
8381
8382 PR lto/44312
8383 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
8384 Stream fixed-point constants mode.
8385 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
8386 and TYPE_PRECISION.
8387 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
8388 Stream fixed-point constants mode.
8389 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
8390 and TYPE_PRECISION.
8391
8392 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
8393
8394 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
8395 only place it was called from.
8396 (number_of_latch_executions): Do not return chrec_dont_know when the
8397 may_be_zero is a runtime condition: instead, return a COND_EXPR
8398 including the may_be_zero condition.
8399 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
8400 of nb_iterations.
8401 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
8402 COND_EXPRs.
8403
8404 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
8405
8406 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
8407 generate COND_EXPRs for degenerate_phi_result.
8408
8409 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
8410
8411 PR middle-end/44293
8412 * tree-if-conv.c (if_convertible_loop_p): Check the
8413 if-convertibility of phi nodes in non predicated BBs.
8414
8415 2010-05-28 Joseph Myers <joseph@codesourcery.com>
8416
8417 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
8418
8419 2010-05-28 Joseph Myers <joseph@codesourcery.com>
8420
8421 PR driver/15303
8422 * gcc.c (inform, warning, inform): New functions.
8423 (fatal_ice): Rename to internal_error; change cmsgid parameter to
8424 gmsgid. All callers changed.
8425 (notice): Rename to fnotice; add parameter fp. All callers changed.
8426 (fatal_error): Rename to fatal_signal. All users changed.
8427 (fatal): Rename to fatal_error; change cmsgid parameter to
8428 gmsgid. All callers changed.
8429 (process_command): Use warning instead of error for warnings.
8430 (end_going_arg): Don't use _() around argument of error.
8431 (do_spec_1): Use inform for message from %n specs. Use warning
8432 instead of error for warnings.
8433 (main): Use inform for comparison messages. Use warning for
8434 message about unused linker input.
8435 (error): Increment error_count. Print "error: ".
8436 * gcc.h (fatal): Change to fatal_error.
8437 (warning): Declare.
8438 * config/darwin-driver.c (darwin_default_min_version): Use warning
8439 instead of fprintf for warnings.
8440 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
8441
8442 2010-05-28 Julian Brown <julian@codesourcery.com>
8443
8444 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
8445 (*thumb2_addsi3_compare0_scratch): New.
8446 * config/arm/constraints.md (Pv): New.
8447 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
8448 for ARM mode only.
8449 (*addsi3_compare0_scratch): Likewise.
8450
8451 2010-05-28 Jan Hubicka <jh@suse.cz>
8452
8453 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
8454 check.
8455 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
8456 only on local statics.
8457
8458 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
8459
8460 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
8461
8462 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
8463
8464 PR bootstrap/44314
8465 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
8466 (OPTION_GLIBC): Define.
8467
8468 2010-05-28 Jakub Jelinek <jakub@redhat.com>
8469
8470 PR debug/41048
8471 * dwarf2out.c (double_int_type_size_in_bits): New function.
8472 (round_up_to_align): Change first argument and return value to
8473 double_int.
8474 (field_byte_offset): Work internally on double_ints.
8475
8476 PR target/43636
8477 * builtins.c (expand_movstr): Use a temporary pseudo instead
8478 of target even when target is not NULL and not const0_rtx, but
8479 fails movstr predicate.
8480 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
8481
8482 2010-05-28 Joseph Myers <joseph@codesourcery.com>
8483
8484 * final.c (rest_of_clean_state): Use %m in errors instead of
8485 strerror (errno).
8486 * gengtype.c (read_input_list, close_output_files): Use xstrerror
8487 instead of strerror.
8488 * toplev.c (process_options): Use %m in errors instead of strerror
8489 (errno).
8490 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
8491 (errno).
8492
8493 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
8494
8495 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
8496 (ix86_canonical_va_list_type): Make static. Add declaration.
8497 (ix86_enum_va_list): Make static. Reindent.
8498 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
8499 (ix86_canonical_va_list_type): Ditto.
8500 (ix86_enum_va_list): Ditto.
8501
8502 2010-05-28 Richard Guenther <rguenther@suse.de>
8503
8504 * lto-wrapper.c (run_gcc): With -save-temps generate a
8505 user-visible ltrans filename. Fixup ltrans unit numbering.
8506
8507 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
8508
8509 * c-common.c (c_common_nodes_and_builtins): Replace use
8510 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
8511 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
8512 to ix86_enum_va_list.
8513 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
8514 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
8515 (TARGET_ENUM_VA_LIST_P): Add hook description.
8516 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
8517 * target.h (gcc_target): Add enum_va_list hook.
8518
8519 PR bootstrap/44299
8520 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
8521 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
8522 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
8523
8524 2010-05-28 Alan Modra <amodra@gmail.com>
8525
8526 PR target/44266
8527 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
8528 emit_library_call machinery to set up __tls_get_addr calls.
8529
8530 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8531
8532 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
8533
8534 2010-05-28 Dodji Seketeli <dodji@redhat.com>
8535
8536 Revert fix for PR c++/44188
8537 * c-common.c (is_typedef_decl): Revert the moving of this
8538 definition ...
8539 * tree.c (is_typedef_decl): ... here.
8540 (typdef_variant_p): Revert the moving of this definition
8541 here from gcc/cp/tree.c.
8542 * c-common.h (is_typedef_decl): Revert the moving of this
8543 declaration ...
8544 * tree.h (is_typedef_decl): ... here.
8545 (typedef_variant_p): Revert the moving of this declaration here
8546 from gcc/cp/cp-tree.h
8547 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
8548 (gen_tagged_type_die): Revert the splitting out of ...
8549 (gen_type_die_with_usage): ... this function. Revert the anonymous
8550 tagged type handling.
8551 (gen_typedef_die): Revert emitting DW_TAG_typedef for
8552 typedefs naming anonymous tagged types.
8553
8554 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
8555
8556 * config/rs6000/rs6000-modes.def (PSImode): Delete.
8557
8558 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
8559
8560 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
8561 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
8562 throughout.
8563 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
8564 "xer" to "ca".
8565 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
8566 XER_REGS to CA_REGS throughout.
8567 * config/rs6000/rs6000.h: Same.
8568 (ADDITIONAL_REGISTER_NAMES): Add "xer".
8569 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
8570 that mode_iterator "P" is the size for arithmetic carries as well.
8571 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
8572
8573 2010-05-28 Jakub Jelinek <jakub@redhat.com>
8574
8575 PR bootstrap/44255
8576 * combine.c (struct rtx_subst_pair): Define unconditionally.
8577 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
8578 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
8579 Call make_compound_operation on pair->to.
8580 (propagate_for_debug): Don't call make_compound_operation here.
8581 Always use simplify_replace_fn_rtx.
8582
8583 2010-05-27 Sterling Augustine <sterling@tensilica.com>
8584
8585 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
8586 * config/xtensa/xtensa.c (override_options): Check
8587 TARGET_FORCE_NO_PIC and set flag_pic.
8588 * config/xtensa/xtensa.opt: Document -mforce-no-pic
8589
8590 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
8591
8592 PR bootstrap/44299
8593 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
8594 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
8595
8596 2010-05-27 Joseph Myers <joseph@codesourcery.com>
8597
8598 * diagnostic-core.h: New. Contents moved from diagnostic.h and
8599 toplev.h.
8600 * diagnostic.c: Don't include toplev.h.
8601 (progname): Define. Moved from toplev.c.
8602 (seen_error): New function.
8603 * diagnostic.h: Include diagnostic-core.h.
8604 (diagnostic_t, emit_diagnostic): Don't declare here.
8605 * toplev.c (progname): Move to toplev.c.
8606 (emit_debug_global_declarations, compile_file, finalize,
8607 do_compile, toplev_main): Use seen_error.
8608 * toplev.h: Include diagnostic-core.h.
8609 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
8610 internal_error, warning, warning_at, error, error_n, error_at,
8611 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
8612 verbatim, fnotice, progname): Move to diagnostic-core.h.
8613 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
8614 (expand_builtin_expect): Use seen_error.
8615 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
8616 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
8617 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
8618 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
8619 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
8620 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
8621 errorcount for errors.
8622 * c-opts.c (c_common_finish): Use seen_error.
8623 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
8624 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
8625 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
8626 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
8627 (get_coverage_counts): Use seen_error.
8628 * dwarf2out.c (dwarf2out_finish): Use seen_error.
8629 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
8630 gimplify_body): Use seen_error.
8631 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
8632 * ipa-pure-const.c (gate_pure_const): Use seen_error.
8633 * ipa-reference.c (gate_reference): Use seen_error.
8634 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
8635 * lambda-code.c: Include diagnostic-core.h instead of
8636 diagnostic.h.
8637 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
8638 * lto-compress.c: Include diagnostic-core.h instead of
8639 diagnostic.h.
8640 * lto-section-in.c: Include diagnostic-core.h instead of
8641 diagnostic.h.
8642 * lto-streamer-out.c: Include diagnostic-core.h instead of
8643 diagnostic.h.
8644 * lto-streamer.c: Include diagnostic-core.h instead of
8645 diagnostic.h.
8646 (gate_lto_out): Use seen_error.
8647 * matrix-reorg.c: Include diagnostic-core.h instead of
8648 diagnostic.h.
8649 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
8650 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
8651 (gate_expand_omp, lower_omp_1): Use seen_error.
8652 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
8653 (rest_of_decl_compilation, rest_of_type_compilation,
8654 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
8655 * tree-cfg.c (label_to_block_fn): Use seen_error.
8656 * tree-inline.c (optimize_inline_calls): Use seen_error.
8657 * tree-mudflap.c (mudflap_finish_file): Use
8658 seen_error.
8659 * tree-optimize.c (gate_all_optimizations,
8660 gate_all_early_local_passes, gate_all_early_optimizations): Use
8661 seen_error.
8662 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
8663 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
8664 (varpool_remove_unreferenced_decls,
8665 varpool_assemble_pending_decls): Use seen_error.
8666 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
8667 (TOPLEV_H, DIAGNOSTIC_H): Update.
8668 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
8669 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
8670 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
8671 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
8672 coverage.o, lambda-code.o): Update dependencies.
8673
8674 2010-05-25 Dodji Seketeli <dodji@redhat.com>
8675
8676 PR c++/44188
8677 * c-common.c (is_typedef_decl): Move this definition ...
8678 * tree.c (is_typedef_decl): ... here.
8679 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
8680 * c-common.h (is_typedef_decl): Move this declaration ...
8681 * tree.h (is_typedef_decl): ... here.
8682 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
8683 * dwarf2out.c (is_naming_typedef_decl): New function.
8684 (gen_tagged_type_die): Split out of ...
8685 (gen_type_die_with_usage): ... this function. When an anonymous
8686 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
8687 is emitted for the typedef.
8688 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
8689 anonymous tagged types.
8690
8691 2010-05-27 Jason Merrill <jason@redhat.com>
8692
8693 * print-tree.c (debug_vec_tree): New fn.
8694 (print_vec_tree): New fn.
8695 * tree.h: Declare them.
8696 * gdbinit.in (pvt): New command.
8697
8698 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
8699
8700 * gdbinit.in (pdd): New command.
8701
8702 2010-05-27 Jan Hubicka <jh@suse.cz>
8703
8704 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
8705 (update_caller_keys): Return early if there are no callers;
8706 only update fibheap when decresing the key.
8707 (update_callee_keys): Avoid recursion.
8708 (decide_inlining_of_small_functions): When badness does not match;
8709 re-insert into fibheap.
8710
8711 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
8712
8713 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
8714 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
8715 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
8716 (ALL_HOST_OBJS): Now a union of the above two.
8717 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
8718 all files in ALL_HOST_FRONTEND_OBJS.
8719 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
8720
8721 * c-common.c: Pretend to be a backend file by undefining
8722 IN_GCC_FRONTEND (still need rtl.h here).
8723
8724 2010-05-27 Jan Hubicka <jh@suse.cz>
8725
8726 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
8727 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
8728
8729 2010-05-27 Jan Hubicka <jh@suse.cz>
8730
8731 * sched-ebb.c: Rename struct deps to struct deps_desc.
8732 * ddg.c: Likewise.
8733 * sel-sched-ir.c: Likewise.
8734 * sched-deps.c: Likewise.
8735 * sched-int.h: Likewise.
8736 * sched-rgn.c: Likewise.
8737
8738 2010-05-27 Jon Beniston <jon@beniston.com>
8739
8740 PR 43726
8741 * config/lm32/lm32.h: Remove definition of
8742 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
8743
8744 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
8745
8746 PR lto/44230
8747 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
8748
8749 2010-05-27 Richard Guenther <rguenther@suse.de>
8750
8751 PR tree-optimization/44284
8752 * tree-vect-stmts.c (vectorizable_assignment): Handle
8753 sign-changing conversions as simple copy.
8754
8755 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8756
8757 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
8758 Bionic C library.
8759 (__gthread_active_p): Check for pthread_create if compiling against
8760 Bionic C library.
8761
8762 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8763
8764 Support compilation for Android platform. Reimplement -mandroid.
8765
8766 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
8767 (*android*): Set ANDROID_DEFAULT.
8768 (arm*-*-linux*): Include linux-android.h.
8769 (arm*-*-eabi*): Don't include previous -mandroid implementation.
8770 * config/arm/eabi.h: Remove, move Android-specific parts ...
8771 * config/linux-android.h: ... here. New file.
8772 * config/arm/eabi.opt: Rename to ...
8773 * config/linux-android.opt: ... this.
8774 (mandroid): Allow -mno-android option. Initialize based on
8775 ANDROID_DEFAULT.
8776 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
8777 Move logic to corresponding LINUX_TARGET_* macros.
8778 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
8779 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
8780 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
8781 Android definitions.
8782 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
8783 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
8784 Document.
8785
8786 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8787
8788 Add support for Bionic C library
8789
8790 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
8791 macro.
8792 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
8793 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
8794
8795 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
8796 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
8797 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
8798 to support multiple C libraries. Handle Bionic.
8799 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
8800 (BIONIC_DYNAMIC_LINKER64): Define.
8801 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
8802 Update.
8803 (TARGET_HAS_SINCOS): Enable for Bionic.
8804
8805 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
8806 the last option specified on command line take effect.
8807 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
8808 (mbionic): New.
8809 (mglibc, muclibc): Update.
8810
8811 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
8812 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
8813 DEFAULT_LIBC.
8814
8815 * doc/invoke.texi (-mglibc, -muclibc): Update.
8816 (-mbionic): Document.
8817
8818 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8819
8820 * c-common.h (c_register_addr_space): Add prototype.
8821 (ADDR_SPACE_KEYWORD): Remove.
8822 * c-common.c (c_register_addr_space): New function.
8823 (c_addr_space_name): Reimplement.
8824 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
8825
8826 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
8827 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
8828
8829 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
8830 Remove TARGET_ADDR_SPACE_KEYWORDS.
8831
8832 2010-05-27 Joseph Myers <joseph@codesourcery.com>
8833
8834 * input.c: New file.
8835 * input.h (main_input_filename): Move declaration to toplev.h.
8836 * toplev.c (input_location, line_table): Move to input.c
8837 * toplev.h (main_input_filename): Move declaration from input.h.
8838 * tree.c (expand_location): Move to input.c.
8839 * Makefile.in (OBJS-common): Add input.o.
8840 (input.o): Add dependencies.
8841
8842 2010-05-27 Richard Guenther <rguenther@suse.de>
8843
8844 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
8845 for non-existant files.
8846 (fork_execute): Mark args_name file as deleted.
8847
8848 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
8849
8850 PR bootstrp/44287
8851 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
8852 (narrow_signed_type): Likewise.
8853
8854 2010-05-26 Jan Hubicka <jh@suse.cz>
8855
8856 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
8857 edge only when checking is enabled; check using former_clone_of;
8858 check inline clones too.
8859 (cgraph_materialize_clone): Record former_clone_of pointer.
8860 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
8861 combining redirections; dump args_to_skip bitmap
8862 (cgraph_materialize_all_clones): Do no redirection here.
8863 * ipa-inline.c (inline_transform): Do redirection here.
8864 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
8865 cheking only).
8866
8867 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8868
8869 * config/avr/avr-c.c: Do not include regs.h.
8870 Include cpplib.h for cpp_define and tree.h for c-common.h.
8871 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
8872 * config/avr/t-avr: Fix dependencies for avr-c.o.
8873
8874 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8875
8876 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
8877 string instead of SYMBOL_REF rtx.
8878 * rtl.h (set_stack_check_libfunc): Move prototype from here...
8879 * libfuncs.h: ...to here. Adjust for explow.c change.
8880
8881 2010-05-26 Joseph Myers <joseph@codesourcery.com>
8882
8883 * pretty-print.c: Don't include ggc.h.
8884 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
8885 (identifier_to_locale): Use them for allocation.
8886 * pretty-print.h (identifier_to_locale_alloc,
8887 identifier_to_locale_free): Declare.
8888 * toplev.c (alloc_for_identifier_to_locale): New.
8889 (general_init): Set identifier_to_locale_alloc and
8890 identifier_to_locale_free.
8891 * Makefile.in (pretty-print.o): Update dependencies.
8892
8893 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
8894
8895 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
8896 pointer types if they have different alignment or mode.
8897
8898 2010-05-26 Anatoly Sokolov <aesok@post.ru>
8899
8900 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8901 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8902 * config/sparc/sparc-protos.h (function_value): Remove declaration.
8903 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
8904 sparc_function_value_regno_p): New functions.
8905 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8906 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8907 (function_value): Rename to...
8908 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
8909 argument to 'outgoing'.
8910 (function_arg_record_value, function_arg_union_value,
8911 function_arg_vector_value): Update comment.
8912
8913 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
8914
8915 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
8916 (fde_needed_for_eh_p): New predicate.
8917 (output_call_frame_info): Use it throughout to decide whether FDEs
8918 are needed for EH purpose.
8919 (dwarf2out_begin_prologue): Reorder assignments.
8920
8921 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8922
8923 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
8924 special case loop->header.
8925 (is_predicated): New.
8926 (if_convertible_loop_p): Call it.
8927
8928 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8929
8930 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
8931 iterator in parameter. Do not generate code during the analysis.
8932 (tree_if_convert_cond_stmt): Removed.
8933 (tree_if_convert_stmt): Removed.
8934 (predicate_bbs): New.
8935 (if_convertible_loop_p): Call predicate_bbs.
8936 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
8937 now contains all the analysis part.
8938
8939 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8940
8941 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
8942 statements in the analysis part.
8943 (tree_if_convert_stmt): Update comment.
8944 (remove_conditions_and_labels): New.
8945 (combine_blocks): Call remove_conditions_and_labels.
8946 (tree_if_conversion): Update comment.
8947
8948 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8949
8950 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
8951 than 2 predecessors or more than 2 successors.
8952
8953 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8954
8955 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
8956 of loops in which the data dependence analysis fails.
8957
8958 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8959
8960 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
8961 CDI_POST_DOMINATORS.
8962 (tree_if_conversion): Same.
8963
8964 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8965
8966 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
8967
8968 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8969
8970 * tree-if-conv.c: Update copyright years. Fix comments.
8971 Fix indentation.
8972
8973 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
8974
8975 * builtin-types.def (BT_INT128): New primitive type.
8976 (BT_UINT128): Likewise.
8977 * c-common.c (c_common_r): Add __int128 keyword.
8978 (c_common_type_for_size): Handle __int128.
8979 (c_common_type_for_mode): Likewise.
8980 (c_common_signed_or_unsigned_type): Likewise.
8981 (c_common_nodes_and_builtins): Add builtin type
8982 if target supports 128-bit integer scalar.
8983 * c-common.h (enum rid): Add RID_INT128.
8984 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
8985 if target supports 128-bit integer scalar.
8986 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
8987 (finish_declspecs): Likewise.
8988 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
8989 (c_token_starts_declspecs): Likewise.
8990 (c_parser_declspecs): Likewise.
8991 (c_parser_attributes): Likewise.
8992 (c_parser_objc_selector): Likewise.
8993 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
8994 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
8995 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
8996 * tree.c (make_or_reuse_type): Likewise.
8997 (make_unsigned_type): Likewise.
8998 (build_common_tree_nodes_2): Likewise.
8999 * tree.h (enum integer_type_kind): Add itk_int128 and
9000 itk_unsigned_int128.
9001 (int128_integer_type_node): New define.
9002 (int128_unsigned_type_node): New define.
9003 * doc/extend.texi: Add documentation about __int128 type.
9004
9005 2010-05-26 Richard Guenther <rguenther@suse.de>
9006
9007 * tree-ssa-sccvn.c (copy_nary): Adjust.
9008 (copy_phis): Rename to ...
9009 (copy_phi): ... this. Adjust.
9010 (copy_references): Rename to ...
9011 (copy_reference): ... this. Adjust.
9012 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
9013 result into the valid table.
9014
9015 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
9016
9017 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
9018 insn-config.h, insn-codes.h, recog.h, and optabs.h.
9019
9020 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9021
9022 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
9023
9024 2010-05-26 Richard Guenther <rguenther@suse.de>
9025
9026 * opts.c (common_handle_option): Handle OPT_Ofast.
9027
9028 2010-05-26 Joseph Myers <joseph@codesourcery.com>
9029
9030 * diagnostic.c: Don't include opts.h.
9031 (permissive_error_option): Define.
9032 (diagnostic_initialize): Take n_opts parameter. Allocate memory
9033 for classify_diagnostic. Don't use memset for
9034 classify_diagnostic. Initialize new and recently added fields.
9035 (diagnostic_classify_diagnostic): Use context->n_opts instead of
9036 N_OPTS.
9037 (diagnostic_report_diagnostic): Pass context parameter to
9038 diagnostic_report_warnings_p. Use option_enabled and option_name
9039 hooks from context.
9040 (emit_diagnostic): Use permissive_error_option.
9041 (permerror): Likewise.
9042 * diagnostic.h: Don't include options.h.
9043 (struct diagnostic_context): Add n_opts, opt_permissive,
9044 inhibit_warnings, warn_system_headers, option_enabled and
9045 option_name fields. Change classify_diagnostic to a pointer.
9046 * opts-diagnostic.h: New file.
9047 * opts.c: Include opts-diagnostic.h.
9048 (common_handle_option): Set global_dc fields for -Wfatal-errors,
9049 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
9050 (option_name): New function.
9051 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
9052 (c_common_handle_option): Set global_dc->permissive for
9053 -fpermissive.
9054 * c-common.c (c_cpp_error): Save and restore
9055 global_dc->warn_system_headers, not variable warn_system_headers.
9056 * toplev.c: Include opts-diagnostic.h.
9057 (general_init): Update call to diagnostic_initialize. Set
9058 global_dc->show_column, global_dc->option_enabled and
9059 global_dc->option_name.
9060 (process_options): Don't set global_dc fields here.
9061 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
9062 (diagnostic.o, opts.o, toplev.o): Update dependencies.
9063
9064 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
9065
9066 * config/picochip/picochip.md (movsi): Split a movsi from a
9067 const after reload.
9068
9069 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9070
9071 * ggc-zone.c: Update copyright year.
9072 (poison_region): Mark memory for Valgrind as undefined before
9073 memset () call and inaccessible afterwards.
9074 (ggc_pch_total_size): Change type of i to int.
9075
9076 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9077
9078 * ggc-common.c (ggc_free_overhead): Allow empty slot.
9079
9080 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9081
9082 * ggc-common.c: Update copyright year.
9083 (ggc_rlimit_bound): Remove prototype. Compile only if
9084 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
9085 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
9086 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
9087 (ggc_min_heapsize_heuristic): Likewise.
9088
9089 2010-05-26 Richard Guenther <rguenther@suse.de>
9090
9091 PR rtl-optimization/44164
9092 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
9093 no-common access-path disambiguation.
9094 (indirect_ref_may_alias_decl_p): Adjust.
9095 (indirect_refs_may_alias_p): Likewise.
9096 (refs_may_alias_p_1): Likewise.
9097
9098 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
9099
9100 * c-typeck.c: Do not include expr.h.
9101
9102 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
9103
9104 * rtl.h (decl_default_tls_model): Move prototype from here...
9105 * output.h: ...to here.
9106 * c-decl.c: Do not include rtl.h.
9107 * c-pragma.c: Likewise.
9108 * c-parser.c: Likewise.
9109 * c-gimplify.c: Likewise. And also not hard-reg-set.
9110 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
9111 FIXME note for it. Add a FIXME note for expr.h.
9112 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
9113 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
9114 defined.
9115
9116 2010-05-26 Jakub Jelinek <jakub@redhat.com>
9117
9118 PR target/44199
9119 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
9120 or total_size is larger than red zone size for non-V4 ABI, emit a
9121 stack_tie resp. frame_tie insn before stack pointer restore.
9122 * config/rs6000/rs6000.md (frame_tie): New insn.
9123
9124 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
9125
9126 * function.h (struct function): Add can_throw_non_call_exceptions bit.
9127 * lto-streamer-in.c (input_function): Stream it in.
9128 * lto-streamer-out.c (output_function): Stream it out.
9129 * function.c (allocate_struct_function): Set it.
9130 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
9131 for flag_non_call_exceptions.
9132 * cfgbuild.c (control_flow_insn_p): Likewise.
9133 (make_edges): Likewise.
9134 * cfgexpand.c (expand_stack_alignment): Likewise.
9135 * combine.c (distribute_notes): Likewise.
9136 * cse.c (cse_extended_basic_block): Likewise.
9137 * except.c (insn_could_throw_p): Likewise.
9138 * gcse.c (simple_mem): Likewise.
9139 * ipa-pure-const.c (check_call): Likewise.
9140 (check_stmt ): Likewise.
9141 * lower-subreg.c (lower-subreg.c): Likewise.
9142 * optabs.c (emit_libcall_block): Likewise.
9143 (prepare_cmp_insn): Likewise.
9144 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
9145 * postreload.c (rest_of_handle_postreload): Likewise.
9146 * reload1.c (reload_as_needed): Likewise.
9147 (emit_input_reload_insns): Likewise.
9148 (emit_output_reload_insns): Likewise.
9149 (fixup_abnormal_edges): Likewise.
9150 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
9151 * store-motion.c (find_moveable_store): Likewise.
9152 * tree-eh.c (stmt_could_throw_p): Likewise.
9153 (tree_could_throw_p): Likewise.
9154 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9155 * config/arm/arm.c (arm_expand_prologue): Likewise.
9156 (thumb1_expand_prologue): Likewise.
9157 * config/rx/rx.md (cbranchsf4): Likewise.
9158 (cmpsf): Likewise.
9159 * config/s390/s390.c (s390_emit_prologue): Likewise.
9160 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
9161 (inline_forbidden_into_p): New predicate.
9162 (expand_call_inline): Use it to forbid inlining.
9163 (tree_can_inline_p): Likewise.
9164
9165 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
9166
9167 * config/i386/i386-c.c: Do not include rtl.h.
9168 * config/i386/t-i386: Update dependencies.
9169
9170 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
9171
9172 * attribs.c: Do not include rtl.h.
9173 * Makefile.in: Update dependencies.
9174
9175 2010-05-25 Anatoly Sokolov <aesok@post.ru>
9176
9177 * double-int.h (double_int_and): New.
9178 * combine.c (try_combine): Clean up, use double_int_* and
9179 immed_double_int_const functions.
9180
9181 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9182
9183 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
9184 stderr to /dev/null instead of grep -q.
9185 * configure: Regenerate.
9186
9187 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
9188
9189 * Makefile.in (EXCEPT_H): Fix typo.
9190
9191 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
9192
9193 * ira-build.c (update_conflict_hard_reg_costs): New.
9194 (ira_build): Call update_conflict_hard_reg_costs.
9195
9196 2010-05-25 Jakub Jelinek <jakub@redhat.com>
9197
9198 PR debug/41371
9199 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
9200 ENABLE_CHECKING.
9201 (intersect_loc_chains): Walk the s2var's loc_chain together
9202 with s1node chain as long as the locations are equal, don't
9203 call find_loc_in_1pdv in that case.
9204
9205 PR debug/42801
9206 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
9207 (copy_bind_expr): ... instead of here.
9208 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
9209 if the block hasn't been remapped.
9210 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
9211 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
9212
9213 2010-05-25 Richard Guenther <rguenther@suse.de>
9214
9215 PR middle-end/44069
9216 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
9217 out-of-bounds array accesses.
9218
9219 2010-05-25 Richard Guenther <rguenther@suse.de>
9220
9221 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
9222 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
9223 (run_gcc): Re-organize to make cleanup easier.
9224
9225 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9226
9227 * config/s390/s390.c (optimization_options): Fix and move the
9228 flag_prefetch_loop_arrays override ...
9229 (override_options): ... here.
9230
9231 2010-05-25 Joseph Myers <joseph@codesourcery.com>
9232
9233 * diagnostic.c: Don't include plugin.h.
9234 (diagnostic_report_diagnostic): Don't handle plugins specially
9235 here. Pass context to internal_error callback.
9236 * diagnostic.h (struct diagnostic_context): Add context parameter
9237 to internal_error callback.
9238 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
9239 * plugin.h (struct diagnostic_context): Declare.
9240 (warn_if_plugins, plugins_internal_error_function): Declare.
9241 * toplev.c (general_init): Set global_dc->internal_error.
9242 * Makefile.in (diagnostic.o): Update dependencies.
9243
9244 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
9245
9246 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
9247 * config/rs6000/t-darwin64: New.
9248 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
9249 build crt2.
9250
9251 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
9252
9253 PR 44203
9254 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
9255 match the original (and intended) behaviour before r159557. This
9256 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
9257 in two ways.
9258
9259 2010-05-25 Richard Guenther <rguenther@suse.de>
9260
9261 * doc/invoke.texi: Document -Ofast.
9262 * target.h (struct gcc_target): Add handle_ofast.
9263 * target-def.h (TARGET_HANDLE_OFAST): Add.
9264 (TARGET_INITIALIZER): Adjust.
9265 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
9266 * common.opt (Ofast): Add.
9267
9268 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
9269
9270 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
9271 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
9272
9273 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
9274
9275 PR target/43610
9276 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
9277 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
9278 false_rtx. Use false_rtx to compute the correct *ptest for reversed
9279 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
9280
9281 2010-05-25 Jakub Jelinek <jakub@redhat.com>
9282
9283 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
9284 DW_OP_minus with negated offset instead of DW_OP_plus.
9285 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
9286
9287 2010-05-25 Wei Guozhi <carrot@google.com>
9288
9289 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
9290 tst instruction and a new alternative.
9291 * config/arm/constraints.md (Pu): New constraint.
9292
9293 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
9294
9295 * function.c (assign_stack_local_1): Initialize variable
9296 to avoid warning when bootstrapping at -O3.
9297
9298 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
9299
9300 * configure.ac (all_lang_makefiles): Remove everything related to it.
9301 * configure: Regenerate.
9302 * Makefile.in: Fix reference to ada Make-lang.in.
9303 Remove support for LANG_MAKEFILES.
9304
9305 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
9306 Sandra Loosemore <sandra@codesourcery.com>
9307
9308 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
9309 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
9310 description. Add arm_neon_fp16_ok.
9311 (Add Options): Add arm_neon and arm_neon_fp16.
9312
9313 2010-05-24 Joseph Myers <joseph@codesourcery.com>
9314
9315 * diagnostic.c: Don't include flags.h.
9316 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
9317 context parameters. Check flags in the context passed as a parameter.
9318 (diagnostic_build_prefix): Add context parameter. Check
9319 show_column flag in context.
9320 (diagnostic_action_after_output): Check fatal_errors flag in context.
9321 (diagnostic_report_current_module): Check show_column flag in context.
9322 (default_diagnostic_starter): Update call to
9323 diagnostic_build_prefix.
9324 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
9325 (emit_diagnostic): Pass context to permissive_error_kind.
9326 (permerror): Pass context to permissive_error_kind.
9327 * diagnostic.h (struct diagnostic_context): Add show_column,
9328 pedantic_errors, permissive and fatal_errors fields.
9329 (diagnostic_build_prefix): Update prototype.
9330 * langhooks.c
9331 * toplev.c (process_options): Set flags in global_dc from
9332 flag_show_column, flag_pedantic_errors, flag_permissive,
9333 flag_fatal_errors.
9334 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
9335 to diagnostic_build_prefix.
9336 * Makefile.in (diagnostic.o): Update dependencies.
9337
9338 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
9339
9340 * config/i386/ia32intrin.h (__crc32q): Define only if
9341 __SSE4_2__ is defined.
9342
9343 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
9344
9345 PR target/44132
9346 PR middle-end/43602
9347 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
9348 DECL_VISIBILITY_SPECIFIED.
9349 (emutls_decl): Set DECL_PRESERVE_P and copy
9350 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
9351 (emutls_finalize_control_var): New callback.
9352 (emutls_finish): Finalize emutls control variables.
9353 * toplev.c (compile_file): Move the call to emutls_finish ()
9354 before varpool_assemble_pending_decls ().
9355
9356 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
9357
9358 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
9359 added to the preprocessor condition.
9360
9361 2010-05-24 Paul Brook <paul@codesourcery.com>
9362
9363 * gengtype-lex.l: Add HARD_REG_SET.
9364 * expr.c (expand_expr_real_1): Record writes to hard registers.
9365 * function.c (rtl_data): Add asm_clobbers.
9366 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
9367 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
9368 Use crtl->asm_clobbers.
9369
9370 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9371
9372 * doc/makefile.texi (Makefile): Mention stages 'profile'
9373 and 'feedback' for profiledbootstrap.
9374
9375 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
9376
9377 PR target/44245
9378 * config/i386/i386.c (def_builtin): Properly check
9379 OPTION_MASK_ISA_64BIT.
9380
9381 2010-05-23 Joseph Myers <joseph@codesourcery.com>
9382
9383 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
9384 typedefs with different but compatible types. Allow duplicate
9385 typedefs with the same type except for pedantic non-C1X, but give
9386 warning for variably modified types.
9387 * c-typeck.c (tagged_types_tu_compatible_p,
9388 function_types_compatible_p, type_lists_compatible_p,
9389 comptypes_internal): Add parameter different_types_p; set
9390 *different_types_p for different but compatible types. All
9391 callers changed.
9392 (comptypes_check_different_types): New.
9393 * c-tree.h (comptypes_check_different_types): Declare.
9394
9395 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
9396
9397 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
9398 * jump.c: Include basic-block.h.
9399 * profile.c: Likewise.
9400 * tree-profile.c: Likewise.
9401 * coverage.c: Likewise.
9402 * basic-block.h (optimize_function_for_size_p): Move to function.h.
9403 (optimize_function_for_speed_p): Likewise.
9404 * function.h (optimize_function_for_size_p,
9405 optimize_function_for_speed_p): Moved here from basic-block.h.
9406 * Makefile.in: Update dependencies.
9407
9408 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9409
9410 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
9411 before calling make; allow override through $MAKE.
9412 * doc/invoke.texi (Optimize Options): Document override.
9413
9414 2010-05-23 Anatoly Sokolov <aesok@post.ru>
9415
9416 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
9417 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9418 (rs6000_mode_dependent_address_ptr): Make static.
9419 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9420 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
9421 Remove.
9422
9423 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
9424
9425 PR target/43869
9426 * config/i386/i386.c: Make sure that the correct regparm is passed.
9427
9428 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
9429
9430 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
9431 * sbitmap.c: ...to here to internalize sbitmap element access.
9432 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
9433 Explain why basic-block.h is included.
9434 * function.h: Include tm.h for CUMULATIVE_ARGS.
9435 * Makefile.in: Update dependencies.
9436
9437 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
9438
9439 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
9440 New core types.
9441 * sbitmap.h (struct sbitmap_def): Do not typedef here.
9442 * sbitmap.c: Include sbitmap.h.
9443 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
9444 hard-reg-set.h. Split everything related to regsets out from here...
9445 * regset.h: ...to here. New file.
9446 * df.h: Include regset.h and sbitmap.h.
9447 * tree-flow.h: Likewise.
9448 * cfgloop.h: Likewise.
9449 * except.h: Do not include sbitmap.h. Include hashtab.h.
9450 * cgraph.h: Include vec.h and function.h.
9451 * reload.h (struct insn_chain): Change types of live_throughout
9452 and dead_or_set from regset_head to bitmap_head.
9453 (compute_use_by_pseudos): Be defined also if regset.h is not included.
9454 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
9455 spilled_regs from regset_head to bitmap_head to avoid dependency
9456 in regset.h.
9457 * sel-sched-ir.h: Include regset.h.
9458 * reload.c: Include df.h before reload.h.
9459 * caller-save.c: Likewise.
9460 * reload1.c: Likewise.
9461 * ira.c: Likewise.
9462 (mark_elimination): Update type of r to bitmap, consistent with
9463 DF_LR_IN.
9464 * dominance.c: Include bitmap.h.
9465 * modulo-sched.c: Include df.h.
9466 * cfganal.c: Include bitmap.h and sbitmap.h.
9467 * cfgbuild.c: Include sbitmap.h.
9468 * lcm.c: Include sbitmap.h.
9469 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
9470 * domwalk.c: Include sbitmap.h, exclude ggc.h.
9471 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
9472 * cselib.c: Include bitmap.h.
9473 * tree-optimize.c: Include regset.h.
9474 * stmt.c: Include bitmap.h.
9475 * Makefile.in: Update dependencies.
9476
9477 2010-05-22 Jan Hubicka <jh@suse.cz>
9478
9479 * cgraph.h (struct varpool_node): Add same_comdat_group.
9480 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
9481 pointer.
9482 (output_varpool): Update call of lto_output_varpool_node.
9483 (input_varpool): Read same_comdat_group pointer.
9484 (input_varpool_1): Fixup same_comdat_group pointer.
9485 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
9486 group is needed, all are.
9487 * varpool.c (varpool_remove_node): Remove node from same comdat group
9488 linklist too.
9489 (varpool_analyze_pending_decls): Walk same comdat groups.
9490
9491 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
9492
9493 * rtl.h (union rtunion_def): Remove rt_bit member.
9494 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
9495 * print-rtl (print_rtx): Do not print the member.
9496 * gengtype.c (adjust_field_rtx_def): Do not handle it.
9497 * gengenrtl.c (type_from_format): Likewise.
9498 (accessor_from_format): Likewise.
9499
9500 2010-05-22 Joseph Myers <joseph@codesourcery.com>
9501
9502 * dbgcnt.c: Include toplev.h instead of errors.h.
9503 * ira-emit.c: Don't include errors.h.
9504 * ira.c: Include toplev.h instead of errors.h.
9505 * lto-compress.c: Include toplev.h instead of errors.h.
9506 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
9507 ira.o, dbgcnt.o): Update dependencies.
9508
9509 2010-05-22 Richard Guenther <rguenther@suse.de>
9510
9511 * gimple.c (gimple_types_compatible_p): Check type qualifications
9512 before merging pointer to complete and pointer to incomplete type.
9513 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
9514 we use our own resolution algorithm. The gold linker plugin
9515 doesn't do the job we want it to do here.
9516
9517 2010-05-22 Anatoly Sokolov <aesok@post.ru>
9518
9519 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9520 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9521 (sparc_mode_dependent_address_p): New function.
9522
9523 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
9524
9525 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
9526
9527 * timevar.c: Do not include any core headers.
9528 (timevar_print): De-i18n-ize.
9529 (print_time): Likewise.
9530 * timevar.h (timevar_push, timevar_pop): Make inline functions.
9531
9532 2010-05-21 Joseph Myers <joseph@codesourcery.com>
9533
9534 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
9535 langhooks-def.h.
9536 (diagnostic_initialize): Initialize x_data not last_function.
9537 (diagnostic_report_current_function): Move to tree-diagnostic.c.
9538 (default_diagnostic_starter): Call
9539 diagnostic_report_current_module not
9540 diagnostic_report_current_function.
9541 (diagnostic_report_diagnostic): Initialize x_data not
9542 abstract_origin.
9543 (verbatim): Likewise.
9544 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
9545 x_data.
9546 (struct diagnostic_context): Change last_function to x_data.
9547 (diagnostic_auxiliary_data): Replace with
9548 diagnostic_context_auxiliary_data and
9549 diagnostic_info_auxiliary_data.
9550 (diagnostic_last_function_changed, diagnostic_set_last_function,
9551 diagnostic_report_current_function): Move to tree-diagnostic.h.
9552 (print_declaration, dump_generic_node, print_generic_stmt,
9553 print_generic_stmt_indented, print_generic_expr,
9554 print_generic_decl, debug_c_tree, dump_omp_clauses,
9555 print_call_name, debug_generic_expr, debug_generic_stmt,
9556 debug_tree_chain, default_tree_printer): Move to
9557 tree-pretty-print.h.
9558 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
9559 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
9560 gimple-pretty-print.h.
9561 * pretty-print.c: Don't include tree.h
9562 (pp_base_format): Don't handle %K here.
9563 (pp_base_tree_identifier): Move to tree-pretty-print.c.
9564 * pretty-print.h (text_info): Change abstract_origin to x_data.
9565 (pp_tree_identifier, pp_unsupported_tree,
9566 pp_base_tree_identifier): Move to tree-pretty-print.h.
9567 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
9568 tree-pretty-print.h: New files.
9569 * tree-pretty-print.c: Include tree-pretty-print.h.
9570 (percent_K_format): New. Moved from pretty-print.c.
9571 (pp_base_tree_identifier): Move from pretty-print.c.
9572 * c-objc-common.c: Include tree-pretty-print.h.
9573 (c_tree_printer): Handle %K here.
9574 * langhooks.c: Include tree-diagnostic.h.
9575 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
9576 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
9577 (default_tree_printer): Handle %K using percent_K_format.
9578 (general_init): Use default_tree_diagnostic_starter.
9579 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
9580 (free_lang_data): Use default_tree_diagnostic_starter.
9581 * c-pretty-print.c: Include tree-pretty-print.h.
9582 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9583 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9584 * dwarf2out.c: Include tree-pretty-print.h.
9585 * except.c: Include tree-pretty-print.h.
9586 * gimple-pretty-print.c: Include tree-pretty-print.h and
9587 gimple-pretty-print.h.
9588 * gimplify.c: Include tree-pretty-print.h.
9589 * graphite-poly.c: Include tree-pretty-print.h and
9590 gimple-pretty-print.h.
9591 * ipa-cp.c: Include tree-pretty-print.h.
9592 * ipa-inline.c: Include gimple-pretty-print.h.
9593 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9594 * ipa-pure-const.c: Include gimple-pretty-print.h.
9595 * ipa-struct-reorg.c: Include tree-pretty-print.h and
9596 gimple-pretty-print.h.
9597 * ipa-type-escape.c: Include tree-pretty-print.h.
9598 * print-rtl.c: Include tree-pretty-print.h.
9599 * print-tree.c: Include gimple-pretty-print.h.
9600 * sese.c: Include tree-pretty-print.h.
9601 * tree-affine.c: Include tree-pretty-print.h.
9602 * tree-browser.c: Include tree-pretty-print.h.
9603 * tree-call-cdce.c: Include gimple-pretty-print.h.
9604 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9605 * tree-chrec.c: Include tree-pretty-print.h.
9606 * tree-data-ref.c: Include tree-pretty-print.h and
9607 gimple-pretty-print.h.
9608 * tree-dfa.c: Include tree-pretty-print.h.
9609 * tree-if-conv.c: Include tree-pretty-print.h and
9610 gimple-pretty-print.h.
9611 * tree-inline.c: Include tree-pretty-print.h.
9612 * tree-into-ssa.c: Include tree-pretty-print.h and
9613 gimple-pretty-print.h.
9614 * tree-nrv.c: Include tree-pretty-print.h.
9615 * tree-object-size.c: Include tree-pretty-print.h and
9616 gimple-pretty-print.h.
9617 * tree-outof-ssa.c: Include tree-pretty-print.h and
9618 gimple-pretty-print.h.
9619 * tree-parloops.c: Include tree-pretty-print.h and
9620 gimple-pretty-print.h.
9621 * tree-predcom.c: Include tree-pretty-print.h and
9622 gimple-pretty-print.h.
9623 * tree-scalar-evolution.c: Include tree-pretty-print.h and
9624 gimple-pretty-print.h.
9625 * tree-sra.c: Include tree-pretty-print.h.
9626 * tree-ssa-address.c: Include tree-pretty-print.h.
9627 * tree-ssa-alias.c: Include tree-pretty-print.h.
9628 * tree-ssa-ccp.c: Include tree-pretty-print.h and
9629 gimple-pretty-print.h.
9630 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
9631 * tree-ssa-copy.c: Include tree-pretty-print.h and
9632 gimple-pretty-print.h.
9633 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
9634 * tree-ssa-dce.c: Include tree-pretty-print.h and
9635 gimple-pretty-print.h.
9636 * tree-ssa-dom.c: Include tree-pretty-print.h and
9637 gimple-pretty-print.h.
9638 * tree-ssa-dse.c: Include gimple-pretty-print.h.
9639 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
9640 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
9641 * tree-ssa-live.c: Include tree-pretty-print.h and
9642 gimple-pretty-print.h.
9643 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
9644 gimple-pretty-print.h.
9645 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
9646 gimple-pretty-print.h.
9647 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
9648 gimple-pretty-print.h.
9649 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
9650 gimple-pretty-print.h.
9651 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
9652 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
9653 * tree-ssa-operands.c: Include tree-pretty-print.h and
9654 gimple-pretty-print.h.
9655 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
9656 gimple-pretty-print.h.
9657 * tree-ssa-pre.c: Include tree-pretty-print.h and
9658 gimple-pretty-print.h.
9659 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
9660 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
9661 gimple-pretty-print.h.
9662 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
9663 gimple-pretty-print.h.
9664 * tree-ssa-sink.c: Include gimple-pretty-print.h.
9665 * tree-ssa-ter.c: Include tree-pretty-print.h and
9666 gimple-pretty-print.h.
9667 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
9668 * tree-ssa.c: Include tree-pretty-print.h and
9669 gimple-pretty-print.h.
9670 * tree-stdarg.c: Include gimple-pretty-print.h.
9671 * tree-switch-conversion.c: Include gimple-pretty-print.h.
9672 * tree-tailcall.c: Include tree-pretty-print.h and
9673 gimple-pretty-print.h.
9674 * tree-vect-data-refs.c: Include tree-pretty-print.h and
9675 gimple-pretty-print.h.
9676 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
9677 gimple-pretty-print.h.
9678 * tree-vect-loop.c: Include tree-pretty-print.h and
9679 gimple-pretty-print.h.
9680 * tree-vect-patterns.c: Include gimple-pretty-print.h.
9681 * tree-vect-slp.c: Include tree-pretty-print.h and
9682 gimple-pretty-print.h.
9683 * tree-vect-stmts.c: Include tree-pretty-print.h and
9684 gimple-pretty-print.h.
9685 * tree-vectorizer.c: Include tree-pretty-print.h.
9686 * tree-vrp.c: Include tree-pretty-print.h and
9687 gimple-pretty-print.h.
9688 * value-prof.c: Include tree-pretty-print.h and
9689 gimple-pretty-print.h.
9690 * var-tracking.c: Include tree-pretty-print.h.
9691 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
9692 (tree-diagnostic.o): New dependencies.
9693 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
9694 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
9695 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
9696 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
9697 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
9698 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
9699 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
9700 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
9701 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
9702 tree-ssa-address.o, tree-ssa-loop-niter.o,
9703 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
9704 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
9705 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
9706 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
9707 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
9708 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
9709 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
9710 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
9711 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
9712 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
9713 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
9714 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
9715 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
9716 tree-switch-conversion.o, var-tracking.o, value-prof.o,
9717 cfgexpand.o, pretty-print.o): Update dependencies.
9718
9719 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
9720
9721 * tree-ssa-structalias.c: Remove tm_p.h from include.
9722
9723 2010-05-21 Jeff Law <law@redhat.com>
9724
9725 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
9726
9727 2010-05-21 Jason Merrill <jason@redhat.com>
9728
9729 * tree-eh.c (cleanup_is_dead_in): New.
9730 (lower_try_finally): Don't generate a dead cleanup region.
9731 (lower_cleanup): Likewise.
9732
9733 2010-05-21 Jakub Jelinek <jakub@redhat.com>
9734
9735 PR debug/44223
9736 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
9737 unchain each use from the cyclic next_regno_use chain first.
9738
9739 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
9740
9741 * real: Do not include gmp.h, mpfr.h, and mpc.h.
9742 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
9743 (real_value_negate, real_value_abs): New prototypes.
9744 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
9745 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
9746 new include file for interface between MPFR and REAL_VALUE_TYPE.
9747 * real.c: Include realmpfr.h.
9748 (real_arithmetic2): Remove legacy function.
9749 (real_value_negate): New.
9750 (real_value_abs): New.
9751 (mfpr_from_real, real_from_mpfr): Move from here...
9752 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
9753 * builtins.c: Include realmpfr.h.
9754 * fold-const.c: Include realmpfr.h.
9755 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
9756 (fold_negate_const): Likewise.
9757 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
9758 * toplev.c: Include realmpfr.h.
9759 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
9760 and real_value_negate.
9761 * fixed-value.c (check_real_for_fixed_mode): Likewise.
9762 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
9763 (vfp3_const_double_index): Likewise.
9764 (arm_print_operand): Likewise.
9765 * Makefile.in: Update dependencies.
9766
9767 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9768
9769 * config/s390/s390.c (override_options): Increase the default
9770 of max-completely-peel-times.
9771
9772 2010-05-21 Julian Brown <julian@codesourcery.com>
9773 Mark Mitchell <mark@codesourcery.com>
9774
9775 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
9776 sibling calls for Thumb-1.
9777 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
9778 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
9779 Thumb-2.
9780 (*call_insn, *call_value_insn): Don't use for Thumb-2.
9781 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
9782 for Thumb-2.
9783 (return): New expander.
9784 (*arm_return): New name for ARM return insn.
9785 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
9786
9787 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
9788
9789 * config.gcc (sparc64-*-rtems*): New target.
9790
9791 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
9792
9793 * tree.c (build_function_decl_skip_args): Fix grammar.
9794 (build_function_type_list_1): Fix typos, adjust formatting.
9795
9796 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
9797
9798 * tree.h: Include real.h and fixed-value.h as basic datatypes.
9799 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
9800 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
9801 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
9802 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
9803 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
9804 tree-pretty-print.c, tree-loop-distribution.c,
9805 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
9806 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
9807 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
9808 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
9809 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
9810 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
9811 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
9812 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
9813 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
9814 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
9815 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
9816 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
9817 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
9818 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
9819 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
9820 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
9821 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
9822 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
9823 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
9824 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
9825 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
9826 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
9827 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
9828 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
9829 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
9830 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
9831 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
9832 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
9833 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
9834 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
9835 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
9836 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
9837 config/score/score7.c, config/score/score.c, config/arm/arm.c,
9838 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
9839 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
9840 config/bfin/bfin.c: Clean up redundant includes.
9841 * Makefile.in: Update accordingly.
9842
9843 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
9844
9845 PR middle-end/44204
9846 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
9847 statement has no arguments.
9848
9849 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
9850
9851 PR/44139
9852 * varasm.c (emutls_decl): Merge attributes to new decl.
9853
9854 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
9855
9856 PR middle-end/44101
9857 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
9858 around the uniquized constructor if its type requires a conversion.
9859
9860 2010-05-21 Jakub Jelinek <jakub@redhat.com>
9861
9862 PR debug/44205
9863 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
9864 at -O0 goto_locus of any of the incoming edges differs from
9865 goto_locus of outgoing edge, or gimple_location of any of the
9866 labels differs.
9867
9868 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
9869
9870 * ira.c (ira_non_ordered_class_hard_regs): Define.
9871 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
9872 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
9873 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
9874 cost of unaligned hard regs when allocating multi-reg pseudos.
9875
9876 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
9877
9878 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
9879 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
9880 for TARGET_NO_FLOAT.
9881 * config/mips/mips.c (mips_file_start): Expand conditional expression
9882 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
9883 (mips_override_options): Move -mno-float override -msoft-float and
9884 -mhard-float.
9885 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
9886 Condition(TARGET_SUPPORTS_NO_FLOAT).
9887 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
9888 __mips_no_float here.
9889 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
9890 (TARGET_SUPPORTS_NO_FLOAT): Define.
9891 * config/mips/sdemtk.opt: Delete.
9892
9893 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
9894
9895 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
9896
9897 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
9898
9899 PR target/43733
9900 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
9901 * configure: Regenerate.
9902 * config.in: Regenerate.
9903 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
9904 instead of sahf only for 64bit targets.
9905
9906 2010-05-20 Jakub Jelinek <jakub@redhat.com>
9907
9908 PR debug/44178
9909 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
9910 setup_ref_regs for DEBUG_INSNs.
9911
9912 2010-05-20 Jan Hubicka <jh@suse.cz>
9913
9914 PR middle-end/44197
9915 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
9916
9917 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
9918
9919 PR bootstrap/43870
9920 * df-scan.c (df_ref_compare): Stabilize sort.
9921
9922 2010-05-20 Jakub Jelinek <jakub@redhat.com>
9923
9924 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
9925 argument. Don't use DW_OP_piece if offset is non-zero,
9926 put offset into second DW_OP_bit_piece argument.
9927 (dw_sra_loc_expr): Adjust callers. For memory expressions
9928 compute offset.
9929
9930 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
9931
9932 PR target/44202
9933 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
9934 settings for 16-bit-constant "addo" alternative.
9935
9936 2010-05-19 James E. Wilson <wilson@codesourcery.com>
9937
9938 * config/mips/mips-dsp.md (add<DSPV:mode>3,
9939 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
9940
9941 PR target/43764
9942 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
9943 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
9944 Use it.
9945
9946 2010-05-19 Joseph Myers <joseph@codesourcery.com>
9947
9948 * diagnostic.c (FLOAT, FFS): Don't undefine.
9949 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
9950 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
9951 include ordering.
9952
9953 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
9954
9955 * combine.c (propagate_for_debug): Call make_compound_operation
9956 on the source value.
9957 (try_combine): When implementing a split chosen by find_split_point,
9958 either copy i2src or set it to null. Assert that i2src is not null
9959 before substituting into CALL_INSN_FUNCTION_USAGE.
9960
9961 2010-05-19 Anatoly Sokolov <aesok@post.ru>
9962
9963 * double-int.h (double_int_ior): New function.
9964 * tree.h (build_int_cst_wide_type): Remove.
9965 * tree.c (build_int_cst_wide_type): Remove.
9966 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
9967 of build_int_cst_wide_type.
9968 * stor-layout.c (set_sizetype): (Ditto.).
9969 * dojump.c (do_jump): Use build_int_cstu instead of
9970 build_int_cst_wide_type.
9971
9972 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
9973
9974 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
9975 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
9976 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
9977 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
9978 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
9979 propagate the 'data' argument to copy_tree_r.
9980 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
9981 Propagate 'data' argument to walk_tree.
9982 (copy_if_shared): New function.
9983 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
9984 (unmark_visited): New function.
9985 (unshare_body): Call copy_if_shared instead of doing it manually.
9986 (unvisit_body): Call unmark_visited instead of doing it manually.
9987
9988 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
9989
9990 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
9991 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
9992 * hooks.c: Likewise.
9993 * target-def.h (TARGET_FOLD_BUILTIN): Define to
9994 hook_tree_tree_int_treep_bool_null.
9995 * target.h (struct gcc_target): Update signature of fold_builtin
9996 field.
9997 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
9998 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
9999 instead of the call expression.
10000 (fold_builtin_call_array): Pass n and argarray directly.
10001 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
10002 consing a list.
10003 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
10004 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
10005 `i' and use it in place of `arity'.
10006 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
10007 Dereference `args' directly.
10008 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
10009
10010 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10011
10012 * doc/sourcebuild.texi (Effective-Target Keywords): Document
10013 3dnow, sse3, sse2.
10014 (Directives): Document optional dg-require-effective-target
10015 selector.
10016
10017 2010-05-19 Richard Guenther <rguenther@suse.de>
10018
10019 PR lto/44196
10020 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
10021
10022 2010-05-19 Richard Guenther <rguenther@suse.de>
10023
10024 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
10025 * common.opt (fwhopr=): New.
10026 * opts.c (common_handle_option): Handle OPT_fwhopr.
10027 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
10028 * collect2.c (main): Match -fwhopr*.
10029 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
10030 Execute ltrans stage in parallel when jobs is bigger than 1.
10031
10032 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10033
10034 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
10035 pentiumpro on Solaris 8/x86 with Sun as.
10036 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
10037 hidden alias bug.
10038 (gcc_cv_as_ix86_quad): Check for .quad directive.
10039 * configure: Regenerate.
10040 * config.in: Regenerate.
10041 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
10042
10043 2010-05-19 Martin Jambor <mjambor@suse.cz>
10044
10045 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
10046 also for indirect edges. Actual printing moved...
10047 (ipa_print_node_jump_functions_for_edge): ...here.
10048 (ipa_compute_jump_functions): Renamed to
10049 ipa_compute_jump_functions_for_edge and made static.
10050 (ipa_compute_jump_functions): New function.
10051 (make_edge_direct_to_target): Check if the number of arguments on
10052 the newly direct edge is the same as the number of parametrs of
10053 the callee.
10054 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
10055 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
10056 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
10057 analysis functions unconditionally, call the new
10058 ipa_analyze_params_uses on the node instead of every edge.
10059
10060 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
10061
10062 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
10063 to tree.
10064 (dump_mem_ref): Adopt debug code to handle a tree as step. This
10065 also checks for a constant int vs. non-constant but
10066 loop-invariant steps.
10067 (find_or_create_group): Change the sort algorithm to only consider
10068 steps that are constant ints.
10069 (idx_analyze_ref): Adopt code to handle a tree instead of a
10070 HOST_WIDE_INT for step.
10071 (gather_memory_references_ref): Handle tree instead of int and be
10072 prepared to see a NULL_TREE.
10073 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
10074 prefetches if the step cannot be calculated at compile time.
10075 (issue_prefetch_ref): Issue prefetches for non-constant but
10076 loop-invariant steps.
10077
10078 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
10079
10080 Revert:
10081 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
10082
10083 * tree.h (build_call_list): Remove.
10084 * tree.c (build_call_list): Remove.
10085
10086 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
10087
10088 * tree.h (build_call_list): Remove.
10089 * tree.c (build_call_list): Remove.
10090
10091 2010-05-18 Jan Hubicka <jh@suse.cz>
10092
10093 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
10094
10095 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
10096
10097 PR rtl-optimization/43332
10098 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
10099
10100 2010-05-18 Anatoly Sokolov <aesok@post.ru>
10101
10102 * tree.h (build_int_cstu): Implement as static inline.
10103 * tree.c (build_int_cstu): Remove function.
10104 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
10105 sign extended.
10106
10107 2010-05-18 Richard Guenther <rguenther@suse.de>
10108
10109 PR lto/44143
10110 * lto-wrapper.c (verbose): New variable. Initialize from -v.
10111 (debug): Initialize from -save-temps.
10112 (collect_execute): Print command-line when verbose.
10113 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
10114 for ltrans invocation. Produce -dumpbase flag again.
10115 (process_args): Remove.
10116 (main): Simplify.
10117 * collect2.c (maybe_run_lto_and_relink): Only pass object
10118 files to lto-wrapper.
10119 * gcc.c (LINK_COMMAND_SPEC): Likewise.
10120
10121 2010-05-18 Jan Hubicka <jh@suse.cz>
10122
10123 * opts.c (decode_options): Do not disable whopr at ipa_cp.
10124 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
10125
10126 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
10127
10128 PR lto/44184
10129 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
10130 in a GIMPLE_ASM.
10131 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
10132 in a GIMPLE_ASM.
10133
10134 2010-05-18 Jakub Jelinek <jakub@redhat.com>
10135
10136 PR debug/41371
10137 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
10138 rtx_equal_p inline.
10139
10140 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
10141
10142 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
10143 lto-macho as lto_binary_reader.
10144
10145 * darwin.c (darwin_asm_named_section): Do not add assembler comment
10146 after .section directive; just print it before the directive instead.
10147
10148 2010-05-17 Jan Hubicka <jh@suse.cz>
10149
10150 * cgraph.c (cgraph_create_virtual_clone): Only check
10151 versionable_function_p when not in wpa and checking is enabled.
10152 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
10153 there are no more functions to materialize.
10154
10155 2010-05-17 Jan Hubicka <jh@suse.cz>
10156
10157 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
10158 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
10159 New functions.
10160 (output_cgraph): Call output_cgraph_opt_summary.
10161 (input_cgrpah): Call input_cgraph_opt_summary.
10162 (output_cgraph_opt_summary_p, output_node_opt_summary,
10163 input_node_opt_summary, input_cgraph_opt_section): New functions.
10164 * lto-section-in.c (lto_section_name): Add cgraphopt.
10165 * tree-inline.c (tree_function_versioning): Handle parm_num.
10166 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
10167 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
10168
10169 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
10170
10171 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
10172 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
10173 the insn to prefetch ratio heuristic to loops with known trip count.
10174
10175 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
10176
10177 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
10178 (schedule_prefetches): Do not generate a prefetch if the unroll factor
10179 is far from what is required by the prefetch.
10180
10181 2010-05-17 Jan Hubicka <jh@suse.cz>
10182
10183 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
10184 (ipcp_estimate_growth): Likewise.
10185 (ipcp_const_param_count): Likewise.
10186 (ipcp_insert_stage): Likewise.
10187 * ipa-prop.c (visit_load_for_mod_analysis): New function.
10188 (visit_store_addr_for_mod_analysis): Set used flag.
10189 (ipa_detect_param_modifications): Set used flag for SSE params;
10190 update use of walk_stmt_load_store_addr_ops.
10191 (ipa_print_node_params): Print used flag.
10192 (ipa_write_node_info): Stream used flag.
10193 (ipa_read_node_info): Likewise.
10194 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
10195 (ipa_is_param_used): New function.
10196 (lto_ipa_fixup_call_notes): Remove unused declaration.
10197
10198 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10199
10200 PR target/44074
10201 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
10202 * configure: Regenerate.
10203 * config.in: Regenerate.
10204 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
10205 !HAVE_AS_IX86_REP_LOCK_PREFIX.
10206 Don't emit whitespace.
10207 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
10208 (*rep_movsi): Likewise.
10209 (*rep_movsi_rex64): Likewise.
10210 (*rep_movqi): Likewise.
10211 (*rep_movqi_rex64): Likewise.
10212 (*rep_stosdi_rex64): Likewise.
10213 (*rep_stossi): Likewise.
10214 (*rep_stossi_rex64): Likewise.
10215 (*rep_stosqi): Likewise.
10216 (*rep_stosqi_rex64): Likewise.
10217 (*cmpstrnqi_nz_1): Use {%;} after repz.
10218 (*cmpstrnqi_nz_rex_1): Likewise.
10219 (*cmpstrnqi_1): Likewise.
10220 (*cmpstrnqi_rex_1): Likewise.
10221 (*strlenqi_1): Use {%;} after repnz.
10222 (*strlenqi_rex_1): Likewise.
10223 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
10224 (*sync_compare_and_swap<mode>): Likewise.
10225 (sync_double_compare_and_swap<mode>): Likewise.
10226 (*sync_double_compare_and_swapdi_pic): Likewise.
10227 (sync_old_add<mode>): Likewise.
10228 (sync_add<mode>): Likewise.
10229 (sync_sub<mode>): Likewise.
10230 (sync_<code><mode>): Likewise.
10231
10232 2010-05-17 Martin Jambor <mjambor@suse.cz>
10233
10234 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
10235 otr_token and polymorphic.
10236 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
10237 (cgraph_clone_edge): Copy the above fields.
10238 * tree.c (get_binfo_at_offset): New function.
10239 * tree.h (get_binfo_at_offset): Declare.
10240 * ipa-prop.h (enum jump_func_type): Added known_type jump function
10241 type, reordered items, updated comments.
10242 (union jump_func_value): Added base_type field, reordered fields.
10243 (enum ipa_lattice_type): Moved down in the file.
10244 (struct ipa_param_descriptor): New field polymorphic.
10245 (ipa_is_param_polymorphic): New function.
10246 * ipa-prop.c: Include gimple.h and gimple-fold.h.
10247 (ipa_print_node_jump_functions): Print known type jump functions.
10248 (compute_complex_pass_through): Renamed to...
10249 (compute_complex_assign_jump_func): this.
10250 (compute_complex_ancestor_jump_func): New function.
10251 (compute_known_type_jump_func): Likewise.
10252 (compute_scalar_jump_functions): Create known type and complex ancestor
10253 jump functions.
10254 (ipa_note_param_call): New parameter polymorphic, set the corresponding
10255 flag in the call note accordingly.
10256 (ipa_analyze_call_uses): Renamed to...
10257 (ipa_analyze_indirect_call_uses): this. New parameter target, define
10258 variable var only in the block where it is used.
10259 (ipa_analyze_virtual_call_uses): New function.
10260 (ipa_analyze_call_uses): Likewise.
10261 (combine_known_type_and_ancestor_jfs): Likewise.
10262 (update_jump_functions_after_inlining): Implemented handling of a
10263 number of new jump function types combination.
10264 (print_edge_addition_message): Removed.
10265 (make_edge_direct_to_target): New function.
10266 (try_make_edge_direct_simple_call): Likewise.
10267 (try_make_edge_direct_virtual_call): Likewise.
10268 (update_call_notes_after_inlining): Renamed to...
10269 (update_indirect_edges_after_inlining): this. Moved edge creation for
10270 indirect calls to try_make_edge_direct_simple_call, also calls
10271 try_make_edge_direct_virtual_call for virtual calls.
10272 (ipa_print_node_params): Changed the header message.
10273 (ipa_write_jump_function): Stream also known type jump functions.
10274 (ipa_read_jump_function): Likewise.
10275 (ipa_write_indirect_edge_info): Stream new fields in
10276 cgraph_indirect_call_info.
10277 (ipa_read_indirect_edge_info): Likewise.
10278 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
10279 GIMPLE_FOLD_H.
10280
10281 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10282
10283 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
10284
10285 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
10286
10287 * tree.h (CALL_EXPR_ARGS): Delete.
10288 (call_expr_arglist): Delete.
10289 * tree.c (call_expr_arglist): Delete.
10290 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
10291 targetm.fold_builtin.
10292 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
10293 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
10294 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
10295 arglist parameter. Use CALL_EXPR_ARG.
10296 (picochip_expand_builtin_3op): Likewise.
10297 (picochip_expand_builtin_2opvoid): Likewise.
10298 (picochip_expand_array_get): Likewise.
10299 (picochip_expand_array_put): Likewise.
10300 (picochip_expand_array_testport): Likewise.
10301 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
10302 rather than arglist.
10303 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
10304 CALL_EXPR_ARGS.
10305 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
10306 than TREE_VALUE and TREE_CHAIN.
10307 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
10308 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
10309 the arglist.
10310
10311 2010-05-17 Jakub Jelinek <jakub@redhat.com>
10312
10313 PR bootstrap/42347
10314 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
10315 to have no fallthru edge.
10316
10317 PR middle-end/44102
10318 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
10319 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
10320 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
10321 add BARRIER after previous bb if needed.
10322
10323 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
10324
10325 * tree.c (build_function_type_list_1): Remove bogus assert condition.
10326
10327 2010-05-17 Alan Modra <amodra@gmail.com>
10328
10329 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
10330 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
10331 with copy_reg rtx param.
10332 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
10333 Correct cases where code for ABI_V4 did not initialise the reg
10334 used to access frame. Also leave frame_reg_rtx as sp for large
10335 frames that save no regs.
10336
10337 2010-05-17 Martin Jambor <mjambor@suse.cz>
10338
10339 PR middle-end/44133
10340 * tree-sra.c (create_access_replacement): New parameter rename, mark
10341 the replaement for renaming only when it is true.
10342 (get_access_replacement): Pass true in the rename parameter of
10343 create_access_replacement.
10344 (get_unrenamed_access_replacement): New function.
10345 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
10346 replacement declaration from it.
10347
10348 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
10349
10350 * function.c (try_fit_stack_local, add_frame_space): New static
10351 functions.
10352 (assign_stack_local_1): Use them. Look for opportunities to use
10353 space previously wasted on alignment.
10354 * function.h (struct frame_space): New.
10355 (struct rtl_data): Add FRAME_SPACE_LIST member.
10356 * reload1.c (something_was_spilled): New static variable.
10357 (alter_reg): Set it.
10358 (reload): Test it in addition to testing if the frame size changed.
10359
10360 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
10361
10362 * config/s390/s390.c: Define sane prefetch settings and activate
10363 flag_prefetch_loop_arrays on -O3.
10364 * config/s390/s390.h: Declare that read can use write prefetch.
10365
10366 2010-05-17 Jakub Jelinek <jakub@redhat.com>
10367
10368 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
10369 build.
10370
10371 2010-05-16 Jan Hubicka <jh@suse.cz>
10372
10373 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
10374 function body; do not check stdarg field of struct function.
10375
10376 2010-05-16 Jan Hubicka <jh@suse.cz>
10377
10378 * cgraph.c (dump_cgraph_node): Dump versionable flag.
10379 * cgraph.h (cgraph_local_info): Add versionable flag.
10380 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
10381 (ipcp_versionable_function_p): Use it.
10382 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
10383 versionable flag.
10384
10385 2010-05-16 Jan Hubicka <jh@suse.cz>
10386
10387 * cgraph.c (cgraph_clone_node): Take decl argument and insert
10388 clone into hash when it is different from orig.
10389 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
10390 * cgraph.h (cgraph_clone_node): Update prototype.
10391 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
10392 (lto_cgraph_encoder_delete): Delete body map.
10393 (lto_cgraph_encoder_size): Move to header.
10394 (lto_cgraph_encoder_encode_body_p,
10395 lto_set_cgraph_encoder_encode_body): New.
10396 (lto_output_node): Do not take written_decls argument; output clone_of
10397 pointer.
10398 (add_node_to): Add include_body_argument; call
10399 lto_set_cgraph_encoder_encode_body on master of the clone.
10400 (add_references): Update use of add_node_to.
10401 (compute_ltrans_boundary): Likewise.
10402 (output_cgraph): Do not create written_decls bitmap.
10403 (input_node): Take nodes argument; stream in clone_of correctly.
10404 (input_cgraph_1): Update use of input_node.
10405 * lto-streamer-out.c (lto_output): Use encoder info to decide
10406 what bodies to output.
10407 * ipa-inline.c (cgraph_clone_inlined_nodes,
10408 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
10409 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
10410 (lto_cgraph_encoder_size): Define here.
10411 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
10412 Declare.
10413
10414 2010-05-16 Richard Guenther <rguenther@suse.de>
10415
10416 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
10417 -fipa-type-escape.
10418 * ipa-type-escape.c (gate_type_escape_vars): Run when
10419 -fipa-struct-reorg runs.
10420 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
10421 * common.opt (fipa-type-escape): Remove.
10422
10423 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
10424
10425 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
10426 (decode_options): Likewise.
10427 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
10428
10429 2010-05-16 Jan Hubicka <jh@suse.cz>
10430
10431 * ipa.c (function_and_variable_visibility): Also bring local all
10432 aliases.
10433
10434 2010-05-16 Richard Guenther <rguenther@suse.de>
10435
10436 * alias.c (nonoverlapping_memrefs_p): Remove use of
10437 IPA type-escape information.
10438
10439 2010-05-16 Joseph Myers <joseph@codesourcery.com>
10440
10441 * c-common.c (c_common_reswords): Add _Static_assert for C.
10442 * c-parser.c (c_token_starts_declaration,
10443 c_parser_next_token_starts_declaration,
10444 c_parser_static_assert_declaration_no_semi,
10445 c_parser_static_assert_declaration): New.
10446 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
10447 Handle static assertions if static_assert_ok.
10448 (c_parser_external_declaration, c_parser_declaration_or_fndef,
10449 c_parser_compound_statement_nostart, c_parser_label,
10450 c_parser_for_statement, c_parser_objc_methodprotolist,
10451 c_parser_omp_for_loop): All callers of
10452 c_parser_declaration_or_fndef changed.
10453 (c_parser_struct_declaration): Handle static assertions.
10454 (c_parser_compound_statement_nostart): Use
10455 c_parser_next_token_starts_declaration and
10456 c_token_starts_declaration to detect start of declarations.
10457 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
10458 Likewise.
10459
10460 2010-05-16 Anatoly Sokolov <aesok@post.ru>
10461
10462 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10463 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10464 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10465 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10466 (mmix_function_outgoing_value): Rename to...
10467 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
10468 (mmix_function_value_regno_p): Make static.
10469 (mmix_libcall_value): New function.
10470 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
10471 mmix_function_value_regno_p): Remove declaration.
10472
10473 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
10474
10475 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
10476 BUILT_IN_ALLOCA if stack checking is enabled.
10477
10478 2010-05-16 Richard Guenther <rguenther@suse.de>
10479
10480 * var-tracking.c (vars_copy_1): Inline ...
10481 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
10482 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
10483 (variable_merge_over_cur): Adjust. Merge asserts.
10484 (variable_merge_over_src): Likewise.
10485 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
10486 (variable_post_merge_new_vals): Merge asserts.
10487 (variable_post_merge_perm_vals): Likewise.
10488 (find_mem_expr_in_1pdv): Likewise.
10489 (dataflow_set_different_value): Remove.
10490 (onepart_variable_different_p): Merge asserts.
10491 (variable_different_p): Likewise.
10492 (dataflow_set_different_1): Inline ...
10493 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
10494 (emit_notes_for_differences_1): Merge asserts.
10495
10496 2010-05-16 Richard Guenther <rguenther@suse.de>
10497
10498 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
10499 * optabs.c (libfunc_decl_hash): Likewise.
10500 * varasm.c (emutls_decl): Likewise.
10501
10502 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
10503
10504 * c-decl.c: Don't include gimple.h.
10505 (merge_decls): Do not copy gimple_body.
10506
10507 2010-05-15 Jason Merrill <jason@redhat.com>
10508
10509 * c.opt: Add -fnothrow-opt.
10510
10511 2010-05-15 Jan Hubicka <jh@suse.cz>
10512
10513 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
10514 analyzed.
10515 * passes.c (ipa_write_summaries): Write all analyzed nodes.
10516
10517 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
10518
10519 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
10520 * Makefile.in: Add it.
10521 Fix all other Makefile dependencies for changes below.
10522 * tree.h: Include it instead of defining VEC primitives here.
10523 * gimple.h: Likewise.
10524 * rtl.h: Likewise.
10525 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
10526 * except.h: Include vecir.h, break dependence on tree.h.
10527
10528 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
10529 Move from here...
10530 * tree-iterator.c: ...to here.
10531 * tree-iterator.h: Fix file introduction comment. Add extern markers.
10532
10533 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
10534 tm_p.h.
10535 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
10536 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
10537 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
10538 tree-mudflap.h, and target.h.
10539 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
10540 predict.h, tree-inline.h, gimple.h, and langhooks.h.
10541 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
10542 Add FIXME for why gimple.h is still included (should be unnecessary
10543 since GCC 4.5 gimplification unit-at-a-time).
10544 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
10545 * c-pragma.c: Add FIXME for why function.h needs to be included just
10546 for cfun, at front-end level.
10547 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
10548 Do not include ggc.h, but include vecprim.h for VEC(char).
10549 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
10550 Explain why target.h is included.
10551 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
10552 Explain why gimple.h is included.
10553 * c-ppoutput.c: Do not include tm.h.
10554 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
10555 * c-parses.c: Explain why rtl.h is included, and that this (and only
10556 this) is also why tm.h must be included.
10557 Do not include except.h.
10558 * c-lang.c: Do not include ggc.h.
10559
10560 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
10561
10562 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
10563
10564 2010-05-15 Joseph Myers <joseph@codesourcery.com>
10565
10566 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
10567 unions by default if those structs and unions have no tags. Do
10568 not condition anonymous struct and unions handling on flag_iso.
10569 Allow anonymous structs and unions for C1X.
10570 (finish_struct): Do not diagnose lack of named fields when
10571 anonymous structs and unions present for C1X. Accept flexible
10572 array members in structure with anonymous structs or unions but no
10573 directly named fields.
10574 * doc/extend.texi (Unnamed Fields): Update.
10575
10576 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
10577
10578 * gimple.h (compare_field_offset): Rename into...
10579 (gimple_compare_field_offset): ...this.
10580 * gimple.c (compare_field_offset): Rename into...
10581 (gimple_compare_field_offset): ...this. Compare the full access if
10582 the offset is self-referential.
10583 (gimple_types_compatible_p): Adjust for above renaming.
10584 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
10585 DECL_NONADDRESSABLE_P flag of fields before merging them.
10586
10587 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
10588
10589 * tree.h (ctor_to_list): Delete.
10590 * tree.c (ctor_to_list): Delete.
10591
10592 2010-05-15 Jan Hubicka <jh@suse.cz>
10593
10594 * ipa-reference.c: Include toplev.h
10595 (is_proper_for_analysis): Only add to all_module_statics
10596 if it is allocated.
10597 (write_node_summary_p, stream_out_bitmap,
10598 ipa_reference_write_optimization_summary,
10599 ipa_reference_read_optimization_summary): New.
10600 (struct ipa_opt_pass_d pass_ipa_reference): Add
10601 optimization summary streaming.
10602 * lto-cgraph.c (referenced_from_this_partition_p,
10603 reachable_from_this_partition_p): New functions.
10604 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10605 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
10606 * opts.c (decode_options): Enable ipa_reference.
10607 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
10608 * lto-streamer.h (referenced_from_this_partition_p,
10609 reachable_from_this_partition_p): Declare.
10610
10611 2010-05-15 Richard Guenther <rguenther@suse.de>
10612
10613 PR tree-optimization/44038
10614 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
10615 taking the address of a V_C_E of a constant.
10616
10617 2010-05-14 Jan Hubicka <jh@suse.cz>
10618
10619 * tree.h (memory_identifier_string): Remove.
10620 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
10621 (ipa_reference_global_vars_info_d): Remove statics_not_read and
10622 statics_not_written.
10623 (ipa_reference_optimization_summary_d): New structure.
10624 (ipa_reference_optimization_summary_t): New type and vector.
10625 (ipa_reference_vars_info_d): Embedd structures instead of using
10626 pointers.
10627 (reference_vars_to_consider): Remove out of GGC space.
10628 (module_statics_escape): Remove.
10629 (global_info_obstack): Rename to ...
10630 (optimization_summary_obstack): ... this one.
10631 (initialization_status_t): Remove.
10632 (memory_identifier_string): Remove.
10633 (get_reference_vars_info): Fix indenting.
10634 (set_reference_vars_info): Likewise.
10635 (get_reference_optimization_summary): New.
10636 (set_reference_optimization_summary): New.
10637 (get_global_reference_vars_info): Remove.
10638 (ipa_reference_get_read_global): Remove.
10639 (ipa_reference_get_written_global): Remove.
10640 (ipa_reference_get_not_read_global): Update.
10641 (ipa_reference_get_not_written_global): Update.
10642 (is_proper_for_analysis): Outlaw addressable.
10643 (propagate_bits): Update for new datastructures.
10644 (analyze_variable): Remove.
10645 (init_function_info): Update for new datastructures.
10646 (clean_function_local_data): Remove.
10647 (clean_function): Remove.
10648 (copy_global_bitmap): Use optimizations_summary_obstack.
10649 (duplicate_node_data): Duplicate optimization summary only.
10650 (remove_node_data): Remove optimization summary only.
10651 (generate_summary): Do not analyze variables; do not compute
10652 module_statics_escape; do not prune solutions by it.
10653 (read_write_all_from_decl): Fix typos in comments.
10654 (propagate): Doscover readonly and nonaddressable first;
10655 update for new datastructures; share global bitmaps.
10656 * ipa-reference.h (ipa_reference_get_read_global,
10657 ipa_reference_get_written_global): Remove.
10658 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
10659 * Makefile.in: Remove ipa-refereference from GT files.
10660
10661 2010-05-14 Jakub Jelinek <jakub@redhat.com>
10662
10663 PR debug/44112
10664 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
10665 for all SYMBOL_REF_DECLs.
10666
10667 2010-05-14 Jan Hubicka <jh@suse.cz>
10668
10669 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
10670 (varpool_all_refs_explicit_p): New inline function.
10671 * ipa-reference.c: Update comment.
10672 (module_statics_written): Remove.
10673 (get_static_decl): Remove.
10674 (ipa_init): Do not initialize module_statics_written.
10675 (analyze_function): Likewise.
10676 (generate_summary): Likewise; do not compute module_statics_readonly
10677 and do not update variable flags.
10678 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
10679 * ipa.c: Inlucde flags.h
10680 (cgraph_local_node_p): New.
10681 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
10682 promote functions to local.
10683 (ipa_discover_readonly_nonaddressable_vars): New function.
10684 (function_and_variable_visibility): Use cgraph_local_node_p.
10685 * varpool.c (varpool_finalize_decl): Set force_output for
10686 DECL_PRESERVE_P vars.
10687
10688 2010-05-14 Jan Hubicka <jh@suse.cz>
10689
10690 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
10691
10692 2010-05-14 Richard Guenther <rguenther@suse.de>
10693
10694 PR tree-optimization/44119
10695 * tree-ssa-pre.c (eliminate): Properly mark replacement of
10696 a PHI node necessary.
10697
10698 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
10699
10700 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
10701
10702 2010-05-14 Jason Merrill <jason@redhat.com>
10703
10704 PR c++/44127
10705 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
10706 (gimple_call_set_nothrow): New.
10707 * gimple.c (gimple_build_call_from_tree): Call it.
10708 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
10709
10710 PR c++/44127
10711 * gimplify.c (gimplify_seq_add_stmt): No longer static.
10712 * gimple.h: Declare it.
10713 * gimple.c (gimple_build_eh_filter): No ops.
10714
10715 2010-05-14 Jan Hubicka <jh@suse.cz>
10716
10717 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
10718 nodes already in queue.
10719 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
10720 re-enqueueing node.
10721
10722 2010-05-14 Jakub Jelinek <jakub@redhat.com>
10723
10724 PR debug/44136
10725 * cfgexpand.c (expand_debug_expr): If non-memory op0
10726 has BLKmode, return NULL.
10727
10728 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
10729
10730 * config.gcc: Add support for --with-cpu option for bdver1.
10731 * config/i386/i386.h (TARGET_BDVER1): New macro.
10732 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
10733 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
10734 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
10735 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
10736 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
10737 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
10738 (processor_type): Add PROCESSOR_BDVER1.
10739 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
10740 processor_type in config/i386/i386.h.
10741 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
10742 movaps <reg, reg> instead of movapd <reg, reg> when replacing
10743 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
10744 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
10745 to emit packed xor instead of packed double/packed integer
10746 xor for SSE and AVX when moving a zero value.
10747 * config/i386/sse.md: Add check for
10748 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
10749 movapd/movdqa for SSE and AVX.
10750 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
10751 single logical operations i.e and, or and xor instead of packed double
10752 logical operations for SSE and AVX.
10753 * config/i386/i386-c.c (ix86_target_macros_internal):
10754 Add PROCESSOR_BDVER1.
10755 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
10756 (has_fma4, has_xop): New.
10757 * config/i386/i386.c (bdver1_cost): New variable.
10758 (m_BDVER1): New macro.
10759 (m_AMD_MULTIPLE): Add m_BDVER1.
10760 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
10761 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
10762 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
10763 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
10764 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
10765 x86_tune_sse_partial_reg_dependency,
10766 x86_tune_sse_unaligned_load_optimal,
10767 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
10768 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
10769 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
10770 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
10771 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
10772 Enable/disable for bdver1.
10773 (processor_target_table): Add bdver1_cost.
10774 (cpu_names): Add bdver1.
10775 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
10776 processor_alias_table.
10777 (ix86_expand_vector_move_misalign): Change.
10778 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
10779 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
10780 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
10781 of movupd/movdqu for SSE and AVX.
10782 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
10783 (ix86_tune_adjust_cost): Add code for bdver1.
10784 (standard_sse_constant_opcode): Add check for
10785 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
10786 of packed double xor for SSE and AVX.
10787
10788 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
10789
10790 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
10791 result to unsigned.
10792
10793 2010-05-14 Tristan Gingold <gingold@adacore.com>
10794
10795 * toplev.c (default_debug_hooks): Remove this variable.
10796 (process_options): Remove assignments to default_debug_hooks.
10797
10798 2010-05-14 Martin Jambor <mjambor@suse.cz>
10799
10800 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
10801 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
10802 * langhooks.h (struct lang_hooks_for_decls): Removed field
10803 fold_obj_type_ref.
10804 * tree.c (free_lang_data): Remove assignment to
10805 lang_hooks.fold_obj_type_ref.
10806 * tree.def (OBJ_TYPE_REF): Update comment.
10807
10808 2010-05-14 Richard Guenther <rguenther@suse.de>
10809
10810 PR tree-optimization/44124
10811 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
10812
10813 2010-05-14 Alan Modra <amodra@gmail.com>
10814
10815 PR target/44075
10816 * config/rs6000/rs6000.c (struct machine_function): Reorder
10817 fields for better packing. Add lr_save_state.
10818 (rs6000_ra_ever_killed): Return lr_save_state if set.
10819 (rs6000_emit_eh_reg_restore): Set lr_save_state.
10820
10821 2010-05-13 Jan Hubicka <jh@suse.cz>
10822
10823 * varpool.c (decide_is_variable_needed): Drop code checking
10824 TREE_SYMBOL_REFERENCED.
10825
10826 2010-05-13 Jan Hubicka <jh@suse.cz>
10827
10828 * final.c (output_addr_const): Do not call mark_decl_referenced.
10829 * cgraphunit.c (process_function_and_variable_attributes): Use
10830 mark_needed_node dirrectly.
10831 (assemble_thunk): Do not call mark_decl_referenced.
10832
10833 2010-05-13 Anatoly Sokolov <aesok@post.ru>
10834
10835 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
10836
10837 2010-05-13 Jeff Law <law@redhat.com>
10838
10839 * ira-conflicts.c (print_allocno_conflicts): New function broken out
10840 from...
10841 (print_conflicts): Call print_allocno_conflicts.
10842
10843 2010-05-13 Jakub Jelinek <jakub@redhat.com>
10844
10845 PR debug/44104
10846 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
10847 if it is NULL.
10848
10849 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
10850
10851 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
10852 t-mingw-w64 or t-mingw-w32 for multilib configuration.
10853 * config/i386/t-mingw-w32: New.
10854 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
10855
10856 2010-05-13 Martin Jambor <mjambor@suse.cz>
10857
10858 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
10859 gimple-fold.c).
10860 * gimple-fold.c (get_base_binfo_for_type): New function.
10861 (gimple_get_relevant_ref_binfo): Likewise.
10862 (gimple_fold_obj_type_ref_known_binfo): Likewise.
10863 (gimple_fold_obj_type_ref): Likewise.
10864 (fold_gimple_call): Simplify condition for folding virtual calls
10865 and call gimple_fold_obj_type_ref.
10866 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
10867 (gimple_fold_obj_type_ref_known_binfo): Likewise.
10868
10869 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
10870
10871 * config/rs6000/rs6000-protos.h
10872 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
10873 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
10874 (rs6000_debug_mode_dependent_address)
10875 (rs6000_mode_dependent_address_ptr): Likewise.
10876
10877 2010-05-13 Jakub Jelinek <jakub@redhat.com>
10878
10879 PR debug/43983
10880 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
10881 by SRA.
10882 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
10883 * tree-sra.c (create_access_replacement): Call unshare_expr before
10884 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
10885 * dwarf2out.c: Include tree-flow.h.
10886 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
10887 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
10888 Handle DW_OP_bit_piece.
10889 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
10890 construct_piece_list, adjust_piece_list): New functions.
10891 (add_var_loc_to_decl): Handle SRA optimized variables.
10892 Adjust for var_loc_note to loc field renaming.
10893 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
10894 in VAR_LOCATION note.
10895 (new_loc_descr_op_bit_piece): New function.
10896 (dw_sra_loc_expr): New function.
10897 (dw_loc_list): Use it. Don't handle the last range after the
10898 loop, handle it inside of the loop. Adjust for var_loc_note
10899 to loc field renaming.
10900 (add_location_or_const_value_attribute): Only special case
10901 single entry loc lists if loc is NOTE_P. Adjust for
10902 var_loc_note to loc field renaming.
10903 (dwarf2out_var_location): Don't set newloc->var_loc_note
10904 and newloc->next here.
10905
10906 2010-05-12 Jan Hubicka <jh@suse.cz>
10907
10908 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
10909 flag.
10910 * cgraph.h (cgraph_only_called_directly_p,
10911 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
10912 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
10913 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
10914 (assemble
10915 * ipa.c (cgraph_remove_unreachable_nodes): Use
10916 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
10917 flags.
10918 * tree-inline.c (copy_bb): Check address_taken flag.
10919 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
10920 externally_visible flag.
10921
10922 2010-05-12 Jason Merrill <jason@redhat.com>
10923
10924 PR bootstrap/44048
10925 PR target/44099
10926 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
10927 * sdbout.c (plain_type_1): Likewise.
10928 * dwarf2out.c (is_base_type): Likewise.
10929 (gen_type_die_with_usage): Likewise. Generate
10930 DW_TAG_unspecified_type for any LANG_TYPE.
10931
10932 2010-05-12 Jan Hubicka <jh@suse.cz>
10933
10934 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
10935 indrect edges too.
10936 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
10937 (cgraph_clone_edge): Update.
10938 (cgraph_node_remove_callees): Remove indirect calls too.
10939 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
10940 (cgraph_create_indirect_edge): Update prototype.
10941 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
10942 is_proper_for_analysis.
10943 (add_new_function, visited_nodes, function_insertion_hook_holder,
10944 get_local_reference_vars_info, mark_address_taken, mark_address,
10945 mark_load, mark_store, check_asm_memory_clobber, check_call,
10946 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
10947 (ipa_init): Do not initialize visited_nodes;
10948 function_insertion_hook_holder.
10949 (analyze_variable): Rewrite.
10950 (analyze_function): Rewrite.
10951 (copy_local_bitmap): Remove.
10952 (duplicate_node_dat): Do not duplicate local info.
10953 (generate_summary): Simplify to only walk cgraph.
10954 (write_node_summary_p, ipa_reference_write_summary,
10955 ipa_reference_read_summary): Remove.
10956 (propagate): Do not remove function insertion;
10957 generate summary.
10958 (pass_ipa_reference): NULLify summary handling fields.
10959 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
10960 (input_edge): Input ecf_flags.
10961 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
10962 (update_indirect_edges_after_inlining): Ignore edges with unknown
10963 param.
10964
10965 2010-05-12 Sriraman Tallam <tmsriram@google.com>
10966
10967 * implicit-zee.c: New file.
10968 * tree-pass.h (pass_implicit_zee): Declare.
10969 * passes.c (init_optimization_passes): Add zee pass.
10970 * common.opt (fzee): New flag.
10971 * timevar.def (TV_ZEE): Define.
10972 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
10973 and beyond.
10974 * Makefile.in (implicit-zee.o): Add new build file.
10975
10976 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
10977 Nathan Froyd <froydnj@codesourcery.com>
10978
10979 * c-common.c (sync_resolve_params): Remove write-only variable.
10980
10981 2010-05-12 Anatoly Sokolov <aesok@post.ru>
10982
10983 * target.h (struct gcc_target): Add mode_dependent_address_p field.
10984 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
10985 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
10986 * targhooks.c (default_mode_dependent_address_p): New function.
10987 * targhooks.h (default_mode_dependent_address_p): Declare function.
10988 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
10989 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
10990 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
10991 target hook. Change return type to bool.
10992 * recog.h (mode_dependent_address_p): Change return type to bool.
10993
10994 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
10995 Nathan Froyd <froydnj@codesourcery.com>
10996
10997 * tree-mudflap.c (build_function_type_0, build_function_type_1,
10998 build_function_type_2, build_function_type_3): Remove.
10999 (mudflap_init): Use build_function_type_list.
11000
11001 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
11002 Nathan Froyd <froydnj@codesourcery.com>
11003
11004 * coverage.c (build_fn_info_value): Call build_constructor instead of
11005 build_constructor_from_list.
11006 (build_ctr_info_value): Likewise.
11007 (build_gcov_info): Likewise.
11008
11009 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
11010
11011 * tree.c (build_constructor): Compute TREE_CONSTANT for the
11012 resultant constructor.
11013 (build_constructor_single): Don't set TREE_CONSTANT.
11014 (build_constructor_from_list): Don't compute TREE_CONSTANT.
11015
11016 2010-05-12 Jan Hubicka <jh@suse.cz>
11017
11018 * cgraph.h (struct varpool_node): Add aux.
11019 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
11020 * varpool.c (varpool_remove_node): Do not remove initializer.
11021 (varpool_reset_queue): Export.
11022 (varpool_finalize_decl): Volatile vars are forced to be output.
11023 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
11024 replaced decl.
11025 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
11026 process_references, varpool_can_remove_if_no_refs): New functions.
11027 (cgraph_remove_unreachable_nodes): Handle variables too.
11028
11029 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
11030
11031 PR target/44088
11032 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
11033
11034 2010-05-12 Jakub Jelinek <jakub@redhat.com>
11035
11036 PR middle-end/44085
11037 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
11038 change value of ORT_TASK.
11039 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
11040 (omp_notice_threadprivate_variable): New function.
11041 (omp_notice_variable): Call it for threadprivate variables.
11042 If enclosing ctx is a task, print enclosing task rather than
11043 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
11044 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
11045 if task has untied clause.
11046
11047 PR debug/42278
11048 * dwarf2out.c (base_type_die): Don't add name attribute here.
11049 (modified_type_die): Instead of sizetype use
11050 its underlying original type. If a DW_TAG_base_type doesn't
11051 have name added, add __unknown__.
11052 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
11053 always call force_type_die instead.
11054
11055 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
11056
11057 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
11058 for __stack_chk_guard.
11059
11060 2010-05-11 Jakub Jelinek <jakub@redhat.com>
11061
11062 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
11063 don't call start_source_file debug hook here...
11064 (finish_options): ... but here, after outputting predefined and
11065 command line defines and undefs.
11066
11067 PR middle-end/44071
11068 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
11069 no fallthru edge.
11070 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
11071 optimizing away empty bb with no successors, move over its
11072 footer chain to fallthru predecessor.
11073 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
11074 (rtl_split_edge): For asm goto call patch_jump_insn even if
11075 splitting fallthru edge.
11076
11077 PR c++/44059
11078 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
11079 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
11080 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
11081 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
11082 on DW.ref.* decls.
11083
11084 PR c++/44062
11085 * c-parser.c (c_parser_expression): Mark LHS of a comma
11086 expression as read if it is a decl, handled component or
11087 COMPOUND_EXPR with that on the RHS.
11088 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
11089 if it is a decl or handled component.
11090
11091 2010-05-11 Jan Hubicka <jh@suse.cz>
11092
11093 * lto-symtab.c (lto_symtab_free): New function.
11094 * lto-streamer.h (lto_symtab_free): Declare.
11095
11096 2010-05-11 Jan Hubicka <jh@suse.cz>
11097
11098 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
11099 that if function is needed it is reachable.
11100 (lto_output_node): See if it the function is reachable or referenced.
11101 (output_cgraph): Update call of lto_output_node.
11102 * lto-streamer.h (reachable_from_other_partition_p): Declare.
11103
11104 2010-05-11 Jan Hubicka <jh@suse.cz>
11105
11106 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
11107 Mark as used.
11108
11109 2010-05-11 Jan Hubicka <jh@suse.cz>
11110
11111 PR tree-optimize/44063
11112 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
11113 queue.
11114 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
11115 limits.
11116 (estimate_function_body_sizes): Compute sizes even when disregarding.
11117
11118 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
11119
11120 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
11121
11122 2010-05-11 Jan Hubicka <jh@suse.cz>
11123
11124 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
11125 into every boundary.
11126
11127 2010-05-11 Jan Hubicka <jh@suse.cz>
11128
11129 * matrix-reorg.c (matrix_reorg): Rebuild edges.
11130
11131 2010-05-11 Jan Hubicka <jh@suse.cz>
11132
11133 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
11134 lto_streamer_cache_delete): Put nodes into heap.
11135 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
11136 heap.
11137
11138 2010-05-11 Jan Hubicka <jh@suse.cz>
11139
11140 * cgraphbuild.c (cgraph_rebuild_references): New.
11141 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
11142 out extern inlines.
11143 * cgraph.h (cgraph_rebuild_references): Declare.
11144 * tree-inline.c (tree_function_versioning): Use it.
11145 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
11146
11147 2010-05-11 Jan Hubicka <jh@suse.cz>
11148
11149 * cgraph.c: Include ipa-utils.h
11150 (cgraph_create_virtual_clone): Update references.
11151 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
11152
11153 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
11154
11155 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
11156 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
11157 cache size.
11158
11159 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
11160
11161 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
11162
11163 2010-05-11 Jakub Jelinek <jakub@redhat.com>
11164
11165 * gcc.c (execute): For -### don't quote arguments that
11166 contain just alphanumerics and _/-. characters.
11167 * doc/invoke.texi: Document that change for -###.
11168
11169 PR debug/44023
11170 * df-problems.c (struct dead_debug): Add to_rescan field.
11171 (dead_debug_init): Clear to_rescan field.
11172 (dead_debug_finish): Rescan all debug insns in to_rescan
11173 bitmap and free the bitmap.
11174 (dead_debug_insert_before): Instead of rescanning debug insns
11175 immediately queue their rescanning until dead_debug_finish.
11176 (df_note_bb_compute): After dead_debug_add do continue instead
11177 of break.
11178
11179 2010-05-10 Jakub Jelinek <jakub@redhat.com>
11180
11181 PR debug/44028
11182 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
11183 clear also INSN_REG_USE_LIST.
11184
11185 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11186
11187 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
11188
11189 2010-05-10 Jan Hubicka <jh@suse.cz>
11190
11191 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
11192 commited change.
11193
11194 2010-05-10 Jan Hubicka <jh@suse.cz>
11195
11196 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
11197 Allocate encoders.
11198 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
11199 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
11200 (lto_streamer_cache_create): Init alloc pool.
11201 (lto_streamer_cache_delete): Free alloc pool.
11202 * lto-streamer.h: Include alloc pool.
11203 (lto_streamer_cache_d): Use alloc pool.
11204 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
11205
11206 2010-05-10 Jan Hubicka <jh@suse.cz>
11207
11208 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
11209 * cgraphbuild.c: Include except.h
11210 (record_type_list, record_eh_tables): New function.
11211 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
11212
11213 2010-05-10 Jan Hubicka <jh@suse.cz>
11214
11215 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
11216 __frame_dummy_init_array_entry, force_to_data): Attribute as used
11217 rather than unused.
11218
11219 2010-05-10 Michael Matz <matz@suse.de>
11220
11221 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
11222 (can_reassociate_p): Use FLOAT_TYPE_P.
11223 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
11224 (vect_force_simple_reduction): ... this.
11225 * tree-parloops.c (gather_scalar_reductions): Use
11226 vect_force_simple_reduction.
11227 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
11228 vect_is_simple_reduction, add modify argument, if true rewrite
11229 "a-b" into "a+(-b)".
11230 (vect_is_simple_reduction, vect_force_simple_reduction): New
11231 functions.
11232 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
11233
11234 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
11235 Vladimir Makarov <vmakarov@redhat.com>
11236
11237 PR rtl-optimization/44012
11238 * ira-build.c (remove_unnecessary_allocnos): Nullify
11239 regno_allocno_map of the removed allocno.
11240
11241 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11242
11243 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
11244 to /dev/null.
11245 * configure: Regenerate.
11246
11247 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11248
11249 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
11250 unused.
11251 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
11252 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
11253 support in Sun ld.
11254 * configure: Regenerate.
11255
11256 2010-05-10 Richard Guenther <rguenther@suse.de>
11257
11258 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
11259 marked if the entry identifier is marked.
11260
11261 2010-05-10 Richard Guenther <rguenther@suse.de>
11262
11263 * c-common.c (struct c_common_attributes): Add fnspec attribute.
11264 (handle_fnspec_attribute): New function.
11265 * gimple.h (gimple_call_return_flags): Declare.
11266 (gimple_call_arg_flags): Likewise.
11267 * gimple.c (gimple_call_arg_flags): New function.
11268 (gimple_call_return_flags): Likewise.
11269 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
11270 New argument flags.
11271 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
11272 return value flags.
11273 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
11274 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
11275 main work to ...
11276 (make_heapvar_for): ... this new function.
11277 (handle_rhs_call): Handle fnspec attribute argument specifiers.
11278 (handle_lhs_call): Likewise.
11279 (find_func_aliases): Adjust.
11280
11281 2010-05-10 Richard Guenther <rguenther@suse.de>
11282
11283 PR tree-optimization/44050
11284 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
11285
11286 2010-05-10 Wei Guozhi <carrot@google.com>
11287
11288 PR target/42879
11289 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
11290
11291 2010-05-09 Joseph Myers <joseph@codesourcery.com>
11292
11293 PR c/10676
11294 * c-typeck.c (lookup_field): Take a type directly. Update
11295 recursive calls.
11296 (build_component_ref): Update call to lookup_field.
11297 (set_init_label): Use lookup_field to find initialized field.
11298 Handle returned list of fields like a sequence of designators.
11299
11300 2010-05-09 Richard Guenther <rguenther@suse.de>
11301
11302 PR middle-end/44024
11303 * fold-const.c (tree_single_nonzero_warnv_p): Properly
11304 handle &FUNCTION_DECL.
11305
11306 2010-05-09 Joseph Myers <joseph@codesourcery.com>
11307
11308 PR c/4784
11309 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
11310 structures and unions recursively.
11311 (detect_field_duplicates): Move duplicate detection with a hash to
11312 detect_field_duplicates_hash. Always use a hash if anonymous
11313 structures or unions are present.
11314 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
11315 give errors.
11316
11317 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
11318
11319 PR target/44046
11320 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
11321 detect Atom, Core 2 and Core i7.
11322
11323 2010-05-09 Richard Guenther <rguenther@suse.de>
11324
11325 * gcc.c (store_arg): Handle temporary file deletion for
11326 joined arguments.
11327
11328 2010-05-09 Richard Guenther <rguenther@suse.de>
11329
11330 PR middle-end/44043
11331 * ipa-inline.c (estimate_function_body_sizes): Return after
11332 disregarding inline limits.
11333
11334 2010-05-09 Richard Guenther <rguenther@suse.de>
11335
11336 * gcc.c (store_arg): Revert last change.
11337
11338 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
11339
11340 PR middle-end/28685
11341 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
11342 (optimize_ops_list): Call it.
11343
11344 2010-05-08 Richard Guenther <rguenther@suse.de>
11345
11346 PR tree-optimization/44030
11347 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
11348 NECESSARY flag if we propagate from a inserted expression.
11349
11350 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
11351
11352 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
11353 domain types as equal if they are both PLACEHOLDER_EXPRs.
11354
11355 2010-05-08 Richard Guenther <rguenther@suse.de>
11356
11357 * lto-wrapper.c (run_gcc): Remove linker output from
11358 command line for LTRANS invocation.
11359
11360 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
11361
11362 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
11363 lto-macho as lto_binary_reader.
11364 * target.h (struct gcc_target): New hooks lto_start and lto_end.
11365 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
11366 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
11367 in lto_start and lto_end calls.
11368 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
11369 magic numbers.
11370 (scan_prog_file): Update is_elf_or_coff call.
11371 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
11372
11373 * collect2.c (main): Fix enum comparison.
11374
11375 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
11376 Add prototypes.
11377 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
11378 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
11379 and TARGET_ASM_LTO_END.
11380 * darwin.c: Include obstack.h and lto-streamer.h.
11381 (lto_section_names_offset, lto_section_names_obstack,
11382 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
11383 global variables.
11384 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
11385 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
11386 to a temporary file.
11387 (darwin_asm_lto_end): New function. Restore asm_out_file.
11388 (darwin_asm_named_section): For LTO sections, replace the name with
11389 the offset of the section name in a string table, and build this
11390 table.
11391 (darwin_file_start): Initialize global vars for LTO support.
11392 (darwin_file_end): If output to asm_out_file was redirected, append it
11393 to the proper asm_out_file here. Add the section names section.
11394
11395 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
11396
11397 * c-pragma.c (pending_weak_d, pending_weak): New.
11398 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
11399 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
11400 handle_pragma_weak): Update the uses of pending_weaks.
11401
11402 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11403
11404 PR documentation/44016
11405 * doc/standards.texi (Standards): Link to unversioned
11406 cxx0x_status.html page.
11407
11408 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
11409
11410 PR target/43708
11411 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
11412 in addition to TREE_USED, to avoid "set but unused" warnings.
11413
11414 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
11415
11416 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
11417 (is_loop_prefetching_profitable): Do not insert prefetches
11418 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
11419 times the prefetch ahead distance.
11420
11421 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
11422
11423 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
11424 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
11425 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
11426 the unroll_factor.
11427
11428 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
11429
11430 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
11431 a diagnostic info when the insn-to-mem ratio is too small.
11432
11433 2010-05-07 Richard Guenther <rguenther@suse.de>
11434
11435 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
11436 the linker plugin.
11437 (store_arg): Queue temp_filename for deletion instead of
11438 the whole argument.
11439
11440 2010-05-07 Richard Guenther <rguenther@suse.de>
11441
11442 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
11443 (run_gcc): Handle LTRANS phase invocation.
11444 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
11445
11446 2010-05-07 Jakub Jelinek <jakub@redhat.com>
11447
11448 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
11449 this is also meaningful on PARM_DECLs and RESULT_DECLs.
11450
11451 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11452
11453 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
11454
11455 2010-05-07 Richard Guenther <rguenther@suse.de>
11456
11457 PR tree-optimization/44020
11458 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
11459 code when PRE is not yet initialized.
11460
11461 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11462
11463 * config/mips/dbxmdebug.h: Remove.
11464 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
11465
11466 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
11467
11468 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
11469 with null pointer and also warn about ordered comparison of zero with
11470 pointer if -Wextra.
11471
11472 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11473
11474 * graphite-blocking.c
11475 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
11476 * graphite-clast-to-gimple.c
11477 (clast_to_gcc_expression): Same.
11478 (precision_for_value): Same.
11479 (precision_for_interval): Same.
11480 (gcc_type_for_interval): Same.
11481 (graphite_create_new_guard): Same.
11482 (compute_bounds_for_level): Same.
11483 (graphite_create_new_loop_guard): Same.
11484 * graphite-interchange.c
11485 (build_linearized_memory_access): Same.
11486 (pdr_stride_in_loop): Same.
11487 (memory_strides_in_loop_1): Same.
11488 (memory_strides_in_loop): Same.
11489 (extend_scattering): Same.
11490 (psct_scattering_dim_for_loop_depth): Same.
11491 (pbb_number_of_iterations): Same.
11492 * graphite-poly.h
11493 (debug_iteration_domains): Same.
11494 * graphite-ppl.c
11495 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11496 (ppl_set_inhomogeneous_gmp): Same.
11497 (ppl_strip_loop): Same.
11498 (ppl_lexico_compare_linear_expressions): Same.
11499 (ppl_read_polyhedron_matrix): Same.
11500 (ppl_max_for_le_pointset): Same.
11501 * graphite-ppl.h
11502 (ppl_read_polyhedron_matrix): Same.
11503 (tree_int_to_gmp): Same.
11504 (gmp_cst_to_tree): Same.
11505 (ppl_set_inhomogeneous): Same.
11506 (ppl_set_inhomogeneous_tree): Same.
11507 (ppl_set_coef): Same.
11508 (ppl_set_coef_tree): Same.
11509 * graphite-sese-to-poly.c
11510 (build_pbb_scattering_polyhedrons): Same.
11511 (build_scop_scattering): Same.
11512 (scan_tree_for_params_right_scev): Same.
11513 (scan_tree_for_params): Same.
11514 (find_params_in_bb): Same.
11515 (find_scop_parameters): Same.
11516 (add_upper_bounds_from_estimated_nit): Same.
11517 (build_loop_iteration_domains): Same.
11518 (add_condition_to_domain): Same.
11519 (pdr_add_memory_accesses): Same.
11520
11521 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11522
11523 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
11524 CLooG's value_* macros to their respective mpz_* counterparts.
11525 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
11526 (graphite_create_new_loop_guard): Same.
11527 * graphite-interchange.c (build_linearized_memory_access): Same.
11528 (pdr_stride_in_loop): Same.
11529 (memory_strides_in_loop_1): Same.
11530 (1st_interchange_profitable_p): Same.
11531 * graphite-poly.c (extend_scattering): Same.
11532 (psct_scattering_dim_for_loop_depth): Same.
11533 (pbb_number_of_iterations): Same.
11534 (pbb_number_of_iterations_at_time): Same.
11535 * graphite-poly.h (new_1st_loop): Same.
11536 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
11537 (oppose_constraint): Same.
11538 (insert_constraint_into_matrix): Same.
11539 (ppl_set_inhomogeneous_gmp): Same.
11540 (ppl_set_coef_gmp): Same.
11541 (ppl_strip_loop): Same.
11542 (ppl_lexico_compare_linear_expressions): Same.
11543 (ppl_max_for_le_pointset): Same.
11544 (ppl_min_for_le_pointset): Same.
11545 (ppl_build_realtion): Same.
11546 * graphite-ppl.h (gmp_cst_to_tree): Same.
11547 (ppl_set_inhomogeneous): Same.
11548 (ppl_set_inhomogeneous_tree): Same.
11549 (ppl_set_coef): Same.
11550 (ppl_set_coef_tree): Same.
11551 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
11552 (build_scop_scattering): Same.
11553 (add_value_to_dim): Same.
11554 (scan_tree_for_params_right_scev): Same.
11555 (scan_tree_for_params_int): Same.
11556 (scan_tree_for_params): Same.
11557 (find_params_in_bb): Same.
11558 (find_scop_parameters): Same.
11559 (add_upper_bounds_from_estimated_nit): Same.
11560 (build_loop_iteration_domains): Same.
11561 (create_linear_expr_from_tree): Same.
11562 (add_condition_to_domain): Same.
11563 (pdr_add_memory_accesses): Same.
11564
11565 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
11566 Jason Merrill <jason@redhat.com>
11567
11568 * c-common.c (c_common_reswords): Add nullptr.
11569 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
11570 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
11571 (gen_type_die_with_usage): Likewise.
11572 * dbxout.c (dbxout_type): Likewise.
11573 * sdbout.c (plain_type_1): Likewise.
11574
11575 2010-05-06 Jason Merrill <jason@redhat.com>
11576
11577 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
11578 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
11579 ret appropriately.
11580 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
11581
11582 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
11583 stripping WITH_SIZE_EXPR.
11584 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
11585 change.
11586
11587 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11588
11589 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
11590 list of obsolete configurations.
11591 Disabled check for obsolete configurations.
11592 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
11593 Removed support for previous versions.
11594 * config/mips/iris.h: Removed.
11595 * config/mips/iris5.h: Removed.
11596 * config/mips/iris6.h: Merged old iris.h contents.
11597 (TARGET_IRIX): Removed.
11598 (DRIVER_SELF_SPECS): Removed mabi=32.
11599 (IDENT_ASM_OP): Removed undef.
11600 (STARTFILE_SPEC): Removed mabi=32.
11601 (ENDFILE_SPEC): Likewise.
11602 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
11603 (MACHINE_TYPE): Update for IRIX 6.5.
11604 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
11605 TARGET_IRIX by TARGET_IRIX6.
11606 (mips_file_start): Likewise.
11607 (mips_output_external): Remove IRIX 5/6 O32 support.
11608 (mips_output_function_prologue): Likewise.
11609 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
11610 TARGET_IRIX6.
11611 (TARGET_CPU_CPP_BUILTINS): Likewise.
11612 (TARGET_IRIX): Removed.
11613 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
11614 (MULTILIB_DIRNAMES): Removed 32.
11615 (MULTILIB_OSDIRNAMES): Removed ../lib.
11616 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
11617 (Specific, mips-sgi-irix5): Document removal.
11618 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
11619 Remove references to older IRIX 6 releases and the O32 ABI.
11620
11621 2010-05-06 Jakub Jelinek <jakub@redhat.com>
11622
11623 PR bootstrap/43994
11624 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
11625 instead of DF_REF_REAL_REG.
11626
11627 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
11628
11629 PR target/43888
11630 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
11631 handling to still return true for x64 targets.
11632
11633 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
11634
11635 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
11636
11637 2010-05-06 Jan Hubicka <jh@suse.cz>
11638
11639 PR tree-optimization/43791
11640 * ipa-inline.c (update_caller_keys): Remove bogus
11641 disregard_inline_limits check.
11642
11643 2010-05-06 Michael Matz <matz@suse.de>
11644
11645 PR tree-optimization/43984
11646 * tree-ssa-pre.c (inserted_phi_names): Remove.
11647 (inserted_exprs): Change to bitmap.
11648 (create_expression_by_pieces): Set bits, don't append to vector.
11649 (insert_into_preds_of_block): Don't handle inserted_phi_names.
11650 (eliminate): Don't look at inserted_phi_names, remove deleted
11651 insns from inserted_exprs.
11652 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
11653 (init_pre, fini_pre): Allocate and free bitmaps.
11654 (execute_pre): Insert insns on edges before elimination.
11655
11656 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
11657
11658 * tree.c (initializer_zerop): Handle STRING_CST.
11659
11660 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
11661
11662 PR 40989
11663 * doc/invoke.texi (Wimplicit): Document as C only.
11664 * opts.c (common_handle_option): Add argument kind.
11665 (handle_option): Rename as read_cmdline_option. Factor out code to...
11666 (handle_option): ... here. New.
11667 (handle_options): Rename as read_cmdline_options.
11668 (decode_options): Update call.
11669 (set_option): Use option index instead of option pointer. Classify
11670 diagnostics correctly.
11671 (enable_warning_as_error): Call handle_option.
11672 * opts.h (set_option): Update declaration.
11673 (handle_option): Declare.
11674 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
11675 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
11676 * c-opts.c (set_Wimplicit): Delete.
11677 (c_family_lang_mask): New static constant.
11678 (c_common_handle_option): Add argument kind. Use handle_option
11679 instead of set_Wimplicit.
11680 (c_common_post_options): warn_implicit and warn_implicit_int
11681 are disabled by default.
11682 * c-common.c (warn_implicit): Do not define here.
11683 * c-common.h (warn_implicit): Do not declare here.
11684 (c_common_handle_option): Update declaration.
11685 * lto-opts.c (lto_reissue_options): Update call to set_option.
11686
11687 2010-05-06 Richard Guenther <rguenther@suse.de>
11688
11689 PR tree-optimization/43571
11690 * domwalk.c (walk_dominator_tree): Walk the dominator
11691 sons in more optimal order.
11692
11693 2010-05-06 Richard Guenther <rguenther@suse.de>
11694
11695 PR tree-optimization/43934
11696 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
11697 (stmt_cost): Likewise.
11698 (extract_true_false_args_from_phi): New helper.
11699 (determine_max_movement): For PHI nodes verify we can hoist them
11700 and compute their cost.
11701 (determine_invariantness_stmt): Handle PHI nodes.
11702 (move_computations_stmt): Likewise. Hoist PHI nodes in
11703 if-converted form using COND_EXPRs.
11704 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
11705 (tree_ssa_lim): Likewise.
11706 * tree-flow.h (tree_ssa_lim): Adjust prototype.
11707 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
11708
11709 2010-05-06 Richard Guenther <rguenther@suse.de>
11710
11711 PR tree-optimization/43987
11712 * tree-ssa-structalias.c (could_have_pointers): For possibly
11713 address-taken variables force pointers to be recorded.
11714 (create_variable_info_for_1): Likewise.
11715 (push_fields_onto_fieldstack): Pass in wheter all fields
11716 must have pointers.
11717 (find_func_aliases): Query types instead of vars whether
11718 they contain pointers where appropriate.
11719
11720 2010-05-06 Jan Hubicka <jh@suse.cz>
11721
11722 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
11723 (record_reference, mark_address, mark_load, mark_store): Record
11724 references.
11725 (record_references_in_initializer): Update call of record_references.
11726 (rebuild_cgraph_edges): Remove all references before rebuiding.
11727 * cgraph.c (cgraph_create_node): Clear ref list.
11728 (cgraph_remove_node): Remove references.
11729 (dump_cgraph_node): Dump references.
11730 (cgraph_clone_node): Clone references.
11731 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
11732 (struct cgraph_node, varpool_node): Add ref_lst.
11733 * ipa-ref.c: New file.
11734 * ipa-ref.h: New file.
11735 * ipa-ref-inline.h: New file.
11736 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
11737 (referenced_from_other_partition_p): New function.
11738 (lto_output_varpool_node): Take set arugment; call
11739 referenced_from_other_partition.
11740 (lto_output_ref): New.
11741 (add_references): New.
11742 (output_refs): New.
11743 (output_cgraph): Compute boundary based on references; output refs.
11744 (output_varpool): Accept cgraph_node_set argument.
11745 (input_ref): New.
11746 (input_refs): New.
11747 (input_cgraph): Call input_refs.
11748 * lto-section-in.c (lto_section_name): Add refs.
11749 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
11750 (ipa-ref.o): New file.
11751 * varpool.c (varpool_node): Clear ipa ref list.
11752 (varpool_remove_node): Remove references.
11753 (dump_varpool_node): Dump references.
11754 (varpool_assemble_decl): Only compile finalized ones.
11755 (varpool_extra_name_alias): Initialize ref list.
11756 * lto-streamer.c (lto-get_section_name): Add .refs section.
11757 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
11758 (referenced_from_other_partition_p): Declared.
11759
11760 2010-05-06 Ira Rosen <irar@il.ibm.com>
11761
11762 PR tree-optimization/43901
11763 * tree-vect-stmts.c (vectorizable_call): Assert that vector
11764 type is not NULL if it's transformation phase, and return
11765 FALSE if it's analysis.
11766 (vectorizable_conversion, vectorizable_operation,
11767 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
11768
11769 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
11770
11771 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
11772 Delete.
11773 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
11774 New define.
11775 * config/mips/mips-protos.h
11776 (mips_small_register_classes_for_mode_p): Delete prototype.
11777
11778 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
11779
11780 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
11781 * config/arm/arm.c (multiple_operation_profitable_p,
11782 compute_offset_order): New static functions.
11783 (load_multiple_sequence, store_multiple_sequence): Use them.
11784 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
11785 memory offsets, not register numbers.
11786 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
11787
11788 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
11789
11790 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
11791 (get_pending_sizes, put_pending_size, put_pending_sizes):
11792 Update the uses of pending_sizes.
11793 * c-decl.c (store_parm_decls): Likewise.
11794 * c-tree.h (struct c_arg_info): Likewise.
11795 * tree.h: Update the prototype for get_pending_sizes and
11796 put_pending_sizes.
11797
11798 2010-05-05 Jason Merrill <jason@redhat.com>
11799
11800 PR debug/43370
11801 * c-common.c (handle_aligned_attribute): Respect
11802 ATTR_FLAG_TYPE_IN_PLACE.
11803
11804 PR testsuite/43758
11805 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
11806 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11807 (TARGET_INITIALIZER): Use it.
11808 * c-common.c (attribute_takes_identifier_p): Call it.
11809 * c-common.h: Update prototype.
11810 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
11811 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11812
11813 2010-05-05 Jakub Jelinek <jakub@redhat.com>
11814
11815 PR debug/43950
11816 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
11817 DW_ID_down_case for Fortran compilation units.
11818
11819 2010-05-05 Jan Hubicka <jh@suse.cz>
11820
11821 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
11822 handle aliases.
11823
11824 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
11825
11826 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
11827 a variable-sized RESULT_DECL.
11828
11829 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
11830
11831 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
11832
11833 2010-05-05 Jason Merrill <jason@redhat.com>
11834
11835 PR c++/43787
11836 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
11837 returns GS_OK.
11838 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
11839
11840 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
11841 Jakub Jelinek <jakub@redhat.com>
11842
11843 PR debug/43478
11844 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
11845 (dead_debug_init, dead_debug_finish): New functions.
11846 (dead_debug_add, dead_debug_insert_before): Likewise.
11847 (df_note_bb_compute): Initialize a dead_debug object, add dead
11848 debug uses to it, insert debug bind insns before death insns,
11849 reset debug insns that refer to pending uses at the end.
11850 * rtl.h (make_debug_expr_from_rtl): New prototype.
11851 * varasm.c (make_debug_expr_from_rtl): New function.
11852
11853 2010-05-05 Jan Hubicka <jh@suse.cz>
11854
11855 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
11856 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
11857 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
11858 lto_varpool_encoder_deref, lto_varpool_encoder_size,
11859 lto_varpool_encoder_encode_initializer_p,
11860 lto_set_varpool_encoder_encode_initializer): New functions.
11861 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
11862 call output_varpool.
11863 (input_varpool_node): Do not always set analyzed.
11864 (input_cgraph_1): Return vector of cgraph nodes.
11865 (input_varpool_1): Return vector of varpools.
11866 (input_cgraph): Free the vectors.
11867 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11868 output only initializers needed.
11869 (lto_output): Only call output_cgraph.
11870 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
11871 * lto-section-out.c (lto_new_out_decl_state): Initialize
11872 state->varpool_node_encoder.
11873 * lto-streamer.h (lto_varpool_encoder_d): New.
11874 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
11875 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
11876 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
11877 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
11878 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
11879 Declare.
11880 (output_varpool, input_varpool): Remove declarations.
11881
11882 2010-05-05 Jan Hubicka <jh@suse.cz>
11883
11884 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
11885 with body can prevail.
11886
11887 2010-05-05 Jan Hubicka <jh@suse.cz>
11888
11889 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
11890 size.
11891
11892 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11893
11894 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
11895
11896 * gengtype.h (erro_at_line): Constify pos argument.
11897
11898 * gengtype.c: Include hashtab.h.
11899 (enum gc_used): Document GC_MAYBE_POINTED_TO.
11900 (error_at_line): Constify pos argument.
11901 (do_typedef): Initialize p->opt field.
11902 (get_file_gtfilename): Fix comment typo.
11903 (struct walk_type_data): Constify line field.
11904 (get_output_file_for_structure): New function.
11905 (write_local_func_for_structure): Constify orig_s argument.
11906 Use get_output_file_for_structure.
11907 (write_func_for_structure): Use get_output_file_for_structure.
11908 (INDENT): New define.
11909 (dump_pair, dump_type, dump_type_list, dump_typekind)
11910 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
11911 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
11912 functions.
11913 (seen_types): New variable.
11914 (main): New variable do_dump. Process "-d" command line option.
11915 Call dump_everything if dump requested.
11916
11917 2010-05-05 Jakub Jelinek <jakub@redhat.com>
11918
11919 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
11920 in a temporary instead of invoking the macro multiple times.
11921 (track_expr_p): Likewise.
11922
11923 2010-05-04 Neil Vachharajani <nvachhar@google.com>
11924
11925 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
11926 per new semantics.
11927 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
11928 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
11929 conditions for printing notes.
11930 * common.opt (-Wcoverage-mismatch): Allow negative, default to
11931 true, update documentation.
11932 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
11933
11934 2010-05-04 Jakub Jelinek <jakub@redhat.com>
11935
11936 PR c/43981
11937 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
11938 on dimen.
11939
11940 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
11941
11942 PR target/43799
11943 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
11944 (*sse_prologue_save_insn1): Likewise.
11945 (SSE prologue save splitter): Likewise.
11946
11947 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
11948
11949 * tree.c (free_lang_data_in_one_sizepos): New inline function.
11950 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
11951 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
11952 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
11953 all decls. Call it on DECL_FIELD_OFFSET of fields.
11954 (find_decls_types_r): Follow DECL_VALUE_EXPR.
11955 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
11956
11957 2010-05-04 Martin Jambor <mjambor@suse.cz>
11958
11959 * tree-sra.c (build_access_from_expr_1): The first parameter type
11960 changed to simple tree.
11961 (build_access_from_expr): Likewise, gsi parameter was eliminated.
11962 (scan_assign_result): Renamed to assignment_mod_result, enum elements
11963 renamed as well.
11964 (build_accesses_from_assign): Removed all parameters except for a
11965 simple gimple statement. Now returns a simple bool.
11966 (scan_function): All non-analysis parts moved to separate functions
11967 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
11968 parameters and updated both callers.
11969 (sra_modify_expr): Removed parameter data.
11970 (sra_modify_function_body): New function.
11971 (perform_intra_sra): Call sra_modify_function_body to modify the
11972 function body.
11973 (replace_removed_params_ssa_names): Parameter data changed into
11974 adjustments vector.
11975 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
11976 changed the parameter dont_convert to convert with the opposite
11977 meaning.
11978 (sra_ipa_modify_assign): Parameter data changed into adjustments
11979 vector, return value changed to bool.
11980 (ipa_sra_modify_function_body): New function.
11981 (sra_ipa_reset_debug_stmts): Updated a comment.
11982 (modify_function): Use ipa_sra_modify_function_body to modify function
11983 body.
11984
11985 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
11986
11987 PR middle-end/43671
11988 * alias.c (true_dependence): Handle the same VALUE in x and mem.
11989 (canon_true_dependence): Likewise.
11990 (write_dependence_p): Likewise.
11991
11992 2010-05-04 Jan Hubicka <jh@suse.cz>
11993
11994 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
11995 * cgraphbuild.c: Include ipa-utils.h
11996 (record_reference_ctx): New struct.
11997 (record_reference): Simplify to work on initializers; not statements.
11998 (mark_address, mark_load, mark_store): New.
11999 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
12000 walk PHI nodes too.
12001 (record_references_in_initializer): Update use of record_reference.
12002 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
12003 walk PHI nodes too.
12004
12005 2010-05-04 Jan Hubicka <jh@suse.cz>
12006
12007 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
12008 node will be removed anyway.
12009 (lto_varpool_replace_node): Allow also unanalyzed nodes;
12010 relink aliases of node into prevailing node.
12011 * varpool.c (varpool_remove_node): Remove aliases properly;
12012 when removing node, remove all its aliases too; remove DECL_INITIAL
12013 of removed node; ggc_free the varpool node.
12014
12015 2010-05-04 Richard Guenther <rguenther@suse.de>
12016
12017 PR tree-optimization/43879
12018 * tree-ssa-structalias.c (alias_get_name): Use
12019 DECL_ASSEMBLER_NAME if available.
12020 (create_function_info_for): Return the varinfo node.
12021 (ipa_pta_execute): Associate same-body aliases and extra names
12022 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
12023
12024 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
12025
12026 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
12027
12028 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
12029
12030 PR bootstrap/43964
12031 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
12032 only if HONOR_REG_ALLOC_ORDER is not defined.
12033
12034 2010-05-04 Richard Guenther <rguenther@suse.de>
12035
12036 PR tree-optimization/43949
12037 * tree-vrp.c (extract_range_from_binary_expr): Only handle
12038 TRUNC_MOD_EXPR.
12039
12040 2010-04-26 Jason Merrill <jason@redhat.com>
12041
12042 * c.opt (-fstrict-enums): New.
12043 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
12044
12045 2010-05-03 David Ung <davidu@mips.com>
12046 James E. Wilson <wilson@codesourcery.com>
12047
12048 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
12049 emit the trap instruction before the divide for TUNE_74K.
12050
12051 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
12052
12053 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
12054 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
12055 based on the above, for new target hook.
12056
12057 * hooks.c (hook_bool_mode_true): New generic hook.
12058 * hooks.h (hook_bool_mode_true): Add prototype.
12059
12060 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
12061 target hook.
12062 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
12063 target hook, set to hook_bool_mode_false.
12064 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
12065 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
12066 with targetm.small_register_classes_for_mode_p.
12067 (find_reusable_reload): Likewise.
12068 (combine_reloads): Likewise.
12069 * reload1.c (reload_as_needed): Likewise.
12070 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
12071 * ifcvt.c (noce_process_if_block, check_cond_move_block,
12072 dead_or_predicable): Likewise.
12073 * regmove.c (optimize_reg_copy_1): Likewise.
12074 * calls.c (prepare_call_address): Likewise.
12075 (precompute_register_parameters): Likewise.
12076
12077 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
12078 hook definition.
12079 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
12080 implementation of the hook that considers all register classes
12081 small except for SH64.
12082 (sh_override_options): Use the new hook.
12083 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
12084 Add prototype.
12085
12086 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
12087 hook definition.
12088 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
12089 implementation of the hook that considers all register classes
12090 small for THUMB1.
12091 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
12092 Add prototype.
12093
12094 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
12095 hook definition.
12096 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
12097 implementation of the hook that considers all register classes
12098 small for MIPS16.
12099 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
12100 Add prototype.
12101
12102 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
12103 hook definition.
12104 * config/m32c/m32c.h: Likewise.
12105 * config/pdp11/pdp11.h: Likewise.
12106 * config/avr/avr.h: Likewise.
12107 * config/xtensa/xtensa.h: Likewise.
12108 * config/m68hc11/m68hc11.h: Likewise.
12109 * config/mn10300/mn10300.h: Likewise.
12110 * config/mcore/mcore.h: Likewise.
12111 * config/h8300/h8300.h: Likewise.
12112 * config/bfin/bfin.h: Likewise.
12113
12114 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
12115 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
12116
12117 2010-05-03 Anatoly Sokolov <aesok@post.ru>
12118
12119 * double-int.h (tree_to_double_int): Remove macro.
12120 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
12121 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
12122 (tree_to_double_int): New function.
12123 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
12124 Move ...
12125 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
12126
12127 2010-05-03 Richard Guenther <rguenther@suse.de>
12128
12129 PR tree-optimization/43971
12130 * tree-ssa-structalias.c (get_constraint_for_1): Fix
12131 constraints in the !flag_delete_null_pointer_checks case.
12132
12133 2010-05-03 Jakub Jelinek <jakub@redhat.com>
12134
12135 PR debug/43972
12136 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
12137 result mode matches original rtl mode.
12138
12139 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
12140
12141 PR target/43888
12142 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
12143
12144 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
12145
12146 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
12147 when processing flag options.
12148
12149 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
12150
12151 * gcov-iov.c (main): Change format string placeholder
12152 from %#08x to 0x%08x.
12153 * genchecksum.c (dosum): Change format string placeholder
12154 from %#02x to 0x%02x.
12155
12156 2010-05-02 Richard Guenther <rguenther@suse.de>
12157
12158 PR tree-optimization/43879
12159 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
12160
12161 2010-05-02 Bruno Haible <bruno@clisp.org>
12162
12163 * doc/extend.texi (Function Attributes): Fix a typo.
12164
12165 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
12166
12167 Revert:
12168 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
12169 placeholder from 0x%x to %#x.
12170 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
12171 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
12172 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
12173 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
12174 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
12175 * config/i386/i386.c (ix86_target_string): Ditto.
12176 * config/i386/i386.c (output_pic_addr_const): Ditto.
12177 (print_operand): Ditto.
12178
12179 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
12180
12181 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
12182 placeholder from 0x%x to %#x.
12183 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
12184 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
12185 (ASM_OUTPUT_DEBUG_DATA): Ditto.
12186 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
12187 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
12188 * optc-gen.awk: Ditto.
12189 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
12190 (HOST_WIDE_INT_PRINT_HEX): Ditto.
12191 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
12192 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
12193
12194 2010-05-01 Anatoly Sokolov <aesok@post.ru>
12195
12196 * target.h (struct calls): Add function_value_regno_p field.
12197 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
12198 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
12199 * targhooks.c (default_function_value_regno_p): New function.
12200 * targhooks.h (default_function_value_regno_p): Declare function.
12201 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
12202 * builtins.c. (apply_result_size): (Ditto.).
12203 * combine.c. (likely_spilled_retval_p): (Ditto.).
12204 * mode-switching.c. Include 'target.h'.
12205 (create_pre_exit): Use function_value_regno_p hook.
12206 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
12207 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
12208 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
12209
12210 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
12211 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
12212 (ix86_function_value_regno_p): Declare as static, change argument
12213 type to const unsigned int.
12214 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
12215
12216 2010-05-01 Richard Guenther <rguenther@suse.de>
12217
12218 PR tree-optimization/43949
12219 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
12220 types.
12221 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
12222
12223 2010-05-01 Anatoly Sokolov <aesok@post.ru>
12224
12225 * rtl.h (CONST_DOUBLE_P): Define.
12226 (rtx_to_double_int): Declare.
12227 * emit-rtl.c (rtx_to_double_int): New function.
12228 * dwarf2out.c (insert_double): New function.
12229 (loc_descriptor, add_const_value_attribute): Clean up, use
12230 rtx_to_double_int and insert_double functions.
12231
12232 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
12233
12234 * doc/extend.texi (Inline): Add missing return keyword to examples.
12235 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
12236 "command-line".
12237
12238 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
12239
12240 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
12241 the variable part of the offset as well. Use highest_pow2_factor for
12242 all alignment checks.
12243
12244 2010-04-30 Richard Guenther <rguenther@suse.de>
12245
12246 PR tree-optimization/43879
12247 * tree-ssa-structalias.c (type_could_have_pointers): Functions
12248 can have pointers.
12249
12250 2010-04-30 Jan Hubicka <jh@suse.cz>
12251
12252 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
12253 varpool.
12254 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
12255
12256 2010-04-30 Jan Hubicka <jh@suse.cz>
12257
12258 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
12259 New.
12260 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
12261 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
12262 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
12263 cgraph_node_set_needs_ltrans_p): Remove.
12264
12265 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
12266
12267 * sdbout.c: Include vec.h, do not include varray.h.
12268 (deferred_global_decls, sdbout_global_decl,
12269 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
12270 * toplev.c: Do not include varray.h.
12271 (dump_memory_report): Do not dump VARRAY statistics.
12272 * gengtype.c (open_base_file): Ignore varray.h.
12273 * Makefile.in: Update for abovementioned changes.
12274 Remove all traces of varray.c and varray.h.
12275 * varray.c: Remove file.
12276 * varray.h: Remove file.
12277
12278 2010-04-30 Jan Hubicka <jh@suse.cz>
12279
12280 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
12281 references.
12282
12283 2010-04-30 Jan Hubicka <jh@suse.cz>
12284
12285 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
12286 needed.
12287
12288 2010-04-30 Richard Guenther <rguenther@suse.de>
12289
12290 * tree-ssa-structalias.c (get_constraint_for_1): Generate
12291 constraints for CONSTRUCTOR.
12292
12293 2010-04-30 Richard Guenther <rguenther@suse.de>
12294
12295 PR lto/43946
12296 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
12297 first after all lowering passes.
12298
12299 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
12300
12301 * toplev.c: Include varray.h for statistics dumping.
12302 * tree.h: Do not declare varray_head_tag.
12303 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
12304 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
12305 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
12306 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
12307 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
12308 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
12309 c-common.c, c-common.h, reg-stack.c, basic-block.h,
12310 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
12311 include varray.h.
12312 * Makefile.in: Update for abovementioned changes.
12313
12314 2010-04-30 Jakub Jelinek <jakub@redhat.com>
12315
12316 PR debug/43942
12317 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
12318
12319 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
12320
12321 * config/picochip/picochip.c (picochip_legitimize_address): Define.
12322 Use this function to do machine-specific conversion.
12323 (picochip_legitimize_reload_address): Likewise.
12324 (picochip_legitimate_address_p): Check valid base register only if
12325 strict.
12326 (picochip_check_conditional_copy): Check for modw only if opnd is
12327 register.
12328 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
12329 to call the function in c.
12330 * config/picochip/picochip-protos.h
12331 (picochip_legitimize_reload_address): Define.
12332 * config/picochip/picochip.md (supported_compare1): Define.
12333
12334 2010-04-30 Jan Hubicka <jh@suse.cz>
12335
12336 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
12337 (cgraph_global_info): Remove inlined.
12338 (LTO_cgraph_tag_names): Remove.
12339 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
12340 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
12341 simplify cgraph tags and document.
12342 (lto_output_node): Use only LTO_cgraph_unavail_node and
12343 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
12344 for_functions_valid, global info, process and output flags.
12345 (input_overwrite_node): Initialize estimated stack size and
12346 estimated growth. Do not read flags we no longer store.
12347 (input_node): Likewise do not read info no longer stored.
12348 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
12349 flag.
12350
12351 2010-04-30 Richard Guenther <rguenther@suse.de>
12352
12353 PR tree-optimization/43879
12354 * tree-ssa-structalias.c (get_constraint_for_1): Properly
12355 handle non-zero initializers.
12356
12357 2010-04-30 Richard Guenther <rguenther@suse.de>
12358
12359 * builtins.c (fold_builtin_1): Delete free (0).
12360
12361 2010-04-29 Jan Hubicka <jh@suse.cz>
12362
12363 * gengtype.c (open_base_files): Add lto-streamer.h
12364 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
12365 (pass_ipa_cp): GGC collect.
12366 * toplev. (compile_file): Do not output symbols.
12367 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
12368 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
12369 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
12370 * lto-section-in.c: Include ggc.h
12371 (lto_new_in_decl_state): Alloc in GGC.
12372 (lto_delete_in_decl_state): Likewise.
12373 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
12374 Collect.
12375
12376 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
12377
12378 PR target/42895
12379 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
12380 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
12381 (HONOR_REG_ALLOC_ORDER): Describe new macro.
12382 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
12383 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
12384 account only if HONOR_REG_ALLOC_ORDER is not defined.
12385 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
12386 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
12387
12388 2010-04-29 Jon Grant <04@jguk.org>
12389
12390 * collect2.c (vflag): Change type from int to bool.
12391 (debug): Likewise.
12392 (helpflag): New global bool.
12393 (main): Set vflag and debug with boolean, not integer truth values.
12394 Accept new "--help" option and output usage text if found.
12395 * collect2.h (vflag): Update prototype.
12396 (debug): Likewise.
12397
12398 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
12399
12400 PR bootstrap/43936
12401 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
12402
12403 2010-04-29 Richard Guenther <rguenther@suse.de>
12404
12405 PR bootstrap/43935
12406 * plugin.h (invoke_plugin_callbacks): Annotate arguments
12407 with ATTRIBUTE_UNUSED.
12408
12409 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
12410
12411 PR target/43921
12412 * config/i386/i386.c (get_some_local_dynamic_name): Replace
12413 INSN_P with NONDEBUG_INSN_P.
12414 (distance_non_agu_define): Likewise.
12415 (distance_agu_use): Likewise.
12416
12417 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
12418
12419 From Dominique d'Humieres <dominiq@lps.ens.fr>
12420 PR bootstrap/43858
12421 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
12422 test_set.
12423
12424 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
12425
12426 * plugin.h (invoke_plugin_callbacks): New inline function.
12427 * plugin.c (flag_plugin_added): New global flag.
12428 (add_new_plugin): Initialize above flag.
12429 (invoke_plugin_callbacks): Rename to ...
12430 (invoke_plugin_callbacks_full): ... this.
12431
12432 2010-04-28 Jan Hubicka <jh@suse.cz>
12433
12434 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
12435 (lto_varpool_replace_node): New.
12436 (lto_symtab_resolve_symbols): Resolve varpool nodes.
12437 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
12438 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
12439 * cgraph.h (varpool_node_ptr): New type.
12440 (varpool_node_ptr): New vector.
12441 (varpool_node_set_def): New structure.
12442 (varpool_node_set): New type.
12443 (varpool_node_set): New vector.
12444 (varpool_node_set_element_def): New structure.
12445 (varpool_node_set_element, const_varpool_node_set_element): New types.
12446 (varpool_node_set_iterator): New type.
12447 (varpool_node): Add prev pointers, add used_from_other_partition,
12448 in_other_partition.
12449 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
12450 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
12451 varpool_get_node, varpool_remove_node): Declare.
12452 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
12453 varpool_node_set_size): New inlines.
12454 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
12455 * tree-pass.h (varpool_node_set_def): Forward declare.
12456 (ipa_opt_pass_d): Summary writting takes vnode sets too.
12457 (ipa_write_optimization_summaries): Update prototype.
12458 * ipa-cp.c (ipcp_write_summary): Update.
12459 * ipa-reference.c (ipa_reference_write_summary): Update.
12460 * lto-cgraph.c (lto_output_varpool_node): New static function.
12461 (output_varpool): New function.
12462 (input_varpool_node): New static function.
12463 (input_varpool_1): New function.
12464 (input_cgraph): Input varpool.
12465 * ipa-pure-const.c (pure_const_write_summary): Update.
12466 * lto-streamer-out.c (lto_output): Update, output varpool too.
12467 (write_global_stream): Kill WPA hack.
12468 (produce_asm_for_decls): Update.
12469 (output_alias_pair_p): Handle variables.
12470 (output_unreferenced_globals): Output only needed partition of varpool.
12471 * ipa-inline.c (inline_write_summary): Update.
12472 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
12473 cgraph.
12474 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
12475 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
12476 varpool_node_set_new, varpool_node_set_add,
12477 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
12478 debug_varpool_node_set): New functions.
12479 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
12480 (execute_one_pass): Process new decls too.
12481 (ipa_write_summaries_2): Pass around vsets.
12482 (ipa_write_summaries_1): Likewise.
12483 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
12484 to add.
12485 (ipa_write_optimization_summaries_1): Pass around vsets.
12486 (ipa_write_optimization_summaries): Likewise.
12487 * varpool.c (varpool_get_node): New.
12488 (varpool_node): Update doubly linked lists.
12489 (varpool_remove_node): New.
12490 (dump_varpool_node): More dumping.
12491 (varpool_enqueue_needed_node): Update doubly linked lists.
12492 (decide_is_variable_needed): Kill ltrans hack.
12493 (varpool_finalize_decl): Kill lto hack.
12494 (varpool_assemble_decl): Skip decls in other partitions.
12495 (varpool_assemble_pending_decls): Update doubly linkes lists.
12496 (varpool_empty_needed_queue): Likewise.
12497 (varpool_extra_name_alias): Likewise.
12498 * lto-streamer.c (lto_get_section_name): Add vars section.
12499 * lto-streamer.h (lto_section_type): Update.
12500 (output_varpool, input_varpool): Declare.
12501
12502 2010-04-28 Mike Stump <mikestump@comcast.net>
12503
12504 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
12505
12506 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
12507
12508 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
12509 record or union type with RECORD_OR_UNION_TYPE_P predicate.
12510 (lto_input_ts_type_tree_pointers): Likewise.
12511 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
12512 (lto_output_ts_type_tree_pointers): Likewise.
12513
12514 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
12515
12516 Uniquization of constants at the Tree level
12517 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
12518 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
12519 bit to the end.
12520 (tree_output_constant_def): Declare.
12521 * gimplify.c (gimplify_init_constructor): When using block copy, first
12522 uniquize the constant constructor on the RHS.
12523 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
12524 DECL_IN_CONSTANT_POOL flag.
12525 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
12526 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
12527 constant pool.
12528 (assemble_variable): Deal with symbols belonging to the tree constant
12529 pool.
12530 (get_constant_section): Add ALIGN parameter and simplify.
12531 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
12532 (assemble_constant_contents): Use the expression of the VAR_DECL.
12533 (output_constant_def_contents): Use the alignment of the VAR_DECL.
12534 (tree_output_constant_def): New global function.
12535 (mark_constant): Use the expression of the VAR_DECL.
12536 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
12537 its expression.
12538 (output_object_block): Likewise and assemble the expression.
12539
12540 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
12541
12542 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
12543 hash_tree, eq_tree): New tree hash table.
12544 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
12545 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
12546 lto_orig_address_remove): Reimplement.
12547
12548 2010-04-28 Xinliang David Li <davidxl@google.com>
12549
12550 PR c/42643
12551 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
12552 (compute_uninit_opnds_pos): New function.
12553 (is_non_loop_exit_postdominating): New function.
12554 (compute_control_dep_chain): New function.
12555 (find_pdom): New function.
12556 (convert_control_dep_chain_into_preds): New function.
12557 (find_predicates): New function.
12558 (find_control_equiv_block): New function.
12559 (collect_phi_def_edges): New function.
12560 (find_def_preds): New function.
12561 (find_dom): New function.
12562 (dump_predicates): New function.
12563 (get_cmp_code): New function.
12564 (is_value_included_in): New function.
12565 (find_matching_predicate_in_rest_chains): New function.
12566 (use_pred_not_overlap_with_undef_path_pred): New function.
12567 (is_use_properly_guarded): New function.
12568 (normalize_cond_1): New function.
12569 (is_and_or_or): New function.
12570 (normalize_cond): New function.
12571 (is_gcond_subset_of): New function.
12572 (is_subset_of_any): New function.
12573 (is_or_set_subset_of): New function.
12574 (is_and_set_subset_of): New function.
12575 (is_norm_cond_subset_of): New function.
12576 (is_pred_expr_subset_of): New function.
12577 (is_pred_chain_subset_of): New function.
12578 (is_included_in): New function.
12579 (is_superset_of): New function.
12580 (find_uninit_use): New function.
12581 (warn_uninitialized_phi): New function.
12582 (compute_possibly_undefined_names): New function.
12583 (ssa_undefined_value_p): New function.
12584 (execute_late_warn_uninitialized): New function.
12585 * tree-ssa.c (ssa_undefined_value_p): Removed.
12586 (warn_uninit): Changed to extern.
12587 (warn_uninitialized_phi): Removed.
12588 (warn_uninitialized_vars): Changed to extern.
12589 (execute_late_warn_uninitialized): Removed
12590 * tree-flow.h: Add new prototypes.
12591 * timevar.def: Add new time variable.
12592 * Makefile.in: Add new build file.
12593
12594 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
12595
12596 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
12597 type if available.
12598
12599 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12600
12601 PR target/22224
12602 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
12603
12604 2010-04-28 Martin Jambor <mjambor@suse.cz>
12605
12606 * cgraph.h (struct cgraph_node): New field indirect_calls.
12607 (struct cgraph_indirect_call_info): New type.
12608 (struct cgraph_edge): Removed field indirect_call. New fields
12609 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
12610 (cgraph_create_indirect_edge): Declare.
12611 (cgraph_make_edge_direct): Likewise.
12612 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
12613 * ipa-prop.h (struct ipa_param_call_note): Removed.
12614 (struct ipa_node_params): Removed field param_calls.
12615 (ipa_create_all_structures_for_iinln): Declare.
12616 * cgraph.c: Described indirect edges and uids in initial comment.
12617 (cgraph_add_edge_to_call_site_hash): New function.
12618 (cgraph_edge): Search also among the indirect edges, use
12619 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
12620 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
12621 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
12622 site hash.
12623 (initialize_inline_failed): Assign a reason to indirect edges.
12624 (cgraph_create_edge_1): New function.
12625 (cgraph_create_edge): Moved some functionality to
12626 cgraph_create_edge_1.
12627 (cgraph_create_indirect_edge): New function.
12628 (cgraph_edge_remove_callee): Add an assert checking for
12629 non-indirectness.
12630 (cgraph_edge_remove_caller): Special-case indirect edges.
12631 (cgraph_remove_edge): Likewise.
12632 (cgraph_set_edge_callee): New function.
12633 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
12634 (cgraph_make_edge_direct): New function.
12635 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
12636 the declaration of the call statement matches.
12637 (cgraph_node_remove_callees): Special-case indirect edges.
12638 (cgraph_clone_edge): Likewise.
12639 (cgraph_clone_node): Clone also the indirect edges.
12640 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
12641 indirect_call, dump count of indirect_calls edges.
12642 * ipa-prop.c (iinlining_processed_edges): New variable.
12643 (ipa_note_param_call): Create indirect edges instead of
12644 creating notes. New parameter node.
12645 (ipa_analyze_call_uses): New parameter node, pass it on to
12646 ipa_note_param_call.
12647 (ipa_analyze_stmt_uses): Likewise.
12648 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
12649 (print_edge_addition_message): Work on edges rather than on notes.
12650 (update_call_notes_after_inlining): Likewise, renamed to
12651 update_indirect_edges_after_inlining.
12652 (ipa_create_all_structures_for_iinln): New function.
12653 (ipa_free_node_params_substructures): Do not free notes.
12654 (ipa_edge_duplication_hook): Propagate bits within
12655 iinlining_processed_edges bitmap.
12656 (ipa_node_duplication_hook): Do not duplicate notes.
12657 (free_all_ipa_structures_after_ipa_cp): Renamed to
12658 ipa_free_all_structures_after_ipa_cp.
12659 (free_all_ipa_structures_after_iinln): Renamed to
12660 ipa_free_all_structures_after_iinln.
12661 (ipa_write_param_call_note): Removed.
12662 (ipa_read_param_call_note): Removed.
12663 (ipa_write_indirect_edge_info): New function.
12664 (ipa_read_indirect_edge_info): Likewise.
12665 (ipa_write_node_info): Do not stream notes, do stream information
12666 in indirect edges.
12667 (ipa_read_node_info): Likewise.
12668 (lto_ipa_fixup_call_notes): Removed.
12669 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
12670 * ipa-inline.c (pass_ipa_inline): Likewise.
12671 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
12672 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
12673 * tree-inline.c (copy_bb): Removed an unnecessary double check for
12674 is_gimple_call.
12675 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
12676 edges.
12677 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
12678 (output_cgraph): Stream also indirect edges.
12679 (lto_output_edge): Added capability to stream indirect edges.
12680 (input_edge): Likewise.
12681 (input_cgraph_1): Likewise.
12682 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
12683 of indirect edges.
12684
12685 2010-04-28 Richard Guenther <rguenther@suse.de>
12686
12687 PR tree-optimization/43879
12688 PR tree-optimization/43909
12689 * tree-ssa-structalias.c (struct variable_info): Add
12690 only_restrict_pointers flag.
12691 (new_var_info): Initialize it. Increment stats.total_vars here.
12692 (create_function_info_for): Do not increment stats.total_vars here.
12693 (get_function_part_constraint): Fix build with C++.
12694 (insert_into_field_list): Remove.
12695 (push_fields_onto_fieldstack): Properly merge fields.
12696 (create_variable_info_for): Split and simplify.
12697 (create_variable_info_for_1): New piece.
12698 (intra_create_variable_infos): Properly make restrict constraints
12699 from parameters.
12700
12701 2010-04-28 Richard Guenther <rguenther@suse.de>
12702
12703 PR c++/43880
12704 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
12705
12706 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
12707 Jan Hubicka <hubicka@ucw.cz>
12708
12709 * doc/invoke.texi (-Wsuggest-attribute=const,
12710 -Wsuggest-attribute=pure): Document.
12711 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
12712 (function_always_visible_to_compiler_p,
12713 suggest_attribute, warn_function_pure, warn_function_const):
12714 New functions.
12715 (check_call): Improve debug info.
12716 (analyze_function): Do not check availability.
12717 (add_new_function): Check availability.
12718 (propagate): Output warnings.
12719 (skip_function_for_local_pure_const): New function.
12720 (local_pure_const): Use it; output warnings.
12721 * common.opt (Wsuggest-attribute=const,
12722 Wsuggest-attribute=pure): New.
12723
12724 2010-04-27 Jakub Jelinek <jakub@redhat.com>
12725
12726 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
12727 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
12728 or DW_CFA_def_cfa_offset{,_sf}.
12729
12730 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
12731
12732 * tree.h: Fix truncated long macros.
12733
12734 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
12735
12736 * collect2.c (TARGET_64BIT): Redefine to target's default.
12737 * tlink.c: Likewise.
12738 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
12739 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
12740 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
12741 for underscoring __USER_LABEL_PREFIX__.
12742 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
12743 (SUB_LINK_ENTRY32): New.
12744 (SUB_LINK_ENTRY64): New.
12745 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
12746 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
12747 (SUB_LINK_ENTRY64): New.
12748 (SUB_LINK_ENTRY): New.
12749 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
12750 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
12751 x64 target is choosen.
12752 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
12753 * configure: Regenerated.
12754 * configure.ac (leading-mingw64-underscores): Option added.
12755
12756 2010-04-27 Jan Hubicka <jh@suse.cz>
12757
12758 * doc/invoke.texi (-fipa-profile): Document.
12759 * opts.c (decode_options): Enable ipa-profile at -O1.
12760 * timevar.def (TV_IPA_PROFILE): Define.
12761 * common.opt (fipa-profile): Add.
12762 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
12763 flag for clones.
12764 (cgraph_propagate_frequency): Handle only local ones.
12765 * tree-pass.h (pass_ipa_profile): Declare.
12766 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
12767 (pass_ipa_profile): Use TV_IPA_PROFILE.
12768 * ipa.c (ipa_profile): New function.
12769 (gate_ipa_profile): Likewise.
12770 (pass_ipa_profile): New global variable.
12771 * passes.c (pass_ipa_profile): New.
12772
12773 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
12774
12775 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
12776
12777 2010-04-27 Martin Jambor <mjambor@suse.cz>
12778
12779 PR middle-end/43812
12780 * ipa.c (dissolve_same_comdat_group_list): New function.
12781 (function_and_variable_visibility): Call
12782 dissolve_same_comdat_group_list when comdat group contains external or
12783 newly local nodes.
12784 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
12785 lists are circular and that they contain only DECL_ONE_ONLY nodes.
12786
12787 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
12788
12789 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
12790 (const_hash_1) <VECTOR_CST>: New case.
12791 (compare_constant) <VECTOR_CST>: Likewise.
12792 <ADDR_EXPR>: Deal with LABEL_REFs.
12793 (copy_constant) <VECTOR_CST>: New case.
12794
12795 2010-04-27 Jan Hubicka <jh@suse.cz>
12796
12797 * cgraph.c (cgraph_propagate_frequency): New function.
12798 * cgraph.h (cgraph_propagate_frequency): Declare.
12799 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
12800 cgraph_propagate_frequency.
12801
12802 2010-04-27 Jakub Jelinek <jakub@redhat.com>
12803
12804 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
12805
12806 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
12807
12808 PR target/40657
12809 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
12810 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
12811 here to determine which regs to push and how much stack to reserve.
12812
12813 2010-04-27 Jie Zhang <jie@codesourcery.com>
12814
12815 * doc/gimple.texi (gimple_statement_with_ops): Remove
12816 addresses_taken field.
12817 (gimple_statement_with_memory_ops): Likewise.
12818
12819 2010-04-27 Jan Hubicka <jh@suse.cz>
12820
12821 * tree-inline.c (eni_inlining_weights): Remove.
12822 (estimate_num_insns): Special case more builtins.
12823
12824 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
12825
12826 PR c/32207
12827 * c-typeck.c (build_binary_op): Move forward check for comparison
12828 pointer with null pointer constant and adjust the diagnostic message.
12829
12830 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
12831
12832 PR lto/42776
12833 * configure.ac (gcc_cv_as_section_has_align): Set if installed
12834 binutils supports extended .section directive needed by LTO, or
12835 warn if older binutils found.
12836 (LTO_BINARY_READER): New AC_SUBST'd variable.
12837 (LTO_USE_LIBELF): Likewise.
12838 * gcc/config.gcc (lto_binary_reader): New target-specific configure
12839 variable.
12840 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
12841 (LTO_USE_LIBELF): Likewise.
12842 * configure: Regenerate.
12843
12844 * collect2.c (is_elf): Rename from this ...
12845 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
12846 object files in addition to ELF-formatted ones.
12847 (scan_prog_file): Caller updated. Also allow for LTO info marker
12848 symbol to be prefixed or not by an extra underscore.
12849
12850 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
12851 * config/i386/winnt.c: Also #include lto-streamer.h
12852 (i386_pe_asm_named_section): Specify 1-byte section alignment for
12853 LTO named sections.
12854 (i386_pe_asm_output_aligned_decl_common): Add comment.
12855 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
12856
12857 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
12858
12859 PR target/43889
12860 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
12861 Add missing earlyclobber for second alternative.
12862
12863 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
12864
12865 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
12866 bits for artificial defs at the top of the block.
12867 * fwprop.c (single_def_use_enter_block): Don't call it.
12868
12869 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
12870
12871 PR 43715
12872 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
12873 instead of "$gcc_cv_objdump -T".
12874 Use "-undefined dynamic_lookup" on darwin.
12875 * gcc/configure: Regenerate.
12876
12877 2010-04-26 Jakub Jelinek <jakub@redhat.com>
12878
12879 PR c/43893
12880 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
12881
12882 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
12883
12884 * c-parser.c (struct c_token): Move location field up.
12885 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
12886 (struct c_declspecs): Convert typespec_word, storage_class, and
12887 default_int_p into bitfields.
12888 (struct c_declarator): Move loc field up.
12889
12890 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
12891
12892 * cfgloop.h (struct loop): Move can_be_parallel field up.
12893 * ipa-prop.h (struct ip_node_params): Move bitfields up.
12894 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
12895 down.
12896 (struct iv_cand): Convert pos field into a bitfield.
12897 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
12898 field up.
12899 (struct _stmt_vec_info): Shuffle fields for better packing.
12900
12901 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
12902
12903 * varasm.c (IN_NAMED_SECTION): Remove guard.
12904 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
12905 (IN_NAMED_SECTION_P): ...this.
12906 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
12907 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
12908
12909 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
12910
12911 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
12912 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
12913 of shadowing it. Fix comments.
12914
12915 2010-04-26 Jan Hubicka <jh@suse.cz>
12916
12917 * cgraph.c (cgraph_create_node): Set node frequency to normal.
12918 (cgraph_clone_node): Copy function frequency.
12919 * cgraph.h (node_frequency): New enum
12920 (struct cgraph_node): Add.
12921 * final.c (rest_of_clean_state): Update.
12922 * lto-cgraph.c (lto_output_node): Output node frequency.
12923 (input_overwrite_node): Input node frequency.
12924 * tre-ssa-loop-ivopts (computation_cost): Update.
12925 * lto-streamer-out.c (output_function): Do not output function
12926 frequency.
12927 * predict.c (maybe_hot_frequency_p): Update and handle functions
12928 executed once.
12929 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
12930 attribute lookup.
12931 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
12932 (compute_function_frequency): Set noreturn functions to be executed
12933 once.
12934 (choose_function_section): Update.
12935 * lto-streamer-in.c (input_function): Do not input function frequency.
12936 * function.c (allocate_struct_function): Do not initialize function
12937 frequency.
12938 * function.h (function_frequency): Remove.
12939 (struct function): Remove function frequency.
12940 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
12941 (try_update): Update.
12942 * tree-inline.c (initialize_cfun): Do not update function frequency.
12943 * passes.c (pass_init_dump_file): Update.
12944 * i386.c (ix86_compute_frame_layout): Update.
12945 (ix86_pad_returns): Update.
12946
12947 2010-04-26 Jie Zhang <jie@codesourcery.com>
12948
12949 PR tree-optimization/43833
12950 * tree-vrp.c (range_int_cst_p): New.
12951 (range_int_cst_singleton_p): New.
12952 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
12953 when both operands are constants. Use range_int_cst_p in
12954 BIT_IOR_EXPR case.
12955
12956 2010-04-26 Jan Hubicka <jh@suse.cz>
12957
12958 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
12959
12960 2010-04-26 Richard Guenther <rguenther@suse.de>
12961
12962 PR lto/43080
12963 * gimple.c (gimple_decl_printable_name): Deal gracefully
12964 with a NULL DECL_NAME.
12965
12966 2010-04-26 Richard Guenther <rguenther@suse.de>
12967
12968 PR lto/42425
12969 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
12970 if emitting debug information and it is either a function
12971 or a namespace decl.
12972
12973 2010-04-26 Ira Rosen <irar@il.ibm.com>
12974
12975 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
12976 determine if the statement is vectorizable, and a macro to access it.
12977 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12978 Skip statements that can't be vectorized. If the analysis fails,
12979 mark the statement as unvectorizable if vectorizing basic block.
12980 (vect_compute_data_refs_alignment): Likewise.
12981 (vect_verify_datarefs_alignment): Skip statements marked as
12982 unvectorizable. Add print.
12983 (vect_analyze_group_access): Skip statements that can't be
12984 vectorized. If the analysis fails, mark the statement as
12985 unvectorizable if vectorizing basic block.
12986 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
12987 * tree-vect-stmts.c (vectorizable_store): Fix the number of
12988 generated stmts for SLP.
12989 (new_stmt_vec_info): Initialize the new field.
12990 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
12991 statements marked as unvectorizable.
12992
12993 2010-04-25 Joseph Myers <joseph@codesourcery.com>
12994
12995 * c-common.c (flag_isoc1x): New.
12996 (flag_isoc99): Update comment.
12997 * c-common.h (flag_isoc1x): New.
12998 (flag_isoc99): Update comment.
12999 * c-cppbuiltin.c (builtin_define_float_constants): Also define
13000 __<type>_DECIMAL_DIG__.
13001 * c-opts.c (set_std_c1x): New.
13002 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
13003 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
13004 * c.opt (-std=c1x, -std=gnu1x): New options.
13005 * doc/cpp.texi: Mention -std=c1x.
13006 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
13007 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
13008 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
13009 * doc/standards.texi: Mention C1X.
13010 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
13011 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
13012 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
13013 Define for C1X.
13014
13015 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
13016
13017 * config/i386/gmon-sol2.c (_mcleanup): Change format string
13018 placeholder from 0x%x to %#x.
13019 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
13020 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
13021 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
13022 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
13023 * config/i386/i386.c (ix86_target_string): Ditto.
13024 (output_pic_addr_const): Ditto.
13025 (print_operand): Ditto.
13026
13027 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
13028
13029 * combine.c (find_split_point): Add third argument. Use it
13030 to find nested multiply-accumulate instructions. Adjust calls.
13031 (try_combine): Adjust call to find_split_point.
13032
13033 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
13034
13035 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
13036
13037 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
13038
13039 PR tree-optimization/41442
13040 * fold-const.c (merge_truthop_with_opposite_arm): New function.
13041 (fold_binary_loc): Call it.
13042
13043 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
13044
13045 * toplev.c (general_init): Set default for fdiagnostics-show-option.
13046 * opts.c (common_handle_option): Allow disabling it.
13047 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
13048
13049 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
13050
13051 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
13052 between modes if both types are integral.
13053
13054 2010-04-23 Richard Guenther <rguenther@suse.de>
13055
13056 PR tree-optimization/43572
13057 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
13058
13059 2010-04-23 Richard Guenther <rguenther@suse.de>
13060
13061 PR lto/43455
13062 * tree-inline.c (tree_can_inline_p): Also check compatibility
13063 of return types.
13064
13065 2010-04-23 Martin Jambor <mjambor@suse.cz>
13066
13067 PR tree-optimization/43846
13068 * tree-sra.c (struct access): New flag grp_assignment_read.
13069 (build_accesses_from_assign): Set grp_assignment_read.
13070 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
13071 (enum mark_read_status): New type.
13072 (analyze_access_subtree): Propagate grp_assignment_read, create
13073 accesses also if both direct_read and root->grp_assignment_read.
13074
13075 2010-04-23 Martin Jambor <mjambor@suse.cz>
13076
13077 PR middle-end/43835
13078 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
13079 function does not have type attributes.
13080
13081 2010-04-23 Richard Guenther <rguenther@suse.de>
13082
13083 PR lto/42653
13084 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
13085 of FUNCTION_DECLs.
13086
13087 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13088
13089 * sese.h (create_if_region_on_edge): Remove.
13090
13091 * sese.c (create_if_region_on_edge): Make static.
13092
13093 * tree-inline.c: Do not include ggc.h.
13094
13095 * expr.c: Do not include ggc.h.
13096
13097 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
13098 dependencies.
13099
13100 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
13101
13102 PR target/43744
13103 * config/sh/sh.c (find_barrier): Don't emit a constant pool
13104 in the middle of insns for casesi_worker_2.
13105
13106 2010-04-22 David Edelsohn <edelsohn@gnu.org>
13107
13108 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
13109
13110 2010-04-22 Ira Rosen <irar@il.ibm.com>
13111
13112 PR tree-optimization/43842
13113 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
13114 loop unrolling in update of exit phis. Fix comment.
13115 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
13116 least two reduction statements in the loop before starting SLP
13117 analysis.
13118
13119 2010-04-22 Nick Clifton <nickc@redhat.com>
13120
13121 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
13122
13123 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
13124
13125 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
13126 to simplify a + ~a.
13127
13128 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13129
13130 * tree-parloops.c (loop_parallel_p): New argument
13131 parloop_obstack. Pass it down.
13132 (parallelize_loops): New variable parloop_obstack. Initialize it,
13133 pass it down, free it.
13134
13135 * tree-loop-linear.c (linear_transform_loops): Pass down
13136 lambda_obstack.
13137
13138 * tree-data-ref.h (lambda_compute_access_matrices): New argument
13139 of type struct obstack *.
13140
13141 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
13142 scratch_obstack. Initialize it, pass down, free it.
13143
13144 * lambda.h (lambda_loop_new): Remove.
13145 (lambda_matrix_new, lambda_matrix_inverse)
13146 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
13147 argument of type struct obstack *.
13148
13149 * lambda-trans.c (lambda_trans_matrix_new): New argument
13150 lambda_obstack. Pass it down, use obstack allocation for ret.
13151 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
13152 it down.
13153
13154 * lambda-mat.c (lambda_matrix_get_column)
13155 (lambda_matrix_project_to_null): Remove.
13156 (lambda_matrix_new): New argument lambda_obstack. Use obstack
13157 allocation for mat.
13158 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
13159 lambda_obstack.
13160
13161 * lambda-code.c (lambda_loop_new): New function.
13162 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
13163 (lambda_compute_auxillary_space, lambda_compute_target_space)
13164 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
13165 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
13166 (build_access_matrix): New argument lambda_obstack. Use obstack
13167 allocation for am.
13168 (lambda_compute_step_signs, lambda_compute_access_matrices): New
13169 argument lambda_obstack. Pass it down.
13170
13171 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
13172
13173 * optabs.h (expand_widening_mult): Declare.
13174
13175 2010-04-22 Richard Guenther <rguenther@suse.de>
13176
13177 PR tree-optimization/43845
13178 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
13179 lookup the CALL_EXPR function and arguments.
13180
13181 2010-04-22 Nick Clifton <nickc@redhat.com>
13182
13183 * config/stormy16/stormy16.c
13184 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
13185 * config/stormy16/stormy16.h: Tidy up formatting.
13186 (DONT_USE_BUILTIN_SETJMP): Remove definition.
13187 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
13188 (ineqbranchsi): Delete pattern.
13189 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
13190 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
13191 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
13192 stormy16-lib2-ucmpsi2.c.
13193
13194 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
13195
13196 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
13197 df_simulate_find_noclobber_defs as appropriate. Keep track of an
13198 extra set merge_set_noclobber, and use it to relax the final test
13199 slightly.
13200 * df.h (df_simulate_find_noclobber_defs): Declare.
13201 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
13202 conditional defs.
13203 (df_simulate_find_noclobber_defs): New function.
13204
13205 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
13206
13207 * config/i386/i386.md: Use {} around multi-line preparation statements.
13208
13209 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13210
13211 * c-tree.h (push_init_level, pop_init_level, set_init_index)
13212 (process_init_element): New argument of type struct obstack *.
13213
13214 * c-typeck.c (push_init_level, pop_init_level, set_designator)
13215 (set_init_index, set_init_label, set_nonincremental_init)
13216 (set_nonincremental_init_from_string, find_init_member)
13217 (output_init_element, output_pending_init_elements)
13218 (process_init_element): New argument braced_init_obstack. Pass it
13219 down.
13220 (push_range_stack, add_pending_init): New argument
13221 braced_init_obstack. Use obstack allocation.
13222
13223 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
13224 braced_init_obstack. Pass it down.
13225 (c_parser_braced_init): New variables ret, braced_init_obstack.
13226 Initialize obstack, pass it down and finally free it.
13227
13228 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
13229
13230 PR middle-end/29274
13231 * tree-pass.h (pass_optimize_widening_mul): Declare.
13232 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
13233 gate_optimize_widening_mul): New static functions.
13234 (pass_optimize_widening_mul): New.
13235 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
13236 <case MULT_EXPR>: Remove support for widening multiplies.
13237 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
13238 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
13239 simplify_gen_unary rather than directly building extensions.
13240 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
13241 WIDEN_MULT_EXPR.
13242 * expmed.c (expand_widening_mult): New function.
13243 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
13244
13245 2010-04-21 Jan Hubicka <jh@suse.cz>
13246
13247 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
13248 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
13249 * lto-wpa-fixup.c: Remove.
13250 * Makefile.in (lto-wpa-fixup.o): Remove.
13251 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
13252 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
13253 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
13254
13255 2010-04-21 Jan Hubicka <jh@suse.cz>
13256
13257 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
13258 add write_optimization_summary, read_optimization_summary.
13259 (ipa_write_summaries_of_cgraph_node_set): Remove.
13260 (ipa_write_optimization_summaries): Declare.
13261 (ipa_read_optimization_summaries): Declare.
13262 * ipa-cp.c (pass_ipa_cp): Update.
13263 * ipa-reference.c (pass_ipa_reference): Update.
13264 * ipa-pure-const.c (pass_ipa_pure_const): Update.
13265 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
13266 Update.
13267 * ipa-inline.c (pass_ipa_inline): Update.
13268 * ipa.c (pass_ipa_whole_program): Update.
13269 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
13270 * passes.c (ipa_write_summaries_1): Do not test wpa.
13271 (ipa_write_optimization_summaries_1): New.
13272 (ipa_write_optimization_summaries): New.
13273 (ipa_read_summaries): Do not test ltrans.
13274 (ipa_read_optimization_summaries_1): New.
13275 (ipa_read_optimization_summaries): New.
13276
13277 2010-04-21 Jan Hubicka <jh@suse.cz>
13278
13279 * lto-cgraph.c (lto_output_node): Do not output comdat groups
13280 for boundary nodes.
13281 (output_cgraph): Do not arrange comdat groups for boundary nodes.
13282
13283 2010-04-21 Jakub Jelinek <jakub@redhat.com>
13284
13285 PR debug/40040
13286 * dwarf2out.c (add_name_and_src_coords_attributes): Add
13287 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
13288
13289 2010-04-21 Jan Hubicka <jh@suse.cz>
13290
13291 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
13292
13293 2010-04-21 Jan Hubicka <jh@suse.cz>
13294
13295 * varpool.c (decide_is_variable_needed): Variable is always needed
13296 during ltrans.
13297
13298 2010-04-21 Jan Hubicka <jh@suse.cz>
13299
13300 * opts.c (decode_options): Enable pure-const pass for whopr.
13301
13302 2010-04-21 Jan Hubicka <jh@suse.cz>
13303
13304 * cgraph.c (dump_cgraph_node): Dump also assembler name.
13305 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
13306 at WPA dumping.
13307 (cgraph_decide_inlining): Do not expect callee to be removed in all
13308 cases.
13309
13310 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
13311
13312 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
13313
13314 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
13315
13316 * config/i386/i386.md (x86_shrd): Add athlon_decode and
13317 amdfam10_decode attributes.
13318
13319 2010-04-21 Jakub Jelinek <jakub@redhat.com>
13320
13321 PR middle-end/43570
13322 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
13323 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
13324 (lower_copyprivate_clauses): Use private var in outer
13325 context instead of original var. Make sure the types
13326 are correct for VLAs.
13327
13328 2010-04-21 Richard Guenther <rguenther@suse.de>
13329
13330 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
13331 to non-pointer objects.
13332
13333 2010-04-21 Jakub Jelinek <jakub@redhat.com>
13334
13335 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
13336 last chain entry if it starts with the still current label.
13337 (add_location_or_const_value_attribute): Check that
13338 loc_list->first->next is NULL instead of comparing ->first with ->last.
13339 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
13340 to add_var_loc_to_decl.
13341
13342 * dwarf2out.c (output_call_frame_info): For dw_cie_version
13343 >= 4 add also address size and segment size fields into CIE header.
13344
13345 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
13346 long as address size is the same as sizeof (void *) and
13347 segment size is 0.
13348 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
13349 address size or segment size is unexpected, return DW_EH_PE_omit.
13350 (classify_object_over_fdes): If get_cie_encoding returned
13351 DW_EH_PE_omit, return -1.
13352 (init_object): If classify_object_over_fdes returned -1,
13353 pretend there were no FDEs at all.
13354
13355 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
13356
13357 * config/i386/i386.md (bswap<mode>2): Macroize expander from
13358 bswap{si,di}2 using SWI48 mode iterator.
13359 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
13360 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
13361 set modrm attribute of bswap insn to 0 and remove length attribute.
13362 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
13363 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
13364 set mode attribute to <MODE> and remove length attribute.
13365
13366 2010-04-20 James E. Wilson <wilson@codesourcery.com>
13367
13368 PR rtl-optimization/43520
13369 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
13370 zero available registers.
13371
13372 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13373
13374 * builtins.c (fold_builtin_cproj): Fold more cases.
13375
13376 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13377
13378 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
13379 (fold_builtin_1): Fold builtin cproj.
13380 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
13381 Use ATTR_CONST_NOTHROW_LIST.
13382
13383 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
13384
13385 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
13386 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
13387 ffsi2_no_cmove for !TARGET_CMOVE.
13388 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
13389 (ffssi2): Remove expander.
13390 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
13391 mode iterator.
13392 (ctz<mode>2): Ditto from ctz{si,di}2.
13393 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
13394 mode iterator.
13395 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
13396 mode iterator.
13397
13398 2010-04-20 Jakub Jelinek <jakub@redhat.com>
13399
13400 * dwarf2out.c (AT_linkage_name): Define.
13401 (clone_as_declaration): Handle DW_AT_linkage_name.
13402 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
13403 of DW_AT_MIPS_linkage_name.
13404 (move_linkage_attr): Likewise.
13405 (dwarf2out_finish): Likewise.
13406
13407 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
13408
13409 PR middle-end/41952
13410 * fold-const.c (fold_comparison): New folding rule.
13411
13412 2010-04-20 Anatoly Sokolov <aesok@post.ru>
13413
13414 * double-int.h (double_int_setbit): Declare.
13415 * double-int.c (double_int_setbit): New function.
13416 * rtl.h (immed_double_int_const): Declare.
13417 * emit-rtl.c (immed_double_int_const): New function.
13418 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
13419 and immed_double_int_const functions.
13420 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
13421 expand_copysign_bit): (Ditto.).
13422 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
13423 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
13424 * dojump.c (prefer_and_bit_test): (Ditto.).
13425 * expr.c (convert_modes, reduce_to_bit_field_precision,
13426 const_vector_from_tree): (Ditto.).
13427 * expmed.c (mask_rtx, lshift_value): (Ditto.).
13428
13429 2010-04-20 Jan Hubicka <jh@suse.cz>
13430
13431 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
13432 (dump_cgraph_node): Dump new flags.
13433 * cgraph.h (struct cgraph_node): Add flags
13434 reachable_from_other_partition and in_other_partition.
13435 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
13436 other partition can not be removed.
13437 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
13438 the other partition must be output; silence sanity checking on
13439 leaking functions bodies from other paritition.
13440 * lto-cgraph.c (reachable_from_other_partition_p): New function.
13441 (lto_output_node): Output new flags; do not sanity check that inline
13442 clones are output; drop lto_forced_extern_inline_p code; do not mock
13443 visibility flags at partition boundaries.
13444 (add_node_to): New function.
13445 (output_cgraph): Use it to sort functions so masters appear before
13446 clones.
13447 (input_overwrite_node): Input new flags.
13448 * passes.c (ipa_write_summaries): Do not call
13449 lto_new_extern_inline_states.
13450 * lto-section-out.c (forced_extern_inline,
13451 lto_new_extern_inline_states lto_delete_extern_inline_states,
13452 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
13453 * lto-streamer.h (lto_new_extern_inline_states,
13454 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
13455 lto_forced_extern_inline_p): Kill.
13456
13457 2010-04-20 Richard Guenther <rguenther@suse.de>
13458
13459 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
13460 from vars that can have pointers.
13461 (process_constraint): Dump useless constraints.
13462
13463 2010-04-20 Richard Guenther <rguenther@suse.de>
13464
13465 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
13466 (dump_sa_points_to_info): Remove asserts.
13467 (init_base_vars): nothing_id isn't an escape point nor does it
13468 have pointers.
13469
13470 2010-04-20 Jakub Jelinek <jakub@redhat.com>
13471
13472 * tree.h (TYPE_REF_IS_RVALUE): Define.
13473 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
13474 should_move_die_to_comdat, prune_unused_types_walk): Handle
13475 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
13476 (modified_type_die, gen_reference_type_die): Emit
13477 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
13478 if TYPE_REF_IS_RVALUE and -gdwarf-4.
13479
13480 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13481
13482 PR target/43635
13483 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
13484 calls for -fpic -m31 if they have been sibcall optimized.
13485
13486 2010-04-19 James E. Wilson <wilson@codesourcery.com>
13487
13488 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
13489 ar.lc fixed and call-used.
13490
13491 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
13492
13493 2010-04-19 Jan Hubicka <jh@suse.cz>
13494
13495 * opts.c (decode_options): Disable whpr incompatible passes.
13496 * lto/lto.c (lto_1_to_1_map): Skip clones.
13497 (read_cgraph_and_symbols): Do not mark everything as needed.
13498 (do_whole_program_analysis): Do map only after optimizing;
13499 set proper cgraph_state; use passmanager.
13500
13501 2010-04-19 DJ Delorie <dj@redhat.com>
13502
13503 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
13504 POINTER_PLUS_EXPR and fix them.
13505
13506 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
13507
13508 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
13509 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
13510 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
13511 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
13512 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
13513 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
13514 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
13515 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
13516 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
13517 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
13518 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
13519
13520 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
13521
13522 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
13523 (check_cond_move_block): Likewise.
13524 (cond_move_process_if_block): Likewise.
13525 (noce_find_if_block): Improve formatting.
13526 (find_if_header): Pass 0 to memset and tweak conditions.
13527 (cond_exec_find_if_block): Fix long lines and tweak conditions.
13528
13529 2010-04-19 Jakub Jelinek <jakub@redhat.com>
13530
13531 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
13532 for -gdwarf-4.
13533
13534 PR middle-end/43337
13535 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
13536 with non-local decl doesn't need chain.
13537
13538 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
13539
13540 * ira-color.c (allocno_reload_assign): Avoid accumulating
13541 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
13542
13543 2010-04-19 Martin Jambor <mjambor@suse.cz>
13544
13545 * gimple.h (create_tmp_reg): Declare.
13546 * gimplify.c (create_tmp_reg): New function.
13547 (gimplify_return_expr): Use create_tmp_reg.
13548 (gimplify_omp_atomic): Likewise.
13549 (gimple_regimplify_operands): Likewise.
13550 * tree-dfa.c (make_rename_temp): Likewise.
13551 * tree-predcom.c (predcom_tmp_var): Likewise.
13552 (reassociate_to_the_same_stmt): Likewise.
13553 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
13554 (get_replaced_param_substitute): Likewise.
13555 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
13556 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
13557 * tree-ssa-pre.c (get_representative_for): Likewise.
13558 (create_expression_by_pieces): Likewise.
13559 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
13560 (create_tailcall_accumulator): Likewise.
13561
13562 2010-04-19 Martin Jambor <mjambor@suse.cz>
13563
13564 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
13565 new_stmt.
13566 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
13567
13568 2010-04-19 Richard Guenther <rguenther@suse.de>
13569
13570 PR tree-optimization/43796
13571 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
13572 from SCEV in the lattice.
13573 (vrp_visit_phi_node): Dump change.
13574
13575 2010-04-19 Richard Guenther <rguenther@suse.de>
13576
13577 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
13578 * configure: Re-generated.
13579
13580 2010-04-19 Richard Guenther <rguenther@suse.de>
13581
13582 PR tree-optimization/43783
13583 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
13584 constant ARRAY_REF operands two and three if possible.
13585
13586 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
13587
13588 PR target/43766
13589 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
13590
13591 2010-04-19 Jie Zhang <jie@codesourcery.com>
13592
13593 PR target/43662
13594 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
13595
13596 2010-04-19 Ira Rosen <irar@il.ibm.com>
13597
13598 PR tree-optimization/37027
13599 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
13600 and macro to access it.
13601 (vectorizable_reduction): Add argument.
13602 (vect_get_slp_defs): Likewise.
13603 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
13604 statements for possible use in SLP.
13605 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
13606 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
13607 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
13608 add new argument.
13609 (vectorizable_reduction): Likewise.
13610 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
13611 vect_get_slp_defs.
13612 (vectorizable_type_demotion, vectorizable_type_promotion,
13613 vectorizable_store): Likewise.
13614 (vect_analyze_stmt): Update call to vectorizable_reduction.
13615 (vect_transform_stmt): Likewise.
13616 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
13617 (vect_build_slp_tree): Fix indentation. Check that there are no loads
13618 from different interleaving chains in same node.
13619 (vect_slp_rearrange_stmts): New function.
13620 (vect_supported_load_permutation_p): Allow load permutations for
13621 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
13622 inside SLP nodes if necessary.
13623 (vect_analyze_slp_instance): Handle reductions.
13624 (vect_analyze_slp): Try to build SLP instances originating from groups
13625 of reductions.
13626 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
13627 (vect_get_constant_vectors): Create initial vectors for reductions
13628 according to reduction code. Add new argument.
13629 (vect_get_slp_defs): Add new argument, pass it to
13630 vect_get_constant_vectors.
13631 (vect_schedule_slp_instance): Remove SLP tree root statements.
13632
13633 2010-04-19 Jakub Jelinek <jakub@redhat.com>
13634
13635 * tree.h (ENUM_IS_SCOPED): Define.
13636 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
13637 for ENUM_IS_SCOPED enums.
13638
13639 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
13640
13641 * fold-const.c (fold_comparison): Use ssizetype.
13642 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
13643 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
13644 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
13645 * tree-object-size.c (compute_object_sizes): Use size_type_node.
13646
13647 * tree.h (initialize_sizetypes): Remove parameter.
13648 (build_common_tree_nodes): Remove second parameter.
13649 * stor-layout.c (initialize_sizetypes): Remove parameter.
13650 Always create an unsigned type.
13651 (set_sizetype): Assert that the passed type is unsigned and simplify.
13652 * tree.c (build_common_tree_nodes): Remove second parameter.
13653 Adjust call to initialize_sizetypes.
13654 * c-decl.c (c_init_decl_processing): Remove second argument in call to
13655 build_common_tree_nodes.
13656
13657 2010-04-18 Matthias Klose <doko@ubuntu.com>
13658
13659 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
13660
13661 2010-04-18 Ira Rosen <irar@il.ibm.com>
13662
13663 PR tree-optimization/43771
13664 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
13665 load permutation doesn't have gaps.
13666
13667 2010-04-18 Jan Hubicka <jh@suse.cz>
13668
13669 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
13670 (sse_prologue_save_insn expander): Use new pattern.
13671 (sse_prologue_save_insn1): New pattern and splitter.
13672 (sse_prologue_save_insn): Update to deal also with 64bit aligned
13673 blocks.
13674 * i386.c (setup_incoming_varargs_64): Do not compute jump
13675 destination here.
13676 (ix86_gimplify_va_arg): Update alignment needed.
13677 (ix86_local_alignment): Do not align all local arrays to 128bit.
13678
13679 2010-04-17 Jan Hubicka <jh@suse.cz>
13680
13681 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
13682
13683 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
13684
13685 * arm.md (negdi2): Remove redundant code to force values into a
13686 register.
13687
13688 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
13689
13690 * arm/bpabi.S: Add EABI alignment attributes to objects.
13691 * arm/bpabi-v6m.S: Likewise.
13692 * arm/crti.asm: Likewise.
13693 * arm/crtn.asm: Likewise.
13694 * arm/lib1funcs.asm: Likewise.
13695 * arm/libunwind.S: Likewise.
13696
13697 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
13698
13699 * arm-protos.h (tune_params): New structure.
13700 * arm.c (current_tune): New variable.
13701 (arm_constant_limit): Delete.
13702 (struct processors): Add pointer to the tune parameters.
13703 (arm_slowmul_tune): New tuning option.
13704 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
13705 (all_cores): Adjust to pick up the tuning model.
13706 (arm_constant_limit): New function.
13707 (arm_override_options): Select the appropriate tuning model. Delete
13708 initialization of arm_const_limit.
13709 (arm_split_constant): Use the new constant-limit model.
13710 (arm_rtx_costs): Pick up the current tuning model.
13711 * arm.md (is_strongarm, is_xscale): Delete.
13712 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
13713 for Xscale variant architectures.
13714 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
13715
13716 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13717
13718 * config/arm/arm.c (arm_gen_constant): Remove unused variable
13719 can_shift.
13720 (arm_rtx_costs_1): Remove unused variable extra_cost.
13721 (arm_unwind_emit_set): Use variable offset.
13722 (thumb1_output_casesi): Remove unused variable flags.
13723
13724 2010-04-16 Jeff Law <law@redhat.com>
13725
13726 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
13727 needing assignment rather than doing a two-phase assignment. Remove
13728 unused variable 'm'.
13729
13730 2010-04-16 Jakub Jelinek <jakub@redhat.com>
13731
13732 PR bootstrap/43767
13733 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
13734
13735 2010-04-16 Doug Kwan <dougkwan@google.com>
13736
13737 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
13738 (next_operand_entry_id): New static variable.
13739 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
13740 (add_to_ops_vec): Assigned unique ID to operand entry.
13741 (struct oecount_s): New field ID.
13742 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
13743 (undistribute_ops_list): Assign unique IDs to oecounts.
13744 (init_reassoc): reset next_operand_entry_id.
13745
13746 2010-04-16 Doug Kwan <dougkwan@google.com>
13747
13748 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
13749 missing left parenthesis.
13750
13751 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
13752
13753 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
13754 *btdi_rex64 using SWI48 mode iterator.
13755 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
13756 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
13757 *jcc_btdi_mask_rex64.
13758
13759 2010-04-16 Anatoly Sokolov <aesok@post.ru>
13760
13761 * double-int.h (tree_to_double_int): Convert to macro.
13762 * double-int.c (tree_to_double_int): Remove.
13763
13764 2010-04-16 Jakub Jelinek <jakub@redhat.com>
13765
13766 PR debug/43762
13767 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
13768 with want_address 2 and in case a single element list might be
13769 possible, call it again with want_address 0.
13770
13771 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
13772
13773 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
13774 case 'W' print operands for HI mode.
13775 * config/h8300/h8300.h (Y0, Y2) : New constraints.
13776 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
13777 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
13778 * config/h8300/predicate.md (bit_register_indirect_operand): New.
13779
13780 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
13781
13782 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
13783 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
13784 #xx:3 and #xx:4 mode.
13785
13786 * config/h8300/h8300.md (inverted load with HImode dest): Add
13787 support for H8300SX.
13788
13789 * config/h8300/predicate.md (bit_operand): Allow immediate values that
13790 satisfy 'U' constraint.
13791
13792 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13793
13794 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
13795 * configure: Regenerate.
13796 * config.in: Regenerate.
13797 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
13798 works.
13799
13800 2010-04-16 Richard Guenther <rguenther@suse.de>
13801
13802 * tree.h (struct tree_decl_minimal): Move pt_uid ...
13803 (struct tree_decl_common): ... here.
13804 (DECL_PT_UID): Adjust.
13805 (SET_DECL_PT_UID): Likewise.
13806 (DECL_PT_UID_SET_P): Likewise.
13807
13808 2010-04-16 Richard Guenther <rguenther@suse.de>
13809
13810 PR tree-optimization/43572
13811 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
13812 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
13813 * tree-flow.h (is_call_clobbered): Remove.
13814 * tree-flow-inline.h (is_call_clobbered): Likewise.
13815 * tree-dfa.c (dump_variable): Do not dump call clobber state.
13816 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
13817 (execute_return_slot_opt): Adjust.
13818 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
13819 check for call clobbered vars here.
13820 (find_tail_calls): Move tailcall verification to the
13821 proper place.
13822
13823 2010-04-16 Diego Novillo <dnovillo@google.com>
13824
13825 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
13826
13827 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
13828
13829 PR target/40603
13830 * config/arm/arm.md (cbranchqi4): New pattern.
13831 * config/arm/predicates.md (const0_operand,
13832 cbranchqi4_comparison_operator): New predicates.
13833
13834 2010-04-16 Richard Guenther <rguenther@suse.de>
13835
13836 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
13837 (dump_gimple_stmt): Likewise.
13838
13839 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
13840
13841 * recog.h (struct recog_data): New field is_operator.
13842 (struct insn_operand_data): New field is_operator.
13843 * recog.c (extract_insn): Set recog_data.is_operator.
13844 * genoutput.c (output_operand_data): Emit code to set the
13845 is_operator field.
13846 * reload.c (find_reloads): Use it rather than testing for an
13847 empty constraint string.
13848
13849 PR target/41514
13850 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
13851 If the previous insn is a cbranchsi4_insn with the same arguments,
13852 omit the compare instruction.
13853
13854 * config/arm/arm.md (addsi3_cbranch): If destination is a high
13855 register, inputs must be low registers and we need a low register
13856 scratch. Handle alternative 2 like alternative 3.
13857
13858 2010-04-16 Jakub Jelinek <jakub@redhat.com>
13859
13860 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
13861 don't call get_addr on both. If one expression is a VALUE and
13862 the other a REG, check VALUE's locs if the REG isn't among them.
13863
13864 2010-04-16 Christian Bruel <christian.bruel@st.com>
13865
13866 * config/sh/sh.h (sh_frame_pointer_required): New function.
13867 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
13868 (flag_omit_frame_pointer) Set.
13869 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
13870 (rounded_frame_size): Adjust size with outgoing_args_size.
13871 (sh_set_return_address): Must return from stack pointer.
13872 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
13873 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
13874 (ACCUMULATE_OUTGOING_ARGS): Define.
13875 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
13876 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
13877
13878 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
13879
13880 PR target/43471
13881 * config/sh/sh.c (sh_legitimize_reload_address): Use
13882 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
13883 Remove a unneeded check for offset_base.
13884
13885 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
13886
13887 * configure: Regenerated.
13888
13889 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13890
13891 * config/s390/s390.c (s390_call_save_register_used): Switch back
13892 to HARD_REGNO_NREGS.
13893
13894 2010-04-15 Richard Guenther <rguenther@suse.de>
13895
13896 * alias.c (alias_set_subset_of): Handle alias-set zero
13897 child properly.
13898
13899 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
13900 Julian Brown <julian@codesourcery.com>
13901
13902 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
13903 alternatives according to use of high and low regs.
13904 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
13905 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
13906 optimizing for size on Thumb-2.
13907
13908 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
13909
13910 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
13911
13912 2010-04-15 Richard Guenther <rguenther@suse.de>
13913
13914 * tree-ssa-structalias.c (struct variable_info): Add
13915 is_fn_info flag.
13916 (new_var_info): Initialize it.
13917 (dump_constraints): Support printing last added constraints.
13918 (debug_constraints): Adjust.
13919 (dump_constraint_graph): Likewise.
13920 (make_heapvar_for): Check for NULL cfun.
13921 (get_function_part_constraint): New function.
13922 (get_fi_for_callee): Likewise.
13923 (find_func_aliases): Properly implement IPA PTA constraints.
13924 (process_ipa_clobber): New function.
13925 (find_func_clobbers): Likewise.
13926 (insert_into_field_list_sorted): Remove.
13927 (create_function_info_for): Properly allocate vars for IPA mode.
13928 Do not use insert_into_field_list_sorted.
13929 (create_variable_info_for): Properly generate constraints for
13930 global vars in IPA mode.
13931 (dump_solution_for_var): Always dump the solution.
13932 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
13933 (find_what_var_points_to): Adjust.
13934 (pt_solution_set): Change.
13935 (pt_solution_ior_into): New function.
13936 (pt_solution_empty_p): Export.
13937 (pt_solution_includes_global): Adjust.
13938 (pt_solution_includes_1): Likewise.
13939 (pt_solutions_intersect_1): Likewise.
13940 (dump_sa_points_to_info): Check some invariants.
13941 (solve_constraints): Move constraint dumping ...
13942 (compute_points_to_sets): ... here.
13943 (ipa_pta_execute): ... and here.
13944 (compute_may_aliases): Do not re-compute points-to info
13945 locally if IPA info is available.
13946 (ipa_escaped_pt): New global var.
13947 (ipa_pta_execute): Properly implement IPA PTA.
13948 * tree-into-ssa.c (dump_decl_set): Support dumping
13949 decls not in referenced-vars.
13950 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
13951 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
13952 (dump_points_to_solution): Likewise.
13953 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
13954 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
13955 (remap_gimple_stmt): Reset call clobber/use information if necessary.
13956 (copy_decl_to_var): Copy DECL_PT_UID.
13957 (copy_result_decl_to_var): Likewise.
13958 * tree.c (make_node_stat): Initialize DECL_PT_UID.
13959 (copy_node_stat): Copy it.
13960 * tree.h (DECL_PT_UID): New macro.
13961 (SET_DECL_PT_UID): Likewise.
13962 (DECL_PT_UID_SET_P): Likewise.
13963 (struct tree_decl_minimal): Add pt_uid member.
13964 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
13965 (pt_solution_empty_p): Declare.
13966 (pt_solution_set): Adjust.
13967 (ipa_escaped_pt): Declare.
13968 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
13969 * gimple-pretty-print.c (pp_points_to_solution): New function.
13970 (dump_gimple_call): Dump call clobber/use information.
13971 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
13972 * tree-pass.h (TDF_ALIAS): New dump option.
13973 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
13974 * doc/invoke.texi (-fipa-pta): Update documentation.
13975
13976 2010-04-15 Richard Guenther <rguenther@suse.de>
13977
13978 * Makefile.in (OBJS-common): Add gimple-fold.o.
13979 (gimple-fold.o): New rule.
13980 * tree.h (maybe_fold_offset_to_reference,
13981 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
13982 prototypes ...
13983 * gimple.h: ... here.
13984 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
13985 may_propagate_address_into_dereference): Move prototypes ...
13986 * gimple.h: ... here.
13987 * tree-ssa-ccp.c (get_symbol_constant_value,
13988 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
13989 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
13990 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
13991 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
13992 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
13993 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
13994 gimplify_and_update_call_from_tree): Move ...
13995 * gimple-fold.c: ... here. New file.
13996 (ccp_fold_builtin): Rename to ...
13997 (gimple_fold_builtin): ... this.
13998 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
13999
14000 2010-04-15 Richard Guenther <rguenther@suse.de>
14001
14002 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
14003 fit_double_type, force_fit_type_double, add_double_with_sign,
14004 neg_double, mul_double_with_sign, lshift_double, rshift_double,
14005 lrotate_double, rrotate_double, div_and_round_double): Move ...
14006 * double-int.c: ... here.
14007 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
14008 add_double, neg_double, mul_double_with_sign, mul_double,
14009 lshift_double, rshift_double, lrotate_double, rrotate_double,
14010 div_and_round_double): Move prototypes ...
14011 * double-int.h: ... here.
14012
14013 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
14014
14015 PR target/43742
14016 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
14017 matching constraints to ensure inputs match the output.
14018
14019 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
14020
14021 PR target/43742
14022 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
14023 in an input-only operand.
14024
14025 2010-04-15 Anatoly Sokolov <aesok@post.ru>
14026
14027 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
14028 (double_int_not, double_int_lshift, double_int_rshift): Declare.
14029 (double_int_negative_p): Convert to static inline function.
14030 * double-int.c (double_int_lshift, double_int_lshift): New functions.
14031 (double_int_negative_p): Remove.
14032 * tree.h (lshift_double, rshift_double):
14033 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
14034 * fold-const.c (fold_convert_const_int_from_real,
14035 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
14036 (lshift_double): Change type of arith argument to bool.
14037 (rshift_double): Change type of arith argument to bool. Correct
14038 comment.
14039 * expmed.c (mask_rtx, lshift_value): (Ditto.).
14040
14041 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
14042
14043 PR target/21803
14044 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
14045 at the start and end of the then/else blocks, and omit them from the
14046 conversion.
14047 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
14048 argument; all callers changed. Pass zero to old_insns_match_p instead.
14049 (flow_find_head_matching_sequence): New function.
14050 (old_insns_match_p): Check REG_EH_REGION notes for calls.
14051 * basic-block.h (flow_find_cross_jump,
14052 flow_find_head_matching_sequence): Declare functions.
14053
14054 2010-04-14 Jason Merrill <jason@redhat.com>
14055
14056 PR c++/36625
14057 * c-common.c (attribute_takes_identifier_p): New fn.
14058 * c-common.h: Declare it.
14059
14060 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14061
14062 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
14063 splitter condition.
14064 (*udivmod<mode>4): Ditto.
14065
14066 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14067
14068 * config/i386/i386.md (maxmin_int): Rename code attribute from
14069 maxminiprefix and update all users.
14070 (maxmin_float): Ditto from maxminfprefix.
14071 (logic): Ditto from logicprefix.
14072 (absneg_mnemonic): Ditto from absnegprefix.
14073 * config/i386/mmx.md: Update all users of maxminiprefix,
14074 maxminfprefix and logicprefix for rename.
14075 * config/i386/sse.md: Ditto.
14076 * config/i386/sync.md (sync_<code><mode>): Update for
14077 logicprefix rename.
14078
14079 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
14080
14081 PR 42966
14082 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
14083 warnings converted to errors.
14084
14085 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14086
14087 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
14088 used insn_type variable.
14089 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
14090 to avoid set-but-not-used warning.
14091
14092 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14093
14094 * df-core.c (df_ref_debug): Change format string placeholder
14095 from 0x%x to %#x.
14096 * dwarf2asm.c (dw2_asm_output_data_raw,
14097 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
14098 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
14099 * dwarf2out.c (output_cfi, output_cfi_directive,
14100 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
14101 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
14102 Ditto.
14103 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
14104 * print-rtl.c (print_rtx): Ditto.
14105
14106 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14107
14108 PR middle-end/42694
14109 * builtins.c (expand_builtin_pow_root): New function to expand pow
14110 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
14111 series of sqrt and cbrt calls under -ffast-math.
14112 (expand_builtin_pow): Call it.
14113
14114 2010-04-14 Michael Matz <matz@suse.de>
14115
14116 PR tree-optimization/42963
14117 * tree-cfg.c (touched_switch_bbs): New static variable.
14118 (group_case_labels_stmt): New function broken out from ...
14119 (group_case_labels): ... here, use the above.
14120 (start_recording_case_labels): Allocate touched_switch_bbs.
14121 (end_recording_case_labels): Deallocate it, call
14122 group_case_labels_stmt.
14123 (gimple_redirect_edge_and_branch): Remember index of affected BB.
14124
14125 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14126
14127 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
14128 from insn template.
14129
14130 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14131
14132 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
14133
14134 2010-04-13 Jan Hubicka <jh@suse.cz>
14135
14136 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
14137 of optimized out static functions.
14138 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
14139 cost computation. Also sanity check for overflows.
14140 (update_caller_keys): Update cgraph_edge_badness call; properly
14141 update fibheap and sanity check that it is up to date.
14142 (add_new_edges_to_heap): Update cgraph_edge_badness.
14143 (cgraph_decide_inlining_of_small_function): Likewise;
14144 add sanity checking that badness in heap is up to date;
14145 improve dumping of reason; Update badness of calls to the
14146 offline copy of function currently inlined; dump badness
14147 of functions not inlined because of unit growth limits.
14148
14149 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
14150
14151 PR middle-end/32628
14152 * c-common.c (pointer_int_sum): Disregard overflow that occured only
14153 because of sign-extension change when converting to sizetype here...
14154 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
14155
14156 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
14157 the folding to constants. Remove redundant final conversion.
14158 (fold_binary) <associate>: Do not associate if the re-association of
14159 constants alone overflows.
14160 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
14161 to the end of the list.
14162 (multiple_of_p) <COND_EXPR>: New case.
14163
14164 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
14165
14166 * opt-functions.awk (opt_sanitized_name): New.
14167 (opt_enum): New.
14168 * optc-gen.awk: Use it
14169 * opth-gen.awk: Use it.
14170
14171 2010-04-13 Martin Jambor <mjambor@suse.cz>
14172
14173 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
14174 (sra_modify_assign): Delete stmts loading dead data even if racc has no
14175 children. Call replace_uses_with_default_def_ssa_name to handle
14176 SSA_NAES on lhs.
14177
14178 2010-04-13 Michael Matz <matz@suse.de>
14179
14180 PR middle-end/43730
14181 * builtins.c (expand_builtin_interclass_mathfn): Also create
14182 a register if the predicate doesn't match.
14183
14184 2010-04-13 Diego Novillo <dnovillo@google.com>
14185
14186 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
14187 * c-pch.c: Include timevar.h.
14188 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
14189 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
14190 * ggc-common.c: Include timevar.h.
14191 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
14192 * timevar.def (TV_PCH_SAVE): Define.
14193 (TV_PCH_CPP_SAVE): Define.
14194 (TV_PCH_PTR_REALLOC): Define.
14195 (TV_PCH_PTR_SORT): Define.
14196 (TV_PCH_RESTORE): Define.
14197 (TV_PCH_CPP_RESTORE): Define.
14198
14199 2010-04-13 Michael Matz <matz@suse.de>
14200
14201 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
14202 into MINUS_EXPRs.
14203 (can_reassociate_p): New function.
14204 (break_up_subtract_bb, reassociate_bb): Use it.
14205
14206 2010-04-13 Richard Guenther <rguenther@suse.de>
14207
14208 PR bootstrap/43737
14209 * builtins.c (c_readstr): Fix assert.
14210
14211 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
14212
14213 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
14214 when generating cltd insn.
14215
14216 (*ashl<mode>3_1): Remove special handling for register operand 2.
14217 (*ashlsi3_1_zext): Ditto.
14218 (*ashlhi3_1): Ditto.
14219 (*ashlhi3_1_lea): Ditto.
14220 (*ashlqi3_1): Ditto.
14221 (*ashlqi3_1_lea): Ditto.
14222 (*<shiftrt_insn><mode>3_1): Ditto.
14223 (*<shiftrt_insn>si3_1_zext): Ditto.
14224 (*<shiftrt_insn>qi3_1_slp): Ditto.
14225 (*<rotate_insn><mode>3_1): Ditto.
14226 (*<rotate_insn>si3_1_zext): Ditto.
14227 (*<rotate_insn>qi3_1_slp): Ditto.
14228
14229 2010-04-13 Richard Guenther <rguenther@suse.de>
14230
14231 * tree-ssa-structalias.c (callused_id): Remove.
14232 (call_stmt_vars): New.
14233 (get_call_vi): Likewise.
14234 (lookup_call_use_vi): Likewise.
14235 (lookup_call_clobber_vi): Likewise.
14236 (get_call_use_vi): Likewise.
14237 (get_call_clobber_vi): Likewise.
14238 (make_transitive_closure_constraints): Likewise.
14239 (handle_const_call): Adjust to do per-call call-used handling.
14240 (handle_pure_call): Likewise.
14241 (find_what_var_points_to): Remove general callused handling.
14242 (init_base_vars): Likewise.
14243 (init_alias_vars): Initialize call_stmt_vars.
14244 (compute_points_to_sets): Process call-used and call-clobbered
14245 vars for call statements.
14246 (delete_points_to_sets): Free call_stmt_vars.
14247
14248 2010-04-13 Richard Guenther <rguenther@suse.de>
14249
14250 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
14251 Only add RW dependence for dependence distance zero.
14252 Adjust maximal vectorization factor according to dependences.
14253 Move alignment handling ...
14254 (vect_find_same_alignment_drs): ... here. New function.
14255 (vect_analyze_data_ref_dependences): Adjust.
14256 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
14257 (vect_analyze_data_refs): Adjust minimal vectorization factor
14258 according to data references.
14259 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
14260 dependences before determining the vectorization factor.
14261 Analyze alignment after determining the vectorization factor.
14262 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
14263 dependences before alignment.
14264 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
14265 Adjust prototype.
14266 (vect_analyze_data_refs): Likewise.
14267 (MAX_VECTORIZATION_FACTOR): New define.
14268
14269 2010-04-13 Duncan Sands <baldrick@free.fr>
14270
14271 * except.h (lang_eh_type_covers): Remove.
14272 * except.c (lang_eh_type_covers): Likewise.
14273
14274 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14275 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14276
14277 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
14278 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
14279 UNITS_PER_LONG where it is ABI relevant.
14280 (s390_return_addr_rtx): Likewise.
14281 (s390_back_chain_rtx): Likewise.
14282 (s390_frame_area): Likewise.
14283 (s390_frame_info): Likewise.
14284 (s390_initial_elimination_offset): Likewise.
14285 (save_gprs): Likewise.
14286 (s390_emit_prologue): Likewise.
14287 (s390_emit_epilogue): Likewise.
14288 (s390_function_arg_advance): Likewise.
14289 (s390_function_arg): Likewise.
14290 (s390_va_start): Likewise.
14291 (s390_gimplify_va_arg): Likewise.
14292 (s390_function_profiler): Likewise.
14293 (s390_optimize_prologue): Likewise.
14294 (s390_rtx_costs): Likewise.
14295 (s390_secondary_reload): Likewise.
14296 (s390_promote_function_mode): Likewise.
14297 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
14298 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
14299 registers available.
14300 (s390_unwind_word_mode): New function.
14301 (s390_function_value): Split 64 bit values into register pair if
14302 used as return value.
14303 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
14304 function call parameters. Handle parallels.
14305 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
14306 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
14307 (DWARF_CIE_DATA_ALIGNMENT): New macro.
14308 (s390_expand_setmem): Remove unused variable src_addr.
14309 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
14310 deal with 64 bit registers.
14311 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
14312 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
14313 (UNITS_PER_LONG): New macro.
14314 * libjava/include/s390-signal.h: Define extended ucontext
14315 structure containing the upper halfs of the 64 bit registers.
14316
14317 2010-04-13 Simon Baldwin <simonb@google.com>
14318
14319 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
14320
14321 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
14322
14323 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
14324 rvalue on the RHS if the LHS is of a non-renamable type.
14325 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
14326
14327 2010-04-13 Matthias Klose <doko@ubuntu.com>
14328
14329 * gcc.c (cc1_options): Handle -iplugindir before processing
14330 the cc1 spec. Only add -iplugindir once.
14331 (cpp_unique_options): Add -iplugindir option if -fplugin* options
14332 found.
14333 * common.opt (iplugindir): Remove `Separate' property, initialize.
14334 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
14335 option.
14336 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
14337 (distclean): Remove plugin dir.
14338 * doc/invoke.texi: Document -iplugindir.
14339
14340 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
14341
14342 * doc/plugins.texi (Loading Plugins): Document short
14343 -fplugin=foo option.
14344 (Plugin API): Mention default_plugin_dir_name function.
14345
14346 * gcc.c (find_file_spec_function): Add new declaration.
14347 (static_spec_func): Use it for "find-file".
14348 (find_file_spec_function): Add new function.
14349 (cc1_options): Add -iplugindir option if -fplugin* options found.
14350
14351 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
14352
14353 * plugin.c (add_new_plugin): Updated comment, and handle short
14354 plugin name.
14355 (default_plugin_dir_name): Added new function.
14356
14357 * common.opt (iplugindir): New option to set the plugin directory.
14358
14359 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
14360
14361 * config/i386/i386.md (any_rotate): New code iterator.
14362 (rotate_insn): New code attribute.
14363 (rotate): Ditto.
14364 (SWIM124): New mode iterator.
14365 (<rotate_insn>ti3): New expander.
14366 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
14367 any_rotate code iterator.
14368 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
14369 using any_rotate code iterator and SWIM124 mode iterator.
14370 (ix86_rotlti3): New insn_and_split pattern.
14371 (ix86_rotrti3): Ditto.
14372 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
14373 ix86_rotl{di,ti}3 patterns.
14374 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
14375 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
14376 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
14377 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
14378 code iterator and SWI mode iterator.
14379 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
14380 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
14381 code iterator.
14382 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
14383 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
14384 (bswap rotatert splitter): Add splitter.
14385 (bswap splitter): Macroize splitter using any_rotate code iterator.
14386 Add insn predicate to split only for TARGET_USE_XCHGB or when
14387 optimizing function for size.
14388
14389 2010-04-12 Steve Ellcey <sje@cup.hp.com>
14390
14391 * config/pa/pa.c (emit_move_sequence): Remove use of
14392 deleted variable flag_argument_noalias.
14393
14394 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14395
14396 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
14397 configurations.
14398 Add to unsupported targets list.
14399 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
14400 sparc*-sun-solaris2.[567]* from target lists.
14401 * configure: Regenerate.
14402 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
14403 removal.
14404 Remove Solaris 7 patch references.
14405 (Specific, sparc-sun-solaris2.7): Removed.
14406 (sparc-sun-solaris2*): Update Solaris 7 example.
14407 (sparc64-*-solaris2*): Likewise.
14408
14409 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14410
14411 * config.build (alpha*-dec-osf4*): Remove.
14412 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
14413 of obsolete configurations.
14414 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
14415 support.
14416 * config/alpha/t-osf4: Renamed to ...
14417 * config/alpha/t-osf5: ... this.
14418 * config/alpha/osf.h: Renamed to ...
14419 * config/alpha/osf5.h: ... this.
14420 Merged old osf5.h contents.
14421 Update comments.
14422 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
14423 (EXTRA_SPECS): Removed.
14424 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
14425 reflect removal of Tru64 UNIX V4.0/V5.0 support.
14426 Document that.
14427
14428 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14429
14430 * doc/contrib.texi (Contributors, Rainer Orth): Update.
14431
14432 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
14433
14434 PR/43702
14435 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
14436 __thiscall convention.
14437
14438 2010-04-12 Steve Ellcey <sje@cup.hp.com>
14439
14440 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
14441 orig_base.
14442 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
14443
14444 2010-04-12 Steve Ellcey <sje@cup.hp.com>
14445
14446 * function.c (assign_parms_initialize_all): Add unused attribute
14447 to fntype.
14448
14449 2010-04-12 Richard Guenther <rguenther@suse.de>
14450
14451 * gsstruct.def (GSS_CALL): New.
14452 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
14453 * gimple.h: Include tree-ssa-alias.h.
14454 (struct gimple_statement_call): New.
14455 (union gimple_statement_struct_d): Add gimple_call member.
14456 (gimple_call_reset_alias_info): Declare.
14457 (gimple_call_use_set): New function.
14458 (gimple_call_clobber_set): Likewise.
14459 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
14460 * gimple.c (gimple_call_reset_alias_info): New function.
14461 (gimple_build_call_1): Call it.
14462 * lto-streamer-in.c (input_gimple_stmt): Likewise.
14463 * tree-inline.c (remap_gimple_stmt): Likewise.
14464 (expand_call_inline): Remove callused handling.
14465 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
14466 * tree-dfa.c (dump_variable): Likewise.
14467 * tree-parloops.c (parallelize_loops): Likewise.
14468 * tree-ssa.c (init_tree_ssa): Likewise.
14469 (delete_tree_ssa): Likewise.
14470 * tree-flow-inline.h (is_call_used): Remove.
14471 * tree-flow.h (struct gimple_df): Remove callused member.
14472 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
14473 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
14474 (ref_maybe_used_by_call_p_1): Simplify.
14475 (call_may_clobber_ref_p_1): Likewise.
14476 * tree-ssa-structalias.c (compute_points_to_sets): Set
14477 the call stmt used and clobbered sets.
14478 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
14479 (find_tail_calls): Verify the tail call.
14480
14481 2010-04-12 Richard Guenther <rguenther@suse.de>
14482
14483 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
14484 single-iteration always-inline inlining.
14485 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
14486 (cgraph_decide_inlining): Do not handle always-inline specially.
14487 (try_inline): Remove always-inline cycle detection special case.
14488 Do not recurse on always-inlines.
14489 (cgraph_early_inlining): Do not iterate if not optimizing.
14490 (cgraph_gate_early_inlining): remove.
14491 (pass_early_inline): Run unconditionally.
14492 (gate_cgraph_decide_inlining): New function.
14493 (pass_ipa_inline): Use it. Do not run the IPA inliner if
14494 not inlining or optimizing.
14495 (cgraph_decide_inlining_of_small_functions): Also consider
14496 always-inline functions.
14497 (cgraph_default_inline_p): Return true for nodes which should
14498 disregard inline limits.
14499 (estimate_function_body_sizes): Assume zero size and time for
14500 nodes which are marked as disregarding inline limits.
14501 (cgraph_decide_recursive_inlining): Do not perform recursive
14502 inlining on always-inline nodes.
14503
14504 2010-04-12 Jakub Jelinek <jakub@redhat.com>
14505
14506 PR bootstrap/43699
14507 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
14508 for exprs satisfying handled_component_p.
14509
14510 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
14511
14512 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
14513 non-constant aggregate elements.
14514
14515 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
14516 is a real initialization.
14517
14518 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
14519
14520 PR c/36774
14521 * c-decl.c (start_function): Move forward check for nested function.
14522
14523 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
14524
14525 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
14526 * config/sh/sh.c: Include reload.h.
14527 (sh_legitimize_reload_address): New.
14528 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
14529 sh_legitimize_reload_address.
14530
14531 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14532
14533 * config/sh/sh.md (*movqi_pop): New insn pattern.
14534 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
14535
14536 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
14537
14538 * config/i386/i386.md (any_shiftrt): New code iterator.
14539 (shiftrt_insn): New code attribute.
14540 (shiftrt): Ditto.
14541 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
14542 using any_shiftrt code iterator.
14543 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
14544 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
14545 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
14546 pattern from corresponding peephole2 patterns.
14547 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
14548 using any_shiftrt code iterator.
14549 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
14550 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
14551 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
14552 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
14553 *{ashr,lshr}<mode>3_cmp_zext.
14554 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
14555
14556 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
14557
14558 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
14559 scratch register.
14560 (*lshr<mode>3_cconly): Ditto.
14561
14562 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
14563
14564 * config/i386/i386.md (lshr<mode>3): Macroize expander from
14565 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
14566 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
14567 pattern from *lshr{di,ti}3_1 and corresponding splitters using
14568 DWI mode iterator.
14569 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
14570 from corresponding peephole2 patterns.
14571 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
14572 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
14573 and *lshrdi3_1_rex64 using SWI mode iterator.
14574 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
14575 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
14576 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
14577 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
14578 and *lshrdi3_cmp_rex64 using SWI mode iterator.
14579 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
14580 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
14581 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
14582 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
14583 SWI mode iterator.
14584
14585 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
14586
14587 * config/i386/i386.md (ashr<mode>3): Macroize expander from
14588 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
14589 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
14590 pattern from *ashr{di,ti}3_1 and corresponding splitters using
14591 DWI mode iterator.
14592 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
14593 from corresponding peephole2 patterns.
14594 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
14595 (ashrsi3_cvt): Rename from ashrsi3_31.
14596 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
14597 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
14598 and x86_64_shift_adj_3 using SWI48 mode iterator.
14599 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
14600 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
14601 and *ashrdi3_1_rex64 using SWI mode iterator.
14602 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
14603 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
14604 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
14605 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
14606 and *ashrdi3_cmp_rex64 using SWI mode iterator.
14607 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
14608 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
14609 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
14610 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
14611 SWI mode iterator.
14612 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
14613 * config/i386/i386.c (ix86_split_ashr): Update for renamed
14614 x86_shift<mode>_adj_3 expanders.
14615
14616 2010-04-10 Wei Guozhi <carrot@google.com>
14617
14618 PR target/42601
14619 * config/arm/arm.c (arm_pic_static_addr): New function.
14620 (legitimize_pic_address): Call arm_pic_static_addr when it detects
14621 a static symbol.
14622 (arm_output_addr_const_extra): Output expression for new pattern.
14623 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
14624
14625 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
14626
14627 * ira-costs.c (record_reg_classes): Ignore alternatives that are
14628 not enabled.
14629
14630 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
14631 * web.c: Include "insn-config.h" and "recog.h".
14632 (union_match_dups): New function.
14633 (web_main): Call it.
14634 (union_defs): Don't try to recognize match_dups.
14635
14636 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
14637 if doing so would replace the entire pattern.
14638
14639 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
14640
14641 PR target/43707
14642 PR target/43709
14643 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
14644 and splitter pattern. Change splitter operand 1 predicate to
14645 nonmemory_operand.
14646
14647 2010-04-09 Martin Jambor <mjambor@suse.cz>
14648
14649 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
14650 lattices are addresses of CONST_DECLs with the same initial value.
14651 (ipcp_print_all_lattices): Print values of CONST_DECLs.
14652 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
14653
14654 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
14655 Bernd Schmidt <bernds@codesourcery.com>
14656
14657 * loop-invariant.c (replace_uses): New static function.
14658 (move_invariant_reg): Use it to ensure we can replace the uses.
14659
14660 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
14661
14662 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
14663 function template.
14664 (picochip_override_options): Enable section anchors only above -O1.
14665 (picochip_reorg): Fixed a couple of build warnings.
14666
14667 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14668
14669 * configure.ac (plugin -rdynamic test): Log result.
14670 * configure: Regenerate.
14671 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
14672 (RDYNAMIC_SPEC): Define.
14673 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
14674
14675 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14676
14677 * configure.ac: Determine Sun ld version numbers.
14678 (comdat_group): Restrict GNU ld version checks to gld.
14679 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
14680 (enable_comdat): Support --enable-comdat.
14681 * configure: Regenerate.
14682 * doc/install.texi (Configuration): Document --enable-comdat.
14683
14684 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14685
14686 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
14687 * config/sol2-gld.h: ... here.
14688 * config.gcc (sparc*-*-solaris2*): Reflect this.
14689 (i[34567]86-*-solaris2*): Use it.
14690
14691 2010-04-09 Steve Ellcey <sje@cup.hp.com>
14692
14693 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
14694 setup_clocks_p.
14695 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
14696
14697 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
14698
14699 PR 42965
14700 * diagnostic.c (diagnostic_initialize): Initialize
14701 some_warnings_are_errors.
14702 (diagnostic_finish): New.
14703 (diagnostic_action_after_output): Call it before exiting.
14704 (diagnostic_report_diagnostic): Do not print message here. Set
14705 some_warnings_are_errors.
14706 * diagnostic.h (diagnostic_context): Delete
14707 issue_warnings_are_errors_message. Add some_warnings_are_errors.
14708 (diagnostic_finish): Declare.
14709 * toplev.c (toplev_main): Call it before exit.
14710
14711 2010-04-09 Jason Merrill <jason@redhat.com>
14712
14713 PR c++/42623
14714 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
14715 for incomplete type.
14716
14717 PR c++/41788
14718 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
14719 based on a warning flag.
14720
14721 2010-04-09 Richard Guenther <rguenther@suse.de>
14722
14723 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
14724
14725 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
14726
14727 PR bootstrap/43684
14728 * varasm.c (default_assemble_visibility): Wrap vars that are
14729 set, but unused, by targets without GAS.
14730 * config/rs6000/rs6000.c (paired_emit_vector_compare):
14731 Remove set, but unused, vars.
14732 (rs6000_legitimize_tls_address): Likewise.
14733 (altivec_expand_dst_builtin): Likewise.
14734 * config/darwin.c (machopic_classify_symbol): Likewise.
14735 (machopic_indirection_name): Likewise.
14736
14737 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
14738
14739 * config/i386/i386.md (DWI): New mode iterator.
14740 (S): New mode attribute.
14741 (shift_operand): Ditto.
14742 (shift_immediate_operand): Ditto.
14743 (ashl_input_operand): Ditto.
14744 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
14745 using SDWIM mode iterator.
14746 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
14747 pattern from *ashl{di,ti}3_1 and corresponding splitters using
14748 DWI mode iterator.
14749 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
14750 from corresponding peephole2 patterns.
14751 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
14752 and x86_64_shift_adj_1 using SWI48 mode iterator.
14753 (x86_shift<mode>_adj_2): Ditto.
14754 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
14755 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
14756 using SWI48 mode iterator.
14757 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
14758 *ashldi3_cmp_rex64 using SWI mode iterator.
14759 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
14760 *ashldi3_cconly_rex64 using SWI mode iterator.
14761 * config/i386/i386.c (ix86_split_ashl): Update for renamed
14762 x86_shift<mode>_adj_{1,2}.
14763 (ix86_split_ashr): Ditto.
14764 (ix86_split_lshr): Ditto.
14765
14766 2010-04-09 Richard Guenther <rguenther@suse.de>
14767
14768 * target.h (builtin_conversion): Pass in input and output types.
14769 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
14770 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
14771 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
14772 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
14773
14774 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
14775 Handle AVX modes.
14776 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
14777
14778 2010-04-09 Richard Guenther <rguenther@suse.de>
14779
14780 PR target/43152
14781 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
14782
14783 2010-04-09 Richard Guenther <rguenther@suse.de>
14784
14785 * tree-vectorizer.h (struct _stmt_vec_info): Document
14786 that vectype is the type of the LHS.
14787 (supportable_widening_operation, supportable_narrowing_operation):
14788 Get both input and output vector types as arguments.
14789 (vect_is_simple_use_1): Declare.
14790 (get_same_sized_vectype): Likewise.
14791 * tree-vect-loop.c (vect_determine_vectorization_factor):
14792 Set STMT_VINFO_VECTYPE to the vector type of the def.
14793 (vectorizable_reduction): Adjust.
14794 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
14795 Adjust. Specify the output vector type.
14796 (vect_pattern_recog_1): Adjust.
14797 * tree-vect-stmts.c (get_same_sized_vectype): New function.
14798 (vectorizable_call): Adjust.
14799 (vectorizable_conversion): Likewise.
14800 (vectorizable_operation): Likewise.
14801 (vectorizable_type_demotion): Likewise.
14802 (vectorizable_type_promotion): Likewise.
14803 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
14804 the def.
14805 (vect_is_simple_use_1): New function.
14806 (supportable_widening_operation): Get both input and output
14807 vector types.
14808 (supportable_narrowing_operation): Likewise.
14809 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
14810
14811 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
14812
14813 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
14814 __thiscall and _thiscall as predefined macros.
14815 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
14816 thiscall attribute handling.
14817 (ix86_comp_type_attributes): Likewise.
14818 (ix86_function_regparm): Likewise.
14819 (ix86_return_pops_args): Likewise.
14820 (init_cumulative_args): Likewise.
14821 (find_drap_reg): Likewise.
14822 (ix86_static_chain): Likewise.
14823 (x86_this_parameter): Likewise.
14824 (x86_output_mi_thunk): Likewise.
14825 (ix86_attribute_table): Add description for thiscall attribute.
14826 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
14827 * doc/extend.texi: Add documentation for thiscall.
14828
14829 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
14830
14831 PR c++/28584
14832 * c.opt (Wint-to-pointer-cast): Available in C++.
14833 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
14834
14835 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
14836
14837 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
14838 * calls.c (expand_call): Pass the function type to aggregate_value_p.
14839 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
14840 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
14841 function type instead. Reorder and simplify checks.
14842
14843 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
14844
14845 2010-04-08 Jing Yu <jingyu@google.com>
14846 Zdenek Dvorak <ook@ucw.cz>
14847
14848 PR tree-optimization/42720
14849 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
14850 loop unswitch conditions here from ...
14851 (tree_unswitch_single_loop): ... here.
14852
14853 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
14854
14855 * tree-if-conv.c: Fix comments and simplify logic.
14856
14857 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
14858
14859 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
14860 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
14861 (main_tree_if_conversion): Update call to tree_if_conversion.
14862
14863 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
14864
14865 PR 42485
14866 * doc/invoke.texi (-b,-V): Delete.
14867 * doc/tm.texi: Do not mention -b.
14868 * gcc.c (display_help): Delete -b and -V.
14869 (process_command): Delete -b and -V.
14870 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
14871
14872 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
14873 Wolfgang Gellerich <gellerich@de.ibm.com>
14874
14875 Implement target hook for loop unrolling
14876 * target.h (loop_unroll_adjust): Add a new target hook function.
14877 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
14878 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
14879 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
14880 (s390_loop_unroll_adjust): Implement the new target hook for s390.
14881 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
14882 target hook.
14883 (decide_unroll_stupid): Likewise.
14884
14885 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14886
14887 PR target/43643
14888 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
14889
14890 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14891
14892 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
14893 (Specific, *-*-solaris2*): Likewise.
14894 Don't prefer Sun as over GNU as.
14895
14896 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
14897
14898 * config/s390/s390.c (override_options): Adjust the z10 defaults
14899 for max-unroll-times, max-completely-peeled-insns
14900 and max-completely-peel-times.
14901
14902 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14903
14904 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
14905 instructions for z10.
14906 (s390_expand_setmem): Likewise.
14907 (s390_expand_cmpmem): Likewise.
14908
14909 2010-04-08 Richard Guenther <rguenther@suse.de>
14910
14911 PR tree-optimization/43679
14912 * tree-ssa-pre.c (eliminate): Only propagate copies.
14913
14914 2010-04-08 Jakub Jelinek <jakub@redhat.com>
14915
14916 PR bootstrap/43681
14917 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
14918 set but not used variable warning.
14919
14920 2010-04-08 Wei Guozhi <carrot@google.com>
14921
14922 PR target/41653
14923 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
14924 (arm_size_rtx_costs): Call the new function when optimized for size.
14925
14926 2010-04-08 Jakub Jelinek <jakub@redhat.com>
14927
14928 PR debug/43670
14929 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
14930 op0 is not a MEM, just return NULL instead of assertion
14931 failure.
14932 (discover_nonconstant_array_refs): Don't walk debug stmts.
14933
14934 2010-04-08 Doug Kwan <dougkwan@google.com>
14935
14936 * configure.ac: Recognize gold and do not use its version number
14937 to test ld features.
14938 * configure: Regenerate.
14939
14940 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
14941
14942 PR middle-end/40815
14943 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
14944 (negate_value): Move code to push elements to broken_up_substracts ...
14945 (eliminate_plus_minus_pair): ... here. Push operands that have no
14946 negative pair to plus_negates.
14947 (repropagate_negates, init_reassoc, fini_reassoc): Update.
14948
14949 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14950
14951 * doc/install.texi (Configuration): Move description of
14952 --enable-lto, --with-libelf*, --enable-gold from Java section to
14953 general section.
14954
14955 * doc/generic.texi (Working with declarations)
14956 (Function Properties, C and C++ Trees): Fix typos.
14957 * doc/sourcebuild.texi (Top Level): Likewise.
14958
14959 2010-04-07 Jakub Jelinek <jakub@redhat.com>
14960
14961 PR c/18624
14962 * tree.h (DECL_READ_P): Define.
14963 (struct tree_decl_common): Add decl_read_flag.
14964 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
14965 a set but not used warning.
14966 (merge_decls): Merge DECL_READ_P flag.
14967 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
14968 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
14969 * c-common.c (handle_used_attribute, handle_unused_attribute):
14970 Likewise.
14971 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
14972 New prototypes.
14973 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
14974 New functions.
14975 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
14976 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
14977 c_parser_binary_expression, c_parser_cast_expression,
14978 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
14979 Call default_function_array_read_conversion instead of
14980 default_function_array_conversion where needed.
14981 (c_parser_unary_expression, c_parser_conditional_expression,
14982 c_parser_postfix_expression_after_primary, c_parser_initelt):
14983 Likewise. Call mark_exp_read where needed.
14984 (c_parser_statement_after_labels, c_parser_asm_operands,
14985 c_parser_typeof_specifier, c_parser_sizeof_expression,
14986 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
14987 where needed.
14988 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
14989 New.
14990 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
14991 (warn_unused_but_set_parameter): Default to warn_unused
14992 && extra_warnings.
14993 * doc/invoke.texi: Document -Wunused-but-set-variable and
14994 -Wunused-but-set-parameter.
14995
14996 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
14997 used count variable.
14998 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
14999 when operandN variables aren't used in the body of the expander
15000 or splitter.
15001 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
15002 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
15003 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
15004 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
15005 FOR_EACH_IMM_USE_ON_STMT): Likewise.
15006 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
15007 * tree.c (PROCESS_ARG): Likewise.
15008
15009 2010-04-07 Simon Baldwin <simonb@google.com>
15010
15011 * diagnostic.h (diagnostic_override_option_index): New macro to
15012 set a diagnostic's option_index.
15013 * c-tree.h (c_cpp_error): Add warning reason argument.
15014 * opts.c (_warning_as_error_callback): New.
15015 (register_warning_as_error_callback): Store callback for
15016 warnings enabled via enable_warning_as_error.
15017 (enable_warning_as_error): Call callback, minor code tidy.
15018 * opts.h (register_warning_as_error_callback): Declare.
15019 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
15020 response to -Werror=.
15021 (c_common_init_options): Register warning_as_error_callback in opts.c.
15022 * common.opt: Add -Wno-cpp option.
15023 * c-common.c (struct reason_option_codes_t): Map cpp warning
15024 reason codes to gcc option indexes.
15025 * (c_option_controlling_cpp_error): New function, lookup the gcc
15026 option index for a cpp warning reason code.
15027 * (c_cpp_error): Add warning reason argument, call
15028 c_option_controlling_cpp_error for diagnostic_override_option_index.
15029 * doc/invoke.texi: Document -Wno-cpp.
15030
15031 2010-04-07 Richard Guenther <rguenther@suse.de>
15032
15033 * ipa-reference.c (mark_load): Use get_base_address.
15034 (mark_store): Likewise.
15035
15036 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
15037 inserting GIMPLE_NOPs into the IL.
15038 * tree-ssa-structalias.c (get_constraint_for_component_ref):
15039 Explicitly strip handled components and indirect references.
15040
15041 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
15042 folding address expressions.
15043 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
15044 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
15045 operand_equal_p to compare decls.
15046 (ptr_deref_may_alias_decl_p): Likewise.
15047 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
15048 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
15049 Handle reversed comparison ops.
15050 * tree-sra.c (asm_visit_addr): Use get_base_address.
15051 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
15052 * ipa-reference.c (mark_address): Use get_base_address.
15053
15054 2010-04-07 Richard Guenther <rguenther@suse.de>
15055
15056 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
15057 Propagate constants everywhere.
15058
15059 2010-04-07 Jakub Jelinek <jakub@redhat.com>
15060
15061 PR debug/43516
15062 * tree.c (MAX_INT_CACHED_PREC): Define.
15063 (nonstandard_integer_type_cache): New array.
15064 (build_nonstandard_integer_type): Cache results for precision
15065 <= MAX_INT_CACHED_PREC.
15066
15067 2010-04-07 Richard Guenther <rguenther@suse.de>
15068
15069 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
15070 -fargument-noalias-global, -fargument-noalias-anything): Remove.
15071 * common.opt: Likewise.
15072 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
15073 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
15074 (nonoverlapping_memrefs_p): Likewise.
15075 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
15076 * opts.c (common_handle_option): Handle OPT_fargument_alias,
15077 OPT_fargument_noalias, OPT_fargument_noalias_anything and
15078 OPT_fargument_noalias_global for backward compatibility.
15079
15080 2010-04-07 Richard Guenther <rguenther@suse.de>
15081
15082 PR tree-optimization/43270
15083 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
15084 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
15085 * tree-ssa-pre.c (phi_translate_1): Adjust.
15086 (fully_constant_expression): Split out vn_reference handling to ...
15087 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
15088 Fold reads from constant strings.
15089 (vn_reference_lookup): Handle fully constant references.
15090 (vn_reference_lookup_pieces): Likewise.
15091 * Makefile.in (expmed.o-warn): Add -Wno-error.
15092
15093 2010-04-07 Martin Jambor <mjambor@suse.cz>
15094
15095 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
15096
15097 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
15098
15099 PR driver/41594
15100 * gcc.c: Add -static-libstdc++ to list of recognized options.
15101
15102 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15103
15104 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
15105
15106 2010-04-07 Richard Guenther <rguenther@suse.de>
15107
15108 PR middle-end/42617
15109 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
15110 bases build simple mem attributes to retain points-to information.
15111
15112 2010-04-07 Richard Guenther <rguenther@suse.de>
15113
15114 PR middle-end/42617
15115 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
15116 preserve points-to related information.
15117
15118 2010-04-07 Richard Guenther <rguenther@suse.de>
15119
15120 PR middle-end/42617
15121 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
15122 discard plain indirect references.
15123 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
15124 * tree.c (tree_nop_conversion): Likewise.
15125
15126 2010-04-07 Dodji Seketeli <dodji@redhat.com>
15127
15128 PR debug/43628
15129 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
15130
15131 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
15132
15133 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
15134 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
15135
15136 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
15137
15138 * tree-if-conv.c: Fix indentation and comments.
15139
15140 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
15141
15142 * tree-if-conv.c: Sort static functions in topological order.
15143
15144 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
15145
15146 * tree-if-conv.c: Fix indentation and comments.
15147
15148 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15149
15150 PR middle-end/43519
15151 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
15152 lang_hooks.types.type_for_size instead of
15153 build_nonstandard_integer_type.
15154 When converting an unsigned type to signed, double its precision.
15155 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
15156 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
15157 (graphite_create_new_loop_guard): When ub + 1 wraps around,
15158 use lb <= ub.
15159
15160 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15161
15162 PR middle-end/43519
15163 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
15164 POINTER_PLUS_EXPR for pointer types.
15165
15166 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15167
15168 PR middle-end/43519
15169 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
15170 * graphite-clast-to-gimple.c: Include langhooks.h.
15171 (max_signed_precision_type): New.
15172 (max_precision_type): Takes two types as arguments.
15173 (precision_for_value): New.
15174 (precision_for_interval): New.
15175 (gcc_type_for_interval): New.
15176 (gcc_type_for_value): New.
15177 (gcc_type_for_clast_term): New.
15178 (gcc_type_for_clast_red): New.
15179 (gcc_type_for_clast_bin): New.
15180 (gcc_type_for_clast_expr): Split up into several functions.
15181 (gcc_type_for_clast_eq): Rewritten.
15182 (compute_bounds_for_level): New.
15183 (compute_type_for_level_1): New.
15184 (compute_type_for_level): New.
15185 (gcc_type_for_cloog_iv): Removed.
15186 (gcc_type_for_iv_of_clast_loop): Rewritten.
15187 (graphite_create_new_loop): Compute the lower and upper bound types
15188 with gcc_type_for_clast_expr.
15189 (graphite_create_new_loop_guard): Same.
15190 (find_cloog_iv_in_expr): Removed.
15191 (compute_cloog_iv_types_1): Removed.
15192 (compute_cloog_iv_types): Removed.
15193 (gloog): Do not call compute_cloog_iv_types.
15194 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
15195 GBB_CLOOG_IV_TYPES.
15196 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
15197 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
15198 (GBB_CLOOG_IV_TYPES): Removed.
15199
15200 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15201
15202 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
15203 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
15204 (detect_commutative_reduction): Same.
15205
15206 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15207
15208 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
15209 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
15210 argument.
15211 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
15212 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
15213 (rewrite_commutative_reductions_out_of_ssa): Same.
15214 * passes.c (execute_function_todo): Call verify_ssa for every pass
15215 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
15216 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
15217 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
15218 with an extra argument.
15219 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
15220 verify_ssa only when the extra argument is true.
15221 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
15222 with an extra argument.
15223 (tree_transform_and_unroll_loop): Same.
15224
15225 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15226
15227 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
15228 for all the passes of the LNO having LOOP_CLOSED_SSA.
15229 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
15230 * tree-loop-distribution.c (pass_loop_distribution): Same.
15231 * tree-pass.h (TODO_verify_loops): Removed.
15232 * tree-ssa-loop.c (pass_tree_loop_init): Same.
15233 (pass_lim): Same.
15234 (pass_tree_unswitch): Same.
15235 (pass_predcom): Same.
15236 (pass_vectorize): Same.
15237 (pass_linear_transform): Same.
15238 (pass_graphite_transforms): Same.
15239 (pass_iv_canon): Same.
15240 (pass_complete_unroll): Same.
15241 (pass_complete_unrolli): Same.
15242 (pass_parallelize_loops): Same.
15243 (pass_loop_prefetch): Same.
15244 (pass_iv_optimize): Same.
15245
15246 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
15247
15248 PR middle-end/32824
15249 * passes.c (init_optimization_passes): Move pass_lim before
15250 pass_copy_prop and pass_dce_loop.
15251
15252 2010-04-06 Jakub Jelinek <jakub@redhat.com>
15253
15254 PR target/43667
15255 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
15256 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
15257 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
15258 MULTI_* defines for 4 argument vpermil2p* builtins.
15259
15260 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
15261
15262 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
15263 * config/i386/i386.c (x86_maybe_negate_const_int): New.
15264 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
15265 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
15266 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
15267 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
15268 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
15269 Use x86_maybe_negate_const_int to output insn mnemonic.
15270 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
15271 check from instruction predicate. Update comments.
15272 * config/i386/sync.md (sync_add<mode>): Use
15273 x86_maybe_negate_const_int to output insn mnemonic.
15274
15275 2010-04-06 Jan Hubicka <jh@suse.cz>
15276
15277 PR tree-optimization/42906
15278 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
15279 IGNORE_SELF argument. Set visited_control_parents for fully
15280 processed BBs.
15281 (find_obviously_necessary_stmts): Update call of
15282 mark_control_dependent_edges_necessary.
15283 (propagate_necessity): Likewise. Handle PHI edges more curefully.
15284
15285 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
15286
15287 * config/i386/i386.md: Remove comment about 'e' and 'E'
15288 operand modifier.
15289
15290 2010-04-06 Richard Guenther <rguenther@suse.de>
15291
15292 PR tree-optimization/43627
15293 * tree-vrp.c (extract_range_from_unary_expr): Widenings
15294 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
15295 not varying.
15296
15297 2010-04-06 Jakub Jelinek <jakub@redhat.com>
15298
15299 * BASE-VER: Change to 4.6.0.
15300
15301 PR target/43638
15302 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
15303 handling.
15304
15305 2010-04-06 Richard Guenther <rguenther@suse.de>
15306
15307 PR middle-end/43661
15308 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
15309
15310 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15311
15312 * doc/invoke.texi (Optimize Options): Document that LTO
15313 won't remove object access purely due to incompatible
15314 declarations.
15315
15316 2010-04-04 Matthias Klose <doko@ubuntu.com>
15317
15318 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
15319 Initialize variable.
15320
15321 2010-04-03 Richard Guenther <rguenther@suse.de>
15322
15323 PR middle-end/42509
15324 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
15325 require a non-NULL MEM_OFFSET.
15326
15327 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
15328
15329 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
15330 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
15331 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
15332 config/alpha/predicates.md, config/arm/arm.md,
15333 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
15334 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
15335 config/darwin9.h, config/darwin.c, config/darwin.h,
15336 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
15337 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
15338 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
15339 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
15340 config/mips/mips.md, config/mn10300/mn10300.c,
15341 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
15342 config/rs6000/aix.h, config/rs6000/dfp.md,
15343 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
15344 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
15345 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
15346 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
15347 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
15348 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
15349 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
15350 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
15351 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
15352 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
15353 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
15354 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
15355 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
15356 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
15357 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
15358 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
15359 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
15360 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
15361 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
15362 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
15363 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
15364 opt-functions.awk, opth-gen.awk, params.def, passes.c,
15365 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
15366 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
15367 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
15368 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
15369 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
15370 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
15371 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
15372 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
15373 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
15374 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
15375 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
15376 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
15377 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
15378 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
15379
15380 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15381
15382 PR other/43620
15383 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
15384 * aclocal.m4: Regenerate.
15385
15386 2010-04-02 Richard Guenther <rguenther@suse.de>
15387
15388 PR tree-optimization/43629
15389 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
15390 if we have seen a constant value.
15391
15392 2010-04-02 Joseph Myers <joseph@codesourcery.com>
15393
15394 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
15395
15396 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
15397
15398 PR target/43469
15399 * arm.c (legitimize_tls_address): Adjust call to
15400 gen_tls_load_dot_plus_four.
15401 (arm_note_pic_base): New function.
15402 (arm_cannot_copy_insn_p): Use it.
15403 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
15404 constraint.
15405
15406 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15407
15408 PR bootstrap/43531
15409
15410 Revert:
15411 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15412
15413 * Makefile.in ($(out_object_file)): Depend on
15414 gt-$(basename $(notdir $(out_file))).h.
15415
15416 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
15417
15418 * config.gcc (lm32-*-rtems*): Add t-lm32.
15419
15420 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
15421
15422 * config.gcc: Add lm32-*-rtems*.
15423 * config/lm32/rtems.h: New file.
15424
15425 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
15426
15427 PR target/42609
15428 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
15429
15430 2010-04-01 Jakub Jelinek <jakub@redhat.com>
15431
15432 * dwarf2out.c (output_compilation_unit_header): For
15433 -gdwarf-4 use version 4 instead of version 3.
15434 (output_line_info): For version 4 and above emit additional
15435 maximum ops per insn header field.
15436 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
15437
15438 * dwarf2out.c (is_c_family, is_java): Remove.
15439 (lower_bound_default): New function.
15440 (add_bound_info, gen_descr_array_type_die): Use it.
15441
15442 2010-04-01 Dodji Seketeli <dodji@redhat.com>
15443
15444 PR debug/43325
15445 * dwarf2out.c (gen_variable_die): Allow debug info for variable
15446 re-declaration when it happens in a function.
15447
15448 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
15449
15450 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
15451 (cgraph_remove_function_insertion_hook): Same.
15452 (cgraph_call_function_insertion_hooks): Same.
15453
15454 2010-04-01 Richard Guenther <rguenther@suse.de>
15455
15456 PR middle-end/43614
15457 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
15458 and TREE_THIS_VOLATILE.
15459 (copy_ref_info): Likewise.
15460 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
15461 * tree.c (build6_stat): Ignore side-effects of all but arg5
15462 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
15463 TARGET_MEM_REF.
15464
15465 2010-04-01 Richard Guenther <rguenther@suse.de>
15466
15467 PR tree-optimization/43607
15468 * ipa-type-escape.c (check_call): Do not access non-existing
15469 arguments.
15470
15471 2010-04-01 Richard Guenther <rguenther@suse.de>
15472
15473 PR middle-end/43602
15474 Revert
15475 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
15476 Jack Howarth <howarth@bromo.med.uc.edu>
15477
15478 * tree-profile.c (tree_init_ic_make_global_vars): Make static
15479 variables TLS.
15480
15481 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15482
15483 * doc/install.texi (Prerequisites): Document libelf usability on
15484 IRIX 5/6 and Solaris 2.
15485 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
15486 Update GNU as, GNU ld requirements.
15487 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
15488 Document Sun Studio compiler download.
15489 Update and simplify as, ld recommendations.
15490 (Specific, *-*-solaris2.7): Note obsoletion, removal.
15491
15492 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15493
15494 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
15495 with_tune_32 to pentium4.
15496
15497 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
15498
15499 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
15500
15501 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15502
15503 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
15504 obsoletion, removal.
15505 Update IDO URL.
15506 Document GNU as requirement.
15507 Update configure requirements.
15508 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
15509 Recomment IRIX 6.5.18+.
15510 Document IDF/IDL requirement.
15511 Document GNU as requirement.
15512 Document GNU ld bootstrap failure.
15513 Remove freeware.sgi.com reference.
15514
15515 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15516
15517 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
15518 UNIX V4.0, V5.0 obsoletion, removal.
15519 Remove --with-gc=simple reference.
15520 Update VM requirements during bootstrap.
15521 Remove -oldas bootstrap description.
15522 Update binutils reference.
15523 Remove comparison failure note.
15524
15525 2010-03-31 Richard Guenther <rguenther@suse.de>
15526 Zdenek Dvorak <ook@ucw.cz>
15527 Sebastian Pop <sebastian.pop@amd.com>
15528
15529 PR middle-end/43464
15530 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
15531 with multiple arguments.
15532 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
15533
15534 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
15535
15536 * graphite-dependences.c (print_pddr): Call print_pdr with an
15537 extra argument.
15538 * graphite-poly.c (debug_pdr): Add an extra argument for the
15539 verbosity level.
15540 (print_pdr): Same.
15541 (print_pbb_domain): Same.
15542 (print_pbb): Same.
15543 (print_scop_context): Same.
15544 (print_scop): Same.
15545 (print_cloog): Same.
15546 (debug_pbb_domain): Same.
15547 (debug_pbb): Same.
15548 (print_pdrs): Same.
15549 (debug_pdrs): Same.
15550 (debug_scop_context): Same.
15551 (debug_scop): Same.
15552 (debug_cloog): Same.
15553 (print_scop_params): Same.
15554 (debug_scop_params): Same.
15555 (print_iteration_domain): Same.
15556 (print_iteration_domains): Same.
15557 (debug_iteration_domain): Same.
15558 (debug_iteration_domains): Same.
15559 (print_scattering_function): Same.
15560 (print_scattering_functions): Same.
15561 (debug_scattering_function): Same.
15562 (debug_scattering_functions): Same.
15563 * graphite-poly.h (debug_pdr): Update declaration.
15564 (print_pdr): Same.
15565 (print_pbb_domain): Same.
15566 (print_pbb): Same.
15567 (print_scop_context): Same.
15568 (print_scop): Same.
15569 (print_cloog): Same.
15570 (debug_pbb_domain): Same.
15571 (debug_pbb): Same.
15572 (print_pdrs): Same.
15573 (debug_pdrs): Same.
15574 (debug_scop_context): Same.
15575 (debug_scop): Same.
15576 (debug_cloog): Same.
15577 (print_scop_params): Same.
15578 (debug_scop_params): Same.
15579 (print_iteration_domain): Same.
15580 (print_iteration_domains): Same.
15581 (debug_iteration_domain): Same.
15582 (debug_iteration_domains): Same.
15583 (print_scattering_function): Same.
15584 (print_scattering_functions): Same.
15585 (debug_scattering_function): Same.
15586 (debug_scattering_functions): Same.
15587
15588 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
15589
15590 * graphite-poly.c (print_scattering_function_1): New.
15591 (print_scattering_function): Call it.
15592 (print_scop_params): Remove spaces at the end of lines.
15593 (print_cloog): New.
15594 (debug_cloog): New.
15595 * graphite-poly.h (print_cloog): Declared.
15596 (debug_cloog): Declared.
15597
15598 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
15599
15600 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
15601 in loop->header.
15602 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
15603 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
15604 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
15605 to switch between adding the IV bump in loop->latch or in loop->header.
15606
15607 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
15608
15609 * graphite-poly.c (print_scattering_function): Pretty print following
15610 the scoplib format.
15611 (print_pdr): Same.
15612 (print_pbb_domain): Same.
15613 (dump_gbb_cases): Same.
15614 (dump_gbb_conditions): Same.
15615 (print_pdrs): Same.
15616 (print_pbb): Same.
15617 (print_scop_params): Same.
15618 (print_scop_context): Same.
15619 (print_scop): Same.
15620 (print_pbb_body): New.
15621 (lst_indent_to): New.
15622 (print_lst): Start new lines with a #.
15623 * graphite-poly.h (pbb_bb): New.
15624 (pbb_index): Use pbb_bb.
15625 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
15626 disjuncts.
15627 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
15628
15629 2010-03-31 Jakub Jelinek <jakub@redhat.com>
15630
15631 * dwarf2out.c (size_of_die): For -gdwarf-4 use
15632 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
15633 and 0 instead of 1 for dw_val_class_flag.
15634 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
15635 dw_val_class_range_list, dw_val_class_loc_list,
15636 dw_val_class_lineptr and dw_val_class_macptr, use
15637 DW_FORM_flag_present for dw_val_class_flag and
15638 DW_FORM_exprloc for dw_val_class_loc.
15639 (output_die): For -gdwarf-4 print dw_val_class_loc
15640 size as uleb128 instead of 1 or 2 bytes and don't print
15641 anything for dw_val_class_flag.
15642
15643 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
15644 instead of cselib_lookup following by tweaking locs->setting_insn.
15645
15646 PR bootstrap/43596
15647 * cselib.c (cselib_process_insn): Clear cselib_current_insn
15648 even before returning from label, setjmp call or volatile asm
15649 handling.
15650
15651 2010-03-31 Richard Guenther <rguenther@suse.de>
15652
15653 PR middle-end/43600
15654 * cgraphunit.c (cgraph_output_in_order): Do not allocate
15655 temporary data on stack.
15656
15657 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15658
15659 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
15660 (PUSHSECTION_ASM_OP): Remove.
15661 (POPSECTION_ASM_OP): Remove.
15662 (PUSHSECTION_FORMAT): Remove.
15663 * config/sol2.h (PUSHSECTION_FORMAT): Define.
15664 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
15665 * config/sol2.c (solaris_output_init_fini): Use it.
15666
15667 2010-03-31 Jie Zhang <jie@codesourcery.com>
15668
15669 PR 43574
15670 * opt-functions.awk (var_type_struct): Use signed char type
15671 for simple variables.
15672
15673 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15674
15675 * config/sol2.c: Include output.h.
15676 (solaris_assemble_visibility): New function.
15677 * config/t-sol2 (sol2.o): Add output.h dependency.
15678 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
15679 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
15680 Redefine.
15681
15682 2010-03-31 Jakub Jelinek <jakub@redhat.com>
15683
15684 PR target/43580
15685 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
15686 V2SImode or XFmode on PRE_DEC.
15687
15688 PR debug/43557
15689 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
15690 BLKmode.
15691
15692 2010-03-31 Jie Zhang <jie@codesourcery.com>
15693
15694 PR 43562
15695 * reload.h (caller_save_initialized_p): Declare.
15696 * toplev.c (backend_init_target): Don't call
15697 init_caller_save but set caller_save_initialized_p to false.
15698 * caller-save.c (caller_save_initialized_p): Define.
15699 (init_caller_save): Check caller_save_initialized_p.
15700 * ira.c (ira): Call init_caller_save if flag_caller_saves.
15701
15702 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15703
15704 PR target/39048
15705 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
15706 and soft-fp/t-softfp to tmake_file.
15707 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
15708 (LIBGCC2_TF_CEXT): Define.
15709 (TF_SIZE): Define.
15710
15711 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
15712
15713 PR debug/42977
15714 * cselib.c (n_useless_values): Document handling of debug locs.
15715 (n_useless_debug_values, n_debug_values): New variables.
15716 (new_elt_loc_list): Don't add to debug values, keep count.
15717 (promote_debug_loc): New.
15718 (cselib_reset_table): Zero new variables.
15719 (entry_and_rtx_equal_p): Promote debug locs.
15720 (discard_useless_locs): Increment n_useless_debug_values for
15721 debug values.
15722 (remove_useless_values): Adjust n_useless_values and n_debug_values
15723 with n_useless_debug_values.
15724 (add_mem_for_addr): Promote debug locs.
15725 (cselib_lookup_mem): Likewise.
15726 (cselib_lookup_addr): Renamed to...
15727 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
15728 (cselib_log_lookup): ... this. Turn into...
15729 (cselib_lookup_addr): ... new wrapper.
15730 (cselib_lookup_from_insn): New.
15731 (cselib_invalidate_regno): Increment n_useless_debug_values for
15732 debug values.
15733 (cselib_invalidate_mem): Likewise.
15734 (cselib_process_insn): Take n_deleted and n_debug_values into
15735 account to guard remove_useless_value call.
15736 (cselib_finish): Zero n_useless_debug_values.
15737 * cselib.h (cselib_lookup_from_insn): Declare.
15738 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
15739 (sched_analyze_2): Likewise.
15740
15741 2010-03-30 Jakub Jelinek <jakub@redhat.com>
15742
15743 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
15744 functions.
15745 (adjust_mems): Replace narrowing SUBREG of expression containing
15746 just PLUS, MINUS, MULT and ASHIFT of registers and constants
15747 with operations in the narrower mode.
15748
15749 PR debug/43593
15750 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
15751 regs_invalidated_by_call instead all call_used_reg_set registers.
15752
15753 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
15754
15755 PR middle-end/43430
15756 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
15757 pointer comparisons with types_compatible_p.
15758 * tree-vect-stmts.c (vectorizable_call): Same.
15759 (vectorizable_condition): Same.
15760
15761 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15762
15763 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
15764 stack check if the mask would be zero.
15765
15766 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
15767 Jack Howarth <howarth@bromo.med.uc.edu>
15768
15769 * tree-profile.c (tree_init_ic_make_global_vars): Make static
15770 variables TLS.
15771
15772 2010-03-30 Joseph Myers <joseph@codesourcery.com>
15773
15774 PR other/25232
15775 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
15776 and __unordtf2.
15777 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
15778 Include ___unordxf2 and ___unordtf2.
15779 * config/i386/libgcc-glibc.ver: Do not define inheritance from
15780 GCC_4.4.0 here.
15781
15782 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
15783
15784 * config/lm32/t-lm32: New file.
15785 * config.gcc: Use the above file when targetting lm32.
15786
15787 2010-03-28 Duncan Sands <baldrick@free.fr>
15788
15789 * Makefile.in (PLUGIN_HEADERS): Add except.h.
15790
15791 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
15792
15793 PR middle-end/43431
15794 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
15795 Improve vectorization cost model diagnostic.
15796
15797 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
15798
15799 PR middle-end/43436
15800 * tree-vect-data-refs.c (vect_analyze_data_refs): When
15801 compute_data_dependences_for_loop returns false, early exit
15802 and output an extra diagnostic for the failed data reference
15803 analysis.
15804
15805 2010-03-29 Richard Guenther <rguenther@suse.de>
15806
15807 PR tree-optimization/43560
15808 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
15809 (can_sm_ref_p): Treat stores to readonly locations as trapping.
15810
15811 2010-03-29 Jie Zhang <jie@codesourcery.com>
15812
15813 PR 43564
15814 * toplev.c (process_options): Set optimization_default_node
15815 and optimization_current_node.
15816 * opts.c (decode_options): Don't set optimization_default_node
15817 and optimization_current_node.
15818
15819 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
15820
15821 * config/rtems.h: Abandon -qrtems_debug.
15822
15823 2010-03-28 Jan Hubicka <jh@suse.cz>
15824
15825 PR tree-optimization/43505
15826 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
15827 map should not be copied.
15828
15829 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15830
15831 PR middle-end/41674
15832 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
15833 cdtors, set DECL_PRESERVE_P.
15834 * ipa.c (cgraph_externally_visible_p): Return true if declaration
15835 should be preseved.
15836
15837 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
15838
15839 PR tree-optimization/43528
15840 * stor-layout.c (place_field): Check that constant fits into
15841 unsigned HWI when skipping calculation of MS bitfield layout.
15842
15843 2010-03-27 Jan Hubicka <jh@suse.cz>
15844
15845 PR middle-end/43391
15846 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
15847 notice_global_symbol work.
15848
15849 2010-03-27 Jakub Jelinek <jakub@redhat.com>
15850
15851 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
15852 instead of dwarf2out_decl.
15853 (struct var_loc_node): Remove section_label field.
15854 (dwarf2out_function_decl): New function.
15855 (dwarf2out_var_location): Don't set section_label field.
15856 (dwarf2out_begin_function): Don't empty decl_loc_table here.
15857
15858 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15859
15860 PR tree-optimization/43544
15861 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
15862 First argument for builtin vectorized function hook is now a
15863 tree to be able to distinguish between machine specific and
15864 standard builtins.
15865 * targhooks.c (default_builtin_vectorized_function): Ditto.
15866 * targhooks.h (default_builtin_vectorized_function): Ditto.
15867 * target.h (struct gcc_target): Ditto.
15868 * tree-vect-stmts.c (vectorizable_function): Ditto.
15869 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
15870 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
15871 Ditto.
15872
15873 2010-03-26 Joseph Myers <joseph@codesourcery.com>
15874
15875 PR c/43381
15876 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
15877 nested binding iff it is a FUNCTION_DECL.
15878 (store_parm_decls_newstyle): Pass nested=true to bind for
15879 FUNCTION_DECLs amongst parameters.
15880
15881 2010-03-26 Jakub Jelinek <jakub@redhat.com>
15882
15883 * var-tracking.c (vt_expand_loc_callback): Don't run
15884 cselib_expand_value_rtx_cb in dummy mode if
15885 cselib_dummy_expand_value_rtx_cb returned false.
15886
15887 * var-tracking.c (emit_note_insn_var_location): For one part
15888 notes with offset 0, don't add EXPR_LIST around the location.
15889 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
15890 add_location_or_const_value_attribute): Adjust for that change.
15891
15892 PR debug/43540
15893 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
15894 into first operand and location into second.
15895 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
15896 dw_cfi_oprnd_loc for DW_CFA_expression.
15897 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
15898 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
15899 assume first argument is regnum and second argument is location.
15900
15901 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
15902
15903 PR target/42113
15904 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
15905 of scratch register to DImode. Split to DImode comparison operator.
15906 Use SImode subreg of scratch register in the multiplication.
15907 (*cmp_sadd_sidi): Ditto.
15908 (*cmp_ssub_si): Ditto.
15909 (*cmp_ssub_sidi): Ditto.
15910
15911 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
15912
15913 PR target/43524
15914 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
15915 Remove invalid assert and wrong comment.
15916
15917 2010-03-26 Jakub Jelinek <jakub@redhat.com>
15918
15919 PR debug/43516
15920 * flags.h (final_insns_dump_p): New extern.
15921 * final.c (final_insns_dump_p): New variable.
15922 (rest_of_clean_state): Set it before -fdump-final-insns=
15923 dumping, clear afterwards.
15924 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
15925 MEM_ALIAS_SET on MEMs.
15926
15927 2010-03-26 David S. Miller <davem@davemloft.net>
15928
15929 * configure.ac: Fix sparc GOTDATA_OP bug check.
15930 * configure: Rebuild.
15931
15932 2010-03-26 Alan Modra <amodra@gmail.com>
15933
15934 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
15935
15936 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15937
15938 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
15939 TLS_SECTION_ASM_FLAG.
15940
15941 2010-03-25 Jakub Jelinek <jakub@redhat.com>
15942
15943 PR bootstrap/43511
15944 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
15945 Clear first_function_block_is_cold.
15946
15947 PR c/43385
15948 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
15949 argument if the argument is truth_value_p.
15950
15951 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15952
15953 * config/rs6000/constraints.md: Update copyright year for my changes.
15954
15955 PR target/43484
15956 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
15957 used in reg+reg addressing, swap registers.
15958
15959 2010-03-24 Jakub Jelinek <jakub@redhat.com>
15960
15961 PR debug/43293
15962 * target.h (struct gcc_target): Add code_end hook.
15963 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
15964 if not yet defined.
15965 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
15966 * toplev.c (compile_file): Call targetm.asm_out.code_end
15967 hook before unwind info/debug info output.
15968 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
15969 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
15970 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
15971 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
15972 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
15973 * config/i386/i386.c (ix86_file_end): Renamed to...
15974 (ix86_code_end): ... this. Make static. Don't call
15975 file_end_indicate_exec_stack. Emit unwind info using
15976 final_start_function/final_end_function.
15977 (darwin_x86_file_end): Remove.
15978 (TARGET_ASM_CODE_END): Define.
15979 * config/i386/i386.h (TARGET_ASM_FILE_END,
15980 NEED_INDICATE_EXEC_STACK): Don't define.
15981 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
15982 (TARGET_ASM_FILE_END): Define to darwin_file_end.
15983 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
15984 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
15985
15986 PR target/43498
15987 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
15988 at the beginning and final_end_function at the end.
15989 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
15990
15991 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15992
15993 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
15994 and Sun as TLS syntax.
15995 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
15996 * configure: Regenerate.
15997 * config.in: Regenerate.
15998 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
15999 (default_elf_asm_named_section): Use it.
16000 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
16001 (i386_output_dwarf_dtprel): Likewise.
16002 (output_addr_const_extra): Likewise.
16003 (output_pic_addr_const): Lowercase @GOTTPOFF.
16004 (output_addr_const_extra): Likewise.
16005 (output_pic_addr_const): Lowercase @GOTNTPOFF.
16006 (output_addr_const_extra): Likewise.
16007 (output_pic_addr_const): Lowercase @INDNTPOFF.
16008 (output_addr_const_extra): Likewise.
16009 (output_pic_addr_const): Lowercase @NTPOFF.
16010 (output_addr_const_extra): Likewise.
16011 (output_pic_addr_const): Lowercase @TPOFF.
16012 (output_addr_const_extra): Likewise.
16013 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
16014 (*tls_global_dynamic_64): Likewise.
16015 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
16016 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
16017
16018 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
16019 (ASM_OUTPUT_TLS_COMMON): Use it.
16020 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
16021
16022 PR target/38118
16023 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
16024 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
16025 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
16026 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
16027 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
16028 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
16029
16030 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16031
16032 * config/i386/i386.c (override_options): Don't accept
16033 -mtls-dialect=sun any longer.
16034 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
16035 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
16036 (*tls_local_dynamic_base_32_sun): Likewise.
16037 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
16038
16039 2010-03-24 Jakub Jelinek <jakub@redhat.com>
16040
16041 PR debug/43508
16042 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
16043 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
16044
16045 PR debug/43479
16046 * ira.c (adjust_cleared_regs): New function.
16047 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
16048
16049 PR debug/19192
16050 PR debug/43479
16051 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
16052 from gimple_block.
16053 * expr.c (expand_expr_real): Restore previous
16054 curr_insn_source_location and curr_insn_block after
16055 expand_expr_real_1 call.
16056 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
16057 instead of expand_expr_real_1.
16058
16059 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
16060
16061 PR rtl-optimization/43413
16062 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
16063 hard regs too.
16064
16065 2010-03-22 James E. Wilson <wilson@codesourcery.com>
16066
16067 PR target/43348
16068 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
16069 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
16070
16071 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
16072
16073 * config/i386/i386.c (ix86_target_string): Add -mfma.
16074 Fix a typo in comment.
16075
16076 2010-03-22 Mike Stump <mikestump@comcast.net>
16077
16078 PR target/23071
16079 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
16080 Don't overly align based upon packed packed fields.
16081
16082 2010-03-22 Jason Merrill <jason@redhat.com>
16083
16084 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
16085 Use () rather than [], and move before the element type.
16086
16087 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16088
16089 * doc/configfiles.texi (Configuration Files): Removed
16090 fixinc/Makefile*, intl/Makefile.*.
16091 * doc/makefile.texi: Fixed markup. Abstract from version
16092 control system used.
16093 (Makefile): Removed obsolete gcc/java/parse.y example.
16094 * doc/sourcebuild.texi: Likewise.
16095 (Top Level): Added config, gnattools, libdecnumber, libgcc,
16096 libgomp, libssp. Removed fastjar.
16097 (Miscellaneous Docs): Clarify location.
16098 Added COPYING3, COPYING3.LIB.
16099 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
16100
16101 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16102
16103 PR target/38085
16104 * config/i386/i386.c (x86_function_profiler)
16105 [!NO_PROFILE_COUNTERS]: Fix typo.
16106 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
16107 instead of callq.
16108
16109 2010-03-22 Janis Johnson <janis187@us.ibm.com>
16110 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16111
16112 * doc/sourcebuild.texi (Test Directives): Split into six
16113 subsections, with most of the current text in new subsections
16114 Directives, Selectors, and Final Actions.
16115 (Directives): Split list of test directives into multiple
16116 subsubsections.
16117 (Selectors): Describe use and syntax of selectors.
16118 (Effective-Target Keywords): Describe all existing keywords.
16119 (Add Options): Describe features for dg-add-options.
16120 (Require Support): Describe variants of dg-require-support.
16121 (Final Actions): Describe commands to use in dg-final.
16122
16123 2010-03-22 Michael Matz <matz@suse.de>
16124
16125 PR middle-end/43475
16126 * recog.c (validate_replace_rtx_group): Replace also in
16127 REG_EQUAL and REG_EQUIV notes.
16128
16129 2010-03-22 Richard Guenther <rguenther@suse.de>
16130
16131 PR tree-optimization/43390
16132 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
16133 sure vector extracts are type correct.
16134
16135 2010-03-22 Richard Guenther <rguenther@suse.de>
16136
16137 PR middle-end/40106
16138 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
16139 x * sqrt (x) even when optimizing for size if the target
16140 has native support for sqrt.
16141
16142 2010-03-22 Jakub Jelinek <jakub@redhat.com>
16143
16144 * varasm.c (make_decl_rtl_for_debug): Also clear
16145 flag_mudflap for the duration of make_decl_rtl call.
16146
16147 PR debug/43443
16148 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
16149 locs from preserved VALUEs.
16150
16151 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16152
16153 PR middle-end/42718
16154 * pa.md (movmemsi): Set align to one if zero.
16155 (movmemdi): Likewise.
16156
16157 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
16158
16159 PR target/42321
16160 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
16161 with their corresponding prologue pushes.
16162
16163 2010-03-20 Andrew Pinski <pinskia@gmail.com>
16164
16165 PR target/43156
16166 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
16167 at the begining or end.
16168 (spu_expand_epilogue): Likewise.
16169
16170 2010-03-20 Richard Guenther <rguenther@suse.de>
16171
16172 PR rtl-optimization/43438
16173 * combine.c (make_extraction): Properly zero-/sign-extend an
16174 extraction of the low part of a CONST_INT. Also handle
16175 CONST_DOUBLE.
16176
16177 2010-03-19 Mike Stump <mikestump@comcast.net>
16178
16179 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
16180 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
16181 (override_options): Use SUBTARGET32_DEFAULT_CPU.
16182
16183 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
16184
16185 PR c/43211
16186 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
16187 an error.
16188
16189 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
16190
16191 PR rtl-optimization/42258
16192 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
16193 use that may match DEF.
16194
16195 PR target/40697
16196 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
16197 the cost of loading the constant rather than assuming
16198 COSTS_N_INSNS (1).
16199 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
16200 outer code is AND, do the same tests as the andsi3 expander and
16201 return COSTS_N_INSNS (1) if and is cheap.
16202
16203 * optabs.c (avoid_expensive_constant): Fix formatting.
16204
16205 2010-03-19 Michael Matz <matz@suse.de>
16206
16207 PR c++/43116
16208 * attribs.c (decl_attributes): When rebuilding a function pointer
16209 type use the same qualifiers as the original pointer type.
16210
16211 2010-03-19 Martin Jambor <mjambor@suse.cz>
16212
16213 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
16214 and is_gimple_ip_invariant_address.
16215
16216 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16217
16218 Revert
16219 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16220
16221 * config/arm/arm.c (arm_override_options): Turn off
16222 flag_dwarf2_cfi_asm for AAPCS variants.
16223
16224 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16225
16226 PR target/43399
16227 * config/arm/arm.c (emit_multi_reg_push): Update comments.
16228 Use PRE_MODIFY instead of PRE_DEC.
16229 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
16230 (vfp_emit_fstmd): Likewise.
16231
16232 2010-03-19 Michael Matz <matz@suse.de>
16233
16234 PR target/43305
16235 * builtins.c (expand_builtin_interclass_mathfn,
16236 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
16237 if that fails.
16238
16239 2010-03-19 Richard Guenther <rguenther@suse.de>
16240
16241 PR tree-optimization/43415
16242 * tree-ssa-pre.c (phi_translate): Split out worker to ...
16243 (phi_translate_1): ... this.
16244 (phi_translate): Move all caching here. Cache all NARY
16245 and REFERENCE translations.
16246
16247 2010-03-19 David S. Miller <davem@davemloft.net>
16248
16249 With help from Eric Botcazou.
16250 * config/sparc/sparc.c: Include dwarf2out.h.
16251 (emit_pic_helper): Delete.
16252 (pic_helper_symbol_name): Delete.
16253 (pic_helper_emitted_p): Delete.
16254 (pic_helper_needed): New.
16255 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
16256 (get_pc_thunk_name): New.
16257 (load_pic_register): Remove 'delay_pic_helper' arg. Use
16258 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
16259 Set pic_helper_needed to true. Don't call emit_pic_helper.
16260 (sparc_expand_prologue): Update load_pic_register call.
16261 (sparc_output_mi_thunk): Likewise.
16262 (sparc_file_end): Emit a hidden comdat symbol for the PIC
16263 thunk if possible. Output CFI information as needed.
16264
16265 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16266 Jack Howarth <howarth@bromo.med.uc.edu>
16267
16268 PR target/36399
16269 * config/i386/i386.h: Fix ABI on darwin x86-32.
16270
16271 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
16272
16273 * tree.h: Declare make_decl_rtl_for_debug.
16274 * varasm.c (make_decl_rtl_for_debug): New.
16275 * dwarf2out.c (rtl_for_decl_location): Call it.
16276 * cfgexpand.c (expand_debug_expr): Call it.
16277
16278 2010-03-18 Jakub Jelinek <jakub@redhat.com>
16279
16280 PR bootstrap/43399
16281 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
16282 mem_mode.
16283
16284 PR bootstrap/43403
16285 * var-tracking.c (vt_init_cfa_base): Do nothing if
16286 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
16287
16288 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
16289
16290 PR debug/42873
16291 * var-tracking.c (canonicalize_vars_star): New.
16292 (dataflow_post_merge_adjust): Use it.
16293
16294 2010-03-18 Jakub Jelinek <jakub@redhat.com>
16295
16296 PR debug/43058
16297 * var-tracking.c (non_suitable_const): New function.
16298 (add_uses): For DEBUG_INSNs with constants, don't record any
16299 value, instead just the constant value itself.
16300 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
16301 is not VAR_LOC_UNKNOWN_P, set var to the constant.
16302 (emit_notes_in_bb): Likewise.
16303 (emit_note_insn_var_location): For onepart variables if
16304 cur_loc is a VOIDmode constant, use DECL_MODE.
16305
16306 2010-03-18 Martin Jambor <mjambor@suse.cz>
16307
16308 PR middle-end/42450
16309 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
16310 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
16311 all non-clones. Moved call redirection...
16312 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
16313 (cgraph_materialize_all_clones): Dispose of all
16314 combined_args_to_skip bitmaps.
16315 (verify_cgraph_node): Do not check for edges pointing to wrong
16316 nodes in inline clones.
16317 * tree-inline.c (copy_bb): Call
16318 cgraph_redirect_edge_call_stmt_to_callee.
16319 * ipa.c (cgraph_remove_unreachable_nodes): Call
16320 cgraph_node_remove_callees even when there are used clones.
16321
16322 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
16323
16324 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
16325
16326 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
16327
16328 PR target/43383
16329 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
16330 for 32bit.
16331
16332 2010-03-18 Michael Matz <matz@suse.de>
16333
16334 PR middle-end/43419
16335 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
16336 into sqrt(x) if we need to preserve signed zeros.
16337
16338 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
16339 Eric Botcazou <ebotcazou@adacore.com>
16340
16341 PR rtl-optimization/43360
16342 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
16343 note if we don't know its invariant status.
16344
16345 2010-03-18 Michael Matz <matz@suse.de>
16346
16347 PR tree-optimization/43402
16348 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
16349 PHI chains of ssa names registered for update.
16350
16351 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
16352
16353 PR target/42427
16354 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
16355 non-offsettable and pre_modify update addressing.
16356 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
16357 and "2" alternatives "#".
16358 (*movdd_softfloat32): Make all alternatives "#";
16359 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
16360 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
16361 (*movdf_softfloat32): Make all alternatives "#";
16362 (movdi): Use the new DIFD mode iterator to create a common splitter
16363 for movdi, movdf and movdd patterns.
16364
16365 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
16366
16367 * common.opt (dumpdir): Remove redundant tab.
16368
16369 2010-03-17 Martin Jambor <mjambor@suse.cz>
16370
16371 PR tree-optimization/43347
16372 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
16373 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
16374
16375 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
16376
16377 PR rtl-optimization/42216
16378 * regrename.c (create_new_chain): New function, broken out from...
16379 (scan_rtx_reg): ... here. Call it. Handle the case where we are
16380 appending a use to an empty chain.
16381 (build_def_use): Remove previous changes that convert OP_INOUT to
16382 OP_OUT operands; instead detect the case where an OP_INOUT operand
16383 uses a previously untracked register and create an empty chain for it.
16384
16385 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16386
16387 * doc/extend.texi (Function Attributes): Rewrite unfinished
16388 sentence in ms_abi documentation.
16389
16390 2010-03-17 Alan Modra <amodra@gmail.com>
16391
16392 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
16393 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
16394 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
16395 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
16396
16397 2010-03-16 Richard Henderson <rth@redhat.com>
16398
16399 PR middle-end/43365
16400 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
16401 (lower_try_finally): Save and restore eh_seq around the expansion
16402 of the try-finally.
16403
16404 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
16405
16406 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
16407 statements before splitting block.
16408
16409 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16410
16411 * doc/sourcebuild.texi (Testsuites): Fix markup.
16412 Use pathnames relative to gcc/testsuite.
16413 (Test Directives): Move description of how timeout is determined.
16414 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
16415 (C Tests): Correct gcc.misc-tests directory.
16416 Framework tests now live in gcc.test-framework.
16417
16418 2010-03-16 Richard Guenther <rguenther@suse.de>
16419
16420 PR middle-end/43379
16421 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
16422 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
16423
16424 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
16425 Alexandre Oliva <aoliva@redhat.com>
16426
16427 PR tree-optimization/42917
16428 * lambda-code.c (remove_iv): Skip debug statements.
16429 (lambda_loopnest_to_gcc_loopnest): Likewise.
16430 (not_interesting_stmt): Debug statements are not interesting.
16431
16432 2010-03-16 Jakub Jelinek <jakub@redhat.com>
16433
16434 PR debug/43051
16435 PR debug/43092
16436 * cselib.c (cselib_preserve_constants,
16437 cfa_base_preserved_val): New static variables.
16438 (preserve_only_constants): New function.
16439 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
16440 clear its REG_VALUES. If cselib_preserve_constants, don't
16441 empty the whole hash table, but preserve there VALUEs with constants,
16442 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
16443 (cselib_preserve_cfa_base_value): New function.
16444 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
16445 (cselib_init): Change argument to int bitfield. Set
16446 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
16447 is in it.
16448 (cselib_finish): Clear cselib_preserve_constants and
16449 cfa_base_preserved_val.
16450 * cselib.h (enum cselib_record_what): New enum.
16451 (cselib_init): Change argument to int.
16452 (cselib_preserve_cfa_base_value): New prototype.
16453 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
16454 * dse.c (dse_step1): Likewise.
16455 * cfgcleanup.c (thread_jump): Likewise.
16456 * sched-deps.c (sched_analyze): Likewise.
16457 * gcse.c (local_cprop_pass): Likewise.
16458 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
16459 If FN is non-NULL, call the callback always and whenever it returns
16460 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
16461 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
16462 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
16463 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
16464 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
16465 * var-tracking.c: Include recog.h.
16466 (bb_stack_adjust_offset): Remove.
16467 (vt_stack_adjustments): Don't call it, instead just gather the
16468 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
16469 (adjust_stack_reference): Remove.
16470 (compute_cfa_pointer): New function.
16471 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
16472 (struct adjust_mem_data): New type.
16473 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
16474 functions.
16475 (get_address_mode): New function.
16476 (replace_expr_with_values): Use it.
16477 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
16478 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
16479 (adjust_sets): Remove.
16480 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
16481 Use get_address_mode.
16482 (get_adjusted_src): Remove.
16483 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
16484 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
16485 (add_with_sets): Don't call adjust_sets.
16486 (fp_setter, vt_init_cfa_base): New functions.
16487 (vt_initialize): Change return type to bool. Move most of pool etc.
16488 initialization to the beginning of the function from end. Pass
16489 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
16490 If !frame_pointer_needed, call vt_stack_adjustment before mos
16491 vector is filled, call vt_init_cfa_base if argp/framep has been
16492 eliminated to sp. If frame_pointer_needed and argp/framep has
16493 been eliminated to hard frame pointer, set
16494 hard_frame_pointer_adjustment and call vt_init_cfa_base after
16495 encountering fp setter in the prologue. For MO_ADJUST, call
16496 log_op_type before pusing the op into mos vector, not afterwards.
16497 Call adjust_insn before cselib_process_insn/add_with_sets,
16498 call cancel_changes (0) afterwards.
16499 (variable_tracking_main_1): Adjust for vt_initialize calling
16500 vt_stack_adjustments and returning whether it succeeded or not.
16501
16502 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
16503
16504 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
16505 debug statements.
16506
16507 2010-03-15 Jakub Jelinek <jakub@redhat.com>
16508
16509 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
16510 has been set.
16511 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
16512 drap_reg has not been set.
16513
16514 2010-03-15 Michael Matz <matz@suse.de>
16515
16516 PR middle-end/43300
16517 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
16518 use it to expand block copies.
16519 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
16520 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
16521 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
16522
16523 2010-03-15 Richard Guenther <rguenther@suse.de>
16524
16525 PR tree-optimization/43367
16526 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
16527 elimination check.
16528
16529 2010-03-15 Richard Guenther <rguenther@suse.de>
16530
16531 PR tree-optimization/43317
16532 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
16533
16534 2010-03-15 Martin Jambor <mjambor@suse.cz>
16535
16536 PR tree-optimization/43141
16537 * tree-sra.c (create_abstract_origin): New function.
16538 (modify_function): Call create_abstract_origin.
16539
16540 2010-03-15 Chris Demetriou <cgd@google.com>
16541
16542 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
16543 wasn't copied.
16544
16545 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16546
16547 PR middle-end/43354
16548 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
16549 call insert_out_of_ssa_copy for default definitions.
16550
16551 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16552
16553 * graphite-clast-to-gimple.c (my_long_long): Defined.
16554 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
16555 * graphite-sese-to-poly.c (my_long_long): Defined.
16556 (scop_ivs_can_be_represented): Use it.
16557
16558 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16559
16560 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
16561 graphite-max-bbs-per-function, and loop-block-tile-size.
16562 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
16563 with "maximum".
16564 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
16565
16566 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16567
16568 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
16569 forward declaration.
16570 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
16571 (add_upper_bounds_from_estimated_nit): New.
16572 (build_loop_iteration_domains): Use it.
16573
16574 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16575
16576 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
16577
16578 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16579
16580 PR middle-end/43306
16581 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
16582 should be an INTEGER_CST. Also handle CASE_CONVERT.
16583
16584 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16585
16586 * graphite.c (graphite_initialize): To bound the number of bbs per
16587 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
16588 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
16589 * doc/invoke.texi: Document it.
16590
16591 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16592
16593 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
16594 * graphite-sese-to-poly.h (build_poly_scop): Same.
16595
16596 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16597
16598 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
16599 the number of parameters in the scop. Use as an upper bound
16600 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
16601 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
16602 * doc/invoke.texi: Document it.
16603
16604 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
16605
16606 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
16607 * doc/c-tree.texi: Remove.
16608 * doc/generic.texi: Merge c-tree.texi here.
16609 * doc/gccint.texi (Trees): Remove menu entry.
16610 (c-tree.texi): Remove @include.
16611 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
16612 * doc/languages.texi (Reading RTL): Ditto.
16613
16614 2010-03-12 Steve Ellcey <sje@cup.hp.com>
16615
16616 PR target/42869
16617 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
16618
16619 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
16620
16621 PR middle-end/42431
16622 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
16623 code added to work around reload clobbering CONST insns.
16624
16625 2010-03-12 Jakub Jelinek <jakub@redhat.com>
16626
16627 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
16628 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
16629 (cselib_preserve_only_values): Remove retain argument, don't
16630 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
16631 * cselib.h (cselib_preserve_only_values): Remove retain argument.
16632 * var-tracking.c (micro_operation): Move insn field before union.
16633 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
16634 (struct variable_tracking_info_def): Remove n_mos field, change
16635 mos into a vector of micro_operations.
16636 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
16637 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
16638 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
16639 changing into a vector.
16640 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
16641 come before all other uops generated by add_stores.
16642 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
16643 argument removal.
16644 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
16645 a vector. Run just one pass over the bbs instead of separate counting
16646 and computation phase.
16647 (vt_finalize): Free VTI (bb)->mos vector instead of array.
16648
16649 PR debug/43329
16650 * tree-inline.c (remap_decls): Put old_var rather than origin_var
16651 into *nonlocalized_list vector.
16652 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
16653 even if origin is non-NULL.
16654 (gen_variable_die): Likewise.
16655 (process_scope_var): Don't change origin.
16656 (gen_decl_die): Likewise.
16657 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
16658 before adding new edges instead of after it, fix moving over
16659 debug stmts.
16660
16661 2010-03-11 David S. Miller <davem@davemloft.net>
16662
16663 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
16664 of four.
16665 * configure: Rebuild.
16666
16667 2010-03-11 Martin Jambor <mjambor@suse.cz>
16668
16669 PR tree-optimization/43257
16670 * tree.c (assign_assembler_name_if_neeeded): New function.
16671 (free_lang_data_in_cgraph): Assembler name assignment moved to the
16672 above new function.
16673 * tree.h (assign_assembler_name_if_neeeded): Declare.
16674 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
16675 the function if needed.
16676
16677 2010-03-11 Chris Demetriou <cgd@google.com>
16678
16679 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
16680 include/stdint-gcc.h, and include/stdint.h world-readable.
16681
16682 2010-03-11 Richard Guenther <rguenther@suse.de>
16683
16684 PR tree-optimization/43255
16685 * tree-vrp.c (process_assert_insertions_for): Do not insert
16686 asserts for trivial conditions.
16687
16688 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16689
16690 PR tree-optimization/43280
16691 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
16692 generation. Move calculation of size out of the if branch.
16693 (find_bswap): Modify compare number generation.
16694
16695 2010-03-11 Richard Guenther <rguenther@suse.de>
16696
16697 PR lto/43200
16698 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
16699 (input_gimple_stmt): Fixup handled component types during
16700 operand read. Also fix up decls in ADDR_EXPRs.
16701
16702 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
16703
16704 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
16705 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
16706
16707 2010-03-10 Jan Hubicka <jh@suse.cz>
16708
16709 PR c/43288
16710 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
16711 * varasm.c (get_variable_section): Don't do that here...
16712 (make_decl_rtl): ... and here.
16713 (do_assemble_alias): Produce decl RTL.
16714 (assemble_alias): Likewise.
16715
16716 2010-03-10 Jakub Jelinek <jakub@redhat.com>
16717
16718 PR debug/43290
16719 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
16720 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
16721 of fde->vdrap_reg.
16722 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
16723 (based_loc_descr): Only express drap or vdrap regno based expressions
16724 using DW_OP_fbreg when not optimizing.
16725 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
16726 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
16727 REG_CFA_SET_VDRAP note.
16728
16729 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
16730
16731 PR tree-optimization/43236
16732 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
16733 error in calculation of base address in reverse iteration case.
16734 (generate_builtin): Take number of latch executions if the statement
16735 is in the latch.
16736
16737 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
16738
16739 PR middle-end/42859
16740 * tree-eh.c: Include pointer-set.h.
16741 (lower_eh_dispatch): Filter out duplicate case labels and
16742 remove the unneeded edge when the label is unused. Return
16743 true when some edges are removed.
16744 (execute_lower_eh_dispatch): When any lowering resulted in
16745 removing an edge, also delete unreachable blocks.
16746
16747 2010-03-10 Jakub Jelinek <jakub@redhat.com>
16748
16749 PR bootstrap/43287
16750 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16751 UNSPEC_MACHOPIC_OFFSET.
16752
16753 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
16754
16755 PR target/43294
16756 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
16757 (m68k_delegitimize_address): New function.
16758
16759 2010-03-09 Jakub Jelinek <jakub@redhat.com>
16760
16761 PR debug/43299
16762 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
16763
16764 PR debug/43299
16765 * var-tracking.c (adjust_sets): New function.
16766 (count_with_sets, add_with_sets): Use it.
16767 (get_adjusted_src): New inline function.
16768 (add_stores): Use it.
16769
16770 PR debug/43304
16771 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
16772 call cselib_dummy_expand_value_rtx_cb instead of
16773 cselib_expand_value_rtx_cb.
16774
16775 PR debug/43293
16776 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
16777 * config/i386/i386.c: Include debug.h and dwarf2out.h.
16778 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
16779 and .cfi_endproc around the pic thunks.
16780 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
16781 all queued unwind info register saves are saved before the call.
16782 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
16783 considered as sp-=4 for unwind info and the pop as sp+=4 which
16784 also clobbers dest, but doesn't actually restore it.
16785
16786 PR debug/43290
16787 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
16788 RTX_FRAME_RELATED_P.
16789
16790 2010-03-09 Jie Zhang <jie@codesourcery.com>
16791
16792 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
16793 whitespaces in output template.
16794
16795 2010-03-09 Jie Zhang <jie@codesourcery.com>
16796
16797 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
16798 out array boundary.
16799
16800 2010-03-08 Jakub Jelinek <jakub@redhat.com>
16801
16802 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
16803 builtins.exp in a separate job.
16804
16805 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16806
16807 * graphite-sese-to-poly.c (add_param_constraints): Use
16808 lower_bound_in_type and upper_bound_in_type.
16809
16810 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16811
16812 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
16813 instead of unsigned_type_node.
16814
16815 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16816 Reza Yazdani <reza.yazdani@amd.com>
16817
16818 PR middle-end/43065
16819 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
16820 on pointer type parameters.
16821
16822 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
16823
16824 PR middle-end/42644
16825 PR middle-end/42130
16826 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
16827 handle conversions from pointer to integers.
16828 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
16829 induction variable, to be able to work with code generated by CLooG.
16830 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
16831 (build_poly_scop): Bail out if we cannot codegen a loop.
16832
16833 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
16834
16835 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
16836 code generation with gloog_error.
16837
16838 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16839
16840 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
16841 Call fold_convert on all the returned values.
16842 (expand_scalar_variables_expr): Pass to
16843 expand_scalar_variables_ssa_name the type of the resulting expression.
16844
16845 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16846
16847 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
16848 ppl_min_for_le_pointset.
16849 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
16850 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
16851
16852 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16853
16854 * graphite-dependences.c (map_into_dep_poly): Removed.
16855 (dependence_polyhedron_1): Use combine_context_id_scat.
16856
16857 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16858
16859 * graphite-poly.h (struct poly_scattering): Add layout documentation.
16860 (struct poly_bb): Same.
16861 (combine_context_id_scat): New.
16862
16863 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16864
16865 PR middle-end/42326
16866 * sese.c (name_defined_in_loop_p): Return false for default
16867 definitions.
16868
16869 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16870
16871 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
16872 and clean up the logic.
16873
16874 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16875
16876 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
16877 early return.
16878
16879 2010-03-08 Jakub Jelinek <jakub@redhat.com>
16880
16881 * var-tracking.c (remove_cselib_value_chains): Define only for
16882 ENABLE_CHECKING.
16883 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
16884 delete_slot_part, emit_notes_for_differences_1): Don't call
16885 remove_cselib_value_chains here.
16886 (set_slot_part, emit_notes_for_differences_2): Don't call
16887 add_cselib_value_chains here.
16888 (preserved_values): New vector.
16889 (preserve_value): New function.
16890 (add_uses, add_stores, vt_add_function_parameters): Use it
16891 instead of cselib_preserve_value.
16892 (changed_values_stack): New vector.
16893 (check_changed_vars_0): New function.
16894 (check_changed_vars_1, check_changed_vars_2): Use it.
16895 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
16896 changed_values_stack VALUEs.
16897 (vt_emit_notes): For all preserved_values call
16898 add_cselib_value_chains. If ENABLE_CHECKING call
16899 remove_cselib_value_chains before verifying value_chains is empty.
16900 Initialize and free changed_values_stack.
16901 (vt_initialize): Initialize preserved_values.
16902 (vt_finalize): Free preserved_values.
16903
16904 2010-03-08 Richard Guenther <rguenther@suse.de>
16905
16906 PR tree-optimization/43269
16907 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
16908 region detection.
16909
16910 2010-03-08 Martin Jambor <mjambor@suse.cz>
16911
16912 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
16913 (ipa_is_param_called): Removed.
16914 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
16915 (ipa_print_node_params): Do not print the called flag.
16916 (ipa_write_node_info): Do not stream the called flag.
16917 (ipa_read_node_info): Likewise.
16918
16919 2010-03-07 Jakub Jelinek <jakub@redhat.com>
16920
16921 PR debug/43176
16922 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
16923 * cselib.c (struct expand_value_data): Add dummy field.
16924 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
16925 dummy to false.
16926 (cselib_dummy_expand_value_rtx_cb): New function.
16927 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
16928 any rtl.
16929 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
16930 * var-tracking.c: Include pointer-set.h.
16931 (variable): Change n_var_parts to char from int. Add
16932 cur_loc_changed and in_changed_variables fields.
16933 (variable_canonicalize): Remove.
16934 (shared_var_p): New inline function.
16935 (unshare_variable): Maintain cur_loc_changed and
16936 in_changed_variables fields. If var was in changed_variables,
16937 replace it there with new_var. Just copy cur_loc instead of
16938 resetting it to something else.
16939 (variable_union): Don't recompute cur_loc. Use shared_var_p.
16940 (dataflow_set_union): Don't call variable_canonicalize.
16941 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
16942 of their DEBUG_EXPR_TREE_DECLs.
16943 (canonicalize_loc_order_check): Verify that cur_loc is NULL
16944 and in_changed_variables and cur_loc_changed is false.
16945 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
16946 and cur_loc_changed. Don't update cur_loc here.
16947 (variable_merge_over_src): Don't call variable_canonicalize.
16948 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
16949 removing loc that is equal to cur_loc, clear cur_loc,
16950 set cur_loc_changed and ensure variable_was_changed is called.
16951 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
16952 compare pointers in cur_loc check, if it is equal to loc,
16953 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
16954 (variable_different_p): Remove compare_current_location argument,
16955 don't compare cur_loc.
16956 (dataflow_set_different_1): Adjust variable_different_p caller.
16957 (variable_was_changed): If dv had some var in changed_variables
16958 already, reset in_changed_variables flag for it and propagate
16959 cur_loc_changed over to the new variable. On empty var
16960 always set cur_loc_changed. Set in_changed_variables on whatever
16961 var is added to changed_variables.
16962 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
16963 Use shared_var_p. When removing loc that is equal to cur_loc,
16964 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
16965 end, don't set it to something else, just call variable_was_changed.
16966 (delete_slot_part): Use shared_var_p. When cur_loc equals to
16967 loc being removed, clear cur_loc and set cur_loc_changed.
16968 Set cur_loc_changed if all locations have been removed.
16969 (struct expand_loc_callback_data): New type.
16970 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
16971 allocated. Always create SUBREGs if simplify_subreg failed.
16972 Prefer to use cur_loc, when that fails and still in
16973 changed_variables (and seen first time) recompute it. Set
16974 cur_loc_changed of variables which had to change cur_loc and
16975 compute elcd->cur_loc_changed if any of the subexpressions used
16976 had to change cur_loc.
16977 (vt_expand_loc): Adjust to pass arguments in
16978 expand_loc_callback_data structure.
16979 (vt_expand_loc_dummy): New function.
16980 (emitted_notes): New variable.
16981 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
16982 that weren't used for any other decl in current
16983 emit_notes_for_changes call call vt_expand_loc_dummy to update
16984 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
16985 first loc_chain location if NULL before. Always use just
16986 cur_loc instead of first loc_chain location. When cur_loc_changed
16987 is false, when not --enable-checking=rtl just don't emit any note.
16988 When rtl checking, compute the note and assert it is the same
16989 as previous note. Clear cur_loc_changed and in_changed_variables
16990 at the end before removing from changed_variables.
16991 (check_changed_vars_3): New function.
16992 (emit_notes_for_changes): Traverse changed_vars to call
16993 check_changed_vars_3 on each changed var.
16994 (emit_notes_for_differences_1): Clear cur_loc_changed and
16995 in_changed_variables. Recompute cur_loc of new_var.
16996 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
16997 (vt_emit_notes): Initialize and destroy emitted_notes.
16998
16999 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
17000
17001 PR rtl-optimization/42220
17002 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
17003 Use verify_reg_tracked to determine if we should use OP_OUT rather
17004 than OP_INOUT.
17005 (build_def_use): If we see an in-out operand for a register that we
17006 know nothing about, treat is an output if possible, fail the block if
17007 not.
17008
17009 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
17010
17011 PR debug/42897
17012 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
17013 permanently.
17014
17015 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
17016
17017 PR debug/42897
17018 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
17019 uses of relevant DEFs that are dead outside the loop too.
17020
17021 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
17022
17023 * var-tracking.c (dataflow_set_merge): Swap src and src2.
17024 Reverted:
17025 2010-01-13 Jakub Jelinek <jakub@redhat.com>
17026 PR debug/41371
17027 * var-tracking.c (values_to_unmark): New variable.
17028 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
17029 values_to_unmark vector. Moved body to...
17030 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
17031 instead queue it into values_to_unmark vector.
17032 (vt_find_locations): Free values_to_unmark vector.
17033
17034 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
17035
17036 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
17037 (site.exp): Export them when plugins are enabled.
17038
17039 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
17040
17041 PR middle-end/42326
17042 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
17043 that contain scevs.
17044 (chrec_fold_multiply): Same.
17045
17046 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
17047
17048 PR c/43248
17049 * c-decl.c (build_compound_literal): Return early if init is
17050 an error_mark_node.
17051
17052 2010-03-04 Martin Jambor <mjambor@suse.cz>
17053
17054 PR tree-optimization/43164
17055 PR tree-optimization/43191
17056 * tree-sra.c (type_consists_of_records_p): Reject records with
17057 zero-size bit-fields at the end.
17058
17059 2010-03-04 Mike Stump <mikestump@comcast.net>
17060
17061 * Makefile.in (TAGS): Remove *.y.
17062
17063 2010-03-04 Richard Guenther <rguenther@suse.de>
17064
17065 PR tree-optimization/40761
17066 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
17067 in reverse order.
17068 (my_rev_post_order_compute): New function.
17069 (init_pre): Call it.
17070
17071 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
17072
17073 PR middle-end/43209
17074 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
17075 decrease the cost of an IV candidate when the cost is infinite.
17076
17077 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17078
17079 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
17080 Use '3DNow!' for the extension of that name, ensure normal space
17081 after the string.
17082 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
17083
17084 2010-03-03 Jeff Law <law@redhat.com>
17085
17086 * PR middle-end/32693
17087 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
17088 than gen_rtx_SUBREG.
17089 (extract_bit_field_1): Likewise.
17090
17091 2010-03-03 Janis Johnson <janis187@us.ibm.com>
17092
17093 * doc/sourcebuild.texi (Test directives): Document that arguments
17094 include-opts and exclude-opts are now optional for dg-skip-if,
17095 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
17096
17097 2010-03-03 Jason Merrill <jason@redhat.com>
17098
17099 PR c++/12909
17100 * cgraph.h (varpool_node): Add extra_name field.
17101 * varpool.c (varpool_extra_name_alias): New.
17102 (varpool_assemble_decl): Emit extra name aliases.
17103 (varpool_mark_needed_node): Look past an extra name alias.
17104 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
17105 * lto-streamer-in.c (lto_input_tree): Read it.
17106 * lto-streamer-out.c (output_unreferenced_globals): Write it.
17107
17108 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
17109
17110 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
17111 (sparc*-*-solaris2*): ...this.
17112
17113 2010-03-03 Jakub Jelinek <jakub@redhat.com>
17114
17115 PR debug/43229
17116 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
17117 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
17118 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
17119 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
17120
17121 PR debug/43237
17122 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
17123 fallthrough to default handling, just with want_address 0 instead of 2.
17124 For single element lists, add_AT_loc directly, otherwise create an
17125 artificial variable DIE and stick location list to it.
17126
17127 PR debug/43177
17128 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
17129 (VAL_EXPR_HAS_REVERSE): Define.
17130 (reverse_op): New function.
17131 (add_stores): For reversible operations add an extra MO_VAL_USE.
17132
17133 2010-03-02 Jason Merrill <jason@redhat.com>
17134
17135 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
17136
17137 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
17138
17139 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
17140 (sparc64-*-linux*): Likewise.
17141 (sparc64-*-solaris2*): Include assembler files before linker ones.
17142 (sparc-*-solaris2*): Simplify and reorder to match previous case.
17143 * config/sparc/gas.h: Delete.
17144 * config/sparc/sol2-64.h: Add copyright notice.
17145 * config/sparc/sol2-gas-bi.h: Likewise.
17146 * config/sparc/sol2-gld.h: Likewise.
17147 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
17148 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
17149 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
17150 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
17151 (sparc_elf_asm_named_section): Rename into...
17152 (sparc_solaris_elf_asm_named_section): ...this. Always define.
17153
17154 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
17155
17156 * config/alpha/alpha.c (override_options): Fix -mtune error message.
17157
17158 2010-03-02 Jeff Law <law@redhat.com>
17159
17160 PR middle-end/42431
17161 * reload1.c (rtx_p, substitute_stack): Declare.
17162 (substitute): Record addresses of changed rtxs.
17163 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
17164 Restore the original rtx when complete.
17165 (reload): Free subsitute_stack when complete.
17166
17167 2010-03-02 Janis Johnson <janis187@us.ibm.com>
17168
17169 * doc/gccint.texi (menu): Add Testsuites as a chapter.
17170 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
17171 new chapter.
17172 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
17173 LTO Testing, gcov Testing, profopt Testing, compat Testing,
17174 Torture Tests): Change from subsection to section.
17175
17176 2010-03-02 Jakub Jelinek <jakub@redhat.com>
17177 Steven Bosscher <steven@gcc.gnu.org>
17178
17179 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
17180 instead of bb.
17181
17182 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
17183
17184 PR middle-end/42640
17185 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
17186 the assignment from the new induction variable to the assignment
17187 of the value from the original loop PHI function.
17188
17189 2010-03-01 Janis Johnson <janis187@us.ibm.com>
17190 Daniel Jacobowitz <dan@codesourcery.com>
17191
17192 * doc/sourcebuild.texi (Test directives): Clarify options to
17193 dg-skip-if.
17194
17195 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17196
17197 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
17198 Disable cfi directives unless GCC and gas agree on using read-only
17199 .eh_frame sections for 64-bit.
17200 * configure: Regenerate.
17201
17202 2010-03-01 Richard Guenther <rguenther@suse.de>
17203
17204 PR tree-optimization/43220
17205 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
17206 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
17207
17208 2010-03-01 Richard Guenther <rguenther@suse.de>
17209 Martin Jambor <mjambor@suse.cz>
17210
17211 PR middle-end/41250
17212 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
17213 gimplified parameters.
17214
17215 2010-03-01 Christian Bruel <christian.bruel@st.com>
17216
17217 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
17218
17219 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
17220
17221 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
17222
17223 2010-03-01 Richard Guenther <rguenther@suse.de>
17224
17225 PR middle-end/43213
17226 * expr.c (expand_assignment): Use the alias-oracle to tell
17227 if the rhs aliases the result decl.
17228
17229 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17230
17231 PR pch/14940
17232 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
17233 to sol_gt_pch_get_address.
17234 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
17235 64-bit, SPARC and x86.
17236 (sol_gt_pch_get_address): New function.
17237
17238 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
17239
17240 * toplev.h (inform_n, error_n): Declare.
17241 * diagnostic.c (inform_n, error_n): New function.
17242
17243 2010-03-01 Jakub Jelinek <jakub@redhat.com>
17244
17245 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
17246 has no rtl yet when processing local_decls, queue it and recheck
17247 if deferred stack allocation hasn't assigned it rtl.
17248
17249 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
17250
17251 * config/sh/sh.c (unspec_bbr_uid): New.
17252 (gen_block_redirect): Use it instead of INSN_UID.
17253 (gen_far_branch): Likewise.
17254
17255 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
17256
17257 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
17258 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
17259
17260 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17261
17262 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
17263 (Warning Options): -Wno-conversion-null is valid for
17264 Objective-C++ as well.
17265 * doc/tm.texi (Named Address Spaces): Likewise.
17266 * doc/plugins.texi (Plugins): Replace TABs with spaces.
17267 * doc/tree-ssa.texi (Tree SSA): Likewise.
17268
17269 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
17270
17271 PR bootstrap/43202
17272 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
17273 by default. Don't set the default arch for
17274 i[34567]86-*-darwin*|x86_64-*-darwin*.
17275
17276 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
17277
17278 PR bootstrap/43202
17279 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
17280 default. Set the default 32bit/64bit archs with $with_arch
17281 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
17282
17283 2010-02-27 Richard Guenther <rguenther@suse.de>
17284
17285 PR tree-optimization/43186
17286 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
17287 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
17288 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
17289 unroller iterations.
17290
17291 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
17292
17293 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
17294 required and i[34567]86-*-* targets don't support 64bit ISA.
17295
17296 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
17297
17298 PR ada/43096
17299 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
17300 the same alias set.
17301
17302 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
17303
17304 * config.gcc: Set the default arch at least to Prescott for
17305 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
17306 if SSE math is enabled.
17307
17308 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
17309
17310 * diagnostic.c (diagnostic_initialize): Update.
17311 (diagnostic_report_diagnostic): Test inhibit_notes_p for
17312 informative notes.
17313 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
17314 (diagnostic_inhibit_notes): New.
17315 * toplev.c (process_options): inhibit notes with -fcompare-debug.
17316
17317 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
17318
17319 PR c/20631
17320 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
17321 * doc/standards.texi: Likewise.
17322 * doc/extend.texi: Likewise.
17323 * doc/trouble.texi: Likewise.
17324 * doc/cppopts.texi: Likewise.
17325 * doc/install.texi: Likewise.
17326 * c.opt (std=c90,std=gnu90): New options.
17327 * c-opts.c (c_common_handle_option): Handle them.
17328
17329 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
17330
17331 PR c/24577
17332 * c-decl.c (undeclared_variable): Use an informative note.
17333
17334 2010-02-26 Richard Guenther <rguenther@suse.de>
17335
17336 PR tree-optimization/43186
17337 * gimple.h (gimple_fold): Remove.
17338 * gimple.c (gimple_fold): Remove. Inline into single user ...
17339 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
17340 Try harder for conditions.
17341
17342 2010-02-26 Jakub Jelinek <jakub@redhat.com>
17343
17344 PR debug/43190
17345 * function.c (used_types_insert): Don't skip through named pointer
17346 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
17347 and it is different from the main variant's type.
17348
17349 2010-02-26 Nick Clifton <nickc@redhat.com>
17350
17351 * config/rx/rx.md (sminsi3): Remove bogus alternative.
17352
17353 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
17354
17355 * config.gcc: Support --with-fpmath=sse for x86.
17356
17357 * config/i386/ssemath.h: New.
17358
17359 * doc/install.texi (--with-fpmath=sse): Documented.
17360
17361 2010-02-26 Richard Guenther <rguenther@suse.de>
17362
17363 PR tree-optimization/43188
17364 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
17365 vector types of over-aligned element type.
17366
17367 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
17368
17369 PR target/43175
17370 * config/i386/i386.c (expand_vec_perm_blend): Use correct
17371 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
17372
17373 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
17374
17375 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
17376
17377 2010-02-26 Jakub Jelinek <jakub@redhat.com>
17378
17379 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
17380 * var-tracking.c: Include diagnostic.h.
17381 (debug_dv): New function.
17382 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
17383
17384 PR debug/43160
17385 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
17386 (add_value_chain, add_value_chains, remove_value_chain,
17387 remove_value_chains): Handle DEBUG_EXPRs.
17388 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
17389
17390 PR debug/43161
17391 * regcprop.c (struct queued_debug_insn_change): New type.
17392 (struct value_data_entry): Add debug_insn_changes field.
17393 (struct value_data): Add n_debug_insn_changes field.
17394 (debug_insn_changes_pool): New variable.
17395 (free_debug_insn_changes, apply_debug_insn_changes,
17396 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
17397 (kill_value_one_regno): Call free_debug_insn_changes if needed.
17398 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
17399 fields.
17400 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
17401 changes for them.
17402 (copyprop_hardreg_forward_1): Don't call apply_change_group for
17403 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
17404 changes, call cprop_find_used_regs via note_stores.
17405 (copyprop_hardreg_forward): When copying vd from predecessor
17406 which has any queued DEBUG_INSN changes, make sure the pointers are
17407 cleared. At the end call df_analyze and then if there are any
17408 DEBUG_INSN changes queued at the end of some basic block for still
17409 live registers, apply them.
17410 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
17411
17412 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
17413
17414 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
17415 (arm*-*-*): Ditto.
17416
17417 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
17418
17419 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
17420 targets. Set the default with_cpu/with_arch from arch/cpu.
17421 Allow x86-64 and native for with_cpu/with_arch.
17422
17423 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
17424
17425 * ebitmap.c: Change calls to verify_popcount with calls to
17426 sbitmap_verify_popcount.
17427 (ebitmap_clear_bit): Fixed map->cacheindex test and
17428 map>cache update when bit clearing results in an empty
17429 element.
17430
17431 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
17432
17433 PR target/43154
17434 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
17435 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
17436 and support both V2DF and V2DI modes.
17437 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
17438 support both V2DF and V2DI modes.
17439 (general): Delete trailing whitespace from a few patterns.
17440
17441 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17442 V2DF/V2DI interleave high/low builtins.
17443
17444 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
17445 new VSX builtins.
17446
17447 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
17448 interleave high/low functions.
17449
17450 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
17451
17452 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
17453 #pragma extern_prefix.
17454
17455 2010-02-25 Jakub Jelinek <jakub@redhat.com>
17456
17457 PR debug/43166
17458 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
17459 BLKmode, assert op0 is a MEM and just adjust its mode.
17460
17461 PR debug/43165
17462 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
17463 if bitpos isn't multiple of mode's bitsize.
17464
17465 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
17466
17467 * c.opt (-ftemplate-depth=): New.
17468 (-ftemplate-depth-): Deprecate.
17469 * optc-gen.awk: Handle -ftemplate-depth=.
17470 * opth-gen.awk: Likewise.
17471 * c-opts.c (c_common_handle_option): Likewise.
17472 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
17473
17474 2010-02-24 Jason Merrill <jason@redhat.com>
17475
17476 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
17477
17478 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17479
17480 * cfg.c (alloc_aux_for_block): Remove inline.
17481 (alloc_aux_for_edge): Likewise.
17482
17483 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17484
17485 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
17486
17487 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17488
17489 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
17490 * config/i386/sol2-gas.h: New file.
17491 * config.gcc (i[34567]86-*-solaris2*): Use it.
17492
17493 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
17494
17495 PR c/43128
17496 * c-typeck.c (ep_convert_and_check): New.
17497 (build_conditional_expr): Use it.
17498 (build_binary_op): Likewise.
17499
17500 2010-02-24 Jakub Jelinek <jakub@redhat.com>
17501
17502 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
17503
17504 PR debug/43150
17505 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
17506 bounds even for -O+.
17507 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
17508 expr needs to have DECL_NAME set.
17509
17510 2010-02-24 Nick Clifton <nickc@redhat.com>
17511
17512 * config/mep/mep.c: Include gimple.h.
17513 (mep_function_uses_sp): Delete unused function.
17514 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
17515 parameters. Use unsigned integers to count args. Return a
17516 NULL_RTX instead of an error_mark_node. Toidy up formatting.
17517
17518 2010-02-23 Jakub Jelinek <jakub@redhat.com>
17519
17520 PR target/43107
17521 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
17522 greater or equal to nelt instead of 2 * nelt.
17523 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
17524 with nelt - 1.
17525
17526 2010-02-23 Jason Merrill <jason@redhat.com>
17527
17528 PR debug/42800
17529 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
17530 in cfun->local_decls even if they have register types.
17531
17532 PR c++/42837
17533 * stor-layout.c (place_field): Don't warn about unnecessary
17534 DECL_PACKED if the type is packed.
17535
17536 2010-02-23 Jakub Jelinek <jakub@redhat.com>
17537
17538 PR target/43139
17539 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
17540 GOTOFF relocs, even when the base reg isn't pic pointer.
17541
17542 2010-02-23 Michael Matz <matz@suse.de>
17543
17544 PR debug/43077
17545 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
17546 (expand_gimple_basic_block): Generate and use debug temps if there
17547 are debug uses left after the last real use of TERed ssa names.
17548 Unlink debug immediate uses when they are expanded.
17549
17550 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
17551
17552 PR 43123
17553 * config/i386/i386.c (override_options): Reorganise to provide
17554 better error messages.
17555
17556 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
17557
17558 PR middle-end/43083
17559 * graphite-scop-detection.c (create_single_exit_edge): Move
17560 the call to find_single_exit_edge to....
17561 (create_sese_edges): ...here. Don't handle multiple edges
17562 exiting the function.
17563 (build_graphite_scops): Don't handle multiple edges
17564 exiting the function.
17565
17566 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
17567
17568 PR middle-end/43097
17569 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
17570 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
17571
17572 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
17573
17574 PR middle-end/43026
17575 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
17576
17577 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
17578
17579 PR c++/43126
17580 * c-typeck.c (convert_arguments): Print declaration location.
17581 * c-common.c (validate_nargs): Rename as
17582 builtin_function_validate_nargs.
17583 (check_builtin_function_arguments): Update.
17584
17585 2010-02-22 Richard Guenther <rguenther@suse.de>
17586
17587 PR lto/43045
17588 * tree-inline.c (declare_return_variable): Use the type of
17589 the call stmt lhs if available.
17590
17591 2010-02-22 Duncan Sands <baldrick@free.fr>
17592
17593 * passes.c (register_pass): Always consider all pass lists when
17594 ref_pass_instance_number is zero.
17595
17596 2010-02-22 Richard Guenther <rguenther@suse.de>
17597
17598 PR tree-optimization/42749
17599 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
17600 parameter. Do arithmetic in the original type.
17601 (update_accumulator_with_ops): Likewise.
17602 (adjust_accumulator_values): Adjust.
17603
17604 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17605
17606 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
17607 (QI to BLKmode splitter): New splitter.
17608
17609 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
17610
17611 * config/i386/i386.c (initial_ix86_tune_features): Turn on
17612 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
17613
17614 2010-02-22 Richard Guenther <rguenther@suse.de>
17615
17616 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
17617
17618 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
17619
17620 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
17621 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
17622 ($(T)crti.o, $(T)crtn.o): Remove rules.
17623
17624 2010-02-21 Tobias Burnus <burnus@net-b.de>
17625
17626 PR fortran/35259
17627 * doc/invoke.texi (-fassociative-math): Document that this
17628 option is automatically enabled for Fortran.
17629
17630 2010-02-20 David S. Miller <davem@davemloft.net>
17631
17632 * configure.ac: Test if linker and assembler properly support
17633 GOTDATA_OP relocations.
17634 * configure: Rebuild.
17635 * config.in: Likewise.
17636 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
17637 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
17638 (movsi_high_pic): Likewise.
17639 (movdi_lo_sum_pic): Likewise.
17640 (movdi_high_pic): Likewise.
17641 (movsi_pic_gotdata_op): New pattern.
17642 (movdi_pic_gotdata_op): Likewise.
17643 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
17644 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
17645
17646 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
17647
17648 PR target/43067
17649 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
17650 attribute to ssemul.
17651 (xop_mulv2div2di3_high): Ditto.
17652
17653 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
17654
17655 PR c++/35669
17656 * c.opt (Wconversion-null): New option.
17657 * doc/invoke.texi (Wconversion-null): Document.
17658
17659 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
17660
17661 * common.opt (Wlarger-than-): Add Undocumented.
17662
17663 2010-02-19 Mike Stump <mikestump@comcast.net>
17664
17665 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
17666
17667 2010-02-19 Jason Merrill <jason@redhat.com>
17668
17669 PR target/40332
17670 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
17671 * configure: Likewise.
17672
17673 2010-02-20 Alan Modra <amodra@gmail.com>
17674
17675 PR middle-end/42344
17676 * cgraph.h (cgraph_make_decl_local): Declare.
17677 * cgraph.c (cgraph_make_decl_local): New function.
17678 (cgraph_make_node_local): Use it.
17679 * cgraphunit.c (cgraph_function_versioning): Likewise.
17680 * ipa.c (function_and_variable_visibility): Likewise.
17681
17682 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17683
17684 PR bootstrap/43121
17685 * except.c (sjlj_emit_function_enter): Don't call
17686 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
17687 directly.
17688 * rtl.h (add_reg_br_prob_note): Remove prototype.
17689
17690 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
17691
17692 PR 41779
17693 * c-common.c (conversion_warning): Remove widening conversions
17694 before checking the conversion of integers to reals.
17695
17696 2010-02-19 Mike Stump <mikestump@comcast.net>
17697
17698 PR middle-end/43125
17699 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
17700
17701 PR objc/43061
17702 * cgraphunit.c (process_function_and_variable_attributes): Check
17703 DECL_PRESERVE_P instead of looking up attribute "used".
17704 * ipa-pure-const.c (check_decl): Likewise.
17705 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
17706 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
17707 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
17708 instead of attribute "used".
17709 * config/sol2-c.c (solaris_pragma_init): Likewise.
17710 (solaris_pragma_fini): Likewise.
17711
17712 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17713
17714 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
17715 Use XCNEW instead of xcalloc.
17716 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
17717 XNEW instead of xmalloc.
17718 (get_fields): Use XNEWVEC instead of xmalloc.
17719
17720 PR debug/43084
17721 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
17722 populate vars array.
17723 (create_new_general_access): For debug stmts just reset value.
17724 (get_stmt_accesses): For accesses within debug stmts just record them
17725 using add_access_to_acc_sites instead of preventing the peeling or
17726 counting them as accesses.
17727
17728 PR middle-end/42233
17729 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
17730
17731 2010-02-19 Richard Guenther <rguenther@suse.de>
17732
17733 PR tree-optimization/42916
17734 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
17735 instructions.
17736
17737 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
17738
17739 * configure.ac: Replace all uses of changequote in macro arguments
17740 with proper quoting.
17741
17742 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17743
17744 PR middle-end/42233
17745 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
17746
17747 2010-02-19 Richard Guenther <rguenther@suse.de>
17748
17749 PR tree-optimization/42944
17750 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
17751 test for aliasing with errno.
17752
17753 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17754
17755 PR middle-end/42233
17756 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
17757 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
17758 * dojump.c: Include output.h.
17759 (inv): New inline function.
17760 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
17761 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
17762 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
17763 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
17764 argument, pass it down to other calls.
17765 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
17766 add REG_BR_PROB note to the conditional jump.
17767 * cfgexpand.c (add_reg_br_prob_note): Removed.
17768 (expand_gimple_cond): Don't call it, add the probability
17769 as last argument to jumpif_1/jumpifnot_1.
17770 * Makefile.in (dojump.o): Depend on output.h.
17771 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
17772 callers.
17773 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
17774 * stmt.c (do_jump_if_equal): Likewise.
17775 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
17776 * loop-unswitch.c (compare_and_jump_seq): Likewise.
17777 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
17778 Likewise.
17779 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
17780 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
17781 jumpifnot_1 callers.
17782 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
17783 callers.
17784 (store_expr): Adjust jumpifnot caller.
17785 (store_constructor): Adjust jumpif caller.
17786
17787 PR middle-end/42233
17788 * gimplify.c (gimple_boolify): For __builtin_expect call
17789 gimple_boolify also on its first argument.
17790
17791 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
17792
17793 * configure.ac (gnu-unique-object): Wrap regexps using [] in
17794 changequote block.
17795 (__stack_chk_fail): Ditto. Remove quadrigraphs.
17796 * configure: Regenerated.
17797
17798 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17799
17800 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
17801 lang_hooks.types_compatible_p instead of comptypes.
17802
17803 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
17804
17805 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
17806 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
17807 if __prefer_thumb__ is defined.
17808
17809 2010-02-18 Martin Jambor <mjambor@suse.cz>
17810
17811 PR tree-optimization/43066
17812 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
17813 array with zero-sized element type.
17814
17815 2010-02-18 Jakub Jelinek <jakub@redhat.com>
17816
17817 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
17818 rtx, allocate struct var_loc_node here and return it to the
17819 caller, and only if it is actually needed.
17820 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
17821 move it earlier and return immediately if it returns NULL.
17822
17823 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
17824
17825 * config/sparc/gas.h: New file. Restore
17826 TARGET_ASM_NAMED_SECTION to its ELF default.
17827 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
17828 check !HAVE_GNU_AS.
17829 * config/sparc/sparc.c (sparc_elf_asm_named_section):
17830 Likewise. Add ATTRIBUTE_UNUSED to prototype.
17831 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
17832 after sparc/sysv4.h.
17833
17834 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
17835
17836 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
17837
17838 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
17839
17840 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
17841 patterns from predicated pattern.
17842
17843 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
17844
17845 PR target/43103
17846 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
17847 for insn mnemonic suffix.
17848
17849 2010-02-17 Richard Guenther <rguenther@suse.de>
17850
17851 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
17852 to loop PHI nodes.
17853
17854 2010-02-17 Jakub Jelinek <jakub@redhat.com>
17855
17856 PR debug/42918
17857 * caller-save.c (save_call_clobbered_regs): If BB ends with
17858 a DEBUG_INSN, move any notes in between last real insn and the last
17859 DEBUG_INSN after the last DEBUG_INSN.
17860
17861 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
17862
17863 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
17864 Fix return type. Fix argument type. Explain meaning of return value.
17865
17866 2010-02-16 Richard Guenther <rguenther@suse.de>
17867
17868 PR tree-optimization/41043
17869 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
17870 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
17871 statements ...
17872 (vrp_visit_phi_node): ... but only for loop PHI nodes.
17873
17874 2010-02-16 Ira Rosen <irar@il.ibm.com>
17875
17876 PR tree-optimization/43074
17877 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
17878 * tree-vect-loop.c (vect_analyze_loop_operations): Add
17879 vectorizable cycles in hybrid SLP check.
17880 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
17881
17882 2010-02-16 Richard Guenther <rguenther@suse.de>
17883
17884 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
17885 (true_dependence): If memrefs_conflict_p computes must-alias
17886 trust it. Move TBAA check after offset-based disambiguation.
17887 (canon_true_dependence): Likewise.
17888
17889 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
17890
17891 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
17892 * doc/invoke.texi: Document it.
17893 * var-tracking.c: Include toplev.h and params.h.
17894 (vt_find_locations): Return bool indicating success. Compute
17895 hash sizes unconditionally. Check new parameter, report.
17896 (variable_tracking_main_1): Check vt_find_locations results and
17897 retry. Renamed from...
17898 (variable_tracking_main): ... this. New wrapper to preserve
17899 flag_var_tracking_assignments.
17900 * Makefile.in (var-tracking.o): Adjust dependencies.
17901
17902 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
17903 Jakub Jelinek <jakub@redhat.com>
17904
17905 PR target/42854
17906 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
17907 if weak_import attribute is present.
17908 * config/darwin.c (machopic_select_section): Likewise.
17909
17910 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
17911
17912 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
17913 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
17914 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
17915 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
17916
17917 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
17918 types.
17919
17920 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
17921 Fix argument types.
17922
17923 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
17924 Rewrite text to refer to the names.
17925
17926 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
17927
17928 * config/i386/i386-builtin-types.def
17929 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
17930 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
17931 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
17932 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
17933 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
17934 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
17935 IX86_BUILTIN_VPERMIL2PS256.
17936 (MULTI_ARG_4_DF2_DI_I): Defined.
17937 (MULTI_ARG_4_DF2_DI_I1): Defined.
17938 (MULTI_ARG_4_SF2_SI_I): Defined.
17939 (MULTI_ARG_4_SF2_SI_I1): Defined.
17940 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
17941 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
17942 __builtin_ia32_vpermil2ps256.
17943 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
17944 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
17945 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
17946 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
17947 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
17948 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
17949 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
17950 CODE_FOR_xop_vpermil2v8sf3.
17951 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
17952 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
17953 * config/i386/xopintrin.h (_mm_permute2_pd): New.
17954 (_mm256_permute2_pd): New.
17955 (_mm_permute2_ps): New.
17956 (_mm256_permute2_ps): New.
17957
17958 2010-02-15 Nick Clifton <nickc@redhat.com>
17959
17960 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
17961 boolean parameters. Use emit_jump_insn when emitting a pop
17962 instruction containing a return insn.
17963 (push): Use 'true' rather than '1' as second parameter to F.
17964 (h8300_expand_prologue): Likewise.
17965 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
17966 (h8300_expand_epilogue): Likewise.
17967
17968 2010-02-15 Richard Guenther <rguenther@suse.de>
17969
17970 PR middle-end/43068
17971 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
17972 if that is zero.
17973
17974 2010-02-15 Nick Clifton <nickc@redhat.com>
17975
17976 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
17977 delta.
17978
17979 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
17980
17981 * intl.c (fake_ngettext): New function.
17982 * intl.h (fake_ngettext): Declare.
17983 (ngettext): Define macro.
17984 * collect2.c (notice_translated): New function.
17985 (main): Use notice_translated and ngettext.
17986 * collect2.h (notice_translated): Declare.
17987
17988 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
17989
17990 * reorg.c (delete_computation): Comment fixes.
17991 * caller-save.c (setup_save_areas): Idem.
17992 * sel-sched-dump.c (dump_lv_set): Idem.
17993 * rtl.def: Idem.
17994
17995 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17996
17997 * config/s390/s390.c (s390_sched_init): New function.
17998 (TARGET_SCHED_INIT): Target hook defined.
17999
18000 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
18001 Jack Howarth <howarth@bromo.med.uc.edu>
18002 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18003
18004 PR target/42982
18005 Partial revert of unintended change in fix for PR41605.
18006 * config/darwin.h: Fix typo.
18007 * config/darwin9.h: Same.
18008
18009 2010-02-11 Jakub Jelinek <jakub@redhat.com>
18010
18011 * c-pch.c (pch_init): Clear v.
18012
18013 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
18014
18015 PR middle-end/42930
18016 * graphite-scop-detection.c (graphite_can_represent_scev): Call
18017 graphite_can_represent_init for MULT_EXPR.
18018
18019 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
18020
18021 PR middle-end/42914
18022 PR middle-end/42530
18023 * graphite-sese-to-poly.c (remove_phi): New.
18024 (translate_scalar_reduction_to_array): Call remove_phi.
18025
18026 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
18027
18028 PR middle-end/42771
18029 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
18030 * graphite-clast-to-gimple.h (gloog): Update declaration.
18031 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
18032 * graphite-poly.h (struct poly_bb): Add missing comments.
18033 (struct scop): Add poly_scop_p field.
18034 (POLY_SCOP_P): New.
18035 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
18036 * graphite.c (graphite_transform_loops): Build the polyhedral
18037 representation for each scop before code generation.
18038 * sese.c (rename_variables_in_operand): Removed.
18039 (rename_variables_in_expr): Return the renamed expression.
18040 (rename_sese_parameters): New.
18041 * sese.h (rename_sese_parameters): Declared.
18042
18043 2010-02-11 Richard Guenther <rguenther@suse.de>
18044
18045 PR tree-optimization/42998
18046 * tree-ssa-pre.c (create_expression_by_pieces): Treat
18047 POINTER_PLUS_EXPR properly.
18048
18049 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
18050 Changpeng Fang <changpeng.fang@amd.com>
18051
18052 PR middle-end/40886
18053 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
18054 the cost of an IV candidate when the IV is used in a test against zero.
18055
18056 * gcc.dg/tree-ssa/ivopts-3.c: New.
18057
18058 2010-02-11 Richard Guenther <rguenther@suse.de>
18059
18060 PR lto/41664
18061 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
18062 pointer-vs-decl case by swapping refs. Handle some cases
18063 of pointer-vs-decl disambiguations more conservatively.
18064 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
18065 to false after expanding.
18066
18067 2010-02-11 Richard Guenther <rguenther@suse.de>
18068
18069 PR driver/43021
18070 * gcc.c (process_command): Handle LTO file@offset case more
18071 appropriately.
18072
18073 2010-02-11 Jakub Jelinek <jakub@redhat.com>
18074
18075 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
18076 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
18077 of DEBUG_INSNs.
18078 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
18079
18080 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
18081 if MEM's mode size isn't DWARF2_ADDR_SIZE.
18082 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
18083 Optimize eq/ne comparisons when both arguments are known to be
18084 zero-extended.
18085 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
18086 Don't mask operands unnecessarily if they are known to be already
18087 zero-extended.
18088
18089 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
18090
18091 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
18092 instead of loop.
18093
18094 2010-02-10 Richard Guenther <rguenther@suse.de>
18095
18096 PR tree-optimization/43017
18097 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
18098 for wrapping signed arithmetic.
18099
18100 2010-02-10 Jakub Jelinek <jakub@redhat.com>
18101
18102 PR debug/43010
18103 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
18104 if no debug info should be emitted for it.
18105
18106 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
18107
18108 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
18109 note when flag_exceptions is set.
18110
18111 2010-02-10 Duncan Sands <baldrick@free.fr>
18112
18113 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
18114
18115 2010-02-10 Richard Guenther <rguenther@suse.de>
18116
18117 PR c/43007
18118 * tree.c (get_unwidened): Handle constants.
18119 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
18120
18121 2010-02-10 Martin Jambor <mjambor@suse.cz>
18122
18123 PR lto/42985
18124 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
18125 check for variable argument counts independently.
18126
18127 2010-02-10 Christian Bruel <christian.bruel@st.com>
18128
18129 PR target/42841
18130 * config/sh/sh.c (find_barrier): Increase length for non delayed
18131 conditional branches.
18132
18133 2010-02-10 Christian Bruel <christian.bruel@st.com>
18134
18135 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
18136
18137 2010-02-10 Jakub Jelinek <jakub@redhat.com>
18138
18139 * builtins.c (set_builtin_user_assembler_name): Also handle
18140 ffs if int is smaller than word.
18141
18142 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
18143
18144 PR middle-end/42973
18145 * ira-conflicts.c (get_dup): Remove.
18146 (process_reg_shuffles): Add new parameter. Use it as an
18147 additional guard for copy generation.
18148 (add_insn_allocno_copies): Rewrite.
18149
18150 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
18151
18152 * common.opt (fsched2-use-traces): Preserved for backward
18153 compatibility.
18154 * doc/invoke.texi: Remove the documentation about option
18155 -fsched2-use-traces.
18156 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
18157 flag_sched2_use_traces.
18158 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
18159 the backward compatibility flag section.
18160
18161 2010-02-09 Richard Guenther <rguenther@suse.de>
18162
18163 PR tree-optimization/43008
18164 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
18165 make HEAP variables initialized from global memory if they
18166 are not known builtin functions.
18167 (find_func_aliases): Adjust.
18168
18169 2010-02-09 Richard Guenther <rguenther@suse.de>
18170
18171 PR tree-optimization/43000
18172 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
18173 arithmetic manually.
18174
18175 2010-02-08 Jakub Jelinek <jakub@redhat.com>
18176
18177 PR tree-optimization/42931
18178 * tree-loop-linear.c (try_interchange_loops): Don't call
18179 double_int_mul if estimated_loop_iterations failed.
18180
18181 2010-02-08 Martin Jambor <mjambor@suse.cz>
18182
18183 PR middle-end/42898
18184 * tree-sra.c (build_accesses_from_assign): Do not mark in
18185 should_scalarize_away_bitmap if stmt has volatile ops.
18186 (sra_modify_assign): Do not process assigns piecemeal if if stmt
18187 has volatile ops.
18188
18189 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
18190
18191 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
18192
18193 2010-02-07 Adam Nemet <adambnmet@gmail.com>
18194
18195 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
18196 before the pattern.
18197
18198 2010-02-07 Andrew Pinski <pinskia@gmail.com>
18199
18200 PR middle-end/42946
18201 * df-core.c (df_finish_pass): Change type of saved_flags to int.
18202
18203 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
18204
18205 PR middle-end/42988
18206 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
18207 to unknown_dependence.
18208 (graphite_legal_transform_dr): Handle the unknown_dependence.
18209 (graphite_carried_dependence_level_k): Same.
18210
18211 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
18212
18213 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
18214
18215 2010-02-07 Richard Guenther <rguenther@suse.de>
18216
18217 PR middle-end/42991
18218 * expr.c (get_inner_reference): Always initialize *pbitsize.
18219
18220 2010-02-07 Richard Guenther <rguenther@suse.de>
18221
18222 PR middle-end/42956
18223 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
18224 new ARRAY_REFs on variable size element or minimal index arrays.
18225 Complete.
18226 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
18227 gimple_fold_indirect_ref.
18228
18229 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
18230
18231 PR target/42957
18232 * arm.c (arm_override_options): Just return if the user has specified
18233 an invalid fpu name.
18234
18235 2010-02-03 Jason Merrill <jason@redhat.com>
18236
18237 PR c++/42870
18238 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
18239 i386_pe_maybe_record_exported_symbol.
18240
18241 2010-02-05 Steve Ellcey <sje@cup.hp.com>
18242
18243 PR target/42924
18244 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
18245 (pa_delegitimize_address): New function.
18246
18247 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
18248
18249 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
18250 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
18251
18252 2010-02-05 Richard Guenther <rguenther@suse.de>
18253
18254 PR lto/42762
18255 * lto-streamer-in.c (get_resolution): Deal with references
18256 to undefined functions.
18257
18258 2010-02-05 Richard Guenther <rguenther@suse.de>
18259
18260 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
18261 (fold_const_aggregate_ref): Likewise.
18262 (ccp_fold_stmt): Substitute loads.
18263 (maybe_fold_reference): Verify types before substituting.
18264 Unshare properly.
18265 (fold_gimple_assign): Unshare properly.
18266 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
18267
18268 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
18269
18270 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
18271 for rs6000_gen_cell_microcode.
18272
18273 2010-02-04 Richard Guenther <rguenther@suse.de>
18274
18275 PR rtl-optimization/42952
18276 * dse.c (const_or_frame_p): Remove MEM handling.
18277
18278 2010-02-04 Nick Clifton <nickc@redhat.com>
18279
18280 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
18281 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
18282 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
18283 (mn10300_asm_output_mi_thunk): New function.
18284 (mn10300_can_output_mu_thunk): New function.
18285 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
18286 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
18287 (FUNCTION_ARG): Delete incorrect comment.
18288
18289 2010-02-03 Jason Merrill <jason@redhat.com>
18290
18291 PR c++/40138
18292 * fold-const.c (operand_equal_p): Handle erroneous types.
18293
18294 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
18295
18296 * config/h8300/h8300.md (can_delay): Fix attibute condition.
18297
18298 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
18299
18300 PR rtl-optimization/42941
18301 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
18302 of xmalloc.
18303
18304 2010-02-03 Jason Merrill <jason@redhat.com>
18305
18306 PR c++/35652
18307 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
18308
18309 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
18310
18311 PR debug/42896
18312 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
18313 (cselib_reset_table): Renamed from...
18314 (cselib_reset_table_with_next_value): ... this.
18315 (cselib_get_next_uid): Renamed from...
18316 (cselib_get_next_unknown_value): ... this.
18317 * cselib.c (next_uid): Renamed from...
18318 (next_unknown_value): ... this.
18319 (cselib_clear_table): Adjust.
18320 (cselib_reset_table): Adjust. Renamed from...
18321 (cselib_reset_table_with_next_value): ... this.
18322 (cselib_get_next_uid): Adjust. Renamed from...
18323 (cselib_get_next_unknown_value): ... this.
18324 (get_value_hash): Use hash.
18325 (cselib_hash_rtx): Likewise.
18326 (new_cselib_val): Adjust. Set and dump uid.
18327 (cselib_lookup_mem): Pass next_uid as hash.
18328 (cselib_subst_to_values): Likewise.
18329 (cselib_log_lookup): Dump uid.
18330 (cselib_lookup): Pass next_uid as hash. Adjust.
18331 (cselib_process_insn): Adjust.
18332 (cselib_init): Initialize next_uid.
18333 (cselib_finish): Adjust.
18334 (dump_cselib_table): Likewise.
18335 * dse.c (canon_address): Dump value uid.
18336 * print-rtl.c (print_rtx): Print value uid.
18337 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
18338 (dvuid): New type.
18339 (dv_uid): New function, sort of renamed from...
18340 (dv_htab_hash): ... this, reimplemented in terms of it and...
18341 (dv_uid2hash): ... this. New.
18342 (variable_htab_eq): Drop excess assertions.
18343 (tie_break_pointers): Removed.
18344 (canon_value_cmp): Compare uids.
18345 (variable_post_merge_New_vals): Print uids.
18346 (vt_add_function_parameters): Adjust.
18347 (vt_initialize): Reset table. Adjust.
18348
18349 2010-02-03 Richard Guenther <rguenther@suse.de>
18350
18351 PR tree-optimization/42944
18352 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
18353 (call_may_clobber_ref_p_1): Likewise. Properly handle
18354 malloc and calloc clobbering errno.
18355
18356 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
18357
18358 * doc/invoke.texi: Fix name of sched1 dump.
18359
18360 * opts.c (decode_options): Set flag_tree_switch_conversion
18361 only conditionally on optimize >= 2.
18362
18363 * gcse.c: Assorted comment fixes in pass description.
18364
18365 2010-02-03 Anthony Green <green@moxielogic.com>
18366
18367 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
18368 nop padding in order to maintain alignment of storage location of
18369 target function address.
18370 (moxie_trampoline_init): Store target function address at newly
18371 aligned location.
18372 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
18373 to 32.
18374 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
18375
18376 2010-02-03 Richard Guenther <rguenther@suse.de>
18377
18378 PR middle-end/42927
18379 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
18380
18381 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18382
18383 * config.gcc: Reenable check for obsolete targets.
18384 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
18385 mips-sgi-irix6.[0-4]*.
18386
18387 2010-02-02 Nick Clifton <nickc@redhat.com>
18388
18389 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
18390 constant size of 4 as being the same as 0.
18391 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
18392 can take values in the range 0..4.
18393
18394 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
18395
18396 PR java/41991
18397 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
18398 as _darwin10_Unwind_FindEnclosingFunction().
18399 * libgcc-libsystem.ver: New.
18400
18401 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
18402
18403 PR target/41399
18404 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
18405 implicitly set registers.
18406
18407 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
18408
18409 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
18410 (arm_override_options): Allow automatic selection of the thread
18411 pointer register if thumb2.
18412 (legitimize_pic_address): Improve code sequences for Thumb2.
18413 (arm_call_tls_get_addr): Likewise.
18414 (legitimize_tls_address): Likewise.
18415 * arm.md (pic_load_addr_arm): Delete. Replace with ...
18416 (pic_load_addr_32bit): ... this. New named pattern.
18417 * thumb2.md (pic_load_addr_thumb2): Delete.
18418 (pic_load_dot_plus_four): Delete.
18419 (tls_load_dot_plus_four): New named pattern.
18420
18421 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18422
18423 PR libgomp/29986
18424 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
18425 Document fix for TLS bug.
18426
18427 2010-01-31 Richard Guenther <rguenther@suse.de>
18428
18429 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
18430 conservatively correct.
18431
18432 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18433
18434 PR target/42850
18435 Revert:
18436 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18437
18438 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
18439
18440 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18441
18442 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
18443
18444 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
18445
18446 * config.gcc: Adjust order of makefile fragments for mingw targets.
18447
18448 2010-01-31 Richard Guenther <rguenther@suse.de>
18449
18450 PR middle-end/42898
18451 * gimplify.c (gimplify_init_constructor): For volatile LHS
18452 initialize a temporary.
18453
18454 2010-01-31 Matthias Klose <doko@ubuntu.com>
18455
18456 * configure.ac: Fix __stack_chk_fail check for cross builds configured
18457 --with-headers
18458 * configure: Regenerate.
18459
18460 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
18461
18462 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
18463 the same alias set and their sizes different constantness.
18464 (aliasing_component_refs_p): Revert 2009-10-24 change.
18465
18466 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18467
18468 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
18469 unused.
18470
18471 2010-01-29 Richard Guenther <rguenther@suse.de>
18472
18473 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
18474 Assert we successfully updated the call.
18475
18476 2010-01-29 Jakub Jelinek <jakub@redhat.com>
18477
18478 PR rtl-optimization/42889
18479 * df.h (df_set_bb_dirty_nonlr): New prototype.
18480 * df-core.c (df_set_bb_dirty_nonlr): New function.
18481 * df-scan.c (df_insn_rescan): Call it instead of
18482 df_set_bb_dirty for DEBUG_INSNs.
18483
18484 2010-01-29 Richard Guenther <rguenther@suse.de>
18485
18486 PR middle-end/37448
18487 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
18488 quadratic behavior in most cases.
18489
18490 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
18491
18492 PR target/42891
18493 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
18494 in the call to gen_x86_movsicc_0_m1.
18495
18496 2010-01-28 Richard Guenther <rguenther@suse.de>
18497
18498 PR tree-optimization/42871
18499 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
18500
18501 2010-01-28 Richard Guenther <rguenther@suse.de>
18502
18503 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
18504 into call arguments.
18505
18506 2010-01-28 Richard Guenther <rguenther@suse.de>
18507
18508 PR middle-end/42883
18509 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
18510 the forwarder if the destination is an EH landing pad.
18511
18512 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
18513
18514 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
18515 block list passed to gimple_duplicate_sese_tail.
18516 (parallelize_loops): Avoid parallelization when the function
18517 has_nonlocal_label.
18518 Avoid parallelization when the preheader is IRREDUCIBLE.
18519 Try to optimize when estimated_loop_iterations_int is unresolved.
18520 Add the loop's location to the dump file.
18521 * tree-cfg.c (add_phi_args_after_redirect): Remove.
18522 (gimple_duplicate_sese_tail): Remove the check for the latch.
18523 Redirect nexits to the exit block.
18524 Remove handling of the incoming edges to the latch.
18525 Redirect the backedge from the copied latch to the exit bb.
18526
18527 2010-01-28 Michael Matz <matz@suse.de>
18528
18529 PR target/42881
18530 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
18531 Wrap force_reg into a sequence, emit it before user.
18532
18533 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
18534
18535 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
18536 (arm_rev): New.
18537 (arm_legacy_rev): Likewise.
18538 (thumb_legacy_rev): Likewise.
18539
18540 2010-01-27 Jakub Jelinek <jakub@redhat.com>
18541
18542 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
18543 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
18544 on MEM's address failed, try avoid_constant_pool_reference and
18545 recurse if it returned something different.
18546 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
18547 address, try avoid_constant_pool_reference and recurse if it
18548 returned something different.
18549 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
18550 address and avoid_constant_pool_reference returned something
18551 different, don't set have_address.
18552
18553 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
18554
18555 PR debug/42861
18556 * var-tracking.c (val_store): Add modified argument, obey it.
18557 Adjust callers.
18558 (count_uses): Move down logging of main.
18559 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
18560 don't need resolution.
18561 (emit_notes_in_bb): Likewise.
18562
18563 2010-01-27 Richard Guenther <rguenther@suse.de>
18564
18565 PR middle-end/42878
18566 * tree-inline.c (remap_decl): Delay remapping of SSA name
18567 default definitions until we need them.
18568
18569 2010-01-27 Jakub Jelinek <jakub@redhat.com>
18570
18571 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
18572 (rs6000_delegitimize_address): New function.
18573
18574 * config/s390/s390.c (s390_delegitimize_address): Call
18575 delegitimize_mem_from_attrs.
18576
18577 PR middle-end/42874
18578 * tree-inline.c (cannot_copy_type_1): Removed.
18579 (copy_forbidden): Don't forbid copying of functions containing
18580 records/unions with variable length fields.
18581
18582 2010-01-27 Christian Bruel <christian.bruel@st.com>
18583
18584 Revert:
18585 PR target/42841
18586 * config/sh/sh.c (find_barrier): Increase length for non delayed
18587 conditional branches.
18588
18589 2010-01-27 Matthias Klose <doko@ubuntu.com>
18590
18591 * configure.ac (gnu-unique-object): Fix ldd version check.
18592 * configure: Regenerate.
18593
18594 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18595
18596 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
18597 HAVE_GNU_AS value.
18598 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
18599 Test for HAVE_GNU_AS value.
18600
18601 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18602
18603 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
18604 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
18605 INT64_TYPE): Define.
18606 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
18607 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
18608 INT_LEAST64_TYPE): Define.
18609 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
18610 UINT_LEAST64_TYPE): Define.
18611 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
18612 INT_FAST64_TYPE): Define.
18613 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
18614 UINT_FAST64_TYPE): Define.
18615 (INTMAX_TYPE, UINTMAX_TYPE): Define.
18616 (INTPTR_TYPE, UINTPTR_TYPE): Define.
18617 (SIG_ATOMIC_TYPE): Define.
18618
18619 2010-01-26 Richard Guenther <rguenther@suse.de>
18620
18621 * df-scan.c (df_scan_set_bb_info): Remove assert.
18622 (df_insn_rescan_debug_internal): Merge asserts.
18623 (df_install_ref): Likewise.
18624 (df_mark_reg): Use bitmap_set_range.
18625 (df_hard_reg_used_p): Remove assert.
18626 (df_hard_reg_used_count): Likewise.
18627
18628 2010-01-26 Richard Guenther <rguenther@suse.de>
18629
18630 PR rtl-optimization/42685
18631 * web.c (web_main): Ignore DEBUG_INSNs.
18632
18633 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
18634
18635 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
18636
18637 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
18638 Fix types of fndecl and arglist parameters.
18639
18640 2010-01-26 Richard Guenther <rguenther@suse.de>
18641
18642 PR middle-end/42806
18643 * tree-eh.c (unsplit_eh): Skip debug insns.
18644
18645 2010-01-26 Richard Guenther <rguenther@suse.de>
18646
18647 PR tree-optimization/42250
18648 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
18649
18650 2010-01-26 Jakub Jelinek <jakub@redhat.com>
18651
18652 PR fortran/42866
18653 * omp-low.c (expand_omp_sections): Only use single_pred if
18654 l2_bb is single_pred_p.
18655
18656 2010-01-25 Christian Bruel <christian.bruel@st.com>
18657
18658 PR target/42841
18659 * config/sh/sh.c (find_barrier): Increase length for non delayed
18660 conditional branches.
18661 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
18662
18663 2010-01-24 David S. Miller <davem@davemloft.net>
18664
18665 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
18666 define if not using GAS.
18667 * config/sparc/sparc.c (sparc_elf_asm_named_section):
18668 Likewise. Delete SECTION_MERGE code, which is only applicable
18669 when using GAS.
18670
18671 2010-01-24 Mark Mitchell <mark@codesourcery.com>
18672
18673 PR c++/42748
18674 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
18675 mangling of va_list in system headers.
18676
18677 2010-01-23 Toon Moene <toon@moene.org>
18678
18679 * tree-predcom.c (combine_chains): Return NULL, not false.
18680
18681 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
18682
18683 * tree-loop-distribution.c (distribute_loop): Fix declaration and
18684 initialization of variable res to agree with return type.
18685
18686 2010-01-22 Steve Ellcey <sje@cup.hp.com>
18687
18688 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
18689 * tree-sra.c: Add include of expr.h.
18690
18691 2010-01-22 Jakub Jelinek <jakub@redhat.com>
18692
18693 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
18694 insert the debug stmt on the single non-EH edge from the stmt.
18695
18696 2010-01-22 Richard Henderson <rth@redhat.com>
18697
18698 PR tree-opt/42833
18699 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
18700 the RHS until after generate_subtree_copies has insertted its
18701 code before the current statement.
18702
18703 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
18704
18705 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
18706
18707 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
18708
18709 2010-01-21 Martin Jambor <mjambor@suse.cz>
18710
18711 PR tree-optimization/42585
18712 * tree-sra.c (struct access): New field grp_total_scalarization.
18713 (dump_access): Dump the new field.
18714 (should_scalarize_away_bitmap): New variable.
18715 (cannot_scalarize_away_bitmap): Likewise.
18716 (sra_initialize): Allocate new bitmaps.
18717 (sra_deinitialize): Free new bitmaps.
18718 (create_access_1): New function.
18719 (create_access): Parts moved to create_access_1.
18720 (type_consists_of_records_p): New function.
18721 (completely_scalarize_record): Likewise.
18722 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
18723 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
18724 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
18725 access.
18726 (analyze_all_variable_accesses): Completely scalarize small eligible
18727 records.
18728
18729 2010-01-21 Martin Jambor <mjambor@suse.cz>
18730
18731 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
18732
18733 2010-01-21 Andrew Haley <aph@redhat.com>
18734
18735 * gcc.c (process_command): Move lang_specific_driver before
18736 setting cc_libexec_prefix.
18737
18738 2010-01-21 Richard Guenther <rguenther@suse.de>
18739
18740 PR middle-end/19988
18741 * fold-const.c (negate_expr_p): Pretend only negative
18742 real constants are easily negatable.
18743
18744 2010-01-20 Janis Johnson <janis187@us.ibm.com>
18745 Jason Merrill <jason@redhat.com>
18746
18747 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
18748 (TYPE_TRANSPARENT_AGGR): this, for union and record.
18749 * calls.c (initialize argument_information): Handle it.
18750 * c-common.c (handle_transparent_union_attribute): Use new name.
18751 * c-decl.c (finish_struct): Ditto.
18752 * c-typeck.c (type_lists_compatible_p): Ditto.
18753 (convert_for_assignment): Use new name and also handle record.
18754 * function.c (aggregate_value_p): Handle it.
18755 (pass_by_reference): Ditto.
18756 (assign_parm_data_types): Ditto.
18757 * print-tree.c (print_node): Ditto.
18758 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
18759 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
18760 * tree.c (first_field): New fn.
18761
18762 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
18763
18764 PR target/42818
18765 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
18766 even when linking statically, for now.
18767
18768 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
18769
18770 PR debug/42715
18771 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
18772 without a cselib val.
18773 (count_uses): Accept MO_VAL_SET with no val on stores.
18774 (add_stores): Likewise.
18775
18776 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18777
18778 * var-tracking.c (check_value_val): Add a compile time assertion.
18779 (dv_is_decl_p): Simplify.
18780 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
18781 gcc_assert if ENABLE_CHECKING.
18782
18783 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
18784
18785 PR debug/42782
18786 * var-tracking.c: Include tree-flow.h.
18787 (mem_dies_at_call): New.
18788 (dataflow_set_preserve_mem_locs): Use it.
18789 (dataflow_set_remove_mem_locs): Likewise.
18790 (dump_var): Renamed from dump_variable. Adjust all callers.
18791 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
18792 * Makefile.in (var-tracking.o): Adjust deps.
18793
18794 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
18795
18796 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
18797
18798 2010-01-20 Richard Guenther <rguenther@suse.de>
18799
18800 PR tree-optimization/42717
18801 * tree-ssa-dce.c (get_live_post_dom): Remove.
18802 (forward_edge_to_pdom): Take an arbitrary edge to copy
18803 degenerate PHI args from.
18804 (remove_dead_stmt): Use the first post-dominator even if it
18805 does not contain live statements as redirection destination.
18806
18807 2010-01-20 Richard Guenther <rguenther@suse.de>
18808
18809 * tree-inline.c (estimate_num_insns): Handle EH builtins.
18810
18811 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18812
18813 * sel-sched.c (create_speculation_check): Remove set but not used
18814 variable twin.
18815 (try_transformation_cache): Remove set but not used variable ds.
18816 (calculate_privileged_insns): Remove set but not used variables
18817 cur_insn and min_spec_insn.
18818 (find_best_expr): Remove set but not used variable avail_n.
18819 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
18820 variable e.
18821 * cgraphunit.c (assemble_thunk): Remove set but not used variable
18822 false_label.
18823 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
18824 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
18825 new_scop_exit_edge.
18826
18827 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
18828
18829 PR bootstrap/42786
18830 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
18831 cpu types. Add support for *-sse3 cpu types.
18832 (x86_64-*-*): Ditto.
18833
18834 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18835
18836 PR middle-end/42803
18837 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
18838 argument, call initializer_constant_valid_p_1 instead of
18839 initializer_constant_valid_p, pass CACHE to it, return NULL
18840 immediately if first call returns NULL.
18841 (initializer_constant_valid_p_1): New function.
18842 (initializer_constant_valid_p): Use it.
18843
18844 2010-01-20 Thomas Quinot <quinot@adacore.com>
18845
18846 * tree.def (PLACEHOLDER_EXPR): Fix comment.
18847
18848 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18849
18850 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
18851 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
18852 (loc_list_from_tree): Don't handle unsigned division. Handle
18853 signed modulo using DW_OP_{over,over,div,mul,minus}.
18854 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
18855 modulo instead of signed.
18856
18857 2010-01-20 DJ Delorie <dj@redhat.com>
18858
18859 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
18860 (Fpa): Pass it
18861 (h8300_emit_stack_adjustment): Propogate it.
18862 (push): Pass it.
18863 (h8300_expand_prologue): Likewise.
18864 (h8300_expand_epilogue): Likewise.
18865
18866 2010-01-19 Michael Matz <matz@suse.de>
18867
18868 PR tree-optimization/41783
18869 * tree-data-ref.c (toplevel): Include flags.h.
18870 (dump_data_dependence_relation): Also dump the inputs if the
18871 result will be unknown.
18872 (split_constant_offset_1): Look through some conversions.
18873 * tree-predcom.c (determine_roots_comp): Restart a new chain if
18874 the offset from last element is too large.
18875 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
18876 (reassociate_to_the_same_stmt): Handle vector registers.
18877 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
18878 (e.g. conversions).
18879 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
18880 wide_prolog_niters argument, emit widening instructions.
18881 (vect_do_peeling_for_alignment): Adjust caller, use widened
18882 variant of the iteration cound.
18883 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
18884
18885 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18886
18887 PR target/38697
18888 * config/arm/neon-testgen.m (emit_automatics): New parameter
18889 features. Adjust for Fixed_return_reg feature.
18890 (test_intrinsic): Call emit_automatics with new feature.
18891 * config/arm/neon.ml: Update copyright years.
18892 (features): New Fixed_return_reg feature.
18893 (ops): Update feature for Vget_low.
18894
18895 2010-01-19 Jakub Jelinek <jakub@redhat.com>
18896
18897 PR tree-optimization/42719
18898 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
18899 stmt uses.
18900
18901 PR debug/42728
18902 * fwprop.c (all_uses_available_at): Return false if def_set dest
18903 is a REG that is used in def_insn.
18904
18905 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
18906
18907 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
18908
18909 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
18910 Add argument names.
18911
18912 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
18913
18914 * target.h (struct gcc_target) <secondary_reload>: Change type
18915 of last argument to secondary_reload_info *.
18916
18917 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
18918
18919 PR target/42774
18920 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
18921 memory references with unaligned offsets. Remove CQImode handling.
18922 (unaligned_memory_operand): Return 1 for memory references with
18923 unaligned offsets. Remove CQImode handling.
18924
18925 2010-01-18 Richard Guenther <rguenther@suse.de>
18926
18927 PR middle-end/39954
18928 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
18929 builtin calls.
18930
18931 2010-01-18 Richard Guenther <rguenther@suse.de>
18932
18933 PR tree-optimization/42781
18934 * tree-ssa-structalias.c (find_what_var_points_to): Skip
18935 restrict processing only if the original variable was artificial.
18936
18937 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
18938
18939 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
18940 find number of popped argument bytes.
18941
18942 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
18943 Fix the text that describes the return value for invalid insns.
18944
18945 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
18946
18947 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
18948 Clarify what 'cost of the -dependence' is. Fix quoting.
18949
18950 * toplev.c (default_get_pch_validity): Rename argument to "sz".
18951 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
18952
18953 2010-01-17 Jakub Jelinek <jakub@redhat.com>
18954
18955 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
18956 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
18957
18958 2010-01-17 Richard Guenther <rguenther@suse.de>
18959
18960 PR middle-end/42248
18961 * function.c (split_complex_args): Take a VEC to modify.
18962 (assign_parms_augmented_arg_list): Build a VEC instead of
18963 a chain of PARM_DECLs.
18964 (assign_parms_unsplit_complex): Take a VEC of arguments.
18965 Do not fixup unmodified parms.
18966 (assign_parms): Deal with the VEC.
18967 (gimplify_parameters): Likewise.
18968
18969 2010-01-17 Richard Guenther <rguenther@suse.de>
18970
18971 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
18972 node existence check.
18973 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
18974 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
18975 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
18976 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
18977 (gimple_execute_on_growing_pred): Likewise.
18978
18979 2010-01-17 Richard Guenther <rguenther@suse.de>
18980
18981 PR tree-optimization/42773
18982 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
18983 (compute_antic_aux): Likewise.
18984 (compute_partial_antic_aux): Likewise.
18985
18986 2010-01-17 Jie Zhang <jie.zhang@analog.com>
18987
18988 PR debug/42767
18989 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
18990 and US_TRUNCATE.
18991
18992 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
18993
18994 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
18995 appearance.
18996
18997 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
18998 Fix markup for strict argument.
18999
19000 (TARGET_SCHED_REORDER2): Fix argument types.
19001
19002 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
19003 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
19004
19005 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
19006 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
19007
19008 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
19009 Add argument name.
19010
19011 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
19012 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
19013 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
19014 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
19015 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
19016
19017 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
19018
19019 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
19020
19021 (TARGET_ASM_RELOC_RW_MASK): Add return type.
19022 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
19023
19024 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
19025
19026 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
19027 Use prototype.
19028
19029 (TARGET_ASM_NAMED_SECTION): Fix argument list.
19030
19031 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
19032 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
19033
19034 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
19035
19036 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
19037
19038 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
19039 referring to it. Fix language.
19040
19041 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
19042
19043 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
19044
19045 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
19046
19047 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
19048
19049 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
19050 '@var{stream}. Remove stray 'and'.
19051
19052 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
19053
19054 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
19055
19056 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
19057
19058 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
19059 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
19060
19061 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
19062 Fix description of return value.
19063 Rename argument "sz" to "len."
19064
19065 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
19066 Clarify meaning of 'true' return value.
19067
19068 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
19069
19070 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
19071 rep_mode versus mode_rep.
19072
19073 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
19074
19075 (TARGET_BUILTIN_DECL): Fix name.
19076
19077 (TARGET_COMMUTATIVE_P): Fix type of first argument.
19078
19079 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
19080
19081 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
19082
19083 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
19084
19085 (TARGET_RELAXED_ORDERING): Use @deftypevr.
19086
19087 (TARGET_GET_DRAP_RTX): Note that this is a hook.
19088 Clarify language.
19089
19090 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
19091 Rename argument tm_fn to md_fn.
19092
19093 (TARGET_OPTION_PRINT): Fix argument list.
19094
19095 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
19096
19097 PR target/42664
19098 * config/i386/i386.c (ix86_fixup_binary_operands):
19099 Revert FMA4 fixup of operands.
19100
19101 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19102
19103 PR gcc/42525
19104 * Makefile.in (write_entries_to_file, install-plugin):
19105 Use \012 instead of \n with tr.
19106
19107 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
19108
19109 * configure.ac (HAVE_AS_REF): New C macro.
19110 * configure: Regenerate.
19111 * config.in: Likewise.
19112 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
19113 if HAVE_AS_REF.
19114 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
19115 if HAVE_AS_REF.
19116
19117 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
19118
19119 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
19120
19121 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
19122
19123 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
19124
19125 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
19126
19127 (TARGET_IN_SMALL_DATA_P): Fix argument type.
19128
19129 (TARGET_BINDS_LOCAL_P): Fix argument type.
19130
19131 (TARGET_ASM_FILE_END): Use prototype.
19132
19133 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
19134
19135 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
19136
19137 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
19138
19139 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
19140
19141 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
19142 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
19143
19144 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
19145 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
19146
19147 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
19148 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
19149 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
19150 (TARGET_ADDR_SPACE_CONVERT): Likewise.
19151
19152 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
19153
19154 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
19155
19156 (TARGET_INIT_BUILTINS): Use prototype.
19157
19158 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
19159 Put 'const char *' in braces. Fix parameter types.
19160 (TARGET_INVALID_CONVERSION): Fix parameter types.
19161 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
19162 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
19163
19164 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
19165 Fix argument type.
19166
19167 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
19168
19169 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
19170
19171 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
19172
19173 * doc/tm.texi (TARGET_HELP): Fix return type.
19174
19175 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
19176 in braces. Fix argument types.
19177
19178 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
19179
19180 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
19181
19182 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
19183
19184 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
19185 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
19186
19187 (TARGET_MANGLE_TYPE): Fix argument types.
19188
19189 (TARGET_IRA_COVER_CLASSES): Use prototype.
19190
19191 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
19192
19193 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
19194
19195 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
19196
19197 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
19198
19199 (TARGET_CALLEE_COPIES): Fix argument types.
19200
19201 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
19202
19203 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
19204
19205 (TARGET_FUNCTION_VALUE): Fix argument types.
19206
19207 (TARGET_RETURN_IN_MSB): Fix argument type.
19208
19209 (TARGET_RETURN_IN_MEMORY): Fix argument types.
19210
19211 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
19212
19213 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
19214
19215 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
19216 agree with return type.
19217
19218 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
19219
19220 2010-01-15 Jing Yu <jingyu@google.com>
19221
19222 PR rtl-optimization/42691
19223 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
19224 a pseudo to a constant and are merged, and adjust comments.
19225
19226 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
19227
19228 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
19229
19230 2010-01-15 Richard Guenther <rguenther@suse.de>
19231
19232 PR middle-end/42739
19233 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
19234 labels of computed or non-local gotos to the destination.
19235 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
19236 landing pad label is the first label.
19237
19238 2010-01-15 Richard Guenther <rguenther@suse.de>
19239
19240 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
19241
19242 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19243
19244 PR target/42747
19245 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
19246 to allow generation of the xssqrtdp instruction on power7.
19247 (sqrtdf2_fpr): Ditto.
19248
19249 2010-01-14 Jakub Jelinek <jakub@redhat.com>
19250
19251 PR middle-end/42674
19252 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
19253 functions with noreturn attribute.
19254
19255 PR c++/42608
19256 * varasm.c (declare_weak): Add weak attribute to decl if it
19257 doesn't have one already.
19258 (assemble_external): Only add decls to weak_decls if they also
19259 have weak attribute.
19260
19261 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
19262
19263 * var-tracking.c (var_reg_delete): Don't delete the association
19264 between REGs and values or one-part variables if the register
19265 isn't clobbered.
19266
19267 2010-01-14 Jakub Jelinek <jakub@redhat.com>
19268
19269 PR debug/42657
19270 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
19271 because its first operand is a non-localized variable.
19272
19273 2010-01-14 Martin Jambor <mjambor@suse.cz>
19274
19275 PR tree-optimization/42706
19276 * tree-sra.c (encountered_recursive_call): New variable.
19277 (encountered_unchangable_recursive_call): Likewise.
19278 (sra_initialize): Initialize both new variables.
19279 (callsite_has_enough_arguments_p): New function.
19280 (scan_function): Call decl and flags check only for IPA-SRA, check
19281 whether there is a recursive call and whether it has enough arguments.
19282 (all_callers_have_enough_arguments_p): New function.
19283 (convert_callers): Look for recursive calls only when
19284 encountered_recursive_call is set.
19285 (ipa_early_sra): Bail out either if
19286 !all_callers_have_enough_arguments_p or
19287 encountered_unchangable_recursive_call.
19288
19289 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19290
19291 * sel-sched.c: Add 2010 to copyright years.
19292 * sel-sched-ir.c: Likewise.
19293 * sel-sched-ir.h: Likewise.
19294
19295 2010-01-14 Martin Jambor <mjambor@suse.cz>
19296
19297 PR tree-optimization/42714
19298 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
19299 constructors specially.
19300
19301 2010-01-14 Andi Kleen <ak@linux.intel.com>
19302
19303 * config/i386/drivers-i386.c (detect_caches_intel):
19304 Add l2sizekb parameter and fill in.
19305 (host_detect_local_cpu): Add l2sizekb, fill in.
19306 Add Atom small cache heuristic.
19307
19308 2010-01-14 Andi Kleen <ak@linux.intel.com>
19309
19310 * config/i386/drivers-i386.c (detect_caches_cpuid4):
19311 Add level3 parameter and fill in.
19312 (detect_caches_intel): Handle level3 cache.
19313
19314 2010-01-14 Andi Kleen <ak@linux.intel.com>
19315
19316 * config/i386/drivers-i386.c (host_detect_local_cpu):
19317 Fix core duo detection.
19318
19319 2010-01-14 Andi Kleen <ak@linux.intel.com>
19320
19321 * config/i386/drivers-i386.c (host_detect_local_cpu):
19322 Fix Atom detection.
19323
19324 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19325
19326 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
19327 (rs6000_variable_issue_1): this. Use...
19328 (rs6000_variable_issue): here. Reimplement. Print debug info.
19329
19330 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19331
19332 * sel-sched-ir.c (sel_restore_other_notes): Rename to
19333 sel_restore_notes. Update all callers. Call reemit_notes
19334 for all insns.
19335
19336 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19337
19338 PR rtl-optimization/42246
19339 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
19340 loops.
19341
19342 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19343
19344 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
19345 all successors is the same as number of successors in current region.
19346
19347 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19348
19349 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
19350 to rename is not separable. Otherwise check that its LHS is not NULL.
19351
19352 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19353
19354 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
19355
19356 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19357
19358 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
19359 available registers when failed to discover LHS register class.
19360 Fix indentation. Update comment.
19361
19362 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19363 Alexander Monakov <amonakov@ispras.ru>
19364
19365 PR rtl-optimization/42389
19366 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
19367 to can_issue_more.
19368 (advance_state_on_fence): Likewise.
19369 (sel_target_adjust_priority): Print debug output only when
19370 sched_verbose >= 4, not 2.
19371 (get_expr_cost): Do not issue all unique insns on the next cycle.
19372 (fill_insns): Initialize can_issue_more from the value saved
19373 with the fence.
19374 * sel-sched-ir.c (flist_add): New parameter issue_more.
19375 Init FENCE_ISSUE_MORE with it.
19376 (merge_fences): Likewise.
19377 (init_fences): Update call to flist_add.
19378 (add_to_fences, add_clean_fence_to_fences)
19379 (add_dirty_fence_to_fences): Likewise.
19380 (move_fence_to_fences): Update call to merge_fences.
19381 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
19382 sched groups.
19383 * sel-sched-ir.h (struct _fence): New field issue_more.
19384 (FENCE_ISSUE_MORE): New accessor macro.
19385
19386 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19387
19388 PR rtl-optimization/42388
19389 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
19390 that have no predecessors nor successors. Do not call move_bb_info
19391 for empty blocks outside of current region.
19392
19393 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19394
19395 PR rtl-optimization/42294
19396 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
19397 * sel-sched.c (move_exprs_to_boundary): Transitively add all
19398 originators' originators.
19399
19400 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19401
19402 PR rtl-optimization/39453
19403 PR rtl-optimization/42246
19404 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
19405 for pipelining_p.
19406 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
19407
19408 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19409 Alexander Monakov <amonakov@ispras.ru>
19410
19411 PR middle-end/42245
19412 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
19413 (maybe_tidy_empty_bb): ... here. Make static. Add new
19414 argument. Update all callers.
19415 (tidy_control_flow): ... and here. Recompute topological order
19416 of basic blocks in region if necessary.
19417 (sel_redirect_edge_and_branch): Change return type. Return true
19418 if topological order might have been invalidated.
19419 (purge_empty_blocks): Export and move from...
19420 * sel-sched.c (purge_empty_blocks): ... here.
19421 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
19422 (maybe_tidy_empty_bb): Delete prototype.
19423 (purge_empty_blocks): Declare.
19424
19425 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19426
19427 PR rtl-optimization/42249
19428 * sel-sched.c (try_replace_dest_reg): When chosen register
19429 and original register is the same, do not bail out early, but
19430 still check all original insns for validity of replacing destination
19431 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
19432 in this case.
19433
19434 2010-01-14 Jakub Jelinek <jakub@redhat.com>
19435
19436 PR c/42721
19437 Port from no-undefined-overflow branch:
19438 2009-03-09 Richard Guenther <rguenther@suse.de>
19439
19440 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
19441
19442 2010-01-14 Richard Guenther <rguenther@suse.de>
19443
19444 PR lto/42665
19445 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
19446
19447 2010-01-14 Ira Rosen <irar@il.ibm.com>
19448
19449 PR tree-optimization/42709
19450 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
19451 as scalar type in creation of constant vector operand.
19452
19453 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19454
19455 PR testsuite/42414
19456 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
19457 (check-parallel-%): Match `testsuite' directory component only
19458 at the end.
19459
19460 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
19461
19462 PR translation/39521
19463 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
19464 strings with _().
19465
19466 2010-01-13 Richard Guenther <rguenther@suse.de>
19467
19468 PR tree-optimization/42730
19469 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
19470 offset zero.
19471
19472 2010-01-13 Steve Ellcey <sje@cup.hp.com>
19473
19474 PR target/pr42542
19475 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
19476 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
19477 them signed.
19478
19479 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
19480
19481 * config/bfin/libgcc-bfin.ver: Regenerate based on current
19482 libgcc-std.ver. Add entries for ___smulsi3_highpart and
19483 ___umulsi3_highpart.
19484
19485 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
19486 rather than schedule_insns if the pass is enabled.
19487
19488 2010-01-13 Martin Jambor <mjambor@suse.cz>
19489
19490 PR tree-optimization/42704
19491 * tree-sra.c (sra_modify_assign): Do not delete assignments to
19492 SSA_NAMEs.
19493
19494 2010-01-13 Martin Jambor <mjambor@suse.cz>
19495
19496 PR tree-optimization/42703
19497 * tree-sra.c (analyze_access_subtree): Check that we can build a
19498 reference to the original data within the aggregate.
19499
19500 2010-01-13 Richard Guenther <rguenther@suse.de>
19501
19502 PR tree-optimization/42705
19503 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
19504
19505 2010-01-13 Richard Guenther <rguenther@suse.de>
19506
19507 PR middle-end/42716
19508 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
19509
19510 2010-01-13 Jakub Jelinek <jakub@redhat.com>
19511
19512 PR debug/41371
19513 * var-tracking.c (values_to_unmark): New variable.
19514 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
19515 values_to_unmark vector. Moved body to...
19516 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
19517 instead queue it into values_to_unmark vector.
19518 (vt_find_locations): Free values_to_unmark vector.
19519
19520 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
19521
19522 * config/s390/s390.c (override_options): Set
19523 default of max-pending-list-length to 256
19524
19525 2010-01-13 Richard Guenther <rguenther@suse.de>
19526
19527 PR lto/42678
19528 * tree-pass.h (PROP_gimple_lcx): New.
19529 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
19530 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
19531 before the final cleanup_eh.
19532 (dump_properties): Dump PROP_gimple_lcx.
19533 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
19534 (tree_lower_complex_O0): Remove.
19535 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
19536 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
19537 tree_lower_complex, schedule TODO_update_ssa.
19538 * lto-streamer-out.c (output_function): Stream the functions
19539 properties.
19540 * lto-streamer-in.c (input_function): Likewise.
19541 (lto_read_body): Do not override them here.
19542
19543 2010-01-12 Joseph Myers <joseph@codesourcery.com>
19544
19545 PR c/42708
19546 * c-typeck.c (build_c_cast): Fold value cast to union type before
19547 wrapping it in a CONSTRUCTOR.
19548
19549 2010-01-12 Jakub Jelinek <jakub@redhat.com>
19550
19551 PR rtl-optimization/42699
19552 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
19553 involved.
19554
19555 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19556
19557 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
19558 SUBTARGET_WARN_UNUSED_SPEC): Move ...
19559 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
19560 SUBTARGET_WARN_UNUSED_SPEC): ... here
19561 * config/mips/iris5.h (LIBGCC_SPEC): Define.
19562
19563 2010-01-12 Julian Brown <julian@codesourcery.com>
19564
19565 * config/arm/neon-schedgen.ml (Utils): Don't try to
19566 open missing module.
19567 (find_with_result): New.
19568
19569 2010-01-12 Jakub Jelinek <jakub@redhat.com>
19570
19571 PR debug/42662
19572 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
19573 sharing when canonicalizing ({lt,ge}u (plus a b) b).
19574
19575 PR tree-optimization/42645
19576 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
19577 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
19578 decl_map, set processing_debug_stmt to -1 and return name without
19579 any remapping.
19580
19581 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
19582
19583 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
19584 binutils version, and reword target configuration description.
19585
19586 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
19587
19588 * config/avr/avr.h (LINKER_NAME): Remove.
19589
19590 2010-01-11 Janis Johnson <janis187@us.ibm.com>
19591
19592 PR target/42416
19593 * config/rs6000/rs6000.c (rs6000_override_options): On targets
19594 that support VSX, warn for -mno-altivec if vsx is not disabled,
19595 and disable vsx.
19596
19597 2010-01-11 Joseph Myers <joseph@codesourcery.com>
19598 Shujing Zhao <pearly.zhao@oracle.com>
19599
19600 PR translation/42469
19601 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
19602 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
19603 character between option name and help text.
19604 * c.opt (imultilib): Likewise.
19605
19606 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
19607
19608 * lto-streamer-out.c (output_unreferenced_globals): Output static
19609 variables.
19610
19611 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
19612
19613 PR rtl-optimization/42621
19614 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
19615 optimizing for size.
19616 (duplicate_computed_gotos): Remove now-redundant check.
19617
19618 2010-01-10 Steve Ellcey <sje@cup.hp.com>
19619
19620 PR target/37454
19621 * configure.ac: Save and restore LDFLAGS and LIBS
19622 * configure: Regenerate.
19623
19624 2010-01-10 Richard Guenther <rguenther@suse.de>
19625
19626 PR middle-end/42667
19627 * builtins.c (fold_builtin_strlen): Add type argument and
19628 convert the resulting length to it.
19629 (fold_builtin_1): Adjust.
19630
19631 2010-01-09 Jakub Jelinek <jakub@redhat.com>
19632
19633 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
19634 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
19635 1 insn.
19636 (num_insns_constant_wide): Adjust for that change.
19637
19638 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19639
19640 PR debug/42631
19641 * web.c (union_defs): Add used argument, to combine uses of
19642 uninitialized regs.
19643 (entry_register): Adjust type and tests of used argument.
19644 (web_main): Widen used for new use. Pass it to union_defs.
19645 * df.h (union_defs): Adjust prototype.
19646
19647 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19648
19649 PR debug/42630
19650 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
19651 uses in new incoming argument. Free body.
19652 (reset_debug_uses_in_loop): New.
19653 (analyze_insn_to_expand_var): Call the latter if the former found
19654 anything. Fix whitespace. Reject invalid dest overlaps before
19655 going through all insns in the loop.
19656
19657 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19658
19659 PR debug/42629
19660 * haifa-sched.c (dying_use_p): Debug insns don't count.
19661
19662 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19663
19664 PR middle-end/42363
19665 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
19666 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
19667 (verify_gimple_call): Reject LHS in noreturn calls.
19668
19669 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19670
19671 PR debug/42604
19672 PR debug/42395
19673 * tree-vect-loop-manip.c (adjust_info): New type.
19674 (adjust_vec): New pointer to vector.
19675 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
19676 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
19677 (slpeel_update_phis_for_duplicate_loop): Use them.
19678 (slpeel_update_phi_nodes_for_guard1): Likewise.
19679 (slpeel_update_phi_nodes_for_guard2): Likewise.
19680 (slpeel_tree_peel_loop_to_edge): Likewise.
19681 (vect_update_ivs_after_vectorizer): Likewise.
19682
19683 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19684
19685 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
19686 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
19687
19688 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19689
19690 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
19691 bogus uninitialized warning.
19692
19693 2010-01-09 Richard Guenther <rguenther@suse.de>
19694
19695 PR middle-end/42512
19696 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
19697 the evolution is compatible with the initial condition.
19698
19699 2010-01-09 Jakub Jelinek <jakub@redhat.com>
19700
19701 * gcc.c (process_command): Update copyright notice dates.
19702 * gcov.c (print_version): Likewise.
19703 * gcov-dump.c (print_version): Likewise.
19704 * mips-tfile.c (main): Likewise.
19705 * mips-tdump.c (main): Likewise.
19706
19707 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
19708
19709 PR target/41885
19710 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
19711 (rotlhi3): Delete.
19712 (rotlhi3_8): Delete.
19713 (rotlsi3): Delete.
19714 (rotlsi3_8): Delete.
19715 (rotlsi3_16): Delete.
19716 (rotlsi3_24): Delete.
19717 (rotl<mode>3): New.
19718 (*rotw<mode>3): New.
19719 (*rotb<mode>3): New.
19720 * config/avr/avr.c (avr_rotate_bytes): New function.
19721 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
19722
19723 2010-01-08 Steve Ellcey <sje@cup.hp.com>
19724
19725 PR target/37454
19726 * configure.ac: Modify -rdynamic check.
19727 * configure: Regenerate.
19728
19729 2010-01-08 DJ Delorie <dj@redhat.com>
19730
19731 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
19732 register popping order.
19733
19734 2010-01-08 Richard Guenther <rguenther@suse.de>
19735
19736 PR lto/42528
19737 * c.opt (fsigned-char): Also let LTO handle this option.
19738 (funsigned-char): Likewise.
19739
19740 2010-01-07 Richard Guenther <rguenther@suse.de>
19741
19742 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
19743 (gimple_op): Likewise.
19744 (gimple_op_ptr): Likewise.
19745 (gimple_assign_set_lhs): Remove gcc_assert.
19746 (gimple_assign_set_rhs1): Likewise.
19747 (gimple_assign_set_rhs2): Likewise.
19748 (gimple_call_set_lhs): Likewise.
19749 (gimple_call_set_fn): Likewise.
19750 (gimple_call_set_fndecl): Likewise.
19751 (gimple_call_fndecl): Likewise.
19752 (gimple_call_return_type): Likewise.
19753 (gimple_call_set_chain): Likewise.
19754 (gimple_call_num_args): Likewise.
19755 (gimple_call_set_arg): Likewise.
19756 (gimple_cond_set_code): Likewise.
19757 (gimple_cond_set_lhs): Likewise.
19758 (gimple_cond_set_rhs): Likewise.
19759 (gimple_cond_set_true_label): Likewise.
19760 (gimple_cond_set_false_label): Likewise.
19761 (gimple_label_set_label): Likewise.
19762 (gimple_goto_set_dest): Likewise.
19763 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
19764 (gimple_debug_bind_get_value): Likewise.
19765 (gimple_debug_bind_get_value_ptr): Likewise.
19766 (gimple_debug_bind_set_var): Likewise.
19767 (gimple_debug_bind_set_value): Likewise.
19768 (gimple_debug_bind_reset_value): Likewise.
19769 (gimple_debug_bind_has_value_p): Likewise.
19770 (gimple_return_retval_ptr): Remove gcc_assert.
19771 (gimple_return_retval): Likewise.
19772 (gimple_return_set_retval): Likewise.
19773 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
19774 (safe_referenced_var_iterator): Remove.
19775 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
19776 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
19777 (fill_referenced_var_vec): Remove.
19778 (first_readonly_imm_use): Remove redundant gcc_assert.
19779 (phi_arg_index_from_use): Combine gcc_asserts.
19780 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
19781 (first_imm_use_stmt): Remove redundant gcc_assert.
19782 * tree-cfg.c (verify_gimple_call): Verify function and chain
19783 operands. Verify arguments.
19784 (verify_types_in_gimple_stmt): Verify condition code and labels.
19785
19786 2010-01-07 Richard Guenther <rguenther@suse.de>
19787
19788 PR tree-optimization/42641
19789 * sese.c (rename_map_elt_info): Use the SSA name version, do
19790 not hash pointers.
19791
19792 2010-01-07 Jakub Jelinek <jakub@redhat.com>
19793
19794 PR tree-optimization/42625
19795 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
19796 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
19797
19798 2010-01-07 Duncan Sands <baldrick@free.fr>
19799
19800 * Makefile.in (PLUGIN_HEADERS): Add version.h.
19801
19802 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
19803
19804 PR target/42511
19805 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
19806 note itself is not function_invariant_p.
19807
19808 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
19809
19810 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
19811 Do not add the DF_NOTE problem.
19812 * store-motion.c (execute_rtl_store_motion): Likewise.
19813
19814 2010-01-07 Martin Jambor <mjambor@suse.cz>
19815
19816 PR tree-optimization/42157
19817 * tree-sra.c (compare_access_positions): Stabilize sort if both
19818 accesses have integer types, return zero immediately if they are the
19819 same.
19820
19821 2010-01-06 Richard Henderson <rth@redhat.com>
19822
19823 PR middle-end/41883
19824 * haifa-sched.c (add_to_note_list): Merge into ...
19825 (concat_note_lists): ... here, and ...
19826 (unlink_other_notes, rm_other_notes): Merge into...
19827 (remove_notes): ... here. Create REG_SAVE_NOTEs for
19828 NOTE_INSN_EPILOGUE_BEG.
19829
19830 2010-01-06 Richard Guenther <rguenther@suse.de>
19831
19832 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
19833 not inline regular functions into always-inline functions.
19834
19835 2010-01-06 Nick Clifton <nickc@redhat.com>
19836
19837 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
19838 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
19839 used together.
19840 (OVERRIDE_OPTIONS): Delete.
19841 (OPTIMIZATION_OPTIONS): Define.
19842 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
19843 * config/rx/rx.c (rx_handle_option): Issue an error message if
19844 -mcpu=rx200 and -fpu are used together.
19845 (rx_set_optimization_options): New function. Issue an error
19846 message if an optimization attribute attempts to reset the FPU/
19847 math optimization pairing.
19848 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
19849 * config/rx/rx.opt: Set the default to 32-bit doubles.
19850 * config/rx/t-rx: Add multilibs for -nofpu option.
19851 * doc/invoke.texi: Update documentation of RX options.
19852
19853 2010-01-06 Richard Guenther <rguenther@suse.de>
19854
19855 * tree-ssa-pre.c (name_to_id): New global.
19856 (alloc_expression_id): Simplify SSA name handling.
19857 (lookup_expression_id): Likewise.
19858 (init_pre): Zero name_to_id.
19859 (fini_pre): Free it.
19860
19861 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
19862
19863 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
19864
19865 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
19866
19867 PR target/42542
19868 * config/i386/sse.md (smaxv2di3): New.
19869 (umaxv2di3): Likewise.
19870 (sminv2di3): Likewise.
19871 (uminv2di3): Likewise.
19872
19873 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
19874
19875 PR target/42564
19876 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
19877 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
19878 (legitimize_tls_address): Likewise.
19879 (sparc_tls_referenced_p): Likewise.
19880 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
19881 and adjust calls to legitimize_pic_address.
19882 (legitimate_constant_p) Use sparc_tls_referenced_p.
19883 (legitimate_pic_operand_p): Likewise.
19884 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
19885 (sparc_tls_symbol_ref_1): Delete.
19886 (sparc_tls_referenced_p): Make static, recognize specific patterns.
19887 (legitimize_tls_address): Make static, handle CONST patterns.
19888 (legitimize_pic_address): Make static, remove unused parameter and
19889 adjust recursive calls.
19890 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
19891 and adjust call to legitimize_pic_address.
19892 (sparc_output_mi_thunk): Likewise.
19893
19894 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
19895 H.J. Lu <hongjiu.lu@intel.com>
19896
19897 PR target/42542
19898 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
19899 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
19900 operands to make them signed.
19901
19902 Revert:
19903 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
19904
19905 PR target/42542
19906 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
19907 GTU to GT for V4SI and V2DI.
19908
19909 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
19910 (umin<mode>3): Removed.
19911 (uminv8hi3): New.
19912 (uminv4si3): Likewise.
19913
19914 2010-01-05 Martin Jambor <mjambor@suse.cz>
19915
19916 PR tree-optimization/42462
19917 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
19918 current_function_decl to helper functions and macros.
19919
19920 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19921
19922 PR bootstrap/41771
19923 * flags.h: Don't include real.h.
19924 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
19925 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
19926 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
19927 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
19928 * dominance.c: Update copyright.
19929 * gimple.c (walk_gimple_op): Remove inline.
19930 * tree-ssa-reassoc.c: Include real.h.
19931 * Makefile.in (FLAGS_H): Remove $(REAL_H).
19932 (tree-ssa-reassoc.o): Depend on $(REAL_H).
19933
19934 2010-01-05 Nick Clifton <nickc@redhat.com>
19935
19936 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
19937 register to push into the stack frame when the accumulator has to
19938 be saved during interrupts.
19939
19940 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
19941
19942 * doc/invoke.texi: Remove the documentation about option
19943 -Wunreachable-code.
19944 * common.opt (Wunreachable-code): Preserved for backward
19945 compatibility.
19946 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
19947 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
19948 the backward compatibility flag section.
19949
19950 2010-01-05 Richard Guenther <rguenther@suse.de>
19951
19952 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
19953
19954 2010-01-05 Jakub Jelinek <jakub@redhat.com>
19955
19956 PR other/42611
19957 * cfgexpand.c (expand_one_var): Diagnose too large variables.
19958
19959 PR tree-optimization/42508
19960 * tree-sra.c (convert_callers): Check for recursive call
19961 by comparing cgraph nodes instead of decls.
19962 (modify_function): Call ipa_modify_formal_parameters also
19963 on all same_body aliases.
19964
19965 * cgraphunit.c (cgraph_materialize_all_clones): Compare
19966 cgraph nodes when checking for same_body aliases.
19967
19968 2010-01-05 Richard Guenther <rguenther@suse.de>
19969
19970 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
19971 allocation and lookup.
19972 (get_or_alloc_expr_for_constant): Likewise.
19973 (phi_translate): Sink allocation.
19974
19975 2010-01-04 Richard Guenther <rguenther@suse.de>
19976
19977 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
19978 a new entry only if needed.
19979 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
19980 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
19981 hashtable lookup.
19982 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
19983 the result array.
19984 (phi_translate): Handle CONSTANTs early.
19985
19986 2010-01-04 Martin Jambor <mjambor@suse.cz>
19987
19988 PR tree-optimization/42398
19989 * tree-sra.c (struct access): Removed flag grp_different_types.
19990 (dump_access): Do not dump the removed flag.
19991 (sort_and_splice_var_accesses): Do not set the removed flag.
19992 (sra_modify_expr): Check for type compatibility directly.
19993
19994 2010-01-04 Martin Jambor <mjambor@suse.cz>
19995
19996 PR tree-optimization/42366
19997 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
19998 edges with variable number of parameters.
19999 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
20000 flag instead of asserting it.
20001 (ipa_read_node_info): Read uses_analysis_done flag.
20002
20003 2010-01-04 Richard Guenther <rguenther@suse.de>
20004
20005 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
20006 iterative_hash_* as intended.
20007 (vn_reference_compute_hash): Likewise. Simplify hashing
20008 SSA names.
20009 (vn_reference_lookup_2): Likewise.
20010 (vn_nary_op_compute_hash): Likewise.
20011 (vn_phi_compute_hash): Likewise.
20012 (expressions_equal_p): Remove strange code.
20013 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
20014 (pre_expr_hash): Likewise. Simplify hashing SSA names.
20015 (bitmap_insert_into_set_1): Take value-id as parameter.
20016 (add_to_value): Pass it.
20017 (bitmap_insert_into_set): Likewise.
20018 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
20019
20020 2010-01-04 Jakub Jelinek <jakub@redhat.com>
20021
20022 PR driver/42442
20023 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
20024 (do_self_spec): For switches with SWITCH_IGNORE set set also
20025 SWITCH_IGNORE_PERMANENTLY.
20026 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
20027 of SWITCH_IGNORE.
20028
20029 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
20030
20031 * lto-streamer-out.c (output_unreferenced_globals): Output the full
20032 tree of an unreferenced global var.
20033
20034 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
20035
20036 PR target/42542
20037 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
20038 GTU to GT for V4SI and V2DI.
20039
20040 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
20041 (umin<mode>3): Removed.
20042 (uminv8hi3): New.
20043 (uminv4si3): Likewise.
20044
20045 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
20046
20047 PR lto/42581
20048 * collect2.c (main): Turn on trace in collect2 if -v is passed
20049 to gcc with LTO.
20050
20051 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
20052
20053 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
20054 description of expression operand.
20055
20056 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
20057
20058 * configure.ac: Add install-html to target_list for Make-hooks.
20059 * configure: Regenerate.
20060 * fortran/Make-lang.in (F95_HTMLFILES): New.
20061 (fortran.html): Use it.
20062 (fortran.install-html): New.
20063 * Makefile.in (install-html): Add lang.install-html.
20064 * java/Make-lang.in (JAVA_HTMLFILES): New.
20065 (java.html): Use it.
20066 (java.install-html): New.
20067 * objc/Make-lang.in (objc.install-html): New.
20068 * objcp/Make-lang.in (obj-c++.install-html): New.
20069 * cp/Make-lang.in (c++.install-html): New.
20070 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
20071 * lto/Make-lang.in (lto.install-html): New.
20072
20073 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
20074
20075 PR lto/42520
20076 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
20077
20078 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
20079
20080 PR rtl-optimization/41862
20081 * store-motion.c (store_killed_in_insn, compute_store_table,
20082 remove_reachable_equiv_notes, replace_store_insn,
20083 build_store_vectors): Ignore all DEBUG_INSNs.
20084
20085 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
20086
20087 PR lto/41564
20088 * common.opt: Add dumpdir.
20089
20090 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
20091 isn't specified.
20092 (option_map): Add --dumpdir.
20093
20094 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
20095
20096 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
20097
20098 * opts.c (decode_options): Try dump_dir_name first if
20099 dump_base_name isn't an absolute path.
20100 (common_handle_option): Handle OPT_dumpdir.
20101
20102 * toplev.c (dump_dir_name): New.
20103 (print_switch_values): Also ignore -dumpdir.
20104
20105 * toplev.h (dump_dir_name): New.
20106
20107 2010-01-03 Richard Guenther <rguenther@suse.de>
20108
20109 PR tree-optimization/42589
20110 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
20111 double-word expansion of bswap32.
20112
20113 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
20114
20115 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
20116 with BLOCK_FOR_INSN.
20117 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
20118 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
20119 noce_process_if_block): Likewise.
20120 * gcse.c (compute_local_properties, insert_expr_in_table,
20121 insert_set_in_table, canon_list_insert, find_avail_set,
20122 pre_insert_copy_insn): Likewise.
20123
20124 * basic-block.h (BLOCK_NUM): Move from here...
20125 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
20126
20127 2010-01-03 Richard Guenther <rguenther@suse.de>
20128
20129 PR tree-optimization/42438
20130 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
20131 contains_may_not_return_call flag.
20132 (BB_MAY_NOTRETURN): New.
20133 (valid_in_sets): Trapping nary operations are not valid
20134 in blocks that may not return.
20135 (insert_into_preds_of_block): Remove check for trapping expressions.
20136 (compute_avail): Compute also BB_MAY_NOTRETURN.
20137
20138 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
20139
20140 * doc/invoke.texi: Add 2010 to copyright years.
20141
20142 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
20143
20144 * config/sparc/sparc.c: Fix formatting nits.
20145
20146 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
20147 Alexander Monakov <amonakov@ispras.ru>
20148
20149 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
20150
20151 2010-01-02 Richard Guenther <rguenther@suse.de>
20152
20153 PR middle-end/42577
20154 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
20155 (simplify_switch_using_ranges): Mark to be removed edges
20156 as non-executable.
20157
20158 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20159
20160 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
20161
20162 * collect2.c (scan_libraries): Add missing argument in call to
20163 scan_prog_file.
20164
20165 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
20166
20167 PR target/42448
20168 * config/alpha/predicates.md (aligned_memory_operand): Return false
20169 for CQImode.
20170 (unaligned_memory_operand): Return true for CQImode.
20171 * config/alpha/alpha.c (get_aligned_mem): Assert that location
20172 doesn not cross aligned SImode word boundary.
20173
20174 2010-01-02 Anatoly Sokolov <aesok@post.ru>
20175
20176 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
20177 Remove.
20178 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
20179 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
20180
20181 2010-01-02 Richard Guenther <rguenther@suse.de>
20182
20183 PR lto/41597
20184 * toplev.c (compile_file): Emit LTO marker properly. Change
20185 it to __gnu_lto_v1.
20186 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
20187
20188 2010-01-01 Richard Guenther <rguenther@suse.de>
20189
20190 PR debug/42455
20191 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
20192
20193 2010-01-01 Richard Guenther <rguenther@suse.de>
20194
20195 PR c/42570
20196 * c-decl.c (grokdeclarator): For zero-size arrays force
20197 structural equality checks as layout_type does.
20198
20199 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
20200
20201 * builtins.c: Update copyright to 2010.
20202
20203 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
20204
20205 PR lto/42531
20206 * lto-streamer-out.c (produce_asm): Revert the last change.
20207 (copy_function): Likewise.
20208
20209 * lto-streamer.c (lto_get_section_name): Skip any leading
20210 asterisk in name.
20211
20212 2010-01-01 Richard Guenther <rguenther@suse.de>
20213
20214 PR middle-end/42559
20215 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
20216 for LABEL_DECLs.
20217
20218 \f
20219 Copyright (C) 2010 Free Software Foundation, Inc.
20220
20221 Copying and distribution of this file, with or without modification,
20222 are permitted in any medium without royalty provided the copyright
20223 notice and this notice are preserved.