only use _darwin10_Unwind_FindEnclosingFunction on darwin >= 10
[gcc.git] / gcc / ChangeLog
1 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
2
3 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
4 Dunmmy function with NULL return unless the target is
5 OSX >= 10.6 (Darwin10).
6
7 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
8
9 * gcc.c (spec_function): Add remove-outfile.
10 (remove_outfile_spec_function): New function.
11 * config/darwin.h (LINK_SPEC): Add removal of
12 -ldl, -lm and -lpthread.
13 * invoke.texi (replace-outfile): Document.
14
15 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
16
17 PR target/45296
18 * reginfo.c (globalize_reg): Reject stack registers.
19
20 2010-08-17 Richard Guenther <rguenther@suse.de>
21
22 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
23 list of conditional equivalences.
24 (free_all_edge_infos): Adjust.
25 (record_equivalences_from_incoming_edge): Likewise.
26 (record_cond): Likewise.
27 (build_and_record_new_cond): Likewise.
28 (record_conditions): Likewise.
29 (dom_opt_leave_block): Likewise.
30
31 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
32
33 * doc/invoke.texi (ms-extension): Add documentation.
34
35 2010-08-17 Richard Guenther <rguenther@suse.de>
36
37 * fold-const.c (fold_comparison): Strip nops inside
38 POINTER_PLUS_EXPR.
39
40 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
41
42 PR c/40563
43 * c-decl.c (diagnose_uninitialized_cst_member): New function.
44 (finish_decl): Use it to issue a -Wc++-compat warning about
45 uninitialized const field in struct or union.
46
47 (finish_struct): Use strip_array_types.
48
49 2010-08-17 Jakub Jelinek <jakub@redhat.com>
50
51 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
52 functions.
53 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
54 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
55 call block_nreverse here.
56 (blocks_nreverse): Rename decl temporary to block.
57
58 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
59
60 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
61 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
62 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
63 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
64 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
65 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
66 thumb2_iorsi3): Delete.
67 (orsi_notsi_si): No longer a named pattern.
68 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
69 * config/arm/predicates.md (shift_amount_operand): New.
70 (mult_operator): New.
71 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
72 attr enabled): New.
73 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
74 arch matches t2.
75 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
76 (not_shiftsi_compare0): Likewise, renamed from
77 arm_notsi_shiftsi_compare0.
78 (not_shiftsi_compare0_scratch): Likweise, renamed from
79 arm_notsi_shiftsi_compare0_scratch.
80 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
81 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
82 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
83 so that the register alternative is disabled when the shift_operator
84 is MULT. Use "M" as the constraint for constants.
85 (arith_shiftsi splitter): Enable for TARGET_32BIT.
86 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
87 constraint for constants.
88 (arith_shiftsi_compare0_scratch): Likewise.
89 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
90 Handle Thumb2 alternative.
91
92 2010-08-16 Joseph Myers <joseph@codesourcery.com>
93
94 * doc/options.texi (NoDriverArg): Document.
95 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
96 -MDX and -MMDX.
97 * opt-functions.awk (switch_flags): Handle NoDriverArg.
98 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
99 marking for CL_NO_DRIVER_ARG options when in the driver.
100 * opts.h (CL_NO_DRIVER_ARG): Define.
101 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
102 CL_COMMON): Update values.
103
104 2010-08-16 Joseph Myers <joseph@codesourcery.com>
105
106 * common.opt: Add driver options.
107 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
108 * doc/options.texi (Driver, RejectDriver): Document.
109 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
110 print_prog_name, print_multi_directory, print_sysroot,
111 print_multi_os_directory, print_multi_lib,
112 print_sysroot_headers_suffix, report_times, combine_flag,
113 use_pipes, wrapper_string): Remove.
114 (save_switch, driver_unknown_option_callback,
115 driver_wrong_lang_callback, driver_post_handling_callback,
116 driver_handle_option): New.
117 (spec_lang, last_language_n_infiles): Make file-scope static
118 instead of local to process_command.
119 (process_command): Use decode_cmdline_options_to_array and
120 read_cmdline_option for option processing. Compute have_c in
121 prescan of decoded options.
122 * opt-functions.awk (switch_flags): Handle Driver and
123 RejectDriver.
124 (var_type, var_type_struct): Handle Separate options as generating
125 const char * variables.
126 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
127 CL_TARGET to be passed by caller if required.
128 (decode_cmdline_options_to_array): Update comment.
129 * opts.c (complain_wrong_lang): Handle options only valid for the
130 driver.
131 (decode_options): Update call to decode_cmdline_options_to_array.
132 (print_filtered_help): Ignore driver-only options.
133 (print_specific_help): Ignore CL_DRIVER.
134 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
135 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
136 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
137 Update values.
138
139 2010-08-16 Richard Guenther <rguenther@suse.de>
140
141 * tree-cfg.c (verify_types_in_gimple_reference): Verify
142 TARGET_MEM_REF a bit.
143 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
144 (create_mem_ref_raw): Always create TMR_OFFSET, store the
145 alias pointer type via it.
146 (copy_mem_ref_info): Adjust.
147 (maybe_fold_tmr): Likewise.
148 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
149 (reference_alias_ptr_type): Likewise.
150 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
151 adjust documentation of TMR_OFFSET operand.
152 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
153 use the alias pointer type.
154 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
155 initialize mem attrs but the TMR itself.
156 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
157 similar to MEM_REF.
158 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
159 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
160 (unshare_and_remove_ssa_names): Likewise.
161 (copy_ref_info): Adjust.
162 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
163 TARGET_MEM_REF case.
164 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
165 at TMR_ORIGINAL.
166 * tree.h (TMR_ORIGINAL): Remove.
167 * gimple.c (get_base_address): For TARGET_MEM_REF with a
168 symbol return that.
169 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
170 with a symbol.
171 (get_addr_base_and_unit_offset): Likewise.
172 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
173 TARGET_MEM_REFs.
174 (indirect_ref_may_alias_decl_p): Likewise.
175 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
176
177 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
178
179 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
180 with GCC version 4.6, the default setting (when not optimizing
181 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
182 been changed to -fomit-frame-pointer.
183
184 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
185
186 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
187 Darwin10. Do not link libgcc.a for Darwin >= 9.
188
189 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
190
191 * doc/invoke.texi (Warning Options): Fix terminology and markup
192 in the description of how unknown warning options are handled.
193
194 2010-08-15 Ira Rosen <irar@il.ibm.com>
195
196 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
197 in basic blocks.
198 (vect_supportable_dr_alignment): Check alignment for basic blocks.
199 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
200 data references.
201 (vect_bb_vectorization_profitable_p): New function.
202 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
203 check if it's worthwhile to vectorize the basic block.
204
205 2010-08-14 Anatoly Sokolov <aesok@post.ru>
206
207 * reload.h (register_move_cost, memory_move_secondary_cost,
208 secondary_reload_class): Adjust prototype.
209 * rtl.h (reg_class_subset_p): Adjust prototype.
210 * reload.c (secondary_reload_class): Change arguments type from
211 enum reg_class to reg_class_t. Change result type to reg_class_t.
212 * reginfo.c (register_move_cost, reg_class_subset_p): Change
213 arguments type from enum reg_class to reg_class_t.
214 (memory_move_secondary_cost): Change arguments type from
215 enum reg_class to reg_class_t. Change type of saved_flags to
216 reg_class_t.
217
218 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
219 Remove macros.
220 (mips_cost): Remove.
221 (struct mips_rtx_cost_data): Moved to mips.c.
222 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
223 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
224 (mips_cost): Make static.
225 (mips_canonicalize_move_class): Change argument type to reg_class_t.
226 Change result type to reg_class_t.
227 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
228 type from enum reg_class to reg_class_t.
229 (mips_register_move_cost): Make static. Change arguments
230 type from enum reg_class to reg_class_t.
231 (mips_memory_move_cost): New function.
232 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
233
234 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
235
236 PR rtl-optimization/43358
237 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
238 of a single hard register, using simplify_subreg_regno to decide
239 what that register should be.
240
241 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
242
243 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
244 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
245 (loongson_pmull<V_suffix>): Rename to...
246 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
247
248 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
249
250 * gcc/configure.ac: Enable -fomit-frame-pointer on darwin
251 which support dwarf2.
252 * config/i386/i386.c (override_options): Same.
253
254 2010-08-13 Jie Zhang <jie@codesourcery.com>
255
256 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
257
258 2010-08-12 Joseph Myers <joseph@codesourcery.com>
259
260 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
261 -MMD.
262
263 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
264
265 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
266 up dot_prod pattern searching if a stmt is outside the loop.
267
268 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
269 Uros Bizjak <ubizjak@gmail.com>
270
271 * config.gcc: Handle --enable-frame-pointer.
272
273 * configure.ac: Add --enable-frame-pointer.
274 * configure: Regenerated.
275
276 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
277 (override_options): If not configured with --enable-frame-pointer,
278 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
279 optimizing for size), -fasynchronous-unwind-tables and
280 -maccumulate-outgoing-args by default.
281
282 2010-08-12 Jakub Jelinek <jakub@redhat.com>
283
284 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
285
286 PR middle-end/45262
287 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
288 -a overflows. Normalize the range.
289
290 2010-08-12 Richard Guenther <rguenther@suse.de>
291
292 PR tree-optimization/45232
293 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
294 for types with undefined overflow.
295 (reassociate_bb): Allow re-associating of bit and min/max
296 operations for types with undefined overflow.
297 * tree-ssa-forwprop.c (associate_plusminus): New function.
298 (tree_ssa_forward_propagate_single_use_vars): Call it.
299
300 2010-08-12 Richard Guenther <rguenther@suse.de>
301
302 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
303 * tree-ssa-alias.c (get_ptr_info): Move ...
304 * tree-ssanames.c (get_ptr_info): ... here. Initialize
305 align and misalign fields conservatively.
306 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
307 derive alignment information.
308 (evaluate_stmt): Derive alignment information from memory
309 allocation functions.
310 * tree.h (get_pointer_alignment): Make unsigned.
311 * builtins.c (get_object_alignment): Use alignment information we
312 have computed for pointers.
313 (get_pointer_alignment): Likewise. Make conservative, return
314 and unsigned value.
315 (expand_builtin_strlen): Adjust.
316 (expand_builtin_memcmp): Likewise.
317 (expand_builtin_strcmp): Likewise.
318 (expand_builtin_strncmp): Likewise.
319 (get_builtin_sync_mem): Use at least mode alignment.
320 (fold_builtin_memset): Adjust.
321 (fold_builtin_memory_op): Likewise.
322 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
323 information also dump pointer alignment knowledge.
324 (dump_gimple_stmt): Likewise.
325
326 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
327
328 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
329 (EMPTY_FIELD_BOUNDARY): Remove.
330 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
331
332 2010-08-12 Jakub Jelinek <jakub@redhat.com>
333
334 PR debug/45259
335 * caller-save.c (save_call_clobbered_regs): Only swap notes with
336 DEBUG_INSNs if n_regs_saved.
337
338 2010-08-12 Wei Guozhi <carrot@google.com>
339
340 PR target/44999
341 * config/arm/arm.md (andsi3): Change to zero extension if possible.
342 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
343
344 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
345
346 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
347
348 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
349
350 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
351
352 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
353 the case removed in the previous patch, when the only phi argument
354 is defined in the same loop as the phi node itself. Handle it
355 separately from the invariant case by both propagating it outside
356 the region and replacing the phi node with an assign.
357
358 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
359
360 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
361 constant phi nodes with one argument are is_gimple_min_invariant
362 and SSA_NAME_IS_DEFAULT_DEF.
363
364 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
365
366 * graphite-cloog-util.c (oppose_constraint):
367 Extend loop counter's value range (CLOOG_ORG).
368 (cloog_matrix_to_ppl_constraint): Same.
369 (new_Constraint_System_from_Cloog_matrix): Same.
370 * graphite-cloog-compat.h (matrix_num_type): New.
371
372 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
373
374 * graphite.c (graphite_initialize): Do not initialize
375 CLooG and initialize the Parma Polyhedra Library
376 manually when using CLOOG_ORG.
377 (graphite_finalize): Do not finalize CLooG and finalize
378 the Parma Polyhedra Library manually when using CLOOG_ORG.
379 * graphite-cloog-compat.h (cloog_initialize): Hide function
380 when using CLOOG_ORG.
381 (cloog_finalize): Same.
382
383 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
384
385 * graphite-clast-to-gimple.c (free_scattering): Change
386 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
387 (CLOOG_ORG).
388 (build_cloog_prog): Same.
389 * graphite-cloog-compat.h (cloog_domain): Removed.
390 (cloog_scattering): New.
391 (cloog_set_domain): Removed.
392 (cloog_set_scattering): New.
393 (cloog_next_domain): Removed.
394 (cloog_next_scattering): New.
395 (cloog_set_next_domain): Removed.
396 (cloog_set_next_scattering): New.
397 (CloogScatteringList): New.
398 (CloogScattering): New.
399 (cloog_scattering_free): New.
400 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
401 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
402 New.
403
404 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
405
406 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
407 CloogState.
408 (set_cloog_options): Same.
409 (print_clast_stmt): Same.
410 (scop_to_clast): Same.
411 (print_generated_program): Same.
412 (gloog): Same.
413 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
414 (scop_to_clast): Extend with CloogState.
415 * graphite-cloog-util.c: Include graphite-cloog-compat.h
416 (new_Cloog_Domain_from_ppl_Polyhedron):
417 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
418 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
419 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
420 * graphite-cloog-util.h (build_cloog_prog): Same.
421 * graphite-cloog-copat.h (build_cloog_prog): New.
422 (CloogState): New.
423 (cloog_state_malloc): New.
424 (cloog_state_free): New.
425 (cloog_loop_malloc): New.
426 (cloog_options_malloc): New.
427 (cloog_statement_alloc): New.
428 (cloog_domain_from_cloog_matrix): New.
429 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
430 (new_Cloog_Domain_from_ppl_Polyhedron): New.
431
432 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
433
434 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
435 type of NAME now depends on used CLooG version.
436 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
437 (gcc_type_for_clast_expr): Same.
438 (print_clast_stmt): Replace pprint with clast_pprint.
439 * graphite-cloog-compat.h: Provide compatibility macros for
440 CLooG Legacy.
441 (clast_name_p): New.
442 (clast_expr_term): New.
443 (clast_expr_red): New.
444 (clast_expr_bin): New.
445 (clast_pprint): New.
446
447 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
448
449 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
450 compatible to newer CLooG releases (CLOOG_ORG).
451 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
452 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
453 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
454 (build_cloog_prog) : New.
455 (cloog_program_extract_scalars): New.
456 (cloog_program_scatter): New.
457
458 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
459
460 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
461 conditionally (CLOOG_ORG).
462 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
463 (cloog_statement_usr): New.
464 (cloog_domain): Same.
465 (cloog_set_domain): Same.
466 (cloog_next_domain): Same.
467 (cloog_set_next_domain): Same.
468 (cloog_program_nb_scattdims): Same.
469 (cloog_program_set_nb_scattdims): Same.
470 (cloog_program_names): Same.
471 (cloog_program_set_names): Same.
472 (cloog_program_set_context): Same.
473 (cloog_program_set_loop): Same.
474 (cloog_program_blocklist): Same.
475 (cloog_program_set_blocklist): Same.
476 (cloog_program_scaldims): Same.
477 (cloog_program_set_scaldims): Same.
478 (cloog_names_nb_parameters): Same.
479 (cloog_names_set_nb_parameters): Same.
480 (cloog_names_parameters): Same.
481 (cloog_names_set_parameters): Same.
482 (cloog_names_set_nb_iterators): Same.
483 (cloog_names_set_iterators): Same.
484 (cloog_names_set_nb_scattering): Same.
485 (cloog_names_set_scattering): Same.
486 (cloog_statement_set_usr): Same.
487 (cloog_loop_set_next): Same.
488 (cloog_loop_set_domain): Same.
489 (cloog_loop_set_block): Same.
490 (cloog_block_list_next): Same.
491 (cloog_block_list_set_next):
492 (cloog_block_list_set_block): Same.
493
494 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
495
496 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
497 a bool.
498 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
499 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
500 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
501 when something has been changed.
502 (rewrite_commutative_reductions_out_of_ssa): Same.
503
504 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
505
506 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
507 handle the case when def is in the sese region.
508 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
509 for invariant expressions.
510 (rewrite_cross_bb_phi_deps): Removed.
511 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
512 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
513 rewrite_cross_bb_phi_deps.
514
515 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
516
517 * graphite-sese-to-poly.c
518 (rewrite_commutative_reductions_out_of_ssa_loop): Call
519 scev_analyzable_p only on is_gimple_reg
520
521 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
522
523 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
524 (rewrite_close_phi_out_of_ssa): Propagate constant values or
525 parametric expressions outside the scop region.
526 (rewrite_cross_bb_scalar_deps): Same.
527 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
528
529 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
530
531 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
532 SSA_NAME_DEF_STMT only on SSA_NAMEs.
533
534 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
535
536 * tree-scalar-evolution.c (instantiate_scev_name): Do not
537 instantiate default definitions.
538
539 2010-08-11 Vladimir Kargov <kargov@gmail.com>
540 Sebastian Pop <sebastian.pop@amd.com>
541
542 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
543 (loop_exits_from_bb_p): New.
544 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
545 (loop_exits_from_bb_p): Declared.
546 * graphite-scop-detection.c (scopdet_basic_block_info): Call
547 loop_exits_to_bb_p.
548
549 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
550
551 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
552 extra parameter for the region. Call scev_analyzable_p.
553 (rewrite_reductions_out_of_ssa): Update call to
554 rewrite_close_phi_out_of_ssa.
555 (rewrite_cross_bb_phi_deps): Same.
556 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
557 parameter for the region. Call scev_analyzable_p.
558 (rewrite_commutative_reductions_out_of_ssa): Update call to
559 rewrite_commutative_reductions_out_of_ssa_loop.
560
561 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
562
563 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
564
565 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
566
567 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
568 SSA scalar phi nodes that can be scev_analyzable_p.
569
570 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
571
572 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
573 handle SSA_NAME_IS_DEFAULT_DEF.
574
575 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
576
577 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
578
579 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
580
581 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
582 case non close-phi nodes with one argument.
583
584 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
585
586 * sese.h (scev_analyzable_p): Scevs could be expressions without
587 chrecs and still be scev_analyzable_p.
588
589 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
590
591 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
592
593 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
594
595 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
596 * cfgloop.h (struct loop): Remove single_iv field.
597 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
598 (scop_canonicalize_loops): Removed.
599 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
600 over all the loop phi nodes in loop->header.
601 (build_poly_scop): Remove use of scop_canonicalize_loops.
602
603 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
604
605 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
606 handle GIMPLE_CALL.
607
608 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
609
610 * tree-chrec.c (chrec_apply): Should only apply to the specified
611 variable. Also handle multivariate chains of recurrences that
612 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
613
614 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
615
616 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
617 (debug_clast_name_indexes_1): Removed.
618 (debug_clast_name_indexes): Removed.
619 (pbb_to_depth_to_oldiv): Removed.
620 (build_iv_mapping): Replace the use of rename_map with iv_map.
621 (translate_clast_user): Remove uses of rename_map. Allocate and
622 free iv_map.
623 (translate_clast_for_loop): Remove uses of rename_map.
624 (translate_clast_for): Same.
625 (translate_clast_guard): Same.
626 (translate_clast): Same.
627 (gloog): Same.
628 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
629 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
630 * sese.c (set_rename): Now static.
631 (rename_variables_in_stmt): Removed.
632 (rename_uses): New.
633 (is_parameter): Removed.
634 (is_iv): Removed.
635 (expand_scalar_variables_call): Removed.
636 (expand_scalar_variables_ssa_name): Removed.
637 (expand_scalar_variables_expr): Removed.
638 (expand_scalar_variables_stmt): Removed.
639 (expand_scalar_variables): Removed.
640 (rename_variables): Removed.
641 (remove_condition): Removed.
642 (get_true_edge_from_guard_bb): Removed.
643 (get_false_edge_from_guard_bb): Removed.
644 (struct igp): Removed.
645 (default_before_guard): Removed.
646 (convert_for_phi_arg): Removed.
647 (add_guard_exit_phis): Removed.
648 (insert_guard_phis): Removed.
649 (graphite_copy_stmts_from_block): Now also uses iv_map and a
650 region. Do not copy conditions. Do not copy induction variables.
651 Call rename_uses.
652 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
653 the translated statement. Use the iv_map for the induction
654 variable renaming.
655 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
656 (set_rename): Removed declaration.
657 (scev_analyzable_p): ...here.
658 * tree-chrec.c (chrec_apply_map): New.
659 * tree-chrec.h (chrec_apply_map): Declared.
660
661 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
662
663 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
664 insert_loop_close_phis.
665 * sese.c (name_defined_in_loop_p): Removed.
666 (expr_defined_in_loop_p): Removed.
667 (alive_after_loop): Removed.
668 (close_phi_not_yet_inserted_p): Removed.
669 (struct alep): Removed.
670 (add_loop_exit_phis): Removed.
671 (insert_loop_close_phis): Removed.
672
673 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
674
675 * graphite-cloog-util.c
676 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
677 * graphite-poly.c
678 (psct_scattering_dim_for_loop_depth): Same.
679
680 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
681
682 * graphite-cloog-util.h: Added cloog.h.
683 * graphite-blocking.c: Removed cloog.h.
684 * graphite-dependences.c: Same.
685 * graphite-interchange.c: Same.
686 * graphite-poly.c: Same.
687 * graphite-ppl.c: Same.
688 * graphite-scop-detection.c: Same.
689 * graphite-sese-to-poly.c:
690 Removed cloog.h.
691 Removed graphite-clast-to-gimple.h.
692 (check_poly_representation): Removed (unused).
693 * graphite-sese-to-poly.h
694 (check_poly_representation): Removed (unused).
695
696 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
697
698 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
699 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
700 (graphite-cloog-util.o): New.
701 (graphite-ppl.o): Added graphite-cloog-util.h.
702 * graphite-clast-to-gimple.c:
703 Added graphite-cloog-util.h to include statements.
704 * graphite-cloog-util.c: New.
705 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
706 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
707 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
708 (new_C_Polyhedron_from_Cloog_Matrix): Same.
709 (insert_constraint_into_matrix): Same.
710 (ppl_Constrain_System_number_of_constraints): Same.
711 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
712 (oppose_constraint): Same.
713 (cloog_matrix_to_ppl_constraint): Same.
714 (new_Constraint_System_from_Cloog_Matrix): Same.
715 * graphite-cloog-util.h: New.
716 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
717 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
718 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
719 (new_C_Polyhedron_from_Cloog_Matrix): Same.
720 (insert_constraint_into_matrix): Same.
721 * graphite-ppl.c:
722 Added graphite-cloog-util.h to include statements.
723 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
724 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
725 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
726 (new_C_Polyhedron_from_Cloog_Matrix): Same.
727 (insert_constraint_into_matrix): Same.
728 (ppl_Constrain_System_number_of_constraints): Same.
729 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
730 (oppose_constraint): Same.
731 (cloog_matrix_to_ppl_constraint): Same.
732 (new_Constraint_System_from_Cloog_Matrix): Same.
733 * graphite-ppl.h:
734 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
735 graphite-cloog-util.h.
736 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
737 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
738 (new_C_Polyhedron_from_Cloog_Matrix): Same.
739 (insert_constraint_into_matrix): Same.
740
741 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
742
743 * graphite-clast-to-gimple.c
744 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
745 (precision_for_interval): Same.
746 (gcc_type_for_interval): Same.
747 (compute_type_for_level): Same.
748 * graphite-interchange.c
749 (lst_interchange_profitable_p): Same.
750 * graphite-poly.c
751 (psct_scattering_dim_for_loop_depth): Same.
752 * graphite-ppl.c
753 (ppl_max_for_le_pointset): Same.
754 (ppl_min_for_le_pointset): Same.
755
756 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
757
758 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
759 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
760
761 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
762
763 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
764 rewrite_close_phi_out_of_ssa.
765
766 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
767
768 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
769
770 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
771
772 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
773 rename_map.
774 * sese.c (debug_rename_map): Same.
775 (get_rename): Same.
776 (set_rename): Same.
777 (rename_variables_in_stmt): Same.
778 (expand_scalar_variables_call): Same.
779 (expand_scalar_variables_ssa_name): Same.
780 (expand_scalar_variables_expr): Same.
781 (expand_scalar_variables_stmt): Same.
782 (expand_scalar_variables): Same.
783 (rename_variables): Same.
784 (graphite_copy_stmts_from_block): Same.
785 (copy_bb_and_scalar_dependences): Same.
786
787 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
788
789 * graphite-clast-to-gimple.c (copy_renames): Removed.
790 (translate_clast_for): Do not call copy_renames.
791 (translate_clast_guard): Same.
792
793 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
794
795 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
796 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
797 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
798 before rewrite_cross_bb_scalar_deps.
799
800 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
801
802 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
803 Early return in when flag_associative_math is not set.
804
805 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
806
807 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
808 of SSA copies on edges except for loop->latch.
809
810 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
811
812 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
813 Split out of rewrite_reductions_out_of_ssa.
814 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
815 Declared.
816 * graphite.c (graphite_transform_loops): Call it.
817
818 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
819
820 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
821
822 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
823
824 * dbgcnt.def (graphite_scop): New counter.
825 * graphite.c: Include dbgcnt.h.
826 (graphite_transform_loops): Use new counter to limit transformations.
827 * Makefile.in (graphite.o): Depend on DBGCNT_H.
828
829 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
830
831 * passes.c (init_optimization_passes): Add pass_graphite.
832 Schedule a pass_copy_prop before pass_graphite_transforms.
833 * timevar.def (TV_GRAPHITE): Declared.
834 * tree-pass.h (pass_graphite): Declared.
835 * tree-ssa-loop.c (pass_graphite): New.
836
837 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
838
839 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
840 Remove calls to rename_nb_iterations and rename_sese_parameters.
841 * graphite-clast-to-gimple.h (gloog): Update declaration.
842 * graphite.c (graphite_transform_loops): Update call to gloog.
843 * sese.c (rename_variables_in_expr): Removed.
844 (rename_nb_iterations): Removed.
845 (rename_sese_parameters): Removed.
846 * sese.h (rename_nb_iterations): Removed.
847 (rename_sese_parameters): Removed.
848
849 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
850
851 * graphite-clast-to-gimple.c (gloog): Remove call to
852 sese_adjust_liveout_phis.
853 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
854 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
855 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
856 rewrite_phi_out_of_ssa.
857 * sese.c (get_vdef_before_sese): Removed.
858 (sese_adjust_vphi): Removed.
859 (sese_adjust_liveout_phis): Removed.
860 * sese.h (sese_adjust_liveout_phis): Removed.
861
862 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
863
864 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
865 argument for the place after which to insert the out of SSA copy.
866 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
867 (rewrite_phi_out_of_ssa): Same.
868 (rewrite_cross_bb_scalar_deps): Same.
869 (insert_copyout): Removed.
870 (insert_copyin): Removed.
871 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
872 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
873 insert_copyin.
874
875 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
876
877 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
878 (rewrite_reductions_out_of_ssa): Same.
879 (rewrite_commutative_reductions_out_of_ssa): Same.
880 (build_poly_scop): Do not call these functions.
881 * graphite-sese-to-poly.h (build_poly_scop): Declared.
882 (rewrite_reductions_out_of_ssa): Declared.
883 (rewrite_commutative_reductions_out_of_ssa): Declared.
884 * graphite.c (graphite_transform_loops): Call on every scop
885 rewrite_commutative_reductions_out_of_ssa before calling
886 rewrite_reductions_out_of_ssa and build_scop_bbs.
887
888 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
889
890 * graphite-dependences.c (dot_deps): Make system call to dotty run
891 in background.
892 (dot_deps_stmt): Same.
893 * graphite-poly.c (dot_lst): Same.
894
895 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
896
897 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
898 phi_arg_in_outermost_loop.
899 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
900 (remove_invariant_phi): Same.
901
902 2010-08-11 Anatoly Sokolov <aesok@post.ru>
903
904 * target.def (output_addr_const_extra): New hook.
905 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
906 * doc/tm.texi: Regenerate.
907 * targhooks.c (default_asm_output_addr_const_extra): New function.
908 * targhooks.h (default_asm_output_addr_const_extra): Declare.
909 * final.c: (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
910 target hook.
911
912 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
913 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
914 * config/i386/i386.h (output_addr_const_extra): Rename to...
915 (i386_asm_output_addr_const_extra): ...this. Make static.
916 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
917
918 2010-08-11 Richard Henderson <rth@redhat.com>
919
920 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
921
922 2010-08-11 Nick Clifton <nickc@redhat.com>
923
924 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
925 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
926 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
927 stormy16-lib2-cmpsi.c.
928
929 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
930 -O2.
931
932 2010-08-11 Joseph Myers <joseph@codesourcery.com>
933
934 * opts.h (struct cl_option_handler_func): Make handler take
935 cl_decoded_option structure as parameter, not individual elements.
936 (struct cl_option_handlers): Make callbacks take cl_decoded_option
937 structure as parameter, not individual elements.
938 (handle_option): Take cl_decoded_option structure as parameter,
939 not individual elements.
940 (handle_generated_option): Declare.
941 * opts-common.c (handle_option): Take cl_decoded_option structure
942 as parameter, not individual elements. Update calls to callback
943 and handler functions.
944 (handle_generated_option): New.
945 (read_cmdline_option): Update calls to callback functions and
946 handle_option.
947 * opts.c (common_handle_option, complain_wrong_lang,
948 unknown_option_callback, post_handling_callback,
949 lang_handle_option, target_handle_option): Take cl_decoded_option
950 structure as parameter, not individual elements.
951 (lang_handle_option, target_handle_option, common_handle_option):
952 Assert option has at most one argument.
953 (enable_warning_as_error): Call handle_generated_option instead of
954 handle_option. Do not pass -Werror argument as argument of
955 generated option.
956
957 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
958
959 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
960 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
961 (SUBWORD_BOOL_CAS): Likewise.
962 (SUBWORD_SYNC_OP): Likewise.
963 (SUBWORD_TEST_AND_SET): Likewise.
964 (FETCH_AND_OP_WORD): Parenthesise INF_OP
965 (SUBWORD_SYNC_OP): Likewise.
966 (OP_AND_FETCH_WORD): Likewise.
967
968 2010-08-10 Xinliang David Li <davidxl@google.com>
969
970 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
971 compute max/min offset in address.
972
973 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
974
975 * ira-live.c: Include sbitmap.h.
976 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
977 Compress live ranges even more.
978
979 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
980
981 * coverage.c (ctr_labels): Delete.
982
983 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
984
985 PR bootstrap/45177
986 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
987 test here from arm_gen_load_multiple_1.
988 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
989 multiple_operation_profitable_p.
990
991 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
992
993 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
994 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
995
996 2010-08-10 Richard Henderson <rth@redhat.com>
997
998 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
999 after saving registers. Assert that SSE registers are only saved
1000 with a sufficiently aligned frame.
1001 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
1002 remove stack_realign_fp handling.
1003 (ix86_expand_prologue): Save int registers before stack_realign_fp,
1004 and do not mark the stack alignment as frame related.
1005 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
1006
1007 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
1008 saves when re-aligning the stack.
1009
1010 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
1011
1012 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
1013 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
1014 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
1015
1016 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
1017
1018 * dwarf2out.c (struct die_struct): Move die_tag to the end.
1019
1020 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
1021
1022 * config/arm/iterators.md: New file.
1023 * config/arm/arm.md: Include iterators.md.
1024 (QHSI): Move to new file.
1025 (LTUGEU, cnb, optab, ior_xor): Likewise.
1026 * config/arm/iwmmxt.md (VMMX): Move to new file.
1027 (VSHFT, MMX_char): Likewise.
1028 * config/arm/neon.md (VD): Move to new file.
1029 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
1030 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
1031 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
1032 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
1033 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
1034 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
1035 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
1036 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
1037 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
1038 (Is_d_reg, V_mode_nunits): Likewise.
1039 * config/arm/vec-common.md (VALL): Move to new file.
1040 (VALLW, VINT, VINTW): Likewise.
1041
1042 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
1043
1044 PR middle-end/45182
1045 * combine.c (make_compound_operation): Don't try to convert
1046 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
1047
1048 2010-08-10 Richard Guenther <rguenther@suse.de>
1049
1050 * tree.h (get_object_alignment): Adjust prototype.
1051 * builtins.c (get_object_alignment): Return unsigned int,
1052 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
1053 and TARGET_MEM_REF properly.
1054 (get_pointer_alignment): Adjust.
1055 * emit-rtl.c (get_mem_align_offset): Adjust comment.
1056 (set_mem_attributes_minus_bitpos): Adjust.
1057 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
1058
1059 2010-08-10 Richard Guenther <rguenther@suse.de>
1060
1061 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
1062 (copy_prop_visit_assignment): Simplify.
1063 (copy_prop_visit_stmt): Also visit assignments from
1064 constants.
1065 (copy_prop_visit_phi_node): Use operand_equal_p.
1066
1067 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
1068
1069 * ipa-split.c (find_split_points): Free stack.
1070
1071 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
1072
1073 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
1074 * tree.c (tree_node_kind): Delete corresponding entries.
1075
1076 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
1077
1078 * alias.c (may_alias_p): Remove unused ret.
1079
1080 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
1081
1082 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
1083 alias_sets_conflict_p.
1084 (walk_mems_1): Moved from alias.c.
1085 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
1086 in alias.c.
1087 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
1088 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
1089 * alias.c (walk_mems_2): Moved to ddg.c.
1090 (walk_mems_1): Ditto.
1091 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
1092 to ddg.c.
1093 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
1094 disambiguation.
1095 *(may_alias_p): New function to check whether two memory expression
1096 may alias or not. Currently used in buidling inter-iteration memory
1097 dependence.
1098 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
1099 (insn_alias_sets_conflict_p): Removed
1100 *rtl.h (may_alias_p): New function prototype.
1101
1102 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
1103
1104 * tree.c (nreverse): Assert that we don't have a BLOCK.
1105
1106 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
1107
1108 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
1109 * config/arm/arm.c (arm_get_pcs_model): Likewise.
1110 * config/avr/avr.c (init_cumulative_args): Likewise.
1111 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1112 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1113 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
1114 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
1115 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
1116 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1117 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
1118 * dwarf2out.c (gen_subprogram_die): Likewise.
1119 * function.c (allocate_struct_function): Likewise.
1120 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
1121 (deserves_ellipsis): Delete.
1122
1123 2010-08-09 Richard Guenther <rguenther@suse.de>
1124
1125 * tree-ssa-copy.c (cached_last_copy_of): Remove.
1126 (valueize_val): New function.
1127 (get_last_copy_of): Remove.
1128 (set_copy_of_val): Simplify.
1129 (dump_copy_of): Likewise.
1130 (copy_prop_visit_cond_stmt): Use valueize_val.
1131 (copy_prop_visit_phi_node): Properly handle unvisited names.
1132 Drop code managing copy-of chains.
1133 (init_copy_prop): Adjust.
1134 (fini_copy_prop): Likewise.
1135 (execute_copy_prop): Remove obsolete comment.
1136
1137 2010-08-09 Richard Guenther <rguenther@suse.de>
1138
1139 PR middle-end/44632
1140 * function.c (gimplify_parameters): Do not clear addressable
1141 bit of the original parameter.
1142
1143 2010-08-09 Richard Guenther <rguenther@suse.de>
1144
1145 PR middle-end/45212
1146 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
1147 alignment from MEM_REF offset only if we took it from the
1148 base object.
1149
1150 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
1151
1152 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
1153
1154 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1155
1156 * c-tree.h (build_arg_info): Declare.
1157 * c-decl.c (build_arg_info): Define.
1158 (get_parm_info): Call it. Delete initialization code.
1159 * c-parser.c (c_parser_parms_declarator): Likewise.
1160 (c_parser_parms_list_declaractor): Likewise.
1161
1162 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1163
1164 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
1165 (struct c_arg_info): Change type of tags field.
1166 * c-decl.c (grokdeclarator): Update for changed type of tags field.
1167 (get_parm_info): Likewise.
1168 (store_parm_decls_newstyle): Likewise.
1169
1170 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1171
1172 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
1173 (branch_island_list): Delete.
1174 (branch_islands): Declare.
1175 (add_compiler_branch_island): Adjust for branch_islands instead of
1176 branch_island_list.
1177 (macho_branch_islands): Likewise.
1178 (no_previous_def): Likewise.
1179 (get_prev_label): Likewise.
1180
1181 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1182
1183 PR boehm-gc/34544
1184 * gthr-posix.h (__gthread_start): Delete.
1185 (__gthread_active_init): Use pthread_default_stacksize_np instead of
1186 pthread_create to determine if hpux pthreads are active.
1187 * gthr-posix95.h (__gthread_start): Delete.
1188 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
1189
1190 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
1191
1192 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
1193 _WIN64 not expanded.
1194
1195 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
1196 H.J. Lu <hongjiu.lu@intel.com>
1197
1198 PR target/45213
1199 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
1200 to output 32bit SFmode immediate as 8 byte sign extended value.
1201
1202 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
1203
1204 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
1205 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
1206 (SUBWORD_BOOL_CAS): Likewise.
1207 (SUBWORD_SYNC_OP): Likewise.
1208 (SUBWORD_TEST_AND_SET): Likewise.
1209 (FETCH_AND_OP_WORD): Parenthesise INF_OP
1210 (SUBWORD_SYNC_OP): Likewise.
1211 (OP_AND_FETCH_WORD): Likewise.
1212
1213 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1214
1215 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
1216 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
1217 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
1218 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
1219 generic part.
1220 (cortex_a9_sched_adjust_cost): New function.
1221 (xscale_sched_adjust_cost): New function.
1222 * config/arm/arm-protos.h (struct tune_params): New field
1223 sched_adjust_cost.
1224 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
1225
1226 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
1227
1228 PR target/44942
1229 * config/sparc/sparc.c (function_arg_advance): Always take into account
1230 the padding, if any.
1231
1232 2010-08-06 Richard Guenther <rguenther@suse.de>
1233
1234 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
1235 (dump_lattice_value): Dump it.
1236 (get_default_value): Adjust.
1237 (get_constant_value): Likewise.
1238 (set_value_varying): Likewise.
1239 (set_lattice_value): Make sure to not go up the lattice
1240 with bitwise constant values.
1241 (get_value_for_expr): Handle ADDR_EXPRs.
1242 (value_to_double_int): New function.
1243 (get_value_from_alignment): Likewise.
1244 (do_dbg_cnt): Adjust.
1245 (ccp_lattice_meet): Handle partially constant values.
1246 (bit_value_unop_1): New function.
1247 (bit_value_binop_1): Likewise.
1248 (bit_value_unop): Likewise.
1249 (bit_value_binop): Likewise.
1250 (evaluate_stmt): Track partially constant values if
1251 flag_tree_bit_ccp is set.
1252 (ccp_fold_stmt): Dump if we folded a predicate.
1253 (ccp_visit_stmt): Adjust.
1254 * common.opt (ftree-bit-ccp): New flag.
1255 * doc/invoke.texi (ftree-bit-ccp): Document.
1256 * opts.c (decode_options): Enable bit-CCP at -O1.
1257
1258 2010-08-06 Alan Modra <amodra@gmail.com>
1259
1260 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
1261 and -mrelocatable-lib description.
1262
1263 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
1264
1265 From Martin Thuresson <martint@google.com>
1266 * postreload.c (reload_cse_simplify_operands): Use
1267 SET_REGNO_RAW instead of SET_REGNO.
1268 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
1269 SET_REGNO.
1270 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
1271 instead of SET_REGNO.
1272 * rtl.h (SET_REGNO_RAW): New macro.
1273
1274 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
1275
1276 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
1277 computations. Fix formatting issues.
1278 (num_sign_bit_copies1): Likewise.
1279 (canonicalize_condition): Likewise.
1280
1281 2010-08-05 Richard Henderson <rth@redhat.com>
1282
1283 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
1284 (floor_log2): Use clz_hwi.
1285 (exact_log2): Use ctz_hwi.
1286 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
1287 * builtins.c (fold_builtin_bitop): Use them.
1288 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1289 * combine.c (get_pos_from_mask): Use ctz_hwi.
1290 * double-int.c (double_int_ctz): Likewise.
1291 * explow.c (force_reg): Likewise.
1292 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
1293
1294 2010-08-05 Richard Henderson <rth@redhat.com>
1295
1296 PR target/45189
1297 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
1298 the alignment constant is properly sign-extended.
1299
1300 2010-08-05 Richard Guenther <rguenther@suse.de>
1301
1302 * expr.c (store_expr): Use emit_block_move only if both
1303 source and target are MEMs. Use store_bit_field if only
1304 the target is a MEM.
1305
1306 2010-08-05 Richard Henderson <rth@redhat.com>
1307
1308 PR debug/45188
1309 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
1310 (INCOMING_RETURN_ADDR_RTX): Likewise.
1311 (dwarf2out_do_frame): Remove conditional compilation.
1312 (dwarf2out_frame_init): Likewise.
1313
1314 2010-08-05 Nicolas Setton <setton@adacore.com>
1315
1316 * gcov.c (flag_display_progress): New static variable.
1317 (main): Display progress info on standard output if requested.
1318 (options): Add -d/--display-progress.
1319 (print_usage): Print them.
1320 (process_args): Handle them.
1321 * doc/gcov.texi: Document them.
1322
1323 2010-08-05 Martin Jambor <mjambor@suse.cz>
1324
1325 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
1326 (ipcp_insert_stage): Redirect only edges not flagged with
1327 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
1328 discovered constants.
1329
1330 2010-08-05 Martin Jambor <mjambor@suse.cz>
1331
1332 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
1333 (struct ipa_param_descriptor): New fields types and
1334 cannot_devirtualize.
1335 (ipa_param_cannot_devirtualize_p): New function.
1336 (ipa_param_types_vec_empty): Likewise.
1337 (ipa_make_edge_direct_to_target): Declare.
1338 * ipa-cp.c: Fixed first stage driver name in initial comment,
1339 described devirtualization there too.
1340 (ipcp_analyze_node): Call ipa_analyze_params_uses.
1341 (ipcp_print_all_lattices): Print devirtualization info.
1342 (ipa_set_param_cannot_devirtualize): New function.
1343 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
1344 lattice to BOTTOM.
1345 (ipcp_init_stage): Merged into...
1346 (ipcp_generate_summary): ...its caller.
1347 (ipcp_change_tops_to_bottom): Also process type lists.
1348 (ipcp_add_param_type): New function.
1349 (ipcp_copy_types): Likewise.
1350 (ipcp_propagate_types): Likewise.
1351 (ipcp_propagate_stage): Also propagate types.
1352 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
1353 Also return true if propagated types require it.
1354 (ipcp_update_callgraph): Dump redirection info.
1355 (ipcp_process_devirtualization_opportunities): New function.
1356 (ipcp_const_param_count): Include known type information.
1357 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
1358 on new node. Fixed formatting.
1359 * ipa-prop.c (make_edge_direct_to_target): Renamed to
1360 ipa_make_edge_direct_to_target and changed all callers. Made
1361 externally visible.
1362 (ipa_node_duplication_hook): Duplicate types vector.
1363 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
1364 redirect outgoing calls for which we can't get a decl from the
1365 statement. Check that we can get a decl from the call statement.
1366 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1367 ipa_analyze_params_uses only when ipa-cp is disabled.
1368 * tree-inline.c (get_indirect_callee_fndecl): Removed.
1369 (expand_call_inline): Do not call get_indirect_callee_fndecl.
1370 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
1371 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
1372
1373 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
1374
1375 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
1376 temporary. Emit move from temporary to accum, so REG_EQUAL note will
1377 be attached to this insn in correct mode.
1378
1379 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
1380
1381 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
1382 using REGNO of base_reg directly.
1383
1384 2010-08-05 Jie Zhang <jie@codesourcery.com>
1385
1386 PR tree-optimization/45144
1387 * tree-sra.c (type_consists_of_records_p): Return false
1388 if the record contains bit-field.
1389
1390 2010-08-04 Richard Henderson <rth@redhat.com>
1391
1392 * config/i386/i386.c (struct ix86_frame): Remove padding and
1393 to_allocate members.
1394 (ix86_compute_frame_layout): Don't store them.
1395 (ix86_can_use_return_insn_p): Use a more direct and more obviously
1396 correct condition for the position of the stack pointer.
1397 (ix86_expand_prologue): Compute remaining stack allocation based
1398 on the ultimate stack pointer offset.
1399 (ix86_expand_epilogue): Use more obvious expressions testing for
1400 the stack pointer already pointing to the saved registers.
1401
1402 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
1403 duplication deconstructing the frame pointer. Simplify
1404 deallocation of the local stack frame.
1405
1406 * reg-notes.def (CFA_EXPRESSION): New.
1407 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
1408 (dwarf2out_frame_debug_cfa_expression): New.
1409 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
1410
1411 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
1412 * config/i386/i386.c (ix86_expand_prologue): Set it.
1413 (ix86_expand_epilogue): Clear it.
1414 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
1415 context, add REG_CFA_EXPRESSION notes.
1416
1417 * config/i386/i386.h (struct machine_frame_state): Rename from
1418 machine_cfa_state. Add members tracking SP and FP regardless
1419 of the current CFA register.
1420 (ix86_cfa_state): Remove.
1421 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
1422 and sse_reg_save_offset members.
1423 (ix86_compute_frame_layout): Set them.
1424 (gen_push): Increment sp_offset too.
1425 (choose_baseaddr_len, choose_baseaddr): New.
1426 (ix86_emit_save_reg_using_mov): New.
1427 (ix86_emit_save_regs_using_mov): Use it.
1428 (ix86_emit_save_sse_regs_using_mov): Likewise.
1429 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
1430 compare vs the saved red_zone_offset.
1431 (pro_epilogue_adjust_stack): Adjust sp_offset.
1432 (ix86_adjust_stack_and_probe): Likewise.
1433 (ix86_expand_prologue): Set up, use, and validate the new
1434 frame_state_info members. Use gen_frame_mem.
1435 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
1436 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
1437 new frame_state_info members.
1438 (ix86_emit_leave): Likewise.
1439 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
1440 out-of-range stack pointer offsets here.
1441 (ix86_emit_restore_sse_regs_using_mov): Likewise.
1442 (ix86_expand_epilogue): Use and validate the new frame_state_info
1443 members. Break up and simplify the logic selecting the
1444 restore_regs_via_mov code path. Ensure that there will be no
1445 out-of-range stack pointer offsets.
1446
1447 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
1448
1449 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
1450 argument name to reflect the expected tree; fix indentation.
1451 (ix86_asm_output_function_label): Output the entire 32-bit
1452 ms_hook here as bytes ...
1453 (ix86_expand_prologue): ... not here as insns. Attach the
1454 unwind info for the ms_hook to a blockage insn.
1455 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
1456 (ix86_ms_bitfield_layout_p): Fix indentation.
1457 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
1458
1459 * config/i386/i386.c (ix86_using_red_zone): New.
1460 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
1461 ix86_expand_prologue, ix86_force_to_memory): Use it.
1462
1463 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
1464 saving the int registers.
1465
1466 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
1467 and DWARF2_UNWIND_INFO conditional compilation.
1468
1469 2010-08-04 Richard Henderson <rth@redhat.com>
1470
1471 PR debug/45171
1472 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
1473 an is_naming_typedef_decl.
1474
1475 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
1476
1477 PR rtl-optimization/45162
1478 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
1479 * dce.c (word_dce_process_block): Likewise.
1480
1481 2010-08-04 Steve Ellcey <sje@cup.hp.com>
1482
1483 PR target/44583
1484 * config/ia64/constraints.md (Z): New.
1485 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
1486 (xfreg_or_signed_fp01_operand): New.
1487 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
1488 with fr_reg_or_signed_fp01_operand and constraint G with Z.
1489 (subsf3): Ditto.
1490 (*maddsf4): Ditto.
1491 (*msubsf4): Ditto.
1492 (adddf3): Ditto.
1493 (adddf3_trunc): Ditto.
1494 (subdf3): Ditto.
1495 (*subdf3_trunc): Ditto.
1496 (*madddf4): Ditto.
1497 (*madddf4_trunc): Ditto.
1498 (*msubdf4): Ditto.
1499 (*msubdf4_trunc): Ditto.
1500 (addxf3): Replace xfreg_or_fp01_operand with
1501 xfreg_or_signed_fp01_operand and constraint G with Z.
1502 (*addxf3_truncsf): Ditto.
1503 (*addxf3_truncdf): Ditto.
1504 (subxf3): Ditto.
1505 (*subxf3_truncsf): Ditto.
1506 (*subxf3_truncdf): Ditto.
1507 (*maddxf4): Ditto.
1508 (*maddxf4_truncsf): Ditto.
1509 (*maddxf4_truncdf): Ditto.
1510 (*msubxf4): Ditto.
1511 (*msubxf4_truncsf): Ditto.
1512 (*msubxf4_truncdf): Ditto.
1513
1514 2010-08-04 Richard Guenther <rguenther@suse.de>
1515
1516 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
1517 if either alias-set is zero.
1518
1519 2010-08-04 Richard Guenther <rguenther@suse.de>
1520
1521 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
1522 * tree-ssa-ccp.c: ... here.
1523 * tree-ssa-copy.c: ... and here.
1524 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
1525 value_range_t): Move ...
1526 * tree-vrp.c: ... here.
1527 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
1528 (substitute_and_fold): Adjust prototype.
1529 * tree-ssa-propagate.c (replace_uses_in): Adjust.
1530 (replace_phi_args_in): Likewise.
1531 (substitute_and_fold): Take callback to query lattice instead
1532 of pointer to lattice. Replace SSA name defs with lattice
1533 values first.
1534 * tree-ssa-ccp.c (ccp_finalize): Adjust.
1535 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
1536 (get_value): New function.
1537 (fini_copy_prop): Adjust.
1538 * tree-vrp.c (vrp_finalize): Adjust.
1539
1540 2010-08-04 Richard Guenther <rguenther@suse.de>
1541
1542 PR middle-end/45176
1543 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
1544 points-to set for original MEM_REF.
1545
1546 2010-08-04 Richard Guenther <rguenther@suse.de>
1547
1548 * tree-ssa-ccp.c (get_constant_value): New function.
1549 (get_rhs_assign_op_for_ccp): Remove.
1550 (valueize_op): New function.
1551 (ccp_fold): Use get_constant_value and valueize_op.
1552 (fold_const_aggregate_ref): Likewise.
1553 (ccp_fold_stmt): Likewise.
1554 (visit_assignment): Simplify.
1555
1556 2010-08-04 Richard Guenther <rguenther@suse.de>
1557
1558 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
1559 * double-int.h (double_int_ctz): Declare.
1560 * double-int.c (double_int_ctz): New function.
1561
1562 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
1563
1564 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
1565 Define.
1566 picochip_expand_movmemhi : Expand movmem pattern.
1567 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
1568 Declare.
1569 * config/picochip/picochip.md (movmemhi) : New pattern.
1570
1571 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
1572
1573 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
1574
1575 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
1576
1577 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
1578 NEG as operand of a MULT by merging it with the other operand.
1579 * combine.c (make_compound_operation): Use trunc_int_for_mode when
1580 generating a MULT with constant. Canonicalize PLUS and MINUS involving
1581 MULT.
1582 * config/arm/constraints.md (M): Examine only 32 bits of a
1583 HOST_WIDE_INT.
1584 * config/arm/predicates.md (power_of_two_operand): Likewise.
1585
1586 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1587
1588 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
1589 non-NOTE insns.
1590
1591 2010-08-03 Jan Hubicka <jh@suse.cz>
1592
1593 * ipa-split.c (struct split_point): Add split_part_set_retval.
1594 (find_retval): Forward declare.
1595 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
1596 (consider_split): Compute current->split_part_set_retval.
1597 (visit_bb): Do not look into return value.
1598 (split_function): Handle !split_part_set_retval
1599
1600 2010-08-03 Martin Jambor <mjambor@suse.cz>
1601
1602 * tree-sra.c (completely_scalarize_record): New parameter REF, create
1603 its own access->expr intead of using build_ref_for_offset.
1604
1605 2010-08-03 Joseph Myers <joseph@codesourcery.com>
1606
1607 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
1608 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
1609 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
1610 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
1611 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
1612 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
1613 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
1614 DEFAULT_SWITCH_TAKES_ARG.
1615 * config/rx/rx.opt (-patch=): Remove option.
1616 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
1617 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
1618 * doc/invoke.texi (RX Options): Remove -patch=.
1619 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
1620 (option_map): Remove --profile-blocks, --quiet and --silent.
1621
1622 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
1623
1624 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
1625 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
1626 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
1627 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
1628 Update calls to ix86_expand_compare and ix86_expand_branch.
1629 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
1630 ix86_expand_compare.
1631 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
1632 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
1633 Make static.
1634 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
1635 and ix86_compare_op1. Update calls to ix86_expand_compare.
1636 (ix86_expand_int_movcc): Ditto.
1637 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
1638 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
1639 (ix86_expand_setcc): Ditto.
1640 (ix86_expand_compare): Remove prototype.
1641 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
1642 ix86_compare_op0 and ix86_compare_op1. Update calls
1643 to ix86_expand_branch to directly pass operands[1] and operands[2].
1644 (cbranchxf4): Ditto.
1645 (cbranch<MODEF:mode>4): Ditto.
1646 (cbranchcc4): Ditto.
1647 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
1648 Update calls to ix86_expand_setcc to directly pass operands[2] and
1649 operands[3].
1650 (cstorexf4): Ditto.
1651 (cstore<MODEF:mode>4): Ditto.
1652 (cstorecc4): Ditto.
1653
1654 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
1655
1656 PR target/45063
1657 * caller-save.c (save_call_clobbered_regs): Remove regs from
1658 hard_regs_saved when they are set.
1659
1660 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
1661
1662 PR target/41089
1663 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
1664 as volatile.
1665
1666 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
1667
1668 * common.opt (ftree-loop-distribute-patterns): New.
1669 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
1670 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
1671 at -O3.
1672 * tree-data-ref.c (stores_zero_from_loop): New.
1673 * tree-data-ref.h (stores_zero_from_loop): Declared.
1674 * tree-loop-distribution.c (tree_loop_distribution): Call
1675 stores_zero_from_loop.
1676 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
1677
1678 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
1679
1680 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
1681 into account.
1682
1683 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
1684 * config/arm/arm.c (thumb1_code): New variable.
1685 (arm_override_options): Set it.
1686 (thumb1_final_prescan_insn): Keep track of condition code status.
1687 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
1688 jumps that depend on them.
1689 * config/arm/arm.h (thumb1_code): Declare variable.
1690 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
1691 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
1692 thumb1_cc_mode.
1693 (CC_STATUS_INIT): New macro.
1694 * config/arm/constraints.md (Pd): New constraint.
1695 * config/arm/predicates.md (noov_comparison_operator): New predicate.
1696 * config/arm/arm.md (is_thumb1): New define_attr.
1697 (conds): Set default to "clob" when generating Thumb1 code.
1698 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
1699 code are set. Use two-operand assembly syntax.
1700 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
1701 pattern.
1702 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
1703 codes are set. Use two-operand assembly syntax.
1704 (zero_extendhisi splitter): Remove constraints.
1705 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
1706 thumb1_movsf_insn): Set conds attribute as appropriate.
1707 (cbranchsi4_insn): Use condition code status from struct
1708 machine_function to determine whether the comparison can be eliminated.
1709 Discourage the alternative using high registers.
1710 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
1711 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
1712 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
1713 subsi3_cbranch): Delete.
1714 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
1715 one subtract and one cbranch insn.
1716
1717 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
1718 thumb2_movdf_soft_insn): Delete patterns.
1719 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
1720 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
1721 (pool_range, neg_pool_range): Use them to define defaults.
1722 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
1723 and allow for TARGET_32BIT.
1724
1725 PR target/40457
1726 * config/arm/arm.h (arm_regs_in_sequence): Declare.
1727 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
1728 load_multiple_sequence, store_multiple_sequence): Delete
1729 declarations.
1730 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
1731 declarations.
1732 * config/arm/ldmstm.md: New file.
1733 * config/arm/arm.c (arm_regs_in_sequence): New array.
1734 (load_multiple_sequence): Now static. New args SAVED_ORDER,
1735 CHECK_REGS. All callers changed.
1736 If SAVED_ORDER is nonnull, copy the computed order into it.
1737 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
1738 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
1739 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
1740 If SAVED_ORDER is nonnull, copy the computed order into it.
1741 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
1742 like REGS. Handle Thumb mode.
1743 (arm_gen_load_multiple_1): New function, broken out of
1744 arm_gen_load_multiple.
1745 (arm_gen_store_multiple_1): New function, broken out of
1746 arm_gen_store_multiple.
1747 (arm_gen_multiple_op): New function, with code from
1748 arm_gen_load_multiple and arm_gen_store_multiple moved here.
1749 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
1750 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
1751 changed.
1752 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
1753 * config/arm/predicates.md (commutative_binary_operator): New.
1754 (load_multiple_operation, store_multiple_operation): Handle more
1755 variants of these patterns with different starting offsets. Handle
1756 Thumb-1.
1757 * config/arm/arm.md: Include "ldmstm.md".
1758 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
1759 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
1760 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
1761 peepholes): Delete.
1762 * config/arm/ldmstm.md: New file.
1763 * config/arm/arm-ldmstm.ml: New file.
1764
1765 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
1766 if statement which adds extra costs to frame-related expressions.
1767
1768 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1769
1770 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
1771
1772 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
1773
1774 PR target/45142
1775 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
1776 alternative 2.
1777 (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
1778 split V4SI operands.
1779
1780 2010-08-01 Anatoly Sokolov <aesok@post.ru>
1781
1782 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
1783 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
1784 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
1785 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
1786
1787 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
1788
1789 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
1790 LOCAL_INCLUDE_DIR.
1791
1792 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
1793
1794 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
1795 used in the call to optab_for_tree_code. Fix the second
1796 is_widening_mult_p call. Check that both unwidened operands
1797 have the same sign.
1798
1799 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
1800
1801 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
1802
1803 2010-07-31 Anatoly Sokolov <aesok@post.ru>
1804
1805 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
1806
1807 2010-07-30 DJ Delorie <dj@redhat.com>
1808
1809 * config/rx/predicates.md (rx_constshift_operand): New.
1810 * config/rx/rx.md (zs_cond): New.
1811 (cbranchsi4): Remove mode.
1812 (*cbranchsi4_<code>): Likewise.
1813 (*tstbranchsi4_<code>): New.
1814 (*tstbranchsi4r_<code>): New.
1815 (*tstbranchsi4m_eq): New.
1816 (*tstbranchsi4m_ne): New.
1817 (cbranchsf4): Remove mode.
1818 (*cbranchsf4_<code>): Likewise.
1819
1820 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
1821
1822 * rtlanal.c (simplify_subreg_regno): Don't treat
1823 HARD_FRAME_POINTER_REGNUM specially.
1824
1825 2010-07-30 Joseph Myers <joseph@codesourcery.com>
1826
1827 * common.opt (-G): Don't define option here.
1828 * config/g.opt: New.
1829 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
1830 rs6000/powerpc and score targets.
1831 * opts.c (common_handle_option): Don't handle -G here.
1832 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
1833 * config/frv/frv.c (frv_handle_option): Handle -G.
1834 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
1835 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
1836 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
1837 * config/mips/mips.c (mips_handle_option): Handle -G.
1838 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
1839 * config/score/score.c (score_handle_option): Handle -G.
1840
1841 2010-07-30 Anatoly Sokolov <aesok@post.ru>
1842
1843 * config/mmix/mmix.c: Include basic-block.h.
1844
1845 2010-07-30 Jakub Jelinek <jakub@redhat.com>
1846
1847 PR debug/45055
1848 PR rtl-optimization/45137
1849 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
1850 prototypes.
1851 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
1852 New functions.
1853 * combine.c (next_nonnote_nondebug_insn): Removed.
1854 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
1855 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
1856 * sched-deps.c (sched_analyze_insn): Likewise.
1857 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
1858 * rtlanal.c (canonicalize_condition): Likewise.
1859 * postreload.c (reload_combine_recognize_pattern): Likewise.
1860 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
1861
1862 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
1863
1864 * config/i386/i386.md (int_cond): Remove code iterator.
1865 (fp_cond): Ditto.
1866 (cbranch<mode>4): Use ordered_comparison_operator predicate
1867 for operator0.
1868 (cstore<mode>4): Ditto for operator1.
1869 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
1870 (add<mode>cc): ditto.
1871
1872 2010-07-30 Richard Guenther <rguenther@suse.de>
1873
1874 PR middle-end/45141
1875 * expr.c (expand_expr_real_1): Check for not handled base address.
1876
1877 2010-07-30 Richard Guenther <rguenther@suse.de>
1878
1879 * ipa-prop.c (ipa_modify_formal_parameters): Use
1880 build_distinct_type_copy.
1881
1882 2010-07-30 Anthony Green <green@moxielogic.com>
1883
1884 * config/moxie/rtems.h: New file.
1885 * config.gcc: Add moxie-rtems support.
1886
1887 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
1888
1889 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
1890 df flags as in run_fast_df_dce.
1891
1892 2010-07-29 Jakub Jelinek <jakub@redhat.com>
1893
1894 Revert:
1895 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
1896
1897 * rtl.def (NOTE): Swap operands 4 and 5.
1898 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
1899 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
1900 Adjust accordingly.
1901 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
1902
1903 2010-07-29 Jakub Jelinek <jakub@redhat.com>
1904
1905 PR debug/45110
1906 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
1907 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
1908 (gen_subprogram_die): Likewise. Remove it when removing declaration's
1909 formal parameters.
1910 (gen_decl_die): Change return type to dw_die_ref, return what
1911 gen_formal_parameter_die returned.
1912
1913 2010-07-29 Martin Jambor <mjambor@suse.cz>
1914
1915 * dbgcnt.def (eipa_sra): New counter.
1916 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
1917
1918 2010-07-29 Xinliang David Li <davidxl@google.com>
1919
1920 PR bootstrap/45119
1921 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
1922 in revision 162652.
1923
1924 2010-07-29 Richard Guenther <rguenther@suse.de>
1925
1926 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
1927 (TV_TREE_STORE_CCP): Likewise.
1928 (TV_TREE_REDPHI): Likewise.
1929
1930 2010-07-29 Richard Guenther <rguenther@suse.de>
1931
1932 * double-int.h (double_int_and_not): New function.
1933 * combine.c (try_combine): Use it.
1934 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
1935
1936 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
1937
1938 PR rtl-optimization/42575
1939 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
1940 Argument AU removed. All callers changed. Ignore artificial refs.
1941 Use return value of df_word_lr_simulate_defs to decide whether an insn
1942 is necessary.
1943 (fast_dce): Rename arg to WORD_LEVEL.
1944 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
1945 static.
1946 (pass_fast_rtl_byte_dce): Delete.
1947 * dce.h (run_word_dce): Declare.
1948 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
1949 All callers changed. Simplify code to only deal with two-word regs.
1950 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
1951 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
1952 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
1953 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
1954 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
1955 (df_word_lr_mark_ref): Declare.
1956 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
1957 df_word_lr_simulate_uses): Declare or rename from byte variants.
1958 (df_byte_lr_simulate_artificial_refs_at_top,
1959 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
1960 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
1961 declarations.
1962 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
1963 (enum df_mm): Delete.
1964 * df-byte-scan.c: Delete file.
1965 * df-problems.c (df_word_lr_problem_data): Renamed from
1966 df_byte_lr_problem_data, all members deleted except for
1967 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
1968 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
1969 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
1970 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
1971 df_byte_lr_confluence_0): Delete functions.
1972 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
1973 callers changed.
1974 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
1975 Don't initialize members that were deleted, don't try to discover data
1976 about registers. Ignore hard regs.
1977 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
1978 (df_word_lr_mark_ref): New function.
1979 (df_word_lr_bb_local_compute): Renamed from
1980 df_byte_bb_lr_local_compute; all callers changed. Use
1981 df_word_lr_mark_ref. Assert that artificial refs don't include
1982 pseudos. Ignore hard registers.
1983 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
1984 Assert that exit block uses don't contain pseudos.
1985 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
1986 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
1987 callers changed. Ignore hard regs.
1988 (df_word_lr_transfer_function): Renamed from
1989 df_byte_lr_transfer_function; all callers changed.
1990 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
1991 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
1992 changed.
1993 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
1994 callers changed.
1995 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
1996 confluence operator 0 set to NULL.
1997 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
1998 callers changed.
1999 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
2000 Return bool, true if bitmap changed or insn otherwise necessary.
2001 All callers changed. Simplify using df_word_lr_mark_ref.
2002 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
2003 all callers changed. Simplify using df_word_lr_mark_ref.
2004 * lower-subreg.c: Include "dce.h"
2005 (decompose_multiword_subregs): Call run_word_dce if df available.
2006 * Makefile.in (lower-subreg.o): Adjust dependencies.
2007 (df-byte-scan.o): Delete.
2008 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
2009
2010 2010-07-29 Richard Guenther <rguenther@suse.de>
2011
2012 * tree.c (build_vector): Assert that the vector constant
2013 has enough elements.
2014 (build_vector_from_ctor): Pad with trailing zeros.
2015
2016 2010-07-29 Richard Guenther <rguenther@suse.de>
2017
2018 PR tree-optimization/45120
2019 * tree-ssa-structalias.c (get_constraint_for_component_ref):
2020 Handle offset in DEREFs properly.
2021 (get_constraint_for_1): Handle MEM_REF offset properly.
2022
2023 2010-07-29 Richard Guenther <rguenther@suse.de>
2024
2025 PR middle-end/45034
2026 * convert.c (convert_to_integer): Always use an unsigned
2027 type for narrowed negate and bitwise not.
2028
2029 2010-07-29 Ira Rosen <irar@il.ibm.com>
2030
2031 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
2032 to outer loop when creating reduction epilogue for double reduction,
2033 and switch back to the inner loop when updating the phi nodes.
2034 Update uses of outer loop exit phi nodes in double reduction (instead
2035 of uses of reduction).
2036
2037 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
2038
2039 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
2040 popcount on power7 and parity on power6 systems.
2041 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
2042 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
2043 instructions.
2044
2045 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
2046 (UNSPEC_PARITY): Ditto.
2047 (SFDF): New iterator for SF/DF.
2048 (rreg2): New mode attribute for floating register constraint.
2049 (TARGET_FLOAT): New mode attribute for whether single/double float
2050 is supported.
2051 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
2052 pattern.
2053 (parity<mode>2_cmpb): New insn for parity on power6 and newer
2054 machines.
2055 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
2056 pattern. Add support for fcpsgn instruction added in power6.
2057 (copysignsf3): Delete.
2058 (copysigndf3): Delete.
2059 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
2060 instead of if_then_else in RTL to avoid problems with -0.
2061
2062 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
2063 of if_then_else to mirror scalar code.
2064 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
2065 rs6000.md.
2066
2067 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
2068 instead of if_then_else.
2069
2070 2010-07-28 Xinliang David Li <davidxl@google.com>
2071
2072 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
2073 (dump_cand): Dump var_before/after.
2074 (htab_inv_expr_eq): New function.
2075 (htab_inv_expr_hash): New function.
2076 (tree_ssa_iv_optimize_init): Support pseudo invariants.
2077 (add_candidate_1): consider base type precision.
2078 (set_use_iv_cost): New parameter.
2079 (adjust_setup_cost): Use profile information.
2080 (get_address_cost): Do not hard code width in computing address
2081 offset limits.
2082 (compare_aff_trees): New function.
2083 (get_loop_invariant_expr_id): New function.
2084 (get_computation_cost_at): New parameter and use profile information.
2085 (get_computation_cost): New parameter.
2086 (determine_use_iv_cost_generic): Pass new parameter.
2087 (determine_use_iv_cost_address): Ditto.
2088 (determine_use_iv_cost_condition): Ditto.
2089 (autoinc_possible_for_pair): Ditto.
2090 (determine_use_iv_costs): More dumps.
2091 (iv_ca_get_num_inv_exprs): New function.
2092 (iv_ca_recount_cost): Consider loop invariants in register pressure
2093 cost.
2094 (iv_ca_add_use): New parameter.
2095 (iv_ca_dump): Better dumping.
2096 (iv_ca_extend): New parameter.
2097 (try_add_cand_for): Attempt to get better partial solution.
2098 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
2099 (create_new-ivs): More dumps.
2100 (rewrite_use_compare): Ditto.
2101 (free_loop_data): More cleanup.
2102 (treee_ssa_iv_optimize_finalize): Ditto.
2103
2104 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
2105
2106 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
2107 * config/i386/i386.c (ix86_profile_before_prologue): New.
2108 (override_options): Add special handling for -mfentry.
2109 (ix86_function_regparm): Likewise.
2110 (ix86_function_sseregparm): Likewise.
2111 (ix86_frame_pointer_required): Likewise.
2112 (ix86_expand_prologue): Check for ms_hook_prologue.
2113 (x86_function_profiler): Adjust mcount output.
2114 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
2115 * config/i386/i386.opt (mfentry): New.
2116 * doc/invoke.texi (mfentry): Add documentation.
2117 * doc/tm.texi: Regenerated..
2118 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
2119 * final.c (final_start_function): Replace macro
2120 PROFILE_BEFORE_PROLOGUE by target hook.
2121 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2122 * target.def (profile_before_prologue): New hook.
2123 * targhooks.c (default_profile_before_prologue): New.
2124 * targhooks.h (default_profile_before_prologue): New.
2125
2126 2010-07-28 Jakub Jelinek <jakub@redhat.com>
2127
2128 PR debug/45105
2129 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
2130
2131 PR debug/45103
2132 * dwarf2out.c (dwarf2out_var_location): Always consider
2133 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
2134
2135 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
2136
2137 PR rtl-optimization/45107
2138 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
2139
2140 2010-07-28 Richard Guenther <rguenther@suse.de>
2141
2142 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
2143 (set_lattice_value): Do not query an old default value.
2144 (get_value_for_expr): New function. Properly canonicalize
2145 float values.
2146 (ccp_visit_phi_node): Use it.
2147
2148 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
2149
2150 * config/arm/arm.c (arm_pcs_default): Remove static.
2151 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
2152 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
2153 (arm_pcs_default): Declare.
2154
2155 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
2156
2157 * config/rs6000/rs6000.c (rs6000_override_options):
2158 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
2159 ... to darwin_rs6000_override_options.
2160 (rs6000_return_in_memory): Update preceding comment for darwin
2161 64 bit ABI. Use TARGET_MACHO inline.
2162 (rs6000_darwin64_struct_check_p): New.
2163 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
2164 (function_arg): Likewise.
2165 (rs6000_arg_partial_bytes): Likewise.
2166 (rs6000_function_value): Likewise.
2167
2168 2010-07-28 Andi Kleen <ak@linux.intel.com>
2169
2170 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
2171
2172 2010-07-28 Richard Guenther <rguenther@suse.de>
2173
2174 PR middle-end/44903
2175 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
2176 targets try harder to not generate unaligned accesses.
2177
2178 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
2179
2180 PR rtl-optimization/45101
2181 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
2182 for gcse-las.
2183
2184 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
2185
2186 PR tree-optimization/44885
2187 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
2188 with non-aliased component.
2189
2190 2010-07-28 Joseph Myers <joseph@codesourcery.com>
2191
2192 * config/darwin-driver.c (SWITCH_TAKES_ARG,
2193 WORD_SWITCH_TAKES_ARG): Remove.
2194 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2195 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
2196 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
2197 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
2198 definitions from gcc.c.
2199 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
2200 defaults.h.
2201 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
2202 Move to defaults.h.
2203 * opts-common.c: Include tm.h.
2204 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
2205 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
2206 Handle more than one argument. Set canonical_option_num_elements.
2207 (decode_cmdline_options_to_array): Set
2208 canonical_option_num_elements and trailing elements of
2209 canonical_option.
2210 * opts.h (struct cl_decoded_option): Allow four elements in
2211 canonical_option. Add field canonical_option_num_elements.
2212 * Makefile.in (opts-common.o): Update dependencies.
2213
2214 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
2215
2216 PR middle-end/44790
2217 PR middle-end/44993
2218 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
2219 sure the base has address_mode before adding the offset.
2220
2221 2010-07-27 Xinliang David Li <davidxl@google.com>
2222
2223 * tree-flow.h (create_mem_ref): Add one new parameter.
2224 * tree-ssa-address.c (create_mem_ref): New parameter.
2225 (addr_to_parts): Ditto.
2226 (move_variant_to_index): New function.
2227 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
2228
2229 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
2230
2231 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
2232 4 and 5.
2233 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
2234 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
2235 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
2236 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
2237 CODE_LABELs and NOTEs.
2238 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
2239 * combine.c (try_combine): Likewise.
2240 * ira.c (setup_prohibited_mode_move_regs): Likewise.
2241 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
2242
2243 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2244
2245 * coretypes.h (struct cl_option_handlers): Declare.
2246 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
2247 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
2248 * langhooks-def.h (lhd_handle_option): Declare.
2249 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
2250 * langhooks.c (lhd_handle_option): New.
2251 * langhooks.h (struct lang_hooks): Update prototype and return
2252 value type of handle_option hook.
2253 * optc-gen.awk: Generate target_flags_explicit definition for the
2254 driver.
2255 * opts-common.c: Include diagnostic.h.
2256 (handle_option): Move from opts.c. Update prototype and return
2257 value type. Use handlers structure.
2258 (read_cmdline_option): Move from opts.c. Update prototype. Use
2259 handlers structure.
2260 (set_option): Move from opts.c.
2261 * opts.c (common_handle_option): Update prototype and return value
2262 type. Update calls to handle_option and enable_warning_as_error.
2263 (unknown_option_callback, post_handling_callback,
2264 lang_handle_option, target_handle_option): New.
2265 (handle_option, read_cmdline_option): Move to opts-common.c.
2266 (read_cmdline_options): Update prototype. Update call to
2267 read_cmdline_option.
2268 (decode_options): Initialize and use handlers structure.
2269 (set_option): Move to opts-common.c.
2270 (enable_warning_as_error): Update prototype. Update call to
2271 handle_option.
2272 * opts.h (struct cl_option_handler_func, struct
2273 cl_option_handlers): New.
2274 (handle_option, enable_warning_as_error): Update prototypes.
2275 (read_cmdline_option): Declare.
2276 * Makefile.in (opts-common.o): Update dependencies.
2277
2278 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2279
2280 * config/arm/arm.c (params.h): Include.
2281 (arm_override_options): Tune gcse-unrestricted-cost.
2282 * config/arm/t-arm (arm.o): Define dependencies.
2283
2284 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2285
2286 PR target/42495
2287 PR middle-end/42574
2288 * basic-block.h (get_dominated_to_depth): Declare.
2289 * dominance.c (get_dominated_to_depth): New function, use
2290 get_all_dominated_blocks as a base.
2291 (get_all_dominated_blocks): Use get_dominated_to_depth.
2292
2293 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
2294 (hoist_exprs): Remove.
2295 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
2296 (compute_code_hoist_vbeinout): Add debug print outs.
2297 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
2298
2299 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
2300 quadratic behavior.
2301 * params.h (MAX_HOIST_DEPTH): New macro.
2302 * doc/invoke.texi (max-hoist-depth): Document.
2303
2304 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2305
2306 PR rtl-optimization/40956
2307 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
2308 constants.
2309
2310 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2311
2312 PR target/42495
2313 PR middle-end/42574
2314 * config/arm/arm.c (legitimize_pic_address): Use
2315 gen_calculate_pic_address pattern to emit calculation of PIC address.
2316 (will_be_in_index_register): New function.
2317 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
2318 (thumb1_legitimate_address_p): Use it provided !strict_p.
2319 * config/arm/arm.md (calculate_pic_address): New expand and split.
2320
2321 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2322
2323 PR target/42495
2324 PR middle-end/42574
2325 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
2326 * config/arm/arm.md (define_split "J", define_split "K"): Make
2327 IRA/reload friendly.
2328
2329 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2330
2331 * gcse.c (insert_insn_end_basic_block): Update signature, remove
2332 unused checks.
2333 (pre_edge_insert, hoist_code): Update.
2334
2335 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2336
2337 PR target/42495
2338 PR middle-end/42574
2339 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
2340
2341 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2342
2343 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
2344
2345 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2346
2347 PR rtl-optimization/40956
2348 PR target/42495
2349 PR middle-end/42574
2350 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
2351 for hoisting.
2352 (hoist_code): Count occurences in current block too.
2353
2354 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2355
2356 * gcse.c (struct expr:max_distance): New field.
2357 (doing_code_hoisting_p): New static variable.
2358 (want_to_gcse_p): Change signature. Allow constrained hoisting of
2359 simple expressions, don't change behavior for PRE. Set max_distance.
2360 (insert_expr_in_table): Set new max_distance field.
2361 (hash_scan_set): Update.
2362 (hoist_expr_reaches_here_p): Stop search after max_distance
2363 instructions.
2364 (find_occr_in_bb): New static function. Use it in ...
2365 (hoist_code): Calculate sizes of basic block before any changes are
2366 done. Pass max_distance to hoist_expr_reaches_here_p.
2367 (one_code_hoisting_pass): Set doing_code_hoisting_p.
2368
2369 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
2370 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
2371 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
2372 macros.
2373 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
2374 Document.
2375
2376 2010-07-27 Jeff Law <law@redhat.com>
2377 Maxim Kuvyrkov <maxim@codesourcery.com>
2378
2379 * gcse.c (compute_transpout, transpout): Remove, move logic
2380 to prune_expressions.
2381 (compute_pre_data): Move pruning of trapping expressions ...
2382 (prune_expressions): ... here. New static function.
2383 (compute_code_hoist_data): Use it.
2384 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
2385
2386 2010-07-27 Xinliang David Li <davidxl@google.com>
2387
2388 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
2389 (rewrite_use_address): Adjust iv update position when needed.
2390
2391 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2392
2393 * dbgcnt.def (hoist_insn): New debug counter.
2394 * gcse.c (hoist_code): Use it.
2395
2396 2010-07-27 Xinliang David Li <davidxl@google.com>
2397
2398 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
2399 (niter_for_single_dom_exit): Passes additional parameter.
2400 (iv_period): Fix comments.
2401 (may_eliminate_iv): Handles multiple exit loops properly.
2402 (free_tree_niter_desc): New function.
2403 (free_loop_data): Frees up loop iteration descriptors.
2404
2405 2010-07-27 Jakub Jelinek <jakub@redhat.com>
2406
2407 PR target/44542
2408 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
2409 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
2410 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
2411 (expand_one_var): Don't consider DECL_ALIGN for variables for
2412 which expand_one_stack_var_at has been already called.
2413
2414 PR testsuite/44701
2415 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
2416 constraints on IA-64.
2417
2418 2010-07-27 Jie Zhang <jie@codesourcery.com>
2419
2420 PR target/44290
2421 Revert:
2422 2010-07-23 Jie Zhang <jie@codesourcery.com>
2423
2424 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
2425 false if ! tree_versionable_function_p.
2426
2427 2010-07-27 Jakub Jelinek <jakub@redhat.com>
2428
2429 * dwarf2out.c (add_data_member_location_attribute): Use
2430 add_AT_unsigned instead of add_AT_int if offset is non-negative.
2431
2432 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
2433
2434 * postreload.c (try_replace_in_use): New static function.
2435 (reload_combine_recognize_const_pattern): Use it here. Allow
2436 substituting into a final add insn, and substituting into a memory
2437 reference in an insn that sets the reg.
2438
2439 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2440
2441 * common.opt (o): Add MissingArgError.
2442 * doc/options.texi (MissingArgError): Document.
2443 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
2444 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
2445 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2446 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
2447 * langhooks.h (struct lang_hooks): Remove missing_argument.
2448 * optc-gen.awk: Handle MissingArgError and output new structure
2449 field initializers.
2450 * opts.c (read_cmdline_option): Use missing_argument_error field
2451 instead of missing_argument langhook.
2452 * opts.h (struct cl_option): Add missing_argument_error field.
2453 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
2454
2455 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
2456
2457 PR target/29090
2458 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
2459 Darwin64 ABI, for zero-sized objects.
2460
2461 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
2462
2463 PR target/35491
2464 PR target/29090
2465
2466 Merge from Apple local 4.2.1.
2467 2005-05-11 Stan Shebs <shebs@apple.com>
2468 Fix 64-bit varargs for Darwin (Radar 4028089).
2469 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
2470 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
2471 Add argument, add case for 8-byte register half-filled with a float.
2472 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
2473 single-precision floats specially.
2474
2475 2010-07-27 Ira Rosen <irar@il.ibm.com>
2476
2477 PR tree-optimization/44152
2478 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
2479 complex numbers for further check.
2480 (vect_supported_load_permutation_p): Check nodes with
2481 complex numbers.
2482
2483 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2484
2485 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
2486 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
2487 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
2488 (LANG_HOOKS_INITIALIZER): Add new hooks.
2489 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
2490 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
2491 and complain_wrong_lang_p. Update init_options prototype.
2492 * c-objc-common.c (c_initialize_diagnostics): First call
2493 c_common_initialize_diagnostics.
2494 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
2495 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
2496 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
2497 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
2498 (hook_uint_void_0): New.
2499 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
2500 (hook_uint_void_0): New.
2501 * opts-common.c (decode_cmdline_option,
2502 decode_cmdline_options_to_array): Also fill in canonical_option field.
2503 * opts.c (complain_wrong_lang): Use langhook to determine whether
2504 to complain instead of special-casing LTO.
2505 (decode_options): Separate lang_mask determination with
2506 option_lang_mask hook from call of init_options hook.
2507 * opts.h (struct cl_decoded_option): Add canonical_option.
2508
2509 2010-07-27 Jakub Jelinek <jakub@redhat.com>
2510
2511 PR tree-optimization/45083
2512 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
2513
2514 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
2515
2516 * postreload.c (reload_combine_recognize_const_pattern): Move test
2517 for limiting the insn movement to the right scope.
2518
2519 PR rtl-optimization/45051
2520 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
2521 than reg_mentioned_p.
2522
2523 2010-07-26 Richard Henderson <rth@redhat.com>
2524
2525 PR target/44132
2526 * tree-emutls.c: New file.
2527 * Makefile.in (OBJS-common): Add it.
2528 * tree-pass.h (pass_ipa_lower_emutls): Declare.
2529 * passes.c (init_optimization_passes): Add it.
2530
2531 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
2532 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
2533 * expr.c (emutls_var_address): Delete.
2534 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
2535 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
2536 (emutls_finish): Delete.
2537 * toplev.c (compile_file): Don't call it.
2538 * tree.h (emutls_decl): Delete.
2539 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
2540 (emutls_finish, emutls_finalize_control_var): Delete.
2541 (emutls_object_type): Move to tree-emutls.c.
2542 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
2543 default_emutls_var_fields, get_emutls_object_type,
2544 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
2545 default_emutls_var_init): Likewise.
2546 (get_variable_section): Don't special case emutls.
2547 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
2548 default_elf_select_section, default_unique_section,
2549 default_encode_section_info): Likewise.
2550 * varpool.c (decide_is_variable_needed): Likewise.
2551 * gimple-iterator.c (update_call_edge_frequencies): New
2552 (gsi_insert_on_edge_immediate): Use it.
2553 (gsi_insert_seq_on_edge_immediate): Likewise.
2554 (gsi_commit_one_edge_insert): Likewise.
2555
2556 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
2557 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
2558 (x86_64_elf_unique_section): Likewise.
2559
2560 2010-07-26 Jan Hubicka <jh@suse.cz>
2561
2562 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
2563 GTY((skip)).
2564
2565 2010-07-26 Anatoly Sokolov <aesok@post.ru>
2566
2567 * target.def (output_source_filename): New hook.
2568 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
2569 * doc/tm.texi: Regenerate.
2570 * toplev.c (output_file_directive) Remove function.
2571 * toplev.h (output_file_directive) Remove.
2572 * output.h (default_asm_output_source_filename,
2573 output_file_directive): Declare.
2574 * varasm.h (default_asm_output_source_filename,
2575 output_file_directive): New functions.
2576
2577 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2578 * config/mips/mips-protos.h (mips_output_filename): Remove.
2579 * config/mips/mips.c (mips_output_filename): Make Static.
2580 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
2581
2582 2010-07-26 Richard Guenther <rguenther@suse.de>
2583
2584 PR tree-optimization/43784
2585 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
2586 if the destination is used by the call.
2587
2588 2010-07-26 Richard Guenther <rguenther@suse.de>
2589
2590 PR middle-end/45073
2591 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
2592 SSA updating on being in SSA form.
2593
2594 2010-07-26 Richard Guenther <rguenther@suse.de>
2595
2596 PR middle-end/45056
2597 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
2598
2599 2010-07-26 Richard Guenther <rguenther@suse.de>
2600
2601 PR tree-optimization/45071
2602 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
2603 adjust op->opcode.
2604
2605 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
2606
2607 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
2608 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
2609 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
2610 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
2611 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
2612 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
2613 save_r31, return_r31, save_interrupt, return_interrupt,
2614 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
2615 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
2616 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
2617 new ABI requirements.
2618 (save_r6_r9, L_callt_save_r6_r9): Remove.
2619 * config/v850/predicates.md (even_reg_operand, disp23_operand,
2620 const_float_1_operand const_float_0_operand): New Predicates.
2621 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
2622 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
2623 * config/v850/t-v850: Update multilibs for new target variants.
2624 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
2625 * config/v850/t-v850e: Likewise.
2626 * config/v850/v850.c (v850_issue_rate): New.
2627 (v850_strict_argument_naming): New.
2628 (function_arg): Modify to generate a different ABI.
2629 (print_operand): Update case 'z' to support float modes.
2630 (output_move_single): Modify to generate appropriate and better
2631 assembly.
2632 (v850_float_z_comparison_operator, v850_select_cc_mode,
2633 v850_float_nz_comparison_operator, v850_gen_float_compare,
2634 v850_gen_compare): New functions to support comparison of float values.
2635 (ep_memory_offset): Add support for V850E2 targets.
2636 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
2637 (INTERRUPT_REGPARM_NUM): Remove.
2638 (compute_register_save_size): Add extra case to save/restore long call.
2639 (use_prolog_function): New function to support prologue.
2640 (expand_prologue): Add support for V850E2 targets and modified
2641 as per the current ABI requirements.
2642 (expand_epilogue): Likewise.
2643 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
2644 (construct_save_jarl): Likewise.
2645 (construct_dispose_instruction): Update as per the current ABI
2646 requirements.
2647 (construct_prepare_instruction): Likewise.
2648 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
2649 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
2650 (CPP_SPEC): Updated to support v850e2 targets.
2651 (STRICT_ALIGNMENT): Modified.
2652 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
2653 (FIXED_REGISTERS): Likewise.
2654 (CALL_USED_REGISTERS): Likewise.
2655 (CONDITIONAL_REGISTER_USAGE): Updated.
2656 (HARD_REGNO_MODE_OK): Updated.
2657 (reg_class): Updated to add even registers.
2658 (REG_CLASS_NAMES): Likewise.
2659 (REG_CLASS_CONTENTS): Likewise.
2660 (REGNO_REG_CLASS): Updated for CC registers.
2661 (REG_CLASS_FROM_LETTER): Added support for even registers.
2662 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
2663 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
2664 ARG_POINTER_REGNUM): Updated.
2665 (FUNCTION_ARG_ADVANCE): Define.
2666 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
2667 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
2668 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
2669 (GO_IF_LEGITIMATE_ADDRESS): Updated.
2670 (SELECT_CC_MODE): Define.
2671 (REGISTER_NAMES): Updated to add psw and fcc registers.
2672 (ADDITIONAL_REGISTER_NAMES): Updated.
2673 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
2674 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
2675 * config/v850/v850.md (define_constants): Define new constants.
2676 (type): Update store,bit1,macc,div,fpu and single attributes.
2677 (cpu): New attribute.
2678 (cc): Add set_z attribute.
2679 (unsign23byte_load, sign23byte_load, unsign23hword_load,
2680 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
2681 23word_store): New instructions for 23-bit displacement load and store.
2682 (movqi_internal, movhi_internal): Update the attributes.
2683 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
2684 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
2685 the attributes.
2686 (v850_tst1): Modified using CC_REGNUM.
2687 (tstsi): Remove.
2688 (cmpsi): Modified as define_expand from define_insn.
2689 (cmpsi_insn, cmpsf, cmpdf): New instructions.
2690 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
2691 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
2692 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
2693 one_cmplsi2): Clobber the CC_REGNUM register.
2694 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
2695 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
2696 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
2697 (setf_insn, set_z_insn, set_nz_insn): New instructions for
2698 v850e2v3 target.
2699 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
2700 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
2701 targets.
2702 (sasf_1, sasf_2): Remove.
2703 (sasf): New instruction.
2704 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
2705 targets. CC_REGNUM register is clobbered and attributes are
2706 updated.
2707 (branch_z_normal, branch_z_invert, branch_nz_normal,
2708 branch_nz_invert): New branch related instructions.
2709 (jump): Updated the attributes.
2710 (switch): Update to support new targets. CC_REGNUM register is
2711 clobbered and attributes are updated.
2712 (call_internal_short, call_internal_long, call_value_internal_short,
2713 call_value_internal_long): Updated the attributes.
2714 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
2715 clobbered and attributes are updated.
2716 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
2717 Update to support new targets. CC_REGNUM register is clobbered.
2718 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
2719 instructions.
2720 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
2721 are updated.
2722 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
2723 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
2724 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
2725 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
2726 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
2727 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
2728 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
2729 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
2730 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
2731 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
2732 point instructions defined for V850e2v3 target.
2733 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
2734 Add support for V850E2 targets and CC_REGNUM register is clobbered.
2735 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
2736 support for new targets.
2737 * config/v850/v850-modes.def: New file.
2738 * config/v850/v850.opt(mstrict-align): Remove.
2739 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
2740 mv850e2v3): New command line options for V850.
2741 * config.gcc: Update the newly added files.
2742 * doc/invoke.texi: Update the newly added command line options for
2743 V850 target.
2744
2745 2010-07-26 Richard Guenther <rguenther@suse.de>
2746
2747 PR tree-optimization/45052
2748 * ipa-pure-const.c (check_stmt): Check volatileness.
2749
2750 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
2751
2752 PR target/44707
2753 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
2754 * config/sparc/sparc.c: Include reload.h.
2755 (legitimize_tls_address): Rename into...
2756 (sparc_legitimize_tls_address): ...this.
2757 (legitimize_pic_address): Rename into...
2758 (sparc_legitimize_pic_address): ...this.
2759 (sparc_expand_move): Adjust to above renaming.
2760 (sparc_tls_referenced_p): Likewise.
2761 (sparc_legitimize_tls_address): Likewise.
2762 (sparc_legitimize_pic_address): Likewise.
2763 (sparc_legitimize_address): Likewise.
2764 (sparc_output_mi_thunk): Likewise.
2765 (sparc_legitimize_reload_address): New global function. Recognize
2766 (lo_sum (high ...) ...) patterns generated by earlier passes.
2767 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
2768
2769 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
2770
2771 PR target/44484
2772 * config/sparc/predicates.md (memory_reg_operand): Delete.
2773 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
2774 (*sync_compare_and_swap): Encode the address form in the pattern.
2775 (*sync_compare_and_swapdi_v8plus): Likewise.
2776
2777 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
2778
2779 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
2780 Streamline paragraph on compatibility with the system compiler.
2781
2782 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
2783
2784 PR middle-end/45035
2785 * alias.c (true_dependence_1): Fix thinko in merge of old
2786 true_dependence and canon_true_dependence.
2787
2788 2010-07-23 Jan Hubicka <jh@suse.cz>
2789
2790 * lto-streamer-out.c (write_symbol): Fix visibilities of external
2791 references.
2792
2793 2010-07-23 Le-Chun Wu <lcwu@google.com>
2794
2795 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
2796 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
2797 and an unnecessary assignment.
2798 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
2799 self-assign warning.
2800 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
2801 unnecessary self-init.
2802
2803 2010-07-23 Richard Guenther <rguenther@suse.de>
2804
2805 PR lto/43071
2806 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
2807 for -flto and -fwhopr.
2808
2809 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
2810
2811 PR target/41943
2812 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
2813 (stmp-int-hdrs): Prefix/postfix headers by include_next.
2814 * config.gcc (user_headers_inc_next_pre): New.
2815 (user_headers_inc_next_post): Likewise.
2816 (*-w64-mingw*): Use for float.h post-fixing, and for
2817 stddef.h/stdarg.h pre-fixing by include_next.
2818 * configure.ac (user_headers_inc_next_post): New.
2819 (user_headers_inc_next_pre): New.
2820 * configure: Regenerated.
2821
2822 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2823
2824 * configure.ac: Don't disable TLS on Solaris 8/9 by default
2825 Set tga_func for Solaris 2/x86 resp. SPARC.
2826 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
2827 (LIB_THREAD_LDFLAGS_SPEC): Define.
2828 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
2829 * configure: Regenerate.
2830 * config.in: Regenerate.
2831 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
2832 -pthread, -threads, LIB_TLS_SPEC with -pthread.
2833 * doc/install.texi (Specific, *-*-solaris2*): Document use of
2834 alternate thread libraries on Solaris 8.
2835 Document TLS patch requirements.
2836 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
2837 Document tls.
2838
2839 PR target/18788
2840 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
2841 -shared.
2842
2843 2010-07-23 Jakub Jelinek <jakub@redhat.com>
2844
2845 * tree.h (struct tree_base): Add nameless_flag bitfield.
2846 (TYPE_NAMELESS, DECL_NAMELESS): Define.
2847 * omp-low.c (create_omp_child_function, scan_omp_parallel,
2848 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
2849 DECL_ARTIFICIAL where needed.
2850 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
2851 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
2852 has DECL_NAMELESS set.
2853
2854 2010-07-23 Martin Jambor <mjambor@suse.cz>
2855
2856 PR tree-optimization/44915
2857 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
2858 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
2859 (analyze_function): Likewise.
2860
2861 2010-07-23 Martin Jambor <mjambor@suse.cz>
2862
2863 PR tree-optimization/44914
2864 * tree-sra.c (sra_modify_function_body): Return true if CFG was
2865 changed, add purging dead eh edges.
2866 (ipa_sra_modify_function_body): Return true if CFG was changed,
2867 simplify purging dead eh edges.
2868 (modify_function): Return true if CFG was changed.
2869 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
2870 was changed.
2871 (ipa_early_sra): Likewise.
2872
2873 2010-07-23 Jie Zhang <jie@codesourcery.com>
2874
2875 PR target/44290
2876 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
2877 if "naked".
2878 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
2879 false if ! tree_versionable_function_p.
2880
2881 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
2882
2883 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
2884 * ipa-pure-const.c (special_builtlin_state): Remove
2885 BUILT_IN_ARGS_INFO case.
2886 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
2887 * builtins.c (expand_builtin): Likewise.
2888 (expand_builtin_args_info): Remove.
2889 * doc/tm.texi (__builtin_args_info): Remove.
2890 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
2891 * doc/tm.text.in: Likewise.
2892
2893 2010-07-23 Richard Guenther <rguenther@suse.de>
2894
2895 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
2896 (lto_symtab_merge_decls_2): Likewise.
2897 * tree-ssa.c (useless_type_conversion_p): Likewise.
2898 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2899 * gimple.c (gtc_visited2, gtc_ob2): Remove.
2900 (struct type_pair_d): Make same_p an array indexed by mode.
2901 Update comment.
2902 (lookup_type_pair): Update initialization.
2903 (struct sccs): Adjust same_p type.
2904 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
2905 Adjust.
2906 (print_gimple_types_stats): Likewise.
2907 * gimple.h (enum gtc_mode): New.
2908 (gimple_types_compatible_p): Adjust prototype.
2909
2910 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
2911
2912 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
2913 again after processing insn.
2914
2915 2010-07-23 Jie Zhang <jie@codesourcery.com>
2916
2917 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
2918 proper words when !tree_versionable_function_p.
2919
2920 2010-07-23 Richard Guenther <rguenther@suse.de>
2921
2922 PR tree-optimization/45037
2923 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
2924
2925 2010-07-23 Jie Zhang <jie@codesourcery.com>
2926
2927 * doc/extend.texi: Remove IP2K from the description of naked attribute.
2928 Add MCORE instead.
2929
2930 2010-07-10 Andi Kleen <ak@linux.intel.com>
2931
2932 PR lto/44992
2933 * lto-opts.c (lto_write_options): Add NULL file_data argument to
2934 lto_get_section_name.
2935 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
2936 * lto-streamer-out.c (produce_asm): Likewise.
2937 (copy_function): Likewise.
2938 (produce_symtab): Likewise.
2939 (produce_asm_for_decls): Likewise.
2940 * lto-streamer.c (lto_get_section_name): Add file_data argument.
2941 Rewrite to add random postfix to LTO sections.
2942 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
2943 (lto_get_section_name): Add file_data argument to prototype.
2944
2945 2010-07-10 Andi Kleen <ak@linux.intel.com>
2946
2947 * lto-section-in.c (lto_section_name): Synchronize names
2948 with lto_get_section_name.
2949
2950 2010-07-10 Andi Kleen <ak@linux.intel.com>
2951
2952 * lto-opts.c (lto_read_file_options): Check for missing section.
2953
2954 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
2955
2956 * ira.c (check_allocation): Correctly handle the case where an allocno
2957 with two objects was allocated to a single reg.
2958
2959 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
2960
2961 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
2962 (is_widening_mult_p): Likewise.
2963 (convert_to_widen): Use them.
2964 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
2965 well as integer ones.
2966
2967 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
2968
2969 * alias.c (true_dependence_1): New function, merged version of
2970 true_dependence and canon_true_dependence.
2971 (true_dependence): Simplify.
2972 (canon_true_dependence): Simplify.
2973
2974 2010-07-22 Richard Henderson <rth@redhat.com>
2975
2976 PR target/45027
2977 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
2978 of V4SFmode for the SSE saves; increase stack alignment if needed.
2979 (ix86_gimplify_va_arg): Don't increase stack alignment here.
2980
2981 2010-07-22 Jakub Jelinek <jakub@redhat.com>
2982
2983 PR bootstrap/45028
2984 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
2985 call cprop_find_used_regs again via note_uses.
2986
2987 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
2988
2989 * alias.c (get_alias_set): Fix formatting issues.
2990
2991 2010-07-22 Steve Ellcey <sje@cup.hp.com>
2992
2993 PR middle-end/44878
2994 * stmt.c (expand_value_return): Call promote_function_mode with
2995 a for_return argument of 2 when returning by reference.
2996
2997 2010-07-22 Dodji Seketeli <dodji@redhat.com>
2998
2999 PR debug/45024
3000 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
3001 unit DIE if we can find the scope DIE.
3002
3003 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
3004
3005 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
3006 changed. Initialize OBJECT_SUBWORD.
3007 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
3008 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
3009 all callers changed.
3010 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
3011 (finish_allocno): Likewise.
3012 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
3013 (remove_low_level_allocnos): Likewise.
3014 (update_bad_spill_attribute): Likewise.
3015 (setup_min_max_allocno_live_range_point): Likewise.
3016 (sort_conflict_id_map): Likewise.
3017 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
3018 (ior_hard_reg_conflicts): New function.
3019 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
3020 (compress_conflict_vecs): Iterate over objects, not allocnos.
3021 (ira_add_live_range_to_object): New function.
3022 (object_range_compare_func): Renamed from allocno_range_compare_func.
3023 All callers changed.
3024 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
3025 subobjects, widen the min/max range of the lowest-order object to
3026 potentially include all other such low-order objects.
3027 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
3028 (check_allocation): Likewise. Use more fine-grained tests for register
3029 conflicts.
3030 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
3031 allocno subobjects.
3032 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
3033 choices about which bits to set in each set. Don't use
3034 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
3035 using the multiple sets we computed.
3036 (push_allocno_to_stack): Iterate over allocno subobjects.
3037 (all_conflicting_hard_regs_coalesced): New static function.
3038 (setup_allocno_available_regs_num): Use it.
3039 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
3040 subobjects.
3041 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
3042 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3043 by ALLOCNO_NUM_OBJECTS.
3044 (calculate_spill_cost): Likewise.
3045 (color_pass): Express if statement in a more normal way.
3046 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
3047 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
3048 (setup_slot_coalesced_allocno_live_ranges): Likewise.
3049 (allocno_reload_assign): Likewise.
3050 (ira_reassign_pseudos): Likewise.
3051 (fast_allocation): Likewise.
3052 * ira-conflicts.c (build_conflict_bit_table): Likewise.
3053 (print_allocno_conflicts): Likewise.
3054 (ira_build_conflicts): Likewise.
3055 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
3056 callers changed. Test subword 0 of each allocno for conflicts.
3057 (build_object_conflicts): Renamed from build_allocno_conflicts. All
3058 callers changed. Iterate over allocno subobjects.
3059 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
3060 * ira-int.h (struct ira_allocno): New member: num_objects.
3061 Rename object to objects and change it into an array.
3062 (ALLOCNO_OBJECT): Add new argument N.
3063 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
3064 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
3065 (ior_hard_reg_conflicts): Declare.
3066 (ira_add_live_range_to_object): Declare.
3067 (ira_allocno_object_iterator): New.
3068 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
3069 (FOR_EACH_ALLOCNO_OBJECT): New macro.
3070 * ira-lives.c (objects_live): Renamed from allocnos_live; all
3071 uses changed.
3072 (allocnos_processed): New sparseset.
3073 (make_object_born): Renamed from make_allocno_born; take an
3074 ira_object_t argument. All callers changed.
3075 (make_object_dead): Renamed from make_allocno_dead; take an
3076 ira_object_t argument. All callers changed.
3077 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
3078 All callers changed.
3079 (mark_pseudo_regno_live): Iterate over allocno subobjects.
3080 (mark_pseudo_regno_dead): Likewise.
3081 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
3082 functions.
3083 (mark_ref_live): Detect subword accesses and call
3084 mark_pseudo_regno_subword_live as appropriate.
3085 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
3086 (process_bb_nodes_live): Deal with object-related updates first; set
3087 and test bits in allocnos_processed to avoid computing allocno
3088 statistics more than once.
3089 (create_start_finish_chains): Iterate over objects, not allocnos.
3090 (print_object_live_ranges): New function.
3091 (print_allocno_live_ranges): Use it.
3092 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
3093 and objects_live.
3094
3095 2010-07-22 Richard Guenther <rguenther@suse.de>
3096
3097 PR lto/42451
3098 * gimple.c (gtc_next_dfs_num): New global.
3099 (struct sccs): Make value a union, add integer same_p member.
3100 (gtc_visit): New function.
3101 (gimple_types_compatible_p_1): New function, split out from ...
3102 (gimple_types_compatible_p): ... here. Start a DFS walk here.
3103 (iterative_hash_gimple_type): Adjust for sccs change.
3104
3105 2010-07-22 Martin Jambor <mjambor@suse.cz>
3106
3107 PR tree-optimization/44891
3108 * tree-sra.c: Include gimple-pretty-print.h.
3109 (replace_uses_with_default_def_ssa_name): Renamed to
3110 get_repl_default_def_ssa_name, return the new SSA name instead of
3111 replacing the old one.
3112 (sra_modify_assign): Dump a message when removing a load, if the LHS
3113 is an SSA_NAME, do not do any propagation, just set the RHS to a
3114 default definition SSA NAME, type convert if necessary.
3115 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
3116
3117 2010-07-22 Richard Guenther <rguenther@suse.de>
3118
3119 PR tree-optimization/45017
3120 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
3121 TYPE_PRECISION of integral types in addition to size.
3122
3123 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
3124
3125 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
3126 when no C library is specified.
3127
3128 2010-07-22 Martin Jambor <mjambor@suse.cz>
3129
3130 * ipa-prop.h (struct ipa_node_params): Updated comment.
3131 (struct ipa_edge_args): Likewise.
3132 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
3133
3134 2010-07-22 Martin Jambor <mjambor@suse.cz>
3135
3136 * cgraphunit.c (verify_edge_count_and_frequency): New function.
3137 (verify_cgraph_node): Verify frequencies of indirect edges.
3138 * tree-inline.c (tree_function_versioning): Update frequencies of
3139 indirect edges.
3140
3141 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3142
3143 PR target/43698
3144 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
3145 Set *arm_rev to be predicable.
3146
3147 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
3148
3149 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
3150 (LINK_COMMAND_SPEC_A): New.
3151 (DSYMUTIL): New.
3152 (DSYMUTIL_SPEC): New.
3153 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
3154 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
3155
3156 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
3157
3158 * calls.c (load_register_parameters): Move check for zero
3159 sized items so that only the call to
3160 mem_overlaps_already_clobbered_arg_p () is protected.
3161
3162 2010-07-22 Jan Hubicka <jh@suse.cz>
3163
3164 * ipa-pure-const.c (varying_state): Break out from ...
3165 (get_function_state): ... here; always return varying_state
3166 when state would be NULL otherwise.
3167 (remove_node_data): Do not free varying state.
3168
3169 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
3170
3171 PR bootstrap/44970
3172 PR middle-end/45009
3173 * postreload.c: Include "target.h".
3174 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
3175 into account.
3176 (fixup_debug_insns): Don't copy the rtx.
3177 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
3178 Don't copy when replacing. Call fixup_debug_insns in the case where
3179 we merged one add with another.
3180 (reload_combine_recognize_pattern): Fail if there aren't any uses.
3181 Try harder to determine whether we're picking a valid index register.
3182 Don't set store_ruid for an insn we're going to scan in the
3183 next iteration.
3184 (reload_combine): Remove unused code.
3185 (reload_combine_note_use): When updating use information for
3186 an old insn, ignore a use that occurs after store_ruid.
3187 * Makefile.in (postreload.o): Update dependencies.
3188
3189 * function.c (record_hard_reg_sets): Restrict the previous change
3190 to cases where the incoming nominal mode is the same as the
3191 incoming promoted mode and everything happens in MODE_INT.
3192
3193 2010-07-21 Jakub Jelinek <jakub@redhat.com>
3194
3195 PR debug/45015
3196 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
3197 ASM_OPERANDS_OUTPUT_IDX.
3198 (adjust_insn): For inline asm with multiple sets ensure first
3199 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
3200 the insn.
3201
3202 2010-07-21 Richard Henderson <rth@redhat.com>
3203
3204 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
3205 comparison for avoiding xmm register saves. Emit the xmm register
3206 saves explicitly.
3207 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
3208 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
3209 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
3210 Remove patterns and the associated splitters.
3211
3212 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
3213
3214 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
3215 and imagine parts of a complex, so that they can have the same
3216 base and fall into the same group.
3217
3218 2010-07-21 Richard Guenther <rguenther@suse.de>
3219
3220 PR lto/45018
3221 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
3222 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
3223 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
3224
3225 2010-07-21 Martin Jambor <mjambor@suse.cz>
3226
3227 PR tree-optimization/44900
3228 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
3229 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
3230
3231 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
3232
3233 PR middle-end/44738
3234 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
3235
3236 2010-07-21 Richard Guenther <rguenther@suse.de>
3237
3238 PR middle-end/45013
3239 * tree-ssa.c (useless_type_conversion_p): Dispatch to
3240 gimple_types_compatible_p only when in lto.
3241 * gimple.c (gimple_types_compatible_p): Use canonical types
3242 to speed up comparison.
3243
3244 2010-07-21 Richard Guenther <rguenther@suse.de>
3245
3246 * tree-flow.h (referenced_var): Move define ...
3247 * tree-flow-inline.h (referenced_var): ... here as an inline
3248 function. Assert here ...
3249 * tree-dfa.c (referenced_var_lookup): ... instead of here.
3250 * tree-ssa.c (maybe_optimize_var): Check if the variable
3251 is in referenced vars.
3252 (execute_update_addresses_taken): Remove old broken check.
3253 * gimple-pretty-print.c (pp_points_to_solution): Use
3254 referenced_var_lookup.
3255 * tree-into-ssa.c (dump_decl_set): Likewise.
3256
3257 2010-07-21 Jakub Jelinek <jakub@redhat.com>
3258
3259 PR debug/45003
3260 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
3261 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
3262 ZERO_EXTEND here.
3263
3264 2010-07-20 Richard Henderson <rth@redhat.com>
3265
3266 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
3267
3268 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
3269
3270 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
3271 computing the sum of the stack pointer and a large constant.
3272 * config/arm/constraints.md (M): Remove superfluous parentheses.
3273 (Pc): New constraint.
3274
3275 2010-07-20 Jakub Jelinek <jakub@redhat.com>
3276
3277 PR debug/45006
3278 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
3279 operand's type if exp is tcc_unary class tree.
3280
3281 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
3282
3283 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
3284 Reverse sense of if_then_else condition.
3285
3286 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
3287
3288 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
3289 * config/rs6000/rs6000.c (rs6000_override_options): Set
3290 rs6000_block_move_inline_limit appropriately.
3291 (expand_block_move): Use rs6000_block_move_inline_limit.
3292 * doc/invoke.texi (mblock-move-inline-limit): Document.
3293
3294 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
3295
3296 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
3297 FROM and TO. All callers changed. Don't look for tracked uses,
3298 just scan the RTL for DEBUG_INSNs and substitute.
3299 (reload_combine_recognize_pattern): Call fixup_debug_insns.
3300 (reload_combine): Ignore DEBUG_INSNs.
3301
3302 2010-07-20 Jakub Jelinek <jakub@redhat.com>
3303
3304 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
3305 depth to 8 from 5.
3306
3307 PR debug/45003
3308 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
3309 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
3310 instead of the result's type.
3311
3312 2010-07-20 Richard Guenther <rguenther@suse.de>
3313
3314 PR tree-optimization/44977
3315 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
3316 SSA form.
3317
3318 2010-07-20 Richard Guenther <rguenther@suse.de>
3319
3320 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
3321 (lto_symtab_merge_decls_2): Likewise.
3322 * gimple.h (gimple_types_compatible_p): Declare.
3323 * gimple.c (gimple_queue_type_fixup): Remove.
3324 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
3325 (gimple_compatible_complete_and_incomplete_type_p): New function.
3326 (gimple_types_compatible_p): Adjust.
3327 (gimple_register_type): Remove type fixup code.
3328 (print_gimple_types_stats): Adjust.
3329 (free_gimple_type_tables): Likewise.
3330 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
3331 * tree-ssa.c (useless_type_conversion_p): Likewise.
3332
3333 2010-07-20 Richard Guenther <rguenther@suse.de>
3334
3335 PR middle-end/44971
3336 PR middle-end/44988
3337 * tree-ssa.c (maybe_optimize_var): New function split out from ...
3338 (execute_update_addresses_taken): ... here.
3339 (non_rewritable_mem_ref_base): Likewise.
3340 (execute_update_addresses_taken): Do not iterate over all referenced
3341 vars but just all local decls and parms.
3342 Properly check call and asm arguments and rewrite call arguments.
3343
3344 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
3345
3346 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
3347 to top level.
3348 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
3349 definitions ...
3350 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
3351 New macro.
3352 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
3353
3354 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
3355
3356 * gengtype.c (start_root_entry): New function, split out from
3357 write_root. Check whether V is null and raise an error if so.
3358 (write_field_root): Check for V being null. Don't raise an error here;
3359 set V to null instead.
3360 (write_root): Update comment above function. Use start_root_entry.
3361
3362 2010-07-19 Xinliang David Li <davidxl@google.com>
3363
3364 PR testsuite/44932
3365 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
3366 def edges.
3367 (find_uninit_use): Add dump.
3368 (is_use_properly_guarded): Ditto.
3369 (warn_uninitialized_phi): Ditto.
3370 (execute_late_warn_uninitialized): Ditto.
3371
3372 2010-07-19 Richard Guenther <rguenther@suse.de>
3373
3374 PR middle-end/44941
3375 * expr.c (emit_block_move_hints): Move zero size check first.
3376 Move asserts to more useful places.
3377 * calls.c (load_register_parameters): Check for zero size.
3378
3379 2010-07-19 Richard Henderson <rth@redhat.com>
3380
3381 * tree-optimize.c (execute_all_early_local_passes): New. Change
3382 cgraph_state here ...
3383 (execute_early_local_optimizations): ... not here. Remove.
3384 (pass_early_local_passes, pass_all_early_optimizations): Update.
3385
3386 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
3387
3388 * postreload.c (reload_combine_closest_single_use): Ignore the
3389 number of uses for DEBUG_INSNs.
3390 (fixup_debug_insns): New static function.
3391 (reload_combine_recognize_const_pattern): Use it. Don't let the
3392 main loop be affected by DEBUG_INSNs.
3393 Really disallow moving adds past a jump insn.
3394 (reload_combine_recognize_pattern): Don't update use_ruid here.
3395 (reload_combine_note_use): Do it here.
3396 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
3397
3398 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
3399
3400 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
3401 of a loop.
3402 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
3403
3404 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
3405
3406 * config/i386/darwin.h: Define darwin_emit_branch_islands.
3407 (TARGET_MACHO_BRANCH_ISLANDS): New.
3408 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
3409 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
3410 default value.
3411 * config/i386/i386.c (output_pic_addr_const): Do not emit
3412 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
3413 (x86_output_mi_thunk): Adjust symbol creation.
3414 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
3415 Remove out of date comment.
3416 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
3417 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
3418 (DARWIN_GENERATE_ISLANDS): Ditto.
3419 (output_call): Do not emit branch islands unless
3420 darwin_emit_branch_islands is set.
3421 * config/darwin.c: Declare darwin_emit_branch_islands.
3422 (machopic_indirect_data_reference): Do not emit unless
3423 darwin_emit_branch_islands is set.
3424 (darwin_override_options): Set darwin_emit_branch_islands
3425 where it is needed.
3426 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
3427
3428 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3429
3430 * doc/sourcebuild.texi (Effective-Target Keywords): Document
3431 sse_runtime, sse2_runtime.
3432
3433 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
3434
3435 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
3436 low half of a single-register SCmode return value before ORing
3437 it with the high half.
3438 * config/mips/mips16.S (MERGE_GPRf): Likewise.
3439
3440 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3441
3442 PR target/44805
3443 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
3444 on all targets.
3445
3446 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
3447
3448 PR target/42235
3449 * postreload.c (reload_cse_move2add): Return bool, true if anything.
3450 changed. All callers changed.
3451 (move2add_use_add2_insn): Likewise.
3452 (move2add_use_add3_insn): Likewise.
3453 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
3454 reload_combine.
3455 (RELOAD_COMBINE_MAX_USES): Bump to 16.
3456 (last_jump_ruid): New static variable.
3457 (struct reg_use): New members CONTAINING_MEM and RUID.
3458 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
3459 (reload_combine_split_one_ruid, reload_combine_split_ruids,
3460 reload_combine_purge_insn_uses, reload_combine_closest_single_use
3461 reload_combine_purge_reg_uses_after_ruid,
3462 reload_combine_recognize_const_pattern): New static functions.
3463 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
3464 is true for our reg and that we have available index regs.
3465 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
3466 callers changed. Use them to initialize fields in struct reg_use.
3467 (reload_combine): Initialize last_jump_ruid. Be careful when to
3468 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
3469 Call reload_combine_recognize_const_pattern.
3470 (reload_combine_note_store): Update REAL_STORE_RUID field.
3471
3472 2010-07-16 Jason Merrill <jason@redhat.com>
3473
3474 * Makefile.in (opts-common.o): Depend on options.h.
3475
3476 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
3477
3478 * tree.c (build_common_builtin_nodes): Use build_function_type_list
3479 instead of build_function_type.
3480 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
3481 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
3482
3483 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
3484
3485 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
3486 do all the work.
3487 (rs6000_emit_int_cmove): Use function pointers for insn generation.
3488 Don't force values into registers unnecessarily.
3489 (output_isel): Assert that we're not given conditions we can't handle.
3490 Delete corresponding code.
3491 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
3492 scc_comparison_operator constraint. Permit 0 for the consequent
3493 operand. Permit any GPR for the alternative operand.
3494 (isel_unsigned_<mode>): Likewise.
3495
3496 2010-07-16 Jakub Jelinek <jakub@redhat.com>
3497
3498 PR target/44942
3499 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
3500 argument to const_tree.
3501 * config/i386/i386.c (function_arg_advance): If padding needs to be
3502 inserted before argument, increment cum->words by number of padding
3503 words as well.
3504 (contains_aligned_value_p): Change argument to const_tree.
3505 (ix86_function_arg_boundary): Change second argument to const_tree.
3506
3507 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
3508
3509 PR target/42235
3510 * function.c (record_hard_reg_sets): New static function.
3511 (assign_parm_setup_reg): If an optab for extending exists and the
3512 generated code clobbbers no hard regs, emit the insn directly and
3513 create a REG_EQUIV note.
3514
3515 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3516
3517 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
3518 TREE_CHAIN.
3519 * c-typeck.c (push_init_level): Likewise.
3520 (process_init_element): Likewise.
3521
3522 2010-07-15 Anatoly Sokolov <aesok@post.ru>
3523
3524 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
3525 (integer_three_node): Add.
3526 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
3527 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
3528 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
3529 of call build_int_cst.
3530 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
3531 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
3532 (find_interesting_uses_address): Ditto.
3533 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
3534 * tree-eh.c (lower_eh_constructs_2): Ditto.
3535 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
3536 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
3537 * expmed.c (expand_divmod): Ditto.
3538 * tree-mudflap.c (mx_register_decls): Ditto.
3539 * varasm.c (array_size_for_constructor): Ditto.
3540 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
3541 * c-parser.c (c_parser_postfix_expression): Ditto.
3542
3543 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
3544
3545 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
3546 New static variables.
3547 (reload_combine_recognize_pattern): New static function, broken out
3548 of reload_combine.
3549 (reload_combine): Use it. Only initialize first_index_reg and
3550 last_index_reg once.
3551
3552 2010-07-15 Richard Henderson <rth@redhat.com>
3553
3554 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
3555 when done.
3556
3557 2010-07-15 Jan Hubicka <jh@suse.cz>
3558
3559 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
3560 comdats for broken gold.
3561 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
3562
3563 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3564
3565 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
3566
3567 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3568
3569 * tree.h (DECL_CHAIN): Define.
3570 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3571 * c-decl.c: Likewise.
3572 * c-parser.c: Likewise.
3573 * c-typeck.c: Likewise.
3574 * cfgexpand.c: Likewise.
3575 * cgraph.c: Likewise.
3576 * cgraphunit.c: Likewise.
3577 * combine.c: Likewise.
3578 * config/alpha/alpha.c: Likewise.
3579 * config/arm/arm.c: Likewise.
3580 * config/frv/frv.c: Likewise.
3581 * config/i386/i386.c: Likewise.
3582 * config/i386/winnt-cxx.c: Likewise.
3583 * config/ia64/ia64.c: Likewise.
3584 * config/iq2000/iq2000.c: Likewise.
3585 * config/mep/mep.c: Likewise.
3586 * config/mips/mips.c: Likewise.
3587 * config/pa/som.h: Likewise.
3588 * config/rs6000/rs6000.c: Likewise.
3589 * config/s390/s390.c: Likewise.
3590 * config/sh/sh.c: Likewise.
3591 * config/sh/symbian-cxx.c: Likewise.
3592 * config/sparc/sparc.c: Likewise.
3593 * config/spu/spu.c: Likewise.
3594 * config/stormy16/stormy16.c: Likewise.
3595 * config/vxworks.c: Likewise.
3596 * config/xtensa/xtensa.c: Likewise.
3597 * coverage.c: Likewise.
3598 * dbxout.c: Likewise.
3599 * dwarf2out.c: Likewise.
3600 * emit-rtl.c: Likewise.
3601 * expr.c: Likewise.
3602 * function.c: Likewise.
3603 * gimple-low.c: Likewise.
3604 * gimple-pretty-print.c: Likewise.
3605 * gimplify.c: Likewise.
3606 * integrate.c: Likewise.
3607 * ipa-inline.c: Likewise.
3608 * ipa-prop.c: Likewise.
3609 * ipa-split.c: Likewise.
3610 * ipa-struct-reorg.c: Likewise.
3611 * ipa-type-escape.c: Likewise.
3612 * langhooks.c: Likewise.
3613 * lto-cgraph.c: Likewise.
3614 * omp-low.c: Likewise.
3615 * stor-layout.c: Likewise.
3616 * tree-cfg.c: Likewise.
3617 * tree-complex.c: Likewise.
3618 * tree-dfa.c: Likewise.
3619 * tree-dump.c: Likewise.
3620 * tree-inline.c: Likewise.
3621 * tree-mudflap.c: Likewise.
3622 * tree-nested.c: Likewise.
3623 * tree-object-size.c: Likewise.
3624 * tree-pretty-print.c: Likewise.
3625 * tree-sra.c: Likewise.
3626 * tree-ssa-live.c: Likewise.
3627 * tree-ssa-loop-niter.c: Likewise.
3628 * tree-ssa-math-opts.c: Likewise.
3629 * tree-ssa-reassoc.c: Likewise.
3630 * tree-ssa-sccvn.c: Likewise.
3631 * tree-ssa-structalias.c: Likewise.
3632 * tree-tailcall.c: Likewise.
3633 * tree-vrp.c: Likewise.
3634 * tree.c: Likewise.
3635 * var-tracking.c: Likewise.
3636 * varasm.c: Likewise.
3637
3638 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3639
3640 PR target/44877
3641 * config/spu/spu.c (spu_expand_builtin_1): Allow references
3642 (as well as pointers) as argument to mask_for_load builtins.
3643
3644 2010-07-15 Richard Guenther <rguenther@suse.de>
3645
3646 PR tree-optimization/44946
3647 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
3648 with accessing only padding properly.
3649
3650 2010-07-15 Jan Hubicka <jh@suse.cz>
3651
3652 * ipa.c (function_and_variable_visibility): Variables marked as used
3653 should not be localized.
3654
3655 2010-07-15 Jan Hubicka <jh@suse.cz>
3656
3657 * cgraph.c: Include lto-streamer.h
3658 (change_decl_assembler_name): Work when assembler name hash is at place.
3659 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
3660 be sure to rename it to avoid name clash.
3661 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
3662 Localize hidden symbols only when locally defined.
3663
3664 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
3665
3666 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
3667
3668 2010-07-15 Magnus Granberg <zorry@gentoo.org>
3669 Kevin F. Quinn <kevquinn@gentoo.org>
3670
3671 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
3672 * common.opt: Add -Wtrampolines.
3673 * doc/invoke.texi: Add -Wtrampolines.
3674
3675 2010-07-15 Jie Zhang <jie@codesourcery.com>
3676
3677 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
3678 cortex_a8_issue_ls.
3679
3680 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
3681
3682 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
3683 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
3684
3685 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3686
3687 * config/spu/spu.c (reg_names): Remove prototype.
3688 (call_used_regs): Likewise.
3689
3690 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
3691
3692 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
3693 "unused" with attribute "used".
3694 (__JCR_END__): Likewise.
3695 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
3696 "used" attribute.
3697 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
3698
3699 2010-07-14 Richard Guenther <rguenther@suse.de>
3700
3701 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
3702 (maybe_fixup_decls): Likewise.
3703 (input_gimple_stmt): Do not fixup anything.
3704 * lto-streamer-out.c (output_gimple_stmt): Make sure all
3705 non-automatic variable uses are wrapped inside a MEM_REF.
3706
3707 2010-07-14 Richard Henderson <rth@redhat.com>
3708
3709 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
3710 for functions.
3711 * varasm.c (assemble_variable): Remove early exit for functions;
3712 assert that we're given a variable.
3713
3714 2010-07-14 Jie Zhang <jie@codesourcery.com>
3715
3716 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
3717 cortex_a8_default when neon_type is not none.
3718
3719 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
3720
3721 * lower-subreg.c (subreg_context): New static bitmap.
3722 (decompose_multiword_subregs): Allocate and free it.
3723 (find_decomposable_subregs): Set a bit in it for a register that
3724 occurs in a subreg that changes mode but not size.
3725 (can_decompose_p): Test it instead of non_decomposable_context.
3726
3727 2010-07-14 Richard Guenther <rguenther@suse.de>
3728
3729 PR tree-optimization/44824
3730 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
3731 is_gimple_mem_ref_addr.
3732 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
3733 non-decl_address_invariant_p addresses.
3734
3735 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
3736
3737 * reload.c (find_reloads): Revert code to penalize small register
3738 classes that was brought in with the IRA merge.
3739
3740 2010-07-14 Richard Guenther <rguenther@suse.de>
3741
3742 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
3743 as base of ARRAY_REFs.
3744
3745 2010-07-14 Richard Guenther <rguenther@suse.de>
3746
3747 PR middle-end/44930
3748 * tree-pretty-print.c (do_niy): Do not print a newline.
3749
3750 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
3751
3752 * ira-int.h (struct ira_object): New.
3753 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
3754 (struct ira_allocno): Remove members min, max,
3755 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
3756 conflict_allocnos_num and conflict_vec_p. Add new member object.
3757 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
3758 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
3759 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
3760 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
3761 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
3762 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
3763 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
3764 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
3765 an ira_object_t rather than ira_allocno_t. All uses changed.
3766 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
3767 contains a vector of ira_object_t; all uses changed.
3768 (ira_objects_num): Declare variable.
3769 (ira_create_allocno_object): Declare function.
3770 (ira_conflict_vector_profitable_p): Adjust prototype.
3771 (ira_allocate_conflict_vec): Renamed from
3772 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
3773 (ira_allocate_object_conflicts): Renamed from
3774 ira_allocate_allocno_conflicts; first arg now ira_object_t.
3775 (struct ira_object_iterator): New.
3776 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
3777 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
3778 to conflict_vec_p. All uses changed.
3779 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
3780 Changed to take into account that conflicts are now tracked for
3781 objects.
3782 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
3783 Args changed to accept ira_object_t. All uses changed.
3784 (allocnos_conflict_p): New static function.
3785 (collected_conflict_objects): Renamed from collected_allocno_objects;
3786 now a vector of ira_object_t. All uses changed.
3787 (build_conflict_bit_table): Changed to take into account that
3788 conflicts are now tracked for objects.
3789 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
3790 (print_allocno_conflicts, ira_build_conflicts): Likewise.
3791 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
3792 setup_allocno_left_conflicts_size, allocno_reload_assign,
3793 fast_allocation): Likewise.
3794 * ira-lives.c (make_hard_regno_born, make_allocno_born)
3795 process_single_reg_class_operands, process_bb_node_lives): Likewise.
3796 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
3797 Likewise.
3798 * ira-build.c (ira_objects_num): New variable.
3799 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
3800 contains a vector of ira_object_t; all uses changed.
3801 (ira_object_id_map_vec): Corresponding change.
3802 (object_pool): New static variable.
3803 (initiate_allocnos): Initialize it.
3804 (finish_allocnos): Free it.
3805 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
3806 New functions.
3807 (ira_create_allocno): Don't set members that were removed.
3808 (ira_set_allocno_cover_class): Don't change conflict hard regs.
3809 (merge_hard_reg_conflicts): Changed to take into account that
3810 conflicts are now tracked for objects.
3811 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
3812 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
3813 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
3814 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
3815 setup_min_max_conflict_allocno_ids, ): Likewise.
3816 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
3817 to ira_object_t; all callers changed.
3818 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
3819 to ira_object_t, all callers changed.
3820 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
3821 to ira_object_t, all callers changed.
3822 (conflict_check, curr_conflict_check_tick): Renamed from
3823 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
3824 changed.
3825 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
3826 arg changed to ira_object_t, all callers changed.
3827 (create_cap_allocno): Call ira_create_allocno_object.
3828 (finish_allocno): Free the corresponding object.
3829 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
3830 callers changed. Adjusted for dealing with objects.
3831 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
3832 dealing with objects.
3833 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
3834
3835 * ira-int.h (struct live_range): Rename allocno member to object
3836 and change type to ira_object_t.
3837 (struct ira_object): New member live_ranges.
3838 (struct ira_allocno): Remove member live_ranges.
3839 (ALLOCNO_LIVE_RANGES): Remove.
3840 (OBJECT_LIVE_RANGES): New macro.
3841 (ira_create_live_range, ira_copy_live_range_list,
3842 ira_merge_live_range_list, ira_live_ranges_intersect_p,
3843 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
3844 * ira-build.c (ira_create_object): Initialize live ranges here.
3845 (ira_create_allocno): Not here.
3846 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
3847 changed to ira_object_t, all callers changed.
3848 (copy_live_range): Rename from copy_allocno_live_range, all callers
3849 changed.
3850 (ira_copy_live_range_list): Rename from
3851 ira_copy_allocno_live_range_list, all callers changed.
3852 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
3853 all callers changed.
3854 (ira_live_ranges_intersect_p): Rename from
3855 ira_allocno_live_ranges_intersect_p, all callers changed.
3856 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
3857 callers changed.
3858 (ira_finish_live_range_list): Rename from
3859 ira_finish_allocno_live_range_list, all callers changed.
3860 (change_object_in_range_list): Rename from change_allocno_in_range_list,
3861 last arg changed to ira_object_t, all callers changed.
3862 (finish_allocno): Changed to expect live ranges in the allocno's object.
3863 (move_allocno_live_ranges, copy_allocno_live_ranges,
3864 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
3865 ira_flattening, ira_build): Likewise.
3866 * ira-color.c (allocnos_have_intersected_live_ranges_p,
3867 slot_coalesced_allocno_live_ranges_intersect,
3868 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
3869 * ira-conflicts.c (build_conflict_bit_table): Likewise.
3870 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
3871 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
3872 make_allocno_dead, create_start_finish_chains,
3873 remove_some_program_points_and_update_live_ranges,
3874 ira_debug_live_range_list): Likewise.
3875
3876 * ira-int.h (ira_object_conflict_iterator): Rename from
3877 ira_allocno_conflict_iterator.
3878 (ira_object_conflict_iter_init): Rename from
3879 ira_allocno_conflict_iter_init, second arg changed to
3880 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
3881 FOR_EACH_ALLOCNO_CONFLICT.
3882 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
3883 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
3884 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
3885 * ira-conflicts.c (print_allocno_conflicts): Likewise.
3886
3887 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
3888
3889 PR other/44874
3890 * tree-dump.c (dump_options): Add enumerate_locals entry.
3891 Add TDF_NOID exclusion to all entry.
3892 * tree-dump.h (dump_enumerated_decls): Declare.
3893 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
3894 Don't display type uid.
3895 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
3896 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
3897 * tree-ssa-live.c: Include gimple.h.
3898 (numbered_tree_d): New struct.
3899 (numbered_tree): New typedef.
3900 (DEF_VEC_O (numbered_tree): New.
3901 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
3902 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
3903 (dump_enumerated_decls): Likewise.
3904 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
3905 debug info and flag_dump_final_insns, call dump_enumerated_decls.
3906 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
3907 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
3908
3909 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
3910
3911 * expmed.h (MAX_BITS_PER_WORD): Move to...
3912 * defaults.h (MAX_BITS_PER_WORD): ...here.
3913
3914 2010-07-13 DJ Delorie <dj@redhat.com>
3915
3916 * config/h8300/h8300.c (h8300_init_once): Default to
3917 -fstrict_volatile_bitfields.
3918
3919 * config/sh/sh.c (sh_override_options): Default to
3920 -fstrict_volatile_bitfields.
3921
3922 * config/rx/rx.c (rx_option_override): New.
3923
3924 * config/m32c/m32c.c (m32c_override_options): Default to
3925 -fstrict_volatile_bitfields.
3926
3927 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
3928
3929 * tree.h (build_function_call_expr): Delete.
3930 (build_call_expr_loc_array): New function.
3931 (build_call_expr_loc_vec): New function.
3932 * tree-flow.h (struct omp_region): Change type of ws_args field
3933 to a VEC.
3934 * builtins.c (build_function_call_expr): Delete.
3935 (build_call_expr_loc_array): New function.
3936 (build_call_expr_loc): Call it. Use XALLOCAVEC.
3937 (build_call_expr): Likewise.
3938 (build_call_expr_loc_vec): New function.
3939 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
3940 build_function_call_expr.
3941 * expr.c (emutls_var_address): Likewise.
3942 * varasm.c (emutls_common_1): Likewise.
3943 * omp-low.c (expand_omp_atomic_mutex): Likewise.
3944 (expand_omp_taskreg): Adjust for new type of region->ws_args.
3945 (get_ws_args_for): Return a VEC instead of a tree.
3946 (expand_parallel_call): Call build_call_expr_loc_vec instead of
3947 build_function_call_expr.
3948 * stor-layout.c (self_referential_size): Likewise.
3949
3950 2010-07-13 Jakub Jelinek <jakub@redhat.com>
3951
3952 PR testsuite/44701
3953 * recog.c (constrain_operands): Allow side-effects in memory
3954 operands if either < or > constraint is used, rather than if
3955 both < and > is used.
3956
3957 2010-07-13 Richard Guenther <rguenther@suse.de>
3958
3959 PR middle-end/44911
3960 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
3961 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
3962 without name.
3963
3964 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
3965
3966 PR target/44761
3967 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
3968 to variable emited.
3969 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
3970 * config/sh/sh.md (symGOT_load): Likewise.
3971 (symDTPOFF2reg): Likewise.
3972 (symTPOFF2reg): Likewise.
3973
3974 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3975
3976 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
3977 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
3978
3979 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3980
3981 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
3982 explanation.
3983 Find ucontext_t * on Solaris 11.
3984 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
3985 Handle new Solaris 11 __sighndlr patterns.
3986
3987 2010-07-13 Jakub Jelinek <jakub@redhat.com>
3988
3989 PR debug/44901
3990 * vec.h (VEC_block_remove): Fix comment.
3991 * tree-ssa-live.c (remove_unused_locals): Don't use
3992 VEC_unordered_remove on local_decls, instead replace a single
3993 vector element in each iteration if at least one element had
3994 to be removed and VEC_truncate at the end.
3995 * omp-low.c (expand_omp_taskreg): Likewise.
3996
3997 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3998
3999 * c-decl.c (finish_function): Fix typo in comment.
4000
4001 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
4002
4003 PR bootstrap/44921
4004 * postreload.c (move2add_use_add3_insn): Silence gcc warning
4005 on min_regno.
4006
4007 2010-07-12 Jakub Jelinek <jakub@redhat.com>
4008
4009 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
4010 (simplify_stmt_using_ranges): Use it.
4011
4012 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4013
4014 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
4015 member. Do not mark as GTY(()).
4016 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
4017 (spu_builtin_decls): New static variable.
4018 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
4019 (spu_init_builtins): Likewise.
4020 (spu_builtin_mul_widen_even): Likewise.
4021 (spu_builtin_mul_widen_odd): Likewise.
4022 (spu_builtin_mask_for_load): Likewise.
4023 (spu_builtin_vec_perm): Likewise.
4024 * config/spu/spu-c.c: Include "target.h".
4025 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
4026 of using spu_builtins[].fndecl.
4027
4028 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4029
4030 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
4031 imply -minterlink-mips16.
4032
4033 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4034
4035 * config/mips/mips.h (mips16_globals): Declare.
4036 (SWITCHABLE_TARGET): Define.
4037 * config/mips/mips.c: Include target-globals.h.
4038 (mips16_globals): New variable.
4039 (mips_set_mips16_mode): Use save_target_globals and
4040 restore_target_globals instead of target_reinit.
4041
4042 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4043
4044 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
4045 to say that the function can be called more than once.
4046 * target-globals.c (save_target_globals): Call init_reg_sets.
4047
4048 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4049
4050 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
4051 * bb-reorder.h: New file.
4052 * bb-reorder.c (default_target_bb_reorder): New variable.
4053 (this_target_bb_reorder): New conditional variable.
4054 (uncond_jump_length): Redefine as a macro.
4055 * target-globals.h (this_target_bb_reorder): Declare.
4056 (target_globals): Add a bb_reorder field.
4057 (restore_target_globals): Copy the bb_reorder field to
4058 this_target_bb-reorder.
4059 * target-globals.c: Include bb-reorder.h.
4060 (default_target_globals): Initialize the bb_reorder field.
4061 (save_target_globals): Likewise.
4062
4063 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4064
4065 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
4066 * gcse.h: New file.
4067 * gcse.c: Include gcse.h.
4068 (default_target_gcse): New variable.
4069 (this_target_gcse): New conditional variable.
4070 (can_copy): Redefine as a macro.
4071 (can_copy_init_p): New macro.
4072 (can_copy_p): Remove can_copy_init_p.
4073 * target-globals.h (this_target_gcse): Declare.
4074 (target_globals): Add a gcse field.
4075 (restore_target_globals): Copy the gcse field to this_target_gcse.
4076 * target-globals.c: Include gcse.h.
4077 (default_target_globals): Initialize the gcse field.
4078 (save_target_globals): Likewise.
4079
4080 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4081
4082 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
4083 and x_ira_prohibited_mode_move_regs_initialized_p.
4084 (ira_prohibited_mode_move_regs): Redefine as a macro.
4085 * ira.c (ira_prohibited_mode_move_regs): Delete.
4086 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
4087
4088 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4089
4090 * reload.h (target_reload): Add x_cached_reg_save_code and
4091 x_cached_reg_restore_code.
4092 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
4093 Redefine as macros.
4094
4095 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4096
4097 * Makefile.in (target-globals.o): Depend on builtins.h.
4098 * builtins.h: New file.
4099 * builtins.c: Include builtins.h.
4100 (default_target_builtins): New variable.
4101 (this_target_builtins): New conditional variable.
4102 (apply_args_mode, apply_result_mode): Redefine as macros.
4103 * target-globals.h (this_target_builtins): Declare.
4104 (target_globals): Add a builtins field.
4105 (restore_target_globals): Copy the builtins field to
4106 this_target_builtins.
4107 * target-globals.c: Include builtins.h.
4108 (default_target_globals): Initialize the builtins field.
4109 (save_target_globals): Likewise.
4110
4111 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4112
4113 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
4114 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
4115 from expmed.c.
4116 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
4117 (alg_hash, alg_hash_used_p): New macros.
4118 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
4119 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
4120 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
4121
4122 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4123
4124 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
4125 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
4126 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
4127 (this_op_costs, costs_classes): Redefine as macros.
4128 (record_reg_classes): Don't take op_costs as a parameter.
4129 (record_operand_costs): Likewise. Update calls to record_reg_classes.
4130 (scan_one_insn): Update call to record_operand_costs.
4131
4132 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4133
4134 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
4135 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
4136 (target_ira_int): New structure.
4137 (default_target_ira_int): Declare.
4138 (this_target_ira_int): Declare as a variable or define as a macro.
4139 (ira_reg_mode_hard_regset, ira_register_move_cost)
4140 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
4141 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
4142 (prohibited_class_mode_regs, ira_important_classes_num)
4143 (ira_important_classes, ira_reg_class_intersect)
4144 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
4145 (ira_reg_class_union): Redefine as macros.
4146 * ira.h (target_ira): New structure.
4147 (default_target_ira): Declare.
4148 (this_target_ira): Declare as a variable or define as a macro.
4149 (ira_available_class_regs, ira_hard_regno_cover_class)
4150 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
4151 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
4152 (ira_class_hard_regs_num): Redefine as macros.
4153 * ira.c (default_target_ira, default_target_ira_int): New variables.
4154 (this_target_ira, this_target_ira_int): New conditional variables.
4155 (ira_reg_mode_hard_regset, ira_memory_move_cost)
4156 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
4157 (ira_class_subset_p): Delete.
4158 (no_unit_alloc_regs): Redefine as a macro.
4159 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
4160 (ira_class_hard_regs_num, ira_class_hard_reg_index)
4161 (ira_available_class_regs): Delete.
4162 (alloc_reg_class_subclasses): Redefine as a macro.
4163 (ira_reg_class_cover_size, ira_reg_class_cover)
4164 (ira_important_classes_num, ira_important_classes)
4165 (ira_important_class_nums, ira_class_translate): Delete.
4166 (cover_class_order): Document the variable's lifetime.
4167 (reorder_important_classes): Don't set ira_important_class_nums.
4168 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
4169 (ira_reg_class_super_classes, ira_reg_class_union)
4170 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
4171 Delete.
4172 (setup_reg_class_nregs): Don't set ira_max_regs.
4173 (prohibited_class_mode_regs): Delete.
4174 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
4175 (target_globals): Add ira and ira_int fields.
4176 (restore_target_globals): Copy the ira field to this_target_ira
4177 and the ira_int field to this_target_ira_int.
4178 * target-globals.c: Include ira-int.h.
4179 (default_target_globals): Initialize the ira and ira_int fields.
4180 (save_target_globals): Likewise.
4181
4182 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4183
4184 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
4185 * cfgloop.h (target_cfgloop): New structure.
4186 (default_target_cfgloop): Declare.
4187 (this_target_cfgloop): Declare as a variable or define as a macro.
4188 (target_avail_regs, target_clobbered_regs, target_res_regs)
4189 (target_reg_cost, target_spill_cost): Redefine as macros.
4190 * cfgloopanal.c (default_target_cfgloop): New variable.
4191 (this_target_cfgloop): New conditional variable.
4192 (target_avail_regs, target_clobbered_regs, target_res_regs)
4193 (target_reg_cost, target_spill_cost): Delete.
4194 * target-globals.h (this_target_cfgloop): Declare.
4195 (target_globals): Add a cfgloop field.
4196 (restore_target_globals): Copy the cfgloop field to
4197 this_target_cfgloop.
4198 * target-globals.c: Include cfgloop.h.
4199 (default_target_globals): Initialize the cfgloop field.
4200 (save_target_globals): Likewise.
4201
4202 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4203
4204 * regs.h (target_regs): Add x_direct_load, x_direct_store and
4205 x_float_extend_from_mem.
4206 (direct_load, direct_store, float_extend_from_mem): New macros.
4207 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
4208
4209 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4210
4211 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
4212 (target-globals.o): Depend on $(LIBFUNCS_H).
4213 * libfuncs.h: Include hashtab.h.
4214 (libfunc_entry): Moved from optabs.c.
4215 (target_libfuncs): New structure.
4216 (default_target_libfuncs): Declare.
4217 (this_target_libfuncs): Declare as a variable or define as a macro.
4218 (libfunc_table): Redefine as a macro.
4219 * optabs.c (default_target_libfuncs): New variable.
4220 (this_target_libfuncs): New conditional variable.
4221 (libfunc_table): Delete.
4222 (libfunc_entry): Moved to optabs.h.
4223 (libfunc_hash): Redefine as a macro.
4224 (hash_libfunc, eq_libfunc): Fix comments.
4225 (init_optabs): Use libfunc_hash to detect cases where the function
4226 has already been called. Clear the hash table instead of
4227 recreating it.
4228 * target-globals.h (this_target_libfuncs): Declare.
4229 (target_globals): Add a libfuncs field.
4230 (restore_target_globals): Copy the libfuncs field to
4231 this_target_libfuncs.
4232 * target-globals.c: Include libfuncs.h.
4233 (default_target_globals): Initialize the libfuncs field.
4234 (save_target_globals): Likewise.
4235
4236 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4237
4238 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
4239 in all dependency lists.
4240
4241 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4242
4243 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
4244 * optabs.h (target_optabs): New structure.
4245 (default_target_optabs): Declare.
4246 (this_target_optabs): Declare as a variable or define as a macro.
4247 (optab_table, convert_optab_table, direct_optab_table): Redefine
4248 as macros.
4249 * optabs.c (default_target_optabs): New variable.
4250 (this_target_optabs): New conditional variable.
4251 (optab_table, convert_optab_table, direct_optab_table): Delete.
4252 * target-globals.h (this_target_optabs): Declare.
4253 (target_globals): Add a optabs field.
4254 (restore_target_globals): Copy the optabs field to
4255 this_target_optabs.
4256 * target-globals.c: Include expr.h and optabs.h.
4257 (default_target_globals): Initialize the optabs field.
4258 (save_target_globals): Likewise.
4259
4260 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4261
4262 * flags.h (target_flagstate): Add x_flag_excess_precision.
4263 (flag_excess_precision): Redefine as a macro.
4264 * toplev.c (flag_excess_precision): Delete.
4265
4266 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4267
4268 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
4269 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
4270 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
4271 (no_caller_save_reg_set): Redefine as a macro.
4272 * reload.h (target_reload): Add x_caller_save_initialized_p and
4273 x_regno_save_mode.
4274 (caller_save_initialized_p): Redefine as a macro.
4275 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
4276 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
4277 (regno_save_mode): Redefine as a macro.
4278
4279 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4280
4281 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
4282 * expmed.h: New file.
4283 * expmed.c (default_target_costs): New variable.
4284 (this_target_costs): New conditional variable.
4285 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
4286 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
4287 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
4288 * target-globals.h (this_target_expmed): Declare.
4289 (target_globals): Add a expmed field.
4290 (restore_target_globals): Copy the expmed field to
4291 this_target_expmed.
4292 * target-globals.c: Include expmed.h.
4293 (default_target_globals): Initialize the expmed field.
4294 (save_target_globals): Likewise.
4295
4296 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4297
4298 * Makefile.in (target-globals.o): Depend on reload.h.
4299 * reload.h (target_reload): New structure.
4300 (default_target_reload): Declare.
4301 (this_target_reload): Declare as a variable or define as a macro.
4302 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
4303 * reload1.c (default_target_reload): New variable
4304 (this_target_reload): New conditional variable.
4305 (indirect_symref_ok, double_reg_address_ok): Delete.
4306 (spill_indirect_levels): Redefine as a macro.
4307 * target-globals.h (this_target_reload): Declare.
4308 (target_globals): Add a reload field.
4309 (restore_target_globals): Copy the reload field to
4310 this_target_reload.
4311 * target-globals.c: Include hard-reg-set.h.
4312 (default_target_globals): Initialize the reload field.
4313 (save_target_globals): Likewise.
4314
4315 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4316
4317 * rtl.h (target_rtl): Add x_static_reg_base_value.
4318 * alias.c (static_reg_base_value): Redefine as a macro.
4319
4320 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4321
4322 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
4323 (GTFILES): Remove reginfo.c.
4324 * rtl.h (target_rtl): Add x_top_of_stack.
4325 (top_of_stack): New macro.
4326 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
4327 (top_of_stack): Delete.
4328
4329 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4330
4331 * regs.h (target_regs): Add x_hard_regs_of_mode,
4332 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
4333 x_may_move_out_cost and x_last_mode_for_init_move_cost.
4334 (have_regs_of_mode, contains_reg_of_mode, move_cost)
4335 (may_move_in_cost, may_move_out_cost): Redefine as macros.
4336 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
4337 (may_move_in_cost, may_move_out_cost): Delete.
4338 (last_mode_for_init_move_cost): Redefine as a macro.
4339
4340 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4341
4342 * hard-reg-set.h (target_hard_regs): New structure.
4343 (default_target_hard_regs): Declare.
4344 (this_target_hard_regs): Declare as a variable or define as a macro.
4345 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
4346 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
4347 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
4348 (reg_class_size, reg_class_subclasses, reg_class_subunion)
4349 (reg_class_superunion, reg_names): Redefine as macros.
4350 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
4351 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
4352 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
4353 (reg_class_contents, reg_class_size, reg_class_subclasses)
4354 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
4355 (default_target_hard_regs): New variable
4356 (this_target_hard_regs, initial_call_really_used_regs)
4357 (initial_reg_alloc_order): New conditional variables.
4358 (initial_reg_names): New variable.
4359 (init_reg_sets): Assert that initial_call_really_used_regs,
4360 initial_reg_alloc_order and initial_reg_names
4361 are all the same size as their variable counterparts. Use them to
4362 initialize those counterparts.
4363 * target-globals.h (this_target_hard_regs): Declare.
4364 (target_globals): Add a hard_regs field.
4365 (restore_target_globals): Copy the hard_regs field to
4366 this_target_hard_regs.
4367 * target-globals.c: Include hard-reg-set.h.
4368 (default_target_globals): Initialize the hard_regs field.
4369 (save_target_globals): Likewise.
4370
4371 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4372
4373 * Makefile.in (target-globals.o): Depend on $(RTL_H).
4374 * rtl.h (target_rtl): New structure.
4375 (default_target_rtl): Declare.
4376 (this_target_rtl): Declare as a variable or define as a macro.
4377 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
4378 Redefine as macros.
4379 * emit-rtl.c (default_target_rtl): New variable.
4380 (this_target_rtl): New conditional variable.
4381 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
4382 (return_address_pointer_rtx): Delete.
4383 (initial_regno_reg_rtx): New macro.
4384 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
4385 (init_emit_regs): Likewise.
4386 * target-globals.h (this_target_rtl): Declare.
4387 (target_globals): Add a rtl field.
4388 (restore_target_globals): Copy the rtl field to this_target_rtl.
4389 * target-globals.c: Include rtl.h.
4390 (default_target_globals): Initialize the rtl field.
4391 (save_target_globals): Likewise.
4392
4393 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4394
4395 * Makefile.in (target-globals.o): Depend on $(REGS_H).
4396 * regs.h (target_reg_modes): New structure.
4397 (default_target_reg_modes): Declare.
4398 (this_target_reg_modes): Declare as a variable or define as a macro.
4399 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
4400 * reginfo.c (default_target_reg_modes): New variable.
4401 (this_target_reg_modes): New conditional variable.
4402 (hard_regno_nregs, reg_raw_mode): Delete.
4403 * target-globals.h (this_target_regs): Declare.
4404 (target_globals): Add a regs field.
4405 (restore_target_globals): Copy the regs field to this_target_regs.
4406 * target-globals.c: Include regs.h.
4407 (default_target_globals): Initialize the regs field.
4408 (save_target_globals): Likewise.
4409
4410 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4411
4412 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
4413 * doc/tm.texi: Regenerate.
4414 * Makefile.in (OBJS-common): Add target-globals.o.
4415 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
4416 and target-globals.h.
4417 (target-globals.o): New rule.
4418 (GTFILES): Include $(srcdir)/target-globals.h.
4419 * defaults.h (SWITCHABLE_TARGET): Define.
4420 * gengtype.c (open_base_files): Add target-globals.h to the
4421 list of includes.
4422 * target-globals.h: New file.
4423 * target-globals.c: Likewise.
4424
4425 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
4426 * flags.h (target_flag_state): New structure.
4427 (default_target_flag_state): Declare.
4428 (this_target_flag_state): Declare as a variable or define as a macro.
4429 (align_loops_log): Redefine as a macro.
4430 (align_loops_max_skip, align_jumps_log): Likewise.
4431 (align_jumps_max_skip, align_labels_log): Likewise.
4432 (align_labels_max_skip, align_functions_log): Likewise.
4433 * toplev.c (default_target_flag_state): New variable.
4434 (this_target_flag_state): New conditional variable.
4435 (align_loops_log): Delete.
4436 (align_loops_max_skip, align_jumps_log): Likewise.
4437 (align_jumps_max_skip, align_labels_log): Likewise.
4438 (align_labels_max_skip, align_functions_log): Likewise.
4439 * target-globals.h (this_target_flag_state): Declare.
4440 (target_globals): Add a flag_state field.
4441 (restore_target_globals): Copy the flag_state field to
4442 this_target_flag_state.
4443 * target-globals.c: Include flags.h.
4444 (default_target_globals): Initialize the flag_state field.
4445 (save_target_globals): Likewise.
4446
4447 2010-07-12 Jie Zhang <jie@codesourcery.com>
4448
4449 * postreload.c (reg_symbol_ref[]): New.
4450 (move2add_use_add2_insn): New.
4451 (move2add_use_add3_insn): New.
4452 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
4453 (move2add_note_store): Likewise.
4454
4455 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
4456
4457 PR rtl-optimization/44752
4458 * genautomata.c (main): Don't emit an empty file even if there
4459 is no automaton.
4460
4461 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4462
4463 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
4464 ix86_solaris_return_in_memory.
4465 * config/i386-protos.h: Reflect this.
4466 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
4467 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
4468 Move ...
4469 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
4470
4471 2010-07-12 Jie Zhang <jie@codesourcery.com>
4472
4473 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
4474 align the stack when it's going to be saved.
4475
4476 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4477
4478 PR pch/14940
4479 * config/host-solaris.c (mmap_fixed): New function.
4480 (sol_gt_pch_get_address): Use it.
4481 (sol_gt_pch_use_address): Likewise.
4482
4483 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4484
4485 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
4486 pentiumpro on Solaris 8 and 9/x86.
4487 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
4488 Document SSE/SSE2 support.
4489 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
4490
4491 2010-07-12 Andi Kleen <ak@linux.intel.com>
4492
4493 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
4494 instead of gcc_assert to print better error message for multiple
4495 prevailing defs.
4496
4497 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
4498
4499 * config/i386/i386.c (ix86_asm_output_function_label): Change format
4500 string placeholder from 0x%x to %#x.
4501 (ix86_code_end): Use putc to output '\n'.
4502 (ix86_print_operand) <case ';'>: Use putc to output ';'.
4503
4504 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
4505
4506 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
4507 in directive -export.
4508
4509 2010-07-10 Anatoly Sokolov <aesok@post.ru>
4510
4511 * reginfo.h (reg_classes_intersect_p): Change arguments type to
4512 reg_class_t.
4513 * rtl.h (reg_classes_intersect_p): Adjust prototype.
4514
4515 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4516 Remove macros.
4517 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
4518 rs6000_memory_move_cost): Remove
4519 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
4520 TARGET_MEMORY_MOVE_COST): Define.
4521 (rs6000_register_move_cost): Make static. Change arguments type from
4522 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
4523 (rs6000_memory_move_cost): Make static. Change arguments type from
4524 'enum reg_class' to reg_class_t.
4525
4526 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
4527
4528 PR middle-end/42505
4529 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
4530 lookup code into....
4531 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
4532 new functions.
4533 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
4534 * cfgloopanal.c (target_clobbered_regs): Define.
4535 (init_set_costs): Initialize target_clobbered_regs.
4536 (estimate_reg_pressure_cost): Add call_p argument. When true,
4537 adjust the number of available registers to exclude the
4538 call-clobbered registers.
4539 * cfgloop.h (target_clobbered_regs): Declare.
4540 (estimate_reg_pressure_cost): Adjust declaration.
4541 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
4542 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
4543 (determine_set_costs): Dump target_clobbered_regs.
4544 (loop_body_includes_call): New function.
4545 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
4546 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
4547 call_p flag through.
4548 (best_gain_for_invariant): Likewise.
4549 (find_invariants_to_move): Likewise.
4550 (move_single_loop_invariants): Likewise, using already-computed
4551 has_call field.
4552
4553 2010-07-10 Richard Guenther <rguenther@suse.de>
4554 Joern Rennecke <joern.rennecke@embecosm.com>
4555
4556 PR debug/44832
4557 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
4558 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
4559 unless they have DECL_IGNORED_P set.
4560
4561 2010-07-10 Richard Guenther <rguenther@suse.de>
4562
4563 PR lto/44889
4564 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
4565 helper function.
4566 (gimple_types_compatible_p): Similar to pointed-to
4567 types allow and merge a mix of complete and incomplete aggregate.
4568 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
4569 (iterative_hash_gimple_type): Adjust for that.
4570
4571 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
4572
4573 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
4574
4575 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
4576
4577 PR objc/44140
4578 * config/darwin.c (output_objc_section_asm_op): Save and restore
4579 section when outputting ObjC section list.
4580
4581 2010-07-09 Jan Hubicka <jh@suse.cz>
4582
4583 * lto-streamer-out.c (produce_symtab): Do not write alias
4584 cgraph/varpool nodes.
4585
4586 2010-07-09 Jan Hubicka <jh@suse.cz>
4587
4588 * tree-inline.c (declare_return_variable): Fix ICE while
4589 inlining DECL_BY_VALUE function not in SSA form
4590
4591 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
4592
4593 PR tree-optimization/44576
4594 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
4595 New. Pull out from is_loop_prefetching_profitable to implement
4596 the trip count to ahead ratio heuristic.
4597 (mem_ref_count_reasonable_p): New. Pull out from
4598 is_loop_prefetching_profitable to implement the instruction to
4599 memory reference ratio heuristic. Also consider not reasonable if
4600 the memory reference count is above a threshold (to avoid
4601 explosive compilation time.
4602 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
4603 is_loop_prefetching_profitable to implement the instruction to
4604 prefetch ratio heuristic.
4605 (is_loop_prefetching_profitable): Removed.
4606 (loop_prefetch_arrays): Distribute the cost analysis across the
4607 function to allow early exit of the prefetch analysis.
4608 is_loop_prefetching_profitable is splitted into three functions,
4609 with each one called as early as possible.
4610 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
4611 number of memory references in a loop is considered too many.
4612
4613 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
4614
4615 * reload.c (find_reloads): Don't clear badop if we have a winreg
4616 alternative, but not win, and the class only has fixed regs.
4617 * hard-reg-set.h (class_only_fixed_regs): Declare.
4618 * reginfo.c (class_only_fixed_regs): New array.
4619 (init_reg_sets_1): Initialize it.
4620 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
4621 discourage alternatives using the stack pointer.
4622
4623 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
4624
4625 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
4626
4627 * config/arm/arm.md (cbranchqi4): Fix array size.
4628 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
4629 calculating length.
4630
4631 2010-07-09 Richard Guenther <rguenther@suse.de>
4632
4633 * gimple.c (struct type_fixup_s): New struct and VEC type.
4634 (gimple_register_type_fixups): New static global.
4635 (gimple_queue_type_fixup): New function.
4636 (gimple_types_compatible_p): Queue type fixups instead of
4637 applying them here.
4638 (gimple_register_type): Apply queued fixups for the
4639 canonical type. Empty the type fixup queue.
4640
4641 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
4642
4643 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
4644 * configure: Regenerate.
4645 * config.in: Ditto.
4646
4647 2010-07-09 Jakub Jelinek <jakub@redhat.com>
4648 Denys Vlasenko <dvlasenk@redhat.com>
4649 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4650
4651 PR tree-optimization/28632
4652 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
4653 (extract_range_from_binary_expr): Further optimize
4654 BIT_AND_EXPR and BIT_IOR_EXPR.
4655
4656 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
4657
4658 * tree-if-conv.c (fold_or_predicates): New.
4659 (add_to_predicate_list): Call it.
4660
4661 2010-07-09 Richard Guenther <rguenther@suse.de>
4662
4663 PR middle-end/44890
4664 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
4665 if base is a pointer.
4666 * tree-cfg.c (verify_expr): Update MEM_REF checking.
4667
4668 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
4669
4670 PR target/44877
4671 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
4672 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
4673 builtin mask for load/store builtins.
4674
4675 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
4676
4677 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
4678 for "lock addl".
4679 * configure: Regenerate.
4680 * config/i386/i386.c (ix86_print_operand) <case ';'>:
4681 Remove TARGET_MACHO.
4682
4683 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
4684
4685 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
4686 default ISA flags.
4687 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
4688
4689 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
4690
4691 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
4692
4693 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
4694
4695 * config/picochip/picochip.md (commsTestPort): Emit more
4696 efficient sequence for tstport instruction.
4697
4698 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
4699
4700 * config/i386/i386.c (ix86_veclib_handler): Make static.
4701
4702 2010-07-09 Richard Guenther <rguenther@suse.de>
4703
4704 PR tree-optimization/44852
4705 * tree-ssa-alias.c: Include toplev.h for exact_log2.
4706 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
4707 in MEM_REF.
4708 (indirect_refs_may_alias_p): Likewise.
4709 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
4710
4711 2010-07-09 Richard Guenther <rguenther@suse.de>
4712
4713 PR tree-optimization/44882
4714 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
4715 sets do conflict.
4716 (vectorizable_load): Likewise.
4717
4718 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
4719
4720 PR target/40657
4721 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
4722 All callers changed.
4723 Handle the case when we're called for the epilogue.
4724 (thumb_unexpanded_epilogue): Use it.
4725 (thumb1_expand_epilogue): Likewise.
4726
4727 2010-07-09 Jakub Jelinek <jakub@redhat.com>
4728
4729 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
4730 both ranges are range_int_cst_p with non-negative minimum,
4731 try harder to derive smaller range.
4732
4733 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4734
4735 * genrecog.c: Include diagnostic-core.h before toplev.h.
4736 * genoutput.c: Likewise.
4737 * genextract.c: Likewise.
4738 * genautomata.c: Likewise.
4739 * genemit.c: Likewise.
4740 * genpeep.c: Likewise.
4741 * genattrtab.c: Likewise.
4742 * genconditions.c: Likewise.
4743 * genpreds.c: Likewise.
4744
4745 2010-07-08 Andi Kleen <ak@linux.intel.com>
4746
4747 * lto-section-in.c (lto_section_name): Add missing comma.
4748
4749 2010-07-08 Anatoly Sokolov <aesok@post.ru>
4750
4751 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
4752 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
4753 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
4754 (ia64_override_options): Rename to...
4755 (ia64_option_override): ... this one. Make static.
4756
4757 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
4758
4759 PR middle-end/44843
4760 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
4761 pointed-to type of the offset in a MEM_REF to compute the alignment.
4762
4763 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
4764
4765 * final.c (final_scan_insn): Replace
4766 TARGET_UNWIND_INFO macro check by unwind_emit
4767 hook NULL check.
4768 * targhooks.c (default_unwind_emit): Removed.
4769 * targhooks.h (default_unwind_emit): Likewise.
4770 * target.def (unwind_emit): Set default value to NULL.
4771
4772 * config/i386/i386-protos.h (ix86_asm_output_function_label):
4773 New prototype.
4774 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
4775 for NULL fntype argument and allow 64-bit targets.
4776 (ix86_asm_output_function_label): New function.
4777 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
4778 (ix86_handle_fndecl_attribute): Likewise.
4779 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
4780 * doc/doc/tm.texi: Regenerated.
4781 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
4782 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
4783 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
4784 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
4785 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
4786 * config/elfos.h: Likewise.
4787 * config/i386/cygming.h: Likewise.
4788 * config/netbsd-aout.h: Likewise.
4789 * config/openbsd.h: Likewise.
4790 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
4791 by ix86_asm_output_function_label function call.
4792 * varasm.c (assemble_start_function): Use
4793 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
4794
4795 2010-07-08 Jan Hubicka <jh@suse.cz>
4796
4797 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
4798 New function.
4799 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
4800 Declare.
4801 * ipa-cp.c (ipcp_estimate_growth): Use it.
4802 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
4803 Likewise.
4804
4805 2010-07-08 Jan Hubicka <jh@suse.cz>
4806
4807 * tree-inline.c (declare_return_variable): Allocate annotation for new
4808 temporary.
4809
4810 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
4811
4812 PR tree-optimization/44710
4813 * tree-if-conv.c (parse_predicate): New.
4814 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
4815 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
4816
4817 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
4818
4819 * common.opt (ftree-loop-if-convert): New flag.
4820 * doc/invoke.texi (ftree-loop-if-convert): Documented.
4821 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
4822 when flag_tree_loop_if_convert is set.
4823
4824 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
4825
4826 * config/i386/i386.c: Use short syntax for function calls
4827 through function pointers.
4828 * config/i386/i386.md: Ditto.
4829
4830 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
4831
4832 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
4833
4834 2010-07-08 Richard Guenther <rguenther@suse.de>
4835
4836 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
4837 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
4838
4839 2010-07-08 Jakub Jelinek <jakub@redhat.com>
4840
4841 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
4842 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
4843 (loc_list_from_tree): Likewise.
4844 (output_loc_operands): Handle outputting DW_OP_const[48]u
4845 with loc->dtprel set.
4846 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
4847
4848 2010-07-08 Jan Hubicka <jh@suse.cz>
4849
4850 * ipa.c: Include pointer-set.h
4851 (cgraph_externally_visible_p): New attribute ALIASED;
4852 when in LTO, hidden symbols are local unless they are aliased.
4853 (function_and_variable_visibility): Compute aliased nodes;
4854 handle LTO and hidden symbol on functions and vars.
4855 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
4856 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
4857
4858 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
4859
4860 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
4861 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4862 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4863 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4864 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4865 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
4866 (ix86_gen_probe_stack_range): Likewise.
4867 (override_options): Set them.
4868 (ix86_target_stack_probe): New function.
4869 (ix86_compute_frame_layout): Force use of push instructions to
4870 save registers if stack checking with probes is enabled.
4871 (get_scratch_register_on_entry): New function.
4872 (release_scratch_register_on_entry): Likewise.
4873 (ix86_adjust_stack_and_probe): Likewise.
4874 (output_adjust_stack_and_probe): Likewise.
4875 (ix86_emit_probe_stack_range): Likewise.
4876 (output_probe_stack_range): Likewise.
4877 (ix86_expand_prologue): Emit stack checking code if static built-in
4878 stack checking is enabled.
4879 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
4880 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
4881 (output_adjust_stack_and_probe): Likewise.
4882 (output_probe_stack_range): Likewise.
4883 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
4884 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
4885 TARGET_STACK_PROBE.
4886 (allocate_stack_worker_64): Likewise.
4887 (allocate_stack): Likewise.
4888 (adjust_stack_and_probe): New insn.
4889 (probe_stack_range): Likewise.
4890
4891 2010-07-08 Richard Guenther <rguenther@suse.de>
4892
4893 PR tree-optimization/44831
4894 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
4895 a MEM_REF preserving TBAA info of the original dereference.
4896 Dereference the original pointer if the address is not invariant.
4897 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
4898 at least one invariant address that we are going to dereference.
4899
4900 2010-07-08 Richard Guenther <rguenther@suse.de>
4901
4902 PR tree-optimization/44861
4903 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
4904 information when building MEM_REFs.
4905 (vectorizable_load): Likewise.
4906 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
4907
4908 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
4909
4910 * config/sol2-c.c: Do not include diagnostic-core.h.
4911
4912 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4913
4914 PR bootstrap/44768
4915 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
4916 with respect to current_function_decl. Pass decl of the function.
4917 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
4918 * ipa-inline.c (compute_inline_parameters): Pass decl to
4919 estimated_stack_frame_size.
4920
4921 2010-07-08 Richard Guenther <rguenther@suse.de>
4922
4923 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
4924 New function.
4925 (valueize_refs): Call it.
4926
4927 2010-07-08 Richard Guenther <rguenther@suse.de>
4928
4929 PR rtl-optimization/44838
4930 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
4931 SSA form do not use pointer equivalence.
4932
4933 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
4934
4935 * dwarf2out.c (AT_linkage_name): Delete.
4936 (add_linkage_attr): New function.
4937 (add_linkage_name): Call it to emit the linkage attribute.
4938 (dwarf2out_finish): Likewise.
4939 (move_linkage_attr): Explicitly accept both attribute variants.
4940
4941 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4942
4943 * toplev.h: Do not include diagnostic-core.h.
4944 Include diagnostic-core.h in every file that includes toplev.h.
4945 * c-tree.h: Do not include toplev.h.
4946 * pretty-print.h: Update comment.
4947 * Makefile.in: Update dependencies.
4948 * alias.c: Include diagnostic-core.h in every file that includes
4949 toplev.h.
4950 * attribs.c: Likewise.
4951 * auto-inc-dec.c: Likewise.
4952 * bb-reorder.c: Likewise.
4953 * bt-load.c: Likewise.
4954 * caller-save.c: Likewise.
4955 * calls.c: Likewise.
4956 * cfg.c: Likewise.
4957 * cfganal.c: Likewise.
4958 * cfgbuild.c: Likewise.
4959 * cfgcleanup.c: Likewise.
4960 * cfghooks.c: Likewise.
4961 * cfgloop.c: Likewise.
4962 * combine.c: Likewise.
4963 * config/alpha/alpha.c: Likewise.
4964 * config/arc/arc.c: Likewise.
4965 * config/arm/arm.c: Likewise.
4966 * config/arm/pe.c: Likewise.
4967 * config/avr/avr.c: Likewise.
4968 * config/bfin/bfin.c: Likewise.
4969 * config/cris/cris.c: Likewise.
4970 * config/crx/crx.c: Likewise.
4971 * config/darwin-c.c: Likewise.
4972 * config/darwin.c: Likewise.
4973 * config/fr30/fr30.c: Likewise.
4974 * config/frv/frv.c: Likewise.
4975 * config/h8300/h8300.c: Likewise.
4976 * config/host-darwin.c: Likewise.
4977 * config/i386/i386.c: Likewise.
4978 * config/i386/netware.c: Likewise.
4979 * config/i386/nwld.c: Likewise.
4980 * config/i386/winnt-cxx.c: Likewise.
4981 * config/i386/winnt-stubs.c: Likewise.
4982 * config/i386/winnt.c: Likewise.
4983 * config/ia64/ia64-c.c: Likewise.
4984 * config/ia64/ia64.c: Likewise.
4985 * config/iq2000/iq2000.c: Likewise.
4986 * config/lm32/lm32.c: Likewise.
4987 * config/m32c/m32c-pragma.c: Likewise.
4988 * config/m32c/m32c.c: Likewise.
4989 * config/m32r/m32r.c: Likewise.
4990 * config/m68hc11/m68hc11.c: Likewise.
4991 * config/m68k/m68k.c: Likewise.
4992 * config/mcore/mcore.c: Likewise.
4993 * config/mep/mep-pragma.c: Likewise.
4994 * config/mep/mep.c: Likewise.
4995 * config/mmix/mmix.c: Likewise.
4996 * config/mn10300/mn10300.c: Likewise.
4997 * config/moxie/moxie.c: Likewise.
4998 * config/pa/pa.c: Likewise.
4999 * config/pdp11/pdp11.c: Likewise.
5000 * config/picochip/picochip.c: Likewise.
5001 * config/rs6000/rs6000-c.c: Likewise.
5002 * config/rs6000/rs6000.c: Likewise.
5003 * config/rx/rx.c: Likewise.
5004 * config/s390/s390.c: Likewise.
5005 * config/score/score.c: Likewise.
5006 * config/score/score3.c: Likewise.
5007 * config/score/score7.c: Likewise.
5008 * config/sh/sh.c: Likewise.
5009 * config/sh/symbian-base.c: Likewise.
5010 * config/sh/symbian-c.c: Likewise.
5011 * config/sh/symbian-cxx.c: Likewise.
5012 * config/sol2-c.c: Likewise.
5013 * config/sol2.c: Likewise.
5014 * config/sparc/sparc.c: Likewise.
5015 * config/spu/spu.c: Likewise.
5016 * config/stormy16/stormy16.c: Likewise.
5017 * config/v850/v850-c.c: Likewise.
5018 * config/v850/v850.c: Likewise.
5019 * config/vax/vax.c: Likewise.
5020 * config/vxworks.c: Likewise.
5021 * config/xtensa/xtensa.c: Likewise.
5022 * convert.c: Likewise.
5023 * cse.c: Likewise.
5024 * cselib.c: Likewise.
5025 * dbgcnt.c: Likewise.
5026 * dbxout.c: Likewise.
5027 * ddg.c: Likewise.
5028 * dominance.c: Likewise.
5029 * emit-rtl.c: Likewise.
5030 * explow.c: Likewise.
5031 * expmed.c: Likewise.
5032 * fixed-value.c: Likewise.
5033 * fold-const.c: Likewise.
5034 * fwprop.c: Likewise.
5035 * gcse.c: Likewise.
5036 * ggc-common.c: Likewise.
5037 * ggc-page.c: Likewise.
5038 * ggc-zone.c: Likewise.
5039 * gimple-low.c: Likewise.
5040 * gimplify.c: Likewise.
5041 * graph.c: Likewise.
5042 * haifa-sched.c: Likewise.
5043 * ifcvt.c: Likewise.
5044 * implicit-zee.c: Likewise.
5045 * integrate.c: Likewise.
5046 * ira-build.c: Likewise.
5047 * ira-color.c: Likewise.
5048 * ira-conflicts.c: Likewise.
5049 * ira-costs.c: Likewise.
5050 * ira-lives.c: Likewise.
5051 * ira.c: Likewise.
5052 * lists.c: Likewise.
5053 * loop-doloop.c: Likewise.
5054 * loop-iv.c: Likewise.
5055 * lto-opts.c: Likewise.
5056 * lto-symtab.c: Likewise.
5057 * main.c: Likewise.
5058 * modulo-sched.c: Likewise.
5059 * optabs.c: Likewise.
5060 * params.c: Likewise.
5061 * plugin.c: Likewise.
5062 * postreload-gcse.c: Likewise.
5063 * postreload.c: Likewise.
5064 * predict.c: Likewise.
5065 * profile.c: Likewise.
5066 * real.c: Likewise.
5067 * regcprop.c: Likewise.
5068 * reginfo.c: Likewise.
5069 * regmove.c: Likewise.
5070 * reorg.c: Likewise.
5071 * resource.c: Likewise.
5072 * rtl.c: Likewise.
5073 * rtlanal.c: Likewise.
5074 * sched-deps.c: Likewise.
5075 * sched-ebb.c: Likewise.
5076 * sched-rgn.c: Likewise.
5077 * sdbout.c: Likewise.
5078 * sel-sched-dump.c: Likewise.
5079 * sel-sched-ir.c: Likewise.
5080 * simplify-rtx.c: Likewise.
5081 * stmt.c: Likewise.
5082 * stor-layout.c: Likewise.
5083 * store-motion.c: Likewise.
5084 * targhooks.c: Likewise.
5085 * tree-cfg.c: Likewise.
5086 * tree-cfgcleanup.c: Likewise.
5087 * tree-dump.c: Likewise.
5088 * tree-eh.c: Likewise.
5089 * tree-inline.c: Likewise.
5090 * tree-nomudflap.c: Likewise.
5091 * tree-object-size.c: Likewise.
5092 * tree-optimize.c: Likewise.
5093 * tree-outof-ssa.c: Likewise.
5094 * tree-phinodes.c: Likewise.
5095 * tree-profile.c: Likewise.
5096 * tree-ssa-ccp.c: Likewise.
5097 * tree-ssa-coalesce.c: Likewise.
5098 * tree-ssa-live.c: Likewise.
5099 * tree-ssa-loop-niter.c: Likewise.
5100 * tree-ssa-loop-prefetch.c: Likewise.
5101 * tree-ssa-loop.c: Likewise.
5102 * tree-ssa-structalias.c: Likewise.
5103 * tree-ssa-uninit.c: Likewise.
5104 * tree-ssa.c: Likewise.
5105 * tree-vect-data-refs.c: Likewise.
5106 * tree-vect-loop-manip.c: Likewise.
5107 * tree-vect-loop.c: Likewise.
5108 * tree-vect-patterns.c: Likewise.
5109 * tree-vect-stmts.c: Likewise.
5110 * tree-vrp.c: Likewise.
5111 * varasm.c: Likewise.
5112 * vec.c: Likewise.
5113 * web.c: Likewise.
5114 * xcoffout.c: Likewise.
5115
5116 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
5117
5118 * gengtype.c (write_field_root): New function.
5119 (write_root): Use it.
5120
5121 2010-07-07 Wei Guozhi <carrot@google.com>
5122
5123 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
5124 of lowest bits to lshift/compare): Add a missing line.
5125
5126 2010-07-07 Wei Guozhi <carrot@google.com>
5127
5128 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
5129 of lowest bits to lshift/compare): New.
5130
5131 2010-07-07 Tom Tromey <tromey@redhat.com>
5132
5133 * doc/tm.texi: Update.
5134 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
5135 Add @hook.
5136 * target.def (want_debug_pub_sections): New hook.
5137 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
5138 * dwarf2out.c (add_pubname_string): Check
5139 targetm.want_debug_pub_sections.
5140 (add_pubname): Likewise.
5141 (add_pubtype): Likewise.
5142
5143 2010-07-07 Jie Zhang <jie@codesourcery.com>
5144
5145 * genautomata.c (output_automata_list_min_issue_delay_code):
5146 Correctly decompress min_issue_delay.
5147
5148 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
5149
5150 PR rtl-optimization/44404
5151 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
5152 possible, use reg_overlap_mentioned_p instead.
5153
5154 2010-07-07 Duncan Sands <baldrick@free.fr>
5155
5156 PR middle-end/41355
5157 * tree.c (build_function_type_skip_args): Copy the original type using
5158 build_distinct_type_copy rather than copy_node.
5159
5160 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
5161
5162 PR target/44850
5163 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
5164 revision 161876.
5165 (ix86_expand_prologue): Likewise.
5166 (ix86_handle_fndecl_attribute): Likewise.
5167 (ix86_asm_declare_function_name): Likewise.
5168 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5169 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5170 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
5171 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
5172 * doc/extend.texi: Likewise.
5173
5174 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
5175
5176 PR target/44844
5177 * config/i386/i386.md (rdrand<mode>): Changed to expand to
5178 retry if the carry flag isn't valid.
5179 (rdrand<mode>_1): New.
5180
5181 2010-07-07 Richard Guenther <rguenther@suse.de>
5182
5183 PR middle-end/44790
5184 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
5185 for expanding the constant offset for MEM_REFs.
5186
5187 2010-07-07 Richard Guenther <rguenther@suse.de>
5188
5189 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
5190 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
5191 * gimple.h (is_gimple_operand): Remove.
5192 * gimple.c (is_gimple_operand): Likewise.
5193 (walk_gimple_op): Fix wi->val_only setting for calls.
5194 * tree-cfg.c (verify_gimple_call): Fix argument validation.
5195 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
5196 invalid gimple calls.
5197
5198 2010-07-06 Jan Hubicka <jh@suse.cz>
5199
5200 * lto-cgraph.c (output_cgraph): Add missing declaration.
5201
5202 2010-07-06 Jan Hubicka <jh@suse.cz>
5203
5204 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
5205 partition.
5206
5207 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
5208
5209 * doc/gimple.texi (GIMPLE_DEBUG): Document.
5210 * doc/rtl.texi (Debug Information): New node.
5211 (NOTE_INSN_VAR_LOCATION): Document.
5212 (debug_insn): Likewise.
5213 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
5214
5215 2010-07-07 Jan Hubicka <jh@suse.cz>
5216
5217 With parts by Richard Guenther.
5218
5219 PR middle-end/44813
5220 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
5221 for functions passed by reference.
5222 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
5223 in memory when passed by reference.
5224 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
5225 beggining.
5226 * ipa-split.c (split_function): Cleanup way return value is passed;
5227 handle SSA DECL_BY_REFERENCE retvals.
5228 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
5229 DECL_BY_REFERENCE is set.
5230 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
5231 find_what_p_points_to): Handle RESULT_DECL.
5232 * tree-inline.c (declare_return_variable): Get new entry_block argument;
5233 when passing by reference ensure that RESULT_DECL is gimple_val.
5234 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
5235 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
5236
5237 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
5238
5239 PR rtl-optimization/44787
5240 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
5241 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
5242
5243 2010-07-06 Jan Hubicka <jh@suse.cz>
5244
5245 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
5246 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
5247 with body can prevail.
5248 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
5249 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
5250 * cgraph.c (cgraph_get_node_or_alias): New function.
5251 * cgraph.h (cgraph_get_node_or_alias): Declare.
5252
5253 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
5254
5255 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
5256 support.
5257 (ix86_expand_prologue): Likewise.
5258 (ix86_handle_fndecl_attribute): Likewise.
5259 (ix86_asm_declare_function_name): New function for
5260 ASM_DECLARE_FUNCTION_NAME.
5261 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
5262 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
5263 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
5264 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
5265 * doc/extend.texi: Adjust documentation about ms_hook_prologue
5266 attribute.
5267
5268 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
5269
5270 * config/i386/i386.md (immediate_operand): New mode attribute.
5271
5272 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
5273 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
5274 using P mode iterator.
5275 (pro_epilogue_adjust_stack_di_2): Rename from
5276 pro_epilogue_adjust_stack_rex64_2.
5277
5278 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
5279
5280 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
5281
5282 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
5283 through gen_mov_insv_1 function pointer.
5284 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
5285 gen_truncxf<mode>2 through gen_truncxf function pointer.
5286 (remainder<mode>3): Ditto.
5287 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
5288 (allocate_stack): Call gen_allocate_stack_worker_64 or
5289 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
5290 function pointer.
5291 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
5292 function pointer.
5293
5294 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
5295
5296 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
5297 operand constraint instead of <r><i>m.
5298
5299 2010-07-06 Richard Guenther <rguenther@suse.de>
5300
5301 PR middle-end/44828
5302 * convert.c (convert_to_integer): Watch out for overflowing
5303 MULT_EXPR as well.
5304
5305 2010-07-05 Jan Hubicka <jh@suse.cz>
5306
5307 * lto-streamer.c (write_symbol_vec): Rename to ...
5308 (write_symbol) ... this one; write only symbol given and when
5309 present in cache. Sanity check that what is defined is present
5310 in cgraph/varpool with body/finalized decl.
5311 (write_symbols_of_kind): Remove.
5312 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
5313 pairs to produce symtab.
5314 (produce_asm_for_decls): Update call of produce_symtab; don't do so
5315 when doing WPA streaming.
5316
5317 2010-07-05 Jan Hubicka <jh@suse.cz>
5318
5319 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
5320 function is still available to fold into.
5321
5322 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
5323
5324 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
5325 * function.h (struct_function): Change type of local_decls field
5326 to a VEC.
5327 (add_local_decl): New function.
5328 (FOR_EACH_LOCAL_DECL): New macro.
5329 * cfgexpand.c (init_vars_expansion): Adjust for new type of
5330 cfun->local_decls.
5331 (estimated_stack_frame_size): Likewise.
5332 (expand_used_vars): Likewise.
5333 * cgraphbuild.c (build_cgraph_edges): Likewise.
5334 * function.c (instantiate_decls_1): Likewise.
5335 * ipa-struct-reorg.c (build_data_structure): Likewise.
5336 * ipa-type-escape.c (analyze_function): Likewise.
5337 * lto-streamer-in.c (input_function): Likewise.
5338 * lto-streamer-out.c (output_function): Likewise.
5339 * tree-ssa-live.c (remove_unused_locals): Likewise.
5340 * tree.c (free_lang_data_in_decl): Likewise.
5341 (find_decls_types_in_node): Likewise.
5342 * omp-low.c (remove_exit_barrier): Likewise.
5343 (expand_omp_taskreg): Likewise.
5344 (list2chain): Rename to...
5345 (vec2chain): ...this. Adjust.
5346 * cgraphunit.c (assemble_thunk): Call add_local_decl.
5347 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
5348 * gimple-low.c (record_vars_into): Likewise.
5349 * tree-inline.c (remap_decls): Likewise.
5350 (declare_return_variable): Likewise.
5351 (declare_inline_vars): Likewise.
5352 (copy_forbidden): Adjust for new type of cfun->local_decls.
5353 (add_local_variables): New function.
5354 (expand_call_inline): Call it.
5355 (tree_function_versioning): Likewise.
5356
5357 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
5358
5359 AVX Programming Reference (June, 2010)
5360 * config/i386/cpuid.h (bit_F16C): New.
5361 (bit_RDRND): Likewise.
5362 (bit_FSGSBASE): Likewise.
5363
5364 * config/i386/i386-builtin-types.def: Add
5365 "DEF_FUNCTION_TYPE (UINT16)", function types for
5366 float16 <-> float conversions and
5367 "DEF_FUNCTION_TYPE (VOID, UINT64)".
5368
5369 * config/i386/i386-c.c (ix86_target_macros_internal): Support
5370 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
5371 OPTION_MASK_ISA_F16C.
5372
5373 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
5374 (OPTION_MASK_ISA_RDRND_SET): Likewise.
5375 (OPTION_MASK_ISA_F16C_SET): Likewise.
5376 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
5377 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
5378 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
5379 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
5380 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
5381 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
5382 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
5383 (override_options): Handle them.
5384 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
5385 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
5386 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
5387 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
5388 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
5389 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
5390 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
5391 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
5392 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
5393 (bdesc_args): Likewise.
5394 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
5395 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
5396 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
5397 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
5398 Handle non-memory store.
5399
5400 * config/i386/i386.h (TARGET_FSGSBASE): New.
5401 (TARGET_RDRND): Likewise.
5402 (TARGET_F12C): Likewise.
5403
5404 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
5405 (UNSPEC_VCVTPS2PH): Likewise.
5406 (UNSPECV_RDFSBASE): Likewise.
5407 (UNSPECV_RDGSBASE): Likewise.
5408 (UNSPECV_WRFSBASE): Likewise.
5409 (UNSPECV_WRGSBASE): Likewise.
5410 (UNSPECV_RDRAND): Likewise.
5411 (rdfsbase<mode>): Likewise.
5412 (rdgsbase<mode>): Likewise.
5413 (wrfsbase<mode>): Likewise.
5414 (wrgsbase<mode>): Likewise.
5415 (rdrand<mode>): Likewise.
5416
5417 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
5418
5419 * config/i386/immintrin.h (_rdrand_u16): New.
5420 (_rdrand_u32): Likewise.
5421 (_readfsbase_u32): Likewise.
5422 (_readfsbase_u64): Likewise.
5423 (_readgsbase_u32): Likewise.
5424 (_readgsbase_u64): Likewise.
5425 (_writefsbase_u32): Likewise.
5426 (_writefsbase_u64): Likewise.
5427 (_writegsbase_u32): Likewise.
5428 (_writegsbase_u64): Likewise.
5429 (_rdrand_u64): Likewise.
5430 (_cvtsh_ss): Likewise.
5431 (_mm_cvtph_ps): Likewise.
5432 (_mm256_cvtph_ps): Likewise.
5433 (_cvtss_sh): Likewise.
5434 (_mm_cvtps_ph): Likewise.
5435 (_mm256_cvtps_ph): Likewise.
5436
5437 * config/i386/sse.md (vcvtph2ps): New.
5438 (*vcvtph2ps_load): Likewise.
5439 (vcvtph2ps256): Likewise.
5440 (vcvtps2ph): Likewise.
5441 (*vcvtps2ph): Likewise.
5442 (*vcvtps2ph_store): Likewise.
5443 (vcvtps2ph256): Likewise.
5444
5445 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
5446
5447 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
5448
5449 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
5450
5451 PR bootstrap/44512
5452 * genenums.c (main): Output include of insn-constants.h
5453 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
5454
5455 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
5456
5457 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
5458 (override_options): Initialize it.
5459 (ix86_expand_prologue): Use it.
5460
5461 2010-07-05 Jakub Jelinek <jakub@redhat.com>
5462
5463 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
5464
5465 2010-07-05 Anatoly Sokolov <aesok@post.ru>
5466
5467 * double-int.h (fit_double_type): Remove declaration.
5468 * double-int.c (fit_double_type): Remove function.
5469 * tree.h (int_fits_type_p): Adjust prototype.
5470 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
5471 instead of fit_double_type.
5472 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
5473 instead of fit_double_type and build_int_cst_wide.
5474 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
5475 instead of fit_double_type and build_int_cst_wide.
5476 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
5477 of fit_double_type.
5478
5479 2010-07-05 Jan Hubicka <jh@suse.cz>
5480
5481 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
5482 in_other_partition.
5483 * lto-cgraph.c (referenced_from_other_partition_p,
5484 reachable_from_other_partition_p): Use in_other_partition flags.
5485 (output_node, output_varpool_node): COMDAT nodes always have private
5486 copies and thus are never used from other partition.
5487
5488 2010-07-05 Anatoly Sokolov <aesok@post.ru>
5489
5490 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
5491 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
5492 * config/ia64/ia64.c Include reload.h.
5493 (ia64_memory_move_cost): New function.
5494 (TARGET_MEMORY_MOVE_COST): Define.
5495 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
5496 memory_move_cost.
5497
5498 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
5499
5500 PR middle-end/42505
5501 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
5502 comments about cost model.
5503 (try_add_cand_for): Add second strategy for choosing initial set
5504 based on original IVs, controlled by ORIGINALP argument.
5505 (get_initial_solution): Add ORIGINALP argument.
5506 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
5507 (find_optimal_iv_set): Try two different strategies for choosing
5508 the IV set, and return the one with lower cost.
5509
5510 2010-07-05 Richard Guenther <rguenther@suse.de>
5511
5512 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
5513
5514 2010-07-05 Richard Guenther <rguenther@suse.de>
5515
5516 * tree.c (reference_alias_ptr_type): New function.
5517 * tree.h (reference_alias_ptr_type): Declare.
5518 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
5519 allow non-TARGET_MEM_REF new refs.
5520 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
5521 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
5522 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
5523 (create_mem_ref): Get alias pointer type. Adjust calls to
5524 create_mem_ref_raw.
5525 (maybe_fold_tmr): Likewise.
5526 * tree-flow.h (create_mem_ref): Adjust prototype.
5527
5528 2010-07-05 Jakub Jelinek <jakub@redhat.com>
5529
5530 PR c++/44808
5531 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
5532 *from_p is VAR_DECL.
5533
5534 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
5535
5536 * tree.h (build_call_list): Remove.
5537 * tree.c (build_call_list): Remove.
5538
5539 2010-07-05 Richard Guenther <rguenther@suse.de>
5540
5541 * double-int.h (double_int_sub): Declare.
5542 * double-int.c (double_int_sub): New function.
5543 * dwarf2out.c (field_byte_offset): Use it.
5544 * fixed-value.c (do_fixed_add): Likewise.
5545 (do_fixed_multiply): Likewise.
5546 (do_fixed_divide): Likewise.
5547 * tree-predcom.c (add_ref_to_chain): Likewise.
5548 (determine_roots_comp): Likewise.
5549 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
5550
5551 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
5552
5553 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
5554 implementations.
5555
5556 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
5557
5558 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
5559 * arm-modes.def (CC_NOTB): Don't define.
5560 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
5561 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
5562 (LTUGEU): New code_iterator.
5563 (cnb, optab): New corresponding code_attrs.
5564 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
5565 to canonical form. Operands 1 and 2 are commutative. Parametrize
5566 using LTUGEU.
5567 (addsi3_carryin_shift_<optab>): Likewise.
5568 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
5569 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
5570 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
5571 (subsi3_compare): Renamed from subsi3_compare0_c.
5572 Change CC_NOTB to CC.
5573 (arm_subsi3_insn): Allow constants for operand 0.
5574 (compare_scc peephole for eq case): New.
5575 (compare_scc splitters): Change CC_NOTB to CC.
5576
5577 2010-07-05 Richard Guenther <rguenther@suse.de>
5578
5579 * tree-ssa-loop-im.c (for_each_index): Do not handle
5580 ALIGN_INDIRECT_REF.
5581 (gen_lsm_tmp_name): Likewise.
5582 * tree-dump.c (dequeue_and_dump): Likewise.
5583 * tree-pretty-print.c (dump_generic_node): Likewise.
5584 (op_code_prio): Likewise.
5585 (op_symbol_code): Likewise.
5586 * tree.c (staticp): Likewise.
5587 (build1_stat): Likewise.
5588 * tree.h (INDIRECT_REF_P): Likewise.
5589 * fold-const.c (maybe_lvalue_p): Likewise.
5590 (operand_equal_p): Likewise.
5591 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5592 (ao_ref_init_from_vn_reference): Likewise.
5593 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
5594 (find_interesting_uses_address): Likewise.
5595 * dwarf2out.c (loc_list_from_tree): Likewise.
5596 * gimplify.c (gimplify_expr): Likewise.
5597 * tree-eh.c (tree_could_trap_p): Likewise.
5598 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
5599 * cfgexpand.c (expand_debug_expr): Likewise.
5600 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5601 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
5602 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
5603 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
5604 * tree-ssa-operands.c (get_expr_operands): Likewise.
5605 * expr.c (safe_from_p): Likewise.
5606 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
5607 * tree-vect-data-refs.c (vect_setup_realignment): Build
5608 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
5609 * tree-vect-stmts.c (vectorizable_load): Likewise.
5610 * tree.def (ALIGN_INDIRECT_REF): Remove.
5611
5612 2010-07-05 Richard Guenther <rguenther@suse.de>
5613
5614 PR tree-optimization/44784
5615 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
5616 for inserted stmts.
5617 (find_or_generate_expression): Fix SCCVN insertion check.
5618
5619 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
5620
5621 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
5622 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
5623 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
5624 directives.
5625
5626 2010-07-05 Ira Rosen <irar@il.ibm.com>
5627
5628 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
5629 statements that are not vectorized.
5630 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
5631 in INSIDE_COST.
5632
5633 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
5634
5635 PR bootstrap/44820
5636 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
5637
5638 2010-07-05 Richard Guenther <rguenther@suse.de>
5639
5640 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
5641 RESULT_DECLs properly.
5642
5643 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
5644
5645 PR rtl-optimization/44695
5646 * config/i386/i386.md (extract_code): Removed.
5647 (<u>divmodqi4): Likewise.
5648 (divmodqi4): New.
5649 (udivmodqi4): Likewise.
5650 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
5651 (udivmodhiqi3): Likewise.
5652
5653 2010-07-04 Jan Hubicka <jh@suse.cz>
5654
5655 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
5656
5657 2010-07-04 Jan Hubicka <jh@suse.cz>
5658
5659 * cgraphunit.c (init_cgraph): Only initialize dump file if it
5660 is not already initialized.
5661
5662 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
5663
5664 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
5665 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
5666 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
5667 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
5668 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
5669 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
5670 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
5671 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
5672 (sync_new_nand_optab): Redefine as macros.
5673 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
5674 Delete.
5675 (direct_optab_index): New enum.
5676 (direct_optab_d): New structure.
5677 (direct_optab): New typedef.
5678 (direct_optab_table): Declare.
5679 (direct_optab_handler, set_direct_optab_handler): New functions.
5680 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
5681 (sync_lock_release_optab): New macros.
5682 * optabs.c (direct_optab_table): New variable.
5683 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
5684 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
5685 cmpstr_optab and cmpstrn_optab.
5686 (emit_conditional_move): Likewise for movcc_optab.
5687 (can_conditionally_move_p): Likewise for movcc_gen_code.
5688 (init_insn_codes): Clear direct_optab_table.
5689 (init_optabs): Don't initialize the new "direct optabs" here.
5690 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
5691 vcond_gen_code.
5692 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
5693 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
5694 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
5695 (expand_sync_operation): Likewise other sync_*_optabs.
5696 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
5697 to sync_compare_and_swap_optab.
5698 (expand_sync_lock_test_and_set): Use direct_optab_handler for
5699 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
5700 to the names of both.
5701 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
5702 cmpstr_optab and cmpstrn_optab.
5703 (expand_builtin_lock_release): Likewise sync_lock_release.
5704 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
5705 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
5706 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
5707 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
5708 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
5709 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
5710 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
5711 (sync_lock_test_and_set, sync_lock_release): Delete.
5712 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
5713 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
5714 * genopinit.c (optabs): Use set_direct_optab_handler for the new
5715 macro optabs.
5716 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
5717 the "optab" local variable. Use direct_optab_handler for optab and
5718 sync_compare_and_swap_optab.
5719 * reload1.c (reload_in_optab, reload_out_optab): Delete.
5720 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
5721 reload_in_optab and reload_out_optab.
5722 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
5723 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
5724 * config/pa/pa.c (pa_secondary_reload): Likewise.
5725 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
5726 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
5727 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
5728 (VMSupportsCS8_builtin): Likewise.
5729
5730 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
5731
5732 * optabs.h (optab_handlers): Change type of insn_code to int.
5733 (optab_handler, set_optab_handler, convert_optab_handler)
5734 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
5735 CODE_FOR_nothing".
5736 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
5737 (init_insn_codes): Zero both the above arrays.
5738 (init_optabs): Never call init_insn_codes first time around.
5739
5740 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
5741
5742 * optabs.h (optab_handler, convert_optab_handler): Turn into
5743 inline functions that return an insn code.
5744 (set_optab_handler, set_convert_optab_handler): New functions.
5745 * builtins.c: Replace optab_handler(X)->insn_code with
5746 optab_handler or set_optab_handler thoughout. Likewise
5747 convert_optab_handler(X)->insn_code with convert_optab_handler
5748 and set_convert_optab_handler.
5749 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
5750 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
5751 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
5752 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
5753 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
5754 config/spu/spu.c: Likewise.
5755
5756 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
5757
5758 PR target/44531
5759 * config.gcc (sh*-*-*): Use regular expressions instead of
5760 the 'i' modifier for sed substitutions.
5761
5762 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
5763
5764 * gimple.c (gimple_body): Comments added.
5765
5766 2010-07-04 Richard Guenther <rguenther@suse.de>
5767
5768 PR middle-end/44809
5769 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
5770 of an INDIRECT_REF.
5771
5772 2010-07-04 Richard Guenther <rguenther@suse.de>
5773
5774 PR tree-optimization/44479
5775 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
5776 extra SSA name copy statements which preserves points-to
5777 information.
5778 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5779 Copy points-to information for all pointers. Properly handle
5780 MEM_REFs.
5781 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
5782 copy statements.
5783 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
5784 dependency.
5785
5786 2010-07-04 Richard Guenther <rguenther@suse.de>
5787
5788 PR middle-end/44785
5789 * tree-inline.c (initialize_inlined_parameters): Do not
5790 re-use pointer-map slot over remap_type call.
5791
5792 2010-07-04 Richard Guenther <rguenther@suse.de>
5793
5794 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
5795
5796 2010-07-04 Richard Guenther <rguenther@suse.de>
5797
5798 PR tree-optimization/44656
5799 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
5800 again after value-replacing in the defintions lhs.
5801
5802 2010-07-04 Ira Rosen <irar@il.ibm.com>
5803 Revital Eres <eres@il.ibm.com>
5804
5805 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
5806 Document new arguments.
5807 * doc/tm.texi: Regenerate.
5808 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
5809 Handle unaligned store.
5810 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
5811 * target.def (builtin_vectorization_cost): Add new arguments.
5812 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
5813 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
5814 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
5815 (vect_vfa_segment_size): Fix indentation.
5816 * tree-vectorizer.h (struct _vect_peel_info): New.
5817 (struct _vect_peel_extended_info): New.
5818 (struct _loop_vec_info): Add new field for peeling hash table and a
5819 macro for its access.
5820 (VECT_MAX_COST): Define.
5821 (vect_get_load_cost): Declare.
5822 (vect_get_store_cost, vect_get_known_peeling_cost,
5823 vect_get_single_scalar_iteraion_cost): Likewise.
5824 (vect_supportable_dr_alignment): Add new argument.
5825 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
5826 field.
5827 (destroy_loop_vec_info): Free peeling hash table.
5828 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
5829 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
5830 vect_analyze_slp. Fix indentation.
5831 (vect_get_single_scalar_iteraion_cost): New function.
5832 (vect_get_known_peeling_cost): Likewise.
5833 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
5834 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
5835 statement. Move outside cost calculation inside unknown peeling case.
5836 Call vect_get_known_peeling_cost for known amount of peeling.
5837 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
5838 reference to the print message of forced alignment.
5839 (vect_verify_datarefs_alignment): Update call to
5840 vect_supportable_dr_alignment.
5841 (vect_get_data_access_cost): New function.
5842 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
5843 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
5844 vect_peeling_hash_choose_best_peeling): Likewise.
5845 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
5846 to store all the accesses in the loop and find best possible access to
5847 align using peeling for known alignment case. For unknown alignment
5848 check if stores are preferred or if peeling is worthy.
5849 (vect_find_same_alignment_drs): Analyze pairs of loads too.
5850 (vect_supportable_dr_alignment): Add new argument and check aligned
5851 accesses according to it.
5852 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
5853 (cost_for_stmt): Call vect_get_stmt_cost.
5854 (vect_model_simple_cost): Likewise.
5855 (vect_model_store_cost): Call vect_get_stmt_cost. Call
5856 vect_get_store_cost to calculate the cost of the statement.
5857 (vect_get_store_cost): New function.
5858 (vect_model_load_cost): Call vect_get_stmt_cost. Call
5859 vect_get_load_cost to calculate the cost of the statement.
5860 (vect_get_load_cost): New function.
5861 (vectorizable_store): Update call to vect_supportable_dr_alignment.
5862 (vectorizable_load): Likewise.
5863 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
5864 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
5865 arguments. Handle unaligned store.
5866 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
5867 (rs6000_builtin_support_vector_misalignment): Return true for word and
5868 double word alignments for VSX.
5869 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
5870 vect_supportable_dr_alignment and builtin_vectorization_cost.
5871
5872 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5873
5874 PR target/44597
5875 * config/pa/predicates.md (prefetch_cc_operand): Remove.
5876 (prefetch_nocc_operand): Likewise.
5877 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
5878 (prefetch_20): New insn.
5879 (prefetch_cc): Remove.
5880 (prefetch_nocc): Likewise.
5881
5882 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5883
5884 * expr.c (vector_mode_valid_p): Move to c-common.c.
5885 * expr.h (vector_mode_valid_p): Do not declare here.
5886 * system.h: Poison GCC_EXPR_H in front-ends.
5887 * Makefile.in: Update dependencies.
5888
5889 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5890
5891 PR target/44705
5892 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
5893
5894 2010-07-03 Jan Hubicka <jh@suse.cz>
5895
5896 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
5897 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
5898 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
5899 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
5900 Likewise.
5901
5902 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
5903 Update timevars.V
5904 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
5905 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
5906 TV_IPA_LTO_DECL_OUT): New.
5907 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
5908
5909 2010-07-03 Jan Hubicka <jh@suse.cz>
5910
5911 * ipa-inline.c (update_edge_key): Break out from ...
5912 update_callers_keys): ... here;
5913 (update_callee_keys): Update only the edges from caller to callee.
5914 (update_all_calle_keys): Do what update_calle_keys did.
5915 (decide_inlining_of_small_functions): Avoid recomputing of all
5916 callees when badness increase.
5917
5918 2010-07-03 Jie Zhang <jie@codesourcery.com>
5919
5920 * config/arm/arm.c (arm_attr_length_move_neon): New.
5921 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
5922 * config/arm/neon.md (define_mode_attr V_slen): Remove.
5923 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
5924 to compute length attribute.
5925
5926 2010-07-03 Jie Zhang <jie@codesourcery.com>
5927
5928 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
5929 as predicate for operand 1 and remove its constraint.
5930 * config/arm/predicates.md (vfp_register_operand): New.
5931 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
5932 (*push_fp_multi): Likewise.
5933
5934 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
5935
5936 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
5937
5938 2010-07-03 Jan Hubicka <jh@suse.cz>
5939
5940 * config/i386/i386.c (override_options): Revert accidental commit.
5941
5942 2010-07-02 Le-Chun Wu <lcwu@google.com>
5943
5944 PR c++/44128
5945 * doc/invoke.texi: Update documentation of -Wshadow.
5946
5947 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
5948 Julian Brown <julian@codesourcery.com>
5949 Sandra Loosemore <sandra@codesourcery.com>
5950
5951 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
5952 comparisons. Adjust to take both operands.
5953 (arm_select_cc_mode): Handle DImode comparisons.
5954 (arm_gen_compare_reg): Generate a scratch register for DImode
5955 comparisons which require one. Use xor for Thumb equality checks.
5956 (arm_const_double_by_immediates): New.
5957 (arm_print_operand): Allow 'Q' and 'R' for constants.
5958 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
5959 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
5960 arm_canonicalize_comparison.
5961 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
5962 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
5963 prototype.
5964 (arm_const_double_by_immediates): Declare.
5965 * config/arm/constraints.md (Di): New constraint.
5966 * config/arm/predicates.md (arm_immediate_di_operand)
5967 (arm_di_operand, cmpdi_operand): New.
5968 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
5969 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
5970 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
5971 (cstoredi4): Handle non-Cirrus also.
5972
5973 2010-07-02 Julian Brown <julian@codesourcery.com>
5974 Sandra Loosemore <sandra@codesourcery.com>
5975
5976 PR target/43703
5977 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
5978 (smax<mode>3): Disable for NEON float modes when
5979 flag_unsafe_math_optimizations is false.
5980 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
5981 (*mul<mode>3_neon)
5982 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
5983 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
5984 for NEON float modes when flag_unsafe_math_optimizations is false.
5985 (quad_halves_<code>v4sf): Only enable if
5986 flag_unsafe_math_optimizations is true.
5987 * doc/invoke.texi (ARM Options): Add note about floating point
5988 vectorization requiring -funsafe-math-optimizations.
5989
5990 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
5991 Julian Brown <julian@codesourcery.com>
5992
5993 * config/arm/neon.md (UNSPEC_VABA): Delete.
5994 (UNSPEC_VABAL): Delete.
5995 (UNSPEC_VABS): Delete.
5996 (UNSPEC_VMUL_N): Delete.
5997 (adddi3_neon): New.
5998 (subdi3_neon): New.
5999 (mul<mode>3add<mode>_neon): Make the pattern named.
6000 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
6001 (neon_vadd<mode>): Replace with define_expand, and move the remaining
6002 unspec parts...
6003 (neon_vadd<mode>_unspec): ...to this.
6004 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
6005 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
6006 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
6007 (neon_vaba<mode>): Rewrite in terms of vabd.
6008 (neon_vabal<mode>): Rewrite in terms of vabdl.
6009 (neon_vabs<mode>): Rewrite without unspec.
6010 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
6011 (*arm_subdi3): Likewise.
6012 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
6013 No_op attribute to disable assembly output checks.
6014 * config/arm/arm_neon.h: Regenerated.
6015 * doc/arm-neon-intrinsics.texi: Regenerated.
6016
6017 2010-07-02 Jan Hubicka <jh@suse.cz>
6018
6019 * ipa-split.c (split_function): For aggregate values, set the return
6020 slot optimization bit. When passing DECL_BY_REFERENCE, produce
6021 *<retval> = fncall.part ().
6022 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
6023
6024 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
6025
6026 * config/arm/neon.md (UNSPEC_VAND): Delete.
6027 (UNSPEC_VBIC): Delete.
6028 (UNSPEC_VCLZ): Delete.
6029 (UNSPEC_VCNT): Delete.
6030 (UNSPEC_VEOR): Delete.
6031 (UNSPEC_VORN): Delete.
6032 (UNSPEC_VORR): Delete.
6033 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
6034 core registers too.
6035 (anddi3_neon): Likewise.
6036 (orndi3_neon): Likewise.
6037 (bicdi3_neon): Likewise.
6038 (xordi3_neon): Likewise.
6039 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
6040 rid of unspec and handle unused operand.
6041 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
6042 * config/arm/predicates.md (imm_for_neon_logic_operand):
6043 Require TARGET_NEON.
6044 (imm_for_neon_inv_logic_operand): Likewise.
6045 * config/arm/arm.md (define_split for logical_binary_operator):
6046 Disable for NEON registers.
6047 (anddi3): Add new define_expand, and rename the insn. Disable
6048 this insn for NEON, where anddi3_neon now applies.
6049 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
6050 (iordi3): As for anddi3.
6051 (xordi3): Likewise.
6052 * config/arm/neon.ml (Vand): Split DImode variants and mark them
6053 as No_op to disable testing for exact instruction match.
6054 (Vorr): Likewise.
6055 (Veor): Likewise.
6056 (Vbic): Likewise.
6057 (Vorn): Likewise.
6058 * config/arm/arm_neon.h: Regenerated.
6059 * doc/arm-neon-intrinsics.texi: Regenerated.
6060
6061 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
6062
6063 * expr.h (emit_stack_probe): Declare.
6064 * explow.c (emit_stack_probe): Make global.
6065 (anti_adjust_stack_and_probe): Fix comments.
6066 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
6067 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6068 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6069 * config/sparc/sparc.c: Include except.h.
6070 (sparc_emit_probe_stack_range): New function.
6071 (output_probe_stack_range): Likewise.
6072 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
6073 built-in stack checking is enabled.
6074 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
6075 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
6076 (probe_stack_range): New insn.
6077
6078 2010-07-02 Richard Guenther <rguenther@suse.de>
6079
6080 PR target/43958
6081 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
6082 for argument alignment.
6083
6084 2010-07-02 Jan Hubicka <jh@suse.cz>
6085
6086 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
6087 walk backwards from entry_bb to check only those basic block of header
6088 that might lead to execution of split part.
6089 (consider_split) ... here.
6090 (find_return_bb): Allow assignment in return BB.
6091 (find_retval): New.
6092 (split_function): Fix name of cloned function; take care of updating
6093 return value in return_bb containing move.
6094
6095 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
6096
6097 PR target/44771
6098 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
6099 used variable insn.
6100
6101 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
6102
6103 * implicit-zee.c (combine_reaching_defs): Fix long lines.
6104 (is_set_with_extension_DI): Delete.
6105 (struct zero_extend_info): New structure.
6106 (add_removable_zero_extend): New function.
6107 (find_removable_zero_extends): Use note_stores to find SETs.
6108 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
6109
6110 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
6111
6112 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
6113 is_miss_rate_acceptable. Pull total_positions computation
6114 out of the loops. Early return if miss_positions exceeds
6115 the acceptable threshold.
6116 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
6117 is_miss_rate_acceptable after renaming of compute_miss_rate.
6118
6119 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
6120
6121 PR middle-end/44576
6122 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
6123 of 1000) for miss rate if the address diference is greater than or
6124 equal to the cache line size (the two reference will never hit the
6125 same cache line).
6126
6127 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
6128
6129 PR target/42835
6130 * config/arm/arm-modes.def (CC_NOTB): New mode.
6131 * config/arm/arm.c (get_arm_condition_code): Handle it.
6132 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
6133 * config/arm/arm.md (subsi3_compare0_c): New pattern.
6134 (compare_scc): Now a define_and_split. Add a number of extra
6135 splitters before it.
6136
6137 PR target/42172
6138 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
6139 and ZERO_EXTEND.
6140 (arm_rtx_costs_1): Likewise.
6141 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
6142 * config/arm/arm.md (is_arch6): New attribute.
6143 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
6144 extendqisi2): Tighten the code somewhat, avoiding invalid
6145 RTL to occur in the expander patterns.
6146 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
6147 (thumb1_zero_extendhisi2_v6): Delete.
6148 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
6149 (thumb1_extendhisi2_v6): Delete.
6150 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
6151 (thumb1_extendqisi2_v6): Delete.
6152 (zero_extendhisi2 for register input splitter): New.
6153 (zero_extendqisi2 for register input splitter): New.
6154 (thumb1_extendhisi2 for register input splitter): New.
6155 (extendhisi2 for register input splitter): New.
6156 (extendqisi2 for register input splitter): New.
6157 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
6158 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
6159 and add support for a register alternative requiring a split.
6160 (thumb1_zero_extendqisi2): Likewise.
6161 (arm_zero_extendqisi2): Likewise.
6162 (arm_extendhisi2): Likewise.
6163 (arm_extendqisi2): Likewise.
6164
6165 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
6166
6167 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
6168 instead of an unspec.
6169 (neon_expand_vector_init): Likewise.
6170 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
6171 (UNSPEC_VDUP_LANE): Delete.
6172 (UNSPEC VDUP_N): Delete.
6173 (UNSPEC_VGET_HIGH): Delete.
6174 (UNSPEC_VGET_LANE): Delete.
6175 (UNSPEC_VGET_LOW): Delete.
6176 (UNSPEC_VMVN): Delete.
6177 (UNSPEC_VSET_LANE): Delete.
6178 (V_double_vector_mode): New.
6179 (vec_set<mode>_internal): Make code emitted match that for the
6180 corresponding intrinsics.
6181 (vec_setv2di_internal): Likewise.
6182 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
6183 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
6184 (neon_vset_lane<mode>): Combine double and quad patterns and
6185 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
6186 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
6187 (neon_vdup_n<mode>): Rewrite RTL without unspec.
6188 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
6189 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
6190 with neon_vdup_lanev2di, adjusting the pattern from the latter
6191 to be predicable for consistency.
6192 (neon_vdup_lane<mode>_internal): New.
6193 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
6194 to avoid using an unspec.
6195 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
6196 (neon_vdup_lanev2di): Turn into a define_expand.
6197 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
6198 (neon_vget_high<mode>): Replace with....
6199 (neon_vget_highv16qi): New pattern using canonical RTL.
6200 (neon_vget_highv8hi): Likewise.
6201 (neon_vget_highv4si): Likewise.
6202 (neon_vget_highv4sf): Likewise.
6203 (neon_vget_highv2di): Likewise.
6204 (neon_vget_low<mode>): Replace with....
6205 (neon_vget_lowv16qi): New pattern using canonical RTL.
6206 (neon_vget_lowv8hi): Likewise.
6207 (neon_vget_lowv4si): Likewise.
6208 (neon_vget_lowv4sf): Likewise.
6209 (neon_vget_lowv2di): Likewise.
6210
6211 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
6212 test for this emitting vmov.
6213 (Vset_lane): Likewise.
6214 (Vdup_n): Likewise.
6215 (Vmov_n): Likewise.
6216
6217 * doc/arm-neon-intrinsics.texi: Regenerated.
6218
6219 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
6220
6221 * config/arm/neon.md (vec_extractv2di): Correct error in register
6222 numbering to reconcile with neon_vget_lanev2di.
6223
6224 2010-07-02 Richard Guenther <rguenther@suse.de>
6225
6226 * tree-ssa-structalias.c (pt_solution_set_var): New function.
6227 * tree-ssa-alias.h (pt_solution_set_var): Declare.
6228 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
6229 points-to information.
6230
6231 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
6232
6233 * config/s390/s390.c (override_options): Adopt prefetching
6234 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
6235
6236 2010-07-02 Jan Hubicka <jh@suse.cz>
6237
6238 * df-problems.c (df_kill_notes): Do not collect dead notes.
6239 (df_set_note): Just call add_reg_note.
6240 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
6241 df_create_unused_note): Do not deal with lists of old notes.
6242 (df_note_bb_compute): Likewise.
6243
6244 2010-07-02 Richard Guenther <rguenther@suse.de>
6245
6246 * tree-ssa-structalias.c (find_func_aliases): Handle
6247 pointer alignment via BIT_AND_EXPR.
6248 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
6249
6250 2010-07-02 Richard Guenther <rguenther@suse.de>
6251
6252 * tree-data-ref.c (initialize_data_dependence_relation): Handle
6253 mismatching number of dimensions properly.
6254
6255 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6256
6257 PR target/44707
6258 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
6259 (lo_sum (high ...) ...) patterns generated by earlier passes.
6260
6261 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6262
6263 * doc/install.texi (Prerequisites): Document Perl requirement on
6264 Solaris 2.
6265 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
6266
6267 2010-07-02 Richard Guenther <rguenther@suse.de>
6268
6269 PR middle-end/44777
6270 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
6271
6272 2010-07-02 Jan Hubicka <jh@suse.cz>
6273
6274 PR middle-end/44706
6275 * predict.c (predict_paths_for_bb): Handle case when control dependence
6276 BB has only abnormal edges.
6277
6278 2010-07-02 Richard Guenther <rguenther@suse.de>
6279
6280 PR tree-optimization/44748
6281 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
6282 the embedded conversion in MEM_REFs.
6283
6284 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
6285
6286 * reload.c: Include toplev.h.
6287 * recog.c: Likewise.
6288 * Makefile.in: Adjust dependencies.
6289
6290 2010-07-01 Jakub Jelinek <jakub@redhat.com>
6291
6292 PR debug/44694
6293 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
6294 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
6295
6296 2010-07-01 Richard Guenther <rguenther@suse.de>
6297
6298 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
6299 types for offsets.
6300
6301 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
6302
6303 PR target/44732
6304 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
6305 Fix argument types.
6306
6307 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
6308
6309 PR target/44727
6310 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
6311 Make sure operand 0 dies.
6312
6313 2010-07-01 Richard Guenther <rguenther@suse.de>
6314
6315 PR middle-end/42834
6316 PR middle-end/44468
6317 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
6318 * doc/generic.texi (References to storage): Document MEM_REF.
6319 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
6320 (print_call_name): Likewise.
6321 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
6322 (build_simple_mem_ref_loc): New function.
6323 (mem_ref_offset): Likewise.
6324 * tree.h (build_simple_mem_ref_loc): Declare.
6325 (build_simple_mem_ref): Define.
6326 (mem_ref_offset): Declare.
6327 * fold-const.c: Include tree-flow.h.
6328 (operand_equal_p): Handle MEM_REF.
6329 (build_fold_addr_expr_with_type_loc): Likewise.
6330 (fold_comparison): Likewise.
6331 (fold_unary_loc): Fold
6332 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
6333 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
6334 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
6335 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
6336 (ptr_deref_may_alias_ref_p_1): Likewise.
6337 (ao_ref_base_alias_set): Properly differentiate base object for
6338 offset and TBAA.
6339 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
6340 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
6341 (indirect_refs_may_alias_p): Likewise.
6342 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
6343 chasing code.
6344 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
6345 (call_may_clobber_ref_p_1): Likewise.
6346 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
6347 * expr.c (expand_assignment): Handle MEM_REF.
6348 (store_expr): Handle MEM_REFs from STRING_CSTs.
6349 (store_field): If expanding a MEM_REF of a non-addressable
6350 decl use bitfield operations.
6351 (get_inner_reference): Handle MEM_REF.
6352 (expand_expr_addr_expr_1): Likewise.
6353 (expand_expr_real_1): Likewise.
6354 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
6355 * alias.c (ao_ref_from_mem): Handle MEM_REF.
6356 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
6357 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
6358 (dr_analyze_indices): Likewise.
6359 (dr_analyze_alias): Likewise.
6360 (object_address_invariant_in_loop_p): Likewise.
6361 * gimplify.c (mark_addressable): Handle MEM_REF.
6362 (gimplify_cond_expr): Build MEM_REFs.
6363 (gimplify_modify_expr_to_memcpy): Likewise.
6364 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
6365 (gimple_fold_indirect_ref): Adjust.
6366 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
6367 * tree.def (MEM_REF): New tree code.
6368 * tree-dfa.c: Include toplev.h.
6369 (get_ref_base_and_extent): Handle MEM_REF.
6370 (get_addr_base_and_unit_offset): New function.
6371 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
6372 * gimple-fold.c (may_propagate_address_into_dereference): Handle
6373 MEM_REF.
6374 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
6375 accesses if the array has just one dimension. Remove always true
6376 parameter. Do not require type compatibility here.
6377 (maybe_fold_offset_to_component_ref): Remove.
6378 (maybe_fold_stmt_indirect): Remove.
6379 (maybe_fold_reference): Remove INDIRECT_REF handling.
6380 Fold back to non-MEM_REF.
6381 (maybe_fold_offset_to_address): Simplify. Deal with type
6382 mismatches here.
6383 (maybe_fold_reference): Likewise.
6384 (maybe_fold_stmt_addition): Likewise. Also handle
6385 &ARRAY + I in addition to &ARRAY[0] + I.
6386 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
6387 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
6388 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
6389 * tree-ssa.c (useless_type_conversion_p): Make most pointer
6390 conversions useless.
6391 (warn_uninitialized_var): Handle MEM_REF.
6392 (maybe_rewrite_mem_ref_base): New function.
6393 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
6394 to SSA form.
6395 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
6396 INDIRECT_REF handling.
6397 (copy_tree_body_r): Handle MEM_REF.
6398 * gimple.c (is_gimple_addressable): Adjust.
6399 (is_gimple_address): Likewise.
6400 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
6401 invariant base are invariant.
6402 (is_gimple_min_lval): Adjust.
6403 (is_gimple_mem_ref_addr): New function.
6404 (get_base_address): Handle MEM_REF.
6405 (count_ptr_derefs): Likewise.
6406 (get_base_loadstore): Likewise.
6407 * gimple.h (is_gimple_mem_ref_addr): Declare.
6408 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
6409 * tree-cfg.c (verify_address): New function, split out from ...
6410 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
6411 the address operand of MEM_REFs. Verify MEM_REFs. Reject
6412 INDIRECT_REFs.
6413 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
6414 INDIRECT_REF. Allow conversions.
6415 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
6416 a register does not change its size.
6417 (verify_types_in_gimple_reference): Verify MEM_REF.
6418 (verify_gimple_assign_single): Disallow INDIRECT_REF.
6419 Handle MEM_REF.
6420 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
6421 New.
6422 (mark_address_taken): Handle MEM_REF.
6423 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
6424 (get_asm_expr_operands): Pass opf_not_non_addressable.
6425 (get_expr_operands): Handle opf_[not_]non_addressable.
6426 Handle MEM_REF. Remove INDIRECT_REF handling.
6427 * tree-vrp.c (check_array_ref): Handle MEM_REF.
6428 (search_for_addr_array): Likewise.
6429 (check_array_bounds): Likewise.
6430 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
6431 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
6432 (ref_always_accessed_p): Likewise.
6433 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
6434 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
6435 Handle MEM_REF.
6436 * cgraphbuild.c (mark_load): Properly check for NULL result
6437 from get_base_address.
6438 (mark_store): Likewise.
6439 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
6440 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
6441 handling for MEM_REF.
6442 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
6443 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
6444 * builtins.c (stabilize_va_list_loc): Use the function ABI
6445 valist type if we couldn't canonicalize the argument type.
6446 Always dereference with the canonical va-list type.
6447 (maybe_emit_free_warning): Handle MEM_REF.
6448 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
6449 memmove to memcpy.
6450 * builtins.c (fold_builtin_memory_op): Use ref-all types
6451 for all memcpy foldings.
6452 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
6453 (build_outer_var_ref): Likewise.
6454 (scan_omp_1_op): Likewise.
6455 (lower_rec_input_clauses): Likewise.
6456 (lower_lastprivate_clauses): Likewise.
6457 (lower_reduction_clauses): Likewise.
6458 (lower_copyprivate_clauses): Likewise.
6459 (expand_omp_atomic_pipeline): Likewise.
6460 (expand_omp_atomic_mutex): Likewise.
6461 (create_task_copyfn): Likewise.
6462 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
6463 Remove old union trick. Initialize constant offsets.
6464 (ao_ref_init_from_vn_reference): Likewise. Do not handle
6465 INDIRECT_REF. Init base_alias_set properly.
6466 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
6467 (vn_reference_fold_indirect): Adjust for MEM_REFs.
6468 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
6469 for ARRAY_REFs.
6470 (may_insert): Remove.
6471 (visit_reference_op_load): Do not test may_insert.
6472 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
6473 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
6474 a field to store the constant offset this op applies.
6475 (run_scc_vn): Adjust prototype.
6476 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
6477 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
6478 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
6479 bother about volatile qualifiers on pointers.
6480 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
6481 * tree-ssa-loop-ivopts.c
6482 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
6483 (strip_offset_1): Likewise.
6484 (find_interesting_uses_address): Replace INDIRECT_REF handling with
6485 MEM_REF handling.
6486 (get_computation_cost_at): Likewise.
6487 * ipa-pure-const.c (check_op): Handle MEM_REF.
6488 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
6489 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
6490 and constants.
6491 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
6492 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
6493 (eliminate_local_variables_1): Likewise.
6494 (create_call_for_reduction_1): Likewise.
6495 (create_loads_for_reductions): Likewise.
6496 (create_loads_and_stores_for_name): Likewise.
6497 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
6498 (ssa_accessed_in_tree): Handle MEM_REF.
6499 (ssa_accessed_in_assign_rhs): Likewise.
6500 (update_type_size): Likewise.
6501 (analyze_accesses_for_call_stmt): Likewise.
6502 (analyze_accesses_for_assign_stmt): Likewise.
6503 (transform_access_sites): Likewise.
6504 (transform_allocation_sites): Likewise.
6505 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
6506 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
6507 not handle INDIRECT_REF.
6508 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
6509 (cond_store_replacement): Likewise.
6510 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
6511 MEM_REF, no not handle INDIRECT_REFs.
6512 (insert_into_preds_of_block): Properly initialize avail.
6513 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
6514 for ARRAY_REFs. Properly handle reference lookups that
6515 require a bit re-interpretation.
6516 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
6517 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
6518 (build_ref_for_offset_1): Remove.
6519 (build_ref_for_offset): Build MEM_REFs.
6520 (gate_intra_sra): Disable for now.
6521 (sra_ipa_modify_expr): Handle MEM_REF.
6522 (ipa_early_sra_gate): Disable for now.
6523 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
6524 MEM_REF handling.
6525 (disqualify_base_of_expr): Likewise.
6526 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
6527 MEM_REF handling.
6528 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
6529 Use mem_ref_offset. Remove bogus folding.
6530 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
6531 (make_fancy_name_1): Add support for MEM_REF.
6532 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
6533 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
6534 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
6535 (compute_complex_ancestor_jump_func): Likewise.
6536 (ipa_analyze_virtual_call_uses): Likewise.
6537 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
6538 INDIRECT_REF folding with more generalized MEM_REF folding.
6539 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
6540 (forward_propagate_addr_into_variable_array_index): Also handle
6541 &ARRAY + I in addition to &ARRAY[0] + I.
6542 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
6543 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
6544 creates assignments with overlap.
6545 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
6546 (get_frame_field): Likewise.
6547 (get_nonlocal_debug_decl): Likewise.
6548 (convert_nonlocal_reference_op): Likewise.
6549 (struct nesting_info): Add mem_refs pointer-set.
6550 (create_nesting_tree): Allocate it.
6551 (convert_local_reference_op): Insert to be folded mem-refs.
6552 (fold_mem_refs): New function.
6553 (finalize_nesting_tree_1): Perform defered folding of mem-refs
6554 (free_nesting_tree): Free the pointer-set.
6555 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
6556 (vectorizable_load): Likewise.
6557 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
6558 (propagate_with_phi): Likewise.
6559 * tree-object-size.c (addr_object_size): Handle MEM_REFs
6560 instead of INDIRECT_REFs.
6561 (compute_object_offset): Handle MEM_REF.
6562 (plus_stmt_object_size): Handle MEM_REF.
6563 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
6564 for &MEM_REF.
6565 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
6566 (symbol_marked_for_renaming): Likewise.
6567 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
6568 (fold-const.o): Add $(TREE_FLOW_H).
6569 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
6570 (find_func_clobbers): Likewise.
6571 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
6572 (decompose_access): Likewise.
6573 (replace_field_acc): Likewise.
6574 (replace_field_access_stmt): Likewise.
6575 (insert_new_var_in_stmt): Likewise.
6576 (get_stmt_accesses): Likewise.
6577 (reorg_structs_drive): Disable.
6578 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
6579 (ix86_canonical_va_list_type): Likewise.
6580
6581 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
6582
6583 PR other/44566
6584 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
6585 * target.def (struct gcc_target): Replace enum reg_class with
6586 reg_class_t in hook argument / return types.
6587 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
6588 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
6589 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
6590 * targhooks.h (default_branch_target_register_class): Likewise.
6591 (default_ira_cover_classes, default_secondary_reload): Likewise.
6592 (default_memory_move_cost, default_register_move_cost): Likewise.
6593 * targhooks.c (default_branch_target_register_class): Likewise.
6594 (default_ira_cover_classes, default_secondary_reload): Likewise.
6595 (default_memory_move_cost, default_register_move_cost): Likewise.
6596 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
6597 * bt-load.c (branch_target_load_optimize): Likewise.
6598 * ira.c (setup_cover_and_important_classes): Likewise.
6599 * ira-costs.c (copy_cost): Likewise.
6600 * reload1.c (emit_input_reload_insns): Likewise.
6601 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
6602 * config/frv/frv.c (frv_secondary_reload): Likewise.
6603 * config/s390/s390.c (s390_secondary_reload): Likewise.
6604 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
6605 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
6606 (ix86_register_move_cost): Likewise.
6607 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
6608 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
6609 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
6610 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
6611 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
6612 (rs6000_ira_cover_classes): Likewise.
6613 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
6614 * config/picochip/picochip-protos.h (picochip_secondary_reload):
6615 Likewise.
6616 * config/pa/pa.c (pa_secondary_reload): Likewise.
6617 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
6618 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
6619 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
6620 * doc/tm.texi: Regenerate.
6621
6622 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
6623
6624 PR bootstrrap/44726
6625 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
6626 use.
6627 (build_alias_set_optimal_p): Likewise.
6628 (build_base_obj_set_for_drs): Likewise.
6629
6630 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
6631
6632 * target.def: Remove comment about licensing problems of function
6633 declarations.
6634
6635 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
6636 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
6637 * doc/tm.texi: Regenerate.
6638
6639 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
6640 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
6641
6642 * target.def (enum_va_list_p): Use DEFHOOK.
6643 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
6644 Rename ptype to ptree.
6645 * doc/tm.texi: Regenerate.
6646
6647 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
6648 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
6649 * doc/tm.texi: Regenerate.
6650
6651 * target.def (memory_move_cost): Use DEFHOOK.
6652 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
6653 Rename regclass AKA class to rclass.
6654 * doc/tm.texi: Regenerate.
6655
6656 * target.def (pragma_parse): Use DEFHOOK.
6657 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
6658 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
6659 * doc/tm.texi: Regenerate.
6660
6661 * target.def (pass_by_reference): Use DEFHOOK.
6662 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
6663 * doc/tm.texi: Regenerate.
6664
6665 * target.def (resolve_overloaded_builtin): Rename params to arglist.
6666 Use DEFHOOK.
6667 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
6668 * doc/tm.texi: Regenerate.
6669
6670 * target.def (return_pops_args): Use DEFHOOK.
6671 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
6672 Rename stack-size to size.
6673 * doc/tm.texi: Regenerate.
6674
6675 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
6676 last-sched_cycle to last_clock, cur_cycle to clock.
6677 * doc/tm.texi.in: Use @hook.
6678 * doc/tm.texi: Regenerate.
6679
6680 * target.def (print_operand, print_operand_address): Update comment.
6681 (print_operand_punct_valid_p): Likewise.
6682
6683 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6684
6685 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
6686 to rtl.h.
6687 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
6688 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
6689 * rtl-error.h: New.
6690 * regrename.c: Do not include toplev.h. Include rtl-error.h.
6691 * rtl-error.c: Likewise.
6692 * reload.c: Likewise.
6693 * recog.c: Likewise.
6694 * sel-sched.c: Likewise.
6695 * function.c: Likewise.
6696 * reg-stack.c: Likewise.
6697 * cfgrtl.c: Likewise.
6698 * reload1.c: Likewise.
6699 * final.c: Include rtl-error.
6700 * Makefile.in: Adjust dependencies.
6701
6702 2010-06-30 Jan Hubicka <jh@suse.cz>
6703
6704 PR middle-end/PR44706
6705 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
6706 to return the value.
6707
6708 2010-06-30 Michael Matz <matz@suse.de>
6709
6710 PR bootstrap/44699
6711 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
6712 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
6713 a gimple reg, attach the original VDEF to the last store in the
6714 sequence.
6715
6716 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
6717
6718 PR other/44034
6719 * config/darwin.c (darwin_override_options): Use renamed
6720 targetm.asm_out.emit_unwind_label.
6721
6722 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
6723
6724 PR tree-optimization/39799
6725 * tree-inline.c (remap_ssa_name): Initialize variable only if
6726 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
6727
6728 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
6729
6730 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
6731
6732 2010-06-30 Richard Guenther <rguenther@suse.de>
6733
6734 PR target/44722
6735 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
6736 against oscillation with reverse peephole2.
6737
6738 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
6739
6740 PR target/44721
6741 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
6742 Fix last commit.
6743
6744 2010-06-30 Nick Clifton <nickc@redhat.com>
6745
6746 * config/rx/rx-modes.def: New file.
6747 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
6748 (CC_REGNUM): Define.
6749 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
6750 register.
6751 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
6752 (SELECT_CC_MODE): Define.
6753 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
6754 (reg:CC CC_REG) instead of (cc0).
6755 (attr "cc"): Delete.
6756 (cbranchsi4): Do not split compare and branch here. Instead move
6757 it to...
6758 (cbranchsi4_<code>): ... here. New patterns.
6759 (cmpsi): Call rx-compare_redundant to find out if it is necessary
6760 to emit the compare instruction.
6761 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
6762 cc_status flags.
6763 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
6764 FIRST_PSEUDO_REGNUM.
6765 (rx_expand_prologue, rx_expand_epilogue): Likewise.
6766 (rx_notice_update_cc): Delete.
6767 (rx_cc_modes_compatible): New function.
6768 (flags_needed_for_conditional): New function.
6769 (flags_from_mode): New function.
6770 (rx_compare_redundant): New function - scans backwards through
6771 insn list to find out if condition flags are already set correctly.
6772 (TARGET_CC_MODES_COMPATIBLE): Define.
6773 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
6774
6775 * config/rx/rx.h (BRANCH_COST): Define.
6776 (REGISTER_MOVE_COST): Define.
6777 * config/rx/predicates (rx_source_operand): Allow all constant types.
6778 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
6779 (tstsi4): New pattern.
6780 * config/rx/rx.c (rx_memory_move_cost): Define.
6781 (TARGET_MEMORY_MOVE_COST): Define.
6782
6783 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6784
6785 * tree.h (block_may_fallthru): Declare here.
6786 * tree-flow.h (block_may_fallthru): Do not declare here.
6787 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
6788 bitmap.h
6789 * Makefile.in (c-typeck.o): Update dependencies.
6790
6791 2010-06-30 Jakub Jelinek <jakub@redhat.com>
6792
6793 PR debug/44694
6794 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
6795 * cselib.c (cfa_base_preserved_regno): New static variable.
6796 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
6797 of REGNO (cfa_base_preserved_val->locs->loc).
6798 (cselib_preserve_cfa_base_value): Add regno argument, set
6799 cfa_base_preserved_regno to it.
6800 (cselib_invalidate_regno): Allow removal of registers other than
6801 cfa_base_preserved_regno from cfa_base_preserved_val.
6802 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
6803 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
6804 of MEM addresses, if not on LHS.
6805 (reverse_op): Don't add reverse ops for cfa_base_rtx.
6806 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
6807
6808 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
6809
6810 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
6811 static variables.
6812 (peep2_buf_position): New static function.
6813 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
6814 peephole2_optimize): Use it.
6815 (peep2_attempt, peep2_update_life): New static functions, broken out
6816 of peephole2_optimize.
6817 (peep2_fill_buffer): New static function.
6818 (peephole2_optimize): Change the main loop to try to fill the buffer
6819 with the maximum number of insns before matching them against
6820 peepholes. Use a forward scan. Remove special case for targets with
6821 conditional execution.
6822 * genrecog.c (change_state): Delete dead code.
6823 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
6824 Rewrite so as not to expect the second insn to have had a peephole
6825 applied yet.
6826
6827 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
6828
6829 * genhooks.c (emit_findices): Cast field precision to int.
6830 (emit_documentation): Likewise.
6831
6832 2010-06-29 Jakub Jelinek <jakub@redhat.com>
6833
6834 PR tree-optimization/43801
6835 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
6836 if old_decl was DECL_ONE_ONLY.
6837
6838 PR debug/44668
6839 * dwarf2out.c (add_accessibility_attribute): New function.
6840 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
6841 instead of adding DW_AT_accessibility manually.
6842 (gen_enumeration_type_die, gen_struct_or_union_type_die,
6843 gen_typedef_die): Use it.
6844
6845 2010-06-29 Douglas B Rupp <rupp@gnat.com>
6846
6847 * vmsdbgout.c (full_name): Just output the file name if not native.
6848
6849 2010-06-29 Douglas B Rupp <rupp@gnat.com>
6850
6851 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
6852 (funcnam_table): New static table.
6853 (funcnum_table): New static table.
6854 (write_rtnbeg): Write value saved in funcnum_table.
6855 (write_rtnend): Write value saved in funcnum_table.
6856 (vmsdbgout_begin_function): Save current function info in
6857 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
6858 (vmsdbgout_finish): Iterate over funcnum_table.
6859
6860 2010-06-29 Douglas B Rupp <rupp@gnat.com>
6861
6862 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
6863 (vmsdbgout_type_decl): Declare
6864 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
6865 (FUNC_EPILOGUE_LABEL): New macro
6866 (vmsdbgout_begin_epilogue): New function.
6867 (vmsdbgout_type_decl): New function.
6868
6869 2010-06-29 Douglas B Rupp <rupp@gnat.com>
6870
6871 * vmsdbg.h: Update copyright.
6872
6873 2010-06-29 Douglas B Rupp <rupp@gnat.com>
6874
6875 * vmsdbg.h (DST_K_TBG): New DST constant.
6876 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
6877 (write_modbeg): Cast module_language to avoid warning.
6878 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
6879
6880 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6881
6882 PR other/44034
6883 * target.def, doc/tm.texi.in, genhooks.c: New files.
6884 * target.h: Instead of defining individual hook members,
6885 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
6886 include target.def.
6887 * target-def.h: Instead of defining individual hook initializers,
6888 include target-hooks-def.h.
6889 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
6890 targetm.live_on_entry -> targetm.extra_live_on_entry
6891 targetm.sched.md_finish ->targetm.sched.finish
6892 targetm.sched.md_init -> targetm.sched.init
6893 targetm.sched.md_init_global -> targetm.sched.init_global
6894 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
6895 targetm.asm_out.except_table_label ->
6896 targetm.asm_out.emit_except_table_label
6897 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
6898 targetm.target_help -> targetm.help
6899 targetm.vectorize.builtin_support_vector_misalignment ->
6900 targetm.vectorize.support_vector_misalignment
6901 targetm.file_start_app_off -> targetm.asm_file_start_app_off
6902 targetm.file_start_file_directive ->
6903 targetm.asm_file_start_file_directive
6904 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
6905 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
6906 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
6907 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
6908 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
6909 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
6910 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
6911 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
6912 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
6913 * Makefile.in (TARGET_H): Depend on target.def.
6914 (TARGET_DEF_H): Depend on target-hooks-def.h.
6915 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
6916 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
6917 * doc/tm.texi: Regenerate.
6918
6919 * Makefile.in (s-tm-texi): Remove stray tab / rule.
6920
6921 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
6922 (targetm.sched.init): Likewise.
6923
6924 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
6925
6926 PR bootstrap/44713
6927 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
6928 (function_arg_advance_32): Const-ify TYPE parameter.
6929 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
6930 (ix86_function_arg_advance): Change type of NAMED to bool.
6931 (function_arg_32): Const-ify CUM and TYPE parameters.
6932 (function_arg_64): Likewise. Change type of NAMED to bool.
6933 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
6934 to bool.
6935 (ix86_function_arg): Change type of NAMED to bool.
6936 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
6937 last argument as a bool.
6938
6939 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6940
6941 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
6942 (OVERRIDE_OPTIONS): Add note of obsolescence.
6943 Replace references with references to TARGET_OPTION_OVERRIDE.
6944 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
6945 the macro).
6946 * targhooks.c (default_target_option_override): New function.
6947 * targhooks.h (default_target_option_override): Declare.
6948 * target.h (struct gcc_target): Add override member to
6949 target_option member.
6950 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
6951 targetm.target_option.override call.
6952 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
6953 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
6954
6955 2010-06-29 Jan Hubicka <jh@suse.cz>
6956
6957 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
6958
6959 2010-06-29 Jan Hubicka <jh@suse.cz>
6960
6961 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
6962 unreachable.
6963 (rebuild_frequencies): New function.
6964 * predict.h (rebuild_frequencies): Declare.
6965 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
6966 entry block and edge reaching new_entry.
6967 (tree_function_versioning): When doing partial cloning, rebuild
6968 frequencies when done.
6969 * passes.c (execute_function_todo): Use rebild_frequencies.
6970
6971 2010-06-29 Richard Guenther <rguenther@suse.de>
6972
6973 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
6974 * tree-flow.h (enum noalias_state): Remove.
6975 (struct var_ann_d): Remove noalias_state member.
6976
6977 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
6978
6979 PR target/43902
6980 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
6981 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
6982 (maddhidi4): Likewise.
6983
6984 Revert parts of the change for PR25130.
6985 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
6986 MEM_ALIAS_SET.
6987
6988 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
6989
6990 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
6991 targetm.calls.function_incoming_arg, and
6992 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
6993 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
6994 * target.h (struct gcc_target): Add function_arg_advance,
6995 function_arg, and function_incoming_arg fields.
6996 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
6997 (TARGET_FUNCTION_INCOMING_ARG): Define.
6998 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
6999 and TARGET_FUNCTION_INCOMING_ARG.
7000 * targhooks.h (default_function_arg_advance): Declare.
7001 (default_function_arg, default_function_incoming_arg): Declare.
7002 * targhooks.c (default_function_arg_advance): New function.
7003 (default_function_arg, default_function_incoming_arg): New function.
7004 * config/i386/i386.c (function_arg_advance): Rename to...
7005 (ix86_function_arg_advance): ...this. Make static.
7006 (function_arg): Rename to...
7007 (ix86_function_arg): ...this. Make static.
7008 (TARGET_FUNCTION_ARG_ADVANCE): Define.
7009 (TARGET_FUNCTION_ARG): Define.
7010 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
7011 (FUNCTION_ARG): Delete.
7012 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
7013 (function_arg): Delete prototype.
7014
7015 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
7016
7017 * reginfo.c (init_reg_sets_1): Adjust comments.
7018 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
7019 * calls.c (prepare_call_address): Likewise.
7020 (emit_call_1): Use targetm.calls.return_pops_args.
7021 (expand_call): Likewise.
7022 * function.c (assign_parms): Likewise.
7023 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
7024 * target.h (struct gcc_target) [struct calls]: Add
7025 return_pops_args field.
7026 * targhooks.h (default_return_pops_args): Declare.
7027 * targhooks.c (default_return_pops_args): Define.
7028 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
7029 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
7030 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
7031 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
7032 documentation.
7033 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
7034 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
7035 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
7036 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
7037 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
7038 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
7039 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
7040 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
7041 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
7042 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
7043 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
7044 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
7045 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
7046 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
7047 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
7048 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
7049 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
7050 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
7051 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
7052 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
7053 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
7054 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
7055 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
7056 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
7057 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
7058 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
7059 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
7060 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
7061 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
7062 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
7063 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
7064 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
7065 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
7066 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
7067 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
7068 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
7069 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
7070 * config/i386/i386.c (ix86_return_pops_args): Make static.
7071 Constify arguments.
7072 (TARGET_RETURN_POPS_ARGS): Define.
7073 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
7074 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
7075 (TARGET_RETURN_POPS_ARGS): Define.
7076 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
7077 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
7078 (TARGET_RETURN_POPS_ARGS): Define.
7079
7080 2010-06-29 Richard Guenther <rguenther@suse.de>
7081
7082 PR middle-end/44667
7083 * tree-inline.c (initialize_inlined_parameters): Make sure
7084 to remap the inlined parameter variable substitutions types.
7085
7086 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
7087
7088 PR rtl-optimization/44659
7089 * combine.c (make_compound_operation) <SUBREG>: Do not return the
7090 result of force_to_mode if it partially re-expanded the compound.
7091
7092 2010-06-28 Jan Hubicka <jh@suse.cz>
7093
7094 PR middle-end/44671
7095 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
7096 RESULT_DECL.
7097
7098 2010-06-28 Anatoly Sokolov <aesok@post.ru>
7099
7100 * double-int.h (force_fit_type_double): Remove declaration.
7101 * double-int.c (force_fit_type_double): Move to tree.c.
7102 * tree.h (force_fit_type_double): Declare.
7103 * tree.h (force_fit_type_double): Moved from double-int.c. Use
7104 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
7105 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
7106 * convert.c (convert_to_pointer): Adjust call to
7107 force_fit_type_double.
7108 * tree-vrp.c (extract_range_from_assert,
7109 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
7110 * fold-const.c: Update comment.
7111 (int_const_binop, fold_convert_const_int_from_int,
7112 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
7113 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
7114 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
7115 round_up_loc): Adjust call to force_fit_type_double.
7116
7117 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
7118
7119 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
7120
7121 2010-06-28 Martin Jambor <mjambor@suse.cz>
7122
7123 * tree-sra.c (convert_callers): New parameter, change fndecls of
7124 recursive calls.
7125 (modify_function): Pass the old decl to convert_callers.
7126
7127 2010-06-28 Martin Jambor <mjambor@suse.cz>
7128
7129 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
7130 ipa_check_create_node_params and ipa_initialize_node_params with
7131 checking asserts they are not necessary.
7132
7133 2010-06-28 Jan Hubicka <jh@suse.cz>
7134
7135 PR tree-optimization/44687
7136 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
7137
7138 2010-06-28 Martin Jambor <mjambor@suse.cz>
7139
7140 PR c++/44535
7141 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
7142 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
7143 instead of BINFO_BASE_BINFO.
7144
7145 2010-06-28 Michael Matz <matz@suse.de>
7146
7147 PR middle-end/44592
7148 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
7149 proper VDEF chain for intermediate stores in the sequence.
7150
7151 2010-06-28 Jan Hubicka <jh@suse.cz>
7152
7153 PR tree-optimization/44357
7154 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
7155 uninlinable functions.
7156
7157 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
7158
7159 * config.gcc (powerpc*-*-*): Handle titan.
7160 * config/rs6000/rs6000.c (titan_cost): New costs.
7161 (rs6000_override_options): Add "titan" to processor_target_table.
7162 Add Titan to branch alignment logic.
7163 Correctly set rs6000_cost for titan.
7164 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
7165 * config/rs6000/titan.md: New file.
7166 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
7167
7168 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
7169
7170 * tree-browser.c (TB_history_stack): Convert to a VEC.
7171 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
7172 (TB_history_prev): Likewise.
7173
7174 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
7175
7176 * vec.h (vec_heap_free): Add parentheses around free.
7177
7178 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
7179
7180 * system.h: Poison GCC_EXCEPT_H for front-end files.
7181
7182 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
7183 langhook.
7184 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
7185 Define to NULL by default.
7186 * except.h: Define GCC_EXCEPT_H.
7187 (doing_eh): Remove prototype.
7188 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
7189 (lang_protect_cleanup_actions): Remove.
7190 * except.c (lang_protect_cleanup_actions): Remove.
7191 (doing_eh): Remove.
7192 (gen_eh_region): Don't check doing_eh here.
7193 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
7194 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
7195 instead of lang_protect_cleanup_actions.
7196 * omp-low.c (maybe_catch_exception): Likewise.
7197 * Makefile.in: Update dependencies.
7198
7199 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
7200
7201 * cgraph.h (struct varpool_node): new used_from_object_file flag.
7202 (struct cgraph_local_info): new used_from_object_file flag.
7203 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
7204 (cgraph_clone_node): initialize used_from_object_file.
7205 (cgraph_create_virtual_clone): initialize used_from_object_file.
7206 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
7207 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
7208 when compiling with -fwhole-program.
7209 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
7210 internal resolver.
7211 * ipa.c (function_and_variable_visibility): Set externally_visible
7212 flag of varpool_node if used_from_object_file flag is set.
7213 (cgraph_externally_visible_p): check used_from_object_file flag.
7214 * doc/invoke.texi (-fwhole-program option): Change description of
7215 externally_visible attribute accordingly.
7216 * doc/extend.texi (externally_visible): Ditto.
7217
7218 2010-06-27 Jan Hubicka <jh@suse.cz>
7219
7220 * params.def (max-inline-insns-auto): Default to 40.
7221 * doc/invoke.texi (max-inline-insns-auto): Document the change.
7222
7223 2010-06-27 Jan Hubicka <jh@suse.cz>
7224
7225 PR middle-end/44671
7226 PR middle-end/44686
7227 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
7228 signature change.
7229 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
7230 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
7231
7232 2010-06-27 Anatoly Sokolov <aesok@post.ru>
7233
7234 * target.h (struct gcc_target): Add register_move_cost field.
7235 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
7236 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
7237 * targhooks.c (default_register_move_cost): New function.
7238 * targhooks.h (default_register_move_cost): Declare function.
7239 * defaults.h (REGISTER_MOVE_COST): Delete.
7240 * ira-int.h (ira_register_move_cost): Update comment.
7241 * ira.c (ira_register_move_cost): Update comment.
7242 * reload.h (register_move_cost): Declare.
7243 * reginfo.c (register_move_cost): New function.
7244 (move_cost): Update comment.
7245 (init_move_cost, memory_move_secondary_cost): Replace
7246 REGISTER_MOVE_COST with register_move_cost.
7247 * postreload.c (reload_cse_simplify_set): (Ditto.).
7248 * reload.c (find_valid_class, find_reloads): (Ditto.).
7249 * reload1.c (choose_reload_regs): (Ditto.).
7250 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
7251 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
7252 * doc/md.texi (can_create_pseudo_p): Update documentation.
7253
7254 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
7255 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
7256 * config/i386/i386.h (ix86_memory_move_cost): Make static.
7257 (TARGET_MEMORY_MOVE_COST): Define.
7258
7259 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
7260 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
7261 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
7262 (TARGET_MEMORY_MOVE_COST): Define.
7263
7264 2010-06-27 Richard Guenther <rguenther@suse.de>
7265
7266 PR tree-optimization/44683
7267 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
7268 false edge from the inverted condition.
7269
7270 2010-06-27 Richard Guenther <rguenther@suse.de>
7271
7272 PR middle-end/44684
7273 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
7274 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
7275 for register LHS. Or non-store assignments.
7276
7277 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
7278
7279 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
7280 (sparc_emit_set_const64): Likewise. Remove disabled code.
7281 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
7282 (sparc_emit_set_const64): Likewise.
7283
7284 2010-06-26 Catherine Moore <clm@codesourcery.com>
7285
7286 * config/mips/mips.md (alu_type): New attribute.
7287 (type): Infer type from alu_type.
7288 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
7289 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
7290 *subsi3_extended, negsi2, negdi2, *low<mode>,
7291 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
7292 xor<mode>3, *nor<mode>3,
7293 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
7294 *zero_extendhi_truncqi): Set alu_type instead of type.
7295
7296 2010-06-26 Douglas B Rupp <rupp@gnat.com>
7297
7298 * config/alpha/alpha.c (alpha_need_linkage): Adjust
7299 splay_tree_new_ggc call.
7300 (alpha_use_linkage): Likewise.
7301
7302 2010-06-26 Joseph Myers <joseph@codesourcery.com>
7303
7304 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
7305 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
7306 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
7307 (static_specs): Remove switches_need_spaces.
7308 (process_command, do_self_spec): Hardcode handling "-o" instead of
7309 checking switches_need_spaces.
7310 * system.h (SWITCHES_NEED_SPACES): Poison.
7311
7312 2010-06-26 Richard Guenther <rguenther@suse.de>
7313
7314 PR tree-optimization/44393
7315 * tree-loop-distribution.c (generate_loops_for_partition): Fix
7316 stmt removal and VOP renaming.
7317 (generate_memset_zero): Remove redundant stmt updating.
7318 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
7319 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
7320
7321 2010-06-26 Jan Hubicka <jh@suse.cz>
7322
7323 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
7324 edges comming from header are equivalent.
7325 (visit_bb): Handle PHIs correctly.
7326 * tree-inline.c (copy_phis_for_bb): Be able to copy
7327 PHI from entry edge.
7328 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
7329
7330 2010-06-26 Richard Guenther <rguenther@suse.de>
7331
7332 PR middle-end/44674
7333 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
7334 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
7335
7336 2010-06-26 Joseph Myers <joseph@codesourcery.com>
7337
7338 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
7339 add_infile, alloc_switch): New.
7340 (process_command): Remove variable lang_n_infiles. Process
7341 options in a single pass. Use new functions for allocating
7342 infiles and switches arrays. Properly skip operands of
7343 -Xpreprocessor and -Xassembler.
7344
7345 2010-06-26 Jan Hubicka <jh@suse.cz>
7346
7347 PR middle-end/44671
7348 * cgraphunit.c (cgraph_function_versioning): Remove wrong
7349 cgraph_make_decl_local call; fix typo copying RTL data.
7350
7351 2010-06-25 DJ Delorie <dj@redhat.com>
7352
7353 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
7354 (m32c_output_aligned_common): Likewise.
7355 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
7356 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
7357 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
7358 (m32c_register_pragmas): Register it.
7359 * config/m32c/m32c.c (m32c_get_pragma_address): New.
7360 (m32c_insert_attributes): Set #pragma address decls volatile.
7361 (pragma_entry_eq): New.
7362 (pragma_entry_hash): New.
7363 (m32c_note_pragma_address): New.
7364 (m32c_get_pragma_address): New.
7365 (m32c_output_aligned_common): New.
7366 * doc/extend.texi: Document the new pragma.
7367
7368 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
7369 also.
7370 * config/m32c/predicates.md (m32c_any_operand): Check the code
7371 instead of memory_operand so as to allow matching volatile MEMs.
7372 (m32c_nonimmediate_operand): Likewise.
7373 (mra_operand): Allow volatiles.
7374
7375 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
7376
7377 PR debug/44610
7378 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
7379 address if the offset is unknown.
7380
7381 2010-06-25 Douglas B Rupp <rupp@gnat.com>
7382
7383 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
7384 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
7385 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
7386 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
7387 to ia64_start_function. Invoke it.
7388 * config/ia64/ia64.c (ia64_start_function): Call new function
7389 dwarf2out_vms_debug_main_pointer.
7390
7391 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
7392
7393 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
7394 statements computing the true predicate.
7395
7396 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
7397
7398 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
7399 to boolean_true_node.
7400 (reset_bb_predicate): New.
7401 (predicate_bbs): Call reset_bb_predicate.
7402
7403 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
7404
7405 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
7406 (tree_if_conversion): Returns true when something has been changed.
7407 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
7408 changed something.
7409
7410 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
7411
7412 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
7413 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
7414 * tree-if-conv.c: Include dbgcnt.h.
7415 (tree_if_conversion): Use if_conversion_tree to count the number of
7416 if-convertible loops.
7417
7418 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
7419
7420 * common.opt (fprefetch-loop-arrays): Re-define
7421 -fprefetch-loop-arrays as a tri-state option with the initial
7422 value of -1.
7423 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
7424 pass only when flag_prefetch_loop_arrays > 0.
7425 * toplev.c (process_options): Note that, with tri-states,
7426 flag_prefetch_loop_arrays>0 means prefetching is enabled.
7427 * config/i386/i386.c (override_options): Enable prefetching at -O3
7428 for a set of CPUs that sw prefetching is helpful.
7429 (software_prefetching_beneficial_p): New. Return TRUE if software
7430 prefetching is beneficial for the given CPU.
7431
7432 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
7433
7434 PR rtl-optimization/44326
7435 * implicit-zee.c (find_removable_zero_extends): Replace
7436 INSN_P with NONDEBUG_INSN_P.
7437
7438 2010-06-25 Martin Jambor <mjambor@suse.cz>
7439
7440 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
7441 (struct ipa_node_params): Removed the modification_analysis_done flag.
7442 (ipa_is_param_modified): Removed.
7443 (ipa_analyze_node): Declare.
7444 (ipa_compute_jump_functions): Remove declaration.
7445 (ipa_count_arguments): Likewise.
7446 (ipa_detect_param_modifications): Likewise.
7447 (ipa_analyze_params_uses): Likewise.
7448 * ipa-prop.c (struct param_analysis_info): New type.
7449 (visit_store_addr_for_mod_analysis): Removed.
7450 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
7451 moved down in the file.
7452 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
7453 (ipa_count_arguments): Made static.
7454 (mark_modified): New function.
7455 (is_parm_modified_before_call): New function.
7456 (compute_pass_through_member_ptrs): New parameter parms_info, call
7457 is_parm_modified_before_call instead of ipa_is_param_modified.
7458 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
7459 it to compute_pass_through_member_ptrs.
7460 (ipa_compute_jump_functions): New parameter parms_info, pass it to
7461 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
7462 on the callee if it is analyzed. Made static.
7463 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
7464 is_parm_modified_before_call instead of ipa_is_param_modified.
7465 (ipa_analyze_call_uses): New parameter parms_info, pass it to
7466 ipa_analyze_indirect_call_uses.
7467 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
7468 ipa_analyze_call_uses.
7469 (ipa_analyze_params_uses): New parameter parms_info, pass it to
7470 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
7471 (ipa_analyze_node): New function.
7472 (ipa_print_node_params): Do not dump the modified flag.
7473 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
7474 it. Do not stream the modified parameter flag.
7475 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
7476 it. Do not stream the modified parameter flag.
7477 * ipa-cp.c (ipcp_analyze_node): Removed.
7478 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
7479 with only a call to ipa_analyze_node.
7480 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
7481 node with only a call to ipa_analyze_node.
7482
7483 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
7484
7485 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
7486
7487 2010-06-25 Jan Hubicka <jh@suse.cz>
7488
7489 * tree-pass.h (pass_split_functions): Declare.
7490 * opts.c (decode_options): Enable function splitting at -O2
7491 * timevar.def (TV_IPA_FNSPLIT): New macro.
7492 * ipa-split.c: New file.
7493 * common.opt (-fpartial-inlining): New flag.
7494 * Makefile.in (ipa-split.o): New object file.
7495 * passes.c (init_optimization_passes): Add ipa-split.
7496 * params.def (partial-inlining-entry-probability): New parameters.
7497 * doc/invoke.texi (-fpartial-inlining): New.
7498
7499 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
7500
7501 PR 44665
7502 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
7503 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
7504 (gimplify_expr): Likewise.
7505
7506 2010-06-25 Martin Jambor <mjambor@suse.cz>
7507
7508 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
7509 statements instead of bailing out on them.
7510 (ipa_analyze_indirect_call_uses): Do not require that loads from the
7511 parameter are in the same BB as the condition. Update comments.
7512
7513 2010-06-25 Jakub Jelinek <jakub@redhat.com>
7514
7515 PR middle-end/43866
7516 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
7517 true or always false, return NULL_TREE.
7518 (tree_unswitch_single_loop): Optimize conditions even when reaching
7519 max-unswitch-level parameter. If num > 0, optimize first all conditions
7520 using entry checks, then do still reachable block discovery and consider
7521 only conditions in still reachable basic blocks in the loop.
7522
7523 PR tree-optimization/44539
7524 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
7525 the call doesn't have LHS, but has VDEF.
7526
7527 2010-06-25 Joseph Myers <joseph@codesourcery.com>
7528
7529 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
7530 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
7531 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
7532 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
7533 * system.h (MODIFY_TARGET_NAME): Poison.
7534
7535 2010-06-25 Alan Modra <amodra@gmail.com>
7536
7537 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
7538 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
7539 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
7540 CMODEL_LARGE as default.
7541 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
7542 (offsettable_ok_by_alignment): Delete.
7543 (rs6000_emit_move): Remove mcmodel=medium optimization.
7544
7545 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
7546
7547 With large parts from Jim Wilson:
7548 PR target/43902
7549 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
7550 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
7551 * optabs.c (optab_for_tree_code): Likewise.
7552 (expand_widen_pattern_expr): Likewise.
7553 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
7554 out of execute_optimize_widening_mul.
7555 (convert_plusminus_to_widen): New function.
7556 (execute_optimize_widening_mul): Use the two new functions.
7557 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
7558 Remove code to generate widening multiply-accumulate. Add support
7559 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
7560 * gimple-pretty-print.c (dump_ternary_rhs): New function.
7561 (dump_gimple_assign): Call it when appropriate.
7562 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
7563 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
7564 (expand_gimple_stmt_1): Likewise.
7565 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
7566 WIDEN_MULT_MINUS_EXPR.
7567 * tree-ssa-operands.c (get_expr_operands): Likewise.
7568 * tree-inline.c (estimate_operator_cost): Likewise.
7569 * gimple.c (extract_ops_from_tree_1): Renamed from
7570 extract_ops_from_tree. Add new arg for a third operand; fill it.
7571 (gimple_build_assign_stat): Support operations with three operands.
7572 (gimple_build_assign_with_ops_stat): Likewise.
7573 (gimple_assign_set_rhs_from_tree): Likewise.
7574 (gimple_assign_set_rhs_with_ops_1): Renamed from
7575 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
7576 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
7577 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
7578 WIDEN_MULT_MINUS_EXPR.
7579 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
7580 (extract_ops_from_tree_1): Adjust declaration.
7581 (gimple_assign_set_rhs_with_ops_1): Likewise.
7582 (gimple_build_assign_with_ops): Pass NULL for last operand.
7583 (gimple_build_assign_with_ops3): New macro.
7584 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
7585 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
7586 functions.
7587 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
7588 (verify_gimple_assign): Call it.
7589 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
7590 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
7591 functions for dealing with three-operand statements.
7592 * tree.c (commutative_ternary_tree_code): New function.
7593 * tree.h (commutative_ternary_tree_code): Declare it.
7594 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
7595 ternary statements.
7596 (gimple_assign_nonzero_warnv_p): Likewise.
7597 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
7598 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
7599 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
7600 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
7601 (struct hashtable_expr): New member ternary in the union.
7602 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
7603 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
7604 (iterative_hash_hashable_expr): Likewise.
7605 (print_expr_hash_elt): Handle EXPR_TERNARY.
7606 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
7607 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
7608 statements. Handle GIMPLE_TERNARY_RHS.
7609
7610 2010-06-25 Jan Hubicka <jh@suse.cz>
7611
7612 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
7613
7614 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
7615
7616 PR c/44517
7617 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
7618 parameters are not good.
7619 (c_parser_parameter_declaration): Error unknown type name if the type
7620 name can't start declaration specifiers.
7621
7622 2010-06-25 Joseph Myers <joseph@codesourcery.com>
7623
7624 * gcc.c (translate_options): Don't mention +e in comment.
7625 (process_command): Don't handle +e specially.
7626
7627 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
7628
7629 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
7630
7631 * ira-build.c (merge_hard_reg_conflicts): New function.
7632 (create_cap_allocno, copy_info_to_removed_store_destinations,
7633 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
7634 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
7635 (remove_unnecessary_allocnos, remove_low_level_allocnos)
7636 copy_nifo_to_removed_store_destination): Use them.
7637 * ira-lives.c (make_hard_regno_born): New function, split out of
7638 make_regno_born.
7639 (make_allocno_born): Likewise.
7640 (make_hard_regno_dead): New function, split out of make_regno_dead.
7641 (make_allocno_dead): Likewise.
7642 (inc_register_pressure): New function, split out of set_allocno_live.
7643 (dec_register_pressure): New function, split out of clear_allocno_live.
7644 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
7645 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
7646 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
7647 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
7648 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
7649 mark_pseudo_regno_live.
7650 (process_bb_node_lives): Use mark_pseudo_regno_live,
7651 make_hard_regno_born and make_allocno_dead.
7652 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
7653 set_allocno_live, clear_allocno_live): Delete functions.
7654
7655 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
7656 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
7657 functions.
7658 (ira_flattening): Use ira_parent_allocno.
7659 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
7660 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
7661
7662 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
7663 statement.
7664
7665 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
7666 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
7667 minmax_set_iter_cond, minmax_set_iter_next,
7668 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
7669 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
7670 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
7671 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
7672 uses changed.
7673
7674 * ira-int.h (struct live_range, live_range_t): Renamed from struct
7675 ira_allocno_live_range and allocno_live_range_t; all uses changed.
7676 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
7677 All uses changed.
7678
7679 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
7680
7681 * thumb2.md (thumb2_tlobits_cbranch): Delete.
7682 (peephole2 to convert zero_extract/compare of single bit to
7683 lshift/compare): New.
7684
7685 2010-06-24 Anatoly Sokolov <aesok@post.ru>
7686
7687 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
7688 recursive call and call to 'int_const_binop'.
7689 (build_range_check, fold_cond_expr_with_comparison, unextend,
7690 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
7691 multiple_of_p): Adjust call to const_binop.
7692
7693 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
7694
7695 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
7696 determine size of XFmode operand.
7697 (XFmode extended DFmode push splitter): Ditto.
7698 (XFmode extended SFmode push splitter): Ditto.
7699
7700 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
7701
7702 PR target/44588
7703 * config/i386/i386.md (extract_code): New.
7704 (<u>divmodqi4): Likewise.
7705 (divmodhiqi3): Likewise.
7706 (udivmodhiqi3): Likewise.
7707 (<u>divqi3): Remvoved.
7708
7709 2010-06-24 Jakub Jelinek <jakub@redhat.com>
7710
7711 PR middle-end/44492
7712 * recog.h (struct recog_data): Add is_asm field.
7713 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
7714 present in constraints of inline-asm operand and memory operand
7715 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
7716 (extract_insn): Initialize recog_data.is_asm.
7717 * doc/md.texi (Constraints): Document operand side-effect rules.
7718
7719 2010-06-24 Andi Kleen <ak@linux.intel.com>
7720
7721 * c-parser.c (c_parser_conditional_expression): Call
7722 warn_for_omitted_condop.
7723 * doc/invoke.texi: Document omitted condop warning.
7724
7725 2010-06-24 Nick Clifton<nickc@redhat.com>
7726
7727 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
7728 insn in the sequence is a jump insn before setting its label.
7729
7730 2010-06-24 Alan Modra <amodra@gmail.com>
7731
7732 * collect2.c (main): Match exactly --version and --help.
7733
7734 2010-06-24 DJ Delorie <dj@redhat.com>
7735
7736 * config/m32c/m32c-pragma.c: Don't include rtl.h.
7737
7738 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
7739
7740 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
7741 using X87MODEF mode iterator.
7742 (pushsf splitter): Macroize splitter using P mode iterator.
7743 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
7744 mode iterator.
7745
7746 (*movxf_internal): Rename from *movxf_integer.
7747 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
7748 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
7749 (*movdf_internal): Rename from *movdf_integer.
7750 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
7751 (*movsf_internal): Rename from *movdf_1.
7752
7753 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
7754
7755 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
7756 (const_gimple_seq_node): Removed typedefs.
7757
7758 * gimple.h (gimple_seq_node_d, gimple_seq_node)
7759 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
7760
7761 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
7762
7763 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
7764 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
7765 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
7766 and CODE_FOR_vec_extract_lo_v4df.
7767
7768 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
7769 Changed to define_insn_and_split.
7770 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
7771 (vec_extract_lo_v16hi): Likewise.
7772 (vec_extract_lo_v32qi): Likewise.
7773 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
7774 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
7775
7776 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
7777
7778 PR target/44640
7779 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
7780 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
7781 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
7782 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
7783 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
7784
7785 PR target/44640
7786 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
7787
7788 PR other/44644
7789 * df-core.c (struct df): Rename to df_d.
7790 * df.h (struct df): Likewise.
7791 * dse.h (struct df): Remove forward declaration.
7792 * recog.h (struct insn_data): Rename to:
7793 (struct_insn_data_d). Adjusted all users.
7794
7795 2010-06-23 Arnaud Charlet <charlet@adacore.com
7796
7797 PR ada/22220
7798 * doc/install.texi: Update requirements to build GNAT.
7799
7800 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
7801
7802 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
7803 enum type.
7804 (m68k_sched_attr_opx_type): Remove unreachable return.
7805 (m68k_sched_attr_opy_type): Likewise.
7806 (m68k_sched_attr_size): Likewise.
7807 (sched_get_opxy_mem_type): Likewise.
7808 (m68k_sched_attr_op_mem): Likewise.
7809
7810 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
7811
7812 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
7813 new statement and adjust VDEF only if necessary. Remove superfluous
7814 call to maybe_clean_or_replace_eh_stmt.
7815 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
7816 copy the flags.
7817 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
7818 * tree-inline.c (copy_bb): ...and not there.
7819
7820 2010-06-22 Cary Coutant <ccoutant@google.com>
7821
7822 * dwarf2out.c (is_nested_in_subprogram): New function.
7823 (should_move_die_to_comdat): Use it.
7824 (copy_ancestor_tree): Don't mark DIEs here.
7825 (copy_decls_walk): Start walk from root of newly-added tree;
7826 mark DIEs here instead.
7827
7828 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
7829
7830 * config/i386/i386.md (unit): Also check sseishft1.
7831
7832 2010-06-22 Jan Hubicka <jh@suse.cz>
7833
7834 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
7835 enabled.
7836
7837 2010-06-22 Jan Hubicka <jh@suse.cz>
7838
7839 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
7840 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
7841 Return true if something changed.
7842 * df.h (df_confluence_function_n): Return bool.
7843 * df-core.c (df_worklist_propagate_forward,
7844 df_worklist_propagate_backward): Track changes and ages.
7845 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
7846 track ages.
7847 * dse.c (dse_confluence_n): Return always true.
7848
7849 2010-06-22 Jan Hubicka <jh@suse.cz>
7850
7851 * bitmap.c (bitmap_clear_bit): Micro optimize.
7852
7853 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
7854
7855 * config/i386/i386.md (SWI1248x): New mode iterator.
7856 (SWI48x): Ditto.
7857 (SWI12): Ditto.
7858 (SWI24): Ditto.
7859
7860 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
7861 SWI1248x mode iterator.
7862 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
7863 using SWI124 mode iterator.
7864 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
7865 mode iterator.
7866 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
7867 *pushdi2_prologue_rex64 using P mode iterator.
7868 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
7869 using SWI48 mode iterator.
7870 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
7871 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
7872 using SWI1248x mode iterator.
7873 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
7874 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
7875 SWI48 mode iterator.
7876 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
7877 iterator.
7878 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
7879 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
7880 SWI12 mode iterator.
7881 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
7882 SWI12 mode iterator.
7883 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
7884 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
7885 SWI24 mode iterator.
7886 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
7887 SWI48 mode iterator.
7888 (mov<mode>_insn_1): New expander.
7889 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
7890 using SWI48x mode iterator.
7891
7892 (*movoi_internal_avx): Rename from *movoi_internal.
7893 (*movti_internal_rex64): Rename from *movti_rex64.
7894 (*movti_internal_sse): Rename from *movti_sse.
7895 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
7896 (*movdi_internal): Rename from *movdi_2.
7897 (*movsi_internal): Rename from *movsi_1.
7898 (*movhi_internal): Rename from *movhi_1.
7899 (*movqi_internal): Rename from *movqi_1.
7900
7901 (insv): Update the call to gen_movsi_insv_1 for rename.
7902 * config/i386/i386.c (promote_duplicated_reg): Ditto.
7903
7904 2010-06-22 Jan Hubicka <jh@suse.cz>
7905
7906 * passes.c (execute_function_todo): Move call of statistics_fini_pass
7907 to ...
7908 (execute_todo) ... this one.
7909
7910 2010-06-22 Alan Modra <amodra@gmail.com>
7911
7912 PR target/44364
7913 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7914 * caller-save.c (insert_restore, insert_save): Use non-validate
7915 form of adjust_address.
7916
7917 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7918
7919 PR target/39690
7920 * config/pa/pa.c (override_options): Disable
7921 -freorder-blocks-and-partition.
7922
7923 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
7924
7925 PR target/44615
7926 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
7927
7928 * config/i386/i386.md (type): Add sseishft1
7929
7930 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
7931 (ppro_insn_load): Likewise.
7932 (ppro_insn_store): Likewise.
7933 (ppro_insn_both): Likewise.
7934
7935 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
7936 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
7937 for type.
7938 (*vec_extractv2di_1_avx): Likewise.
7939 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
7940 type. Remove atom_unit.
7941 (*vec_extractv2di_1_sse2): Likewise.
7942
7943 2010-06-21 DJ Delorie <dj@redhat.com>
7944
7945 * diagnostic.h (diagnostic_classification_change_t): New.
7946 (diagnostic_context): Add history and push/pop list.
7947 (diagnostic_push_diagnostics): Declare.
7948 (diagnostic_pop_diagnostics): Declare.
7949 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
7950 from pragmas in a history chain instead of the global table.
7951 (diagnostic_push_diagnostics): New.
7952 (diagnostic_pop_diagnostics): New.
7953 (diagnostic_report_diagnostic): Scan history chain to find state
7954 of diagnostics as of the diagnostic location.
7955 * opts.c (set_option): Pass UNKNOWN_LOCATION to
7956 diagnostic_classify_diagnostic.
7957 (enable_warning_as_error): Likewise.
7958 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
7959 use in the history chain.
7960 * doc/extend.texi: Document pragma GCC diagnostic changes.
7961
7962 2010-06-21 Jakub Jelinek <jakub@redhat.com>
7963
7964 * dwarf2out.c (add_linkage_name): New function. Don't add
7965 anything to DW_TAG_member DIEs.
7966 (add_name_and_src_coords_attributes): Use it.
7967 (gen_variable_die): Call it for C++ static data members if
7968 specification is DW_TAG_member.
7969
7970 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
7971 C++ char16_t and char32_t.
7972
7973 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
7974 * genattrtab.c: Include vecprim.h.
7975 (cached_attrs, cached_attr_count, attrs_seen_once,
7976 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
7977 attrs_cached_after): New variables.
7978 (find_attrs_to_cache): New function.
7979 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
7980 (write_test_expr): Add attrs_cached argument, return it too,
7981 attempt to cache non-const attributes used more than once in
7982 a single case handling.
7983 (write_attr_get): Use find_attrs_to_cache, for caching candidates
7984 emit cached_* variables. Adjust write_attr_set callers.
7985 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
7986 to find attributes that should be cached in this block. Adjust
7987 write_test_expr callers.
7988 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
7989 callers.
7990 (make_automaton_attrs): Adjust write_test_expr caller.
7991
7992 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
7993 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
7994 (make_automaton_attrs): If find_tune_attr returns non-NULL,
7995 write separate internal_dfa_insn_code_* and insn_default_latency_*
7996 functions for each attribute's value and emit init_sched_attrs
7997 function and function pointers.
7998 * genattr.c (const_attrs, reservations): New variables.
7999 (gen_attr): Add const attributes to const_attrs vector.
8000 (check_tune_attr, find_tune_attr): New functions.
8001 (main): Add reservations to reservations vector. If find_tune_attr
8002 returns true, add prototype for init_sched_attrs and make
8003 internal_dfa_insn_code and insn_default_latency function pointers,
8004 otherwise define init_sched_attrs as dummy macro.
8005 * cfgexpand.c: Include insn-attr.h.
8006 (gimple_expand_cfg): Call init_sched_attrs.
8007
8008 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
8009
8010 PR target/44575
8011 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
8012 va_arg from a set of register save slots into a temporary,
8013 if the container is bigger than type size, do the copying
8014 using smaller mode or using memcpy.
8015
8016 PR bootstrap/44426
8017 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
8018 prototype.
8019 (sel_print_to_dot): Remove macro.
8020 (sel_print): Likewise. New prototype.
8021 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
8022 (sel_print): New function.
8023
8024 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8025
8026 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
8027 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
8028
8029 2010-06-21 Nick Clifton <nickc@redhat.com>
8030
8031 * config/rx/rx.h (PTRDIFF_TYPE): Define.
8032 (SMALL_REGISTER_CLASS): Define (to zero).
8033 (PRINT_OPERAND): Delete.
8034 (PRINT_OPERAND_ADDRESS): Delete.
8035 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
8036 (rx_print_operand_address): Delete prototype.
8037 * config/rx/rx.c (rx_print_operand): Make static.
8038 Allow %H and %L to handle CONST_DOUBLEs.
8039 (rx_print_operand_address): Make static.
8040 (rx_gen_move_template): Rename local variable 'template' to
8041 out_template.
8042 (rx_function_arg): Do not pass unknown sized objects in registers.
8043 (TARGET_PRINT_OPERAND): Define.
8044 (TARGET_PRINT_OPERAND_ADDRESS): Define.
8045
8046 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8047
8048 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
8049
8050 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
8051
8052 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
8053 stack-alignment for simple leaf-functions.
8054
8055 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
8056
8057 * doc/install.texi: Document bootstrap-lto.
8058
8059 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
8060
8061 PR debug/44248
8062 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
8063 (input_function): Drop them here, if VTA is disabled.
8064
8065 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
8066
8067 PR target/44546
8068 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
8069 New predicate.
8070 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
8071 ix86_swapped_fp_comparsion_operator instead of
8072 ix86_fp_comparison_operator.
8073
8074 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
8075 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
8076 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
8077 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
8078 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
8079 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
8080
8081 2010-06-20 Joseph Myers <joseph@codesourcery.com>
8082
8083 PR other/32998
8084 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
8085 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
8086 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
8087 (decode_cmdline_option): Update for this return value. Set
8088 orig_option_with_args_text field. Set arg field for unknown
8089 options. Make static.
8090 (decode_cmdline_options_to_array): New.
8091 (prune_options): Update handling of find_opt return value.
8092 * opts.c (read_cmdline_option): Take decoded option. Return void.
8093 (read_cmdline_options): Take decoded options.
8094 (decode_options): Add parameters for decoded options. Use
8095 decode_cmdline_options_to_array. Use decoded options for -O
8096 scan. Use integral_argument for -O parameters. Update call to
8097 read_cmdline_options.
8098 (enable_warning_as_error): Update handling of find_opt return value.
8099 * opts.h: Update comment on unknown options.
8100 (struct cl_decoded_option): Update comments on opt_index and arg.
8101 Add orig_option_with_args_text.
8102 (decode_cmdline_option): Remove.
8103 (decode_cmdline_options_to_array): Declare.
8104 (decode_options): Update prototype.
8105 * toplev.c (save_argv): Remove.
8106 (save_decoded_options, save_decoded_options_count): New.
8107 (read_integral_parameter): Remove.
8108 (print_switch_values): Use decoded options.
8109 (toplev_main): Don't set save_argv. Update call to decode_options.
8110 * toplev.h (read_integral_parameter): Remove.
8111 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
8112
8113 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
8114
8115 PR target/44072
8116 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
8117 immediate.
8118 * constraints.md (Pw, Px): New constraints.
8119 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
8120
8121 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
8122
8123 * config/i386/sse.md (fma4modesuffixf4): Removed.
8124 (ssemodesuffixf2s): Likewise.
8125 (ssemodesuffixf4): Likewise.
8126 (ssemodesuffixf2c): Likewise.
8127 (ssescalarmodesuffix2s): Likewise.
8128 (avxmodesuffixf2c): Likewise.
8129 (ssemodesuffix): New.
8130 (ssescalarmodesuffix): Likewise.
8131 Update patterns with ssemodesuffix and ssescalarmodesuffix.
8132
8133 2010-06-19 Philip Herron <herron.philip@googlemail.com>
8134
8135 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
8136
8137 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
8138
8139 * stor-layout.c (debug_rli): Remove unused local variables.
8140
8141 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
8142
8143 PR rtl-optimization/40900
8144 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
8145 original expression for later reuse.
8146 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
8147 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
8148
8149 2010-06-18 Anatoly Sokolov <aesok@post.ru>
8150
8151 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
8152 double_int_fits_in_uhwi_p): Implement as static inline.
8153 (double_int_xor): New inline function.
8154 (double_int_lrotate, double_int_rrotate, double_int_max,
8155 double_int_umax, double_int_smax, double_int_min, double_int_umin,
8156 double_int_smin): Declare.
8157 (lrotate_double, rrotate_double): Remove declaration.
8158 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
8159 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
8160 (double_int_lrotate, double_int_rrotate, double_int_max,
8161 double_int_umax, double_int_smax, double_int_min, double_int_umin,
8162 double_int_smin): New function.
8163 * fold-const.c (int_const_binop): Clean up, use double_int_*
8164 functions.
8165 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
8166 double_int_* and immed_double_int_const functions.
8167
8168 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
8169
8170 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
8171 * function.c (types_used_by_cur_var_decl): Likewise.
8172 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
8173
8174 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
8175
8176 * tree.h (record_layout_info): Change type of pending_statics field
8177 to a VEC.
8178 * stor-layout.c (start_record_layout): Store NULL into
8179 pending_statics.
8180 (debug_rli): Call debug_vec_tree instead of debug_tree.
8181 (place_field): Likewise.
8182 (finish_record_layout): Likewise.
8183
8184 2010-06-18 Alan Modra <amodra@gmail.com>
8185
8186 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
8187
8188 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8189
8190 PR target/43740
8191 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
8192 for SET source operand from SET destination operand.
8193
8194 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
8195
8196 PR rtl-optimization/39871
8197 * reload1.c (init_eliminable_invariants): For flag_pic, disable
8198 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
8199 (function_invariant_p): Rule out a plus of frame or arg pointer with
8200 a SYMBOL_REF.
8201 * ira.c (find_reg_equiv_invariant_const): Likewise.
8202
8203 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
8204
8205 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
8206 print_operand_address and puts to output the operand for CONST.
8207
8208 2010-06-17 Jakub Jelinek <jakub@redhat.com>
8209
8210 PR debug/44572
8211 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
8212 hook.
8213
8214 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
8215
8216 * v850-protos.h (print_operand): Delete.
8217 (print_operand_address): Delete.
8218 * v850.h (PRINT_OPERAND): Delete.
8219 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8220 (PRINT_OPERAND_ADDRESS): Delete.
8221 * v850.c (print_operand_address): Rename to...
8222 (v850_print_operand_address): ...this. Make static. Call
8223 v850_print_operand.
8224 (print_operand): Rename to...
8225 (v850_print_operand): ...this. Make static. Call
8226 v850_print_operand_address.
8227 (v850_print_operand_punct_valid_p): New function.
8228 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8229 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8230
8231 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
8232
8233 * config/sh/sh-protos.h (print_operand): Delete.
8234 (print_operand_address): Delete.
8235 * config/sh/sh.h (PRINT_OPERAND): Delete.
8236 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8237 (PRINT_OPERAND_ADDRESS): Delete.
8238 * config/sh/sh.c (sh_print_operand_address): Make static.
8239 (sh_print_operand): Make static. Call sh_print_operand_address
8240 and sh_print_operand.
8241 (sh_print_operand_punct_valid_p): New function.
8242 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8243 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8244
8245 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
8246
8247 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
8248 (mcore_print_operand_address): Delete.
8249 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
8250 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8251 (PRINT_OPERAND_ADDRESS): Delete.
8252 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
8253 (mcore_print_operand): Make static.
8254 (mcore_print_operand_punct_valid_p): New function.
8255 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
8256 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8257
8258 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
8259
8260 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
8261 (print_operand_address): Delete.
8262 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
8263 (PRINT_OPERAND_ADDRESS): Delete.
8264 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
8265 static.
8266 (m68hc11_print_operand): Make static.
8267 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8268
8269 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
8270
8271 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
8272 (m32r_print_operand_address): Delete.
8273 * config/m32r/m32r.h (m32r_punct_chars): Delete.
8274 (PRINT_OPERAND): Delete.
8275 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8276 (PRINT_OPERAND_ADDRESS): Delete.
8277 * config/m32r/m32r.c (m32r_punct_chars): Make static.
8278 (m32r_print_operand_address): Make static.
8279 (m32r_print_operand): Make static.
8280 (m32r_print_operand_punct_valid_p): New function.
8281 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8282 (TARGET_PRINT_OPERAND_ADDRESS): Define.
8283
8284 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
8285
8286 * config/iq2000/iq2000-protos.h (print_operand): Delete.
8287 (print_operand_address): Delete.
8288 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
8289 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8290 (PRINT_OPERAND_ADDRESS): Delete.
8291 (iq2000_print_operand_punct): Delete.
8292 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
8293 (iq2000_print_operand_address): Make static.
8294 (iq2000_print_operand): Make static.
8295 (iq2000_print_operand_punct_valid_p): New function.
8296 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8297 (TARGET_PRINT_OPERAND_ADDRESS): Define.
8298
8299 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
8300
8301 * config/frv/frv-protos.h (frv_print_operand): Delete.
8302 (frv_print_operand_address): Delete.
8303 * config/frv/frv.h (PRINT_OPERAND): Delete.
8304 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8305 (PRINT_OPERAND_ADDRESS): Delete.
8306 * config/frv/frv.c (frv_print_operand_address): Make static.
8307 (frv_print_operand): Make static.
8308 (frv_print_operand_punct_valid_p): New function.
8309 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8310 (TARGET_PRINT_OPERAND_ADDRESS): Define.
8311
8312 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
8313
8314 * tree.h (vec_member): Declare.
8315 * tree.c (vec_member): Define.
8316
8317 2010-06-17 Richard Guenther <rguenther@suse.de>
8318
8319 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
8320 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
8321
8322 2010-06-17 Richard Guenther <rguenther@suse.de>
8323
8324 * tree-inline.c (declare_return_variable): Remove bogus code.
8325
8326 2010-06-17 Richard Guenther <rguenther@suse.de>
8327
8328 * gimplify.c (gimplify_bind_expr): Always promote complex
8329 and vector variables to registers if possible.
8330
8331 2010-06-17 Richard Guenther <rguenther@suse.de>
8332
8333 * expr.c (get_inner_reference): Use double_int for bit_offset
8334 calculation.
8335
8336 2010-06-16 DJ Delorie <dj@redhat.com>
8337
8338 * common.opt (-fstrict-volatile-bitfields): new.
8339 * doc/invoke.texi: Document it.
8340 * fold-const.c (optimize_bit_field_compare): For volatile
8341 bitfields, use the field's type to determine the mode, not the
8342 field's size.
8343 * expr.c (expand_assignment): Likewise.
8344 (get_inner_reference): Likewise.
8345 (expand_expr_real_1): Likewise.
8346 * expmed.c (store_fixed_bit_field): Likewise.
8347 (extract_bit_field_1): Likewise.
8348 (extract_fixed_bit_field): Likewise.
8349
8350 2010-06-16 Richard Guenther <rguenther@suse.de>
8351
8352 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
8353
8354 2010-06-16 Douglas B Rupp <rupp@gnat.com>
8355
8356 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
8357 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
8358 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
8359 * debug.c: Likewise.
8360 * sdbout.c: Likewise.
8361 * vmsdbgout.c: Likewise.
8362 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
8363 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
8364 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
8365 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
8366 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
8367 * dwarf2out.c (dw_fde_struct): New fields
8368 dw_fde_vms_{end,begin}_prologue.
8369 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
8370 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
8371 (dwarf2out_vms_end_prologue): New function.
8372 (dwarf2out_vms_begin_epilogue): New function.
8373 (dw_val_struct): New value dw_val_class_vms_delta.
8374 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
8375 begin_epilogue for VMS.
8376 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
8377 new static functions.
8378 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
8379 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
8380 static functions.
8381 (print_die): New case dw_val_class_vms_delta.
8382 (attr_checksum): Likewise.
8383 (same_dw_val_p: Likewise.
8384 (size_of_die): Likewise.
8385 (value_format): Likewise.
8386 (output_die): Likewise.
8387 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
8388 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
8389 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
8390 dwarf2out_cfi_begin_epilogue
8391 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
8392
8393 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
8394
8395 * config/cris/cris-protos.h (cris_print_operand): Delete.
8396 (cris_print_operand_address): Delete.
8397 * config/cris/cris.h (PRINT_OPERAND): Delete.
8398 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8399 (PRINT_OPERAND_ADDRESS): Delete.
8400 * config/cris/cris.c (cris_print_operand_address): Make static.
8401 (cris_print_operand): Make static.
8402 (cris_print_operand_punct_valid_p): New function.
8403 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8404 (TARGET_PRINT_OPERAND_ADDRESS): Define.
8405
8406 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
8407
8408 * config/arm/arm-protos.h (arm_print_operand): Delete.
8409 (arm_print_operand_address): Delete.
8410 * config/arm/arm.h (PRINT_OPERAND): Delete.
8411 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8412 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
8413 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
8414 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
8415 (arm_print_operand): Make static.
8416 (arm_print_operand_punct_valid_p): New function.
8417 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8418 (TARGET_PRINT_OPERAND_ADDRESS): Define.
8419
8420 2010-06-16 Nick Clifton <nickc@redhat.com>
8421
8422 * config/rx/constraints.md (NEGint4): New constraint.
8423 * config/rx/rx.md (attr cc): Add set_zsc.
8424 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
8425 initialised.
8426 (cmpsf): Likewise.
8427 (call_internal): Clobber the cc0 register.
8428 (call_value_internal): Likewise.
8429 (cstoresi4): Likewise.
8430 (movsieq): Likewise.
8431 (movsine): Likewise.
8432 (addsi3): Add alternative to handle small negative constants.
8433 (sunsi3): Likewise.
8434 (addsi3): Do not set the O bit in the cc0 register.
8435 (adddi3): Likewise.
8436 (subsi3): Likewise.
8437 (subdi3): Likewise.
8438 (andsi3): Reorder alternatives to prefer shorter forms.
8439 (mulsi3): Likewise.
8440 (iorsi3): Likewise.
8441 (negsi2): Note that the cc0 flags are set.
8442 (rotlsi3): Note that only the Z and S bits are set in cc0.
8443 (lshrsi3): Likewise.
8444 (ashlsi3): Likewise.
8445 (subsf3): Use %Q for the MEM operand.
8446 (fix_truncsfsi2): Likewise.
8447 (floatsisf2): Likewise.
8448 (bitset): Remove early clobber from destination.
8449 (bitset_in_memory): Likewise.
8450 (lrintsf2): Clobber the cc0 register.
8451 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
8452 (rx_print_operand): Handle %N.
8453
8454 2010-06-16 Jan Hubicka <jh@suse.cz>
8455
8456 * df-core.c (df_compact_blocks): Free problem_temps vector.
8457
8458 2010-06-16 Martin Jambor <mjambor@suse.cz>
8459
8460 PR tree-optimization/43905
8461 * tree-sra.c: Include tree-inline.h.
8462 (create_abstract_origin): Removed.
8463 (modify_function): Version the call graph node instead of creating
8464 abstract origins and dealing with same_body aliases.
8465 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
8466 function is versionable.
8467 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
8468
8469 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
8470
8471 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
8472 (CHOOSE_DYNAMIC_LINKER): Update.
8473
8474 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
8475
8476 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
8477 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
8478 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
8479 *prefetch_3dnow_rex.
8480
8481 2010-06-15 Anatoly Sokolov <aesok@post.ru>
8482
8483 * target.h (struct asm_out):Add declare_constant_name field.
8484 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
8485 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
8486 * output.h (default_asm_declare_constant_name): Declare.
8487 (assemble_label): Update prototype.
8488 * varasm.c (assemble_constant_contents): Use
8489 targetm.asm_out.declare_constant_name target hook.
8490 (assemble_label): Add 'file' argument.
8491 (default_asm_declare_constant_name): New function.
8492 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
8493 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
8494 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
8495
8496 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
8497 * config/darwin.c (darwin_asm_declare_constant_name): New function.
8498 (machopic_output_indirection): Update assemble_label argument list.
8499 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
8500 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
8501
8502 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
8503
8504 PR middle-end/44391
8505 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
8506 size_one_node for pointer types. Do not call gmp_cst_to_tree.
8507
8508 2010-06-15 Richard Guenther <rguenther@suse.de>
8509
8510 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
8511
8512 2010-06-15 Paul Brook <paul@codesourcery.com>
8513
8514 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
8515 hard-float ABI.
8516
8517 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
8518
8519 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
8520 don't get a vector type for output.
8521
8522 2010-06-15 Jakub Jelinek <jakub@redhat.com>
8523
8524 PR fortran/44536
8525 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
8526 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
8527 (LANG_HOOKS_DECLS): Add it.
8528 * gimplify.c (omp_notice_variable): Call
8529 lang_hooks.decls.omp_report_decl.
8530
8531 2010-06-15 Martin Jambor <mjambor@suse.cz>
8532
8533 PR lto/44464
8534 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
8535 on the newly dead SSA name.
8536
8537 2010-06-15 Alan Modra <amodra@gmail.com>
8538
8539 * doc/invoke.texi: Add mcmodel to powerpc options.
8540 * configure.ac: Add HAVE_LD_LARGE_TOC test.
8541 * configure: Regenerate.
8542 * config.in: Regenerate.
8543 * config/rs6000/linux64.opt (mcmodel): New.
8544 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
8545 (TARGET_CMODEL, SET_CMODEL): Define.
8546 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
8547 select CMODEL_MEDIUM default.
8548 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
8549 (TARGET_CMODEL): Define default.
8550 * config/rs6000/rs6000.c (cmodel): New variable.
8551 (rs6000_explicit_options): Add cmodel field.
8552 (rs6000_handle_option): Handle -mcmodel.
8553 (create_TOC_reference): Add largetoc_reg param. Generate high,
8554 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
8555 (rs6000_delegitimize_address): Recognise new toc reference rtl
8556 and minimal-toc rtl.
8557 (rs6000_legitimize_reload_address): Handle new toc references.
8558 (print_operand_address): Handle legitimate_constant_pool_address_p
8559 match before lo_sum.
8560 (rs6000_eliminate_indexed_memrefs): Tidy.
8561 (rs6000_emit_move): Tweak threshold for inlining constants.
8562 Keep rs6000_emit_allocate_stack large stack frame offsets
8563 loaded into r0 inline.
8564 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
8565 (tocrel_base, tocrel_offset): New variables.
8566 (toc_relative_expr_p): Set them here.
8567 (print_operand_address): Skip over any offset on constant pool address.
8568 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
8569 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
8570 (offsettable_ok_by_alignment): New function.
8571 (rs6000_emit_move): Address suitably aligned local symbol_refs
8572 relative to the toc pointer for -mcmodel=medium.
8573 (legitimate_constant_pool_address_p): Make param const_rtx. Add
8574 strict param. Allow lo_sum version of addressing. Verify reg
8575 used for -mminimal-toc and -mcmodel != small. Update all callers.
8576 * config/rs6000/constraints.md: Update for above change.
8577 * config/rs6000/predicates.md: Likewise.
8578 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
8579 code.
8580 (tls_gd): Split for -mcmodel=medium/large.
8581 (tls_gd_high, tls_gd_low): New.
8582 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
8583 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
8584 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
8585 (largetoc_high, largetoc_low): New.
8586 (cmptf_internal2): Add clobber.
8587 * config/rs6000/rs6000-protos.h: Update.
8588
8589 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
8590
8591 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
8592 true if no prefetch is going to be generated for a given group.
8593 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
8594 estimate the prefetch_count.
8595 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
8596 prefetch count by considering the unroll_factor and prefetch_mod
8597 for is_loop_prefetching_profitable.
8598
8599 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
8600
8601 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
8602 anything if the argument is not a MEM.
8603
8604 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
8605
8606 PR debug/43650
8607 PR debug/44181
8608 PR debug/44247
8609 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
8610 debug stmts.
8611 (canonicalize_loop_ivs): Likewise.
8612
8613 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
8614
8615 PR debug/43656
8616 * haifa-sched.c (setup_insn_reg_pressure_info,
8617 update_register_pressure): Reject debug insns.
8618 (ready_sort): Don't setup reg pressure for debug insns.
8619 (schedule_insn): Don't update reg pressure for debug insns.
8620
8621 2010-06-14 Richard Guenther <rguenther@suse.de>
8622
8623 * lto-streamer.c (cached_bp): Remove.
8624 (bitpack_delete): Likewise.
8625 (bitpack_create): Likewise.
8626 (bp_get_next_word): Likewise.
8627 (bp_pack_value, bp_unpack_value): Move ...
8628 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
8629 Re-implement.
8630 (struct bitpack_d): Likewise.
8631 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
8632 New inline functions.
8633 * lto-streamer-out.c (lto_output_bitpack): Remove.
8634 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
8635 (pack_value_fields): Adjust.
8636 (lto_write_tree): Likewise.
8637 (output_gimple_stmt): Likewise.
8638 (output_function): Likewise.
8639 * lto-streamer-in.c (input_gimple_stmt): Adjust.
8640 (input_function): Likewise.
8641 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
8642 (lto_input_bitpack): Remove.
8643 (lto_materialize_tree): Adjust.
8644 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
8645 * lto-cgraph.c (lto_output_edge): Adjust.
8646 (lto_output_node): Likewise.
8647 (lto_output_varpool_node): Likewise.
8648 (lto_output_ref): Likewise.
8649 (input_node): Likewise.
8650 (input_varpool_node): Likewise.
8651 (input_ref): Likewise.
8652 (input_edge): Likewise.
8653 (output_node_opt_summary): Likewise.
8654 (input_node_opt_summary): Likewise.
8655 * ipa-pure-const.c (pure_const_write_summary): Likewise.
8656 (pure_const_read_summary): Likewise.
8657 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
8658 (ipa_read_indirect_edge_info): Likewise.
8659 (ipa_write_node_info): Likewise.
8660 (ipa_read_node_info): Likewise.
8661
8662 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
8663
8664 PR target/44534
8665 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
8666 (vec_extract_lo_v16hi): Likewise.
8667 (vec_extract_lo_v32qi): Likewise.
8668
8669 2010-06-14 Jakub Jelinek <jakub@redhat.com>
8670
8671 PR bootstrap/44426
8672 * tree.h (build_call_expr): Don't define as vararg macro, instead
8673 add a prototype.
8674 * builtins.c (build_call_nofold): Remove.
8675 (expand_builtin_int_roundingfn, expand_builtin_pow,
8676 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
8677 expand_builtin_memset_args, expand_builtin_strcmp,
8678 expand_builtin_strncmp, expand_builtin_memory_chk): Use
8679 build_call_nofold_loc instead of build_call_nofold.
8680 (build_call_expr): New function.
8681
8682 PR tree-optimization/44508
8683 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
8684 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
8685 don't eliminate trivially dead stmts.
8686 * tree-vrp.c (vrp_finalize): Pass false as last argument
8687 to substitute_and_fold.
8688 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
8689 to substitute_and_fold.
8690 * tree-ssa-ccp.c (ccp_finalize): Likewise.
8691
8692 PR bootstrap/44509
8693 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
8694
8695 2010-06-14 Ira Rosen <irar@il.ibm.com>
8696
8697 PR tree-optimization/44507
8698 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
8699 to build initial vector for BIT_AND_EXPR.
8700 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
8701
8702 2010-06-14 Jakub Jelinek <jakub@redhat.com>
8703
8704 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
8705 adjust z10prop set_attr.
8706
8707 2010-06-13 Jan Hubicka <jh@suse.cz>
8708
8709 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
8710 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
8711 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
8712 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
8713 datastructure checks into checking asserts.
8714 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
8715 * tree-ssa-sccvn.c (VN_INFO): Likewise.
8716 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
8717 df_ref_create_structure): Likewise.
8718 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
8719 pool_free): Use gcc_checking_assert.
8720 * alias.c (get_alias_set): Likewise.
8721 * var-tracking.c (variable_htab_free, shared_hash_copy,
8722 canonicalize_values_mark, variable_merge_over_cur): Likewise.
8723 * lto-streamer.c (bp_unpack_value): Likewise.
8724
8725 2010-06-13 Richard Guenther <rguenther@suse.de>
8726
8727 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
8728 Do not stream but initialize TYPE_CANONICAL to NULL.
8729 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
8730 * gimple.c (gimple_types_compatible_p): Disregard
8731 TYPE_STRUCTURAL_EQUALITY_P.
8732 (gimple_register_type): Use TYPE_CANONICAL as cache.
8733 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
8734 before registering common types.
8735 * config/i386/i386.c (ix86_function_arg_boundary): Do not
8736 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
8737 * tree.h (TYPE_CANONICAL): Clarify documentation.
8738
8739 2010-06-13 Anatoly Sokolov <aesok@post.ru>
8740
8741 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8742 LIBCALL_VALUE): Remove macros.
8743 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
8744 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8745 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8746 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
8747 (ia64_function_value): Make static. Handle receiving the function
8748 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
8749
8750 2010-06-12 Jan Hubicka <jh@suse.cz>
8751
8752 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
8753 at correct place.
8754
8755 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
8756
8757 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
8758
8759 2010-06-12 Jan Hubicka <jh@suse.cz>
8760
8761 * df-core.c (df_clear_bb_info): New function.
8762 (df_set_blocks): bb_info is always allocated.
8763 (df_get_bb_info): Use block_info_elt_size.
8764 (df_set_bb_info): Likewise.
8765 (df_compact_blocks): Update for new block_info.
8766 (grow_bb_info): New function.
8767 * df-problems.c (df_grow_bb_info): Move to df-core.c
8768 (df_rd_set_bb_info): Remove.
8769 (df_rd_free_bb_info): Do not free block pool.
8770 (df_rd_alloc): Do not create pool, use check for
8771 obstack presence instead of NULL pointer for new blocks.
8772 (df_rd_free): DO not free alloc pool; clear block_info.
8773 (problem_RD): Add size of block info structure.
8774 (df_lr_set_bb_info): Remove.
8775 (df_lr_free_bb_info): Do not free block pool.
8776 (df_lr_alloc): Do not create pool, use check for
8777 obstack presence instead of NULL pointer for new blocks.
8778 (df_lr_free): DO not free alloc pool; clear block_info.
8779 (problem_LR): Add size of block info structure.
8780 (df_live_set_bb_info): Remove.
8781 (df_live_free_bb_info): Do not free block pool.
8782 (df_live_alloc): Do not create pool, use check for
8783 obstack presence instead of NULL pointer for new blocks.
8784 (df_live_free): DO not free alloc pool; clear block_info.
8785 (problem_LIVE): Add size of block info structure.
8786 (problem_CHAIN): Add size of block info structure.
8787 (df_byte_lr_set_bb_info): Remove.
8788 (df_byte_lr_free_bb_info): Do not free block pool.
8789 (df_byte_lr_alloc): Do not create pool, use check for
8790 obstack presence instead of NULL pointer for new blocks.
8791 (df_byte_lr_free): DO not free alloc pool; clear block_info.
8792 (problem_BYTE_LR): Add size of block info structure.
8793 (problem_NOTE): Add size of block info structure.
8794 (df_byte_MD_set_bb_info): Remove.
8795 (df_byte_MD_free_bb_info): Do not free block pool.
8796 (df_byte_MD_alloc): Do not create pool, use check for
8797 obstack presence instead of NULL pointer for new blocks.
8798 (df_byte_MD_free): DO not free alloc pool; clear block_info.
8799 (problem_BD): Add size of block info structure.
8800 * df-scan.c (df_scan_free_internal): Free block pool.
8801 (df_scan_set_bb_info): Remove.
8802 (df_scan_free_bb_info): Check for artificial_defs instead
8803 of bb_info being non-NULL.
8804 (df_scan_alloc): DO not create df_scan_block pool.
8805 (problem_SCAN): Set size of block info.
8806 (df_bb_refs_record): Do not allocate bb_info.
8807 * df.h (df_problem): Add block_info_elt_size.
8808 (struct dataflow): Change block_info to void *.
8809 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
8810 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
8811 in-line structures.
8812
8813 2010-06-12 Jan Hubicka <jh@suse.cz>
8814
8815 PR tree-optimize/44485
8816 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
8817 containing use of return value of noreturn function.
8818
8819 2010-06-12 Anatoly Sokolov <aesok@post.ru>
8820
8821 * targhooks.c (default_function_value): Don't use
8822 FUNCTION_OUTGOING_VALUE.
8823 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
8824 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
8825
8826 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
8827
8828 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
8829 Add crtfastmath.o to extra_parts.
8830 * config/mips/crtfastmath.c: New.
8831 * config/mips/linux.h (ENDFILE_SPEC): New.
8832
8833 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
8834
8835 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
8836 old_type in parameter.
8837 (gcc_type_for_value): Update call to gcc_type_for_interval.
8838 (compute_type_for_level_1): Renamed compute_type_for_level.
8839 Update call to gcc_type_for_interval.
8840
8841 2010-06-11 Joseph Myers <joseph@codesourcery.com>
8842
8843 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
8844 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
8845
8846 2010-06-11 Joseph Myers <joseph@codesourcery.com>
8847
8848 * opts-common.c: Include options.h.
8849 (integral_argument): Move from opts.c.
8850 (decode_cmdline_option): New. Based on read_cmdline_option.
8851 * opts.c (integral_argument): Move to opts-common.c.
8852 (read_cmdline_option): Move most contents to
8853 decode_cmdline_option. Use %qs in diagnostics.
8854 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
8855 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
8856 decode_cmdline_option): New.
8857
8858 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
8859
8860 PR target/44481
8861 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
8862 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
8863 (partiysi2_cmp): Ditto.
8864 (*partiyhi2_cmp): Ditto.
8865 (*parityqi2_cmp): Remove.
8866
8867 2010-06-11 Jan Hubicka <jh@suse.cz>
8868
8869 * bitmap.h (bmp_iter_next_bit): New.
8870 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
8871
8872 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
8873 Eric Botcazou <ebotcazou@adacore.com>
8874
8875 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
8876 computed cost.
8877
8878 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
8879
8880 * config/i386/i386.md (unspec): New define_c_enum.
8881 (unspecv): Ditto.
8882
8883 2010-06-10 Jakub Jelinek <jakub@redhat.com>
8884
8885 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
8886
8887 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
8888
8889 PR middle-end/44483
8890 * tree-if-conv.c (bb_predicate_s): New struct.
8891 (bb_predicate_p): New.
8892 (bb_has_predicate): New.
8893 (bb_predicate): New.
8894 (set_bb_predicate): New.
8895 (bb_predicate_gimplified_stmts): New.
8896 (set_bb_predicate_gimplified_stmts): New.
8897 (add_bb_predicate_gimplified_stmts): New.
8898 (init_bb_predicate): New.
8899 (free_bb_predicate): New.
8900 (is_predicated): Use bb_predicate.
8901 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
8902 (predicate_bbs): Same. Gimplify the condition of the basic blocks
8903 before processing their successors.
8904 (clean_predicate_lists): Removed.
8905 (find_phi_replacement_condition): Use bb_predicate.
8906 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
8907 computations.
8908 (insert_gimplified_predicates): New.
8909 (combine_blocks): Call insert_gimplified_predicates.
8910 (tree_if_conversion): Call free_bb_predicate instead of
8911 clean_predicate_lists.
8912
8913 2010-10-11 Paul Brook <paul@codesourcery.com>
8914
8915 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
8916 * config/arm/arm.c (all_architectures): Change v7e-m default to
8917 cortexm4.
8918 * config/arm/arm-cores.def: Add cortex-m4.
8919 * config/arm/arm-tune.md: Regenerate.
8920
8921 2010-06-11 Jan Hubicka <jh@suse.cz>
8922
8923 * ipa-pure-const.c (special_builtlin_state): New function.
8924 (check_call): Use it instead of special casign BUILT_IN_RETURN.
8925 (propagate_pure_const): Use it.
8926
8927 2010-06-11 Jan Hubicka <jh@suse.cz>
8928
8929 * df-problems.c (df_live_scratch): Convert to bitmap_head.
8930 (df_live_alloc): Initialize df_live_scratch when initializing
8931 problem_data.
8932 (df_live_transfer_function): Update uses of df_live_scratch.
8933 (df_live_free): Free problem_data; clear df_live_scratch before
8934 releasing the obstack.
8935 (df_md_free): Free problem data.
8936
8937 2010-06-11 Jan Hubicka <jh@suse.cz>
8938
8939 * doc/invoke.texi (Wsuggest-attribute): Document.
8940 (Wmissing-noreturn): Remove.
8941 * ipa-pure-const.c (warn_function_noreturn): New function.
8942 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
8943 warn_missing_noreturn.
8944 * common.opt (Wsuggest-attribute=noreturn): New.
8945 * tree-flow.h (warn_function_noreturn): Declare.
8946 * tree-cfg.c (execute_warn_function_noreturn): Use
8947 warn_function_noreturn.
8948 (gate_warn_function_noreturn): New.
8949 (pass_warn_function_noreturn): Update.
8950
8951 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8952
8953 * c-typeck.c (handle_warn_cast_qual): Add loc
8954 parameter. Improve warning message.
8955 (build_c_cast): Pass location to handle_warn_cast_qual.
8956
8957 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
8958
8959 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
8960 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
8961 insn mnemonic.
8962 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
8963
8964 2010-06-10 Dodji Seketeli <dodji@redhat.com>
8965
8966 Fix bootstap on mips
8967 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
8968 be naming typedefs.
8969
8970 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
8971
8972 * system.h (helper_const_non_const_cast): New inline for
8973 gcc version <= 4.0.
8974 (CONST_CAST2): For gcc version <= 4.0 use
8975 new helper to do const/non-const casting.
8976
8977 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8978
8979 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
8980 * Makefile.in (OBJS-common): Include insn-enums.o.
8981 (insn-enums.o): New rule.
8982 (simple_generated_c): Add insn-enums.c.
8983 (build/genenums.o): New rule.
8984 (genprogmd): Add "enums".
8985 * genconstants.c (print_enum_type): Declare a C string array
8986 for each enum.
8987 * genenums.c: New file.
8988 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
8989 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
8990 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
8991
8992 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8993
8994 * doc/md.texi (define_enum_attr): Document.
8995 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
8996 * read-md.h (lookup_enum_type): Declare.
8997 * read-md.c (lookup_enum_type): New function.
8998 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
8999 * genattrtab.c (attr_desc): Add an enum_name field.
9000 (evaluate_eq_attr): Take the associated attribute as argument.
9001 Get the enum prefix from the enum_name field, if defined.
9002 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
9003 (simplify_test_exp): Pass attr to evaluate_eq_attr.
9004 (add_attr_value): New function, split out from...
9005 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
9006 (write_test_expr): Pass attr to evaluate_eq_attr.
9007 (write_attr_get): Use the enum_name as the enum tag, if defined.
9008 (write_attr_valueq): Use the enum_name as a prefix, if defined.
9009 (find_attr): Initialize enum_name.
9010 (main): Handle DEFINE_ENUM_ATTR.
9011 * gensupport.c (process_rtx): Likewise.
9012 * config/mips/mips.h (mips_tune_attr): Delete.
9013 * config/mips/mips.md (cpu): Use define_attr_enum.
9014
9015 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9016
9017 * doc/md.texi (define_c_enum, define_enum): Document.
9018 * read-md.h (md_constant): Add a parent_enum field.
9019 (enum_value, enum_type): New structures.
9020 (upcase_string, traverse_enum_types): Declare.
9021 * read-md.c (enum_types): New variable.
9022 (upcase_string, add_constant): New functions.
9023 (handle_constants): Don't create the hash table here.
9024 Use add_constant.
9025 (traverse_md_constants): Don't check for a null md_constants.
9026 (decimal_string, handle_enum, traverse_enum_types): New functions.
9027 (read_md_files): Initialize md_constants and md_enums.
9028 * genconstants.c (print_md_constant): Ignore info argument.
9029 Only print constants that belong to no enum.
9030 (print_enum_type): New function.
9031 (main): Don't pass stdout to print_md_constant. Call print_enum_type
9032 for each defined enum type.
9033 * config/mips/mips.md (processor): New define_enum.
9034 (unspec): New define_c_enum.
9035 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
9036 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
9037 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
9038 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
9039 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
9040 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
9041 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
9042 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
9043 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
9044 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
9045 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
9046 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
9047 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
9048 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
9049 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
9050 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
9051 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
9052 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
9053 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
9054 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
9055 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
9056 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
9057 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9058 (UNSPEC_RDDSP): Move to mips-dsp.md.
9059 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
9060 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
9061 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
9062 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
9063 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
9064 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
9065 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
9066 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
9067 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
9068 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
9069 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
9070 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
9071 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
9072 Moved to mips-dspr2.md.
9073 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
9074 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
9075 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
9076 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
9077 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
9078 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
9079 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
9080 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
9081 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
9082 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
9083 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
9084 UNSPEC_LOONGSON_PSADBH)
9085 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
9086 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
9087 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
9088 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9089 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9090 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9091 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
9092 (cpu): Update comment.
9093 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
9094 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
9095 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
9096 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
9097 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
9098 UNSPEC_LOONGSON_PCMPEQ)
9099 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
9100 UNSPEC_LOONGSON_PINSR_0)
9101 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
9102 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
9103 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
9104 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
9105 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
9106 UNSPEC_LOONGSON_PSADBH)
9107 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
9108 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
9109 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
9110 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9111 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9112 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9113 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
9114 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
9115 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
9116 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
9117 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
9118 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
9119 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
9120 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
9121 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
9122 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
9123 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
9124 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
9125 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
9126 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
9127 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
9128 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
9129 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
9130 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
9131 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
9132 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
9133 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9134 (UNSPEC_RDDSP): Moved from mips.md.
9135 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
9136 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
9137 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
9138 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
9139 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
9140 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
9141 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
9142 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
9143 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
9144 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
9145 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
9146 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
9147 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
9148 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
9149 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
9150 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
9151 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
9152 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
9153 (UNSPEC_SCC): Moved from mips.md.
9154 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
9155 "processor_type" to "processor".
9156 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
9157 * config/mips/mips.h (processor_type): Delete.
9158 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
9159 "processor_type" to "processor".
9160
9161 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9162
9163 * configure.ac (tm_include_list): Add insn-constants.h.
9164 * configure: Regenerate.
9165 * Makefile.in (GTM_H): Move insn-constants.h here from...
9166 (TM_H): ...here.
9167 * mkconfig.sh: Remove special handling for insn-constants.h.
9168
9169 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9170
9171 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
9172 (BUILD_MD): ...this new variable.
9173 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
9174 that include the old contents of simple_generated_h and
9175 simple_generated_c.
9176 (simple_generated_h, simple_generated_c): Include them. Add
9177 insn-constants.h.
9178 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
9179 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
9180 Remove these dependencies from the main rule and include
9181 insn-conditions.md in the command line only if it appears
9182 in the dependency list.
9183 (insn-constants.h, s-constants): Delete.
9184 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
9185 or gensupport.h.
9186 (build/genmddeps.o): Likewise.
9187 (genprogrtl): New variable that contains everything from genprogmd
9188 except mddeps and constants.
9189 (genprogmd): Redefine in terms of genprogrtl. Make these programs
9190 depend on $(BUILD_MD)
9191 (genprog): New variable. Make these programs depend on
9192 $(BUILD_ERRORS).
9193 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
9194 (main): Use read_md_files instead of init_rtx_reader_args.
9195 * genconstants.c: As for genmddeps.c.
9196 * read-md.h (read_skip_construct): Declare.
9197 * read-md.c (read_skip_construct): New function.
9198 (handle_file): Allow a null handle_directive, skipping the
9199 construct if so.
9200 (parse_include): Update the comment accordingly.
9201
9202 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9203
9204 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
9205 * genmddeps.c: Include read-md.h.
9206 (main): Call init_rtx_reader_args instead of init_md_reader_args.
9207 * genattr.c (main): Likewise.
9208 * genattrtab.c (main): Likewise.
9209 * genautomata.c (main): Likewise.
9210 * gencodes.c (main): Likewise.
9211 * genconditions.c (main): Likewise.
9212 * genconfig.c (main): Likewise.
9213 * genconstants.c (main): Likewise.
9214 * genemit.c (main): Likewise.
9215 * genextract.c (main): Likewise.
9216 * genflags.c (main): Likewise.
9217 * genopinit.c (main): Likewise.
9218 * genoutput.c (main): Likewise.
9219 * genpeep.c (main): Likewise.
9220 * genrecog.c (main): Likewise.
9221 * genpreds.c (main): Likewise.
9222 * gensupport.h (in_fname): Move to read-md.h.
9223 (init_md_reader_args_cb): Rename to...
9224 (init_rtx_reader_args_cb): ...this and return a bool.
9225 (init_md_reader_args): Rename to...
9226 (init_rtx_reader_args): ...this and return a bool.
9227 (include_callback): Move to read-md.h.
9228 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
9229 (file_name_list, first_dir_md_include): Move to read-md.c
9230 (first_bracket_include): Delete unused variable.
9231 (last_dir_md_include): Move to read-md.c.
9232 (process_include): Delete, moving code to read-md.c:handle_include.
9233 (process_rtx): Don't handle INCLUDE.
9234 (save_string): Delete.
9235 (rtx_handle_directive): New function.
9236 (init_md_reader_args_cb): Rename to...
9237 (init_rtx_reader_args_cb): ...this and return a boolean success value.
9238 Use read_md_args.
9239 (init_md_reader_args): Rename to...
9240 (init_rtx_reader_args): ...this and return a boolean success value.
9241 * rtl.def (INCLUDE): Delete.
9242 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
9243 argument.
9244 * read-rtl.c (read_conditions): Don't gobble ')' here.
9245 (read_mapping): Likewise.
9246 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
9247 Handle top-level non-rtx constructs here rather than in read_rtx_1.
9248 Store the whole queue in *X. Remove call to init_md_reader.
9249 (read_rtx_1): Rename to...
9250 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
9251 Don't handle top-level non-rtx constructs here. Don't handle (nil)
9252 here.
9253 (read_nested_rtx): New function. Handle (nil) here rather than
9254 in read_rtx_code.
9255 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
9256 gobble ')' here.
9257 * read-md.h (directive_handler_t): New type.
9258 (in_fname, include_callback): Moved from read-md.h.
9259 (read_constants, init_md_reader): Delete.
9260 (read_md_files): Declare.
9261 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
9262 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
9263 from gensupport.c.
9264 (read_constants): Rename to...
9265 (handle_constants): ...this. Don't gobble ')' here.
9266 (handle_include, handle_file, handle_toplevel_file)
9267 (parse_include): New functions, mostly taken from gensupport.c.
9268 (init_md_reader): Subsume into...
9269 (read_md_files): ...this new function.
9270
9271 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9272
9273 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
9274 (unread_char): Decrement read_md_lineno after putting back '\n'.
9275 * read-md.c (fatal_with_file_and_line): Push back any characters
9276 that we decide not to add to the context.
9277 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
9278 fatal_expected_char in cases where '/' ends a line (for example).
9279 (read_name): Don't increment read_md_lineno here.
9280 (read_escape): Likewise.
9281 (read_quoted_string): Likewise.
9282 (read_braced_string): Likewise.
9283
9284 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9285
9286 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
9287 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
9288 * genconstants.c: Include read-md.h.
9289 * read-rtl.c (md_constants): Move to read-md.c.
9290 (md_name): Move to read-md.h.
9291 (initialize_iterators): Use leading_string_hash instead of def_hash
9292 and leading_string_eq_p instead of def_name_eq_p.
9293 (read_name): Move to read-md.c.
9294 (def_hash, def_name_eq_p): Delete.
9295 (read_constants, traverse_md_constants): Move to read-md.c.
9296 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
9297 * read-md.h: Include hashtab.h.
9298 (md_name): Moved from read-rtl.c.
9299 (md_constant): Moved from read-md.h.
9300 (leading_string_hash, leading_string_eq_p, read_name)
9301 (read_constants, traverse_md_constants): Declare.
9302 * read-md.c (md_constants): Moved from read-rtl.c.
9303 (leading_string_hash, leading_string_eq_p): New functions.
9304 (read_name, read_constants, traverse_md_constants): Moved from
9305 read-rtl.c.
9306
9307 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9308
9309 * read-rtl.c (md_name): New structure.
9310 (read_name): Take an md_name instead of a buffer pointer.
9311 Use the "string" field instead of strcpy when expanding constants.
9312 (read_constants): Remove the tmp_char argument. Update the calls
9313 to read_name, using two local name buffers instead of the tmp_char
9314 argument. Merge the constant-creation code.
9315 (read_conditions): Remove the tmp_char argument. Update the calls
9316 to read_name, using a local name buffer instead of the tmp_char
9317 argument.
9318 (read_mapping): Replace tmp_char variable with a local name buffer.
9319 Update the calls to read_name.
9320 (read_rtx_1): Likewise. Update the calls to read_constants and
9321 read_conditions.
9322
9323 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9324
9325 * Makefile.in (build/read-md.o): Depend on errors.h.
9326 * read-md.h (error_with_line): Declare.
9327 * read-md.c: Include errors.h.
9328 (message_with_line_1): New function, extracted from...
9329 (message_with_line): ...here.
9330 (error_with_line): New function.
9331 * genattrtab.c: If a call to message_with_line is followed by
9332 "have_error = 1;", replace both statements with a call to
9333 error_with_line.
9334 * genoutput.c: Likewise.
9335 * genpreds.c: Likewise.
9336 * genrecog.c: If a call to message_with_line is followed by
9337 "error_count++;", replace both statements with a call to
9338 error_with_line.
9339 (errorcount): Delete.
9340 (main): Don't check it.
9341 * gensupport.c: If a call to message_with_line is followed by
9342 "errors = 1;", replace both statements with a call to error_with_line.
9343 (errors): Delete.
9344 (process_define_cond_exec): Check have_error instead of errors.
9345 (init_md_reader_args_cb): Likewise. Don't set errors.
9346
9347 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9348
9349 * read-md.h (read_md_file): Declare.
9350 (read_char, unread_char): New functions.
9351 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
9352 (read_quoted_string, read_string): Remove FILE * argument.
9353 * read-md.c (read_md_file): New variable.
9354 (read_md_filename, read_md_lineno): Update comments and remove
9355 unnecessary initialization.
9356 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
9357 (read_escape, read_quoted_string, read_braced_string, read_string):
9358 Remove FILE * argument. Update calls accordingly, using read_char
9359 and unread_char instead of getc and ungetc.
9360 * rtl.h (read_rtx): Remove FILE * argument.
9361 * read-rtl.c (iterator_group): Remove FILE * argument from
9362 "find_builtin".
9363 (iterator_traverse_data): Remove "infile" field.
9364 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
9365 (add_mapping, read_name, read_constants, read_conditions)
9366 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
9367 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
9368 Remove file arguments from all calls, using read_char and unread_char
9369 instead of getc and ungetc.
9370 * gensupport.c (process_include): Preserve read_md_file around
9371 the include. Set read_md_file to the handle of the included file.
9372 Update call to read_rtx.
9373 (init_md_reader_args_cb): Set read_md_file to the handle of the file
9374 and remove local FILE *. Update calls to read_rtx.
9375
9376 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9377
9378 * read-md.h (read_rtx_lineno): Rename to...
9379 (read_md_lineno): ...this.
9380 (read_rtx_filename): Rename to...
9381 (read_md_filename): ...this.
9382 (copy_rtx_ptr_loc): Rename to...
9383 (copy_md_ptr_loc): ...this.
9384 (print_rtx_ptr_loc): Rename to...
9385 (print_md_ptr_loc): ...this.
9386 * read-md.c: Likewise. Update references after renaming.
9387 (string_obstack): Replace RTL with MD in comment.
9388 (set_rtx_ptr_loc): Rename to...
9389 (set_md_ptr_loc): ...this.
9390 (get_rtx_ptr_loc): Rename to...
9391 (get_md_ptr_loc): ...this.
9392 * genconditions.c: Update references after renaming.
9393 * genemit.c: Likewise.
9394 * genoutput.c: Likewise.
9395 * genpreds.c: Likewise.
9396 * gensupport.c: Likewise.
9397 * read-rtl.c: Likewise.
9398
9399 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
9400
9401 * Makefile.in (READ_MD_H): New variable.
9402 (BUILD_RTL): Add build/read-md.o.
9403 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
9404 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
9405 (build/genattrtab.o, build/genconditions.o build/genemit.o)
9406 (build/genextract.o, build/genflags.o, build/genoutput.o)
9407 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
9408 (build/read-md.o): New rule.
9409 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
9410 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
9411 * coretypes.h: ...here.
9412 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
9413 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
9414 * genattr.c: Include read-md.h.
9415 * genattrtab.c: Likewise.
9416 * genconditions.c: Likewise.
9417 * genemit.c: Likewise.
9418 * genextract.c: Likewise.
9419 * genflags.c: Likewise.
9420 * genoutput.c: Likewise.
9421 * genpreds.c: Likewise.
9422 * genrecog.c: Likewise.
9423 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
9424 (join_c_conditions, print_c_condition, read_rtx_filename)
9425 (read_rtx_lineno): Move to read-md.h.
9426 * read-rtl.c: Include read-md.h.
9427 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
9428 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
9429 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
9430 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
9431 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
9432 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
9433 (read_braced_string, read_string): Move to read-md.c.
9434 (read_rtx): Move some initialization to init_md_reader and call
9435 init_md_reader here.
9436 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
9437 Move to read-md.h.
9438 * gensupport.c: Include read-md.h.
9439 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
9440 * read-md.h, read-md.c: New files.
9441
9442 2010-06-10 Anatoly Sokolov <aesok@post.ru>
9443
9444 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9445 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9446 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
9447 * config/moxie/moxie.c (moxie_function_value): Make static.
9448 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
9449 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9450
9451 2010-06-10 Martin Jambor <mjambor@suse.cz>
9452
9453 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
9454 * dbgcnt.def (tree_sra): New counter.
9455 * tree-sra.c: Include dbgcnt.h.
9456 (gate_intra_sra): Check tree_sra debug counter.
9457
9458 2010-06-10 Martin Jambor <mjambor@suse.cz>
9459
9460 PR tree-optimization/44258
9461 * tree-sra.c (build_access_subtree): Return false iff there is a
9462 partial overlap.
9463 (build_access_trees): Likewise.
9464 (analyze_all_variable_accesses): Disqualify candidates if
9465 build_access_trees returns true for them.
9466
9467 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
9468
9469 PR debug/41371
9470 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
9471 tail-recurse into canonical node. Fast-forward over
9472 non-canonical VALUEs.
9473
9474 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
9475
9476 PR boostrap/44470
9477 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
9478 (*addsi_1_zext) <TYPE_LEA>: Likewise.
9479 (add lea splitter): Likewise.
9480 (add_zext lea splitter): Likewise.
9481
9482 2010-06-10 Joseph Myers <joseph@codesourcery.com>
9483
9484 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
9485
9486 2010-06-10 Jan Hubicka <jh@suse.cz>
9487
9488 * df-problems.c (df_live_problem_data): Add live_bitmaps.
9489 (df_live_alloc): Initialize problem data and live_osbtacks.
9490 (df_live_finalize): Remove obstack, problem data; do not
9491 clear all bitmaps.
9492 (df_live_top_dump, df_live_bottom_dump): Do not dump old
9493 data when not allocated.
9494 (df_live_verify_solution_start): Do not allocate problem data.
9495 (df_live_verify_solution_end): Check if out is allocated.
9496 (struct df_md_problem_data): New structure.
9497 (df_md_alloc): Allocate problem data.
9498 (df_md_free): Free problem data; do not clear bitmaps.
9499
9500 2010-06-10 Jan Beulich <jbeulich@novell.com>
9501
9502 PR bootstrap/37304
9503 * configure.ac: Replace $() with ${} when intending to expand
9504 variables rather than invoking commands.
9505 * configure: Re-generate.
9506
9507 2010-06-10 Jan Hubicka <jh@suse.cz>
9508
9509 PR rtl-optimization/44460
9510 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
9511 TYPE_NEEDS_CONSTRUCTING sanity check.
9512
9513 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
9514
9515 * doc/include/fdl.texi: Move to GFDL version 1.3.
9516
9517 * doc/cpp.texi: Move to GFDL version 1.3.
9518 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
9519 * doc/gccint.texi: Move to GFDL version 1.3.
9520 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
9521 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
9522 * doc/invoke.texi: Move to GFDL version 1.3.
9523
9524 2010-06-09 Jan Hubicka <jh@suse.cz>
9525
9526 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
9527 Break out from ...
9528 (propagate) ... here; swap the order.
9529
9530 2010-06-09 Jan Hubicka <jh@suse.cz>
9531
9532 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
9533 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
9534 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
9535 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
9536
9537 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
9538
9539 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
9540 Do not the gather memory reference in the outer loop if the step
9541 is not a constant.
9542
9543 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
9544
9545 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
9546 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
9547 8 to 4. Minor change of the related comments.
9548
9549 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
9550
9551 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
9552 the scev analysis when the variable is not used outside the loop
9553 in a close phi node: call compute_overall_effect_of_inner_loop.
9554
9555 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
9556
9557 * graphite-sese-to-poly.c (single_pred_cond): Renamed
9558 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
9559 (build_sese_conditions_before): Renamed call to single_pred_cond.
9560 (build_sese_conditions_after): Same.
9561
9562 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
9563
9564 * graphite-poly.h: Fix comments and indentation.
9565 * graphite-sese-to-poly.c: Same.
9566 (build_sese_conditions_before): Compute stmt and gbb only when needed.
9567 * tree-chrec.c: Fix comments and indentation.
9568 (tree-ssa-loop-niter.c): Same.
9569
9570 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
9571
9572 PR rtl-optimization/42461
9573 * dce.c (deletable_insn_p): Return true for const or pure calls again.
9574 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
9575
9576 2010-06-09 Jan Hubicka <jh@suse.cz>
9577
9578 * bitmap.c (bitmap_and): Walk array forward.
9579 (bitmap_and_compl_into): Likewise.
9580 (bitmap_xor): Likewise.
9581 (bitmap_xor_into): Likewise.
9582 (bitmap_equal_p): Likewise.
9583 (bitmap_intersect_p): Likewise.
9584 (bitmap_intersect_compl_p): Likewise.
9585 (bitmap_ior_and_into): Likewise.
9586 (bitmap_elt_copy): Likewise.
9587 (bitmap_and_compl): Likewise.
9588 (bitmap_elt_ior): Likewise.
9589
9590 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
9591
9592 * opts-common.c (prune_options): Ensure replacement argv array
9593 is correctly terminated by a NULL entry.
9594
9595 2010-06-09 Jan Hubicka <jh@suse.cz>
9596
9597 * cgraph.h (varpool_first_static_initializer,
9598 varpool_next_static_initializer): Make checking only when
9599 checking enabled.
9600 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
9601 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
9602 gcc_assert to gcc_checking_assert.
9603 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
9604 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
9605 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
9606 op_iter_init_phiuse, op_iter_init_phidef,
9607 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
9608 gcc_checking_assert.
9609 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
9610 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
9611 partition_is_global, live_on_entry, live_on_exit,
9612 live_merge_and_clear): Likewise.
9613 * system.h (gcc_checking_assert): New macro.
9614 * gimple.h (set_bb_seq): Use gcc_checking_assert.
9615
9616 2010-06-09 Jason Merrill <jason@redhat.com>
9617
9618 * Makefile.in (TAGS): Collect tags info from c-family.
9619
9620 2010-06-09 Jan Hubicka <jh@suse.cz>
9621
9622 * gimple.h (gcc_gimple_checking_assert): New macro.
9623 (gimple_set_def_ops, gimple_set_use_ops,
9624 gimple_set_vuse, gimple_set_vdef,
9625 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
9626 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
9627 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
9628 gimple_asm_output_op, gimple_asm_output_op_ptr,
9629 gimple_asm_set_output_op, gimple_asm_clobber_op,
9630 gimple_asm_set_clobber_op, gimple_asm_label_op,
9631 gimple_asm_set_label_op, gimple_try_set_kind,
9632 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
9633 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
9634 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
9635 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
9636 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
9637 gimple_omp_for_set_initial, gimple_omp_for_final,
9638 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
9639 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
9640 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
9641 conditional with ENABLE_GIMPLE_CHECKING.
9642 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
9643
9644 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
9645
9646 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
9647 (get_computation_cost_at): Use it.
9648 (determine_use_iv_cost_condition): Likewise.
9649 (determine_iv_cost): Likewise.
9650
9651 2010-06-09 Richard Guenther <rguenther@suse.de>
9652
9653 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
9654 replace constants.
9655
9656 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
9657
9658 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
9659
9660 2010-06-09 Martin Jambor <mjambor@suse.cz>
9661
9662 PR tree-optimization/44423
9663 * tree-sra.c (dump_access): Dump also grp_assignment_read.
9664 (analyze_access_subtree): Pass negative allow_replacements to children
9665 if the current type is scalar.
9666
9667 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
9668
9669 PR testsuite/42843
9670 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
9671 * doc/plugins.texi (Plugin license check): Update information
9672 on type of plugin_is_GPL_compatible.
9673 * Makefile.in (PLUGINCC): Define as $(COMPILER).
9674 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
9675
9676 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
9677
9678 * config/arm/arm.c (thumb2_reorg): New function.
9679 (arm_reorg): Call it.
9680 * config/arm/thumb2.md (define_peephole2 for flag clobbering
9681 arithmetic operations): Delete.
9682
9683 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
9684
9685 PR target/44067
9686 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
9687 e500v2 target.
9688
9689 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
9690
9691 PR plugins/44459
9692 * gcc-plugin.h: Encapsulate all declarations in extern "C".
9693
9694 2010-06-08 Jan Hubicka <jh@suse.cz>
9695
9696 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
9697 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
9698
9699 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
9700
9701 PR tree-optimization/39874
9702 PR middle-end/28685
9703 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
9704 Declare.
9705 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
9706 same_bool_result_p): New.
9707 (and_var_with_comparison, and_var_with_comparison_1,
9708 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
9709 (or_var_with_comparison, or_var_with_comparison_1,
9710 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
9711 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
9712 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
9713 of combine_comparisons.
9714 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
9715
9716 2010-06-08 Anatoly Sokolov <aesok@post.ru>
9717
9718 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9719 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9720 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
9721 pdp11_function_value_regno_p): New functions.
9722 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9723 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9724
9725 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
9726
9727 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
9728 Thumb-2 in the MINUS case.
9729
9730 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9731
9732 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
9733
9734 * doc/gty.texi (GTY Options): Document typed GC allocation and
9735 variable_size GTY option.
9736
9737 * ggc-internal.h: New.
9738
9739 * ggc.h: Update copyright year.
9740 (digit_string): Move to stringpool.c.
9741 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
9742 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
9743 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
9744 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
9745 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
9746 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
9747 (ggc_force_collect, ggc_get_size, ggc_statistics)
9748 (ggc_print_common_statistics): Move to ggc-internal.h.
9749 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
9750 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
9751 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
9752 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
9753 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
9754 (ggc_alloc_zone_pass_stat): Remove.
9755 (ggc_internal_alloc_stat, ggc_internal_alloc)
9756 (ggc_internal_cleared_alloc_stat): New.
9757 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
9758 (ggc_internal_vec_alloc_stat)
9759 (ggc_internal_cleared_vec_alloc_stat)
9760 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
9761 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
9762 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
9763 (ggc_cleared_alloc_ptr_array_two_args): New.
9764 (htab_create_ggc, splay_tree_new_ggc): Redefine.
9765 (ggc_splay_alloc): Change the type of the first argument to
9766 enum gt_types_enum.
9767 (ggc_alloc_string): Make macro.
9768 (ggc_alloc_string_stat): New.
9769 (ggc_strdup): Redefine.
9770 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
9771 (ggc_alloc_rtvec_sized): New.
9772 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
9773 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
9774 (ggc_internal_cleared_alloc_zone_stat)
9775 (ggc_internal_zone_alloc_stat)
9776 (ggc_internal_zone_cleared_alloc_stat)
9777 (ggc_internal_zone_vec_alloc_stat)
9778 (ggc_alloc_zone_rtx_def_stat)
9779 (ggc_alloc_zone_tree_node_stat)
9780 (ggc_alloc_zone_cleared_tree_node_stat)
9781 (ggc_alloc_cleared_gimple_statement_d_stat): New.
9782
9783 * ggc-common.c: Include ggc-internal.h.
9784 (ggc_internal_cleared_alloc_stat): Rename from
9785 ggc_alloc_cleared_stat.
9786 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
9787 (ggc_calloc): Remove.
9788 (ggc_cleared_alloc_htab_ignore_args): New.
9789 (ggc_cleared_alloc_ptr_array_two_args): New.
9790 (ggc_splay_alloc): Add obj_type parameter.
9791 (init_ggc_heuristics): Formatting fixes.
9792
9793 * ggc-none.c: Update copyright year.
9794 (ggc_alloc_stat): Rename to ggc_alloc_stat.
9795 (ggc_alloc_cleared_stat): Rename to
9796 ggc_internal_cleared_alloc_stat.
9797 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
9798
9799 * ggc-page.c: Update copyright year. Include ggc-internal.h.
9800 Remove references to ggc_alloc in comments.
9801 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
9802 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
9803 (new_ggc_zone, destroy_ggc_zone): Remove.
9804 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
9805
9806 * ggc-zone.c: Include ggc-internal.h. Remove references to
9807 ggc_alloc in comments.
9808 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
9809 (ggc_internal_alloc_zone_pass_stat): New.
9810 (ggc_internal_cleared_alloc_zone_stat): New.
9811 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
9812 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
9813 (new_ggc_zone, destroy_ggc_zone): Remove.
9814
9815 * stringpool.c: Update copyright year. Include ggc-internal.h
9816 (digit_vector): Make static.
9817 (digit_string): Moved from ggc.h.
9818 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
9819 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
9820
9821 * Makefile.in (GGC_INTERNAL_H): New.
9822 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
9823 $(GGC_INTERNAL_H) to dependencies.
9824
9825 * gentype.c: Update copyright year.
9826 (walk_type): Accept variable_size GTY option.
9827 (USED_BY_TYPED_GC_P): New macro.
9828 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
9829 whitespace at the end of strings.
9830 (get_type_specifier, variable_size_p): New functions.
9831 (alloc_quantity, alloc_zone): New enums.
9832 (write_typed_alloc_def): New function.
9833 (write_typed_struct_alloc_def): Likewise.
9834 (write_typed_typed_typedef_alloc_def): Likewise.
9835 (write_typed_alloc_defns): Likewise.
9836 (output_typename, write_splay_tree_allocator_def): Likewise.
9837 (write_splay_tree_allocators): Likewise.
9838 (main): Call write_typed_alloc_defns and
9839 write_splay_tree_allocators.
9840
9841 * lto-streamer.h (lto_file_decl_data_ptr): New.
9842
9843 * passes.c (order): Define using cgraph_node_ptr.
9844
9845 * strinpool.c (struct string_pool_data): Declare nested_ptr using
9846 ht_identifier_ptr.
9847
9848 * gimple.h (union gimple_statement_d): Likewise.
9849
9850 * rtl.h (struct rtx_def): Likewise.
9851 (struct rtvec_def): Likewise.
9852
9853 * tree.h (union tree_node): Likewise.
9854
9855 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
9856
9857 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
9858
9859 * tree-scalar-evolution.c (scev_initialize): Likewise.
9860
9861 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
9862
9863 * dwarf2asm.c (dw2_force_const_mem): Likewise.
9864
9865 * omp-low.c (lower_omp_critical): Likewise.
9866
9867 * bitmap.h (struct bitmap_head_def): Update comment to not
9868 reference ggc_alloc.
9869
9870 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
9871
9872 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
9873
9874 * ipa-prop.c (duplicate_ggc_array): Rename to
9875 duplicate_ipa_jump_func_array. Use typed GC allocation.
9876 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
9877
9878 * gimple.c (gimple_alloc_stat): Use
9879 ggc_alloc_cleared_gimple_statement_d_stat.
9880
9881 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
9882
9883 * tree.c (make_node_stat): Use
9884 ggc_alloc_zone_cleared_tree_node_stat.
9885 (make_tree_vec_stat): Likewise.
9886 (build_vl_exp_stat): Likewise.
9887 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
9888 (make_tree_binfo_stat): Likewise.
9889 (tree_cons_stat): Likewise.
9890
9891 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
9892 (shallow_copy_rtx_stat): Likewise.
9893 (make_node_stat): Likewise.
9894
9895 * lto-symtab.c: Fix comment.
9896
9897 * tree-cfg.c (create_bb): Update comment to not reference
9898 ggc_alloc_cleared.
9899 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
9900
9901 * varpool.c (varpool_node): Use typed GC allocation.
9902 (varpool_extra_name_alias): Likewise.
9903
9904 * varasm.c (emutls_decl): Likewise.
9905 (get_unnamed_section): Likewise.
9906 (get_noswitch_section): Likewise.
9907 (get_section): Likewise.
9908 (get_block_for_section): Likewise.
9909 (build_constant_desc): Likewise.
9910 (create_constant_pool): Likewise.
9911 (force_const_mem): Likewise.
9912
9913 * tree.c (build_vl_exp_stat): Likewise.
9914 (build_real): Likewise.
9915 (build_string): Likewise.
9916 (decl_debug_expr_insert): Likewise.
9917 (decl_value_expr_insert): Likewise.
9918 (type_hash_add): Likewise.
9919 (build_omp_clause): Likewise.
9920
9921 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
9922
9923 * tree-ssa.c (init_tree_ssa): Likewise.
9924
9925 * tree-ssa-structalias.c (heapvar_insert): Likewise.
9926
9927 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
9928
9929 * tree-ssa-loop-niter.c (record_estimate): Likewise.
9930
9931 * tree-ssa-alias.c (get_ptr_info): Likewise.
9932
9933 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
9934
9935 * tree-phinodes.c (allocate_phi_node): Likewise.
9936
9937 * tree-iterator.c (tsi_link_before): Likewise.
9938 (tsi_link_after): Likewise.
9939
9940 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
9941
9942 * tree-dfa.c (create_var_ann): Likewise.
9943
9944 * tree-cfg.c (create_bb): Likewise.
9945
9946 * toplev.c (alloc_for_identifier_to_locale): Likewise.
9947 (general_init): Likewise.
9948
9949 * stringpool.c (stringpool_ggc_alloc): Likewise.
9950 (gt_pch_save_stringpool): Likewise.
9951
9952 * sese.c (if_region_set_false_region): Likewise.
9953
9954 * passes.c (do_per_function_toporder): Likewise.
9955
9956 * optabs.c (set_optab_libfunc): Likewise.
9957 (set_conv_libfunc): Likewise.
9958
9959 * lto-symtab.c (lto_symtab_register_decl): Likewise.
9960
9961 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
9962 (input_eh_region): Likewise.
9963 (input_eh_lp): Likewise.
9964 (make_new_block): Likewise.
9965 (unpack_ts_real_cst_value_fields): Likewise.
9966
9967 * lto-section-in.c (lto_new_in_decl_state): Likewise.
9968
9969 * lto-cgraph.c (input_node_opt_summary): Likewise.
9970
9971 * loop-init.c (loop_optimizer_init): Likewise.
9972
9973 * lambda.h (lambda_vector_new): Likewise.
9974
9975 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
9976
9977 * ira.c (update_equiv_regs): Likewise.
9978
9979 * ipa.c (cgraph_node_set_new): Likewise.
9980 (cgraph_node_set_add): Likewise.
9981 (varpool_node_set_new): Likewise.
9982 (varpool_node_set_add): Likewise.
9983
9984 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
9985 (duplicate_ipa_jump_func_array): Likewise.
9986 (ipa_read_node_info): Likewise.
9987
9988 * ipa-cp.c (ipcp_create_replace_map): Likewise.
9989
9990 * integrate.c (get_hard_reg_initial_val): Likewise.
9991
9992 * gimple.c (gimple_alloc_stat): Likewise.
9993 (gimple_build_omp_for): Likewise.
9994 (gimple_seq_alloc): Likewise.
9995 (gimple_copy): Likewise.
9996
9997 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
9998 (gsi_insert_after_without_update): Likewise.
9999
10000 * function.c (add_frame_space): Likewise.
10001 (insert_temp_slot_address): Likewise.
10002 (assign_stack_temp_for_type): Likewise.
10003 (allocate_struct_function): Likewise.
10004 (types_used_by_var_decl_insert): Likewise.
10005
10006 * except.c (init_eh_for_function): Likewise.
10007 (gen_eh_region): Likewise.
10008 (gen_eh_region_catch): Likewise.
10009 (gen_eh_landing_pad): Likewise.
10010 (add_call_site): Likewise.
10011
10012 * emit-rtl.c (get_mem_attrs): Likewise.
10013 (get_reg_attrs): Likewise.
10014 (start_sequence): Likewise.
10015 (init_emit): Likewise.
10016
10017 * dwarf2out.c (new_cfi): Likewise.
10018 (queue_reg_save): Likewise.
10019 (dwarf2out_frame_init): Likewise.
10020 (new_loc_descr): Likewise.
10021 (find_AT_string): Likewise.
10022 (new_die): Likewise.
10023 (add_var_loc_to_decl): Likewise.
10024 (clone_die): Likewise.
10025 (clone_as_declaration): Likewise.
10026 (break_out_comdat_types): Likewise.
10027 (new_loc_list): Likewise.
10028 (loc_descriptor): Likewise.
10029 (add_loc_descr_to_each): Likewise.
10030 (add_const_value_attribute): Likewise.
10031 (tree_add_const_value_attribute): Likewise.
10032 (add_comp_dir_attribute): Likewise.
10033 (add_name_and_src_coords_attributes): Likewise.
10034 (lookup_filename): Likewise.
10035 (store_vcall_insn): Likewise.
10036 (dwarf2out_init): Likewise.
10037
10038 * dbxout.c (dbxout_init): Likewise.
10039
10040 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10041
10042 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10043
10044 * config/score/score7.c (score7_output_external): Likewise.
10045
10046 * config/score/score3.c (score3_output_external): Likewise.
10047
10048 * config/s390/s390.c (s390_init_machine_status): Likewise.
10049
10050 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
10051 (rs6000_init_machine_status): Likewise.
10052 (output_toc): Likewise.
10053
10054 * config/pa/pa.c (pa_init_machine_status): Likewise.
10055 (get_deferred_plabel): Likewise.
10056
10057 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
10058
10059 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
10060
10061 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
10062
10063 * config/mep/mep.c (mep_init_machine_status): Likewise.
10064 (mep_note_pragma_flag): Likewise.
10065
10066 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
10067
10068 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
10069
10070 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
10071
10072 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
10073 (i386_pe_maybe_record_exported_symbol): Likewise.
10074
10075 * config/i386/i386.c (get_dllimport_decl): Likewise.
10076 (ix86_init_machine_status): Likewise.
10077 (assign_386_stack_local): Likewise.
10078
10079 * config/frv/frv.c (frv_init_machine_status): Likewise.
10080
10081 * config/darwin.c (machopic_indirection_name): Likewise.
10082
10083 * config/cris/cris.c (cris_init_machine_status): Likewise.
10084
10085 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
10086
10087 * config/avr/avr.c (avr_init_machine_status): Likewise.
10088
10089 * config/arm/arm.c (arm_init_machine_status): Likewise.
10090
10091 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
10092 (alpha_need_linkage): Likewise.
10093 (alpha_use_linkage): Likewise.
10094
10095 * cgraph.c (cgraph_allocate_node): Likewise.
10096 (cgraph_create_edge_1): Likewise.
10097 (cgraph_create_indirect_edge): Likewise.
10098 (cgraph_add_asm_node): Likewise.
10099
10100 * cfgrtl.c (init_rtl_bb_info): Likewise.
10101
10102 * cfgloop.c (alloc_loop): Likewise.
10103 (rescan_loop_exit): Likewise.
10104
10105 * cfg.c (init_flow): Likewise.
10106 (alloc_block): Likewise.
10107 (unchecked_make_edge): Likewise.
10108
10109 * c-parser.c (c_parse_init): Likewise.
10110 (c_parse_file): Likewise.
10111
10112 * c-decl.c (bind): Likewise.
10113 (record_inline_static): Likewise.
10114 (push_scope): Likewise.
10115 (make_label): Likewise.
10116 (lookup_label_for_goto): Likewise.
10117 (finish_struct): Likewise.
10118 (finish_enum): Likewise.
10119 (c_push_function_context): Likewise.
10120
10121 * bitmap.c (bitmap_element_allocate): Likewise.
10122 (bitmap_gc_alloc_stat): Likewise.
10123
10124 * alias.c (record_alias_subset): Likewise.
10125 (init_alias_analysis): Likewise.
10126
10127 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
10128
10129 * fold-const.c (fold_comparison): Remove redundant parenthesis.
10130 * tree-inline.c (expand_call_inline): Pass translated return value of
10131 cgraph_inline_failed_string to diagnostic function.
10132
10133 2010-06-08 Andrew Pinski <pinskia@gmail.com>
10134 Shujing Zhao <pearly.zhao@oracle.com>
10135
10136 PR c/37724
10137 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
10138 implicit bad conversions is initialization.
10139 (error_init): Use gmsgid instead of msgid for argument name and change
10140 the call for error.
10141 (pedwarn_init): Use gmsgid instead of msgid for argument name and
10142 change the call for pedwarn.
10143 (warning_init): Use gmsgid instead of msgid for argument name and
10144 change the call for warning.
10145
10146 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
10147
10148 * config/mips/mips-protos.h (mips_print_operand): Delete.
10149 (mips_print_operand_address): Delete.
10150 * config/mips/mips.h (mips_print_operand_punct): Delete.
10151 (PRINT_OPERAND): Delete.
10152 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10153 (PRINT_OPERAND_ADDRESS): Delete.
10154 * config/mips/mips.c (mips_print_operand_punct): Make static.
10155 (mips_print_operand_address): Make static.
10156 (mips_print_operand): Make static. Call
10157 mips_print_operand_punct_valid_p.
10158 (mips_print_operand_punct_valid_p): New function.
10159 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10160 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10161
10162 2010-06-07 Jan Hubicka <jh@suse.cz>
10163
10164 PR middle-end/44454
10165 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
10166 are allocated.
10167
10168 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
10169
10170 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
10171 name of RECORD.
10172
10173 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10174
10175 * doc/sourcebuild.texi (Effective-Target Keywords, Other
10176 attributes): Document gas.
10177
10178 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
10179
10180 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
10181 <TYPE_LEA>: Split instruction.
10182 <default>: Remove alternative 2 handling.
10183 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
10184 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
10185 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
10186
10187 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
10188 (ashift_zext lea splitter): Use DImode for multiplication.
10189
10190 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
10191 to generate addition.
10192
10193 2010-06-07 Joseph Myers <joseph@codesourcery.com>
10194
10195 * common.opt (fira-verbose): Use Var.
10196 (fpcc-struct-return): Use Init instead of VarExists.
10197 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
10198 toplev.c.
10199 * flags.h (flag_signed_char, flag_short_enums,
10200 flag_pcc_struct_return, flag_ira_verbose,
10201 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
10202 * toplev.c (flag_detailed_statistics, flag_signed_char,
10203 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
10204 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
10205 * toplev.h (flag_crossjumping, flag_if_conversion,
10206 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
10207 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
10208 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
10209 flag_cprop_registers, time_report, flag_ira_loop_pressure,
10210 flag_ira_coalesce, flag_ira_move_spills,
10211 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
10212
10213 2010-06-07 Jan Hubicka <jh@suse.cz>
10214
10215 * df-core.c (df_analyze_problem): Do verification after allocation.
10216
10217 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
10218 (df_lr_alloc): Initialize problem data; move bitmaps to
10219 lr_bitmaps obstack.
10220 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
10221 (df_lr_verify_solution_start): Do not initialize problem data;
10222 allocate bitmaps in lr_bitmaps.
10223 (df_lr_verify_solution_end): Do not free problem data.
10224
10225 2010-06-07 Jan Hubicka <jh@suse.cz>
10226
10227 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
10228 if caller is noreturn.
10229 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
10230 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
10231 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
10232 * ipa-pure-const.c (check_decl): Add IPA parameter.
10233 (state_from_flags): New function.
10234 (better_state, worse_state): New functions.
10235 (check_call): When in IPA mode, do not care about callees.
10236 (check_load, check_store): Update.
10237 (check_ipa_load, check_ipa_store): New.
10238 (check_stmt): When in IPA mode, use IPA checkers.
10239 (analyze_function): Use state_from_flags.
10240 (propagate): Check indirect edges and references.
10241
10242 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
10243
10244 PR rtl-optimization/44404
10245 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
10246 of count_occurrences to see if it's safe to modify mem_insn.
10247
10248 2010-06-07 Richard Guenther <rguenther@suse.de>
10249
10250 * gimplify.c (gimplify_cleanup_point_expr): For empty body
10251 and EH-only cleanup drop the cleanup instead of inserting it
10252 unconditionally.
10253
10254 2010-06-07 Ira Rosen <irar@il.ibm.com>
10255
10256 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
10257 documentation.
10258 * targhooks.c (default_builtin_vectorization_cost): New function.
10259 * targhooks.h (default_builtin_vectorization_cost): Declare.
10260 * target.h (enum vect_cost_for_stmt): Define.
10261 (builtin_vectorization_cost): Change argument and comment.
10262 * tree-vectorizer.h: Remove cost model macros.
10263 * tree-vect-loop.c: Include target.h.
10264 (vect_get_cost): New function.
10265 (vect_estimate_min_profitable_iters): Replace cost model macros with
10266 calls to vect_get_cost.
10267 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
10268 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
10269 default implementation.
10270 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
10271 calls to target hook builtin_vectorization_cost.
10272 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
10273 Likewise.
10274 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
10275 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
10276 implementation to return costs.
10277 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
10278 * config/spu/spu.h: Remove vectorizer cost model macros.
10279 * config/i386/i386.h: Likewise.
10280 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
10281 a call to target hook builtin_vectorization_cost.
10282
10283 2010-06-06 Sriraman Tallam <tmsriram@google.com>
10284
10285 PR target/44319
10286 * config/i386/i386.c (override_options): Turn zee pass on for level 2
10287 and above and defer till target is known.
10288 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
10289 turn off otherwise.
10290
10291 2010-05-25 Jan Hubicka <jh@suse.cz>
10292
10293 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
10294 (df_compact_blocks): Likewise.
10295 * df.h (struct df): Turn hardware_regs_used,
10296 regular_block_artificial_uses, eh_block_artificial_uses,
10297 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
10298 bitmap_head.
10299 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
10300 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
10301 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
10302 df_scan_blocks, df_insn_delete, df_insn_rescan,
10303 df_insn_rescan_debug_internal, df_insn_rescan_all,
10304 df_process_deferred_rescans, df_process_deferred_rescans,
10305 df_notes_rescan, df_get_call_refs, df_get_call_refs,
10306 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
10307 df_record_entry_block_defs, df_record_exit_block_uses,
10308 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
10309 df_scan_verify): Update.
10310
10311 2010-05-25 Dodji Seketeli <dodji@redhat.com>
10312
10313 PR c++/44188
10314 * c-common.c (is_typedef_decl): Move this definition ...
10315 * tree.c (is_typedef_decl): ... here.
10316 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
10317 * c-common.h (is_typedef_decl): Move this declaration ...
10318 * tree.h (is_typedef_decl): ... here.
10319 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
10320 * dwarf2out.c (is_naming_typedef_decl): New function.
10321 (gen_tagged_type_die): Split out of ...
10322 (gen_type_die_with_usage): ... this function. When an anonymous
10323 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
10324 is emitted for the typedef.
10325 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
10326 anonymous tagged types.
10327
10328 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
10329
10330 PR c/20000
10331 * c-decl.c (grokdeclarator): Delete warning.
10332
10333 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
10334
10335 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
10336 newly built CALL_EXPR.
10337 * tree-profile.c (tree_profiling): Don't profile functions produced
10338 for built-in stuff.
10339
10340 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
10341
10342 PR bootstrap/44427
10343 PR bootstrap/44428
10344 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
10345 endianness-independent.
10346
10347 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
10348
10349 * c-common.c: Move to c-family/.
10350 * c-common.def: Likewise.
10351 * c-common.h: Likewise.
10352 * c-cppbuiltin.c: Likewise.
10353 * c-dump.c: Likewise.
10354 * c-format.c: Likewise.
10355 * c-format.h : Likewise.
10356 * c-gimplify.c: Likewise.
10357 * c-lex.c: Likewise.
10358 * c-omp.c: Likewise.
10359 * c.opt: Likewise.
10360 * c-opts.c: Likewise.
10361 * c-pch.c: Likewise.
10362 * c-ppoutput.c: Likewise.
10363 * c-pragma.c: Likewise.
10364 * c-pragma.h: Likewise.
10365 * c-pretty-print.c: Likewise.
10366 * c-pretty-print.h: Likewise.
10367 * c-semantics.c: Likewise.
10368 * stub-objc.c: Likewise.
10369
10370 * gengtype.c (get_file_langdir): Special-case files in c-family/.
10371 (get_output_file_with_visibility): Fix name for c-common.h.
10372 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
10373
10374 * c-tree.h: Update include path for moved files.
10375 * c-lang.c: Likewise.
10376 * c-lang.h: Likewise.
10377 * c-parser.c: Likewise.
10378 * c-convert.c: Likewise.
10379 * c-decl.c: Likewise.
10380 * c-objc-common.c: Likewise.
10381 * configure.ac: Make sure c-family/ exists in the build directory.
10382 * configure: Regenerate.
10383 * Makefile.in: Update paths for moved files. Regroup files per
10384 location and update dependencies. Move generated_files down after
10385 ALL_GTFILES_H.
10386
10387 * config/spu/spu-c.c: Update paths for moved files.
10388 * config/mep/mep-pragma.c: Likewise.
10389 * config/darwin-c.c: Likewise.
10390 * config/i386/msformat-c.c: Likewise.
10391 * config/i386/i386-c.c: Likewise.
10392 * config/avr/avr-c.c: Likewise.
10393 * config/sol2-c.c: Likewise.
10394 * config/ia64/ia64-c.c: Likewise.
10395 * config/rs6000/rs6000-c.c: Likewise.
10396 * config/arm/arm.c: Likewise.
10397 * config/arm/arm-c.c: Likewise.
10398 * config/h8300/h8300.c: Likewise.
10399 * config/v850/v850-c.c: Likewise.
10400
10401 * config/t-darwin: Fix dependencies for moved files.
10402 * config/t-sol2: Fix dependencies for moved files.
10403 * config/mep/t-mep: Fix dependencies for moved files.
10404 * config/ia64/t-ia64: Fix dependencies for moved files.
10405 * config/rs6000/t-rs6000: Fix dependencies for moved files.
10406 * config/v850/t-v850: Fix dependencies for moved files.
10407 * config/v850/t-v850e: Fix dependencies for moved files.
10408
10409 * config/m32c/m32c-pragma.c
10410
10411 * po/exgettext: Look in c-family/ also.
10412
10413 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
10414
10415 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
10416 (mark_control_dependent_edges_necessary): Call it instead of marking
10417 the last statement manually.
10418 (propagate_necessity): Likewise.
10419
10420 2010-06-05 Jan Hubicka <jh@suse.cz>
10421
10422 * basic-block.h (compute_dominance_frontiers): Updated.
10423 (compute_idf): Likewise.
10424
10425 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
10426 for dominance frontiers.
10427 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
10428 (insert_updated_phi_nodes_for): Likewise.
10429 (update_ssa): Likewise.
10430 * cfganal.c (compute_dominance_frontiers_1): Likewise.
10431 (compute_dominance_frontiers): Likewise.
10432 (compute_idf): Likewise.
10433 * df-problems.c (df_md_local_compute): Likewise.
10434
10435 2010-06-05 Anatoly Sokolov <aesok@post.ru>
10436
10437 * target.h (struct gcc_target): Add memory_move_cost field.
10438 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
10439 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
10440 * targhooks.c (default_memory_move_cost): New function.
10441 * targhooks.h (default_memory_move_cost): Declare function.
10442 * reload.h (memory_move_cost): Declare.
10443 (memory_move_secondary_cost): Change type of 'in' argument to bool.
10444 * reginfo.c (memory_move_cost): New function.
10445 (memory_move_secondary_cost): Change type of 'in' argument to bool.
10446 * ira.h (ira_memory_move_cost): Update comment.
10447 * ira.c (ira_memory_move_cost): Update comment.
10448 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
10449 with memory_move_cost.
10450 * postreload.c (reload_cse_simplify_set): (Ditto.).
10451 * reload1.c (choose_reload_regs): (Ditto.).
10452 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
10453 (MEMORY_MOVE_COST): Revise documentation.
10454
10455 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
10456 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
10457 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
10458 type of 'in' argument to bool.
10459 (TARGET_MEMORY_MOVE_COST): Define.
10460
10461 2010-06-05 Jan Hubicka <jh@suse.cz>
10462
10463 * ipa-pure-const.c (propagate): Fix typo in handling of functions
10464 that cannot return. Be more careful when merging the results with
10465 previously known ones.
10466
10467 2010-06-05 Matthias Klose <doko@ubuntu.com>
10468
10469 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
10470 function to add the -iplugindir option.
10471 (find_plugindir_spec_function): Add new declaration and function.
10472 (static_spec_func): Use it for "find-plugindir".
10473
10474 2010-06-05 Jakub Jelinek <jakub@redhat.com>
10475
10476 PR c++/44361
10477 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
10478 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
10479 statement expression.
10480
10481 2010-06-05 Jan Hubicka <jh@suse.cz>
10482
10483 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
10484 (df_rd_problem_data): Convert sparse_invalidated_by_call,
10485 dense_invalidated_by_call to bitmap head.
10486 (df_rd_alloc, df_rd_bb_local_compute_process_def,
10487 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
10488 df_rd_start_dump, df_lr_verify_transfer_functions,
10489 df_live_verify_transfer_functions, df_chain_create_bb,
10490 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
10491 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
10492 df_simulate_one_insn_forwards, df_md_alloc,
10493 df_md_bb_local_compute_process_def,
10494 df_md_bb_local_compute_process_def, df_md_local_compute,
10495 df_md_transfer_function df_md_free): Update.
10496
10497 2010-06-05 Joseph Myers <joseph@codesourcery.com>
10498
10499 PR c/44322
10500 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
10501 target type for ADDR_EXPR; require no changes to qualifiers except
10502 for function types.
10503 * c-tree.h (c_build_type_variant): Remove.
10504
10505 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
10506
10507 * genautomata.c (get_excl_set): Do work per element, not per char.
10508 (check_presence_pattern_sets): Similar.
10509 (check_absence_pattern_sets): Similar.
10510
10511 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
10512
10513 * genautomata.c (curr_state_pass_num): Delete.
10514 (min_issue_delay_pass_states): Delete.
10515 (min_issue_delay): Delete.
10516 (initiate_min_issue_delay_pass_states): Delete.
10517 (output_min_issue_delay_table): Compute min_issue_delay_vect
10518 using a breadth-first search variant.
10519 (output_tables): Don't call initiate_min_issue_delay_pass_states.
10520
10521 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
10522
10523 PR boostrap/44421
10524 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
10525 (df_byte_lr_bb_local_compute): Likewise.
10526
10527 2010-06-03 Jason Merrill <jason@redhat.com>
10528
10529 Implement noexcept operator (5.3.7)
10530 * c-common.c (c_common_reswords): Add noexcept.
10531 * c-common.h (enum rid): Add RID_NOEXCEPT.
10532
10533 2010-06-04 Joseph Myers <joseph@codesourcery.com>
10534
10535 * config/darwin-driver.c (darwin_default_min_version): Use
10536 GCC-specific formats in diagnostics.
10537 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
10538 diagnostics.
10539 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
10540 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
10541 eval_spec_function, handle_braces, process_brace_body, main,
10542 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
10543 getenv_spec_function, compare_version_strings,
10544 version_compare_spec_function): Use GCC-specific formats in
10545 diagnostics.
10546
10547 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
10548
10549 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
10550 that operand 0 and operand 1 are equal.
10551 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
10552 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
10553 and operand 1 are equal.
10554 <default>: Ditto. Remove ??? comment.
10555 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
10556 and operand 1 are equal.
10557 <default>: Ditto. Remove ??? comment.
10558 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
10559 are equal.
10560 (*add<mode>_4) <default>: Ditto.
10561 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
10562
10563 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
10564
10565 * config/i386/i386-protos.h (ix86_print_operand): Declare.
10566 * config/i386/i386.c (ix86_print_operand): Make non-static.
10567 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
10568 * output.h (output_operand): Declare.
10569 * final.c (output_operand): Make non-static.
10570
10571 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
10572
10573 PR rtl-optimization/44013
10574 * sched-deps.c (add_dependence_list_and_free): Don't free lists
10575 when processing debug insns.
10576
10577 PR debug/41371
10578 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
10579 recursing. Check that recursion is bounded. Rename inner var
10580 to avoid hiding incoming argument.
10581
10582 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
10583
10584 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
10585 operands[2] == 255.
10586 (*addqi_3): Ditto.
10587 (*addqi_4): Ditto.
10588 (*addqi_5): Ditto.
10589 (*addqi_ext_1_rex64): Ditto.
10590 (*addqi_ext_1): Ditto.
10591
10592 (*addqi_4): Check for incdec_operand in QImode.
10593
10594 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
10595 using SWI mode iterator.
10596 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
10597 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
10598 mode iterator.
10599 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
10600 using SWI mode iterator.
10601
10602 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
10603
10604 PR c/25880
10605 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
10606 * c-format.c (gcc_diag_flag_specs): Add hash.
10607 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
10608 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
10609 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
10610 pp_c_cv_qualifiers. Handle qualifiers spelling here.
10611 (pp_c_type_qualifier_list): Call the function above.
10612 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
10613 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
10614 (WARN_FOR_QUALIFIERS): New macro.
10615 (convert_for_assignment): Use it.
10616
10617 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
10618
10619 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
10620
10621 2010-06-04 Jan Hubicka <jh@suse.cz>
10622
10623 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
10624 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
10625 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
10626 DF_BYTE_LR_OUT): Update for embedded bitmaps.
10627 * fwprop.c (single_def_use_enter_block): Likewise.
10628 * ddg.c (create_ddg_dep_from_intra_loop_link,
10629 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
10630 * loop-iv.c (latch_dominating_def): Likewise.
10631 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
10632 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
10633 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
10634 df_rd_transfer_function, df_rd_top_dump,
10635 df_rd_bottom_dump): Update.
10636 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
10637 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
10638 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
10639 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
10640 df_lr_verify_solution_start, df_lr_verify_solution_end,
10641 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
10642 df_live_free_bb_info, df_live_alloc, df_live_reset,
10643 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
10644 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
10645 df_live_verify_solution_start, df_live_verify_solution_end,
10646 df_live_verify_transfer_functions, df_chain_create_bb,
10647 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
10648 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
10649 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
10650 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
10651 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
10652 df_byte_lr_transfer_function, df_byte_lr_top_dump,
10653 df_byte_lr_bottom_dump, df_create_unused_note,
10654 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
10655 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
10656 df_md_transfer_function, df_md_init, df_md_confluence_0,
10657 df_md_confluence_n,
10658 df_md_top_dump, df_md_bottom_dump): Update.
10659 (struct df_lr_problem_data): Embedd bitmap headers.
10660
10661 2010-06-04 Jan Hubicka <jh@suse.cz>
10662
10663 * dce.c (dce_process_block): Do not re-scan already marked
10664 instructions.
10665
10666 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
10667
10668 PR rtl-optimization/39871
10669 PR rtl-optimization/40615
10670 PR rtl-optimization/42500
10671 PR rtl-optimization/42502
10672 * ira.c (init_reg_equiv_memory_loc: New function.
10673 (ira): Call it twice.
10674 * reload.h (calculate_elim_costs_all_insns): Declare.
10675 * ira-costs.c: Include "reload.h".
10676 (regno_equiv_gains): New static variable.
10677 (init_costs): Allocate it.
10678 (finish_costs): Free it.
10679 (ira_costs): Call calculate_elim_costs_all_insns.
10680 (find_costs_and_classes): Take estimated elimination costs
10681 into account.
10682 (ira_adjust_equiv_reg_cost): New function.
10683 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
10684 * reload1.c (init_eliminable_invariants, free_reg_equiv,
10685 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
10686 (elim_bb): New static variable.
10687 (reload): Move code out of here into init_eliminable_invariants and
10688 free_reg_equiv. Call them.
10689 (calculate_elim_costs_all_insns): New function.
10690 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
10691 all callers changed. If FOR_COSTS is true, don't call alter_reg,
10692 but call note_reg_elim_costly if we turned a valid memory address
10693 into an invalid one.
10694 * Makefile.in (ira-costs.o): Depend on reload.h.
10695
10696 2010-06-04 Julian Brown <julian@codesourcery.com>
10697
10698 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
10699 for pool ranges.
10700
10701 2010-06-04 Richard Guenther <rguenther@suse.de>
10702
10703 PR lto/41584
10704 * cgraph.h (struct varpool_node): Add lto_file_data field.
10705 * lto-cgraph.c (input_varpool_node): Initialize it.
10706
10707 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
10708
10709 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
10710 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
10711 predicate in "type" attribute calculation.
10712 (*addsi_1_zext): Ditto.
10713 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
10714 (*addsi_2_zext): Ditto.
10715 (*add<mode>_3): Ditto.
10716 (*addsi_3_zext): Ditto.
10717 (*add<mode>_5): Ditto.
10718
10719 2010-06-03 Jan Hubicka <jh@suse.cz>
10720
10721 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
10722 of bitmap_bit_p.
10723 * cfganal.c (compute_dominance_frontiers_1): Likewise.
10724
10725 2010-06-03 Jan Hubicka <jh@suse.cz>
10726
10727 * df-problems.c (df_create_unused_note, df_note_bb_compute):
10728 micro-optimize the checks when to add new note.
10729
10730 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
10731
10732 * final.c (output_asm_insn): Call
10733 targetm.asm_out.print_operand_punct_valid_p. Update comments.
10734 (output_operand): Call targetm.asm_out.print_operand. Update comments.
10735 (output_address): Call targetm.asm_out.print_operand_address.
10736 Update comments.
10737 * target.h (struct gcc_target): Add print_operand,
10738 print_operand_address, and print_operand_punct_valid_p fields.
10739 * targhooks.h (default_print_operand): Declare.
10740 (default_print_operand_address): Declare.
10741 (default_print_operand_punct_valid_p): Declare.
10742 * targhooks.c (default_print_operand): Define.
10743 (default_print_operand_address): Define.
10744 (default_print_operand_punct_valid_p): Define.
10745 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
10746 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
10747 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
10748 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
10749 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
10750 * vmsdbgout.c (addr_const_to_string): Update comment.
10751 * config/i386/i386.c (print_operand): Rename to...
10752 (ix86_print_operand): ...this. Make static.
10753 (print_operand_address): Rename to...
10754 (ix86_print_operand_address): ...this. Make static. Call
10755 ix86_print_operand instead of PRINT_OPERAND.
10756 (ix86_print_operand_punct_valid_p): New function.
10757 (TARGET_PRINT_OPERAND): Define.
10758 (TARGET_PRINT_OPERAND_ADDRESS): Define.
10759 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10760 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
10761 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10762 (PRINT_OPERAND): Delete.
10763 (PRINT_OPERAND_ADDRESS): Delete.
10764 * config/i386/i386-protos.h (print_operand): Delete prototype.
10765 (print_operand_address): Delete prototype.
10766
10767 2010-06-03 Richard Guenther <rguenther@suse.de>
10768
10769 PR tree-optimization/44403
10770 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10771 Preserve pointer qualifiers.
10772 (vect_create_data_ref_ptr): Likewise.
10773
10774 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
10775
10776 PR c++/44294
10777 * defaults.h (MAX_FIXED_MODE_SIZE): New.
10778
10779 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
10780
10781 2010-06-03 Jakub Jelinek <jakub@redhat.com>
10782
10783 PR debug/44375
10784 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
10785 return false if merging the bbs would lead to goto_locus
10786 location being lost from the IL.
10787
10788 2010-06-03 Jan Hubicka <jh@suse.cz>
10789 Jakub Jelinek <jakub@redhat.com>
10790
10791 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
10792 set->regs[i] is NULL or has just one entry.
10793
10794 2010-06-03 Jan Hubicka <jh@suse.cz>
10795
10796 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
10797 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
10798
10799 2010-06-03 Paul Brook <paul@codesourcery.com>
10800
10801 * config/arm/arm.c (FL_TUNE): Define.
10802 (arm_default_cpu, arm_cpu_select): Remove.
10803 (all_cores): Populate core field.
10804 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
10805 (arm_find_cpu): New function.
10806 (arm_handle_option): Lookup cpu/architecture names.
10807 (arm_override_options): Cleanup mcpu/march/mtune handling.
10808 (arm_file_start): Ditto.
10809
10810 2010-06-03 Alan Modra <amodra@gmail.com>
10811
10812 PR target/44169
10813 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
10814 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
10815 rtx to gen_load_toc_v4_PIC_1b. Tidy.
10816 (rs6000_emit_load_toc_table): Likewise.
10817
10818 2010-06-02 Jan Hubicka <jh@suse.cz>
10819
10820 * passes.c (init_optimization_passes): Put ipa reference
10821 after ipa pure-const.
10822
10823 2010-06-02 Jan Hubicka <jh@suse.cz>
10824
10825 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
10826 calls_read_all and calls_write_all.
10827 (get_reference_optimization_summary): Fix formatting.
10828 (is_proper_for_analysis): Check that decl is not readonly.
10829 (propagate_bits): Check CONST/PURE/noreturn flags.
10830 (ipa_init): Move all_module_statics to optimization_summary_obstack.
10831 (analyze_function): Ignore indirect edges.
10832 (copy_global_bitmap): For all module statics, do nothing.
10833 (generate_summary): Do not print calls_read_all/calls_write_all.
10834 (read_write_all_from_decl): Take node as argument; check
10835 cgraph_node_cannot_return.
10836 (propagate): Reorganize read_all/write_all computation;
10837 check indirect edges; check ecf flags; use all_module_statics
10838 in the results; do not free all_module_statics.
10839 (stream_out_bitmap): Handle all_module_statics.
10840 (ipa_reference_write_optimization_summary): Likewise; use
10841 varpool/cgraph encoders to get boundaries.
10842 (ipa_reference_read_optimization_summary): Read in all_module_statics;
10843 use it when possible.
10844
10845 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10846
10847 PR target/44218
10848 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
10849 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
10850
10851 * doc/extend.texi (powerpc builtins): Document vec_recip,
10852 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
10853
10854 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
10855 (rs6000_emit_swrsqrt): Ditto.
10856 (rs6000_emit_swdivsf): Delete.
10857 (rs6000_emit_swdivdf): Ditto.
10858 (rs6000_emit_swrsqrtsf): Ditto.
10859
10860 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
10861 describe the reciprocal estimate support for each type.
10862 (recip_options): Map -mrecip=<opt> into option bits.
10863 (gen_2arg_fn_t): New typedef for binary rtx gen function.
10864 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
10865 reciprocal estimate instructions.
10866 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
10867 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
10868 Set up rs6000_recip_bits based on the -mrecip* options. Print the
10869 cost information if -mdebug=cost or -mdebug=reg.
10870 (rs6000_override_options): Set -mrecip-precision for power6, and
10871 power7 machines. If -mvsx or -mdfp, enable various options that
10872 came in previous instruction set ISAs, unless the option was
10873 explicitly disabled by the command line option. Parse
10874 -mrecip=<opt> options.
10875 (rs6000_builtin_vectorized_function): Add support for vectorizing
10876 the reciprocal estimate builtins and expansions.
10877 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
10878 (bdesc_2arg): Add reciprocal estimate builtins.
10879 (bdesc_1arg): Add reciprocal square root estimate builtins.
10880 (rs6000_expand_builtin): Rewrite to use a switch statement,
10881 instead of multiple if/then/elses. Add reciprocal estimate builtins.
10882 (rs6000_init_builtins): Create declarations for reciprocal
10883 estimate builtins.
10884 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
10885 sized, prefer traditional floating point registers, if integer
10886 vector types, prefer altivec registers. Don't actually look at
10887 the memory address any more.
10888 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
10889 builtins.
10890 (rs6000_load_constant_and_splat): New helper function to load up
10891 the constant for reciprocal estimate instructions.
10892 (rs6000_emit_madd): New helper function for generating
10893 multiply/add type instructions, based on the current switches.
10894 (rs6000_emit_msub): Ditto.
10895 (rs6000_emit_mnsub): Ditto.
10896 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
10897 replace a divide with a reciprocal estimate and fixup, adding
10898 support for machines with high precision and vectors.
10899 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
10900 low precision machines.
10901 (rs6000_emit_swdiv): New common function to be called to replace a
10902 division with reciprocal estimate and fixup.
10903 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
10904 for double and vector types. Add support for high precision machines.
10905
10906 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
10907 the reciprocal estimate instructions can be generated.
10908 (TARGET_FRE): Ditto.
10909 (TARGET_FRSQRTES): Ditto.
10910 (TARGET_FRSQRTE): Ditto.
10911 (RS6000_RECIP_*): New macros for reciprocal estimate support.
10912
10913 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
10914 square root estimate on vectors.
10915 (re<mode>2): New insn for reciprocal division estimate on vectors.
10916
10917 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
10918 New builtin.
10919 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
10920 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
10921 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
10922 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
10923 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
10924 (RS6000_BUILTIN_RSQRT): Ditto.
10925 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
10926 floating point builtin.
10927
10928 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
10929 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
10930 __RECIP_PRECISION__ based on the command line switches.
10931 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
10932
10933 * config/rs6000/rs6000.opt (-mrecip): Document add support for
10934 replacing division instructions with reciprocal estimate and fixup.
10935 (-mrecip=<opt>): New option.
10936 (-mrecip-precision): Ditto.
10937
10938 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
10939 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
10940 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
10941 precision scalar.
10942
10943 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
10944 (UNSPEC_VREFP): Ditto.
10945 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
10946 conterparts with regard to support of -mno-fused-madd and -ffast-math.
10947 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
10948 reciprocal estimate instructions to be generated.
10949 (altivec_vrefp): Ditto.
10950
10951 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
10952 estimate support.
10953 (rreg): New mode attribute for reciprocal estimate support.
10954 (recip<mode>3): New insn for division using reciprocal estimate
10955 and fixup builtins.
10956 (divide define_split): New define_split to convert floating point
10957 division to use reciprocal estimate if the user used the
10958 appropriate options and the split is run when we can add new
10959 pseudo registers for the fixup.
10960 (rsqrt<mode>2): New insn for reciprocal square root support.
10961 (recipsf3): Move into recip<mode>3.
10962 (recipdf3): Ditto.
10963 (fres): Use TARGET_FRES.
10964 (rsqrtsf2): Move into rsqrt<mode>2.
10965 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
10966 (copysignsf3): Add support for VSX.
10967 (fred): Use TARGET_FRE.
10968 (fred_fpr): Ditto.
10969 (rsqrtdf_internal1): New function for frsqrte instruciton.
10970
10971 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
10972 (vec_rsqrt): Ditto.
10973
10974 2010-06-03 Richard Guenther <rguenther@suse.de>
10975
10976 PR middle-end/44291
10977 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
10978 (set_user_assembler_libfunc): Likewise.
10979
10980 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
10981
10982 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
10983 defaults.h.
10984 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
10985 to defaults.h
10986 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
10987 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
10988 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
10989 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
10990 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
10991 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
10992 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
10993 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
10994 * defaults.h: Updated for above mentioned changes.
10995
10996 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
10997
10998 * c-common.c: Remove header include of tm_p.h.
10999 * Makefile.in (c-common.o): Remove TM_P_H dependency.
11000
11001 2010-06-02 Jakub Jelinek <jakub@redhat.com>
11002
11003 * tree.h (struct tree_decl_map): New type.
11004 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
11005 (tree_decl_map_hash): New prototype.
11006 (debug_expr_for_decl, value_expr_for_decl): Change into
11007 tree_decl_map hashtab from tree_map.
11008 (init_ttree): Adjust initialization.
11009 (tree_decl_map_hash): New function.
11010 (decl_debug_expr_lookup, decl_debug_expr_insert,
11011 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
11012
11013 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11014
11015 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
11016 linker emulations.
11017 * configure: Regenerate.
11018 * config.in: Regenerate.
11019
11020 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
11021 (X86_64_EMULATION): Define.
11022 (TARGET_LD_EMULATION): Use them.
11023
11024 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
11025 (SPARC64_EMULATION): Define.
11026 (LINK_ARCH_SPEC): Use them.
11027
11028 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
11029
11030 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
11031 smallest_mode_for_size for computing the precision types of new
11032 graphite IVs. Do not call lang_hooks.types.type_for_size.
11033
11034 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
11035
11036 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
11037 information.
11038 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
11039
11040 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
11041
11042 PR middle-end/44363
11043 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
11044 return false instead.
11045
11046 2010-06-02 Jan Hubicka <jh@suse.cz>
11047
11048 PR middle-end/44295
11049 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
11050 create new cgraph node to check callee.
11051
11052 2010-06-02 Richard Guenther <rguenther@suse.de>
11053
11054 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
11055
11056 2010-06-02 Richard Guenther <rguenther@suse.de>
11057
11058 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
11059 (lto_wrapper_cleanup): ... this. Do not exit.
11060 (fatal): Adjust. Exit here.
11061 (fatal_perror): Likewise.
11062 (fatal_signal): New function.
11063 (main): Set up signal handlers to cleanup temporary files.
11064 * Makefile.in (lto-wrapper.o): Adjust dependencies.
11065
11066 2010-06-02 Richard Guenther <rguenther@suse.de>
11067
11068 PR tree-optimization/44377
11069 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
11070
11071 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11072
11073 * config/s390/2097.md (z10_fhex): Remove insn reservation.
11074 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
11075 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
11076 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
11077 instruction.
11078 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
11079
11080 2010-06-02 Jan Hubicka <jh@suse.cz>
11081
11082 * bitmap.c (bitmap_descriptor): Add search_iter.
11083 (bitmap_find_bit): Increment it.
11084 (print_statistics): Print it.
11085
11086 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
11087
11088 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
11089 instead of gimple_build_call_vec. Delete unnecessary local variable.
11090
11091 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
11092
11093 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
11094 change from yesterday.
11095
11096 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
11097
11098 * c-ada-spec.c: Clean up redundant includes.
11099
11100 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
11101
11102 * gimplify.c: Do not include except.h and optabs.h.
11103 (gimplify_body): Do not initialize RTL profiling.
11104 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
11105 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
11106 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
11107 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
11108 langhooks.h.
11109
11110 * tree-pretty-print.h: Include pretty-print.h.
11111 * gimple-pretty-print.h: Include pretty-print.h.
11112
11113 * tree-pretty-print.c: Do not include diagnostic.h.
11114 * tree-vrp.c: Likewise.
11115 * tree-tailcall.c: Likewise
11116 * tree-scalar-evolution.c: Likewise
11117 * tree-ssa-dse.c: Likewise
11118 * tree-chrec.c: Likewise
11119 * tree-ssa-sccvn.c: Likewise
11120 * tree-ssa-copyrename.c: Likewise
11121 * tree-nomudflap.c: Likewise
11122 * tree-call-cdce.c: Likewise
11123 * tree-stdarg.c: Likewise
11124 * tree-ssa-math-opts.c: Likewise
11125 * tree-nrv.c: Likewise
11126 * tree-ssa-sink.c: Likewise
11127 * tree-browser.c: Likewise
11128 * tree-ssa-loop-ivcanon.c: Likewise
11129 * tree-ssa-loop.c: Likewise
11130 * tree-parloops.c: Likewise
11131 * tree-ssa-address.c: Likewise
11132 * tree-ssa-ifcombine.c: Likewise
11133 * tree-if-conv.c: Likewise
11134 * tree-data-ref.c: Likewise
11135 * tree-affine.c: Likewise
11136 * tree-ssa-phiopt.c: Likewise
11137 * tree-ssa-coalesce.c: Likewise
11138 * tree-ssa-pre.c: Likewise
11139 * tree-ssa-live.c: Likewise
11140 * tree-predcom.c: Likewise
11141 * tree-ssa-forwprop.c: Likewise
11142 * tree-ssa-dce.c: Likewise
11143 * tree-ssa-ter.c: Likewise
11144 * tree-ssa-loop-prefetch.c: Likewise
11145 * tree-optimize.c: Likewise
11146 * tree-ssa-phiprop.c: Likewise
11147 * tree-object-size.c: Likewise
11148 * tree-outof-ssa.c: Likewise
11149 * tree-ssa-structalias.c: Likewise
11150 * tree-switch-conversion.c: Likewise
11151 * tree-ssa-reassoc.c: Likewise
11152 * tree-ssa-operands.c: Likewise
11153 * tree-vectorizer.c: Likewise
11154 * tree-vect-data-refs.c: Likewise
11155 * tree-vect-generic.c: Likewise
11156 * tree-vect-stmts.c: Likewise
11157 * tree-vect-patterns.c: Likewise
11158 * tree-vect-slp.c: Likewise
11159 * tree-vect-loop.c: Likewise
11160 * tree-ssa-loop-ivopts.c: Likewise
11161 * tree-ssa-loop-im.c: Likewise
11162 * tree-ssa-loop-niter.c: Likewise
11163 * tree-ssa-loop-unswitch.c: Likewise
11164 * tree-ssa-loop-manip.c: Likewise
11165 * tree-ssa-loop-ch.c: Likewise
11166 * tree-dump.c: Likewise
11167 * tree-complex.c: Likewise
11168
11169 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
11170 * tree-ssa-uninit.c: Likewise
11171 * tree-ssa-threadupdate.c: Likewise
11172 * tree-ssa-uncprop.c: Likewise
11173 * tree-ssa-ccp.c: Likewise
11174 * tree-ssa-dom.c: Likewise
11175 * tree-ssa-propagate.c: Likewise
11176 * tree-ssa-alias.c: Likewise
11177 * tree-dfa.c: Likewise
11178 * tree-cfgcleanup.c: Likewise
11179 * tree-sra.c: Likewise
11180 * tree-ssa-copy.c: Likewise
11181 * tree-ssa.c: Likewise
11182 * tree-profile.c: Likewise
11183 * tree-cfg.c: Likewise
11184 * tree-ssa-threadedge.c: Likewise
11185 * tree-vect-loop-manip.c: Likewise
11186
11187 * tree-inline.c: Do not include diagnostic.h and expr.h.
11188 Include rtl.h.
11189 (copy_decl_for_dup_finish): Do not use NULL_RTX.
11190
11191 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
11192 * tree-loop-distribution.c: Likewise.
11193
11194 2010-06-01 Jan Hubicka <jh@suse.cz>
11195
11196 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
11197
11198 2010-06-01 Jan Hubicka <jh@suse.cz>
11199
11200 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
11201 remove return value.
11202 (split_bbs_on_noreturn_calls) .... here.
11203 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
11204 * tree-flow.h (fixup_noreturn_call): New.
11205
11206 2010-06-01 Jan Hubicka <jh@suse.cz>
11207
11208 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
11209
11210 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
11211
11212 * tree.h (build_nt_call_list): Delete.
11213 * tree.c (build_nt_call_list): Delete.
11214
11215 2010-06-01 Jan Hubicka <jh@suse.cz>
11216
11217 * fwprop.c: Make emit-rtl.h include last.
11218 * rtlanal.c: Include emit-rtl.h.
11219 * genautomata.c: Output emit-rtl include into insn-automata.c
11220 * df-scan.c: Include emit-rtl.h.
11221 * haifa-sched.c: Indlude emit-rtl.h.
11222 * mode-switching.c: Indlude emit-rtl.h.
11223 * graph.c: Indlude emit-rtl.h.
11224 * sel-sched.c: Include emit-rtl.h.
11225 * sel-sched-ir.c: Include emit-rtl.h.
11226 * ira-build.c: Include emit-rtl.h.
11227 * emit-rtl.c (first_insn, last_insn): Remove defines.
11228 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
11229 Move to emit-rtl.h.
11230 (set_new_first_and_last_insn, get_last_insn_anywhere,
11231 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
11232 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
11233 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
11234 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
11235 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
11236 Use accessor functions.
11237 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
11238 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
11239 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
11240 mem_expr_equal_p): Move here from rtl.h.
11241 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
11242 Move here from emit-rtl.c; make inline.
11243 * cfglayout.h: Include emit-rtl.h.
11244 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
11245 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
11246 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
11247 mem_expr_equal_p, get_insns, set_first-insn,
11248 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
11249 * reg-stack.c: Include emit-rtl.h.
11250 * dce.c: Likewise.
11251
11252 2010-06-01 Jan Hubicka <jh@suse.cz>
11253
11254 * cgraph.h (tree_function_versioning): Update prototype.
11255 (cgraph_function_versioning): Update prototype.
11256 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
11257 bitmap.
11258 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
11259 (cgraph_materialize_clone, save_inline_function_body): Update use of
11260 tree_function_versioning.
11261 * tree-inline.c (copy_bb): Look for previous copied block to link
11262 after; fix debug output.
11263 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
11264 (copy_body): Likewise.
11265 (expand_call_inline): Update use of copy_body.
11266 (tree_function_versioning): Update use of copy body; accept
11267 blocks_to_copy and new_entry.
11268
11269 2010-06-01 Jan Hubicka <jh@suse.cz>
11270
11271 * gegenrtl.c: Remove unnecesary prototypes.
11272 (gendecl): Remove.
11273 (gendef): Produce static inline.
11274 (gencode): Remove.
11275 (main): Do not decode parameters; generate header only.
11276 * Makefile.in (genrtl.c): Remove.
11277
11278 2010-06-01 Jan Hubicka <jh@suse.cz>
11279
11280 * tree-switch-conversion.c (build_one_array): Make it readonly.
11281
11282 2010-06-01 Richard Guenther <rguenther@suse.de>
11283
11284 * optabs.c (init_optabs): Guard all accesses to reinit.
11285 * ipa-pure-const.c (propagate): Fix another typo.
11286 * opts.c (common_handle_option): Split assignment to bool.
11287 * c-opts.c (c_common_handle_option): Likewise.
11288
11289 2010-06-01 Arnaud Charlet <charlet@adacore.com>
11290 Matthew Gingell <gingell@adacore.com>
11291
11292 * doc/invoke.texi: Mention -fdump-ada-spec.
11293 * tree-dump.c (dump_files): Add ada-spec.
11294 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
11295 * tree-pass.h (tree_dump_index): Add TDI_ada.
11296 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
11297 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
11298 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
11299 * c-decl.c: Include c-ada-spec.h.
11300 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
11301 functions.
11302 (c_write_global_declarations): Add handling of -fdump-ada-spec.
11303 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
11304 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
11305 * c-ada-spec.h, c-ada-spec.c: New files.
11306
11307 2010-06-01 Richard Guenther <rguenther@suse.de>
11308
11309 PR lto/43853
11310 * ipa-pure-const.c (get_function_state): Hand back varying state
11311 if we do not have one.
11312 (has_function_state): New function.
11313 (duplicate_node_data): Adjust.
11314 (remove_node_data): Likewise.
11315 (pure_const_write_summary): Likewise.
11316 (propagate): Likewise. Fix typo.
11317
11318 2010-06-01 Jan Hubicka <jh@suse.cz>
11319
11320 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
11321 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
11322 (execute_all_ipa_transforms): Do not play with the states.
11323
11324 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
11325
11326 * config/arm/t-linux-androideabi: New.
11327 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
11328
11329 2010-06-01 Jan Hubicka <jh@suse.cz>
11330
11331 * tree-inline.c (estimate_num_insns): For stdarg functions look
11332 into call statement to count cost of argument passing.
11333
11334 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
11335
11336 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
11337 argument for fprintf.
11338 (ix86_output_addr_diff_elt): Likewise.
11339 (x86_function_profiler): Likewise.
11340 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
11341 (LPREFIX): Likewise.
11342 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
11343
11344 2010-05-31 Jakub Jelinek <jakub@redhat.com>
11345
11346 PR target/44338
11347 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
11348 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
11349 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
11350 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
11351 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
11352 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
11353 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
11354 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
11355 TARGET_FUSED_MADD.
11356
11357 2010-05-31 Jan Hubicka <jh@suse.cz>
11358
11359 * tree.h (tree_range_check_failed): Declare noreturn.
11360
11361 2010-05-31 Jan Hubicka <jh@suse.cz>
11362
11363 * gimple.c (gimple_call_builtin_p): New function.
11364 * gimple.h (gimple_call_builtin_p): Declare.
11365 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
11366 to exit.
11367 (execute_warn_function_return): BUILT_IN_RETURN is return.
11368 (split_critical_edges): Return edges are not critical.
11369 (is_ctrl_altering_stmt): Builtin_in_return is altering.
11370 (gimple_verify_flow_info): Handle built_in_return.
11371 (execute_warn_function_return): Handle built_in_return.
11372 * ipa-pure-const.c (check_call): Ignore builtin_return.
11373
11374 2010-05-31 Jakub Jelinek <jakub@redhat.com>
11375
11376 PR middle-end/44337
11377 * expr.c (expand_assignment): Don't store anything for out-of-bounds
11378 array accesses with non-MEM.
11379
11380 PR tree-optimization/44182
11381 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
11382 newly needs to end a bb is followed by debug stmts, instead return
11383 true from the function at the end.
11384 (maybe_move_debug_stmts_to_successors): New function.
11385 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
11386
11387 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
11388
11389 PR target/44161
11390 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
11391
11392 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
11393
11394 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
11395 for nested functions in non-optimized compilation.
11396
11397 2010-05-31 Richard Guenther <rguenther@suse.de>
11398
11399 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
11400
11401 2010-05-30 Jan Hubicka <jh@suse.cz>
11402
11403 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
11404
11405 2010-05-30 Richard Guenther <rguenther@suse.de>
11406
11407 PR lto/42975
11408 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
11409 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
11410 no longer needed.
11411
11412 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
11413
11414 * config/darwin.c (output_objc_section_asm_op): Add comment.
11415 (name_needs_quotes): Add '_' to list of valid comment chars.
11416 (machopic_output_function_base_name): Remove unneeded quotes.
11417 (darwin_encode_section_info): Adjust asm whitespace.
11418 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
11419 (ASM_OUTPUT_LOCAL): Ditto.
11420 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
11421 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
11422 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
11423
11424 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
11425
11426 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
11427 RS6000_OUTPUT_BASENAME unconditionally.
11428 (rs6000_output_function_epilogue): Likewise.
11429
11430 2010-05-30 Jan Hubicka <jh@suse.cz>
11431
11432 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
11433 nodes.
11434
11435 2010-05-30 Richard Guenther <rguenther@suse.de>
11436
11437 * tree-cfg.c (verify_gimple_assign_single): Implement
11438 verification for COND_EXPR rhs.
11439
11440 2010-05-30 Jan Hubicka <jh@suse.cz>
11441
11442 * cgraph.h (cgraph_dump_file): Declare.
11443 * cgraphunit.c (cgraph_dump_file): Export.
11444 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
11445
11446 2010-05-30 Jan Hubicka <jh@suse.cz>
11447
11448 * dwarf2out.c (reference_to_unused,
11449 premark_types_used_by_global_vars_helper): Avoid creation of new
11450 varpool nodes.
11451
11452 2010-05-30 Jan Hubicka <jh@suse.cz>
11453
11454 * cgraph.h (cgraph_node_cannot_return,
11455 cgraph_edge_cannot_lead_to_return): New functions.
11456 * cgraph.c (cgraph_node_cannot_return,
11457 cgraph_edge_cannot_lead_to_return): Use them.
11458 * ipa-pure-const.c (pure_const_names): New static var.
11459 (check_call): Handle calls not leading to return.
11460 (pure_const_read_summary): Dump info read.
11461 (propagate): Dump info about propagation process; ignore side effects
11462 of functions not leading to exit; fix handling of pure functions.
11463
11464 2010-05-30 Jan Hubicka <jh@suse.cz>
11465
11466 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
11467 for tail call epilogues.
11468
11469 2010-05-30 Jan Hubicka <jh@suse.cz>
11470
11471 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
11472 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
11473 dump files.
11474
11475 2010-05-29 Jan Hubicka <jh@suse.cz>
11476
11477 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
11478 node; remove references in node we no longer keep in cgrpah but need
11479 body of.
11480
11481 2010-05-29 Jan Hubicka <jh@suse.cz>
11482
11483 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
11484
11485 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11486
11487 PR target/44165
11488 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
11489
11490 2010-05-29 Jan Hubicka <jh@suse.cz>
11491
11492 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
11493 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
11494 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
11495 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
11496 debug_names_replaced_by, debug_update_ssa): Likewise.
11497 * sbitmap.c (debug_sbitmap): Likewise.
11498 * genrecog.c (debug_decision, debug_decision_list): Likewise.
11499 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
11500 debug_tree_chain): Likewise.
11501 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
11502 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
11503 * optabs.c (debug_optab_libfuncs): Likewise.
11504 (verify_loop_closed_ssa): Likewise.
11505 * value-prof.c (verify_histograms): Likewise.
11506 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
11507 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
11508 * cfghooks.c (verify_flow_info): Likewise.
11509 * fold-const.c (debug_fold_checksum): Likewise.
11510 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
11511 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
11512 Likewise.
11513 * omega.c (debug_omega_problem): Likewise.
11514 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
11515 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
11516 * dominance.c (verify_dominators, debug_dominance_info,
11517 debug_dominance_tree): Likewise.
11518 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
11519 * df_regno_debug, df_ref_debug,
11520 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
11521 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
11522 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
11523 * sel-sched.c (debug_state): Likewise.
11524 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
11525 Likewise.
11526 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
11527 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
11528 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
11529 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
11530 Likewise.
11531 * c-pretty-print.c (debug_c_tree): Likewise.
11532 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
11533 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
11534 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
11535 * ebitmap.c (debug_ebitmap): Likewise.
11536 * function.c (debug_find_var_in_block_tree): Likewise.
11537 * print-rtl.c (debug_rtx): Likewise.
11538 (debug_rtx_count): Likewise.
11539 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
11540 * stor-layout.c (debug_rli): Likewise.
11541 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
11542 * tree-data-ref.c (debug_data_references,
11543 debug_data_dependence_relations, debug_data_reference,
11544 debug_data_dependence_relation, debug_rdg_vertex,
11545 debug_rdg_component, debug_rdg): Likewise.
11546 * tree-affine.c (debug_aff): Likewise.
11547 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
11548 Likewise.
11549 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
11550 * emit-rtl.c (verify_rtl_sharing): Likewise.
11551 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
11552 debug_value_expressions): Likewise.
11553 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
11554 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
11555 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
11556 * cfglayout.c (verify_insn_chain): Likewise.
11557 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
11558 debug_clast_stmt, debug_generated_program): Likewise.
11559 * ggc-page.c (debug_print_page_list): Likewise.
11560 * tree-ssa-ter.c (debug_ter): Likewise.
11561 * graphite-dependences.c (debug_pddr): Likewise.
11562 * sched-deps.c (debug_ds): Likewise.
11563 * tree-ssa.c (verify_ssa): Likewise.
11564 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
11565 debug_scattering_functions, debug_iteration_domains, debug_pdr,
11566 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
11567 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
11568 * tree-inline.c (debug_find_tree): Likewise.
11569 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
11570 debug_ppl_powerset_matrix): Likewise.
11571 * var-tracking.c (debug_dv): Likewise.
11572 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
11573 * cfgloop.c (verify_loop_structure): Likewise.
11574 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
11575 * c-common.c (verify_sequence_points): Likewise.
11576 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
11577 debug_candidates, debug_rgn_dependencies): Likewise.
11578 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
11579 * debug_constraint_graph, debug_solution_for_var,
11580 debug_sa_points_to_info): Likewise.
11581 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
11582 Likewie.
11583 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
11584 debug_loops, debug_loop, debug_loop_num): Likewise.
11585 * passes.c (debug_pass): Likewise.
11586 (dump_properties): Likewise; add cfglayout property.
11587 (debug_properties): Likewise.
11588 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
11589 * varpool.c (debug_varpool): Likewise.
11590 * regcprop.c (debug_value_data): Likewise.
11591 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
11592 debug_immediate_uses_for): Likewise.
11593
11594 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
11595
11596 PR bootstrap/44315
11597 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
11598 Filter out insn-flags.h.
11599
11600 2010-05-29 Jan Hubicka <jh@suse.cz>
11601
11602 * cgraph.h (struct varpool_node_set_def,
11603 struct cgraph_node_set_def): Remove unused AUX pointer.
11604 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
11605 VEC_empty macro.
11606
11607 2010-05-29 Jan Hubicka <jh@suse.cz>
11608
11609 PR middle-end/44324
11610 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
11611
11612 2010-05-29 Richard Guenther <rguenther@suse.de>
11613
11614 * lto-streamer.c (cached_bp): New global variable.
11615 (bitpack_create): Return the cached bitpack, if available.
11616 (bitpack_delete): Clear and cache the bitpack, if appropriate.
11617 (bp_pack_value): Remove redundant asserts.
11618
11619 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
11620
11621 PR middle-end/44306
11622 * tree-if-conv.c (is_true_predicate): New.
11623 (is_predicated): Use is_true_predicate.
11624 (add_to_predicate_list): Same. Do not use unshare_expr.
11625 (add_to_dst_predicate_list): Same.
11626
11627 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
11628
11629 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
11630 field on edges.
11631 (predicate_bbs): Same.
11632 (clean_predicate_lists): Same.
11633 (find_phi_replacement_condition): Do not AND the predicate from
11634 edge->aux.
11635
11636 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
11637
11638 PR bootstrap/44315
11639 * Makefile.in (build/gencondmd.o): Add a missing `\'.
11640
11641 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11642
11643 PR target/44261
11644 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
11645 (negdf2): Adjust expander pattern and use negdf2_slow.
11646 (negsf2): Likewise.
11647
11648 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
11649
11650 * basic-block.h (struct control_flow_graph): Move last_label_uid field
11651 up.
11652 * df.h (struct df_base_ref): Move regno field up.
11653 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
11654 * expr.h (struct separate_ops): Move location field up.
11655 * optabs.h (struct optab_d): Move libcall_basename field down.
11656 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
11657 * config/i386/i386.h (struct machine_function): Convert call_abi field
11658 into a bitfield. Move cfa field to the end of the structure.
11659
11660 2010-05-29 Jan Hubicka <jh@suse.cz>
11661
11662 * varpool.c (varpool_get_node): Fix lookup.
11663
11664 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
11665
11666 * config/spu/spu-protos.h: Do not include rtl.h. Protect
11667 RTL specific prototypes with #ifdef RTX_CODE.
11668 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
11669 * config/spu/t-spu-elf: Fix dependencies.
11670
11671 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
11672
11673 2010-05-29 Mike Stump <mikestump@comcast.net>
11674
11675 PR bootstrap/44315
11676 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
11677 TM_H when building to avoid dependency loops.
11678
11679 2010-05-29 Jan Hubicka <jh@suse.cz>
11680
11681 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
11682 refs and body; not the whole node for masters of materialized clones.
11683
11684 2010-05-29 Mike Stump <mikestump@comcast.net>
11685
11686 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
11687
11688 2010-05-29 Jan Hubicka <jh@suse.cz>
11689
11690 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
11691 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
11692 use of clone_function_name.
11693 * cgraph.h (cgraph_create_virtual_clone,
11694 cgraph_function_versioning): update prototypes.
11695 (clone_function_name): Declare.
11696 * ipa-cp.c (ipcp_insert_stage): Update call of
11697 cgraph_create_virtual_clone.
11698 * omp-low.c (create_omp_child_function_name): Use
11699 cgraph_create_virtual_clone.
11700 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
11701 (cgraph_function_versioning): Take SUFFIX argument; produce new name
11702 and make decl local.
11703
11704 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
11705
11706 * vec.h: Include statistics.h
11707 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
11708 with VEC_H.
11709
11710 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
11711
11712 * c-lex.c: Do not include c-tree.h.
11713 * c-pretty-print.c: Likewise.
11714 * c-opts.c: Likewise.
11715 * c-gimplify.c: Likewise.
11716 * c-common.c: Likewise.
11717 * c-dump.c: Likewise. Include c-common.h.
11718
11719 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
11720
11721 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
11722 before including diagnostic-core.h.
11723 (c_cpp_error): New prototype moved from c-tree.h.
11724 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
11725 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
11726 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
11727 (c_cpp_error): Prototype moved to c-common.h.
11728 * Makefile.in: Update dependency for C_COMMON_H.
11729
11730 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
11731
11732 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
11733 * c-common.c (c_register_addr_space): Remove here.
11734 * c-decl.c (c_register_addr_space): Re-add here.
11735
11736 2010-05-28 Mike Stump <mikestump@comcast.net>
11737
11738 * config/darwin-c.c: Remove c-tree.h include.
11739
11740 2010-05-28 Joseph Myers <joseph@codesourcery.com>
11741
11742 * gcc.c: Include diagnostic.h.
11743 (error_count): Remove. All users changed to use errorcount.
11744 (programname): Remove. All users changed to use progname.
11745 (fancy_abort, internal_error, fatal_error, error, warning, inform,
11746 fnotice): Remove.
11747 (execute): Don't include "Internal error" and bug reporting
11748 information in argument of internal_error call.
11749 (process_command): Don't increment error_count after calling
11750 perror_with_name.
11751 (input_filename): Rename to gcc_input_filename. All users
11752 changed.
11753 (main): Call diagnostic_initialize. Register delete_temp_files
11754 with atexit. Use seen_error to test for errors.
11755 * gcc.h: Include diagnostic-core.h.
11756 (fatal_error, error, warning): Remove.
11757 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
11758 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
11759 (gcc.o): Update dependencies.
11760
11761 2010-05-28 Jeff Law <law@redhat.com>
11762
11763 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
11764 functions.
11765 * ira.h (ira_bad_reload_regno): Declare
11766 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
11767
11768 * ira-color.c (update_curr_costs): Free updated hard reg costs.
11769 (ira_reassign_conflict_allocnos): Remove bogus asserts.
11770 (allocno_reload_assign): Likewise.
11771
11772 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
11773
11774 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
11775 build1_stat.
11776
11777 2010-05-28 Richard Guenther <rguenther@suse.de>
11778
11779 PR lto/44312
11780 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
11781 Stream fixed-point constants mode.
11782 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
11783 and TYPE_PRECISION.
11784 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
11785 Stream fixed-point constants mode.
11786 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
11787 and TYPE_PRECISION.
11788
11789 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
11790
11791 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
11792 only place it was called from.
11793 (number_of_latch_executions): Do not return chrec_dont_know when the
11794 may_be_zero is a runtime condition: instead, return a COND_EXPR
11795 including the may_be_zero condition.
11796 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
11797 of nb_iterations.
11798 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
11799 COND_EXPRs.
11800
11801 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
11802
11803 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
11804 generate COND_EXPRs for degenerate_phi_result.
11805
11806 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
11807
11808 PR middle-end/44293
11809 * tree-if-conv.c (if_convertible_loop_p): Check the
11810 if-convertibility of phi nodes in non predicated BBs.
11811
11812 2010-05-28 Joseph Myers <joseph@codesourcery.com>
11813
11814 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
11815
11816 2010-05-28 Joseph Myers <joseph@codesourcery.com>
11817
11818 PR driver/15303
11819 * gcc.c (inform, warning, inform): New functions.
11820 (fatal_ice): Rename to internal_error; change cmsgid parameter to
11821 gmsgid. All callers changed.
11822 (notice): Rename to fnotice; add parameter fp. All callers changed.
11823 (fatal_error): Rename to fatal_signal. All users changed.
11824 (fatal): Rename to fatal_error; change cmsgid parameter to
11825 gmsgid. All callers changed.
11826 (process_command): Use warning instead of error for warnings.
11827 (end_going_arg): Don't use _() around argument of error.
11828 (do_spec_1): Use inform for message from %n specs. Use warning
11829 instead of error for warnings.
11830 (main): Use inform for comparison messages. Use warning for
11831 message about unused linker input.
11832 (error): Increment error_count. Print "error: ".
11833 * gcc.h (fatal): Change to fatal_error.
11834 (warning): Declare.
11835 * config/darwin-driver.c (darwin_default_min_version): Use warning
11836 instead of fprintf for warnings.
11837 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
11838
11839 2010-05-28 Julian Brown <julian@codesourcery.com>
11840
11841 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
11842 (*thumb2_addsi3_compare0_scratch): New.
11843 * config/arm/constraints.md (Pv): New.
11844 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
11845 for ARM mode only.
11846 (*addsi3_compare0_scratch): Likewise.
11847
11848 2010-05-28 Jan Hubicka <jh@suse.cz>
11849
11850 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
11851 check.
11852 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
11853 only on local statics.
11854
11855 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
11856
11857 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
11858
11859 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
11860
11861 PR bootstrap/44314
11862 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
11863 (OPTION_GLIBC): Define.
11864
11865 2010-05-28 Jakub Jelinek <jakub@redhat.com>
11866
11867 PR debug/41048
11868 * dwarf2out.c (double_int_type_size_in_bits): New function.
11869 (round_up_to_align): Change first argument and return value to
11870 double_int.
11871 (field_byte_offset): Work internally on double_ints.
11872
11873 PR target/43636
11874 * builtins.c (expand_movstr): Use a temporary pseudo instead
11875 of target even when target is not NULL and not const0_rtx, but
11876 fails movstr predicate.
11877 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
11878
11879 2010-05-28 Joseph Myers <joseph@codesourcery.com>
11880
11881 * final.c (rest_of_clean_state): Use %m in errors instead of
11882 strerror (errno).
11883 * gengtype.c (read_input_list, close_output_files): Use xstrerror
11884 instead of strerror.
11885 * toplev.c (process_options): Use %m in errors instead of strerror
11886 (errno).
11887 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
11888 (errno).
11889
11890 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
11891
11892 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
11893 (ix86_canonical_va_list_type): Make static. Add declaration.
11894 (ix86_enum_va_list): Make static. Reindent.
11895 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
11896 (ix86_canonical_va_list_type): Ditto.
11897 (ix86_enum_va_list): Ditto.
11898
11899 2010-05-28 Richard Guenther <rguenther@suse.de>
11900
11901 * lto-wrapper.c (run_gcc): With -save-temps generate a
11902 user-visible ltrans filename. Fixup ltrans unit numbering.
11903
11904 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
11905
11906 * c-common.c (c_common_nodes_and_builtins): Replace use
11907 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
11908 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
11909 to ix86_enum_va_list.
11910 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
11911 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
11912 (TARGET_ENUM_VA_LIST_P): Add hook description.
11913 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
11914 * target.h (gcc_target): Add enum_va_list hook.
11915
11916 PR bootstrap/44299
11917 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
11918 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
11919 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
11920
11921 2010-05-28 Alan Modra <amodra@gmail.com>
11922
11923 PR target/44266
11924 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
11925 emit_library_call machinery to set up __tls_get_addr calls.
11926
11927 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11928
11929 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
11930
11931 2010-05-28 Dodji Seketeli <dodji@redhat.com>
11932
11933 Revert fix for PR c++/44188
11934 * c-common.c (is_typedef_decl): Revert the moving of this
11935 definition ...
11936 * tree.c (is_typedef_decl): ... here.
11937 (typdef_variant_p): Revert the moving of this definition
11938 here from gcc/cp/tree.c.
11939 * c-common.h (is_typedef_decl): Revert the moving of this
11940 declaration ...
11941 * tree.h (is_typedef_decl): ... here.
11942 (typedef_variant_p): Revert the moving of this declaration here
11943 from gcc/cp/cp-tree.h
11944 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
11945 (gen_tagged_type_die): Revert the splitting out of ...
11946 (gen_type_die_with_usage): ... this function. Revert the anonymous
11947 tagged type handling.
11948 (gen_typedef_die): Revert emitting DW_TAG_typedef for
11949 typedefs naming anonymous tagged types.
11950
11951 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
11952
11953 * config/rs6000/rs6000-modes.def (PSImode): Delete.
11954
11955 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
11956
11957 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
11958 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
11959 throughout.
11960 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
11961 "xer" to "ca".
11962 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
11963 XER_REGS to CA_REGS throughout.
11964 * config/rs6000/rs6000.h: Same.
11965 (ADDITIONAL_REGISTER_NAMES): Add "xer".
11966 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
11967 that mode_iterator "P" is the size for arithmetic carries as well.
11968 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
11969
11970 2010-05-28 Jakub Jelinek <jakub@redhat.com>
11971
11972 PR bootstrap/44255
11973 * combine.c (struct rtx_subst_pair): Define unconditionally.
11974 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
11975 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
11976 Call make_compound_operation on pair->to.
11977 (propagate_for_debug): Don't call make_compound_operation here.
11978 Always use simplify_replace_fn_rtx.
11979
11980 2010-05-27 Sterling Augustine <sterling@tensilica.com>
11981
11982 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
11983 * config/xtensa/xtensa.c (override_options): Check
11984 TARGET_FORCE_NO_PIC and set flag_pic.
11985 * config/xtensa/xtensa.opt: Document -mforce-no-pic
11986
11987 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
11988
11989 PR bootstrap/44299
11990 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
11991 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
11992
11993 2010-05-27 Joseph Myers <joseph@codesourcery.com>
11994
11995 * diagnostic-core.h: New. Contents moved from diagnostic.h and
11996 toplev.h.
11997 * diagnostic.c: Don't include toplev.h.
11998 (progname): Define. Moved from toplev.c.
11999 (seen_error): New function.
12000 * diagnostic.h: Include diagnostic-core.h.
12001 (diagnostic_t, emit_diagnostic): Don't declare here.
12002 * toplev.c (progname): Move to toplev.c.
12003 (emit_debug_global_declarations, compile_file, finalize,
12004 do_compile, toplev_main): Use seen_error.
12005 * toplev.h: Include diagnostic-core.h.
12006 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
12007 internal_error, warning, warning_at, error, error_n, error_at,
12008 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
12009 verbatim, fnotice, progname): Move to diagnostic-core.h.
12010 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
12011 (expand_builtin_expect): Use seen_error.
12012 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
12013 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
12014 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
12015 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
12016 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
12017 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
12018 errorcount for errors.
12019 * c-opts.c (c_common_finish): Use seen_error.
12020 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
12021 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
12022 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
12023 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
12024 (get_coverage_counts): Use seen_error.
12025 * dwarf2out.c (dwarf2out_finish): Use seen_error.
12026 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
12027 gimplify_body): Use seen_error.
12028 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
12029 * ipa-pure-const.c (gate_pure_const): Use seen_error.
12030 * ipa-reference.c (gate_reference): Use seen_error.
12031 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
12032 * lambda-code.c: Include diagnostic-core.h instead of
12033 diagnostic.h.
12034 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
12035 * lto-compress.c: Include diagnostic-core.h instead of
12036 diagnostic.h.
12037 * lto-section-in.c: Include diagnostic-core.h instead of
12038 diagnostic.h.
12039 * lto-streamer-out.c: Include diagnostic-core.h instead of
12040 diagnostic.h.
12041 * lto-streamer.c: Include diagnostic-core.h instead of
12042 diagnostic.h.
12043 (gate_lto_out): Use seen_error.
12044 * matrix-reorg.c: Include diagnostic-core.h instead of
12045 diagnostic.h.
12046 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
12047 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
12048 (gate_expand_omp, lower_omp_1): Use seen_error.
12049 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
12050 (rest_of_decl_compilation, rest_of_type_compilation,
12051 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
12052 * tree-cfg.c (label_to_block_fn): Use seen_error.
12053 * tree-inline.c (optimize_inline_calls): Use seen_error.
12054 * tree-mudflap.c (mudflap_finish_file): Use
12055 seen_error.
12056 * tree-optimize.c (gate_all_optimizations,
12057 gate_all_early_local_passes, gate_all_early_optimizations): Use
12058 seen_error.
12059 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
12060 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
12061 (varpool_remove_unreferenced_decls,
12062 varpool_assemble_pending_decls): Use seen_error.
12063 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
12064 (TOPLEV_H, DIAGNOSTIC_H): Update.
12065 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
12066 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
12067 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
12068 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
12069 coverage.o, lambda-code.o): Update dependencies.
12070
12071 2010-05-25 Dodji Seketeli <dodji@redhat.com>
12072
12073 PR c++/44188
12074 * c-common.c (is_typedef_decl): Move this definition ...
12075 * tree.c (is_typedef_decl): ... here.
12076 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
12077 * c-common.h (is_typedef_decl): Move this declaration ...
12078 * tree.h (is_typedef_decl): ... here.
12079 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
12080 * dwarf2out.c (is_naming_typedef_decl): New function.
12081 (gen_tagged_type_die): Split out of ...
12082 (gen_type_die_with_usage): ... this function. When an anonymous
12083 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
12084 is emitted for the typedef.
12085 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
12086 anonymous tagged types.
12087
12088 2010-05-27 Jason Merrill <jason@redhat.com>
12089
12090 * print-tree.c (debug_vec_tree): New fn.
12091 (print_vec_tree): New fn.
12092 * tree.h: Declare them.
12093 * gdbinit.in (pvt): New command.
12094
12095 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
12096
12097 * gdbinit.in (pdd): New command.
12098
12099 2010-05-27 Jan Hubicka <jh@suse.cz>
12100
12101 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
12102 (update_caller_keys): Return early if there are no callers;
12103 only update fibheap when decresing the key.
12104 (update_callee_keys): Avoid recursion.
12105 (decide_inlining_of_small_functions): When badness does not match;
12106 re-insert into fibheap.
12107
12108 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
12109
12110 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
12111 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
12112 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
12113 (ALL_HOST_OBJS): Now a union of the above two.
12114 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
12115 all files in ALL_HOST_FRONTEND_OBJS.
12116 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
12117
12118 * c-common.c: Pretend to be a backend file by undefining
12119 IN_GCC_FRONTEND (still need rtl.h here).
12120
12121 2010-05-27 Jan Hubicka <jh@suse.cz>
12122
12123 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
12124 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
12125
12126 2010-05-27 Jan Hubicka <jh@suse.cz>
12127
12128 * sched-ebb.c: Rename struct deps to struct deps_desc.
12129 * ddg.c: Likewise.
12130 * sel-sched-ir.c: Likewise.
12131 * sched-deps.c: Likewise.
12132 * sched-int.h: Likewise.
12133 * sched-rgn.c: Likewise.
12134
12135 2010-05-27 Jon Beniston <jon@beniston.com>
12136
12137 PR 43726
12138 * config/lm32/lm32.h: Remove definition of
12139 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
12140
12141 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
12142
12143 PR lto/44230
12144 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
12145
12146 2010-05-27 Richard Guenther <rguenther@suse.de>
12147
12148 PR tree-optimization/44284
12149 * tree-vect-stmts.c (vectorizable_assignment): Handle
12150 sign-changing conversions as simple copy.
12151
12152 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12153
12154 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
12155 Bionic C library.
12156 (__gthread_active_p): Check for pthread_create if compiling against
12157 Bionic C library.
12158
12159 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12160
12161 Support compilation for Android platform. Reimplement -mandroid.
12162
12163 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
12164 (*android*): Set ANDROID_DEFAULT.
12165 (arm*-*-linux*): Include linux-android.h.
12166 (arm*-*-eabi*): Don't include previous -mandroid implementation.
12167 * config/arm/eabi.h: Remove, move Android-specific parts ...
12168 * config/linux-android.h: ... here. New file.
12169 * config/arm/eabi.opt: Rename to ...
12170 * config/linux-android.opt: ... this.
12171 (mandroid): Allow -mno-android option. Initialize based on
12172 ANDROID_DEFAULT.
12173 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
12174 Move logic to corresponding LINUX_TARGET_* macros.
12175 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
12176 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
12177 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
12178 Android definitions.
12179 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
12180 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
12181 Document.
12182
12183 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12184
12185 Add support for Bionic C library
12186
12187 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
12188 macro.
12189 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
12190 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
12191
12192 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
12193 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
12194 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
12195 to support multiple C libraries. Handle Bionic.
12196 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
12197 (BIONIC_DYNAMIC_LINKER64): Define.
12198 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
12199 Update.
12200 (TARGET_HAS_SINCOS): Enable for Bionic.
12201
12202 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
12203 the last option specified on command line take effect.
12204 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
12205 (mbionic): New.
12206 (mglibc, muclibc): Update.
12207
12208 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
12209 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
12210 DEFAULT_LIBC.
12211
12212 * doc/invoke.texi (-mglibc, -muclibc): Update.
12213 (-mbionic): Document.
12214
12215 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12216
12217 * c-common.h (c_register_addr_space): Add prototype.
12218 (ADDR_SPACE_KEYWORD): Remove.
12219 * c-common.c (c_register_addr_space): New function.
12220 (c_addr_space_name): Reimplement.
12221 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
12222
12223 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
12224 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
12225
12226 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
12227 Remove TARGET_ADDR_SPACE_KEYWORDS.
12228
12229 2010-05-27 Joseph Myers <joseph@codesourcery.com>
12230
12231 * input.c: New file.
12232 * input.h (main_input_filename): Move declaration to toplev.h.
12233 * toplev.c (input_location, line_table): Move to input.c
12234 * toplev.h (main_input_filename): Move declaration from input.h.
12235 * tree.c (expand_location): Move to input.c.
12236 * Makefile.in (OBJS-common): Add input.o.
12237 (input.o): Add dependencies.
12238
12239 2010-05-27 Richard Guenther <rguenther@suse.de>
12240
12241 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
12242 for non-existant files.
12243 (fork_execute): Mark args_name file as deleted.
12244
12245 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
12246
12247 PR bootstrp/44287
12248 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
12249 (narrow_signed_type): Likewise.
12250
12251 2010-05-26 Jan Hubicka <jh@suse.cz>
12252
12253 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
12254 edge only when checking is enabled; check using former_clone_of;
12255 check inline clones too.
12256 (cgraph_materialize_clone): Record former_clone_of pointer.
12257 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
12258 combining redirections; dump args_to_skip bitmap
12259 (cgraph_materialize_all_clones): Do no redirection here.
12260 * ipa-inline.c (inline_transform): Do redirection here.
12261 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
12262 cheking only).
12263
12264 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
12265
12266 * config/avr/avr-c.c: Do not include regs.h.
12267 Include cpplib.h for cpp_define and tree.h for c-common.h.
12268 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
12269 * config/avr/t-avr: Fix dependencies for avr-c.o.
12270
12271 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
12272
12273 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
12274 string instead of SYMBOL_REF rtx.
12275 * rtl.h (set_stack_check_libfunc): Move prototype from here...
12276 * libfuncs.h: ...to here. Adjust for explow.c change.
12277
12278 2010-05-26 Joseph Myers <joseph@codesourcery.com>
12279
12280 * pretty-print.c: Don't include ggc.h.
12281 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
12282 (identifier_to_locale): Use them for allocation.
12283 * pretty-print.h (identifier_to_locale_alloc,
12284 identifier_to_locale_free): Declare.
12285 * toplev.c (alloc_for_identifier_to_locale): New.
12286 (general_init): Set identifier_to_locale_alloc and
12287 identifier_to_locale_free.
12288 * Makefile.in (pretty-print.o): Update dependencies.
12289
12290 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
12291
12292 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
12293 pointer types if they have different alignment or mode.
12294
12295 2010-05-26 Anatoly Sokolov <aesok@post.ru>
12296
12297 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12298 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12299 * config/sparc/sparc-protos.h (function_value): Remove declaration.
12300 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
12301 sparc_function_value_regno_p): New functions.
12302 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12303 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12304 (function_value): Rename to...
12305 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
12306 argument to 'outgoing'.
12307 (function_arg_record_value, function_arg_union_value,
12308 function_arg_vector_value): Update comment.
12309
12310 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
12311
12312 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
12313 (fde_needed_for_eh_p): New predicate.
12314 (output_call_frame_info): Use it throughout to decide whether FDEs
12315 are needed for EH purpose.
12316 (dwarf2out_begin_prologue): Reorder assignments.
12317
12318 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
12319
12320 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
12321 special case loop->header.
12322 (is_predicated): New.
12323 (if_convertible_loop_p): Call it.
12324
12325 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
12326
12327 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
12328 iterator in parameter. Do not generate code during the analysis.
12329 (tree_if_convert_cond_stmt): Removed.
12330 (tree_if_convert_stmt): Removed.
12331 (predicate_bbs): New.
12332 (if_convertible_loop_p): Call predicate_bbs.
12333 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
12334 now contains all the analysis part.
12335
12336 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
12337
12338 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
12339 statements in the analysis part.
12340 (tree_if_convert_stmt): Update comment.
12341 (remove_conditions_and_labels): New.
12342 (combine_blocks): Call remove_conditions_and_labels.
12343 (tree_if_conversion): Update comment.
12344
12345 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
12346
12347 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
12348 than 2 predecessors or more than 2 successors.
12349
12350 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
12351
12352 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
12353 of loops in which the data dependence analysis fails.
12354
12355 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
12356
12357 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
12358 CDI_POST_DOMINATORS.
12359 (tree_if_conversion): Same.
12360
12361 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
12362
12363 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
12364
12365 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
12366
12367 * tree-if-conv.c: Update copyright years. Fix comments.
12368 Fix indentation.
12369
12370 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
12371
12372 * builtin-types.def (BT_INT128): New primitive type.
12373 (BT_UINT128): Likewise.
12374 * c-common.c (c_common_r): Add __int128 keyword.
12375 (c_common_type_for_size): Handle __int128.
12376 (c_common_type_for_mode): Likewise.
12377 (c_common_signed_or_unsigned_type): Likewise.
12378 (c_common_nodes_and_builtins): Add builtin type
12379 if target supports 128-bit integer scalar.
12380 * c-common.h (enum rid): Add RID_INT128.
12381 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
12382 if target supports 128-bit integer scalar.
12383 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
12384 (finish_declspecs): Likewise.
12385 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
12386 (c_token_starts_declspecs): Likewise.
12387 (c_parser_declspecs): Likewise.
12388 (c_parser_attributes): Likewise.
12389 (c_parser_objc_selector): Likewise.
12390 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
12391 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
12392 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
12393 * tree.c (make_or_reuse_type): Likewise.
12394 (make_unsigned_type): Likewise.
12395 (build_common_tree_nodes_2): Likewise.
12396 * tree.h (enum integer_type_kind): Add itk_int128 and
12397 itk_unsigned_int128.
12398 (int128_integer_type_node): New define.
12399 (int128_unsigned_type_node): New define.
12400 * doc/extend.texi: Add documentation about __int128 type.
12401
12402 2010-05-26 Richard Guenther <rguenther@suse.de>
12403
12404 * tree-ssa-sccvn.c (copy_nary): Adjust.
12405 (copy_phis): Rename to ...
12406 (copy_phi): ... this. Adjust.
12407 (copy_references): Rename to ...
12408 (copy_reference): ... this. Adjust.
12409 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
12410 result into the valid table.
12411
12412 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
12413
12414 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
12415 insn-config.h, insn-codes.h, recog.h, and optabs.h.
12416
12417 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12418
12419 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
12420
12421 2010-05-26 Richard Guenther <rguenther@suse.de>
12422
12423 * opts.c (common_handle_option): Handle OPT_Ofast.
12424
12425 2010-05-26 Joseph Myers <joseph@codesourcery.com>
12426
12427 * diagnostic.c: Don't include opts.h.
12428 (permissive_error_option): Define.
12429 (diagnostic_initialize): Take n_opts parameter. Allocate memory
12430 for classify_diagnostic. Don't use memset for
12431 classify_diagnostic. Initialize new and recently added fields.
12432 (diagnostic_classify_diagnostic): Use context->n_opts instead of
12433 N_OPTS.
12434 (diagnostic_report_diagnostic): Pass context parameter to
12435 diagnostic_report_warnings_p. Use option_enabled and option_name
12436 hooks from context.
12437 (emit_diagnostic): Use permissive_error_option.
12438 (permerror): Likewise.
12439 * diagnostic.h: Don't include options.h.
12440 (struct diagnostic_context): Add n_opts, opt_permissive,
12441 inhibit_warnings, warn_system_headers, option_enabled and
12442 option_name fields. Change classify_diagnostic to a pointer.
12443 * opts-diagnostic.h: New file.
12444 * opts.c: Include opts-diagnostic.h.
12445 (common_handle_option): Set global_dc fields for -Wfatal-errors,
12446 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
12447 (option_name): New function.
12448 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
12449 (c_common_handle_option): Set global_dc->permissive for
12450 -fpermissive.
12451 * c-common.c (c_cpp_error): Save and restore
12452 global_dc->warn_system_headers, not variable warn_system_headers.
12453 * toplev.c: Include opts-diagnostic.h.
12454 (general_init): Update call to diagnostic_initialize. Set
12455 global_dc->show_column, global_dc->option_enabled and
12456 global_dc->option_name.
12457 (process_options): Don't set global_dc fields here.
12458 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
12459 (diagnostic.o, opts.o, toplev.o): Update dependencies.
12460
12461 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
12462
12463 * config/picochip/picochip.md (movsi): Split a movsi from a
12464 const after reload.
12465
12466 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12467
12468 * ggc-zone.c: Update copyright year.
12469 (poison_region): Mark memory for Valgrind as undefined before
12470 memset () call and inaccessible afterwards.
12471 (ggc_pch_total_size): Change type of i to int.
12472
12473 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12474
12475 * ggc-common.c (ggc_free_overhead): Allow empty slot.
12476
12477 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12478
12479 * ggc-common.c: Update copyright year.
12480 (ggc_rlimit_bound): Remove prototype. Compile only if
12481 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
12482 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
12483 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
12484 (ggc_min_heapsize_heuristic): Likewise.
12485
12486 2010-05-26 Richard Guenther <rguenther@suse.de>
12487
12488 PR rtl-optimization/44164
12489 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
12490 no-common access-path disambiguation.
12491 (indirect_ref_may_alias_decl_p): Adjust.
12492 (indirect_refs_may_alias_p): Likewise.
12493 (refs_may_alias_p_1): Likewise.
12494
12495 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
12496
12497 * c-typeck.c: Do not include expr.h.
12498
12499 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
12500
12501 * rtl.h (decl_default_tls_model): Move prototype from here...
12502 * output.h: ...to here.
12503 * c-decl.c: Do not include rtl.h.
12504 * c-pragma.c: Likewise.
12505 * c-parser.c: Likewise.
12506 * c-gimplify.c: Likewise. And also not hard-reg-set.
12507 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
12508 FIXME note for it. Add a FIXME note for expr.h.
12509 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
12510 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
12511 defined.
12512
12513 2010-05-26 Jakub Jelinek <jakub@redhat.com>
12514
12515 PR target/44199
12516 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
12517 or total_size is larger than red zone size for non-V4 ABI, emit a
12518 stack_tie resp. frame_tie insn before stack pointer restore.
12519 * config/rs6000/rs6000.md (frame_tie): New insn.
12520
12521 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
12522
12523 * function.h (struct function): Add can_throw_non_call_exceptions bit.
12524 * lto-streamer-in.c (input_function): Stream it in.
12525 * lto-streamer-out.c (output_function): Stream it out.
12526 * function.c (allocate_struct_function): Set it.
12527 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
12528 for flag_non_call_exceptions.
12529 * cfgbuild.c (control_flow_insn_p): Likewise.
12530 (make_edges): Likewise.
12531 * cfgexpand.c (expand_stack_alignment): Likewise.
12532 * combine.c (distribute_notes): Likewise.
12533 * cse.c (cse_extended_basic_block): Likewise.
12534 * except.c (insn_could_throw_p): Likewise.
12535 * gcse.c (simple_mem): Likewise.
12536 * ipa-pure-const.c (check_call): Likewise.
12537 (check_stmt ): Likewise.
12538 * lower-subreg.c (lower-subreg.c): Likewise.
12539 * optabs.c (emit_libcall_block): Likewise.
12540 (prepare_cmp_insn): Likewise.
12541 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
12542 * postreload.c (rest_of_handle_postreload): Likewise.
12543 * reload1.c (reload_as_needed): Likewise.
12544 (emit_input_reload_insns): Likewise.
12545 (emit_output_reload_insns): Likewise.
12546 (fixup_abnormal_edges): Likewise.
12547 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
12548 * store-motion.c (find_moveable_store): Likewise.
12549 * tree-eh.c (stmt_could_throw_p): Likewise.
12550 (tree_could_throw_p): Likewise.
12551 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
12552 * config/arm/arm.c (arm_expand_prologue): Likewise.
12553 (thumb1_expand_prologue): Likewise.
12554 * config/rx/rx.md (cbranchsf4): Likewise.
12555 (cmpsf): Likewise.
12556 * config/s390/s390.c (s390_emit_prologue): Likewise.
12557 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
12558 (inline_forbidden_into_p): New predicate.
12559 (expand_call_inline): Use it to forbid inlining.
12560 (tree_can_inline_p): Likewise.
12561
12562 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
12563
12564 * config/i386/i386-c.c: Do not include rtl.h.
12565 * config/i386/t-i386: Update dependencies.
12566
12567 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
12568
12569 * attribs.c: Do not include rtl.h.
12570 * Makefile.in: Update dependencies.
12571
12572 2010-05-25 Anatoly Sokolov <aesok@post.ru>
12573
12574 * double-int.h (double_int_and): New.
12575 * combine.c (try_combine): Clean up, use double_int_* and
12576 immed_double_int_const functions.
12577
12578 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12579
12580 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
12581 stderr to /dev/null instead of grep -q.
12582 * configure: Regenerate.
12583
12584 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
12585
12586 * Makefile.in (EXCEPT_H): Fix typo.
12587
12588 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
12589
12590 * ira-build.c (update_conflict_hard_reg_costs): New.
12591 (ira_build): Call update_conflict_hard_reg_costs.
12592
12593 2010-05-25 Jakub Jelinek <jakub@redhat.com>
12594
12595 PR debug/41371
12596 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
12597 ENABLE_CHECKING.
12598 (intersect_loc_chains): Walk the s2var's loc_chain together
12599 with s1node chain as long as the locations are equal, don't
12600 call find_loc_in_1pdv in that case.
12601
12602 PR debug/42801
12603 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
12604 (copy_bind_expr): ... instead of here.
12605 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
12606 if the block hasn't been remapped.
12607 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
12608 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
12609
12610 2010-05-25 Richard Guenther <rguenther@suse.de>
12611
12612 PR middle-end/44069
12613 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
12614 out-of-bounds array accesses.
12615
12616 2010-05-25 Richard Guenther <rguenther@suse.de>
12617
12618 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
12619 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
12620 (run_gcc): Re-organize to make cleanup easier.
12621
12622 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12623
12624 * config/s390/s390.c (optimization_options): Fix and move the
12625 flag_prefetch_loop_arrays override ...
12626 (override_options): ... here.
12627
12628 2010-05-25 Joseph Myers <joseph@codesourcery.com>
12629
12630 * diagnostic.c: Don't include plugin.h.
12631 (diagnostic_report_diagnostic): Don't handle plugins specially
12632 here. Pass context to internal_error callback.
12633 * diagnostic.h (struct diagnostic_context): Add context parameter
12634 to internal_error callback.
12635 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
12636 * plugin.h (struct diagnostic_context): Declare.
12637 (warn_if_plugins, plugins_internal_error_function): Declare.
12638 * toplev.c (general_init): Set global_dc->internal_error.
12639 * Makefile.in (diagnostic.o): Update dependencies.
12640
12641 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
12642
12643 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
12644 * config/rs6000/t-darwin64: New.
12645 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
12646 build crt2.
12647
12648 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
12649
12650 PR 44203
12651 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
12652 match the original (and intended) behaviour before r159557. This
12653 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
12654 in two ways.
12655
12656 2010-05-25 Richard Guenther <rguenther@suse.de>
12657
12658 * doc/invoke.texi: Document -Ofast.
12659 * target.h (struct gcc_target): Add handle_ofast.
12660 * target-def.h (TARGET_HANDLE_OFAST): Add.
12661 (TARGET_INITIALIZER): Adjust.
12662 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
12663 * common.opt (Ofast): Add.
12664
12665 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
12666
12667 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
12668 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
12669
12670 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
12671
12672 PR target/43610
12673 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
12674 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
12675 false_rtx. Use false_rtx to compute the correct *ptest for reversed
12676 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
12677
12678 2010-05-25 Jakub Jelinek <jakub@redhat.com>
12679
12680 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
12681 DW_OP_minus with negated offset instead of DW_OP_plus.
12682 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
12683
12684 2010-05-25 Wei Guozhi <carrot@google.com>
12685
12686 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
12687 tst instruction and a new alternative.
12688 * config/arm/constraints.md (Pu): New constraint.
12689
12690 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
12691
12692 * function.c (assign_stack_local_1): Initialize variable
12693 to avoid warning when bootstrapping at -O3.
12694
12695 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
12696
12697 * configure.ac (all_lang_makefiles): Remove everything related to it.
12698 * configure: Regenerate.
12699 * Makefile.in: Fix reference to ada Make-lang.in.
12700 Remove support for LANG_MAKEFILES.
12701
12702 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
12703 Sandra Loosemore <sandra@codesourcery.com>
12704
12705 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
12706 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
12707 description. Add arm_neon_fp16_ok.
12708 (Add Options): Add arm_neon and arm_neon_fp16.
12709
12710 2010-05-24 Joseph Myers <joseph@codesourcery.com>
12711
12712 * diagnostic.c: Don't include flags.h.
12713 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
12714 context parameters. Check flags in the context passed as a parameter.
12715 (diagnostic_build_prefix): Add context parameter. Check
12716 show_column flag in context.
12717 (diagnostic_action_after_output): Check fatal_errors flag in context.
12718 (diagnostic_report_current_module): Check show_column flag in context.
12719 (default_diagnostic_starter): Update call to
12720 diagnostic_build_prefix.
12721 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
12722 (emit_diagnostic): Pass context to permissive_error_kind.
12723 (permerror): Pass context to permissive_error_kind.
12724 * diagnostic.h (struct diagnostic_context): Add show_column,
12725 pedantic_errors, permissive and fatal_errors fields.
12726 (diagnostic_build_prefix): Update prototype.
12727 * langhooks.c
12728 * toplev.c (process_options): Set flags in global_dc from
12729 flag_show_column, flag_pedantic_errors, flag_permissive,
12730 flag_fatal_errors.
12731 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
12732 to diagnostic_build_prefix.
12733 * Makefile.in (diagnostic.o): Update dependencies.
12734
12735 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
12736
12737 * config/i386/ia32intrin.h (__crc32q): Define only if
12738 __SSE4_2__ is defined.
12739
12740 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
12741
12742 PR target/44132
12743 PR middle-end/43602
12744 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
12745 DECL_VISIBILITY_SPECIFIED.
12746 (emutls_decl): Set DECL_PRESERVE_P and copy
12747 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
12748 (emutls_finalize_control_var): New callback.
12749 (emutls_finish): Finalize emutls control variables.
12750 * toplev.c (compile_file): Move the call to emutls_finish ()
12751 before varpool_assemble_pending_decls ().
12752
12753 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
12754
12755 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
12756 added to the preprocessor condition.
12757
12758 2010-05-24 Paul Brook <paul@codesourcery.com>
12759
12760 * gengtype-lex.l: Add HARD_REG_SET.
12761 * expr.c (expand_expr_real_1): Record writes to hard registers.
12762 * function.c (rtl_data): Add asm_clobbers.
12763 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
12764 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
12765 Use crtl->asm_clobbers.
12766
12767 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12768
12769 * doc/makefile.texi (Makefile): Mention stages 'profile'
12770 and 'feedback' for profiledbootstrap.
12771
12772 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
12773
12774 PR target/44245
12775 * config/i386/i386.c (def_builtin): Properly check
12776 OPTION_MASK_ISA_64BIT.
12777
12778 2010-05-23 Joseph Myers <joseph@codesourcery.com>
12779
12780 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
12781 typedefs with different but compatible types. Allow duplicate
12782 typedefs with the same type except for pedantic non-C1X, but give
12783 warning for variably modified types.
12784 * c-typeck.c (tagged_types_tu_compatible_p,
12785 function_types_compatible_p, type_lists_compatible_p,
12786 comptypes_internal): Add parameter different_types_p; set
12787 *different_types_p for different but compatible types. All
12788 callers changed.
12789 (comptypes_check_different_types): New.
12790 * c-tree.h (comptypes_check_different_types): Declare.
12791
12792 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
12793
12794 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
12795 * jump.c: Include basic-block.h.
12796 * profile.c: Likewise.
12797 * tree-profile.c: Likewise.
12798 * coverage.c: Likewise.
12799 * basic-block.h (optimize_function_for_size_p): Move to function.h.
12800 (optimize_function_for_speed_p): Likewise.
12801 * function.h (optimize_function_for_size_p,
12802 optimize_function_for_speed_p): Moved here from basic-block.h.
12803 * Makefile.in: Update dependencies.
12804
12805 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12806
12807 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
12808 before calling make; allow override through $MAKE.
12809 * doc/invoke.texi (Optimize Options): Document override.
12810
12811 2010-05-23 Anatoly Sokolov <aesok@post.ru>
12812
12813 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
12814 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12815 (rs6000_mode_dependent_address_ptr): Make static.
12816 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12817 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
12818 Remove.
12819
12820 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
12821
12822 PR target/43869
12823 * config/i386/i386.c: Make sure that the correct regparm is passed.
12824
12825 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
12826
12827 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
12828 * sbitmap.c: ...to here to internalize sbitmap element access.
12829 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
12830 Explain why basic-block.h is included.
12831 * function.h: Include tm.h for CUMULATIVE_ARGS.
12832 * Makefile.in: Update dependencies.
12833
12834 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
12835
12836 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
12837 New core types.
12838 * sbitmap.h (struct sbitmap_def): Do not typedef here.
12839 * sbitmap.c: Include sbitmap.h.
12840 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
12841 hard-reg-set.h. Split everything related to regsets out from here...
12842 * regset.h: ...to here. New file.
12843 * df.h: Include regset.h and sbitmap.h.
12844 * tree-flow.h: Likewise.
12845 * cfgloop.h: Likewise.
12846 * except.h: Do not include sbitmap.h. Include hashtab.h.
12847 * cgraph.h: Include vec.h and function.h.
12848 * reload.h (struct insn_chain): Change types of live_throughout
12849 and dead_or_set from regset_head to bitmap_head.
12850 (compute_use_by_pseudos): Be defined also if regset.h is not included.
12851 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
12852 spilled_regs from regset_head to bitmap_head to avoid dependency
12853 in regset.h.
12854 * sel-sched-ir.h: Include regset.h.
12855 * reload.c: Include df.h before reload.h.
12856 * caller-save.c: Likewise.
12857 * reload1.c: Likewise.
12858 * ira.c: Likewise.
12859 (mark_elimination): Update type of r to bitmap, consistent with
12860 DF_LR_IN.
12861 * dominance.c: Include bitmap.h.
12862 * modulo-sched.c: Include df.h.
12863 * cfganal.c: Include bitmap.h and sbitmap.h.
12864 * cfgbuild.c: Include sbitmap.h.
12865 * lcm.c: Include sbitmap.h.
12866 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
12867 * domwalk.c: Include sbitmap.h, exclude ggc.h.
12868 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
12869 * cselib.c: Include bitmap.h.
12870 * tree-optimize.c: Include regset.h.
12871 * stmt.c: Include bitmap.h.
12872 * Makefile.in: Update dependencies.
12873
12874 2010-05-22 Jan Hubicka <jh@suse.cz>
12875
12876 * cgraph.h (struct varpool_node): Add same_comdat_group.
12877 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
12878 pointer.
12879 (output_varpool): Update call of lto_output_varpool_node.
12880 (input_varpool): Read same_comdat_group pointer.
12881 (input_varpool_1): Fixup same_comdat_group pointer.
12882 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
12883 group is needed, all are.
12884 * varpool.c (varpool_remove_node): Remove node from same comdat group
12885 linklist too.
12886 (varpool_analyze_pending_decls): Walk same comdat groups.
12887
12888 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
12889
12890 * rtl.h (union rtunion_def): Remove rt_bit member.
12891 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
12892 * print-rtl (print_rtx): Do not print the member.
12893 * gengtype.c (adjust_field_rtx_def): Do not handle it.
12894 * gengenrtl.c (type_from_format): Likewise.
12895 (accessor_from_format): Likewise.
12896
12897 2010-05-22 Joseph Myers <joseph@codesourcery.com>
12898
12899 * dbgcnt.c: Include toplev.h instead of errors.h.
12900 * ira-emit.c: Don't include errors.h.
12901 * ira.c: Include toplev.h instead of errors.h.
12902 * lto-compress.c: Include toplev.h instead of errors.h.
12903 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
12904 ira.o, dbgcnt.o): Update dependencies.
12905
12906 2010-05-22 Richard Guenther <rguenther@suse.de>
12907
12908 * gimple.c (gimple_types_compatible_p): Check type qualifications
12909 before merging pointer to complete and pointer to incomplete type.
12910 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
12911 we use our own resolution algorithm. The gold linker plugin
12912 doesn't do the job we want it to do here.
12913
12914 2010-05-22 Anatoly Sokolov <aesok@post.ru>
12915
12916 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12917 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12918 (sparc_mode_dependent_address_p): New function.
12919
12920 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
12921
12922 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
12923
12924 * timevar.c: Do not include any core headers.
12925 (timevar_print): De-i18n-ize.
12926 (print_time): Likewise.
12927 * timevar.h (timevar_push, timevar_pop): Make inline functions.
12928
12929 2010-05-21 Joseph Myers <joseph@codesourcery.com>
12930
12931 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
12932 langhooks-def.h.
12933 (diagnostic_initialize): Initialize x_data not last_function.
12934 (diagnostic_report_current_function): Move to tree-diagnostic.c.
12935 (default_diagnostic_starter): Call
12936 diagnostic_report_current_module not
12937 diagnostic_report_current_function.
12938 (diagnostic_report_diagnostic): Initialize x_data not
12939 abstract_origin.
12940 (verbatim): Likewise.
12941 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
12942 x_data.
12943 (struct diagnostic_context): Change last_function to x_data.
12944 (diagnostic_auxiliary_data): Replace with
12945 diagnostic_context_auxiliary_data and
12946 diagnostic_info_auxiliary_data.
12947 (diagnostic_last_function_changed, diagnostic_set_last_function,
12948 diagnostic_report_current_function): Move to tree-diagnostic.h.
12949 (print_declaration, dump_generic_node, print_generic_stmt,
12950 print_generic_stmt_indented, print_generic_expr,
12951 print_generic_decl, debug_c_tree, dump_omp_clauses,
12952 print_call_name, debug_generic_expr, debug_generic_stmt,
12953 debug_tree_chain, default_tree_printer): Move to
12954 tree-pretty-print.h.
12955 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
12956 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
12957 gimple-pretty-print.h.
12958 * pretty-print.c: Don't include tree.h
12959 (pp_base_format): Don't handle %K here.
12960 (pp_base_tree_identifier): Move to tree-pretty-print.c.
12961 * pretty-print.h (text_info): Change abstract_origin to x_data.
12962 (pp_tree_identifier, pp_unsupported_tree,
12963 pp_base_tree_identifier): Move to tree-pretty-print.h.
12964 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
12965 tree-pretty-print.h: New files.
12966 * tree-pretty-print.c: Include tree-pretty-print.h.
12967 (percent_K_format): New. Moved from pretty-print.c.
12968 (pp_base_tree_identifier): Move from pretty-print.c.
12969 * c-objc-common.c: Include tree-pretty-print.h.
12970 (c_tree_printer): Handle %K here.
12971 * langhooks.c: Include tree-diagnostic.h.
12972 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
12973 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
12974 (default_tree_printer): Handle %K using percent_K_format.
12975 (general_init): Use default_tree_diagnostic_starter.
12976 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
12977 (free_lang_data): Use default_tree_diagnostic_starter.
12978 * c-pretty-print.c: Include tree-pretty-print.h.
12979 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
12980 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
12981 * dwarf2out.c: Include tree-pretty-print.h.
12982 * except.c: Include tree-pretty-print.h.
12983 * gimple-pretty-print.c: Include tree-pretty-print.h and
12984 gimple-pretty-print.h.
12985 * gimplify.c: Include tree-pretty-print.h.
12986 * graphite-poly.c: Include tree-pretty-print.h and
12987 gimple-pretty-print.h.
12988 * ipa-cp.c: Include tree-pretty-print.h.
12989 * ipa-inline.c: Include gimple-pretty-print.h.
12990 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
12991 * ipa-pure-const.c: Include gimple-pretty-print.h.
12992 * ipa-struct-reorg.c: Include tree-pretty-print.h and
12993 gimple-pretty-print.h.
12994 * ipa-type-escape.c: Include tree-pretty-print.h.
12995 * print-rtl.c: Include tree-pretty-print.h.
12996 * print-tree.c: Include gimple-pretty-print.h.
12997 * sese.c: Include tree-pretty-print.h.
12998 * tree-affine.c: Include tree-pretty-print.h.
12999 * tree-browser.c: Include tree-pretty-print.h.
13000 * tree-call-cdce.c: Include gimple-pretty-print.h.
13001 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13002 * tree-chrec.c: Include tree-pretty-print.h.
13003 * tree-data-ref.c: Include tree-pretty-print.h and
13004 gimple-pretty-print.h.
13005 * tree-dfa.c: Include tree-pretty-print.h.
13006 * tree-if-conv.c: Include tree-pretty-print.h and
13007 gimple-pretty-print.h.
13008 * tree-inline.c: Include tree-pretty-print.h.
13009 * tree-into-ssa.c: Include tree-pretty-print.h and
13010 gimple-pretty-print.h.
13011 * tree-nrv.c: Include tree-pretty-print.h.
13012 * tree-object-size.c: Include tree-pretty-print.h and
13013 gimple-pretty-print.h.
13014 * tree-outof-ssa.c: Include tree-pretty-print.h and
13015 gimple-pretty-print.h.
13016 * tree-parloops.c: Include tree-pretty-print.h and
13017 gimple-pretty-print.h.
13018 * tree-predcom.c: Include tree-pretty-print.h and
13019 gimple-pretty-print.h.
13020 * tree-scalar-evolution.c: Include tree-pretty-print.h and
13021 gimple-pretty-print.h.
13022 * tree-sra.c: Include tree-pretty-print.h.
13023 * tree-ssa-address.c: Include tree-pretty-print.h.
13024 * tree-ssa-alias.c: Include tree-pretty-print.h.
13025 * tree-ssa-ccp.c: Include tree-pretty-print.h and
13026 gimple-pretty-print.h.
13027 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
13028 * tree-ssa-copy.c: Include tree-pretty-print.h and
13029 gimple-pretty-print.h.
13030 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
13031 * tree-ssa-dce.c: Include tree-pretty-print.h and
13032 gimple-pretty-print.h.
13033 * tree-ssa-dom.c: Include tree-pretty-print.h and
13034 gimple-pretty-print.h.
13035 * tree-ssa-dse.c: Include gimple-pretty-print.h.
13036 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
13037 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
13038 * tree-ssa-live.c: Include tree-pretty-print.h and
13039 gimple-pretty-print.h.
13040 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
13041 gimple-pretty-print.h.
13042 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
13043 gimple-pretty-print.h.
13044 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
13045 gimple-pretty-print.h.
13046 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
13047 gimple-pretty-print.h.
13048 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
13049 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
13050 * tree-ssa-operands.c: Include tree-pretty-print.h and
13051 gimple-pretty-print.h.
13052 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
13053 gimple-pretty-print.h.
13054 * tree-ssa-pre.c: Include tree-pretty-print.h and
13055 gimple-pretty-print.h.
13056 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
13057 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
13058 gimple-pretty-print.h.
13059 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
13060 gimple-pretty-print.h.
13061 * tree-ssa-sink.c: Include gimple-pretty-print.h.
13062 * tree-ssa-ter.c: Include tree-pretty-print.h and
13063 gimple-pretty-print.h.
13064 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
13065 * tree-ssa.c: Include tree-pretty-print.h and
13066 gimple-pretty-print.h.
13067 * tree-stdarg.c: Include gimple-pretty-print.h.
13068 * tree-switch-conversion.c: Include gimple-pretty-print.h.
13069 * tree-tailcall.c: Include tree-pretty-print.h and
13070 gimple-pretty-print.h.
13071 * tree-vect-data-refs.c: Include tree-pretty-print.h and
13072 gimple-pretty-print.h.
13073 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
13074 gimple-pretty-print.h.
13075 * tree-vect-loop.c: Include tree-pretty-print.h and
13076 gimple-pretty-print.h.
13077 * tree-vect-patterns.c: Include gimple-pretty-print.h.
13078 * tree-vect-slp.c: Include tree-pretty-print.h and
13079 gimple-pretty-print.h.
13080 * tree-vect-stmts.c: Include tree-pretty-print.h and
13081 gimple-pretty-print.h.
13082 * tree-vectorizer.c: Include tree-pretty-print.h.
13083 * tree-vrp.c: Include tree-pretty-print.h and
13084 gimple-pretty-print.h.
13085 * value-prof.c: Include tree-pretty-print.h and
13086 gimple-pretty-print.h.
13087 * var-tracking.c: Include tree-pretty-print.h.
13088 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
13089 (tree-diagnostic.o): New dependencies.
13090 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
13091 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
13092 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
13093 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
13094 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
13095 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
13096 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
13097 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
13098 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
13099 tree-ssa-address.o, tree-ssa-loop-niter.o,
13100 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
13101 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
13102 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
13103 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
13104 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
13105 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
13106 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
13107 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
13108 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
13109 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
13110 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
13111 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
13112 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
13113 tree-switch-conversion.o, var-tracking.o, value-prof.o,
13114 cfgexpand.o, pretty-print.o): Update dependencies.
13115
13116 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
13117
13118 * tree-ssa-structalias.c: Remove tm_p.h from include.
13119
13120 2010-05-21 Jeff Law <law@redhat.com>
13121
13122 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
13123
13124 2010-05-21 Jason Merrill <jason@redhat.com>
13125
13126 * tree-eh.c (cleanup_is_dead_in): New.
13127 (lower_try_finally): Don't generate a dead cleanup region.
13128 (lower_cleanup): Likewise.
13129
13130 2010-05-21 Jakub Jelinek <jakub@redhat.com>
13131
13132 PR debug/44223
13133 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
13134 unchain each use from the cyclic next_regno_use chain first.
13135
13136 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
13137
13138 * real: Do not include gmp.h, mpfr.h, and mpc.h.
13139 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
13140 (real_value_negate, real_value_abs): New prototypes.
13141 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
13142 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
13143 new include file for interface between MPFR and REAL_VALUE_TYPE.
13144 * real.c: Include realmpfr.h.
13145 (real_arithmetic2): Remove legacy function.
13146 (real_value_negate): New.
13147 (real_value_abs): New.
13148 (mfpr_from_real, real_from_mpfr): Move from here...
13149 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
13150 * builtins.c: Include realmpfr.h.
13151 * fold-const.c: Include realmpfr.h.
13152 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
13153 (fold_negate_const): Likewise.
13154 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
13155 * toplev.c: Include realmpfr.h.
13156 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
13157 and real_value_negate.
13158 * fixed-value.c (check_real_for_fixed_mode): Likewise.
13159 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
13160 (vfp3_const_double_index): Likewise.
13161 (arm_print_operand): Likewise.
13162 * Makefile.in: Update dependencies.
13163
13164 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13165
13166 * config/s390/s390.c (override_options): Increase the default
13167 of max-completely-peel-times.
13168
13169 2010-05-21 Julian Brown <julian@codesourcery.com>
13170 Mark Mitchell <mark@codesourcery.com>
13171
13172 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
13173 sibling calls for Thumb-1.
13174 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
13175 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
13176 Thumb-2.
13177 (*call_insn, *call_value_insn): Don't use for Thumb-2.
13178 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
13179 for Thumb-2.
13180 (return): New expander.
13181 (*arm_return): New name for ARM return insn.
13182 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
13183
13184 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
13185
13186 * config.gcc (sparc64-*-rtems*): New target.
13187
13188 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
13189
13190 * tree.c (build_function_decl_skip_args): Fix grammar.
13191 (build_function_type_list_1): Fix typos, adjust formatting.
13192
13193 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
13194
13195 * tree.h: Include real.h and fixed-value.h as basic datatypes.
13196 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
13197 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
13198 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
13199 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
13200 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
13201 tree-pretty-print.c, tree-loop-distribution.c,
13202 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
13203 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
13204 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
13205 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
13206 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
13207 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
13208 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
13209 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
13210 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
13211 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
13212 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
13213 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
13214 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
13215 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
13216 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
13217 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
13218 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
13219 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
13220 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
13221 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
13222 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
13223 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
13224 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
13225 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
13226 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
13227 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
13228 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
13229 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
13230 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
13231 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
13232 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
13233 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
13234 config/score/score7.c, config/score/score.c, config/arm/arm.c,
13235 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
13236 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
13237 config/bfin/bfin.c: Clean up redundant includes.
13238 * Makefile.in: Update accordingly.
13239
13240 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
13241
13242 PR middle-end/44204
13243 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
13244 statement has no arguments.
13245
13246 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
13247
13248 PR/44139
13249 * varasm.c (emutls_decl): Merge attributes to new decl.
13250
13251 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
13252
13253 PR middle-end/44101
13254 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
13255 around the uniquized constructor if its type requires a conversion.
13256
13257 2010-05-21 Jakub Jelinek <jakub@redhat.com>
13258
13259 PR debug/44205
13260 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
13261 at -O0 goto_locus of any of the incoming edges differs from
13262 goto_locus of outgoing edge, or gimple_location of any of the
13263 labels differs.
13264
13265 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
13266
13267 * ira.c (ira_non_ordered_class_hard_regs): Define.
13268 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
13269 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
13270 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
13271 cost of unaligned hard regs when allocating multi-reg pseudos.
13272
13273 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
13274
13275 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
13276 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
13277 for TARGET_NO_FLOAT.
13278 * config/mips/mips.c (mips_file_start): Expand conditional expression
13279 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
13280 (mips_override_options): Move -mno-float override -msoft-float and
13281 -mhard-float.
13282 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
13283 Condition(TARGET_SUPPORTS_NO_FLOAT).
13284 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
13285 __mips_no_float here.
13286 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
13287 (TARGET_SUPPORTS_NO_FLOAT): Define.
13288 * config/mips/sdemtk.opt: Delete.
13289
13290 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
13291
13292 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
13293
13294 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
13295
13296 PR target/43733
13297 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
13298 * configure: Regenerate.
13299 * config.in: Regenerate.
13300 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
13301 instead of sahf only for 64bit targets.
13302
13303 2010-05-20 Jakub Jelinek <jakub@redhat.com>
13304
13305 PR debug/44178
13306 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
13307 setup_ref_regs for DEBUG_INSNs.
13308
13309 2010-05-20 Jan Hubicka <jh@suse.cz>
13310
13311 PR middle-end/44197
13312 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
13313
13314 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
13315
13316 PR bootstrap/43870
13317 * df-scan.c (df_ref_compare): Stabilize sort.
13318
13319 2010-05-20 Jakub Jelinek <jakub@redhat.com>
13320
13321 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
13322 argument. Don't use DW_OP_piece if offset is non-zero,
13323 put offset into second DW_OP_bit_piece argument.
13324 (dw_sra_loc_expr): Adjust callers. For memory expressions
13325 compute offset.
13326
13327 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
13328
13329 PR target/44202
13330 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
13331 settings for 16-bit-constant "addo" alternative.
13332
13333 2010-05-19 James E. Wilson <wilson@codesourcery.com>
13334
13335 * config/mips/mips-dsp.md (add<DSPV:mode>3,
13336 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
13337
13338 PR target/43764
13339 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
13340 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
13341 Use it.
13342
13343 2010-05-19 Joseph Myers <joseph@codesourcery.com>
13344
13345 * diagnostic.c (FLOAT, FFS): Don't undefine.
13346 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
13347 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
13348 include ordering.
13349
13350 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
13351
13352 * combine.c (propagate_for_debug): Call make_compound_operation
13353 on the source value.
13354 (try_combine): When implementing a split chosen by find_split_point,
13355 either copy i2src or set it to null. Assert that i2src is not null
13356 before substituting into CALL_INSN_FUNCTION_USAGE.
13357
13358 2010-05-19 Anatoly Sokolov <aesok@post.ru>
13359
13360 * double-int.h (double_int_ior): New function.
13361 * tree.h (build_int_cst_wide_type): Remove.
13362 * tree.c (build_int_cst_wide_type): Remove.
13363 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
13364 of build_int_cst_wide_type.
13365 * stor-layout.c (set_sizetype): (Ditto.).
13366 * dojump.c (do_jump): Use build_int_cstu instead of
13367 build_int_cst_wide_type.
13368
13369 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
13370
13371 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
13372 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
13373 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
13374 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
13375 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
13376 propagate the 'data' argument to copy_tree_r.
13377 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
13378 Propagate 'data' argument to walk_tree.
13379 (copy_if_shared): New function.
13380 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
13381 (unmark_visited): New function.
13382 (unshare_body): Call copy_if_shared instead of doing it manually.
13383 (unvisit_body): Call unmark_visited instead of doing it manually.
13384
13385 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
13386
13387 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
13388 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
13389 * hooks.c: Likewise.
13390 * target-def.h (TARGET_FOLD_BUILTIN): Define to
13391 hook_tree_tree_int_treep_bool_null.
13392 * target.h (struct gcc_target): Update signature of fold_builtin
13393 field.
13394 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
13395 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
13396 instead of the call expression.
13397 (fold_builtin_call_array): Pass n and argarray directly.
13398 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
13399 consing a list.
13400 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
13401 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
13402 `i' and use it in place of `arity'.
13403 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
13404 Dereference `args' directly.
13405 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
13406
13407 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13408
13409 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13410 3dnow, sse3, sse2.
13411 (Directives): Document optional dg-require-effective-target
13412 selector.
13413
13414 2010-05-19 Richard Guenther <rguenther@suse.de>
13415
13416 PR lto/44196
13417 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
13418
13419 2010-05-19 Richard Guenther <rguenther@suse.de>
13420
13421 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
13422 * common.opt (fwhopr=): New.
13423 * opts.c (common_handle_option): Handle OPT_fwhopr.
13424 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
13425 * collect2.c (main): Match -fwhopr*.
13426 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
13427 Execute ltrans stage in parallel when jobs is bigger than 1.
13428
13429 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13430
13431 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
13432 pentiumpro on Solaris 8/x86 with Sun as.
13433 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
13434 hidden alias bug.
13435 (gcc_cv_as_ix86_quad): Check for .quad directive.
13436 * configure: Regenerate.
13437 * config.in: Regenerate.
13438 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
13439
13440 2010-05-19 Martin Jambor <mjambor@suse.cz>
13441
13442 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
13443 also for indirect edges. Actual printing moved...
13444 (ipa_print_node_jump_functions_for_edge): ...here.
13445 (ipa_compute_jump_functions): Renamed to
13446 ipa_compute_jump_functions_for_edge and made static.
13447 (ipa_compute_jump_functions): New function.
13448 (make_edge_direct_to_target): Check if the number of arguments on
13449 the newly direct edge is the same as the number of parametrs of
13450 the callee.
13451 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
13452 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
13453 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
13454 analysis functions unconditionally, call the new
13455 ipa_analyze_params_uses on the node instead of every edge.
13456
13457 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
13458
13459 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
13460 to tree.
13461 (dump_mem_ref): Adopt debug code to handle a tree as step. This
13462 also checks for a constant int vs. non-constant but
13463 loop-invariant steps.
13464 (find_or_create_group): Change the sort algorithm to only consider
13465 steps that are constant ints.
13466 (idx_analyze_ref): Adopt code to handle a tree instead of a
13467 HOST_WIDE_INT for step.
13468 (gather_memory_references_ref): Handle tree instead of int and be
13469 prepared to see a NULL_TREE.
13470 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
13471 prefetches if the step cannot be calculated at compile time.
13472 (issue_prefetch_ref): Issue prefetches for non-constant but
13473 loop-invariant steps.
13474
13475 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
13476
13477 Revert:
13478 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
13479
13480 * tree.h (build_call_list): Remove.
13481 * tree.c (build_call_list): Remove.
13482
13483 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
13484
13485 * tree.h (build_call_list): Remove.
13486 * tree.c (build_call_list): Remove.
13487
13488 2010-05-18 Jan Hubicka <jh@suse.cz>
13489
13490 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
13491
13492 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
13493
13494 PR rtl-optimization/43332
13495 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
13496
13497 2010-05-18 Anatoly Sokolov <aesok@post.ru>
13498
13499 * tree.h (build_int_cstu): Implement as static inline.
13500 * tree.c (build_int_cstu): Remove function.
13501 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
13502 sign extended.
13503
13504 2010-05-18 Richard Guenther <rguenther@suse.de>
13505
13506 PR lto/44143
13507 * lto-wrapper.c (verbose): New variable. Initialize from -v.
13508 (debug): Initialize from -save-temps.
13509 (collect_execute): Print command-line when verbose.
13510 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
13511 for ltrans invocation. Produce -dumpbase flag again.
13512 (process_args): Remove.
13513 (main): Simplify.
13514 * collect2.c (maybe_run_lto_and_relink): Only pass object
13515 files to lto-wrapper.
13516 * gcc.c (LINK_COMMAND_SPEC): Likewise.
13517
13518 2010-05-18 Jan Hubicka <jh@suse.cz>
13519
13520 * opts.c (decode_options): Do not disable whopr at ipa_cp.
13521 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
13522
13523 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
13524
13525 PR lto/44184
13526 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
13527 in a GIMPLE_ASM.
13528 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
13529 in a GIMPLE_ASM.
13530
13531 2010-05-18 Jakub Jelinek <jakub@redhat.com>
13532
13533 PR debug/41371
13534 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
13535 rtx_equal_p inline.
13536
13537 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
13538
13539 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
13540 lto-macho as lto_binary_reader.
13541
13542 * darwin.c (darwin_asm_named_section): Do not add assembler comment
13543 after .section directive; just print it before the directive instead.
13544
13545 2010-05-17 Jan Hubicka <jh@suse.cz>
13546
13547 * cgraph.c (cgraph_create_virtual_clone): Only check
13548 versionable_function_p when not in wpa and checking is enabled.
13549 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
13550 there are no more functions to materialize.
13551
13552 2010-05-17 Jan Hubicka <jh@suse.cz>
13553
13554 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
13555 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
13556 New functions.
13557 (output_cgraph): Call output_cgraph_opt_summary.
13558 (input_cgrpah): Call input_cgraph_opt_summary.
13559 (output_cgraph_opt_summary_p, output_node_opt_summary,
13560 input_node_opt_summary, input_cgraph_opt_section): New functions.
13561 * lto-section-in.c (lto_section_name): Add cgraphopt.
13562 * tree-inline.c (tree_function_versioning): Handle parm_num.
13563 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
13564 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
13565
13566 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
13567
13568 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
13569 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
13570 the insn to prefetch ratio heuristic to loops with known trip count.
13571
13572 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
13573
13574 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
13575 (schedule_prefetches): Do not generate a prefetch if the unroll factor
13576 is far from what is required by the prefetch.
13577
13578 2010-05-17 Jan Hubicka <jh@suse.cz>
13579
13580 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
13581 (ipcp_estimate_growth): Likewise.
13582 (ipcp_const_param_count): Likewise.
13583 (ipcp_insert_stage): Likewise.
13584 * ipa-prop.c (visit_load_for_mod_analysis): New function.
13585 (visit_store_addr_for_mod_analysis): Set used flag.
13586 (ipa_detect_param_modifications): Set used flag for SSE params;
13587 update use of walk_stmt_load_store_addr_ops.
13588 (ipa_print_node_params): Print used flag.
13589 (ipa_write_node_info): Stream used flag.
13590 (ipa_read_node_info): Likewise.
13591 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
13592 (ipa_is_param_used): New function.
13593 (lto_ipa_fixup_call_notes): Remove unused declaration.
13594
13595 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13596
13597 PR target/44074
13598 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
13599 * configure: Regenerate.
13600 * config.in: Regenerate.
13601 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
13602 !HAVE_AS_IX86_REP_LOCK_PREFIX.
13603 Don't emit whitespace.
13604 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
13605 (*rep_movsi): Likewise.
13606 (*rep_movsi_rex64): Likewise.
13607 (*rep_movqi): Likewise.
13608 (*rep_movqi_rex64): Likewise.
13609 (*rep_stosdi_rex64): Likewise.
13610 (*rep_stossi): Likewise.
13611 (*rep_stossi_rex64): Likewise.
13612 (*rep_stosqi): Likewise.
13613 (*rep_stosqi_rex64): Likewise.
13614 (*cmpstrnqi_nz_1): Use {%;} after repz.
13615 (*cmpstrnqi_nz_rex_1): Likewise.
13616 (*cmpstrnqi_1): Likewise.
13617 (*cmpstrnqi_rex_1): Likewise.
13618 (*strlenqi_1): Use {%;} after repnz.
13619 (*strlenqi_rex_1): Likewise.
13620 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
13621 (*sync_compare_and_swap<mode>): Likewise.
13622 (sync_double_compare_and_swap<mode>): Likewise.
13623 (*sync_double_compare_and_swapdi_pic): Likewise.
13624 (sync_old_add<mode>): Likewise.
13625 (sync_add<mode>): Likewise.
13626 (sync_sub<mode>): Likewise.
13627 (sync_<code><mode>): Likewise.
13628
13629 2010-05-17 Martin Jambor <mjambor@suse.cz>
13630
13631 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
13632 otr_token and polymorphic.
13633 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
13634 (cgraph_clone_edge): Copy the above fields.
13635 * tree.c (get_binfo_at_offset): New function.
13636 * tree.h (get_binfo_at_offset): Declare.
13637 * ipa-prop.h (enum jump_func_type): Added known_type jump function
13638 type, reordered items, updated comments.
13639 (union jump_func_value): Added base_type field, reordered fields.
13640 (enum ipa_lattice_type): Moved down in the file.
13641 (struct ipa_param_descriptor): New field polymorphic.
13642 (ipa_is_param_polymorphic): New function.
13643 * ipa-prop.c: Include gimple.h and gimple-fold.h.
13644 (ipa_print_node_jump_functions): Print known type jump functions.
13645 (compute_complex_pass_through): Renamed to...
13646 (compute_complex_assign_jump_func): this.
13647 (compute_complex_ancestor_jump_func): New function.
13648 (compute_known_type_jump_func): Likewise.
13649 (compute_scalar_jump_functions): Create known type and complex ancestor
13650 jump functions.
13651 (ipa_note_param_call): New parameter polymorphic, set the corresponding
13652 flag in the call note accordingly.
13653 (ipa_analyze_call_uses): Renamed to...
13654 (ipa_analyze_indirect_call_uses): this. New parameter target, define
13655 variable var only in the block where it is used.
13656 (ipa_analyze_virtual_call_uses): New function.
13657 (ipa_analyze_call_uses): Likewise.
13658 (combine_known_type_and_ancestor_jfs): Likewise.
13659 (update_jump_functions_after_inlining): Implemented handling of a
13660 number of new jump function types combination.
13661 (print_edge_addition_message): Removed.
13662 (make_edge_direct_to_target): New function.
13663 (try_make_edge_direct_simple_call): Likewise.
13664 (try_make_edge_direct_virtual_call): Likewise.
13665 (update_call_notes_after_inlining): Renamed to...
13666 (update_indirect_edges_after_inlining): this. Moved edge creation for
13667 indirect calls to try_make_edge_direct_simple_call, also calls
13668 try_make_edge_direct_virtual_call for virtual calls.
13669 (ipa_print_node_params): Changed the header message.
13670 (ipa_write_jump_function): Stream also known type jump functions.
13671 (ipa_read_jump_function): Likewise.
13672 (ipa_write_indirect_edge_info): Stream new fields in
13673 cgraph_indirect_call_info.
13674 (ipa_read_indirect_edge_info): Likewise.
13675 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
13676 GIMPLE_FOLD_H.
13677
13678 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13679
13680 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
13681
13682 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
13683
13684 * tree.h (CALL_EXPR_ARGS): Delete.
13685 (call_expr_arglist): Delete.
13686 * tree.c (call_expr_arglist): Delete.
13687 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
13688 targetm.fold_builtin.
13689 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
13690 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
13691 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
13692 arglist parameter. Use CALL_EXPR_ARG.
13693 (picochip_expand_builtin_3op): Likewise.
13694 (picochip_expand_builtin_2opvoid): Likewise.
13695 (picochip_expand_array_get): Likewise.
13696 (picochip_expand_array_put): Likewise.
13697 (picochip_expand_array_testport): Likewise.
13698 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
13699 rather than arglist.
13700 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
13701 CALL_EXPR_ARGS.
13702 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
13703 than TREE_VALUE and TREE_CHAIN.
13704 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
13705 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
13706 the arglist.
13707
13708 2010-05-17 Jakub Jelinek <jakub@redhat.com>
13709
13710 PR bootstrap/42347
13711 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
13712 to have no fallthru edge.
13713
13714 PR middle-end/44102
13715 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
13716 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
13717 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
13718 add BARRIER after previous bb if needed.
13719
13720 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
13721
13722 * tree.c (build_function_type_list_1): Remove bogus assert condition.
13723
13724 2010-05-17 Alan Modra <amodra@gmail.com>
13725
13726 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
13727 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
13728 with copy_reg rtx param.
13729 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
13730 Correct cases where code for ABI_V4 did not initialise the reg
13731 used to access frame. Also leave frame_reg_rtx as sp for large
13732 frames that save no regs.
13733
13734 2010-05-17 Martin Jambor <mjambor@suse.cz>
13735
13736 PR middle-end/44133
13737 * tree-sra.c (create_access_replacement): New parameter rename, mark
13738 the replaement for renaming only when it is true.
13739 (get_access_replacement): Pass true in the rename parameter of
13740 create_access_replacement.
13741 (get_unrenamed_access_replacement): New function.
13742 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
13743 replacement declaration from it.
13744
13745 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
13746
13747 * function.c (try_fit_stack_local, add_frame_space): New static
13748 functions.
13749 (assign_stack_local_1): Use them. Look for opportunities to use
13750 space previously wasted on alignment.
13751 * function.h (struct frame_space): New.
13752 (struct rtl_data): Add FRAME_SPACE_LIST member.
13753 * reload1.c (something_was_spilled): New static variable.
13754 (alter_reg): Set it.
13755 (reload): Test it in addition to testing if the frame size changed.
13756
13757 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
13758
13759 * config/s390/s390.c: Define sane prefetch settings and activate
13760 flag_prefetch_loop_arrays on -O3.
13761 * config/s390/s390.h: Declare that read can use write prefetch.
13762
13763 2010-05-17 Jakub Jelinek <jakub@redhat.com>
13764
13765 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
13766 build.
13767
13768 2010-05-16 Jan Hubicka <jh@suse.cz>
13769
13770 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
13771 function body; do not check stdarg field of struct function.
13772
13773 2010-05-16 Jan Hubicka <jh@suse.cz>
13774
13775 * cgraph.c (dump_cgraph_node): Dump versionable flag.
13776 * cgraph.h (cgraph_local_info): Add versionable flag.
13777 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
13778 (ipcp_versionable_function_p): Use it.
13779 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
13780 versionable flag.
13781
13782 2010-05-16 Jan Hubicka <jh@suse.cz>
13783
13784 * cgraph.c (cgraph_clone_node): Take decl argument and insert
13785 clone into hash when it is different from orig.
13786 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
13787 * cgraph.h (cgraph_clone_node): Update prototype.
13788 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
13789 (lto_cgraph_encoder_delete): Delete body map.
13790 (lto_cgraph_encoder_size): Move to header.
13791 (lto_cgraph_encoder_encode_body_p,
13792 lto_set_cgraph_encoder_encode_body): New.
13793 (lto_output_node): Do not take written_decls argument; output clone_of
13794 pointer.
13795 (add_node_to): Add include_body_argument; call
13796 lto_set_cgraph_encoder_encode_body on master of the clone.
13797 (add_references): Update use of add_node_to.
13798 (compute_ltrans_boundary): Likewise.
13799 (output_cgraph): Do not create written_decls bitmap.
13800 (input_node): Take nodes argument; stream in clone_of correctly.
13801 (input_cgraph_1): Update use of input_node.
13802 * lto-streamer-out.c (lto_output): Use encoder info to decide
13803 what bodies to output.
13804 * ipa-inline.c (cgraph_clone_inlined_nodes,
13805 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
13806 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
13807 (lto_cgraph_encoder_size): Define here.
13808 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
13809 Declare.
13810
13811 2010-05-16 Richard Guenther <rguenther@suse.de>
13812
13813 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
13814 -fipa-type-escape.
13815 * ipa-type-escape.c (gate_type_escape_vars): Run when
13816 -fipa-struct-reorg runs.
13817 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
13818 * common.opt (fipa-type-escape): Remove.
13819
13820 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
13821
13822 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
13823 (decode_options): Likewise.
13824 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
13825
13826 2010-05-16 Jan Hubicka <jh@suse.cz>
13827
13828 * ipa.c (function_and_variable_visibility): Also bring local all
13829 aliases.
13830
13831 2010-05-16 Richard Guenther <rguenther@suse.de>
13832
13833 * alias.c (nonoverlapping_memrefs_p): Remove use of
13834 IPA type-escape information.
13835
13836 2010-05-16 Joseph Myers <joseph@codesourcery.com>
13837
13838 * c-common.c (c_common_reswords): Add _Static_assert for C.
13839 * c-parser.c (c_token_starts_declaration,
13840 c_parser_next_token_starts_declaration,
13841 c_parser_static_assert_declaration_no_semi,
13842 c_parser_static_assert_declaration): New.
13843 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
13844 Handle static assertions if static_assert_ok.
13845 (c_parser_external_declaration, c_parser_declaration_or_fndef,
13846 c_parser_compound_statement_nostart, c_parser_label,
13847 c_parser_for_statement, c_parser_objc_methodprotolist,
13848 c_parser_omp_for_loop): All callers of
13849 c_parser_declaration_or_fndef changed.
13850 (c_parser_struct_declaration): Handle static assertions.
13851 (c_parser_compound_statement_nostart): Use
13852 c_parser_next_token_starts_declaration and
13853 c_token_starts_declaration to detect start of declarations.
13854 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
13855 Likewise.
13856
13857 2010-05-16 Anatoly Sokolov <aesok@post.ru>
13858
13859 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
13860 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13861 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13862 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13863 (mmix_function_outgoing_value): Rename to...
13864 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
13865 (mmix_function_value_regno_p): Make static.
13866 (mmix_libcall_value): New function.
13867 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
13868 mmix_function_value_regno_p): Remove declaration.
13869
13870 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
13871
13872 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
13873 BUILT_IN_ALLOCA if stack checking is enabled.
13874
13875 2010-05-16 Richard Guenther <rguenther@suse.de>
13876
13877 * var-tracking.c (vars_copy_1): Inline ...
13878 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
13879 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
13880 (variable_merge_over_cur): Adjust. Merge asserts.
13881 (variable_merge_over_src): Likewise.
13882 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
13883 (variable_post_merge_new_vals): Merge asserts.
13884 (variable_post_merge_perm_vals): Likewise.
13885 (find_mem_expr_in_1pdv): Likewise.
13886 (dataflow_set_different_value): Remove.
13887 (onepart_variable_different_p): Merge asserts.
13888 (variable_different_p): Likewise.
13889 (dataflow_set_different_1): Inline ...
13890 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
13891 (emit_notes_for_differences_1): Merge asserts.
13892
13893 2010-05-16 Richard Guenther <rguenther@suse.de>
13894
13895 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
13896 * optabs.c (libfunc_decl_hash): Likewise.
13897 * varasm.c (emutls_decl): Likewise.
13898
13899 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
13900
13901 * c-decl.c: Don't include gimple.h.
13902 (merge_decls): Do not copy gimple_body.
13903
13904 2010-05-15 Jason Merrill <jason@redhat.com>
13905
13906 * c.opt: Add -fnothrow-opt.
13907
13908 2010-05-15 Jan Hubicka <jh@suse.cz>
13909
13910 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
13911 analyzed.
13912 * passes.c (ipa_write_summaries): Write all analyzed nodes.
13913
13914 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
13915
13916 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
13917 * Makefile.in: Add it.
13918 Fix all other Makefile dependencies for changes below.
13919 * tree.h: Include it instead of defining VEC primitives here.
13920 * gimple.h: Likewise.
13921 * rtl.h: Likewise.
13922 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
13923 * except.h: Include vecir.h, break dependence on tree.h.
13924
13925 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
13926 Move from here...
13927 * tree-iterator.c: ...to here.
13928 * tree-iterator.h: Fix file introduction comment. Add extern markers.
13929
13930 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
13931 tm_p.h.
13932 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
13933 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
13934 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
13935 tree-mudflap.h, and target.h.
13936 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
13937 predict.h, tree-inline.h, gimple.h, and langhooks.h.
13938 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
13939 Add FIXME for why gimple.h is still included (should be unnecessary
13940 since GCC 4.5 gimplification unit-at-a-time).
13941 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
13942 * c-pragma.c: Add FIXME for why function.h needs to be included just
13943 for cfun, at front-end level.
13944 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
13945 Do not include ggc.h, but include vecprim.h for VEC(char).
13946 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
13947 Explain why target.h is included.
13948 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
13949 Explain why gimple.h is included.
13950 * c-ppoutput.c: Do not include tm.h.
13951 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
13952 * c-parses.c: Explain why rtl.h is included, and that this (and only
13953 this) is also why tm.h must be included.
13954 Do not include except.h.
13955 * c-lang.c: Do not include ggc.h.
13956
13957 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
13958
13959 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
13960
13961 2010-05-15 Joseph Myers <joseph@codesourcery.com>
13962
13963 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
13964 unions by default if those structs and unions have no tags. Do
13965 not condition anonymous struct and unions handling on flag_iso.
13966 Allow anonymous structs and unions for C1X.
13967 (finish_struct): Do not diagnose lack of named fields when
13968 anonymous structs and unions present for C1X. Accept flexible
13969 array members in structure with anonymous structs or unions but no
13970 directly named fields.
13971 * doc/extend.texi (Unnamed Fields): Update.
13972
13973 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
13974
13975 * gimple.h (compare_field_offset): Rename into...
13976 (gimple_compare_field_offset): ...this.
13977 * gimple.c (compare_field_offset): Rename into...
13978 (gimple_compare_field_offset): ...this. Compare the full access if
13979 the offset is self-referential.
13980 (gimple_types_compatible_p): Adjust for above renaming.
13981 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
13982 DECL_NONADDRESSABLE_P flag of fields before merging them.
13983
13984 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
13985
13986 * tree.h (ctor_to_list): Delete.
13987 * tree.c (ctor_to_list): Delete.
13988
13989 2010-05-15 Jan Hubicka <jh@suse.cz>
13990
13991 * ipa-reference.c: Include toplev.h
13992 (is_proper_for_analysis): Only add to all_module_statics
13993 if it is allocated.
13994 (write_node_summary_p, stream_out_bitmap,
13995 ipa_reference_write_optimization_summary,
13996 ipa_reference_read_optimization_summary): New.
13997 (struct ipa_opt_pass_d pass_ipa_reference): Add
13998 optimization summary streaming.
13999 * lto-cgraph.c (referenced_from_this_partition_p,
14000 reachable_from_this_partition_p): New functions.
14001 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14002 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
14003 * opts.c (decode_options): Enable ipa_reference.
14004 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
14005 * lto-streamer.h (referenced_from_this_partition_p,
14006 reachable_from_this_partition_p): Declare.
14007
14008 2010-05-15 Richard Guenther <rguenther@suse.de>
14009
14010 PR tree-optimization/44038
14011 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
14012 taking the address of a V_C_E of a constant.
14013
14014 2010-05-14 Jan Hubicka <jh@suse.cz>
14015
14016 * tree.h (memory_identifier_string): Remove.
14017 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
14018 (ipa_reference_global_vars_info_d): Remove statics_not_read and
14019 statics_not_written.
14020 (ipa_reference_optimization_summary_d): New structure.
14021 (ipa_reference_optimization_summary_t): New type and vector.
14022 (ipa_reference_vars_info_d): Embedd structures instead of using
14023 pointers.
14024 (reference_vars_to_consider): Remove out of GGC space.
14025 (module_statics_escape): Remove.
14026 (global_info_obstack): Rename to ...
14027 (optimization_summary_obstack): ... this one.
14028 (initialization_status_t): Remove.
14029 (memory_identifier_string): Remove.
14030 (get_reference_vars_info): Fix indenting.
14031 (set_reference_vars_info): Likewise.
14032 (get_reference_optimization_summary): New.
14033 (set_reference_optimization_summary): New.
14034 (get_global_reference_vars_info): Remove.
14035 (ipa_reference_get_read_global): Remove.
14036 (ipa_reference_get_written_global): Remove.
14037 (ipa_reference_get_not_read_global): Update.
14038 (ipa_reference_get_not_written_global): Update.
14039 (is_proper_for_analysis): Outlaw addressable.
14040 (propagate_bits): Update for new datastructures.
14041 (analyze_variable): Remove.
14042 (init_function_info): Update for new datastructures.
14043 (clean_function_local_data): Remove.
14044 (clean_function): Remove.
14045 (copy_global_bitmap): Use optimizations_summary_obstack.
14046 (duplicate_node_data): Duplicate optimization summary only.
14047 (remove_node_data): Remove optimization summary only.
14048 (generate_summary): Do not analyze variables; do not compute
14049 module_statics_escape; do not prune solutions by it.
14050 (read_write_all_from_decl): Fix typos in comments.
14051 (propagate): Doscover readonly and nonaddressable first;
14052 update for new datastructures; share global bitmaps.
14053 * ipa-reference.h (ipa_reference_get_read_global,
14054 ipa_reference_get_written_global): Remove.
14055 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
14056 * Makefile.in: Remove ipa-refereference from GT files.
14057
14058 2010-05-14 Jakub Jelinek <jakub@redhat.com>
14059
14060 PR debug/44112
14061 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
14062 for all SYMBOL_REF_DECLs.
14063
14064 2010-05-14 Jan Hubicka <jh@suse.cz>
14065
14066 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
14067 (varpool_all_refs_explicit_p): New inline function.
14068 * ipa-reference.c: Update comment.
14069 (module_statics_written): Remove.
14070 (get_static_decl): Remove.
14071 (ipa_init): Do not initialize module_statics_written.
14072 (analyze_function): Likewise.
14073 (generate_summary): Likewise; do not compute module_statics_readonly
14074 and do not update variable flags.
14075 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
14076 * ipa.c: Inlucde flags.h
14077 (cgraph_local_node_p): New.
14078 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
14079 promote functions to local.
14080 (ipa_discover_readonly_nonaddressable_vars): New function.
14081 (function_and_variable_visibility): Use cgraph_local_node_p.
14082 * varpool.c (varpool_finalize_decl): Set force_output for
14083 DECL_PRESERVE_P vars.
14084
14085 2010-05-14 Jan Hubicka <jh@suse.cz>
14086
14087 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
14088
14089 2010-05-14 Richard Guenther <rguenther@suse.de>
14090
14091 PR tree-optimization/44119
14092 * tree-ssa-pre.c (eliminate): Properly mark replacement of
14093 a PHI node necessary.
14094
14095 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
14096
14097 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
14098
14099 2010-05-14 Jason Merrill <jason@redhat.com>
14100
14101 PR c++/44127
14102 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
14103 (gimple_call_set_nothrow): New.
14104 * gimple.c (gimple_build_call_from_tree): Call it.
14105 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
14106
14107 PR c++/44127
14108 * gimplify.c (gimplify_seq_add_stmt): No longer static.
14109 * gimple.h: Declare it.
14110 * gimple.c (gimple_build_eh_filter): No ops.
14111
14112 2010-05-14 Jan Hubicka <jh@suse.cz>
14113
14114 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
14115 nodes already in queue.
14116 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
14117 re-enqueueing node.
14118
14119 2010-05-14 Jakub Jelinek <jakub@redhat.com>
14120
14121 PR debug/44136
14122 * cfgexpand.c (expand_debug_expr): If non-memory op0
14123 has BLKmode, return NULL.
14124
14125 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
14126
14127 * config.gcc: Add support for --with-cpu option for bdver1.
14128 * config/i386/i386.h (TARGET_BDVER1): New macro.
14129 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
14130 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
14131 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
14132 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
14133 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
14134 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
14135 (processor_type): Add PROCESSOR_BDVER1.
14136 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
14137 processor_type in config/i386/i386.h.
14138 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
14139 movaps <reg, reg> instead of movapd <reg, reg> when replacing
14140 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
14141 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
14142 to emit packed xor instead of packed double/packed integer
14143 xor for SSE and AVX when moving a zero value.
14144 * config/i386/sse.md: Add check for
14145 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
14146 movapd/movdqa for SSE and AVX.
14147 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
14148 single logical operations i.e and, or and xor instead of packed double
14149 logical operations for SSE and AVX.
14150 * config/i386/i386-c.c (ix86_target_macros_internal):
14151 Add PROCESSOR_BDVER1.
14152 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
14153 (has_fma4, has_xop): New.
14154 * config/i386/i386.c (bdver1_cost): New variable.
14155 (m_BDVER1): New macro.
14156 (m_AMD_MULTIPLE): Add m_BDVER1.
14157 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
14158 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
14159 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
14160 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
14161 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
14162 x86_tune_sse_partial_reg_dependency,
14163 x86_tune_sse_unaligned_load_optimal,
14164 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
14165 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
14166 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
14167 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
14168 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
14169 Enable/disable for bdver1.
14170 (processor_target_table): Add bdver1_cost.
14171 (cpu_names): Add bdver1.
14172 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
14173 processor_alias_table.
14174 (ix86_expand_vector_move_misalign): Change.
14175 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
14176 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
14177 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
14178 of movupd/movdqu for SSE and AVX.
14179 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
14180 (ix86_tune_adjust_cost): Add code for bdver1.
14181 (standard_sse_constant_opcode): Add check for
14182 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
14183 of packed double xor for SSE and AVX.
14184
14185 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
14186
14187 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
14188 result to unsigned.
14189
14190 2010-05-14 Tristan Gingold <gingold@adacore.com>
14191
14192 * toplev.c (default_debug_hooks): Remove this variable.
14193 (process_options): Remove assignments to default_debug_hooks.
14194
14195 2010-05-14 Martin Jambor <mjambor@suse.cz>
14196
14197 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
14198 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
14199 * langhooks.h (struct lang_hooks_for_decls): Removed field
14200 fold_obj_type_ref.
14201 * tree.c (free_lang_data): Remove assignment to
14202 lang_hooks.fold_obj_type_ref.
14203 * tree.def (OBJ_TYPE_REF): Update comment.
14204
14205 2010-05-14 Richard Guenther <rguenther@suse.de>
14206
14207 PR tree-optimization/44124
14208 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
14209
14210 2010-05-14 Alan Modra <amodra@gmail.com>
14211
14212 PR target/44075
14213 * config/rs6000/rs6000.c (struct machine_function): Reorder
14214 fields for better packing. Add lr_save_state.
14215 (rs6000_ra_ever_killed): Return lr_save_state if set.
14216 (rs6000_emit_eh_reg_restore): Set lr_save_state.
14217
14218 2010-05-13 Jan Hubicka <jh@suse.cz>
14219
14220 * varpool.c (decide_is_variable_needed): Drop code checking
14221 TREE_SYMBOL_REFERENCED.
14222
14223 2010-05-13 Jan Hubicka <jh@suse.cz>
14224
14225 * final.c (output_addr_const): Do not call mark_decl_referenced.
14226 * cgraphunit.c (process_function_and_variable_attributes): Use
14227 mark_needed_node dirrectly.
14228 (assemble_thunk): Do not call mark_decl_referenced.
14229
14230 2010-05-13 Anatoly Sokolov <aesok@post.ru>
14231
14232 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
14233
14234 2010-05-13 Jeff Law <law@redhat.com>
14235
14236 * ira-conflicts.c (print_allocno_conflicts): New function broken out
14237 from...
14238 (print_conflicts): Call print_allocno_conflicts.
14239
14240 2010-05-13 Jakub Jelinek <jakub@redhat.com>
14241
14242 PR debug/44104
14243 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
14244 if it is NULL.
14245
14246 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
14247
14248 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
14249 t-mingw-w64 or t-mingw-w32 for multilib configuration.
14250 * config/i386/t-mingw-w32: New.
14251 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
14252
14253 2010-05-13 Martin Jambor <mjambor@suse.cz>
14254
14255 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
14256 gimple-fold.c).
14257 * gimple-fold.c (get_base_binfo_for_type): New function.
14258 (gimple_get_relevant_ref_binfo): Likewise.
14259 (gimple_fold_obj_type_ref_known_binfo): Likewise.
14260 (gimple_fold_obj_type_ref): Likewise.
14261 (fold_gimple_call): Simplify condition for folding virtual calls
14262 and call gimple_fold_obj_type_ref.
14263 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
14264 (gimple_fold_obj_type_ref_known_binfo): Likewise.
14265
14266 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
14267
14268 * config/rs6000/rs6000-protos.h
14269 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
14270 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
14271 (rs6000_debug_mode_dependent_address)
14272 (rs6000_mode_dependent_address_ptr): Likewise.
14273
14274 2010-05-13 Jakub Jelinek <jakub@redhat.com>
14275
14276 PR debug/43983
14277 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
14278 by SRA.
14279 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
14280 * tree-sra.c (create_access_replacement): Call unshare_expr before
14281 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
14282 * dwarf2out.c: Include tree-flow.h.
14283 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
14284 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
14285 Handle DW_OP_bit_piece.
14286 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
14287 construct_piece_list, adjust_piece_list): New functions.
14288 (add_var_loc_to_decl): Handle SRA optimized variables.
14289 Adjust for var_loc_note to loc field renaming.
14290 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
14291 in VAR_LOCATION note.
14292 (new_loc_descr_op_bit_piece): New function.
14293 (dw_sra_loc_expr): New function.
14294 (dw_loc_list): Use it. Don't handle the last range after the
14295 loop, handle it inside of the loop. Adjust for var_loc_note
14296 to loc field renaming.
14297 (add_location_or_const_value_attribute): Only special case
14298 single entry loc lists if loc is NOTE_P. Adjust for
14299 var_loc_note to loc field renaming.
14300 (dwarf2out_var_location): Don't set newloc->var_loc_note
14301 and newloc->next here.
14302
14303 2010-05-12 Jan Hubicka <jh@suse.cz>
14304
14305 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
14306 flag.
14307 * cgraph.h (cgraph_only_called_directly_p,
14308 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
14309 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
14310 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
14311 (assemble
14312 * ipa.c (cgraph_remove_unreachable_nodes): Use
14313 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
14314 flags.
14315 * tree-inline.c (copy_bb): Check address_taken flag.
14316 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
14317 externally_visible flag.
14318
14319 2010-05-12 Jason Merrill <jason@redhat.com>
14320
14321 PR bootstrap/44048
14322 PR target/44099
14323 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
14324 * sdbout.c (plain_type_1): Likewise.
14325 * dwarf2out.c (is_base_type): Likewise.
14326 (gen_type_die_with_usage): Likewise. Generate
14327 DW_TAG_unspecified_type for any LANG_TYPE.
14328
14329 2010-05-12 Jan Hubicka <jh@suse.cz>
14330
14331 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
14332 indrect edges too.
14333 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
14334 (cgraph_clone_edge): Update.
14335 (cgraph_node_remove_callees): Remove indirect calls too.
14336 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
14337 (cgraph_create_indirect_edge): Update prototype.
14338 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
14339 is_proper_for_analysis.
14340 (add_new_function, visited_nodes, function_insertion_hook_holder,
14341 get_local_reference_vars_info, mark_address_taken, mark_address,
14342 mark_load, mark_store, check_asm_memory_clobber, check_call,
14343 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
14344 (ipa_init): Do not initialize visited_nodes;
14345 function_insertion_hook_holder.
14346 (analyze_variable): Rewrite.
14347 (analyze_function): Rewrite.
14348 (copy_local_bitmap): Remove.
14349 (duplicate_node_dat): Do not duplicate local info.
14350 (generate_summary): Simplify to only walk cgraph.
14351 (write_node_summary_p, ipa_reference_write_summary,
14352 ipa_reference_read_summary): Remove.
14353 (propagate): Do not remove function insertion;
14354 generate summary.
14355 (pass_ipa_reference): NULLify summary handling fields.
14356 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
14357 (input_edge): Input ecf_flags.
14358 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
14359 (update_indirect_edges_after_inlining): Ignore edges with unknown
14360 param.
14361
14362 2010-05-12 Sriraman Tallam <tmsriram@google.com>
14363
14364 * implicit-zee.c: New file.
14365 * tree-pass.h (pass_implicit_zee): Declare.
14366 * passes.c (init_optimization_passes): Add zee pass.
14367 * common.opt (fzee): New flag.
14368 * timevar.def (TV_ZEE): Define.
14369 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
14370 and beyond.
14371 * Makefile.in (implicit-zee.o): Add new build file.
14372
14373 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
14374 Nathan Froyd <froydnj@codesourcery.com>
14375
14376 * c-common.c (sync_resolve_params): Remove write-only variable.
14377
14378 2010-05-12 Anatoly Sokolov <aesok@post.ru>
14379
14380 * target.h (struct gcc_target): Add mode_dependent_address_p field.
14381 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
14382 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
14383 * targhooks.c (default_mode_dependent_address_p): New function.
14384 * targhooks.h (default_mode_dependent_address_p): Declare function.
14385 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
14386 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
14387 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
14388 target hook. Change return type to bool.
14389 * recog.h (mode_dependent_address_p): Change return type to bool.
14390
14391 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
14392 Nathan Froyd <froydnj@codesourcery.com>
14393
14394 * tree-mudflap.c (build_function_type_0, build_function_type_1,
14395 build_function_type_2, build_function_type_3): Remove.
14396 (mudflap_init): Use build_function_type_list.
14397
14398 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
14399 Nathan Froyd <froydnj@codesourcery.com>
14400
14401 * coverage.c (build_fn_info_value): Call build_constructor instead of
14402 build_constructor_from_list.
14403 (build_ctr_info_value): Likewise.
14404 (build_gcov_info): Likewise.
14405
14406 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
14407
14408 * tree.c (build_constructor): Compute TREE_CONSTANT for the
14409 resultant constructor.
14410 (build_constructor_single): Don't set TREE_CONSTANT.
14411 (build_constructor_from_list): Don't compute TREE_CONSTANT.
14412
14413 2010-05-12 Jan Hubicka <jh@suse.cz>
14414
14415 * cgraph.h (struct varpool_node): Add aux.
14416 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
14417 * varpool.c (varpool_remove_node): Do not remove initializer.
14418 (varpool_reset_queue): Export.
14419 (varpool_finalize_decl): Volatile vars are forced to be output.
14420 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
14421 replaced decl.
14422 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
14423 process_references, varpool_can_remove_if_no_refs): New functions.
14424 (cgraph_remove_unreachable_nodes): Handle variables too.
14425
14426 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
14427
14428 PR target/44088
14429 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
14430
14431 2010-05-12 Jakub Jelinek <jakub@redhat.com>
14432
14433 PR middle-end/44085
14434 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
14435 change value of ORT_TASK.
14436 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
14437 (omp_notice_threadprivate_variable): New function.
14438 (omp_notice_variable): Call it for threadprivate variables.
14439 If enclosing ctx is a task, print enclosing task rather than
14440 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
14441 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
14442 if task has untied clause.
14443
14444 PR debug/42278
14445 * dwarf2out.c (base_type_die): Don't add name attribute here.
14446 (modified_type_die): Instead of sizetype use
14447 its underlying original type. If a DW_TAG_base_type doesn't
14448 have name added, add __unknown__.
14449 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
14450 always call force_type_die instead.
14451
14452 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
14453
14454 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
14455 for __stack_chk_guard.
14456
14457 2010-05-11 Jakub Jelinek <jakub@redhat.com>
14458
14459 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
14460 don't call start_source_file debug hook here...
14461 (finish_options): ... but here, after outputting predefined and
14462 command line defines and undefs.
14463
14464 PR middle-end/44071
14465 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
14466 no fallthru edge.
14467 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
14468 optimizing away empty bb with no successors, move over its
14469 footer chain to fallthru predecessor.
14470 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
14471 (rtl_split_edge): For asm goto call patch_jump_insn even if
14472 splitting fallthru edge.
14473
14474 PR c++/44059
14475 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
14476 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
14477 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
14478 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
14479 on DW.ref.* decls.
14480
14481 PR c++/44062
14482 * c-parser.c (c_parser_expression): Mark LHS of a comma
14483 expression as read if it is a decl, handled component or
14484 COMPOUND_EXPR with that on the RHS.
14485 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
14486 if it is a decl or handled component.
14487
14488 2010-05-11 Jan Hubicka <jh@suse.cz>
14489
14490 * lto-symtab.c (lto_symtab_free): New function.
14491 * lto-streamer.h (lto_symtab_free): Declare.
14492
14493 2010-05-11 Jan Hubicka <jh@suse.cz>
14494
14495 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
14496 that if function is needed it is reachable.
14497 (lto_output_node): See if it the function is reachable or referenced.
14498 (output_cgraph): Update call of lto_output_node.
14499 * lto-streamer.h (reachable_from_other_partition_p): Declare.
14500
14501 2010-05-11 Jan Hubicka <jh@suse.cz>
14502
14503 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
14504 Mark as used.
14505
14506 2010-05-11 Jan Hubicka <jh@suse.cz>
14507
14508 PR tree-optimize/44063
14509 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
14510 queue.
14511 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
14512 limits.
14513 (estimate_function_body_sizes): Compute sizes even when disregarding.
14514
14515 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
14516
14517 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
14518
14519 2010-05-11 Jan Hubicka <jh@suse.cz>
14520
14521 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
14522 into every boundary.
14523
14524 2010-05-11 Jan Hubicka <jh@suse.cz>
14525
14526 * matrix-reorg.c (matrix_reorg): Rebuild edges.
14527
14528 2010-05-11 Jan Hubicka <jh@suse.cz>
14529
14530 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
14531 lto_streamer_cache_delete): Put nodes into heap.
14532 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
14533 heap.
14534
14535 2010-05-11 Jan Hubicka <jh@suse.cz>
14536
14537 * cgraphbuild.c (cgraph_rebuild_references): New.
14538 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
14539 out extern inlines.
14540 * cgraph.h (cgraph_rebuild_references): Declare.
14541 * tree-inline.c (tree_function_versioning): Use it.
14542 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
14543
14544 2010-05-11 Jan Hubicka <jh@suse.cz>
14545
14546 * cgraph.c: Include ipa-utils.h
14547 (cgraph_create_virtual_clone): Update references.
14548 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
14549
14550 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
14551
14552 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
14553 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
14554 cache size.
14555
14556 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
14557
14558 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
14559
14560 2010-05-11 Jakub Jelinek <jakub@redhat.com>
14561
14562 * gcc.c (execute): For -### don't quote arguments that
14563 contain just alphanumerics and _/-. characters.
14564 * doc/invoke.texi: Document that change for -###.
14565
14566 PR debug/44023
14567 * df-problems.c (struct dead_debug): Add to_rescan field.
14568 (dead_debug_init): Clear to_rescan field.
14569 (dead_debug_finish): Rescan all debug insns in to_rescan
14570 bitmap and free the bitmap.
14571 (dead_debug_insert_before): Instead of rescanning debug insns
14572 immediately queue their rescanning until dead_debug_finish.
14573 (df_note_bb_compute): After dead_debug_add do continue instead
14574 of break.
14575
14576 2010-05-10 Jakub Jelinek <jakub@redhat.com>
14577
14578 PR debug/44028
14579 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
14580 clear also INSN_REG_USE_LIST.
14581
14582 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14583
14584 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
14585
14586 2010-05-10 Jan Hubicka <jh@suse.cz>
14587
14588 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
14589 commited change.
14590
14591 2010-05-10 Jan Hubicka <jh@suse.cz>
14592
14593 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
14594 Allocate encoders.
14595 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
14596 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
14597 (lto_streamer_cache_create): Init alloc pool.
14598 (lto_streamer_cache_delete): Free alloc pool.
14599 * lto-streamer.h: Include alloc pool.
14600 (lto_streamer_cache_d): Use alloc pool.
14601 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
14602
14603 2010-05-10 Jan Hubicka <jh@suse.cz>
14604
14605 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
14606 * cgraphbuild.c: Include except.h
14607 (record_type_list, record_eh_tables): New function.
14608 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
14609
14610 2010-05-10 Jan Hubicka <jh@suse.cz>
14611
14612 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
14613 __frame_dummy_init_array_entry, force_to_data): Attribute as used
14614 rather than unused.
14615
14616 2010-05-10 Michael Matz <matz@suse.de>
14617
14618 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
14619 (can_reassociate_p): Use FLOAT_TYPE_P.
14620 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
14621 (vect_force_simple_reduction): ... this.
14622 * tree-parloops.c (gather_scalar_reductions): Use
14623 vect_force_simple_reduction.
14624 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
14625 vect_is_simple_reduction, add modify argument, if true rewrite
14626 "a-b" into "a+(-b)".
14627 (vect_is_simple_reduction, vect_force_simple_reduction): New
14628 functions.
14629 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
14630
14631 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
14632 Vladimir Makarov <vmakarov@redhat.com>
14633
14634 PR rtl-optimization/44012
14635 * ira-build.c (remove_unnecessary_allocnos): Nullify
14636 regno_allocno_map of the removed allocno.
14637
14638 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14639
14640 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
14641 to /dev/null.
14642 * configure: Regenerate.
14643
14644 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14645
14646 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
14647 unused.
14648 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
14649 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
14650 support in Sun ld.
14651 * configure: Regenerate.
14652
14653 2010-05-10 Richard Guenther <rguenther@suse.de>
14654
14655 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
14656 marked if the entry identifier is marked.
14657
14658 2010-05-10 Richard Guenther <rguenther@suse.de>
14659
14660 * c-common.c (struct c_common_attributes): Add fnspec attribute.
14661 (handle_fnspec_attribute): New function.
14662 * gimple.h (gimple_call_return_flags): Declare.
14663 (gimple_call_arg_flags): Likewise.
14664 * gimple.c (gimple_call_arg_flags): New function.
14665 (gimple_call_return_flags): Likewise.
14666 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
14667 New argument flags.
14668 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
14669 return value flags.
14670 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
14671 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
14672 main work to ...
14673 (make_heapvar_for): ... this new function.
14674 (handle_rhs_call): Handle fnspec attribute argument specifiers.
14675 (handle_lhs_call): Likewise.
14676 (find_func_aliases): Adjust.
14677
14678 2010-05-10 Richard Guenther <rguenther@suse.de>
14679
14680 PR tree-optimization/44050
14681 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
14682
14683 2010-05-10 Wei Guozhi <carrot@google.com>
14684
14685 PR target/42879
14686 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
14687
14688 2010-05-09 Joseph Myers <joseph@codesourcery.com>
14689
14690 PR c/10676
14691 * c-typeck.c (lookup_field): Take a type directly. Update
14692 recursive calls.
14693 (build_component_ref): Update call to lookup_field.
14694 (set_init_label): Use lookup_field to find initialized field.
14695 Handle returned list of fields like a sequence of designators.
14696
14697 2010-05-09 Richard Guenther <rguenther@suse.de>
14698
14699 PR middle-end/44024
14700 * fold-const.c (tree_single_nonzero_warnv_p): Properly
14701 handle &FUNCTION_DECL.
14702
14703 2010-05-09 Joseph Myers <joseph@codesourcery.com>
14704
14705 PR c/4784
14706 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
14707 structures and unions recursively.
14708 (detect_field_duplicates): Move duplicate detection with a hash to
14709 detect_field_duplicates_hash. Always use a hash if anonymous
14710 structures or unions are present.
14711 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
14712 give errors.
14713
14714 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
14715
14716 PR target/44046
14717 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
14718 detect Atom, Core 2 and Core i7.
14719
14720 2010-05-09 Richard Guenther <rguenther@suse.de>
14721
14722 * gcc.c (store_arg): Handle temporary file deletion for
14723 joined arguments.
14724
14725 2010-05-09 Richard Guenther <rguenther@suse.de>
14726
14727 PR middle-end/44043
14728 * ipa-inline.c (estimate_function_body_sizes): Return after
14729 disregarding inline limits.
14730
14731 2010-05-09 Richard Guenther <rguenther@suse.de>
14732
14733 * gcc.c (store_arg): Revert last change.
14734
14735 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
14736
14737 PR middle-end/28685
14738 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
14739 (optimize_ops_list): Call it.
14740
14741 2010-05-08 Richard Guenther <rguenther@suse.de>
14742
14743 PR tree-optimization/44030
14744 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
14745 NECESSARY flag if we propagate from a inserted expression.
14746
14747 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
14748
14749 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
14750 domain types as equal if they are both PLACEHOLDER_EXPRs.
14751
14752 2010-05-08 Richard Guenther <rguenther@suse.de>
14753
14754 * lto-wrapper.c (run_gcc): Remove linker output from
14755 command line for LTRANS invocation.
14756
14757 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
14758
14759 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
14760 lto-macho as lto_binary_reader.
14761 * target.h (struct gcc_target): New hooks lto_start and lto_end.
14762 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
14763 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
14764 in lto_start and lto_end calls.
14765 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
14766 magic numbers.
14767 (scan_prog_file): Update is_elf_or_coff call.
14768 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
14769
14770 * collect2.c (main): Fix enum comparison.
14771
14772 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
14773 Add prototypes.
14774 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
14775 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
14776 and TARGET_ASM_LTO_END.
14777 * darwin.c: Include obstack.h and lto-streamer.h.
14778 (lto_section_names_offset, lto_section_names_obstack,
14779 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
14780 global variables.
14781 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
14782 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
14783 to a temporary file.
14784 (darwin_asm_lto_end): New function. Restore asm_out_file.
14785 (darwin_asm_named_section): For LTO sections, replace the name with
14786 the offset of the section name in a string table, and build this
14787 table.
14788 (darwin_file_start): Initialize global vars for LTO support.
14789 (darwin_file_end): If output to asm_out_file was redirected, append it
14790 to the proper asm_out_file here. Add the section names section.
14791
14792 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
14793
14794 * c-pragma.c (pending_weak_d, pending_weak): New.
14795 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
14796 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
14797 handle_pragma_weak): Update the uses of pending_weaks.
14798
14799 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14800
14801 PR documentation/44016
14802 * doc/standards.texi (Standards): Link to unversioned
14803 cxx0x_status.html page.
14804
14805 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
14806
14807 PR target/43708
14808 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
14809 in addition to TREE_USED, to avoid "set but unused" warnings.
14810
14811 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
14812
14813 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
14814 (is_loop_prefetching_profitable): Do not insert prefetches
14815 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
14816 times the prefetch ahead distance.
14817
14818 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
14819
14820 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
14821 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
14822 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
14823 the unroll_factor.
14824
14825 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
14826
14827 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
14828 a diagnostic info when the insn-to-mem ratio is too small.
14829
14830 2010-05-07 Richard Guenther <rguenther@suse.de>
14831
14832 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
14833 the linker plugin.
14834 (store_arg): Queue temp_filename for deletion instead of
14835 the whole argument.
14836
14837 2010-05-07 Richard Guenther <rguenther@suse.de>
14838
14839 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
14840 (run_gcc): Handle LTRANS phase invocation.
14841 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
14842
14843 2010-05-07 Jakub Jelinek <jakub@redhat.com>
14844
14845 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
14846 this is also meaningful on PARM_DECLs and RESULT_DECLs.
14847
14848 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14849
14850 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
14851
14852 2010-05-07 Richard Guenther <rguenther@suse.de>
14853
14854 PR tree-optimization/44020
14855 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
14856 code when PRE is not yet initialized.
14857
14858 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14859
14860 * config/mips/dbxmdebug.h: Remove.
14861 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
14862
14863 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
14864
14865 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
14866 with null pointer and also warn about ordered comparison of zero with
14867 pointer if -Wextra.
14868
14869 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
14870
14871 * graphite-blocking.c
14872 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
14873 * graphite-clast-to-gimple.c
14874 (clast_to_gcc_expression): Same.
14875 (precision_for_value): Same.
14876 (precision_for_interval): Same.
14877 (gcc_type_for_interval): Same.
14878 (graphite_create_new_guard): Same.
14879 (compute_bounds_for_level): Same.
14880 (graphite_create_new_loop_guard): Same.
14881 * graphite-interchange.c
14882 (build_linearized_memory_access): Same.
14883 (pdr_stride_in_loop): Same.
14884 (memory_strides_in_loop_1): Same.
14885 (memory_strides_in_loop): Same.
14886 (extend_scattering): Same.
14887 (psct_scattering_dim_for_loop_depth): Same.
14888 (pbb_number_of_iterations): Same.
14889 * graphite-poly.h
14890 (debug_iteration_domains): Same.
14891 * graphite-ppl.c
14892 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
14893 (ppl_set_inhomogeneous_gmp): Same.
14894 (ppl_strip_loop): Same.
14895 (ppl_lexico_compare_linear_expressions): Same.
14896 (ppl_read_polyhedron_matrix): Same.
14897 (ppl_max_for_le_pointset): Same.
14898 * graphite-ppl.h
14899 (ppl_read_polyhedron_matrix): Same.
14900 (tree_int_to_gmp): Same.
14901 (gmp_cst_to_tree): Same.
14902 (ppl_set_inhomogeneous): Same.
14903 (ppl_set_inhomogeneous_tree): Same.
14904 (ppl_set_coef): Same.
14905 (ppl_set_coef_tree): Same.
14906 * graphite-sese-to-poly.c
14907 (build_pbb_scattering_polyhedrons): Same.
14908 (build_scop_scattering): Same.
14909 (scan_tree_for_params_right_scev): Same.
14910 (scan_tree_for_params): Same.
14911 (find_params_in_bb): Same.
14912 (find_scop_parameters): Same.
14913 (add_upper_bounds_from_estimated_nit): Same.
14914 (build_loop_iteration_domains): Same.
14915 (add_condition_to_domain): Same.
14916 (pdr_add_memory_accesses): Same.
14917
14918 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
14919
14920 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
14921 CLooG's value_* macros to their respective mpz_* counterparts.
14922 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
14923 (graphite_create_new_loop_guard): Same.
14924 * graphite-interchange.c (build_linearized_memory_access): Same.
14925 (pdr_stride_in_loop): Same.
14926 (memory_strides_in_loop_1): Same.
14927 (1st_interchange_profitable_p): Same.
14928 * graphite-poly.c (extend_scattering): Same.
14929 (psct_scattering_dim_for_loop_depth): Same.
14930 (pbb_number_of_iterations): Same.
14931 (pbb_number_of_iterations_at_time): Same.
14932 * graphite-poly.h (new_1st_loop): Same.
14933 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
14934 (oppose_constraint): Same.
14935 (insert_constraint_into_matrix): Same.
14936 (ppl_set_inhomogeneous_gmp): Same.
14937 (ppl_set_coef_gmp): Same.
14938 (ppl_strip_loop): Same.
14939 (ppl_lexico_compare_linear_expressions): Same.
14940 (ppl_max_for_le_pointset): Same.
14941 (ppl_min_for_le_pointset): Same.
14942 (ppl_build_realtion): Same.
14943 * graphite-ppl.h (gmp_cst_to_tree): Same.
14944 (ppl_set_inhomogeneous): Same.
14945 (ppl_set_inhomogeneous_tree): Same.
14946 (ppl_set_coef): Same.
14947 (ppl_set_coef_tree): Same.
14948 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
14949 (build_scop_scattering): Same.
14950 (add_value_to_dim): Same.
14951 (scan_tree_for_params_right_scev): Same.
14952 (scan_tree_for_params_int): Same.
14953 (scan_tree_for_params): Same.
14954 (find_params_in_bb): Same.
14955 (find_scop_parameters): Same.
14956 (add_upper_bounds_from_estimated_nit): Same.
14957 (build_loop_iteration_domains): Same.
14958 (create_linear_expr_from_tree): Same.
14959 (add_condition_to_domain): Same.
14960 (pdr_add_memory_accesses): Same.
14961
14962 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
14963 Jason Merrill <jason@redhat.com>
14964
14965 * c-common.c (c_common_reswords): Add nullptr.
14966 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
14967 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
14968 (gen_type_die_with_usage): Likewise.
14969 * dbxout.c (dbxout_type): Likewise.
14970 * sdbout.c (plain_type_1): Likewise.
14971
14972 2010-05-06 Jason Merrill <jason@redhat.com>
14973
14974 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
14975 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
14976 ret appropriately.
14977 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
14978
14979 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
14980 stripping WITH_SIZE_EXPR.
14981 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
14982 change.
14983
14984 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14985
14986 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
14987 list of obsolete configurations.
14988 Disabled check for obsolete configurations.
14989 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
14990 Removed support for previous versions.
14991 * config/mips/iris.h: Removed.
14992 * config/mips/iris5.h: Removed.
14993 * config/mips/iris6.h: Merged old iris.h contents.
14994 (TARGET_IRIX): Removed.
14995 (DRIVER_SELF_SPECS): Removed mabi=32.
14996 (IDENT_ASM_OP): Removed undef.
14997 (STARTFILE_SPEC): Removed mabi=32.
14998 (ENDFILE_SPEC): Likewise.
14999 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
15000 (MACHINE_TYPE): Update for IRIX 6.5.
15001 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
15002 TARGET_IRIX by TARGET_IRIX6.
15003 (mips_file_start): Likewise.
15004 (mips_output_external): Remove IRIX 5/6 O32 support.
15005 (mips_output_function_prologue): Likewise.
15006 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
15007 TARGET_IRIX6.
15008 (TARGET_CPU_CPP_BUILTINS): Likewise.
15009 (TARGET_IRIX): Removed.
15010 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
15011 (MULTILIB_DIRNAMES): Removed 32.
15012 (MULTILIB_OSDIRNAMES): Removed ../lib.
15013 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
15014 (Specific, mips-sgi-irix5): Document removal.
15015 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
15016 Remove references to older IRIX 6 releases and the O32 ABI.
15017
15018 2010-05-06 Jakub Jelinek <jakub@redhat.com>
15019
15020 PR bootstrap/43994
15021 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
15022 instead of DF_REF_REAL_REG.
15023
15024 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
15025
15026 PR target/43888
15027 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
15028 handling to still return true for x64 targets.
15029
15030 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
15031
15032 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
15033
15034 2010-05-06 Jan Hubicka <jh@suse.cz>
15035
15036 PR tree-optimization/43791
15037 * ipa-inline.c (update_caller_keys): Remove bogus
15038 disregard_inline_limits check.
15039
15040 2010-05-06 Michael Matz <matz@suse.de>
15041
15042 PR tree-optimization/43984
15043 * tree-ssa-pre.c (inserted_phi_names): Remove.
15044 (inserted_exprs): Change to bitmap.
15045 (create_expression_by_pieces): Set bits, don't append to vector.
15046 (insert_into_preds_of_block): Don't handle inserted_phi_names.
15047 (eliminate): Don't look at inserted_phi_names, remove deleted
15048 insns from inserted_exprs.
15049 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
15050 (init_pre, fini_pre): Allocate and free bitmaps.
15051 (execute_pre): Insert insns on edges before elimination.
15052
15053 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
15054
15055 * tree.c (initializer_zerop): Handle STRING_CST.
15056
15057 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
15058
15059 PR 40989
15060 * doc/invoke.texi (Wimplicit): Document as C only.
15061 * opts.c (common_handle_option): Add argument kind.
15062 (handle_option): Rename as read_cmdline_option. Factor out code to...
15063 (handle_option): ... here. New.
15064 (handle_options): Rename as read_cmdline_options.
15065 (decode_options): Update call.
15066 (set_option): Use option index instead of option pointer. Classify
15067 diagnostics correctly.
15068 (enable_warning_as_error): Call handle_option.
15069 * opts.h (set_option): Update declaration.
15070 (handle_option): Declare.
15071 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
15072 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
15073 * c-opts.c (set_Wimplicit): Delete.
15074 (c_family_lang_mask): New static constant.
15075 (c_common_handle_option): Add argument kind. Use handle_option
15076 instead of set_Wimplicit.
15077 (c_common_post_options): warn_implicit and warn_implicit_int
15078 are disabled by default.
15079 * c-common.c (warn_implicit): Do not define here.
15080 * c-common.h (warn_implicit): Do not declare here.
15081 (c_common_handle_option): Update declaration.
15082 * lto-opts.c (lto_reissue_options): Update call to set_option.
15083
15084 2010-05-06 Richard Guenther <rguenther@suse.de>
15085
15086 PR tree-optimization/43571
15087 * domwalk.c (walk_dominator_tree): Walk the dominator
15088 sons in more optimal order.
15089
15090 2010-05-06 Richard Guenther <rguenther@suse.de>
15091
15092 PR tree-optimization/43934
15093 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
15094 (stmt_cost): Likewise.
15095 (extract_true_false_args_from_phi): New helper.
15096 (determine_max_movement): For PHI nodes verify we can hoist them
15097 and compute their cost.
15098 (determine_invariantness_stmt): Handle PHI nodes.
15099 (move_computations_stmt): Likewise. Hoist PHI nodes in
15100 if-converted form using COND_EXPRs.
15101 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
15102 (tree_ssa_lim): Likewise.
15103 * tree-flow.h (tree_ssa_lim): Adjust prototype.
15104 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
15105
15106 2010-05-06 Richard Guenther <rguenther@suse.de>
15107
15108 PR tree-optimization/43987
15109 * tree-ssa-structalias.c (could_have_pointers): For possibly
15110 address-taken variables force pointers to be recorded.
15111 (create_variable_info_for_1): Likewise.
15112 (push_fields_onto_fieldstack): Pass in wheter all fields
15113 must have pointers.
15114 (find_func_aliases): Query types instead of vars whether
15115 they contain pointers where appropriate.
15116
15117 2010-05-06 Jan Hubicka <jh@suse.cz>
15118
15119 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
15120 (record_reference, mark_address, mark_load, mark_store): Record
15121 references.
15122 (record_references_in_initializer): Update call of record_references.
15123 (rebuild_cgraph_edges): Remove all references before rebuiding.
15124 * cgraph.c (cgraph_create_node): Clear ref list.
15125 (cgraph_remove_node): Remove references.
15126 (dump_cgraph_node): Dump references.
15127 (cgraph_clone_node): Clone references.
15128 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
15129 (struct cgraph_node, varpool_node): Add ref_lst.
15130 * ipa-ref.c: New file.
15131 * ipa-ref.h: New file.
15132 * ipa-ref-inline.h: New file.
15133 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
15134 (referenced_from_other_partition_p): New function.
15135 (lto_output_varpool_node): Take set arugment; call
15136 referenced_from_other_partition.
15137 (lto_output_ref): New.
15138 (add_references): New.
15139 (output_refs): New.
15140 (output_cgraph): Compute boundary based on references; output refs.
15141 (output_varpool): Accept cgraph_node_set argument.
15142 (input_ref): New.
15143 (input_refs): New.
15144 (input_cgraph): Call input_refs.
15145 * lto-section-in.c (lto_section_name): Add refs.
15146 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
15147 (ipa-ref.o): New file.
15148 * varpool.c (varpool_node): Clear ipa ref list.
15149 (varpool_remove_node): Remove references.
15150 (dump_varpool_node): Dump references.
15151 (varpool_assemble_decl): Only compile finalized ones.
15152 (varpool_extra_name_alias): Initialize ref list.
15153 * lto-streamer.c (lto-get_section_name): Add .refs section.
15154 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
15155 (referenced_from_other_partition_p): Declared.
15156
15157 2010-05-06 Ira Rosen <irar@il.ibm.com>
15158
15159 PR tree-optimization/43901
15160 * tree-vect-stmts.c (vectorizable_call): Assert that vector
15161 type is not NULL if it's transformation phase, and return
15162 FALSE if it's analysis.
15163 (vectorizable_conversion, vectorizable_operation,
15164 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
15165
15166 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
15167
15168 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
15169 Delete.
15170 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
15171 New define.
15172 * config/mips/mips-protos.h
15173 (mips_small_register_classes_for_mode_p): Delete prototype.
15174
15175 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
15176
15177 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
15178 * config/arm/arm.c (multiple_operation_profitable_p,
15179 compute_offset_order): New static functions.
15180 (load_multiple_sequence, store_multiple_sequence): Use them.
15181 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
15182 memory offsets, not register numbers.
15183 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
15184
15185 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
15186
15187 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
15188 (get_pending_sizes, put_pending_size, put_pending_sizes):
15189 Update the uses of pending_sizes.
15190 * c-decl.c (store_parm_decls): Likewise.
15191 * c-tree.h (struct c_arg_info): Likewise.
15192 * tree.h: Update the prototype for get_pending_sizes and
15193 put_pending_sizes.
15194
15195 2010-05-05 Jason Merrill <jason@redhat.com>
15196
15197 PR debug/43370
15198 * c-common.c (handle_aligned_attribute): Respect
15199 ATTR_FLAG_TYPE_IN_PLACE.
15200
15201 PR testsuite/43758
15202 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
15203 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15204 (TARGET_INITIALIZER): Use it.
15205 * c-common.c (attribute_takes_identifier_p): Call it.
15206 * c-common.h: Update prototype.
15207 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
15208 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15209
15210 2010-05-05 Jakub Jelinek <jakub@redhat.com>
15211
15212 PR debug/43950
15213 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
15214 DW_ID_down_case for Fortran compilation units.
15215
15216 2010-05-05 Jan Hubicka <jh@suse.cz>
15217
15218 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
15219 handle aliases.
15220
15221 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
15222
15223 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
15224 a variable-sized RESULT_DECL.
15225
15226 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
15227
15228 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
15229
15230 2010-05-05 Jason Merrill <jason@redhat.com>
15231
15232 PR c++/43787
15233 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
15234 returns GS_OK.
15235 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
15236
15237 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
15238 Jakub Jelinek <jakub@redhat.com>
15239
15240 PR debug/43478
15241 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
15242 (dead_debug_init, dead_debug_finish): New functions.
15243 (dead_debug_add, dead_debug_insert_before): Likewise.
15244 (df_note_bb_compute): Initialize a dead_debug object, add dead
15245 debug uses to it, insert debug bind insns before death insns,
15246 reset debug insns that refer to pending uses at the end.
15247 * rtl.h (make_debug_expr_from_rtl): New prototype.
15248 * varasm.c (make_debug_expr_from_rtl): New function.
15249
15250 2010-05-05 Jan Hubicka <jh@suse.cz>
15251
15252 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
15253 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
15254 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
15255 lto_varpool_encoder_deref, lto_varpool_encoder_size,
15256 lto_varpool_encoder_encode_initializer_p,
15257 lto_set_varpool_encoder_encode_initializer): New functions.
15258 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
15259 call output_varpool.
15260 (input_varpool_node): Do not always set analyzed.
15261 (input_cgraph_1): Return vector of cgraph nodes.
15262 (input_varpool_1): Return vector of varpools.
15263 (input_cgraph): Free the vectors.
15264 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15265 output only initializers needed.
15266 (lto_output): Only call output_cgraph.
15267 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
15268 * lto-section-out.c (lto_new_out_decl_state): Initialize
15269 state->varpool_node_encoder.
15270 * lto-streamer.h (lto_varpool_encoder_d): New.
15271 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
15272 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
15273 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
15274 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
15275 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
15276 Declare.
15277 (output_varpool, input_varpool): Remove declarations.
15278
15279 2010-05-05 Jan Hubicka <jh@suse.cz>
15280
15281 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
15282 with body can prevail.
15283
15284 2010-05-05 Jan Hubicka <jh@suse.cz>
15285
15286 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
15287 size.
15288
15289 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
15290
15291 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
15292
15293 * gengtype.h (erro_at_line): Constify pos argument.
15294
15295 * gengtype.c: Include hashtab.h.
15296 (enum gc_used): Document GC_MAYBE_POINTED_TO.
15297 (error_at_line): Constify pos argument.
15298 (do_typedef): Initialize p->opt field.
15299 (get_file_gtfilename): Fix comment typo.
15300 (struct walk_type_data): Constify line field.
15301 (get_output_file_for_structure): New function.
15302 (write_local_func_for_structure): Constify orig_s argument.
15303 Use get_output_file_for_structure.
15304 (write_func_for_structure): Use get_output_file_for_structure.
15305 (INDENT): New define.
15306 (dump_pair, dump_type, dump_type_list, dump_typekind)
15307 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
15308 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
15309 functions.
15310 (seen_types): New variable.
15311 (main): New variable do_dump. Process "-d" command line option.
15312 Call dump_everything if dump requested.
15313
15314 2010-05-05 Jakub Jelinek <jakub@redhat.com>
15315
15316 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
15317 in a temporary instead of invoking the macro multiple times.
15318 (track_expr_p): Likewise.
15319
15320 2010-05-04 Neil Vachharajani <nvachhar@google.com>
15321
15322 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
15323 per new semantics.
15324 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
15325 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
15326 conditions for printing notes.
15327 * common.opt (-Wcoverage-mismatch): Allow negative, default to
15328 true, update documentation.
15329 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
15330
15331 2010-05-04 Jakub Jelinek <jakub@redhat.com>
15332
15333 PR c/43981
15334 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
15335 on dimen.
15336
15337 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
15338
15339 PR target/43799
15340 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
15341 (*sse_prologue_save_insn1): Likewise.
15342 (SSE prologue save splitter): Likewise.
15343
15344 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
15345
15346 * tree.c (free_lang_data_in_one_sizepos): New inline function.
15347 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
15348 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
15349 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
15350 all decls. Call it on DECL_FIELD_OFFSET of fields.
15351 (find_decls_types_r): Follow DECL_VALUE_EXPR.
15352 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
15353
15354 2010-05-04 Martin Jambor <mjambor@suse.cz>
15355
15356 * tree-sra.c (build_access_from_expr_1): The first parameter type
15357 changed to simple tree.
15358 (build_access_from_expr): Likewise, gsi parameter was eliminated.
15359 (scan_assign_result): Renamed to assignment_mod_result, enum elements
15360 renamed as well.
15361 (build_accesses_from_assign): Removed all parameters except for a
15362 simple gimple statement. Now returns a simple bool.
15363 (scan_function): All non-analysis parts moved to separate functions
15364 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
15365 parameters and updated both callers.
15366 (sra_modify_expr): Removed parameter data.
15367 (sra_modify_function_body): New function.
15368 (perform_intra_sra): Call sra_modify_function_body to modify the
15369 function body.
15370 (replace_removed_params_ssa_names): Parameter data changed into
15371 adjustments vector.
15372 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
15373 changed the parameter dont_convert to convert with the opposite
15374 meaning.
15375 (sra_ipa_modify_assign): Parameter data changed into adjustments
15376 vector, return value changed to bool.
15377 (ipa_sra_modify_function_body): New function.
15378 (sra_ipa_reset_debug_stmts): Updated a comment.
15379 (modify_function): Use ipa_sra_modify_function_body to modify function
15380 body.
15381
15382 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
15383
15384 PR middle-end/43671
15385 * alias.c (true_dependence): Handle the same VALUE in x and mem.
15386 (canon_true_dependence): Likewise.
15387 (write_dependence_p): Likewise.
15388
15389 2010-05-04 Jan Hubicka <jh@suse.cz>
15390
15391 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
15392 * cgraphbuild.c: Include ipa-utils.h
15393 (record_reference_ctx): New struct.
15394 (record_reference): Simplify to work on initializers; not statements.
15395 (mark_address, mark_load, mark_store): New.
15396 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
15397 walk PHI nodes too.
15398 (record_references_in_initializer): Update use of record_reference.
15399 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
15400 walk PHI nodes too.
15401
15402 2010-05-04 Jan Hubicka <jh@suse.cz>
15403
15404 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
15405 node will be removed anyway.
15406 (lto_varpool_replace_node): Allow also unanalyzed nodes;
15407 relink aliases of node into prevailing node.
15408 * varpool.c (varpool_remove_node): Remove aliases properly;
15409 when removing node, remove all its aliases too; remove DECL_INITIAL
15410 of removed node; ggc_free the varpool node.
15411
15412 2010-05-04 Richard Guenther <rguenther@suse.de>
15413
15414 PR tree-optimization/43879
15415 * tree-ssa-structalias.c (alias_get_name): Use
15416 DECL_ASSEMBLER_NAME if available.
15417 (create_function_info_for): Return the varinfo node.
15418 (ipa_pta_execute): Associate same-body aliases and extra names
15419 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
15420
15421 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
15422
15423 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
15424
15425 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
15426
15427 PR bootstrap/43964
15428 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
15429 only if HONOR_REG_ALLOC_ORDER is not defined.
15430
15431 2010-05-04 Richard Guenther <rguenther@suse.de>
15432
15433 PR tree-optimization/43949
15434 * tree-vrp.c (extract_range_from_binary_expr): Only handle
15435 TRUNC_MOD_EXPR.
15436
15437 2010-04-26 Jason Merrill <jason@redhat.com>
15438
15439 * c.opt (-fstrict-enums): New.
15440 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
15441
15442 2010-05-03 David Ung <davidu@mips.com>
15443 James E. Wilson <wilson@codesourcery.com>
15444
15445 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
15446 emit the trap instruction before the divide for TUNE_74K.
15447
15448 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
15449
15450 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
15451 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
15452 based on the above, for new target hook.
15453
15454 * hooks.c (hook_bool_mode_true): New generic hook.
15455 * hooks.h (hook_bool_mode_true): Add prototype.
15456
15457 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
15458 target hook.
15459 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
15460 target hook, set to hook_bool_mode_false.
15461 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
15462 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
15463 with targetm.small_register_classes_for_mode_p.
15464 (find_reusable_reload): Likewise.
15465 (combine_reloads): Likewise.
15466 * reload1.c (reload_as_needed): Likewise.
15467 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
15468 * ifcvt.c (noce_process_if_block, check_cond_move_block,
15469 dead_or_predicable): Likewise.
15470 * regmove.c (optimize_reg_copy_1): Likewise.
15471 * calls.c (prepare_call_address): Likewise.
15472 (precompute_register_parameters): Likewise.
15473
15474 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
15475 hook definition.
15476 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
15477 implementation of the hook that considers all register classes
15478 small except for SH64.
15479 (sh_override_options): Use the new hook.
15480 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
15481 Add prototype.
15482
15483 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
15484 hook definition.
15485 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
15486 implementation of the hook that considers all register classes
15487 small for THUMB1.
15488 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
15489 Add prototype.
15490
15491 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
15492 hook definition.
15493 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
15494 implementation of the hook that considers all register classes
15495 small for MIPS16.
15496 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
15497 Add prototype.
15498
15499 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
15500 hook definition.
15501 * config/m32c/m32c.h: Likewise.
15502 * config/pdp11/pdp11.h: Likewise.
15503 * config/avr/avr.h: Likewise.
15504 * config/xtensa/xtensa.h: Likewise.
15505 * config/m68hc11/m68hc11.h: Likewise.
15506 * config/mn10300/mn10300.h: Likewise.
15507 * config/mcore/mcore.h: Likewise.
15508 * config/h8300/h8300.h: Likewise.
15509 * config/bfin/bfin.h: Likewise.
15510
15511 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
15512 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
15513
15514 2010-05-03 Anatoly Sokolov <aesok@post.ru>
15515
15516 * double-int.h (tree_to_double_int): Remove macro.
15517 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
15518 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
15519 (tree_to_double_int): New function.
15520 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
15521 Move ...
15522 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
15523
15524 2010-05-03 Richard Guenther <rguenther@suse.de>
15525
15526 PR tree-optimization/43971
15527 * tree-ssa-structalias.c (get_constraint_for_1): Fix
15528 constraints in the !flag_delete_null_pointer_checks case.
15529
15530 2010-05-03 Jakub Jelinek <jakub@redhat.com>
15531
15532 PR debug/43972
15533 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
15534 result mode matches original rtl mode.
15535
15536 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
15537
15538 PR target/43888
15539 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
15540
15541 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
15542
15543 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
15544 when processing flag options.
15545
15546 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
15547
15548 * gcov-iov.c (main): Change format string placeholder
15549 from %#08x to 0x%08x.
15550 * genchecksum.c (dosum): Change format string placeholder
15551 from %#02x to 0x%02x.
15552
15553 2010-05-02 Richard Guenther <rguenther@suse.de>
15554
15555 PR tree-optimization/43879
15556 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
15557
15558 2010-05-02 Bruno Haible <bruno@clisp.org>
15559
15560 * doc/extend.texi (Function Attributes): Fix a typo.
15561
15562 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
15563
15564 Revert:
15565 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
15566 placeholder from 0x%x to %#x.
15567 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
15568 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
15569 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
15570 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
15571 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
15572 * config/i386/i386.c (ix86_target_string): Ditto.
15573 * config/i386/i386.c (output_pic_addr_const): Ditto.
15574 (print_operand): Ditto.
15575
15576 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
15577
15578 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
15579 placeholder from 0x%x to %#x.
15580 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
15581 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
15582 (ASM_OUTPUT_DEBUG_DATA): Ditto.
15583 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
15584 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
15585 * optc-gen.awk: Ditto.
15586 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
15587 (HOST_WIDE_INT_PRINT_HEX): Ditto.
15588 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
15589 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
15590
15591 2010-05-01 Anatoly Sokolov <aesok@post.ru>
15592
15593 * target.h (struct calls): Add function_value_regno_p field.
15594 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
15595 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
15596 * targhooks.c (default_function_value_regno_p): New function.
15597 * targhooks.h (default_function_value_regno_p): Declare function.
15598 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
15599 * builtins.c. (apply_result_size): (Ditto.).
15600 * combine.c. (likely_spilled_retval_p): (Ditto.).
15601 * mode-switching.c. Include 'target.h'.
15602 (create_pre_exit): Use function_value_regno_p hook.
15603 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
15604 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
15605 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
15606
15607 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
15608 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
15609 (ix86_function_value_regno_p): Declare as static, change argument
15610 type to const unsigned int.
15611 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
15612
15613 2010-05-01 Richard Guenther <rguenther@suse.de>
15614
15615 PR tree-optimization/43949
15616 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
15617 types.
15618 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
15619
15620 2010-05-01 Anatoly Sokolov <aesok@post.ru>
15621
15622 * rtl.h (CONST_DOUBLE_P): Define.
15623 (rtx_to_double_int): Declare.
15624 * emit-rtl.c (rtx_to_double_int): New function.
15625 * dwarf2out.c (insert_double): New function.
15626 (loc_descriptor, add_const_value_attribute): Clean up, use
15627 rtx_to_double_int and insert_double functions.
15628
15629 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
15630
15631 * doc/extend.texi (Inline): Add missing return keyword to examples.
15632 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
15633 "command-line".
15634
15635 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
15636
15637 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
15638 the variable part of the offset as well. Use highest_pow2_factor for
15639 all alignment checks.
15640
15641 2010-04-30 Richard Guenther <rguenther@suse.de>
15642
15643 PR tree-optimization/43879
15644 * tree-ssa-structalias.c (type_could_have_pointers): Functions
15645 can have pointers.
15646
15647 2010-04-30 Jan Hubicka <jh@suse.cz>
15648
15649 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
15650 varpool.
15651 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
15652
15653 2010-04-30 Jan Hubicka <jh@suse.cz>
15654
15655 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
15656 New.
15657 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
15658 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
15659 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
15660 cgraph_node_set_needs_ltrans_p): Remove.
15661
15662 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
15663
15664 * sdbout.c: Include vec.h, do not include varray.h.
15665 (deferred_global_decls, sdbout_global_decl,
15666 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
15667 * toplev.c: Do not include varray.h.
15668 (dump_memory_report): Do not dump VARRAY statistics.
15669 * gengtype.c (open_base_file): Ignore varray.h.
15670 * Makefile.in: Update for abovementioned changes.
15671 Remove all traces of varray.c and varray.h.
15672 * varray.c: Remove file.
15673 * varray.h: Remove file.
15674
15675 2010-04-30 Jan Hubicka <jh@suse.cz>
15676
15677 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
15678 references.
15679
15680 2010-04-30 Jan Hubicka <jh@suse.cz>
15681
15682 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
15683 needed.
15684
15685 2010-04-30 Richard Guenther <rguenther@suse.de>
15686
15687 * tree-ssa-structalias.c (get_constraint_for_1): Generate
15688 constraints for CONSTRUCTOR.
15689
15690 2010-04-30 Richard Guenther <rguenther@suse.de>
15691
15692 PR lto/43946
15693 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
15694 first after all lowering passes.
15695
15696 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
15697
15698 * toplev.c: Include varray.h for statistics dumping.
15699 * tree.h: Do not declare varray_head_tag.
15700 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
15701 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
15702 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
15703 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
15704 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
15705 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
15706 c-common.c, c-common.h, reg-stack.c, basic-block.h,
15707 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
15708 include varray.h.
15709 * Makefile.in: Update for abovementioned changes.
15710
15711 2010-04-30 Jakub Jelinek <jakub@redhat.com>
15712
15713 PR debug/43942
15714 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
15715
15716 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
15717
15718 * config/picochip/picochip.c (picochip_legitimize_address): Define.
15719 Use this function to do machine-specific conversion.
15720 (picochip_legitimize_reload_address): Likewise.
15721 (picochip_legitimate_address_p): Check valid base register only if
15722 strict.
15723 (picochip_check_conditional_copy): Check for modw only if opnd is
15724 register.
15725 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
15726 to call the function in c.
15727 * config/picochip/picochip-protos.h
15728 (picochip_legitimize_reload_address): Define.
15729 * config/picochip/picochip.md (supported_compare1): Define.
15730
15731 2010-04-30 Jan Hubicka <jh@suse.cz>
15732
15733 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
15734 (cgraph_global_info): Remove inlined.
15735 (LTO_cgraph_tag_names): Remove.
15736 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
15737 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
15738 simplify cgraph tags and document.
15739 (lto_output_node): Use only LTO_cgraph_unavail_node and
15740 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
15741 for_functions_valid, global info, process and output flags.
15742 (input_overwrite_node): Initialize estimated stack size and
15743 estimated growth. Do not read flags we no longer store.
15744 (input_node): Likewise do not read info no longer stored.
15745 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
15746 flag.
15747
15748 2010-04-30 Richard Guenther <rguenther@suse.de>
15749
15750 PR tree-optimization/43879
15751 * tree-ssa-structalias.c (get_constraint_for_1): Properly
15752 handle non-zero initializers.
15753
15754 2010-04-30 Richard Guenther <rguenther@suse.de>
15755
15756 * builtins.c (fold_builtin_1): Delete free (0).
15757
15758 2010-04-29 Jan Hubicka <jh@suse.cz>
15759
15760 * gengtype.c (open_base_files): Add lto-streamer.h
15761 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
15762 (pass_ipa_cp): GGC collect.
15763 * toplev. (compile_file): Do not output symbols.
15764 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
15765 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
15766 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
15767 * lto-section-in.c: Include ggc.h
15768 (lto_new_in_decl_state): Alloc in GGC.
15769 (lto_delete_in_decl_state): Likewise.
15770 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
15771 Collect.
15772
15773 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
15774
15775 PR target/42895
15776 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
15777 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
15778 (HONOR_REG_ALLOC_ORDER): Describe new macro.
15779 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
15780 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
15781 account only if HONOR_REG_ALLOC_ORDER is not defined.
15782 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
15783 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
15784
15785 2010-04-29 Jon Grant <04@jguk.org>
15786
15787 * collect2.c (vflag): Change type from int to bool.
15788 (debug): Likewise.
15789 (helpflag): New global bool.
15790 (main): Set vflag and debug with boolean, not integer truth values.
15791 Accept new "--help" option and output usage text if found.
15792 * collect2.h (vflag): Update prototype.
15793 (debug): Likewise.
15794
15795 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
15796
15797 PR bootstrap/43936
15798 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
15799
15800 2010-04-29 Richard Guenther <rguenther@suse.de>
15801
15802 PR bootstrap/43935
15803 * plugin.h (invoke_plugin_callbacks): Annotate arguments
15804 with ATTRIBUTE_UNUSED.
15805
15806 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
15807
15808 PR target/43921
15809 * config/i386/i386.c (get_some_local_dynamic_name): Replace
15810 INSN_P with NONDEBUG_INSN_P.
15811 (distance_non_agu_define): Likewise.
15812 (distance_agu_use): Likewise.
15813
15814 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
15815
15816 From Dominique d'Humieres <dominiq@lps.ens.fr>
15817 PR bootstrap/43858
15818 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
15819 test_set.
15820
15821 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
15822
15823 * plugin.h (invoke_plugin_callbacks): New inline function.
15824 * plugin.c (flag_plugin_added): New global flag.
15825 (add_new_plugin): Initialize above flag.
15826 (invoke_plugin_callbacks): Rename to ...
15827 (invoke_plugin_callbacks_full): ... this.
15828
15829 2010-04-28 Jan Hubicka <jh@suse.cz>
15830
15831 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
15832 (lto_varpool_replace_node): New.
15833 (lto_symtab_resolve_symbols): Resolve varpool nodes.
15834 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
15835 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
15836 * cgraph.h (varpool_node_ptr): New type.
15837 (varpool_node_ptr): New vector.
15838 (varpool_node_set_def): New structure.
15839 (varpool_node_set): New type.
15840 (varpool_node_set): New vector.
15841 (varpool_node_set_element_def): New structure.
15842 (varpool_node_set_element, const_varpool_node_set_element): New types.
15843 (varpool_node_set_iterator): New type.
15844 (varpool_node): Add prev pointers, add used_from_other_partition,
15845 in_other_partition.
15846 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
15847 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
15848 varpool_get_node, varpool_remove_node): Declare.
15849 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
15850 varpool_node_set_size): New inlines.
15851 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
15852 * tree-pass.h (varpool_node_set_def): Forward declare.
15853 (ipa_opt_pass_d): Summary writting takes vnode sets too.
15854 (ipa_write_optimization_summaries): Update prototype.
15855 * ipa-cp.c (ipcp_write_summary): Update.
15856 * ipa-reference.c (ipa_reference_write_summary): Update.
15857 * lto-cgraph.c (lto_output_varpool_node): New static function.
15858 (output_varpool): New function.
15859 (input_varpool_node): New static function.
15860 (input_varpool_1): New function.
15861 (input_cgraph): Input varpool.
15862 * ipa-pure-const.c (pure_const_write_summary): Update.
15863 * lto-streamer-out.c (lto_output): Update, output varpool too.
15864 (write_global_stream): Kill WPA hack.
15865 (produce_asm_for_decls): Update.
15866 (output_alias_pair_p): Handle variables.
15867 (output_unreferenced_globals): Output only needed partition of varpool.
15868 * ipa-inline.c (inline_write_summary): Update.
15869 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
15870 cgraph.
15871 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
15872 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
15873 varpool_node_set_new, varpool_node_set_add,
15874 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
15875 debug_varpool_node_set): New functions.
15876 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
15877 (execute_one_pass): Process new decls too.
15878 (ipa_write_summaries_2): Pass around vsets.
15879 (ipa_write_summaries_1): Likewise.
15880 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
15881 to add.
15882 (ipa_write_optimization_summaries_1): Pass around vsets.
15883 (ipa_write_optimization_summaries): Likewise.
15884 * varpool.c (varpool_get_node): New.
15885 (varpool_node): Update doubly linked lists.
15886 (varpool_remove_node): New.
15887 (dump_varpool_node): More dumping.
15888 (varpool_enqueue_needed_node): Update doubly linked lists.
15889 (decide_is_variable_needed): Kill ltrans hack.
15890 (varpool_finalize_decl): Kill lto hack.
15891 (varpool_assemble_decl): Skip decls in other partitions.
15892 (varpool_assemble_pending_decls): Update doubly linkes lists.
15893 (varpool_empty_needed_queue): Likewise.
15894 (varpool_extra_name_alias): Likewise.
15895 * lto-streamer.c (lto_get_section_name): Add vars section.
15896 * lto-streamer.h (lto_section_type): Update.
15897 (output_varpool, input_varpool): Declare.
15898
15899 2010-04-28 Mike Stump <mikestump@comcast.net>
15900
15901 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
15902
15903 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
15904
15905 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
15906 record or union type with RECORD_OR_UNION_TYPE_P predicate.
15907 (lto_input_ts_type_tree_pointers): Likewise.
15908 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
15909 (lto_output_ts_type_tree_pointers): Likewise.
15910
15911 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
15912
15913 Uniquization of constants at the Tree level
15914 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
15915 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
15916 bit to the end.
15917 (tree_output_constant_def): Declare.
15918 * gimplify.c (gimplify_init_constructor): When using block copy, first
15919 uniquize the constant constructor on the RHS.
15920 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
15921 DECL_IN_CONSTANT_POOL flag.
15922 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
15923 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
15924 constant pool.
15925 (assemble_variable): Deal with symbols belonging to the tree constant
15926 pool.
15927 (get_constant_section): Add ALIGN parameter and simplify.
15928 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
15929 (assemble_constant_contents): Use the expression of the VAR_DECL.
15930 (output_constant_def_contents): Use the alignment of the VAR_DECL.
15931 (tree_output_constant_def): New global function.
15932 (mark_constant): Use the expression of the VAR_DECL.
15933 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
15934 its expression.
15935 (output_object_block): Likewise and assemble the expression.
15936
15937 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
15938
15939 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
15940 hash_tree, eq_tree): New tree hash table.
15941 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
15942 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
15943 lto_orig_address_remove): Reimplement.
15944
15945 2010-04-28 Xinliang David Li <davidxl@google.com>
15946
15947 PR c/42643
15948 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
15949 (compute_uninit_opnds_pos): New function.
15950 (is_non_loop_exit_postdominating): New function.
15951 (compute_control_dep_chain): New function.
15952 (find_pdom): New function.
15953 (convert_control_dep_chain_into_preds): New function.
15954 (find_predicates): New function.
15955 (find_control_equiv_block): New function.
15956 (collect_phi_def_edges): New function.
15957 (find_def_preds): New function.
15958 (find_dom): New function.
15959 (dump_predicates): New function.
15960 (get_cmp_code): New function.
15961 (is_value_included_in): New function.
15962 (find_matching_predicate_in_rest_chains): New function.
15963 (use_pred_not_overlap_with_undef_path_pred): New function.
15964 (is_use_properly_guarded): New function.
15965 (normalize_cond_1): New function.
15966 (is_and_or_or): New function.
15967 (normalize_cond): New function.
15968 (is_gcond_subset_of): New function.
15969 (is_subset_of_any): New function.
15970 (is_or_set_subset_of): New function.
15971 (is_and_set_subset_of): New function.
15972 (is_norm_cond_subset_of): New function.
15973 (is_pred_expr_subset_of): New function.
15974 (is_pred_chain_subset_of): New function.
15975 (is_included_in): New function.
15976 (is_superset_of): New function.
15977 (find_uninit_use): New function.
15978 (warn_uninitialized_phi): New function.
15979 (compute_possibly_undefined_names): New function.
15980 (ssa_undefined_value_p): New function.
15981 (execute_late_warn_uninitialized): New function.
15982 * tree-ssa.c (ssa_undefined_value_p): Removed.
15983 (warn_uninit): Changed to extern.
15984 (warn_uninitialized_phi): Removed.
15985 (warn_uninitialized_vars): Changed to extern.
15986 (execute_late_warn_uninitialized): Removed
15987 * tree-flow.h: Add new prototypes.
15988 * timevar.def: Add new time variable.
15989 * Makefile.in: Add new build file.
15990
15991 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
15992
15993 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
15994 type if available.
15995
15996 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15997
15998 PR target/22224
15999 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
16000
16001 2010-04-28 Martin Jambor <mjambor@suse.cz>
16002
16003 * cgraph.h (struct cgraph_node): New field indirect_calls.
16004 (struct cgraph_indirect_call_info): New type.
16005 (struct cgraph_edge): Removed field indirect_call. New fields
16006 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
16007 (cgraph_create_indirect_edge): Declare.
16008 (cgraph_make_edge_direct): Likewise.
16009 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
16010 * ipa-prop.h (struct ipa_param_call_note): Removed.
16011 (struct ipa_node_params): Removed field param_calls.
16012 (ipa_create_all_structures_for_iinln): Declare.
16013 * cgraph.c: Described indirect edges and uids in initial comment.
16014 (cgraph_add_edge_to_call_site_hash): New function.
16015 (cgraph_edge): Search also among the indirect edges, use
16016 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
16017 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
16018 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
16019 site hash.
16020 (initialize_inline_failed): Assign a reason to indirect edges.
16021 (cgraph_create_edge_1): New function.
16022 (cgraph_create_edge): Moved some functionality to
16023 cgraph_create_edge_1.
16024 (cgraph_create_indirect_edge): New function.
16025 (cgraph_edge_remove_callee): Add an assert checking for
16026 non-indirectness.
16027 (cgraph_edge_remove_caller): Special-case indirect edges.
16028 (cgraph_remove_edge): Likewise.
16029 (cgraph_set_edge_callee): New function.
16030 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
16031 (cgraph_make_edge_direct): New function.
16032 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
16033 the declaration of the call statement matches.
16034 (cgraph_node_remove_callees): Special-case indirect edges.
16035 (cgraph_clone_edge): Likewise.
16036 (cgraph_clone_node): Clone also the indirect edges.
16037 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
16038 indirect_call, dump count of indirect_calls edges.
16039 * ipa-prop.c (iinlining_processed_edges): New variable.
16040 (ipa_note_param_call): Create indirect edges instead of
16041 creating notes. New parameter node.
16042 (ipa_analyze_call_uses): New parameter node, pass it on to
16043 ipa_note_param_call.
16044 (ipa_analyze_stmt_uses): Likewise.
16045 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
16046 (print_edge_addition_message): Work on edges rather than on notes.
16047 (update_call_notes_after_inlining): Likewise, renamed to
16048 update_indirect_edges_after_inlining.
16049 (ipa_create_all_structures_for_iinln): New function.
16050 (ipa_free_node_params_substructures): Do not free notes.
16051 (ipa_edge_duplication_hook): Propagate bits within
16052 iinlining_processed_edges bitmap.
16053 (ipa_node_duplication_hook): Do not duplicate notes.
16054 (free_all_ipa_structures_after_ipa_cp): Renamed to
16055 ipa_free_all_structures_after_ipa_cp.
16056 (free_all_ipa_structures_after_iinln): Renamed to
16057 ipa_free_all_structures_after_iinln.
16058 (ipa_write_param_call_note): Removed.
16059 (ipa_read_param_call_note): Removed.
16060 (ipa_write_indirect_edge_info): New function.
16061 (ipa_read_indirect_edge_info): Likewise.
16062 (ipa_write_node_info): Do not stream notes, do stream information
16063 in indirect edges.
16064 (ipa_read_node_info): Likewise.
16065 (lto_ipa_fixup_call_notes): Removed.
16066 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
16067 * ipa-inline.c (pass_ipa_inline): Likewise.
16068 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
16069 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
16070 * tree-inline.c (copy_bb): Removed an unnecessary double check for
16071 is_gimple_call.
16072 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
16073 edges.
16074 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
16075 (output_cgraph): Stream also indirect edges.
16076 (lto_output_edge): Added capability to stream indirect edges.
16077 (input_edge): Likewise.
16078 (input_cgraph_1): Likewise.
16079 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
16080 of indirect edges.
16081
16082 2010-04-28 Richard Guenther <rguenther@suse.de>
16083
16084 PR tree-optimization/43879
16085 PR tree-optimization/43909
16086 * tree-ssa-structalias.c (struct variable_info): Add
16087 only_restrict_pointers flag.
16088 (new_var_info): Initialize it. Increment stats.total_vars here.
16089 (create_function_info_for): Do not increment stats.total_vars here.
16090 (get_function_part_constraint): Fix build with C++.
16091 (insert_into_field_list): Remove.
16092 (push_fields_onto_fieldstack): Properly merge fields.
16093 (create_variable_info_for): Split and simplify.
16094 (create_variable_info_for_1): New piece.
16095 (intra_create_variable_infos): Properly make restrict constraints
16096 from parameters.
16097
16098 2010-04-28 Richard Guenther <rguenther@suse.de>
16099
16100 PR c++/43880
16101 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
16102
16103 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
16104 Jan Hubicka <hubicka@ucw.cz>
16105
16106 * doc/invoke.texi (-Wsuggest-attribute=const,
16107 -Wsuggest-attribute=pure): Document.
16108 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
16109 (function_always_visible_to_compiler_p,
16110 suggest_attribute, warn_function_pure, warn_function_const):
16111 New functions.
16112 (check_call): Improve debug info.
16113 (analyze_function): Do not check availability.
16114 (add_new_function): Check availability.
16115 (propagate): Output warnings.
16116 (skip_function_for_local_pure_const): New function.
16117 (local_pure_const): Use it; output warnings.
16118 * common.opt (Wsuggest-attribute=const,
16119 Wsuggest-attribute=pure): New.
16120
16121 2010-04-27 Jakub Jelinek <jakub@redhat.com>
16122
16123 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
16124 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
16125 or DW_CFA_def_cfa_offset{,_sf}.
16126
16127 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
16128
16129 * tree.h: Fix truncated long macros.
16130
16131 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
16132
16133 * collect2.c (TARGET_64BIT): Redefine to target's default.
16134 * tlink.c: Likewise.
16135 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
16136 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
16137 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
16138 for underscoring __USER_LABEL_PREFIX__.
16139 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
16140 (SUB_LINK_ENTRY32): New.
16141 (SUB_LINK_ENTRY64): New.
16142 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
16143 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
16144 (SUB_LINK_ENTRY64): New.
16145 (SUB_LINK_ENTRY): New.
16146 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
16147 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
16148 x64 target is choosen.
16149 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
16150 * configure: Regenerated.
16151 * configure.ac (leading-mingw64-underscores): Option added.
16152
16153 2010-04-27 Jan Hubicka <jh@suse.cz>
16154
16155 * doc/invoke.texi (-fipa-profile): Document.
16156 * opts.c (decode_options): Enable ipa-profile at -O1.
16157 * timevar.def (TV_IPA_PROFILE): Define.
16158 * common.opt (fipa-profile): Add.
16159 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
16160 flag for clones.
16161 (cgraph_propagate_frequency): Handle only local ones.
16162 * tree-pass.h (pass_ipa_profile): Declare.
16163 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
16164 (pass_ipa_profile): Use TV_IPA_PROFILE.
16165 * ipa.c (ipa_profile): New function.
16166 (gate_ipa_profile): Likewise.
16167 (pass_ipa_profile): New global variable.
16168 * passes.c (pass_ipa_profile): New.
16169
16170 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
16171
16172 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
16173
16174 2010-04-27 Martin Jambor <mjambor@suse.cz>
16175
16176 PR middle-end/43812
16177 * ipa.c (dissolve_same_comdat_group_list): New function.
16178 (function_and_variable_visibility): Call
16179 dissolve_same_comdat_group_list when comdat group contains external or
16180 newly local nodes.
16181 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
16182 lists are circular and that they contain only DECL_ONE_ONLY nodes.
16183
16184 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
16185
16186 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
16187 (const_hash_1) <VECTOR_CST>: New case.
16188 (compare_constant) <VECTOR_CST>: Likewise.
16189 <ADDR_EXPR>: Deal with LABEL_REFs.
16190 (copy_constant) <VECTOR_CST>: New case.
16191
16192 2010-04-27 Jan Hubicka <jh@suse.cz>
16193
16194 * cgraph.c (cgraph_propagate_frequency): New function.
16195 * cgraph.h (cgraph_propagate_frequency): Declare.
16196 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
16197 cgraph_propagate_frequency.
16198
16199 2010-04-27 Jakub Jelinek <jakub@redhat.com>
16200
16201 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
16202
16203 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
16204
16205 PR target/40657
16206 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
16207 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
16208 here to determine which regs to push and how much stack to reserve.
16209
16210 2010-04-27 Jie Zhang <jie@codesourcery.com>
16211
16212 * doc/gimple.texi (gimple_statement_with_ops): Remove
16213 addresses_taken field.
16214 (gimple_statement_with_memory_ops): Likewise.
16215
16216 2010-04-27 Jan Hubicka <jh@suse.cz>
16217
16218 * tree-inline.c (eni_inlining_weights): Remove.
16219 (estimate_num_insns): Special case more builtins.
16220
16221 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
16222
16223 PR c/32207
16224 * c-typeck.c (build_binary_op): Move forward check for comparison
16225 pointer with null pointer constant and adjust the diagnostic message.
16226
16227 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
16228
16229 PR lto/42776
16230 * configure.ac (gcc_cv_as_section_has_align): Set if installed
16231 binutils supports extended .section directive needed by LTO, or
16232 warn if older binutils found.
16233 (LTO_BINARY_READER): New AC_SUBST'd variable.
16234 (LTO_USE_LIBELF): Likewise.
16235 * gcc/config.gcc (lto_binary_reader): New target-specific configure
16236 variable.
16237 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
16238 (LTO_USE_LIBELF): Likewise.
16239 * configure: Regenerate.
16240
16241 * collect2.c (is_elf): Rename from this ...
16242 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
16243 object files in addition to ELF-formatted ones.
16244 (scan_prog_file): Caller updated. Also allow for LTO info marker
16245 symbol to be prefixed or not by an extra underscore.
16246
16247 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
16248 * config/i386/winnt.c: Also #include lto-streamer.h
16249 (i386_pe_asm_named_section): Specify 1-byte section alignment for
16250 LTO named sections.
16251 (i386_pe_asm_output_aligned_decl_common): Add comment.
16252 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
16253
16254 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
16255
16256 PR target/43889
16257 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
16258 Add missing earlyclobber for second alternative.
16259
16260 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
16261
16262 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
16263 bits for artificial defs at the top of the block.
16264 * fwprop.c (single_def_use_enter_block): Don't call it.
16265
16266 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
16267
16268 PR 43715
16269 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
16270 instead of "$gcc_cv_objdump -T".
16271 Use "-undefined dynamic_lookup" on darwin.
16272 * gcc/configure: Regenerate.
16273
16274 2010-04-26 Jakub Jelinek <jakub@redhat.com>
16275
16276 PR c/43893
16277 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
16278
16279 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
16280
16281 * c-parser.c (struct c_token): Move location field up.
16282 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
16283 (struct c_declspecs): Convert typespec_word, storage_class, and
16284 default_int_p into bitfields.
16285 (struct c_declarator): Move loc field up.
16286
16287 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
16288
16289 * cfgloop.h (struct loop): Move can_be_parallel field up.
16290 * ipa-prop.h (struct ip_node_params): Move bitfields up.
16291 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
16292 down.
16293 (struct iv_cand): Convert pos field into a bitfield.
16294 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
16295 field up.
16296 (struct _stmt_vec_info): Shuffle fields for better packing.
16297
16298 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
16299
16300 * varasm.c (IN_NAMED_SECTION): Remove guard.
16301 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
16302 (IN_NAMED_SECTION_P): ...this.
16303 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
16304 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
16305
16306 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
16307
16308 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
16309 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
16310 of shadowing it. Fix comments.
16311
16312 2010-04-26 Jan Hubicka <jh@suse.cz>
16313
16314 * cgraph.c (cgraph_create_node): Set node frequency to normal.
16315 (cgraph_clone_node): Copy function frequency.
16316 * cgraph.h (node_frequency): New enum
16317 (struct cgraph_node): Add.
16318 * final.c (rest_of_clean_state): Update.
16319 * lto-cgraph.c (lto_output_node): Output node frequency.
16320 (input_overwrite_node): Input node frequency.
16321 * tre-ssa-loop-ivopts (computation_cost): Update.
16322 * lto-streamer-out.c (output_function): Do not output function
16323 frequency.
16324 * predict.c (maybe_hot_frequency_p): Update and handle functions
16325 executed once.
16326 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
16327 attribute lookup.
16328 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
16329 (compute_function_frequency): Set noreturn functions to be executed
16330 once.
16331 (choose_function_section): Update.
16332 * lto-streamer-in.c (input_function): Do not input function frequency.
16333 * function.c (allocate_struct_function): Do not initialize function
16334 frequency.
16335 * function.h (function_frequency): Remove.
16336 (struct function): Remove function frequency.
16337 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
16338 (try_update): Update.
16339 * tree-inline.c (initialize_cfun): Do not update function frequency.
16340 * passes.c (pass_init_dump_file): Update.
16341 * i386.c (ix86_compute_frame_layout): Update.
16342 (ix86_pad_returns): Update.
16343
16344 2010-04-26 Jie Zhang <jie@codesourcery.com>
16345
16346 PR tree-optimization/43833
16347 * tree-vrp.c (range_int_cst_p): New.
16348 (range_int_cst_singleton_p): New.
16349 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
16350 when both operands are constants. Use range_int_cst_p in
16351 BIT_IOR_EXPR case.
16352
16353 2010-04-26 Jan Hubicka <jh@suse.cz>
16354
16355 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
16356
16357 2010-04-26 Richard Guenther <rguenther@suse.de>
16358
16359 PR lto/43080
16360 * gimple.c (gimple_decl_printable_name): Deal gracefully
16361 with a NULL DECL_NAME.
16362
16363 2010-04-26 Richard Guenther <rguenther@suse.de>
16364
16365 PR lto/42425
16366 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
16367 if emitting debug information and it is either a function
16368 or a namespace decl.
16369
16370 2010-04-26 Ira Rosen <irar@il.ibm.com>
16371
16372 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
16373 determine if the statement is vectorizable, and a macro to access it.
16374 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16375 Skip statements that can't be vectorized. If the analysis fails,
16376 mark the statement as unvectorizable if vectorizing basic block.
16377 (vect_compute_data_refs_alignment): Likewise.
16378 (vect_verify_datarefs_alignment): Skip statements marked as
16379 unvectorizable. Add print.
16380 (vect_analyze_group_access): Skip statements that can't be
16381 vectorized. If the analysis fails, mark the statement as
16382 unvectorizable if vectorizing basic block.
16383 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
16384 * tree-vect-stmts.c (vectorizable_store): Fix the number of
16385 generated stmts for SLP.
16386 (new_stmt_vec_info): Initialize the new field.
16387 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
16388 statements marked as unvectorizable.
16389
16390 2010-04-25 Joseph Myers <joseph@codesourcery.com>
16391
16392 * c-common.c (flag_isoc1x): New.
16393 (flag_isoc99): Update comment.
16394 * c-common.h (flag_isoc1x): New.
16395 (flag_isoc99): Update comment.
16396 * c-cppbuiltin.c (builtin_define_float_constants): Also define
16397 __<type>_DECIMAL_DIG__.
16398 * c-opts.c (set_std_c1x): New.
16399 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
16400 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
16401 * c.opt (-std=c1x, -std=gnu1x): New options.
16402 * doc/cpp.texi: Mention -std=c1x.
16403 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
16404 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
16405 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
16406 * doc/standards.texi: Mention C1X.
16407 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
16408 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
16409 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
16410 Define for C1X.
16411
16412 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
16413
16414 * config/i386/gmon-sol2.c (_mcleanup): Change format string
16415 placeholder from 0x%x to %#x.
16416 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
16417 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
16418 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
16419 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
16420 * config/i386/i386.c (ix86_target_string): Ditto.
16421 (output_pic_addr_const): Ditto.
16422 (print_operand): Ditto.
16423
16424 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
16425
16426 * combine.c (find_split_point): Add third argument. Use it
16427 to find nested multiply-accumulate instructions. Adjust calls.
16428 (try_combine): Adjust call to find_split_point.
16429
16430 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
16431
16432 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
16433
16434 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
16435
16436 PR tree-optimization/41442
16437 * fold-const.c (merge_truthop_with_opposite_arm): New function.
16438 (fold_binary_loc): Call it.
16439
16440 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
16441
16442 * toplev.c (general_init): Set default for fdiagnostics-show-option.
16443 * opts.c (common_handle_option): Allow disabling it.
16444 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
16445
16446 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
16447
16448 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
16449 between modes if both types are integral.
16450
16451 2010-04-23 Richard Guenther <rguenther@suse.de>
16452
16453 PR tree-optimization/43572
16454 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
16455
16456 2010-04-23 Richard Guenther <rguenther@suse.de>
16457
16458 PR lto/43455
16459 * tree-inline.c (tree_can_inline_p): Also check compatibility
16460 of return types.
16461
16462 2010-04-23 Martin Jambor <mjambor@suse.cz>
16463
16464 PR tree-optimization/43846
16465 * tree-sra.c (struct access): New flag grp_assignment_read.
16466 (build_accesses_from_assign): Set grp_assignment_read.
16467 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
16468 (enum mark_read_status): New type.
16469 (analyze_access_subtree): Propagate grp_assignment_read, create
16470 accesses also if both direct_read and root->grp_assignment_read.
16471
16472 2010-04-23 Martin Jambor <mjambor@suse.cz>
16473
16474 PR middle-end/43835
16475 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
16476 function does not have type attributes.
16477
16478 2010-04-23 Richard Guenther <rguenther@suse.de>
16479
16480 PR lto/42653
16481 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
16482 of FUNCTION_DECLs.
16483
16484 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
16485
16486 * sese.h (create_if_region_on_edge): Remove.
16487
16488 * sese.c (create_if_region_on_edge): Make static.
16489
16490 * tree-inline.c: Do not include ggc.h.
16491
16492 * expr.c: Do not include ggc.h.
16493
16494 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
16495 dependencies.
16496
16497 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
16498
16499 PR target/43744
16500 * config/sh/sh.c (find_barrier): Don't emit a constant pool
16501 in the middle of insns for casesi_worker_2.
16502
16503 2010-04-22 David Edelsohn <edelsohn@gnu.org>
16504
16505 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
16506
16507 2010-04-22 Ira Rosen <irar@il.ibm.com>
16508
16509 PR tree-optimization/43842
16510 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
16511 loop unrolling in update of exit phis. Fix comment.
16512 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
16513 least two reduction statements in the loop before starting SLP
16514 analysis.
16515
16516 2010-04-22 Nick Clifton <nickc@redhat.com>
16517
16518 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
16519
16520 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
16521
16522 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
16523 to simplify a + ~a.
16524
16525 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
16526
16527 * tree-parloops.c (loop_parallel_p): New argument
16528 parloop_obstack. Pass it down.
16529 (parallelize_loops): New variable parloop_obstack. Initialize it,
16530 pass it down, free it.
16531
16532 * tree-loop-linear.c (linear_transform_loops): Pass down
16533 lambda_obstack.
16534
16535 * tree-data-ref.h (lambda_compute_access_matrices): New argument
16536 of type struct obstack *.
16537
16538 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
16539 scratch_obstack. Initialize it, pass down, free it.
16540
16541 * lambda.h (lambda_loop_new): Remove.
16542 (lambda_matrix_new, lambda_matrix_inverse)
16543 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
16544 argument of type struct obstack *.
16545
16546 * lambda-trans.c (lambda_trans_matrix_new): New argument
16547 lambda_obstack. Pass it down, use obstack allocation for ret.
16548 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
16549 it down.
16550
16551 * lambda-mat.c (lambda_matrix_get_column)
16552 (lambda_matrix_project_to_null): Remove.
16553 (lambda_matrix_new): New argument lambda_obstack. Use obstack
16554 allocation for mat.
16555 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
16556 lambda_obstack.
16557
16558 * lambda-code.c (lambda_loop_new): New function.
16559 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
16560 (lambda_compute_auxillary_space, lambda_compute_target_space)
16561 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
16562 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
16563 (build_access_matrix): New argument lambda_obstack. Use obstack
16564 allocation for am.
16565 (lambda_compute_step_signs, lambda_compute_access_matrices): New
16566 argument lambda_obstack. Pass it down.
16567
16568 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
16569
16570 * optabs.h (expand_widening_mult): Declare.
16571
16572 2010-04-22 Richard Guenther <rguenther@suse.de>
16573
16574 PR tree-optimization/43845
16575 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
16576 lookup the CALL_EXPR function and arguments.
16577
16578 2010-04-22 Nick Clifton <nickc@redhat.com>
16579
16580 * config/stormy16/stormy16.c
16581 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
16582 * config/stormy16/stormy16.h: Tidy up formatting.
16583 (DONT_USE_BUILTIN_SETJMP): Remove definition.
16584 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
16585 (ineqbranchsi): Delete pattern.
16586 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
16587 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
16588 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
16589 stormy16-lib2-ucmpsi2.c.
16590
16591 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
16592
16593 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
16594 df_simulate_find_noclobber_defs as appropriate. Keep track of an
16595 extra set merge_set_noclobber, and use it to relax the final test
16596 slightly.
16597 * df.h (df_simulate_find_noclobber_defs): Declare.
16598 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
16599 conditional defs.
16600 (df_simulate_find_noclobber_defs): New function.
16601
16602 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
16603
16604 * config/i386/i386.md: Use {} around multi-line preparation statements.
16605
16606 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
16607
16608 * c-tree.h (push_init_level, pop_init_level, set_init_index)
16609 (process_init_element): New argument of type struct obstack *.
16610
16611 * c-typeck.c (push_init_level, pop_init_level, set_designator)
16612 (set_init_index, set_init_label, set_nonincremental_init)
16613 (set_nonincremental_init_from_string, find_init_member)
16614 (output_init_element, output_pending_init_elements)
16615 (process_init_element): New argument braced_init_obstack. Pass it
16616 down.
16617 (push_range_stack, add_pending_init): New argument
16618 braced_init_obstack. Use obstack allocation.
16619
16620 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
16621 braced_init_obstack. Pass it down.
16622 (c_parser_braced_init): New variables ret, braced_init_obstack.
16623 Initialize obstack, pass it down and finally free it.
16624
16625 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
16626
16627 PR middle-end/29274
16628 * tree-pass.h (pass_optimize_widening_mul): Declare.
16629 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
16630 gate_optimize_widening_mul): New static functions.
16631 (pass_optimize_widening_mul): New.
16632 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
16633 <case MULT_EXPR>: Remove support for widening multiplies.
16634 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
16635 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
16636 simplify_gen_unary rather than directly building extensions.
16637 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
16638 WIDEN_MULT_EXPR.
16639 * expmed.c (expand_widening_mult): New function.
16640 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
16641
16642 2010-04-21 Jan Hubicka <jh@suse.cz>
16643
16644 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
16645 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
16646 * lto-wpa-fixup.c: Remove.
16647 * Makefile.in (lto-wpa-fixup.o): Remove.
16648 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
16649 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
16650 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
16651
16652 2010-04-21 Jan Hubicka <jh@suse.cz>
16653
16654 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
16655 add write_optimization_summary, read_optimization_summary.
16656 (ipa_write_summaries_of_cgraph_node_set): Remove.
16657 (ipa_write_optimization_summaries): Declare.
16658 (ipa_read_optimization_summaries): Declare.
16659 * ipa-cp.c (pass_ipa_cp): Update.
16660 * ipa-reference.c (pass_ipa_reference): Update.
16661 * ipa-pure-const.c (pass_ipa_pure_const): Update.
16662 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
16663 Update.
16664 * ipa-inline.c (pass_ipa_inline): Update.
16665 * ipa.c (pass_ipa_whole_program): Update.
16666 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
16667 * passes.c (ipa_write_summaries_1): Do not test wpa.
16668 (ipa_write_optimization_summaries_1): New.
16669 (ipa_write_optimization_summaries): New.
16670 (ipa_read_summaries): Do not test ltrans.
16671 (ipa_read_optimization_summaries_1): New.
16672 (ipa_read_optimization_summaries): New.
16673
16674 2010-04-21 Jan Hubicka <jh@suse.cz>
16675
16676 * lto-cgraph.c (lto_output_node): Do not output comdat groups
16677 for boundary nodes.
16678 (output_cgraph): Do not arrange comdat groups for boundary nodes.
16679
16680 2010-04-21 Jakub Jelinek <jakub@redhat.com>
16681
16682 PR debug/40040
16683 * dwarf2out.c (add_name_and_src_coords_attributes): Add
16684 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
16685
16686 2010-04-21 Jan Hubicka <jh@suse.cz>
16687
16688 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
16689
16690 2010-04-21 Jan Hubicka <jh@suse.cz>
16691
16692 * varpool.c (decide_is_variable_needed): Variable is always needed
16693 during ltrans.
16694
16695 2010-04-21 Jan Hubicka <jh@suse.cz>
16696
16697 * opts.c (decode_options): Enable pure-const pass for whopr.
16698
16699 2010-04-21 Jan Hubicka <jh@suse.cz>
16700
16701 * cgraph.c (dump_cgraph_node): Dump also assembler name.
16702 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
16703 at WPA dumping.
16704 (cgraph_decide_inlining): Do not expect callee to be removed in all
16705 cases.
16706
16707 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
16708
16709 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
16710
16711 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
16712
16713 * config/i386/i386.md (x86_shrd): Add athlon_decode and
16714 amdfam10_decode attributes.
16715
16716 2010-04-21 Jakub Jelinek <jakub@redhat.com>
16717
16718 PR middle-end/43570
16719 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
16720 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
16721 (lower_copyprivate_clauses): Use private var in outer
16722 context instead of original var. Make sure the types
16723 are correct for VLAs.
16724
16725 2010-04-21 Richard Guenther <rguenther@suse.de>
16726
16727 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
16728 to non-pointer objects.
16729
16730 2010-04-21 Jakub Jelinek <jakub@redhat.com>
16731
16732 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
16733 last chain entry if it starts with the still current label.
16734 (add_location_or_const_value_attribute): Check that
16735 loc_list->first->next is NULL instead of comparing ->first with ->last.
16736 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
16737 to add_var_loc_to_decl.
16738
16739 * dwarf2out.c (output_call_frame_info): For dw_cie_version
16740 >= 4 add also address size and segment size fields into CIE header.
16741
16742 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
16743 long as address size is the same as sizeof (void *) and
16744 segment size is 0.
16745 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
16746 address size or segment size is unexpected, return DW_EH_PE_omit.
16747 (classify_object_over_fdes): If get_cie_encoding returned
16748 DW_EH_PE_omit, return -1.
16749 (init_object): If classify_object_over_fdes returned -1,
16750 pretend there were no FDEs at all.
16751
16752 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
16753
16754 * config/i386/i386.md (bswap<mode>2): Macroize expander from
16755 bswap{si,di}2 using SWI48 mode iterator.
16756 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
16757 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
16758 set modrm attribute of bswap insn to 0 and remove length attribute.
16759 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
16760 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
16761 set mode attribute to <MODE> and remove length attribute.
16762
16763 2010-04-20 James E. Wilson <wilson@codesourcery.com>
16764
16765 PR rtl-optimization/43520
16766 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
16767 zero available registers.
16768
16769 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16770
16771 * builtins.c (fold_builtin_cproj): Fold more cases.
16772
16773 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16774
16775 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
16776 (fold_builtin_1): Fold builtin cproj.
16777 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
16778 Use ATTR_CONST_NOTHROW_LIST.
16779
16780 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
16781
16782 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
16783 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
16784 ffsi2_no_cmove for !TARGET_CMOVE.
16785 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
16786 (ffssi2): Remove expander.
16787 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
16788 mode iterator.
16789 (ctz<mode>2): Ditto from ctz{si,di}2.
16790 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
16791 mode iterator.
16792 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
16793 mode iterator.
16794
16795 2010-04-20 Jakub Jelinek <jakub@redhat.com>
16796
16797 * dwarf2out.c (AT_linkage_name): Define.
16798 (clone_as_declaration): Handle DW_AT_linkage_name.
16799 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
16800 of DW_AT_MIPS_linkage_name.
16801 (move_linkage_attr): Likewise.
16802 (dwarf2out_finish): Likewise.
16803
16804 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
16805
16806 PR middle-end/41952
16807 * fold-const.c (fold_comparison): New folding rule.
16808
16809 2010-04-20 Anatoly Sokolov <aesok@post.ru>
16810
16811 * double-int.h (double_int_setbit): Declare.
16812 * double-int.c (double_int_setbit): New function.
16813 * rtl.h (immed_double_int_const): Declare.
16814 * emit-rtl.c (immed_double_int_const): New function.
16815 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
16816 and immed_double_int_const functions.
16817 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
16818 expand_copysign_bit): (Ditto.).
16819 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
16820 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
16821 * dojump.c (prefer_and_bit_test): (Ditto.).
16822 * expr.c (convert_modes, reduce_to_bit_field_precision,
16823 const_vector_from_tree): (Ditto.).
16824 * expmed.c (mask_rtx, lshift_value): (Ditto.).
16825
16826 2010-04-20 Jan Hubicka <jh@suse.cz>
16827
16828 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
16829 (dump_cgraph_node): Dump new flags.
16830 * cgraph.h (struct cgraph_node): Add flags
16831 reachable_from_other_partition and in_other_partition.
16832 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
16833 other partition can not be removed.
16834 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
16835 the other partition must be output; silence sanity checking on
16836 leaking functions bodies from other paritition.
16837 * lto-cgraph.c (reachable_from_other_partition_p): New function.
16838 (lto_output_node): Output new flags; do not sanity check that inline
16839 clones are output; drop lto_forced_extern_inline_p code; do not mock
16840 visibility flags at partition boundaries.
16841 (add_node_to): New function.
16842 (output_cgraph): Use it to sort functions so masters appear before
16843 clones.
16844 (input_overwrite_node): Input new flags.
16845 * passes.c (ipa_write_summaries): Do not call
16846 lto_new_extern_inline_states.
16847 * lto-section-out.c (forced_extern_inline,
16848 lto_new_extern_inline_states lto_delete_extern_inline_states,
16849 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
16850 * lto-streamer.h (lto_new_extern_inline_states,
16851 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
16852 lto_forced_extern_inline_p): Kill.
16853
16854 2010-04-20 Richard Guenther <rguenther@suse.de>
16855
16856 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
16857 from vars that can have pointers.
16858 (process_constraint): Dump useless constraints.
16859
16860 2010-04-20 Richard Guenther <rguenther@suse.de>
16861
16862 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
16863 (dump_sa_points_to_info): Remove asserts.
16864 (init_base_vars): nothing_id isn't an escape point nor does it
16865 have pointers.
16866
16867 2010-04-20 Jakub Jelinek <jakub@redhat.com>
16868
16869 * tree.h (TYPE_REF_IS_RVALUE): Define.
16870 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
16871 should_move_die_to_comdat, prune_unused_types_walk): Handle
16872 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
16873 (modified_type_die, gen_reference_type_die): Emit
16874 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
16875 if TYPE_REF_IS_RVALUE and -gdwarf-4.
16876
16877 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16878
16879 PR target/43635
16880 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
16881 calls for -fpic -m31 if they have been sibcall optimized.
16882
16883 2010-04-19 James E. Wilson <wilson@codesourcery.com>
16884
16885 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
16886 ar.lc fixed and call-used.
16887
16888 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
16889
16890 2010-04-19 Jan Hubicka <jh@suse.cz>
16891
16892 * opts.c (decode_options): Disable whpr incompatible passes.
16893 * lto/lto.c (lto_1_to_1_map): Skip clones.
16894 (read_cgraph_and_symbols): Do not mark everything as needed.
16895 (do_whole_program_analysis): Do map only after optimizing;
16896 set proper cgraph_state; use passmanager.
16897
16898 2010-04-19 DJ Delorie <dj@redhat.com>
16899
16900 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
16901 POINTER_PLUS_EXPR and fix them.
16902
16903 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
16904
16905 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
16906 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
16907 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
16908 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
16909 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
16910 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
16911 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
16912 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
16913 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
16914 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
16915 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
16916
16917 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
16918
16919 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
16920 (check_cond_move_block): Likewise.
16921 (cond_move_process_if_block): Likewise.
16922 (noce_find_if_block): Improve formatting.
16923 (find_if_header): Pass 0 to memset and tweak conditions.
16924 (cond_exec_find_if_block): Fix long lines and tweak conditions.
16925
16926 2010-04-19 Jakub Jelinek <jakub@redhat.com>
16927
16928 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
16929 for -gdwarf-4.
16930
16931 PR middle-end/43337
16932 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
16933 with non-local decl doesn't need chain.
16934
16935 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
16936
16937 * ira-color.c (allocno_reload_assign): Avoid accumulating
16938 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
16939
16940 2010-04-19 Martin Jambor <mjambor@suse.cz>
16941
16942 * gimple.h (create_tmp_reg): Declare.
16943 * gimplify.c (create_tmp_reg): New function.
16944 (gimplify_return_expr): Use create_tmp_reg.
16945 (gimplify_omp_atomic): Likewise.
16946 (gimple_regimplify_operands): Likewise.
16947 * tree-dfa.c (make_rename_temp): Likewise.
16948 * tree-predcom.c (predcom_tmp_var): Likewise.
16949 (reassociate_to_the_same_stmt): Likewise.
16950 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
16951 (get_replaced_param_substitute): Likewise.
16952 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
16953 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
16954 * tree-ssa-pre.c (get_representative_for): Likewise.
16955 (create_expression_by_pieces): Likewise.
16956 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
16957 (create_tailcall_accumulator): Likewise.
16958
16959 2010-04-19 Martin Jambor <mjambor@suse.cz>
16960
16961 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
16962 new_stmt.
16963 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
16964
16965 2010-04-19 Richard Guenther <rguenther@suse.de>
16966
16967 PR tree-optimization/43796
16968 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
16969 from SCEV in the lattice.
16970 (vrp_visit_phi_node): Dump change.
16971
16972 2010-04-19 Richard Guenther <rguenther@suse.de>
16973
16974 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
16975 * configure: Re-generated.
16976
16977 2010-04-19 Richard Guenther <rguenther@suse.de>
16978
16979 PR tree-optimization/43783
16980 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
16981 constant ARRAY_REF operands two and three if possible.
16982
16983 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
16984
16985 PR target/43766
16986 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
16987
16988 2010-04-19 Jie Zhang <jie@codesourcery.com>
16989
16990 PR target/43662
16991 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
16992
16993 2010-04-19 Ira Rosen <irar@il.ibm.com>
16994
16995 PR tree-optimization/37027
16996 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
16997 and macro to access it.
16998 (vectorizable_reduction): Add argument.
16999 (vect_get_slp_defs): Likewise.
17000 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
17001 statements for possible use in SLP.
17002 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
17003 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
17004 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
17005 add new argument.
17006 (vectorizable_reduction): Likewise.
17007 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
17008 vect_get_slp_defs.
17009 (vectorizable_type_demotion, vectorizable_type_promotion,
17010 vectorizable_store): Likewise.
17011 (vect_analyze_stmt): Update call to vectorizable_reduction.
17012 (vect_transform_stmt): Likewise.
17013 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
17014 (vect_build_slp_tree): Fix indentation. Check that there are no loads
17015 from different interleaving chains in same node.
17016 (vect_slp_rearrange_stmts): New function.
17017 (vect_supported_load_permutation_p): Allow load permutations for
17018 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
17019 inside SLP nodes if necessary.
17020 (vect_analyze_slp_instance): Handle reductions.
17021 (vect_analyze_slp): Try to build SLP instances originating from groups
17022 of reductions.
17023 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
17024 (vect_get_constant_vectors): Create initial vectors for reductions
17025 according to reduction code. Add new argument.
17026 (vect_get_slp_defs): Add new argument, pass it to
17027 vect_get_constant_vectors.
17028 (vect_schedule_slp_instance): Remove SLP tree root statements.
17029
17030 2010-04-19 Jakub Jelinek <jakub@redhat.com>
17031
17032 * tree.h (ENUM_IS_SCOPED): Define.
17033 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
17034 for ENUM_IS_SCOPED enums.
17035
17036 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
17037
17038 * fold-const.c (fold_comparison): Use ssizetype.
17039 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
17040 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
17041 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
17042 * tree-object-size.c (compute_object_sizes): Use size_type_node.
17043
17044 * tree.h (initialize_sizetypes): Remove parameter.
17045 (build_common_tree_nodes): Remove second parameter.
17046 * stor-layout.c (initialize_sizetypes): Remove parameter.
17047 Always create an unsigned type.
17048 (set_sizetype): Assert that the passed type is unsigned and simplify.
17049 * tree.c (build_common_tree_nodes): Remove second parameter.
17050 Adjust call to initialize_sizetypes.
17051 * c-decl.c (c_init_decl_processing): Remove second argument in call to
17052 build_common_tree_nodes.
17053
17054 2010-04-18 Matthias Klose <doko@ubuntu.com>
17055
17056 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
17057
17058 2010-04-18 Ira Rosen <irar@il.ibm.com>
17059
17060 PR tree-optimization/43771
17061 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
17062 load permutation doesn't have gaps.
17063
17064 2010-04-18 Jan Hubicka <jh@suse.cz>
17065
17066 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
17067 (sse_prologue_save_insn expander): Use new pattern.
17068 (sse_prologue_save_insn1): New pattern and splitter.
17069 (sse_prologue_save_insn): Update to deal also with 64bit aligned
17070 blocks.
17071 * i386.c (setup_incoming_varargs_64): Do not compute jump
17072 destination here.
17073 (ix86_gimplify_va_arg): Update alignment needed.
17074 (ix86_local_alignment): Do not align all local arrays to 128bit.
17075
17076 2010-04-17 Jan Hubicka <jh@suse.cz>
17077
17078 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
17079
17080 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
17081
17082 * arm.md (negdi2): Remove redundant code to force values into a
17083 register.
17084
17085 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
17086
17087 * arm/bpabi.S: Add EABI alignment attributes to objects.
17088 * arm/bpabi-v6m.S: Likewise.
17089 * arm/crti.asm: Likewise.
17090 * arm/crtn.asm: Likewise.
17091 * arm/lib1funcs.asm: Likewise.
17092 * arm/libunwind.S: Likewise.
17093
17094 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
17095
17096 * arm-protos.h (tune_params): New structure.
17097 * arm.c (current_tune): New variable.
17098 (arm_constant_limit): Delete.
17099 (struct processors): Add pointer to the tune parameters.
17100 (arm_slowmul_tune): New tuning option.
17101 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
17102 (all_cores): Adjust to pick up the tuning model.
17103 (arm_constant_limit): New function.
17104 (arm_override_options): Select the appropriate tuning model. Delete
17105 initialization of arm_const_limit.
17106 (arm_split_constant): Use the new constant-limit model.
17107 (arm_rtx_costs): Pick up the current tuning model.
17108 * arm.md (is_strongarm, is_xscale): Delete.
17109 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
17110 for Xscale variant architectures.
17111 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
17112
17113 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17114
17115 * config/arm/arm.c (arm_gen_constant): Remove unused variable
17116 can_shift.
17117 (arm_rtx_costs_1): Remove unused variable extra_cost.
17118 (arm_unwind_emit_set): Use variable offset.
17119 (thumb1_output_casesi): Remove unused variable flags.
17120
17121 2010-04-16 Jeff Law <law@redhat.com>
17122
17123 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
17124 needing assignment rather than doing a two-phase assignment. Remove
17125 unused variable 'm'.
17126
17127 2010-04-16 Jakub Jelinek <jakub@redhat.com>
17128
17129 PR bootstrap/43767
17130 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
17131
17132 2010-04-16 Doug Kwan <dougkwan@google.com>
17133
17134 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
17135 (next_operand_entry_id): New static variable.
17136 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
17137 (add_to_ops_vec): Assigned unique ID to operand entry.
17138 (struct oecount_s): New field ID.
17139 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
17140 (undistribute_ops_list): Assign unique IDs to oecounts.
17141 (init_reassoc): reset next_operand_entry_id.
17142
17143 2010-04-16 Doug Kwan <dougkwan@google.com>
17144
17145 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
17146 missing left parenthesis.
17147
17148 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
17149
17150 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
17151 *btdi_rex64 using SWI48 mode iterator.
17152 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
17153 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
17154 *jcc_btdi_mask_rex64.
17155
17156 2010-04-16 Anatoly Sokolov <aesok@post.ru>
17157
17158 * double-int.h (tree_to_double_int): Convert to macro.
17159 * double-int.c (tree_to_double_int): Remove.
17160
17161 2010-04-16 Jakub Jelinek <jakub@redhat.com>
17162
17163 PR debug/43762
17164 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
17165 with want_address 2 and in case a single element list might be
17166 possible, call it again with want_address 0.
17167
17168 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
17169
17170 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
17171 case 'W' print operands for HI mode.
17172 * config/h8300/h8300.h (Y0, Y2) : New constraints.
17173 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
17174 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
17175 * config/h8300/predicate.md (bit_register_indirect_operand): New.
17176
17177 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
17178
17179 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
17180 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
17181 #xx:3 and #xx:4 mode.
17182
17183 * config/h8300/h8300.md (inverted load with HImode dest): Add
17184 support for H8300SX.
17185
17186 * config/h8300/predicate.md (bit_operand): Allow immediate values that
17187 satisfy 'U' constraint.
17188
17189 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17190
17191 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
17192 * configure: Regenerate.
17193 * config.in: Regenerate.
17194 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
17195 works.
17196
17197 2010-04-16 Richard Guenther <rguenther@suse.de>
17198
17199 * tree.h (struct tree_decl_minimal): Move pt_uid ...
17200 (struct tree_decl_common): ... here.
17201 (DECL_PT_UID): Adjust.
17202 (SET_DECL_PT_UID): Likewise.
17203 (DECL_PT_UID_SET_P): Likewise.
17204
17205 2010-04-16 Richard Guenther <rguenther@suse.de>
17206
17207 PR tree-optimization/43572
17208 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
17209 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
17210 * tree-flow.h (is_call_clobbered): Remove.
17211 * tree-flow-inline.h (is_call_clobbered): Likewise.
17212 * tree-dfa.c (dump_variable): Do not dump call clobber state.
17213 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
17214 (execute_return_slot_opt): Adjust.
17215 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
17216 check for call clobbered vars here.
17217 (find_tail_calls): Move tailcall verification to the
17218 proper place.
17219
17220 2010-04-16 Diego Novillo <dnovillo@google.com>
17221
17222 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
17223
17224 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
17225
17226 PR target/40603
17227 * config/arm/arm.md (cbranchqi4): New pattern.
17228 * config/arm/predicates.md (const0_operand,
17229 cbranchqi4_comparison_operator): New predicates.
17230
17231 2010-04-16 Richard Guenther <rguenther@suse.de>
17232
17233 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
17234 (dump_gimple_stmt): Likewise.
17235
17236 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
17237
17238 * recog.h (struct recog_data): New field is_operator.
17239 (struct insn_operand_data): New field is_operator.
17240 * recog.c (extract_insn): Set recog_data.is_operator.
17241 * genoutput.c (output_operand_data): Emit code to set the
17242 is_operator field.
17243 * reload.c (find_reloads): Use it rather than testing for an
17244 empty constraint string.
17245
17246 PR target/41514
17247 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
17248 If the previous insn is a cbranchsi4_insn with the same arguments,
17249 omit the compare instruction.
17250
17251 * config/arm/arm.md (addsi3_cbranch): If destination is a high
17252 register, inputs must be low registers and we need a low register
17253 scratch. Handle alternative 2 like alternative 3.
17254
17255 2010-04-16 Jakub Jelinek <jakub@redhat.com>
17256
17257 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
17258 don't call get_addr on both. If one expression is a VALUE and
17259 the other a REG, check VALUE's locs if the REG isn't among them.
17260
17261 2010-04-16 Christian Bruel <christian.bruel@st.com>
17262
17263 * config/sh/sh.h (sh_frame_pointer_required): New function.
17264 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
17265 (flag_omit_frame_pointer) Set.
17266 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
17267 (rounded_frame_size): Adjust size with outgoing_args_size.
17268 (sh_set_return_address): Must return from stack pointer.
17269 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
17270 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
17271 (ACCUMULATE_OUTGOING_ARGS): Define.
17272 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
17273 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
17274
17275 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
17276
17277 PR target/43471
17278 * config/sh/sh.c (sh_legitimize_reload_address): Use
17279 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
17280 Remove a unneeded check for offset_base.
17281
17282 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
17283
17284 * configure: Regenerated.
17285
17286 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17287
17288 * config/s390/s390.c (s390_call_save_register_used): Switch back
17289 to HARD_REGNO_NREGS.
17290
17291 2010-04-15 Richard Guenther <rguenther@suse.de>
17292
17293 * alias.c (alias_set_subset_of): Handle alias-set zero
17294 child properly.
17295
17296 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
17297 Julian Brown <julian@codesourcery.com>
17298
17299 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
17300 alternatives according to use of high and low regs.
17301 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17302 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
17303 optimizing for size on Thumb-2.
17304
17305 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
17306
17307 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
17308
17309 2010-04-15 Richard Guenther <rguenther@suse.de>
17310
17311 * tree-ssa-structalias.c (struct variable_info): Add
17312 is_fn_info flag.
17313 (new_var_info): Initialize it.
17314 (dump_constraints): Support printing last added constraints.
17315 (debug_constraints): Adjust.
17316 (dump_constraint_graph): Likewise.
17317 (make_heapvar_for): Check for NULL cfun.
17318 (get_function_part_constraint): New function.
17319 (get_fi_for_callee): Likewise.
17320 (find_func_aliases): Properly implement IPA PTA constraints.
17321 (process_ipa_clobber): New function.
17322 (find_func_clobbers): Likewise.
17323 (insert_into_field_list_sorted): Remove.
17324 (create_function_info_for): Properly allocate vars for IPA mode.
17325 Do not use insert_into_field_list_sorted.
17326 (create_variable_info_for): Properly generate constraints for
17327 global vars in IPA mode.
17328 (dump_solution_for_var): Always dump the solution.
17329 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
17330 (find_what_var_points_to): Adjust.
17331 (pt_solution_set): Change.
17332 (pt_solution_ior_into): New function.
17333 (pt_solution_empty_p): Export.
17334 (pt_solution_includes_global): Adjust.
17335 (pt_solution_includes_1): Likewise.
17336 (pt_solutions_intersect_1): Likewise.
17337 (dump_sa_points_to_info): Check some invariants.
17338 (solve_constraints): Move constraint dumping ...
17339 (compute_points_to_sets): ... here.
17340 (ipa_pta_execute): ... and here.
17341 (compute_may_aliases): Do not re-compute points-to info
17342 locally if IPA info is available.
17343 (ipa_escaped_pt): New global var.
17344 (ipa_pta_execute): Properly implement IPA PTA.
17345 * tree-into-ssa.c (dump_decl_set): Support dumping
17346 decls not in referenced-vars.
17347 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
17348 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
17349 (dump_points_to_solution): Likewise.
17350 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
17351 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
17352 (remap_gimple_stmt): Reset call clobber/use information if necessary.
17353 (copy_decl_to_var): Copy DECL_PT_UID.
17354 (copy_result_decl_to_var): Likewise.
17355 * tree.c (make_node_stat): Initialize DECL_PT_UID.
17356 (copy_node_stat): Copy it.
17357 * tree.h (DECL_PT_UID): New macro.
17358 (SET_DECL_PT_UID): Likewise.
17359 (DECL_PT_UID_SET_P): Likewise.
17360 (struct tree_decl_minimal): Add pt_uid member.
17361 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
17362 (pt_solution_empty_p): Declare.
17363 (pt_solution_set): Adjust.
17364 (ipa_escaped_pt): Declare.
17365 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
17366 * gimple-pretty-print.c (pp_points_to_solution): New function.
17367 (dump_gimple_call): Dump call clobber/use information.
17368 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
17369 * tree-pass.h (TDF_ALIAS): New dump option.
17370 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
17371 * doc/invoke.texi (-fipa-pta): Update documentation.
17372
17373 2010-04-15 Richard Guenther <rguenther@suse.de>
17374
17375 * Makefile.in (OBJS-common): Add gimple-fold.o.
17376 (gimple-fold.o): New rule.
17377 * tree.h (maybe_fold_offset_to_reference,
17378 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
17379 prototypes ...
17380 * gimple.h: ... here.
17381 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
17382 may_propagate_address_into_dereference): Move prototypes ...
17383 * gimple.h: ... here.
17384 * tree-ssa-ccp.c (get_symbol_constant_value,
17385 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
17386 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
17387 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
17388 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
17389 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
17390 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
17391 gimplify_and_update_call_from_tree): Move ...
17392 * gimple-fold.c: ... here. New file.
17393 (ccp_fold_builtin): Rename to ...
17394 (gimple_fold_builtin): ... this.
17395 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
17396
17397 2010-04-15 Richard Guenther <rguenther@suse.de>
17398
17399 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
17400 fit_double_type, force_fit_type_double, add_double_with_sign,
17401 neg_double, mul_double_with_sign, lshift_double, rshift_double,
17402 lrotate_double, rrotate_double, div_and_round_double): Move ...
17403 * double-int.c: ... here.
17404 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
17405 add_double, neg_double, mul_double_with_sign, mul_double,
17406 lshift_double, rshift_double, lrotate_double, rrotate_double,
17407 div_and_round_double): Move prototypes ...
17408 * double-int.h: ... here.
17409
17410 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
17411
17412 PR target/43742
17413 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
17414 matching constraints to ensure inputs match the output.
17415
17416 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
17417
17418 PR target/43742
17419 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
17420 in an input-only operand.
17421
17422 2010-04-15 Anatoly Sokolov <aesok@post.ru>
17423
17424 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
17425 (double_int_not, double_int_lshift, double_int_rshift): Declare.
17426 (double_int_negative_p): Convert to static inline function.
17427 * double-int.c (double_int_lshift, double_int_lshift): New functions.
17428 (double_int_negative_p): Remove.
17429 * tree.h (lshift_double, rshift_double):
17430 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
17431 * fold-const.c (fold_convert_const_int_from_real,
17432 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
17433 (lshift_double): Change type of arith argument to bool.
17434 (rshift_double): Change type of arith argument to bool. Correct
17435 comment.
17436 * expmed.c (mask_rtx, lshift_value): (Ditto.).
17437
17438 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
17439
17440 PR target/21803
17441 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
17442 at the start and end of the then/else blocks, and omit them from the
17443 conversion.
17444 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
17445 argument; all callers changed. Pass zero to old_insns_match_p instead.
17446 (flow_find_head_matching_sequence): New function.
17447 (old_insns_match_p): Check REG_EH_REGION notes for calls.
17448 * basic-block.h (flow_find_cross_jump,
17449 flow_find_head_matching_sequence): Declare functions.
17450
17451 2010-04-14 Jason Merrill <jason@redhat.com>
17452
17453 PR c++/36625
17454 * c-common.c (attribute_takes_identifier_p): New fn.
17455 * c-common.h: Declare it.
17456
17457 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
17458
17459 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
17460 splitter condition.
17461 (*udivmod<mode>4): Ditto.
17462
17463 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
17464
17465 * config/i386/i386.md (maxmin_int): Rename code attribute from
17466 maxminiprefix and update all users.
17467 (maxmin_float): Ditto from maxminfprefix.
17468 (logic): Ditto from logicprefix.
17469 (absneg_mnemonic): Ditto from absnegprefix.
17470 * config/i386/mmx.md: Update all users of maxminiprefix,
17471 maxminfprefix and logicprefix for rename.
17472 * config/i386/sse.md: Ditto.
17473 * config/i386/sync.md (sync_<code><mode>): Update for
17474 logicprefix rename.
17475
17476 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
17477
17478 PR 42966
17479 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
17480 warnings converted to errors.
17481
17482 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
17483
17484 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
17485 used insn_type variable.
17486 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
17487 to avoid set-but-not-used warning.
17488
17489 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
17490
17491 * df-core.c (df_ref_debug): Change format string placeholder
17492 from 0x%x to %#x.
17493 * dwarf2asm.c (dw2_asm_output_data_raw,
17494 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
17495 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
17496 * dwarf2out.c (output_cfi, output_cfi_directive,
17497 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
17498 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
17499 Ditto.
17500 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
17501 * print-rtl.c (print_rtx): Ditto.
17502
17503 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
17504
17505 PR middle-end/42694
17506 * builtins.c (expand_builtin_pow_root): New function to expand pow
17507 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
17508 series of sqrt and cbrt calls under -ffast-math.
17509 (expand_builtin_pow): Call it.
17510
17511 2010-04-14 Michael Matz <matz@suse.de>
17512
17513 PR tree-optimization/42963
17514 * tree-cfg.c (touched_switch_bbs): New static variable.
17515 (group_case_labels_stmt): New function broken out from ...
17516 (group_case_labels): ... here, use the above.
17517 (start_recording_case_labels): Allocate touched_switch_bbs.
17518 (end_recording_case_labels): Deallocate it, call
17519 group_case_labels_stmt.
17520 (gimple_redirect_edge_and_branch): Remember index of affected BB.
17521
17522 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
17523
17524 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
17525 from insn template.
17526
17527 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
17528
17529 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
17530
17531 2010-04-13 Jan Hubicka <jh@suse.cz>
17532
17533 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
17534 of optimized out static functions.
17535 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
17536 cost computation. Also sanity check for overflows.
17537 (update_caller_keys): Update cgraph_edge_badness call; properly
17538 update fibheap and sanity check that it is up to date.
17539 (add_new_edges_to_heap): Update cgraph_edge_badness.
17540 (cgraph_decide_inlining_of_small_function): Likewise;
17541 add sanity checking that badness in heap is up to date;
17542 improve dumping of reason; Update badness of calls to the
17543 offline copy of function currently inlined; dump badness
17544 of functions not inlined because of unit growth limits.
17545
17546 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
17547
17548 PR middle-end/32628
17549 * c-common.c (pointer_int_sum): Disregard overflow that occured only
17550 because of sign-extension change when converting to sizetype here...
17551 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
17552
17553 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
17554 the folding to constants. Remove redundant final conversion.
17555 (fold_binary) <associate>: Do not associate if the re-association of
17556 constants alone overflows.
17557 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
17558 to the end of the list.
17559 (multiple_of_p) <COND_EXPR>: New case.
17560
17561 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
17562
17563 * opt-functions.awk (opt_sanitized_name): New.
17564 (opt_enum): New.
17565 * optc-gen.awk: Use it
17566 * opth-gen.awk: Use it.
17567
17568 2010-04-13 Martin Jambor <mjambor@suse.cz>
17569
17570 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
17571 (sra_modify_assign): Delete stmts loading dead data even if racc has no
17572 children. Call replace_uses_with_default_def_ssa_name to handle
17573 SSA_NAES on lhs.
17574
17575 2010-04-13 Michael Matz <matz@suse.de>
17576
17577 PR middle-end/43730
17578 * builtins.c (expand_builtin_interclass_mathfn): Also create
17579 a register if the predicate doesn't match.
17580
17581 2010-04-13 Diego Novillo <dnovillo@google.com>
17582
17583 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
17584 * c-pch.c: Include timevar.h.
17585 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
17586 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
17587 * ggc-common.c: Include timevar.h.
17588 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
17589 * timevar.def (TV_PCH_SAVE): Define.
17590 (TV_PCH_CPP_SAVE): Define.
17591 (TV_PCH_PTR_REALLOC): Define.
17592 (TV_PCH_PTR_SORT): Define.
17593 (TV_PCH_RESTORE): Define.
17594 (TV_PCH_CPP_RESTORE): Define.
17595
17596 2010-04-13 Michael Matz <matz@suse.de>
17597
17598 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
17599 into MINUS_EXPRs.
17600 (can_reassociate_p): New function.
17601 (break_up_subtract_bb, reassociate_bb): Use it.
17602
17603 2010-04-13 Richard Guenther <rguenther@suse.de>
17604
17605 PR bootstrap/43737
17606 * builtins.c (c_readstr): Fix assert.
17607
17608 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
17609
17610 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
17611 when generating cltd insn.
17612
17613 (*ashl<mode>3_1): Remove special handling for register operand 2.
17614 (*ashlsi3_1_zext): Ditto.
17615 (*ashlhi3_1): Ditto.
17616 (*ashlhi3_1_lea): Ditto.
17617 (*ashlqi3_1): Ditto.
17618 (*ashlqi3_1_lea): Ditto.
17619 (*<shiftrt_insn><mode>3_1): Ditto.
17620 (*<shiftrt_insn>si3_1_zext): Ditto.
17621 (*<shiftrt_insn>qi3_1_slp): Ditto.
17622 (*<rotate_insn><mode>3_1): Ditto.
17623 (*<rotate_insn>si3_1_zext): Ditto.
17624 (*<rotate_insn>qi3_1_slp): Ditto.
17625
17626 2010-04-13 Richard Guenther <rguenther@suse.de>
17627
17628 * tree-ssa-structalias.c (callused_id): Remove.
17629 (call_stmt_vars): New.
17630 (get_call_vi): Likewise.
17631 (lookup_call_use_vi): Likewise.
17632 (lookup_call_clobber_vi): Likewise.
17633 (get_call_use_vi): Likewise.
17634 (get_call_clobber_vi): Likewise.
17635 (make_transitive_closure_constraints): Likewise.
17636 (handle_const_call): Adjust to do per-call call-used handling.
17637 (handle_pure_call): Likewise.
17638 (find_what_var_points_to): Remove general callused handling.
17639 (init_base_vars): Likewise.
17640 (init_alias_vars): Initialize call_stmt_vars.
17641 (compute_points_to_sets): Process call-used and call-clobbered
17642 vars for call statements.
17643 (delete_points_to_sets): Free call_stmt_vars.
17644
17645 2010-04-13 Richard Guenther <rguenther@suse.de>
17646
17647 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
17648 Only add RW dependence for dependence distance zero.
17649 Adjust maximal vectorization factor according to dependences.
17650 Move alignment handling ...
17651 (vect_find_same_alignment_drs): ... here. New function.
17652 (vect_analyze_data_ref_dependences): Adjust.
17653 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
17654 (vect_analyze_data_refs): Adjust minimal vectorization factor
17655 according to data references.
17656 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
17657 dependences before determining the vectorization factor.
17658 Analyze alignment after determining the vectorization factor.
17659 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
17660 dependences before alignment.
17661 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
17662 Adjust prototype.
17663 (vect_analyze_data_refs): Likewise.
17664 (MAX_VECTORIZATION_FACTOR): New define.
17665
17666 2010-04-13 Duncan Sands <baldrick@free.fr>
17667
17668 * except.h (lang_eh_type_covers): Remove.
17669 * except.c (lang_eh_type_covers): Likewise.
17670
17671 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17672 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17673
17674 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
17675 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
17676 UNITS_PER_LONG where it is ABI relevant.
17677 (s390_return_addr_rtx): Likewise.
17678 (s390_back_chain_rtx): Likewise.
17679 (s390_frame_area): Likewise.
17680 (s390_frame_info): Likewise.
17681 (s390_initial_elimination_offset): Likewise.
17682 (save_gprs): Likewise.
17683 (s390_emit_prologue): Likewise.
17684 (s390_emit_epilogue): Likewise.
17685 (s390_function_arg_advance): Likewise.
17686 (s390_function_arg): Likewise.
17687 (s390_va_start): Likewise.
17688 (s390_gimplify_va_arg): Likewise.
17689 (s390_function_profiler): Likewise.
17690 (s390_optimize_prologue): Likewise.
17691 (s390_rtx_costs): Likewise.
17692 (s390_secondary_reload): Likewise.
17693 (s390_promote_function_mode): Likewise.
17694 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
17695 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
17696 registers available.
17697 (s390_unwind_word_mode): New function.
17698 (s390_function_value): Split 64 bit values into register pair if
17699 used as return value.
17700 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
17701 function call parameters. Handle parallels.
17702 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
17703 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
17704 (DWARF_CIE_DATA_ALIGNMENT): New macro.
17705 (s390_expand_setmem): Remove unused variable src_addr.
17706 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
17707 deal with 64 bit registers.
17708 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
17709 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
17710 (UNITS_PER_LONG): New macro.
17711 * libjava/include/s390-signal.h: Define extended ucontext
17712 structure containing the upper halfs of the 64 bit registers.
17713
17714 2010-04-13 Simon Baldwin <simonb@google.com>
17715
17716 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
17717
17718 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
17719
17720 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
17721 rvalue on the RHS if the LHS is of a non-renamable type.
17722 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
17723
17724 2010-04-13 Matthias Klose <doko@ubuntu.com>
17725
17726 * gcc.c (cc1_options): Handle -iplugindir before processing
17727 the cc1 spec. Only add -iplugindir once.
17728 (cpp_unique_options): Add -iplugindir option if -fplugin* options
17729 found.
17730 * common.opt (iplugindir): Remove `Separate' property, initialize.
17731 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
17732 option.
17733 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
17734 (distclean): Remove plugin dir.
17735 * doc/invoke.texi: Document -iplugindir.
17736
17737 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
17738
17739 * doc/plugins.texi (Loading Plugins): Document short
17740 -fplugin=foo option.
17741 (Plugin API): Mention default_plugin_dir_name function.
17742
17743 * gcc.c (find_file_spec_function): Add new declaration.
17744 (static_spec_func): Use it for "find-file".
17745 (find_file_spec_function): Add new function.
17746 (cc1_options): Add -iplugindir option if -fplugin* options found.
17747
17748 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
17749
17750 * plugin.c (add_new_plugin): Updated comment, and handle short
17751 plugin name.
17752 (default_plugin_dir_name): Added new function.
17753
17754 * common.opt (iplugindir): New option to set the plugin directory.
17755
17756 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
17757
17758 * config/i386/i386.md (any_rotate): New code iterator.
17759 (rotate_insn): New code attribute.
17760 (rotate): Ditto.
17761 (SWIM124): New mode iterator.
17762 (<rotate_insn>ti3): New expander.
17763 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
17764 any_rotate code iterator.
17765 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
17766 using any_rotate code iterator and SWIM124 mode iterator.
17767 (ix86_rotlti3): New insn_and_split pattern.
17768 (ix86_rotrti3): Ditto.
17769 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
17770 ix86_rotl{di,ti}3 patterns.
17771 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
17772 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
17773 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
17774 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
17775 code iterator and SWI mode iterator.
17776 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
17777 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
17778 code iterator.
17779 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
17780 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
17781 (bswap rotatert splitter): Add splitter.
17782 (bswap splitter): Macroize splitter using any_rotate code iterator.
17783 Add insn predicate to split only for TARGET_USE_XCHGB or when
17784 optimizing function for size.
17785
17786 2010-04-12 Steve Ellcey <sje@cup.hp.com>
17787
17788 * config/pa/pa.c (emit_move_sequence): Remove use of
17789 deleted variable flag_argument_noalias.
17790
17791 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17792
17793 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
17794 configurations.
17795 Add to unsupported targets list.
17796 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
17797 sparc*-sun-solaris2.[567]* from target lists.
17798 * configure: Regenerate.
17799 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
17800 removal.
17801 Remove Solaris 7 patch references.
17802 (Specific, sparc-sun-solaris2.7): Removed.
17803 (sparc-sun-solaris2*): Update Solaris 7 example.
17804 (sparc64-*-solaris2*): Likewise.
17805
17806 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17807
17808 * config.build (alpha*-dec-osf4*): Remove.
17809 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
17810 of obsolete configurations.
17811 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
17812 support.
17813 * config/alpha/t-osf4: Renamed to ...
17814 * config/alpha/t-osf5: ... this.
17815 * config/alpha/osf.h: Renamed to ...
17816 * config/alpha/osf5.h: ... this.
17817 Merged old osf5.h contents.
17818 Update comments.
17819 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
17820 (EXTRA_SPECS): Removed.
17821 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
17822 reflect removal of Tru64 UNIX V4.0/V5.0 support.
17823 Document that.
17824
17825 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17826
17827 * doc/contrib.texi (Contributors, Rainer Orth): Update.
17828
17829 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
17830
17831 PR/43702
17832 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
17833 __thiscall convention.
17834
17835 2010-04-12 Steve Ellcey <sje@cup.hp.com>
17836
17837 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
17838 orig_base.
17839 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
17840
17841 2010-04-12 Steve Ellcey <sje@cup.hp.com>
17842
17843 * function.c (assign_parms_initialize_all): Add unused attribute
17844 to fntype.
17845
17846 2010-04-12 Richard Guenther <rguenther@suse.de>
17847
17848 * gsstruct.def (GSS_CALL): New.
17849 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
17850 * gimple.h: Include tree-ssa-alias.h.
17851 (struct gimple_statement_call): New.
17852 (union gimple_statement_struct_d): Add gimple_call member.
17853 (gimple_call_reset_alias_info): Declare.
17854 (gimple_call_use_set): New function.
17855 (gimple_call_clobber_set): Likewise.
17856 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
17857 * gimple.c (gimple_call_reset_alias_info): New function.
17858 (gimple_build_call_1): Call it.
17859 * lto-streamer-in.c (input_gimple_stmt): Likewise.
17860 * tree-inline.c (remap_gimple_stmt): Likewise.
17861 (expand_call_inline): Remove callused handling.
17862 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
17863 * tree-dfa.c (dump_variable): Likewise.
17864 * tree-parloops.c (parallelize_loops): Likewise.
17865 * tree-ssa.c (init_tree_ssa): Likewise.
17866 (delete_tree_ssa): Likewise.
17867 * tree-flow-inline.h (is_call_used): Remove.
17868 * tree-flow.h (struct gimple_df): Remove callused member.
17869 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
17870 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
17871 (ref_maybe_used_by_call_p_1): Simplify.
17872 (call_may_clobber_ref_p_1): Likewise.
17873 * tree-ssa-structalias.c (compute_points_to_sets): Set
17874 the call stmt used and clobbered sets.
17875 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
17876 (find_tail_calls): Verify the tail call.
17877
17878 2010-04-12 Richard Guenther <rguenther@suse.de>
17879
17880 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
17881 single-iteration always-inline inlining.
17882 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
17883 (cgraph_decide_inlining): Do not handle always-inline specially.
17884 (try_inline): Remove always-inline cycle detection special case.
17885 Do not recurse on always-inlines.
17886 (cgraph_early_inlining): Do not iterate if not optimizing.
17887 (cgraph_gate_early_inlining): remove.
17888 (pass_early_inline): Run unconditionally.
17889 (gate_cgraph_decide_inlining): New function.
17890 (pass_ipa_inline): Use it. Do not run the IPA inliner if
17891 not inlining or optimizing.
17892 (cgraph_decide_inlining_of_small_functions): Also consider
17893 always-inline functions.
17894 (cgraph_default_inline_p): Return true for nodes which should
17895 disregard inline limits.
17896 (estimate_function_body_sizes): Assume zero size and time for
17897 nodes which are marked as disregarding inline limits.
17898 (cgraph_decide_recursive_inlining): Do not perform recursive
17899 inlining on always-inline nodes.
17900
17901 2010-04-12 Jakub Jelinek <jakub@redhat.com>
17902
17903 PR bootstrap/43699
17904 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
17905 for exprs satisfying handled_component_p.
17906
17907 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
17908
17909 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
17910 non-constant aggregate elements.
17911
17912 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
17913 is a real initialization.
17914
17915 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
17916
17917 PR c/36774
17918 * c-decl.c (start_function): Move forward check for nested function.
17919
17920 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
17921
17922 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
17923 * config/sh/sh.c: Include reload.h.
17924 (sh_legitimize_reload_address): New.
17925 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
17926 sh_legitimize_reload_address.
17927
17928 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
17929
17930 * config/sh/sh.md (*movqi_pop): New insn pattern.
17931 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
17932
17933 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
17934
17935 * config/i386/i386.md (any_shiftrt): New code iterator.
17936 (shiftrt_insn): New code attribute.
17937 (shiftrt): Ditto.
17938 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
17939 using any_shiftrt code iterator.
17940 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
17941 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
17942 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
17943 pattern from corresponding peephole2 patterns.
17944 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
17945 using any_shiftrt code iterator.
17946 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
17947 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
17948 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
17949 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
17950 *{ashr,lshr}<mode>3_cmp_zext.
17951 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
17952
17953 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
17954
17955 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
17956 scratch register.
17957 (*lshr<mode>3_cconly): Ditto.
17958
17959 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
17960
17961 * config/i386/i386.md (lshr<mode>3): Macroize expander from
17962 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
17963 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
17964 pattern from *lshr{di,ti}3_1 and corresponding splitters using
17965 DWI mode iterator.
17966 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
17967 from corresponding peephole2 patterns.
17968 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
17969 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
17970 and *lshrdi3_1_rex64 using SWI mode iterator.
17971 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
17972 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
17973 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
17974 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
17975 and *lshrdi3_cmp_rex64 using SWI mode iterator.
17976 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
17977 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
17978 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
17979 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
17980 SWI mode iterator.
17981
17982 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
17983
17984 * config/i386/i386.md (ashr<mode>3): Macroize expander from
17985 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
17986 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
17987 pattern from *ashr{di,ti}3_1 and corresponding splitters using
17988 DWI mode iterator.
17989 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
17990 from corresponding peephole2 patterns.
17991 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
17992 (ashrsi3_cvt): Rename from ashrsi3_31.
17993 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
17994 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
17995 and x86_64_shift_adj_3 using SWI48 mode iterator.
17996 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
17997 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
17998 and *ashrdi3_1_rex64 using SWI mode iterator.
17999 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
18000 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
18001 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
18002 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
18003 and *ashrdi3_cmp_rex64 using SWI mode iterator.
18004 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
18005 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
18006 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
18007 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
18008 SWI mode iterator.
18009 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
18010 * config/i386/i386.c (ix86_split_ashr): Update for renamed
18011 x86_shift<mode>_adj_3 expanders.
18012
18013 2010-04-10 Wei Guozhi <carrot@google.com>
18014
18015 PR target/42601
18016 * config/arm/arm.c (arm_pic_static_addr): New function.
18017 (legitimize_pic_address): Call arm_pic_static_addr when it detects
18018 a static symbol.
18019 (arm_output_addr_const_extra): Output expression for new pattern.
18020 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
18021
18022 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
18023
18024 * ira-costs.c (record_reg_classes): Ignore alternatives that are
18025 not enabled.
18026
18027 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
18028 * web.c: Include "insn-config.h" and "recog.h".
18029 (union_match_dups): New function.
18030 (web_main): Call it.
18031 (union_defs): Don't try to recognize match_dups.
18032
18033 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
18034 if doing so would replace the entire pattern.
18035
18036 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
18037
18038 PR target/43707
18039 PR target/43709
18040 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
18041 and splitter pattern. Change splitter operand 1 predicate to
18042 nonmemory_operand.
18043
18044 2010-04-09 Martin Jambor <mjambor@suse.cz>
18045
18046 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
18047 lattices are addresses of CONST_DECLs with the same initial value.
18048 (ipcp_print_all_lattices): Print values of CONST_DECLs.
18049 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
18050
18051 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
18052 Bernd Schmidt <bernds@codesourcery.com>
18053
18054 * loop-invariant.c (replace_uses): New static function.
18055 (move_invariant_reg): Use it to ensure we can replace the uses.
18056
18057 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
18058
18059 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
18060 function template.
18061 (picochip_override_options): Enable section anchors only above -O1.
18062 (picochip_reorg): Fixed a couple of build warnings.
18063
18064 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18065
18066 * configure.ac (plugin -rdynamic test): Log result.
18067 * configure: Regenerate.
18068 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
18069 (RDYNAMIC_SPEC): Define.
18070 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
18071
18072 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18073
18074 * configure.ac: Determine Sun ld version numbers.
18075 (comdat_group): Restrict GNU ld version checks to gld.
18076 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
18077 (enable_comdat): Support --enable-comdat.
18078 * configure: Regenerate.
18079 * doc/install.texi (Configuration): Document --enable-comdat.
18080
18081 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18082
18083 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
18084 * config/sol2-gld.h: ... here.
18085 * config.gcc (sparc*-*-solaris2*): Reflect this.
18086 (i[34567]86-*-solaris2*): Use it.
18087
18088 2010-04-09 Steve Ellcey <sje@cup.hp.com>
18089
18090 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
18091 setup_clocks_p.
18092 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
18093
18094 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18095
18096 PR 42965
18097 * diagnostic.c (diagnostic_initialize): Initialize
18098 some_warnings_are_errors.
18099 (diagnostic_finish): New.
18100 (diagnostic_action_after_output): Call it before exiting.
18101 (diagnostic_report_diagnostic): Do not print message here. Set
18102 some_warnings_are_errors.
18103 * diagnostic.h (diagnostic_context): Delete
18104 issue_warnings_are_errors_message. Add some_warnings_are_errors.
18105 (diagnostic_finish): Declare.
18106 * toplev.c (toplev_main): Call it before exit.
18107
18108 2010-04-09 Jason Merrill <jason@redhat.com>
18109
18110 PR c++/42623
18111 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
18112 for incomplete type.
18113
18114 PR c++/41788
18115 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
18116 based on a warning flag.
18117
18118 2010-04-09 Richard Guenther <rguenther@suse.de>
18119
18120 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
18121
18122 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
18123
18124 PR bootstrap/43684
18125 * varasm.c (default_assemble_visibility): Wrap vars that are
18126 set, but unused, by targets without GAS.
18127 * config/rs6000/rs6000.c (paired_emit_vector_compare):
18128 Remove set, but unused, vars.
18129 (rs6000_legitimize_tls_address): Likewise.
18130 (altivec_expand_dst_builtin): Likewise.
18131 * config/darwin.c (machopic_classify_symbol): Likewise.
18132 (machopic_indirection_name): Likewise.
18133
18134 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
18135
18136 * config/i386/i386.md (DWI): New mode iterator.
18137 (S): New mode attribute.
18138 (shift_operand): Ditto.
18139 (shift_immediate_operand): Ditto.
18140 (ashl_input_operand): Ditto.
18141 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
18142 using SDWIM mode iterator.
18143 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
18144 pattern from *ashl{di,ti}3_1 and corresponding splitters using
18145 DWI mode iterator.
18146 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
18147 from corresponding peephole2 patterns.
18148 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
18149 and x86_64_shift_adj_1 using SWI48 mode iterator.
18150 (x86_shift<mode>_adj_2): Ditto.
18151 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
18152 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
18153 using SWI48 mode iterator.
18154 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
18155 *ashldi3_cmp_rex64 using SWI mode iterator.
18156 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
18157 *ashldi3_cconly_rex64 using SWI mode iterator.
18158 * config/i386/i386.c (ix86_split_ashl): Update for renamed
18159 x86_shift<mode>_adj_{1,2}.
18160 (ix86_split_ashr): Ditto.
18161 (ix86_split_lshr): Ditto.
18162
18163 2010-04-09 Richard Guenther <rguenther@suse.de>
18164
18165 * target.h (builtin_conversion): Pass in input and output types.
18166 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
18167 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
18168 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
18169 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
18170
18171 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
18172 Handle AVX modes.
18173 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
18174
18175 2010-04-09 Richard Guenther <rguenther@suse.de>
18176
18177 PR target/43152
18178 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
18179
18180 2010-04-09 Richard Guenther <rguenther@suse.de>
18181
18182 * tree-vectorizer.h (struct _stmt_vec_info): Document
18183 that vectype is the type of the LHS.
18184 (supportable_widening_operation, supportable_narrowing_operation):
18185 Get both input and output vector types as arguments.
18186 (vect_is_simple_use_1): Declare.
18187 (get_same_sized_vectype): Likewise.
18188 * tree-vect-loop.c (vect_determine_vectorization_factor):
18189 Set STMT_VINFO_VECTYPE to the vector type of the def.
18190 (vectorizable_reduction): Adjust.
18191 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
18192 Adjust. Specify the output vector type.
18193 (vect_pattern_recog_1): Adjust.
18194 * tree-vect-stmts.c (get_same_sized_vectype): New function.
18195 (vectorizable_call): Adjust.
18196 (vectorizable_conversion): Likewise.
18197 (vectorizable_operation): Likewise.
18198 (vectorizable_type_demotion): Likewise.
18199 (vectorizable_type_promotion): Likewise.
18200 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
18201 the def.
18202 (vect_is_simple_use_1): New function.
18203 (supportable_widening_operation): Get both input and output
18204 vector types.
18205 (supportable_narrowing_operation): Likewise.
18206 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
18207
18208 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
18209
18210 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
18211 __thiscall and _thiscall as predefined macros.
18212 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
18213 thiscall attribute handling.
18214 (ix86_comp_type_attributes): Likewise.
18215 (ix86_function_regparm): Likewise.
18216 (ix86_return_pops_args): Likewise.
18217 (init_cumulative_args): Likewise.
18218 (find_drap_reg): Likewise.
18219 (ix86_static_chain): Likewise.
18220 (x86_this_parameter): Likewise.
18221 (x86_output_mi_thunk): Likewise.
18222 (ix86_attribute_table): Add description for thiscall attribute.
18223 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
18224 * doc/extend.texi: Add documentation for thiscall.
18225
18226 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18227
18228 PR c++/28584
18229 * c.opt (Wint-to-pointer-cast): Available in C++.
18230 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
18231
18232 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
18233
18234 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
18235 * calls.c (expand_call): Pass the function type to aggregate_value_p.
18236 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
18237 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
18238 function type instead. Reorder and simplify checks.
18239
18240 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
18241
18242 2010-04-08 Jing Yu <jingyu@google.com>
18243 Zdenek Dvorak <ook@ucw.cz>
18244
18245 PR tree-optimization/42720
18246 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
18247 loop unswitch conditions here from ...
18248 (tree_unswitch_single_loop): ... here.
18249
18250 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
18251
18252 * tree-if-conv.c: Fix comments and simplify logic.
18253
18254 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
18255
18256 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
18257 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
18258 (main_tree_if_conversion): Update call to tree_if_conversion.
18259
18260 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
18261
18262 PR 42485
18263 * doc/invoke.texi (-b,-V): Delete.
18264 * doc/tm.texi: Do not mention -b.
18265 * gcc.c (display_help): Delete -b and -V.
18266 (process_command): Delete -b and -V.
18267 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
18268
18269 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
18270 Wolfgang Gellerich <gellerich@de.ibm.com>
18271
18272 Implement target hook for loop unrolling
18273 * target.h (loop_unroll_adjust): Add a new target hook function.
18274 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
18275 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
18276 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
18277 (s390_loop_unroll_adjust): Implement the new target hook for s390.
18278 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
18279 target hook.
18280 (decide_unroll_stupid): Likewise.
18281
18282 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18283
18284 PR target/43643
18285 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
18286
18287 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18288
18289 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
18290 (Specific, *-*-solaris2*): Likewise.
18291 Don't prefer Sun as over GNU as.
18292
18293 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
18294
18295 * config/s390/s390.c (override_options): Adjust the z10 defaults
18296 for max-unroll-times, max-completely-peeled-insns
18297 and max-completely-peel-times.
18298
18299 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18300
18301 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
18302 instructions for z10.
18303 (s390_expand_setmem): Likewise.
18304 (s390_expand_cmpmem): Likewise.
18305
18306 2010-04-08 Richard Guenther <rguenther@suse.de>
18307
18308 PR tree-optimization/43679
18309 * tree-ssa-pre.c (eliminate): Only propagate copies.
18310
18311 2010-04-08 Jakub Jelinek <jakub@redhat.com>
18312
18313 PR bootstrap/43681
18314 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
18315 set but not used variable warning.
18316
18317 2010-04-08 Wei Guozhi <carrot@google.com>
18318
18319 PR target/41653
18320 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
18321 (arm_size_rtx_costs): Call the new function when optimized for size.
18322
18323 2010-04-08 Jakub Jelinek <jakub@redhat.com>
18324
18325 PR debug/43670
18326 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
18327 op0 is not a MEM, just return NULL instead of assertion
18328 failure.
18329 (discover_nonconstant_array_refs): Don't walk debug stmts.
18330
18331 2010-04-08 Doug Kwan <dougkwan@google.com>
18332
18333 * configure.ac: Recognize gold and do not use its version number
18334 to test ld features.
18335 * configure: Regenerate.
18336
18337 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
18338
18339 PR middle-end/40815
18340 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
18341 (negate_value): Move code to push elements to broken_up_substracts ...
18342 (eliminate_plus_minus_pair): ... here. Push operands that have no
18343 negative pair to plus_negates.
18344 (repropagate_negates, init_reassoc, fini_reassoc): Update.
18345
18346 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18347
18348 * doc/install.texi (Configuration): Move description of
18349 --enable-lto, --with-libelf*, --enable-gold from Java section to
18350 general section.
18351
18352 * doc/generic.texi (Working with declarations)
18353 (Function Properties, C and C++ Trees): Fix typos.
18354 * doc/sourcebuild.texi (Top Level): Likewise.
18355
18356 2010-04-07 Jakub Jelinek <jakub@redhat.com>
18357
18358 PR c/18624
18359 * tree.h (DECL_READ_P): Define.
18360 (struct tree_decl_common): Add decl_read_flag.
18361 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
18362 a set but not used warning.
18363 (merge_decls): Merge DECL_READ_P flag.
18364 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
18365 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
18366 * c-common.c (handle_used_attribute, handle_unused_attribute):
18367 Likewise.
18368 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
18369 New prototypes.
18370 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
18371 New functions.
18372 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
18373 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
18374 c_parser_binary_expression, c_parser_cast_expression,
18375 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
18376 Call default_function_array_read_conversion instead of
18377 default_function_array_conversion where needed.
18378 (c_parser_unary_expression, c_parser_conditional_expression,
18379 c_parser_postfix_expression_after_primary, c_parser_initelt):
18380 Likewise. Call mark_exp_read where needed.
18381 (c_parser_statement_after_labels, c_parser_asm_operands,
18382 c_parser_typeof_specifier, c_parser_sizeof_expression,
18383 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
18384 where needed.
18385 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
18386 New.
18387 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
18388 (warn_unused_but_set_parameter): Default to warn_unused
18389 && extra_warnings.
18390 * doc/invoke.texi: Document -Wunused-but-set-variable and
18391 -Wunused-but-set-parameter.
18392
18393 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
18394 used count variable.
18395 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
18396 when operandN variables aren't used in the body of the expander
18397 or splitter.
18398 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
18399 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
18400 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
18401 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
18402 FOR_EACH_IMM_USE_ON_STMT): Likewise.
18403 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
18404 * tree.c (PROCESS_ARG): Likewise.
18405
18406 2010-04-07 Simon Baldwin <simonb@google.com>
18407
18408 * diagnostic.h (diagnostic_override_option_index): New macro to
18409 set a diagnostic's option_index.
18410 * c-tree.h (c_cpp_error): Add warning reason argument.
18411 * opts.c (_warning_as_error_callback): New.
18412 (register_warning_as_error_callback): Store callback for
18413 warnings enabled via enable_warning_as_error.
18414 (enable_warning_as_error): Call callback, minor code tidy.
18415 * opts.h (register_warning_as_error_callback): Declare.
18416 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
18417 response to -Werror=.
18418 (c_common_init_options): Register warning_as_error_callback in opts.c.
18419 * common.opt: Add -Wno-cpp option.
18420 * c-common.c (struct reason_option_codes_t): Map cpp warning
18421 reason codes to gcc option indexes.
18422 * (c_option_controlling_cpp_error): New function, lookup the gcc
18423 option index for a cpp warning reason code.
18424 * (c_cpp_error): Add warning reason argument, call
18425 c_option_controlling_cpp_error for diagnostic_override_option_index.
18426 * doc/invoke.texi: Document -Wno-cpp.
18427
18428 2010-04-07 Richard Guenther <rguenther@suse.de>
18429
18430 * ipa-reference.c (mark_load): Use get_base_address.
18431 (mark_store): Likewise.
18432
18433 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
18434 inserting GIMPLE_NOPs into the IL.
18435 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18436 Explicitly strip handled components and indirect references.
18437
18438 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
18439 folding address expressions.
18440 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
18441 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
18442 operand_equal_p to compare decls.
18443 (ptr_deref_may_alias_decl_p): Likewise.
18444 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
18445 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
18446 Handle reversed comparison ops.
18447 * tree-sra.c (asm_visit_addr): Use get_base_address.
18448 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
18449 * ipa-reference.c (mark_address): Use get_base_address.
18450
18451 2010-04-07 Richard Guenther <rguenther@suse.de>
18452
18453 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
18454 Propagate constants everywhere.
18455
18456 2010-04-07 Jakub Jelinek <jakub@redhat.com>
18457
18458 PR debug/43516
18459 * tree.c (MAX_INT_CACHED_PREC): Define.
18460 (nonstandard_integer_type_cache): New array.
18461 (build_nonstandard_integer_type): Cache results for precision
18462 <= MAX_INT_CACHED_PREC.
18463
18464 2010-04-07 Richard Guenther <rguenther@suse.de>
18465
18466 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
18467 -fargument-noalias-global, -fargument-noalias-anything): Remove.
18468 * common.opt: Likewise.
18469 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
18470 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
18471 (nonoverlapping_memrefs_p): Likewise.
18472 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
18473 * opts.c (common_handle_option): Handle OPT_fargument_alias,
18474 OPT_fargument_noalias, OPT_fargument_noalias_anything and
18475 OPT_fargument_noalias_global for backward compatibility.
18476
18477 2010-04-07 Richard Guenther <rguenther@suse.de>
18478
18479 PR tree-optimization/43270
18480 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
18481 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
18482 * tree-ssa-pre.c (phi_translate_1): Adjust.
18483 (fully_constant_expression): Split out vn_reference handling to ...
18484 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
18485 Fold reads from constant strings.
18486 (vn_reference_lookup): Handle fully constant references.
18487 (vn_reference_lookup_pieces): Likewise.
18488 * Makefile.in (expmed.o-warn): Add -Wno-error.
18489
18490 2010-04-07 Martin Jambor <mjambor@suse.cz>
18491
18492 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
18493
18494 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
18495
18496 PR driver/41594
18497 * gcc.c: Add -static-libstdc++ to list of recognized options.
18498
18499 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18500
18501 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
18502
18503 2010-04-07 Richard Guenther <rguenther@suse.de>
18504
18505 PR middle-end/42617
18506 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
18507 bases build simple mem attributes to retain points-to information.
18508
18509 2010-04-07 Richard Guenther <rguenther@suse.de>
18510
18511 PR middle-end/42617
18512 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
18513 preserve points-to related information.
18514
18515 2010-04-07 Richard Guenther <rguenther@suse.de>
18516
18517 PR middle-end/42617
18518 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
18519 discard plain indirect references.
18520 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
18521 * tree.c (tree_nop_conversion): Likewise.
18522
18523 2010-04-07 Dodji Seketeli <dodji@redhat.com>
18524
18525 PR debug/43628
18526 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
18527
18528 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
18529
18530 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
18531 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
18532
18533 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
18534
18535 * tree-if-conv.c: Fix indentation and comments.
18536
18537 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
18538
18539 * tree-if-conv.c: Sort static functions in topological order.
18540
18541 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
18542
18543 * tree-if-conv.c: Fix indentation and comments.
18544
18545 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
18546
18547 PR middle-end/43519
18548 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
18549 lang_hooks.types.type_for_size instead of
18550 build_nonstandard_integer_type.
18551 When converting an unsigned type to signed, double its precision.
18552 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
18553 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
18554 (graphite_create_new_loop_guard): When ub + 1 wraps around,
18555 use lb <= ub.
18556
18557 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
18558
18559 PR middle-end/43519
18560 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
18561 POINTER_PLUS_EXPR for pointer types.
18562
18563 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
18564
18565 PR middle-end/43519
18566 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
18567 * graphite-clast-to-gimple.c: Include langhooks.h.
18568 (max_signed_precision_type): New.
18569 (max_precision_type): Takes two types as arguments.
18570 (precision_for_value): New.
18571 (precision_for_interval): New.
18572 (gcc_type_for_interval): New.
18573 (gcc_type_for_value): New.
18574 (gcc_type_for_clast_term): New.
18575 (gcc_type_for_clast_red): New.
18576 (gcc_type_for_clast_bin): New.
18577 (gcc_type_for_clast_expr): Split up into several functions.
18578 (gcc_type_for_clast_eq): Rewritten.
18579 (compute_bounds_for_level): New.
18580 (compute_type_for_level_1): New.
18581 (compute_type_for_level): New.
18582 (gcc_type_for_cloog_iv): Removed.
18583 (gcc_type_for_iv_of_clast_loop): Rewritten.
18584 (graphite_create_new_loop): Compute the lower and upper bound types
18585 with gcc_type_for_clast_expr.
18586 (graphite_create_new_loop_guard): Same.
18587 (find_cloog_iv_in_expr): Removed.
18588 (compute_cloog_iv_types_1): Removed.
18589 (compute_cloog_iv_types): Removed.
18590 (gloog): Do not call compute_cloog_iv_types.
18591 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
18592 GBB_CLOOG_IV_TYPES.
18593 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
18594 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
18595 (GBB_CLOOG_IV_TYPES): Removed.
18596
18597 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
18598
18599 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
18600 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
18601 (detect_commutative_reduction): Same.
18602
18603 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
18604
18605 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
18606 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
18607 argument.
18608 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
18609 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
18610 (rewrite_commutative_reductions_out_of_ssa): Same.
18611 * passes.c (execute_function_todo): Call verify_ssa for every pass
18612 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
18613 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
18614 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
18615 with an extra argument.
18616 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
18617 verify_ssa only when the extra argument is true.
18618 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
18619 with an extra argument.
18620 (tree_transform_and_unroll_loop): Same.
18621
18622 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
18623
18624 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
18625 for all the passes of the LNO having LOOP_CLOSED_SSA.
18626 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
18627 * tree-loop-distribution.c (pass_loop_distribution): Same.
18628 * tree-pass.h (TODO_verify_loops): Removed.
18629 * tree-ssa-loop.c (pass_tree_loop_init): Same.
18630 (pass_lim): Same.
18631 (pass_tree_unswitch): Same.
18632 (pass_predcom): Same.
18633 (pass_vectorize): Same.
18634 (pass_linear_transform): Same.
18635 (pass_graphite_transforms): Same.
18636 (pass_iv_canon): Same.
18637 (pass_complete_unroll): Same.
18638 (pass_complete_unrolli): Same.
18639 (pass_parallelize_loops): Same.
18640 (pass_loop_prefetch): Same.
18641 (pass_iv_optimize): Same.
18642
18643 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
18644
18645 PR middle-end/32824
18646 * passes.c (init_optimization_passes): Move pass_lim before
18647 pass_copy_prop and pass_dce_loop.
18648
18649 2010-04-06 Jakub Jelinek <jakub@redhat.com>
18650
18651 PR target/43667
18652 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
18653 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
18654 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
18655 MULTI_* defines for 4 argument vpermil2p* builtins.
18656
18657 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
18658
18659 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
18660 * config/i386/i386.c (x86_maybe_negate_const_int): New.
18661 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
18662 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
18663 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
18664 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
18665 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
18666 Use x86_maybe_negate_const_int to output insn mnemonic.
18667 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
18668 check from instruction predicate. Update comments.
18669 * config/i386/sync.md (sync_add<mode>): Use
18670 x86_maybe_negate_const_int to output insn mnemonic.
18671
18672 2010-04-06 Jan Hubicka <jh@suse.cz>
18673
18674 PR tree-optimization/42906
18675 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
18676 IGNORE_SELF argument. Set visited_control_parents for fully
18677 processed BBs.
18678 (find_obviously_necessary_stmts): Update call of
18679 mark_control_dependent_edges_necessary.
18680 (propagate_necessity): Likewise. Handle PHI edges more curefully.
18681
18682 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
18683
18684 * config/i386/i386.md: Remove comment about 'e' and 'E'
18685 operand modifier.
18686
18687 2010-04-06 Richard Guenther <rguenther@suse.de>
18688
18689 PR tree-optimization/43627
18690 * tree-vrp.c (extract_range_from_unary_expr): Widenings
18691 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
18692 not varying.
18693
18694 2010-04-06 Jakub Jelinek <jakub@redhat.com>
18695
18696 * BASE-VER: Change to 4.6.0.
18697
18698 PR target/43638
18699 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
18700 handling.
18701
18702 2010-04-06 Richard Guenther <rguenther@suse.de>
18703
18704 PR middle-end/43661
18705 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
18706
18707 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18708
18709 * doc/invoke.texi (Optimize Options): Document that LTO
18710 won't remove object access purely due to incompatible
18711 declarations.
18712
18713 2010-04-04 Matthias Klose <doko@ubuntu.com>
18714
18715 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
18716 Initialize variable.
18717
18718 2010-04-03 Richard Guenther <rguenther@suse.de>
18719
18720 PR middle-end/42509
18721 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
18722 require a non-NULL MEM_OFFSET.
18723
18724 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
18725
18726 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
18727 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
18728 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
18729 config/alpha/predicates.md, config/arm/arm.md,
18730 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
18731 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
18732 config/darwin9.h, config/darwin.c, config/darwin.h,
18733 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
18734 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
18735 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
18736 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
18737 config/mips/mips.md, config/mn10300/mn10300.c,
18738 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
18739 config/rs6000/aix.h, config/rs6000/dfp.md,
18740 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
18741 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
18742 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
18743 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
18744 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
18745 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
18746 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
18747 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
18748 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
18749 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
18750 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
18751 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
18752 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
18753 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
18754 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
18755 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
18756 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
18757 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
18758 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
18759 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
18760 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
18761 opt-functions.awk, opth-gen.awk, params.def, passes.c,
18762 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
18763 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
18764 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
18765 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
18766 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
18767 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
18768 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
18769 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
18770 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
18771 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
18772 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
18773 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
18774 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
18775 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
18776
18777 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18778
18779 PR other/43620
18780 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
18781 * aclocal.m4: Regenerate.
18782
18783 2010-04-02 Richard Guenther <rguenther@suse.de>
18784
18785 PR tree-optimization/43629
18786 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
18787 if we have seen a constant value.
18788
18789 2010-04-02 Joseph Myers <joseph@codesourcery.com>
18790
18791 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
18792
18793 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
18794
18795 PR target/43469
18796 * arm.c (legitimize_tls_address): Adjust call to
18797 gen_tls_load_dot_plus_four.
18798 (arm_note_pic_base): New function.
18799 (arm_cannot_copy_insn_p): Use it.
18800 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
18801 constraint.
18802
18803 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18804
18805 PR bootstrap/43531
18806
18807 Revert:
18808 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18809
18810 * Makefile.in ($(out_object_file)): Depend on
18811 gt-$(basename $(notdir $(out_file))).h.
18812
18813 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
18814
18815 * config.gcc (lm32-*-rtems*): Add t-lm32.
18816
18817 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
18818
18819 * config.gcc: Add lm32-*-rtems*.
18820 * config/lm32/rtems.h: New file.
18821
18822 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
18823
18824 PR target/42609
18825 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
18826
18827 2010-04-01 Jakub Jelinek <jakub@redhat.com>
18828
18829 * dwarf2out.c (output_compilation_unit_header): For
18830 -gdwarf-4 use version 4 instead of version 3.
18831 (output_line_info): For version 4 and above emit additional
18832 maximum ops per insn header field.
18833 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
18834
18835 * dwarf2out.c (is_c_family, is_java): Remove.
18836 (lower_bound_default): New function.
18837 (add_bound_info, gen_descr_array_type_die): Use it.
18838
18839 2010-04-01 Dodji Seketeli <dodji@redhat.com>
18840
18841 PR debug/43325
18842 * dwarf2out.c (gen_variable_die): Allow debug info for variable
18843 re-declaration when it happens in a function.
18844
18845 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
18846
18847 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
18848 (cgraph_remove_function_insertion_hook): Same.
18849 (cgraph_call_function_insertion_hooks): Same.
18850
18851 2010-04-01 Richard Guenther <rguenther@suse.de>
18852
18853 PR middle-end/43614
18854 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
18855 and TREE_THIS_VOLATILE.
18856 (copy_ref_info): Likewise.
18857 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
18858 * tree.c (build6_stat): Ignore side-effects of all but arg5
18859 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
18860 TARGET_MEM_REF.
18861
18862 2010-04-01 Richard Guenther <rguenther@suse.de>
18863
18864 PR tree-optimization/43607
18865 * ipa-type-escape.c (check_call): Do not access non-existing
18866 arguments.
18867
18868 2010-04-01 Richard Guenther <rguenther@suse.de>
18869
18870 PR middle-end/43602
18871 Revert
18872 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
18873 Jack Howarth <howarth@bromo.med.uc.edu>
18874
18875 * tree-profile.c (tree_init_ic_make_global_vars): Make static
18876 variables TLS.
18877
18878 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18879
18880 * doc/install.texi (Prerequisites): Document libelf usability on
18881 IRIX 5/6 and Solaris 2.
18882 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
18883 Update GNU as, GNU ld requirements.
18884 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
18885 Document Sun Studio compiler download.
18886 Update and simplify as, ld recommendations.
18887 (Specific, *-*-solaris2.7): Note obsoletion, removal.
18888
18889 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18890
18891 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
18892 with_tune_32 to pentium4.
18893
18894 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
18895
18896 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
18897
18898 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18899
18900 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
18901 obsoletion, removal.
18902 Update IDO URL.
18903 Document GNU as requirement.
18904 Update configure requirements.
18905 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
18906 Recomment IRIX 6.5.18+.
18907 Document IDF/IDL requirement.
18908 Document GNU as requirement.
18909 Document GNU ld bootstrap failure.
18910 Remove freeware.sgi.com reference.
18911
18912 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18913
18914 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
18915 UNIX V4.0, V5.0 obsoletion, removal.
18916 Remove --with-gc=simple reference.
18917 Update VM requirements during bootstrap.
18918 Remove -oldas bootstrap description.
18919 Update binutils reference.
18920 Remove comparison failure note.
18921
18922 2010-03-31 Richard Guenther <rguenther@suse.de>
18923 Zdenek Dvorak <ook@ucw.cz>
18924 Sebastian Pop <sebastian.pop@amd.com>
18925
18926 PR middle-end/43464
18927 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
18928 with multiple arguments.
18929 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
18930
18931 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
18932
18933 * graphite-dependences.c (print_pddr): Call print_pdr with an
18934 extra argument.
18935 * graphite-poly.c (debug_pdr): Add an extra argument for the
18936 verbosity level.
18937 (print_pdr): Same.
18938 (print_pbb_domain): Same.
18939 (print_pbb): Same.
18940 (print_scop_context): Same.
18941 (print_scop): Same.
18942 (print_cloog): Same.
18943 (debug_pbb_domain): Same.
18944 (debug_pbb): Same.
18945 (print_pdrs): Same.
18946 (debug_pdrs): Same.
18947 (debug_scop_context): Same.
18948 (debug_scop): Same.
18949 (debug_cloog): Same.
18950 (print_scop_params): Same.
18951 (debug_scop_params): Same.
18952 (print_iteration_domain): Same.
18953 (print_iteration_domains): Same.
18954 (debug_iteration_domain): Same.
18955 (debug_iteration_domains): Same.
18956 (print_scattering_function): Same.
18957 (print_scattering_functions): Same.
18958 (debug_scattering_function): Same.
18959 (debug_scattering_functions): Same.
18960 * graphite-poly.h (debug_pdr): Update declaration.
18961 (print_pdr): Same.
18962 (print_pbb_domain): Same.
18963 (print_pbb): Same.
18964 (print_scop_context): Same.
18965 (print_scop): Same.
18966 (print_cloog): Same.
18967 (debug_pbb_domain): Same.
18968 (debug_pbb): Same.
18969 (print_pdrs): Same.
18970 (debug_pdrs): Same.
18971 (debug_scop_context): Same.
18972 (debug_scop): Same.
18973 (debug_cloog): Same.
18974 (print_scop_params): Same.
18975 (debug_scop_params): Same.
18976 (print_iteration_domain): Same.
18977 (print_iteration_domains): Same.
18978 (debug_iteration_domain): Same.
18979 (debug_iteration_domains): Same.
18980 (print_scattering_function): Same.
18981 (print_scattering_functions): Same.
18982 (debug_scattering_function): Same.
18983 (debug_scattering_functions): Same.
18984
18985 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
18986
18987 * graphite-poly.c (print_scattering_function_1): New.
18988 (print_scattering_function): Call it.
18989 (print_scop_params): Remove spaces at the end of lines.
18990 (print_cloog): New.
18991 (debug_cloog): New.
18992 * graphite-poly.h (print_cloog): Declared.
18993 (debug_cloog): Declared.
18994
18995 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
18996
18997 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
18998 in loop->header.
18999 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
19000 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
19001 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
19002 to switch between adding the IV bump in loop->latch or in loop->header.
19003
19004 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
19005
19006 * graphite-poly.c (print_scattering_function): Pretty print following
19007 the scoplib format.
19008 (print_pdr): Same.
19009 (print_pbb_domain): Same.
19010 (dump_gbb_cases): Same.
19011 (dump_gbb_conditions): Same.
19012 (print_pdrs): Same.
19013 (print_pbb): Same.
19014 (print_scop_params): Same.
19015 (print_scop_context): Same.
19016 (print_scop): Same.
19017 (print_pbb_body): New.
19018 (lst_indent_to): New.
19019 (print_lst): Start new lines with a #.
19020 * graphite-poly.h (pbb_bb): New.
19021 (pbb_index): Use pbb_bb.
19022 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
19023 disjuncts.
19024 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
19025
19026 2010-03-31 Jakub Jelinek <jakub@redhat.com>
19027
19028 * dwarf2out.c (size_of_die): For -gdwarf-4 use
19029 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
19030 and 0 instead of 1 for dw_val_class_flag.
19031 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
19032 dw_val_class_range_list, dw_val_class_loc_list,
19033 dw_val_class_lineptr and dw_val_class_macptr, use
19034 DW_FORM_flag_present for dw_val_class_flag and
19035 DW_FORM_exprloc for dw_val_class_loc.
19036 (output_die): For -gdwarf-4 print dw_val_class_loc
19037 size as uleb128 instead of 1 or 2 bytes and don't print
19038 anything for dw_val_class_flag.
19039
19040 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
19041 instead of cselib_lookup following by tweaking locs->setting_insn.
19042
19043 PR bootstrap/43596
19044 * cselib.c (cselib_process_insn): Clear cselib_current_insn
19045 even before returning from label, setjmp call or volatile asm
19046 handling.
19047
19048 2010-03-31 Richard Guenther <rguenther@suse.de>
19049
19050 PR middle-end/43600
19051 * cgraphunit.c (cgraph_output_in_order): Do not allocate
19052 temporary data on stack.
19053
19054 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19055
19056 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
19057 (PUSHSECTION_ASM_OP): Remove.
19058 (POPSECTION_ASM_OP): Remove.
19059 (PUSHSECTION_FORMAT): Remove.
19060 * config/sol2.h (PUSHSECTION_FORMAT): Define.
19061 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
19062 * config/sol2.c (solaris_output_init_fini): Use it.
19063
19064 2010-03-31 Jie Zhang <jie@codesourcery.com>
19065
19066 PR 43574
19067 * opt-functions.awk (var_type_struct): Use signed char type
19068 for simple variables.
19069
19070 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19071
19072 * config/sol2.c: Include output.h.
19073 (solaris_assemble_visibility): New function.
19074 * config/t-sol2 (sol2.o): Add output.h dependency.
19075 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
19076 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
19077 Redefine.
19078
19079 2010-03-31 Jakub Jelinek <jakub@redhat.com>
19080
19081 PR target/43580
19082 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
19083 V2SImode or XFmode on PRE_DEC.
19084
19085 PR debug/43557
19086 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
19087 BLKmode.
19088
19089 2010-03-31 Jie Zhang <jie@codesourcery.com>
19090
19091 PR 43562
19092 * reload.h (caller_save_initialized_p): Declare.
19093 * toplev.c (backend_init_target): Don't call
19094 init_caller_save but set caller_save_initialized_p to false.
19095 * caller-save.c (caller_save_initialized_p): Define.
19096 (init_caller_save): Check caller_save_initialized_p.
19097 * ira.c (ira): Call init_caller_save if flag_caller_saves.
19098
19099 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19100
19101 PR target/39048
19102 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
19103 and soft-fp/t-softfp to tmake_file.
19104 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
19105 (LIBGCC2_TF_CEXT): Define.
19106 (TF_SIZE): Define.
19107
19108 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
19109
19110 PR debug/42977
19111 * cselib.c (n_useless_values): Document handling of debug locs.
19112 (n_useless_debug_values, n_debug_values): New variables.
19113 (new_elt_loc_list): Don't add to debug values, keep count.
19114 (promote_debug_loc): New.
19115 (cselib_reset_table): Zero new variables.
19116 (entry_and_rtx_equal_p): Promote debug locs.
19117 (discard_useless_locs): Increment n_useless_debug_values for
19118 debug values.
19119 (remove_useless_values): Adjust n_useless_values and n_debug_values
19120 with n_useless_debug_values.
19121 (add_mem_for_addr): Promote debug locs.
19122 (cselib_lookup_mem): Likewise.
19123 (cselib_lookup_addr): Renamed to...
19124 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
19125 (cselib_log_lookup): ... this. Turn into...
19126 (cselib_lookup_addr): ... new wrapper.
19127 (cselib_lookup_from_insn): New.
19128 (cselib_invalidate_regno): Increment n_useless_debug_values for
19129 debug values.
19130 (cselib_invalidate_mem): Likewise.
19131 (cselib_process_insn): Take n_deleted and n_debug_values into
19132 account to guard remove_useless_value call.
19133 (cselib_finish): Zero n_useless_debug_values.
19134 * cselib.h (cselib_lookup_from_insn): Declare.
19135 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
19136 (sched_analyze_2): Likewise.
19137
19138 2010-03-30 Jakub Jelinek <jakub@redhat.com>
19139
19140 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
19141 functions.
19142 (adjust_mems): Replace narrowing SUBREG of expression containing
19143 just PLUS, MINUS, MULT and ASHIFT of registers and constants
19144 with operations in the narrower mode.
19145
19146 PR debug/43593
19147 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
19148 regs_invalidated_by_call instead all call_used_reg_set registers.
19149
19150 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
19151
19152 PR middle-end/43430
19153 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
19154 pointer comparisons with types_compatible_p.
19155 * tree-vect-stmts.c (vectorizable_call): Same.
19156 (vectorizable_condition): Same.
19157
19158 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19159
19160 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
19161 stack check if the mask would be zero.
19162
19163 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
19164 Jack Howarth <howarth@bromo.med.uc.edu>
19165
19166 * tree-profile.c (tree_init_ic_make_global_vars): Make static
19167 variables TLS.
19168
19169 2010-03-30 Joseph Myers <joseph@codesourcery.com>
19170
19171 PR other/25232
19172 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
19173 and __unordtf2.
19174 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
19175 Include ___unordxf2 and ___unordtf2.
19176 * config/i386/libgcc-glibc.ver: Do not define inheritance from
19177 GCC_4.4.0 here.
19178
19179 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
19180
19181 * config/lm32/t-lm32: New file.
19182 * config.gcc: Use the above file when targetting lm32.
19183
19184 2010-03-28 Duncan Sands <baldrick@free.fr>
19185
19186 * Makefile.in (PLUGIN_HEADERS): Add except.h.
19187
19188 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
19189
19190 PR middle-end/43431
19191 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
19192 Improve vectorization cost model diagnostic.
19193
19194 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
19195
19196 PR middle-end/43436
19197 * tree-vect-data-refs.c (vect_analyze_data_refs): When
19198 compute_data_dependences_for_loop returns false, early exit
19199 and output an extra diagnostic for the failed data reference
19200 analysis.
19201
19202 2010-03-29 Richard Guenther <rguenther@suse.de>
19203
19204 PR tree-optimization/43560
19205 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
19206 (can_sm_ref_p): Treat stores to readonly locations as trapping.
19207
19208 2010-03-29 Jie Zhang <jie@codesourcery.com>
19209
19210 PR 43564
19211 * toplev.c (process_options): Set optimization_default_node
19212 and optimization_current_node.
19213 * opts.c (decode_options): Don't set optimization_default_node
19214 and optimization_current_node.
19215
19216 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
19217
19218 * config/rtems.h: Abandon -qrtems_debug.
19219
19220 2010-03-28 Jan Hubicka <jh@suse.cz>
19221
19222 PR tree-optimization/43505
19223 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
19224 map should not be copied.
19225
19226 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19227
19228 PR middle-end/41674
19229 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
19230 cdtors, set DECL_PRESERVE_P.
19231 * ipa.c (cgraph_externally_visible_p): Return true if declaration
19232 should be preseved.
19233
19234 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
19235
19236 PR tree-optimization/43528
19237 * stor-layout.c (place_field): Check that constant fits into
19238 unsigned HWI when skipping calculation of MS bitfield layout.
19239
19240 2010-03-27 Jan Hubicka <jh@suse.cz>
19241
19242 PR middle-end/43391
19243 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
19244 notice_global_symbol work.
19245
19246 2010-03-27 Jakub Jelinek <jakub@redhat.com>
19247
19248 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
19249 instead of dwarf2out_decl.
19250 (struct var_loc_node): Remove section_label field.
19251 (dwarf2out_function_decl): New function.
19252 (dwarf2out_var_location): Don't set section_label field.
19253 (dwarf2out_begin_function): Don't empty decl_loc_table here.
19254
19255 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
19256
19257 PR tree-optimization/43544
19258 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
19259 First argument for builtin vectorized function hook is now a
19260 tree to be able to distinguish between machine specific and
19261 standard builtins.
19262 * targhooks.c (default_builtin_vectorized_function): Ditto.
19263 * targhooks.h (default_builtin_vectorized_function): Ditto.
19264 * target.h (struct gcc_target): Ditto.
19265 * tree-vect-stmts.c (vectorizable_function): Ditto.
19266 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
19267 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
19268 Ditto.
19269
19270 2010-03-26 Joseph Myers <joseph@codesourcery.com>
19271
19272 PR c/43381
19273 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
19274 nested binding iff it is a FUNCTION_DECL.
19275 (store_parm_decls_newstyle): Pass nested=true to bind for
19276 FUNCTION_DECLs amongst parameters.
19277
19278 2010-03-26 Jakub Jelinek <jakub@redhat.com>
19279
19280 * var-tracking.c (vt_expand_loc_callback): Don't run
19281 cselib_expand_value_rtx_cb in dummy mode if
19282 cselib_dummy_expand_value_rtx_cb returned false.
19283
19284 * var-tracking.c (emit_note_insn_var_location): For one part
19285 notes with offset 0, don't add EXPR_LIST around the location.
19286 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
19287 add_location_or_const_value_attribute): Adjust for that change.
19288
19289 PR debug/43540
19290 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
19291 into first operand and location into second.
19292 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
19293 dw_cfi_oprnd_loc for DW_CFA_expression.
19294 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
19295 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
19296 assume first argument is regnum and second argument is location.
19297
19298 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
19299
19300 PR target/42113
19301 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
19302 of scratch register to DImode. Split to DImode comparison operator.
19303 Use SImode subreg of scratch register in the multiplication.
19304 (*cmp_sadd_sidi): Ditto.
19305 (*cmp_ssub_si): Ditto.
19306 (*cmp_ssub_sidi): Ditto.
19307
19308 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
19309
19310 PR target/43524
19311 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
19312 Remove invalid assert and wrong comment.
19313
19314 2010-03-26 Jakub Jelinek <jakub@redhat.com>
19315
19316 PR debug/43516
19317 * flags.h (final_insns_dump_p): New extern.
19318 * final.c (final_insns_dump_p): New variable.
19319 (rest_of_clean_state): Set it before -fdump-final-insns=
19320 dumping, clear afterwards.
19321 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
19322 MEM_ALIAS_SET on MEMs.
19323
19324 2010-03-26 David S. Miller <davem@davemloft.net>
19325
19326 * configure.ac: Fix sparc GOTDATA_OP bug check.
19327 * configure: Rebuild.
19328
19329 2010-03-26 Alan Modra <amodra@gmail.com>
19330
19331 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
19332
19333 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19334
19335 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
19336 TLS_SECTION_ASM_FLAG.
19337
19338 2010-03-25 Jakub Jelinek <jakub@redhat.com>
19339
19340 PR bootstrap/43511
19341 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
19342 Clear first_function_block_is_cold.
19343
19344 PR c/43385
19345 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
19346 argument if the argument is truth_value_p.
19347
19348 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19349
19350 * config/rs6000/constraints.md: Update copyright year for my changes.
19351
19352 PR target/43484
19353 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
19354 used in reg+reg addressing, swap registers.
19355
19356 2010-03-24 Jakub Jelinek <jakub@redhat.com>
19357
19358 PR debug/43293
19359 * target.h (struct gcc_target): Add code_end hook.
19360 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
19361 if not yet defined.
19362 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
19363 * toplev.c (compile_file): Call targetm.asm_out.code_end
19364 hook before unwind info/debug info output.
19365 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
19366 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
19367 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
19368 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
19369 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
19370 * config/i386/i386.c (ix86_file_end): Renamed to...
19371 (ix86_code_end): ... this. Make static. Don't call
19372 file_end_indicate_exec_stack. Emit unwind info using
19373 final_start_function/final_end_function.
19374 (darwin_x86_file_end): Remove.
19375 (TARGET_ASM_CODE_END): Define.
19376 * config/i386/i386.h (TARGET_ASM_FILE_END,
19377 NEED_INDICATE_EXEC_STACK): Don't define.
19378 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
19379 (TARGET_ASM_FILE_END): Define to darwin_file_end.
19380 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
19381 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
19382
19383 PR target/43498
19384 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
19385 at the beginning and final_end_function at the end.
19386 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
19387
19388 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19389
19390 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
19391 and Sun as TLS syntax.
19392 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
19393 * configure: Regenerate.
19394 * config.in: Regenerate.
19395 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
19396 (default_elf_asm_named_section): Use it.
19397 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
19398 (i386_output_dwarf_dtprel): Likewise.
19399 (output_addr_const_extra): Likewise.
19400 (output_pic_addr_const): Lowercase @GOTTPOFF.
19401 (output_addr_const_extra): Likewise.
19402 (output_pic_addr_const): Lowercase @GOTNTPOFF.
19403 (output_addr_const_extra): Likewise.
19404 (output_pic_addr_const): Lowercase @INDNTPOFF.
19405 (output_addr_const_extra): Likewise.
19406 (output_pic_addr_const): Lowercase @NTPOFF.
19407 (output_addr_const_extra): Likewise.
19408 (output_pic_addr_const): Lowercase @TPOFF.
19409 (output_addr_const_extra): Likewise.
19410 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
19411 (*tls_global_dynamic_64): Likewise.
19412 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
19413 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
19414
19415 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
19416 (ASM_OUTPUT_TLS_COMMON): Use it.
19417 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
19418
19419 PR target/38118
19420 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
19421 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
19422 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
19423 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
19424 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
19425 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
19426
19427 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19428
19429 * config/i386/i386.c (override_options): Don't accept
19430 -mtls-dialect=sun any longer.
19431 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
19432 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
19433 (*tls_local_dynamic_base_32_sun): Likewise.
19434 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
19435
19436 2010-03-24 Jakub Jelinek <jakub@redhat.com>
19437
19438 PR debug/43508
19439 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
19440 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
19441
19442 PR debug/43479
19443 * ira.c (adjust_cleared_regs): New function.
19444 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
19445
19446 PR debug/19192
19447 PR debug/43479
19448 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
19449 from gimple_block.
19450 * expr.c (expand_expr_real): Restore previous
19451 curr_insn_source_location and curr_insn_block after
19452 expand_expr_real_1 call.
19453 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
19454 instead of expand_expr_real_1.
19455
19456 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
19457
19458 PR rtl-optimization/43413
19459 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
19460 hard regs too.
19461
19462 2010-03-22 James E. Wilson <wilson@codesourcery.com>
19463
19464 PR target/43348
19465 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
19466 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
19467
19468 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
19469
19470 * config/i386/i386.c (ix86_target_string): Add -mfma.
19471 Fix a typo in comment.
19472
19473 2010-03-22 Mike Stump <mikestump@comcast.net>
19474
19475 PR target/23071
19476 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
19477 Don't overly align based upon packed packed fields.
19478
19479 2010-03-22 Jason Merrill <jason@redhat.com>
19480
19481 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
19482 Use () rather than [], and move before the element type.
19483
19484 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19485
19486 * doc/configfiles.texi (Configuration Files): Removed
19487 fixinc/Makefile*, intl/Makefile.*.
19488 * doc/makefile.texi: Fixed markup. Abstract from version
19489 control system used.
19490 (Makefile): Removed obsolete gcc/java/parse.y example.
19491 * doc/sourcebuild.texi: Likewise.
19492 (Top Level): Added config, gnattools, libdecnumber, libgcc,
19493 libgomp, libssp. Removed fastjar.
19494 (Miscellaneous Docs): Clarify location.
19495 Added COPYING3, COPYING3.LIB.
19496 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
19497
19498 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19499
19500 PR target/38085
19501 * config/i386/i386.c (x86_function_profiler)
19502 [!NO_PROFILE_COUNTERS]: Fix typo.
19503 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
19504 instead of callq.
19505
19506 2010-03-22 Janis Johnson <janis187@us.ibm.com>
19507 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19508
19509 * doc/sourcebuild.texi (Test Directives): Split into six
19510 subsections, with most of the current text in new subsections
19511 Directives, Selectors, and Final Actions.
19512 (Directives): Split list of test directives into multiple
19513 subsubsections.
19514 (Selectors): Describe use and syntax of selectors.
19515 (Effective-Target Keywords): Describe all existing keywords.
19516 (Add Options): Describe features for dg-add-options.
19517 (Require Support): Describe variants of dg-require-support.
19518 (Final Actions): Describe commands to use in dg-final.
19519
19520 2010-03-22 Michael Matz <matz@suse.de>
19521
19522 PR middle-end/43475
19523 * recog.c (validate_replace_rtx_group): Replace also in
19524 REG_EQUAL and REG_EQUIV notes.
19525
19526 2010-03-22 Richard Guenther <rguenther@suse.de>
19527
19528 PR tree-optimization/43390
19529 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
19530 sure vector extracts are type correct.
19531
19532 2010-03-22 Richard Guenther <rguenther@suse.de>
19533
19534 PR middle-end/40106
19535 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
19536 x * sqrt (x) even when optimizing for size if the target
19537 has native support for sqrt.
19538
19539 2010-03-22 Jakub Jelinek <jakub@redhat.com>
19540
19541 * varasm.c (make_decl_rtl_for_debug): Also clear
19542 flag_mudflap for the duration of make_decl_rtl call.
19543
19544 PR debug/43443
19545 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
19546 locs from preserved VALUEs.
19547
19548 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19549
19550 PR middle-end/42718
19551 * pa.md (movmemsi): Set align to one if zero.
19552 (movmemdi): Likewise.
19553
19554 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
19555
19556 PR target/42321
19557 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
19558 with their corresponding prologue pushes.
19559
19560 2010-03-20 Andrew Pinski <pinskia@gmail.com>
19561
19562 PR target/43156
19563 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
19564 at the begining or end.
19565 (spu_expand_epilogue): Likewise.
19566
19567 2010-03-20 Richard Guenther <rguenther@suse.de>
19568
19569 PR rtl-optimization/43438
19570 * combine.c (make_extraction): Properly zero-/sign-extend an
19571 extraction of the low part of a CONST_INT. Also handle
19572 CONST_DOUBLE.
19573
19574 2010-03-19 Mike Stump <mikestump@comcast.net>
19575
19576 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
19577 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
19578 (override_options): Use SUBTARGET32_DEFAULT_CPU.
19579
19580 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
19581
19582 PR c/43211
19583 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
19584 an error.
19585
19586 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
19587
19588 PR rtl-optimization/42258
19589 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
19590 use that may match DEF.
19591
19592 PR target/40697
19593 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
19594 the cost of loading the constant rather than assuming
19595 COSTS_N_INSNS (1).
19596 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
19597 outer code is AND, do the same tests as the andsi3 expander and
19598 return COSTS_N_INSNS (1) if and is cheap.
19599
19600 * optabs.c (avoid_expensive_constant): Fix formatting.
19601
19602 2010-03-19 Michael Matz <matz@suse.de>
19603
19604 PR c++/43116
19605 * attribs.c (decl_attributes): When rebuilding a function pointer
19606 type use the same qualifiers as the original pointer type.
19607
19608 2010-03-19 Martin Jambor <mjambor@suse.cz>
19609
19610 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
19611 and is_gimple_ip_invariant_address.
19612
19613 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19614
19615 Revert
19616 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19617
19618 * config/arm/arm.c (arm_override_options): Turn off
19619 flag_dwarf2_cfi_asm for AAPCS variants.
19620
19621 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19622
19623 PR target/43399
19624 * config/arm/arm.c (emit_multi_reg_push): Update comments.
19625 Use PRE_MODIFY instead of PRE_DEC.
19626 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
19627 (vfp_emit_fstmd): Likewise.
19628
19629 2010-03-19 Michael Matz <matz@suse.de>
19630
19631 PR target/43305
19632 * builtins.c (expand_builtin_interclass_mathfn,
19633 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
19634 if that fails.
19635
19636 2010-03-19 Richard Guenther <rguenther@suse.de>
19637
19638 PR tree-optimization/43415
19639 * tree-ssa-pre.c (phi_translate): Split out worker to ...
19640 (phi_translate_1): ... this.
19641 (phi_translate): Move all caching here. Cache all NARY
19642 and REFERENCE translations.
19643
19644 2010-03-19 David S. Miller <davem@davemloft.net>
19645
19646 With help from Eric Botcazou.
19647 * config/sparc/sparc.c: Include dwarf2out.h.
19648 (emit_pic_helper): Delete.
19649 (pic_helper_symbol_name): Delete.
19650 (pic_helper_emitted_p): Delete.
19651 (pic_helper_needed): New.
19652 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
19653 (get_pc_thunk_name): New.
19654 (load_pic_register): Remove 'delay_pic_helper' arg. Use
19655 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
19656 Set pic_helper_needed to true. Don't call emit_pic_helper.
19657 (sparc_expand_prologue): Update load_pic_register call.
19658 (sparc_output_mi_thunk): Likewise.
19659 (sparc_file_end): Emit a hidden comdat symbol for the PIC
19660 thunk if possible. Output CFI information as needed.
19661
19662 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19663 Jack Howarth <howarth@bromo.med.uc.edu>
19664
19665 PR target/36399
19666 * config/i386/i386.h: Fix ABI on darwin x86-32.
19667
19668 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
19669
19670 * tree.h: Declare make_decl_rtl_for_debug.
19671 * varasm.c (make_decl_rtl_for_debug): New.
19672 * dwarf2out.c (rtl_for_decl_location): Call it.
19673 * cfgexpand.c (expand_debug_expr): Call it.
19674
19675 2010-03-18 Jakub Jelinek <jakub@redhat.com>
19676
19677 PR bootstrap/43399
19678 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
19679 mem_mode.
19680
19681 PR bootstrap/43403
19682 * var-tracking.c (vt_init_cfa_base): Do nothing if
19683 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
19684
19685 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
19686
19687 PR debug/42873
19688 * var-tracking.c (canonicalize_vars_star): New.
19689 (dataflow_post_merge_adjust): Use it.
19690
19691 2010-03-18 Jakub Jelinek <jakub@redhat.com>
19692
19693 PR debug/43058
19694 * var-tracking.c (non_suitable_const): New function.
19695 (add_uses): For DEBUG_INSNs with constants, don't record any
19696 value, instead just the constant value itself.
19697 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
19698 is not VAR_LOC_UNKNOWN_P, set var to the constant.
19699 (emit_notes_in_bb): Likewise.
19700 (emit_note_insn_var_location): For onepart variables if
19701 cur_loc is a VOIDmode constant, use DECL_MODE.
19702
19703 2010-03-18 Martin Jambor <mjambor@suse.cz>
19704
19705 PR middle-end/42450
19706 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
19707 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
19708 all non-clones. Moved call redirection...
19709 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
19710 (cgraph_materialize_all_clones): Dispose of all
19711 combined_args_to_skip bitmaps.
19712 (verify_cgraph_node): Do not check for edges pointing to wrong
19713 nodes in inline clones.
19714 * tree-inline.c (copy_bb): Call
19715 cgraph_redirect_edge_call_stmt_to_callee.
19716 * ipa.c (cgraph_remove_unreachable_nodes): Call
19717 cgraph_node_remove_callees even when there are used clones.
19718
19719 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
19720
19721 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
19722
19723 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
19724
19725 PR target/43383
19726 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
19727 for 32bit.
19728
19729 2010-03-18 Michael Matz <matz@suse.de>
19730
19731 PR middle-end/43419
19732 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
19733 into sqrt(x) if we need to preserve signed zeros.
19734
19735 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
19736 Eric Botcazou <ebotcazou@adacore.com>
19737
19738 PR rtl-optimization/43360
19739 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
19740 note if we don't know its invariant status.
19741
19742 2010-03-18 Michael Matz <matz@suse.de>
19743
19744 PR tree-optimization/43402
19745 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
19746 PHI chains of ssa names registered for update.
19747
19748 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
19749
19750 PR target/42427
19751 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
19752 non-offsettable and pre_modify update addressing.
19753 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
19754 and "2" alternatives "#".
19755 (*movdd_softfloat32): Make all alternatives "#";
19756 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
19757 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
19758 (*movdf_softfloat32): Make all alternatives "#";
19759 (movdi): Use the new DIFD mode iterator to create a common splitter
19760 for movdi, movdf and movdd patterns.
19761
19762 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
19763
19764 * common.opt (dumpdir): Remove redundant tab.
19765
19766 2010-03-17 Martin Jambor <mjambor@suse.cz>
19767
19768 PR tree-optimization/43347
19769 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
19770 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
19771
19772 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
19773
19774 PR rtl-optimization/42216
19775 * regrename.c (create_new_chain): New function, broken out from...
19776 (scan_rtx_reg): ... here. Call it. Handle the case where we are
19777 appending a use to an empty chain.
19778 (build_def_use): Remove previous changes that convert OP_INOUT to
19779 OP_OUT operands; instead detect the case where an OP_INOUT operand
19780 uses a previously untracked register and create an empty chain for it.
19781
19782 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19783
19784 * doc/extend.texi (Function Attributes): Rewrite unfinished
19785 sentence in ms_abi documentation.
19786
19787 2010-03-17 Alan Modra <amodra@gmail.com>
19788
19789 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
19790 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
19791 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
19792 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
19793
19794 2010-03-16 Richard Henderson <rth@redhat.com>
19795
19796 PR middle-end/43365
19797 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
19798 (lower_try_finally): Save and restore eh_seq around the expansion
19799 of the try-finally.
19800
19801 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
19802
19803 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
19804 statements before splitting block.
19805
19806 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19807
19808 * doc/sourcebuild.texi (Testsuites): Fix markup.
19809 Use pathnames relative to gcc/testsuite.
19810 (Test Directives): Move description of how timeout is determined.
19811 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
19812 (C Tests): Correct gcc.misc-tests directory.
19813 Framework tests now live in gcc.test-framework.
19814
19815 2010-03-16 Richard Guenther <rguenther@suse.de>
19816
19817 PR middle-end/43379
19818 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
19819 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
19820
19821 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
19822 Alexandre Oliva <aoliva@redhat.com>
19823
19824 PR tree-optimization/42917
19825 * lambda-code.c (remove_iv): Skip debug statements.
19826 (lambda_loopnest_to_gcc_loopnest): Likewise.
19827 (not_interesting_stmt): Debug statements are not interesting.
19828
19829 2010-03-16 Jakub Jelinek <jakub@redhat.com>
19830
19831 PR debug/43051
19832 PR debug/43092
19833 * cselib.c (cselib_preserve_constants,
19834 cfa_base_preserved_val): New static variables.
19835 (preserve_only_constants): New function.
19836 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
19837 clear its REG_VALUES. If cselib_preserve_constants, don't
19838 empty the whole hash table, but preserve there VALUEs with constants,
19839 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
19840 (cselib_preserve_cfa_base_value): New function.
19841 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
19842 (cselib_init): Change argument to int bitfield. Set
19843 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
19844 is in it.
19845 (cselib_finish): Clear cselib_preserve_constants and
19846 cfa_base_preserved_val.
19847 * cselib.h (enum cselib_record_what): New enum.
19848 (cselib_init): Change argument to int.
19849 (cselib_preserve_cfa_base_value): New prototype.
19850 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
19851 * dse.c (dse_step1): Likewise.
19852 * cfgcleanup.c (thread_jump): Likewise.
19853 * sched-deps.c (sched_analyze): Likewise.
19854 * gcse.c (local_cprop_pass): Likewise.
19855 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
19856 If FN is non-NULL, call the callback always and whenever it returns
19857 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
19858 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
19859 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
19860 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
19861 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
19862 * var-tracking.c: Include recog.h.
19863 (bb_stack_adjust_offset): Remove.
19864 (vt_stack_adjustments): Don't call it, instead just gather the
19865 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
19866 (adjust_stack_reference): Remove.
19867 (compute_cfa_pointer): New function.
19868 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
19869 (struct adjust_mem_data): New type.
19870 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
19871 functions.
19872 (get_address_mode): New function.
19873 (replace_expr_with_values): Use it.
19874 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
19875 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
19876 (adjust_sets): Remove.
19877 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
19878 Use get_address_mode.
19879 (get_adjusted_src): Remove.
19880 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
19881 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
19882 (add_with_sets): Don't call adjust_sets.
19883 (fp_setter, vt_init_cfa_base): New functions.
19884 (vt_initialize): Change return type to bool. Move most of pool etc.
19885 initialization to the beginning of the function from end. Pass
19886 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
19887 If !frame_pointer_needed, call vt_stack_adjustment before mos
19888 vector is filled, call vt_init_cfa_base if argp/framep has been
19889 eliminated to sp. If frame_pointer_needed and argp/framep has
19890 been eliminated to hard frame pointer, set
19891 hard_frame_pointer_adjustment and call vt_init_cfa_base after
19892 encountering fp setter in the prologue. For MO_ADJUST, call
19893 log_op_type before pusing the op into mos vector, not afterwards.
19894 Call adjust_insn before cselib_process_insn/add_with_sets,
19895 call cancel_changes (0) afterwards.
19896 (variable_tracking_main_1): Adjust for vt_initialize calling
19897 vt_stack_adjustments and returning whether it succeeded or not.
19898
19899 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
19900
19901 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
19902 debug statements.
19903
19904 2010-03-15 Jakub Jelinek <jakub@redhat.com>
19905
19906 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
19907 has been set.
19908 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
19909 drap_reg has not been set.
19910
19911 2010-03-15 Michael Matz <matz@suse.de>
19912
19913 PR middle-end/43300
19914 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
19915 use it to expand block copies.
19916 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
19917 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
19918 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
19919
19920 2010-03-15 Richard Guenther <rguenther@suse.de>
19921
19922 PR tree-optimization/43367
19923 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
19924 elimination check.
19925
19926 2010-03-15 Richard Guenther <rguenther@suse.de>
19927
19928 PR tree-optimization/43317
19929 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
19930
19931 2010-03-15 Martin Jambor <mjambor@suse.cz>
19932
19933 PR tree-optimization/43141
19934 * tree-sra.c (create_abstract_origin): New function.
19935 (modify_function): Call create_abstract_origin.
19936
19937 2010-03-15 Chris Demetriou <cgd@google.com>
19938
19939 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
19940 wasn't copied.
19941
19942 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
19943
19944 PR middle-end/43354
19945 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
19946 call insert_out_of_ssa_copy for default definitions.
19947
19948 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
19949
19950 * graphite-clast-to-gimple.c (my_long_long): Defined.
19951 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
19952 * graphite-sese-to-poly.c (my_long_long): Defined.
19953 (scop_ivs_can_be_represented): Use it.
19954
19955 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
19956
19957 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
19958 graphite-max-bbs-per-function, and loop-block-tile-size.
19959 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
19960 with "maximum".
19961 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
19962
19963 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
19964
19965 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
19966 forward declaration.
19967 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
19968 (add_upper_bounds_from_estimated_nit): New.
19969 (build_loop_iteration_domains): Use it.
19970
19971 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
19972
19973 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
19974
19975 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
19976
19977 PR middle-end/43306
19978 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
19979 should be an INTEGER_CST. Also handle CASE_CONVERT.
19980
19981 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
19982
19983 * graphite.c (graphite_initialize): To bound the number of bbs per
19984 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
19985 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
19986 * doc/invoke.texi: Document it.
19987
19988 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
19989
19990 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
19991 * graphite-sese-to-poly.h (build_poly_scop): Same.
19992
19993 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
19994
19995 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
19996 the number of parameters in the scop. Use as an upper bound
19997 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
19998 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
19999 * doc/invoke.texi: Document it.
20000
20001 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
20002
20003 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
20004 * doc/c-tree.texi: Remove.
20005 * doc/generic.texi: Merge c-tree.texi here.
20006 * doc/gccint.texi (Trees): Remove menu entry.
20007 (c-tree.texi): Remove @include.
20008 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
20009 * doc/languages.texi (Reading RTL): Ditto.
20010
20011 2010-03-12 Steve Ellcey <sje@cup.hp.com>
20012
20013 PR target/42869
20014 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
20015
20016 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
20017
20018 PR middle-end/42431
20019 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
20020 code added to work around reload clobbering CONST insns.
20021
20022 2010-03-12 Jakub Jelinek <jakub@redhat.com>
20023
20024 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
20025 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
20026 (cselib_preserve_only_values): Remove retain argument, don't
20027 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
20028 * cselib.h (cselib_preserve_only_values): Remove retain argument.
20029 * var-tracking.c (micro_operation): Move insn field before union.
20030 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
20031 (struct variable_tracking_info_def): Remove n_mos field, change
20032 mos into a vector of micro_operations.
20033 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
20034 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
20035 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
20036 changing into a vector.
20037 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
20038 come before all other uops generated by add_stores.
20039 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
20040 argument removal.
20041 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
20042 a vector. Run just one pass over the bbs instead of separate counting
20043 and computation phase.
20044 (vt_finalize): Free VTI (bb)->mos vector instead of array.
20045
20046 PR debug/43329
20047 * tree-inline.c (remap_decls): Put old_var rather than origin_var
20048 into *nonlocalized_list vector.
20049 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
20050 even if origin is non-NULL.
20051 (gen_variable_die): Likewise.
20052 (process_scope_var): Don't change origin.
20053 (gen_decl_die): Likewise.
20054 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
20055 before adding new edges instead of after it, fix moving over
20056 debug stmts.
20057
20058 2010-03-11 David S. Miller <davem@davemloft.net>
20059
20060 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
20061 of four.
20062 * configure: Rebuild.
20063
20064 2010-03-11 Martin Jambor <mjambor@suse.cz>
20065
20066 PR tree-optimization/43257
20067 * tree.c (assign_assembler_name_if_neeeded): New function.
20068 (free_lang_data_in_cgraph): Assembler name assignment moved to the
20069 above new function.
20070 * tree.h (assign_assembler_name_if_neeeded): Declare.
20071 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
20072 the function if needed.
20073
20074 2010-03-11 Chris Demetriou <cgd@google.com>
20075
20076 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
20077 include/stdint-gcc.h, and include/stdint.h world-readable.
20078
20079 2010-03-11 Richard Guenther <rguenther@suse.de>
20080
20081 PR tree-optimization/43255
20082 * tree-vrp.c (process_assert_insertions_for): Do not insert
20083 asserts for trivial conditions.
20084
20085 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20086
20087 PR tree-optimization/43280
20088 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
20089 generation. Move calculation of size out of the if branch.
20090 (find_bswap): Modify compare number generation.
20091
20092 2010-03-11 Richard Guenther <rguenther@suse.de>
20093
20094 PR lto/43200
20095 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
20096 (input_gimple_stmt): Fixup handled component types during
20097 operand read. Also fix up decls in ADDR_EXPRs.
20098
20099 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
20100
20101 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
20102 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
20103
20104 2010-03-10 Jan Hubicka <jh@suse.cz>
20105
20106 PR c/43288
20107 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
20108 * varasm.c (get_variable_section): Don't do that here...
20109 (make_decl_rtl): ... and here.
20110 (do_assemble_alias): Produce decl RTL.
20111 (assemble_alias): Likewise.
20112
20113 2010-03-10 Jakub Jelinek <jakub@redhat.com>
20114
20115 PR debug/43290
20116 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
20117 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
20118 of fde->vdrap_reg.
20119 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
20120 (based_loc_descr): Only express drap or vdrap regno based expressions
20121 using DW_OP_fbreg when not optimizing.
20122 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
20123 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
20124 REG_CFA_SET_VDRAP note.
20125
20126 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
20127
20128 PR tree-optimization/43236
20129 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
20130 error in calculation of base address in reverse iteration case.
20131 (generate_builtin): Take number of latch executions if the statement
20132 is in the latch.
20133
20134 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
20135
20136 PR middle-end/42859
20137 * tree-eh.c: Include pointer-set.h.
20138 (lower_eh_dispatch): Filter out duplicate case labels and
20139 remove the unneeded edge when the label is unused. Return
20140 true when some edges are removed.
20141 (execute_lower_eh_dispatch): When any lowering resulted in
20142 removing an edge, also delete unreachable blocks.
20143
20144 2010-03-10 Jakub Jelinek <jakub@redhat.com>
20145
20146 PR bootstrap/43287
20147 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
20148 UNSPEC_MACHOPIC_OFFSET.
20149
20150 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
20151
20152 PR target/43294
20153 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
20154 (m68k_delegitimize_address): New function.
20155
20156 2010-03-09 Jakub Jelinek <jakub@redhat.com>
20157
20158 PR debug/43299
20159 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
20160
20161 PR debug/43299
20162 * var-tracking.c (adjust_sets): New function.
20163 (count_with_sets, add_with_sets): Use it.
20164 (get_adjusted_src): New inline function.
20165 (add_stores): Use it.
20166
20167 PR debug/43304
20168 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
20169 call cselib_dummy_expand_value_rtx_cb instead of
20170 cselib_expand_value_rtx_cb.
20171
20172 PR debug/43293
20173 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
20174 * config/i386/i386.c: Include debug.h and dwarf2out.h.
20175 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
20176 and .cfi_endproc around the pic thunks.
20177 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
20178 all queued unwind info register saves are saved before the call.
20179 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
20180 considered as sp-=4 for unwind info and the pop as sp+=4 which
20181 also clobbers dest, but doesn't actually restore it.
20182
20183 PR debug/43290
20184 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
20185 RTX_FRAME_RELATED_P.
20186
20187 2010-03-09 Jie Zhang <jie@codesourcery.com>
20188
20189 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
20190 whitespaces in output template.
20191
20192 2010-03-09 Jie Zhang <jie@codesourcery.com>
20193
20194 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
20195 out array boundary.
20196
20197 2010-03-08 Jakub Jelinek <jakub@redhat.com>
20198
20199 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
20200 builtins.exp in a separate job.
20201
20202 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20203
20204 * graphite-sese-to-poly.c (add_param_constraints): Use
20205 lower_bound_in_type and upper_bound_in_type.
20206
20207 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20208
20209 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
20210 instead of unsigned_type_node.
20211
20212 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20213 Reza Yazdani <reza.yazdani@amd.com>
20214
20215 PR middle-end/43065
20216 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
20217 on pointer type parameters.
20218
20219 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
20220
20221 PR middle-end/42644
20222 PR middle-end/42130
20223 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
20224 handle conversions from pointer to integers.
20225 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
20226 induction variable, to be able to work with code generated by CLooG.
20227 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
20228 (build_poly_scop): Bail out if we cannot codegen a loop.
20229
20230 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
20231
20232 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
20233 code generation with gloog_error.
20234
20235 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20236
20237 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
20238 Call fold_convert on all the returned values.
20239 (expand_scalar_variables_expr): Pass to
20240 expand_scalar_variables_ssa_name the type of the resulting expression.
20241
20242 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20243
20244 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
20245 ppl_min_for_le_pointset.
20246 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
20247 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
20248
20249 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20250
20251 * graphite-dependences.c (map_into_dep_poly): Removed.
20252 (dependence_polyhedron_1): Use combine_context_id_scat.
20253
20254 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20255
20256 * graphite-poly.h (struct poly_scattering): Add layout documentation.
20257 (struct poly_bb): Same.
20258 (combine_context_id_scat): New.
20259
20260 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20261
20262 PR middle-end/42326
20263 * sese.c (name_defined_in_loop_p): Return false for default
20264 definitions.
20265
20266 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20267
20268 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
20269 and clean up the logic.
20270
20271 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
20272
20273 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
20274 early return.
20275
20276 2010-03-08 Jakub Jelinek <jakub@redhat.com>
20277
20278 * var-tracking.c (remove_cselib_value_chains): Define only for
20279 ENABLE_CHECKING.
20280 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
20281 delete_slot_part, emit_notes_for_differences_1): Don't call
20282 remove_cselib_value_chains here.
20283 (set_slot_part, emit_notes_for_differences_2): Don't call
20284 add_cselib_value_chains here.
20285 (preserved_values): New vector.
20286 (preserve_value): New function.
20287 (add_uses, add_stores, vt_add_function_parameters): Use it
20288 instead of cselib_preserve_value.
20289 (changed_values_stack): New vector.
20290 (check_changed_vars_0): New function.
20291 (check_changed_vars_1, check_changed_vars_2): Use it.
20292 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
20293 changed_values_stack VALUEs.
20294 (vt_emit_notes): For all preserved_values call
20295 add_cselib_value_chains. If ENABLE_CHECKING call
20296 remove_cselib_value_chains before verifying value_chains is empty.
20297 Initialize and free changed_values_stack.
20298 (vt_initialize): Initialize preserved_values.
20299 (vt_finalize): Free preserved_values.
20300
20301 2010-03-08 Richard Guenther <rguenther@suse.de>
20302
20303 PR tree-optimization/43269
20304 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
20305 region detection.
20306
20307 2010-03-08 Martin Jambor <mjambor@suse.cz>
20308
20309 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
20310 (ipa_is_param_called): Removed.
20311 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
20312 (ipa_print_node_params): Do not print the called flag.
20313 (ipa_write_node_info): Do not stream the called flag.
20314 (ipa_read_node_info): Likewise.
20315
20316 2010-03-07 Jakub Jelinek <jakub@redhat.com>
20317
20318 PR debug/43176
20319 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
20320 * cselib.c (struct expand_value_data): Add dummy field.
20321 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
20322 dummy to false.
20323 (cselib_dummy_expand_value_rtx_cb): New function.
20324 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
20325 any rtl.
20326 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
20327 * var-tracking.c: Include pointer-set.h.
20328 (variable): Change n_var_parts to char from int. Add
20329 cur_loc_changed and in_changed_variables fields.
20330 (variable_canonicalize): Remove.
20331 (shared_var_p): New inline function.
20332 (unshare_variable): Maintain cur_loc_changed and
20333 in_changed_variables fields. If var was in changed_variables,
20334 replace it there with new_var. Just copy cur_loc instead of
20335 resetting it to something else.
20336 (variable_union): Don't recompute cur_loc. Use shared_var_p.
20337 (dataflow_set_union): Don't call variable_canonicalize.
20338 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
20339 of their DEBUG_EXPR_TREE_DECLs.
20340 (canonicalize_loc_order_check): Verify that cur_loc is NULL
20341 and in_changed_variables and cur_loc_changed is false.
20342 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
20343 and cur_loc_changed. Don't update cur_loc here.
20344 (variable_merge_over_src): Don't call variable_canonicalize.
20345 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
20346 removing loc that is equal to cur_loc, clear cur_loc,
20347 set cur_loc_changed and ensure variable_was_changed is called.
20348 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
20349 compare pointers in cur_loc check, if it is equal to loc,
20350 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
20351 (variable_different_p): Remove compare_current_location argument,
20352 don't compare cur_loc.
20353 (dataflow_set_different_1): Adjust variable_different_p caller.
20354 (variable_was_changed): If dv had some var in changed_variables
20355 already, reset in_changed_variables flag for it and propagate
20356 cur_loc_changed over to the new variable. On empty var
20357 always set cur_loc_changed. Set in_changed_variables on whatever
20358 var is added to changed_variables.
20359 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
20360 Use shared_var_p. When removing loc that is equal to cur_loc,
20361 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
20362 end, don't set it to something else, just call variable_was_changed.
20363 (delete_slot_part): Use shared_var_p. When cur_loc equals to
20364 loc being removed, clear cur_loc and set cur_loc_changed.
20365 Set cur_loc_changed if all locations have been removed.
20366 (struct expand_loc_callback_data): New type.
20367 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
20368 allocated. Always create SUBREGs if simplify_subreg failed.
20369 Prefer to use cur_loc, when that fails and still in
20370 changed_variables (and seen first time) recompute it. Set
20371 cur_loc_changed of variables which had to change cur_loc and
20372 compute elcd->cur_loc_changed if any of the subexpressions used
20373 had to change cur_loc.
20374 (vt_expand_loc): Adjust to pass arguments in
20375 expand_loc_callback_data structure.
20376 (vt_expand_loc_dummy): New function.
20377 (emitted_notes): New variable.
20378 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
20379 that weren't used for any other decl in current
20380 emit_notes_for_changes call call vt_expand_loc_dummy to update
20381 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
20382 first loc_chain location if NULL before. Always use just
20383 cur_loc instead of first loc_chain location. When cur_loc_changed
20384 is false, when not --enable-checking=rtl just don't emit any note.
20385 When rtl checking, compute the note and assert it is the same
20386 as previous note. Clear cur_loc_changed and in_changed_variables
20387 at the end before removing from changed_variables.
20388 (check_changed_vars_3): New function.
20389 (emit_notes_for_changes): Traverse changed_vars to call
20390 check_changed_vars_3 on each changed var.
20391 (emit_notes_for_differences_1): Clear cur_loc_changed and
20392 in_changed_variables. Recompute cur_loc of new_var.
20393 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
20394 (vt_emit_notes): Initialize and destroy emitted_notes.
20395
20396 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
20397
20398 PR rtl-optimization/42220
20399 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
20400 Use verify_reg_tracked to determine if we should use OP_OUT rather
20401 than OP_INOUT.
20402 (build_def_use): If we see an in-out operand for a register that we
20403 know nothing about, treat is an output if possible, fail the block if
20404 not.
20405
20406 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
20407
20408 PR debug/42897
20409 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
20410 permanently.
20411
20412 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
20413
20414 PR debug/42897
20415 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
20416 uses of relevant DEFs that are dead outside the loop too.
20417
20418 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
20419
20420 * var-tracking.c (dataflow_set_merge): Swap src and src2.
20421 Reverted:
20422 2010-01-13 Jakub Jelinek <jakub@redhat.com>
20423 PR debug/41371
20424 * var-tracking.c (values_to_unmark): New variable.
20425 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
20426 values_to_unmark vector. Moved body to...
20427 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
20428 instead queue it into values_to_unmark vector.
20429 (vt_find_locations): Free values_to_unmark vector.
20430
20431 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
20432
20433 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
20434 (site.exp): Export them when plugins are enabled.
20435
20436 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
20437
20438 PR middle-end/42326
20439 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
20440 that contain scevs.
20441 (chrec_fold_multiply): Same.
20442
20443 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
20444
20445 PR c/43248
20446 * c-decl.c (build_compound_literal): Return early if init is
20447 an error_mark_node.
20448
20449 2010-03-04 Martin Jambor <mjambor@suse.cz>
20450
20451 PR tree-optimization/43164
20452 PR tree-optimization/43191
20453 * tree-sra.c (type_consists_of_records_p): Reject records with
20454 zero-size bit-fields at the end.
20455
20456 2010-03-04 Mike Stump <mikestump@comcast.net>
20457
20458 * Makefile.in (TAGS): Remove *.y.
20459
20460 2010-03-04 Richard Guenther <rguenther@suse.de>
20461
20462 PR tree-optimization/40761
20463 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
20464 in reverse order.
20465 (my_rev_post_order_compute): New function.
20466 (init_pre): Call it.
20467
20468 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
20469
20470 PR middle-end/43209
20471 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
20472 decrease the cost of an IV candidate when the cost is infinite.
20473
20474 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20475
20476 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
20477 Use '3DNow!' for the extension of that name, ensure normal space
20478 after the string.
20479 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
20480
20481 2010-03-03 Jeff Law <law@redhat.com>
20482
20483 * PR middle-end/32693
20484 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
20485 than gen_rtx_SUBREG.
20486 (extract_bit_field_1): Likewise.
20487
20488 2010-03-03 Janis Johnson <janis187@us.ibm.com>
20489
20490 * doc/sourcebuild.texi (Test directives): Document that arguments
20491 include-opts and exclude-opts are now optional for dg-skip-if,
20492 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
20493
20494 2010-03-03 Jason Merrill <jason@redhat.com>
20495
20496 PR c++/12909
20497 * cgraph.h (varpool_node): Add extra_name field.
20498 * varpool.c (varpool_extra_name_alias): New.
20499 (varpool_assemble_decl): Emit extra name aliases.
20500 (varpool_mark_needed_node): Look past an extra name alias.
20501 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
20502 * lto-streamer-in.c (lto_input_tree): Read it.
20503 * lto-streamer-out.c (output_unreferenced_globals): Write it.
20504
20505 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
20506
20507 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
20508 (sparc*-*-solaris2*): ...this.
20509
20510 2010-03-03 Jakub Jelinek <jakub@redhat.com>
20511
20512 PR debug/43229
20513 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
20514 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
20515 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
20516 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
20517
20518 PR debug/43237
20519 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
20520 fallthrough to default handling, just with want_address 0 instead of 2.
20521 For single element lists, add_AT_loc directly, otherwise create an
20522 artificial variable DIE and stick location list to it.
20523
20524 PR debug/43177
20525 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
20526 (VAL_EXPR_HAS_REVERSE): Define.
20527 (reverse_op): New function.
20528 (add_stores): For reversible operations add an extra MO_VAL_USE.
20529
20530 2010-03-02 Jason Merrill <jason@redhat.com>
20531
20532 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
20533
20534 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
20535
20536 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
20537 (sparc64-*-linux*): Likewise.
20538 (sparc64-*-solaris2*): Include assembler files before linker ones.
20539 (sparc-*-solaris2*): Simplify and reorder to match previous case.
20540 * config/sparc/gas.h: Delete.
20541 * config/sparc/sol2-64.h: Add copyright notice.
20542 * config/sparc/sol2-gas-bi.h: Likewise.
20543 * config/sparc/sol2-gld.h: Likewise.
20544 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
20545 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
20546 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
20547 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
20548 (sparc_elf_asm_named_section): Rename into...
20549 (sparc_solaris_elf_asm_named_section): ...this. Always define.
20550
20551 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
20552
20553 * config/alpha/alpha.c (override_options): Fix -mtune error message.
20554
20555 2010-03-02 Jeff Law <law@redhat.com>
20556
20557 PR middle-end/42431
20558 * reload1.c (rtx_p, substitute_stack): Declare.
20559 (substitute): Record addresses of changed rtxs.
20560 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
20561 Restore the original rtx when complete.
20562 (reload): Free subsitute_stack when complete.
20563
20564 2010-03-02 Janis Johnson <janis187@us.ibm.com>
20565
20566 * doc/gccint.texi (menu): Add Testsuites as a chapter.
20567 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
20568 new chapter.
20569 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
20570 LTO Testing, gcov Testing, profopt Testing, compat Testing,
20571 Torture Tests): Change from subsection to section.
20572
20573 2010-03-02 Jakub Jelinek <jakub@redhat.com>
20574 Steven Bosscher <steven@gcc.gnu.org>
20575
20576 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
20577 instead of bb.
20578
20579 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
20580
20581 PR middle-end/42640
20582 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
20583 the assignment from the new induction variable to the assignment
20584 of the value from the original loop PHI function.
20585
20586 2010-03-01 Janis Johnson <janis187@us.ibm.com>
20587 Daniel Jacobowitz <dan@codesourcery.com>
20588
20589 * doc/sourcebuild.texi (Test directives): Clarify options to
20590 dg-skip-if.
20591
20592 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20593
20594 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
20595 Disable cfi directives unless GCC and gas agree on using read-only
20596 .eh_frame sections for 64-bit.
20597 * configure: Regenerate.
20598
20599 2010-03-01 Richard Guenther <rguenther@suse.de>
20600
20601 PR tree-optimization/43220
20602 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
20603 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
20604
20605 2010-03-01 Richard Guenther <rguenther@suse.de>
20606 Martin Jambor <mjambor@suse.cz>
20607
20608 PR middle-end/41250
20609 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
20610 gimplified parameters.
20611
20612 2010-03-01 Christian Bruel <christian.bruel@st.com>
20613
20614 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
20615
20616 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
20617
20618 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
20619
20620 2010-03-01 Richard Guenther <rguenther@suse.de>
20621
20622 PR middle-end/43213
20623 * expr.c (expand_assignment): Use the alias-oracle to tell
20624 if the rhs aliases the result decl.
20625
20626 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20627
20628 PR pch/14940
20629 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
20630 to sol_gt_pch_get_address.
20631 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
20632 64-bit, SPARC and x86.
20633 (sol_gt_pch_get_address): New function.
20634
20635 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
20636
20637 * toplev.h (inform_n, error_n): Declare.
20638 * diagnostic.c (inform_n, error_n): New function.
20639
20640 2010-03-01 Jakub Jelinek <jakub@redhat.com>
20641
20642 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
20643 has no rtl yet when processing local_decls, queue it and recheck
20644 if deferred stack allocation hasn't assigned it rtl.
20645
20646 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
20647
20648 * config/sh/sh.c (unspec_bbr_uid): New.
20649 (gen_block_redirect): Use it instead of INSN_UID.
20650 (gen_far_branch): Likewise.
20651
20652 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
20653
20654 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
20655 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
20656
20657 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20658
20659 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
20660 (Warning Options): -Wno-conversion-null is valid for
20661 Objective-C++ as well.
20662 * doc/tm.texi (Named Address Spaces): Likewise.
20663 * doc/plugins.texi (Plugins): Replace TABs with spaces.
20664 * doc/tree-ssa.texi (Tree SSA): Likewise.
20665
20666 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
20667
20668 PR bootstrap/43202
20669 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
20670 by default. Don't set the default arch for
20671 i[34567]86-*-darwin*|x86_64-*-darwin*.
20672
20673 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
20674
20675 PR bootstrap/43202
20676 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
20677 default. Set the default 32bit/64bit archs with $with_arch
20678 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
20679
20680 2010-02-27 Richard Guenther <rguenther@suse.de>
20681
20682 PR tree-optimization/43186
20683 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
20684 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
20685 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
20686 unroller iterations.
20687
20688 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
20689
20690 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
20691 required and i[34567]86-*-* targets don't support 64bit ISA.
20692
20693 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
20694
20695 PR ada/43096
20696 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
20697 the same alias set.
20698
20699 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
20700
20701 * config.gcc: Set the default arch at least to Prescott for
20702 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
20703 if SSE math is enabled.
20704
20705 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
20706
20707 * diagnostic.c (diagnostic_initialize): Update.
20708 (diagnostic_report_diagnostic): Test inhibit_notes_p for
20709 informative notes.
20710 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
20711 (diagnostic_inhibit_notes): New.
20712 * toplev.c (process_options): inhibit notes with -fcompare-debug.
20713
20714 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
20715
20716 PR c/20631
20717 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
20718 * doc/standards.texi: Likewise.
20719 * doc/extend.texi: Likewise.
20720 * doc/trouble.texi: Likewise.
20721 * doc/cppopts.texi: Likewise.
20722 * doc/install.texi: Likewise.
20723 * c.opt (std=c90,std=gnu90): New options.
20724 * c-opts.c (c_common_handle_option): Handle them.
20725
20726 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
20727
20728 PR c/24577
20729 * c-decl.c (undeclared_variable): Use an informative note.
20730
20731 2010-02-26 Richard Guenther <rguenther@suse.de>
20732
20733 PR tree-optimization/43186
20734 * gimple.h (gimple_fold): Remove.
20735 * gimple.c (gimple_fold): Remove. Inline into single user ...
20736 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
20737 Try harder for conditions.
20738
20739 2010-02-26 Jakub Jelinek <jakub@redhat.com>
20740
20741 PR debug/43190
20742 * function.c (used_types_insert): Don't skip through named pointer
20743 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
20744 and it is different from the main variant's type.
20745
20746 2010-02-26 Nick Clifton <nickc@redhat.com>
20747
20748 * config/rx/rx.md (sminsi3): Remove bogus alternative.
20749
20750 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
20751
20752 * config.gcc: Support --with-fpmath=sse for x86.
20753
20754 * config/i386/ssemath.h: New.
20755
20756 * doc/install.texi (--with-fpmath=sse): Documented.
20757
20758 2010-02-26 Richard Guenther <rguenther@suse.de>
20759
20760 PR tree-optimization/43188
20761 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
20762 vector types of over-aligned element type.
20763
20764 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
20765
20766 PR target/43175
20767 * config/i386/i386.c (expand_vec_perm_blend): Use correct
20768 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
20769
20770 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
20771
20772 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
20773
20774 2010-02-26 Jakub Jelinek <jakub@redhat.com>
20775
20776 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
20777 * var-tracking.c: Include diagnostic.h.
20778 (debug_dv): New function.
20779 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
20780
20781 PR debug/43160
20782 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
20783 (add_value_chain, add_value_chains, remove_value_chain,
20784 remove_value_chains): Handle DEBUG_EXPRs.
20785 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
20786
20787 PR debug/43161
20788 * regcprop.c (struct queued_debug_insn_change): New type.
20789 (struct value_data_entry): Add debug_insn_changes field.
20790 (struct value_data): Add n_debug_insn_changes field.
20791 (debug_insn_changes_pool): New variable.
20792 (free_debug_insn_changes, apply_debug_insn_changes,
20793 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
20794 (kill_value_one_regno): Call free_debug_insn_changes if needed.
20795 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
20796 fields.
20797 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
20798 changes for them.
20799 (copyprop_hardreg_forward_1): Don't call apply_change_group for
20800 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
20801 changes, call cprop_find_used_regs via note_stores.
20802 (copyprop_hardreg_forward): When copying vd from predecessor
20803 which has any queued DEBUG_INSN changes, make sure the pointers are
20804 cleared. At the end call df_analyze and then if there are any
20805 DEBUG_INSN changes queued at the end of some basic block for still
20806 live registers, apply them.
20807 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
20808
20809 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
20810
20811 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
20812 (arm*-*-*): Ditto.
20813
20814 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
20815
20816 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
20817 targets. Set the default with_cpu/with_arch from arch/cpu.
20818 Allow x86-64 and native for with_cpu/with_arch.
20819
20820 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
20821
20822 * ebitmap.c: Change calls to verify_popcount with calls to
20823 sbitmap_verify_popcount.
20824 (ebitmap_clear_bit): Fixed map->cacheindex test and
20825 map>cache update when bit clearing results in an empty
20826 element.
20827
20828 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
20829
20830 PR target/43154
20831 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
20832 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
20833 and support both V2DF and V2DI modes.
20834 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
20835 support both V2DF and V2DI modes.
20836 (general): Delete trailing whitespace from a few patterns.
20837
20838 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20839 V2DF/V2DI interleave high/low builtins.
20840
20841 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
20842 new VSX builtins.
20843
20844 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
20845 interleave high/low functions.
20846
20847 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
20848
20849 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
20850 #pragma extern_prefix.
20851
20852 2010-02-25 Jakub Jelinek <jakub@redhat.com>
20853
20854 PR debug/43166
20855 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
20856 BLKmode, assert op0 is a MEM and just adjust its mode.
20857
20858 PR debug/43165
20859 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
20860 if bitpos isn't multiple of mode's bitsize.
20861
20862 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
20863
20864 * c.opt (-ftemplate-depth=): New.
20865 (-ftemplate-depth-): Deprecate.
20866 * optc-gen.awk: Handle -ftemplate-depth=.
20867 * opth-gen.awk: Likewise.
20868 * c-opts.c (c_common_handle_option): Likewise.
20869 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
20870
20871 2010-02-24 Jason Merrill <jason@redhat.com>
20872
20873 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
20874
20875 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20876
20877 * cfg.c (alloc_aux_for_block): Remove inline.
20878 (alloc_aux_for_edge): Likewise.
20879
20880 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20881
20882 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
20883
20884 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20885
20886 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
20887 * config/i386/sol2-gas.h: New file.
20888 * config.gcc (i[34567]86-*-solaris2*): Use it.
20889
20890 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
20891
20892 PR c/43128
20893 * c-typeck.c (ep_convert_and_check): New.
20894 (build_conditional_expr): Use it.
20895 (build_binary_op): Likewise.
20896
20897 2010-02-24 Jakub Jelinek <jakub@redhat.com>
20898
20899 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
20900
20901 PR debug/43150
20902 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
20903 bounds even for -O+.
20904 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
20905 expr needs to have DECL_NAME set.
20906
20907 2010-02-24 Nick Clifton <nickc@redhat.com>
20908
20909 * config/mep/mep.c: Include gimple.h.
20910 (mep_function_uses_sp): Delete unused function.
20911 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
20912 parameters. Use unsigned integers to count args. Return a
20913 NULL_RTX instead of an error_mark_node. Toidy up formatting.
20914
20915 2010-02-23 Jakub Jelinek <jakub@redhat.com>
20916
20917 PR target/43107
20918 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
20919 greater or equal to nelt instead of 2 * nelt.
20920 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
20921 with nelt - 1.
20922
20923 2010-02-23 Jason Merrill <jason@redhat.com>
20924
20925 PR debug/42800
20926 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
20927 in cfun->local_decls even if they have register types.
20928
20929 PR c++/42837
20930 * stor-layout.c (place_field): Don't warn about unnecessary
20931 DECL_PACKED if the type is packed.
20932
20933 2010-02-23 Jakub Jelinek <jakub@redhat.com>
20934
20935 PR target/43139
20936 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
20937 GOTOFF relocs, even when the base reg isn't pic pointer.
20938
20939 2010-02-23 Michael Matz <matz@suse.de>
20940
20941 PR debug/43077
20942 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
20943 (expand_gimple_basic_block): Generate and use debug temps if there
20944 are debug uses left after the last real use of TERed ssa names.
20945 Unlink debug immediate uses when they are expanded.
20946
20947 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
20948
20949 PR 43123
20950 * config/i386/i386.c (override_options): Reorganise to provide
20951 better error messages.
20952
20953 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
20954
20955 PR middle-end/43083
20956 * graphite-scop-detection.c (create_single_exit_edge): Move
20957 the call to find_single_exit_edge to....
20958 (create_sese_edges): ...here. Don't handle multiple edges
20959 exiting the function.
20960 (build_graphite_scops): Don't handle multiple edges
20961 exiting the function.
20962
20963 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
20964
20965 PR middle-end/43097
20966 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
20967 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
20968
20969 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
20970
20971 PR middle-end/43026
20972 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
20973
20974 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
20975
20976 PR c++/43126
20977 * c-typeck.c (convert_arguments): Print declaration location.
20978 * c-common.c (validate_nargs): Rename as
20979 builtin_function_validate_nargs.
20980 (check_builtin_function_arguments): Update.
20981
20982 2010-02-22 Richard Guenther <rguenther@suse.de>
20983
20984 PR lto/43045
20985 * tree-inline.c (declare_return_variable): Use the type of
20986 the call stmt lhs if available.
20987
20988 2010-02-22 Duncan Sands <baldrick@free.fr>
20989
20990 * passes.c (register_pass): Always consider all pass lists when
20991 ref_pass_instance_number is zero.
20992
20993 2010-02-22 Richard Guenther <rguenther@suse.de>
20994
20995 PR tree-optimization/42749
20996 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
20997 parameter. Do arithmetic in the original type.
20998 (update_accumulator_with_ops): Likewise.
20999 (adjust_accumulator_values): Adjust.
21000
21001 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21002
21003 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
21004 (QI to BLKmode splitter): New splitter.
21005
21006 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
21007
21008 * config/i386/i386.c (initial_ix86_tune_features): Turn on
21009 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
21010
21011 2010-02-22 Richard Guenther <rguenther@suse.de>
21012
21013 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
21014
21015 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
21016
21017 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
21018 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
21019 ($(T)crti.o, $(T)crtn.o): Remove rules.
21020
21021 2010-02-21 Tobias Burnus <burnus@net-b.de>
21022
21023 PR fortran/35259
21024 * doc/invoke.texi (-fassociative-math): Document that this
21025 option is automatically enabled for Fortran.
21026
21027 2010-02-20 David S. Miller <davem@davemloft.net>
21028
21029 * configure.ac: Test if linker and assembler properly support
21030 GOTDATA_OP relocations.
21031 * configure: Rebuild.
21032 * config.in: Likewise.
21033 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
21034 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
21035 (movsi_high_pic): Likewise.
21036 (movdi_lo_sum_pic): Likewise.
21037 (movdi_high_pic): Likewise.
21038 (movsi_pic_gotdata_op): New pattern.
21039 (movdi_pic_gotdata_op): Likewise.
21040 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
21041 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
21042
21043 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
21044
21045 PR target/43067
21046 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
21047 attribute to ssemul.
21048 (xop_mulv2div2di3_high): Ditto.
21049
21050 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
21051
21052 PR c++/35669
21053 * c.opt (Wconversion-null): New option.
21054 * doc/invoke.texi (Wconversion-null): Document.
21055
21056 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
21057
21058 * common.opt (Wlarger-than-): Add Undocumented.
21059
21060 2010-02-19 Mike Stump <mikestump@comcast.net>
21061
21062 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
21063
21064 2010-02-19 Jason Merrill <jason@redhat.com>
21065
21066 PR target/40332
21067 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
21068 * configure: Likewise.
21069
21070 2010-02-20 Alan Modra <amodra@gmail.com>
21071
21072 PR middle-end/42344
21073 * cgraph.h (cgraph_make_decl_local): Declare.
21074 * cgraph.c (cgraph_make_decl_local): New function.
21075 (cgraph_make_node_local): Use it.
21076 * cgraphunit.c (cgraph_function_versioning): Likewise.
21077 * ipa.c (function_and_variable_visibility): Likewise.
21078
21079 2010-02-19 Jakub Jelinek <jakub@redhat.com>
21080
21081 PR bootstrap/43121
21082 * except.c (sjlj_emit_function_enter): Don't call
21083 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
21084 directly.
21085 * rtl.h (add_reg_br_prob_note): Remove prototype.
21086
21087 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
21088
21089 PR 41779
21090 * c-common.c (conversion_warning): Remove widening conversions
21091 before checking the conversion of integers to reals.
21092
21093 2010-02-19 Mike Stump <mikestump@comcast.net>
21094
21095 PR middle-end/43125
21096 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
21097
21098 PR objc/43061
21099 * cgraphunit.c (process_function_and_variable_attributes): Check
21100 DECL_PRESERVE_P instead of looking up attribute "used".
21101 * ipa-pure-const.c (check_decl): Likewise.
21102 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
21103 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
21104 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
21105 instead of attribute "used".
21106 * config/sol2-c.c (solaris_pragma_init): Likewise.
21107 (solaris_pragma_fini): Likewise.
21108
21109 2010-02-19 Jakub Jelinek <jakub@redhat.com>
21110
21111 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
21112 Use XCNEW instead of xcalloc.
21113 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
21114 XNEW instead of xmalloc.
21115 (get_fields): Use XNEWVEC instead of xmalloc.
21116
21117 PR debug/43084
21118 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
21119 populate vars array.
21120 (create_new_general_access): For debug stmts just reset value.
21121 (get_stmt_accesses): For accesses within debug stmts just record them
21122 using add_access_to_acc_sites instead of preventing the peeling or
21123 counting them as accesses.
21124
21125 PR middle-end/42233
21126 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
21127
21128 2010-02-19 Richard Guenther <rguenther@suse.de>
21129
21130 PR tree-optimization/42916
21131 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
21132 instructions.
21133
21134 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
21135
21136 * configure.ac: Replace all uses of changequote in macro arguments
21137 with proper quoting.
21138
21139 2010-02-19 Jakub Jelinek <jakub@redhat.com>
21140
21141 PR middle-end/42233
21142 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
21143
21144 2010-02-19 Richard Guenther <rguenther@suse.de>
21145
21146 PR tree-optimization/42944
21147 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
21148 test for aliasing with errno.
21149
21150 2010-02-19 Jakub Jelinek <jakub@redhat.com>
21151
21152 PR middle-end/42233
21153 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
21154 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
21155 * dojump.c: Include output.h.
21156 (inv): New inline function.
21157 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
21158 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
21159 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
21160 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
21161 argument, pass it down to other calls.
21162 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
21163 add REG_BR_PROB note to the conditional jump.
21164 * cfgexpand.c (add_reg_br_prob_note): Removed.
21165 (expand_gimple_cond): Don't call it, add the probability
21166 as last argument to jumpif_1/jumpifnot_1.
21167 * Makefile.in (dojump.o): Depend on output.h.
21168 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
21169 callers.
21170 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
21171 * stmt.c (do_jump_if_equal): Likewise.
21172 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
21173 * loop-unswitch.c (compare_and_jump_seq): Likewise.
21174 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
21175 Likewise.
21176 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
21177 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
21178 jumpifnot_1 callers.
21179 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
21180 callers.
21181 (store_expr): Adjust jumpifnot caller.
21182 (store_constructor): Adjust jumpif caller.
21183
21184 PR middle-end/42233
21185 * gimplify.c (gimple_boolify): For __builtin_expect call
21186 gimple_boolify also on its first argument.
21187
21188 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
21189
21190 * configure.ac (gnu-unique-object): Wrap regexps using [] in
21191 changequote block.
21192 (__stack_chk_fail): Ditto. Remove quadrigraphs.
21193 * configure: Regenerated.
21194
21195 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21196
21197 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
21198 lang_hooks.types_compatible_p instead of comptypes.
21199
21200 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
21201
21202 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
21203 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
21204 if __prefer_thumb__ is defined.
21205
21206 2010-02-18 Martin Jambor <mjambor@suse.cz>
21207
21208 PR tree-optimization/43066
21209 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
21210 array with zero-sized element type.
21211
21212 2010-02-18 Jakub Jelinek <jakub@redhat.com>
21213
21214 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
21215 rtx, allocate struct var_loc_node here and return it to the
21216 caller, and only if it is actually needed.
21217 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
21218 move it earlier and return immediately if it returns NULL.
21219
21220 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
21221
21222 * config/sparc/gas.h: New file. Restore
21223 TARGET_ASM_NAMED_SECTION to its ELF default.
21224 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
21225 check !HAVE_GNU_AS.
21226 * config/sparc/sparc.c (sparc_elf_asm_named_section):
21227 Likewise. Add ATTRIBUTE_UNUSED to prototype.
21228 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
21229 after sparc/sysv4.h.
21230
21231 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
21232
21233 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
21234
21235 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
21236
21237 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
21238 patterns from predicated pattern.
21239
21240 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
21241
21242 PR target/43103
21243 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
21244 for insn mnemonic suffix.
21245
21246 2010-02-17 Richard Guenther <rguenther@suse.de>
21247
21248 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
21249 to loop PHI nodes.
21250
21251 2010-02-17 Jakub Jelinek <jakub@redhat.com>
21252
21253 PR debug/42918
21254 * caller-save.c (save_call_clobbered_regs): If BB ends with
21255 a DEBUG_INSN, move any notes in between last real insn and the last
21256 DEBUG_INSN after the last DEBUG_INSN.
21257
21258 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
21259
21260 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
21261 Fix return type. Fix argument type. Explain meaning of return value.
21262
21263 2010-02-16 Richard Guenther <rguenther@suse.de>
21264
21265 PR tree-optimization/41043
21266 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
21267 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
21268 statements ...
21269 (vrp_visit_phi_node): ... but only for loop PHI nodes.
21270
21271 2010-02-16 Ira Rosen <irar@il.ibm.com>
21272
21273 PR tree-optimization/43074
21274 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
21275 * tree-vect-loop.c (vect_analyze_loop_operations): Add
21276 vectorizable cycles in hybrid SLP check.
21277 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
21278
21279 2010-02-16 Richard Guenther <rguenther@suse.de>
21280
21281 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
21282 (true_dependence): If memrefs_conflict_p computes must-alias
21283 trust it. Move TBAA check after offset-based disambiguation.
21284 (canon_true_dependence): Likewise.
21285
21286 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
21287
21288 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
21289 * doc/invoke.texi: Document it.
21290 * var-tracking.c: Include toplev.h and params.h.
21291 (vt_find_locations): Return bool indicating success. Compute
21292 hash sizes unconditionally. Check new parameter, report.
21293 (variable_tracking_main_1): Check vt_find_locations results and
21294 retry. Renamed from...
21295 (variable_tracking_main): ... this. New wrapper to preserve
21296 flag_var_tracking_assignments.
21297 * Makefile.in (var-tracking.o): Adjust dependencies.
21298
21299 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
21300 Jakub Jelinek <jakub@redhat.com>
21301
21302 PR target/42854
21303 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
21304 if weak_import attribute is present.
21305 * config/darwin.c (machopic_select_section): Likewise.
21306
21307 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
21308
21309 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
21310 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
21311 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
21312 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
21313
21314 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
21315 types.
21316
21317 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
21318 Fix argument types.
21319
21320 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
21321 Rewrite text to refer to the names.
21322
21323 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
21324
21325 * config/i386/i386-builtin-types.def
21326 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
21327 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
21328 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
21329 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
21330 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
21331 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
21332 IX86_BUILTIN_VPERMIL2PS256.
21333 (MULTI_ARG_4_DF2_DI_I): Defined.
21334 (MULTI_ARG_4_DF2_DI_I1): Defined.
21335 (MULTI_ARG_4_SF2_SI_I): Defined.
21336 (MULTI_ARG_4_SF2_SI_I1): Defined.
21337 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
21338 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
21339 __builtin_ia32_vpermil2ps256.
21340 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
21341 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
21342 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
21343 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
21344 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
21345 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
21346 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
21347 CODE_FOR_xop_vpermil2v8sf3.
21348 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
21349 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
21350 * config/i386/xopintrin.h (_mm_permute2_pd): New.
21351 (_mm256_permute2_pd): New.
21352 (_mm_permute2_ps): New.
21353 (_mm256_permute2_ps): New.
21354
21355 2010-02-15 Nick Clifton <nickc@redhat.com>
21356
21357 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
21358 boolean parameters. Use emit_jump_insn when emitting a pop
21359 instruction containing a return insn.
21360 (push): Use 'true' rather than '1' as second parameter to F.
21361 (h8300_expand_prologue): Likewise.
21362 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
21363 (h8300_expand_epilogue): Likewise.
21364
21365 2010-02-15 Richard Guenther <rguenther@suse.de>
21366
21367 PR middle-end/43068
21368 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
21369 if that is zero.
21370
21371 2010-02-15 Nick Clifton <nickc@redhat.com>
21372
21373 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
21374 delta.
21375
21376 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
21377
21378 * intl.c (fake_ngettext): New function.
21379 * intl.h (fake_ngettext): Declare.
21380 (ngettext): Define macro.
21381 * collect2.c (notice_translated): New function.
21382 (main): Use notice_translated and ngettext.
21383 * collect2.h (notice_translated): Declare.
21384
21385 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
21386
21387 * reorg.c (delete_computation): Comment fixes.
21388 * caller-save.c (setup_save_areas): Idem.
21389 * sel-sched-dump.c (dump_lv_set): Idem.
21390 * rtl.def: Idem.
21391
21392 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21393
21394 * config/s390/s390.c (s390_sched_init): New function.
21395 (TARGET_SCHED_INIT): Target hook defined.
21396
21397 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
21398 Jack Howarth <howarth@bromo.med.uc.edu>
21399 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
21400
21401 PR target/42982
21402 Partial revert of unintended change in fix for PR41605.
21403 * config/darwin.h: Fix typo.
21404 * config/darwin9.h: Same.
21405
21406 2010-02-11 Jakub Jelinek <jakub@redhat.com>
21407
21408 * c-pch.c (pch_init): Clear v.
21409
21410 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
21411
21412 PR middle-end/42930
21413 * graphite-scop-detection.c (graphite_can_represent_scev): Call
21414 graphite_can_represent_init for MULT_EXPR.
21415
21416 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
21417
21418 PR middle-end/42914
21419 PR middle-end/42530
21420 * graphite-sese-to-poly.c (remove_phi): New.
21421 (translate_scalar_reduction_to_array): Call remove_phi.
21422
21423 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
21424
21425 PR middle-end/42771
21426 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
21427 * graphite-clast-to-gimple.h (gloog): Update declaration.
21428 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
21429 * graphite-poly.h (struct poly_bb): Add missing comments.
21430 (struct scop): Add poly_scop_p field.
21431 (POLY_SCOP_P): New.
21432 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
21433 * graphite.c (graphite_transform_loops): Build the polyhedral
21434 representation for each scop before code generation.
21435 * sese.c (rename_variables_in_operand): Removed.
21436 (rename_variables_in_expr): Return the renamed expression.
21437 (rename_sese_parameters): New.
21438 * sese.h (rename_sese_parameters): Declared.
21439
21440 2010-02-11 Richard Guenther <rguenther@suse.de>
21441
21442 PR tree-optimization/42998
21443 * tree-ssa-pre.c (create_expression_by_pieces): Treat
21444 POINTER_PLUS_EXPR properly.
21445
21446 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
21447 Changpeng Fang <changpeng.fang@amd.com>
21448
21449 PR middle-end/40886
21450 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
21451 the cost of an IV candidate when the IV is used in a test against zero.
21452
21453 * gcc.dg/tree-ssa/ivopts-3.c: New.
21454
21455 2010-02-11 Richard Guenther <rguenther@suse.de>
21456
21457 PR lto/41664
21458 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
21459 pointer-vs-decl case by swapping refs. Handle some cases
21460 of pointer-vs-decl disambiguations more conservatively.
21461 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
21462 to false after expanding.
21463
21464 2010-02-11 Richard Guenther <rguenther@suse.de>
21465
21466 PR driver/43021
21467 * gcc.c (process_command): Handle LTO file@offset case more
21468 appropriately.
21469
21470 2010-02-11 Jakub Jelinek <jakub@redhat.com>
21471
21472 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
21473 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
21474 of DEBUG_INSNs.
21475 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
21476
21477 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
21478 if MEM's mode size isn't DWARF2_ADDR_SIZE.
21479 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
21480 Optimize eq/ne comparisons when both arguments are known to be
21481 zero-extended.
21482 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
21483 Don't mask operands unnecessarily if they are known to be already
21484 zero-extended.
21485
21486 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
21487
21488 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
21489 instead of loop.
21490
21491 2010-02-10 Richard Guenther <rguenther@suse.de>
21492
21493 PR tree-optimization/43017
21494 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
21495 for wrapping signed arithmetic.
21496
21497 2010-02-10 Jakub Jelinek <jakub@redhat.com>
21498
21499 PR debug/43010
21500 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
21501 if no debug info should be emitted for it.
21502
21503 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
21504
21505 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
21506 note when flag_exceptions is set.
21507
21508 2010-02-10 Duncan Sands <baldrick@free.fr>
21509
21510 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
21511
21512 2010-02-10 Richard Guenther <rguenther@suse.de>
21513
21514 PR c/43007
21515 * tree.c (get_unwidened): Handle constants.
21516 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
21517
21518 2010-02-10 Martin Jambor <mjambor@suse.cz>
21519
21520 PR lto/42985
21521 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
21522 check for variable argument counts independently.
21523
21524 2010-02-10 Christian Bruel <christian.bruel@st.com>
21525
21526 PR target/42841
21527 * config/sh/sh.c (find_barrier): Increase length for non delayed
21528 conditional branches.
21529
21530 2010-02-10 Christian Bruel <christian.bruel@st.com>
21531
21532 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
21533
21534 2010-02-10 Jakub Jelinek <jakub@redhat.com>
21535
21536 * builtins.c (set_builtin_user_assembler_name): Also handle
21537 ffs if int is smaller than word.
21538
21539 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
21540
21541 PR middle-end/42973
21542 * ira-conflicts.c (get_dup): Remove.
21543 (process_reg_shuffles): Add new parameter. Use it as an
21544 additional guard for copy generation.
21545 (add_insn_allocno_copies): Rewrite.
21546
21547 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
21548
21549 * common.opt (fsched2-use-traces): Preserved for backward
21550 compatibility.
21551 * doc/invoke.texi: Remove the documentation about option
21552 -fsched2-use-traces.
21553 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
21554 flag_sched2_use_traces.
21555 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
21556 the backward compatibility flag section.
21557
21558 2010-02-09 Richard Guenther <rguenther@suse.de>
21559
21560 PR tree-optimization/43008
21561 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
21562 make HEAP variables initialized from global memory if they
21563 are not known builtin functions.
21564 (find_func_aliases): Adjust.
21565
21566 2010-02-09 Richard Guenther <rguenther@suse.de>
21567
21568 PR tree-optimization/43000
21569 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
21570 arithmetic manually.
21571
21572 2010-02-08 Jakub Jelinek <jakub@redhat.com>
21573
21574 PR tree-optimization/42931
21575 * tree-loop-linear.c (try_interchange_loops): Don't call
21576 double_int_mul if estimated_loop_iterations failed.
21577
21578 2010-02-08 Martin Jambor <mjambor@suse.cz>
21579
21580 PR middle-end/42898
21581 * tree-sra.c (build_accesses_from_assign): Do not mark in
21582 should_scalarize_away_bitmap if stmt has volatile ops.
21583 (sra_modify_assign): Do not process assigns piecemeal if if stmt
21584 has volatile ops.
21585
21586 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
21587
21588 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
21589
21590 2010-02-07 Adam Nemet <adambnmet@gmail.com>
21591
21592 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
21593 before the pattern.
21594
21595 2010-02-07 Andrew Pinski <pinskia@gmail.com>
21596
21597 PR middle-end/42946
21598 * df-core.c (df_finish_pass): Change type of saved_flags to int.
21599
21600 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
21601
21602 PR middle-end/42988
21603 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
21604 to unknown_dependence.
21605 (graphite_legal_transform_dr): Handle the unknown_dependence.
21606 (graphite_carried_dependence_level_k): Same.
21607
21608 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
21609
21610 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
21611
21612 2010-02-07 Richard Guenther <rguenther@suse.de>
21613
21614 PR middle-end/42991
21615 * expr.c (get_inner_reference): Always initialize *pbitsize.
21616
21617 2010-02-07 Richard Guenther <rguenther@suse.de>
21618
21619 PR middle-end/42956
21620 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
21621 new ARRAY_REFs on variable size element or minimal index arrays.
21622 Complete.
21623 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
21624 gimple_fold_indirect_ref.
21625
21626 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
21627
21628 PR target/42957
21629 * arm.c (arm_override_options): Just return if the user has specified
21630 an invalid fpu name.
21631
21632 2010-02-03 Jason Merrill <jason@redhat.com>
21633
21634 PR c++/42870
21635 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
21636 i386_pe_maybe_record_exported_symbol.
21637
21638 2010-02-05 Steve Ellcey <sje@cup.hp.com>
21639
21640 PR target/42924
21641 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
21642 (pa_delegitimize_address): New function.
21643
21644 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
21645
21646 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
21647 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
21648
21649 2010-02-05 Richard Guenther <rguenther@suse.de>
21650
21651 PR lto/42762
21652 * lto-streamer-in.c (get_resolution): Deal with references
21653 to undefined functions.
21654
21655 2010-02-05 Richard Guenther <rguenther@suse.de>
21656
21657 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
21658 (fold_const_aggregate_ref): Likewise.
21659 (ccp_fold_stmt): Substitute loads.
21660 (maybe_fold_reference): Verify types before substituting.
21661 Unshare properly.
21662 (fold_gimple_assign): Unshare properly.
21663 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
21664
21665 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
21666
21667 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
21668 for rs6000_gen_cell_microcode.
21669
21670 2010-02-04 Richard Guenther <rguenther@suse.de>
21671
21672 PR rtl-optimization/42952
21673 * dse.c (const_or_frame_p): Remove MEM handling.
21674
21675 2010-02-04 Nick Clifton <nickc@redhat.com>
21676
21677 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
21678 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
21679 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
21680 (mn10300_asm_output_mi_thunk): New function.
21681 (mn10300_can_output_mu_thunk): New function.
21682 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
21683 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
21684 (FUNCTION_ARG): Delete incorrect comment.
21685
21686 2010-02-03 Jason Merrill <jason@redhat.com>
21687
21688 PR c++/40138
21689 * fold-const.c (operand_equal_p): Handle erroneous types.
21690
21691 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
21692
21693 * config/h8300/h8300.md (can_delay): Fix attibute condition.
21694
21695 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
21696
21697 PR rtl-optimization/42941
21698 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
21699 of xmalloc.
21700
21701 2010-02-03 Jason Merrill <jason@redhat.com>
21702
21703 PR c++/35652
21704 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
21705
21706 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
21707
21708 PR debug/42896
21709 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
21710 (cselib_reset_table): Renamed from...
21711 (cselib_reset_table_with_next_value): ... this.
21712 (cselib_get_next_uid): Renamed from...
21713 (cselib_get_next_unknown_value): ... this.
21714 * cselib.c (next_uid): Renamed from...
21715 (next_unknown_value): ... this.
21716 (cselib_clear_table): Adjust.
21717 (cselib_reset_table): Adjust. Renamed from...
21718 (cselib_reset_table_with_next_value): ... this.
21719 (cselib_get_next_uid): Adjust. Renamed from...
21720 (cselib_get_next_unknown_value): ... this.
21721 (get_value_hash): Use hash.
21722 (cselib_hash_rtx): Likewise.
21723 (new_cselib_val): Adjust. Set and dump uid.
21724 (cselib_lookup_mem): Pass next_uid as hash.
21725 (cselib_subst_to_values): Likewise.
21726 (cselib_log_lookup): Dump uid.
21727 (cselib_lookup): Pass next_uid as hash. Adjust.
21728 (cselib_process_insn): Adjust.
21729 (cselib_init): Initialize next_uid.
21730 (cselib_finish): Adjust.
21731 (dump_cselib_table): Likewise.
21732 * dse.c (canon_address): Dump value uid.
21733 * print-rtl.c (print_rtx): Print value uid.
21734 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
21735 (dvuid): New type.
21736 (dv_uid): New function, sort of renamed from...
21737 (dv_htab_hash): ... this, reimplemented in terms of it and...
21738 (dv_uid2hash): ... this. New.
21739 (variable_htab_eq): Drop excess assertions.
21740 (tie_break_pointers): Removed.
21741 (canon_value_cmp): Compare uids.
21742 (variable_post_merge_New_vals): Print uids.
21743 (vt_add_function_parameters): Adjust.
21744 (vt_initialize): Reset table. Adjust.
21745
21746 2010-02-03 Richard Guenther <rguenther@suse.de>
21747
21748 PR tree-optimization/42944
21749 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
21750 (call_may_clobber_ref_p_1): Likewise. Properly handle
21751 malloc and calloc clobbering errno.
21752
21753 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
21754
21755 * doc/invoke.texi: Fix name of sched1 dump.
21756
21757 * opts.c (decode_options): Set flag_tree_switch_conversion
21758 only conditionally on optimize >= 2.
21759
21760 * gcse.c: Assorted comment fixes in pass description.
21761
21762 2010-02-03 Anthony Green <green@moxielogic.com>
21763
21764 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
21765 nop padding in order to maintain alignment of storage location of
21766 target function address.
21767 (moxie_trampoline_init): Store target function address at newly
21768 aligned location.
21769 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
21770 to 32.
21771 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
21772
21773 2010-02-03 Richard Guenther <rguenther@suse.de>
21774
21775 PR middle-end/42927
21776 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
21777
21778 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21779
21780 * config.gcc: Reenable check for obsolete targets.
21781 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
21782 mips-sgi-irix6.[0-4]*.
21783
21784 2010-02-02 Nick Clifton <nickc@redhat.com>
21785
21786 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
21787 constant size of 4 as being the same as 0.
21788 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
21789 can take values in the range 0..4.
21790
21791 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
21792
21793 PR java/41991
21794 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
21795 as _darwin10_Unwind_FindEnclosingFunction().
21796 * libgcc-libsystem.ver: New.
21797
21798 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
21799
21800 PR target/41399
21801 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
21802 implicitly set registers.
21803
21804 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
21805
21806 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
21807 (arm_override_options): Allow automatic selection of the thread
21808 pointer register if thumb2.
21809 (legitimize_pic_address): Improve code sequences for Thumb2.
21810 (arm_call_tls_get_addr): Likewise.
21811 (legitimize_tls_address): Likewise.
21812 * arm.md (pic_load_addr_arm): Delete. Replace with ...
21813 (pic_load_addr_32bit): ... this. New named pattern.
21814 * thumb2.md (pic_load_addr_thumb2): Delete.
21815 (pic_load_dot_plus_four): Delete.
21816 (tls_load_dot_plus_four): New named pattern.
21817
21818 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21819
21820 PR libgomp/29986
21821 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
21822 Document fix for TLS bug.
21823
21824 2010-01-31 Richard Guenther <rguenther@suse.de>
21825
21826 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
21827 conservatively correct.
21828
21829 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21830
21831 PR target/42850
21832 Revert:
21833 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21834
21835 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
21836
21837 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21838
21839 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
21840
21841 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
21842
21843 * config.gcc: Adjust order of makefile fragments for mingw targets.
21844
21845 2010-01-31 Richard Guenther <rguenther@suse.de>
21846
21847 PR middle-end/42898
21848 * gimplify.c (gimplify_init_constructor): For volatile LHS
21849 initialize a temporary.
21850
21851 2010-01-31 Matthias Klose <doko@ubuntu.com>
21852
21853 * configure.ac: Fix __stack_chk_fail check for cross builds configured
21854 --with-headers
21855 * configure: Regenerate.
21856
21857 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
21858
21859 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
21860 the same alias set and their sizes different constantness.
21861 (aliasing_component_refs_p): Revert 2009-10-24 change.
21862
21863 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21864
21865 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
21866 unused.
21867
21868 2010-01-29 Richard Guenther <rguenther@suse.de>
21869
21870 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
21871 Assert we successfully updated the call.
21872
21873 2010-01-29 Jakub Jelinek <jakub@redhat.com>
21874
21875 PR rtl-optimization/42889
21876 * df.h (df_set_bb_dirty_nonlr): New prototype.
21877 * df-core.c (df_set_bb_dirty_nonlr): New function.
21878 * df-scan.c (df_insn_rescan): Call it instead of
21879 df_set_bb_dirty for DEBUG_INSNs.
21880
21881 2010-01-29 Richard Guenther <rguenther@suse.de>
21882
21883 PR middle-end/37448
21884 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
21885 quadratic behavior in most cases.
21886
21887 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
21888
21889 PR target/42891
21890 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
21891 in the call to gen_x86_movsicc_0_m1.
21892
21893 2010-01-28 Richard Guenther <rguenther@suse.de>
21894
21895 PR tree-optimization/42871
21896 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
21897
21898 2010-01-28 Richard Guenther <rguenther@suse.de>
21899
21900 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
21901 into call arguments.
21902
21903 2010-01-28 Richard Guenther <rguenther@suse.de>
21904
21905 PR middle-end/42883
21906 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
21907 the forwarder if the destination is an EH landing pad.
21908
21909 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
21910
21911 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
21912 block list passed to gimple_duplicate_sese_tail.
21913 (parallelize_loops): Avoid parallelization when the function
21914 has_nonlocal_label.
21915 Avoid parallelization when the preheader is IRREDUCIBLE.
21916 Try to optimize when estimated_loop_iterations_int is unresolved.
21917 Add the loop's location to the dump file.
21918 * tree-cfg.c (add_phi_args_after_redirect): Remove.
21919 (gimple_duplicate_sese_tail): Remove the check for the latch.
21920 Redirect nexits to the exit block.
21921 Remove handling of the incoming edges to the latch.
21922 Redirect the backedge from the copied latch to the exit bb.
21923
21924 2010-01-28 Michael Matz <matz@suse.de>
21925
21926 PR target/42881
21927 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
21928 Wrap force_reg into a sequence, emit it before user.
21929
21930 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
21931
21932 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
21933 (arm_rev): New.
21934 (arm_legacy_rev): Likewise.
21935 (thumb_legacy_rev): Likewise.
21936
21937 2010-01-27 Jakub Jelinek <jakub@redhat.com>
21938
21939 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
21940 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
21941 on MEM's address failed, try avoid_constant_pool_reference and
21942 recurse if it returned something different.
21943 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
21944 address, try avoid_constant_pool_reference and recurse if it
21945 returned something different.
21946 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
21947 address and avoid_constant_pool_reference returned something
21948 different, don't set have_address.
21949
21950 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
21951
21952 PR debug/42861
21953 * var-tracking.c (val_store): Add modified argument, obey it.
21954 Adjust callers.
21955 (count_uses): Move down logging of main.
21956 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
21957 don't need resolution.
21958 (emit_notes_in_bb): Likewise.
21959
21960 2010-01-27 Richard Guenther <rguenther@suse.de>
21961
21962 PR middle-end/42878
21963 * tree-inline.c (remap_decl): Delay remapping of SSA name
21964 default definitions until we need them.
21965
21966 2010-01-27 Jakub Jelinek <jakub@redhat.com>
21967
21968 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
21969 (rs6000_delegitimize_address): New function.
21970
21971 * config/s390/s390.c (s390_delegitimize_address): Call
21972 delegitimize_mem_from_attrs.
21973
21974 PR middle-end/42874
21975 * tree-inline.c (cannot_copy_type_1): Removed.
21976 (copy_forbidden): Don't forbid copying of functions containing
21977 records/unions with variable length fields.
21978
21979 2010-01-27 Christian Bruel <christian.bruel@st.com>
21980
21981 Revert:
21982 PR target/42841
21983 * config/sh/sh.c (find_barrier): Increase length for non delayed
21984 conditional branches.
21985
21986 2010-01-27 Matthias Klose <doko@ubuntu.com>
21987
21988 * configure.ac (gnu-unique-object): Fix ldd version check.
21989 * configure: Regenerate.
21990
21991 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21992
21993 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
21994 HAVE_GNU_AS value.
21995 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
21996 Test for HAVE_GNU_AS value.
21997
21998 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21999
22000 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
22001 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
22002 INT64_TYPE): Define.
22003 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
22004 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22005 INT_LEAST64_TYPE): Define.
22006 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
22007 UINT_LEAST64_TYPE): Define.
22008 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
22009 INT_FAST64_TYPE): Define.
22010 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22011 UINT_FAST64_TYPE): Define.
22012 (INTMAX_TYPE, UINTMAX_TYPE): Define.
22013 (INTPTR_TYPE, UINTPTR_TYPE): Define.
22014 (SIG_ATOMIC_TYPE): Define.
22015
22016 2010-01-26 Richard Guenther <rguenther@suse.de>
22017
22018 * df-scan.c (df_scan_set_bb_info): Remove assert.
22019 (df_insn_rescan_debug_internal): Merge asserts.
22020 (df_install_ref): Likewise.
22021 (df_mark_reg): Use bitmap_set_range.
22022 (df_hard_reg_used_p): Remove assert.
22023 (df_hard_reg_used_count): Likewise.
22024
22025 2010-01-26 Richard Guenther <rguenther@suse.de>
22026
22027 PR rtl-optimization/42685
22028 * web.c (web_main): Ignore DEBUG_INSNs.
22029
22030 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
22031
22032 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
22033
22034 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
22035 Fix types of fndecl and arglist parameters.
22036
22037 2010-01-26 Richard Guenther <rguenther@suse.de>
22038
22039 PR middle-end/42806
22040 * tree-eh.c (unsplit_eh): Skip debug insns.
22041
22042 2010-01-26 Richard Guenther <rguenther@suse.de>
22043
22044 PR tree-optimization/42250
22045 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
22046
22047 2010-01-26 Jakub Jelinek <jakub@redhat.com>
22048
22049 PR fortran/42866
22050 * omp-low.c (expand_omp_sections): Only use single_pred if
22051 l2_bb is single_pred_p.
22052
22053 2010-01-25 Christian Bruel <christian.bruel@st.com>
22054
22055 PR target/42841
22056 * config/sh/sh.c (find_barrier): Increase length for non delayed
22057 conditional branches.
22058 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
22059
22060 2010-01-24 David S. Miller <davem@davemloft.net>
22061
22062 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
22063 define if not using GAS.
22064 * config/sparc/sparc.c (sparc_elf_asm_named_section):
22065 Likewise. Delete SECTION_MERGE code, which is only applicable
22066 when using GAS.
22067
22068 2010-01-24 Mark Mitchell <mark@codesourcery.com>
22069
22070 PR c++/42748
22071 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
22072 mangling of va_list in system headers.
22073
22074 2010-01-23 Toon Moene <toon@moene.org>
22075
22076 * tree-predcom.c (combine_chains): Return NULL, not false.
22077
22078 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
22079
22080 * tree-loop-distribution.c (distribute_loop): Fix declaration and
22081 initialization of variable res to agree with return type.
22082
22083 2010-01-22 Steve Ellcey <sje@cup.hp.com>
22084
22085 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
22086 * tree-sra.c: Add include of expr.h.
22087
22088 2010-01-22 Jakub Jelinek <jakub@redhat.com>
22089
22090 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
22091 insert the debug stmt on the single non-EH edge from the stmt.
22092
22093 2010-01-22 Richard Henderson <rth@redhat.com>
22094
22095 PR tree-opt/42833
22096 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
22097 the RHS until after generate_subtree_copies has insertted its
22098 code before the current statement.
22099
22100 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
22101
22102 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
22103
22104 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
22105
22106 2010-01-21 Martin Jambor <mjambor@suse.cz>
22107
22108 PR tree-optimization/42585
22109 * tree-sra.c (struct access): New field grp_total_scalarization.
22110 (dump_access): Dump the new field.
22111 (should_scalarize_away_bitmap): New variable.
22112 (cannot_scalarize_away_bitmap): Likewise.
22113 (sra_initialize): Allocate new bitmaps.
22114 (sra_deinitialize): Free new bitmaps.
22115 (create_access_1): New function.
22116 (create_access): Parts moved to create_access_1.
22117 (type_consists_of_records_p): New function.
22118 (completely_scalarize_record): Likewise.
22119 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
22120 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
22121 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
22122 access.
22123 (analyze_all_variable_accesses): Completely scalarize small eligible
22124 records.
22125
22126 2010-01-21 Martin Jambor <mjambor@suse.cz>
22127
22128 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
22129
22130 2010-01-21 Andrew Haley <aph@redhat.com>
22131
22132 * gcc.c (process_command): Move lang_specific_driver before
22133 setting cc_libexec_prefix.
22134
22135 2010-01-21 Richard Guenther <rguenther@suse.de>
22136
22137 PR middle-end/19988
22138 * fold-const.c (negate_expr_p): Pretend only negative
22139 real constants are easily negatable.
22140
22141 2010-01-20 Janis Johnson <janis187@us.ibm.com>
22142 Jason Merrill <jason@redhat.com>
22143
22144 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
22145 (TYPE_TRANSPARENT_AGGR): this, for union and record.
22146 * calls.c (initialize argument_information): Handle it.
22147 * c-common.c (handle_transparent_union_attribute): Use new name.
22148 * c-decl.c (finish_struct): Ditto.
22149 * c-typeck.c (type_lists_compatible_p): Ditto.
22150 (convert_for_assignment): Use new name and also handle record.
22151 * function.c (aggregate_value_p): Handle it.
22152 (pass_by_reference): Ditto.
22153 (assign_parm_data_types): Ditto.
22154 * print-tree.c (print_node): Ditto.
22155 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
22156 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
22157 * tree.c (first_field): New fn.
22158
22159 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
22160
22161 PR target/42818
22162 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
22163 even when linking statically, for now.
22164
22165 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
22166
22167 PR debug/42715
22168 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
22169 without a cselib val.
22170 (count_uses): Accept MO_VAL_SET with no val on stores.
22171 (add_stores): Likewise.
22172
22173 2010-01-20 Jakub Jelinek <jakub@redhat.com>
22174
22175 * var-tracking.c (check_value_val): Add a compile time assertion.
22176 (dv_is_decl_p): Simplify.
22177 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
22178 gcc_assert if ENABLE_CHECKING.
22179
22180 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
22181
22182 PR debug/42782
22183 * var-tracking.c: Include tree-flow.h.
22184 (mem_dies_at_call): New.
22185 (dataflow_set_preserve_mem_locs): Use it.
22186 (dataflow_set_remove_mem_locs): Likewise.
22187 (dump_var): Renamed from dump_variable. Adjust all callers.
22188 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
22189 * Makefile.in (var-tracking.o): Adjust deps.
22190
22191 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
22192
22193 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
22194
22195 2010-01-20 Richard Guenther <rguenther@suse.de>
22196
22197 PR tree-optimization/42717
22198 * tree-ssa-dce.c (get_live_post_dom): Remove.
22199 (forward_edge_to_pdom): Take an arbitrary edge to copy
22200 degenerate PHI args from.
22201 (remove_dead_stmt): Use the first post-dominator even if it
22202 does not contain live statements as redirection destination.
22203
22204 2010-01-20 Richard Guenther <rguenther@suse.de>
22205
22206 * tree-inline.c (estimate_num_insns): Handle EH builtins.
22207
22208 2010-01-20 Jakub Jelinek <jakub@redhat.com>
22209
22210 * sel-sched.c (create_speculation_check): Remove set but not used
22211 variable twin.
22212 (try_transformation_cache): Remove set but not used variable ds.
22213 (calculate_privileged_insns): Remove set but not used variables
22214 cur_insn and min_spec_insn.
22215 (find_best_expr): Remove set but not used variable avail_n.
22216 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
22217 variable e.
22218 * cgraphunit.c (assemble_thunk): Remove set but not used variable
22219 false_label.
22220 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
22221 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
22222 new_scop_exit_edge.
22223
22224 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
22225
22226 PR bootstrap/42786
22227 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
22228 cpu types. Add support for *-sse3 cpu types.
22229 (x86_64-*-*): Ditto.
22230
22231 2010-01-20 Jakub Jelinek <jakub@redhat.com>
22232
22233 PR middle-end/42803
22234 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
22235 argument, call initializer_constant_valid_p_1 instead of
22236 initializer_constant_valid_p, pass CACHE to it, return NULL
22237 immediately if first call returns NULL.
22238 (initializer_constant_valid_p_1): New function.
22239 (initializer_constant_valid_p): Use it.
22240
22241 2010-01-20 Thomas Quinot <quinot@adacore.com>
22242
22243 * tree.def (PLACEHOLDER_EXPR): Fix comment.
22244
22245 2010-01-20 Jakub Jelinek <jakub@redhat.com>
22246
22247 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
22248 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
22249 (loc_list_from_tree): Don't handle unsigned division. Handle
22250 signed modulo using DW_OP_{over,over,div,mul,minus}.
22251 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
22252 modulo instead of signed.
22253
22254 2010-01-20 DJ Delorie <dj@redhat.com>
22255
22256 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
22257 (Fpa): Pass it
22258 (h8300_emit_stack_adjustment): Propogate it.
22259 (push): Pass it.
22260 (h8300_expand_prologue): Likewise.
22261 (h8300_expand_epilogue): Likewise.
22262
22263 2010-01-19 Michael Matz <matz@suse.de>
22264
22265 PR tree-optimization/41783
22266 * tree-data-ref.c (toplevel): Include flags.h.
22267 (dump_data_dependence_relation): Also dump the inputs if the
22268 result will be unknown.
22269 (split_constant_offset_1): Look through some conversions.
22270 * tree-predcom.c (determine_roots_comp): Restart a new chain if
22271 the offset from last element is too large.
22272 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
22273 (reassociate_to_the_same_stmt): Handle vector registers.
22274 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
22275 (e.g. conversions).
22276 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
22277 wide_prolog_niters argument, emit widening instructions.
22278 (vect_do_peeling_for_alignment): Adjust caller, use widened
22279 variant of the iteration cound.
22280 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
22281
22282 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22283
22284 PR target/38697
22285 * config/arm/neon-testgen.m (emit_automatics): New parameter
22286 features. Adjust for Fixed_return_reg feature.
22287 (test_intrinsic): Call emit_automatics with new feature.
22288 * config/arm/neon.ml: Update copyright years.
22289 (features): New Fixed_return_reg feature.
22290 (ops): Update feature for Vget_low.
22291
22292 2010-01-19 Jakub Jelinek <jakub@redhat.com>
22293
22294 PR tree-optimization/42719
22295 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
22296 stmt uses.
22297
22298 PR debug/42728
22299 * fwprop.c (all_uses_available_at): Return false if def_set dest
22300 is a REG that is used in def_insn.
22301
22302 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
22303
22304 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
22305
22306 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
22307 Add argument names.
22308
22309 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
22310
22311 * target.h (struct gcc_target) <secondary_reload>: Change type
22312 of last argument to secondary_reload_info *.
22313
22314 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
22315
22316 PR target/42774
22317 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
22318 memory references with unaligned offsets. Remove CQImode handling.
22319 (unaligned_memory_operand): Return 1 for memory references with
22320 unaligned offsets. Remove CQImode handling.
22321
22322 2010-01-18 Richard Guenther <rguenther@suse.de>
22323
22324 PR middle-end/39954
22325 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
22326 builtin calls.
22327
22328 2010-01-18 Richard Guenther <rguenther@suse.de>
22329
22330 PR tree-optimization/42781
22331 * tree-ssa-structalias.c (find_what_var_points_to): Skip
22332 restrict processing only if the original variable was artificial.
22333
22334 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
22335
22336 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
22337 find number of popped argument bytes.
22338
22339 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
22340 Fix the text that describes the return value for invalid insns.
22341
22342 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
22343
22344 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
22345 Clarify what 'cost of the -dependence' is. Fix quoting.
22346
22347 * toplev.c (default_get_pch_validity): Rename argument to "sz".
22348 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
22349
22350 2010-01-17 Jakub Jelinek <jakub@redhat.com>
22351
22352 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
22353 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
22354
22355 2010-01-17 Richard Guenther <rguenther@suse.de>
22356
22357 PR middle-end/42248
22358 * function.c (split_complex_args): Take a VEC to modify.
22359 (assign_parms_augmented_arg_list): Build a VEC instead of
22360 a chain of PARM_DECLs.
22361 (assign_parms_unsplit_complex): Take a VEC of arguments.
22362 Do not fixup unmodified parms.
22363 (assign_parms): Deal with the VEC.
22364 (gimplify_parameters): Likewise.
22365
22366 2010-01-17 Richard Guenther <rguenther@suse.de>
22367
22368 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
22369 node existence check.
22370 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
22371 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
22372 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
22373 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
22374 (gimple_execute_on_growing_pred): Likewise.
22375
22376 2010-01-17 Richard Guenther <rguenther@suse.de>
22377
22378 PR tree-optimization/42773
22379 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
22380 (compute_antic_aux): Likewise.
22381 (compute_partial_antic_aux): Likewise.
22382
22383 2010-01-17 Jie Zhang <jie.zhang@analog.com>
22384
22385 PR debug/42767
22386 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
22387 and US_TRUNCATE.
22388
22389 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
22390
22391 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
22392 appearance.
22393
22394 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
22395 Fix markup for strict argument.
22396
22397 (TARGET_SCHED_REORDER2): Fix argument types.
22398
22399 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
22400 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
22401
22402 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
22403 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
22404
22405 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
22406 Add argument name.
22407
22408 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
22409 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
22410 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
22411 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
22412 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
22413
22414 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
22415
22416 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
22417
22418 (TARGET_ASM_RELOC_RW_MASK): Add return type.
22419 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
22420
22421 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
22422
22423 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
22424 Use prototype.
22425
22426 (TARGET_ASM_NAMED_SECTION): Fix argument list.
22427
22428 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
22429 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
22430
22431 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
22432
22433 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
22434
22435 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
22436 referring to it. Fix language.
22437
22438 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
22439
22440 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
22441
22442 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
22443
22444 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
22445
22446 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
22447 '@var{stream}. Remove stray 'and'.
22448
22449 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
22450
22451 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
22452
22453 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
22454
22455 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
22456 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
22457
22458 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
22459 Fix description of return value.
22460 Rename argument "sz" to "len."
22461
22462 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
22463 Clarify meaning of 'true' return value.
22464
22465 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
22466
22467 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
22468 rep_mode versus mode_rep.
22469
22470 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
22471
22472 (TARGET_BUILTIN_DECL): Fix name.
22473
22474 (TARGET_COMMUTATIVE_P): Fix type of first argument.
22475
22476 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
22477
22478 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
22479
22480 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
22481
22482 (TARGET_RELAXED_ORDERING): Use @deftypevr.
22483
22484 (TARGET_GET_DRAP_RTX): Note that this is a hook.
22485 Clarify language.
22486
22487 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
22488 Rename argument tm_fn to md_fn.
22489
22490 (TARGET_OPTION_PRINT): Fix argument list.
22491
22492 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
22493
22494 PR target/42664
22495 * config/i386/i386.c (ix86_fixup_binary_operands):
22496 Revert FMA4 fixup of operands.
22497
22498 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22499
22500 PR gcc/42525
22501 * Makefile.in (write_entries_to_file, install-plugin):
22502 Use \012 instead of \n with tr.
22503
22504 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
22505
22506 * configure.ac (HAVE_AS_REF): New C macro.
22507 * configure: Regenerate.
22508 * config.in: Likewise.
22509 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
22510 if HAVE_AS_REF.
22511 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
22512 if HAVE_AS_REF.
22513
22514 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
22515
22516 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
22517
22518 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
22519
22520 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
22521
22522 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
22523
22524 (TARGET_IN_SMALL_DATA_P): Fix argument type.
22525
22526 (TARGET_BINDS_LOCAL_P): Fix argument type.
22527
22528 (TARGET_ASM_FILE_END): Use prototype.
22529
22530 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
22531
22532 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
22533
22534 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
22535
22536 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
22537
22538 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
22539 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
22540
22541 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
22542 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
22543
22544 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
22545 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
22546 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
22547 (TARGET_ADDR_SPACE_CONVERT): Likewise.
22548
22549 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
22550
22551 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
22552
22553 (TARGET_INIT_BUILTINS): Use prototype.
22554
22555 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
22556 Put 'const char *' in braces. Fix parameter types.
22557 (TARGET_INVALID_CONVERSION): Fix parameter types.
22558 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
22559 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
22560
22561 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
22562 Fix argument type.
22563
22564 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
22565
22566 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
22567
22568 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
22569
22570 * doc/tm.texi (TARGET_HELP): Fix return type.
22571
22572 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
22573 in braces. Fix argument types.
22574
22575 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
22576
22577 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
22578
22579 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
22580
22581 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
22582 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
22583
22584 (TARGET_MANGLE_TYPE): Fix argument types.
22585
22586 (TARGET_IRA_COVER_CLASSES): Use prototype.
22587
22588 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
22589
22590 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
22591
22592 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
22593
22594 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
22595
22596 (TARGET_CALLEE_COPIES): Fix argument types.
22597
22598 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
22599
22600 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
22601
22602 (TARGET_FUNCTION_VALUE): Fix argument types.
22603
22604 (TARGET_RETURN_IN_MSB): Fix argument type.
22605
22606 (TARGET_RETURN_IN_MEMORY): Fix argument types.
22607
22608 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
22609
22610 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
22611
22612 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
22613 agree with return type.
22614
22615 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
22616
22617 2010-01-15 Jing Yu <jingyu@google.com>
22618
22619 PR rtl-optimization/42691
22620 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
22621 a pseudo to a constant and are merged, and adjust comments.
22622
22623 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
22624
22625 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
22626
22627 2010-01-15 Richard Guenther <rguenther@suse.de>
22628
22629 PR middle-end/42739
22630 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
22631 labels of computed or non-local gotos to the destination.
22632 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
22633 landing pad label is the first label.
22634
22635 2010-01-15 Richard Guenther <rguenther@suse.de>
22636
22637 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
22638
22639 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
22640
22641 PR target/42747
22642 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
22643 to allow generation of the xssqrtdp instruction on power7.
22644 (sqrtdf2_fpr): Ditto.
22645
22646 2010-01-14 Jakub Jelinek <jakub@redhat.com>
22647
22648 PR middle-end/42674
22649 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
22650 functions with noreturn attribute.
22651
22652 PR c++/42608
22653 * varasm.c (declare_weak): Add weak attribute to decl if it
22654 doesn't have one already.
22655 (assemble_external): Only add decls to weak_decls if they also
22656 have weak attribute.
22657
22658 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
22659
22660 * var-tracking.c (var_reg_delete): Don't delete the association
22661 between REGs and values or one-part variables if the register
22662 isn't clobbered.
22663
22664 2010-01-14 Jakub Jelinek <jakub@redhat.com>
22665
22666 PR debug/42657
22667 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
22668 because its first operand is a non-localized variable.
22669
22670 2010-01-14 Martin Jambor <mjambor@suse.cz>
22671
22672 PR tree-optimization/42706
22673 * tree-sra.c (encountered_recursive_call): New variable.
22674 (encountered_unchangable_recursive_call): Likewise.
22675 (sra_initialize): Initialize both new variables.
22676 (callsite_has_enough_arguments_p): New function.
22677 (scan_function): Call decl and flags check only for IPA-SRA, check
22678 whether there is a recursive call and whether it has enough arguments.
22679 (all_callers_have_enough_arguments_p): New function.
22680 (convert_callers): Look for recursive calls only when
22681 encountered_recursive_call is set.
22682 (ipa_early_sra): Bail out either if
22683 !all_callers_have_enough_arguments_p or
22684 encountered_unchangable_recursive_call.
22685
22686 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
22687
22688 * sel-sched.c: Add 2010 to copyright years.
22689 * sel-sched-ir.c: Likewise.
22690 * sel-sched-ir.h: Likewise.
22691
22692 2010-01-14 Martin Jambor <mjambor@suse.cz>
22693
22694 PR tree-optimization/42714
22695 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
22696 constructors specially.
22697
22698 2010-01-14 Andi Kleen <ak@linux.intel.com>
22699
22700 * config/i386/drivers-i386.c (detect_caches_intel):
22701 Add l2sizekb parameter and fill in.
22702 (host_detect_local_cpu): Add l2sizekb, fill in.
22703 Add Atom small cache heuristic.
22704
22705 2010-01-14 Andi Kleen <ak@linux.intel.com>
22706
22707 * config/i386/drivers-i386.c (detect_caches_cpuid4):
22708 Add level3 parameter and fill in.
22709 (detect_caches_intel): Handle level3 cache.
22710
22711 2010-01-14 Andi Kleen <ak@linux.intel.com>
22712
22713 * config/i386/drivers-i386.c (host_detect_local_cpu):
22714 Fix core duo detection.
22715
22716 2010-01-14 Andi Kleen <ak@linux.intel.com>
22717
22718 * config/i386/drivers-i386.c (host_detect_local_cpu):
22719 Fix Atom detection.
22720
22721 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
22722
22723 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
22724 (rs6000_variable_issue_1): this. Use...
22725 (rs6000_variable_issue): here. Reimplement. Print debug info.
22726
22727 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
22728
22729 * sel-sched-ir.c (sel_restore_other_notes): Rename to
22730 sel_restore_notes. Update all callers. Call reemit_notes
22731 for all insns.
22732
22733 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
22734
22735 PR rtl-optimization/42246
22736 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
22737 loops.
22738
22739 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
22740
22741 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
22742 all successors is the same as number of successors in current region.
22743
22744 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
22745
22746 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
22747 to rename is not separable. Otherwise check that its LHS is not NULL.
22748
22749 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
22750
22751 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
22752
22753 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
22754
22755 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
22756 available registers when failed to discover LHS register class.
22757 Fix indentation. Update comment.
22758
22759 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
22760 Alexander Monakov <amonakov@ispras.ru>
22761
22762 PR rtl-optimization/42389
22763 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
22764 to can_issue_more.
22765 (advance_state_on_fence): Likewise.
22766 (sel_target_adjust_priority): Print debug output only when
22767 sched_verbose >= 4, not 2.
22768 (get_expr_cost): Do not issue all unique insns on the next cycle.
22769 (fill_insns): Initialize can_issue_more from the value saved
22770 with the fence.
22771 * sel-sched-ir.c (flist_add): New parameter issue_more.
22772 Init FENCE_ISSUE_MORE with it.
22773 (merge_fences): Likewise.
22774 (init_fences): Update call to flist_add.
22775 (add_to_fences, add_clean_fence_to_fences)
22776 (add_dirty_fence_to_fences): Likewise.
22777 (move_fence_to_fences): Update call to merge_fences.
22778 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
22779 sched groups.
22780 * sel-sched-ir.h (struct _fence): New field issue_more.
22781 (FENCE_ISSUE_MORE): New accessor macro.
22782
22783 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
22784
22785 PR rtl-optimization/42388
22786 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
22787 that have no predecessors nor successors. Do not call move_bb_info
22788 for empty blocks outside of current region.
22789
22790 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
22791
22792 PR rtl-optimization/42294
22793 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
22794 * sel-sched.c (move_exprs_to_boundary): Transitively add all
22795 originators' originators.
22796
22797 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
22798
22799 PR rtl-optimization/39453
22800 PR rtl-optimization/42246
22801 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
22802 for pipelining_p.
22803 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
22804
22805 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
22806 Alexander Monakov <amonakov@ispras.ru>
22807
22808 PR middle-end/42245
22809 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
22810 (maybe_tidy_empty_bb): ... here. Make static. Add new
22811 argument. Update all callers.
22812 (tidy_control_flow): ... and here. Recompute topological order
22813 of basic blocks in region if necessary.
22814 (sel_redirect_edge_and_branch): Change return type. Return true
22815 if topological order might have been invalidated.
22816 (purge_empty_blocks): Export and move from...
22817 * sel-sched.c (purge_empty_blocks): ... here.
22818 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
22819 (maybe_tidy_empty_bb): Delete prototype.
22820 (purge_empty_blocks): Declare.
22821
22822 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
22823
22824 PR rtl-optimization/42249
22825 * sel-sched.c (try_replace_dest_reg): When chosen register
22826 and original register is the same, do not bail out early, but
22827 still check all original insns for validity of replacing destination
22828 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
22829 in this case.
22830
22831 2010-01-14 Jakub Jelinek <jakub@redhat.com>
22832
22833 PR c/42721
22834 Port from no-undefined-overflow branch:
22835 2009-03-09 Richard Guenther <rguenther@suse.de>
22836
22837 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
22838
22839 2010-01-14 Richard Guenther <rguenther@suse.de>
22840
22841 PR lto/42665
22842 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
22843
22844 2010-01-14 Ira Rosen <irar@il.ibm.com>
22845
22846 PR tree-optimization/42709
22847 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
22848 as scalar type in creation of constant vector operand.
22849
22850 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22851
22852 PR testsuite/42414
22853 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
22854 (check-parallel-%): Match `testsuite' directory component only
22855 at the end.
22856
22857 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
22858
22859 PR translation/39521
22860 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
22861 strings with _().
22862
22863 2010-01-13 Richard Guenther <rguenther@suse.de>
22864
22865 PR tree-optimization/42730
22866 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
22867 offset zero.
22868
22869 2010-01-13 Steve Ellcey <sje@cup.hp.com>
22870
22871 PR target/pr42542
22872 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
22873 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
22874 them signed.
22875
22876 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
22877
22878 * config/bfin/libgcc-bfin.ver: Regenerate based on current
22879 libgcc-std.ver. Add entries for ___smulsi3_highpart and
22880 ___umulsi3_highpart.
22881
22882 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
22883 rather than schedule_insns if the pass is enabled.
22884
22885 2010-01-13 Martin Jambor <mjambor@suse.cz>
22886
22887 PR tree-optimization/42704
22888 * tree-sra.c (sra_modify_assign): Do not delete assignments to
22889 SSA_NAMEs.
22890
22891 2010-01-13 Martin Jambor <mjambor@suse.cz>
22892
22893 PR tree-optimization/42703
22894 * tree-sra.c (analyze_access_subtree): Check that we can build a
22895 reference to the original data within the aggregate.
22896
22897 2010-01-13 Richard Guenther <rguenther@suse.de>
22898
22899 PR tree-optimization/42705
22900 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
22901
22902 2010-01-13 Richard Guenther <rguenther@suse.de>
22903
22904 PR middle-end/42716
22905 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
22906
22907 2010-01-13 Jakub Jelinek <jakub@redhat.com>
22908
22909 PR debug/41371
22910 * var-tracking.c (values_to_unmark): New variable.
22911 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
22912 values_to_unmark vector. Moved body to...
22913 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
22914 instead queue it into values_to_unmark vector.
22915 (vt_find_locations): Free values_to_unmark vector.
22916
22917 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
22918
22919 * config/s390/s390.c (override_options): Set
22920 default of max-pending-list-length to 256
22921
22922 2010-01-13 Richard Guenther <rguenther@suse.de>
22923
22924 PR lto/42678
22925 * tree-pass.h (PROP_gimple_lcx): New.
22926 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
22927 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
22928 before the final cleanup_eh.
22929 (dump_properties): Dump PROP_gimple_lcx.
22930 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
22931 (tree_lower_complex_O0): Remove.
22932 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
22933 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
22934 tree_lower_complex, schedule TODO_update_ssa.
22935 * lto-streamer-out.c (output_function): Stream the functions
22936 properties.
22937 * lto-streamer-in.c (input_function): Likewise.
22938 (lto_read_body): Do not override them here.
22939
22940 2010-01-12 Joseph Myers <joseph@codesourcery.com>
22941
22942 PR c/42708
22943 * c-typeck.c (build_c_cast): Fold value cast to union type before
22944 wrapping it in a CONSTRUCTOR.
22945
22946 2010-01-12 Jakub Jelinek <jakub@redhat.com>
22947
22948 PR rtl-optimization/42699
22949 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
22950 involved.
22951
22952 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22953
22954 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
22955 SUBTARGET_WARN_UNUSED_SPEC): Move ...
22956 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
22957 SUBTARGET_WARN_UNUSED_SPEC): ... here
22958 * config/mips/iris5.h (LIBGCC_SPEC): Define.
22959
22960 2010-01-12 Julian Brown <julian@codesourcery.com>
22961
22962 * config/arm/neon-schedgen.ml (Utils): Don't try to
22963 open missing module.
22964 (find_with_result): New.
22965
22966 2010-01-12 Jakub Jelinek <jakub@redhat.com>
22967
22968 PR debug/42662
22969 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
22970 sharing when canonicalizing ({lt,ge}u (plus a b) b).
22971
22972 PR tree-optimization/42645
22973 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
22974 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
22975 decl_map, set processing_debug_stmt to -1 and return name without
22976 any remapping.
22977
22978 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
22979
22980 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
22981 binutils version, and reword target configuration description.
22982
22983 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
22984
22985 * config/avr/avr.h (LINKER_NAME): Remove.
22986
22987 2010-01-11 Janis Johnson <janis187@us.ibm.com>
22988
22989 PR target/42416
22990 * config/rs6000/rs6000.c (rs6000_override_options): On targets
22991 that support VSX, warn for -mno-altivec if vsx is not disabled,
22992 and disable vsx.
22993
22994 2010-01-11 Joseph Myers <joseph@codesourcery.com>
22995 Shujing Zhao <pearly.zhao@oracle.com>
22996
22997 PR translation/42469
22998 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
22999 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
23000 character between option name and help text.
23001 * c.opt (imultilib): Likewise.
23002
23003 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
23004
23005 * lto-streamer-out.c (output_unreferenced_globals): Output static
23006 variables.
23007
23008 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
23009
23010 PR rtl-optimization/42621
23011 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
23012 optimizing for size.
23013 (duplicate_computed_gotos): Remove now-redundant check.
23014
23015 2010-01-10 Steve Ellcey <sje@cup.hp.com>
23016
23017 PR target/37454
23018 * configure.ac: Save and restore LDFLAGS and LIBS
23019 * configure: Regenerate.
23020
23021 2010-01-10 Richard Guenther <rguenther@suse.de>
23022
23023 PR middle-end/42667
23024 * builtins.c (fold_builtin_strlen): Add type argument and
23025 convert the resulting length to it.
23026 (fold_builtin_1): Adjust.
23027
23028 2010-01-09 Jakub Jelinek <jakub@redhat.com>
23029
23030 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
23031 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
23032 1 insn.
23033 (num_insns_constant_wide): Adjust for that change.
23034
23035 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23036
23037 PR debug/42631
23038 * web.c (union_defs): Add used argument, to combine uses of
23039 uninitialized regs.
23040 (entry_register): Adjust type and tests of used argument.
23041 (web_main): Widen used for new use. Pass it to union_defs.
23042 * df.h (union_defs): Adjust prototype.
23043
23044 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23045
23046 PR debug/42630
23047 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
23048 uses in new incoming argument. Free body.
23049 (reset_debug_uses_in_loop): New.
23050 (analyze_insn_to_expand_var): Call the latter if the former found
23051 anything. Fix whitespace. Reject invalid dest overlaps before
23052 going through all insns in the loop.
23053
23054 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23055
23056 PR debug/42629
23057 * haifa-sched.c (dying_use_p): Debug insns don't count.
23058
23059 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23060
23061 PR middle-end/42363
23062 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
23063 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
23064 (verify_gimple_call): Reject LHS in noreturn calls.
23065
23066 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23067
23068 PR debug/42604
23069 PR debug/42395
23070 * tree-vect-loop-manip.c (adjust_info): New type.
23071 (adjust_vec): New pointer to vector.
23072 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
23073 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
23074 (slpeel_update_phis_for_duplicate_loop): Use them.
23075 (slpeel_update_phi_nodes_for_guard1): Likewise.
23076 (slpeel_update_phi_nodes_for_guard2): Likewise.
23077 (slpeel_tree_peel_loop_to_edge): Likewise.
23078 (vect_update_ivs_after_vectorizer): Likewise.
23079
23080 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23081
23082 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
23083 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
23084
23085 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
23086
23087 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
23088 bogus uninitialized warning.
23089
23090 2010-01-09 Richard Guenther <rguenther@suse.de>
23091
23092 PR middle-end/42512
23093 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
23094 the evolution is compatible with the initial condition.
23095
23096 2010-01-09 Jakub Jelinek <jakub@redhat.com>
23097
23098 * gcc.c (process_command): Update copyright notice dates.
23099 * gcov.c (print_version): Likewise.
23100 * gcov-dump.c (print_version): Likewise.
23101 * mips-tfile.c (main): Likewise.
23102 * mips-tdump.c (main): Likewise.
23103
23104 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
23105
23106 PR target/41885
23107 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
23108 (rotlhi3): Delete.
23109 (rotlhi3_8): Delete.
23110 (rotlsi3): Delete.
23111 (rotlsi3_8): Delete.
23112 (rotlsi3_16): Delete.
23113 (rotlsi3_24): Delete.
23114 (rotl<mode>3): New.
23115 (*rotw<mode>3): New.
23116 (*rotb<mode>3): New.
23117 * config/avr/avr.c (avr_rotate_bytes): New function.
23118 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
23119
23120 2010-01-08 Steve Ellcey <sje@cup.hp.com>
23121
23122 PR target/37454
23123 * configure.ac: Modify -rdynamic check.
23124 * configure: Regenerate.
23125
23126 2010-01-08 DJ Delorie <dj@redhat.com>
23127
23128 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
23129 register popping order.
23130
23131 2010-01-08 Richard Guenther <rguenther@suse.de>
23132
23133 PR lto/42528
23134 * c.opt (fsigned-char): Also let LTO handle this option.
23135 (funsigned-char): Likewise.
23136
23137 2010-01-07 Richard Guenther <rguenther@suse.de>
23138
23139 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
23140 (gimple_op): Likewise.
23141 (gimple_op_ptr): Likewise.
23142 (gimple_assign_set_lhs): Remove gcc_assert.
23143 (gimple_assign_set_rhs1): Likewise.
23144 (gimple_assign_set_rhs2): Likewise.
23145 (gimple_call_set_lhs): Likewise.
23146 (gimple_call_set_fn): Likewise.
23147 (gimple_call_set_fndecl): Likewise.
23148 (gimple_call_fndecl): Likewise.
23149 (gimple_call_return_type): Likewise.
23150 (gimple_call_set_chain): Likewise.
23151 (gimple_call_num_args): Likewise.
23152 (gimple_call_set_arg): Likewise.
23153 (gimple_cond_set_code): Likewise.
23154 (gimple_cond_set_lhs): Likewise.
23155 (gimple_cond_set_rhs): Likewise.
23156 (gimple_cond_set_true_label): Likewise.
23157 (gimple_cond_set_false_label): Likewise.
23158 (gimple_label_set_label): Likewise.
23159 (gimple_goto_set_dest): Likewise.
23160 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
23161 (gimple_debug_bind_get_value): Likewise.
23162 (gimple_debug_bind_get_value_ptr): Likewise.
23163 (gimple_debug_bind_set_var): Likewise.
23164 (gimple_debug_bind_set_value): Likewise.
23165 (gimple_debug_bind_reset_value): Likewise.
23166 (gimple_debug_bind_has_value_p): Likewise.
23167 (gimple_return_retval_ptr): Remove gcc_assert.
23168 (gimple_return_retval): Likewise.
23169 (gimple_return_set_retval): Likewise.
23170 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
23171 (safe_referenced_var_iterator): Remove.
23172 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
23173 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
23174 (fill_referenced_var_vec): Remove.
23175 (first_readonly_imm_use): Remove redundant gcc_assert.
23176 (phi_arg_index_from_use): Combine gcc_asserts.
23177 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
23178 (first_imm_use_stmt): Remove redundant gcc_assert.
23179 * tree-cfg.c (verify_gimple_call): Verify function and chain
23180 operands. Verify arguments.
23181 (verify_types_in_gimple_stmt): Verify condition code and labels.
23182
23183 2010-01-07 Richard Guenther <rguenther@suse.de>
23184
23185 PR tree-optimization/42641
23186 * sese.c (rename_map_elt_info): Use the SSA name version, do
23187 not hash pointers.
23188
23189 2010-01-07 Jakub Jelinek <jakub@redhat.com>
23190
23191 PR tree-optimization/42625
23192 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
23193 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
23194
23195 2010-01-07 Duncan Sands <baldrick@free.fr>
23196
23197 * Makefile.in (PLUGIN_HEADERS): Add version.h.
23198
23199 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
23200
23201 PR target/42511
23202 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
23203 note itself is not function_invariant_p.
23204
23205 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
23206
23207 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
23208 Do not add the DF_NOTE problem.
23209 * store-motion.c (execute_rtl_store_motion): Likewise.
23210
23211 2010-01-07 Martin Jambor <mjambor@suse.cz>
23212
23213 PR tree-optimization/42157
23214 * tree-sra.c (compare_access_positions): Stabilize sort if both
23215 accesses have integer types, return zero immediately if they are the
23216 same.
23217
23218 2010-01-06 Richard Henderson <rth@redhat.com>
23219
23220 PR middle-end/41883
23221 * haifa-sched.c (add_to_note_list): Merge into ...
23222 (concat_note_lists): ... here, and ...
23223 (unlink_other_notes, rm_other_notes): Merge into...
23224 (remove_notes): ... here. Create REG_SAVE_NOTEs for
23225 NOTE_INSN_EPILOGUE_BEG.
23226
23227 2010-01-06 Richard Guenther <rguenther@suse.de>
23228
23229 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
23230 not inline regular functions into always-inline functions.
23231
23232 2010-01-06 Nick Clifton <nickc@redhat.com>
23233
23234 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
23235 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
23236 used together.
23237 (OVERRIDE_OPTIONS): Delete.
23238 (OPTIMIZATION_OPTIONS): Define.
23239 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
23240 * config/rx/rx.c (rx_handle_option): Issue an error message if
23241 -mcpu=rx200 and -fpu are used together.
23242 (rx_set_optimization_options): New function. Issue an error
23243 message if an optimization attribute attempts to reset the FPU/
23244 math optimization pairing.
23245 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
23246 * config/rx/rx.opt: Set the default to 32-bit doubles.
23247 * config/rx/t-rx: Add multilibs for -nofpu option.
23248 * doc/invoke.texi: Update documentation of RX options.
23249
23250 2010-01-06 Richard Guenther <rguenther@suse.de>
23251
23252 * tree-ssa-pre.c (name_to_id): New global.
23253 (alloc_expression_id): Simplify SSA name handling.
23254 (lookup_expression_id): Likewise.
23255 (init_pre): Zero name_to_id.
23256 (fini_pre): Free it.
23257
23258 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
23259
23260 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
23261
23262 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
23263
23264 PR target/42542
23265 * config/i386/sse.md (smaxv2di3): New.
23266 (umaxv2di3): Likewise.
23267 (sminv2di3): Likewise.
23268 (uminv2di3): Likewise.
23269
23270 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
23271
23272 PR target/42564
23273 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
23274 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
23275 (legitimize_tls_address): Likewise.
23276 (sparc_tls_referenced_p): Likewise.
23277 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
23278 and adjust calls to legitimize_pic_address.
23279 (legitimate_constant_p) Use sparc_tls_referenced_p.
23280 (legitimate_pic_operand_p): Likewise.
23281 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
23282 (sparc_tls_symbol_ref_1): Delete.
23283 (sparc_tls_referenced_p): Make static, recognize specific patterns.
23284 (legitimize_tls_address): Make static, handle CONST patterns.
23285 (legitimize_pic_address): Make static, remove unused parameter and
23286 adjust recursive calls.
23287 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
23288 and adjust call to legitimize_pic_address.
23289 (sparc_output_mi_thunk): Likewise.
23290
23291 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
23292 H.J. Lu <hongjiu.lu@intel.com>
23293
23294 PR target/42542
23295 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
23296 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
23297 operands to make them signed.
23298
23299 Revert:
23300 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
23301
23302 PR target/42542
23303 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
23304 GTU to GT for V4SI and V2DI.
23305
23306 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
23307 (umin<mode>3): Removed.
23308 (uminv8hi3): New.
23309 (uminv4si3): Likewise.
23310
23311 2010-01-05 Martin Jambor <mjambor@suse.cz>
23312
23313 PR tree-optimization/42462
23314 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
23315 current_function_decl to helper functions and macros.
23316
23317 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23318
23319 PR bootstrap/41771
23320 * flags.h: Don't include real.h.
23321 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
23322 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
23323 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
23324 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
23325 * dominance.c: Update copyright.
23326 * gimple.c (walk_gimple_op): Remove inline.
23327 * tree-ssa-reassoc.c: Include real.h.
23328 * Makefile.in (FLAGS_H): Remove $(REAL_H).
23329 (tree-ssa-reassoc.o): Depend on $(REAL_H).
23330
23331 2010-01-05 Nick Clifton <nickc@redhat.com>
23332
23333 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
23334 register to push into the stack frame when the accumulator has to
23335 be saved during interrupts.
23336
23337 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
23338
23339 * doc/invoke.texi: Remove the documentation about option
23340 -Wunreachable-code.
23341 * common.opt (Wunreachable-code): Preserved for backward
23342 compatibility.
23343 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
23344 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
23345 the backward compatibility flag section.
23346
23347 2010-01-05 Richard Guenther <rguenther@suse.de>
23348
23349 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
23350
23351 2010-01-05 Jakub Jelinek <jakub@redhat.com>
23352
23353 PR other/42611
23354 * cfgexpand.c (expand_one_var): Diagnose too large variables.
23355
23356 PR tree-optimization/42508
23357 * tree-sra.c (convert_callers): Check for recursive call
23358 by comparing cgraph nodes instead of decls.
23359 (modify_function): Call ipa_modify_formal_parameters also
23360 on all same_body aliases.
23361
23362 * cgraphunit.c (cgraph_materialize_all_clones): Compare
23363 cgraph nodes when checking for same_body aliases.
23364
23365 2010-01-05 Richard Guenther <rguenther@suse.de>
23366
23367 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
23368 allocation and lookup.
23369 (get_or_alloc_expr_for_constant): Likewise.
23370 (phi_translate): Sink allocation.
23371
23372 2010-01-04 Richard Guenther <rguenther@suse.de>
23373
23374 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
23375 a new entry only if needed.
23376 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
23377 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
23378 hashtable lookup.
23379 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
23380 the result array.
23381 (phi_translate): Handle CONSTANTs early.
23382
23383 2010-01-04 Martin Jambor <mjambor@suse.cz>
23384
23385 PR tree-optimization/42398
23386 * tree-sra.c (struct access): Removed flag grp_different_types.
23387 (dump_access): Do not dump the removed flag.
23388 (sort_and_splice_var_accesses): Do not set the removed flag.
23389 (sra_modify_expr): Check for type compatibility directly.
23390
23391 2010-01-04 Martin Jambor <mjambor@suse.cz>
23392
23393 PR tree-optimization/42366
23394 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
23395 edges with variable number of parameters.
23396 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
23397 flag instead of asserting it.
23398 (ipa_read_node_info): Read uses_analysis_done flag.
23399
23400 2010-01-04 Richard Guenther <rguenther@suse.de>
23401
23402 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
23403 iterative_hash_* as intended.
23404 (vn_reference_compute_hash): Likewise. Simplify hashing
23405 SSA names.
23406 (vn_reference_lookup_2): Likewise.
23407 (vn_nary_op_compute_hash): Likewise.
23408 (vn_phi_compute_hash): Likewise.
23409 (expressions_equal_p): Remove strange code.
23410 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
23411 (pre_expr_hash): Likewise. Simplify hashing SSA names.
23412 (bitmap_insert_into_set_1): Take value-id as parameter.
23413 (add_to_value): Pass it.
23414 (bitmap_insert_into_set): Likewise.
23415 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
23416
23417 2010-01-04 Jakub Jelinek <jakub@redhat.com>
23418
23419 PR driver/42442
23420 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
23421 (do_self_spec): For switches with SWITCH_IGNORE set set also
23422 SWITCH_IGNORE_PERMANENTLY.
23423 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
23424 of SWITCH_IGNORE.
23425
23426 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
23427
23428 * lto-streamer-out.c (output_unreferenced_globals): Output the full
23429 tree of an unreferenced global var.
23430
23431 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
23432
23433 PR target/42542
23434 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
23435 GTU to GT for V4SI and V2DI.
23436
23437 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
23438 (umin<mode>3): Removed.
23439 (uminv8hi3): New.
23440 (uminv4si3): Likewise.
23441
23442 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
23443
23444 PR lto/42581
23445 * collect2.c (main): Turn on trace in collect2 if -v is passed
23446 to gcc with LTO.
23447
23448 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
23449
23450 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
23451 description of expression operand.
23452
23453 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
23454
23455 * configure.ac: Add install-html to target_list for Make-hooks.
23456 * configure: Regenerate.
23457 * fortran/Make-lang.in (F95_HTMLFILES): New.
23458 (fortran.html): Use it.
23459 (fortran.install-html): New.
23460 * Makefile.in (install-html): Add lang.install-html.
23461 * java/Make-lang.in (JAVA_HTMLFILES): New.
23462 (java.html): Use it.
23463 (java.install-html): New.
23464 * objc/Make-lang.in (objc.install-html): New.
23465 * objcp/Make-lang.in (obj-c++.install-html): New.
23466 * cp/Make-lang.in (c++.install-html): New.
23467 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
23468 * lto/Make-lang.in (lto.install-html): New.
23469
23470 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
23471
23472 PR lto/42520
23473 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
23474
23475 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
23476
23477 PR rtl-optimization/41862
23478 * store-motion.c (store_killed_in_insn, compute_store_table,
23479 remove_reachable_equiv_notes, replace_store_insn,
23480 build_store_vectors): Ignore all DEBUG_INSNs.
23481
23482 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
23483
23484 PR lto/41564
23485 * common.opt: Add dumpdir.
23486
23487 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
23488 isn't specified.
23489 (option_map): Add --dumpdir.
23490
23491 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
23492
23493 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
23494
23495 * opts.c (decode_options): Try dump_dir_name first if
23496 dump_base_name isn't an absolute path.
23497 (common_handle_option): Handle OPT_dumpdir.
23498
23499 * toplev.c (dump_dir_name): New.
23500 (print_switch_values): Also ignore -dumpdir.
23501
23502 * toplev.h (dump_dir_name): New.
23503
23504 2010-01-03 Richard Guenther <rguenther@suse.de>
23505
23506 PR tree-optimization/42589
23507 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
23508 double-word expansion of bswap32.
23509
23510 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
23511
23512 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
23513 with BLOCK_FOR_INSN.
23514 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
23515 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
23516 noce_process_if_block): Likewise.
23517 * gcse.c (compute_local_properties, insert_expr_in_table,
23518 insert_set_in_table, canon_list_insert, find_avail_set,
23519 pre_insert_copy_insn): Likewise.
23520
23521 * basic-block.h (BLOCK_NUM): Move from here...
23522 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
23523
23524 2010-01-03 Richard Guenther <rguenther@suse.de>
23525
23526 PR tree-optimization/42438
23527 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
23528 contains_may_not_return_call flag.
23529 (BB_MAY_NOTRETURN): New.
23530 (valid_in_sets): Trapping nary operations are not valid
23531 in blocks that may not return.
23532 (insert_into_preds_of_block): Remove check for trapping expressions.
23533 (compute_avail): Compute also BB_MAY_NOTRETURN.
23534
23535 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
23536
23537 * doc/invoke.texi: Add 2010 to copyright years.
23538
23539 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
23540
23541 * config/sparc/sparc.c: Fix formatting nits.
23542
23543 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
23544 Alexander Monakov <amonakov@ispras.ru>
23545
23546 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
23547
23548 2010-01-02 Richard Guenther <rguenther@suse.de>
23549
23550 PR middle-end/42577
23551 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
23552 (simplify_switch_using_ranges): Mark to be removed edges
23553 as non-executable.
23554
23555 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23556
23557 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
23558
23559 * collect2.c (scan_libraries): Add missing argument in call to
23560 scan_prog_file.
23561
23562 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
23563
23564 PR target/42448
23565 * config/alpha/predicates.md (aligned_memory_operand): Return false
23566 for CQImode.
23567 (unaligned_memory_operand): Return true for CQImode.
23568 * config/alpha/alpha.c (get_aligned_mem): Assert that location
23569 doesn not cross aligned SImode word boundary.
23570
23571 2010-01-02 Anatoly Sokolov <aesok@post.ru>
23572
23573 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
23574 Remove.
23575 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
23576 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
23577
23578 2010-01-02 Richard Guenther <rguenther@suse.de>
23579
23580 PR lto/41597
23581 * toplev.c (compile_file): Emit LTO marker properly. Change
23582 it to __gnu_lto_v1.
23583 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
23584
23585 2010-01-01 Richard Guenther <rguenther@suse.de>
23586
23587 PR debug/42455
23588 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
23589
23590 2010-01-01 Richard Guenther <rguenther@suse.de>
23591
23592 PR c/42570
23593 * c-decl.c (grokdeclarator): For zero-size arrays force
23594 structural equality checks as layout_type does.
23595
23596 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
23597
23598 * builtins.c: Update copyright to 2010.
23599
23600 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
23601
23602 PR lto/42531
23603 * lto-streamer-out.c (produce_asm): Revert the last change.
23604 (copy_function): Likewise.
23605
23606 * lto-streamer.c (lto_get_section_name): Skip any leading
23607 asterisk in name.
23608
23609 2010-01-01 Richard Guenther <rguenther@suse.de>
23610
23611 PR middle-end/42559
23612 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
23613 for LABEL_DECLs.
23614
23615 \f
23616 Copyright (C) 2010 Free Software Foundation, Inc.
23617
23618 Copying and distribution of this file, with or without modification,
23619 are permitted in any medium without royalty provided the copyright
23620 notice and this notice are preserved.