48206e579fcc4bd62b6cc3f97f750e70968e9531
[gcc.git] / gcc / ChangeLog
1 2010-05-31 Richard Guenther <rguenther@suse.de>
2
3 * tree-ssa-structalias.c (find_func_aliases): Handle
4 BUILT_IN_RETURN.
5
6 2010-05-30 Jan Hubicka <jh@suse.cz>
7
8 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
9
10 2010-05-30 Richard Guenther <rguenther@suse.de>
11
12 PR lto/42975
13 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
14 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
15 no longer needed.
16
17 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
18
19 * config/darwin.c (output_objc_section_asm_op): Add comment.
20 (name_needs_quotes): Add '_' to list of valid comment chars.
21 (machopic_output_function_base_name): Remove unneeded quotes.
22 (darwin_encode_section_info): Adjust asm whitespace.
23 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
24 (ASM_OUTPUT_LOCAL): Ditto.
25 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
26 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
27 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
28
29 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
30
31 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
32 RS6000_OUTPUT_BASENAME unconditionally.
33 (rs6000_output_function_epilogue): Likewise.
34
35 2010-05-30 Jan Hubicka <jh@suse.cz>
36
37 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
38 nodes
39
40 2010-05-30 Richard Guenther <rguenther@suse.de>
41
42 * tree-cfg.c (verify_gimple_assign_single): Implement
43 verification for COND_EXPR rhs.
44
45 2010-05-30 Jan Hubicka <jh@suse.cz>
46
47 * cgraph.h (cgraph_dump_file): Declare.
48 * cgraphunit.c (cgraph_dump_file): Export.
49 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less
50 verbose.
51
52 2010-05-30 Jan Hubicka <jh@suse.cz>
53
54 * dwarf2out.c (reference_to_unused,
55 premark_types_used_by_global_vars_helper): Avoid creation of new
56 varpool nodes.
57
58 2010-05-30 Jan Hubicka <jh@suse.cz>
59
60 * cgraph.h (cgraph_node_cannot_return,
61 cgraph_edge_cannot_lead_to_return): New functions.
62 * cgraph.c (cgraph_node_cannot_return,
63 cgraph_edge_cannot_lead_to_return): Use them.
64 * ipa-pure-const.c (pure_const_names): New static var.
65 (check_call): Handle calls not leading to return.
66 (pure_const_read_summary): Dump info read.
67 (propagate): Dump info about propagation process; ignore side
68 effects of functions not leading to exit; fix handling of
69 pure functions.
70
71 2010-05-30 Jan Hubicka <jh@suse.cz>
72
73 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
74 for tail call epilogues.
75
76 2010-05-30 Jan Hubicka <jh@suse.cz>
77
78 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
79 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
80 dump files.
81
82 2010-05-29 Jan Hubicka <jh@suse.cz>
83
84 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
85 node; remove references in node we no longer keep in cgrpah but need
86 body of.
87
88 2010-05-29 Jan Hubicka <jh@suse.cz>
89
90 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
91
92 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
93
94 PR target/44165
95 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
96
97 2010-05-29 Jan Hubicka <jh@suse.cz>
98
99 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
100 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
101 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
102 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
103 debug_names_replaced_by, debug_update_ssa): Likewise.
104 * sbitmap.c (debug_sbitmap): Likewise.
105 * genrecog.c (debug_decision, debug_decision_list): Likewise.
106 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
107 debug_tree_chain): Likewise.
108 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
109 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
110 * optabs.c (debug_optab_libfuncs): Likewise.
111 (verify_loop_closed_ssa): Likewise.
112 * value-prof.c (verify_histograms): Likewise.
113 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
114 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
115 * cfghooks.c (verify_flow_info): Likewise.
116 * fold-const.c (debug_fold_checksum): Likewise.
117 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
118 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
119 Likewise.
120 * omega.c (debug_omega_problem): Likewise.
121 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
122 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
123 * dominance.c (verify_dominators, debug_dominance_info,
124 debug_dominance_tree): Likewise.
125 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
126 * df_regno_debug, df_ref_debug,
127 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
128 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
129 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
130 * sel-sched.c (debug_state): Likewise.
131 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
132 Likewise.
133 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
134 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
135 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
136 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
137 Likewise.
138 * c-pretty-print.c (debug_c_tree): Likewise.
139 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
140 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
141 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
142 * ebitmap.c (debug_ebitmap): Likewise.
143 * function.c (debug_find_var_in_block_tree): Likewise.
144 * print-rtl.c (debug_rtx): Likewise.
145 (debug_rtx_count): Likewise.
146 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
147 * stor-layout.c (debug_rli): Likewise.
148 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
149 * tree-data-ref.c (debug_data_references,
150 debug_data_dependence_relations, debug_data_reference,
151 debug_data_dependence_relation, debug_rdg_vertex,
152 debug_rdg_component, debug_rdg): Likewise.
153 * tree-affine.c (debug_aff): Likewise.
154 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
155 Likewise.
156 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
157 * emit-rtl.c (verify_rtl_sharing): Likewise.
158 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
159 debug_value_expressions): Likewise.
160 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
161 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
162 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
163 * cfglayout.c (verify_insn_chain): Likewise.
164 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
165 debug_clast_stmt, debug_generated_program): Likewise.
166 * ggc-page.c (debug_print_page_list): Likewise.
167 * tree-ssa-ter.c (debug_ter): Likewise.
168 * graphite-dependences.c (debug_pddr): Likewise.
169 * sched-deps.c (debug_ds): Likewise.
170 * tree-ssa.c (verify_ssa): Likewise.
171 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
172 debug_scattering_functions, debug_iteration_domains, debug_pdr,
173 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
174 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
175 * tree-inline.c (debug_find_tree): Likewise.
176 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
177 debug_ppl_powerset_matrix): Likewise.
178 * var-tracking.c (debug_dv): Likewise.
179 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
180 * cfgloop.c (verify_loop_structure): Likewise.
181 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
182 * c-common.c (verify_sequence_points): Likewise.
183 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
184 debug_candidates, debug_rgn_dependencies): Likewise.
185 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
186 * debug_constraint_graph, debug_solution_for_var,
187 debug_sa_points_to_info): Likewise.
188 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
189 Likewie.
190 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
191 debug_loops, debug_loop, debug_loop_num): Likewise.
192 * passes.c (debug_pass): Likewise.
193 (dump_properties): Likewise; add cfglayout property.
194 (debug_properties): Likewise.
195 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
196 * varpool.c (debug_varpool): Likewise.
197 * regcprop.c (debug_value_data): Likewise.
198 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
199 debug_immediate_uses_for): Likewise.
200
201 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
202
203 PR bootstrap/44315
204 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
205 Filter out insn-flags.h.
206
207 2010-05-29 Jan Hubicka <jh@suse.cz>
208
209 * cgraph.h (struct varpool_node_set_def,
210 struct cgraph_node_set_def): Remove unused AUX pointer.
211 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
212 VEC_empty macro.
213
214 2010-05-29 Jan Hubicka <jh@suse.cz>
215
216 PR middle-end/44324
217 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
218
219 2010-05-29 Richard Guenther <rguenther@suse.de>
220
221 * lto-streamer.c (cached_bp): New global variable.
222 (bitpack_create): Return the cached bitpack, if available.
223 (bitpack_delete): Clear and cache the bitpack, if appropriate.
224 (bp_pack_value): Remove redundant asserts.
225
226 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
227
228 PR middle-end/44306
229 * tree-if-conv.c (is_true_predicate): New.
230 (is_predicated): Use is_true_predicate.
231 (add_to_predicate_list): Same. Do not use unshare_expr.
232 (add_to_dst_predicate_list): Same.
233
234 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
235
236 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
237 field on edges.
238 (predicate_bbs): Same.
239 (clean_predicate_lists): Same.
240 (find_phi_replacement_condition): Do not AND the predicate from
241 edge->aux.
242
243 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
244
245 PR bootstrap/44315
246 * Makefile.in (build/gencondmd.o): Add a missing `\'.
247
248 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
249
250 PR target/44261
251 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
252 (negdf2): Adjust expander pattern and use negdf2_slow.
253 (negsf2): Likewise.
254
255 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
256
257 * basic-block.h (struct control_flow_graph): Move last_label_uid field
258 up.
259 * df.h (struct df_base_ref): Move regno field up.
260 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
261 * expr.h (struct separate_ops): Move location field up.
262 * optabs.h (struct optab_d): Move libcall_basename field down.
263 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
264 * config/i386/i386.h (struct machine_function): Convert call_abi field
265 into a bitfield. Move cfa field to the end of the structure.
266
267 2010-05-29 Jan Hubicka <jh@suse.cz>
268
269 * varpool.c (varpool_get_node): Fix lookup.
270
271 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
272
273 * config/spu/spu-protos.h: Do not include rtl.h. Protect
274 RTL specific prototypes with #ifdef RTX_CODE.
275 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
276 * config/spu/t-spu-elf: Fix dependencies.
277
278 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
279
280 2010-05-29 Mike Stump <mikestump@comcast.net>
281
282 PR bootstrap/44315
283 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
284 TM_H when building to avoid dependency loops.
285
286 2010-05-29 Jan Hubicka <jh@suse.cz>
287
288 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
289 refs and body; not the whole node for masters of materialized
290 clones.
291
292 2010-05-29 Mike Stump <mikestump@comcast.net>
293
294 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
295
296 2010-05-29 Jan Hubicka <jh@suse.cz>
297
298 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
299 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
300 use of clone_function_name.
301 * cgraph.h (cgraph_create_virtual_clone,
302 cgraph_function_versioning): update prototypes.
303 (clone_function_name): Declare.
304 * ipa-cp.c (ipcp_insert_stage): Update call of
305 cgraph_create_virtual_clone.
306 * omp-low.c (create_omp_child_function_name): Use
307 cgraph_create_virtual_clone.
308 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
309 (cgraph_function_versioning): Take SUFFIX argument; produce new name
310 and make decl local.
311
312 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
313
314 * vec.h: Include statistics.h
315 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
316 with VEC_H.
317
318 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
319
320 * c-lex.c: Do not include c-tree.h.
321 * c-pretty-print.c: Likewise.
322 * c-opts.c: Likewise.
323 * c-gimplify.c: Likewise.
324 * c-common.c: Likewise.
325 * c-dump.c: Likewise. Include c-common.h.
326
327 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
328
329 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
330 before including diagnostic-core.h.
331 (c_cpp_error): New prototype moved from c-tree.h.
332 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
333 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
334 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
335 (c_cpp_error): Prototype moved to c-common.h.
336 * Makefile.in: Update dependency for C_COMMON_H.
337
338 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
339
340 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
341 * c-common.c (c_register_addr_space): Remove here.
342 * c-decl.c (c_register_addr_space): Re-add here.
343
344 2010-05-28 Mike Stump <mikestump@comcast.net>
345
346 * config/darwin-c.c: Remove c-tree.h include.
347
348 2010-05-28 Joseph Myers <joseph@codesourcery.com>
349
350 * gcc.c: Include diagnostic.h.
351 (error_count): Remove. All users changed to use errorcount.
352 (programname): Remove. All users changed to use progname.
353 (fancy_abort, internal_error, fatal_error, error, warning, inform,
354 fnotice): Remove.
355 (execute): Don't include "Internal error" and bug reporting
356 information in argument of internal_error call.
357 (process_command): Don't increment error_count after calling
358 perror_with_name.
359 (input_filename): Rename to gcc_input_filename. All users
360 changed.
361 (main): Call diagnostic_initialize. Register delete_temp_files
362 with atexit. Use seen_error to test for errors.
363 * gcc.h: Include diagnostic-core.h.
364 (fatal_error, error, warning): Remove.
365 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
366 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
367 (gcc.o): Update dependencies.
368
369 2010-05-28 Jeff Law <law@redhat.com>
370
371 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
372 functions.
373 * ira.h (ira_bad_reload_regno): Declare
374 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
375
376 * ira-color.c (update_curr_costs): Free updated hard reg costs.
377 (ira_reassign_conflict_allocnos): Remove bogus asserts.
378 (allocno_reload_assign): Likewise.
379
380 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
381
382 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
383 build1_stat.
384
385 2010-05-28 Richard Guenther <rguenther@suse.de>
386
387 PR lto/44312
388 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
389 Stream fixed-point constants mode.
390 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
391 and TYPE_PRECISION.
392 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
393 Stream fixed-point constants mode.
394 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
395 and TYPE_PRECISION.
396
397 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
398
399 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
400 only place it was called from.
401 (number_of_latch_executions): Do not return chrec_dont_know when the
402 may_be_zero is a runtime condition: instead, return a COND_EXPR
403 including the may_be_zero condition.
404 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
405 of nb_iterations.
406 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
407 COND_EXPRs.
408
409 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
410
411 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
412 generate COND_EXPRs for degenerate_phi_result.
413
414 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
415
416 PR middle-end/44293
417 * tree-if-conv.c (if_convertible_loop_p): Check the
418 if-convertibility of phi nodes in non predicated BBs.
419
420 2010-05-28 Joseph Myers <joseph@codesourcery.com>
421
422 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
423
424 2010-05-28 Joseph Myers <joseph@codesourcery.com>
425
426 PR driver/15303
427 * gcc.c (inform, warning, inform): New functions.
428 (fatal_ice): Rename to internal_error; change cmsgid parameter to
429 gmsgid. All callers changed.
430 (notice): Rename to fnotice; add parameter fp. All callers
431 changed.
432 (fatal_error): Rename to fatal_signal. All users changed.
433 (fatal): Rename to fatal_error; change cmsgid parameter to
434 gmsgid. All callers changed.
435 (process_command): Use warning instead of error for warnings.
436 (end_going_arg): Don't use _() around argument of error.
437 (do_spec_1): Use inform for message from %n specs. Use warning
438 instead of error for warnings.
439 (main): Use inform for comparison messages. Use warning for
440 message about unused linker input.
441 (error): Increment error_count. Print "error: ".
442 * gcc.h (fatal): Change to fatal_error.
443 (warning): Declare.
444 * config/darwin-driver.c (darwin_default_min_version): Use warning
445 instead of fprintf for warnings.
446 * cppspec.c (lang_specific_driver): Use fatal_error instead of
447 fatal.
448
449 2010-05-28 Julian Brown <julian@codesourcery.com>
450
451 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
452 (*thumb2_addsi3_compare0_scratch): New.
453 * config/arm/constraints.md (Pv): New.
454 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
455 for ARM mode only.
456 (*addsi3_compare0_scratch): Likewise.
457
458 2010-05-28 Jan Hubicka <jh@suse.cz>
459
460 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
461 check.
462 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
463 only on local statics.
464
465 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
466
467 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
468
469 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
470
471 PR bootstrap/44314
472 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
473 (OPTION_GLIBC): Define.
474
475 2010-05-28 Jakub Jelinek <jakub@redhat.com>
476
477 PR debug/41048
478 * dwarf2out.c (double_int_type_size_in_bits): New function.
479 (round_up_to_align): Change first argument and return value to
480 double_int.
481 (field_byte_offset): Work internally on double_ints.
482
483 PR target/43636
484 * builtins.c (expand_movstr): Use a temporary pseudo instead
485 of target even when target is not NULL and not const0_rtx, but
486 fails movstr predicate.
487 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
488
489 2010-05-28 Joseph Myers <joseph@codesourcery.com>
490
491 * final.c (rest_of_clean_state): Use %m in errors instead of
492 strerror (errno).
493 * gengtype.c (read_input_list, close_output_files): Use xstrerror
494 instead of strerror.
495 * toplev.c (process_options): Use %m in errors instead of strerror
496 (errno).
497 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
498 (errno).
499
500 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
501
502 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
503 (ix86_canonical_va_list_type): Make static. Add declaration.
504 (ix86_enum_va_list): Make static. Reindent.
505 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
506 (ix86_canonical_va_list_type): Ditto.
507 (ix86_enum_va_list): Ditto.
508
509 2010-05-28 Richard Guenther <rguenther@suse.de>
510
511 * lto-wrapper.c (run_gcc): With -save-temps generate a
512 user-visible ltrans filename. Fixup ltrans unit numbering.
513
514 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
515
516 * c-common.c (c_common_nodes_and_builtins): Replace use
517 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
518 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
519 to ix86_enum_va_list.
520 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
521 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
522 (TARGET_ENUM_VA_LIST_P): Add hook description.
523 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
524 * target.h (gcc_target): Add enum_va_list hook.
525
526 PR bootstrap/44299
527 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
528 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
529 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
530
531 2010-05-28 Alan Modra <amodra@gmail.com>
532
533 PR target/44266
534 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
535 emit_library_call machinery to set up __tls_get_addr calls.
536
537 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
538
539 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
540
541 2010-05-28 Dodji Seketeli <dodji@redhat.com>
542
543 Revert fix for PR c++/44188
544 * c-common.c (is_typedef_decl): Revert the moving of this
545 definition ...
546 * tree.c (is_typedef_decl): ... here.
547 (typdef_variant_p): Revert the moving of this definition
548 here from gcc/cp/tree.c.
549 * c-common.h (is_typedef_decl): Revert the moving of this
550 declaration ...
551 * tree.h (is_typedef_decl): ... here.
552 (typedef_variant_p): Revert the moving of this declaration here
553 from gcc/cp/cp-tree.h
554 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
555 (gen_tagged_type_die): Revert the splitting out of ...
556 (gen_type_die_with_usage): ... this function. Revert the anonymous
557 tagged type handling.
558 (gen_typedef_die): Revert emitting DW_TAG_typedef for
559 typedefs naming anonymous tagged types.
560
561 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
562
563 * config/rs6000/rs6000-modes.def (PSImode): Delete.
564
565 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
566
567 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
568 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
569 throughout.
570 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
571 "xer" to "ca".
572 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
573 XER_REGS to CA_REGS throughout.
574 * config/rs6000/rs6000.h: Same.
575 (ADDITIONAL_REGISTER_NAMES): Add "xer".
576 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
577 that mode_iterator "P" is the size for arithmetic carries as well.
578 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
579
580 2010-05-28 Jakub Jelinek <jakub@redhat.com>
581
582 PR bootstrap/44255
583 * combine.c (struct rtx_subst_pair): Define unconditionally.
584 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
585 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
586 Call make_compound_operation on pair->to.
587 (propagate_for_debug): Don't call make_compound_operation here.
588 Always use simplify_replace_fn_rtx.
589
590 2010-05-27 Sterling Augustine <sterling@tensilica.com>
591
592 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
593 * config/xtensa/xtensa.c (override_options): Check
594 TARGET_FORCE_NO_PIC and set flag_pic.
595 * config/xtensa/xtensa.opt: Document -mforce-no-pic
596
597 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
598
599 PR bootstrap/44299
600 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
601 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
602
603 2010-05-27 Joseph Myers <joseph@codesourcery.com>
604
605 * diagnostic-core.h: New. Contents moved from diagnostic.h and
606 toplev.h.
607 * diagnostic.c: Don't include toplev.h.
608 (progname): Define. Moved from toplev.c.
609 (seen_error): New function.
610 * diagnostic.h: Include diagnostic-core.h.
611 (diagnostic_t, emit_diagnostic): Don't declare here.
612 * toplev.c (progname): Move to toplev.c.
613 (emit_debug_global_declarations, compile_file, finalize,
614 do_compile, toplev_main): Use seen_error.
615 * toplev.h: Include diagnostic-core.h.
616 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
617 internal_error, warning, warning_at, error, error_n, error_at,
618 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
619 verbatim, fnotice, progname): Move to diagnostic-core.h.
620 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
621 (expand_builtin_expect): Use seen_error.
622 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
623 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
624 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
625 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
626 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
627 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
628 errorcount for errors.
629 * c-opts.c (c_common_finish): Use seen_error.
630 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
631 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
632 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
633 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
634 (get_coverage_counts): Use seen_error.
635 * dwarf2out.c (dwarf2out_finish): Use seen_error.
636 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
637 gimplify_body): Use seen_error.
638 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
639 * ipa-pure-const.c (gate_pure_const): Use seen_error.
640 * ipa-reference.c (gate_reference): Use seen_error.
641 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
642 * lambda-code.c: Include diagnostic-core.h instead of
643 diagnostic.h.
644 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
645 * lto-compress.c: Include diagnostic-core.h instead of
646 diagnostic.h.
647 * lto-section-in.c: Include diagnostic-core.h instead of
648 diagnostic.h.
649 * lto-streamer-out.c: Include diagnostic-core.h instead of
650 diagnostic.h.
651 * lto-streamer.c: Include diagnostic-core.h instead of
652 diagnostic.h.
653 (gate_lto_out): Use seen_error.
654 * matrix-reorg.c: Include diagnostic-core.h instead of
655 diagnostic.h.
656 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
657 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
658 (gate_expand_omp, lower_omp_1): Use seen_error.
659 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
660 (rest_of_decl_compilation, rest_of_type_compilation,
661 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
662 * tree-cfg.c (label_to_block_fn): Use seen_error.
663 * tree-inline.c (optimize_inline_calls): Use seen_error.
664 * tree-mudflap.c (mudflap_finish_file): Use
665 seen_error.
666 * tree-optimize.c (gate_all_optimizations,
667 gate_all_early_local_passes, gate_all_early_optimizations): Use
668 seen_error.
669 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
670 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
671 (varpool_remove_unreferenced_decls,
672 varpool_assemble_pending_decls): Use seen_error.
673 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
674 (TOPLEV_H, DIAGNOSTIC_H): Update.
675 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
676 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
677 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
678 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
679 coverage.o, lambda-code.o): Update dependencies.
680
681 2010-05-25 Dodji Seketeli <dodji@redhat.com>
682
683 PR c++/44188
684 * c-common.c (is_typedef_decl): Move this definition ...
685 * tree.c (is_typedef_decl): ... here.
686 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
687 * c-common.h (is_typedef_decl): Move this declaration ...
688 * tree.h (is_typedef_decl): ... here.
689 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
690 * dwarf2out.c (is_naming_typedef_decl): New function.
691 (gen_tagged_type_die): Split out of ...
692 (gen_type_die_with_usage): ... this function. When an anonymous
693 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
694 is emitted for the typedef.
695 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
696 anonymous tagged types.
697
698 2010-05-27 Jason Merrill <jason@redhat.com>
699
700 * print-tree.c (debug_vec_tree): New fn.
701 (print_vec_tree): New fn.
702 * tree.h: Declare them.
703 * gdbinit.in (pvt): New command.
704
705 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
706
707 * gdbinit.in (pdd): New command.
708
709 2010-05-27 Jan Hubicka <jh@suse.cz>
710
711 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
712 (update_caller_keys): Return early if there are no callers;
713 only update fibheap when decresing the key.
714 (update_callee_keys): Avoid recursion.
715 (decide_inlining_of_small_functions): When badness does not match;
716 re-insert into fibheap.
717
718 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
719
720 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
721 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
722 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
723 (ALL_HOST_OBJS): Now a union of the above two.
724 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
725 all files in ALL_HOST_FRONTEND_OBJS.
726 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
727
728 * c-common.c: Pretend to be a backend file by undefining
729 IN_GCC_FRONTEND (still need rtl.h here).
730
731 2010-05-27 Jan Hubicka <jh@suse.cz>
732
733 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
734 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
735
736 2010-05-27 Jan Hubicka <jh@suse.cz>
737
738 * sched-ebb.c: Rename struct deps to struct deps_desc.
739 * ddg.c: Likewise.
740 * sel-sched-ir.c: Likewise.
741 * sched-deps.c: Likewise.
742 * sched-int.h: Likewise.
743 * sched-rgn.c: Likewise.
744
745 2010-05-27 Jon Beniston <jon@beniston.com>
746
747 PR 43726
748 * config/lm32/lm32.h: Remove definition of
749 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
750
751 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
752
753 PR lto/44230
754 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
755
756 2010-05-27 Richard Guenther <rguenther@suse.de>
757
758 PR tree-optimization/44284
759 * tree-vect-stmts.c (vectorizable_assignment): Handle
760 sign-changing conversions as simple copy.
761
762 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
763
764 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
765 Bionic C library.
766 (__gthread_active_p): Check for pthread_create if compiling against
767 Bionic C library.
768
769 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
770
771 Support compilation for Android platform. Reimplement -mandroid.
772
773 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
774 (*android*): Set ANDROID_DEFAULT.
775 (arm*-*-linux*): Include linux-android.h.
776 (arm*-*-eabi*): Don't include previous -mandroid implementation.
777 * config/arm/eabi.h: Remove, move Android-specific parts ...
778 * config/linux-android.h: ... here. New file.
779 * config/arm/eabi.opt: Rename to ...
780 * config/linux-android.opt: ... this.
781 (mandroid): Allow -mno-android option. Initialize based on
782 ANDROID_DEFAULT.
783 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
784 Move logic to corresponding LINUX_TARGET_* macros.
785 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
786 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
787 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
788 Android definitions.
789 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
790 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
791 Document.
792
793 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
794
795 Add support for Bionic C library
796
797 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
798 macro.
799 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
800 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
801
802 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
803 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
804 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
805 to support multiple C libraries. Handle Bionic.
806 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
807 (BIONIC_DYNAMIC_LINKER64): Define.
808 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
809 Update.
810 (TARGET_HAS_SINCOS): Enable for Bionic.
811
812 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
813 the last option specified on command line take effect.
814 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
815 (mbionic): New.
816 (mglibc, muclibc): Update.
817
818 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
819 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
820 DEFAULT_LIBC.
821
822 * doc/invoke.texi (-mglibc, -muclibc): Update.
823 (-mbionic): Document.
824
825 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
826
827 * c-common.h (c_register_addr_space): Add prototype.
828 (ADDR_SPACE_KEYWORD): Remove.
829 * c-common.c (c_register_addr_space): New function.
830 (c_addr_space_name): Reimplement.
831 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
832
833 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
834 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
835
836 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
837 Remove TARGET_ADDR_SPACE_KEYWORDS.
838
839 2010-05-27 Joseph Myers <joseph@codesourcery.com>
840
841 * input.c: New file.
842 * input.h (main_input_filename): Move declaration to toplev.h.
843 * toplev.c (input_location, line_table): Move to input.c
844 * toplev.h (main_input_filename): Move declaration from input.h.
845 * tree.c (expand_location): Move to input.c.
846 * Makefile.in (OBJS-common): Add input.o.
847 (input.o): Add dependencies.
848
849 2010-05-27 Richard Guenther <rguenther@suse.de>
850
851 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
852 for non-existant files.
853 (fork_execute): Mark args_name file as deleted.
854
855 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
856
857 PR bootstrp/44287
858 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
859 (narrow_signed_type): Likewise.
860
861 2010-05-26 Jan Hubicka <jh@suse.cz>
862
863 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
864 edge only when checking is enabled; check using former_clone_of;
865 check inline clones too.
866 (cgraph_materialize_clone): Record former_clone_of pointer.
867 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
868 combining redirections; dump args_to_skip bitmap
869 (cgraph_materialize_all_clones): Do no redirection here.
870 * ipa-inline.c (inline_transform): Do redirection here.
871 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
872 cheking only).
873
874 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
875
876 * config/avr/avr-c.c: Do not include regs.h.
877 Include cpplib.h for cpp_define and tree.h for c-common.h.
878 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
879 * config/avr/t-avr: Fix dependencies for avr-c.o.
880
881 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
882
883 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
884 string instead of SYMBOL_REF rtx.
885 * rtl.h (set_stack_check_libfunc): Move prototype from here...
886 * libfuncs.h: ...to here. Adjust for explow.c change.
887
888 2010-05-26 Joseph Myers <joseph@codesourcery.com>
889
890 * pretty-print.c: Don't include ggc.h.
891 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
892 (identifier_to_locale): Use them for allocation.
893 * pretty-print.h (identifier_to_locale_alloc,
894 identifier_to_locale_free): Declare.
895 * toplev.c (alloc_for_identifier_to_locale): New.
896 (general_init): Set identifier_to_locale_alloc and
897 identifier_to_locale_free.
898 * Makefile.in (pretty-print.o): Update dependencies.
899
900 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
901
902 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
903 pointer types if they have different alignment or mode.
904
905 2010-05-26 Anatoly Sokolov <aesok@post.ru>
906
907 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
908 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
909 * config/sparc/sparc-protos.h (function_value): Remove declaration.
910 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
911 sparc_function_value_regno_p): New functions.
912 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
913 TARGET_FUNCTION_VALUE_REGNO_P): Define.
914 (function_value): Rename to...
915 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
916 argument to 'outgoing'.
917 (function_arg_record_value, function_arg_union_value,
918 function_arg_vector_value): Update comment.
919
920 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
921
922 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
923 (fde_needed_for_eh_p): New predicate.
924 (output_call_frame_info): Use it throughout to decide whether FDEs
925 are needed for EH purpose.
926 (dwarf2out_begin_prologue): Reorder assignments.
927
928 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
929
930 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
931 special case loop->header.
932 (is_predicated): New.
933 (if_convertible_loop_p): Call it.
934
935 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
936
937 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
938 iterator in parameter. Do not generate code during the analysis.
939 (tree_if_convert_cond_stmt): Removed.
940 (tree_if_convert_stmt): Removed.
941 (predicate_bbs): New.
942 (if_convertible_loop_p): Call predicate_bbs.
943 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
944 now contains all the analysis part.
945
946 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
947
948 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
949 statements in the analysis part.
950 (tree_if_convert_stmt): Update comment.
951 (remove_conditions_and_labels): New.
952 (combine_blocks): Call remove_conditions_and_labels.
953 (tree_if_conversion): Update comment.
954
955 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
956
957 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
958 than 2 predecessors or more than 2 successors.
959
960 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
961
962 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
963 of loops in which the data dependence analysis fails.
964
965 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
966
967 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
968 CDI_POST_DOMINATORS.
969 (tree_if_conversion): Same.
970
971 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
972
973 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
974
975 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
976
977 * tree-if-conv.c: Update copyright years. Fix comments.
978 Fix indentation.
979
980 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
981
982 * builtin-types.def (BT_INT128): New primitive type.
983 (BT_UINT128): Likewise.
984 * c-common.c (c_common_r): Add __int128 keyword.
985 (c_common_type_for_size): Handle __int128.
986 (c_common_type_for_mode): Likewise.
987 (c_common_signed_or_unsigned_type): Likewise.
988 (c_common_nodes_and_builtins): Add builtin type
989 if target supports 128-bit integer scalar.
990 * c-common.h (enum rid): Add RID_INT128.
991 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
992 if target supports 128-bit integer scalar.
993 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
994 (finish_declspecs): Likewise.
995 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
996 (c_token_starts_declspecs): Likewise.
997 (c_parser_declspecs): Likewise.
998 (c_parser_attributes): Likewise.
999 (c_parser_objc_selector): Likewise.
1000 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
1001 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
1002 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
1003 * tree.c (make_or_reuse_type): Likewise.
1004 (make_unsigned_type): Likewise.
1005 (build_common_tree_nodes_2): Likewise.
1006 * tree.h (enum integer_type_kind): Add itk_int128 and
1007 itk_unsigned_int128.
1008 (int128_integer_type_node): New define.
1009 (int128_unsigned_type_node): New define.
1010 * doc/extend.texi: Add documentation about __int128 type.
1011
1012 2010-05-26 Richard Guenther <rguenther@suse.de>
1013
1014 * tree-ssa-sccvn.c (copy_nary): Adjust.
1015 (copy_phis): Rename to ...
1016 (copy_phi): ... this. Adjust.
1017 (copy_references): Rename to ...
1018 (copy_reference): ... this. Adjust.
1019 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
1020 result into the valid table.
1021
1022 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1023
1024 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
1025 insn-config.h, insn-codes.h, recog.h, and optabs.h.
1026
1027 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1028
1029 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
1030
1031 2010-05-26 Richard Guenther <rguenther@suse.de>
1032
1033 * opts.c (common_handle_option): Handle OPT_Ofast.
1034
1035 2010-05-26 Joseph Myers <joseph@codesourcery.com>
1036
1037 * diagnostic.c: Don't include opts.h.
1038 (permissive_error_option): Define.
1039 (diagnostic_initialize): Take n_opts parameter. Allocate memory
1040 for classify_diagnostic. Don't use memset for
1041 classify_diagnostic. Initialize new and recently added fields.
1042 (diagnostic_classify_diagnostic): Use context->n_opts instead of
1043 N_OPTS.
1044 (diagnostic_report_diagnostic): Pass context parameter to
1045 diagnostic_report_warnings_p. Use option_enabled and option_name
1046 hooks from context.
1047 (emit_diagnostic): Use permissive_error_option.
1048 (permerror): Likewise.
1049 * diagnostic.h: Don't include options.h.
1050 (struct diagnostic_context): Add n_opts, opt_permissive,
1051 inhibit_warnings, warn_system_headers, option_enabled and
1052 option_name fields. Change classify_diagnostic to a pointer.
1053 * opts-diagnostic.h: New file.
1054 * opts.c: Include opts-diagnostic.h.
1055 (common_handle_option): Set global_dc fields for -Wfatal-errors,
1056 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
1057 (option_name): New function.
1058 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
1059 (c_common_handle_option): Set global_dc->permissive for
1060 -fpermissive.
1061 * c-common.c (c_cpp_error): Save and restore
1062 global_dc->warn_system_headers, not variable warn_system_headers.
1063 * toplev.c: Include opts-diagnostic.h.
1064 (general_init): Update call to diagnostic_initialize. Set
1065 global_dc->show_column, global_dc->option_enabled and
1066 global_dc->option_name.
1067 (process_options): Don't set global_dc fields here.
1068 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
1069 (diagnostic.o, opts.o, toplev.o): Update dependencies.
1070
1071 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
1072
1073 * config/picochip/picochip.md (movsi): Split a movsi from a
1074 const after reload.
1075
1076 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1077
1078 * ggc-zone.c: Update copyright year.
1079 (poison_region): Mark memory for Valgrind as undefined before
1080 memset () call and inaccessible afterwards.
1081 (ggc_pch_total_size): Change type of i to int.
1082
1083 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1084
1085 * ggc-common.c (ggc_free_overhead): Allow empty slot.
1086
1087 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1088
1089 * ggc-common.c: Update copyright year.
1090 (ggc_rlimit_bound): Remove prototype. Compile only if
1091 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
1092 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
1093 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
1094 (ggc_min_heapsize_heuristic): Likewise.
1095
1096 2010-05-26 Richard Guenther <rguenther@suse.de>
1097
1098 PR rtl-optimization/44164
1099 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
1100 no-common access-path disambiguation.
1101 (indirect_ref_may_alias_decl_p): Adjust.
1102 (indirect_refs_may_alias_p): Likewise.
1103 (refs_may_alias_p_1): Likewise.
1104
1105 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1106
1107 * c-typeck.c: Do not include expr.h.
1108
1109 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1110
1111 * rtl.h (decl_default_tls_model): Move prototype from here...
1112 * output.h: ...to here.
1113 * c-decl.c: Do not include rtl.h.
1114 * c-pragma.c: Likewise.
1115 * c-parser.c: Likewise.
1116 * c-gimplify.c: Likewise. And also not hard-reg-set.
1117 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
1118 FIXME note for it. Add a FIXME note for expr.h.
1119 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
1120 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
1121 defined.
1122
1123 2010-05-26 Jakub Jelinek <jakub@redhat.com>
1124
1125 PR target/44199
1126 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
1127 or total_size is larger than red zone size for non-V4 ABI, emit a
1128 stack_tie resp. frame_tie insn before stack pointer restore.
1129 * config/rs6000/rs6000.md (frame_tie): New insn.
1130
1131 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
1132
1133 * function.h (struct function): Add can_throw_non_call_exceptions bit.
1134 * lto-streamer-in.c (input_function): Stream it in.
1135 * lto-streamer-out.c (output_function): Stream it out.
1136 * function.c (allocate_struct_function): Set it.
1137 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
1138 for flag_non_call_exceptions.
1139 * cfgbuild.c (control_flow_insn_p): Likewise.
1140 (make_edges): Likewise.
1141 * cfgexpand.c (expand_stack_alignment): Likewise.
1142 * combine.c (distribute_notes): Likewise.
1143 * cse.c (cse_extended_basic_block): Likewise.
1144 * except.c (insn_could_throw_p): Likewise.
1145 * gcse.c (simple_mem): Likewise.
1146 * ipa-pure-const.c (check_call): Likewise.
1147 (check_stmt ): Likewise.
1148 * lower-subreg.c (lower-subreg.c): Likewise.
1149 * optabs.c (emit_libcall_block): Likewise.
1150 (prepare_cmp_insn): Likewise.
1151 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
1152 * postreload.c (rest_of_handle_postreload): Likewise.
1153 * reload1.c (reload_as_needed): Likewise.
1154 (emit_input_reload_insns): Likewise.
1155 (emit_output_reload_insns): Likewise.
1156 (fixup_abnormal_edges): Likewise.
1157 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
1158 * store-motion.c (find_moveable_store): Likewise.
1159 * tree-eh.c (stmt_could_throw_p): Likewise.
1160 (tree_could_throw_p): Likewise.
1161 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1162 * config/arm/arm.c (arm_expand_prologue): Likewise.
1163 (thumb1_expand_prologue): Likewise.
1164 * config/rx/rx.md (cbranchsf4): Likewise.
1165 (cmpsf): Likewise.
1166 * config/s390/s390.c (s390_emit_prologue): Likewise.
1167 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
1168 (inline_forbidden_into_p): New predicate.
1169 (expand_call_inline): Use it to forbid inlining.
1170 (tree_can_inline_p): Likewise.
1171
1172 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
1173
1174 * config/i386/i386-c.c: Do not include rtl.h.
1175 * config/i386/t-i386: Update dependencies.
1176
1177 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
1178
1179 * attribs.c: Do not include rtl.h.
1180 * Makefile.in: Update dependencies.
1181
1182 2010-05-25 Anatoly Sokolov <aesok@post.ru>
1183
1184 * double-int.h (double_int_and): New.
1185 * combine.c (try_combine): Clean up, use double_int_* and
1186 immed_double_int_const functions.
1187
1188 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1189
1190 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
1191 stderr to /dev/null instead of grep -q.
1192 * configure: Regenerate.
1193
1194 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
1195
1196 * Makefile.in (EXCEPT_H): Fix typo.
1197
1198 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
1199
1200 * ira-build.c (update_conflict_hard_reg_costs): New.
1201 (ira_build): Call update_conflict_hard_reg_costs.
1202
1203 2010-05-25 Jakub Jelinek <jakub@redhat.com>
1204
1205 PR debug/41371
1206 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
1207 ENABLE_CHECKING.
1208 (intersect_loc_chains): Walk the s2var's loc_chain together
1209 with s1node chain as long as the locations are equal, don't
1210 call find_loc_in_1pdv in that case.
1211
1212 PR debug/42801
1213 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
1214 (copy_bind_expr): ... instead of here.
1215 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
1216 if the block hasn't been remapped.
1217 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
1218 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
1219
1220 2010-05-25 Richard Guenther <rguenther@suse.de>
1221
1222 PR middle-end/44069
1223 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
1224 out-of-bounds array accesses.
1225
1226 2010-05-25 Richard Guenther <rguenther@suse.de>
1227
1228 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
1229 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
1230 (run_gcc): Re-organize to make cleanup easier.
1231
1232 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1233
1234 * config/s390/s390.c (optimization_options): Fix and move the
1235 flag_prefetch_loop_arrays override ...
1236 (override_options): ... here.
1237
1238 2010-05-25 Joseph Myers <joseph@codesourcery.com>
1239
1240 * diagnostic.c: Don't include plugin.h.
1241 (diagnostic_report_diagnostic): Don't handle plugins specially
1242 here. Pass context to internal_error callback.
1243 * diagnostic.h (struct diagnostic_context): Add context parameter
1244 to internal_error callback.
1245 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
1246 * plugin.h (struct diagnostic_context): Declare.
1247 (warn_if_plugins, plugins_internal_error_function): Declare.
1248 * toplev.c (general_init): Set global_dc->internal_error.
1249 * Makefile.in (diagnostic.o): Update dependencies.
1250
1251 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
1252
1253 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
1254 * config/rs6000/t-darwin64: New.
1255 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
1256 build crt2.
1257
1258 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
1259
1260 PR 44203
1261 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
1262 match the original (and intended) behaviour before r159557. This
1263 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
1264 in two ways.
1265
1266 2010-05-25 Richard Guenther <rguenther@suse.de>
1267
1268 * doc/invoke.texi: Document -Ofast.
1269 * target.h (struct gcc_target): Add handle_ofast.
1270 * target-def.h (TARGET_HANDLE_OFAST): Add.
1271 (TARGET_INITIALIZER): Adjust.
1272 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
1273 * common.opt (Ofast): Add.
1274
1275 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
1276
1277 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
1278 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
1279
1280 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
1281
1282 PR target/43610
1283 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
1284 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
1285 false_rtx. Use false_rtx to compute the correct *ptest for reversed
1286 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
1287
1288 2010-05-25 Jakub Jelinek <jakub@redhat.com>
1289
1290 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
1291 DW_OP_minus with negated offset instead of DW_OP_plus.
1292 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
1293
1294 2010-05-25 Wei Guozhi <carrot@google.com>
1295
1296 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
1297 tst instruction and a new alternative.
1298 * config/arm/constraints.md (Pu): New constraint.
1299
1300 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
1301
1302 * function.c (assign_stack_local_1): Initialize variable
1303 to avoid warning when bootstrapping at -O3.
1304
1305 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
1306
1307 * configure.ac (all_lang_makefiles): Remove everything related to it.
1308 * configure: Regenerate.
1309 * Makefile.in: Fix reference to ada Make-lang.in.
1310 Remove support for LANG_MAKEFILES.
1311
1312 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
1313 Sandra Loosemore <sandra@codesourcery.com>
1314
1315 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
1316 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
1317 description. Add arm_neon_fp16_ok.
1318 (Add Options): Add arm_neon and arm_neon_fp16.
1319
1320 2010-05-24 Joseph Myers <joseph@codesourcery.com>
1321
1322 * diagnostic.c: Don't include flags.h.
1323 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
1324 context parameters. Check flags in the context passed as a parameter.
1325 (diagnostic_build_prefix): Add context parameter. Check
1326 show_column flag in context.
1327 (diagnostic_action_after_output): Check fatal_errors flag in context.
1328 (diagnostic_report_current_module): Check show_column flag in context.
1329 (default_diagnostic_starter): Update call to
1330 diagnostic_build_prefix.
1331 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
1332 (emit_diagnostic): Pass context to permissive_error_kind.
1333 (permerror): Pass context to permissive_error_kind.
1334 * diagnostic.h (struct diagnostic_context): Add show_column,
1335 pedantic_errors, permissive and fatal_errors fields.
1336 (diagnostic_build_prefix): Update prototype.
1337 * langhooks.c
1338 * toplev.c (process_options): Set flags in global_dc from
1339 flag_show_column, flag_pedantic_errors, flag_permissive,
1340 flag_fatal_errors.
1341 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
1342 to diagnostic_build_prefix.
1343 * Makefile.in (diagnostic.o): Update dependencies.
1344
1345 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
1346
1347 * config/i386/ia32intrin.h (__crc32q): Define only if
1348 __SSE4_2__ is defined.
1349
1350 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
1351
1352 PR target/44132
1353 PR middle-end/43602
1354 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
1355 DECL_VISIBILITY_SPECIFIED.
1356 (emutls_decl): Set DECL_PRESERVE_P and copy
1357 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
1358 (emutls_finalize_control_var): New callback.
1359 (emutls_finish): Finalize emutls control variables.
1360 * toplev.c (compile_file): Move the call to emutls_finish ()
1361 before varpool_assemble_pending_decls ().
1362
1363 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
1364
1365 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
1366 added to the preprocessor condition.
1367
1368 2010-05-24 Paul Brook <paul@codesourcery.com>
1369
1370 * gengtype-lex.l: Add HARD_REG_SET.
1371 * expr.c (expand_expr_real_1): Record writes to hard registers.
1372 * function.c (rtl_data): Add asm_clobbers.
1373 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
1374 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
1375 Use crtl->asm_clobbers.
1376
1377 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1378
1379 * doc/makefile.texi (Makefile): Mention stages 'profile'
1380 and 'feedback' for profiledbootstrap.
1381
1382 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
1383
1384 PR target/44245
1385 * config/i386/i386.c (def_builtin): Properly check
1386 OPTION_MASK_ISA_64BIT.
1387
1388 2010-05-23 Joseph Myers <joseph@codesourcery.com>
1389
1390 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
1391 typedefs with different but compatible types. Allow duplicate
1392 typedefs with the same type except for pedantic non-C1X, but give
1393 warning for variably modified types.
1394 * c-typeck.c (tagged_types_tu_compatible_p,
1395 function_types_compatible_p, type_lists_compatible_p,
1396 comptypes_internal): Add parameter different_types_p; set
1397 *different_types_p for different but compatible types. All
1398 callers changed.
1399 (comptypes_check_different_types): New.
1400 * c-tree.h (comptypes_check_different_types): Declare.
1401
1402 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
1403
1404 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
1405 * jump.c: Include basic-block.h.
1406 * profile.c: Likewise.
1407 * tree-profile.c: Likewise.
1408 * coverage.c: Likewise.
1409 * basic-block.h (optimize_function_for_size_p): Move to function.h.
1410 (optimize_function_for_speed_p): Likewise.
1411 * function.h (optimize_function_for_size_p,
1412 optimize_function_for_speed_p): Moved here from basic-block.h.
1413 * Makefile.in: Update dependencies.
1414
1415 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1416
1417 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
1418 before calling make; allow override through $MAKE.
1419 * doc/invoke.texi (Optimize Options): Document override.
1420
1421 2010-05-23 Anatoly Sokolov <aesok@post.ru>
1422
1423 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
1424 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1425 (rs6000_mode_dependent_address_ptr): Make static.
1426 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1427 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
1428 Remove.
1429
1430 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
1431
1432 PR target/43869
1433 * config/i386/i386.c: Make sure that the correct regparm is passed.
1434
1435 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
1436
1437 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
1438 * sbitmap.c: ...to here to internalize sbitmap element access.
1439 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
1440 Explain why basic-block.h is included.
1441 * function.h: Include tm.h for CUMULATIVE_ARGS.
1442 * Makefile.in: Update dependencies.
1443
1444 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
1445
1446 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
1447 New core types.
1448 * sbitmap.h (struct sbitmap_def): Do not typedef here.
1449 * sbitmap.c: Include sbitmap.h.
1450 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
1451 hard-reg-set.h. Split everything related to regsets out from here...
1452 * regset.h: ...to here. New file.
1453 * df.h: Include regset.h and sbitmap.h.
1454 * tree-flow.h: Likewise.
1455 * cfgloop.h: Likewise.
1456 * except.h: Do not include sbitmap.h. Include hashtab.h.
1457 * cgraph.h: Include vec.h and function.h.
1458 * reload.h (struct insn_chain): Change types of live_throughout
1459 and dead_or_set from regset_head to bitmap_head.
1460 (compute_use_by_pseudos): Be defined also if regset.h is not included.
1461 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
1462 spilled_regs from regset_head to bitmap_head to avoid dependency
1463 in regset.h.
1464 * sel-sched-ir.h: Include regset.h.
1465 * reload.c: Include df.h before reload.h.
1466 * caller-save.c: Likewise.
1467 * reload1.c: Likewise.
1468 * ira.c: Likewise.
1469 (mark_elimination): Update type of r to bitmap, consistent with
1470 DF_LR_IN.
1471 * dominance.c: Include bitmap.h.
1472 * modulo-sched.c: Include df.h.
1473 * cfganal.c: Include bitmap.h and sbitmap.h.
1474 * cfgbuild.c: Include sbitmap.h.
1475 * lcm.c: Include sbitmap.h.
1476 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
1477 * domwalk.c: Include sbitmap.h, exclude ggc.h.
1478 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
1479 * cselib.c: Include bitmap.h.
1480 * tree-optimize.c: Include regset.h.
1481 * stmt.c: Include bitmap.h.
1482 * Makefile.in: Update dependencies.
1483
1484 2010-05-22 Jan Hubicka <jh@suse.cz>
1485
1486 * cgraph.h (struct varpool_node): Add same_comdat_group.
1487 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
1488 pointer.
1489 (output_varpool): Update call of lto_output_varpool_node.
1490 (input_varpool): Read same_comdat_group pointer.
1491 (input_varpool_1): Fixup same_comdat_group pointer.
1492 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
1493 group is needed, all are.
1494 * varpool.c (varpool_remove_node): Remove node from same comdat group
1495 linklist too.
1496 (varpool_analyze_pending_decls): Walk same comdat groups.
1497
1498 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
1499
1500 * rtl.h (union rtunion_def): Remove rt_bit member.
1501 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
1502 * print-rtl (print_rtx): Do not print the member.
1503 * gengtype.c (adjust_field_rtx_def): Do not handle it.
1504 * gengenrtl.c (type_from_format): Likewise.
1505 (accessor_from_format): Likewise.
1506
1507 2010-05-22 Joseph Myers <joseph@codesourcery.com>
1508
1509 * dbgcnt.c: Include toplev.h instead of errors.h.
1510 * ira-emit.c: Don't include errors.h.
1511 * ira.c: Include toplev.h instead of errors.h.
1512 * lto-compress.c: Include toplev.h instead of errors.h.
1513 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
1514 ira.o, dbgcnt.o): Update dependencies.
1515
1516 2010-05-22 Richard Guenther <rguenther@suse.de>
1517
1518 * gimple.c (gimple_types_compatible_p): Check type qualifications
1519 before merging pointer to complete and pointer to incomplete type.
1520 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
1521 we use our own resolution algorithm. The gold linker plugin
1522 doesn't do the job we want it to do here.
1523
1524 2010-05-22 Anatoly Sokolov <aesok@post.ru>
1525
1526 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1527 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1528 (sparc_mode_dependent_address_p): New function.
1529
1530 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
1531
1532 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
1533
1534 * timevar.c: Do not include any core headers.
1535 (timevar_print): De-i18n-ize.
1536 (print_time): Likewise.
1537 * timevar.h (timevar_push, timevar_pop): Make inline functions.
1538
1539 2010-05-21 Joseph Myers <joseph@codesourcery.com>
1540
1541 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
1542 langhooks-def.h.
1543 (diagnostic_initialize): Initialize x_data not last_function.
1544 (diagnostic_report_current_function): Move to tree-diagnostic.c.
1545 (default_diagnostic_starter): Call
1546 diagnostic_report_current_module not
1547 diagnostic_report_current_function.
1548 (diagnostic_report_diagnostic): Initialize x_data not
1549 abstract_origin.
1550 (verbatim): Likewise.
1551 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
1552 x_data.
1553 (struct diagnostic_context): Change last_function to x_data.
1554 (diagnostic_auxiliary_data): Replace with
1555 diagnostic_context_auxiliary_data and
1556 diagnostic_info_auxiliary_data.
1557 (diagnostic_last_function_changed, diagnostic_set_last_function,
1558 diagnostic_report_current_function): Move to tree-diagnostic.h.
1559 (print_declaration, dump_generic_node, print_generic_stmt,
1560 print_generic_stmt_indented, print_generic_expr,
1561 print_generic_decl, debug_c_tree, dump_omp_clauses,
1562 print_call_name, debug_generic_expr, debug_generic_stmt,
1563 debug_tree_chain, default_tree_printer): Move to
1564 tree-pretty-print.h.
1565 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
1566 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
1567 gimple-pretty-print.h.
1568 * pretty-print.c: Don't include tree.h
1569 (pp_base_format): Don't handle %K here.
1570 (pp_base_tree_identifier): Move to tree-pretty-print.c.
1571 * pretty-print.h (text_info): Change abstract_origin to x_data.
1572 (pp_tree_identifier, pp_unsupported_tree,
1573 pp_base_tree_identifier): Move to tree-pretty-print.h.
1574 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
1575 tree-pretty-print.h: New files.
1576 * tree-pretty-print.c: Include tree-pretty-print.h.
1577 (percent_K_format): New. Moved from pretty-print.c.
1578 (pp_base_tree_identifier): Move from pretty-print.c.
1579 * c-objc-common.c: Include tree-pretty-print.h.
1580 (c_tree_printer): Handle %K here.
1581 * langhooks.c: Include tree-diagnostic.h.
1582 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
1583 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
1584 (default_tree_printer): Handle %K using percent_K_format.
1585 (general_init): Use default_tree_diagnostic_starter.
1586 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
1587 (free_lang_data): Use default_tree_diagnostic_starter.
1588 * c-pretty-print.c: Include tree-pretty-print.h.
1589 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1590 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1591 * dwarf2out.c: Include tree-pretty-print.h.
1592 * except.c: Include tree-pretty-print.h.
1593 * gimple-pretty-print.c: Include tree-pretty-print.h and
1594 gimple-pretty-print.h.
1595 * gimplify.c: Include tree-pretty-print.h.
1596 * graphite-poly.c: Include tree-pretty-print.h and
1597 gimple-pretty-print.h.
1598 * ipa-cp.c: Include tree-pretty-print.h.
1599 * ipa-inline.c: Include gimple-pretty-print.h.
1600 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1601 * ipa-pure-const.c: Include gimple-pretty-print.h.
1602 * ipa-struct-reorg.c: Include tree-pretty-print.h and
1603 gimple-pretty-print.h.
1604 * ipa-type-escape.c: Include tree-pretty-print.h.
1605 * print-rtl.c: Include tree-pretty-print.h.
1606 * print-tree.c: Include gimple-pretty-print.h.
1607 * sese.c: Include tree-pretty-print.h.
1608 * tree-affine.c: Include tree-pretty-print.h.
1609 * tree-browser.c: Include tree-pretty-print.h.
1610 * tree-call-cdce.c: Include gimple-pretty-print.h.
1611 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1612 * tree-chrec.c: Include tree-pretty-print.h.
1613 * tree-data-ref.c: Include tree-pretty-print.h and
1614 gimple-pretty-print.h.
1615 * tree-dfa.c: Include tree-pretty-print.h.
1616 * tree-if-conv.c: Include tree-pretty-print.h and
1617 gimple-pretty-print.h.
1618 * tree-inline.c: Include tree-pretty-print.h.
1619 * tree-into-ssa.c: Include tree-pretty-print.h and
1620 gimple-pretty-print.h.
1621 * tree-nrv.c: Include tree-pretty-print.h.
1622 * tree-object-size.c: Include tree-pretty-print.h and
1623 gimple-pretty-print.h.
1624 * tree-outof-ssa.c: Include tree-pretty-print.h and
1625 gimple-pretty-print.h.
1626 * tree-parloops.c: Include tree-pretty-print.h and
1627 gimple-pretty-print.h.
1628 * tree-predcom.c: Include tree-pretty-print.h and
1629 gimple-pretty-print.h.
1630 * tree-scalar-evolution.c: Include tree-pretty-print.h and
1631 gimple-pretty-print.h.
1632 * tree-sra.c: Include tree-pretty-print.h.
1633 * tree-ssa-address.c: Include tree-pretty-print.h.
1634 * tree-ssa-alias.c: Include tree-pretty-print.h.
1635 * tree-ssa-ccp.c: Include tree-pretty-print.h and
1636 gimple-pretty-print.h.
1637 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
1638 * tree-ssa-copy.c: Include tree-pretty-print.h and
1639 gimple-pretty-print.h.
1640 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
1641 * tree-ssa-dce.c: Include tree-pretty-print.h and
1642 gimple-pretty-print.h.
1643 * tree-ssa-dom.c: Include tree-pretty-print.h and
1644 gimple-pretty-print.h.
1645 * tree-ssa-dse.c: Include gimple-pretty-print.h.
1646 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
1647 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
1648 * tree-ssa-live.c: Include tree-pretty-print.h and
1649 gimple-pretty-print.h.
1650 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
1651 gimple-pretty-print.h.
1652 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
1653 gimple-pretty-print.h.
1654 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
1655 gimple-pretty-print.h.
1656 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
1657 gimple-pretty-print.h.
1658 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
1659 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
1660 * tree-ssa-operands.c: Include tree-pretty-print.h and
1661 gimple-pretty-print.h.
1662 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
1663 gimple-pretty-print.h.
1664 * tree-ssa-pre.c: Include tree-pretty-print.h and
1665 gimple-pretty-print.h.
1666 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
1667 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
1668 gimple-pretty-print.h.
1669 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
1670 gimple-pretty-print.h.
1671 * tree-ssa-sink.c: Include gimple-pretty-print.h.
1672 * tree-ssa-ter.c: Include tree-pretty-print.h and
1673 gimple-pretty-print.h.
1674 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
1675 * tree-ssa.c: Include tree-pretty-print.h and
1676 gimple-pretty-print.h.
1677 * tree-stdarg.c: Include gimple-pretty-print.h.
1678 * tree-switch-conversion.c: Include gimple-pretty-print.h.
1679 * tree-tailcall.c: Include tree-pretty-print.h and
1680 gimple-pretty-print.h.
1681 * tree-vect-data-refs.c: Include tree-pretty-print.h and
1682 gimple-pretty-print.h.
1683 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
1684 gimple-pretty-print.h.
1685 * tree-vect-loop.c: Include tree-pretty-print.h and
1686 gimple-pretty-print.h.
1687 * tree-vect-patterns.c: Include gimple-pretty-print.h.
1688 * tree-vect-slp.c: Include tree-pretty-print.h and
1689 gimple-pretty-print.h.
1690 * tree-vect-stmts.c: Include tree-pretty-print.h and
1691 gimple-pretty-print.h.
1692 * tree-vectorizer.c: Include tree-pretty-print.h.
1693 * tree-vrp.c: Include tree-pretty-print.h and
1694 gimple-pretty-print.h.
1695 * value-prof.c: Include tree-pretty-print.h and
1696 gimple-pretty-print.h.
1697 * var-tracking.c: Include tree-pretty-print.h.
1698 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
1699 (tree-diagnostic.o): New dependencies.
1700 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
1701 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
1702 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
1703 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
1704 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
1705 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
1706 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
1707 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
1708 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
1709 tree-ssa-address.o, tree-ssa-loop-niter.o,
1710 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
1711 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
1712 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
1713 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
1714 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
1715 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
1716 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
1717 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
1718 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
1719 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
1720 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
1721 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
1722 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
1723 tree-switch-conversion.o, var-tracking.o, value-prof.o,
1724 cfgexpand.o, pretty-print.o): Update dependencies.
1725
1726 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
1727
1728 * tree-ssa-structalias.c: Remove tm_p.h from include.
1729
1730 2010-05-21 Jeff Law <law@redhat.com>
1731
1732 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
1733
1734 2010-05-21 Jason Merrill <jason@redhat.com>
1735
1736 * tree-eh.c (cleanup_is_dead_in): New.
1737 (lower_try_finally): Don't generate a dead cleanup region.
1738 (lower_cleanup): Likewise.
1739
1740 2010-05-21 Jakub Jelinek <jakub@redhat.com>
1741
1742 PR debug/44223
1743 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
1744 unchain each use from the cyclic next_regno_use chain first.
1745
1746 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
1747
1748 * real: Do not include gmp.h, mpfr.h, and mpc.h.
1749 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
1750 (real_value_negate, real_value_abs): New prototypes.
1751 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
1752 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
1753 new include file for interface between MPFR and REAL_VALUE_TYPE.
1754 * real.c: Include realmpfr.h.
1755 (real_arithmetic2): Remove legacy function.
1756 (real_value_negate): New.
1757 (real_value_abs): New.
1758 (mfpr_from_real, real_from_mpfr): Move from here...
1759 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
1760 * builtins.c: Include realmpfr.h.
1761 * fold-const.c: Include realmpfr.h.
1762 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
1763 (fold_negate_const): Likewise.
1764 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
1765 * toplev.c: Include realmpfr.h.
1766 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
1767 and real_value_negate.
1768 * fixed-value.c (check_real_for_fixed_mode): Likewise.
1769 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
1770 (vfp3_const_double_index): Likewise.
1771 (arm_print_operand): Likewise.
1772 * Makefile.in: Update dependencies.
1773
1774 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1775
1776 * config/s390/s390.c (override_options): Increase the default
1777 of max-completely-peel-times.
1778
1779 2010-05-21 Julian Brown <julian@codesourcery.com>
1780 Mark Mitchell <mark@codesourcery.com>
1781
1782 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
1783 sibling calls for Thumb-1.
1784 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
1785 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
1786 Thumb-2.
1787 (*call_insn, *call_value_insn): Don't use for Thumb-2.
1788 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
1789 for Thumb-2.
1790 (return): New expander.
1791 (*arm_return): New name for ARM return insn.
1792 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
1793
1794 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
1795
1796 * config.gcc (sparc64-*-rtems*): New target.
1797
1798 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
1799
1800 * tree.c (build_function_decl_skip_args): Fix grammar.
1801 (build_function_type_list_1): Fix typos, adjust formatting.
1802
1803 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
1804
1805 * tree.h: Include real.h and fixed-value.h as basic datatypes.
1806 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
1807 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
1808 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
1809 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
1810 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
1811 tree-pretty-print.c, tree-loop-distribution.c,
1812 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
1813 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
1814 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
1815 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
1816 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
1817 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
1818 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
1819 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
1820 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
1821 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
1822 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
1823 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
1824 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
1825 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
1826 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
1827 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
1828 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
1829 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
1830 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
1831 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
1832 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
1833 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
1834 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
1835 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
1836 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
1837 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
1838 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
1839 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
1840 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
1841 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
1842 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
1843 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
1844 config/score/score7.c, config/score/score.c, config/arm/arm.c,
1845 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
1846 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
1847 config/bfin/bfin.c: Clean up redundant includes.
1848 * Makefile.in: Update accordingly.
1849
1850 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
1851
1852 PR middle-end/44204
1853 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
1854 statement has no arguments.
1855
1856 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
1857
1858 PR/44139
1859 * varasm.c (emutls_decl): Merge attributes to new decl.
1860
1861 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
1862
1863 PR middle-end/44101
1864 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
1865 around the uniquized constructor if its type requires a conversion.
1866
1867 2010-05-21 Jakub Jelinek <jakub@redhat.com>
1868
1869 PR debug/44205
1870 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
1871 at -O0 goto_locus of any of the incoming edges differs from
1872 goto_locus of outgoing edge, or gimple_location of any of the
1873 labels differs.
1874
1875 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
1876
1877 * ira.c (ira_non_ordered_class_hard_regs): Define.
1878 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
1879 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
1880 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
1881 cost of unaligned hard regs when allocating multi-reg pseudos.
1882
1883 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
1884
1885 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
1886 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
1887 for TARGET_NO_FLOAT.
1888 * config/mips/mips.c (mips_file_start): Expand conditional expression
1889 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
1890 (mips_override_options): Move -mno-float override -msoft-float and
1891 -mhard-float.
1892 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
1893 Condition(TARGET_SUPPORTS_NO_FLOAT).
1894 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
1895 __mips_no_float here.
1896 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
1897 (TARGET_SUPPORTS_NO_FLOAT): Define.
1898 * config/mips/sdemtk.opt: Delete.
1899
1900 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
1901
1902 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
1903
1904 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
1905
1906 PR target/43733
1907 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
1908 * configure: Regenerate.
1909 * config.in: Regenerate.
1910 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
1911 instead of sahf only for 64bit targets.
1912
1913 2010-05-20 Jakub Jelinek <jakub@redhat.com>
1914
1915 PR debug/44178
1916 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
1917 setup_ref_regs for DEBUG_INSNs.
1918
1919 2010-05-20 Jan Hubicka <jh@suse.cz>
1920
1921 PR middle-end/44197
1922 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
1923
1924 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1925
1926 PR bootstrap/43870
1927 * df-scan.c (df_ref_compare): Stabilize sort.
1928
1929 2010-05-20 Jakub Jelinek <jakub@redhat.com>
1930
1931 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
1932 argument. Don't use DW_OP_piece if offset is non-zero,
1933 put offset into second DW_OP_bit_piece argument.
1934 (dw_sra_loc_expr): Adjust callers. For memory expressions
1935 compute offset.
1936
1937 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
1938
1939 PR target/44202
1940 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
1941 settings for 16-bit-constant "addo" alternative.
1942
1943 2010-05-19 James E. Wilson <wilson@codesourcery.com>
1944
1945 * config/mips/mips-dsp.md (add<DSPV:mode>3,
1946 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
1947
1948 PR target/43764
1949 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
1950 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
1951 Use it.
1952
1953 2010-05-19 Joseph Myers <joseph@codesourcery.com>
1954
1955 * diagnostic.c (FLOAT, FFS): Don't undefine.
1956 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
1957 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
1958 include ordering.
1959
1960 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1961
1962 * combine.c (propagate_for_debug): Call make_compound_operation
1963 on the source value.
1964 (try_combine): When implementing a split chosen by find_split_point,
1965 either copy i2src or set it to null. Assert that i2src is not null
1966 before substituting into CALL_INSN_FUNCTION_USAGE.
1967
1968 2010-05-19 Anatoly Sokolov <aesok@post.ru>
1969
1970 * double-int.h (double_int_ior): New function.
1971 * tree.h (build_int_cst_wide_type): Remove.
1972 * tree.c (build_int_cst_wide_type): Remove.
1973 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
1974 of build_int_cst_wide_type.
1975 * stor-layout.c (set_sizetype): (Ditto.).
1976 * dojump.c (do_jump): Use build_int_cstu instead of
1977 build_int_cst_wide_type.
1978
1979 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
1980
1981 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
1982 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
1983 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
1984 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
1985 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
1986 propagate the 'data' argument to copy_tree_r.
1987 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
1988 Propagate 'data' argument to walk_tree.
1989 (copy_if_shared): New function.
1990 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
1991 (unmark_visited): New function.
1992 (unshare_body): Call copy_if_shared instead of doing it manually.
1993 (unvisit_body): Call unmark_visited instead of doing it manually.
1994
1995 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
1996
1997 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
1998 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
1999 * hooks.c: Likewise.
2000 * target-def.h (TARGET_FOLD_BUILTIN): Define to
2001 hook_tree_tree_int_treep_bool_null.
2002 * target.h (struct gcc_target): Update signature of fold_builtin
2003 field.
2004 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
2005 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
2006 instead of the call expression.
2007 (fold_builtin_call_array): Pass n and argarray directly.
2008 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
2009 consing a list.
2010 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
2011 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
2012 `i' and use it in place of `arity'.
2013 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
2014 Dereference `args' directly.
2015 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
2016
2017 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2018
2019 * doc/sourcebuild.texi (Effective-Target Keywords): Document
2020 3dnow, sse3, sse2.
2021 (Directives): Document optional dg-require-effective-target
2022 selector.
2023
2024 2010-05-19 Richard Guenther <rguenther@suse.de>
2025
2026 PR lto/44196
2027 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
2028
2029 2010-05-19 Richard Guenther <rguenther@suse.de>
2030
2031 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
2032 * common.opt (fwhopr=): New.
2033 * opts.c (common_handle_option): Handle OPT_fwhopr.
2034 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
2035 * collect2.c (main): Match -fwhopr*.
2036 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
2037 Execute ltrans stage in parallel when jobs is bigger than 1.
2038
2039 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2040
2041 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
2042 pentiumpro on Solaris 8/x86 with Sun as.
2043 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
2044 hidden alias bug.
2045 (gcc_cv_as_ix86_quad): Check for .quad directive.
2046 * configure: Regenerate.
2047 * config.in: Regenerate.
2048 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
2049
2050 2010-05-19 Martin Jambor <mjambor@suse.cz>
2051
2052 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
2053 also for indirect edges. Actual printing moved...
2054 (ipa_print_node_jump_functions_for_edge): ...here.
2055 (ipa_compute_jump_functions): Renamed to
2056 ipa_compute_jump_functions_for_edge and made static.
2057 (ipa_compute_jump_functions): New function.
2058 (make_edge_direct_to_target): Check if the number of arguments on
2059 the newly direct edge is the same as the number of parametrs of
2060 the callee.
2061 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
2062 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
2063 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
2064 analysis functions unconditionally, call the new
2065 ipa_analyze_params_uses on the node instead of every edge.
2066
2067 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
2068
2069 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
2070 to tree.
2071 (dump_mem_ref): Adopt debug code to handle a tree as step. This
2072 also checks for a constant int vs. non-constant but
2073 loop-invariant steps.
2074 (find_or_create_group): Change the sort algorithm to only consider
2075 steps that are constant ints.
2076 (idx_analyze_ref): Adopt code to handle a tree instead of a
2077 HOST_WIDE_INT for step.
2078 (gather_memory_references_ref): Handle tree instead of int and be
2079 prepared to see a NULL_TREE.
2080 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
2081 prefetches if the step cannot be calculated at compile time.
2082 (issue_prefetch_ref): Issue prefetches for non-constant but
2083 loop-invariant steps.
2084
2085 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
2086
2087 Revert:
2088 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
2089
2090 * tree.h (build_call_list): Remove.
2091 * tree.c (build_call_list): Remove.
2092
2093 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
2094
2095 * tree.h (build_call_list): Remove.
2096 * tree.c (build_call_list): Remove.
2097
2098 2010-05-18 Jan Hubicka <jh@suse.cz>
2099
2100 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
2101
2102 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
2103
2104 PR rtl-optimization/43332
2105 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
2106
2107 2010-05-18 Anatoly Sokolov <aesok@post.ru>
2108
2109 * tree.h (build_int_cstu): Implement as static inline.
2110 * tree.c (build_int_cstu): Remove function.
2111 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
2112 sign extended.
2113
2114 2010-05-18 Richard Guenther <rguenther@suse.de>
2115
2116 PR lto/44143
2117 * lto-wrapper.c (verbose): New variable. Initialize from -v.
2118 (debug): Initialize from -save-temps.
2119 (collect_execute): Print command-line when verbose.
2120 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
2121 for ltrans invocation. Produce -dumpbase flag again.
2122 (process_args): Remove.
2123 (main): Simplify.
2124 * collect2.c (maybe_run_lto_and_relink): Only pass object
2125 files to lto-wrapper.
2126 * gcc.c (LINK_COMMAND_SPEC): Likewise.
2127
2128 2010-05-18 Jan Hubicka <jh@suse.cz>
2129
2130 * opts.c (decode_options): Do not disable whopr at ipa_cp.
2131 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
2132
2133 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
2134
2135 PR lto/44184
2136 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
2137 in a GIMPLE_ASM.
2138 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
2139 in a GIMPLE_ASM.
2140
2141 2010-05-18 Jakub Jelinek <jakub@redhat.com>
2142
2143 PR debug/41371
2144 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
2145 rtx_equal_p inline.
2146
2147 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
2148
2149 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
2150 lto-macho as lto_binary_reader.
2151
2152 * darwin.c (darwin_asm_named_section): Do not add assembler comment
2153 after .section directive; just print it before the directive instead.
2154
2155 2010-05-17 Jan Hubicka <jh@suse.cz>
2156
2157 * cgraph.c (cgraph_create_virtual_clone): Only check
2158 versionable_function_p when not in wpa and checking is enabled.
2159 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
2160 there are no more functions to materialize.
2161
2162 2010-05-17 Jan Hubicka <jh@suse.cz>
2163
2164 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
2165 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
2166 New functions.
2167 (output_cgraph): Call output_cgraph_opt_summary.
2168 (input_cgrpah): Call input_cgraph_opt_summary.
2169 (output_cgraph_opt_summary_p, output_node_opt_summary,
2170 input_node_opt_summary, input_cgraph_opt_section): New functions.
2171 * lto-section-in.c (lto_section_name): Add cgraphopt.
2172 * tree-inline.c (tree_function_versioning): Handle parm_num.
2173 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
2174 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
2175
2176 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
2177
2178 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
2179 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
2180 the insn to prefetch ratio heuristic to loops with known trip count.
2181
2182 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
2183
2184 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
2185 (schedule_prefetches): Do not generate a prefetch if the unroll factor
2186 is far from what is required by the prefetch.
2187
2188 2010-05-17 Jan Hubicka <jh@suse.cz>
2189
2190 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
2191 (ipcp_estimate_growth): Likewise.
2192 (ipcp_const_param_count): Likewise.
2193 (ipcp_insert_stage): Likewise.
2194 * ipa-prop.c (visit_load_for_mod_analysis): New function.
2195 (visit_store_addr_for_mod_analysis): Set used flag.
2196 (ipa_detect_param_modifications): Set used flag for SSE params;
2197 update use of walk_stmt_load_store_addr_ops.
2198 (ipa_print_node_params): Print used flag.
2199 (ipa_write_node_info): Stream used flag.
2200 (ipa_read_node_info): Likewise.
2201 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
2202 (ipa_is_param_used): New function.
2203 (lto_ipa_fixup_call_notes): Remove unused declaration.
2204
2205 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2206
2207 PR target/44074
2208 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
2209 * configure: Regenerate.
2210 * config.in: Regenerate.
2211 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
2212 !HAVE_AS_IX86_REP_LOCK_PREFIX.
2213 Don't emit whitespace.
2214 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
2215 (*rep_movsi): Likewise.
2216 (*rep_movsi_rex64): Likewise.
2217 (*rep_movqi): Likewise.
2218 (*rep_movqi_rex64): Likewise.
2219 (*rep_stosdi_rex64): Likewise.
2220 (*rep_stossi): Likewise.
2221 (*rep_stossi_rex64): Likewise.
2222 (*rep_stosqi): Likewise.
2223 (*rep_stosqi_rex64): Likewise.
2224 (*cmpstrnqi_nz_1): Use {%;} after repz.
2225 (*cmpstrnqi_nz_rex_1): Likewise.
2226 (*cmpstrnqi_1): Likewise.
2227 (*cmpstrnqi_rex_1): Likewise.
2228 (*strlenqi_1): Use {%;} after repnz.
2229 (*strlenqi_rex_1): Likewise.
2230 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
2231 (*sync_compare_and_swap<mode>): Likewise.
2232 (sync_double_compare_and_swap<mode>): Likewise.
2233 (*sync_double_compare_and_swapdi_pic): Likewise.
2234 (sync_old_add<mode>): Likewise.
2235 (sync_add<mode>): Likewise.
2236 (sync_sub<mode>): Likewise.
2237 (sync_<code><mode>): Likewise.
2238
2239 2010-05-17 Martin Jambor <mjambor@suse.cz>
2240
2241 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
2242 otr_token and polymorphic.
2243 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
2244 (cgraph_clone_edge): Copy the above fields.
2245 * tree.c (get_binfo_at_offset): New function.
2246 * tree.h (get_binfo_at_offset): Declare.
2247 * ipa-prop.h (enum jump_func_type): Added known_type jump function
2248 type, reordered items, updated comments.
2249 (union jump_func_value): Added base_type field, reordered fields.
2250 (enum ipa_lattice_type): Moved down in the file.
2251 (struct ipa_param_descriptor): New field polymorphic.
2252 (ipa_is_param_polymorphic): New function.
2253 * ipa-prop.c: Include gimple.h and gimple-fold.h.
2254 (ipa_print_node_jump_functions): Print known type jump functions.
2255 (compute_complex_pass_through): Renamed to...
2256 (compute_complex_assign_jump_func): this.
2257 (compute_complex_ancestor_jump_func): New function.
2258 (compute_known_type_jump_func): Likewise.
2259 (compute_scalar_jump_functions): Create known type and complex ancestor
2260 jump functions.
2261 (ipa_note_param_call): New parameter polymorphic, set the corresponding
2262 flag in the call note accordingly.
2263 (ipa_analyze_call_uses): Renamed to...
2264 (ipa_analyze_indirect_call_uses): this. New parameter target, define
2265 variable var only in the block where it is used.
2266 (ipa_analyze_virtual_call_uses): New function.
2267 (ipa_analyze_call_uses): Likewise.
2268 (combine_known_type_and_ancestor_jfs): Likewise.
2269 (update_jump_functions_after_inlining): Implemented handling of a
2270 number of new jump function types combination.
2271 (print_edge_addition_message): Removed.
2272 (make_edge_direct_to_target): New function.
2273 (try_make_edge_direct_simple_call): Likewise.
2274 (try_make_edge_direct_virtual_call): Likewise.
2275 (update_call_notes_after_inlining): Renamed to...
2276 (update_indirect_edges_after_inlining): this. Moved edge creation for
2277 indirect calls to try_make_edge_direct_simple_call, also calls
2278 try_make_edge_direct_virtual_call for virtual calls.
2279 (ipa_print_node_params): Changed the header message.
2280 (ipa_write_jump_function): Stream also known type jump functions.
2281 (ipa_read_jump_function): Likewise.
2282 (ipa_write_indirect_edge_info): Stream new fields in
2283 cgraph_indirect_call_info.
2284 (ipa_read_indirect_edge_info): Likewise.
2285 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
2286 GIMPLE_FOLD_H.
2287
2288 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2289
2290 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
2291
2292 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
2293
2294 * tree.h (CALL_EXPR_ARGS): Delete.
2295 (call_expr_arglist): Delete.
2296 * tree.c (call_expr_arglist): Delete.
2297 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
2298 targetm.fold_builtin.
2299 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
2300 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
2301 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
2302 arglist parameter. Use CALL_EXPR_ARG.
2303 (picochip_expand_builtin_3op): Likewise.
2304 (picochip_expand_builtin_2opvoid): Likewise.
2305 (picochip_expand_array_get): Likewise.
2306 (picochip_expand_array_put): Likewise.
2307 (picochip_expand_array_testport): Likewise.
2308 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
2309 rather than arglist.
2310 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
2311 CALL_EXPR_ARGS.
2312 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
2313 than TREE_VALUE and TREE_CHAIN.
2314 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
2315 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
2316 the arglist.
2317
2318 2010-05-17 Jakub Jelinek <jakub@redhat.com>
2319
2320 PR bootstrap/42347
2321 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
2322 to have no fallthru edge.
2323
2324 PR middle-end/44102
2325 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
2326 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
2327 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
2328 add BARRIER after previous bb if needed.
2329
2330 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
2331
2332 * tree.c (build_function_type_list_1): Remove bogus assert condition.
2333
2334 2010-05-17 Alan Modra <amodra@gmail.com>
2335
2336 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
2337 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
2338 with copy_reg rtx param.
2339 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
2340 Correct cases where code for ABI_V4 did not initialise the reg
2341 used to access frame. Also leave frame_reg_rtx as sp for large
2342 frames that save no regs.
2343
2344 2010-05-17 Martin Jambor <mjambor@suse.cz>
2345
2346 PR middle-end/44133
2347 * tree-sra.c (create_access_replacement): New parameter rename, mark
2348 the replaement for renaming only when it is true.
2349 (get_access_replacement): Pass true in the rename parameter of
2350 create_access_replacement.
2351 (get_unrenamed_access_replacement): New function.
2352 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
2353 replacement declaration from it.
2354
2355 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
2356
2357 * function.c (try_fit_stack_local, add_frame_space): New static
2358 functions.
2359 (assign_stack_local_1): Use them. Look for opportunities to use
2360 space previously wasted on alignment.
2361 * function.h (struct frame_space): New.
2362 (struct rtl_data): Add FRAME_SPACE_LIST member.
2363 * reload1.c (something_was_spilled): New static variable.
2364 (alter_reg): Set it.
2365 (reload): Test it in addition to testing if the frame size changed.
2366
2367 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
2368
2369 * config/s390/s390.c: Define sane prefetch settings and activate
2370 flag_prefetch_loop_arrays on -O3.
2371 * config/s390/s390.h: Declare that read can use write prefetch.
2372
2373 2010-05-17 Jakub Jelinek <jakub@redhat.com>
2374
2375 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
2376 build.
2377
2378 2010-05-16 Jan Hubicka <jh@suse.cz>
2379
2380 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
2381 function body; do not check stdarg field of struct function.
2382
2383 2010-05-16 Jan Hubicka <jh@suse.cz>
2384
2385 * cgraph.c (dump_cgraph_node): Dump versionable flag.
2386 * cgraph.h (cgraph_local_info): Add versionable flag.
2387 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
2388 (ipcp_versionable_function_p): Use it.
2389 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
2390 versionable flag.
2391
2392 2010-05-16 Jan Hubicka <jh@suse.cz>
2393
2394 * cgraph.c (cgraph_clone_node): Take decl argument and insert
2395 clone into hash when it is different from orig.
2396 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
2397 * cgraph.h (cgraph_clone_node): Update prototype.
2398 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
2399 (lto_cgraph_encoder_delete): Delete body map.
2400 (lto_cgraph_encoder_size): Move to header.
2401 (lto_cgraph_encoder_encode_body_p,
2402 lto_set_cgraph_encoder_encode_body): New.
2403 (lto_output_node): Do not take written_decls argument; output clone_of
2404 pointer.
2405 (add_node_to): Add include_body_argument; call
2406 lto_set_cgraph_encoder_encode_body on master of the clone.
2407 (add_references): Update use of add_node_to.
2408 (compute_ltrans_boundary): Likewise.
2409 (output_cgraph): Do not create written_decls bitmap.
2410 (input_node): Take nodes argument; stream in clone_of correctly.
2411 (input_cgraph_1): Update use of input_node.
2412 * lto-streamer-out.c (lto_output): Use encoder info to decide
2413 what bodies to output.
2414 * ipa-inline.c (cgraph_clone_inlined_nodes,
2415 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
2416 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
2417 (lto_cgraph_encoder_size): Define here.
2418 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
2419 Declare.
2420
2421 2010-05-16 Richard Guenther <rguenther@suse.de>
2422
2423 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
2424 -fipa-type-escape.
2425 * ipa-type-escape.c (gate_type_escape_vars): Run when
2426 -fipa-struct-reorg runs.
2427 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
2428 * common.opt (fipa-type-escape): Remove.
2429
2430 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
2431
2432 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
2433 (decode_options): Likewise.
2434 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
2435
2436 2010-05-16 Jan Hubicka <jh@suse.cz>
2437
2438 * ipa.c (function_and_variable_visibility): Also bring local all
2439 aliases.
2440
2441 2010-05-16 Richard Guenther <rguenther@suse.de>
2442
2443 * alias.c (nonoverlapping_memrefs_p): Remove use of
2444 IPA type-escape information.
2445
2446 2010-05-16 Joseph Myers <joseph@codesourcery.com>
2447
2448 * c-common.c (c_common_reswords): Add _Static_assert for C.
2449 * c-parser.c (c_token_starts_declaration,
2450 c_parser_next_token_starts_declaration,
2451 c_parser_static_assert_declaration_no_semi,
2452 c_parser_static_assert_declaration): New.
2453 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
2454 Handle static assertions if static_assert_ok.
2455 (c_parser_external_declaration, c_parser_declaration_or_fndef,
2456 c_parser_compound_statement_nostart, c_parser_label,
2457 c_parser_for_statement, c_parser_objc_methodprotolist,
2458 c_parser_omp_for_loop): All callers of
2459 c_parser_declaration_or_fndef changed.
2460 (c_parser_struct_declaration): Handle static assertions.
2461 (c_parser_compound_statement_nostart): Use
2462 c_parser_next_token_starts_declaration and
2463 c_token_starts_declaration to detect start of declarations.
2464 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
2465 Likewise.
2466
2467 2010-05-16 Anatoly Sokolov <aesok@post.ru>
2468
2469 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2470 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2471 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2472 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2473 (mmix_function_outgoing_value): Rename to...
2474 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
2475 (mmix_function_value_regno_p): Make static.
2476 (mmix_libcall_value): New function.
2477 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
2478 mmix_function_value_regno_p): Remove declaration.
2479
2480 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
2481
2482 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
2483 BUILT_IN_ALLOCA if stack checking is enabled.
2484
2485 2010-05-16 Richard Guenther <rguenther@suse.de>
2486
2487 * var-tracking.c (vars_copy_1): Inline ...
2488 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
2489 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
2490 (variable_merge_over_cur): Adjust. Merge asserts.
2491 (variable_merge_over_src): Likewise.
2492 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
2493 (variable_post_merge_new_vals): Merge asserts.
2494 (variable_post_merge_perm_vals): Likewise.
2495 (find_mem_expr_in_1pdv): Likewise.
2496 (dataflow_set_different_value): Remove.
2497 (onepart_variable_different_p): Merge asserts.
2498 (variable_different_p): Likewise.
2499 (dataflow_set_different_1): Inline ...
2500 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
2501 (emit_notes_for_differences_1): Merge asserts.
2502
2503 2010-05-16 Richard Guenther <rguenther@suse.de>
2504
2505 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
2506 * optabs.c (libfunc_decl_hash): Likewise.
2507 * varasm.c (emutls_decl): Likewise.
2508
2509 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
2510
2511 * c-decl.c: Don't include gimple.h.
2512 (merge_decls): Do not copy gimple_body.
2513
2514 2010-05-15 Jason Merrill <jason@redhat.com>
2515
2516 * c.opt: Add -fnothrow-opt.
2517
2518 2010-05-15 Jan Hubicka <jh@suse.cz>
2519
2520 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
2521 analyzed.
2522 * passes.c (ipa_write_summaries): Write all analyzed nodes.
2523
2524 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
2525
2526 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
2527 * Makefile.in: Add it.
2528 Fix all other Makefile dependencies for changes below.
2529 * tree.h: Include it instead of defining VEC primitives here.
2530 * gimple.h: Likewise.
2531 * rtl.h: Likewise.
2532 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
2533 * except.h: Include vecir.h, break dependence on tree.h.
2534
2535 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
2536 Move from here...
2537 * tree-iterator.c: ...to here.
2538 * tree-iterator.h: Fix file introduction comment. Add extern markers.
2539
2540 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
2541 tm_p.h.
2542 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
2543 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
2544 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
2545 tree-mudflap.h, and target.h.
2546 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
2547 predict.h, tree-inline.h, gimple.h, and langhooks.h.
2548 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
2549 Add FIXME for why gimple.h is still included (should be unnecessary
2550 since GCC 4.5 gimplification unit-at-a-time).
2551 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
2552 * c-pragma.c: Add FIXME for why function.h needs to be included just
2553 for cfun, at front-end level.
2554 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
2555 Do not include ggc.h, but include vecprim.h for VEC(char).
2556 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
2557 Explain why target.h is included.
2558 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
2559 Explain why gimple.h is included.
2560 * c-ppoutput.c: Do not include tm.h.
2561 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
2562 * c-parses.c: Explain why rtl.h is included, and that this (and only
2563 this) is also why tm.h must be included.
2564 Do not include except.h.
2565 * c-lang.c: Do not include ggc.h.
2566
2567 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
2568
2569 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
2570
2571 2010-05-15 Joseph Myers <joseph@codesourcery.com>
2572
2573 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
2574 unions by default if those structs and unions have no tags. Do
2575 not condition anonymous struct and unions handling on flag_iso.
2576 Allow anonymous structs and unions for C1X.
2577 (finish_struct): Do not diagnose lack of named fields when
2578 anonymous structs and unions present for C1X. Accept flexible
2579 array members in structure with anonymous structs or unions but no
2580 directly named fields.
2581 * doc/extend.texi (Unnamed Fields): Update.
2582
2583 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
2584
2585 * gimple.h (compare_field_offset): Rename into...
2586 (gimple_compare_field_offset): ...this.
2587 * gimple.c (compare_field_offset): Rename into...
2588 (gimple_compare_field_offset): ...this. Compare the full access if
2589 the offset is self-referential.
2590 (gimple_types_compatible_p): Adjust for above renaming.
2591 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
2592 DECL_NONADDRESSABLE_P flag of fields before merging them.
2593
2594 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
2595
2596 * tree.h (ctor_to_list): Delete.
2597 * tree.c (ctor_to_list): Delete.
2598
2599 2010-05-15 Jan Hubicka <jh@suse.cz>
2600
2601 * ipa-reference.c: Include toplev.h
2602 (is_proper_for_analysis): Only add to all_module_statics
2603 if it is allocated.
2604 (write_node_summary_p, stream_out_bitmap,
2605 ipa_reference_write_optimization_summary,
2606 ipa_reference_read_optimization_summary): New.
2607 (struct ipa_opt_pass_d pass_ipa_reference): Add
2608 optimization summary streaming.
2609 * lto-cgraph.c (referenced_from_this_partition_p,
2610 reachable_from_this_partition_p): New functions.
2611 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2612 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
2613 * opts.c (decode_options): Enable ipa_reference.
2614 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
2615 * lto-streamer.h (referenced_from_this_partition_p,
2616 reachable_from_this_partition_p): Declare.
2617
2618 2010-05-15 Richard Guenther <rguenther@suse.de>
2619
2620 PR tree-optimization/44038
2621 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
2622 taking the address of a V_C_E of a constant.
2623
2624 2010-05-14 Jan Hubicka <jh@suse.cz>
2625
2626 * tree.h (memory_identifier_string): Remove.
2627 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
2628 (ipa_reference_global_vars_info_d): Remove statics_not_read and
2629 statics_not_written.
2630 (ipa_reference_optimization_summary_d): New structure.
2631 (ipa_reference_optimization_summary_t): New type and vector.
2632 (ipa_reference_vars_info_d): Embedd structures instead of using
2633 pointers.
2634 (reference_vars_to_consider): Remove out of GGC space.
2635 (module_statics_escape): Remove.
2636 (global_info_obstack): Rename to ...
2637 (optimization_summary_obstack): ... this one.
2638 (initialization_status_t): Remove.
2639 (memory_identifier_string): Remove.
2640 (get_reference_vars_info): Fix indenting.
2641 (set_reference_vars_info): Likewise.
2642 (get_reference_optimization_summary): New.
2643 (set_reference_optimization_summary): New.
2644 (get_global_reference_vars_info): Remove.
2645 (ipa_reference_get_read_global): Remove.
2646 (ipa_reference_get_written_global): Remove.
2647 (ipa_reference_get_not_read_global): Update.
2648 (ipa_reference_get_not_written_global): Update.
2649 (is_proper_for_analysis): Outlaw addressable.
2650 (propagate_bits): Update for new datastructures.
2651 (analyze_variable): Remove.
2652 (init_function_info): Update for new datastructures.
2653 (clean_function_local_data): Remove.
2654 (clean_function): Remove.
2655 (copy_global_bitmap): Use optimizations_summary_obstack.
2656 (duplicate_node_data): Duplicate optimization summary only.
2657 (remove_node_data): Remove optimization summary only.
2658 (generate_summary): Do not analyze variables; do not compute
2659 module_statics_escape; do not prune solutions by it.
2660 (read_write_all_from_decl): Fix typos in comments.
2661 (propagate): Doscover readonly and nonaddressable first;
2662 update for new datastructures; share global bitmaps.
2663 * ipa-reference.h (ipa_reference_get_read_global,
2664 ipa_reference_get_written_global): Remove.
2665 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
2666 * Makefile.in: Remove ipa-refereference from GT files.
2667
2668 2010-05-14 Jakub Jelinek <jakub@redhat.com>
2669
2670 PR debug/44112
2671 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
2672 for all SYMBOL_REF_DECLs.
2673
2674 2010-05-14 Jan Hubicka <jh@suse.cz>
2675
2676 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
2677 (varpool_all_refs_explicit_p): New inline function.
2678 * ipa-reference.c: Update comment.
2679 (module_statics_written): Remove.
2680 (get_static_decl): Remove.
2681 (ipa_init): Do not initialize module_statics_written.
2682 (analyze_function): Likewise.
2683 (generate_summary): Likewise; do not compute module_statics_readonly
2684 and do not update variable flags.
2685 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
2686 * ipa.c: Inlucde flags.h
2687 (cgraph_local_node_p): New.
2688 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
2689 promote functions to local.
2690 (ipa_discover_readonly_nonaddressable_vars): New function.
2691 (function_and_variable_visibility): Use cgraph_local_node_p.
2692 * varpool.c (varpool_finalize_decl): Set force_output for
2693 DECL_PRESERVE_P vars.
2694
2695 2010-05-14 Jan Hubicka <jh@suse.cz>
2696
2697 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
2698
2699 2010-05-14 Richard Guenther <rguenther@suse.de>
2700
2701 PR tree-optimization/44119
2702 * tree-ssa-pre.c (eliminate): Properly mark replacement of
2703 a PHI node necessary.
2704
2705 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
2706
2707 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
2708
2709 2010-05-14 Jason Merrill <jason@redhat.com>
2710
2711 PR c++/44127
2712 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
2713 (gimple_call_set_nothrow): New.
2714 * gimple.c (gimple_build_call_from_tree): Call it.
2715 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
2716
2717 PR c++/44127
2718 * gimplify.c (gimplify_seq_add_stmt): No longer static.
2719 * gimple.h: Declare it.
2720 * gimple.c (gimple_build_eh_filter): No ops.
2721
2722 2010-05-14 Jan Hubicka <jh@suse.cz>
2723
2724 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
2725 nodes already in queue.
2726 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
2727 re-enqueueing node.
2728
2729 2010-05-14 Jakub Jelinek <jakub@redhat.com>
2730
2731 PR debug/44136
2732 * cfgexpand.c (expand_debug_expr): If non-memory op0
2733 has BLKmode, return NULL.
2734
2735 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
2736
2737 * config.gcc: Add support for --with-cpu option for bdver1.
2738 * config/i386/i386.h (TARGET_BDVER1): New macro.
2739 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
2740 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
2741 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
2742 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
2743 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
2744 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
2745 (processor_type): Add PROCESSOR_BDVER1.
2746 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
2747 processor_type in config/i386/i386.h.
2748 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
2749 movaps <reg, reg> instead of movapd <reg, reg> when replacing
2750 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
2751 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
2752 to emit packed xor instead of packed double/packed integer
2753 xor for SSE and AVX when moving a zero value.
2754 * config/i386/sse.md: Add check for
2755 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
2756 movapd/movdqa for SSE and AVX.
2757 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
2758 single logical operations i.e and, or and xor instead of packed double
2759 logical operations for SSE and AVX.
2760 * config/i386/i386-c.c (ix86_target_macros_internal):
2761 Add PROCESSOR_BDVER1.
2762 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
2763 (has_fma4, has_xop): New.
2764 * config/i386/i386.c (bdver1_cost): New variable.
2765 (m_BDVER1): New macro.
2766 (m_AMD_MULTIPLE): Add m_BDVER1.
2767 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
2768 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
2769 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
2770 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
2771 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
2772 x86_tune_sse_partial_reg_dependency,
2773 x86_tune_sse_unaligned_load_optimal,
2774 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
2775 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
2776 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
2777 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
2778 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
2779 Enable/disable for bdver1.
2780 (processor_target_table): Add bdver1_cost.
2781 (cpu_names): Add bdver1.
2782 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
2783 processor_alias_table.
2784 (ix86_expand_vector_move_misalign): Change.
2785 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
2786 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
2787 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
2788 of movupd/movdqu for SSE and AVX.
2789 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
2790 (ix86_tune_adjust_cost): Add code for bdver1.
2791 (standard_sse_constant_opcode): Add check for
2792 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
2793 of packed double xor for SSE and AVX.
2794
2795 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
2796
2797 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
2798 result to unsigned.
2799
2800 2010-05-14 Tristan Gingold <gingold@adacore.com>
2801
2802 * toplev.c (default_debug_hooks): Remove this variable.
2803 (process_options): Remove assignments to default_debug_hooks.
2804
2805 2010-05-14 Martin Jambor <mjambor@suse.cz>
2806
2807 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
2808 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
2809 * langhooks.h (struct lang_hooks_for_decls): Removed field
2810 fold_obj_type_ref.
2811 * tree.c (free_lang_data): Remove assignment to
2812 lang_hooks.fold_obj_type_ref.
2813 * tree.def (OBJ_TYPE_REF): Update comment.
2814
2815 2010-05-14 Richard Guenther <rguenther@suse.de>
2816
2817 PR tree-optimization/44124
2818 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
2819
2820 2010-05-14 Alan Modra <amodra@gmail.com>
2821
2822 PR target/44075
2823 * config/rs6000/rs6000.c (struct machine_function): Reorder
2824 fields for better packing. Add lr_save_state.
2825 (rs6000_ra_ever_killed): Return lr_save_state if set.
2826 (rs6000_emit_eh_reg_restore): Set lr_save_state.
2827
2828 2010-05-13 Jan Hubicka <jh@suse.cz>
2829
2830 * varpool.c (decide_is_variable_needed): Drop code checking
2831 TREE_SYMBOL_REFERENCED.
2832
2833 2010-05-13 Jan Hubicka <jh@suse.cz>
2834
2835 * final.c (output_addr_const): Do not call mark_decl_referenced.
2836 * cgraphunit.c (process_function_and_variable_attributes): Use
2837 mark_needed_node dirrectly.
2838 (assemble_thunk): Do not call mark_decl_referenced.
2839
2840 2010-05-13 Anatoly Sokolov <aesok@post.ru>
2841
2842 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
2843
2844 2010-05-13 Jeff Law <law@redhat.com>
2845
2846 * ira-conflicts.c (print_allocno_conflicts): New function broken out
2847 from...
2848 (print_conflicts): Call print_allocno_conflicts.
2849
2850 2010-05-13 Jakub Jelinek <jakub@redhat.com>
2851
2852 PR debug/44104
2853 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
2854 if it is NULL.
2855
2856 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
2857
2858 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
2859 t-mingw-w64 or t-mingw-w32 for multilib configuration.
2860 * config/i386/t-mingw-w32: New.
2861 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
2862
2863 2010-05-13 Martin Jambor <mjambor@suse.cz>
2864
2865 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
2866 gimple-fold.c).
2867 * gimple-fold.c (get_base_binfo_for_type): New function.
2868 (gimple_get_relevant_ref_binfo): Likewise.
2869 (gimple_fold_obj_type_ref_known_binfo): Likewise.
2870 (gimple_fold_obj_type_ref): Likewise.
2871 (fold_gimple_call): Simplify condition for folding virtual calls
2872 and call gimple_fold_obj_type_ref.
2873 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
2874 (gimple_fold_obj_type_ref_known_binfo): Likewise.
2875
2876 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
2877
2878 * config/rs6000/rs6000-protos.h
2879 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
2880 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
2881 (rs6000_debug_mode_dependent_address)
2882 (rs6000_mode_dependent_address_ptr): Likewise.
2883
2884 2010-05-13 Jakub Jelinek <jakub@redhat.com>
2885
2886 PR debug/43983
2887 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
2888 by SRA.
2889 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
2890 * tree-sra.c (create_access_replacement): Call unshare_expr before
2891 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
2892 * dwarf2out.c: Include tree-flow.h.
2893 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
2894 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
2895 Handle DW_OP_bit_piece.
2896 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
2897 construct_piece_list, adjust_piece_list): New functions.
2898 (add_var_loc_to_decl): Handle SRA optimized variables.
2899 Adjust for var_loc_note to loc field renaming.
2900 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
2901 in VAR_LOCATION note.
2902 (new_loc_descr_op_bit_piece): New function.
2903 (dw_sra_loc_expr): New function.
2904 (dw_loc_list): Use it. Don't handle the last range after the
2905 loop, handle it inside of the loop. Adjust for var_loc_note
2906 to loc field renaming.
2907 (add_location_or_const_value_attribute): Only special case
2908 single entry loc lists if loc is NOTE_P. Adjust for
2909 var_loc_note to loc field renaming.
2910 (dwarf2out_var_location): Don't set newloc->var_loc_note
2911 and newloc->next here.
2912
2913 2010-05-12 Jan Hubicka <jh@suse.cz>
2914
2915 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
2916 flag.
2917 * cgraph.h (cgraph_only_called_directly_p,
2918 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
2919 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
2920 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
2921 (assemble
2922 * ipa.c (cgraph_remove_unreachable_nodes): Use
2923 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
2924 flags.
2925 * tree-inline.c (copy_bb): Check address_taken flag.
2926 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
2927 externally_visible flag.
2928
2929 2010-05-12 Jason Merrill <jason@redhat.com>
2930
2931 PR bootstrap/44048
2932 PR target/44099
2933 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
2934 * sdbout.c (plain_type_1): Likewise.
2935 * dwarf2out.c (is_base_type): Likewise.
2936 (gen_type_die_with_usage): Likewise. Generate
2937 DW_TAG_unspecified_type for any LANG_TYPE.
2938
2939 2010-05-12 Jan Hubicka <jh@suse.cz>
2940
2941 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
2942 indrect edges too.
2943 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
2944 (cgraph_clone_edge): Update.
2945 (cgraph_node_remove_callees): Remove indirect calls too.
2946 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
2947 (cgraph_create_indirect_edge): Update prototype.
2948 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
2949 is_proper_for_analysis.
2950 (add_new_function, visited_nodes, function_insertion_hook_holder,
2951 get_local_reference_vars_info, mark_address_taken, mark_address,
2952 mark_load, mark_store, check_asm_memory_clobber, check_call,
2953 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
2954 (ipa_init): Do not initialize visited_nodes;
2955 function_insertion_hook_holder.
2956 (analyze_variable): Rewrite.
2957 (analyze_function): Rewrite.
2958 (copy_local_bitmap): Remove.
2959 (duplicate_node_dat): Do not duplicate local info.
2960 (generate_summary): Simplify to only walk cgraph.
2961 (write_node_summary_p, ipa_reference_write_summary,
2962 ipa_reference_read_summary): Remove.
2963 (propagate): Do not remove function insertion;
2964 generate summary.
2965 (pass_ipa_reference): NULLify summary handling fields.
2966 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
2967 (input_edge): Input ecf_flags.
2968 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
2969 (update_indirect_edges_after_inlining): Ignore edges with unknown
2970 param.
2971
2972 2010-05-12 Sriraman Tallam <tmsriram@google.com>
2973
2974 * implicit-zee.c: New file.
2975 * tree-pass.h (pass_implicit_zee): Declare.
2976 * passes.c (init_optimization_passes): Add zee pass.
2977 * common.opt (fzee): New flag.
2978 * timevar.def (TV_ZEE): Define.
2979 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
2980 and beyond.
2981 * Makefile.in (implicit-zee.o): Add new build file.
2982
2983 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
2984 Nathan Froyd <froydnj@codesourcery.com>
2985
2986 * c-common.c (sync_resolve_params): Remove write-only variable.
2987
2988 2010-05-12 Anatoly Sokolov <aesok@post.ru>
2989
2990 * target.h (struct gcc_target): Add mode_dependent_address_p field.
2991 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
2992 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
2993 * targhooks.c (default_mode_dependent_address_p): New function.
2994 * targhooks.h (default_mode_dependent_address_p): Declare function.
2995 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
2996 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
2997 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
2998 target hook. Change return type to bool.
2999 * recog.h (mode_dependent_address_p): Change return type to bool.
3000
3001 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
3002 Nathan Froyd <froydnj@codesourcery.com>
3003
3004 * tree-mudflap.c (build_function_type_0, build_function_type_1,
3005 build_function_type_2, build_function_type_3): Remove.
3006 (mudflap_init): Use build_function_type_list.
3007
3008 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
3009 Nathan Froyd <froydnj@codesourcery.com>
3010
3011 * coverage.c (build_fn_info_value): Call build_constructor instead of
3012 build_constructor_from_list.
3013 (build_ctr_info_value): Likewise.
3014 (build_gcov_info): Likewise.
3015
3016 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
3017
3018 * tree.c (build_constructor): Compute TREE_CONSTANT for the
3019 resultant constructor.
3020 (build_constructor_single): Don't set TREE_CONSTANT.
3021 (build_constructor_from_list): Don't compute TREE_CONSTANT.
3022
3023 2010-05-12 Jan Hubicka <jh@suse.cz>
3024
3025 * cgraph.h (struct varpool_node): Add aux.
3026 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
3027 * varpool.c (varpool_remove_node): Do not remove initializer.
3028 (varpool_reset_queue): Export.
3029 (varpool_finalize_decl): Volatile vars are forced to be output.
3030 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
3031 replaced decl.
3032 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
3033 process_references, varpool_can_remove_if_no_refs): New functions.
3034 (cgraph_remove_unreachable_nodes): Handle variables too.
3035
3036 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
3037
3038 PR target/44088
3039 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
3040
3041 2010-05-12 Jakub Jelinek <jakub@redhat.com>
3042
3043 PR middle-end/44085
3044 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
3045 change value of ORT_TASK.
3046 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
3047 (omp_notice_threadprivate_variable): New function.
3048 (omp_notice_variable): Call it for threadprivate variables.
3049 If enclosing ctx is a task, print enclosing task rather than
3050 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
3051 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
3052 if task has untied clause.
3053
3054 PR debug/42278
3055 * dwarf2out.c (base_type_die): Don't add name attribute here.
3056 (modified_type_die): Instead of sizetype use
3057 its underlying original type. If a DW_TAG_base_type doesn't
3058 have name added, add __unknown__.
3059 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
3060 always call force_type_die instead.
3061
3062 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
3063
3064 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
3065 for __stack_chk_guard.
3066
3067 2010-05-11 Jakub Jelinek <jakub@redhat.com>
3068
3069 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
3070 don't call start_source_file debug hook here...
3071 (finish_options): ... but here, after outputting predefined and
3072 command line defines and undefs.
3073
3074 PR middle-end/44071
3075 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
3076 no fallthru edge.
3077 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
3078 optimizing away empty bb with no successors, move over its
3079 footer chain to fallthru predecessor.
3080 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
3081 (rtl_split_edge): For asm goto call patch_jump_insn even if
3082 splitting fallthru edge.
3083
3084 PR c++/44059
3085 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
3086 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
3087 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
3088 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
3089 on DW.ref.* decls.
3090
3091 PR c++/44062
3092 * c-parser.c (c_parser_expression): Mark LHS of a comma
3093 expression as read if it is a decl, handled component or
3094 COMPOUND_EXPR with that on the RHS.
3095 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
3096 if it is a decl or handled component.
3097
3098 2010-05-11 Jan Hubicka <jh@suse.cz>
3099
3100 * lto-symtab.c (lto_symtab_free): New function.
3101 * lto-streamer.h (lto_symtab_free): Declare.
3102
3103 2010-05-11 Jan Hubicka <jh@suse.cz>
3104
3105 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
3106 that if function is needed it is reachable.
3107 (lto_output_node): See if it the function is reachable or referenced.
3108 (output_cgraph): Update call of lto_output_node.
3109 * lto-streamer.h (reachable_from_other_partition_p): Declare.
3110
3111 2010-05-11 Jan Hubicka <jh@suse.cz>
3112
3113 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
3114 Mark as used.
3115
3116 2010-05-11 Jan Hubicka <jh@suse.cz>
3117
3118 PR tree-optimize/44063
3119 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
3120 queue.
3121 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
3122 limits.
3123 (estimate_function_body_sizes): Compute sizes even when disregarding.
3124
3125 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
3126
3127 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
3128
3129 2010-05-11 Jan Hubicka <jh@suse.cz>
3130
3131 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
3132 into every boundary.
3133
3134 2010-05-11 Jan Hubicka <jh@suse.cz>
3135
3136 * matrix-reorg.c (matrix_reorg): Rebuild edges.
3137
3138 2010-05-11 Jan Hubicka <jh@suse.cz>
3139
3140 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
3141 lto_streamer_cache_delete): Put nodes into heap.
3142 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
3143 heap.
3144
3145 2010-05-11 Jan Hubicka <jh@suse.cz>
3146
3147 * cgraphbuild.c (cgraph_rebuild_references): New.
3148 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
3149 out extern inlines.
3150 * cgraph.h (cgraph_rebuild_references): Declare.
3151 * tree-inline.c (tree_function_versioning): Use it.
3152 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
3153
3154 2010-05-11 Jan Hubicka <jh@suse.cz>
3155
3156 * cgraph.c: Include ipa-utils.h
3157 (cgraph_create_virtual_clone): Update references.
3158 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
3159
3160 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
3161
3162 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
3163 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
3164 cache size.
3165
3166 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
3167
3168 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
3169
3170 2010-05-11 Jakub Jelinek <jakub@redhat.com>
3171
3172 * gcc.c (execute): For -### don't quote arguments that
3173 contain just alphanumerics and _/-. characters.
3174 * doc/invoke.texi: Document that change for -###.
3175
3176 PR debug/44023
3177 * df-problems.c (struct dead_debug): Add to_rescan field.
3178 (dead_debug_init): Clear to_rescan field.
3179 (dead_debug_finish): Rescan all debug insns in to_rescan
3180 bitmap and free the bitmap.
3181 (dead_debug_insert_before): Instead of rescanning debug insns
3182 immediately queue their rescanning until dead_debug_finish.
3183 (df_note_bb_compute): After dead_debug_add do continue instead
3184 of break.
3185
3186 2010-05-10 Jakub Jelinek <jakub@redhat.com>
3187
3188 PR debug/44028
3189 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
3190 clear also INSN_REG_USE_LIST.
3191
3192 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3193
3194 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
3195
3196 2010-05-10 Jan Hubicka <jh@suse.cz>
3197
3198 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
3199 commited change.
3200
3201 2010-05-10 Jan Hubicka <jh@suse.cz>
3202
3203 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
3204 Allocate encoders.
3205 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
3206 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
3207 (lto_streamer_cache_create): Init alloc pool.
3208 (lto_streamer_cache_delete): Free alloc pool.
3209 * lto-streamer.h: Include alloc pool.
3210 (lto_streamer_cache_d): Use alloc pool.
3211 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
3212
3213 2010-05-10 Jan Hubicka <jh@suse.cz>
3214
3215 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
3216 * cgraphbuild.c: Include except.h
3217 (record_type_list, record_eh_tables): New function.
3218 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
3219
3220 2010-05-10 Jan Hubicka <jh@suse.cz>
3221
3222 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
3223 __frame_dummy_init_array_entry, force_to_data): Attribute as used
3224 rather than unused.
3225
3226 2010-05-10 Michael Matz <matz@suse.de>
3227
3228 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
3229 (can_reassociate_p): Use FLOAT_TYPE_P.
3230 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
3231 (vect_force_simple_reduction): ... this.
3232 * tree-parloops.c (gather_scalar_reductions): Use
3233 vect_force_simple_reduction.
3234 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
3235 vect_is_simple_reduction, add modify argument, if true rewrite
3236 "a-b" into "a+(-b)".
3237 (vect_is_simple_reduction, vect_force_simple_reduction): New
3238 functions.
3239 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
3240
3241 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
3242 Vladimir Makarov <vmakarov@redhat.com>
3243
3244 PR rtl-optimization/44012
3245 * ira-build.c (remove_unnecessary_allocnos): Nullify
3246 regno_allocno_map of the removed allocno.
3247
3248 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3249
3250 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
3251 to /dev/null.
3252 * configure: Regenerate.
3253
3254 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3255
3256 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
3257 unused.
3258 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
3259 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
3260 support in Sun ld.
3261 * configure: Regenerate.
3262
3263 2010-05-10 Richard Guenther <rguenther@suse.de>
3264
3265 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
3266 marked if the entry identifier is marked.
3267
3268 2010-05-10 Richard Guenther <rguenther@suse.de>
3269
3270 * c-common.c (struct c_common_attributes): Add fnspec attribute.
3271 (handle_fnspec_attribute): New function.
3272 * gimple.h (gimple_call_return_flags): Declare.
3273 (gimple_call_arg_flags): Likewise.
3274 * gimple.c (gimple_call_arg_flags): New function.
3275 (gimple_call_return_flags): Likewise.
3276 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
3277 New argument flags.
3278 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
3279 return value flags.
3280 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
3281 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
3282 main work to ...
3283 (make_heapvar_for): ... this new function.
3284 (handle_rhs_call): Handle fnspec attribute argument specifiers.
3285 (handle_lhs_call): Likewise.
3286 (find_func_aliases): Adjust.
3287
3288 2010-05-10 Richard Guenther <rguenther@suse.de>
3289
3290 PR tree-optimization/44050
3291 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
3292
3293 2010-05-10 Wei Guozhi <carrot@google.com>
3294
3295 PR target/42879
3296 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
3297
3298 2010-05-09 Joseph Myers <joseph@codesourcery.com>
3299
3300 PR c/10676
3301 * c-typeck.c (lookup_field): Take a type directly. Update
3302 recursive calls.
3303 (build_component_ref): Update call to lookup_field.
3304 (set_init_label): Use lookup_field to find initialized field.
3305 Handle returned list of fields like a sequence of designators.
3306
3307 2010-05-09 Richard Guenther <rguenther@suse.de>
3308
3309 PR middle-end/44024
3310 * fold-const.c (tree_single_nonzero_warnv_p): Properly
3311 handle &FUNCTION_DECL.
3312
3313 2010-05-09 Joseph Myers <joseph@codesourcery.com>
3314
3315 PR c/4784
3316 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
3317 structures and unions recursively.
3318 (detect_field_duplicates): Move duplicate detection with a hash to
3319 detect_field_duplicates_hash. Always use a hash if anonymous
3320 structures or unions are present.
3321 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
3322 give errors.
3323
3324 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
3325
3326 PR target/44046
3327 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
3328 detect Atom, Core 2 and Core i7.
3329
3330 2010-05-09 Richard Guenther <rguenther@suse.de>
3331
3332 * gcc.c (store_arg): Handle temporary file deletion for
3333 joined arguments.
3334
3335 2010-05-09 Richard Guenther <rguenther@suse.de>
3336
3337 PR middle-end/44043
3338 * ipa-inline.c (estimate_function_body_sizes): Return after
3339 disregarding inline limits.
3340
3341 2010-05-09 Richard Guenther <rguenther@suse.de>
3342
3343 * gcc.c (store_arg): Revert last change.
3344
3345 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
3346
3347 PR middle-end/28685
3348 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
3349 (optimize_ops_list): Call it.
3350
3351 2010-05-08 Richard Guenther <rguenther@suse.de>
3352
3353 PR tree-optimization/44030
3354 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
3355 NECESSARY flag if we propagate from a inserted expression.
3356
3357 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3358
3359 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
3360 domain types as equal if they are both PLACEHOLDER_EXPRs.
3361
3362 2010-05-08 Richard Guenther <rguenther@suse.de>
3363
3364 * lto-wrapper.c (run_gcc): Remove linker output from
3365 command line for LTRANS invocation.
3366
3367 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
3368
3369 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3370 lto-macho as lto_binary_reader.
3371 * target.h (struct gcc_target): New hooks lto_start and lto_end.
3372 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
3373 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
3374 in lto_start and lto_end calls.
3375 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
3376 magic numbers.
3377 (scan_prog_file): Update is_elf_or_coff call.
3378 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
3379
3380 * collect2.c (main): Fix enum comparison.
3381
3382 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
3383 Add prototypes.
3384 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
3385 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
3386 and TARGET_ASM_LTO_END.
3387 * darwin.c: Include obstack.h and lto-streamer.h.
3388 (lto_section_names_offset, lto_section_names_obstack,
3389 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
3390 global variables.
3391 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
3392 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
3393 to a temporary file.
3394 (darwin_asm_lto_end): New function. Restore asm_out_file.
3395 (darwin_asm_named_section): For LTO sections, replace the name with
3396 the offset of the section name in a string table, and build this
3397 table.
3398 (darwin_file_start): Initialize global vars for LTO support.
3399 (darwin_file_end): If output to asm_out_file was redirected, append it
3400 to the proper asm_out_file here. Add the section names section.
3401
3402 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
3403
3404 * c-pragma.c (pending_weak_d, pending_weak): New.
3405 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
3406 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
3407 handle_pragma_weak): Update the uses of pending_weaks.
3408
3409 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3410
3411 PR documentation/44016
3412 * doc/standards.texi (Standards): Link to unversioned
3413 cxx0x_status.html page.
3414
3415 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
3416
3417 PR target/43708
3418 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
3419 in addition to TREE_USED, to avoid "set but unused" warnings.
3420
3421 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
3422
3423 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
3424 (is_loop_prefetching_profitable): Do not insert prefetches
3425 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
3426 times the prefetch ahead distance.
3427
3428 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
3429
3430 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
3431 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
3432 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
3433 the unroll_factor.
3434
3435 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
3436
3437 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
3438 a diagnostic info when the insn-to-mem ratio is too small.
3439
3440 2010-05-07 Richard Guenther <rguenther@suse.de>
3441
3442 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
3443 the linker plugin.
3444 (store_arg): Queue temp_filename for deletion instead of
3445 the whole argument.
3446
3447 2010-05-07 Richard Guenther <rguenther@suse.de>
3448
3449 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
3450 (run_gcc): Handle LTRANS phase invocation.
3451 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
3452
3453 2010-05-07 Jakub Jelinek <jakub@redhat.com>
3454
3455 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
3456 this is also meaningful on PARM_DECLs and RESULT_DECLs.
3457
3458 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3459
3460 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
3461
3462 2010-05-07 Richard Guenther <rguenther@suse.de>
3463
3464 PR tree-optimization/44020
3465 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
3466 code when PRE is not yet initialized.
3467
3468 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3469
3470 * config/mips/dbxmdebug.h: Remove.
3471 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
3472
3473 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
3474
3475 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
3476 with null pointer and also warn about ordered comparison of zero with
3477 pointer if -Wextra.
3478
3479 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
3480
3481 * graphite-blocking.c
3482 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
3483 * graphite-clast-to-gimple.c
3484 (clast_to_gcc_expression): Same.
3485 (precision_for_value): Same.
3486 (precision_for_interval): Same.
3487 (gcc_type_for_interval): Same.
3488 (graphite_create_new_guard): Same.
3489 (compute_bounds_for_level): Same.
3490 (graphite_create_new_loop_guard): Same.
3491 * graphite-interchange.c
3492 (build_linearized_memory_access): Same.
3493 (pdr_stride_in_loop): Same.
3494 (memory_strides_in_loop_1): Same.
3495 (memory_strides_in_loop): Same.
3496 (extend_scattering): Same.
3497 (psct_scattering_dim_for_loop_depth): Same.
3498 (pbb_number_of_iterations): Same.
3499 * graphite-poly.h
3500 (debug_iteration_domains): Same.
3501 * graphite-ppl.c
3502 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3503 (ppl_set_inhomogeneous_gmp): Same.
3504 (ppl_strip_loop): Same.
3505 (ppl_lexico_compare_linear_expressions): Same.
3506 (ppl_read_polyhedron_matrix): Same.
3507 (ppl_max_for_le_pointset): Same.
3508 * graphite-ppl.h
3509 (ppl_read_polyhedron_matrix): Same.
3510 (tree_int_to_gmp): Same.
3511 (gmp_cst_to_tree): Same.
3512 (ppl_set_inhomogeneous): Same.
3513 (ppl_set_inhomogeneous_tree): Same.
3514 (ppl_set_coef): Same.
3515 (ppl_set_coef_tree): Same.
3516 * graphite-sese-to-poly.c
3517 (build_pbb_scattering_polyhedrons): Same.
3518 (build_scop_scattering): Same.
3519 (scan_tree_for_params_right_scev): Same.
3520 (scan_tree_for_params): Same.
3521 (find_params_in_bb): Same.
3522 (find_scop_parameters): Same.
3523 (add_upper_bounds_from_estimated_nit): Same.
3524 (build_loop_iteration_domains): Same.
3525 (add_condition_to_domain): Same.
3526 (pdr_add_memory_accesses): Same.
3527
3528 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
3529
3530 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
3531 CLooG's value_* macros to their respective mpz_* counterparts.
3532 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
3533 (graphite_create_new_loop_guard): Same.
3534 * graphite-interchange.c (build_linearized_memory_access): Same.
3535 (pdr_stride_in_loop): Same.
3536 (memory_strides_in_loop_1): Same.
3537 (1st_interchange_profitable_p): Same.
3538 * graphite-poly.c (extend_scattering): Same.
3539 (psct_scattering_dim_for_loop_depth): Same.
3540 (pbb_number_of_iterations): Same.
3541 (pbb_number_of_iterations_at_time): Same.
3542 * graphite-poly.h (new_1st_loop): Same.
3543 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
3544 (oppose_constraint): Same.
3545 (insert_constraint_into_matrix): Same.
3546 (ppl_set_inhomogeneous_gmp): Same.
3547 (ppl_set_coef_gmp): Same.
3548 (ppl_strip_loop): Same.
3549 (ppl_lexico_compare_linear_expressions): Same.
3550 (ppl_max_for_le_pointset): Same.
3551 (ppl_min_for_le_pointset): Same.
3552 (ppl_build_realtion): Same.
3553 * graphite-ppl.h (gmp_cst_to_tree): Same.
3554 (ppl_set_inhomogeneous): Same.
3555 (ppl_set_inhomogeneous_tree): Same.
3556 (ppl_set_coef): Same.
3557 (ppl_set_coef_tree): Same.
3558 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
3559 (build_scop_scattering): Same.
3560 (add_value_to_dim): Same.
3561 (scan_tree_for_params_right_scev): Same.
3562 (scan_tree_for_params_int): Same.
3563 (scan_tree_for_params): Same.
3564 (find_params_in_bb): Same.
3565 (find_scop_parameters): Same.
3566 (add_upper_bounds_from_estimated_nit): Same.
3567 (build_loop_iteration_domains): Same.
3568 (create_linear_expr_from_tree): Same.
3569 (add_condition_to_domain): Same.
3570 (pdr_add_memory_accesses): Same.
3571
3572 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
3573 Jason Merrill <jason@redhat.com>
3574
3575 * c-common.c (c_common_reswords): Add nullptr.
3576 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
3577 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
3578 (gen_type_die_with_usage): Likewise.
3579 * dbxout.c (dbxout_type): Likewise.
3580 * sdbout.c (plain_type_1): Likewise.
3581
3582 2010-05-06 Jason Merrill <jason@redhat.com>
3583
3584 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
3585 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
3586 ret appropriately.
3587 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
3588
3589 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
3590 stripping WITH_SIZE_EXPR.
3591 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
3592 change.
3593
3594 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3595
3596 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
3597 list of obsolete configurations.
3598 Disabled check for obsolete configurations.
3599 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
3600 Removed support for previous versions.
3601 * config/mips/iris.h: Removed.
3602 * config/mips/iris5.h: Removed.
3603 * config/mips/iris6.h: Merged old iris.h contents.
3604 (TARGET_IRIX): Removed.
3605 (DRIVER_SELF_SPECS): Removed mabi=32.
3606 (IDENT_ASM_OP): Removed undef.
3607 (STARTFILE_SPEC): Removed mabi=32.
3608 (ENDFILE_SPEC): Likewise.
3609 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
3610 (MACHINE_TYPE): Update for IRIX 6.5.
3611 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
3612 TARGET_IRIX by TARGET_IRIX6.
3613 (mips_file_start): Likewise.
3614 (mips_output_external): Remove IRIX 5/6 O32 support.
3615 (mips_output_function_prologue): Likewise.
3616 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
3617 TARGET_IRIX6.
3618 (TARGET_CPU_CPP_BUILTINS): Likewise.
3619 (TARGET_IRIX): Removed.
3620 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
3621 (MULTILIB_DIRNAMES): Removed 32.
3622 (MULTILIB_OSDIRNAMES): Removed ../lib.
3623 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
3624 (Specific, mips-sgi-irix5): Document removal.
3625 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
3626 Remove references to older IRIX 6 releases and the O32 ABI.
3627
3628 2010-05-06 Jakub Jelinek <jakub@redhat.com>
3629
3630 PR bootstrap/43994
3631 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
3632 instead of DF_REF_REAL_REG.
3633
3634 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
3635
3636 PR target/43888
3637 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
3638 handling to still return true for x64 targets.
3639
3640 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
3641
3642 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
3643
3644 2010-05-06 Jan Hubicka <jh@suse.cz>
3645
3646 PR tree-optimization/43791
3647 * ipa-inline.c (update_caller_keys): Remove bogus
3648 disregard_inline_limits check.
3649
3650 2010-05-06 Michael Matz <matz@suse.de>
3651
3652 PR tree-optimization/43984
3653 * tree-ssa-pre.c (inserted_phi_names): Remove.
3654 (inserted_exprs): Change to bitmap.
3655 (create_expression_by_pieces): Set bits, don't append to vector.
3656 (insert_into_preds_of_block): Don't handle inserted_phi_names.
3657 (eliminate): Don't look at inserted_phi_names, remove deleted
3658 insns from inserted_exprs.
3659 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
3660 (init_pre, fini_pre): Allocate and free bitmaps.
3661 (execute_pre): Insert insns on edges before elimination.
3662
3663 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
3664
3665 * tree.c (initializer_zerop): Handle STRING_CST.
3666
3667 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
3668
3669 PR 40989
3670 * doc/invoke.texi (Wimplicit): Document as C only.
3671 * opts.c (common_handle_option): Add argument kind.
3672 (handle_option): Rename as read_cmdline_option. Factor out code to...
3673 (handle_option): ... here. New.
3674 (handle_options): Rename as read_cmdline_options.
3675 (decode_options): Update call.
3676 (set_option): Use option index instead of option pointer. Classify
3677 diagnostics correctly.
3678 (enable_warning_as_error): Call handle_option.
3679 * opts.h (set_option): Update declaration.
3680 (handle_option): Declare.
3681 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
3682 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
3683 * c-opts.c (set_Wimplicit): Delete.
3684 (c_family_lang_mask): New static constant.
3685 (c_common_handle_option): Add argument kind. Use handle_option
3686 instead of set_Wimplicit.
3687 (c_common_post_options): warn_implicit and warn_implicit_int
3688 are disabled by default.
3689 * c-common.c (warn_implicit): Do not define here.
3690 * c-common.h (warn_implicit): Do not declare here.
3691 (c_common_handle_option): Update declaration.
3692 * lto-opts.c (lto_reissue_options): Update call to set_option.
3693
3694 2010-05-06 Richard Guenther <rguenther@suse.de>
3695
3696 PR tree-optimization/43571
3697 * domwalk.c (walk_dominator_tree): Walk the dominator
3698 sons in more optimal order.
3699
3700 2010-05-06 Richard Guenther <rguenther@suse.de>
3701
3702 PR tree-optimization/43934
3703 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
3704 (stmt_cost): Likewise.
3705 (extract_true_false_args_from_phi): New helper.
3706 (determine_max_movement): For PHI nodes verify we can hoist them
3707 and compute their cost.
3708 (determine_invariantness_stmt): Handle PHI nodes.
3709 (move_computations_stmt): Likewise. Hoist PHI nodes in
3710 if-converted form using COND_EXPRs.
3711 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
3712 (tree_ssa_lim): Likewise.
3713 * tree-flow.h (tree_ssa_lim): Adjust prototype.
3714 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
3715
3716 2010-05-06 Richard Guenther <rguenther@suse.de>
3717
3718 PR tree-optimization/43987
3719 * tree-ssa-structalias.c (could_have_pointers): For possibly
3720 address-taken variables force pointers to be recorded.
3721 (create_variable_info_for_1): Likewise.
3722 (push_fields_onto_fieldstack): Pass in wheter all fields
3723 must have pointers.
3724 (find_func_aliases): Query types instead of vars whether
3725 they contain pointers where appropriate.
3726
3727 2010-05-06 Jan Hubicka <jh@suse.cz>
3728
3729 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
3730 (record_reference, mark_address, mark_load, mark_store): Record
3731 references.
3732 (record_references_in_initializer): Update call of record_references.
3733 (rebuild_cgraph_edges): Remove all references before rebuiding.
3734 * cgraph.c (cgraph_create_node): Clear ref list.
3735 (cgraph_remove_node): Remove references.
3736 (dump_cgraph_node): Dump references.
3737 (cgraph_clone_node): Clone references.
3738 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
3739 (struct cgraph_node, varpool_node): Add ref_lst.
3740 * ipa-ref.c: New file.
3741 * ipa-ref.h: New file.
3742 * ipa-ref-inline.h: New file.
3743 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
3744 (referenced_from_other_partition_p): New function.
3745 (lto_output_varpool_node): Take set arugment; call
3746 referenced_from_other_partition.
3747 (lto_output_ref): New.
3748 (add_references): New.
3749 (output_refs): New.
3750 (output_cgraph): Compute boundary based on references; output refs.
3751 (output_varpool): Accept cgraph_node_set argument.
3752 (input_ref): New.
3753 (input_refs): New.
3754 (input_cgraph): Call input_refs.
3755 * lto-section-in.c (lto_section_name): Add refs.
3756 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
3757 (ipa-ref.o): New file.
3758 * varpool.c (varpool_node): Clear ipa ref list.
3759 (varpool_remove_node): Remove references.
3760 (dump_varpool_node): Dump references.
3761 (varpool_assemble_decl): Only compile finalized ones.
3762 (varpool_extra_name_alias): Initialize ref list.
3763 * lto-streamer.c (lto-get_section_name): Add .refs section.
3764 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
3765 (referenced_from_other_partition_p): Declared.
3766
3767 2010-05-06 Ira Rosen <irar@il.ibm.com>
3768
3769 PR tree-optimization/43901
3770 * tree-vect-stmts.c (vectorizable_call): Assert that vector
3771 type is not NULL if it's transformation phase, and return
3772 FALSE if it's analysis.
3773 (vectorizable_conversion, vectorizable_operation,
3774 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
3775
3776 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
3777
3778 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
3779 Delete.
3780 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
3781 New define.
3782 * config/mips/mips-protos.h
3783 (mips_small_register_classes_for_mode_p): Delete prototype.
3784
3785 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
3786
3787 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
3788 * config/arm/arm.c (multiple_operation_profitable_p,
3789 compute_offset_order): New static functions.
3790 (load_multiple_sequence, store_multiple_sequence): Use them.
3791 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
3792 memory offsets, not register numbers.
3793 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
3794
3795 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
3796
3797 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
3798 (get_pending_sizes, put_pending_size, put_pending_sizes):
3799 Update the uses of pending_sizes.
3800 * c-decl.c (store_parm_decls): Likewise.
3801 * c-tree.h (struct c_arg_info): Likewise.
3802 * tree.h: Update the prototype for get_pending_sizes and
3803 put_pending_sizes.
3804
3805 2010-05-05 Jason Merrill <jason@redhat.com>
3806
3807 PR debug/43370
3808 * c-common.c (handle_aligned_attribute): Respect
3809 ATTR_FLAG_TYPE_IN_PLACE.
3810
3811 PR testsuite/43758
3812 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
3813 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3814 (TARGET_INITIALIZER): Use it.
3815 * c-common.c (attribute_takes_identifier_p): Call it.
3816 * c-common.h: Update prototype.
3817 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
3818 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3819
3820 2010-05-05 Jakub Jelinek <jakub@redhat.com>
3821
3822 PR debug/43950
3823 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
3824 DW_ID_down_case for Fortran compilation units.
3825
3826 2010-05-05 Jan Hubicka <jh@suse.cz>
3827
3828 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
3829 handle aliases.
3830
3831 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
3832
3833 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
3834 a variable-sized RESULT_DECL.
3835
3836 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
3837
3838 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
3839
3840 2010-05-05 Jason Merrill <jason@redhat.com>
3841
3842 PR c++/43787
3843 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
3844 returns GS_OK.
3845 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
3846
3847 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
3848 Jakub Jelinek <jakub@redhat.com>
3849
3850 PR debug/43478
3851 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
3852 (dead_debug_init, dead_debug_finish): New functions.
3853 (dead_debug_add, dead_debug_insert_before): Likewise.
3854 (df_note_bb_compute): Initialize a dead_debug object, add dead
3855 debug uses to it, insert debug bind insns before death insns,
3856 reset debug insns that refer to pending uses at the end.
3857 * rtl.h (make_debug_expr_from_rtl): New prototype.
3858 * varasm.c (make_debug_expr_from_rtl): New function.
3859
3860 2010-05-05 Jan Hubicka <jh@suse.cz>
3861
3862 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
3863 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
3864 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
3865 lto_varpool_encoder_deref, lto_varpool_encoder_size,
3866 lto_varpool_encoder_encode_initializer_p,
3867 lto_set_varpool_encoder_encode_initializer): New functions.
3868 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
3869 call output_varpool.
3870 (input_varpool_node): Do not always set analyzed.
3871 (input_cgraph_1): Return vector of cgraph nodes.
3872 (input_varpool_1): Return vector of varpools.
3873 (input_cgraph): Free the vectors.
3874 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3875 output only initializers needed.
3876 (lto_output): Only call output_cgraph.
3877 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
3878 * lto-section-out.c (lto_new_out_decl_state): Initialize
3879 state->varpool_node_encoder.
3880 * lto-streamer.h (lto_varpool_encoder_d): New.
3881 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
3882 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
3883 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
3884 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
3885 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
3886 Declare.
3887 (output_varpool, input_varpool): Remove declarations.
3888
3889 2010-05-05 Jan Hubicka <jh@suse.cz>
3890
3891 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
3892 with body can prevail.
3893
3894 2010-05-05 Jan Hubicka <jh@suse.cz>
3895
3896 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
3897 size.
3898
3899 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3900
3901 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
3902
3903 * gengtype.h (erro_at_line): Constify pos argument.
3904
3905 * gengtype.c: Include hashtab.h.
3906 (enum gc_used): Document GC_MAYBE_POINTED_TO.
3907 (error_at_line): Constify pos argument.
3908 (do_typedef): Initialize p->opt field.
3909 (get_file_gtfilename): Fix comment typo.
3910 (struct walk_type_data): Constify line field.
3911 (get_output_file_for_structure): New function.
3912 (write_local_func_for_structure): Constify orig_s argument.
3913 Use get_output_file_for_structure.
3914 (write_func_for_structure): Use get_output_file_for_structure.
3915 (INDENT): New define.
3916 (dump_pair, dump_type, dump_type_list, dump_typekind)
3917 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
3918 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
3919 functions.
3920 (seen_types): New variable.
3921 (main): New variable do_dump. Process "-d" command line option.
3922 Call dump_everything if dump requested.
3923
3924 2010-05-05 Jakub Jelinek <jakub@redhat.com>
3925
3926 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
3927 in a temporary instead of invoking the macro multiple times.
3928 (track_expr_p): Likewise.
3929
3930 2010-05-04 Neil Vachharajani <nvachhar@google.com>
3931
3932 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
3933 per new semantics.
3934 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
3935 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
3936 conditions for printing notes.
3937 * common.opt (-Wcoverage-mismatch): Allow negative, default to
3938 true, update documentation.
3939 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
3940
3941 2010-05-04 Jakub Jelinek <jakub@redhat.com>
3942
3943 PR c/43981
3944 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
3945 on dimen.
3946
3947 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
3948
3949 PR target/43799
3950 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
3951 (*sse_prologue_save_insn1): Likewise.
3952 (SSE prologue save splitter): Likewise.
3953
3954 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
3955
3956 * tree.c (free_lang_data_in_one_sizepos): New inline function.
3957 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
3958 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
3959 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
3960 all decls. Call it on DECL_FIELD_OFFSET of fields.
3961 (find_decls_types_r): Follow DECL_VALUE_EXPR.
3962 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
3963
3964 2010-05-04 Martin Jambor <mjambor@suse.cz>
3965
3966 * tree-sra.c (build_access_from_expr_1): The first parameter type
3967 changed to simple tree.
3968 (build_access_from_expr): Likewise, gsi parameter was eliminated.
3969 (scan_assign_result): Renamed to assignment_mod_result, enum elements
3970 renamed as well.
3971 (build_accesses_from_assign): Removed all parameters except for a
3972 simple gimple statement. Now returns a simple bool.
3973 (scan_function): All non-analysis parts moved to separate functions
3974 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
3975 parameters and updated both callers.
3976 (sra_modify_expr): Removed parameter data.
3977 (sra_modify_function_body): New function.
3978 (perform_intra_sra): Call sra_modify_function_body to modify the
3979 function body.
3980 (replace_removed_params_ssa_names): Parameter data changed into
3981 adjustments vector.
3982 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
3983 changed the parameter dont_convert to convert with the opposite
3984 meaning.
3985 (sra_ipa_modify_assign): Parameter data changed into adjustments
3986 vector, return value changed to bool.
3987 (ipa_sra_modify_function_body): New function.
3988 (sra_ipa_reset_debug_stmts): Updated a comment.
3989 (modify_function): Use ipa_sra_modify_function_body to modify function
3990 body.
3991
3992 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
3993
3994 PR middle-end/43671
3995 * alias.c (true_dependence): Handle the same VALUE in x and mem.
3996 (canon_true_dependence): Likewise.
3997 (write_dependence_p): Likewise.
3998
3999 2010-05-04 Jan Hubicka <jh@suse.cz>
4000
4001 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
4002 * cgraphbuild.c: Include ipa-utils.h
4003 (record_reference_ctx): New struct.
4004 (record_reference): Simplify to work on initializers; not statements.
4005 (mark_address, mark_load, mark_store): New.
4006 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
4007 walk PHI nodes too.
4008 (record_references_in_initializer): Update use of record_reference.
4009 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
4010 walk PHI nodes too.
4011
4012 2010-05-04 Jan Hubicka <jh@suse.cz>
4013
4014 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
4015 node will be removed anyway.
4016 (lto_varpool_replace_node): Allow also unanalyzed nodes;
4017 relink aliases of node into prevailing node.
4018 * varpool.c (varpool_remove_node): Remove aliases properly;
4019 when removing node, remove all its aliases too; remove DECL_INITIAL
4020 of removed node; ggc_free the varpool node.
4021
4022 2010-05-04 Richard Guenther <rguenther@suse.de>
4023
4024 PR tree-optimization/43879
4025 * tree-ssa-structalias.c (alias_get_name): Use
4026 DECL_ASSEMBLER_NAME if available.
4027 (create_function_info_for): Return the varinfo node.
4028 (ipa_pta_execute): Associate same-body aliases and extra names
4029 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
4030
4031 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
4032
4033 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
4034
4035 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
4036
4037 PR bootstrap/43964
4038 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
4039 only if HONOR_REG_ALLOC_ORDER is not defined.
4040
4041 2010-05-04 Richard Guenther <rguenther@suse.de>
4042
4043 PR tree-optimization/43949
4044 * tree-vrp.c (extract_range_from_binary_expr): Only handle
4045 TRUNC_MOD_EXPR.
4046
4047 2010-04-26 Jason Merrill <jason@redhat.com>
4048
4049 * c.opt (-fstrict-enums): New.
4050 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
4051
4052 2010-05-03 David Ung <davidu@mips.com>
4053 James E. Wilson <wilson@codesourcery.com>
4054
4055 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
4056 emit the trap instruction before the divide for TUNE_74K.
4057
4058 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
4059
4060 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
4061 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
4062 based on the above, for new target hook.
4063
4064 * hooks.c (hook_bool_mode_true): New generic hook.
4065 * hooks.h (hook_bool_mode_true): Add prototype.
4066
4067 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
4068 target hook.
4069 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
4070 target hook, set to hook_bool_mode_false.
4071 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
4072 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
4073 with targetm.small_register_classes_for_mode_p.
4074 (find_reusable_reload): Likewise.
4075 (combine_reloads): Likewise.
4076 * reload1.c (reload_as_needed): Likewise.
4077 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
4078 * ifcvt.c (noce_process_if_block, check_cond_move_block,
4079 dead_or_predicable): Likewise.
4080 * regmove.c (optimize_reg_copy_1): Likewise.
4081 * calls.c (prepare_call_address): Likewise.
4082 (precompute_register_parameters): Likewise.
4083
4084 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
4085 hook definition.
4086 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
4087 implementation of the hook that considers all register classes
4088 small except for SH64.
4089 (sh_override_options): Use the new hook.
4090 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
4091 Add prototype.
4092
4093 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
4094 hook definition.
4095 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
4096 implementation of the hook that considers all register classes
4097 small for THUMB1.
4098 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
4099 Add prototype.
4100
4101 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
4102 hook definition.
4103 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
4104 implementation of the hook that considers all register classes
4105 small for MIPS16.
4106 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
4107 Add prototype.
4108
4109 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
4110 hook definition.
4111 * config/m32c/m32c.h: Likewise.
4112 * config/pdp11/pdp11.h: Likewise.
4113 * config/avr/avr.h: Likewise.
4114 * config/xtensa/xtensa.h: Likewise.
4115 * config/m68hc11/m68hc11.h: Likewise.
4116 * config/mn10300/mn10300.h: Likewise.
4117 * config/mcore/mcore.h: Likewise.
4118 * config/h8300/h8300.h: Likewise.
4119 * config/bfin/bfin.h: Likewise.
4120
4121 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
4122 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
4123
4124 2010-05-03 Anatoly Sokolov <aesok@post.ru>
4125
4126 * double-int.h (tree_to_double_int): Remove macro.
4127 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
4128 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
4129 (tree_to_double_int): New function.
4130 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
4131 Move ...
4132 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
4133
4134 2010-05-03 Richard Guenther <rguenther@suse.de>
4135
4136 PR tree-optimization/43971
4137 * tree-ssa-structalias.c (get_constraint_for_1): Fix
4138 constraints in the !flag_delete_null_pointer_checks case.
4139
4140 2010-05-03 Jakub Jelinek <jakub@redhat.com>
4141
4142 PR debug/43972
4143 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
4144 result mode matches original rtl mode.
4145
4146 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
4147
4148 PR target/43888
4149 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
4150
4151 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4152
4153 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
4154 when processing flag options.
4155
4156 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4157
4158 * gcov-iov.c (main): Change format string placeholder
4159 from %#08x to 0x%08x.
4160 * genchecksum.c (dosum): Change format string placeholder
4161 from %#02x to 0x%02x.
4162
4163 2010-05-02 Richard Guenther <rguenther@suse.de>
4164
4165 PR tree-optimization/43879
4166 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
4167
4168 2010-05-02 Bruno Haible <bruno@clisp.org>
4169
4170 * doc/extend.texi (Function Attributes): Fix a typo.
4171
4172 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4173
4174 Revert:
4175 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
4176 placeholder from 0x%x to %#x.
4177 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
4178 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
4179 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
4180 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
4181 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
4182 * config/i386/i386.c (ix86_target_string): Ditto.
4183 * config/i386/i386.c (output_pic_addr_const): Ditto.
4184 (print_operand): Ditto.
4185
4186 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4187
4188 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
4189 placeholder from 0x%x to %#x.
4190 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
4191 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
4192 (ASM_OUTPUT_DEBUG_DATA): Ditto.
4193 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
4194 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
4195 * optc-gen.awk: Ditto.
4196 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
4197 (HOST_WIDE_INT_PRINT_HEX): Ditto.
4198 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
4199 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
4200
4201 2010-05-01 Anatoly Sokolov <aesok@post.ru>
4202
4203 * target.h (struct calls): Add function_value_regno_p field.
4204 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
4205 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
4206 * targhooks.c (default_function_value_regno_p): New function.
4207 * targhooks.h (default_function_value_regno_p): Declare function.
4208 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
4209 * builtins.c. (apply_result_size): (Ditto.).
4210 * combine.c. (likely_spilled_retval_p): (Ditto.).
4211 * mode-switching.c. Include 'target.h'.
4212 (create_pre_exit): Use function_value_regno_p hook.
4213 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
4214 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
4215 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
4216
4217 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
4218 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
4219 (ix86_function_value_regno_p): Declare as static, change argument
4220 type to const unsigned int.
4221 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
4222
4223 2010-05-01 Richard Guenther <rguenther@suse.de>
4224
4225 PR tree-optimization/43949
4226 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
4227 types.
4228 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
4229
4230 2010-05-01 Anatoly Sokolov <aesok@post.ru>
4231
4232 * rtl.h (CONST_DOUBLE_P): Define.
4233 (rtx_to_double_int): Declare.
4234 * emit-rtl.c (rtx_to_double_int): New function.
4235 * dwarf2out.c (insert_double): New function.
4236 (loc_descriptor, add_const_value_attribute): Clean up, use
4237 rtx_to_double_int and insert_double functions.
4238
4239 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
4240
4241 * doc/extend.texi (Inline): Add missing return keyword to examples.
4242 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
4243 "command-line".
4244
4245 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
4246
4247 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
4248 the variable part of the offset as well. Use highest_pow2_factor for
4249 all alignment checks.
4250
4251 2010-04-30 Richard Guenther <rguenther@suse.de>
4252
4253 PR tree-optimization/43879
4254 * tree-ssa-structalias.c (type_could_have_pointers): Functions
4255 can have pointers.
4256
4257 2010-04-30 Jan Hubicka <jh@suse.cz>
4258
4259 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
4260 varpool.
4261 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
4262
4263 2010-04-30 Jan Hubicka <jh@suse.cz>
4264
4265 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
4266 New.
4267 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
4268 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
4269 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
4270 cgraph_node_set_needs_ltrans_p): Remove.
4271
4272 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
4273
4274 * sdbout.c: Include vec.h, do not include varray.h.
4275 (deferred_global_decls, sdbout_global_decl,
4276 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
4277 * toplev.c: Do not include varray.h.
4278 (dump_memory_report): Do not dump VARRAY statistics.
4279 * gengtype.c (open_base_file): Ignore varray.h.
4280 * Makefile.in: Update for abovementioned changes.
4281 Remove all traces of varray.c and varray.h.
4282 * varray.c: Remove file.
4283 * varray.h: Remove file.
4284
4285 2010-04-30 Jan Hubicka <jh@suse.cz>
4286
4287 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
4288 references.
4289
4290 2010-04-30 Jan Hubicka <jh@suse.cz>
4291
4292 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
4293 needed.
4294
4295 2010-04-30 Richard Guenther <rguenther@suse.de>
4296
4297 * tree-ssa-structalias.c (get_constraint_for_1): Generate
4298 constraints for CONSTRUCTOR.
4299
4300 2010-04-30 Richard Guenther <rguenther@suse.de>
4301
4302 PR lto/43946
4303 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
4304 first after all lowering passes.
4305
4306 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
4307
4308 * toplev.c: Include varray.h for statistics dumping.
4309 * tree.h: Do not declare varray_head_tag.
4310 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
4311 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
4312 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
4313 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
4314 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
4315 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
4316 c-common.c, c-common.h, reg-stack.c, basic-block.h,
4317 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
4318 include varray.h.
4319 * Makefile.in: Update for abovementioned changes.
4320
4321 2010-04-30 Jakub Jelinek <jakub@redhat.com>
4322
4323 PR debug/43942
4324 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
4325
4326 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
4327
4328 * config/picochip/picochip.c (picochip_legitimize_address): Define.
4329 Use this function to do machine-specific conversion.
4330 (picochip_legitimize_reload_address): Likewise.
4331 (picochip_legitimate_address_p): Check valid base register only if
4332 strict.
4333 (picochip_check_conditional_copy): Check for modw only if opnd is
4334 register.
4335 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
4336 to call the function in c.
4337 * config/picochip/picochip-protos.h
4338 (picochip_legitimize_reload_address): Define.
4339 * config/picochip/picochip.md (supported_compare1): Define.
4340
4341 2010-04-30 Jan Hubicka <jh@suse.cz>
4342
4343 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
4344 (cgraph_global_info): Remove inlined.
4345 (LTO_cgraph_tag_names): Remove.
4346 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
4347 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
4348 simplify cgraph tags and document.
4349 (lto_output_node): Use only LTO_cgraph_unavail_node and
4350 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
4351 for_functions_valid, global info, process and output flags.
4352 (input_overwrite_node): Initialize estimated stack size and
4353 estimated growth. Do not read flags we no longer store.
4354 (input_node): Likewise do not read info no longer stored.
4355 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
4356 flag.
4357
4358 2010-04-30 Richard Guenther <rguenther@suse.de>
4359
4360 PR tree-optimization/43879
4361 * tree-ssa-structalias.c (get_constraint_for_1): Properly
4362 handle non-zero initializers.
4363
4364 2010-04-30 Richard Guenther <rguenther@suse.de>
4365
4366 * builtins.c (fold_builtin_1): Delete free (0).
4367
4368 2010-04-29 Jan Hubicka <jh@suse.cz>
4369
4370 * gengtype.c (open_base_files): Add lto-streamer.h
4371 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
4372 (pass_ipa_cp): GGC collect.
4373 * toplev. (compile_file): Do not output symbols.
4374 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
4375 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
4376 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
4377 * lto-section-in.c: Include ggc.h
4378 (lto_new_in_decl_state): Alloc in GGC.
4379 (lto_delete_in_decl_state): Likewise.
4380 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
4381 Collect.
4382
4383 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
4384
4385 PR target/42895
4386 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
4387 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
4388 (HONOR_REG_ALLOC_ORDER): Describe new macro.
4389 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
4390 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
4391 account only if HONOR_REG_ALLOC_ORDER is not defined.
4392 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
4393 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
4394
4395 2010-04-29 Jon Grant <04@jguk.org>
4396
4397 * collect2.c (vflag): Change type from int to bool.
4398 (debug): Likewise.
4399 (helpflag): New global bool.
4400 (main): Set vflag and debug with boolean, not integer truth values.
4401 Accept new "--help" option and output usage text if found.
4402 * collect2.h (vflag): Update prototype.
4403 (debug): Likewise.
4404
4405 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
4406
4407 PR bootstrap/43936
4408 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
4409
4410 2010-04-29 Richard Guenther <rguenther@suse.de>
4411
4412 PR bootstrap/43935
4413 * plugin.h (invoke_plugin_callbacks): Annotate arguments
4414 with ATTRIBUTE_UNUSED.
4415
4416 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
4417
4418 PR target/43921
4419 * config/i386/i386.c (get_some_local_dynamic_name): Replace
4420 INSN_P with NONDEBUG_INSN_P.
4421 (distance_non_agu_define): Likewise.
4422 (distance_agu_use): Likewise.
4423
4424 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
4425
4426 From Dominique d'Humieres <dominiq@lps.ens.fr>
4427 PR bootstrap/43858
4428 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
4429 test_set.
4430
4431 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
4432
4433 * plugin.h (invoke_plugin_callbacks): New inline function.
4434 * plugin.c (flag_plugin_added): New global flag.
4435 (add_new_plugin): Initialize above flag.
4436 (invoke_plugin_callbacks): Rename to ...
4437 (invoke_plugin_callbacks_full): ... this.
4438
4439 2010-04-28 Jan Hubicka <jh@suse.cz>
4440
4441 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
4442 (lto_varpool_replace_node): New.
4443 (lto_symtab_resolve_symbols): Resolve varpool nodes.
4444 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
4445 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
4446 * cgraph.h (varpool_node_ptr): New type.
4447 (varpool_node_ptr): New vector.
4448 (varpool_node_set_def): New structure.
4449 (varpool_node_set): New type.
4450 (varpool_node_set): New vector.
4451 (varpool_node_set_element_def): New structure.
4452 (varpool_node_set_element, const_varpool_node_set_element): New types.
4453 (varpool_node_set_iterator): New type.
4454 (varpool_node): Add prev pointers, add used_from_other_partition,
4455 in_other_partition.
4456 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
4457 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
4458 varpool_get_node, varpool_remove_node): Declare.
4459 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
4460 varpool_node_set_size): New inlines.
4461 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
4462 * tree-pass.h (varpool_node_set_def): Forward declare.
4463 (ipa_opt_pass_d): Summary writting takes vnode sets too.
4464 (ipa_write_optimization_summaries): Update prototype.
4465 * ipa-cp.c (ipcp_write_summary): Update.
4466 * ipa-reference.c (ipa_reference_write_summary): Update.
4467 * lto-cgraph.c (lto_output_varpool_node): New static function.
4468 (output_varpool): New function.
4469 (input_varpool_node): New static function.
4470 (input_varpool_1): New function.
4471 (input_cgraph): Input varpool.
4472 * ipa-pure-const.c (pure_const_write_summary): Update.
4473 * lto-streamer-out.c (lto_output): Update, output varpool too.
4474 (write_global_stream): Kill WPA hack.
4475 (produce_asm_for_decls): Update.
4476 (output_alias_pair_p): Handle variables.
4477 (output_unreferenced_globals): Output only needed partition of varpool.
4478 * ipa-inline.c (inline_write_summary): Update.
4479 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
4480 cgraph.
4481 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
4482 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
4483 varpool_node_set_new, varpool_node_set_add,
4484 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
4485 debug_varpool_node_set): New functions.
4486 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
4487 (execute_one_pass): Process new decls too.
4488 (ipa_write_summaries_2): Pass around vsets.
4489 (ipa_write_summaries_1): Likewise.
4490 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
4491 to add.
4492 (ipa_write_optimization_summaries_1): Pass around vsets.
4493 (ipa_write_optimization_summaries): Likewise.
4494 * varpool.c (varpool_get_node): New.
4495 (varpool_node): Update doubly linked lists.
4496 (varpool_remove_node): New.
4497 (dump_varpool_node): More dumping.
4498 (varpool_enqueue_needed_node): Update doubly linked lists.
4499 (decide_is_variable_needed): Kill ltrans hack.
4500 (varpool_finalize_decl): Kill lto hack.
4501 (varpool_assemble_decl): Skip decls in other partitions.
4502 (varpool_assemble_pending_decls): Update doubly linkes lists.
4503 (varpool_empty_needed_queue): Likewise.
4504 (varpool_extra_name_alias): Likewise.
4505 * lto-streamer.c (lto_get_section_name): Add vars section.
4506 * lto-streamer.h (lto_section_type): Update.
4507 (output_varpool, input_varpool): Declare.
4508
4509 2010-04-28 Mike Stump <mikestump@comcast.net>
4510
4511 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
4512
4513 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
4514
4515 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
4516 record or union type with RECORD_OR_UNION_TYPE_P predicate.
4517 (lto_input_ts_type_tree_pointers): Likewise.
4518 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
4519 (lto_output_ts_type_tree_pointers): Likewise.
4520
4521 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
4522
4523 Uniquization of constants at the Tree level
4524 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
4525 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
4526 bit to the end.
4527 (tree_output_constant_def): Declare.
4528 * gimplify.c (gimplify_init_constructor): When using block copy, first
4529 uniquize the constant constructor on the RHS.
4530 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
4531 DECL_IN_CONSTANT_POOL flag.
4532 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
4533 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
4534 constant pool.
4535 (assemble_variable): Deal with symbols belonging to the tree constant
4536 pool.
4537 (get_constant_section): Add ALIGN parameter and simplify.
4538 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
4539 (assemble_constant_contents): Use the expression of the VAR_DECL.
4540 (output_constant_def_contents): Use the alignment of the VAR_DECL.
4541 (tree_output_constant_def): New global function.
4542 (mark_constant): Use the expression of the VAR_DECL.
4543 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
4544 its expression.
4545 (output_object_block): Likewise and assemble the expression.
4546
4547 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
4548
4549 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
4550 hash_tree, eq_tree): New tree hash table.
4551 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
4552 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
4553 lto_orig_address_remove): Reimplement.
4554
4555 2010-04-28 Xinliang David Li <davidxl@google.com>
4556
4557 PR c/42643
4558 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
4559 (compute_uninit_opnds_pos): New function.
4560 (is_non_loop_exit_postdominating): New function.
4561 (compute_control_dep_chain): New function.
4562 (find_pdom): New function.
4563 (convert_control_dep_chain_into_preds): New function.
4564 (find_predicates): New function.
4565 (find_control_equiv_block): New function.
4566 (collect_phi_def_edges): New function.
4567 (find_def_preds): New function.
4568 (find_dom): New function.
4569 (dump_predicates): New function.
4570 (get_cmp_code): New function.
4571 (is_value_included_in): New function.
4572 (find_matching_predicate_in_rest_chains): New function.
4573 (use_pred_not_overlap_with_undef_path_pred): New function.
4574 (is_use_properly_guarded): New function.
4575 (normalize_cond_1): New function.
4576 (is_and_or_or): New function.
4577 (normalize_cond): New function.
4578 (is_gcond_subset_of): New function.
4579 (is_subset_of_any): New function.
4580 (is_or_set_subset_of): New function.
4581 (is_and_set_subset_of): New function.
4582 (is_norm_cond_subset_of): New function.
4583 (is_pred_expr_subset_of): New function.
4584 (is_pred_chain_subset_of): New function.
4585 (is_included_in): New function.
4586 (is_superset_of): New function.
4587 (find_uninit_use): New function.
4588 (warn_uninitialized_phi): New function.
4589 (compute_possibly_undefined_names): New function.
4590 (ssa_undefined_value_p): New function.
4591 (execute_late_warn_uninitialized): New function.
4592 * tree-ssa.c (ssa_undefined_value_p): Removed.
4593 (warn_uninit): Changed to extern.
4594 (warn_uninitialized_phi): Removed.
4595 (warn_uninitialized_vars): Changed to extern.
4596 (execute_late_warn_uninitialized): Removed
4597 * tree-flow.h: Add new prototypes.
4598 * timevar.def: Add new time variable.
4599 * Makefile.in: Add new build file.
4600
4601 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
4602
4603 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
4604 type if available.
4605
4606 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4607
4608 PR target/22224
4609 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
4610
4611 2010-04-28 Martin Jambor <mjambor@suse.cz>
4612
4613 * cgraph.h (struct cgraph_node): New field indirect_calls.
4614 (struct cgraph_indirect_call_info): New type.
4615 (struct cgraph_edge): Removed field indirect_call. New fields
4616 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
4617 (cgraph_create_indirect_edge): Declare.
4618 (cgraph_make_edge_direct): Likewise.
4619 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
4620 * ipa-prop.h (struct ipa_param_call_note): Removed.
4621 (struct ipa_node_params): Removed field param_calls.
4622 (ipa_create_all_structures_for_iinln): Declare.
4623 * cgraph.c: Described indirect edges and uids in initial comment.
4624 (cgraph_add_edge_to_call_site_hash): New function.
4625 (cgraph_edge): Search also among the indirect edges, use
4626 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
4627 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
4628 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
4629 site hash.
4630 (initialize_inline_failed): Assign a reason to indirect edges.
4631 (cgraph_create_edge_1): New function.
4632 (cgraph_create_edge): Moved some functionality to
4633 cgraph_create_edge_1.
4634 (cgraph_create_indirect_edge): New function.
4635 (cgraph_edge_remove_callee): Add an assert checking for
4636 non-indirectness.
4637 (cgraph_edge_remove_caller): Special-case indirect edges.
4638 (cgraph_remove_edge): Likewise.
4639 (cgraph_set_edge_callee): New function.
4640 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
4641 (cgraph_make_edge_direct): New function.
4642 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
4643 the declaration of the call statement matches.
4644 (cgraph_node_remove_callees): Special-case indirect edges.
4645 (cgraph_clone_edge): Likewise.
4646 (cgraph_clone_node): Clone also the indirect edges.
4647 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
4648 indirect_call, dump count of indirect_calls edges.
4649 * ipa-prop.c (iinlining_processed_edges): New variable.
4650 (ipa_note_param_call): Create indirect edges instead of
4651 creating notes. New parameter node.
4652 (ipa_analyze_call_uses): New parameter node, pass it on to
4653 ipa_note_param_call.
4654 (ipa_analyze_stmt_uses): Likewise.
4655 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
4656 (print_edge_addition_message): Work on edges rather than on notes.
4657 (update_call_notes_after_inlining): Likewise, renamed to
4658 update_indirect_edges_after_inlining.
4659 (ipa_create_all_structures_for_iinln): New function.
4660 (ipa_free_node_params_substructures): Do not free notes.
4661 (ipa_edge_duplication_hook): Propagate bits within
4662 iinlining_processed_edges bitmap.
4663 (ipa_node_duplication_hook): Do not duplicate notes.
4664 (free_all_ipa_structures_after_ipa_cp): Renamed to
4665 ipa_free_all_structures_after_ipa_cp.
4666 (free_all_ipa_structures_after_iinln): Renamed to
4667 ipa_free_all_structures_after_iinln.
4668 (ipa_write_param_call_note): Removed.
4669 (ipa_read_param_call_note): Removed.
4670 (ipa_write_indirect_edge_info): New function.
4671 (ipa_read_indirect_edge_info): Likewise.
4672 (ipa_write_node_info): Do not stream notes, do stream information
4673 in indirect edges.
4674 (ipa_read_node_info): Likewise.
4675 (lto_ipa_fixup_call_notes): Removed.
4676 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
4677 * ipa-inline.c (pass_ipa_inline): Likewise.
4678 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
4679 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
4680 * tree-inline.c (copy_bb): Removed an unnecessary double check for
4681 is_gimple_call.
4682 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
4683 edges.
4684 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
4685 (output_cgraph): Stream also indirect edges.
4686 (lto_output_edge): Added capability to stream indirect edges.
4687 (input_edge): Likewise.
4688 (input_cgraph_1): Likewise.
4689 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
4690 of indirect edges.
4691
4692 2010-04-28 Richard Guenther <rguenther@suse.de>
4693
4694 PR tree-optimization/43879
4695 PR tree-optimization/43909
4696 * tree-ssa-structalias.c (struct variable_info): Add
4697 only_restrict_pointers flag.
4698 (new_var_info): Initialize it. Increment stats.total_vars here.
4699 (create_function_info_for): Do not increment stats.total_vars here.
4700 (get_function_part_constraint): Fix build with C++.
4701 (insert_into_field_list): Remove.
4702 (push_fields_onto_fieldstack): Properly merge fields.
4703 (create_variable_info_for): Split and simplify.
4704 (create_variable_info_for_1): New piece.
4705 (intra_create_variable_infos): Properly make restrict constraints
4706 from parameters.
4707
4708 2010-04-28 Richard Guenther <rguenther@suse.de>
4709
4710 PR c++/43880
4711 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
4712
4713 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
4714 Jan Hubicka <hubicka@ucw.cz>
4715
4716 * doc/invoke.texi (-Wsuggest-attribute=const,
4717 -Wsuggest-attribute=pure): Document.
4718 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
4719 (function_always_visible_to_compiler_p,
4720 suggest_attribute, warn_function_pure, warn_function_const):
4721 New functions.
4722 (check_call): Improve debug info.
4723 (analyze_function): Do not check availability.
4724 (add_new_function): Check availability.
4725 (propagate): Output warnings.
4726 (skip_function_for_local_pure_const): New function.
4727 (local_pure_const): Use it; output warnings.
4728 * common.opt (Wsuggest-attribute=const,
4729 Wsuggest-attribute=pure): New.
4730
4731 2010-04-27 Jakub Jelinek <jakub@redhat.com>
4732
4733 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
4734 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
4735 or DW_CFA_def_cfa_offset{,_sf}.
4736
4737 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
4738
4739 * tree.h: Fix truncated long macros.
4740
4741 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
4742
4743 * collect2.c (TARGET_64BIT): Redefine to target's default.
4744 * tlink.c: Likewise.
4745 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
4746 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
4747 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
4748 for underscoring __USER_LABEL_PREFIX__.
4749 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
4750 (SUB_LINK_ENTRY32): New.
4751 (SUB_LINK_ENTRY64): New.
4752 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
4753 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
4754 (SUB_LINK_ENTRY64): New.
4755 (SUB_LINK_ENTRY): New.
4756 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
4757 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
4758 x64 target is choosen.
4759 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
4760 * configure: Regenerated.
4761 * configure.ac (leading-mingw64-underscores): Option added.
4762
4763 2010-04-27 Jan Hubicka <jh@suse.cz>
4764
4765 * doc/invoke.texi (-fipa-profile): Document.
4766 * opts.c (decode_options): Enable ipa-profile at -O1.
4767 * timevar.def (TV_IPA_PROFILE): Define.
4768 * common.opt (fipa-profile): Add.
4769 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
4770 flag for clones.
4771 (cgraph_propagate_frequency): Handle only local ones.
4772 * tree-pass.h (pass_ipa_profile): Declare.
4773 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
4774 (pass_ipa_profile): Use TV_IPA_PROFILE.
4775 * ipa.c (ipa_profile): New function.
4776 (gate_ipa_profile): Likewise.
4777 (pass_ipa_profile): New global variable.
4778 * passes.c (pass_ipa_profile): New.
4779
4780 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
4781
4782 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
4783
4784 2010-04-27 Martin Jambor <mjambor@suse.cz>
4785
4786 PR middle-end/43812
4787 * ipa.c (dissolve_same_comdat_group_list): New function.
4788 (function_and_variable_visibility): Call
4789 dissolve_same_comdat_group_list when comdat group contains external or
4790 newly local nodes.
4791 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
4792 lists are circular and that they contain only DECL_ONE_ONLY nodes.
4793
4794 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
4795
4796 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
4797 (const_hash_1) <VECTOR_CST>: New case.
4798 (compare_constant) <VECTOR_CST>: Likewise.
4799 <ADDR_EXPR>: Deal with LABEL_REFs.
4800 (copy_constant) <VECTOR_CST>: New case.
4801
4802 2010-04-27 Jan Hubicka <jh@suse.cz>
4803
4804 * cgraph.c (cgraph_propagate_frequency): New function.
4805 * cgraph.h (cgraph_propagate_frequency): Declare.
4806 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
4807 cgraph_propagate_frequency.
4808
4809 2010-04-27 Jakub Jelinek <jakub@redhat.com>
4810
4811 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
4812
4813 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
4814
4815 PR target/40657
4816 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
4817 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
4818 here to determine which regs to push and how much stack to reserve.
4819
4820 2010-04-27 Jie Zhang <jie@codesourcery.com>
4821
4822 * doc/gimple.texi (gimple_statement_with_ops): Remove
4823 addresses_taken field.
4824 (gimple_statement_with_memory_ops): Likewise.
4825
4826 2010-04-27 Jan Hubicka <jh@suse.cz>
4827
4828 * tree-inline.c (eni_inlining_weights): Remove.
4829 (estimate_num_insns): Special case more builtins.
4830
4831 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
4832
4833 PR c/32207
4834 * c-typeck.c (build_binary_op): Move forward check for comparison
4835 pointer with null pointer constant and adjust the diagnostic message.
4836
4837 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
4838
4839 PR lto/42776
4840 * configure.ac (gcc_cv_as_section_has_align): Set if installed
4841 binutils supports extended .section directive needed by LTO, or
4842 warn if older binutils found.
4843 (LTO_BINARY_READER): New AC_SUBST'd variable.
4844 (LTO_USE_LIBELF): Likewise.
4845 * gcc/config.gcc (lto_binary_reader): New target-specific configure
4846 variable.
4847 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
4848 (LTO_USE_LIBELF): Likewise.
4849 * configure: Regenerate.
4850
4851 * collect2.c (is_elf): Rename from this ...
4852 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
4853 object files in addition to ELF-formatted ones.
4854 (scan_prog_file): Caller updated. Also allow for LTO info marker
4855 symbol to be prefixed or not by an extra underscore.
4856
4857 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
4858 * config/i386/winnt.c: Also #include lto-streamer.h
4859 (i386_pe_asm_named_section): Specify 1-byte section alignment for
4860 LTO named sections.
4861 (i386_pe_asm_output_aligned_decl_common): Add comment.
4862 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
4863
4864 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
4865
4866 PR target/43889
4867 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
4868 Add missing earlyclobber for second alternative.
4869
4870 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
4871
4872 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
4873 bits for artificial defs at the top of the block.
4874 * fwprop.c (single_def_use_enter_block): Don't call it.
4875
4876 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
4877
4878 PR 43715
4879 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
4880 instead of "$gcc_cv_objdump -T".
4881 Use "-undefined dynamic_lookup" on darwin.
4882 * gcc/configure: Regenerate.
4883
4884 2010-04-26 Jakub Jelinek <jakub@redhat.com>
4885
4886 PR c/43893
4887 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
4888
4889 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
4890
4891 * c-parser.c (struct c_token): Move location field up.
4892 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
4893 (struct c_declspecs): Convert typespec_word, storage_class, and
4894 default_int_p into bitfields.
4895 (struct c_declarator): Move loc field up.
4896
4897 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
4898
4899 * cfgloop.h (struct loop): Move can_be_parallel field up.
4900 * ipa-prop.h (struct ip_node_params): Move bitfields up.
4901 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
4902 down.
4903 (struct iv_cand): Convert pos field into a bitfield.
4904 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
4905 field up.
4906 (struct _stmt_vec_info): Shuffle fields for better packing.
4907
4908 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
4909
4910 * varasm.c (IN_NAMED_SECTION): Remove guard.
4911 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
4912 (IN_NAMED_SECTION_P): ...this.
4913 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
4914 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
4915
4916 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
4917
4918 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
4919 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
4920 of shadowing it. Fix comments.
4921
4922 2010-04-26 Jan Hubicka <jh@suse.cz>
4923
4924 * cgraph.c (cgraph_create_node): Set node frequency to normal.
4925 (cgraph_clone_node): Copy function frequency.
4926 * cgraph.h (node_frequency): New enum
4927 (struct cgraph_node): Add.
4928 * final.c (rest_of_clean_state): Update.
4929 * lto-cgraph.c (lto_output_node): Output node frequency.
4930 (input_overwrite_node): Input node frequency.
4931 * tre-ssa-loop-ivopts (computation_cost): Update.
4932 * lto-streamer-out.c (output_function): Do not output function
4933 frequency.
4934 * predict.c (maybe_hot_frequency_p): Update and handle functions
4935 executed once.
4936 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
4937 attribute lookup.
4938 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
4939 (compute_function_frequency): Set noreturn functions to be executed
4940 once.
4941 (choose_function_section): Update.
4942 * lto-streamer-in.c (input_function): Do not input function frequency.
4943 * function.c (allocate_struct_function): Do not initialize function
4944 frequency.
4945 * function.h (function_frequency): Remove.
4946 (struct function): Remove function frequency.
4947 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
4948 (try_update): Update.
4949 * tree-inline.c (initialize_cfun): Do not update function frequency.
4950 * passes.c (pass_init_dump_file): Update.
4951 * i386.c (ix86_compute_frame_layout): Update.
4952 (ix86_pad_returns): Update.
4953
4954 2010-04-26 Jie Zhang <jie@codesourcery.com>
4955
4956 PR tree-optimization/43833
4957 * tree-vrp.c (range_int_cst_p): New.
4958 (range_int_cst_singleton_p): New.
4959 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
4960 when both operands are constants. Use range_int_cst_p in
4961 BIT_IOR_EXPR case.
4962
4963 2010-04-26 Jan Hubicka <jh@suse.cz>
4964
4965 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
4966
4967 2010-04-26 Richard Guenther <rguenther@suse.de>
4968
4969 PR lto/43080
4970 * gimple.c (gimple_decl_printable_name): Deal gracefully
4971 with a NULL DECL_NAME.
4972
4973 2010-04-26 Richard Guenther <rguenther@suse.de>
4974
4975 PR lto/42425
4976 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
4977 if emitting debug information and it is either a function
4978 or a namespace decl.
4979
4980 2010-04-26 Ira Rosen <irar@il.ibm.com>
4981
4982 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
4983 determine if the statement is vectorizable, and a macro to access it.
4984 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4985 Skip statements that can't be vectorized. If the analysis fails,
4986 mark the statement as unvectorizable if vectorizing basic block.
4987 (vect_compute_data_refs_alignment): Likewise.
4988 (vect_verify_datarefs_alignment): Skip statements marked as
4989 unvectorizable. Add print.
4990 (vect_analyze_group_access): Skip statements that can't be
4991 vectorized. If the analysis fails, mark the statement as
4992 unvectorizable if vectorizing basic block.
4993 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
4994 * tree-vect-stmts.c (vectorizable_store): Fix the number of
4995 generated stmts for SLP.
4996 (new_stmt_vec_info): Initialize the new field.
4997 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
4998 statements marked as unvectorizable.
4999
5000 2010-04-25 Joseph Myers <joseph@codesourcery.com>
5001
5002 * c-common.c (flag_isoc1x): New.
5003 (flag_isoc99): Update comment.
5004 * c-common.h (flag_isoc1x): New.
5005 (flag_isoc99): Update comment.
5006 * c-cppbuiltin.c (builtin_define_float_constants): Also define
5007 __<type>_DECIMAL_DIG__.
5008 * c-opts.c (set_std_c1x): New.
5009 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
5010 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
5011 * c.opt (-std=c1x, -std=gnu1x): New options.
5012 * doc/cpp.texi: Mention -std=c1x.
5013 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
5014 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
5015 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
5016 * doc/standards.texi: Mention C1X.
5017 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
5018 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
5019 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5020 Define for C1X.
5021
5022 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
5023
5024 * config/i386/gmon-sol2.c (_mcleanup): Change format string
5025 placeholder from 0x%x to %#x.
5026 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
5027 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
5028 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
5029 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
5030 * config/i386/i386.c (ix86_target_string): Ditto.
5031 (output_pic_addr_const): Ditto.
5032 (print_operand): Ditto.
5033
5034 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
5035
5036 * combine.c (find_split_point): Add third argument. Use it
5037 to find nested multiply-accumulate instructions. Adjust calls.
5038 (try_combine): Adjust call to find_split_point.
5039
5040 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5041
5042 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
5043
5044 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
5045
5046 PR tree-optimization/41442
5047 * fold-const.c (merge_truthop_with_opposite_arm): New function.
5048 (fold_binary_loc): Call it.
5049
5050 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
5051
5052 * toplev.c (general_init): Set default for fdiagnostics-show-option.
5053 * opts.c (common_handle_option): Allow disabling it.
5054 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
5055
5056 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
5057
5058 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
5059 between modes if both types are integral.
5060
5061 2010-04-23 Richard Guenther <rguenther@suse.de>
5062
5063 PR tree-optimization/43572
5064 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
5065
5066 2010-04-23 Richard Guenther <rguenther@suse.de>
5067
5068 PR lto/43455
5069 * tree-inline.c (tree_can_inline_p): Also check compatibility
5070 of return types.
5071
5072 2010-04-23 Martin Jambor <mjambor@suse.cz>
5073
5074 PR tree-optimization/43846
5075 * tree-sra.c (struct access): New flag grp_assignment_read.
5076 (build_accesses_from_assign): Set grp_assignment_read.
5077 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
5078 (enum mark_read_status): New type.
5079 (analyze_access_subtree): Propagate grp_assignment_read, create
5080 accesses also if both direct_read and root->grp_assignment_read.
5081
5082 2010-04-23 Martin Jambor <mjambor@suse.cz>
5083
5084 PR middle-end/43835
5085 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
5086 function does not have type attributes.
5087
5088 2010-04-23 Richard Guenther <rguenther@suse.de>
5089
5090 PR lto/42653
5091 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
5092 of FUNCTION_DECLs.
5093
5094 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5095
5096 * sese.h (create_if_region_on_edge): Remove.
5097
5098 * sese.c (create_if_region_on_edge): Make static.
5099
5100 * tree-inline.c: Do not include ggc.h.
5101
5102 * expr.c: Do not include ggc.h.
5103
5104 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
5105 dependencies.
5106
5107 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
5108
5109 PR target/43744
5110 * config/sh/sh.c (find_barrier): Don't emit a constant pool
5111 in the middle of insns for casesi_worker_2.
5112
5113 2010-04-22 David Edelsohn <edelsohn@gnu.org>
5114
5115 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
5116
5117 2010-04-22 Ira Rosen <irar@il.ibm.com>
5118
5119 PR tree-optimization/43842
5120 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
5121 loop unrolling in update of exit phis. Fix comment.
5122 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
5123 least two reduction statements in the loop before starting SLP
5124 analysis.
5125
5126 2010-04-22 Nick Clifton <nickc@redhat.com>
5127
5128 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
5129
5130 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
5131
5132 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
5133 to simplify a + ~a.
5134
5135 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5136
5137 * tree-parloops.c (loop_parallel_p): New argument
5138 parloop_obstack. Pass it down.
5139 (parallelize_loops): New variable parloop_obstack. Initialize it,
5140 pass it down, free it.
5141
5142 * tree-loop-linear.c (linear_transform_loops): Pass down
5143 lambda_obstack.
5144
5145 * tree-data-ref.h (lambda_compute_access_matrices): New argument
5146 of type struct obstack *.
5147
5148 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
5149 scratch_obstack. Initialize it, pass down, free it.
5150
5151 * lambda.h (lambda_loop_new): Remove.
5152 (lambda_matrix_new, lambda_matrix_inverse)
5153 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
5154 argument of type struct obstack *.
5155
5156 * lambda-trans.c (lambda_trans_matrix_new): New argument
5157 lambda_obstack. Pass it down, use obstack allocation for ret.
5158 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
5159 it down.
5160
5161 * lambda-mat.c (lambda_matrix_get_column)
5162 (lambda_matrix_project_to_null): Remove.
5163 (lambda_matrix_new): New argument lambda_obstack. Use obstack
5164 allocation for mat.
5165 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
5166 lambda_obstack.
5167
5168 * lambda-code.c (lambda_loop_new): New function.
5169 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
5170 (lambda_compute_auxillary_space, lambda_compute_target_space)
5171 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
5172 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
5173 (build_access_matrix): New argument lambda_obstack. Use obstack
5174 allocation for am.
5175 (lambda_compute_step_signs, lambda_compute_access_matrices): New
5176 argument lambda_obstack. Pass it down.
5177
5178 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
5179
5180 * optabs.h (expand_widening_mult): Declare.
5181
5182 2010-04-22 Richard Guenther <rguenther@suse.de>
5183
5184 PR tree-optimization/43845
5185 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
5186 lookup the CALL_EXPR function and arguments.
5187
5188 2010-04-22 Nick Clifton <nickc@redhat.com>
5189
5190 * config/stormy16/stormy16.c
5191 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
5192 * config/stormy16/stormy16.h: Tidy up formatting.
5193 (DONT_USE_BUILTIN_SETJMP): Remove definition.
5194 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
5195 (ineqbranchsi): Delete pattern.
5196 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
5197 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
5198 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
5199 stormy16-lib2-ucmpsi2.c.
5200
5201 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
5202
5203 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
5204 df_simulate_find_noclobber_defs as appropriate. Keep track of an
5205 extra set merge_set_noclobber, and use it to relax the final test
5206 slightly.
5207 * df.h (df_simulate_find_noclobber_defs): Declare.
5208 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
5209 conditional defs.
5210 (df_simulate_find_noclobber_defs): New function.
5211
5212 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
5213
5214 * config/i386/i386.md: Use {} around multi-line preparation statements.
5215
5216 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5217
5218 * c-tree.h (push_init_level, pop_init_level, set_init_index)
5219 (process_init_element): New argument of type struct obstack *.
5220
5221 * c-typeck.c (push_init_level, pop_init_level, set_designator)
5222 (set_init_index, set_init_label, set_nonincremental_init)
5223 (set_nonincremental_init_from_string, find_init_member)
5224 (output_init_element, output_pending_init_elements)
5225 (process_init_element): New argument braced_init_obstack. Pass it
5226 down.
5227 (push_range_stack, add_pending_init): New argument
5228 braced_init_obstack. Use obstack allocation.
5229
5230 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
5231 braced_init_obstack. Pass it down.
5232 (c_parser_braced_init): New variables ret, braced_init_obstack.
5233 Initialize obstack, pass it down and finally free it.
5234
5235 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
5236
5237 PR middle-end/29274
5238 * tree-pass.h (pass_optimize_widening_mul): Declare.
5239 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
5240 gate_optimize_widening_mul): New static functions.
5241 (pass_optimize_widening_mul): New.
5242 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
5243 <case MULT_EXPR>: Remove support for widening multiplies.
5244 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
5245 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
5246 simplify_gen_unary rather than directly building extensions.
5247 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
5248 WIDEN_MULT_EXPR.
5249 * expmed.c (expand_widening_mult): New function.
5250 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
5251
5252 2010-04-21 Jan Hubicka <jh@suse.cz>
5253
5254 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
5255 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
5256 * lto-wpa-fixup.c: Remove.
5257 * Makefile.in (lto-wpa-fixup.o): Remove.
5258 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
5259 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
5260 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
5261
5262 2010-04-21 Jan Hubicka <jh@suse.cz>
5263
5264 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
5265 add write_optimization_summary, read_optimization_summary.
5266 (ipa_write_summaries_of_cgraph_node_set): Remove.
5267 (ipa_write_optimization_summaries): Declare.
5268 (ipa_read_optimization_summaries): Declare.
5269 * ipa-cp.c (pass_ipa_cp): Update.
5270 * ipa-reference.c (pass_ipa_reference): Update.
5271 * ipa-pure-const.c (pass_ipa_pure_const): Update.
5272 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
5273 Update.
5274 * ipa-inline.c (pass_ipa_inline): Update.
5275 * ipa.c (pass_ipa_whole_program): Update.
5276 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
5277 * passes.c (ipa_write_summaries_1): Do not test wpa.
5278 (ipa_write_optimization_summaries_1): New.
5279 (ipa_write_optimization_summaries): New.
5280 (ipa_read_summaries): Do not test ltrans.
5281 (ipa_read_optimization_summaries_1): New.
5282 (ipa_read_optimization_summaries): New.
5283
5284 2010-04-21 Jan Hubicka <jh@suse.cz>
5285
5286 * lto-cgraph.c (lto_output_node): Do not output comdat groups
5287 for boundary nodes.
5288 (output_cgraph): Do not arrange comdat groups for boundary nodes.
5289
5290 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5291
5292 PR debug/40040
5293 * dwarf2out.c (add_name_and_src_coords_attributes): Add
5294 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
5295
5296 2010-04-21 Jan Hubicka <jh@suse.cz>
5297
5298 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
5299
5300 2010-04-21 Jan Hubicka <jh@suse.cz>
5301
5302 * varpool.c (decide_is_variable_needed): Variable is always needed
5303 during ltrans.
5304
5305 2010-04-21 Jan Hubicka <jh@suse.cz>
5306
5307 * opts.c (decode_options): Enable pure-const pass for whopr.
5308
5309 2010-04-21 Jan Hubicka <jh@suse.cz>
5310
5311 * cgraph.c (dump_cgraph_node): Dump also assembler name.
5312 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
5313 at WPA dumping.
5314 (cgraph_decide_inlining): Do not expect callee to be removed in all
5315 cases.
5316
5317 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
5318
5319 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
5320
5321 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
5322
5323 * config/i386/i386.md (x86_shrd): Add athlon_decode and
5324 amdfam10_decode attributes.
5325
5326 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5327
5328 PR middle-end/43570
5329 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
5330 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
5331 (lower_copyprivate_clauses): Use private var in outer
5332 context instead of original var. Make sure the types
5333 are correct for VLAs.
5334
5335 2010-04-21 Richard Guenther <rguenther@suse.de>
5336
5337 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
5338 to non-pointer objects.
5339
5340 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5341
5342 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
5343 last chain entry if it starts with the still current label.
5344 (add_location_or_const_value_attribute): Check that
5345 loc_list->first->next is NULL instead of comparing ->first with ->last.
5346 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
5347 to add_var_loc_to_decl.
5348
5349 * dwarf2out.c (output_call_frame_info): For dw_cie_version
5350 >= 4 add also address size and segment size fields into CIE header.
5351
5352 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
5353 long as address size is the same as sizeof (void *) and
5354 segment size is 0.
5355 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
5356 address size or segment size is unexpected, return DW_EH_PE_omit.
5357 (classify_object_over_fdes): If get_cie_encoding returned
5358 DW_EH_PE_omit, return -1.
5359 (init_object): If classify_object_over_fdes returned -1,
5360 pretend there were no FDEs at all.
5361
5362 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
5363
5364 * config/i386/i386.md (bswap<mode>2): Macroize expander from
5365 bswap{si,di}2 using SWI48 mode iterator.
5366 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
5367 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
5368 set modrm attribute of bswap insn to 0 and remove length attribute.
5369 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
5370 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
5371 set mode attribute to <MODE> and remove length attribute.
5372
5373 2010-04-20 James E. Wilson <wilson@codesourcery.com>
5374
5375 PR rtl-optimization/43520
5376 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
5377 zero available registers.
5378
5379 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5380
5381 * builtins.c (fold_builtin_cproj): Fold more cases.
5382
5383 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5384
5385 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
5386 (fold_builtin_1): Fold builtin cproj.
5387 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
5388 Use ATTR_CONST_NOTHROW_LIST.
5389
5390 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
5391
5392 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
5393 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
5394 ffsi2_no_cmove for !TARGET_CMOVE.
5395 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
5396 (ffssi2): Remove expander.
5397 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
5398 mode iterator.
5399 (ctz<mode>2): Ditto from ctz{si,di}2.
5400 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
5401 mode iterator.
5402 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
5403 mode iterator.
5404
5405 2010-04-20 Jakub Jelinek <jakub@redhat.com>
5406
5407 * dwarf2out.c (AT_linkage_name): Define.
5408 (clone_as_declaration): Handle DW_AT_linkage_name.
5409 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
5410 of DW_AT_MIPS_linkage_name.
5411 (move_linkage_attr): Likewise.
5412 (dwarf2out_finish): Likewise.
5413
5414 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
5415
5416 PR middle-end/41952
5417 * fold-const.c (fold_comparison): New folding rule.
5418
5419 2010-04-20 Anatoly Sokolov <aesok@post.ru>
5420
5421 * double-int.h (double_int_setbit): Declare.
5422 * double-int.c (double_int_setbit): New function.
5423 * rtl.h (immed_double_int_const): Declare.
5424 * emit-rtl.c (immed_double_int_const): New function.
5425 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
5426 and immed_double_int_const functions.
5427 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
5428 expand_copysign_bit): (Ditto.).
5429 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
5430 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
5431 * dojump.c (prefer_and_bit_test): (Ditto.).
5432 * expr.c (convert_modes, reduce_to_bit_field_precision,
5433 const_vector_from_tree): (Ditto.).
5434 * expmed.c (mask_rtx, lshift_value): (Ditto.).
5435
5436 2010-04-20 Jan Hubicka <jh@suse.cz>
5437
5438 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
5439 (dump_cgraph_node): Dump new flags.
5440 * cgraph.h (struct cgraph_node): Add flags
5441 reachable_from_other_partition and in_other_partition.
5442 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
5443 other partition can not be removed.
5444 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
5445 the other partition must be output; silence sanity checking on
5446 leaking functions bodies from other paritition.
5447 * lto-cgraph.c (reachable_from_other_partition_p): New function.
5448 (lto_output_node): Output new flags; do not sanity check that inline
5449 clones are output; drop lto_forced_extern_inline_p code; do not mock
5450 visibility flags at partition boundaries.
5451 (add_node_to): New function.
5452 (output_cgraph): Use it to sort functions so masters appear before
5453 clones.
5454 (input_overwrite_node): Input new flags.
5455 * passes.c (ipa_write_summaries): Do not call
5456 lto_new_extern_inline_states.
5457 * lto-section-out.c (forced_extern_inline,
5458 lto_new_extern_inline_states lto_delete_extern_inline_states,
5459 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
5460 * lto-streamer.h (lto_new_extern_inline_states,
5461 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
5462 lto_forced_extern_inline_p): Kill.
5463
5464 2010-04-20 Richard Guenther <rguenther@suse.de>
5465
5466 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
5467 from vars that can have pointers.
5468 (process_constraint): Dump useless constraints.
5469
5470 2010-04-20 Richard Guenther <rguenther@suse.de>
5471
5472 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
5473 (dump_sa_points_to_info): Remove asserts.
5474 (init_base_vars): nothing_id isn't an escape point nor does it
5475 have pointers.
5476
5477 2010-04-20 Jakub Jelinek <jakub@redhat.com>
5478
5479 * tree.h (TYPE_REF_IS_RVALUE): Define.
5480 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
5481 should_move_die_to_comdat, prune_unused_types_walk): Handle
5482 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
5483 (modified_type_die, gen_reference_type_die): Emit
5484 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
5485 if TYPE_REF_IS_RVALUE and -gdwarf-4.
5486
5487 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5488
5489 PR target/43635
5490 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
5491 calls for -fpic -m31 if they have been sibcall optimized.
5492
5493 2010-04-19 James E. Wilson <wilson@codesourcery.com>
5494
5495 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
5496 ar.lc fixed and call-used.
5497
5498 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
5499
5500 2010-04-19 Jan Hubicka <jh@suse.cz>
5501
5502 * opts.c (decode_options): Disable whpr incompatible passes.
5503 * lto/lto.c (lto_1_to_1_map): Skip clones.
5504 (read_cgraph_and_symbols): Do not mark everything as needed.
5505 (do_whole_program_analysis): Do map only after optimizing;
5506 set proper cgraph_state; use passmanager.
5507
5508 2010-04-19 DJ Delorie <dj@redhat.com>
5509
5510 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
5511 POINTER_PLUS_EXPR and fix them.
5512
5513 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
5514
5515 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
5516 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
5517 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
5518 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
5519 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
5520 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
5521 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
5522 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
5523 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
5524 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
5525 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
5526
5527 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
5528
5529 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
5530 (check_cond_move_block): Likewise.
5531 (cond_move_process_if_block): Likewise.
5532 (noce_find_if_block): Improve formatting.
5533 (find_if_header): Pass 0 to memset and tweak conditions.
5534 (cond_exec_find_if_block): Fix long lines and tweak conditions.
5535
5536 2010-04-19 Jakub Jelinek <jakub@redhat.com>
5537
5538 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
5539 for -gdwarf-4.
5540
5541 PR middle-end/43337
5542 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
5543 with non-local decl doesn't need chain.
5544
5545 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
5546
5547 * ira-color.c (allocno_reload_assign): Avoid accumulating
5548 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
5549
5550 2010-04-19 Martin Jambor <mjambor@suse.cz>
5551
5552 * gimple.h (create_tmp_reg): Declare.
5553 * gimplify.c (create_tmp_reg): New function.
5554 (gimplify_return_expr): Use create_tmp_reg.
5555 (gimplify_omp_atomic): Likewise.
5556 (gimple_regimplify_operands): Likewise.
5557 * tree-dfa.c (make_rename_temp): Likewise.
5558 * tree-predcom.c (predcom_tmp_var): Likewise.
5559 (reassociate_to_the_same_stmt): Likewise.
5560 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
5561 (get_replaced_param_substitute): Likewise.
5562 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
5563 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
5564 * tree-ssa-pre.c (get_representative_for): Likewise.
5565 (create_expression_by_pieces): Likewise.
5566 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
5567 (create_tailcall_accumulator): Likewise.
5568
5569 2010-04-19 Martin Jambor <mjambor@suse.cz>
5570
5571 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
5572 new_stmt.
5573 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
5574
5575 2010-04-19 Richard Guenther <rguenther@suse.de>
5576
5577 PR tree-optimization/43796
5578 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
5579 from SCEV in the lattice.
5580 (vrp_visit_phi_node): Dump change.
5581
5582 2010-04-19 Richard Guenther <rguenther@suse.de>
5583
5584 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
5585 * configure: Re-generated.
5586
5587 2010-04-19 Richard Guenther <rguenther@suse.de>
5588
5589 PR tree-optimization/43783
5590 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
5591 constant ARRAY_REF operands two and three if possible.
5592
5593 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
5594
5595 PR target/43766
5596 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
5597
5598 2010-04-19 Jie Zhang <jie@codesourcery.com>
5599
5600 PR target/43662
5601 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
5602
5603 2010-04-19 Ira Rosen <irar@il.ibm.com>
5604
5605 PR tree-optimization/37027
5606 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
5607 and macro to access it.
5608 (vectorizable_reduction): Add argument.
5609 (vect_get_slp_defs): Likewise.
5610 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
5611 statements for possible use in SLP.
5612 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
5613 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
5614 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
5615 add new argument.
5616 (vectorizable_reduction): Likewise.
5617 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
5618 vect_get_slp_defs.
5619 (vectorizable_type_demotion, vectorizable_type_promotion,
5620 vectorizable_store): Likewise.
5621 (vect_analyze_stmt): Update call to vectorizable_reduction.
5622 (vect_transform_stmt): Likewise.
5623 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
5624 (vect_build_slp_tree): Fix indentation. Check that there are no loads
5625 from different interleaving chains in same node.
5626 (vect_slp_rearrange_stmts): New function.
5627 (vect_supported_load_permutation_p): Allow load permutations for
5628 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
5629 inside SLP nodes if necessary.
5630 (vect_analyze_slp_instance): Handle reductions.
5631 (vect_analyze_slp): Try to build SLP instances originating from groups
5632 of reductions.
5633 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
5634 (vect_get_constant_vectors): Create initial vectors for reductions
5635 according to reduction code. Add new argument.
5636 (vect_get_slp_defs): Add new argument, pass it to
5637 vect_get_constant_vectors.
5638 (vect_schedule_slp_instance): Remove SLP tree root statements.
5639
5640 2010-04-19 Jakub Jelinek <jakub@redhat.com>
5641
5642 * tree.h (ENUM_IS_SCOPED): Define.
5643 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
5644 for ENUM_IS_SCOPED enums.
5645
5646 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
5647
5648 * fold-const.c (fold_comparison): Use ssizetype.
5649 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5650 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
5651 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
5652 * tree-object-size.c (compute_object_sizes): Use size_type_node.
5653
5654 * tree.h (initialize_sizetypes): Remove parameter.
5655 (build_common_tree_nodes): Remove second parameter.
5656 * stor-layout.c (initialize_sizetypes): Remove parameter.
5657 Always create an unsigned type.
5658 (set_sizetype): Assert that the passed type is unsigned and simplify.
5659 * tree.c (build_common_tree_nodes): Remove second parameter.
5660 Adjust call to initialize_sizetypes.
5661 * c-decl.c (c_init_decl_processing): Remove second argument in call to
5662 build_common_tree_nodes.
5663
5664 2010-04-18 Matthias Klose <doko@ubuntu.com>
5665
5666 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
5667
5668 2010-04-18 Ira Rosen <irar@il.ibm.com>
5669
5670 PR tree-optimization/43771
5671 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
5672 load permutation doesn't have gaps.
5673
5674 2010-04-18 Jan Hubicka <jh@suse.cz>
5675
5676 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
5677 (sse_prologue_save_insn expander): Use new pattern.
5678 (sse_prologue_save_insn1): New pattern and splitter.
5679 (sse_prologue_save_insn): Update to deal also with 64bit aligned
5680 blocks.
5681 * i386.c (setup_incoming_varargs_64): Do not compute jump
5682 destination here.
5683 (ix86_gimplify_va_arg): Update alignment needed.
5684 (ix86_local_alignment): Do not align all local arrays to 128bit.
5685
5686 2010-04-17 Jan Hubicka <jh@suse.cz>
5687
5688 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
5689
5690 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
5691
5692 * arm.md (negdi2): Remove redundant code to force values into a
5693 register.
5694
5695 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
5696
5697 * arm/bpabi.S: Add EABI alignment attributes to objects.
5698 * arm/bpabi-v6m.S: Likewise.
5699 * arm/crti.asm: Likewise.
5700 * arm/crtn.asm: Likewise.
5701 * arm/lib1funcs.asm: Likewise.
5702 * arm/libunwind.S: Likewise.
5703
5704 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
5705
5706 * arm-protos.h (tune_params): New structure.
5707 * arm.c (current_tune): New variable.
5708 (arm_constant_limit): Delete.
5709 (struct processors): Add pointer to the tune parameters.
5710 (arm_slowmul_tune): New tuning option.
5711 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
5712 (all_cores): Adjust to pick up the tuning model.
5713 (arm_constant_limit): New function.
5714 (arm_override_options): Select the appropriate tuning model. Delete
5715 initialization of arm_const_limit.
5716 (arm_split_constant): Use the new constant-limit model.
5717 (arm_rtx_costs): Pick up the current tuning model.
5718 * arm.md (is_strongarm, is_xscale): Delete.
5719 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
5720 for Xscale variant architectures.
5721 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
5722
5723 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5724
5725 * config/arm/arm.c (arm_gen_constant): Remove unused variable
5726 can_shift.
5727 (arm_rtx_costs_1): Remove unused variable extra_cost.
5728 (arm_unwind_emit_set): Use variable offset.
5729 (thumb1_output_casesi): Remove unused variable flags.
5730
5731 2010-04-16 Jeff Law <law@redhat.com>
5732
5733 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
5734 needing assignment rather than doing a two-phase assignment. Remove
5735 unused variable 'm'.
5736
5737 2010-04-16 Jakub Jelinek <jakub@redhat.com>
5738
5739 PR bootstrap/43767
5740 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
5741
5742 2010-04-16 Doug Kwan <dougkwan@google.com>
5743
5744 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
5745 (next_operand_entry_id): New static variable.
5746 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
5747 (add_to_ops_vec): Assigned unique ID to operand entry.
5748 (struct oecount_s): New field ID.
5749 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
5750 (undistribute_ops_list): Assign unique IDs to oecounts.
5751 (init_reassoc): reset next_operand_entry_id.
5752
5753 2010-04-16 Doug Kwan <dougkwan@google.com>
5754
5755 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
5756 missing left parenthesis.
5757
5758 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
5759
5760 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
5761 *btdi_rex64 using SWI48 mode iterator.
5762 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
5763 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
5764 *jcc_btdi_mask_rex64.
5765
5766 2010-04-16 Anatoly Sokolov <aesok@post.ru>
5767
5768 * double-int.h (tree_to_double_int): Convert to macro.
5769 * double-int.c (tree_to_double_int): Remove.
5770
5771 2010-04-16 Jakub Jelinek <jakub@redhat.com>
5772
5773 PR debug/43762
5774 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
5775 with want_address 2 and in case a single element list might be
5776 possible, call it again with want_address 0.
5777
5778 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
5779
5780 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
5781 case 'W' print operands for HI mode.
5782 * config/h8300/h8300.h (Y0, Y2) : New constraints.
5783 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
5784 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
5785 * config/h8300/predicate.md (bit_register_indirect_operand): New.
5786
5787 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
5788
5789 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
5790 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
5791 #xx:3 and #xx:4 mode.
5792
5793 * config/h8300/h8300.md (inverted load with HImode dest): Add
5794 support for H8300SX.
5795
5796 * config/h8300/predicate.md (bit_operand): Allow immediate values that
5797 satisfy 'U' constraint.
5798
5799 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5800
5801 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
5802 * configure: Regenerate.
5803 * config.in: Regenerate.
5804 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
5805 works.
5806
5807 2010-04-16 Richard Guenther <rguenther@suse.de>
5808
5809 * tree.h (struct tree_decl_minimal): Move pt_uid ...
5810 (struct tree_decl_common): ... here.
5811 (DECL_PT_UID): Adjust.
5812 (SET_DECL_PT_UID): Likewise.
5813 (DECL_PT_UID_SET_P): Likewise.
5814
5815 2010-04-16 Richard Guenther <rguenther@suse.de>
5816
5817 PR tree-optimization/43572
5818 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
5819 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
5820 * tree-flow.h (is_call_clobbered): Remove.
5821 * tree-flow-inline.h (is_call_clobbered): Likewise.
5822 * tree-dfa.c (dump_variable): Do not dump call clobber state.
5823 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
5824 (execute_return_slot_opt): Adjust.
5825 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
5826 check for call clobbered vars here.
5827 (find_tail_calls): Move tailcall verification to the
5828 proper place.
5829
5830 2010-04-16 Diego Novillo <dnovillo@google.com>
5831
5832 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
5833
5834 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
5835
5836 PR target/40603
5837 * config/arm/arm.md (cbranchqi4): New pattern.
5838 * config/arm/predicates.md (const0_operand,
5839 cbranchqi4_comparison_operator): New predicates.
5840
5841 2010-04-16 Richard Guenther <rguenther@suse.de>
5842
5843 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
5844 (dump_gimple_stmt): Likewise.
5845
5846 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
5847
5848 * recog.h (struct recog_data): New field is_operator.
5849 (struct insn_operand_data): New field is_operator.
5850 * recog.c (extract_insn): Set recog_data.is_operator.
5851 * genoutput.c (output_operand_data): Emit code to set the
5852 is_operator field.
5853 * reload.c (find_reloads): Use it rather than testing for an
5854 empty constraint string.
5855
5856 PR target/41514
5857 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
5858 If the previous insn is a cbranchsi4_insn with the same arguments,
5859 omit the compare instruction.
5860
5861 * config/arm/arm.md (addsi3_cbranch): If destination is a high
5862 register, inputs must be low registers and we need a low register
5863 scratch. Handle alternative 2 like alternative 3.
5864
5865 2010-04-16 Jakub Jelinek <jakub@redhat.com>
5866
5867 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
5868 don't call get_addr on both. If one expression is a VALUE and
5869 the other a REG, check VALUE's locs if the REG isn't among them.
5870
5871 2010-04-16 Christian Bruel <christian.bruel@st.com>
5872
5873 * config/sh/sh.h (sh_frame_pointer_required): New function.
5874 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
5875 (flag_omit_frame_pointer) Set.
5876 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
5877 (rounded_frame_size): Adjust size with outgoing_args_size.
5878 (sh_set_return_address): Must return from stack pointer.
5879 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
5880 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
5881 (ACCUMULATE_OUTGOING_ARGS): Define.
5882 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
5883 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
5884
5885 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
5886
5887 PR target/43471
5888 * config/sh/sh.c (sh_legitimize_reload_address): Use
5889 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
5890 Remove a unneeded check for offset_base.
5891
5892 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
5893
5894 * configure: Regenerated.
5895
5896 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5897
5898 * config/s390/s390.c (s390_call_save_register_used): Switch back
5899 to HARD_REGNO_NREGS.
5900
5901 2010-04-15 Richard Guenther <rguenther@suse.de>
5902
5903 * alias.c (alias_set_subset_of): Handle alias-set zero
5904 child properly.
5905
5906 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
5907 Julian Brown <julian@codesourcery.com>
5908
5909 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
5910 alternatives according to use of high and low regs.
5911 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
5912 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
5913 optimizing for size on Thumb-2.
5914
5915 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
5916
5917 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
5918
5919 2010-04-15 Richard Guenther <rguenther@suse.de>
5920
5921 * tree-ssa-structalias.c (struct variable_info): Add
5922 is_fn_info flag.
5923 (new_var_info): Initialize it.
5924 (dump_constraints): Support printing last added constraints.
5925 (debug_constraints): Adjust.
5926 (dump_constraint_graph): Likewise.
5927 (make_heapvar_for): Check for NULL cfun.
5928 (get_function_part_constraint): New function.
5929 (get_fi_for_callee): Likewise.
5930 (find_func_aliases): Properly implement IPA PTA constraints.
5931 (process_ipa_clobber): New function.
5932 (find_func_clobbers): Likewise.
5933 (insert_into_field_list_sorted): Remove.
5934 (create_function_info_for): Properly allocate vars for IPA mode.
5935 Do not use insert_into_field_list_sorted.
5936 (create_variable_info_for): Properly generate constraints for
5937 global vars in IPA mode.
5938 (dump_solution_for_var): Always dump the solution.
5939 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
5940 (find_what_var_points_to): Adjust.
5941 (pt_solution_set): Change.
5942 (pt_solution_ior_into): New function.
5943 (pt_solution_empty_p): Export.
5944 (pt_solution_includes_global): Adjust.
5945 (pt_solution_includes_1): Likewise.
5946 (pt_solutions_intersect_1): Likewise.
5947 (dump_sa_points_to_info): Check some invariants.
5948 (solve_constraints): Move constraint dumping ...
5949 (compute_points_to_sets): ... here.
5950 (ipa_pta_execute): ... and here.
5951 (compute_may_aliases): Do not re-compute points-to info
5952 locally if IPA info is available.
5953 (ipa_escaped_pt): New global var.
5954 (ipa_pta_execute): Properly implement IPA PTA.
5955 * tree-into-ssa.c (dump_decl_set): Support dumping
5956 decls not in referenced-vars.
5957 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
5958 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
5959 (dump_points_to_solution): Likewise.
5960 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
5961 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
5962 (remap_gimple_stmt): Reset call clobber/use information if necessary.
5963 (copy_decl_to_var): Copy DECL_PT_UID.
5964 (copy_result_decl_to_var): Likewise.
5965 * tree.c (make_node_stat): Initialize DECL_PT_UID.
5966 (copy_node_stat): Copy it.
5967 * tree.h (DECL_PT_UID): New macro.
5968 (SET_DECL_PT_UID): Likewise.
5969 (DECL_PT_UID_SET_P): Likewise.
5970 (struct tree_decl_minimal): Add pt_uid member.
5971 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
5972 (pt_solution_empty_p): Declare.
5973 (pt_solution_set): Adjust.
5974 (ipa_escaped_pt): Declare.
5975 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
5976 * gimple-pretty-print.c (pp_points_to_solution): New function.
5977 (dump_gimple_call): Dump call clobber/use information.
5978 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
5979 * tree-pass.h (TDF_ALIAS): New dump option.
5980 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
5981 * doc/invoke.texi (-fipa-pta): Update documentation.
5982
5983 2010-04-15 Richard Guenther <rguenther@suse.de>
5984
5985 * Makefile.in (OBJS-common): Add gimple-fold.o.
5986 (gimple-fold.o): New rule.
5987 * tree.h (maybe_fold_offset_to_reference,
5988 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
5989 prototypes ...
5990 * gimple.h: ... here.
5991 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
5992 may_propagate_address_into_dereference): Move prototypes ...
5993 * gimple.h: ... here.
5994 * tree-ssa-ccp.c (get_symbol_constant_value,
5995 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
5996 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
5997 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
5998 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
5999 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
6000 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
6001 gimplify_and_update_call_from_tree): Move ...
6002 * gimple-fold.c: ... here. New file.
6003 (ccp_fold_builtin): Rename to ...
6004 (gimple_fold_builtin): ... this.
6005 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
6006
6007 2010-04-15 Richard Guenther <rguenther@suse.de>
6008
6009 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
6010 fit_double_type, force_fit_type_double, add_double_with_sign,
6011 neg_double, mul_double_with_sign, lshift_double, rshift_double,
6012 lrotate_double, rrotate_double, div_and_round_double): Move ...
6013 * double-int.c: ... here.
6014 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
6015 add_double, neg_double, mul_double_with_sign, mul_double,
6016 lshift_double, rshift_double, lrotate_double, rrotate_double,
6017 div_and_round_double): Move prototypes ...
6018 * double-int.h: ... here.
6019
6020 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
6021
6022 PR target/43742
6023 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
6024 matching constraints to ensure inputs match the output.
6025
6026 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
6027
6028 PR target/43742
6029 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
6030 in an input-only operand.
6031
6032 2010-04-15 Anatoly Sokolov <aesok@post.ru>
6033
6034 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
6035 (double_int_not, double_int_lshift, double_int_rshift): Declare.
6036 (double_int_negative_p): Convert to static inline function.
6037 * double-int.c (double_int_lshift, double_int_lshift): New functions.
6038 (double_int_negative_p): Remove.
6039 * tree.h (lshift_double, rshift_double):
6040 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
6041 * fold-const.c (fold_convert_const_int_from_real,
6042 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
6043 (lshift_double): Change type of arith argument to bool.
6044 (rshift_double): Change type of arith argument to bool. Correct
6045 comment.
6046 * expmed.c (mask_rtx, lshift_value): (Ditto.).
6047
6048 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
6049
6050 PR target/21803
6051 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
6052 at the start and end of the then/else blocks, and omit them from the
6053 conversion.
6054 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
6055 argument; all callers changed. Pass zero to old_insns_match_p instead.
6056 (flow_find_head_matching_sequence): New function.
6057 (old_insns_match_p): Check REG_EH_REGION notes for calls.
6058 * basic-block.h (flow_find_cross_jump,
6059 flow_find_head_matching_sequence): Declare functions.
6060
6061 2010-04-14 Jason Merrill <jason@redhat.com>
6062
6063 PR c++/36625
6064 * c-common.c (attribute_takes_identifier_p): New fn.
6065 * c-common.h: Declare it.
6066
6067 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6068
6069 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
6070 splitter condition.
6071 (*udivmod<mode>4): Ditto.
6072
6073 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6074
6075 * config/i386/i386.md (maxmin_int): Rename code attribute from
6076 maxminiprefix and update all users.
6077 (maxmin_float): Ditto from maxminfprefix.
6078 (logic): Ditto from logicprefix.
6079 (absneg_mnemonic): Ditto from absnegprefix.
6080 * config/i386/mmx.md: Update all users of maxminiprefix,
6081 maxminfprefix and logicprefix for rename.
6082 * config/i386/sse.md: Ditto.
6083 * config/i386/sync.md (sync_<code><mode>): Update for
6084 logicprefix rename.
6085
6086 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
6087
6088 PR 42966
6089 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
6090 warnings converted to errors.
6091
6092 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6093
6094 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
6095 used insn_type variable.
6096 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
6097 to avoid set-but-not-used warning.
6098
6099 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6100
6101 * df-core.c (df_ref_debug): Change format string placeholder
6102 from 0x%x to %#x.
6103 * dwarf2asm.c (dw2_asm_output_data_raw,
6104 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
6105 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
6106 * dwarf2out.c (output_cfi, output_cfi_directive,
6107 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
6108 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
6109 Ditto.
6110 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
6111 * print-rtl.c (print_rtx): Ditto.
6112
6113 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6114
6115 PR middle-end/42694
6116 * builtins.c (expand_builtin_pow_root): New function to expand pow
6117 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
6118 series of sqrt and cbrt calls under -ffast-math.
6119 (expand_builtin_pow): Call it.
6120
6121 2010-04-14 Michael Matz <matz@suse.de>
6122
6123 PR tree-optimization/42963
6124 * tree-cfg.c (touched_switch_bbs): New static variable.
6125 (group_case_labels_stmt): New function broken out from ...
6126 (group_case_labels): ... here, use the above.
6127 (start_recording_case_labels): Allocate touched_switch_bbs.
6128 (end_recording_case_labels): Deallocate it, call
6129 group_case_labels_stmt.
6130 (gimple_redirect_edge_and_branch): Remember index of affected BB.
6131
6132 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6133
6134 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
6135 from insn template.
6136
6137 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6138
6139 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
6140
6141 2010-04-13 Jan Hubicka <jh@suse.cz>
6142
6143 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
6144 of optimized out static functions.
6145 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
6146 cost computation. Also sanity check for overflows.
6147 (update_caller_keys): Update cgraph_edge_badness call; properly
6148 update fibheap and sanity check that it is up to date.
6149 (add_new_edges_to_heap): Update cgraph_edge_badness.
6150 (cgraph_decide_inlining_of_small_function): Likewise;
6151 add sanity checking that badness in heap is up to date;
6152 improve dumping of reason; Update badness of calls to the
6153 offline copy of function currently inlined; dump badness
6154 of functions not inlined because of unit growth limits.
6155
6156 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
6157
6158 PR middle-end/32628
6159 * c-common.c (pointer_int_sum): Disregard overflow that occured only
6160 because of sign-extension change when converting to sizetype here...
6161 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
6162
6163 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
6164 the folding to constants. Remove redundant final conversion.
6165 (fold_binary) <associate>: Do not associate if the re-association of
6166 constants alone overflows.
6167 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
6168 to the end of the list.
6169 (multiple_of_p) <COND_EXPR>: New case.
6170
6171 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
6172
6173 * opt-functions.awk (opt_sanitized_name): New.
6174 (opt_enum): New.
6175 * optc-gen.awk: Use it
6176 * opth-gen.awk: Use it.
6177
6178 2010-04-13 Martin Jambor <mjambor@suse.cz>
6179
6180 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
6181 (sra_modify_assign): Delete stmts loading dead data even if racc has no
6182 children. Call replace_uses_with_default_def_ssa_name to handle
6183 SSA_NAES on lhs.
6184
6185 2010-04-13 Michael Matz <matz@suse.de>
6186
6187 PR middle-end/43730
6188 * builtins.c (expand_builtin_interclass_mathfn): Also create
6189 a register if the predicate doesn't match.
6190
6191 2010-04-13 Diego Novillo <dnovillo@google.com>
6192
6193 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
6194 * c-pch.c: Include timevar.h.
6195 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
6196 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
6197 * ggc-common.c: Include timevar.h.
6198 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
6199 * timevar.def (TV_PCH_SAVE): Define.
6200 (TV_PCH_CPP_SAVE): Define.
6201 (TV_PCH_PTR_REALLOC): Define.
6202 (TV_PCH_PTR_SORT): Define.
6203 (TV_PCH_RESTORE): Define.
6204 (TV_PCH_CPP_RESTORE): Define.
6205
6206 2010-04-13 Michael Matz <matz@suse.de>
6207
6208 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
6209 into MINUS_EXPRs.
6210 (can_reassociate_p): New function.
6211 (break_up_subtract_bb, reassociate_bb): Use it.
6212
6213 2010-04-13 Richard Guenther <rguenther@suse.de>
6214
6215 PR bootstrap/43737
6216 * builtins.c (c_readstr): Fix assert.
6217
6218 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
6219
6220 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
6221 when generating cltd insn.
6222
6223 (*ashl<mode>3_1): Remove special handling for register operand 2.
6224 (*ashlsi3_1_zext): Ditto.
6225 (*ashlhi3_1): Ditto.
6226 (*ashlhi3_1_lea): Ditto.
6227 (*ashlqi3_1): Ditto.
6228 (*ashlqi3_1_lea): Ditto.
6229 (*<shiftrt_insn><mode>3_1): Ditto.
6230 (*<shiftrt_insn>si3_1_zext): Ditto.
6231 (*<shiftrt_insn>qi3_1_slp): Ditto.
6232 (*<rotate_insn><mode>3_1): Ditto.
6233 (*<rotate_insn>si3_1_zext): Ditto.
6234 (*<rotate_insn>qi3_1_slp): Ditto.
6235
6236 2010-04-13 Richard Guenther <rguenther@suse.de>
6237
6238 * tree-ssa-structalias.c (callused_id): Remove.
6239 (call_stmt_vars): New.
6240 (get_call_vi): Likewise.
6241 (lookup_call_use_vi): Likewise.
6242 (lookup_call_clobber_vi): Likewise.
6243 (get_call_use_vi): Likewise.
6244 (get_call_clobber_vi): Likewise.
6245 (make_transitive_closure_constraints): Likewise.
6246 (handle_const_call): Adjust to do per-call call-used handling.
6247 (handle_pure_call): Likewise.
6248 (find_what_var_points_to): Remove general callused handling.
6249 (init_base_vars): Likewise.
6250 (init_alias_vars): Initialize call_stmt_vars.
6251 (compute_points_to_sets): Process call-used and call-clobbered
6252 vars for call statements.
6253 (delete_points_to_sets): Free call_stmt_vars.
6254
6255 2010-04-13 Richard Guenther <rguenther@suse.de>
6256
6257 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6258 Only add RW dependence for dependence distance zero.
6259 Adjust maximal vectorization factor according to dependences.
6260 Move alignment handling ...
6261 (vect_find_same_alignment_drs): ... here. New function.
6262 (vect_analyze_data_ref_dependences): Adjust.
6263 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
6264 (vect_analyze_data_refs): Adjust minimal vectorization factor
6265 according to data references.
6266 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
6267 dependences before determining the vectorization factor.
6268 Analyze alignment after determining the vectorization factor.
6269 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
6270 dependences before alignment.
6271 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
6272 Adjust prototype.
6273 (vect_analyze_data_refs): Likewise.
6274 (MAX_VECTORIZATION_FACTOR): New define.
6275
6276 2010-04-13 Duncan Sands <baldrick@free.fr>
6277
6278 * except.h (lang_eh_type_covers): Remove.
6279 * except.c (lang_eh_type_covers): Likewise.
6280
6281 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6282 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6283
6284 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
6285 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
6286 UNITS_PER_LONG where it is ABI relevant.
6287 (s390_return_addr_rtx): Likewise.
6288 (s390_back_chain_rtx): Likewise.
6289 (s390_frame_area): Likewise.
6290 (s390_frame_info): Likewise.
6291 (s390_initial_elimination_offset): Likewise.
6292 (save_gprs): Likewise.
6293 (s390_emit_prologue): Likewise.
6294 (s390_emit_epilogue): Likewise.
6295 (s390_function_arg_advance): Likewise.
6296 (s390_function_arg): Likewise.
6297 (s390_va_start): Likewise.
6298 (s390_gimplify_va_arg): Likewise.
6299 (s390_function_profiler): Likewise.
6300 (s390_optimize_prologue): Likewise.
6301 (s390_rtx_costs): Likewise.
6302 (s390_secondary_reload): Likewise.
6303 (s390_promote_function_mode): Likewise.
6304 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
6305 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
6306 registers available.
6307 (s390_unwind_word_mode): New function.
6308 (s390_function_value): Split 64 bit values into register pair if
6309 used as return value.
6310 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
6311 function call parameters. Handle parallels.
6312 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
6313 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
6314 (DWARF_CIE_DATA_ALIGNMENT): New macro.
6315 (s390_expand_setmem): Remove unused variable src_addr.
6316 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
6317 deal with 64 bit registers.
6318 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
6319 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
6320 (UNITS_PER_LONG): New macro.
6321 * libjava/include/s390-signal.h: Define extended ucontext
6322 structure containing the upper halfs of the 64 bit registers.
6323
6324 2010-04-13 Simon Baldwin <simonb@google.com>
6325
6326 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
6327
6328 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
6329
6330 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
6331 rvalue on the RHS if the LHS is of a non-renamable type.
6332 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
6333
6334 2010-04-13 Matthias Klose <doko@ubuntu.com>
6335
6336 * gcc.c (cc1_options): Handle -iplugindir before processing
6337 the cc1 spec. Only add -iplugindir once.
6338 (cpp_unique_options): Add -iplugindir option if -fplugin* options
6339 found.
6340 * common.opt (iplugindir): Remove `Separate' property, initialize.
6341 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
6342 option.
6343 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
6344 (distclean): Remove plugin dir.
6345 * doc/invoke.texi: Document -iplugindir.
6346
6347 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
6348
6349 * doc/plugins.texi (Loading Plugins): Document short
6350 -fplugin=foo option.
6351 (Plugin API): Mention default_plugin_dir_name function.
6352
6353 * gcc.c (find_file_spec_function): Add new declaration.
6354 (static_spec_func): Use it for "find-file".
6355 (find_file_spec_function): Add new function.
6356 (cc1_options): Add -iplugindir option if -fplugin* options found.
6357
6358 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
6359
6360 * plugin.c (add_new_plugin): Updated comment, and handle short
6361 plugin name.
6362 (default_plugin_dir_name): Added new function.
6363
6364 * common.opt (iplugindir): New option to set the plugin directory.
6365
6366 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
6367
6368 * config/i386/i386.md (any_rotate): New code iterator.
6369 (rotate_insn): New code attribute.
6370 (rotate): Ditto.
6371 (SWIM124): New mode iterator.
6372 (<rotate_insn>ti3): New expander.
6373 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
6374 any_rotate code iterator.
6375 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
6376 using any_rotate code iterator and SWIM124 mode iterator.
6377 (ix86_rotlti3): New insn_and_split pattern.
6378 (ix86_rotrti3): Ditto.
6379 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
6380 ix86_rotl{di,ti}3 patterns.
6381 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
6382 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
6383 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
6384 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
6385 code iterator and SWI mode iterator.
6386 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
6387 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
6388 code iterator.
6389 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
6390 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
6391 (bswap rotatert splitter): Add splitter.
6392 (bswap splitter): Macroize splitter using any_rotate code iterator.
6393 Add insn predicate to split only for TARGET_USE_XCHGB or when
6394 optimizing function for size.
6395
6396 2010-04-12 Steve Ellcey <sje@cup.hp.com>
6397
6398 * config/pa/pa.c (emit_move_sequence): Remove use of
6399 deleted variable flag_argument_noalias.
6400
6401 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6402
6403 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
6404 configurations.
6405 Add to unsupported targets list.
6406 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
6407 sparc*-sun-solaris2.[567]* from target lists.
6408 * configure: Regenerate.
6409 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
6410 removal.
6411 Remove Solaris 7 patch references.
6412 (Specific, sparc-sun-solaris2.7): Removed.
6413 (sparc-sun-solaris2*): Update Solaris 7 example.
6414 (sparc64-*-solaris2*): Likewise.
6415
6416 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6417
6418 * config.build (alpha*-dec-osf4*): Remove.
6419 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
6420 of obsolete configurations.
6421 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
6422 support.
6423 * config/alpha/t-osf4: Renamed to ...
6424 * config/alpha/t-osf5: ... this.
6425 * config/alpha/osf.h: Renamed to ...
6426 * config/alpha/osf5.h: ... this.
6427 Merged old osf5.h contents.
6428 Update comments.
6429 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
6430 (EXTRA_SPECS): Removed.
6431 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
6432 reflect removal of Tru64 UNIX V4.0/V5.0 support.
6433 Document that.
6434
6435 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6436
6437 * doc/contrib.texi (Contributors, Rainer Orth): Update.
6438
6439 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
6440
6441 PR/43702
6442 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
6443 __thiscall convention.
6444
6445 2010-04-12 Steve Ellcey <sje@cup.hp.com>
6446
6447 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
6448 orig_base.
6449 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
6450
6451 2010-04-12 Steve Ellcey <sje@cup.hp.com>
6452
6453 * function.c (assign_parms_initialize_all): Add unused attribute
6454 to fntype.
6455
6456 2010-04-12 Richard Guenther <rguenther@suse.de>
6457
6458 * gsstruct.def (GSS_CALL): New.
6459 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
6460 * gimple.h: Include tree-ssa-alias.h.
6461 (struct gimple_statement_call): New.
6462 (union gimple_statement_struct_d): Add gimple_call member.
6463 (gimple_call_reset_alias_info): Declare.
6464 (gimple_call_use_set): New function.
6465 (gimple_call_clobber_set): Likewise.
6466 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
6467 * gimple.c (gimple_call_reset_alias_info): New function.
6468 (gimple_build_call_1): Call it.
6469 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6470 * tree-inline.c (remap_gimple_stmt): Likewise.
6471 (expand_call_inline): Remove callused handling.
6472 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
6473 * tree-dfa.c (dump_variable): Likewise.
6474 * tree-parloops.c (parallelize_loops): Likewise.
6475 * tree-ssa.c (init_tree_ssa): Likewise.
6476 (delete_tree_ssa): Likewise.
6477 * tree-flow-inline.h (is_call_used): Remove.
6478 * tree-flow.h (struct gimple_df): Remove callused member.
6479 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
6480 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
6481 (ref_maybe_used_by_call_p_1): Simplify.
6482 (call_may_clobber_ref_p_1): Likewise.
6483 * tree-ssa-structalias.c (compute_points_to_sets): Set
6484 the call stmt used and clobbered sets.
6485 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
6486 (find_tail_calls): Verify the tail call.
6487
6488 2010-04-12 Richard Guenther <rguenther@suse.de>
6489
6490 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
6491 single-iteration always-inline inlining.
6492 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
6493 (cgraph_decide_inlining): Do not handle always-inline specially.
6494 (try_inline): Remove always-inline cycle detection special case.
6495 Do not recurse on always-inlines.
6496 (cgraph_early_inlining): Do not iterate if not optimizing.
6497 (cgraph_gate_early_inlining): remove.
6498 (pass_early_inline): Run unconditionally.
6499 (gate_cgraph_decide_inlining): New function.
6500 (pass_ipa_inline): Use it. Do not run the IPA inliner if
6501 not inlining or optimizing.
6502 (cgraph_decide_inlining_of_small_functions): Also consider
6503 always-inline functions.
6504 (cgraph_default_inline_p): Return true for nodes which should
6505 disregard inline limits.
6506 (estimate_function_body_sizes): Assume zero size and time for
6507 nodes which are marked as disregarding inline limits.
6508 (cgraph_decide_recursive_inlining): Do not perform recursive
6509 inlining on always-inline nodes.
6510
6511 2010-04-12 Jakub Jelinek <jakub@redhat.com>
6512
6513 PR bootstrap/43699
6514 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
6515 for exprs satisfying handled_component_p.
6516
6517 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
6518
6519 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
6520 non-constant aggregate elements.
6521
6522 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
6523 is a real initialization.
6524
6525 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
6526
6527 PR c/36774
6528 * c-decl.c (start_function): Move forward check for nested function.
6529
6530 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
6531
6532 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
6533 * config/sh/sh.c: Include reload.h.
6534 (sh_legitimize_reload_address): New.
6535 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
6536 sh_legitimize_reload_address.
6537
6538 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
6539
6540 * config/sh/sh.md (*movqi_pop): New insn pattern.
6541 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
6542
6543 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
6544
6545 * config/i386/i386.md (any_shiftrt): New code iterator.
6546 (shiftrt_insn): New code attribute.
6547 (shiftrt): Ditto.
6548 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
6549 using any_shiftrt code iterator.
6550 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
6551 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
6552 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
6553 pattern from corresponding peephole2 patterns.
6554 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
6555 using any_shiftrt code iterator.
6556 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
6557 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
6558 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
6559 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
6560 *{ashr,lshr}<mode>3_cmp_zext.
6561 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
6562
6563 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
6564
6565 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
6566 scratch register.
6567 (*lshr<mode>3_cconly): Ditto.
6568
6569 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
6570
6571 * config/i386/i386.md (lshr<mode>3): Macroize expander from
6572 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6573 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
6574 pattern from *lshr{di,ti}3_1 and corresponding splitters using
6575 DWI mode iterator.
6576 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6577 from corresponding peephole2 patterns.
6578 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
6579 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
6580 and *lshrdi3_1_rex64 using SWI mode iterator.
6581 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
6582 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
6583 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
6584 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
6585 and *lshrdi3_cmp_rex64 using SWI mode iterator.
6586 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
6587 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
6588 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
6589 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
6590 SWI mode iterator.
6591
6592 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
6593
6594 * config/i386/i386.md (ashr<mode>3): Macroize expander from
6595 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6596 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
6597 pattern from *ashr{di,ti}3_1 and corresponding splitters using
6598 DWI mode iterator.
6599 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6600 from corresponding peephole2 patterns.
6601 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
6602 (ashrsi3_cvt): Rename from ashrsi3_31.
6603 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
6604 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
6605 and x86_64_shift_adj_3 using SWI48 mode iterator.
6606 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
6607 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
6608 and *ashrdi3_1_rex64 using SWI mode iterator.
6609 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
6610 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
6611 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
6612 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
6613 and *ashrdi3_cmp_rex64 using SWI mode iterator.
6614 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
6615 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
6616 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
6617 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
6618 SWI mode iterator.
6619 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
6620 * config/i386/i386.c (ix86_split_ashr): Update for renamed
6621 x86_shift<mode>_adj_3 expanders.
6622
6623 2010-04-10 Wei Guozhi <carrot@google.com>
6624
6625 PR target/42601
6626 * config/arm/arm.c (arm_pic_static_addr): New function.
6627 (legitimize_pic_address): Call arm_pic_static_addr when it detects
6628 a static symbol.
6629 (arm_output_addr_const_extra): Output expression for new pattern.
6630 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
6631
6632 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
6633
6634 * ira-costs.c (record_reg_classes): Ignore alternatives that are
6635 not enabled.
6636
6637 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
6638 * web.c: Include "insn-config.h" and "recog.h".
6639 (union_match_dups): New function.
6640 (web_main): Call it.
6641 (union_defs): Don't try to recognize match_dups.
6642
6643 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
6644 if doing so would replace the entire pattern.
6645
6646 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
6647
6648 PR target/43707
6649 PR target/43709
6650 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
6651 and splitter pattern. Change splitter operand 1 predicate to
6652 nonmemory_operand.
6653
6654 2010-04-09 Martin Jambor <mjambor@suse.cz>
6655
6656 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
6657 lattices are addresses of CONST_DECLs with the same initial value.
6658 (ipcp_print_all_lattices): Print values of CONST_DECLs.
6659 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
6660
6661 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
6662 Bernd Schmidt <bernds@codesourcery.com>
6663
6664 * loop-invariant.c (replace_uses): New static function.
6665 (move_invariant_reg): Use it to ensure we can replace the uses.
6666
6667 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
6668
6669 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
6670 function template.
6671 (picochip_override_options): Enable section anchors only above -O1.
6672 (picochip_reorg): Fixed a couple of build warnings.
6673
6674 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6675
6676 * configure.ac (plugin -rdynamic test): Log result.
6677 * configure: Regenerate.
6678 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
6679 (RDYNAMIC_SPEC): Define.
6680 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
6681
6682 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6683
6684 * configure.ac: Determine Sun ld version numbers.
6685 (comdat_group): Restrict GNU ld version checks to gld.
6686 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
6687 (enable_comdat): Support --enable-comdat.
6688 * configure: Regenerate.
6689 * doc/install.texi (Configuration): Document --enable-comdat.
6690
6691 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6692
6693 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
6694 * config/sol2-gld.h: ... here.
6695 * config.gcc (sparc*-*-solaris2*): Reflect this.
6696 (i[34567]86-*-solaris2*): Use it.
6697
6698 2010-04-09 Steve Ellcey <sje@cup.hp.com>
6699
6700 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
6701 setup_clocks_p.
6702 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
6703
6704 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6705
6706 PR 42965
6707 * diagnostic.c (diagnostic_initialize): Initialize
6708 some_warnings_are_errors.
6709 (diagnostic_finish): New.
6710 (diagnostic_action_after_output): Call it before exiting.
6711 (diagnostic_report_diagnostic): Do not print message here. Set
6712 some_warnings_are_errors.
6713 * diagnostic.h (diagnostic_context): Delete
6714 issue_warnings_are_errors_message. Add some_warnings_are_errors.
6715 (diagnostic_finish): Declare.
6716 * toplev.c (toplev_main): Call it before exit.
6717
6718 2010-04-09 Jason Merrill <jason@redhat.com>
6719
6720 PR c++/42623
6721 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
6722 for incomplete type.
6723
6724 PR c++/41788
6725 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
6726 based on a warning flag.
6727
6728 2010-04-09 Richard Guenther <rguenther@suse.de>
6729
6730 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
6731
6732 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
6733
6734 PR bootstrap/43684
6735 * varasm.c (default_assemble_visibility): Wrap vars that are
6736 set, but unused, by targets without GAS.
6737 * config/rs6000/rs6000.c (paired_emit_vector_compare):
6738 Remove set, but unused, vars.
6739 (rs6000_legitimize_tls_address): Likewise.
6740 (altivec_expand_dst_builtin): Likewise.
6741 * config/darwin.c (machopic_classify_symbol): Likewise.
6742 (machopic_indirection_name): Likewise.
6743
6744 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
6745
6746 * config/i386/i386.md (DWI): New mode iterator.
6747 (S): New mode attribute.
6748 (shift_operand): Ditto.
6749 (shift_immediate_operand): Ditto.
6750 (ashl_input_operand): Ditto.
6751 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
6752 using SDWIM mode iterator.
6753 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
6754 pattern from *ashl{di,ti}3_1 and corresponding splitters using
6755 DWI mode iterator.
6756 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
6757 from corresponding peephole2 patterns.
6758 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
6759 and x86_64_shift_adj_1 using SWI48 mode iterator.
6760 (x86_shift<mode>_adj_2): Ditto.
6761 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
6762 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
6763 using SWI48 mode iterator.
6764 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
6765 *ashldi3_cmp_rex64 using SWI mode iterator.
6766 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
6767 *ashldi3_cconly_rex64 using SWI mode iterator.
6768 * config/i386/i386.c (ix86_split_ashl): Update for renamed
6769 x86_shift<mode>_adj_{1,2}.
6770 (ix86_split_ashr): Ditto.
6771 (ix86_split_lshr): Ditto.
6772
6773 2010-04-09 Richard Guenther <rguenther@suse.de>
6774
6775 * target.h (builtin_conversion): Pass in input and output types.
6776 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
6777 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
6778 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
6779 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
6780
6781 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
6782 Handle AVX modes.
6783 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
6784
6785 2010-04-09 Richard Guenther <rguenther@suse.de>
6786
6787 PR target/43152
6788 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
6789
6790 2010-04-09 Richard Guenther <rguenther@suse.de>
6791
6792 * tree-vectorizer.h (struct _stmt_vec_info): Document
6793 that vectype is the type of the LHS.
6794 (supportable_widening_operation, supportable_narrowing_operation):
6795 Get both input and output vector types as arguments.
6796 (vect_is_simple_use_1): Declare.
6797 (get_same_sized_vectype): Likewise.
6798 * tree-vect-loop.c (vect_determine_vectorization_factor):
6799 Set STMT_VINFO_VECTYPE to the vector type of the def.
6800 (vectorizable_reduction): Adjust.
6801 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
6802 Adjust. Specify the output vector type.
6803 (vect_pattern_recog_1): Adjust.
6804 * tree-vect-stmts.c (get_same_sized_vectype): New function.
6805 (vectorizable_call): Adjust.
6806 (vectorizable_conversion): Likewise.
6807 (vectorizable_operation): Likewise.
6808 (vectorizable_type_demotion): Likewise.
6809 (vectorizable_type_promotion): Likewise.
6810 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
6811 the def.
6812 (vect_is_simple_use_1): New function.
6813 (supportable_widening_operation): Get both input and output
6814 vector types.
6815 (supportable_narrowing_operation): Likewise.
6816 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
6817
6818 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
6819
6820 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
6821 __thiscall and _thiscall as predefined macros.
6822 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
6823 thiscall attribute handling.
6824 (ix86_comp_type_attributes): Likewise.
6825 (ix86_function_regparm): Likewise.
6826 (ix86_return_pops_args): Likewise.
6827 (init_cumulative_args): Likewise.
6828 (find_drap_reg): Likewise.
6829 (ix86_static_chain): Likewise.
6830 (x86_this_parameter): Likewise.
6831 (x86_output_mi_thunk): Likewise.
6832 (ix86_attribute_table): Add description for thiscall attribute.
6833 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
6834 * doc/extend.texi: Add documentation for thiscall.
6835
6836 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6837
6838 PR c++/28584
6839 * c.opt (Wint-to-pointer-cast): Available in C++.
6840 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
6841
6842 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
6843
6844 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
6845 * calls.c (expand_call): Pass the function type to aggregate_value_p.
6846 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
6847 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
6848 function type instead. Reorder and simplify checks.
6849
6850 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
6851
6852 2010-04-08 Jing Yu <jingyu@google.com>
6853 Zdenek Dvorak <ook@ucw.cz>
6854
6855 PR tree-optimization/42720
6856 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
6857 loop unswitch conditions here from ...
6858 (tree_unswitch_single_loop): ... here.
6859
6860 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
6861
6862 * tree-if-conv.c: Fix comments and simplify logic.
6863
6864 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
6865
6866 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
6867 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
6868 (main_tree_if_conversion): Update call to tree_if_conversion.
6869
6870 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6871
6872 PR 42485
6873 * doc/invoke.texi (-b,-V): Delete.
6874 * doc/tm.texi: Do not mention -b.
6875 * gcc.c (display_help): Delete -b and -V.
6876 (process_command): Delete -b and -V.
6877 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
6878
6879 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
6880 Wolfgang Gellerich <gellerich@de.ibm.com>
6881
6882 Implement target hook for loop unrolling
6883 * target.h (loop_unroll_adjust): Add a new target hook function.
6884 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
6885 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
6886 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
6887 (s390_loop_unroll_adjust): Implement the new target hook for s390.
6888 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
6889 target hook.
6890 (decide_unroll_stupid): Likewise.
6891
6892 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6893
6894 PR target/43643
6895 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
6896
6897 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6898
6899 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
6900 (Specific, *-*-solaris2*): Likewise.
6901 Don't prefer Sun as over GNU as.
6902
6903 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
6904
6905 * config/s390/s390.c (override_options): Adjust the z10 defaults
6906 for max-unroll-times, max-completely-peeled-insns
6907 and max-completely-peel-times.
6908
6909 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6910
6911 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
6912 instructions for z10.
6913 (s390_expand_setmem): Likewise.
6914 (s390_expand_cmpmem): Likewise.
6915
6916 2010-04-08 Richard Guenther <rguenther@suse.de>
6917
6918 PR tree-optimization/43679
6919 * tree-ssa-pre.c (eliminate): Only propagate copies.
6920
6921 2010-04-08 Jakub Jelinek <jakub@redhat.com>
6922
6923 PR bootstrap/43681
6924 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
6925 set but not used variable warning.
6926
6927 2010-04-08 Wei Guozhi <carrot@google.com>
6928
6929 PR target/41653
6930 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
6931 (arm_size_rtx_costs): Call the new function when optimized for size.
6932
6933 2010-04-08 Jakub Jelinek <jakub@redhat.com>
6934
6935 PR debug/43670
6936 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
6937 op0 is not a MEM, just return NULL instead of assertion
6938 failure.
6939 (discover_nonconstant_array_refs): Don't walk debug stmts.
6940
6941 2010-04-08 Doug Kwan <dougkwan@google.com>
6942
6943 * configure.ac: Recognize gold and do not use its version number
6944 to test ld features.
6945 * configure: Regenerate.
6946
6947 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
6948
6949 PR middle-end/40815
6950 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
6951 (negate_value): Move code to push elements to broken_up_substracts ...
6952 (eliminate_plus_minus_pair): ... here. Push operands that have no
6953 negative pair to plus_negates.
6954 (repropagate_negates, init_reassoc, fini_reassoc): Update.
6955
6956 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6957
6958 * doc/install.texi (Configuration): Move description of
6959 --enable-lto, --with-libelf*, --enable-gold from Java section to
6960 general section.
6961
6962 * doc/generic.texi (Working with declarations)
6963 (Function Properties, C and C++ Trees): Fix typos.
6964 * doc/sourcebuild.texi (Top Level): Likewise.
6965
6966 2010-04-07 Jakub Jelinek <jakub@redhat.com>
6967
6968 PR c/18624
6969 * tree.h (DECL_READ_P): Define.
6970 (struct tree_decl_common): Add decl_read_flag.
6971 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
6972 a set but not used warning.
6973 (merge_decls): Merge DECL_READ_P flag.
6974 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
6975 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
6976 * c-common.c (handle_used_attribute, handle_unused_attribute):
6977 Likewise.
6978 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
6979 New prototypes.
6980 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
6981 New functions.
6982 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
6983 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
6984 c_parser_binary_expression, c_parser_cast_expression,
6985 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
6986 Call default_function_array_read_conversion instead of
6987 default_function_array_conversion where needed.
6988 (c_parser_unary_expression, c_parser_conditional_expression,
6989 c_parser_postfix_expression_after_primary, c_parser_initelt):
6990 Likewise. Call mark_exp_read where needed.
6991 (c_parser_statement_after_labels, c_parser_asm_operands,
6992 c_parser_typeof_specifier, c_parser_sizeof_expression,
6993 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
6994 where needed.
6995 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
6996 New.
6997 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
6998 (warn_unused_but_set_parameter): Default to warn_unused
6999 && extra_warnings.
7000 * doc/invoke.texi: Document -Wunused-but-set-variable and
7001 -Wunused-but-set-parameter.
7002
7003 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
7004 used count variable.
7005 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
7006 when operandN variables aren't used in the body of the expander
7007 or splitter.
7008 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
7009 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
7010 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
7011 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
7012 FOR_EACH_IMM_USE_ON_STMT): Likewise.
7013 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
7014 * tree.c (PROCESS_ARG): Likewise.
7015
7016 2010-04-07 Simon Baldwin <simonb@google.com>
7017
7018 * diagnostic.h (diagnostic_override_option_index): New macro to
7019 set a diagnostic's option_index.
7020 * c-tree.h (c_cpp_error): Add warning reason argument.
7021 * opts.c (_warning_as_error_callback): New.
7022 (register_warning_as_error_callback): Store callback for
7023 warnings enabled via enable_warning_as_error.
7024 (enable_warning_as_error): Call callback, minor code tidy.
7025 * opts.h (register_warning_as_error_callback): Declare.
7026 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
7027 response to -Werror=.
7028 (c_common_init_options): Register warning_as_error_callback in opts.c.
7029 * common.opt: Add -Wno-cpp option.
7030 * c-common.c (struct reason_option_codes_t): Map cpp warning
7031 reason codes to gcc option indexes.
7032 * (c_option_controlling_cpp_error): New function, lookup the gcc
7033 option index for a cpp warning reason code.
7034 * (c_cpp_error): Add warning reason argument, call
7035 c_option_controlling_cpp_error for diagnostic_override_option_index.
7036 * doc/invoke.texi: Document -Wno-cpp.
7037
7038 2010-04-07 Richard Guenther <rguenther@suse.de>
7039
7040 * ipa-reference.c (mark_load): Use get_base_address.
7041 (mark_store): Likewise.
7042
7043 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
7044 inserting GIMPLE_NOPs into the IL.
7045 * tree-ssa-structalias.c (get_constraint_for_component_ref):
7046 Explicitly strip handled components and indirect references.
7047
7048 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
7049 folding address expressions.
7050 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
7051 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
7052 operand_equal_p to compare decls.
7053 (ptr_deref_may_alias_decl_p): Likewise.
7054 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
7055 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
7056 Handle reversed comparison ops.
7057 * tree-sra.c (asm_visit_addr): Use get_base_address.
7058 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
7059 * ipa-reference.c (mark_address): Use get_base_address.
7060
7061 2010-04-07 Richard Guenther <rguenther@suse.de>
7062
7063 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
7064 Propagate constants everywhere.
7065
7066 2010-04-07 Jakub Jelinek <jakub@redhat.com>
7067
7068 PR debug/43516
7069 * tree.c (MAX_INT_CACHED_PREC): Define.
7070 (nonstandard_integer_type_cache): New array.
7071 (build_nonstandard_integer_type): Cache results for precision
7072 <= MAX_INT_CACHED_PREC.
7073
7074 2010-04-07 Richard Guenther <rguenther@suse.de>
7075
7076 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
7077 -fargument-noalias-global, -fargument-noalias-anything): Remove.
7078 * common.opt: Likewise.
7079 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
7080 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
7081 (nonoverlapping_memrefs_p): Likewise.
7082 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7083 * opts.c (common_handle_option): Handle OPT_fargument_alias,
7084 OPT_fargument_noalias, OPT_fargument_noalias_anything and
7085 OPT_fargument_noalias_global for backward compatibility.
7086
7087 2010-04-07 Richard Guenther <rguenther@suse.de>
7088
7089 PR tree-optimization/43270
7090 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
7091 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
7092 * tree-ssa-pre.c (phi_translate_1): Adjust.
7093 (fully_constant_expression): Split out vn_reference handling to ...
7094 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
7095 Fold reads from constant strings.
7096 (vn_reference_lookup): Handle fully constant references.
7097 (vn_reference_lookup_pieces): Likewise.
7098 * Makefile.in (expmed.o-warn): Add -Wno-error.
7099
7100 2010-04-07 Martin Jambor <mjambor@suse.cz>
7101
7102 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
7103
7104 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
7105
7106 PR driver/41594
7107 * gcc.c: Add -static-libstdc++ to list of recognized options.
7108
7109 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7110
7111 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
7112
7113 2010-04-07 Richard Guenther <rguenther@suse.de>
7114
7115 PR middle-end/42617
7116 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
7117 bases build simple mem attributes to retain points-to information.
7118
7119 2010-04-07 Richard Guenther <rguenther@suse.de>
7120
7121 PR middle-end/42617
7122 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
7123 preserve points-to related information.
7124
7125 2010-04-07 Richard Guenther <rguenther@suse.de>
7126
7127 PR middle-end/42617
7128 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
7129 discard plain indirect references.
7130 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
7131 * tree.c (tree_nop_conversion): Likewise.
7132
7133 2010-04-07 Dodji Seketeli <dodji@redhat.com>
7134
7135 PR debug/43628
7136 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
7137
7138 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
7139
7140 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
7141 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
7142
7143 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
7144
7145 * tree-if-conv.c: Fix indentation and comments.
7146
7147 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
7148
7149 * tree-if-conv.c: Sort static functions in topological order.
7150
7151 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
7152
7153 * tree-if-conv.c: Fix indentation and comments.
7154
7155 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7156
7157 PR middle-end/43519
7158 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
7159 lang_hooks.types.type_for_size instead of
7160 build_nonstandard_integer_type.
7161 When converting an unsigned type to signed, double its precision.
7162 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
7163 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
7164 (graphite_create_new_loop_guard): When ub + 1 wraps around,
7165 use lb <= ub.
7166
7167 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7168
7169 PR middle-end/43519
7170 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
7171 POINTER_PLUS_EXPR for pointer types.
7172
7173 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7174
7175 PR middle-end/43519
7176 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
7177 * graphite-clast-to-gimple.c: Include langhooks.h.
7178 (max_signed_precision_type): New.
7179 (max_precision_type): Takes two types as arguments.
7180 (precision_for_value): New.
7181 (precision_for_interval): New.
7182 (gcc_type_for_interval): New.
7183 (gcc_type_for_value): New.
7184 (gcc_type_for_clast_term): New.
7185 (gcc_type_for_clast_red): New.
7186 (gcc_type_for_clast_bin): New.
7187 (gcc_type_for_clast_expr): Split up into several functions.
7188 (gcc_type_for_clast_eq): Rewritten.
7189 (compute_bounds_for_level): New.
7190 (compute_type_for_level_1): New.
7191 (compute_type_for_level): New.
7192 (gcc_type_for_cloog_iv): Removed.
7193 (gcc_type_for_iv_of_clast_loop): Rewritten.
7194 (graphite_create_new_loop): Compute the lower and upper bound types
7195 with gcc_type_for_clast_expr.
7196 (graphite_create_new_loop_guard): Same.
7197 (find_cloog_iv_in_expr): Removed.
7198 (compute_cloog_iv_types_1): Removed.
7199 (compute_cloog_iv_types): Removed.
7200 (gloog): Do not call compute_cloog_iv_types.
7201 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
7202 GBB_CLOOG_IV_TYPES.
7203 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
7204 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
7205 (GBB_CLOOG_IV_TYPES): Removed.
7206
7207 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7208
7209 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
7210 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
7211 (detect_commutative_reduction): Same.
7212
7213 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7214
7215 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
7216 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
7217 argument.
7218 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
7219 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
7220 (rewrite_commutative_reductions_out_of_ssa): Same.
7221 * passes.c (execute_function_todo): Call verify_ssa for every pass
7222 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
7223 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
7224 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
7225 with an extra argument.
7226 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
7227 verify_ssa only when the extra argument is true.
7228 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
7229 with an extra argument.
7230 (tree_transform_and_unroll_loop): Same.
7231
7232 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7233
7234 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
7235 for all the passes of the LNO having LOOP_CLOSED_SSA.
7236 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
7237 * tree-loop-distribution.c (pass_loop_distribution): Same.
7238 * tree-pass.h (TODO_verify_loops): Removed.
7239 * tree-ssa-loop.c (pass_tree_loop_init): Same.
7240 (pass_lim): Same.
7241 (pass_tree_unswitch): Same.
7242 (pass_predcom): Same.
7243 (pass_vectorize): Same.
7244 (pass_linear_transform): Same.
7245 (pass_graphite_transforms): Same.
7246 (pass_iv_canon): Same.
7247 (pass_complete_unroll): Same.
7248 (pass_complete_unrolli): Same.
7249 (pass_parallelize_loops): Same.
7250 (pass_loop_prefetch): Same.
7251 (pass_iv_optimize): Same.
7252
7253 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
7254
7255 PR middle-end/32824
7256 * passes.c (init_optimization_passes): Move pass_lim before
7257 pass_copy_prop and pass_dce_loop.
7258
7259 2010-04-06 Jakub Jelinek <jakub@redhat.com>
7260
7261 PR target/43667
7262 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
7263 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
7264 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
7265 MULTI_* defines for 4 argument vpermil2p* builtins.
7266
7267 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
7268
7269 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
7270 * config/i386/i386.c (x86_maybe_negate_const_int): New.
7271 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
7272 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
7273 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
7274 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
7275 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
7276 Use x86_maybe_negate_const_int to output insn mnemonic.
7277 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
7278 check from instruction predicate. Update comments.
7279 * config/i386/sync.md (sync_add<mode>): Use
7280 x86_maybe_negate_const_int to output insn mnemonic.
7281
7282 2010-04-06 Jan Hubicka <jh@suse.cz>
7283
7284 PR tree-optimization/42906
7285 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
7286 IGNORE_SELF argument. Set visited_control_parents for fully
7287 processed BBs.
7288 (find_obviously_necessary_stmts): Update call of
7289 mark_control_dependent_edges_necessary.
7290 (propagate_necessity): Likewise. Handle PHI edges more curefully.
7291
7292 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
7293
7294 * config/i386/i386.md: Remove comment about 'e' and 'E'
7295 operand modifier.
7296
7297 2010-04-06 Richard Guenther <rguenther@suse.de>
7298
7299 PR tree-optimization/43627
7300 * tree-vrp.c (extract_range_from_unary_expr): Widenings
7301 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
7302 not varying.
7303
7304 2010-04-06 Jakub Jelinek <jakub@redhat.com>
7305
7306 * BASE-VER: Change to 4.6.0.
7307
7308 PR target/43638
7309 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
7310 handling.
7311
7312 2010-04-06 Richard Guenther <rguenther@suse.de>
7313
7314 PR middle-end/43661
7315 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
7316
7317 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7318
7319 * doc/invoke.texi (Optimize Options): Document that LTO
7320 won't remove object access purely due to incompatible
7321 declarations.
7322
7323 2010-04-04 Matthias Klose <doko@ubuntu.com>
7324
7325 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
7326 Initialize variable.
7327
7328 2010-04-03 Richard Guenther <rguenther@suse.de>
7329
7330 PR middle-end/42509
7331 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
7332 require a non-NULL MEM_OFFSET.
7333
7334 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
7335
7336 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
7337 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
7338 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
7339 config/alpha/predicates.md, config/arm/arm.md,
7340 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
7341 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
7342 config/darwin9.h, config/darwin.c, config/darwin.h,
7343 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
7344 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
7345 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
7346 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
7347 config/mips/mips.md, config/mn10300/mn10300.c,
7348 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
7349 config/rs6000/aix.h, config/rs6000/dfp.md,
7350 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
7351 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
7352 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
7353 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
7354 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
7355 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
7356 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
7357 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
7358 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
7359 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
7360 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
7361 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
7362 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
7363 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
7364 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
7365 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
7366 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
7367 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
7368 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
7369 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
7370 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
7371 opt-functions.awk, opth-gen.awk, params.def, passes.c,
7372 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
7373 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
7374 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
7375 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
7376 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
7377 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
7378 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
7379 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
7380 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
7381 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
7382 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
7383 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
7384 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
7385 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
7386
7387 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7388
7389 PR other/43620
7390 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
7391 * aclocal.m4: Regenerate.
7392
7393 2010-04-02 Richard Guenther <rguenther@suse.de>
7394
7395 PR tree-optimization/43629
7396 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
7397 if we have seen a constant value.
7398
7399 2010-04-02 Joseph Myers <joseph@codesourcery.com>
7400
7401 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
7402
7403 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
7404
7405 PR target/43469
7406 * arm.c (legitimize_tls_address): Adjust call to
7407 gen_tls_load_dot_plus_four.
7408 (arm_note_pic_base): New function.
7409 (arm_cannot_copy_insn_p): Use it.
7410 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
7411 constraint.
7412
7413 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7414
7415 PR bootstrap/43531
7416
7417 Revert:
7418 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7419
7420 * Makefile.in ($(out_object_file)): Depend on
7421 gt-$(basename $(notdir $(out_file))).h.
7422
7423 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
7424
7425 * config.gcc (lm32-*-rtems*): Add t-lm32.
7426
7427 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
7428
7429 * config.gcc: Add lm32-*-rtems*.
7430 * config/lm32/rtems.h: New file.
7431
7432 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
7433
7434 PR target/42609
7435 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
7436
7437 2010-04-01 Jakub Jelinek <jakub@redhat.com>
7438
7439 * dwarf2out.c (output_compilation_unit_header): For
7440 -gdwarf-4 use version 4 instead of version 3.
7441 (output_line_info): For version 4 and above emit additional
7442 maximum ops per insn header field.
7443 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
7444
7445 * dwarf2out.c (is_c_family, is_java): Remove.
7446 (lower_bound_default): New function.
7447 (add_bound_info, gen_descr_array_type_die): Use it.
7448
7449 2010-04-01 Dodji Seketeli <dodji@redhat.com>
7450
7451 PR debug/43325
7452 * dwarf2out.c (gen_variable_die): Allow debug info for variable
7453 re-declaration when it happens in a function.
7454
7455 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
7456
7457 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
7458 (cgraph_remove_function_insertion_hook): Same.
7459 (cgraph_call_function_insertion_hooks): Same.
7460
7461 2010-04-01 Richard Guenther <rguenther@suse.de>
7462
7463 PR middle-end/43614
7464 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
7465 and TREE_THIS_VOLATILE.
7466 (copy_ref_info): Likewise.
7467 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
7468 * tree.c (build6_stat): Ignore side-effects of all but arg5
7469 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
7470 TARGET_MEM_REF.
7471
7472 2010-04-01 Richard Guenther <rguenther@suse.de>
7473
7474 PR tree-optimization/43607
7475 * ipa-type-escape.c (check_call): Do not access non-existing
7476 arguments.
7477
7478 2010-04-01 Richard Guenther <rguenther@suse.de>
7479
7480 PR middle-end/43602
7481 Revert
7482 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
7483 Jack Howarth <howarth@bromo.med.uc.edu>
7484
7485 * tree-profile.c (tree_init_ic_make_global_vars): Make static
7486 variables TLS.
7487
7488 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7489
7490 * doc/install.texi (Prerequisites): Document libelf usability on
7491 IRIX 5/6 and Solaris 2.
7492 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
7493 Update GNU as, GNU ld requirements.
7494 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
7495 Document Sun Studio compiler download.
7496 Update and simplify as, ld recommendations.
7497 (Specific, *-*-solaris2.7): Note obsoletion, removal.
7498
7499 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7500
7501 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
7502 with_tune_32 to pentium4.
7503
7504 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
7505
7506 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
7507
7508 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7509
7510 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
7511 obsoletion, removal.
7512 Update IDO URL.
7513 Document GNU as requirement.
7514 Update configure requirements.
7515 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
7516 Recomment IRIX 6.5.18+.
7517 Document IDF/IDL requirement.
7518 Document GNU as requirement.
7519 Document GNU ld bootstrap failure.
7520 Remove freeware.sgi.com reference.
7521
7522 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7523
7524 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
7525 UNIX V4.0, V5.0 obsoletion, removal.
7526 Remove --with-gc=simple reference.
7527 Update VM requirements during bootstrap.
7528 Remove -oldas bootstrap description.
7529 Update binutils reference.
7530 Remove comparison failure note.
7531
7532 2010-03-31 Richard Guenther <rguenther@suse.de>
7533 Zdenek Dvorak <ook@ucw.cz>
7534 Sebastian Pop <sebastian.pop@amd.com>
7535
7536 PR middle-end/43464
7537 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
7538 with multiple arguments.
7539 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
7540
7541 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7542
7543 * graphite-dependences.c (print_pddr): Call print_pdr with an
7544 extra argument.
7545 * graphite-poly.c (debug_pdr): Add an extra argument for the
7546 verbosity level.
7547 (print_pdr): Same.
7548 (print_pbb_domain): Same.
7549 (print_pbb): Same.
7550 (print_scop_context): Same.
7551 (print_scop): Same.
7552 (print_cloog): Same.
7553 (debug_pbb_domain): Same.
7554 (debug_pbb): Same.
7555 (print_pdrs): Same.
7556 (debug_pdrs): Same.
7557 (debug_scop_context): Same.
7558 (debug_scop): Same.
7559 (debug_cloog): Same.
7560 (print_scop_params): Same.
7561 (debug_scop_params): Same.
7562 (print_iteration_domain): Same.
7563 (print_iteration_domains): Same.
7564 (debug_iteration_domain): Same.
7565 (debug_iteration_domains): Same.
7566 (print_scattering_function): Same.
7567 (print_scattering_functions): Same.
7568 (debug_scattering_function): Same.
7569 (debug_scattering_functions): Same.
7570 * graphite-poly.h (debug_pdr): Update declaration.
7571 (print_pdr): Same.
7572 (print_pbb_domain): Same.
7573 (print_pbb): Same.
7574 (print_scop_context): Same.
7575 (print_scop): Same.
7576 (print_cloog): Same.
7577 (debug_pbb_domain): Same.
7578 (debug_pbb): Same.
7579 (print_pdrs): Same.
7580 (debug_pdrs): Same.
7581 (debug_scop_context): Same.
7582 (debug_scop): Same.
7583 (debug_cloog): Same.
7584 (print_scop_params): Same.
7585 (debug_scop_params): Same.
7586 (print_iteration_domain): Same.
7587 (print_iteration_domains): Same.
7588 (debug_iteration_domain): Same.
7589 (debug_iteration_domains): Same.
7590 (print_scattering_function): Same.
7591 (print_scattering_functions): Same.
7592 (debug_scattering_function): Same.
7593 (debug_scattering_functions): Same.
7594
7595 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7596
7597 * graphite-poly.c (print_scattering_function_1): New.
7598 (print_scattering_function): Call it.
7599 (print_scop_params): Remove spaces at the end of lines.
7600 (print_cloog): New.
7601 (debug_cloog): New.
7602 * graphite-poly.h (print_cloog): Declared.
7603 (debug_cloog): Declared.
7604
7605 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7606
7607 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
7608 in loop->header.
7609 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
7610 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
7611 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
7612 to switch between adding the IV bump in loop->latch or in loop->header.
7613
7614 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7615
7616 * graphite-poly.c (print_scattering_function): Pretty print following
7617 the scoplib format.
7618 (print_pdr): Same.
7619 (print_pbb_domain): Same.
7620 (dump_gbb_cases): Same.
7621 (dump_gbb_conditions): Same.
7622 (print_pdrs): Same.
7623 (print_pbb): Same.
7624 (print_scop_params): Same.
7625 (print_scop_context): Same.
7626 (print_scop): Same.
7627 (print_pbb_body): New.
7628 (lst_indent_to): New.
7629 (print_lst): Start new lines with a #.
7630 * graphite-poly.h (pbb_bb): New.
7631 (pbb_index): Use pbb_bb.
7632 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
7633 disjuncts.
7634 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
7635
7636 2010-03-31 Jakub Jelinek <jakub@redhat.com>
7637
7638 * dwarf2out.c (size_of_die): For -gdwarf-4 use
7639 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
7640 and 0 instead of 1 for dw_val_class_flag.
7641 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
7642 dw_val_class_range_list, dw_val_class_loc_list,
7643 dw_val_class_lineptr and dw_val_class_macptr, use
7644 DW_FORM_flag_present for dw_val_class_flag and
7645 DW_FORM_exprloc for dw_val_class_loc.
7646 (output_die): For -gdwarf-4 print dw_val_class_loc
7647 size as uleb128 instead of 1 or 2 bytes and don't print
7648 anything for dw_val_class_flag.
7649
7650 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
7651 instead of cselib_lookup following by tweaking locs->setting_insn.
7652
7653 PR bootstrap/43596
7654 * cselib.c (cselib_process_insn): Clear cselib_current_insn
7655 even before returning from label, setjmp call or volatile asm
7656 handling.
7657
7658 2010-03-31 Richard Guenther <rguenther@suse.de>
7659
7660 PR middle-end/43600
7661 * cgraphunit.c (cgraph_output_in_order): Do not allocate
7662 temporary data on stack.
7663
7664 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7665
7666 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
7667 (PUSHSECTION_ASM_OP): Remove.
7668 (POPSECTION_ASM_OP): Remove.
7669 (PUSHSECTION_FORMAT): Remove.
7670 * config/sol2.h (PUSHSECTION_FORMAT): Define.
7671 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
7672 * config/sol2.c (solaris_output_init_fini): Use it.
7673
7674 2010-03-31 Jie Zhang <jie@codesourcery.com>
7675
7676 PR 43574
7677 * opt-functions.awk (var_type_struct): Use signed char type
7678 for simple variables.
7679
7680 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7681
7682 * config/sol2.c: Include output.h.
7683 (solaris_assemble_visibility): New function.
7684 * config/t-sol2 (sol2.o): Add output.h dependency.
7685 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
7686 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
7687 Redefine.
7688
7689 2010-03-31 Jakub Jelinek <jakub@redhat.com>
7690
7691 PR target/43580
7692 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
7693 V2SImode or XFmode on PRE_DEC.
7694
7695 PR debug/43557
7696 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
7697 BLKmode.
7698
7699 2010-03-31 Jie Zhang <jie@codesourcery.com>
7700
7701 PR 43562
7702 * reload.h (caller_save_initialized_p): Declare.
7703 * toplev.c (backend_init_target): Don't call
7704 init_caller_save but set caller_save_initialized_p to false.
7705 * caller-save.c (caller_save_initialized_p): Define.
7706 (init_caller_save): Check caller_save_initialized_p.
7707 * ira.c (ira): Call init_caller_save if flag_caller_saves.
7708
7709 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7710
7711 PR target/39048
7712 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
7713 and soft-fp/t-softfp to tmake_file.
7714 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
7715 (LIBGCC2_TF_CEXT): Define.
7716 (TF_SIZE): Define.
7717
7718 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
7719
7720 PR debug/42977
7721 * cselib.c (n_useless_values): Document handling of debug locs.
7722 (n_useless_debug_values, n_debug_values): New variables.
7723 (new_elt_loc_list): Don't add to debug values, keep count.
7724 (promote_debug_loc): New.
7725 (cselib_reset_table): Zero new variables.
7726 (entry_and_rtx_equal_p): Promote debug locs.
7727 (discard_useless_locs): Increment n_useless_debug_values for
7728 debug values.
7729 (remove_useless_values): Adjust n_useless_values and n_debug_values
7730 with n_useless_debug_values.
7731 (add_mem_for_addr): Promote debug locs.
7732 (cselib_lookup_mem): Likewise.
7733 (cselib_lookup_addr): Renamed to...
7734 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
7735 (cselib_log_lookup): ... this. Turn into...
7736 (cselib_lookup_addr): ... new wrapper.
7737 (cselib_lookup_from_insn): New.
7738 (cselib_invalidate_regno): Increment n_useless_debug_values for
7739 debug values.
7740 (cselib_invalidate_mem): Likewise.
7741 (cselib_process_insn): Take n_deleted and n_debug_values into
7742 account to guard remove_useless_value call.
7743 (cselib_finish): Zero n_useless_debug_values.
7744 * cselib.h (cselib_lookup_from_insn): Declare.
7745 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
7746 (sched_analyze_2): Likewise.
7747
7748 2010-03-30 Jakub Jelinek <jakub@redhat.com>
7749
7750 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
7751 functions.
7752 (adjust_mems): Replace narrowing SUBREG of expression containing
7753 just PLUS, MINUS, MULT and ASHIFT of registers and constants
7754 with operations in the narrower mode.
7755
7756 PR debug/43593
7757 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
7758 regs_invalidated_by_call instead all call_used_reg_set registers.
7759
7760 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
7761
7762 PR middle-end/43430
7763 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
7764 pointer comparisons with types_compatible_p.
7765 * tree-vect-stmts.c (vectorizable_call): Same.
7766 (vectorizable_condition): Same.
7767
7768 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7769
7770 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
7771 stack check if the mask would be zero.
7772
7773 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
7774 Jack Howarth <howarth@bromo.med.uc.edu>
7775
7776 * tree-profile.c (tree_init_ic_make_global_vars): Make static
7777 variables TLS.
7778
7779 2010-03-30 Joseph Myers <joseph@codesourcery.com>
7780
7781 PR other/25232
7782 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
7783 and __unordtf2.
7784 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
7785 Include ___unordxf2 and ___unordtf2.
7786 * config/i386/libgcc-glibc.ver: Do not define inheritance from
7787 GCC_4.4.0 here.
7788
7789 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
7790
7791 * config/lm32/t-lm32: New file.
7792 * config.gcc: Use the above file when targetting lm32.
7793
7794 2010-03-28 Duncan Sands <baldrick@free.fr>
7795
7796 * Makefile.in (PLUGIN_HEADERS): Add except.h.
7797
7798 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
7799
7800 PR middle-end/43431
7801 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
7802 Improve vectorization cost model diagnostic.
7803
7804 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
7805
7806 PR middle-end/43436
7807 * tree-vect-data-refs.c (vect_analyze_data_refs): When
7808 compute_data_dependences_for_loop returns false, early exit
7809 and output an extra diagnostic for the failed data reference
7810 analysis.
7811
7812 2010-03-29 Richard Guenther <rguenther@suse.de>
7813
7814 PR tree-optimization/43560
7815 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
7816 (can_sm_ref_p): Treat stores to readonly locations as trapping.
7817
7818 2010-03-29 Jie Zhang <jie@codesourcery.com>
7819
7820 PR 43564
7821 * toplev.c (process_options): Set optimization_default_node
7822 and optimization_current_node.
7823 * opts.c (decode_options): Don't set optimization_default_node
7824 and optimization_current_node.
7825
7826 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
7827
7828 * config/rtems.h: Abandon -qrtems_debug.
7829
7830 2010-03-28 Jan Hubicka <jh@suse.cz>
7831
7832 PR tree-optimization/43505
7833 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
7834 map should not be copied.
7835
7836 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7837
7838 PR middle-end/41674
7839 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
7840 cdtors, set DECL_PRESERVE_P.
7841 * ipa.c (cgraph_externally_visible_p): Return true if declaration
7842 should be preseved.
7843
7844 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
7845
7846 PR tree-optimization/43528
7847 * stor-layout.c (place_field): Check that constant fits into
7848 unsigned HWI when skipping calculation of MS bitfield layout.
7849
7850 2010-03-27 Jan Hubicka <jh@suse.cz>
7851
7852 PR middle-end/43391
7853 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
7854 notice_global_symbol work.
7855
7856 2010-03-27 Jakub Jelinek <jakub@redhat.com>
7857
7858 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
7859 instead of dwarf2out_decl.
7860 (struct var_loc_node): Remove section_label field.
7861 (dwarf2out_function_decl): New function.
7862 (dwarf2out_var_location): Don't set section_label field.
7863 (dwarf2out_begin_function): Don't empty decl_loc_table here.
7864
7865 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7866
7867 PR tree-optimization/43544
7868 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
7869 First argument for builtin vectorized function hook is now a
7870 tree to be able to distinguish between machine specific and
7871 standard builtins.
7872 * targhooks.c (default_builtin_vectorized_function): Ditto.
7873 * targhooks.h (default_builtin_vectorized_function): Ditto.
7874 * target.h (struct gcc_target): Ditto.
7875 * tree-vect-stmts.c (vectorizable_function): Ditto.
7876 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
7877 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
7878 Ditto.
7879
7880 2010-03-26 Joseph Myers <joseph@codesourcery.com>
7881
7882 PR c/43381
7883 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
7884 nested binding iff it is a FUNCTION_DECL.
7885 (store_parm_decls_newstyle): Pass nested=true to bind for
7886 FUNCTION_DECLs amongst parameters.
7887
7888 2010-03-26 Jakub Jelinek <jakub@redhat.com>
7889
7890 * var-tracking.c (vt_expand_loc_callback): Don't run
7891 cselib_expand_value_rtx_cb in dummy mode if
7892 cselib_dummy_expand_value_rtx_cb returned false.
7893
7894 * var-tracking.c (emit_note_insn_var_location): For one part
7895 notes with offset 0, don't add EXPR_LIST around the location.
7896 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
7897 add_location_or_const_value_attribute): Adjust for that change.
7898
7899 PR debug/43540
7900 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
7901 into first operand and location into second.
7902 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
7903 dw_cfi_oprnd_loc for DW_CFA_expression.
7904 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
7905 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
7906 assume first argument is regnum and second argument is location.
7907
7908 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
7909
7910 PR target/42113
7911 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
7912 of scratch register to DImode. Split to DImode comparison operator.
7913 Use SImode subreg of scratch register in the multiplication.
7914 (*cmp_sadd_sidi): Ditto.
7915 (*cmp_ssub_si): Ditto.
7916 (*cmp_ssub_sidi): Ditto.
7917
7918 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
7919
7920 PR target/43524
7921 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
7922 Remove invalid assert and wrong comment.
7923
7924 2010-03-26 Jakub Jelinek <jakub@redhat.com>
7925
7926 PR debug/43516
7927 * flags.h (final_insns_dump_p): New extern.
7928 * final.c (final_insns_dump_p): New variable.
7929 (rest_of_clean_state): Set it before -fdump-final-insns=
7930 dumping, clear afterwards.
7931 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
7932 MEM_ALIAS_SET on MEMs.
7933
7934 2010-03-26 David S. Miller <davem@davemloft.net>
7935
7936 * configure.ac: Fix sparc GOTDATA_OP bug check.
7937 * configure: Rebuild.
7938
7939 2010-03-26 Alan Modra <amodra@gmail.com>
7940
7941 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
7942
7943 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7944
7945 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
7946 TLS_SECTION_ASM_FLAG.
7947
7948 2010-03-25 Jakub Jelinek <jakub@redhat.com>
7949
7950 PR bootstrap/43511
7951 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
7952 Clear first_function_block_is_cold.
7953
7954 PR c/43385
7955 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
7956 argument if the argument is truth_value_p.
7957
7958 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
7959
7960 * config/rs6000/constraints.md: Update copyright year for my changes.
7961
7962 PR target/43484
7963 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
7964 used in reg+reg addressing, swap registers.
7965
7966 2010-03-24 Jakub Jelinek <jakub@redhat.com>
7967
7968 PR debug/43293
7969 * target.h (struct gcc_target): Add code_end hook.
7970 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
7971 if not yet defined.
7972 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
7973 * toplev.c (compile_file): Call targetm.asm_out.code_end
7974 hook before unwind info/debug info output.
7975 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
7976 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
7977 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
7978 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
7979 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
7980 * config/i386/i386.c (ix86_file_end): Renamed to...
7981 (ix86_code_end): ... this. Make static. Don't call
7982 file_end_indicate_exec_stack. Emit unwind info using
7983 final_start_function/final_end_function.
7984 (darwin_x86_file_end): Remove.
7985 (TARGET_ASM_CODE_END): Define.
7986 * config/i386/i386.h (TARGET_ASM_FILE_END,
7987 NEED_INDICATE_EXEC_STACK): Don't define.
7988 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
7989 (TARGET_ASM_FILE_END): Define to darwin_file_end.
7990 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
7991 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
7992
7993 PR target/43498
7994 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
7995 at the beginning and final_end_function at the end.
7996 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
7997
7998 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7999
8000 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
8001 and Sun as TLS syntax.
8002 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
8003 * configure: Regenerate.
8004 * config.in: Regenerate.
8005 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
8006 (default_elf_asm_named_section): Use it.
8007 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
8008 (i386_output_dwarf_dtprel): Likewise.
8009 (output_addr_const_extra): Likewise.
8010 (output_pic_addr_const): Lowercase @GOTTPOFF.
8011 (output_addr_const_extra): Likewise.
8012 (output_pic_addr_const): Lowercase @GOTNTPOFF.
8013 (output_addr_const_extra): Likewise.
8014 (output_pic_addr_const): Lowercase @INDNTPOFF.
8015 (output_addr_const_extra): Likewise.
8016 (output_pic_addr_const): Lowercase @NTPOFF.
8017 (output_addr_const_extra): Likewise.
8018 (output_pic_addr_const): Lowercase @TPOFF.
8019 (output_addr_const_extra): Likewise.
8020 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
8021 (*tls_global_dynamic_64): Likewise.
8022 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
8023 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
8024
8025 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
8026 (ASM_OUTPUT_TLS_COMMON): Use it.
8027 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
8028
8029 PR target/38118
8030 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
8031 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
8032 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
8033 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
8034 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
8035 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
8036
8037 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8038
8039 * config/i386/i386.c (override_options): Don't accept
8040 -mtls-dialect=sun any longer.
8041 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
8042 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
8043 (*tls_local_dynamic_base_32_sun): Likewise.
8044 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
8045
8046 2010-03-24 Jakub Jelinek <jakub@redhat.com>
8047
8048 PR debug/43508
8049 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
8050 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
8051
8052 PR debug/43479
8053 * ira.c (adjust_cleared_regs): New function.
8054 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
8055
8056 PR debug/19192
8057 PR debug/43479
8058 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
8059 from gimple_block.
8060 * expr.c (expand_expr_real): Restore previous
8061 curr_insn_source_location and curr_insn_block after
8062 expand_expr_real_1 call.
8063 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
8064 instead of expand_expr_real_1.
8065
8066 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
8067
8068 PR rtl-optimization/43413
8069 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
8070 hard regs too.
8071
8072 2010-03-22 James E. Wilson <wilson@codesourcery.com>
8073
8074 PR target/43348
8075 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
8076 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
8077
8078 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
8079
8080 * config/i386/i386.c (ix86_target_string): Add -mfma.
8081 Fix a typo in comment.
8082
8083 2010-03-22 Mike Stump <mikestump@comcast.net>
8084
8085 PR target/23071
8086 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
8087 Don't overly align based upon packed packed fields.
8088
8089 2010-03-22 Jason Merrill <jason@redhat.com>
8090
8091 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
8092 Use () rather than [], and move before the element type.
8093
8094 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8095
8096 * doc/configfiles.texi (Configuration Files): Removed
8097 fixinc/Makefile*, intl/Makefile.*.
8098 * doc/makefile.texi: Fixed markup. Abstract from version
8099 control system used.
8100 (Makefile): Removed obsolete gcc/java/parse.y example.
8101 * doc/sourcebuild.texi: Likewise.
8102 (Top Level): Added config, gnattools, libdecnumber, libgcc,
8103 libgomp, libssp. Removed fastjar.
8104 (Miscellaneous Docs): Clarify location.
8105 Added COPYING3, COPYING3.LIB.
8106 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
8107
8108 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8109
8110 PR target/38085
8111 * config/i386/i386.c (x86_function_profiler)
8112 [!NO_PROFILE_COUNTERS]: Fix typo.
8113 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
8114 instead of callq.
8115
8116 2010-03-22 Janis Johnson <janis187@us.ibm.com>
8117 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8118
8119 * doc/sourcebuild.texi (Test Directives): Split into six
8120 subsections, with most of the current text in new subsections
8121 Directives, Selectors, and Final Actions.
8122 (Directives): Split list of test directives into multiple
8123 subsubsections.
8124 (Selectors): Describe use and syntax of selectors.
8125 (Effective-Target Keywords): Describe all existing keywords.
8126 (Add Options): Describe features for dg-add-options.
8127 (Require Support): Describe variants of dg-require-support.
8128 (Final Actions): Describe commands to use in dg-final.
8129
8130 2010-03-22 Michael Matz <matz@suse.de>
8131
8132 PR middle-end/43475
8133 * recog.c (validate_replace_rtx_group): Replace also in
8134 REG_EQUAL and REG_EQUIV notes.
8135
8136 2010-03-22 Richard Guenther <rguenther@suse.de>
8137
8138 PR tree-optimization/43390
8139 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
8140 sure vector extracts are type correct.
8141
8142 2010-03-22 Richard Guenther <rguenther@suse.de>
8143
8144 PR middle-end/40106
8145 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
8146 x * sqrt (x) even when optimizing for size if the target
8147 has native support for sqrt.
8148
8149 2010-03-22 Jakub Jelinek <jakub@redhat.com>
8150
8151 * varasm.c (make_decl_rtl_for_debug): Also clear
8152 flag_mudflap for the duration of make_decl_rtl call.
8153
8154 PR debug/43443
8155 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
8156 locs from preserved VALUEs.
8157
8158 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8159
8160 PR middle-end/42718
8161 * pa.md (movmemsi): Set align to one if zero.
8162 (movmemdi): Likewise.
8163
8164 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
8165
8166 PR target/42321
8167 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
8168 with their corresponding prologue pushes.
8169
8170 2010-03-20 Andrew Pinski <pinskia@gmail.com>
8171
8172 PR target/43156
8173 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
8174 at the begining or end.
8175 (spu_expand_epilogue): Likewise.
8176
8177 2010-03-20 Richard Guenther <rguenther@suse.de>
8178
8179 PR rtl-optimization/43438
8180 * combine.c (make_extraction): Properly zero-/sign-extend an
8181 extraction of the low part of a CONST_INT. Also handle
8182 CONST_DOUBLE.
8183
8184 2010-03-19 Mike Stump <mikestump@comcast.net>
8185
8186 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
8187 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
8188 (override_options): Use SUBTARGET32_DEFAULT_CPU.
8189
8190 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
8191
8192 PR c/43211
8193 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
8194 an error.
8195
8196 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
8197
8198 PR rtl-optimization/42258
8199 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
8200 use that may match DEF.
8201
8202 PR target/40697
8203 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
8204 the cost of loading the constant rather than assuming
8205 COSTS_N_INSNS (1).
8206 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
8207 outer code is AND, do the same tests as the andsi3 expander and
8208 return COSTS_N_INSNS (1) if and is cheap.
8209
8210 * optabs.c (avoid_expensive_constant): Fix formatting.
8211
8212 2010-03-19 Michael Matz <matz@suse.de>
8213
8214 PR c++/43116
8215 * attribs.c (decl_attributes): When rebuilding a function pointer
8216 type use the same qualifiers as the original pointer type.
8217
8218 2010-03-19 Martin Jambor <mjambor@suse.cz>
8219
8220 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
8221 and is_gimple_ip_invariant_address.
8222
8223 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8224
8225 Revert
8226 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8227
8228 * config/arm/arm.c (arm_override_options): Turn off
8229 flag_dwarf2_cfi_asm for AAPCS variants.
8230
8231 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8232
8233 PR target/43399
8234 * config/arm/arm.c (emit_multi_reg_push): Update comments.
8235 Use PRE_MODIFY instead of PRE_DEC.
8236 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
8237 (vfp_emit_fstmd): Likewise.
8238
8239 2010-03-19 Michael Matz <matz@suse.de>
8240
8241 PR target/43305
8242 * builtins.c (expand_builtin_interclass_mathfn,
8243 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
8244 if that fails.
8245
8246 2010-03-19 Richard Guenther <rguenther@suse.de>
8247
8248 PR tree-optimization/43415
8249 * tree-ssa-pre.c (phi_translate): Split out worker to ...
8250 (phi_translate_1): ... this.
8251 (phi_translate): Move all caching here. Cache all NARY
8252 and REFERENCE translations.
8253
8254 2010-03-19 David S. Miller <davem@davemloft.net>
8255
8256 With help from Eric Botcazou.
8257 * config/sparc/sparc.c: Include dwarf2out.h.
8258 (emit_pic_helper): Delete.
8259 (pic_helper_symbol_name): Delete.
8260 (pic_helper_emitted_p): Delete.
8261 (pic_helper_needed): New.
8262 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
8263 (get_pc_thunk_name): New.
8264 (load_pic_register): Remove 'delay_pic_helper' arg. Use
8265 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
8266 Set pic_helper_needed to true. Don't call emit_pic_helper.
8267 (sparc_expand_prologue): Update load_pic_register call.
8268 (sparc_output_mi_thunk): Likewise.
8269 (sparc_file_end): Emit a hidden comdat symbol for the PIC
8270 thunk if possible. Output CFI information as needed.
8271
8272 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8273 Jack Howarth <howarth@bromo.med.uc.edu>
8274
8275 PR target/36399
8276 * config/i386/i386.h: Fix ABI on darwin x86-32.
8277
8278 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
8279
8280 * tree.h: Declare make_decl_rtl_for_debug.
8281 * varasm.c (make_decl_rtl_for_debug): New.
8282 * dwarf2out.c (rtl_for_decl_location): Call it.
8283 * cfgexpand.c (expand_debug_expr): Call it.
8284
8285 2010-03-18 Jakub Jelinek <jakub@redhat.com>
8286
8287 PR bootstrap/43399
8288 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
8289 mem_mode.
8290
8291 PR bootstrap/43403
8292 * var-tracking.c (vt_init_cfa_base): Do nothing if
8293 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
8294
8295 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
8296
8297 PR debug/42873
8298 * var-tracking.c (canonicalize_vars_star): New.
8299 (dataflow_post_merge_adjust): Use it.
8300
8301 2010-03-18 Jakub Jelinek <jakub@redhat.com>
8302
8303 PR debug/43058
8304 * var-tracking.c (non_suitable_const): New function.
8305 (add_uses): For DEBUG_INSNs with constants, don't record any
8306 value, instead just the constant value itself.
8307 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
8308 is not VAR_LOC_UNKNOWN_P, set var to the constant.
8309 (emit_notes_in_bb): Likewise.
8310 (emit_note_insn_var_location): For onepart variables if
8311 cur_loc is a VOIDmode constant, use DECL_MODE.
8312
8313 2010-03-18 Martin Jambor <mjambor@suse.cz>
8314
8315 PR middle-end/42450
8316 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
8317 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
8318 all non-clones. Moved call redirection...
8319 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
8320 (cgraph_materialize_all_clones): Dispose of all
8321 combined_args_to_skip bitmaps.
8322 (verify_cgraph_node): Do not check for edges pointing to wrong
8323 nodes in inline clones.
8324 * tree-inline.c (copy_bb): Call
8325 cgraph_redirect_edge_call_stmt_to_callee.
8326 * ipa.c (cgraph_remove_unreachable_nodes): Call
8327 cgraph_node_remove_callees even when there are used clones.
8328
8329 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
8330
8331 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
8332
8333 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
8334
8335 PR target/43383
8336 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
8337 for 32bit.
8338
8339 2010-03-18 Michael Matz <matz@suse.de>
8340
8341 PR middle-end/43419
8342 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
8343 into sqrt(x) if we need to preserve signed zeros.
8344
8345 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
8346 Eric Botcazou <ebotcazou@adacore.com>
8347
8348 PR rtl-optimization/43360
8349 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
8350 note if we don't know its invariant status.
8351
8352 2010-03-18 Michael Matz <matz@suse.de>
8353
8354 PR tree-optimization/43402
8355 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
8356 PHI chains of ssa names registered for update.
8357
8358 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
8359
8360 PR target/42427
8361 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
8362 non-offsettable and pre_modify update addressing.
8363 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
8364 and "2" alternatives "#".
8365 (*movdd_softfloat32): Make all alternatives "#";
8366 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
8367 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
8368 (*movdf_softfloat32): Make all alternatives "#";
8369 (movdi): Use the new DIFD mode iterator to create a common splitter
8370 for movdi, movdf and movdd patterns.
8371
8372 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
8373
8374 * common.opt (dumpdir): Remove redundant tab.
8375
8376 2010-03-17 Martin Jambor <mjambor@suse.cz>
8377
8378 PR tree-optimization/43347
8379 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
8380 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
8381
8382 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
8383
8384 PR rtl-optimization/42216
8385 * regrename.c (create_new_chain): New function, broken out from...
8386 (scan_rtx_reg): ... here. Call it. Handle the case where we are
8387 appending a use to an empty chain.
8388 (build_def_use): Remove previous changes that convert OP_INOUT to
8389 OP_OUT operands; instead detect the case where an OP_INOUT operand
8390 uses a previously untracked register and create an empty chain for it.
8391
8392 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8393
8394 * doc/extend.texi (Function Attributes): Rewrite unfinished
8395 sentence in ms_abi documentation.
8396
8397 2010-03-17 Alan Modra <amodra@gmail.com>
8398
8399 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
8400 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
8401 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
8402 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
8403
8404 2010-03-16 Richard Henderson <rth@redhat.com>
8405
8406 PR middle-end/43365
8407 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
8408 (lower_try_finally): Save and restore eh_seq around the expansion
8409 of the try-finally.
8410
8411 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
8412
8413 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
8414 statements before splitting block.
8415
8416 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8417
8418 * doc/sourcebuild.texi (Testsuites): Fix markup.
8419 Use pathnames relative to gcc/testsuite.
8420 (Test Directives): Move description of how timeout is determined.
8421 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
8422 (C Tests): Correct gcc.misc-tests directory.
8423 Framework tests now live in gcc.test-framework.
8424
8425 2010-03-16 Richard Guenther <rguenther@suse.de>
8426
8427 PR middle-end/43379
8428 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
8429 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
8430
8431 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
8432 Alexandre Oliva <aoliva@redhat.com>
8433
8434 PR tree-optimization/42917
8435 * lambda-code.c (remove_iv): Skip debug statements.
8436 (lambda_loopnest_to_gcc_loopnest): Likewise.
8437 (not_interesting_stmt): Debug statements are not interesting.
8438
8439 2010-03-16 Jakub Jelinek <jakub@redhat.com>
8440
8441 PR debug/43051
8442 PR debug/43092
8443 * cselib.c (cselib_preserve_constants,
8444 cfa_base_preserved_val): New static variables.
8445 (preserve_only_constants): New function.
8446 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
8447 clear its REG_VALUES. If cselib_preserve_constants, don't
8448 empty the whole hash table, but preserve there VALUEs with constants,
8449 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
8450 (cselib_preserve_cfa_base_value): New function.
8451 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
8452 (cselib_init): Change argument to int bitfield. Set
8453 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
8454 is in it.
8455 (cselib_finish): Clear cselib_preserve_constants and
8456 cfa_base_preserved_val.
8457 * cselib.h (enum cselib_record_what): New enum.
8458 (cselib_init): Change argument to int.
8459 (cselib_preserve_cfa_base_value): New prototype.
8460 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
8461 * dse.c (dse_step1): Likewise.
8462 * cfgcleanup.c (thread_jump): Likewise.
8463 * sched-deps.c (sched_analyze): Likewise.
8464 * gcse.c (local_cprop_pass): Likewise.
8465 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
8466 If FN is non-NULL, call the callback always and whenever it returns
8467 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
8468 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
8469 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
8470 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
8471 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
8472 * var-tracking.c: Include recog.h.
8473 (bb_stack_adjust_offset): Remove.
8474 (vt_stack_adjustments): Don't call it, instead just gather the
8475 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
8476 (adjust_stack_reference): Remove.
8477 (compute_cfa_pointer): New function.
8478 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
8479 (struct adjust_mem_data): New type.
8480 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
8481 functions.
8482 (get_address_mode): New function.
8483 (replace_expr_with_values): Use it.
8484 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
8485 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
8486 (adjust_sets): Remove.
8487 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
8488 Use get_address_mode.
8489 (get_adjusted_src): Remove.
8490 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
8491 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
8492 (add_with_sets): Don't call adjust_sets.
8493 (fp_setter, vt_init_cfa_base): New functions.
8494 (vt_initialize): Change return type to bool. Move most of pool etc.
8495 initialization to the beginning of the function from end. Pass
8496 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
8497 If !frame_pointer_needed, call vt_stack_adjustment before mos
8498 vector is filled, call vt_init_cfa_base if argp/framep has been
8499 eliminated to sp. If frame_pointer_needed and argp/framep has
8500 been eliminated to hard frame pointer, set
8501 hard_frame_pointer_adjustment and call vt_init_cfa_base after
8502 encountering fp setter in the prologue. For MO_ADJUST, call
8503 log_op_type before pusing the op into mos vector, not afterwards.
8504 Call adjust_insn before cselib_process_insn/add_with_sets,
8505 call cancel_changes (0) afterwards.
8506 (variable_tracking_main_1): Adjust for vt_initialize calling
8507 vt_stack_adjustments and returning whether it succeeded or not.
8508
8509 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
8510
8511 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
8512 debug statements.
8513
8514 2010-03-15 Jakub Jelinek <jakub@redhat.com>
8515
8516 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
8517 has been set.
8518 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
8519 drap_reg has not been set.
8520
8521 2010-03-15 Michael Matz <matz@suse.de>
8522
8523 PR middle-end/43300
8524 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
8525 use it to expand block copies.
8526 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
8527 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
8528 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
8529
8530 2010-03-15 Richard Guenther <rguenther@suse.de>
8531
8532 PR tree-optimization/43367
8533 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
8534 elimination check.
8535
8536 2010-03-15 Richard Guenther <rguenther@suse.de>
8537
8538 PR tree-optimization/43317
8539 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
8540
8541 2010-03-15 Martin Jambor <mjambor@suse.cz>
8542
8543 PR tree-optimization/43141
8544 * tree-sra.c (create_abstract_origin): New function.
8545 (modify_function): Call create_abstract_origin.
8546
8547 2010-03-15 Chris Demetriou <cgd@google.com>
8548
8549 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
8550 wasn't copied.
8551
8552 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8553
8554 PR middle-end/43354
8555 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
8556 call insert_out_of_ssa_copy for default definitions.
8557
8558 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8559
8560 * graphite-clast-to-gimple.c (my_long_long): Defined.
8561 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
8562 * graphite-sese-to-poly.c (my_long_long): Defined.
8563 (scop_ivs_can_be_represented): Use it.
8564
8565 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8566
8567 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
8568 graphite-max-bbs-per-function, and loop-block-tile-size.
8569 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
8570 with "maximum".
8571 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
8572
8573 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8574
8575 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
8576 forward declaration.
8577 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
8578 (add_upper_bounds_from_estimated_nit): New.
8579 (build_loop_iteration_domains): Use it.
8580
8581 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8582
8583 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
8584
8585 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8586
8587 PR middle-end/43306
8588 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
8589 should be an INTEGER_CST. Also handle CASE_CONVERT.
8590
8591 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8592
8593 * graphite.c (graphite_initialize): To bound the number of bbs per
8594 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
8595 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
8596 * doc/invoke.texi: Document it.
8597
8598 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8599
8600 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
8601 * graphite-sese-to-poly.h (build_poly_scop): Same.
8602
8603 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8604
8605 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
8606 the number of parameters in the scop. Use as an upper bound
8607 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
8608 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
8609 * doc/invoke.texi: Document it.
8610
8611 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
8612
8613 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
8614 * doc/c-tree.texi: Remove.
8615 * doc/generic.texi: Merge c-tree.texi here.
8616 * doc/gccint.texi (Trees): Remove menu entry.
8617 (c-tree.texi): Remove @include.
8618 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
8619 * doc/languages.texi (Reading RTL): Ditto.
8620
8621 2010-03-12 Steve Ellcey <sje@cup.hp.com>
8622
8623 PR target/42869
8624 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
8625
8626 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8627
8628 PR middle-end/42431
8629 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
8630 code added to work around reload clobbering CONST insns.
8631
8632 2010-03-12 Jakub Jelinek <jakub@redhat.com>
8633
8634 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
8635 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
8636 (cselib_preserve_only_values): Remove retain argument, don't
8637 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
8638 * cselib.h (cselib_preserve_only_values): Remove retain argument.
8639 * var-tracking.c (micro_operation): Move insn field before union.
8640 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
8641 (struct variable_tracking_info_def): Remove n_mos field, change
8642 mos into a vector of micro_operations.
8643 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
8644 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
8645 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
8646 changing into a vector.
8647 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
8648 come before all other uops generated by add_stores.
8649 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
8650 argument removal.
8651 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
8652 a vector. Run just one pass over the bbs instead of separate counting
8653 and computation phase.
8654 (vt_finalize): Free VTI (bb)->mos vector instead of array.
8655
8656 PR debug/43329
8657 * tree-inline.c (remap_decls): Put old_var rather than origin_var
8658 into *nonlocalized_list vector.
8659 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
8660 even if origin is non-NULL.
8661 (gen_variable_die): Likewise.
8662 (process_scope_var): Don't change origin.
8663 (gen_decl_die): Likewise.
8664 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
8665 before adding new edges instead of after it, fix moving over
8666 debug stmts.
8667
8668 2010-03-11 David S. Miller <davem@davemloft.net>
8669
8670 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
8671 of four.
8672 * configure: Rebuild.
8673
8674 2010-03-11 Martin Jambor <mjambor@suse.cz>
8675
8676 PR tree-optimization/43257
8677 * tree.c (assign_assembler_name_if_neeeded): New function.
8678 (free_lang_data_in_cgraph): Assembler name assignment moved to the
8679 above new function.
8680 * tree.h (assign_assembler_name_if_neeeded): Declare.
8681 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
8682 the function if needed.
8683
8684 2010-03-11 Chris Demetriou <cgd@google.com>
8685
8686 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
8687 include/stdint-gcc.h, and include/stdint.h world-readable.
8688
8689 2010-03-11 Richard Guenther <rguenther@suse.de>
8690
8691 PR tree-optimization/43255
8692 * tree-vrp.c (process_assert_insertions_for): Do not insert
8693 asserts for trivial conditions.
8694
8695 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8696
8697 PR tree-optimization/43280
8698 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
8699 generation. Move calculation of size out of the if branch.
8700 (find_bswap): Modify compare number generation.
8701
8702 2010-03-11 Richard Guenther <rguenther@suse.de>
8703
8704 PR lto/43200
8705 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
8706 (input_gimple_stmt): Fixup handled component types during
8707 operand read. Also fix up decls in ADDR_EXPRs.
8708
8709 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
8710
8711 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
8712 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
8713
8714 2010-03-10 Jan Hubicka <jh@suse.cz>
8715
8716 PR c/43288
8717 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
8718 * varasm.c (get_variable_section): Don't do that here...
8719 (make_decl_rtl): ... and here.
8720 (do_assemble_alias): Produce decl RTL.
8721 (assemble_alias): Likewise.
8722
8723 2010-03-10 Jakub Jelinek <jakub@redhat.com>
8724
8725 PR debug/43290
8726 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
8727 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
8728 of fde->vdrap_reg.
8729 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
8730 (based_loc_descr): Only express drap or vdrap regno based expressions
8731 using DW_OP_fbreg when not optimizing.
8732 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
8733 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
8734 REG_CFA_SET_VDRAP note.
8735
8736 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
8737
8738 PR tree-optimization/43236
8739 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
8740 error in calculation of base address in reverse iteration case.
8741 (generate_builtin): Take number of latch executions if the statement
8742 is in the latch.
8743
8744 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
8745
8746 PR middle-end/42859
8747 * tree-eh.c: Include pointer-set.h.
8748 (lower_eh_dispatch): Filter out duplicate case labels and
8749 remove the unneeded edge when the label is unused. Return
8750 true when some edges are removed.
8751 (execute_lower_eh_dispatch): When any lowering resulted in
8752 removing an edge, also delete unreachable blocks.
8753
8754 2010-03-10 Jakub Jelinek <jakub@redhat.com>
8755
8756 PR bootstrap/43287
8757 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8758 UNSPEC_MACHOPIC_OFFSET.
8759
8760 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
8761
8762 PR target/43294
8763 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
8764 (m68k_delegitimize_address): New function.
8765
8766 2010-03-09 Jakub Jelinek <jakub@redhat.com>
8767
8768 PR debug/43299
8769 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
8770
8771 PR debug/43299
8772 * var-tracking.c (adjust_sets): New function.
8773 (count_with_sets, add_with_sets): Use it.
8774 (get_adjusted_src): New inline function.
8775 (add_stores): Use it.
8776
8777 PR debug/43304
8778 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
8779 call cselib_dummy_expand_value_rtx_cb instead of
8780 cselib_expand_value_rtx_cb.
8781
8782 PR debug/43293
8783 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
8784 * config/i386/i386.c: Include debug.h and dwarf2out.h.
8785 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
8786 and .cfi_endproc around the pic thunks.
8787 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
8788 all queued unwind info register saves are saved before the call.
8789 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
8790 considered as sp-=4 for unwind info and the pop as sp+=4 which
8791 also clobbers dest, but doesn't actually restore it.
8792
8793 PR debug/43290
8794 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
8795 RTX_FRAME_RELATED_P.
8796
8797 2010-03-09 Jie Zhang <jie@codesourcery.com>
8798
8799 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
8800 whitespaces in output template.
8801
8802 2010-03-09 Jie Zhang <jie@codesourcery.com>
8803
8804 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
8805 out array boundary.
8806
8807 2010-03-08 Jakub Jelinek <jakub@redhat.com>
8808
8809 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
8810 builtins.exp in a separate job.
8811
8812 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8813
8814 * graphite-sese-to-poly.c (add_param_constraints): Use
8815 lower_bound_in_type and upper_bound_in_type.
8816
8817 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8818
8819 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
8820 instead of unsigned_type_node.
8821
8822 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8823 Reza Yazdani <reza.yazdani@amd.com>
8824
8825 PR middle-end/43065
8826 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
8827 on pointer type parameters.
8828
8829 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
8830
8831 PR middle-end/42644
8832 PR middle-end/42130
8833 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
8834 handle conversions from pointer to integers.
8835 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
8836 induction variable, to be able to work with code generated by CLooG.
8837 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
8838 (build_poly_scop): Bail out if we cannot codegen a loop.
8839
8840 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
8841
8842 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
8843 code generation with gloog_error.
8844
8845 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8846
8847 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
8848 Call fold_convert on all the returned values.
8849 (expand_scalar_variables_expr): Pass to
8850 expand_scalar_variables_ssa_name the type of the resulting expression.
8851
8852 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8853
8854 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
8855 ppl_min_for_le_pointset.
8856 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
8857 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
8858
8859 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8860
8861 * graphite-dependences.c (map_into_dep_poly): Removed.
8862 (dependence_polyhedron_1): Use combine_context_id_scat.
8863
8864 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8865
8866 * graphite-poly.h (struct poly_scattering): Add layout documentation.
8867 (struct poly_bb): Same.
8868 (combine_context_id_scat): New.
8869
8870 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8871
8872 PR middle-end/42326
8873 * sese.c (name_defined_in_loop_p): Return false for default
8874 definitions.
8875
8876 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8877
8878 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
8879 and clean up the logic.
8880
8881 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8882
8883 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
8884 early return.
8885
8886 2010-03-08 Jakub Jelinek <jakub@redhat.com>
8887
8888 * var-tracking.c (remove_cselib_value_chains): Define only for
8889 ENABLE_CHECKING.
8890 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
8891 delete_slot_part, emit_notes_for_differences_1): Don't call
8892 remove_cselib_value_chains here.
8893 (set_slot_part, emit_notes_for_differences_2): Don't call
8894 add_cselib_value_chains here.
8895 (preserved_values): New vector.
8896 (preserve_value): New function.
8897 (add_uses, add_stores, vt_add_function_parameters): Use it
8898 instead of cselib_preserve_value.
8899 (changed_values_stack): New vector.
8900 (check_changed_vars_0): New function.
8901 (check_changed_vars_1, check_changed_vars_2): Use it.
8902 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
8903 changed_values_stack VALUEs.
8904 (vt_emit_notes): For all preserved_values call
8905 add_cselib_value_chains. If ENABLE_CHECKING call
8906 remove_cselib_value_chains before verifying value_chains is empty.
8907 Initialize and free changed_values_stack.
8908 (vt_initialize): Initialize preserved_values.
8909 (vt_finalize): Free preserved_values.
8910
8911 2010-03-08 Richard Guenther <rguenther@suse.de>
8912
8913 PR tree-optimization/43269
8914 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
8915 region detection.
8916
8917 2010-03-08 Martin Jambor <mjambor@suse.cz>
8918
8919 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
8920 (ipa_is_param_called): Removed.
8921 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
8922 (ipa_print_node_params): Do not print the called flag.
8923 (ipa_write_node_info): Do not stream the called flag.
8924 (ipa_read_node_info): Likewise.
8925
8926 2010-03-07 Jakub Jelinek <jakub@redhat.com>
8927
8928 PR debug/43176
8929 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
8930 * cselib.c (struct expand_value_data): Add dummy field.
8931 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
8932 dummy to false.
8933 (cselib_dummy_expand_value_rtx_cb): New function.
8934 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
8935 any rtl.
8936 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
8937 * var-tracking.c: Include pointer-set.h.
8938 (variable): Change n_var_parts to char from int. Add
8939 cur_loc_changed and in_changed_variables fields.
8940 (variable_canonicalize): Remove.
8941 (shared_var_p): New inline function.
8942 (unshare_variable): Maintain cur_loc_changed and
8943 in_changed_variables fields. If var was in changed_variables,
8944 replace it there with new_var. Just copy cur_loc instead of
8945 resetting it to something else.
8946 (variable_union): Don't recompute cur_loc. Use shared_var_p.
8947 (dataflow_set_union): Don't call variable_canonicalize.
8948 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
8949 of their DEBUG_EXPR_TREE_DECLs.
8950 (canonicalize_loc_order_check): Verify that cur_loc is NULL
8951 and in_changed_variables and cur_loc_changed is false.
8952 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
8953 and cur_loc_changed. Don't update cur_loc here.
8954 (variable_merge_over_src): Don't call variable_canonicalize.
8955 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
8956 removing loc that is equal to cur_loc, clear cur_loc,
8957 set cur_loc_changed and ensure variable_was_changed is called.
8958 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
8959 compare pointers in cur_loc check, if it is equal to loc,
8960 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
8961 (variable_different_p): Remove compare_current_location argument,
8962 don't compare cur_loc.
8963 (dataflow_set_different_1): Adjust variable_different_p caller.
8964 (variable_was_changed): If dv had some var in changed_variables
8965 already, reset in_changed_variables flag for it and propagate
8966 cur_loc_changed over to the new variable. On empty var
8967 always set cur_loc_changed. Set in_changed_variables on whatever
8968 var is added to changed_variables.
8969 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
8970 Use shared_var_p. When removing loc that is equal to cur_loc,
8971 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
8972 end, don't set it to something else, just call variable_was_changed.
8973 (delete_slot_part): Use shared_var_p. When cur_loc equals to
8974 loc being removed, clear cur_loc and set cur_loc_changed.
8975 Set cur_loc_changed if all locations have been removed.
8976 (struct expand_loc_callback_data): New type.
8977 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
8978 allocated. Always create SUBREGs if simplify_subreg failed.
8979 Prefer to use cur_loc, when that fails and still in
8980 changed_variables (and seen first time) recompute it. Set
8981 cur_loc_changed of variables which had to change cur_loc and
8982 compute elcd->cur_loc_changed if any of the subexpressions used
8983 had to change cur_loc.
8984 (vt_expand_loc): Adjust to pass arguments in
8985 expand_loc_callback_data structure.
8986 (vt_expand_loc_dummy): New function.
8987 (emitted_notes): New variable.
8988 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
8989 that weren't used for any other decl in current
8990 emit_notes_for_changes call call vt_expand_loc_dummy to update
8991 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
8992 first loc_chain location if NULL before. Always use just
8993 cur_loc instead of first loc_chain location. When cur_loc_changed
8994 is false, when not --enable-checking=rtl just don't emit any note.
8995 When rtl checking, compute the note and assert it is the same
8996 as previous note. Clear cur_loc_changed and in_changed_variables
8997 at the end before removing from changed_variables.
8998 (check_changed_vars_3): New function.
8999 (emit_notes_for_changes): Traverse changed_vars to call
9000 check_changed_vars_3 on each changed var.
9001 (emit_notes_for_differences_1): Clear cur_loc_changed and
9002 in_changed_variables. Recompute cur_loc of new_var.
9003 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
9004 (vt_emit_notes): Initialize and destroy emitted_notes.
9005
9006 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
9007
9008 PR rtl-optimization/42220
9009 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
9010 Use verify_reg_tracked to determine if we should use OP_OUT rather
9011 than OP_INOUT.
9012 (build_def_use): If we see an in-out operand for a register that we
9013 know nothing about, treat is an output if possible, fail the block if
9014 not.
9015
9016 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
9017
9018 PR debug/42897
9019 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
9020 permanently.
9021
9022 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
9023
9024 PR debug/42897
9025 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
9026 uses of relevant DEFs that are dead outside the loop too.
9027
9028 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
9029
9030 * var-tracking.c (dataflow_set_merge): Swap src and src2.
9031 Reverted:
9032 2010-01-13 Jakub Jelinek <jakub@redhat.com>
9033 PR debug/41371
9034 * var-tracking.c (values_to_unmark): New variable.
9035 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
9036 values_to_unmark vector. Moved body to...
9037 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
9038 instead queue it into values_to_unmark vector.
9039 (vt_find_locations): Free values_to_unmark vector.
9040
9041 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
9042
9043 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
9044 (site.exp): Export them when plugins are enabled.
9045
9046 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
9047
9048 PR middle-end/42326
9049 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
9050 that contain scevs.
9051 (chrec_fold_multiply): Same.
9052
9053 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
9054
9055 PR c/43248
9056 * c-decl.c (build_compound_literal): Return early if init is
9057 an error_mark_node.
9058
9059 2010-03-04 Martin Jambor <mjambor@suse.cz>
9060
9061 PR tree-optimization/43164
9062 PR tree-optimization/43191
9063 * tree-sra.c (type_consists_of_records_p): Reject records with
9064 zero-size bit-fields at the end.
9065
9066 2010-03-04 Mike Stump <mikestump@comcast.net>
9067
9068 * Makefile.in (TAGS): Remove *.y.
9069
9070 2010-03-04 Richard Guenther <rguenther@suse.de>
9071
9072 PR tree-optimization/40761
9073 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
9074 in reverse order.
9075 (my_rev_post_order_compute): New function.
9076 (init_pre): Call it.
9077
9078 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
9079
9080 PR middle-end/43209
9081 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
9082 decrease the cost of an IV candidate when the cost is infinite.
9083
9084 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9085
9086 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
9087 Use '3DNow!' for the extension of that name, ensure normal space
9088 after the string.
9089 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
9090
9091 2010-03-03 Jeff Law <law@redhat.com>
9092
9093 * PR middle-end/32693
9094 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
9095 than gen_rtx_SUBREG.
9096 (extract_bit_field_1): Likewise.
9097
9098 2010-03-03 Janis Johnson <janis187@us.ibm.com>
9099
9100 * doc/sourcebuild.texi (Test directives): Document that arguments
9101 include-opts and exclude-opts are now optional for dg-skip-if,
9102 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
9103
9104 2010-03-03 Jason Merrill <jason@redhat.com>
9105
9106 PR c++/12909
9107 * cgraph.h (varpool_node): Add extra_name field.
9108 * varpool.c (varpool_extra_name_alias): New.
9109 (varpool_assemble_decl): Emit extra name aliases.
9110 (varpool_mark_needed_node): Look past an extra name alias.
9111 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
9112 * lto-streamer-in.c (lto_input_tree): Read it.
9113 * lto-streamer-out.c (output_unreferenced_globals): Write it.
9114
9115 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
9116
9117 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
9118 (sparc*-*-solaris2*): ...this.
9119
9120 2010-03-03 Jakub Jelinek <jakub@redhat.com>
9121
9122 PR debug/43229
9123 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
9124 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
9125 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
9126 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
9127
9128 PR debug/43237
9129 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
9130 fallthrough to default handling, just with want_address 0 instead of 2.
9131 For single element lists, add_AT_loc directly, otherwise create an
9132 artificial variable DIE and stick location list to it.
9133
9134 PR debug/43177
9135 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
9136 (VAL_EXPR_HAS_REVERSE): Define.
9137 (reverse_op): New function.
9138 (add_stores): For reversible operations add an extra MO_VAL_USE.
9139
9140 2010-03-02 Jason Merrill <jason@redhat.com>
9141
9142 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
9143
9144 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
9145
9146 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
9147 (sparc64-*-linux*): Likewise.
9148 (sparc64-*-solaris2*): Include assembler files before linker ones.
9149 (sparc-*-solaris2*): Simplify and reorder to match previous case.
9150 * config/sparc/gas.h: Delete.
9151 * config/sparc/sol2-64.h: Add copyright notice.
9152 * config/sparc/sol2-gas-bi.h: Likewise.
9153 * config/sparc/sol2-gld.h: Likewise.
9154 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
9155 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
9156 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
9157 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
9158 (sparc_elf_asm_named_section): Rename into...
9159 (sparc_solaris_elf_asm_named_section): ...this. Always define.
9160
9161 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
9162
9163 * config/alpha/alpha.c (override_options): Fix -mtune error message.
9164
9165 2010-03-02 Jeff Law <law@redhat.com>
9166
9167 PR middle-end/42431
9168 * reload1.c (rtx_p, substitute_stack): Declare.
9169 (substitute): Record addresses of changed rtxs.
9170 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
9171 Restore the original rtx when complete.
9172 (reload): Free subsitute_stack when complete.
9173
9174 2010-03-02 Janis Johnson <janis187@us.ibm.com>
9175
9176 * doc/gccint.texi (menu): Add Testsuites as a chapter.
9177 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
9178 new chapter.
9179 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
9180 LTO Testing, gcov Testing, profopt Testing, compat Testing,
9181 Torture Tests): Change from subsection to section.
9182
9183 2010-03-02 Jakub Jelinek <jakub@redhat.com>
9184 Steven Bosscher <steven@gcc.gnu.org>
9185
9186 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
9187 instead of bb.
9188
9189 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
9190
9191 PR middle-end/42640
9192 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
9193 the assignment from the new induction variable to the assignment
9194 of the value from the original loop PHI function.
9195
9196 2010-03-01 Janis Johnson <janis187@us.ibm.com>
9197 Daniel Jacobowitz <dan@codesourcery.com>
9198
9199 * doc/sourcebuild.texi (Test directives): Clarify options to
9200 dg-skip-if.
9201
9202 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9203
9204 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
9205 Disable cfi directives unless GCC and gas agree on using read-only
9206 .eh_frame sections for 64-bit.
9207 * configure: Regenerate.
9208
9209 2010-03-01 Richard Guenther <rguenther@suse.de>
9210
9211 PR tree-optimization/43220
9212 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
9213 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
9214
9215 2010-03-01 Richard Guenther <rguenther@suse.de>
9216 Martin Jambor <mjambor@suse.cz>
9217
9218 PR middle-end/41250
9219 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
9220 gimplified parameters.
9221
9222 2010-03-01 Christian Bruel <christian.bruel@st.com>
9223
9224 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
9225
9226 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9227
9228 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
9229
9230 2010-03-01 Richard Guenther <rguenther@suse.de>
9231
9232 PR middle-end/43213
9233 * expr.c (expand_assignment): Use the alias-oracle to tell
9234 if the rhs aliases the result decl.
9235
9236 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9237
9238 PR pch/14940
9239 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
9240 to sol_gt_pch_get_address.
9241 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
9242 64-bit, SPARC and x86.
9243 (sol_gt_pch_get_address): New function.
9244
9245 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
9246
9247 * toplev.h (inform_n, error_n): Declare.
9248 * diagnostic.c (inform_n, error_n): New function.
9249
9250 2010-03-01 Jakub Jelinek <jakub@redhat.com>
9251
9252 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
9253 has no rtl yet when processing local_decls, queue it and recheck
9254 if deferred stack allocation hasn't assigned it rtl.
9255
9256 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
9257
9258 * config/sh/sh.c (unspec_bbr_uid): New.
9259 (gen_block_redirect): Use it instead of INSN_UID.
9260 (gen_far_branch): Likewise.
9261
9262 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
9263
9264 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
9265 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
9266
9267 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9268
9269 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
9270 (Warning Options): -Wno-conversion-null is valid for
9271 Objective-C++ as well.
9272 * doc/tm.texi (Named Address Spaces): Likewise.
9273 * doc/plugins.texi (Plugins): Replace TABs with spaces.
9274 * doc/tree-ssa.texi (Tree SSA): Likewise.
9275
9276 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
9277
9278 PR bootstrap/43202
9279 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
9280 by default. Don't set the default arch for
9281 i[34567]86-*-darwin*|x86_64-*-darwin*.
9282
9283 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
9284
9285 PR bootstrap/43202
9286 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
9287 default. Set the default 32bit/64bit archs with $with_arch
9288 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
9289
9290 2010-02-27 Richard Guenther <rguenther@suse.de>
9291
9292 PR tree-optimization/43186
9293 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
9294 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
9295 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
9296 unroller iterations.
9297
9298 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
9299
9300 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
9301 required and i[34567]86-*-* targets don't support 64bit ISA.
9302
9303 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
9304
9305 PR ada/43096
9306 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
9307 the same alias set.
9308
9309 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
9310
9311 * config.gcc: Set the default arch at least to Prescott for
9312 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
9313 if SSE math is enabled.
9314
9315 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9316
9317 * diagnostic.c (diagnostic_initialize): Update.
9318 (diagnostic_report_diagnostic): Test inhibit_notes_p for
9319 informative notes.
9320 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
9321 (diagnostic_inhibit_notes): New.
9322 * toplev.c (process_options): inhibit notes with -fcompare-debug.
9323
9324 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9325
9326 PR c/20631
9327 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
9328 * doc/standards.texi: Likewise.
9329 * doc/extend.texi: Likewise.
9330 * doc/trouble.texi: Likewise.
9331 * doc/cppopts.texi: Likewise.
9332 * doc/install.texi: Likewise.
9333 * c.opt (std=c90,std=gnu90): New options.
9334 * c-opts.c (c_common_handle_option): Handle them.
9335
9336 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9337
9338 PR c/24577
9339 * c-decl.c (undeclared_variable): Use an informative note.
9340
9341 2010-02-26 Richard Guenther <rguenther@suse.de>
9342
9343 PR tree-optimization/43186
9344 * gimple.h (gimple_fold): Remove.
9345 * gimple.c (gimple_fold): Remove. Inline into single user ...
9346 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
9347 Try harder for conditions.
9348
9349 2010-02-26 Jakub Jelinek <jakub@redhat.com>
9350
9351 PR debug/43190
9352 * function.c (used_types_insert): Don't skip through named pointer
9353 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
9354 and it is different from the main variant's type.
9355
9356 2010-02-26 Nick Clifton <nickc@redhat.com>
9357
9358 * config/rx/rx.md (sminsi3): Remove bogus alternative.
9359
9360 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
9361
9362 * config.gcc: Support --with-fpmath=sse for x86.
9363
9364 * config/i386/ssemath.h: New.
9365
9366 * doc/install.texi (--with-fpmath=sse): Documented.
9367
9368 2010-02-26 Richard Guenther <rguenther@suse.de>
9369
9370 PR tree-optimization/43188
9371 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
9372 vector types of over-aligned element type.
9373
9374 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
9375
9376 PR target/43175
9377 * config/i386/i386.c (expand_vec_perm_blend): Use correct
9378 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
9379
9380 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9381
9382 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
9383
9384 2010-02-26 Jakub Jelinek <jakub@redhat.com>
9385
9386 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
9387 * var-tracking.c: Include diagnostic.h.
9388 (debug_dv): New function.
9389 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
9390
9391 PR debug/43160
9392 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
9393 (add_value_chain, add_value_chains, remove_value_chain,
9394 remove_value_chains): Handle DEBUG_EXPRs.
9395 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
9396
9397 PR debug/43161
9398 * regcprop.c (struct queued_debug_insn_change): New type.
9399 (struct value_data_entry): Add debug_insn_changes field.
9400 (struct value_data): Add n_debug_insn_changes field.
9401 (debug_insn_changes_pool): New variable.
9402 (free_debug_insn_changes, apply_debug_insn_changes,
9403 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
9404 (kill_value_one_regno): Call free_debug_insn_changes if needed.
9405 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
9406 fields.
9407 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
9408 changes for them.
9409 (copyprop_hardreg_forward_1): Don't call apply_change_group for
9410 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
9411 changes, call cprop_find_used_regs via note_stores.
9412 (copyprop_hardreg_forward): When copying vd from predecessor
9413 which has any queued DEBUG_INSN changes, make sure the pointers are
9414 cleared. At the end call df_analyze and then if there are any
9415 DEBUG_INSN changes queued at the end of some basic block for still
9416 live registers, apply them.
9417 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
9418
9419 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
9420
9421 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
9422 (arm*-*-*): Ditto.
9423
9424 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
9425
9426 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
9427 targets. Set the default with_cpu/with_arch from arch/cpu.
9428 Allow x86-64 and native for with_cpu/with_arch.
9429
9430 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
9431
9432 * ebitmap.c: Change calls to verify_popcount with calls to
9433 sbitmap_verify_popcount.
9434 (ebitmap_clear_bit): Fixed map->cacheindex test and
9435 map>cache update when bit clearing results in an empty
9436 element.
9437
9438 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
9439
9440 PR target/43154
9441 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
9442 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
9443 and support both V2DF and V2DI modes.
9444 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
9445 support both V2DF and V2DI modes.
9446 (general): Delete trailing whitespace from a few patterns.
9447
9448 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9449 V2DF/V2DI interleave high/low builtins.
9450
9451 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
9452 new VSX builtins.
9453
9454 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
9455 interleave high/low functions.
9456
9457 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9458
9459 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
9460 #pragma extern_prefix.
9461
9462 2010-02-25 Jakub Jelinek <jakub@redhat.com>
9463
9464 PR debug/43166
9465 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
9466 BLKmode, assert op0 is a MEM and just adjust its mode.
9467
9468 PR debug/43165
9469 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
9470 if bitpos isn't multiple of mode's bitsize.
9471
9472 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9473
9474 * c.opt (-ftemplate-depth=): New.
9475 (-ftemplate-depth-): Deprecate.
9476 * optc-gen.awk: Handle -ftemplate-depth=.
9477 * opth-gen.awk: Likewise.
9478 * c-opts.c (c_common_handle_option): Likewise.
9479 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
9480
9481 2010-02-24 Jason Merrill <jason@redhat.com>
9482
9483 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
9484
9485 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9486
9487 * cfg.c (alloc_aux_for_block): Remove inline.
9488 (alloc_aux_for_edge): Likewise.
9489
9490 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9491
9492 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
9493
9494 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9495
9496 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
9497 * config/i386/sol2-gas.h: New file.
9498 * config.gcc (i[34567]86-*-solaris2*): Use it.
9499
9500 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9501
9502 PR c/43128
9503 * c-typeck.c (ep_convert_and_check): New.
9504 (build_conditional_expr): Use it.
9505 (build_binary_op): Likewise.
9506
9507 2010-02-24 Jakub Jelinek <jakub@redhat.com>
9508
9509 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
9510
9511 PR debug/43150
9512 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
9513 bounds even for -O+.
9514 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
9515 expr needs to have DECL_NAME set.
9516
9517 2010-02-24 Nick Clifton <nickc@redhat.com>
9518
9519 * config/mep/mep.c: Include gimple.h.
9520 (mep_function_uses_sp): Delete unused function.
9521 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
9522 parameters. Use unsigned integers to count args. Return a
9523 NULL_RTX instead of an error_mark_node. Toidy up formatting.
9524
9525 2010-02-23 Jakub Jelinek <jakub@redhat.com>
9526
9527 PR target/43107
9528 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
9529 greater or equal to nelt instead of 2 * nelt.
9530 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
9531 with nelt - 1.
9532
9533 2010-02-23 Jason Merrill <jason@redhat.com>
9534
9535 PR debug/42800
9536 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
9537 in cfun->local_decls even if they have register types.
9538
9539 PR c++/42837
9540 * stor-layout.c (place_field): Don't warn about unnecessary
9541 DECL_PACKED if the type is packed.
9542
9543 2010-02-23 Jakub Jelinek <jakub@redhat.com>
9544
9545 PR target/43139
9546 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
9547 GOTOFF relocs, even when the base reg isn't pic pointer.
9548
9549 2010-02-23 Michael Matz <matz@suse.de>
9550
9551 PR debug/43077
9552 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
9553 (expand_gimple_basic_block): Generate and use debug temps if there
9554 are debug uses left after the last real use of TERed ssa names.
9555 Unlink debug immediate uses when they are expanded.
9556
9557 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
9558
9559 PR 43123
9560 * config/i386/i386.c (override_options): Reorganise to provide
9561 better error messages.
9562
9563 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
9564
9565 PR middle-end/43083
9566 * graphite-scop-detection.c (create_single_exit_edge): Move
9567 the call to find_single_exit_edge to....
9568 (create_sese_edges): ...here. Don't handle multiple edges
9569 exiting the function.
9570 (build_graphite_scops): Don't handle multiple edges
9571 exiting the function.
9572
9573 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
9574
9575 PR middle-end/43097
9576 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
9577 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
9578
9579 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
9580
9581 PR middle-end/43026
9582 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
9583
9584 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
9585
9586 PR c++/43126
9587 * c-typeck.c (convert_arguments): Print declaration location.
9588 * c-common.c (validate_nargs): Rename as
9589 builtin_function_validate_nargs.
9590 (check_builtin_function_arguments): Update.
9591
9592 2010-02-22 Richard Guenther <rguenther@suse.de>
9593
9594 PR lto/43045
9595 * tree-inline.c (declare_return_variable): Use the type of
9596 the call stmt lhs if available.
9597
9598 2010-02-22 Duncan Sands <baldrick@free.fr>
9599
9600 * passes.c (register_pass): Always consider all pass lists when
9601 ref_pass_instance_number is zero.
9602
9603 2010-02-22 Richard Guenther <rguenther@suse.de>
9604
9605 PR tree-optimization/42749
9606 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
9607 parameter. Do arithmetic in the original type.
9608 (update_accumulator_with_ops): Likewise.
9609 (adjust_accumulator_values): Adjust.
9610
9611 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9612
9613 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
9614 (QI to BLKmode splitter): New splitter.
9615
9616 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
9617
9618 * config/i386/i386.c (initial_ix86_tune_features): Turn on
9619 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
9620
9621 2010-02-22 Richard Guenther <rguenther@suse.de>
9622
9623 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
9624
9625 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
9626
9627 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
9628 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
9629 ($(T)crti.o, $(T)crtn.o): Remove rules.
9630
9631 2010-02-21 Tobias Burnus <burnus@net-b.de>
9632
9633 PR fortran/35259
9634 * doc/invoke.texi (-fassociative-math): Document that this
9635 option is automatically enabled for Fortran.
9636
9637 2010-02-20 David S. Miller <davem@davemloft.net>
9638
9639 * configure.ac: Test if linker and assembler properly support
9640 GOTDATA_OP relocations.
9641 * configure: Rebuild.
9642 * config.in: Likewise.
9643 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
9644 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
9645 (movsi_high_pic): Likewise.
9646 (movdi_lo_sum_pic): Likewise.
9647 (movdi_high_pic): Likewise.
9648 (movsi_pic_gotdata_op): New pattern.
9649 (movdi_pic_gotdata_op): Likewise.
9650 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
9651 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
9652
9653 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
9654
9655 PR target/43067
9656 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
9657 attribute to ssemul.
9658 (xop_mulv2div2di3_high): Ditto.
9659
9660 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9661
9662 PR c++/35669
9663 * c.opt (Wconversion-null): New option.
9664 * doc/invoke.texi (Wconversion-null): Document.
9665
9666 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9667
9668 * common.opt (Wlarger-than-): Add Undocumented.
9669
9670 2010-02-19 Mike Stump <mikestump@comcast.net>
9671
9672 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
9673
9674 2010-02-19 Jason Merrill <jason@redhat.com>
9675
9676 PR target/40332
9677 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
9678 * configure: Likewise.
9679
9680 2010-02-20 Alan Modra <amodra@gmail.com>
9681
9682 PR middle-end/42344
9683 * cgraph.h (cgraph_make_decl_local): Declare.
9684 * cgraph.c (cgraph_make_decl_local): New function.
9685 (cgraph_make_node_local): Use it.
9686 * cgraphunit.c (cgraph_function_versioning): Likewise.
9687 * ipa.c (function_and_variable_visibility): Likewise.
9688
9689 2010-02-19 Jakub Jelinek <jakub@redhat.com>
9690
9691 PR bootstrap/43121
9692 * except.c (sjlj_emit_function_enter): Don't call
9693 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
9694 directly.
9695 * rtl.h (add_reg_br_prob_note): Remove prototype.
9696
9697 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
9698
9699 PR 41779
9700 * c-common.c (conversion_warning): Remove widening conversions
9701 before checking the conversion of integers to reals.
9702
9703 2010-02-19 Mike Stump <mikestump@comcast.net>
9704
9705 PR middle-end/43125
9706 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
9707
9708 PR objc/43061
9709 * cgraphunit.c (process_function_and_variable_attributes): Check
9710 DECL_PRESERVE_P instead of looking up attribute "used".
9711 * ipa-pure-const.c (check_decl): Likewise.
9712 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
9713 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
9714 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
9715 instead of attribute "used".
9716 * config/sol2-c.c (solaris_pragma_init): Likewise.
9717 (solaris_pragma_fini): Likewise.
9718
9719 2010-02-19 Jakub Jelinek <jakub@redhat.com>
9720
9721 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
9722 Use XCNEW instead of xcalloc.
9723 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
9724 XNEW instead of xmalloc.
9725 (get_fields): Use XNEWVEC instead of xmalloc.
9726
9727 PR debug/43084
9728 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
9729 populate vars array.
9730 (create_new_general_access): For debug stmts just reset value.
9731 (get_stmt_accesses): For accesses within debug stmts just record them
9732 using add_access_to_acc_sites instead of preventing the peeling or
9733 counting them as accesses.
9734
9735 PR middle-end/42233
9736 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
9737
9738 2010-02-19 Richard Guenther <rguenther@suse.de>
9739
9740 PR tree-optimization/42916
9741 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
9742 instructions.
9743
9744 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
9745
9746 * configure.ac: Replace all uses of changequote in macro arguments
9747 with proper quoting.
9748
9749 2010-02-19 Jakub Jelinek <jakub@redhat.com>
9750
9751 PR middle-end/42233
9752 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
9753
9754 2010-02-19 Richard Guenther <rguenther@suse.de>
9755
9756 PR tree-optimization/42944
9757 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
9758 test for aliasing with errno.
9759
9760 2010-02-19 Jakub Jelinek <jakub@redhat.com>
9761
9762 PR middle-end/42233
9763 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
9764 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
9765 * dojump.c: Include output.h.
9766 (inv): New inline function.
9767 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
9768 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
9769 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
9770 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
9771 argument, pass it down to other calls.
9772 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
9773 add REG_BR_PROB note to the conditional jump.
9774 * cfgexpand.c (add_reg_br_prob_note): Removed.
9775 (expand_gimple_cond): Don't call it, add the probability
9776 as last argument to jumpif_1/jumpifnot_1.
9777 * Makefile.in (dojump.o): Depend on output.h.
9778 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
9779 callers.
9780 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
9781 * stmt.c (do_jump_if_equal): Likewise.
9782 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
9783 * loop-unswitch.c (compare_and_jump_seq): Likewise.
9784 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
9785 Likewise.
9786 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
9787 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
9788 jumpifnot_1 callers.
9789 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
9790 callers.
9791 (store_expr): Adjust jumpifnot caller.
9792 (store_constructor): Adjust jumpif caller.
9793
9794 PR middle-end/42233
9795 * gimplify.c (gimple_boolify): For __builtin_expect call
9796 gimple_boolify also on its first argument.
9797
9798 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
9799
9800 * configure.ac (gnu-unique-object): Wrap regexps using [] in
9801 changequote block.
9802 (__stack_chk_fail): Ditto. Remove quadrigraphs.
9803 * configure: Regenerated.
9804
9805 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9806
9807 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
9808 lang_hooks.types_compatible_p instead of comptypes.
9809
9810 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
9811
9812 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
9813 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
9814 if __prefer_thumb__ is defined.
9815
9816 2010-02-18 Martin Jambor <mjambor@suse.cz>
9817
9818 PR tree-optimization/43066
9819 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
9820 array with zero-sized element type.
9821
9822 2010-02-18 Jakub Jelinek <jakub@redhat.com>
9823
9824 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
9825 rtx, allocate struct var_loc_node here and return it to the
9826 caller, and only if it is actually needed.
9827 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
9828 move it earlier and return immediately if it returns NULL.
9829
9830 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
9831
9832 * config/sparc/gas.h: New file. Restore
9833 TARGET_ASM_NAMED_SECTION to its ELF default.
9834 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
9835 check !HAVE_GNU_AS.
9836 * config/sparc/sparc.c (sparc_elf_asm_named_section):
9837 Likewise. Add ATTRIBUTE_UNUSED to prototype.
9838 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
9839 after sparc/sysv4.h.
9840
9841 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
9842
9843 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
9844
9845 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
9846
9847 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
9848 patterns from predicated pattern.
9849
9850 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
9851
9852 PR target/43103
9853 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
9854 for insn mnemonic suffix.
9855
9856 2010-02-17 Richard Guenther <rguenther@suse.de>
9857
9858 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
9859 to loop PHI nodes.
9860
9861 2010-02-17 Jakub Jelinek <jakub@redhat.com>
9862
9863 PR debug/42918
9864 * caller-save.c (save_call_clobbered_regs): If BB ends with
9865 a DEBUG_INSN, move any notes in between last real insn and the last
9866 DEBUG_INSN after the last DEBUG_INSN.
9867
9868 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
9869
9870 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
9871 Fix return type. Fix argument type. Explain meaning of return value.
9872
9873 2010-02-16 Richard Guenther <rguenther@suse.de>
9874
9875 PR tree-optimization/41043
9876 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
9877 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
9878 statements ...
9879 (vrp_visit_phi_node): ... but only for loop PHI nodes.
9880
9881 2010-02-16 Ira Rosen <irar@il.ibm.com>
9882
9883 PR tree-optimization/43074
9884 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
9885 * tree-vect-loop.c (vect_analyze_loop_operations): Add
9886 vectorizable cycles in hybrid SLP check.
9887 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
9888
9889 2010-02-16 Richard Guenther <rguenther@suse.de>
9890
9891 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
9892 (true_dependence): If memrefs_conflict_p computes must-alias
9893 trust it. Move TBAA check after offset-based disambiguation.
9894 (canon_true_dependence): Likewise.
9895
9896 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
9897
9898 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
9899 * doc/invoke.texi: Document it.
9900 * var-tracking.c: Include toplev.h and params.h.
9901 (vt_find_locations): Return bool indicating success. Compute
9902 hash sizes unconditionally. Check new parameter, report.
9903 (variable_tracking_main_1): Check vt_find_locations results and
9904 retry. Renamed from...
9905 (variable_tracking_main): ... this. New wrapper to preserve
9906 flag_var_tracking_assignments.
9907 * Makefile.in (var-tracking.o): Adjust dependencies.
9908
9909 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
9910 Jakub Jelinek <jakub@redhat.com>
9911
9912 PR target/42854
9913 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
9914 if weak_import attribute is present.
9915 * config/darwin.c (machopic_select_section): Likewise.
9916
9917 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
9918
9919 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
9920 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
9921 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
9922 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
9923
9924 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
9925 types.
9926
9927 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
9928 Fix argument types.
9929
9930 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
9931 Rewrite text to refer to the names.
9932
9933 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
9934
9935 * config/i386/i386-builtin-types.def
9936 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
9937 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
9938 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
9939 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
9940 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
9941 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
9942 IX86_BUILTIN_VPERMIL2PS256.
9943 (MULTI_ARG_4_DF2_DI_I): Defined.
9944 (MULTI_ARG_4_DF2_DI_I1): Defined.
9945 (MULTI_ARG_4_SF2_SI_I): Defined.
9946 (MULTI_ARG_4_SF2_SI_I1): Defined.
9947 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
9948 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
9949 __builtin_ia32_vpermil2ps256.
9950 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
9951 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
9952 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
9953 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
9954 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
9955 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
9956 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
9957 CODE_FOR_xop_vpermil2v8sf3.
9958 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
9959 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
9960 * config/i386/xopintrin.h (_mm_permute2_pd): New.
9961 (_mm256_permute2_pd): New.
9962 (_mm_permute2_ps): New.
9963 (_mm256_permute2_ps): New.
9964
9965 2010-02-15 Nick Clifton <nickc@redhat.com>
9966
9967 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
9968 boolean parameters. Use emit_jump_insn when emitting a pop
9969 instruction containing a return insn.
9970 (push): Use 'true' rather than '1' as second parameter to F.
9971 (h8300_expand_prologue): Likewise.
9972 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
9973 (h8300_expand_epilogue): Likewise.
9974
9975 2010-02-15 Richard Guenther <rguenther@suse.de>
9976
9977 PR middle-end/43068
9978 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
9979 if that is zero.
9980
9981 2010-02-15 Nick Clifton <nickc@redhat.com>
9982
9983 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
9984 delta.
9985
9986 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
9987
9988 * intl.c (fake_ngettext): New function.
9989 * intl.h (fake_ngettext): Declare.
9990 (ngettext): Define macro.
9991 * collect2.c (notice_translated): New function.
9992 (main): Use notice_translated and ngettext.
9993 * collect2.h (notice_translated): Declare.
9994
9995 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
9996
9997 * reorg.c (delete_computation): Comment fixes.
9998 * caller-save.c (setup_save_areas): Idem.
9999 * sel-sched-dump.c (dump_lv_set): Idem.
10000 * rtl.def: Idem.
10001
10002 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10003
10004 * config/s390/s390.c (s390_sched_init): New function.
10005 (TARGET_SCHED_INIT): Target hook defined.
10006
10007 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
10008 Jack Howarth <howarth@bromo.med.uc.edu>
10009 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10010
10011 PR target/42982
10012 Partial revert of unintended change in fix for PR41605.
10013 * config/darwin.h: Fix typo.
10014 * config/darwin9.h: Same.
10015
10016 2010-02-11 Jakub Jelinek <jakub@redhat.com>
10017
10018 * c-pch.c (pch_init): Clear v.
10019
10020 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10021
10022 PR middle-end/42930
10023 * graphite-scop-detection.c (graphite_can_represent_scev): Call
10024 graphite_can_represent_init for MULT_EXPR.
10025
10026 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10027
10028 PR middle-end/42914
10029 PR middle-end/42530
10030 * graphite-sese-to-poly.c (remove_phi): New.
10031 (translate_scalar_reduction_to_array): Call remove_phi.
10032
10033 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10034
10035 PR middle-end/42771
10036 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
10037 * graphite-clast-to-gimple.h (gloog): Update declaration.
10038 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
10039 * graphite-poly.h (struct poly_bb): Add missing comments.
10040 (struct scop): Add poly_scop_p field.
10041 (POLY_SCOP_P): New.
10042 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
10043 * graphite.c (graphite_transform_loops): Build the polyhedral
10044 representation for each scop before code generation.
10045 * sese.c (rename_variables_in_operand): Removed.
10046 (rename_variables_in_expr): Return the renamed expression.
10047 (rename_sese_parameters): New.
10048 * sese.h (rename_sese_parameters): Declared.
10049
10050 2010-02-11 Richard Guenther <rguenther@suse.de>
10051
10052 PR tree-optimization/42998
10053 * tree-ssa-pre.c (create_expression_by_pieces): Treat
10054 POINTER_PLUS_EXPR properly.
10055
10056 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10057 Changpeng Fang <changpeng.fang@amd.com>
10058
10059 PR middle-end/40886
10060 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
10061 the cost of an IV candidate when the IV is used in a test against zero.
10062
10063 * gcc.dg/tree-ssa/ivopts-3.c: New.
10064
10065 2010-02-11 Richard Guenther <rguenther@suse.de>
10066
10067 PR lto/41664
10068 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
10069 pointer-vs-decl case by swapping refs. Handle some cases
10070 of pointer-vs-decl disambiguations more conservatively.
10071 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
10072 to false after expanding.
10073
10074 2010-02-11 Richard Guenther <rguenther@suse.de>
10075
10076 PR driver/43021
10077 * gcc.c (process_command): Handle LTO file@offset case more
10078 appropriately.
10079
10080 2010-02-11 Jakub Jelinek <jakub@redhat.com>
10081
10082 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
10083 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
10084 of DEBUG_INSNs.
10085 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
10086
10087 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
10088 if MEM's mode size isn't DWARF2_ADDR_SIZE.
10089 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
10090 Optimize eq/ne comparisons when both arguments are known to be
10091 zero-extended.
10092 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
10093 Don't mask operands unnecessarily if they are known to be already
10094 zero-extended.
10095
10096 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
10097
10098 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
10099 instead of loop.
10100
10101 2010-02-10 Richard Guenther <rguenther@suse.de>
10102
10103 PR tree-optimization/43017
10104 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
10105 for wrapping signed arithmetic.
10106
10107 2010-02-10 Jakub Jelinek <jakub@redhat.com>
10108
10109 PR debug/43010
10110 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
10111 if no debug info should be emitted for it.
10112
10113 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
10114
10115 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
10116 note when flag_exceptions is set.
10117
10118 2010-02-10 Duncan Sands <baldrick@free.fr>
10119
10120 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
10121
10122 2010-02-10 Richard Guenther <rguenther@suse.de>
10123
10124 PR c/43007
10125 * tree.c (get_unwidened): Handle constants.
10126 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
10127
10128 2010-02-10 Martin Jambor <mjambor@suse.cz>
10129
10130 PR lto/42985
10131 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
10132 check for variable argument counts independently.
10133
10134 2010-02-10 Christian Bruel <christian.bruel@st.com>
10135
10136 PR target/42841
10137 * config/sh/sh.c (find_barrier): Increase length for non delayed
10138 conditional branches.
10139
10140 2010-02-10 Christian Bruel <christian.bruel@st.com>
10141
10142 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
10143
10144 2010-02-10 Jakub Jelinek <jakub@redhat.com>
10145
10146 * builtins.c (set_builtin_user_assembler_name): Also handle
10147 ffs if int is smaller than word.
10148
10149 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
10150
10151 PR middle-end/42973
10152 * ira-conflicts.c (get_dup): Remove.
10153 (process_reg_shuffles): Add new parameter. Use it as an
10154 additional guard for copy generation.
10155 (add_insn_allocno_copies): Rewrite.
10156
10157 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
10158
10159 * common.opt (fsched2-use-traces): Preserved for backward
10160 compatibility.
10161 * doc/invoke.texi: Remove the documentation about option
10162 -fsched2-use-traces.
10163 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
10164 flag_sched2_use_traces.
10165 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
10166 the backward compatibility flag section.
10167
10168 2010-02-09 Richard Guenther <rguenther@suse.de>
10169
10170 PR tree-optimization/43008
10171 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
10172 make HEAP variables initialized from global memory if they
10173 are not known builtin functions.
10174 (find_func_aliases): Adjust.
10175
10176 2010-02-09 Richard Guenther <rguenther@suse.de>
10177
10178 PR tree-optimization/43000
10179 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
10180 arithmetic manually.
10181
10182 2010-02-08 Jakub Jelinek <jakub@redhat.com>
10183
10184 PR tree-optimization/42931
10185 * tree-loop-linear.c (try_interchange_loops): Don't call
10186 double_int_mul if estimated_loop_iterations failed.
10187
10188 2010-02-08 Martin Jambor <mjambor@suse.cz>
10189
10190 PR middle-end/42898
10191 * tree-sra.c (build_accesses_from_assign): Do not mark in
10192 should_scalarize_away_bitmap if stmt has volatile ops.
10193 (sra_modify_assign): Do not process assigns piecemeal if if stmt
10194 has volatile ops.
10195
10196 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
10197
10198 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
10199
10200 2010-02-07 Adam Nemet <adambnmet@gmail.com>
10201
10202 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
10203 before the pattern.
10204
10205 2010-02-07 Andrew Pinski <pinskia@gmail.com>
10206
10207 PR middle-end/42946
10208 * df-core.c (df_finish_pass): Change type of saved_flags to int.
10209
10210 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
10211
10212 PR middle-end/42988
10213 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
10214 to unknown_dependence.
10215 (graphite_legal_transform_dr): Handle the unknown_dependence.
10216 (graphite_carried_dependence_level_k): Same.
10217
10218 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
10219
10220 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
10221
10222 2010-02-07 Richard Guenther <rguenther@suse.de>
10223
10224 PR middle-end/42991
10225 * expr.c (get_inner_reference): Always initialize *pbitsize.
10226
10227 2010-02-07 Richard Guenther <rguenther@suse.de>
10228
10229 PR middle-end/42956
10230 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
10231 new ARRAY_REFs on variable size element or minimal index arrays.
10232 Complete.
10233 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
10234 gimple_fold_indirect_ref.
10235
10236 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
10237
10238 PR target/42957
10239 * arm.c (arm_override_options): Just return if the user has specified
10240 an invalid fpu name.
10241
10242 2010-02-03 Jason Merrill <jason@redhat.com>
10243
10244 PR c++/42870
10245 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
10246 i386_pe_maybe_record_exported_symbol.
10247
10248 2010-02-05 Steve Ellcey <sje@cup.hp.com>
10249
10250 PR target/42924
10251 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10252 (pa_delegitimize_address): New function.
10253
10254 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
10255
10256 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
10257 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
10258
10259 2010-02-05 Richard Guenther <rguenther@suse.de>
10260
10261 PR lto/42762
10262 * lto-streamer-in.c (get_resolution): Deal with references
10263 to undefined functions.
10264
10265 2010-02-05 Richard Guenther <rguenther@suse.de>
10266
10267 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
10268 (fold_const_aggregate_ref): Likewise.
10269 (ccp_fold_stmt): Substitute loads.
10270 (maybe_fold_reference): Verify types before substituting.
10271 Unshare properly.
10272 (fold_gimple_assign): Unshare properly.
10273 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
10274
10275 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
10276
10277 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
10278 for rs6000_gen_cell_microcode.
10279
10280 2010-02-04 Richard Guenther <rguenther@suse.de>
10281
10282 PR rtl-optimization/42952
10283 * dse.c (const_or_frame_p): Remove MEM handling.
10284
10285 2010-02-04 Nick Clifton <nickc@redhat.com>
10286
10287 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
10288 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
10289 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
10290 (mn10300_asm_output_mi_thunk): New function.
10291 (mn10300_can_output_mu_thunk): New function.
10292 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
10293 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
10294 (FUNCTION_ARG): Delete incorrect comment.
10295
10296 2010-02-03 Jason Merrill <jason@redhat.com>
10297
10298 PR c++/40138
10299 * fold-const.c (operand_equal_p): Handle erroneous types.
10300
10301 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10302
10303 * config/h8300/h8300.md (can_delay): Fix attibute condition.
10304
10305 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
10306
10307 PR rtl-optimization/42941
10308 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
10309 of xmalloc.
10310
10311 2010-02-03 Jason Merrill <jason@redhat.com>
10312
10313 PR c++/35652
10314 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
10315
10316 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
10317
10318 PR debug/42896
10319 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
10320 (cselib_reset_table): Renamed from...
10321 (cselib_reset_table_with_next_value): ... this.
10322 (cselib_get_next_uid): Renamed from...
10323 (cselib_get_next_unknown_value): ... this.
10324 * cselib.c (next_uid): Renamed from...
10325 (next_unknown_value): ... this.
10326 (cselib_clear_table): Adjust.
10327 (cselib_reset_table): Adjust. Renamed from...
10328 (cselib_reset_table_with_next_value): ... this.
10329 (cselib_get_next_uid): Adjust. Renamed from...
10330 (cselib_get_next_unknown_value): ... this.
10331 (get_value_hash): Use hash.
10332 (cselib_hash_rtx): Likewise.
10333 (new_cselib_val): Adjust. Set and dump uid.
10334 (cselib_lookup_mem): Pass next_uid as hash.
10335 (cselib_subst_to_values): Likewise.
10336 (cselib_log_lookup): Dump uid.
10337 (cselib_lookup): Pass next_uid as hash. Adjust.
10338 (cselib_process_insn): Adjust.
10339 (cselib_init): Initialize next_uid.
10340 (cselib_finish): Adjust.
10341 (dump_cselib_table): Likewise.
10342 * dse.c (canon_address): Dump value uid.
10343 * print-rtl.c (print_rtx): Print value uid.
10344 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
10345 (dvuid): New type.
10346 (dv_uid): New function, sort of renamed from...
10347 (dv_htab_hash): ... this, reimplemented in terms of it and...
10348 (dv_uid2hash): ... this. New.
10349 (variable_htab_eq): Drop excess assertions.
10350 (tie_break_pointers): Removed.
10351 (canon_value_cmp): Compare uids.
10352 (variable_post_merge_New_vals): Print uids.
10353 (vt_add_function_parameters): Adjust.
10354 (vt_initialize): Reset table. Adjust.
10355
10356 2010-02-03 Richard Guenther <rguenther@suse.de>
10357
10358 PR tree-optimization/42944
10359 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
10360 (call_may_clobber_ref_p_1): Likewise. Properly handle
10361 malloc and calloc clobbering errno.
10362
10363 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
10364
10365 * doc/invoke.texi: Fix name of sched1 dump.
10366
10367 * opts.c (decode_options): Set flag_tree_switch_conversion
10368 only conditionally on optimize >= 2.
10369
10370 * gcse.c: Assorted comment fixes in pass description.
10371
10372 2010-02-03 Anthony Green <green@moxielogic.com>
10373
10374 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
10375 nop padding in order to maintain alignment of storage location of
10376 target function address.
10377 (moxie_trampoline_init): Store target function address at newly
10378 aligned location.
10379 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
10380 to 32.
10381 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
10382
10383 2010-02-03 Richard Guenther <rguenther@suse.de>
10384
10385 PR middle-end/42927
10386 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
10387
10388 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10389
10390 * config.gcc: Reenable check for obsolete targets.
10391 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
10392 mips-sgi-irix6.[0-4]*.
10393
10394 2010-02-02 Nick Clifton <nickc@redhat.com>
10395
10396 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
10397 constant size of 4 as being the same as 0.
10398 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
10399 can take values in the range 0..4.
10400
10401 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
10402
10403 PR java/41991
10404 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
10405 as _darwin10_Unwind_FindEnclosingFunction().
10406 * libgcc-libsystem.ver: New.
10407
10408 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
10409
10410 PR target/41399
10411 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
10412 implicitly set registers.
10413
10414 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
10415
10416 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
10417 (arm_override_options): Allow automatic selection of the thread
10418 pointer register if thumb2.
10419 (legitimize_pic_address): Improve code sequences for Thumb2.
10420 (arm_call_tls_get_addr): Likewise.
10421 (legitimize_tls_address): Likewise.
10422 * arm.md (pic_load_addr_arm): Delete. Replace with ...
10423 (pic_load_addr_32bit): ... this. New named pattern.
10424 * thumb2.md (pic_load_addr_thumb2): Delete.
10425 (pic_load_dot_plus_four): Delete.
10426 (tls_load_dot_plus_four): New named pattern.
10427
10428 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10429
10430 PR libgomp/29986
10431 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
10432 Document fix for TLS bug.
10433
10434 2010-01-31 Richard Guenther <rguenther@suse.de>
10435
10436 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
10437 conservatively correct.
10438
10439 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10440
10441 PR target/42850
10442 Revert:
10443 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10444
10445 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
10446
10447 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10448
10449 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
10450
10451 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
10452
10453 * config.gcc: Adjust order of makefile fragments for mingw targets.
10454
10455 2010-01-31 Richard Guenther <rguenther@suse.de>
10456
10457 PR middle-end/42898
10458 * gimplify.c (gimplify_init_constructor): For volatile LHS
10459 initialize a temporary.
10460
10461 2010-01-31 Matthias Klose <doko@ubuntu.com>
10462
10463 * configure.ac: Fix __stack_chk_fail check for cross builds configured
10464 --with-headers
10465 * configure: Regenerate.
10466
10467 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
10468
10469 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
10470 the same alias set and their sizes different constantness.
10471 (aliasing_component_refs_p): Revert 2009-10-24 change.
10472
10473 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10474
10475 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
10476 unused.
10477
10478 2010-01-29 Richard Guenther <rguenther@suse.de>
10479
10480 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
10481 Assert we successfully updated the call.
10482
10483 2010-01-29 Jakub Jelinek <jakub@redhat.com>
10484
10485 PR rtl-optimization/42889
10486 * df.h (df_set_bb_dirty_nonlr): New prototype.
10487 * df-core.c (df_set_bb_dirty_nonlr): New function.
10488 * df-scan.c (df_insn_rescan): Call it instead of
10489 df_set_bb_dirty for DEBUG_INSNs.
10490
10491 2010-01-29 Richard Guenther <rguenther@suse.de>
10492
10493 PR middle-end/37448
10494 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
10495 quadratic behavior in most cases.
10496
10497 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
10498
10499 PR target/42891
10500 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
10501 in the call to gen_x86_movsicc_0_m1.
10502
10503 2010-01-28 Richard Guenther <rguenther@suse.de>
10504
10505 PR tree-optimization/42871
10506 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
10507
10508 2010-01-28 Richard Guenther <rguenther@suse.de>
10509
10510 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
10511 into call arguments.
10512
10513 2010-01-28 Richard Guenther <rguenther@suse.de>
10514
10515 PR middle-end/42883
10516 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
10517 the forwarder if the destination is an EH landing pad.
10518
10519 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
10520
10521 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
10522 block list passed to gimple_duplicate_sese_tail.
10523 (parallelize_loops): Avoid parallelization when the function
10524 has_nonlocal_label.
10525 Avoid parallelization when the preheader is IRREDUCIBLE.
10526 Try to optimize when estimated_loop_iterations_int is unresolved.
10527 Add the loop's location to the dump file.
10528 * tree-cfg.c (add_phi_args_after_redirect): Remove.
10529 (gimple_duplicate_sese_tail): Remove the check for the latch.
10530 Redirect nexits to the exit block.
10531 Remove handling of the incoming edges to the latch.
10532 Redirect the backedge from the copied latch to the exit bb.
10533
10534 2010-01-28 Michael Matz <matz@suse.de>
10535
10536 PR target/42881
10537 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
10538 Wrap force_reg into a sequence, emit it before user.
10539
10540 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
10541
10542 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
10543 (arm_rev): New.
10544 (arm_legacy_rev): Likewise.
10545 (thumb_legacy_rev): Likewise.
10546
10547 2010-01-27 Jakub Jelinek <jakub@redhat.com>
10548
10549 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
10550 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
10551 on MEM's address failed, try avoid_constant_pool_reference and
10552 recurse if it returned something different.
10553 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
10554 address, try avoid_constant_pool_reference and recurse if it
10555 returned something different.
10556 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
10557 address and avoid_constant_pool_reference returned something
10558 different, don't set have_address.
10559
10560 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
10561
10562 PR debug/42861
10563 * var-tracking.c (val_store): Add modified argument, obey it.
10564 Adjust callers.
10565 (count_uses): Move down logging of main.
10566 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
10567 don't need resolution.
10568 (emit_notes_in_bb): Likewise.
10569
10570 2010-01-27 Richard Guenther <rguenther@suse.de>
10571
10572 PR middle-end/42878
10573 * tree-inline.c (remap_decl): Delay remapping of SSA name
10574 default definitions until we need them.
10575
10576 2010-01-27 Jakub Jelinek <jakub@redhat.com>
10577
10578 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10579 (rs6000_delegitimize_address): New function.
10580
10581 * config/s390/s390.c (s390_delegitimize_address): Call
10582 delegitimize_mem_from_attrs.
10583
10584 PR middle-end/42874
10585 * tree-inline.c (cannot_copy_type_1): Removed.
10586 (copy_forbidden): Don't forbid copying of functions containing
10587 records/unions with variable length fields.
10588
10589 2010-01-27 Christian Bruel <christian.bruel@st.com>
10590
10591 Revert:
10592 PR target/42841
10593 * config/sh/sh.c (find_barrier): Increase length for non delayed
10594 conditional branches.
10595
10596 2010-01-27 Matthias Klose <doko@ubuntu.com>
10597
10598 * configure.ac (gnu-unique-object): Fix ldd version check.
10599 * configure: Regenerate.
10600
10601 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10602
10603 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
10604 HAVE_GNU_AS value.
10605 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
10606 Test for HAVE_GNU_AS value.
10607
10608 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10609
10610 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
10611 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
10612 INT64_TYPE): Define.
10613 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
10614 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
10615 INT_LEAST64_TYPE): Define.
10616 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
10617 UINT_LEAST64_TYPE): Define.
10618 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
10619 INT_FAST64_TYPE): Define.
10620 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
10621 UINT_FAST64_TYPE): Define.
10622 (INTMAX_TYPE, UINTMAX_TYPE): Define.
10623 (INTPTR_TYPE, UINTPTR_TYPE): Define.
10624 (SIG_ATOMIC_TYPE): Define.
10625
10626 2010-01-26 Richard Guenther <rguenther@suse.de>
10627
10628 * df-scan.c (df_scan_set_bb_info): Remove assert.
10629 (df_insn_rescan_debug_internal): Merge asserts.
10630 (df_install_ref): Likewise.
10631 (df_mark_reg): Use bitmap_set_range.
10632 (df_hard_reg_used_p): Remove assert.
10633 (df_hard_reg_used_count): Likewise.
10634
10635 2010-01-26 Richard Guenther <rguenther@suse.de>
10636
10637 PR rtl-optimization/42685
10638 * web.c (web_main): Ignore DEBUG_INSNs.
10639
10640 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
10641
10642 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
10643
10644 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
10645 Fix types of fndecl and arglist parameters.
10646
10647 2010-01-26 Richard Guenther <rguenther@suse.de>
10648
10649 PR middle-end/42806
10650 * tree-eh.c (unsplit_eh): Skip debug insns.
10651
10652 2010-01-26 Richard Guenther <rguenther@suse.de>
10653
10654 PR tree-optimization/42250
10655 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
10656
10657 2010-01-26 Jakub Jelinek <jakub@redhat.com>
10658
10659 PR fortran/42866
10660 * omp-low.c (expand_omp_sections): Only use single_pred if
10661 l2_bb is single_pred_p.
10662
10663 2010-01-25 Christian Bruel <christian.bruel@st.com>
10664
10665 PR target/42841
10666 * config/sh/sh.c (find_barrier): Increase length for non delayed
10667 conditional branches.
10668 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
10669
10670 2010-01-24 David S. Miller <davem@davemloft.net>
10671
10672 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
10673 define if not using GAS.
10674 * config/sparc/sparc.c (sparc_elf_asm_named_section):
10675 Likewise. Delete SECTION_MERGE code, which is only applicable
10676 when using GAS.
10677
10678 2010-01-24 Mark Mitchell <mark@codesourcery.com>
10679
10680 PR c++/42748
10681 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
10682 mangling of va_list in system headers.
10683
10684 2010-01-23 Toon Moene <toon@moene.org>
10685
10686 * tree-predcom.c (combine_chains): Return NULL, not false.
10687
10688 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
10689
10690 * tree-loop-distribution.c (distribute_loop): Fix declaration and
10691 initialization of variable res to agree with return type.
10692
10693 2010-01-22 Steve Ellcey <sje@cup.hp.com>
10694
10695 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
10696 * tree-sra.c: Add include of expr.h.
10697
10698 2010-01-22 Jakub Jelinek <jakub@redhat.com>
10699
10700 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
10701 insert the debug stmt on the single non-EH edge from the stmt.
10702
10703 2010-01-22 Richard Henderson <rth@redhat.com>
10704
10705 PR tree-opt/42833
10706 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
10707 the RHS until after generate_subtree_copies has insertted its
10708 code before the current statement.
10709
10710 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
10711
10712 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
10713
10714 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
10715
10716 2010-01-21 Martin Jambor <mjambor@suse.cz>
10717
10718 PR tree-optimization/42585
10719 * tree-sra.c (struct access): New field grp_total_scalarization.
10720 (dump_access): Dump the new field.
10721 (should_scalarize_away_bitmap): New variable.
10722 (cannot_scalarize_away_bitmap): Likewise.
10723 (sra_initialize): Allocate new bitmaps.
10724 (sra_deinitialize): Free new bitmaps.
10725 (create_access_1): New function.
10726 (create_access): Parts moved to create_access_1.
10727 (type_consists_of_records_p): New function.
10728 (completely_scalarize_record): Likewise.
10729 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
10730 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
10731 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
10732 access.
10733 (analyze_all_variable_accesses): Completely scalarize small eligible
10734 records.
10735
10736 2010-01-21 Martin Jambor <mjambor@suse.cz>
10737
10738 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
10739
10740 2010-01-21 Andrew Haley <aph@redhat.com>
10741
10742 * gcc.c (process_command): Move lang_specific_driver before
10743 setting cc_libexec_prefix.
10744
10745 2010-01-21 Richard Guenther <rguenther@suse.de>
10746
10747 PR middle-end/19988
10748 * fold-const.c (negate_expr_p): Pretend only negative
10749 real constants are easily negatable.
10750
10751 2010-01-20 Janis Johnson <janis187@us.ibm.com>
10752 Jason Merrill <jason@redhat.com>
10753
10754 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
10755 (TYPE_TRANSPARENT_AGGR): this, for union and record.
10756 * calls.c (initialize argument_information): Handle it.
10757 * c-common.c (handle_transparent_union_attribute): Use new name.
10758 * c-decl.c (finish_struct): Ditto.
10759 * c-typeck.c (type_lists_compatible_p): Ditto.
10760 (convert_for_assignment): Use new name and also handle record.
10761 * function.c (aggregate_value_p): Handle it.
10762 (pass_by_reference): Ditto.
10763 (assign_parm_data_types): Ditto.
10764 * print-tree.c (print_node): Ditto.
10765 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
10766 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
10767 * tree.c (first_field): New fn.
10768
10769 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
10770
10771 PR target/42818
10772 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
10773 even when linking statically, for now.
10774
10775 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
10776
10777 PR debug/42715
10778 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
10779 without a cselib val.
10780 (count_uses): Accept MO_VAL_SET with no val on stores.
10781 (add_stores): Likewise.
10782
10783 2010-01-20 Jakub Jelinek <jakub@redhat.com>
10784
10785 * var-tracking.c (check_value_val): Add a compile time assertion.
10786 (dv_is_decl_p): Simplify.
10787 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
10788 gcc_assert if ENABLE_CHECKING.
10789
10790 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
10791
10792 PR debug/42782
10793 * var-tracking.c: Include tree-flow.h.
10794 (mem_dies_at_call): New.
10795 (dataflow_set_preserve_mem_locs): Use it.
10796 (dataflow_set_remove_mem_locs): Likewise.
10797 (dump_var): Renamed from dump_variable. Adjust all callers.
10798 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
10799 * Makefile.in (var-tracking.o): Adjust deps.
10800
10801 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
10802
10803 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
10804
10805 2010-01-20 Richard Guenther <rguenther@suse.de>
10806
10807 PR tree-optimization/42717
10808 * tree-ssa-dce.c (get_live_post_dom): Remove.
10809 (forward_edge_to_pdom): Take an arbitrary edge to copy
10810 degenerate PHI args from.
10811 (remove_dead_stmt): Use the first post-dominator even if it
10812 does not contain live statements as redirection destination.
10813
10814 2010-01-20 Richard Guenther <rguenther@suse.de>
10815
10816 * tree-inline.c (estimate_num_insns): Handle EH builtins.
10817
10818 2010-01-20 Jakub Jelinek <jakub@redhat.com>
10819
10820 * sel-sched.c (create_speculation_check): Remove set but not used
10821 variable twin.
10822 (try_transformation_cache): Remove set but not used variable ds.
10823 (calculate_privileged_insns): Remove set but not used variables
10824 cur_insn and min_spec_insn.
10825 (find_best_expr): Remove set but not used variable avail_n.
10826 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
10827 variable e.
10828 * cgraphunit.c (assemble_thunk): Remove set but not used variable
10829 false_label.
10830 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
10831 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
10832 new_scop_exit_edge.
10833
10834 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
10835
10836 PR bootstrap/42786
10837 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
10838 cpu types. Add support for *-sse3 cpu types.
10839 (x86_64-*-*): Ditto.
10840
10841 2010-01-20 Jakub Jelinek <jakub@redhat.com>
10842
10843 PR middle-end/42803
10844 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
10845 argument, call initializer_constant_valid_p_1 instead of
10846 initializer_constant_valid_p, pass CACHE to it, return NULL
10847 immediately if first call returns NULL.
10848 (initializer_constant_valid_p_1): New function.
10849 (initializer_constant_valid_p): Use it.
10850
10851 2010-01-20 Thomas Quinot <quinot@adacore.com>
10852
10853 * tree.def (PLACEHOLDER_EXPR): Fix comment.
10854
10855 2010-01-20 Jakub Jelinek <jakub@redhat.com>
10856
10857 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
10858 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
10859 (loc_list_from_tree): Don't handle unsigned division. Handle
10860 signed modulo using DW_OP_{over,over,div,mul,minus}.
10861 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
10862 modulo instead of signed.
10863
10864 2010-01-20 DJ Delorie <dj@redhat.com>
10865
10866 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
10867 (Fpa): Pass it
10868 (h8300_emit_stack_adjustment): Propogate it.
10869 (push): Pass it.
10870 (h8300_expand_prologue): Likewise.
10871 (h8300_expand_epilogue): Likewise.
10872
10873 2010-01-19 Michael Matz <matz@suse.de>
10874
10875 PR tree-optimization/41783
10876 * tree-data-ref.c (toplevel): Include flags.h.
10877 (dump_data_dependence_relation): Also dump the inputs if the
10878 result will be unknown.
10879 (split_constant_offset_1): Look through some conversions.
10880 * tree-predcom.c (determine_roots_comp): Restart a new chain if
10881 the offset from last element is too large.
10882 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
10883 (reassociate_to_the_same_stmt): Handle vector registers.
10884 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
10885 (e.g. conversions).
10886 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
10887 wide_prolog_niters argument, emit widening instructions.
10888 (vect_do_peeling_for_alignment): Adjust caller, use widened
10889 variant of the iteration cound.
10890 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
10891
10892 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10893
10894 PR target/38697
10895 * config/arm/neon-testgen.m (emit_automatics): New parameter
10896 features. Adjust for Fixed_return_reg feature.
10897 (test_intrinsic): Call emit_automatics with new feature.
10898 * config/arm/neon.ml: Update copyright years.
10899 (features): New Fixed_return_reg feature.
10900 (ops): Update feature for Vget_low.
10901
10902 2010-01-19 Jakub Jelinek <jakub@redhat.com>
10903
10904 PR tree-optimization/42719
10905 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
10906 stmt uses.
10907
10908 PR debug/42728
10909 * fwprop.c (all_uses_available_at): Return false if def_set dest
10910 is a REG that is used in def_insn.
10911
10912 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
10913
10914 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
10915
10916 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
10917 Add argument names.
10918
10919 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
10920
10921 * target.h (struct gcc_target) <secondary_reload>: Change type
10922 of last argument to secondary_reload_info *.
10923
10924 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
10925
10926 PR target/42774
10927 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
10928 memory references with unaligned offsets. Remove CQImode handling.
10929 (unaligned_memory_operand): Return 1 for memory references with
10930 unaligned offsets. Remove CQImode handling.
10931
10932 2010-01-18 Richard Guenther <rguenther@suse.de>
10933
10934 PR middle-end/39954
10935 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
10936 builtin calls.
10937
10938 2010-01-18 Richard Guenther <rguenther@suse.de>
10939
10940 PR tree-optimization/42781
10941 * tree-ssa-structalias.c (find_what_var_points_to): Skip
10942 restrict processing only if the original variable was artificial.
10943
10944 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
10945
10946 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
10947 find number of popped argument bytes.
10948
10949 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
10950 Fix the text that describes the return value for invalid insns.
10951
10952 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
10953
10954 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
10955 Clarify what 'cost of the -dependence' is. Fix quoting.
10956
10957 * toplev.c (default_get_pch_validity): Rename argument to "sz".
10958 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
10959
10960 2010-01-17 Jakub Jelinek <jakub@redhat.com>
10961
10962 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
10963 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
10964
10965 2010-01-17 Richard Guenther <rguenther@suse.de>
10966
10967 PR middle-end/42248
10968 * function.c (split_complex_args): Take a VEC to modify.
10969 (assign_parms_augmented_arg_list): Build a VEC instead of
10970 a chain of PARM_DECLs.
10971 (assign_parms_unsplit_complex): Take a VEC of arguments.
10972 Do not fixup unmodified parms.
10973 (assign_parms): Deal with the VEC.
10974 (gimplify_parameters): Likewise.
10975
10976 2010-01-17 Richard Guenther <rguenther@suse.de>
10977
10978 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
10979 node existence check.
10980 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
10981 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
10982 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
10983 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
10984 (gimple_execute_on_growing_pred): Likewise.
10985
10986 2010-01-17 Richard Guenther <rguenther@suse.de>
10987
10988 PR tree-optimization/42773
10989 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
10990 (compute_antic_aux): Likewise.
10991 (compute_partial_antic_aux): Likewise.
10992
10993 2010-01-17 Jie Zhang <jie.zhang@analog.com>
10994
10995 PR debug/42767
10996 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
10997 and US_TRUNCATE.
10998
10999 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
11000
11001 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
11002 appearance.
11003
11004 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
11005 Fix markup for strict argument.
11006
11007 (TARGET_SCHED_REORDER2): Fix argument types.
11008
11009 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
11010 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
11011
11012 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
11013 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
11014
11015 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
11016 Add argument name.
11017
11018 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
11019 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
11020 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
11021 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
11022 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
11023
11024 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
11025
11026 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
11027
11028 (TARGET_ASM_RELOC_RW_MASK): Add return type.
11029 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
11030
11031 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
11032
11033 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
11034 Use prototype.
11035
11036 (TARGET_ASM_NAMED_SECTION): Fix argument list.
11037
11038 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
11039 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
11040
11041 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
11042
11043 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
11044
11045 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
11046 referring to it. Fix language.
11047
11048 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
11049
11050 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
11051
11052 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
11053
11054 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
11055
11056 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
11057 '@var{stream}. Remove stray 'and'.
11058
11059 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
11060
11061 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
11062
11063 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
11064
11065 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
11066 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
11067
11068 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
11069 Fix description of return value.
11070 Rename argument "sz" to "len."
11071
11072 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
11073 Clarify meaning of 'true' return value.
11074
11075 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
11076
11077 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
11078 rep_mode versus mode_rep.
11079
11080 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
11081
11082 (TARGET_BUILTIN_DECL): Fix name.
11083
11084 (TARGET_COMMUTATIVE_P): Fix type of first argument.
11085
11086 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
11087
11088 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
11089
11090 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
11091
11092 (TARGET_RELAXED_ORDERING): Use @deftypevr.
11093
11094 (TARGET_GET_DRAP_RTX): Note that this is a hook.
11095 Clarify language.
11096
11097 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
11098 Rename argument tm_fn to md_fn.
11099
11100 (TARGET_OPTION_PRINT): Fix argument list.
11101
11102 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
11103
11104 PR target/42664
11105 * config/i386/i386.c (ix86_fixup_binary_operands):
11106 Revert FMA4 fixup of operands.
11107
11108 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11109
11110 PR gcc/42525
11111 * Makefile.in (write_entries_to_file, install-plugin):
11112 Use \012 instead of \n with tr.
11113
11114 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
11115
11116 * configure.ac (HAVE_AS_REF): New C macro.
11117 * configure: Regenerate.
11118 * config.in: Likewise.
11119 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
11120 if HAVE_AS_REF.
11121 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
11122 if HAVE_AS_REF.
11123
11124 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
11125
11126 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
11127
11128 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
11129
11130 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
11131
11132 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
11133
11134 (TARGET_IN_SMALL_DATA_P): Fix argument type.
11135
11136 (TARGET_BINDS_LOCAL_P): Fix argument type.
11137
11138 (TARGET_ASM_FILE_END): Use prototype.
11139
11140 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
11141
11142 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
11143
11144 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
11145
11146 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
11147
11148 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
11149 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
11150
11151 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
11152 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
11153
11154 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
11155 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
11156 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
11157 (TARGET_ADDR_SPACE_CONVERT): Likewise.
11158
11159 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
11160
11161 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
11162
11163 (TARGET_INIT_BUILTINS): Use prototype.
11164
11165 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
11166 Put 'const char *' in braces. Fix parameter types.
11167 (TARGET_INVALID_CONVERSION): Fix parameter types.
11168 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
11169 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
11170
11171 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
11172 Fix argument type.
11173
11174 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
11175
11176 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
11177
11178 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
11179
11180 * doc/tm.texi (TARGET_HELP): Fix return type.
11181
11182 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
11183 in braces. Fix argument types.
11184
11185 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
11186
11187 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
11188
11189 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
11190
11191 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
11192 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
11193
11194 (TARGET_MANGLE_TYPE): Fix argument types.
11195
11196 (TARGET_IRA_COVER_CLASSES): Use prototype.
11197
11198 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
11199
11200 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
11201
11202 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
11203
11204 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
11205
11206 (TARGET_CALLEE_COPIES): Fix argument types.
11207
11208 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
11209
11210 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
11211
11212 (TARGET_FUNCTION_VALUE): Fix argument types.
11213
11214 (TARGET_RETURN_IN_MSB): Fix argument type.
11215
11216 (TARGET_RETURN_IN_MEMORY): Fix argument types.
11217
11218 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
11219
11220 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
11221
11222 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
11223 agree with return type.
11224
11225 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
11226
11227 2010-01-15 Jing Yu <jingyu@google.com>
11228
11229 PR rtl-optimization/42691
11230 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
11231 a pseudo to a constant and are merged, and adjust comments.
11232
11233 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
11234
11235 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
11236
11237 2010-01-15 Richard Guenther <rguenther@suse.de>
11238
11239 PR middle-end/42739
11240 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
11241 labels of computed or non-local gotos to the destination.
11242 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
11243 landing pad label is the first label.
11244
11245 2010-01-15 Richard Guenther <rguenther@suse.de>
11246
11247 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
11248
11249 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11250
11251 PR target/42747
11252 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
11253 to allow generation of the xssqrtdp instruction on power7.
11254 (sqrtdf2_fpr): Ditto.
11255
11256 2010-01-14 Jakub Jelinek <jakub@redhat.com>
11257
11258 PR middle-end/42674
11259 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
11260 functions with noreturn attribute.
11261
11262 PR c++/42608
11263 * varasm.c (declare_weak): Add weak attribute to decl if it
11264 doesn't have one already.
11265 (assemble_external): Only add decls to weak_decls if they also
11266 have weak attribute.
11267
11268 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
11269
11270 * var-tracking.c (var_reg_delete): Don't delete the association
11271 between REGs and values or one-part variables if the register
11272 isn't clobbered.
11273
11274 2010-01-14 Jakub Jelinek <jakub@redhat.com>
11275
11276 PR debug/42657
11277 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
11278 because its first operand is a non-localized variable.
11279
11280 2010-01-14 Martin Jambor <mjambor@suse.cz>
11281
11282 PR tree-optimization/42706
11283 * tree-sra.c (encountered_recursive_call): New variable.
11284 (encountered_unchangable_recursive_call): Likewise.
11285 (sra_initialize): Initialize both new variables.
11286 (callsite_has_enough_arguments_p): New function.
11287 (scan_function): Call decl and flags check only for IPA-SRA, check
11288 whether there is a recursive call and whether it has enough arguments.
11289 (all_callers_have_enough_arguments_p): New function.
11290 (convert_callers): Look for recursive calls only when
11291 encountered_recursive_call is set.
11292 (ipa_early_sra): Bail out either if
11293 !all_callers_have_enough_arguments_p or
11294 encountered_unchangable_recursive_call.
11295
11296 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11297
11298 * sel-sched.c: Add 2010 to copyright years.
11299 * sel-sched-ir.c: Likewise.
11300 * sel-sched-ir.h: Likewise.
11301
11302 2010-01-14 Martin Jambor <mjambor@suse.cz>
11303
11304 PR tree-optimization/42714
11305 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
11306 constructors specially.
11307
11308 2010-01-14 Andi Kleen <ak@linux.intel.com>
11309
11310 * config/i386/drivers-i386.c (detect_caches_intel):
11311 Add l2sizekb parameter and fill in.
11312 (host_detect_local_cpu): Add l2sizekb, fill in.
11313 Add Atom small cache heuristic.
11314
11315 2010-01-14 Andi Kleen <ak@linux.intel.com>
11316
11317 * config/i386/drivers-i386.c (detect_caches_cpuid4):
11318 Add level3 parameter and fill in.
11319 (detect_caches_intel): Handle level3 cache.
11320
11321 2010-01-14 Andi Kleen <ak@linux.intel.com>
11322
11323 * config/i386/drivers-i386.c (host_detect_local_cpu):
11324 Fix core duo detection.
11325
11326 2010-01-14 Andi Kleen <ak@linux.intel.com>
11327
11328 * config/i386/drivers-i386.c (host_detect_local_cpu):
11329 Fix Atom detection.
11330
11331 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11332
11333 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
11334 (rs6000_variable_issue_1): this. Use...
11335 (rs6000_variable_issue): here. Reimplement. Print debug info.
11336
11337 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11338
11339 * sel-sched-ir.c (sel_restore_other_notes): Rename to
11340 sel_restore_notes. Update all callers. Call reemit_notes
11341 for all insns.
11342
11343 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11344
11345 PR rtl-optimization/42246
11346 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
11347 loops.
11348
11349 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11350
11351 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
11352 all successors is the same as number of successors in current region.
11353
11354 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11355
11356 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
11357 to rename is not separable. Otherwise check that its LHS is not NULL.
11358
11359 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11360
11361 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
11362
11363 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11364
11365 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
11366 available registers when failed to discover LHS register class.
11367 Fix indentation. Update comment.
11368
11369 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11370 Alexander Monakov <amonakov@ispras.ru>
11371
11372 PR rtl-optimization/42389
11373 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
11374 to can_issue_more.
11375 (advance_state_on_fence): Likewise.
11376 (sel_target_adjust_priority): Print debug output only when
11377 sched_verbose >= 4, not 2.
11378 (get_expr_cost): Do not issue all unique insns on the next cycle.
11379 (fill_insns): Initialize can_issue_more from the value saved
11380 with the fence.
11381 * sel-sched-ir.c (flist_add): New parameter issue_more.
11382 Init FENCE_ISSUE_MORE with it.
11383 (merge_fences): Likewise.
11384 (init_fences): Update call to flist_add.
11385 (add_to_fences, add_clean_fence_to_fences)
11386 (add_dirty_fence_to_fences): Likewise.
11387 (move_fence_to_fences): Update call to merge_fences.
11388 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
11389 sched groups.
11390 * sel-sched-ir.h (struct _fence): New field issue_more.
11391 (FENCE_ISSUE_MORE): New accessor macro.
11392
11393 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11394
11395 PR rtl-optimization/42388
11396 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
11397 that have no predecessors nor successors. Do not call move_bb_info
11398 for empty blocks outside of current region.
11399
11400 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11401
11402 PR rtl-optimization/42294
11403 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
11404 * sel-sched.c (move_exprs_to_boundary): Transitively add all
11405 originators' originators.
11406
11407 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11408
11409 PR rtl-optimization/39453
11410 PR rtl-optimization/42246
11411 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
11412 for pipelining_p.
11413 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
11414
11415 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11416 Alexander Monakov <amonakov@ispras.ru>
11417
11418 PR middle-end/42245
11419 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
11420 (maybe_tidy_empty_bb): ... here. Make static. Add new
11421 argument. Update all callers.
11422 (tidy_control_flow): ... and here. Recompute topological order
11423 of basic blocks in region if necessary.
11424 (sel_redirect_edge_and_branch): Change return type. Return true
11425 if topological order might have been invalidated.
11426 (purge_empty_blocks): Export and move from...
11427 * sel-sched.c (purge_empty_blocks): ... here.
11428 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
11429 (maybe_tidy_empty_bb): Delete prototype.
11430 (purge_empty_blocks): Declare.
11431
11432 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11433
11434 PR rtl-optimization/42249
11435 * sel-sched.c (try_replace_dest_reg): When chosen register
11436 and original register is the same, do not bail out early, but
11437 still check all original insns for validity of replacing destination
11438 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
11439 in this case.
11440
11441 2010-01-14 Jakub Jelinek <jakub@redhat.com>
11442
11443 PR c/42721
11444 Port from no-undefined-overflow branch:
11445 2009-03-09 Richard Guenther <rguenther@suse.de>
11446
11447 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
11448
11449 2010-01-14 Richard Guenther <rguenther@suse.de>
11450
11451 PR lto/42665
11452 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
11453
11454 2010-01-14 Ira Rosen <irar@il.ibm.com>
11455
11456 PR tree-optimization/42709
11457 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
11458 as scalar type in creation of constant vector operand.
11459
11460 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11461
11462 PR testsuite/42414
11463 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
11464 (check-parallel-%): Match `testsuite' directory component only
11465 at the end.
11466
11467 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
11468
11469 PR translation/39521
11470 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
11471 strings with _().
11472
11473 2010-01-13 Richard Guenther <rguenther@suse.de>
11474
11475 PR tree-optimization/42730
11476 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
11477 offset zero.
11478
11479 2010-01-13 Steve Ellcey <sje@cup.hp.com>
11480
11481 PR target/pr42542
11482 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
11483 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
11484 them signed.
11485
11486 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
11487
11488 * config/bfin/libgcc-bfin.ver: Regenerate based on current
11489 libgcc-std.ver. Add entries for ___smulsi3_highpart and
11490 ___umulsi3_highpart.
11491
11492 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
11493 rather than schedule_insns if the pass is enabled.
11494
11495 2010-01-13 Martin Jambor <mjambor@suse.cz>
11496
11497 PR tree-optimization/42704
11498 * tree-sra.c (sra_modify_assign): Do not delete assignments to
11499 SSA_NAMEs.
11500
11501 2010-01-13 Martin Jambor <mjambor@suse.cz>
11502
11503 PR tree-optimization/42703
11504 * tree-sra.c (analyze_access_subtree): Check that we can build a
11505 reference to the original data within the aggregate.
11506
11507 2010-01-13 Richard Guenther <rguenther@suse.de>
11508
11509 PR tree-optimization/42705
11510 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
11511
11512 2010-01-13 Richard Guenther <rguenther@suse.de>
11513
11514 PR middle-end/42716
11515 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
11516
11517 2010-01-13 Jakub Jelinek <jakub@redhat.com>
11518
11519 PR debug/41371
11520 * var-tracking.c (values_to_unmark): New variable.
11521 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
11522 values_to_unmark vector. Moved body to...
11523 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
11524 instead queue it into values_to_unmark vector.
11525 (vt_find_locations): Free values_to_unmark vector.
11526
11527 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
11528
11529 * config/s390/s390.c (override_options): Set
11530 default of max-pending-list-length to 256
11531
11532 2010-01-13 Richard Guenther <rguenther@suse.de>
11533
11534 PR lto/42678
11535 * tree-pass.h (PROP_gimple_lcx): New.
11536 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
11537 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
11538 before the final cleanup_eh.
11539 (dump_properties): Dump PROP_gimple_lcx.
11540 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
11541 (tree_lower_complex_O0): Remove.
11542 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
11543 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
11544 tree_lower_complex, schedule TODO_update_ssa.
11545 * lto-streamer-out.c (output_function): Stream the functions
11546 properties.
11547 * lto-streamer-in.c (input_function): Likewise.
11548 (lto_read_body): Do not override them here.
11549
11550 2010-01-12 Joseph Myers <joseph@codesourcery.com>
11551
11552 PR c/42708
11553 * c-typeck.c (build_c_cast): Fold value cast to union type before
11554 wrapping it in a CONSTRUCTOR.
11555
11556 2010-01-12 Jakub Jelinek <jakub@redhat.com>
11557
11558 PR rtl-optimization/42699
11559 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
11560 involved.
11561
11562 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11563
11564 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11565 SUBTARGET_WARN_UNUSED_SPEC): Move ...
11566 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11567 SUBTARGET_WARN_UNUSED_SPEC): ... here
11568 * config/mips/iris5.h (LIBGCC_SPEC): Define.
11569
11570 2010-01-12 Julian Brown <julian@codesourcery.com>
11571
11572 * config/arm/neon-schedgen.ml (Utils): Don't try to
11573 open missing module.
11574 (find_with_result): New.
11575
11576 2010-01-12 Jakub Jelinek <jakub@redhat.com>
11577
11578 PR debug/42662
11579 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
11580 sharing when canonicalizing ({lt,ge}u (plus a b) b).
11581
11582 PR tree-optimization/42645
11583 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
11584 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
11585 decl_map, set processing_debug_stmt to -1 and return name without
11586 any remapping.
11587
11588 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
11589
11590 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
11591 binutils version, and reword target configuration description.
11592
11593 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
11594
11595 * config/avr/avr.h (LINKER_NAME): Remove.
11596
11597 2010-01-11 Janis Johnson <janis187@us.ibm.com>
11598
11599 PR target/42416
11600 * config/rs6000/rs6000.c (rs6000_override_options): On targets
11601 that support VSX, warn for -mno-altivec if vsx is not disabled,
11602 and disable vsx.
11603
11604 2010-01-11 Joseph Myers <joseph@codesourcery.com>
11605 Shujing Zhao <pearly.zhao@oracle.com>
11606
11607 PR translation/42469
11608 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
11609 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
11610 character between option name and help text.
11611 * c.opt (imultilib): Likewise.
11612
11613 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
11614
11615 * lto-streamer-out.c (output_unreferenced_globals): Output static
11616 variables.
11617
11618 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
11619
11620 PR rtl-optimization/42621
11621 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
11622 optimizing for size.
11623 (duplicate_computed_gotos): Remove now-redundant check.
11624
11625 2010-01-10 Steve Ellcey <sje@cup.hp.com>
11626
11627 PR target/37454
11628 * configure.ac: Save and restore LDFLAGS and LIBS
11629 * configure: Regenerate.
11630
11631 2010-01-10 Richard Guenther <rguenther@suse.de>
11632
11633 PR middle-end/42667
11634 * builtins.c (fold_builtin_strlen): Add type argument and
11635 convert the resulting length to it.
11636 (fold_builtin_1): Adjust.
11637
11638 2010-01-09 Jakub Jelinek <jakub@redhat.com>
11639
11640 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
11641 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
11642 1 insn.
11643 (num_insns_constant_wide): Adjust for that change.
11644
11645 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11646
11647 PR debug/42631
11648 * web.c (union_defs): Add used argument, to combine uses of
11649 uninitialized regs.
11650 (entry_register): Adjust type and tests of used argument.
11651 (web_main): Widen used for new use. Pass it to union_defs.
11652 * df.h (union_defs): Adjust prototype.
11653
11654 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11655
11656 PR debug/42630
11657 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
11658 uses in new incoming argument. Free body.
11659 (reset_debug_uses_in_loop): New.
11660 (analyze_insn_to_expand_var): Call the latter if the former found
11661 anything. Fix whitespace. Reject invalid dest overlaps before
11662 going through all insns in the loop.
11663
11664 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11665
11666 PR debug/42629
11667 * haifa-sched.c (dying_use_p): Debug insns don't count.
11668
11669 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11670
11671 PR middle-end/42363
11672 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
11673 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
11674 (verify_gimple_call): Reject LHS in noreturn calls.
11675
11676 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11677
11678 PR debug/42604
11679 PR debug/42395
11680 * tree-vect-loop-manip.c (adjust_info): New type.
11681 (adjust_vec): New pointer to vector.
11682 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
11683 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
11684 (slpeel_update_phis_for_duplicate_loop): Use them.
11685 (slpeel_update_phi_nodes_for_guard1): Likewise.
11686 (slpeel_update_phi_nodes_for_guard2): Likewise.
11687 (slpeel_tree_peel_loop_to_edge): Likewise.
11688 (vect_update_ivs_after_vectorizer): Likewise.
11689
11690 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11691
11692 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
11693 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
11694
11695 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11696
11697 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
11698 bogus uninitialized warning.
11699
11700 2010-01-09 Richard Guenther <rguenther@suse.de>
11701
11702 PR middle-end/42512
11703 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
11704 the evolution is compatible with the initial condition.
11705
11706 2010-01-09 Jakub Jelinek <jakub@redhat.com>
11707
11708 * gcc.c (process_command): Update copyright notice dates.
11709 * gcov.c (print_version): Likewise.
11710 * gcov-dump.c (print_version): Likewise.
11711 * mips-tfile.c (main): Likewise.
11712 * mips-tdump.c (main): Likewise.
11713
11714 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
11715
11716 PR target/41885
11717 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
11718 (rotlhi3): Delete.
11719 (rotlhi3_8): Delete.
11720 (rotlsi3): Delete.
11721 (rotlsi3_8): Delete.
11722 (rotlsi3_16): Delete.
11723 (rotlsi3_24): Delete.
11724 (rotl<mode>3): New.
11725 (*rotw<mode>3): New.
11726 (*rotb<mode>3): New.
11727 * config/avr/avr.c (avr_rotate_bytes): New function.
11728 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
11729
11730 2010-01-08 Steve Ellcey <sje@cup.hp.com>
11731
11732 PR target/37454
11733 * configure.ac: Modify -rdynamic check.
11734 * configure: Regenerate.
11735
11736 2010-01-08 DJ Delorie <dj@redhat.com>
11737
11738 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
11739 register popping order.
11740
11741 2010-01-08 Richard Guenther <rguenther@suse.de>
11742
11743 PR lto/42528
11744 * c.opt (fsigned-char): Also let LTO handle this option.
11745 (funsigned-char): Likewise.
11746
11747 2010-01-07 Richard Guenther <rguenther@suse.de>
11748
11749 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
11750 (gimple_op): Likewise.
11751 (gimple_op_ptr): Likewise.
11752 (gimple_assign_set_lhs): Remove gcc_assert.
11753 (gimple_assign_set_rhs1): Likewise.
11754 (gimple_assign_set_rhs2): Likewise.
11755 (gimple_call_set_lhs): Likewise.
11756 (gimple_call_set_fn): Likewise.
11757 (gimple_call_set_fndecl): Likewise.
11758 (gimple_call_fndecl): Likewise.
11759 (gimple_call_return_type): Likewise.
11760 (gimple_call_set_chain): Likewise.
11761 (gimple_call_num_args): Likewise.
11762 (gimple_call_set_arg): Likewise.
11763 (gimple_cond_set_code): Likewise.
11764 (gimple_cond_set_lhs): Likewise.
11765 (gimple_cond_set_rhs): Likewise.
11766 (gimple_cond_set_true_label): Likewise.
11767 (gimple_cond_set_false_label): Likewise.
11768 (gimple_label_set_label): Likewise.
11769 (gimple_goto_set_dest): Likewise.
11770 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
11771 (gimple_debug_bind_get_value): Likewise.
11772 (gimple_debug_bind_get_value_ptr): Likewise.
11773 (gimple_debug_bind_set_var): Likewise.
11774 (gimple_debug_bind_set_value): Likewise.
11775 (gimple_debug_bind_reset_value): Likewise.
11776 (gimple_debug_bind_has_value_p): Likewise.
11777 (gimple_return_retval_ptr): Remove gcc_assert.
11778 (gimple_return_retval): Likewise.
11779 (gimple_return_set_retval): Likewise.
11780 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
11781 (safe_referenced_var_iterator): Remove.
11782 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
11783 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
11784 (fill_referenced_var_vec): Remove.
11785 (first_readonly_imm_use): Remove redundant gcc_assert.
11786 (phi_arg_index_from_use): Combine gcc_asserts.
11787 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
11788 (first_imm_use_stmt): Remove redundant gcc_assert.
11789 * tree-cfg.c (verify_gimple_call): Verify function and chain
11790 operands. Verify arguments.
11791 (verify_types_in_gimple_stmt): Verify condition code and labels.
11792
11793 2010-01-07 Richard Guenther <rguenther@suse.de>
11794
11795 PR tree-optimization/42641
11796 * sese.c (rename_map_elt_info): Use the SSA name version, do
11797 not hash pointers.
11798
11799 2010-01-07 Jakub Jelinek <jakub@redhat.com>
11800
11801 PR tree-optimization/42625
11802 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
11803 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
11804
11805 2010-01-07 Duncan Sands <baldrick@free.fr>
11806
11807 * Makefile.in (PLUGIN_HEADERS): Add version.h.
11808
11809 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
11810
11811 PR target/42511
11812 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
11813 note itself is not function_invariant_p.
11814
11815 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
11816
11817 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
11818 Do not add the DF_NOTE problem.
11819 * store-motion.c (execute_rtl_store_motion): Likewise.
11820
11821 2010-01-07 Martin Jambor <mjambor@suse.cz>
11822
11823 PR tree-optimization/42157
11824 * tree-sra.c (compare_access_positions): Stabilize sort if both
11825 accesses have integer types, return zero immediately if they are the
11826 same.
11827
11828 2010-01-06 Richard Henderson <rth@redhat.com>
11829
11830 PR middle-end/41883
11831 * haifa-sched.c (add_to_note_list): Merge into ...
11832 (concat_note_lists): ... here, and ...
11833 (unlink_other_notes, rm_other_notes): Merge into...
11834 (remove_notes): ... here. Create REG_SAVE_NOTEs for
11835 NOTE_INSN_EPILOGUE_BEG.
11836
11837 2010-01-06 Richard Guenther <rguenther@suse.de>
11838
11839 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
11840 not inline regular functions into always-inline functions.
11841
11842 2010-01-06 Nick Clifton <nickc@redhat.com>
11843
11844 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
11845 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
11846 used together.
11847 (OVERRIDE_OPTIONS): Delete.
11848 (OPTIMIZATION_OPTIONS): Define.
11849 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
11850 * config/rx/rx.c (rx_handle_option): Issue an error message if
11851 -mcpu=rx200 and -fpu are used together.
11852 (rx_set_optimization_options): New function. Issue an error
11853 message if an optimization attribute attempts to reset the FPU/
11854 math optimization pairing.
11855 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
11856 * config/rx/rx.opt: Set the default to 32-bit doubles.
11857 * config/rx/t-rx: Add multilibs for -nofpu option.
11858 * doc/invoke.texi: Update documentation of RX options.
11859
11860 2010-01-06 Richard Guenther <rguenther@suse.de>
11861
11862 * tree-ssa-pre.c (name_to_id): New global.
11863 (alloc_expression_id): Simplify SSA name handling.
11864 (lookup_expression_id): Likewise.
11865 (init_pre): Zero name_to_id.
11866 (fini_pre): Free it.
11867
11868 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
11869
11870 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
11871
11872 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
11873
11874 PR target/42542
11875 * config/i386/sse.md (smaxv2di3): New.
11876 (umaxv2di3): Likewise.
11877 (sminv2di3): Likewise.
11878 (uminv2di3): Likewise.
11879
11880 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
11881
11882 PR target/42564
11883 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
11884 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
11885 (legitimize_tls_address): Likewise.
11886 (sparc_tls_referenced_p): Likewise.
11887 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
11888 and adjust calls to legitimize_pic_address.
11889 (legitimate_constant_p) Use sparc_tls_referenced_p.
11890 (legitimate_pic_operand_p): Likewise.
11891 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
11892 (sparc_tls_symbol_ref_1): Delete.
11893 (sparc_tls_referenced_p): Make static, recognize specific patterns.
11894 (legitimize_tls_address): Make static, handle CONST patterns.
11895 (legitimize_pic_address): Make static, remove unused parameter and
11896 adjust recursive calls.
11897 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
11898 and adjust call to legitimize_pic_address.
11899 (sparc_output_mi_thunk): Likewise.
11900
11901 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
11902 H.J. Lu <hongjiu.lu@intel.com>
11903
11904 PR target/42542
11905 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
11906 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
11907 operands to make them signed.
11908
11909 Revert:
11910 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
11911
11912 PR target/42542
11913 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
11914 GTU to GT for V4SI and V2DI.
11915
11916 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
11917 (umin<mode>3): Removed.
11918 (uminv8hi3): New.
11919 (uminv4si3): Likewise.
11920
11921 2010-01-05 Martin Jambor <mjambor@suse.cz>
11922
11923 PR tree-optimization/42462
11924 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
11925 current_function_decl to helper functions and macros.
11926
11927 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11928
11929 PR bootstrap/41771
11930 * flags.h: Don't include real.h.
11931 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
11932 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
11933 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
11934 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
11935 * dominance.c: Update copyright.
11936 * gimple.c (walk_gimple_op): Remove inline.
11937 * tree-ssa-reassoc.c: Include real.h.
11938 * Makefile.in (FLAGS_H): Remove $(REAL_H).
11939 (tree-ssa-reassoc.o): Depend on $(REAL_H).
11940
11941 2010-01-05 Nick Clifton <nickc@redhat.com>
11942
11943 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
11944 register to push into the stack frame when the accumulator has to
11945 be saved during interrupts.
11946
11947 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
11948
11949 * doc/invoke.texi: Remove the documentation about option
11950 -Wunreachable-code.
11951 * common.opt (Wunreachable-code): Preserved for backward
11952 compatibility.
11953 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
11954 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
11955 the backward compatibility flag section.
11956
11957 2010-01-05 Richard Guenther <rguenther@suse.de>
11958
11959 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
11960
11961 2010-01-05 Jakub Jelinek <jakub@redhat.com>
11962
11963 PR other/42611
11964 * cfgexpand.c (expand_one_var): Diagnose too large variables.
11965
11966 PR tree-optimization/42508
11967 * tree-sra.c (convert_callers): Check for recursive call
11968 by comparing cgraph nodes instead of decls.
11969 (modify_function): Call ipa_modify_formal_parameters also
11970 on all same_body aliases.
11971
11972 * cgraphunit.c (cgraph_materialize_all_clones): Compare
11973 cgraph nodes when checking for same_body aliases.
11974
11975 2010-01-05 Richard Guenther <rguenther@suse.de>
11976
11977 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
11978 allocation and lookup.
11979 (get_or_alloc_expr_for_constant): Likewise.
11980 (phi_translate): Sink allocation.
11981
11982 2010-01-04 Richard Guenther <rguenther@suse.de>
11983
11984 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
11985 a new entry only if needed.
11986 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
11987 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
11988 hashtable lookup.
11989 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
11990 the result array.
11991 (phi_translate): Handle CONSTANTs early.
11992
11993 2010-01-04 Martin Jambor <mjambor@suse.cz>
11994
11995 PR tree-optimization/42398
11996 * tree-sra.c (struct access): Removed flag grp_different_types.
11997 (dump_access): Do not dump the removed flag.
11998 (sort_and_splice_var_accesses): Do not set the removed flag.
11999 (sra_modify_expr): Check for type compatibility directly.
12000
12001 2010-01-04 Martin Jambor <mjambor@suse.cz>
12002
12003 PR tree-optimization/42366
12004 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
12005 edges with variable number of parameters.
12006 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
12007 flag instead of asserting it.
12008 (ipa_read_node_info): Read uses_analysis_done flag.
12009
12010 2010-01-04 Richard Guenther <rguenther@suse.de>
12011
12012 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
12013 iterative_hash_* as intended.
12014 (vn_reference_compute_hash): Likewise. Simplify hashing
12015 SSA names.
12016 (vn_reference_lookup_2): Likewise.
12017 (vn_nary_op_compute_hash): Likewise.
12018 (vn_phi_compute_hash): Likewise.
12019 (expressions_equal_p): Remove strange code.
12020 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
12021 (pre_expr_hash): Likewise. Simplify hashing SSA names.
12022 (bitmap_insert_into_set_1): Take value-id as parameter.
12023 (add_to_value): Pass it.
12024 (bitmap_insert_into_set): Likewise.
12025 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
12026
12027 2010-01-04 Jakub Jelinek <jakub@redhat.com>
12028
12029 PR driver/42442
12030 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
12031 (do_self_spec): For switches with SWITCH_IGNORE set set also
12032 SWITCH_IGNORE_PERMANENTLY.
12033 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
12034 of SWITCH_IGNORE.
12035
12036 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
12037
12038 * lto-streamer-out.c (output_unreferenced_globals): Output the full
12039 tree of an unreferenced global var.
12040
12041 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
12042
12043 PR target/42542
12044 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
12045 GTU to GT for V4SI and V2DI.
12046
12047 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
12048 (umin<mode>3): Removed.
12049 (uminv8hi3): New.
12050 (uminv4si3): Likewise.
12051
12052 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
12053
12054 PR lto/42581
12055 * collect2.c (main): Turn on trace in collect2 if -v is passed
12056 to gcc with LTO.
12057
12058 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
12059
12060 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
12061 description of expression operand.
12062
12063 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
12064
12065 * configure.ac: Add install-html to target_list for Make-hooks.
12066 * configure: Regenerate.
12067 * fortran/Make-lang.in (F95_HTMLFILES): New.
12068 (fortran.html): Use it.
12069 (fortran.install-html): New.
12070 * Makefile.in (install-html): Add lang.install-html.
12071 * java/Make-lang.in (JAVA_HTMLFILES): New.
12072 (java.html): Use it.
12073 (java.install-html): New.
12074 * objc/Make-lang.in (objc.install-html): New.
12075 * objcp/Make-lang.in (obj-c++.install-html): New.
12076 * cp/Make-lang.in (c++.install-html): New.
12077 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
12078 * lto/Make-lang.in (lto.install-html): New.
12079
12080 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
12081
12082 PR lto/42520
12083 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
12084
12085 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
12086
12087 PR rtl-optimization/41862
12088 * store-motion.c (store_killed_in_insn, compute_store_table,
12089 remove_reachable_equiv_notes, replace_store_insn,
12090 build_store_vectors): Ignore all DEBUG_INSNs.
12091
12092 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
12093
12094 PR lto/41564
12095 * common.opt: Add dumpdir.
12096
12097 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
12098 isn't specified.
12099 (option_map): Add --dumpdir.
12100
12101 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
12102
12103 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
12104
12105 * opts.c (decode_options): Try dump_dir_name first if
12106 dump_base_name isn't an absolute path.
12107 (common_handle_option): Handle OPT_dumpdir.
12108
12109 * toplev.c (dump_dir_name): New.
12110 (print_switch_values): Also ignore -dumpdir.
12111
12112 * toplev.h (dump_dir_name): New.
12113
12114 2010-01-03 Richard Guenther <rguenther@suse.de>
12115
12116 PR tree-optimization/42589
12117 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
12118 double-word expansion of bswap32.
12119
12120 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
12121
12122 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
12123 with BLOCK_FOR_INSN.
12124 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
12125 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
12126 noce_process_if_block): Likewise.
12127 * gcse.c (compute_local_properties, insert_expr_in_table,
12128 insert_set_in_table, canon_list_insert, find_avail_set,
12129 pre_insert_copy_insn): Likewise.
12130
12131 * basic-block.h (BLOCK_NUM): Move from here...
12132 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
12133
12134 2010-01-03 Richard Guenther <rguenther@suse.de>
12135
12136 PR tree-optimization/42438
12137 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
12138 contains_may_not_return_call flag.
12139 (BB_MAY_NOTRETURN): New.
12140 (valid_in_sets): Trapping nary operations are not valid
12141 in blocks that may not return.
12142 (insert_into_preds_of_block): Remove check for trapping expressions.
12143 (compute_avail): Compute also BB_MAY_NOTRETURN.
12144
12145 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
12146
12147 * doc/invoke.texi: Add 2010 to copyright years.
12148
12149 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
12150
12151 * config/sparc/sparc.c: Fix formatting nits.
12152
12153 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
12154 Alexander Monakov <amonakov@ispras.ru>
12155
12156 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
12157
12158 2010-01-02 Richard Guenther <rguenther@suse.de>
12159
12160 PR middle-end/42577
12161 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
12162 (simplify_switch_using_ranges): Mark to be removed edges
12163 as non-executable.
12164
12165 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12166
12167 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
12168
12169 * collect2.c (scan_libraries): Add missing argument in call to
12170 scan_prog_file.
12171
12172 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
12173
12174 PR target/42448
12175 * config/alpha/predicates.md (aligned_memory_operand): Return false
12176 for CQImode.
12177 (unaligned_memory_operand): Return true for CQImode.
12178 * config/alpha/alpha.c (get_aligned_mem): Assert that location
12179 doesn not cross aligned SImode word boundary.
12180
12181 2010-01-02 Anatoly Sokolov <aesok@post.ru>
12182
12183 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
12184 Remove.
12185 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
12186 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
12187
12188 2010-01-02 Richard Guenther <rguenther@suse.de>
12189
12190 PR lto/41597
12191 * toplev.c (compile_file): Emit LTO marker properly. Change
12192 it to __gnu_lto_v1.
12193 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
12194
12195 2010-01-01 Richard Guenther <rguenther@suse.de>
12196
12197 PR debug/42455
12198 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
12199
12200 2010-01-01 Richard Guenther <rguenther@suse.de>
12201
12202 PR c/42570
12203 * c-decl.c (grokdeclarator): For zero-size arrays force
12204 structural equality checks as layout_type does.
12205
12206 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
12207
12208 * builtins.c: Update copyright to 2010.
12209
12210 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
12211
12212 PR lto/42531
12213 * lto-streamer-out.c (produce_asm): Revert the last change.
12214 (copy_function): Likewise.
12215
12216 * lto-streamer.c (lto_get_section_name): Skip any leading
12217 asterisk in name.
12218
12219 2010-01-01 Richard Guenther <rguenther@suse.de>
12220
12221 PR middle-end/42559
12222 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
12223 for LABEL_DECLs.
12224
12225 \f
12226 Copyright (C) 2010 Free Software Foundation, Inc.
12227
12228 Copying and distribution of this file, with or without modification,
12229 are permitted in any medium without royalty provided the copyright
12230 notice and this notice are preserved.