CDI_POST_DOMINATORS are not used in Graphite.
[gcc.git] / gcc / ChangeLog
1 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2
3 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
4 verify_dominators for CDI_POST_DOMINATORS.
5 * sese.h: Remove comment about CDI_POST_DOMINATORS.
6 (recompute_all_dominators): Remove call to free_dominance_info
7 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
8 for CDI_POST_DOMINATORS.
9
10 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11
12 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
13 over pbb_dim_iter_domain.
14
15 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
16
17 * graphite-flattening.c: Fix comments.
18
19 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
20
21 * Makefile.in (OBJS-common): Add graphite-flattening.o.
22 (graphite-flattening.o): New rule.
23 * common.opt (floop-flatten): New flag.
24 * doc/invoke.texi (-floop-flatten): Documented.
25 * graphite-flattening.c: New.
26 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
27 * graphite-poly.h (flatten_all_loops): Declared.
28 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
29 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
30 is set, also set flag_graphite.
31
32 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
33
34 * graphite-poly.c (cloog_checksum): New.
35 * graphite-poly.h (cloog_checksum): Declared.
36
37 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
38
39 * graphite-poly.c (pbb_number_of_iterations): Removed.
40 (pbb_number_of_iterations_at_time): Correctly compute the number
41 of iterations in the transformed loop.
42 * graphite-poly.h (pbb_number_of_iterations): Removed.
43
44 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
45
46 * graphite-poly.h (lst_update_scattering_seq): Removed.
47 (lst_update_scattering): Correctly handle outermost loop dewey
48 renumbering.
49
50 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
51
52 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
53 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
54 * graphite-poly.h (lst_niter_for_loop): New.
55
56 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
57
58 * graphite-poly.c (apply_poly_transforms): Do not abort when the
59 transform read from disk is not legal. Call fatal_error instead.
60
61 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
62
63 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
64 (print_scop_header): Removed. Inlined in the only call place...
65 (print_scop): ... here.
66
67 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
68
69 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
70
71 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
72
73 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
74
75 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
76
77 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
78 (dot_deps_stmt): Same.
79 * graphite-poly.c (dot_lst): Same.
80
81 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
82
83 * graphite-blocking.c (scop_do_strip_mine): Do not call
84 graphite_legal_transform.
85 (scop_do_block): Same.
86
87 2010-09-30 Vladimir Kargov <kargov@gmail.com>
88
89 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
90 description.
91
92 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
93
94 * tree-scalar-evolution.c (instantiate_array_ref): New.
95 (instantiate_scev_r): Also handle ARRAY_REFs.
96
97 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
98
99 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
100 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
101 RESULT_DECL, and FIELD_DECL. Return false for an
102 SSA_NAME_IS_DEFAULT_DEF.
103 (compute_scalar_evolution_in_loop): Do not further analyze the
104 scalar evolution when no_evolution_in_loop_p returns true.
105
106 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
107
108 * tree-chrec.h (evolution_function_is_affine_p): Do not check
109 whether CHREC_LEFT is invariant. A function is affine when
110 CHREC_RIGHT is invariant.
111
112 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
113
114 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
115 is_gimple_reg.
116 (rewrite_degenerate_phi): Same.
117 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
118
119 2010-09-30 Vladimir Kargov <kargov@gmail.com>
120
121 * graphite-scop-detection.c (graphite_can_represent_scev,
122 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
123 graphite_can_represent_loop): Remove outermost_loop.
124
125 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
126
127 PR middle-end/45229
128 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
129 handle GIMPLE_CALLs with no LHS.
130
131 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
132
133 * graphite-poly.c (init_graphite_out_file): New.
134 (init_graphite_in_file): New.
135 (apply_poly_transforms): Updated to enable reading and writing of
136 multiple scop files.
137
138 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
139
140 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
141 redundant checks.
142
143 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
144
145 * graphite-clast-to-gimple.c (precision_for_value): Adjust
146 computation of precision by 1.
147
148 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
149
150 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
151 (openscop_read_polyhedron_matrix): New.
152 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
153 (openscop_read_N_int): Same.
154 * graphite-poly.c (openscop_read_N_int): New.
155 (openscop_read_one_int): New.
156 (openscop_read_N_string): New.
157 (openscop_read_one_string): New.
158 (openscop_read_powerset_matrix): New.
159 (graphite_read_transforms): Remove.
160 (graphite_read_scatt): New.
161 (graphite_read_scop_file): New.
162 (apply_poly_transforms): Updated to call graphite_read_scop_file.
163
164 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
165
166 * graphite-poly.c: Change include order.
167
168 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
169
170 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
171 (cloog_matrix_nrows): New.
172
173 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
174
175 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
176 from matrix lines.
177 * graphite-poly.c (openscop_print_scattering_function_1): Same.
178 (print_scattering_function_1): Same.
179 (openscop_print_pbb_domain): Same.
180 (openscop_print_scop_context): Same.
181 (print_scop_context): Same.
182
183 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
184
185 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
186 (openscop_print_pdr_polyhedron): Print pph.
187
188 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
189
190 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
191 priority signed types.
192
193 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
194
195 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove the call
196 to lang_hooks.types.type_for_size. Call build_nonstandard_integer_type.
197
198 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
199
200 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
201 (openscop_print_polyhedron_matrix): New.
202 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
203 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
204 (openscop_print_pdr_powerset): New.
205 (openscop_print_powerset_matrix): New.
206 (openscop_print_scattering_function_1): New.
207 (print_scattering_function): Add support for scattering names and
208 OpenScop format.
209 (graphite_write_transforms): Remove.
210 (print_pdr_access_layout): Updated to support OpenScop format.
211 (print_pdr): Same.
212 (openscop_print_pbb_domain): New.
213 (print_pbb_body): Added a parameter to allow indicating that pbb_body is
214 not provided.
215 (print_pbb): Updated to call the new print_pbb_body.
216 (openscop_print_scop_context): New.
217 (print_scop_header): New.
218 (print_scop): Updated to call print_scop_header.
219 * graphite-poly.h: Document OpenScop format.
220
221 2010-09-30 Anatoly Sokolov <aesok@post.ru>
222
223 * config/cris/m32c.c (cris_memory_move_cost): New.
224 (cris_register_move_cost): Make static. Change arguments type from
225 enum reg_class to reg_class_t.
226 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
227 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
228 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
229
230 2010-09-30 Jakub Jelinek <jakub@redhat.com>
231
232 PR target/45843
233 * config/i386/i386.c (ix86_gimplify_va_arg): Use
234 INTVAL (XEXP (slot, 1)) as prev_size.
235
236 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
237
238 PR target/45837
239 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
240 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
241 defined.
242 * config/rs6000/option-defaults.h (toplevel): Change #if
243 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
244 global option changes.
245
246 2010-09-30 Jakub Jelinek <jakub@redhat.com>
247
248 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
249
250 PR tree-optimization/31261
251 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
252 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
253
254 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
255
256 PR bootstrap/45796
257 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
258 special-casing for generators and turn into ...
259 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
260 rule, for better error messages in case of toplevel dependency
261 errors.
262 (genprog): Add hooks, rename to ...
263 (genprogerr): ... this, and let genprog also contain check,
264 checksum, condmd.
265 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
266 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
267 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
268
269 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
270 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
271
272 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
273 for GMP, MPFR and MPC.
274
275 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
276
277 * config/sparc/sparc.opt (mimpure-text): Move ...
278 * config/sol2.opt: ... here.
279 Correct description.
280 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
281 * doc/invoke.texi (Option Summary, SPARC Options): Move
282 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
283 (Option Summary, Solaris 2 Options): ... here.
284 (Submodel Options, Solaris 2 Options): New menu entry.
285 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
286 (Solaris 2 Options): ... here.
287
288 2010-09-30 Michael Eager <eager@eagercon.com>
289
290 * extend.texi (interrupt_handler): Add MicroBlaze to list.
291 (save_volatiles): Describe option for MicroBlaze.
292 * invoke.texi: Add MicroBlaze Options.
293 * contrib.texi: Add acknowledgment.
294 * md.texi: Add MicroBlaze d and z constraints.
295 * install.texi: Add microblaze-*-elf.
296 * configure.ac: Add microblaze-*-* to target list.
297 * configure: Regenerate.
298 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
299 * config/microblaze/microblaze-protos.h: New.
300 * config/microblaze/crti.s: New.
301 * config/microblaze/predicates.md: New.
302 * config/microblaze/linux.h: New.
303 * config/microblaze/microblaze.md: New.
304 * config/microblaze/constraints.md: New.
305 * config/microblaze/crtn.s: New.
306 * config/microblaze/microblaze.opt: New.
307 * config/microblaze/microblaze-c.c: New.
308 * config/microblaze/t-microblaze: New.
309 * config/microblaze/microblaze.c: New.
310 * config/microblaze/microblaze.h: New.
311
312 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
313
314 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
315 parse @optional/@required and set the flags as appropriate.
316
317 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
318
319 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
320
321 2010-09-30 Joseph Myers <joseph@codesourcery.com>
322
323 * opt-functions.awk (static_var): Update comment.
324 (var_ref): Return offsetof expression or -1, not variable address.
325 * optc-gen.awk: Generate structure field initializers instead of
326 static variables. Expect -1 for missing variables instead of null
327 pointer. Add gcc_options parameters to generated functions.
328 * opth-gen.awk: Generate structure fields for static variables.
329 Add gcc_options parameters to generated functions.
330 * common.opt (optimize, optimize_size): Add variables.
331 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
332 &global_options to cl_target_option_restore.
333 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
334 &global_options to cl_optimization_restore, cl_target_option_save
335 and cl_target_option_restore.
336 (ix86_set_current_function): Pass &global_options to
337 cl_target_option_restore.
338 * config/pdp11/pdp11.h (optimize): Remove.
339 * config/rs6000/rs6000.h (optimize): Remove.
340 * config/sh/sh.h (optimize): Remove.
341 * config/xtensa/xtensa.h (optimize): Remove.
342 * coretypes.h (struct gcc_options): Declare.
343 * diagnostic.c (diagnostic_initialize): Initialize
344 context->option_state.
345 (diagnostic_report_diagnostic): Pass option_state to
346 option_enabled hook.
347 * diagnostic.h (diagnostic_context.option_enabled): Add void *
348 parameter.
349 (diagnostic_context.option_state): New field.
350 * final.c (final_start_function, final, final_scan_insn): Rename
351 optimize parameter to optimize_p.
352 * flags.h (optimize, optimize_size): Remove.
353 * function.c (invoke_set_current_function_hook): Pass
354 &global_options to cl_optimization_restore.
355 * gcc.c (driver_handle_option): Take gcc_options parameter.
356 Assert that it is &global_options.
357 (process_command): Pass &global_options to read_cmdline_option.
358 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
359 option_enabled.
360 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
361 &global_options to set_option.
362 * opts-common.c (handle_option, handle_generated_option,
363 read_cmdline_option, set_option): Take explicit gcc_options
364 parameters. Use option_flag_var.
365 (option_flag_var): New.
366 * opts.c (common_handle_option, lang_handle_option,
367 target_handle_option): Take gcc_options parameter. Assert that it
368 is &global_options.
369 (read_cmdline_options): Pass &global_options to
370 read_cmdline_option.
371 (print_filtered_help): Use option_flag_var. Pass &global_options
372 to option_enabled.
373 (common_handle_option): Use option_flag_var.
374 (option_enabled): Take opts parameter. Use option_flag_var.
375 (get_option_state): Take gcc_options parameter. Use
376 option_flag_var. Pass gcc_options parameter to option_enabled.
377 (enable_warning_as_error): Pass &global_options to
378 handle_generated_option.
379 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
380 (cl_option_handler_func.handler): Take gcc_options parameter.
381 (option_enabled, get_option_state, set_option, handle_option,
382 handle_generated_option, read_cmdline_option): Take gcc_options
383 parameters.
384 * toplev.c (optimize, optimize_size): Remove.
385 (print_switch_values): Pass &global_options to option_enabled.
386 (option_affects_pch_p): Use option_flag_var. Pass &global_options
387 to get_option_state.
388 (general_init): Initialize global_dc->option_state.
389 * tree.c (build_optimization_node): Pass &global_options to
390 cl_optimization_save.
391 (build_target_option_node): Pass &global_options to
392 cl_target_option_save.
393
394 2010-09-30 Martin Jambor <mjambor@suse.cz>
395
396 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
397 zero sized bit-fields.
398
399 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
400
401 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
402 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
403 (c_parser_external_declaration): Use RID_AT_CLASS
404 instead of RID_CLASS.
405 (c_parser_objc_class_declaration): Same change.
406 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
407 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
408 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
409 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
410 and RID_AT_PUBLIC instead of RID_PUBLIC.
411 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
412 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
413
414 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
415
416 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
417 Add links to current providers of packages for Solaris and IRIX.
418
419 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
420
421 Merge from 'apple/trunk' branch on FSF servers.
422 * c-parser.c: Applied change originally in c-parse.in.
423
424 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
425
426 Radar 4281748
427 * c-decl.c (start_decl): Check for redeclaration of class name.
428 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
429
430 2010-09-29 Steve Ellcey <sje@cup.hp.com>
431
432 * config/ia64/ia64.c (ia64_builtin_decl): New.
433 (TARGET_BUILTIN_DECL): Define.
434 (ia64_builtins): New.
435 (ia64_init_builtins): Save decls in ia64_builtins.
436
437 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
438
439 PR target/40457
440 * postreload.c (move2add_use_add2_insn): Use full_costs for
441 comparison.
442 (move2add_use_add3_insn): Likewise.
443 (reload_cse_move2add): Likewise.
444 * rtlanal.c (get_full_rtx_cost): New function.
445 * rtl.h (struct full_rtx_costs): New.
446 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
447 costs_add_n_insns): New inline functions.
448 (get_full_rtx_cost): Declare.
449
450 PR c/45054
451 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
452 invariants. Check for reg_equiv_invariant.
453 (reload): Assert that spilled_pseudos is empty when returning.
454
455 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
456
457 * config/i386/mingw32.h (TARGET_64BIT): replaced by
458 TARGET_64BIT_DEFAULT in #if check.
459
460 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
461
462 * varasm.c (assemble_alias): Add error message for
463 unsupported ifunc.
464
465 2010-09-29 Mike Stump <mikestump@comcast.net>
466
467 * config/darwin.h (flag_mkernel): Remove.
468 (flag_apple_kext): Likewise.
469
470 2010-09-29 Joseph Myers <joseph@codesourcery.com>
471 Jack Howarth <howarth@bromo.med.uc.edu>
472
473 * config/darwin.opt (undefined): Add.
474
475 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
476
477 * configure.ac: Add --enable-indirect-function option.
478 * config.gcc: Add default_gnu_indirect_function.
479 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
480 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
481 * varasm.c (do_assemble_alias): Adjust for macto name change.
482 * configure: Rebuilt.
483 * doc/install.texi: Document --enable-indirect-function.
484
485 2010-09-29 Joseph Myers <joseph@codesourcery.com>
486
487 * doc/options.texi (Variable, Var, Init): Update documentation
488 without reference to VarExists.
489 (VarExists): Remove.
490 * common.opt, config/i386/i386.opt, config/linux.opt,
491 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
492 Don't use VarExists.
493
494 2010-09-29 Joseph Myers <joseph@codesourcery.com>
495
496 * optc-gen.awk: Generate global_options initializer instead of
497 individual variables. Add x_ prefix to names of structure
498 members.
499 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
500 names of structure members.
501 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
502 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
503 * doc/tm.texi: Regenerate.
504 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
505 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
506 * c-parser.c (disable_extension_diagnostics,
507 restore_extension_diagnostics): Update names of cpp_options
508 members.
509 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
510 * common.opt (fcompare-debug-second): Don't use Var.
511 * config/alpha/alpha.h (target_flags): Remove.
512 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
513 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
514 * config/bfin/bfin.h (target_flags): Remove.
515 * config/cris/cris.h (target_flags): Remove.
516 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
517 cl_target_option members.
518 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
519 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
520 ix86_can_inline_p): Update names of cl_target_option members.
521 * config/i386/i386.h (ix86_isa_flags): Remove.
522 * config/lm32/lm32.h (target_flags): Remove.
523 * config/mcore/mcore.h (mcore_stack_increment): Remove.
524 * config/mcore/mcore.md (addsi3): Remove extern declaration of
525 flag_omit_frame_pointer.
526 * config/mep/mep.h (target_flags): Remove.
527 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
528 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
529 * config/mmix/mmix.h (target_flags): Remove.
530 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
531 flag_expensive_optimizations): Remove.
532 * config/s390/s390.h (flag_pic): Remove.
533 * config/score/score-conv.h (target_flags): Remove.
534 * config/sh/sh.h (sh_fixed_range_str): Remove.
535 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
536 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
537 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
538 * diagnostic.c (diagnostic_initialize): Update names of
539 diagnostic_context members.
540 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
541 warn_system_headers.
542 (diagnostic_report_warnings_p): Update for new names.
543 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
544 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
545 HARD_FRAME_POINTER_IS_ARG_POINTER.
546 * flags.h (flag_compare_debug): Declare.
547 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
548 * opts.c (flag_compare_debug): Define.
549 (common_handle_option): Update names of diagnostic_context
550 members. Handle -fcompare-debug-second.
551 (fast_math_flags_struct_set_p): Update names of cl_optimization
552 members.
553 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
554 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
555 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
556 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
557 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
558 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
559 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
560 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
561 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
562
563 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
564
565 * config/picochip/picochip.c (picochip_output_internal_label):
566 This function can now be called for debug CFI labels, which can come in
567 the middle of a vliw instruction. Postpone until end of vliw.
568
569 2010-09-29 Richard Guenther <rguenther@suse.de>
570
571 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
572 (DECL_FILE_SCOPE_P): Use it.
573 (TYPE_FILE_SCOPE_P): New macro.
574
575 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
576
577 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
578 a CPP_NAME which is a reserved word, clearly separate cases for
579 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
580
581 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
582
583 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
584 token->value with the canonical spelling. Do exactly like C and
585 C++ and leave it as it is.
586
587 2010-09-28 Richard Henderson <rth@redhat.com>
588
589 * config/alpha/alpha.c (alpha_builtins): New.
590 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
591 (alpha_builtin_function): New.
592 (alpha_add_builtins, alpha_init_builtins): Use it.
593
594 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
595
596 * doc/standards.texi (Standards): Expanded the section on
597 Objective-C and Objective-C++.
598
599 2010-09-28 DJ Delorie <dj@redhat.com>
600
601 PR target/45800
602 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
603 volatile MEMs.
604
605 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
606
607 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
608 attributes on methods.
609 (c_parser_objc_method_definition): Handle attributes.
610 (c_parser_objc_methodproto): Likewise.
611 (c_parser_objc_maybe_method_attributes): New.
612 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
613 missing definition, similar to that in ObjC++.
614
615 2010-09-28 Richard Henderson <rth@redhat.com>
616
617 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
618 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
619 (CONFIG_SJLJ_EXCEPTIONS): Remove.
620 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
621 (STACK_CHECK_PROTECT): Likewise.
622 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
623 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
624 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
625 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
626 (dwarf2out_assembly_start): Likewise.
627 * except.c (init_eh): Use targetm.except_unwind_info.
628 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
629 (output_one_function_exception_table): Likewise.
630 * final.c: Unconditionally include dwarf2out.h.
631 (final_start_function): Unconditionally call dwarf2out routines.
632 (final_end_function, final_scan_insn): Likewise.
633 * function.c (expand_function_end): Use targetm.except_unwind_info.
634 * opts.c (decode_options): Use targetm.except_unwind_info.
635 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
636 * target.def (debug_unwind_info, except_unwind_info): New.
637 * target.h (enum unwind_info_type): New.
638 * targhooks.c (default_debug_unwind_info): New.
639 (default_except_unwind_info): New.
640 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
641 * targhooks.h: Declare them.
642 * tree-tailcall.c: Include "target.h"
643 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
644 * Makefile.in (tree-tailcall.o): Update.
645 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
646 (lhd_gcc_personality): Likewise.
647
648 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
649 (TARGET_EXCEPT_UNWIND_INFO): New.
650 (DWARF2_UNWIND_INFO): Update.
651 (TARGET_DEBUG_UNWIND_INFO): New.
652 * doc/tm.texi: Rebuild.
653
654 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
655 targetm.except_unwind_info.
656
657 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
658 (arm_except_unwind_info): New.
659 (arm_compute_func_type): Use it.
660 (arm_expand_prologue, thumb_pushpop): Likewise.
661 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
662 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
663 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
664 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
665 (DWARF2_UNWIND_INFO): Remove.
666 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
667 (ARM_EABI_UNWIND_TABLES): Remove.
668
669 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
670 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
671 (ia64_except_unwind_info): New.
672 (ia64_output_function_prologue): Use it.
673 (ia64_add_bundle_selector_before): Likewise.
674 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
675 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
676 (TARGET_UNWIND_INFO): Remove.
677
678 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
679
680 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
681
682 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
683 (c_parser_objc_protocol_definition): Likewise.
684 (c_parser_external_declaration): Provide dummy attribute arguments.
685 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
686 (c_parser_objc_class_definition): Handle attributes.
687 (c_parser_objc_protocol_definition): Likewise.
688
689 2010-09-28 Tobias Burnus <burnus@net-b.de>
690
691 PR fortran/40569
692 PR fortran/40568
693 * toplev.h (save_decoded_options, save_decoded_options_count):
694 New global variables.
695 * toplev.c (save_decoded_options, save_decoded_options_count):
696 export variables.
697
698 2010-09-28 Ian Lance Taylor <iant@google.com>
699
700 * config/i386/i386.c (ix86_supports_split_stack): Test
701 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than
702 dwarf2out_do_cfi_asm.
703
704 2010-09-28 Ian Lance Taylor <iant@google.com>
705
706 PR target/45815
707 * opts.c (decode_options): Don't test whether the target supports
708 split stack if flag_split_stack == 0.
709
710 2010-09-28 Jan Hubicka <jh@suse.cz>
711
712 * builtin-attrs.def (ATTR_LEAF): New attribute.
713 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
714 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
715 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
716 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
717 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
718 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
719 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
720 * sync-builtins.def: Annotate all builtins by leaf.
721 * omp-builtins.def: Annotate all builtins by leaf.
722 * builtins.def: Annotate relevant builtins with leaf attribute.
723 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
724 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
725 leaf.
726
727 2010-09-28 Jan Hubicka <jh@suse.cz>
728
729 * tree-ssa-ccp.c (fold_ctor_reference): New function.
730 (fold_const_aggregate_ref): Use it.
731 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
732 into external static.
733
734 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
735
736 PR target/44452
737 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
738 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
739 (ix86_solaris_return_in_memory): Remove.
740 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
741 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
742 (TARGET_SUBTARGET_DEFAULT): Redefine.
743 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
744 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
745 (TARGET_SUBTARGET_DEFAULT): Redefine.
746 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
747 -mvect8-ret-in-mem.
748 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
749
750 2010-09-29 Alan Modra <amodra@gmail.com>
751
752 PR target/45807
753 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
754 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
755 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
756 Delete.
757 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
758 (rs6000_emit_prologue): Don't just create frame save info for r2,
759 actually save r2.
760
761 2010-09-28 Richard Henderson <rth@redhat.com>
762
763 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
764 when 8 bytes are requested.
765
766 2010-09-28 Tristan Gingold <gingold@adacore.com>
767
768 * config/avr/avr.c (expand_prologue): Set
769 current_function_static_stack_size.
770
771 2010-09-28 Tristan Gingold <gingold@adacore.com>
772
773 * config/alpha/alpha.md: Change the initial condition of the
774 probing loop.
775
776 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
777
778 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
779 Split from *avx_<maxmin:code><mode>3.
780 (*avx_<smaxmin:code><mode>3): Ditto.
781 * config/i386/i386.md (maxmin): Remove code iterator.
782
783 2010-09-27 Ian Lance Taylor <iant@google.com>
784
785 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
786 requires assembler support for CFI directives.
787
788 2010-09-27 Richard Henderson <rth@redhat.com>
789
790 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
791
792 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
793
794 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
795 that AFTER is not in the range FROM..TO, inclusive.
796
797 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
798 Bernd Schmidt <bernds@codesourcery.com>
799
800 PR rtl-optimization/45792
801 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
802 If not all insns are to be merged, for each edge, stash the
803 next candidate after the to-be-merged insns before doing the
804 merge, and use them for the retry at the new insertion point.
805 Handle CC0 targets when retrying.
806
807 2010-09-27 Ian Lance Taylor <iant@google.com>
808
809 * common.opt (fsplit-stack): New option.
810 * opts.c (decode_options): Set flag_split_stack to final value.
811 * target.def (supports_split_stack): New hook.
812 * gcc.c (STACK_SPLIT_SPEC): Define.
813 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
814 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
815 (Code Gen Options): Document -fsplit-stack.
816 * doc/extend.texi (Function Attributes): Mention no_split_stack.
817 (Function Attributes): Document no_split_stack.
818 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
819 TARGET_SUPPORTS_SPLIT_STACK.
820 * doc/tm.texi: Rebuild.
821 * function.c (thread_prologue_and_epilogue_insns): If
822 flag_split_stack, add split stack prologue.
823 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
824 * varasm.c (saw_no_split_stack): New static variable.
825 (assemble_start_function): Set saw_no_split_stack if the function
826 has the no_split_stack attribute.
827 (file_end_indicate_split_stack): New function.
828 * output.h (file_end_indicate_split_stack): Declare.
829 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
830 and function.
831 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
832 routines.
833 * config/i386/i386.c (ix86_option_override_internal): Don't set
834 expand_builtin_va_start to NULL if -fsplit-stack.
835 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
836 -fsplit-stack.
837 (ix86_va_start): If -fsplit-stack, get overflow pointer from
838 scratch register set by prologue.
839 (ix86_code_end): If -fsplit-stack, call
840 file_end_indicate_split_stack.
841 (ix86_supports_split_stack): New static function.
842 (SPLIT_STACK_AVAILABLE): Define.
843 (split_stack_prologue_scratch_regno): New static function.
844 (split_stack_fn): New static variable.
845 (ix86_expand_split_stack_prologue): New function.
846 (ix86_live_on_entry): New static function.
847 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
848 (output_pic_addr_const): Likewise.
849 (i386_asm_output_addr_const_extra): Likewise.
850 (ix86_expand_call): Change return type to rtx. Return the new
851 call instruction.
852 (TARGET_SUPPORTS_SPLIT_STACK): Define.
853 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
854 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
855 (split_stack_prologue, split_stack_return): New insns.
856 (split_stack_space_check): New insn.
857 * config/i386/i386.h (struct machine_function): Add
858 split_stack_varargs_pointer field.
859 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
860 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
861 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
862 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
863 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
864 Declare.
865 (ix86_expand_call): Update declaration.
866
867 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
868
869 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
870 code. Added byref, which was missing in the list of codes.
871 Explain that enumeration values are encoded as the integer type
872 that the compiler uses to store them. Explain and make examples
873 of how 'const' interacts with pointers, and the complication of
874 the encoding of 'const char *'.
875 (Legacy type encoding): New subsection, explaining that GCC emits
876 incorrect type encodings for the NeXT runtime for compatibility
877 reasons.
878 (@@encode): New subsection, explaining @encode and particularly
879 that protocol qualifiers are not recognized inside an @encode()
880 expression.
881 (Method signatures): New subsection, explaining how method
882 signatures are encoded.
883
884 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
885
886 Merge from 'apple/trunk' branch on FSF servers. Removed small
887 change in build_conditional_expr that had been added when fixing
888 PR objc/27377 and which did the same check in a less complete way.
889
890 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
891
892 Radar 4229905
893 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
894 looking for objective-c common pointer types.
895
896 2005-06-22 Ziemowit Laski <zlaski@apple.com>
897
898 Radar 4154928
899 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
900 use their ObjC common type.
901
902 2010-09-27 Richard Guenther <rguenther@suse.de>
903
904 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
905
906 2010-09-27 Jie Zhang <jie@codesourcery.com>
907
908 * print-tree.c (print_node): Print in-constant-pool.
909
910 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
911
912 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
913 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
914 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
915 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
916
917 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
918
919 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
920 from pro_epilogue_adjust_stack_<mode>_{1,2}.
921 (pro_epilogue_adjust_stack_<mode>_add): Rename from
922 pro_epilogue_adjust_stack_<mode>_3.
923 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
924 renamed pro_epilogue_adjust_stack_{si,di}_add.
925 (ix86_expand_prologue): Use indirect functions. Update for renamed
926 pro_epilogue_adjust_stack_{si,di}_sub.
927
928 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
929
930 * config/i386/i386.md (movmsk_df): New insn.
931 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
932 sequence for TARGET_SSE_MATH.
933
934 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
935
936 * config/mips/mips.c (mips_builtin_decls): Declare.
937 (mips_init_builtins): Store function declarations in
938 mips_builtin_decls.
939 (mips_builtin_decl): New function.
940 (TARGET_BUILTIN_DECL): Define.
941
942 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
943 Richard Henderson <rth@redhat.com>
944
945 * config/i386/cygwin.asm: Include auto-host.h.
946 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
947 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
948 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
949 alignment code from the 64-bit path. Use gas local labels.
950 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
951 from _di_2. Remove the useless constant integer argument.
952 (pro_epilogue_adjust_stack_<mode>_3): New.
953 (allocate_stack_worker_probe_<mode>): Macroize from
954 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
955 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
956 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
957 (__chkstk_ms): New function.
958 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
959 * gcc/config/i386/t-interix: Likewise.
960 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
961 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
962 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
963 * configure, config.in: Rebuild.
964
965 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
966
967 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
968 statements because of the return slot optimization.
969
970 2010-09-25 Anatoly Sokolov <aesok@post.ru>
971
972 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
973 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
974 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
975 (class_likely_spilled_p): Rename to...
976 (avr_class_likely_spilled_p): ...this. Make static. Change argument
977 type to reg_class_t.
978
979 2010-09-24 Jan Hubicka <jh@suse.cz>
980
981 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
982 (lto_symtab_resolve_symbols): Set it.
983 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
984 store resolution field in cgraph/varpool.
985 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
986 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
987 (cgraph_dump_node): Drop used_from_object_file.
988 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
989 (cgraph_function_body_availability): Use decl_replaceable_p.
990 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
991 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
992 cgraph_used_from_object_file_p.
993 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
994 cgraph_used_from_object_file_p.
995 (resolution_used_from_other_file_p): New functoin.
996 (cgraph_used_from_object_file_p): New predicate.
997 * cgraph.h: Include plugin-api.h
998 (struct cgraph_local_info): Remove used_from_object_file.
999 (struct cgraph_node): Add resolution field.
1000 (struct varpool_node): Likewise; remove used_from_object_file;
1001 reove const_value_known.
1002 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
1003 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
1004 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1005 varpool_used_from_object_file_p): Declare.
1006 (varpool_get_node, varpool_extra_name_alias): Update prototype.
1007 * tree.h (DECL_REPLACEABLE_P): Remove.
1008 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
1009 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
1010 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1011 input_overwrite_node, input_node, input_varpool_node): Stream
1012 resolution.
1013 * expr.c (expand_expr_real_1): Use const_value_known_p
1014 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
1015 const_value_known.
1016 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
1017 (function_and_variable_visibility): Set resolution for local vars
1018 and functions; use varpool_used_from_object_file_p.
1019 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
1020 static functions.
1021 (default_binds_local_p_1): Use resolutoin info.
1022 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
1023 * varpool.c (varpool_get_node): Constify.
1024 (const_value_known_p): Do not use vnode->const_value_known;
1025 use decl_replaceable_p.
1026 (varpool_finalize_decl): Do not set const_value_known.
1027 (cgraph_variable_initializer_availability): Use decl_replaceable_p
1028 (varpool_extra_name_alias): Return new node.
1029 (varpool_used_from_object_file_p): New function.
1030
1031 2010-09-24 Richard Henderson <rth@redhat.com>
1032
1033 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
1034 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
1035 (do_spill): Use REG_CFA_OFFSET.
1036 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
1037 as appropriate.
1038 (ia64_expand_epilogue): Likewise.
1039 (process_set): Split into ...
1040 (process_cfa_adjust_cfa): this,
1041 (process_cfa_register): this,
1042 (process_cfa_offset): and this new function.
1043 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
1044 instead of REG_FRAME_RELATED_EXPR.
1045
1046 2010-09-24 Olivier Hainque <hainque@adacore.com>
1047
1048 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
1049
1050 2010-09-24 Jan Hubicka <jh@suse.cz>
1051
1052 * doc/extend.texi: (attribute leaf): Document.
1053 * tree.c (local_define_builtin): Handle ECF_LEAF.
1054 (build_common_builtin_nodes): Set ECF_LEAF where needed.
1055 * tree.h (ECF_LEAF): New.
1056 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
1057 overwrittable and unavailable functions.
1058 (ipa_init): Put all_module_statics into optimization_summary_obstack.
1059 (copy_global_bitmap): Do not copy all_module_statics.
1060 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
1061 (propagate): Handle overwritable and unavailable leaf functions;
1062 initialize global info for overwritable and unavailable leaf functions;
1063 do not free all module statics.
1064 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
1065 local statics.
1066 * calls.c (flags_from_decl_or_type): Handle leaf.
1067 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
1068 abnormal gotos.
1069
1070 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
1071
1072 * gengtype.c: Reindented.
1073 * gengtype.h: Reindented.
1074 * gengtype-parse.c: Reindented.
1075
1076 2010-09-24 Jan Hubicka <jh@suse.cz>
1077
1078 PR tree-optimization/45738
1079 PR tree-optimization/45741
1080 * expr.c (string_constant): Allow CONST_DECL too;
1081 check that DECL_INITIAL is set.
1082 * varpool.c (const_value_known_p): Only look into VAR_DECL
1083 and CONST_DECL.
1084
1085 2010-09-24 Joseph Myers <joseph@codesourcery.com>
1086
1087 * common.opt (undef): New.
1088
1089 2010-09-24 Jakub Jelinek <jakub@redhat.com>
1090
1091 PR middle-end/45234
1092 * rtl.h (enum global_rtl_index): Add
1093 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
1094 (LAST_VIRTUAL_POINTER_REGISTER): Define.
1095 (virtual_preferred_stack_boundary_rtx,
1096 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
1097 (LAST_VIRTUAL_REGISTER): Increase by one.
1098 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
1099 instead of LAST_VIRTUAL_REGISTER.
1100 * function.c (instantiate_new_reg): Handle
1101 virtual_preferred_stack_boundary_rtx.
1102 * emit-rtl.c (init_virtual_regs): Handle
1103 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
1104 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
1105 * explow.c (round_push): If crtl->preferred_stack_boundary
1106 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
1107 virtual_preferred_stack_boundary_rtx alignment instead of
1108 crtl->preferred_stack_boundary alignment.
1109 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
1110 macros. Never decrease crtl->preferred_stack_boundary,
1111 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
1112 instead of PREFERRED_STACK_BOUNDARY. Don't modify
1113 stack_pointer_delta in dynamic allocation, even when size
1114 is constant.
1115 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
1116 macro.
1117 * print-rtl.c (print_rtx): Handle
1118 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
1119 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
1120 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
1121 * config/frv/frv.c (frv_emit_movsi): Likewise.
1122 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
1123 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
1124 Likewise.
1125
1126 Revert:
1127 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
1128
1129 PR middle-end/45234
1130 * calls.c (expand_call): Make sure that all variable sized
1131 adjustments are multiple of preferred stack boundary after
1132 stack alignment.
1133
1134 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
1135 Dominique Dhumieres <dominiq@lps.ens.fr>
1136
1137 PR bootstrap/45751
1138 * gcc/config/darwin-driver.c (darwin_default_min_version):
1139 Adjust size passed to memcpy in two places.
1140
1141 2010-09-24 Richard Guenther <rguenther@suse.de>
1142
1143 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
1144 Make sure to not call set_type_context with error_mark_node.
1145 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
1146
1147 2010-09-24 Richard Guenther <rguenther@suse.de>
1148
1149 * Makefile.in (OBJS-onestep): Remove.
1150 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
1151 (libbackend.a): Remove onestep support.
1152 (libbackend.o): Remove.
1153 * configure.ac (--enable-intermodule): Remove.
1154 * configure: Regenerate.
1155
1156 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
1157
1158 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
1159 reaching the end of a block if it occurs at a DEBUG_INSN.
1160
1161 2010-09-09 Tristan Gingold <gingold@adacore.com>
1162
1163 PR target/44242
1164 * config/vms/vms-crt0-64.c: Removed.
1165 * config/vms/vms-crt0.c: Removed.
1166 * config/vms/vms-psxcrt0-64.c: Removed.
1167 * config/vms/vms-psxcrt0.c: Removed.
1168 * config/vms/vms-ucrt0.c: New file.
1169 * config/vms/t-vms64: Removed.
1170 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
1171 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
1172 * config.gcc (alpha-dec-vms): Use t-vms.
1173
1174 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
1175
1176 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
1177 underfull hbox in DVI output.
1178 (-fobjc-class-cxx-cdtors): Same change.
1179 (-fobjc-exceptions): Tidied up documentation. Explain what the
1180 option does, but moved the (lenghty) description of the exception
1181 syntax into objc.texi.
1182 (-fobjc-gc): Explain that the option is not useful with the GNU
1183 runtime.
1184 (-fzero-link): Explain that the GNU runtime always works in
1185 "zero-link" mode.
1186 * doc/objc.texi: All sections: simplified @node declarations
1187 removing specification of next, previous, up node.
1188 (Objective-C): Updated introduction.
1189 (Garbage Collection): Updated. The bohem-gc library is now
1190 included in gcc itself. Mention that this section only applies to
1191 the GNU Objective-C runtime.
1192 (compatibility_alias): Small tidy up.
1193 (Exceptions): New section mostly containing text previously in the
1194 description of the -fobjc-exception command-line option.
1195 (Synchronization): Same.
1196
1197 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
1198
1199 * config/i386/i386.md (ix86_code_end): Move the initialization of
1200 xops array near the consumer. Use AX_REG and SP_REG instead of
1201 numerical constants.
1202
1203 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
1204
1205 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
1206 method [methodname]' for an Objective-C method instead of the less
1207 satisfactory 'too many arguments to function' (with no method name).
1208
1209 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
1210
1211 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
1212 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
1213 (execute_update_addresses_taken): Remove parameter. Execute the
1214 optimization unconditionally.
1215 * passes.c (execute_function_todo): Call execute_update_addresses_taken
1216 unconditionally if TODO_rebuild_alias is set, else only when optimizing
1217 if TODO_update_address_taken is set.
1218
1219 >>>>>>> .r164755
1220 2010-09-23 Anatoly Sokolov <aesok@post.ru>
1221
1222 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1223 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
1224 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1225 (arm_output_addr_const_extra): Make static.
1226
1227 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
1228
1229 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
1230 define as unspec_volatile.
1231 ("nops"): Define as unspec_volatile. Use fputs to write to
1232 asm_out_file directly. Output NOPs on separate lines using while loop.
1233 * config/i386/i386.c (ix86_code_end): Use fputs to write to
1234 asm_out_file directly. Output NOPs on separate lines using while loop.
1235
1236 2010-09-23 Richard Guenther <rguenther@suse.de>
1237
1238 PR tree-optimization/45565
1239 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
1240 Make sure to adjust the fndecl before replacing the stmt.
1241
1242 2010-09-23 Richard Guenther <rguenther@suse.de>
1243
1244 PR middle-end/45750
1245 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
1246 gimplifying MEM_REF.
1247
1248 2010-09-23 Alan Modra <amodra@gmail.com>
1249
1250 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
1251 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
1252
1253 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
1254
1255 PR rtl-optimization/44374
1256 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
1257 * df-core.c (df_set_bb_dirty): Set it.
1258 * ifcvt.c (find_memory): Remove function.
1259 (dead_or_predicable): Use can_move_insns_across.
1260 * df.h (can_move_insns_across): Declare function.
1261 * cfgcleanup.c (block_was_dirty): New static variable.
1262 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
1263 than df_get_bb_dirty.
1264 (try_head_merge_bb): New static function.
1265 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
1266 is set.
1267 * df-problems.c: Include "target.h"
1268 (df_simulate_find_uses): New static function.
1269 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
1270 (find_memory, find_memory_store): New static functions.
1271 (can_move_insns_across): New function.
1272 * Makefile.in (df-problems.o): Update dependencies.
1273
1274 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
1275
1276 PR java/44095
1277 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
1278 is specified and the suffix of the file isn't ".c".
1279 * config/sparc/linux64.h (ASM_SPEC): Likewise.
1280
1281 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1282
1283 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
1284 * doc/cppopts.texi: Fix markup of index entry.
1285 * doc/extend.texi (Constructing Calls): Fix markup of
1286 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
1287 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
1288 (Vague Linkage, C++ Attributes): Fix markup of index entries and
1289 keywords.
1290 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
1291 avoid long lines.
1292 (C Dialect Options, C++ Dialect Options, Warning Options)
1293 (Debugging Options, Spec Files, Darwin Options)
1294 (i386 and x86-64 Options, MIPS Options)
1295 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
1296 index entries, avoid abbreviations, allow URLs to wrap, avoid
1297 long lines, avoid overlong pages from long @itemx lists.
1298 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
1299 * doc/standards.texi (Standards): Likewise.
1300 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
1301
1302 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1303
1304 * opts-common.c (prune_options): Make static. Work with decoded
1305 options.
1306 (decode_cmdline_options_to_array): Call prune_options. Don't
1307 resize option array here.
1308 * opts.h (prune_options): Remove prototype.
1309 * gcc.c (process_command): Take decoded options; don't call
1310 decode_cmdline_options_to_array here. Use decoded options for argv[0].
1311 (main): Call decode_cmdline_options_to_array here instead of
1312 prune_options. Update call to process_command.
1313 * config/darwin-driver.c: Include opts.h.
1314 (darwin_default_min_version): Work with decoded options. Don't
1315 handle -b or -V here.
1316 * config/darwin.h (darwin_default_min_version): Update prototype.
1317 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
1318 darwin_default_min_version.
1319 * config/i386/cygwin.h (mingw_scan): Update prototype.
1320 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
1321 * config/i386/cygwin1.c: Include opts.h.
1322 (mingw_scan): Work with decoded options.
1323 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
1324 * config/t-darwin (darwin-driver.o): Update dependencies.
1325
1326 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1327
1328 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
1329 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
1330 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
1331 -force-link, -force-link=, -language, -language=,
1332 -library-directory, -library-directory=, -no-canonical-prefixes,
1333 -no-standard-libraries, -no-warnings, -optimize, -output,
1334 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
1335 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
1336 -print-file-name=, -print-libgcc-file-name,
1337 -print-multi-directory, -print-multi-lib,
1338 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
1339 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
1340 -profile, -save-temps, -shared, -specs, -specs=, -static,
1341 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
1342 symbolic): New.
1343 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
1344 * gcc.c (A Short Introduction to Adding a Command-Line Option):
1345 Remove comment.
1346 (cc1_options): Correct specs for passing down --help,
1347 --target-help and --help=*. Add spec for passing down --version.
1348 (struct option_map, option_map, target_option_translations,
1349 translate_options): Remove.
1350 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
1351 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
1352 OPT_fhelp_ and OPT_ftarget_help.
1353 (process_command): Don't call translate_options. Call
1354 decode_cmdline_options_to_array before checking for
1355 -no-canonical-prefixes using decoded options.
1356 * opts-common.c (tm.h): Update comment on #include.
1357 (find_opt): Allow abbreviations of long options.
1358 (struct option_map, option_map): New.
1359 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
1360 and -mno handling.
1361 (target_option_translations): New.
1362 (decode_cmdline_options_to_array): Handle
1363 TARGET_OPTION_TRANSLATE_TABLE in driver.
1364 * opts.c (common_handle_option): Don't handle OPT_fhelp,
1365 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
1366
1367 2010-09-22 Richard Guenther <rguenther@suse.de>
1368
1369 * tree-inline.c (optimize_inline_calls): Schedule cleanups
1370 only if we inlined something. Block compaction and conditional
1371 folding are done by cfg cleanup. Schedule update-address-taken.
1372 (tree_function_versioning): Remove redundant call to number_blocks.
1373 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
1374 folding is done by cfg cleanup.
1375 * passes.c (init_optimization_passes): Remove update-address-taken
1376 pass after IPA inlining.
1377
1378 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
1379
1380 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
1381 to update conditions. Fix reg_mode[] check.
1382
1383 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
1384
1385 * config/picochip/picochip.md (movhicc): Use expand to check whether
1386 movhicc is available and split it after reload.
1387
1388 2010-09-22 Richard Guenther <rguenther@suse.de>
1389
1390 * tree-ssanames.c (release_dead_ssa_names): Do not remove
1391 callee edges here.
1392 * passes.c (init_optimization_passes): Remove early CFG cleanup.
1393 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
1394 (pass_cleanup_cfg): Likewise.
1395 (execute_fixup_cfg): Cleanup.
1396 * tree-pass.h (pass_cleanup_cfg): Remove.
1397
1398 2010-09-22 Martin Jambor <mjambor@suse.cz>
1399
1400 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
1401 builtins if it is true.
1402 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
1403 parameter.
1404
1405 2010-09-22 Martin Jambor <mjambor@suse.cz>
1406
1407 * tree-sra.c (struct access): New field grp_no_warning.
1408 (create_access_replacement): Set TREE_NO_WARNING according to
1409 grp_no_warning.
1410 (create_artificial_child_access): Use build_ref_for_model and set
1411 grp_no_warning if build_user_friendly_ref_for_offset fails.
1412 (propagate_subaccesses_across_link): Likewise.
1413
1414 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
1415
1416 PR target/35664
1417 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
1418 ('f'): Likewise.
1419
1420 2010-09-22 Tristan Gingold <gingold@adacore.com>
1421
1422 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
1423
1424 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
1425
1426 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
1427 * config/i386/i386.c (decide_alg): Update for rename.
1428
1429 2010-09-22 Jakub Jelinek <jakub@redhat.com>
1430
1431 PR rtl-optimization/45739
1432 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
1433 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
1434
1435 2010-09-21 Anatoly Sokolov <aesok@post.ru>
1436
1437 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
1438 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
1439 Remove.
1440 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
1441 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1442
1443 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1444
1445 PR objc/23710
1446 * c-parser.c (c_parser_objc_method_definition): Check the return
1447 value of objc_start_method_definition and if false is returned,
1448 parse the method definition but emit no code.
1449
1450 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1451
1452 PR objc/25965
1453 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
1454 call objc_get_interface_ivars ().
1455
1456 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
1457
1458 PR target/45694
1459 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
1460 static chain-register is used for 64-bit.
1461
1462 2010-09-21 Richard Guenther <rguenther@suse.de>
1463
1464 * dwarf2out.c (is_cu_die): New function.
1465 (add_pubtype): Use it.
1466 (gen_subprogram_die): Likewise.
1467 (gen_struct_or_union_type_die): Likewise.
1468 (dwarf2out_finish): Likewise.
1469 (comp_unit_die): Rename to ...
1470 (single_comp_unit_die): ... this.
1471 (comp_unit_die): New function lazily constructing and
1472 returning single_comp_unit_die.
1473 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
1474 base_type_die, subrange_type_die, modified_type_die,
1475 lower_bound_default, add_bound_info, add_prototyped_attribute,
1476 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
1477 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
1478 force_decl_die, gen_namespace_die, dwarf2out_decl,
1479 dwarf2out_start_source_file, dwarf2out_end_source_file,
1480 prune_unused_types, dwarf2out_finish): Use it.
1481 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
1482 the global list of translation-unit decls.
1483 (dwarf2out_init): Do not create single_comp_unit_die here.
1484 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
1485
1486 2010-09-21 Richard Guenther <rguenther@suse.de>
1487
1488 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
1489 for bool for C++.
1490
1491 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
1492
1493 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
1494 (qhs_extenddi_cstr): Likewise.
1495 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
1496 them for the source operand.
1497
1498 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
1499
1500 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
1501 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
1502 (ix86_split_ashr): Ditto.
1503 (ix86_split_lshr): Ditto.
1504
1505 2010-09-21 Richard Guenther <rguenther@suse.de>
1506
1507 PR tree-optimization/45580
1508 * tree-ssa-propagate.c (substitute_and_fold): Always replace
1509 regular uses.
1510 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
1511 virtuals fold the call into a regular indirect one.
1512
1513 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
1514
1515 PR rtl-optimization/42775
1516 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
1517 scheduling is enabled.
1518
1519 2010-09-20 Jakub Jelinek <jakub@redhat.com>
1520
1521 PR rtl-optimization/45728
1522 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
1523 gen_lowpart_common first and if that fails, force_reg first
1524 before calling gen_lowpart.
1525
1526 PR middle-end/45678
1527 * cfgexpand.c (expand_one_stack_var_at): Use
1528 crtl->max_used_stack_slot_alignment as max_align, instead
1529 of maximum of that and PREFERRED_STACK_BOUNDARY.
1530 Don't call update_stack_alignment.
1531
1532 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
1533
1534 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
1535 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
1536 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
1537 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
1538 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
1539 (build_nonstandard_integer_type): Likewise.
1540 (build_range_type_1): New function, built from...
1541 (build_range_type): ...this. Call build_range_type_1.
1542 (build_nonshared_range_type): New function.
1543 (build_array_type_1): New function, built from...
1544 (build_array_type: ...this. Call build_array_type_1.
1545 (build_nonshared_array_type): New function.
1546 * tree.h (build_nonshared_range_type): Declare.
1547 (build_nonshared_array_type): Likewise.
1548
1549 2010-09-20 Anatoly Sokolov <aesok@post.ru>
1550
1551 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
1552 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1553 (arm_class_likely_spilled_p): New function.
1554
1555 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
1556
1557 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
1558 indirect functions.
1559 (ix86_split_ashl): Ditto.
1560 (ix86_split_ashr): Ditto.
1561 (ix86_split_lshr): Ditto.
1562 (ix86_adjust_counter): Ditto.
1563
1564 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
1565
1566 * c-family/c-common.h (constant_string_class): Documented with
1567 comment identical to the one already in c-common.c.
1568
1569 2010-09-20 Jakub Jelinek <jakub@redhat.com>
1570
1571 * dwarf2out.c (any_cfis_emitted): New static variable.
1572 (add_fde_cfi): Set it.
1573 (dwarf2out_frame_debug): Clear it before processing,
1574 if it is set afterwards, flush any queued reg saves.
1575
1576 PR debug/45124
1577 * dwarf2out.c (add_accessibility_attribute): Assume
1578 DW_ACCESS_private as the default for dwarf_version > 2
1579 and DW_TAG_class_type parent.
1580 (gen_inheritance_die): Assume DW_ACCESS_public as the default
1581 for dwarf_version > 2 and parent other than DW_TAG_class_type.
1582
1583 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
1584
1585 PR target/45726
1586 * arm.md (arm_movt): Only enable on machines with MOVT.
1587
1588 2010-09-20 Jie Zhang <jie@codesourcery.com>
1589
1590 * config/arm/arm.c (arm_address_offset_is_imm): New.
1591 (arm_early_store_addr_dep): New.
1592 (arm_early_load_addr_dep): New.
1593 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
1594 (arm_early_load_addr_dep): Declare.
1595 (arm_address_offset_is_imm): Declare.
1596 * config/arm/cortex-m4.md: New file.
1597 * config/arm/cortex-m4-fpu.md: New file.
1598 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
1599 (attr generic_sched): Exclude cortexm4.
1600 (attr generic_vfp): Exclude cortexm4.
1601
1602 2010-09-20 Richard Guenther <rguenther@suse.de>
1603
1604 PR middle-end/45704
1605 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
1606
1607 2010-09-20 Jan Hubicka <jh@suse.cz>
1608
1609 PR tree-optimize/45605
1610 * cgraph.h (const_value_known_p): Declare.
1611 (varpool_decide_const_value_known): Remove.
1612 * tree-ssa-ccp.c (get_base_constructor): Use it.
1613 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
1614 * expr.c (string_constant): Likewise.
1615 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
1616 * ipa.c (ipa_discover_readonly_nonaddressable_var,
1617 function_and_variable_visibility): Likewise.
1618 * gimplify.c (gimplify_call_expr): Likewise.
1619 * gimple-fold.c (get_symbol_constant_value): Likewise.
1620 * varpool.c (varpool_decide_const_value_known): Replace by...
1621 (const_value_known_p): ... this one; handle other kinds of DECLs
1622 too and work for automatic vars.
1623 (varpool_finalize_decl): Use const_value_known_p.
1624
1625 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
1626
1627 PR target/45726
1628 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
1629
1630 2010-09-20 Richard Guenther <rguenther@suse.de>
1631
1632 PR tree-optimization/45705
1633 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
1634
1635 2010-09-20 Jakub Jelinek <jakub@redhat.com>
1636
1637 PR rtl-optimization/45695
1638 * combine.c (try_combine): When splitting a two set pattern,
1639 make sure the pattern which will be put into i2 doesn't use REGs
1640 or MEMs set by insns in between i2 and i3.
1641
1642 2010-09-19 Jan Hubicka <jh@suse.cz>
1643
1644 PR lto/44246
1645 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
1646 processing same node twice.
1647
1648 2010-09-19 Anatoly Sokolov <aesok@post.ru>
1649
1650 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
1651 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1652 (bfin_class_likely_spilled_p): New function
1653
1654 2010-09-19 Ira Rosen <irar@il.ibm.com>
1655
1656 PR tree-optimization/45714
1657 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
1658 created in vectorizable_call instead of the original statement in
1659 def stmt updates.
1660
1661 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
1662
1663 * config/i386/i386-protos.h (split_double_mode): New prototype.
1664 (split_di, split_ti): Remove prototypes.
1665 * config/i386/i386.c (split_double_mode): New function.
1666 (split_di, split_ti): Remove.
1667 (ix86_expand_branch): Use split_double_mode.
1668 (ix86_split_to_parts): Ditto.
1669 (ix86_split_ashl): Ditto.
1670 (ix86_split_ashr): Ditto.
1671 (ix86_split_lshr): Ditto.
1672 (ix86_force_to_memory): Ditto.
1673 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
1674
1675 2010-09-18 Jan Hubicka <jh@suse.cz>
1676
1677 PR tree-optimization/45453
1678 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
1679 virtual functions are reachable.
1680 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
1681 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
1682 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
1683 when modifying function.
1684
1685 2010-09-18 Jan Hubicka <jh@suse.cz>
1686
1687 PR tree-optimization/45605
1688 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
1689 * gimple-fold.c (static_object_in_other_unit_p): New function.
1690 (canonicalize_constructor_val): Use it.
1691 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
1692 returning NULL.
1693 (gimple_fold_obj_type_ref_known_binfo): Use
1694 static_object_in_other_unit_p.
1695
1696 2010-09-18 Richard Guenther <rguenther@suse.de>
1697
1698 PR tree-optimization/45709
1699 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
1700 insertions until after all PHI nodes of the block are processed.
1701
1702 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
1703
1704 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
1705
1706 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
1707
1708 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
1709
1710 2010-09-18 Richard Guenther <rguenther@suse.de>
1711
1712 PR tree-optimization/45709
1713 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
1714
1715 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
1716
1717 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
1718 (dot_deps_stmt): Same.
1719 * graphite-poly.c (dot_lst): Same.
1720 * graphite-scop-detection.c (dot_all_scops): Same.
1721 (dot_scop): Same.
1722
1723 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
1724
1725 Revert:
1726 2009-12-16 Ben Elliston <bje@au.ibm.com>
1727
1728 * tree-data-ref.c (dot_rdg_1): Added back.
1729 (dot_rdg): Same. Added "#if 0" around system call.
1730
1731 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
1732 Richard Henderson <rth@redhat.com>
1733
1734 * config/i386/i386.c (initial_ix86_tune_features): Add
1735 X86_TUNE_PAD_SHORT_FUNCTION.
1736 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
1737 (ix86_count_insn): New.
1738 (ix86_pad_short_function): Likewise.
1739 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
1740
1741 * config/i386/i386.h (ix86_tune_indices): Add
1742 X86_TUNE_PAD_SHORT_FUNCTION.
1743 (TARGET_PAD_SHORT_FUNCTION): New.
1744
1745 * config/i386/i386.md (UNSPEC_NOPS): New.
1746 (nops): Likewise.
1747
1748 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
1749
1750 PR middle-end/45234
1751 * calls.c (expand_call): Make sure that all variable sized
1752 adjustments are multiple of preferred stack boundary after
1753 stack alignment.
1754
1755 2010-09-17 DJ Delorie <dj@redhat.com>
1756
1757 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
1758 passed an invalid value, print an error instead of ICEing.
1759 (valid_psw_flag): New.
1760 (rx_expand_builtin): Call it for setpsw/clrpsw.
1761 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
1762
1763 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
1764 (bitclr_in_memory): Likewise.
1765 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
1766
1767 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
1768
1769 PR middle-end/45678
1770 * cfgexpand.c (update_stack_alignment): New.
1771 (get_decl_align_unit): Use it.
1772 (expand_one_stack_var_at): Call update_stack_alignment.
1773
1774 2010-09-17 Richard Guenther <rguenther@suse.de>
1775
1776 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
1777 Properly copy the read string.
1778
1779 2010-09-17 Joseph Myers <joseph@codesourcery.com>
1780
1781 * doc/options.texi (Variable): Document.
1782 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
1783 generate target_flags declarations explicitly. Don't define
1784 VarExists variables for the driver.
1785 * common.opt (target_flags): New Variable record.
1786 (flag_dump_unnumbered, flag_dump_unnumbered_links,
1787 flag_var_tracking, flag_var_tracking_assignments,
1788 flag_var_tracking_assignments_toggle): Don't mark variables with
1789 VarExists.
1790 * config/i386/i386.c (ix86_isa_flags): Don't define here.
1791 * config/i386/i386.opt (ix86_isa_flags): Define here.
1792 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
1793 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
1794 VarExists.
1795 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
1796 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
1797 Only define for generator programs.
1798 * rtlanal.c (target_flags): Remove.
1799 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
1800 flag_var_tracking_assignments_toggle): Remove.
1801
1802 2010-09-17 Michael Matz <matz@suse.de>
1803
1804 PR tree-optimization/43432
1805 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
1806 Accept backwards consecutive accesses.
1807 (vect_create_data_ref_ptr): If step is negative generate
1808 decreasing IVs.
1809 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
1810 (perm_mask_for_reverse, reverse_vec_elements): New functions.
1811 (vectorizable_load): Handle loads with negative steps when easily
1812 possible.
1813
1814 2010-09-03 Jan Hubicka <jh@suse.cz>
1815
1816 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
1817
1818 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
1819
1820 * config/v850/v850.c (v850_function_value_regno_p): Make static.
1821 Adjust comments. Declare.
1822 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
1823 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
1824
1825 2010-09-17 Richard Guenther <rguenther@suse.de>
1826
1827 * common.opt (combine): Remove.
1828 * gcc.c (default_compilers): Remove specs testing combine.
1829 The C compilers no longer can combine.
1830 (option_map): Remove -combine.
1831 (display_help): Remove -combine.
1832 (driver_handle_option): Remove OPT_combine handling.
1833 (compile_input_file_p): Remove.
1834 (do_spec): Remove code concerning combine.
1835 (main): Likewise.
1836 * doc/invoke.texi: Remove traces of -combine.
1837 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
1838
1839 2010-09-17 Richard Guenther <rguenther@suse.de>
1840
1841 PR middle-end/45678
1842 * builtins.c (fold_builtin_memory_op): Always properly adjust
1843 alignment of memory accesses.
1844
1845 2010-09-16 Jan Hubicka <jh@suse.cz>
1846
1847 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
1848 processing clone.
1849
1850 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
1851
1852 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
1853
1854 * config/i386/i386.c (predict_jump): Add prototype.
1855 (flag_opts): Add -m8bit-idiv.
1856 (ix86_split_idivmod): New.
1857
1858 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
1859 Add 2 splitters for SI/DI mode divide.
1860 (divmod<mode>4_1): New pattern.
1861 (udivmod<mode>4_1): Likewise.
1862 (testdi_ccno_1): Likewise.
1863
1864 * config/i386/i386.opt (m8bit-idiv): New.
1865
1866 * doc/invoke.texi: Document -m8bit-idiv.
1867
1868 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
1869
1870 PR bootstrap/45680
1871 * config/i386/i386.c (min_insn_size): Moved out of the
1872 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
1873
1874 2010-09-16 Jan Hubicka <jh@suse.cz>
1875
1876 * lto-cgraph.c (lto_output_node): Fix handling of clones.
1877 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
1878 unreachable clones with reachable clones.
1879 * tree-inline.c (copy_bb): Fix sanity checking when producing
1880 unreachable clone.
1881
1882 2010-09-16 Anatoly Sokolov <aesok@post.ru>
1883
1884 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
1885 (TARGET_MEMORY_MOVE_COST): Define.
1886 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
1887
1888 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
1889
1890 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
1891 maybe_tidy_empty_bb.
1892
1893 Revert:
1894 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
1895 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
1896
1897 2010-09-16 Joseph Myers <joseph@codesourcery.com>
1898
1899 * target.def (target_option.optimization): New hook.
1900 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
1901 TARGET_OPTION_OPTIMIZATION hook.
1902 * doc/tm.texi: Regenerate.
1903 * hooks.c (hook_void_int_int): New.
1904 * hooks.h (hook_void_int_int): Declare.
1905 * opts.c: Don't include tm_p.h.
1906 (decode_options): Use targetm.target_option.optimization instead
1907 of OPTIMIZATION_OPTIONS.
1908 * system.h (OPTIMIZATION_OPTIONS): Poison.
1909 * config/arm/arm-protos.h (arm_optimization_options): Remove.
1910 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
1911 (arm_optimization_options): Rename to arm_option_optimization.
1912 Make static.
1913 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
1914 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
1915 (cris_option_optimization): New.
1916 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
1917 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
1918 (crx_option_optimization): New.
1919 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
1920 * config/frv/frv-protos.h (frv_optimization_options): Remove.
1921 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
1922 (frv_optimization_options): Rename to frv_option_optimization.
1923 Make static.
1924 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
1925 * config/h8300/h8300.c (h8300_option_optimization): New.
1926 (TARGET_OPTION_OPTIMIZATION): Define.
1927 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
1928 * config/i386/i386-protos.h (optimization_options): Remove.
1929 * config/i386/i386.c (optimization_options): Rename to
1930 ix86_option_optimization. Make static.
1931 (TARGET_OPTION_OPTIMIZATION): Define.
1932 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
1933 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
1934 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
1935 (ia64_optimization_options): Rename to ia64_option_optimization.
1936 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
1937 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
1938 commented-out definition.
1939 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
1940 instead of OPTIMIZATION_OPTIONS.
1941 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
1942 (m32r_option_optimization): New.
1943 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
1944 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
1945 Remove.
1946 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
1947 (mcore_option_optimization): New.
1948 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
1949 * config/mep/mep-protos.h (mep_optimization_options): Remove.
1950 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
1951 (mep_optimization_options): Rename to mep_option_optimization.
1952 Make static. Take unused level and size parameters.
1953 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
1954 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
1955 (mmix_option_optimization): New.
1956 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
1957 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
1958 (pdp11_option_optimization): New.
1959 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
1960 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
1961 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
1962 (optimization_options): Rename to rs6000_option_optimization.
1963 Make static.
1964 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
1965 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
1966 * config/rx/rx.c (rx_set_optimization_options): Rename to
1967 rx_option_optimization. Make static. Take unused level and size
1968 parameters.
1969 (TARGET_OPTION_OPTIMIZATION): Define.
1970 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
1971 * config/s390/s390-protos.h (optimization_options): Remove.
1972 * config/s390/s390.c (optimization_options): Rename to
1973 s390_option_optimization. Make static. Don't mark size parameter
1974 unused.
1975 (TARGET_OPTION_OPTIMIZATION): Define.
1976 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
1977 * config/sh/sh-protos.h (sh_optimization_options): Remove.
1978 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
1979 (sh_optimization_options): Rename to sh_option_optimization. Make
1980 static. Don't mark parameters unused.
1981 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
1982 * config/spu/spu-protos.h (spu_optimization_options): Remove.
1983 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
1984 (spu_optimization_options): Rename to spu_option_optimization.
1985 Make static.
1986 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
1987 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
1988 (v850_option_optimization): New.
1989 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
1990 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
1991 (xtensa_option_optimization): New.
1992 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
1993
1994 2010-09-16 Joseph Myers <joseph@codesourcery.com>
1995
1996 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
1997 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
1998 * doc/tm.texi: Regenerate.
1999 * system.h (OVERRIDE_OPTIONS): Poison.
2000 * target.def (override): Default to hook_void_void.
2001 * targhooks.c (default_target_option_override): Remove.
2002 * genmodes.c, machmode.def: Update comments mentioning
2003 OVERRIDE_OPTIONS.
2004 * config/alpha/alpha-modes.def: Update comment mentioning
2005 alpha_override_options.
2006 * config/alpha/alpha-protos.h (override_options): Remove.
2007 * config/alpha/alpha.c (override_options): Rename to
2008 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
2009 (TARGET_OPTION_OVERRIDE): Define.
2010 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
2011 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
2012 of OVERRIDE_OPTIONS.
2013 * config/arc/arc-protos.h (arc_init): Remove.
2014 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
2015 (arc_init): Rename to arc_option_override. Make static.
2016 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
2017 (OVERRIDE_OPTIONS): Remove.
2018 * config/arm/arm-protos.h (arm_override_options): Remove.
2019 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
2020 (arm_override_options): Rename to arm_option_override. Make
2021 static. Call SUBTARGET_OVERRIDE_OPTIONS.
2022 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
2023 * config/arm/arm.md: Update comment referring to arm_override_options.
2024 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
2025 instead of OVERRIDE_OPTIONS.
2026 * config/avr/avr-protos.h (avr_override_options): Remove.
2027 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
2028 (avr_override_options): Rename to avr_option_override. Make static.
2029 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
2030 * config/bfin/bfin-protos.h (override_options): Remove (twice).
2031 * config/bfin/bfin.c (override_options): Rename to
2032 bfin_option_override. Make static.
2033 (TARGET_OPTION_OVERRIDE): Define.
2034 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
2035 * config/cris/cris-protos.h (cris_override_options): Remove.
2036 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
2037 (cris_override_options): Rename to cris_option_override. Make static.
2038 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
2039 * config/frv/frv-protos.h (frv_override_options): Remove.
2040 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
2041 (frv_override_options): Rename to frv_option_override. Make static.
2042 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
2043 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
2044 * config/h8300/h8300.c (h8300_init_once): Rename to
2045 h8300_option_override. Make static.
2046 (TARGET_OPTION_OVERRIDE): Define.
2047 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
2048 * config/i386/i386-protos.h (override_options): Remove.
2049 * config/i386/i386.c (override_options): Rename to
2050 ix86_option_override_internal. Make static. Comments referring
2051 to this function and callers changed.
2052 (ix86_option_override): New.
2053 (TARGET_OPTION_OVERRIDE): Define.
2054 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
2055 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
2056 * config/ia64/ia64.c (ia64_file_start): Update comment referring
2057 to ia64_override_options.
2058 * config/iq2000/iq2000-protos.h (override_options): Remove.
2059 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
2060 (override_options): Rename to iq2000_option_override. Make static.
2061 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
2062 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
2063 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
2064 (lm32_override_options): Rename to lm32_option_override. Make static.
2065 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
2066 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
2067 (m32r_option_override): New.
2068 (m32r_init): Update comment.
2069 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
2070 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
2071 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
2072 (m68hc11_override_options): Rename to m68hc11_option_override.
2073 Make static. Return void.
2074 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
2075 * config/m68k/m68k-protos.h (override_options): Remove.
2076 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
2077 (override_options): Rename to m68k_option_override. Make static.
2078 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
2079 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
2080 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
2081 (mcore_override_options): Rename to mcore_option_override. Make
2082 static.
2083 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
2084 * config/mep/mep-protos.h (mep_override_options): Remove.
2085 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
2086 (mep_override_options): Rename to mep_option_override. Make static.
2087 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
2088 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
2089 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
2090 (mmix_override_options): Rename to mmix_option_override. Make static.
2091 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
2092 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
2093 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
2094 (mn10300_override_options): Rename to mn10300_option_override.
2095 Make static.
2096 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
2097 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
2098 * config/moxie/moxie.c (moxie_override_options): Rename to
2099 moxie_option_override. Make static.
2100 (TARGET_OPTION_OVERRIDE): Define.
2101 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
2102 * config/picochip/picochip-protos.h (picochip_override_options):
2103 Remove. Update comment referring to picochip_override_options.
2104 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
2105 (picochip_override_options): Rename to picochip_option_override.
2106 Make static. Update comment and definition of
2107 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
2108 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
2109 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2110 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2111 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2112 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2113 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2114 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
2115 instead of OVERRIDE_OPTIONS.
2116 * config/rs6000/rs6000-modes.def: Update comment referring to
2117 rs6000_override_options.
2118 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
2119 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
2120 (rs6000_override_options): Rename to
2121 rs6000_option_override_internal. Make static. Commented
2122 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
2123 (rs6000_option_override): New.
2124 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
2125 instead of OVERRIDE_OPTIONS.
2126 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2127 * config/s390/s390-protos.h (override_options): Remove.
2128 * config/s390/s390.c (override_options): Rename to
2129 s390_option_override. Make static.
2130 (TARGET_OPTION_OVERRIDE): Define.
2131 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
2132 * config/score/score-protos.h (score_override_options): Remove.
2133 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
2134 (score_override_options): Rename to score_option_override. Make
2135 static.
2136 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
2137 Update comment referring to override_options.
2138 * config/score/score3.c (score3_override_options): Rename to
2139 score3_option_override.
2140 * config/score/score3.h (score3_override_options): Rename to
2141 score3_option_override.
2142 * config/score/score7.c (score7_override_options): Rename to
2143 score7_option_override.
2144 * config/score/score7.h (score7_override_options): Rename to
2145 score7_option_override.
2146 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
2147 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
2148 (sparc_override_options): Rename to sparc_option_override. Make
2149 static. Call SUBTARGET_OVERRIDE_OPTIONS.
2150 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
2151 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
2152 instead of OVERRIDE_OPTIONS.
2153 * config/spu/spu-protos.h (spu_override_options): Remove.
2154 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
2155 (spu_override_options): Rename to spu_option_override. Make
2156 static.
2157 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
2158 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
2159 OVERRIDE_OPTIONS.
2160 * config/vax/vax-protos.h (override_options): Remove.
2161 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
2162 (override_options): Rename to vax_option_override. Make static.
2163 Call SUBTARGET_OVERRIDE_OPTIONS.
2164 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
2165 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
2166 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
2167 * config/xtensa/xtensa-protos.h (override_options): Remove.
2168 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
2169 (override_options): Rename to xtensa_option_override. Make static.
2170 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
2171
2172 2010-09-16 Richard Guenther <rguenther@suse.de>
2173
2174 PR tree-optimization/45623
2175 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
2176 (get_constraint_for_component_ref): If computing a constraint
2177 for the rhs handle type punning through unions.
2178 (get_constraint_for_address_of): Adjust.
2179 (get_constraint_for_1): Likewise.
2180 (get_constraint_for): Likewise.
2181 (get_constraint_for_rhs): New function.
2182 (do_structure_copy): Adjust.
2183 (make_constraint_to): Likewise.
2184 (handle_const_call): Likewise.
2185 (find_func_aliases): Likewise.
2186 (process_ipa_clobber): Likewise.
2187 (create_variable_info_for): Likewise.
2188
2189 2010-09-16 Ira Rosen <irar@il.ibm.com>
2190
2191 * tree-vectorizer.c: Fix documentation.
2192 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
2193 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
2194 is_pattern_stmt_p, is_loop_header_bb_p,
2195 stmt_vinfo_set_inside_of_loop_cost,
2196 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
2197 known_alignment_for_access_p): Likewise.
2198 * tree-vect-loop.c: Fix documentation.
2199 (vect_get_cost): Start function name from new line.
2200 * tree-vect-data-refs.c: Fix documentation.
2201 * tree-vect_stmts.c: Likewise.
2202 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
2203 (vectorizable_store): Free vec_oprnds if allocated.
2204 (vectorizable_condition): Initialize several variables to avoid
2205 warnings.
2206 * tree-vect-slp.c: Fix documentation.
2207
2208 2010-09-16 Richard Guenther <rguenther@suse.de>
2209
2210 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
2211 is TS_TRANSLATION_UNIT_DECL.
2212 (initialize_tree_contains_struct): Adjust.
2213 (all_translation_units): New global vector.
2214 (build_translation_unit_decl): New function.
2215 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
2216 (struct tree_translation_unit_decl): New.
2217 (all_translation_units): Declare.
2218 (union tree_node): Add translation_unit_decl member.
2219 (build_translation_unit_decl): Declare.
2220 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
2221 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
2222 New function.
2223 (pack_value_fields): Call it.
2224 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
2225 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
2226 (lto_output_tree_pointers): Call it.
2227 * lto-streamer-in.c (lto_input_tree_ref): Handle references
2228 to TRANSLATION_UNIT_DECL.
2229 (unpack_ts_translation_unit_decl_value_fields): New function.
2230 (unpack_value_fields): Call it.
2231 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
2232 (lto_input_tree_pointers): Call it.
2233 * lto-streamer.c (check_handled_ts_structures): Adjust.
2234 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
2235 * c-decl.c (all_translation_units): Remove.
2236 (pop_scope): Use build_translation_unit_decl.
2237 (collect_all_refs): Adjust.
2238 (for_each_global_decl): Likewise.
2239 (c_write_global_declarations): Likewise.
2240
2241 2010-09-16 Jakub Jelinek <jakub@redhat.com>
2242
2243 PR bootstrap/45686
2244 * fold-const.c (fold_checksum_tree): Change slot from const void **
2245 to void **, use CONST_CAST_TREE to store into *slot.
2246
2247 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
2248
2249 * config/i386/i386.md: Remove unneeded empty conditions and
2250 preparation statements from expanders.
2251 * config/i386/mmx.md: Ditto.
2252 * config/i386/sse.md: Ditto.
2253
2254 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
2255
2256 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
2257
2258 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
2259
2260 PR rtl-optimization/45593
2261 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
2262 insns that were in delay slots as stand-alone insns.
2263
2264 2010-09-15 Ian Lance Taylor <iant@google.com>
2265
2266 * incpath.c (remove_duplicates): If name is not a directory, issue
2267 a warning rather than an error.
2268
2269 2010-09-15 Martin Jambor <mjambor@suse.cz>
2270
2271 PR middle-end/45644
2272 * tree-sra.c (create_access): Check for bit-fields directly.
2273
2274 2010-09-15 Jakub Jelinek <jakub@redhat.com>
2275
2276 PR tree-optimization/45633
2277 * tree-cfg.c (verify_gimple_assign_binary): Allow
2278 MINUS_EXPR with lhs and rhs1 pointer vector and
2279 rhs2 sizetype vector.
2280 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
2281 or vector pointer use TER to optimize pointer subtraction.
2282
2283 2010-09-15 Jie Zhang <jie@codesourcery.com>
2284
2285 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
2286 fcmpd to fcmps.
2287
2288 2010-09-15 Ian Lance Taylor <iant@google.com>
2289
2290 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
2291
2292 2010-09-15 Ian Lance Taylor <iant@google.com>
2293
2294 * function.c (get_arg_pointer_save_area): Set
2295 arg_pointer_save_area_init to true.
2296
2297 2010-09-15 Martin Jambor <mjambor@suse.cz>
2298
2299 * tree-sra.c (generate_subtree_copies): Updated comment.
2300 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
2301 obtained from the statement iterator instead.
2302 (load_assign_lhs_subreplacements): Removed parameters lhs and
2303 right_offset, which is obtained from top_racc instead. Parameter lacc
2304 is now expected to be the root of the processed tree rather than root's
2305 first child. Updated all callers.
2306
2307 2010-09-15 Joseph Myers <joseph@codesourcery.com>
2308
2309 * config/pdp11/pdp11.c (register_move_cost): Rename to
2310 pdp11_register_move_cost.
2311 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
2312 pdp11_register_move_cost.
2313 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
2314 pdp11_register_move_cost instead of register_move_cost.
2315
2316 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
2317
2318 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
2319 pattern for vmovn. Expansion in case of non
2320 -mvectorize-with-neon-quad.
2321 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
2322 non- -mvectorize-with-neon-quad case.
2323 (move_lo_quad_<mode>): New expansion to vmov into low part.
2324 (move_hi_quad_<mode>): New expansion to vmov into high part.
2325 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
2326 (move_lo_quad_v4sf): Likewise.
2327 (move_lo_quad_v8hi): Likewise.
2328 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
2329 low part.
2330 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
2331 high part.
2332 * config/arm/iterators.md (ANY128): New mode iterator.
2333 (V_narrow_pack): New mode attribute.
2334 (V_HALF): Add attribute.
2335 (V_DOUBLE): Add attribute.
2336 (V_mode_nunits): Add attribute.
2337
2338 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
2339
2340 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
2341 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
2342
2343 2010-09-15 Olivier Hainque <hainque@adacore.com>
2344 Jose Ruiz <ruiz@adacore.com>
2345
2346 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
2347 * config/alpha/osf5-unwind.h: New file.
2348
2349 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
2350
2351 PR bootstrap/45672
2352 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
2353 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
2354 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
2355
2356 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2357
2358 * c-lang.h (struct lang_type): Add variable_size GTY option.
2359
2360 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
2361
2362 PR bootstrap/45672
2363 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
2364
2365 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
2366
2367 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
2368 result isn't used in memory address.
2369
2370 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
2371
2372 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
2373 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
2374 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
2375 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
2376 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
2377 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
2378
2379 * target.def: Add units_per_simd_word to vectorize.
2380
2381 * targhooks.c (default_units_per_simd_word): New.
2382 * targhooks.h (default_units_per_simd_word): Likewise.
2383 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
2384 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2385 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
2386 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2387 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
2388 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2389 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
2390 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2391
2392 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
2393 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
2394
2395 * tree-vect-stmts.c: Don't include "tm_p.h".
2396 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
2397 with targetm.vectorize.units_per_simd_word.
2398
2399 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
2400
2401 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
2402
2403 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
2404 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
2405
2406 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
2407 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
2408
2409 * doc/tm.texi: Regenerated.
2410
2411 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
2412
2413 * tree-vect-stmts.c: Include "tm_p.h".
2414
2415 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
2416 out of RTX_CODE.
2417
2418 2010-09-14 Martin Jambor <mjambor@suse.cz>
2419
2420 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
2421 location of generated statement. Changed all callers.
2422 (build_ref_for_model): New parameter loc which used to set location of
2423 all generated expressions. Changed all callers.
2424 (generate_subtree_copies): Likewise.
2425 (init_subtree_with_zero): Likewise.
2426 (sra_modify_expr): Set locations of all generated statements and
2427 expressions to the location the original statement.
2428 (handle_unscalarized_data_in_subtree): Likewise.
2429 (load_assign_lhs_subreplacements): Likewise.
2430 (sra_modify_constructor_assign): Likewise.
2431 (sra_modify_assign): Likewise.
2432
2433 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
2434
2435 PR target/45277
2436 PR target/45363
2437 PR target/45407
2438 * doc/install.texi (sparc*-*-*): New section.
2439 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
2440
2441 2010-09-14 Jakub Jelinek <jakub@redhat.com>
2442
2443 PR middle-end/45567
2444 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
2445 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
2446 (expand_builtin): Adjust caller.
2447 (expand_builtin_unop): Only use subtarget if it has the right mode.
2448
2449 2010-09-14 Tristan Gingold <gingold@adacore.com>
2450
2451 * configure.ac (plugins): Fix typos.
2452 * configure: Regenerate.
2453
2454 2010-09-14 Jakub Jelinek <jakub@redhat.com>
2455
2456 PR debug/45660
2457 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
2458 gen_type_die for function/method return type.
2459
2460 2010-09-14 Ira Rosen <irar@il.ibm.com>
2461
2462 PR tree-optimization/45470
2463 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
2464 can throw an exception.
2465 * tree-vect-stmts.c (vectorizable_call): Likewise.
2466
2467 2010-09-14 DJ Delorie <dj@redhat.com>
2468
2469 PR target/44749
2470 * config/mep/mep-protos.h (mep_save_register_info,
2471 mep_reinit_regs, mep_init_regs): Declare.
2472
2473 * config/mep/mep.c: Move all target definitions to the end of the
2474 file to avoid the need for duplicate declarations.
2475 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
2476 (mep_reorg_erepeat): Remove unused variables.
2477 (mep_expand_builtin): Likewise.
2478
2479 * config/mep/mep-pragma.c: Don't include rtl.h.
2480 (INVALID_REGNUM): New.
2481 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
2482 functions.
2483 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
2484 Avoid enum/integer math.
2485
2486 2010-09-13 Joseph Myers <joseph@codesourcery.com>
2487
2488 PR target/44749
2489 * config/mep/t-mep (GTM_H): Add insn-constants.h.
2490 * config/mep/mep.c (mep_conditional_register_usage): Take no
2491 parameters.
2492 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
2493 prototype.
2494 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
2495 call to mep_conditional_register_usage.
2496
2497 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
2498
2499 PR debug/43937
2500 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
2501 the DECL as well.
2502
2503 2010-09-13 Jakub Jelinek <jakub@redhat.com>
2504
2505 PR rtl-optimization/45617
2506 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
2507 even if low N bits of X aren't known to be zero.
2508
2509 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
2510
2511 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
2512
2513 * config/i386/i386.c (initial_ix86_tune_features): Add
2514 X86_TUNE_VECTORIZE_DOUBLE.
2515 (ix86_units_per_simd_word): New.
2516
2517 * config/i386/i386.h (ix86_tune_indices): Add
2518 X86_TUNE_VECTORIZE_DOUBLE.
2519 (TARGET_VECTORIZE_DOUBLE): New.
2520 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
2521
2522 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
2523
2524 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
2525 (new_temp_expr_table): Allocate call_cnt vector.
2526 (free_temp_expr_table): Free it.
2527 (process_replaceable): Add call_cnt parm and set in vector.
2528 (find_replaceable_in_bb): Skip replacement if def/use span a call.
2529 (debug_ter): Dump call_cnt value, remove stderr uses.
2530
2531 2010-09-13 Jan Hubicka <jh@suse.cz>
2532
2533 * tree.c (build_zero_cst): New.
2534 * tree.h (build_zero_cst): Declare.
2535 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
2536 (get_base_constructor): Break out from ...
2537 (fold_const_aggregate_ref): Here; handle empty constructors.
2538
2539 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
2540
2541 * config/arm/arm.md: (define_attr "conds"): Update comment.
2542 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
2543 conds attribute to clob.
2544 (arm_sync_compare_and_swapsi): Likewise.
2545 (arm_sync_compare_and_swap<mode>): Likewise.
2546 (arm_sync_lock_test_and_setsi): Likewise.
2547 (arm_sync_lock_test_and_set<mode>): Likewise.
2548 (arm_sync_new_<sync_optab>si): Likewise.
2549 (arm_sync_new_nandsi): Likewise.
2550 (arm_sync_new_<sync_optab><mode>): Likewise.
2551 (arm_sync_new_nand<mode>): Likewise.
2552 (arm_sync_old_<sync_optab>si): Likewise.
2553 (arm_sync_old_nandsi): Likewise.
2554 (arm_sync_old_<sync_optab><mode>): Likewise.
2555 (arm_sync_old_nand<mode>): Likewise.
2556
2557 2010-09-13 Olivier Hainque <hainque@adacore.com>
2558
2559 * fwprop.c (forward_propagate_and_simplify): Only attach a
2560 REG_EQUAL note to an insn if the destination is a register.
2561 * gcse.c (try_replace_reg): Likewise.
2562
2563 2010-09-13 Richard Guenther <rguenther@suse.de>
2564
2565 PR tree-optimization/45611
2566 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
2567 (copy_ref_info): Likewise.
2568
2569 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
2570
2571 PR debug/45604
2572 PR debug/45419
2573 PR debug/45408
2574 * tree-pretty-print.c (dump_generic_node): Disregard top-level
2575 types of MEM_REF pointer types to the same type.
2576
2577 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
2578
2579 PR rtl-optimization/41087
2580 * ifcvt.c (noce_get_condition): Don't allow conditions with
2581 side-effects.
2582
2583 2010-09-12 Anatoly Sokolov <aesok@post.ru>
2584
2585 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2586 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
2587 * config/frv/frv.c (frv_register_move_cost): Make static. Change
2588 arguments type to reg_class_t. Add mode argument.
2589 (frv_memory_move_cost): New.
2590 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
2591
2592 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
2593
2594 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
2595 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
2596
2597 2010-09-10 Jan Hubicka <jh@suse.cz>
2598
2599 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
2600
2601 2010-09-10 Richard Guenther <rguenther@suse.de>
2602
2603 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
2604 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
2605 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
2606 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
2607 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
2608
2609 2010-09-10 Richard Guenther <rguenther@suse.de>
2610
2611 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
2612 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
2613 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
2614 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
2615
2616 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
2617
2618 PR middle-end/45634
2619 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
2620 of string folding is of integral type.
2621
2622 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
2623
2624 * doc/invoke.texi (-x): Fix typo.
2625
2626 2010-09-10 Richard Guenther <rguenther@suse.de>
2627
2628 PR debug/44115
2629 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
2630 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
2631 Output DECL_DEBUG_EXPR.
2632 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
2633 Input DECL_DEBUG_EXPR.
2634
2635 2010-09-10 Richard Guenther <rguenther@suse.de>
2636
2637 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
2638 (build_index_type): Implement in terms of build_range_type.
2639 (build_range_type): Do not allow NULL_TREE type, improve
2640 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
2641 if we didn't hash.
2642 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
2643 create a distinct copy of the type.
2644
2645 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
2646
2647 * configure: Regenerated.
2648 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
2649
2650 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2651
2652 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
2653 * config/arm/cortex-a9-neon.md: New and partially generated.
2654 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
2655
2656 2010-09-10 Richard Guenther <rguenther@suse.de>
2657
2658 * tree.h (build_index_2_type): Remove.
2659 * tree.c (build_index_2_type): Remove.
2660
2661 2010-09-10 Jakub Jelinek <jakub@redhat.com>
2662
2663 PR bootstrap/45630
2664 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
2665 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
2666 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
2667
2668 2010-09-10 Martin Jambor <mjambor@suse.cz>
2669
2670 PR tree-optimization/44972
2671 * tree-sra.c: Include toplev.h.
2672 (build_ref_for_offset): Entirely reimplemented.
2673 (build_ref_for_model): New function.
2674 (build_user_friendly_ref_for_offset): New function.
2675 (analyze_access_subtree): Removed build_ref_for_offset check.
2676 (propagate_subaccesses_across_link): Likewise.
2677 (create_artificial_child_access): Use
2678 build_user_friendly_ref_for_offset.
2679 (propagate_subaccesses_across_link): Likewise.
2680 (ref_expr_for_all_replacements_p): Removed.
2681 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
2682 (sra_modify_expr): Use build_ref_for_model.
2683 (load_assign_lhs_subreplacements): Likewise.
2684 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
2685 checks for return values of build_ref_for_offset.
2686 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
2687 build_ref_for_offset.
2688 * ipa-prop.h: Include gimple.h
2689 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
2690 (ipa_analyze_indirect_call_uses): Update comment.
2691 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
2692 (IPA_PROP_H): Likewise.
2693
2694 2010-09-10 Martin Jambor <mjambor@suse.cz>
2695
2696 PR tree-optimization/44972
2697 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
2698 calling build_ref_for_offset.
2699
2700 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2701
2702 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
2703 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
2704 * config/arm/arm-tune.md: Regenerate.
2705 * doc/invoke.texi (ARM Options): Document it.
2706
2707 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
2708
2709 * config/i386/i386.c: Include sched-int.h.
2710 (TARGET_SCHED_DISPATCH): Defined.
2711 (TARGET_SCHED_DISPATCH_DO): Defined.
2712 (DISPATCH_WINDOW_SIZE): Defined.
2713 (MAX_DISPATCH_WINDOWS): Defined.
2714 (MAX_INSN): Defined.
2715 (MAX_IMM): Defined.
2716 (MAX_IMM_SIZE): Defined.
2717 (MAX_IMM_32): Defined.
2718 (MAX_IMM_64): Defined.
2719 (MAX_LOAD): Defined.
2720 (MAX_STORE): Defined.
2721 (BIG): Defined.
2722 (dispatch_group): New.
2723 (num_allowable_groups): New.
2724 (group_name): New.
2725 (sched_insn_info_s): New.
2726 (dispatch_windows_s): New.
2727 (imm_info_s): New.
2728 (dispatch_window_list): New.
2729 (dispatch_window_list1): New.
2730 (get_mem_group): New.
2731 (is_cmp): New.
2732 (dispatch_violation): New.
2733 (is_branch): New.
2734 (is_prefetch): New.
2735 (init_window): New.
2736 (allocate_window): New.
2737 (init_dispatch_sched): New.
2738 (is_end_basic_block): New.
2739 (process_end_window): New.
2740 (allocate_next_window): New.
2741 (find_constant_1): New.
2742 (find_constant): New.
2743 (get_num_immediates): New.
2744 (has_immediate): New.
2745 (get_insn_path): New.
2746 (get_insn_group): New.
2747 (count_num_restricted): New.
2748 (fits_dispatch_window): New.
2749 (add_insn_window): New.
2750 (add_to_dispatch_window): New.
2751 (debug_dispatch_window_file): New.
2752 (debug_dispatch_window): New.
2753 (debug_insn_dispatch_info_file): New.
2754 (debug_ready_dispatch): New.
2755 (do_dispatch): New.
2756 (has_dispatch): New.
2757 * config/i386/i386.h (debug_ready_dispatch): Declared.
2758 (debug_dispatch_window): Declared.
2759 * config/i386/i386.opt (mdispatch-scheduler): New flag.
2760 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
2761 (TARGET_SCHED_DISPATCH_DO): New.
2762 * doc/tm.texi: Regererated.
2763 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
2764 ready_remove_first_dispatch
2765 (schedule_block): Call targetm.sched.dispatch and
2766 targetm.sched.dispatch_do.
2767 (sched_init): Call targetm.sched.dispatch and
2768 targetm.sched.dispatch_do.
2769 (ready_remove_first_dispatch): New.
2770 (number_in_ready): New.
2771 (get_ready_element): New.
2772 * hooks.c (hook_bool_rtx_int_false): New.
2773 (hook_void_rtx_int): New.
2774 * hooks.h (hook_bool_rtx_int_false): Declared.
2775 (hook_void_rtx_int): Declared.
2776 * sched-int.h (IS_DISPATCH_ON): Defined.
2777 (IS_CMP): Defined.
2778 (DISPATCH_VIOLATION): Defined.
2779 (FITS_DISPATCH_WINDOW): Defined.
2780 (DISPATCH_INIT): Defined.
2781 (ADD_TO_DISPATCH_WINDOW): Defined.
2782 (get_ready_element): Declared.
2783 (number_in_ready): Declared.
2784 * target.def (dispatch): Defined.
2785 (dispatch_do): Defined.
2786
2787 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
2788
2789 PR middle-end/45312
2790 * reload1.c (merge_assigned_reloads): Remove.
2791 (reload_as_needed): Don't call it.
2792
2793 2010-09-09 Anatoly Sokolov <aesok@post.ru>
2794
2795 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
2796 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2797 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
2798
2799 2010-09-09 Matthias Klose <doko@ubuntu.com>
2800
2801 PR bootstrap/43847
2802 * configure.ac (--enable-plugin): Enhance for cross builds.
2803 * configure: Regenerate.
2804
2805 2010-09-09 Jan Hubicka <jh@suse.cz>
2806
2807 PR tree-optimization/45598
2808 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
2809 string folding is of integral type.
2810
2811 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2812
2813 * configure.ac (gnu_indirect_function): New test.
2814 * configure: Rebuilt.
2815 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
2816 * defaults.h (IFUNC_ASM_TYPE): Provide default.
2817
2818 * doc/extend.texi (Function Attributes): Document ifunc.
2819 * varasm.c (do_assemble_alias): Deal with ifuncs too.
2820
2821 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
2822
2823 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
2824 epilogue instruction move.
2825
2826 2010-09-09 Jan Hubicka <jh@suse.cz>
2827
2828 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
2829 command line to allow more partitions than input files.
2830
2831 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
2832
2833 PR middle-end/44554
2834 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
2835
2836 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
2837
2838 PR middle-end/40386
2839 * ira.c (pseudo_for_reload_consideration_p): Don't use
2840 flag_ira_share_spill_slots.
2841
2842 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2843
2844 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
2845 point zero operands that fit into a single GPR.
2846 (s390_preferred_reload_class): Ensure we only return general-purpose
2847 register classes.
2848 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
2849 floating-point zero operands into GPRs.
2850 ("*mov<mode>_64"): Likewise.
2851 ("mov<mode>"): Likewise using lhi.
2852
2853 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2854
2855 * config/s390/s390.c (s390_symref_operand_p): Return false for
2856 literal pool references.
2857 (s390_check_qrst_address): Update caller.
2858
2859 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
2860
2861 * config/i386/predicates.md (ext_register_operand): Check that
2862 SUBREG_REG is really a register before looking for REGNO.
2863 (reg_not_xmm0_operand): Handle SUBREGs correctly.
2864 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
2865
2866 2010-09-09 Jakub Jelinek <jakub@redhat.com>
2867
2868 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
2869 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
2870 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
2871 * print-rtl.c (print_rtx): Likewise.
2872 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
2873 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
2874 for ADDR_EXPR with non-addressable object.
2875 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
2876 (struct dw_val_struct): Add v.val_decl_ref.
2877 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
2878 Handle DW_OP_GNU_implicit_pointer.
2879 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
2880 (get_ref_die_offset_label): New function.
2881 (implicit_ptr_descriptor): New function.
2882 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
2883 (loc_descriptor): Likewise.
2884 (gen_variable_die): Put even definitions into decl_die_table.
2885 (resolve_addr_in_expr): Resolve still unresolved
2886 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
2887 return false.
2888 (dwarf2out_finish): Call output_location_lists after outputting
2889 .debug_info and .debug_abbrev instead of before.
2890
2891 2010-09-09 Roland McGrath <roland@redhat.com>
2892
2893 * dwarf2out.c (DWARF_REF_SIZE): Define.
2894 (size_of_loc_descr): Use it for DW_OP_call_ref.
2895
2896 2010-09-09 Alan Modra <amodra@gmail.com>
2897
2898 * doc/invoke.text: Reinstate mcmodel=medium.
2899 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2900 CMODEL_MEDIUM as default.
2901 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
2902 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
2903 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
2904 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
2905
2906 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2907
2908 PR target/45250
2909 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
2910 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
2911 (builtin_longjmp): Likewise.
2912 (allocate_stack): Use hard_frame_pointer_rtx instead of
2913 frame_pointer_rtx.
2914 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
2915 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
2916 (pa_can_eliminate): Likewise.
2917 (TARGET_INTERNAL_ARG_POINTER): Define.
2918 (TARGET_CAN_ELIMINATE): Define.
2919 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
2920 pointer.
2921 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
2922 (pa_internal_arg_pointer, pa_can_eliminate,
2923 pa_initial_elimination_offset): New.
2924 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
2925 (HARD_FRAME_POINTER_REGNUM): Set to register three.
2926 (INITIAL_FRAME_POINTER_OFFSET): Delete.
2927 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
2928 Define.
2929 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
2930 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
2931 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
2932 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
2933 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
2934 new soft frame pointer.
2935 * config/pa/pa64-regs.h: Likewise.
2936
2937 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
2938
2939 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
2940 numerical constant.
2941 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
2942
2943 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
2944
2945 PR debug/45531
2946 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
2947
2948 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
2949
2950 PR debug/45419
2951 PR debug/45408
2952 * tree-pretty-print.c (dump_generic_node): Disregard top-level
2953 qualifiers in otherwise equal MEM_REF pointer types.
2954 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
2955 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
2956
2957 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2958
2959 PR target/44392
2960 * config/arm/arm.md (bswapsi2): Handle condition correctly
2961 for armv6 and optimize_size.
2962
2963 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2964
2965 PR other/18555
2966 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
2967
2968 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
2969
2970 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
2971 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
2972 ix86_expand_strlen, legitimate_pic_address_disp_p,
2973 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
2974 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
2975 ix86_check_movabs, ix86_secondary_memory_needed): Change function
2976 prototype to bool.
2977 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
2978 return_in_memory_ms_64, ix86_check_movabs,
2979 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
2980 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
2981 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
2982 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
2983 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
2984 ix86_secondary_memory_needed): Change to bool. Return
2985 "true" and "false" values.
2986 * config/i386/i386.md: Return "true" and "false" values.
2987
2988 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2989
2990 * doc/sourcebuild.texi (Effective-Target Keywords): Document
2991 run_expensive_tests.
2992
2993 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2994
2995 * toplev.c (output_stack_usage): Use lbasename instead of basename.
2996
2997 2010-09-08 Martin Jambor <mjambor@suse.cz>
2998
2999 PR other/45443
3000 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
3001 at -O3.
3002
3003 2010-09-08 Richard Guenther <rguenther@suse.de>
3004
3005 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
3006 (visit): Adjust.
3007 (iterative_hash_gimple_type): Likewise.
3008 (gimple_type_hash): Likewise.
3009 (gimple_register_type): Likewise.
3010 (print_gimple_types_stats): Likewise.
3011 (free_gimple_type_tables): Likewise.
3012
3013 2010-09-08 Michael Matz <matz@suse.de>
3014
3015 PR tree-optimization/43430
3016 * tree-vect-stmts.c (vectorizable_condition): Support multiple
3017 copies for conditional statements if it's not part of a reduction.
3018
3019 2010-09-08 Michael Matz <matz@suse.de>
3020
3021 PR tree-optimization/33244
3022 * tree-ssa-sink.c (statement_sink_location): Don't sink into
3023 empty loop latches.
3024
3025 2010-09-08 Richard Guenther <rguenther@suse.de>
3026
3027 PR tree-optimization/45578
3028 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
3029 Be more careful when transfering alignment information to
3030 the new induction variable.
3031 (copy_ref_info): Likewise.
3032
3033 2010-09-08 Richard Guenther <rguenther@suse.de>
3034
3035 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
3036 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
3037
3038 2010-09-08 Arnaud Charlet <charlet@adacore.com>
3039
3040 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
3041 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
3042
3043 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
3044
3045 PR doc/45587
3046 * doc/md.texi: Fixed modes on several standard pattern names.
3047
3048 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
3049
3050 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
3051 (ashl<mode>3): ...this.
3052 (loongson_psra<V_suffix>): Rename to...
3053 (ashr<mode>3): ...this.
3054 (loongson_psrl<V_suffix>): Rename to...
3055 (lshr<mode>3): ...this.
3056 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
3057 (CODE_FOR_loongson_psllw): Define.
3058 (CODE_FOR_loongson_psrlh): Define.
3059 (CODE_FOR_loongson_psrlw): Define.
3060 (CODE_FOR_loongson_psrah): Define.
3061 (CODE_FOR_loongson_psraw): Define.
3062
3063 2010-09-07 Richard Henderson <rth@redhat.com>
3064
3065 * tree-vect-data-refs.c: Include tm_p.h.
3066 * Makefile.in (tree-vect-data-refs.o): Update deps.
3067 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
3068 Move delarations outside #ifdef RTX_CODE.
3069
3070 2010-09-07 Richard Henderson <rth@redhat.com>
3071
3072 * final.c (rest_of_handle_final): Unconditionally do
3073 output_function_exception_table before assemble_end_function.
3074
3075 2010-09-07 Jan Hubicka <jh@suse.cz>
3076
3077 * tree-inline.c (tree_inlinable_function_p): Do not test
3078 DECL_REPLACEABLE_P.
3079 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
3080 update_callee_keys, cgraph_decide_inlining): Test function availability.
3081 * cif-code.def (OVERWRITABLE): New code.
3082
3083 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
3084 Jack Howarth <howarth@bromo.med.uc.edu>
3085
3086 PR target/36502
3087 PR target/42313
3088 PR target/44651
3089 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
3090 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
3091 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
3092 MAX macro.
3093
3094 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
3095
3096 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
3097 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
3098
3099 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
3100
3101 * config.gcc: Don't append t-android for Android targets.
3102
3103 * config/t-android: Removed.
3104
3105 2010-09-07 Richard Henderson <rth@redhat.com>
3106
3107 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
3108 * doc/tm.texi.in: Add doc marker.
3109 * doc/tm.texi: Rebuild.
3110 * except.c (switch_to_exception_section): Always build.
3111 (output_one_function_exception_table): Move section switch,
3112 personality output, and label output ...
3113 (output_function_exception_table): ... here. Use the new
3114 personality hook.
3115
3116 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
3117 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
3118 TARGET_ASM_INIT_SECTIONS): New.
3119 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
3120 make static.
3121 (TARGET_ASM_UNWIND_EMIT): Update to match.
3122 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
3123
3124 * config/arm/arm.c (arm_asm_emit_except_personality): New.
3125 (arm_asm_init_sections): New.
3126 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
3127
3128 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3129
3130 * config/arm/arm.md: Remove unused variable.
3131
3132 2010-09-07 Anatoly Sokolov <aesok@post.ru>
3133
3134 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3135 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
3136 (m32r_memory_move_cost): New function.
3137
3138 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
3139
3140 * config.gcc: Append t-android for Android targets.
3141
3142 * config/t-android: New.
3143
3144 2010-09-07 Richard Henderson <rth@redhat.com>
3145
3146 * target.def (unwind_emit_before_insn): New hook.
3147 * doc/tm.texi.in: Add @hook marker for it.
3148 * doc/tm.texi: Rebuild.
3149 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
3150
3151 2010-09-07 Martin Jambor <mjambor@suse.cz>
3152
3153 PR fortran/43665
3154 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
3155 are any type attributes.
3156
3157 2010-09-07 Jan Hubicka <jh@suse.cz>
3158
3159 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
3160 array_ref_low_bound in string access folding.
3161
3162 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
3163
3164 PR target/45206
3165 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
3166 eh_return fixup sequence.
3167
3168 2010-09-07 Jan Hubicka <jh@suse.cz>
3169
3170 * gimple-fold.c (maybe_fold_reference): Verify that operand is
3171 gimple_min_invariant.
3172
3173 2010-09-07 Richard Guenther <rguenther@suse.de>
3174
3175 PR middle-end/45569
3176 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
3177 nor CONSTRUCTOR can trap.
3178 * tree-complex.c (update_complex_assignment): Update EH info.
3179
3180 2010-09-07 Richard Guenther <rguenther@suse.de>
3181
3182 PR middle-end/45569
3183 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
3184 * passes.c (execute_function_todo): Do not verify anything if
3185 we saw errors.
3186
3187 2010-09-07 Richard Guenther <rguenther@suse.de>
3188
3189 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
3190
3191 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
3192
3193 PR target/43137
3194 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
3195 New define_mode_attrs.
3196 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
3197 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
3198 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
3199 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
3200 Remove pool_range attribute.
3201 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
3202 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
3203 pool_range and neg_pool_range attributes.
3204 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
3205 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
3206 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
3207
3208 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
3209
3210 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
3211 check glibc.
3212
3213 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
3214
3215 PR target/22152
3216 * config/i386/mmx.md (*mov<mode>_internal_rex64,
3217 *mov<mode>_internal_avx, *mov<mode>_internal,
3218 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
3219 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
3220
3221 2010-09-06 Mark Mitchell <mark@codesourcery.com>
3222
3223 * c-typeck.c (do_warn_double_promotion): Remove.
3224 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
3225 Objective-C++ too.
3226
3227 2010-09-06 Anatoly Sokolov <aesok@post.ru>
3228
3229 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
3230 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
3231 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
3232 argument type to reg_class_t. Change result type to bool.
3233 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3234
3235 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
3236
3237 PR libobjc/19850
3238 * gthr-posix.h (__gthread_objc_thread_detach): Use
3239 _objc_thread_attribs when detaching a thread.
3240 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
3241
3242 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
3243
3244 PR target/45524
3245 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
3246 * configure: Regenerated.
3247
3248 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3249
3250 * combine.c (try_combine): Set subst_low_luid to i0.
3251
3252 2010-09-06 Richard Guenther <rguenther@suse.de>
3253
3254 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
3255 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
3256 (build_aligned_type): Declare.
3257 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
3258 (check_aligned_type): New function.
3259 (build_aligned_type): Likewise.
3260 * expr.c (expand_assignment): Handle misaligned stores via
3261 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
3262 (expand_expr_real_1): Likewise.
3263 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
3264 * tree-vect-stmts.c (vectorizable_store): Do not build
3265 MISALIGNED_INDIRECT_REF but initialize alignment information.
3266 (vectorizable_load): Likewise.
3267 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
3268 handling.
3269 * cfgexpand.c (expand_debug_expr): Likewise.
3270 * dwarf2out.c (loc_list_from_tree): Likewise.
3271 * fold-const.c (maybe_lvalue_p): Likewise.
3272 (operand_equal_p): Likewise.
3273 (build_fold_addr_expr_with_type_loc): Likewise.
3274 * gimplify.c (gimplify_addr_expr): Likewise.
3275 (gimplify_expr): Likewise.
3276 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
3277 (verify_gimple_assign_single): Likewise.
3278 * tree-dump.c (dequeue_and_dump): Likewise.
3279 (tree_could_trap_p): Likewise.
3280 * tree-predcom.c (ref_at_iteration): Likewise.
3281 * tree-pretty-print.c (dump_generic_node): Likewise.
3282 (op_code_prio): Likewise.
3283 (op_symbol_code): Likewise.
3284 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
3285 * tree-ssa-loop-im.c (for_each_index): Likewise.
3286 (gen_lsm_tmp_name): Likewise.
3287 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
3288 (find_interesting_uses_address): Likewise.
3289 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
3290 * tree-ssa-operands.c (get_expr_operands): Likewise.
3291 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3292 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3293 (ao_ref_init_from_vn_reference): Likewise.
3294 * tree.c (staticp): Likewise.
3295 (build1_stat): Likewise.
3296 (reference_alias_ptr_type): Likewise.
3297 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3298 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
3299 MISALIGNED_INDIRECT_REF handling.
3300
3301 2010-09-06 Richard Guenther <rguenther@suse.de>
3302
3303 PR tree-optimization/45534
3304 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
3305 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
3306 on the target.
3307 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
3308 valid on the target.
3309
3310 2010-09-06 Andreas Schwab <schwab@redhat.com>
3311
3312 * configure.ac: Quote argument of AC_MSG_WARN.
3313 * configure: Regenerate.
3314
3315 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
3316
3317 * sel-sched.c (move_cond_jump): Correct arguments to
3318 maybe_tidy_empty_bb.
3319 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
3320
3321 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
3322
3323 PR rtl-optimization/44919
3324 * sel-sched.c (move_cond_jump): Remove assert, check that
3325 the several blocks case can only happen with mutually exclusive
3326 insns instead. Rewrite the movement code to support moving through
3327 several basic blocks.
3328
3329 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
3330
3331 * config/i386/i386.md (iptrsize): New mode attribute.
3332 (tp_seg): Ditto.
3333 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
3334 mode iterator.
3335 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
3336 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
3337 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
3338 (stack_tls_protect_set_<mode>): Ditto from
3339 stack_tls_protect_set_{si,di}. Use %@ to output segment register
3340 of thread base pointer load.
3341 (stack_tls_protect_test_<mode>): Ditto from
3342 stack_tls_protect_test_{si,di}. Use %@ to output segment register
3343 of thread base pointer load.
3344 (stack_protect_set): Rewrite using indirect functions.
3345 (stack_protect_test): Ditto.
3346 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
3347 (ix86_print_operand): Handle '@'.
3348
3349 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
3350
3351 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
3352 MINUS_EXPR.
3353
3354 2010-09-05 Mark Mitchell <mark@codesourcery.com>
3355
3356 * doc/invoke.texi: Document -Wdouble-promotion.
3357 * c-typeck.c (convert_arguments): Check for implicit conversions
3358 from float to double.
3359 (do_warn_double_promotion): New function.
3360 (build_conditional_expr): Use it.
3361 (build_binary_op): Likewise.
3362
3363 2010-09-05 Richard Guenther <rguenther@suse.de>
3364
3365 PR tree-optimization/45535
3366 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
3367 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
3368 dereferencing it.
3369 (indirect_refs_may_alias_p): Likewise.
3370
3371 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
3372
3373 * config/sh/sh.c (sh_option_override): Make static.
3374 Adjust comments. Declare.
3375 (sh_function_value_regno_p): Likewise.
3376 (sh_register_move_cost): Modify the arguments, make static.
3377 Adjust comments. Declare.
3378 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
3379 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3380 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
3381 REGISTER_MOVE_COST): Delete.
3382 * config/sh/sh-protos.h (sh_override_options): Delete.
3383 (sh_register_move_cost): Delete.
3384 (sh_function_value_regno_p): Delete.
3385
3386 2010-09-04 Anatoly Sokolov <aesok@post.ru>
3387
3388 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
3389 m32r_function_value_regno_p): New functions.
3390 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3391 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
3392 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
3393 FUNCTION_VALUE_REGNO_P): Remove.
3394
3395 2010-09-04 Jan Hubicka <jh@suse.cz>
3396
3397 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
3398 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
3399 fold_read_from_constant_string.
3400
3401 * gimple.h (canonicalize_constructor_val): Declare.
3402 * gimple-fold.c (canonicalize_constructor_val): New function.
3403 (get_symbol_constant_value):Use it.
3404 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
3405
3406 2010-09-04 Jan Hubicka <jh@suse.cz>
3407
3408 * tree-switch-conversion.c (build_one_array): Set constructor to be
3409 static.
3410 * varpool.c (varpool_finalize_decl): Compute const_value_known.
3411
3412 2010-09-04 Richard Guenther <rguenther@suse.de>
3413
3414 PR bootstrap/45519
3415 * tree-flow.h (force_gimple_operand_1): Declare.
3416 (force_gimple_operand_gsi_1): Likewise.
3417 * gimplify.c (force_gimple_operand_1): New worker taking a
3418 gimple predicate for ...
3419 (force_gimple_operand): ... which now wraps it.
3420 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
3421 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
3422 last change.
3423 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
3424 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
3425 (create_mem_ref): Likewise.
3426
3427 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
3428
3429 * config/i386/predicates.md (sse_reg_operand): New predicate.
3430 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
3431 predicate for operand 1.
3432 (XFmode push splitter): Use fp_register_operand predicate
3433 for operand 1.
3434 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
3435 (SF-DF float_extend push splitter): Add reload_completed insn
3436 predicate.
3437 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
3438 MODEF mode macro. Add reload_completed insn predicate.
3439
3440 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
3441
3442 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
3443 (struct df_extract_ref): Remove.
3444 (union df_ref_d): Remove extract_ref member.
3445 (df_ref_create): Remove last three arguments.
3446 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
3447 * df-scan.c (df_ref_record): Remove last three arguments, do not
3448 pass them to df_ref_create_structure.
3449 (df_uses_record): Remove first and last three arguments. Replace
3450 first argument with DF_REF_REGULAR, adjust calls to remove the
3451 width, offset and mode. Always call recursively on the second
3452 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
3453 (df_ref_create_structure): Remove first argument.
3454 (struct df_scan_problem_data): Remove ref_extract_pool.
3455 (df_scan_free_internal): Do not free it.
3456 (df_scan_alloc): Do not allocate it.
3457 (df_ref_create): Remove last three arguments, do not pass them to
3458 df_ref_create_structure.
3459 (df_free_ref): Remove DF_REF_EXTRACT case.
3460 (df_notes_rescan): Adjust call to df_uses_record.
3461 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
3462 Remove DF_REF_EXTRACT case.
3463 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
3464 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
3465 and SUBREG definitions.
3466 (df_get_conditional_uses): Remove references to width/offset/mode,
3467 adjust call to df_ref_create_structure.
3468 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
3469 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
3470 calls to df_uses_record and df_ref_record.
3471 * fwprop.c (update_df): Remove references to width/offset/mode,
3472 adjust call to df_ref_create.
3473
3474 2010-09-03 Jan Hubicka <jh@suse.cz>
3475
3476 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
3477 (build_cdtor_fns): Update use of build_cdtor.
3478
3479 2010-09-03 Joseph Myers <joseph@codesourcery.com>
3480
3481 * doc/options.texi (SeparateAlias): Document.
3482 * opt-functions.awk (switch_flags): Handle SeparateAlias.
3483 * opth-gen.awk: Generate enumeration names for options marked
3484 SeparateAlias, but not for those marked Ignore.
3485 * opts-common.c (generate_canonical_option): Don't output separate
3486 argument for options marked CL_SEPARATE_ALIAS.
3487 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
3488 * opts.h (CL_SEPARATE_ALIAS): New.
3489 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
3490 CL_COMMON): Adjust definitions.
3491 * config/i386/darwin.opt, config/mips/sde.opt: New.
3492 * common.opt (fdump-final-insns): New.
3493 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3494 i386/darwin.opt.
3495 (mips*-sde-elf*): Add mips/sde.opt.
3496 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
3497 -mno-data-in-code and -mcode-xonly here.
3498 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
3499 * gcc.c (option_map): Add "j" to --dump entry.
3500 (translate_options): Don't translate -d to -foutput-class-dir= here.
3501
3502 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
3503
3504 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
3505 DR_IS_WRITE.
3506 (compute_all_dependences): Same.
3507 (create_rdg_edge_for_ddr): Same.
3508 * tree-data-ref.h (DR_IS_WRITE): New.
3509 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
3510 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
3511 (write_memrefs_written_at_least_once): Same.
3512 * tree-predcom.c (suitable_component_p): Same.
3513 (determine_roots_comp): Same.
3514 (execute_load_motion): Same.
3515 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
3516 (vect_enhance_data_refs_alignment): Same.
3517 (vect_analyze_group_access): Same.
3518
3519 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
3520
3521 PR testsuite/42843
3522 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
3523 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
3524
3525 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
3526
3527 * dwarf2out.c (file scope): Remove #if0'd code.
3528 (gen_subprogram_die): Same.
3529
3530 2010-09-03 Jakub Jelinek <jakub@redhat.com>
3531
3532 PR middle-end/45484
3533 * dwarf2out.c (flush_queued_reg_saves): Rename to...
3534 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
3535 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
3536 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
3537 * config/i386/i386.c (output_set_got): Call it.
3538
3539 2010-09-03 Michael Matz <matz@suse.de>
3540
3541 PR middle-end/45415
3542 * tree-sra.c (sra_modify_assign): If we modify the statement,
3543 say so.
3544
3545 * tree-ssa.c (verify_ssa): Check number of operands and links
3546 per statement to agree.
3547
3548 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
3549 Iain Sandoe <iains@gcc.gnu.org>
3550
3551 PR target/45476
3552 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
3553 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
3554 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
3555
3556 2010-09-03 Richard Guenther <rguenther@suse.de>
3557
3558 * lto-streamer-out.c (output_function): Output function
3559 start and end loci.
3560 * lto-streamer-in.c (input_function): Input function start
3561 and end loci.
3562
3563 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3564
3565 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
3566 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
3567 * configure: Regenerate.
3568 * aclocal.m4: Regenerate.
3569
3570 2010-09-03 Jan Hubicka <jh@suse.cz>
3571
3572 PR lto/44812
3573 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
3574 on functions/variables in other partition.
3575
3576 2010-09-03 Jan Hubicka <jh@suse.cz>
3577
3578 * cgraph.h (struct varpool_node): Add const_value_known.
3579 (varpool_decide_const_value_known): Declare.
3580 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
3581 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
3582 (input_varpool_node): Restore const_value_known.
3583 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
3584 initializer folding.
3585 * ipa.c (ipa_discover_readonly_nonaddressable_var,
3586 function_and_variable_visibility): Compute const_value_known.
3587 * gimple-fold.c (get_symbol_constant_value): Use varpool for
3588 initializer folding.
3589 * varpool.c (varpool_decide_const_value_known): New function.
3590
3591 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
3592
3593 * config/i386/i386.md: Remove empty preparation statements
3594 from splitters.
3595
3596 2010-09-03 Jan Hubicka <jh@suse.cz>
3597
3598 * passes.c (rest_of_decl_compilation): Do not add local vars into
3599 varpool.
3600 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
3601 static or extern vars are in varpool.
3602 (varpool_finalize_decl): Sanity check that only static vars are
3603 finalized.
3604
3605 2010-09-03 Jakub Jelinek <jakub@redhat.com>
3606
3607 PR debug/45500
3608 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
3609 not just generic vectors with BLKmode.
3610
3611 2010-09-03 Richard Guenther <rguenther@suse.de>
3612
3613 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
3614 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
3615 * tree.h (TMR_SYMBOL): Remove.
3616 (TMR_BASE, TMR_OFFSET): Adjust.
3617 (TMR_INDEX2): New.
3618 * alias.c (ao_ref_from_mem): Use TMR_BASE.
3619 * builtins.c (get_object_alignment): Merge TMR_BASE and
3620 TMR_SYMBOL handling.
3621 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
3622 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
3623 handling. Also allow TARGET_MEM_REF as base address.
3624 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
3625 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
3626 base. Gimplify TMR_INDEX2.
3627 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
3628 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3629 (get_addr_base_and_unit_offset): Likewise.
3630 * tree-eh.c (tree_could_trap_p): Likewise.
3631 * tree-pretty-print.c (dump_generic_node): Likewise.
3632 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
3633 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
3634 base to index2.
3635 (get_address_description): Reconstruct addres description
3636 from merged TMR_BASE and TMR_INDEX2.
3637 (maybe_fold_tmr): Fold propagated addresses.
3638 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
3639 MEM_REF and TARGET_MEM_REF paths.
3640 (indirect_refs_may_alias_p): Likewise.
3641 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
3642 instead of TMR_SYMBOL.
3643 * tree-ssa-operands.c (get_tmr_operands): Simplify.
3644 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
3645 according to changes ...
3646 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
3647 Split TARGET_MEM_REF into two fields plus the base.
3648 * tree.c (mem_ref_offset): Simplify.
3649 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
3650 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
3651 Strip NOPs when folding MEM_REF addresses.
3652 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
3653 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
3654 (fold_gimple_assign): ... not here.
3655
3656 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
3657
3658 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
3659 * config/mips/mips.c (mips_shift_truncation_mask): New function.
3660 (TARGET_SHIFT_TRUNCATION_MASK): Define.
3661
3662 2010-09-02 Richard Henderson <rth@redhat.com>
3663
3664 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
3665 instead of readelf in the test.
3666 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
3667 in the .debug_frame section for coff targets.
3668 * configure: Rebuild.
3669
3670 2010-09-02 Anatoly Sokolov <aesok@post.ru>
3671
3672 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
3673 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
3674 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3675 (m32c_class_likely_spilled_p): Make static. Change argument type to
3676 reg_class_t. Change result type to bool.
3677
3678 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
3679
3680 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
3681 to convert (double)(long) into a single FRIZ instruction or not
3682 when -ffast-math is used.
3683
3684 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
3685 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
3686 or FRIZ instruction if -ffast-math.
3687 * config/rs6000/rs6000.md (friz): Ditto.
3688
3689 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
3690
3691 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3692
3693 * opth-gen.awk (quote, comma): Remove unused variables.
3694
3695 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
3696
3697 * arm.c (arm_override_options): Correct fall-back code to use
3698 SUBTARGET_CPU_DEFAULT.
3699
3700 2010-09-02 Julian Brown <julian@codesourcery.com>
3701
3702 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
3703 unspecs.
3704 (vcond<mode>, vcondu<mode>): New expanders.
3705 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
3706 comparisons with zero.
3707 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
3708 * config/arm/constraints.md (Dz): New constraint.
3709
3710 2010-09-02 Anatoly Sokolov <aesok@post.ru>
3711
3712 * target.def (class_likely_spilled_p): New hook.
3713 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
3714 * doc/tm.texi: Regenerate.
3715 * targhooks.c (default_class_likely_spilled_p): New function.
3716 * targhooks.h (default_class_likely_spilled_p): Declare.
3717 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
3718 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
3719 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
3720 Use fixed_reg_set instead of fixed_regs.
3721 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
3722 * calls.c (avoid_likely_spilled_reg): Ditto.
3723 * ira-conflicts.c (ira_build_conflicts): Ditto.
3724 * ira.c (update_equiv_regs): Ditto.
3725 * mode-switching.c (create_pre_exit): Ditto.
3726 * regmove.c (find_matches): Ditto.
3727 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
3728 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
3729 (small_register_class_p): New inline function.
3730 (push_secondary_reload, find_reusable_reload, find_reloads): Use
3731 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
3732
3733 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
3734 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
3735 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3736
3737 2010-09-02 Richard Guenther <rguenther@suse.de>
3738
3739 PR tree-optimization/44937
3740 PR tree-optimization/45412
3741 * ipa-split.c (split_function): Properly remove PHI nodes.
3742
3743 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3744
3745 * opts.h (struct cl_option): Add warn_message field.
3746 (struct cl_decoded_option): Add warn_message field.
3747 * doc/options.texi (Ignore, Warn): Document.
3748 * opt-functions.awk (needs_state_p): Don't consider aliases or
3749 ignored options to need state saved.
3750 * optc-gen.awk: Handle Warn and Ignore.
3751 * opth-gen.awk: Output OPT_SPECIAL_ignore.
3752 * opts-common.c (decode_cmdline_option): Set warn_message field.
3753 Handle ignored options.
3754 (decode_cmdline_options_to_array, generate_option,
3755 generate_option_input_file): Set warn_message field.
3756 (read_cmdline_option): Generate warnings from warn_message field.
3757 Handle ignored options.
3758 * common.opt (Wunreachable-code, fargument-alias,
3759 fargument-noalias, fargument-noalias-global,
3760 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
3761 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
3762 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
3763 ftree-salias): Mark Ignore.
3764 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
3765 -mintel-syntax and -mno-intel-syntax here.
3766 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
3767 using Warn.
3768 * opts.c (common_handle_option): Don't handle options marked as
3769 ignored.
3770 (enable_warning_as_error): Handle ignored options.
3771
3772 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3773
3774 PR driver/44076
3775 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
3776 alias_target fields.
3777 * opt-functions.awk (opt_sanitized_name): Don't handle
3778 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
3779 * optc-gen.awk: Generate alias fields.
3780 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
3781 Don't generate such constants for aliases.
3782 * opts-common.c (generate_canonical_option): New.
3783 (decode_cmdline_option): Handle aliases. Use
3784 generate_canonical_option for known options instead of copying the
3785 input option text.
3786 * doc/options.texi (Alias): Document.
3787 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
3788 fstack-check, specs): Mark as aliases.
3789 * gcc.c (driver_handle_option): Canonicalize -L options to joined
3790 arguments.
3791 (driver_handle_option): Don't handle OPT_specs.
3792 * opts.c (common_handle_option): Don't handle options marked as
3793 aliases.
3794 (enable_warning_as_error): Handle aliases.
3795 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
3796 OPT_Wlarger_than_eq.
3797 * tree-optimize.c (tree_rest_of_compilation): Use
3798 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
3799
3800 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
3801
3802 * config/i386/i386.md (nonmemory_operand): New mode attribute.
3803 (push memory peephole2): Macroize peepholes using SWI mode iterator.
3804 (move immediate to memory peephole2): Macroize peepholes using
3805 SWI124 mode iterator.
3806 (non-pairable NOT peephole2): Macroize peepholes using SWI124
3807 mode iterator.
3808 (simple lea add peephole2): Macroize peepholes using SWI48
3809 mode iterator.
3810 (simple lea mult peephole2): Ditto.
3811 (imul by 3,5,9 to lea peephole2): Ditto.
3812 (mov $-1, reg peephole2): Macroize peepholes using SWI248
3813 mode iterator.
3814 (imul $32bit_imm,mem,reg peephole2): Ditto.
3815 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
3816
3817 2010-09-02 Ian Bolton <ian.bolton@arm.com>
3818
3819 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
3820
3821 2010-09-02 Olivier Hainque <hainque@adacore.com>
3822
3823 PR middle-end/44763
3824 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
3825 (allocno_priority_compare_func): Use it instead of a straight
3826 difference computation over priorities.
3827
3828 2010-09-02 Andi Kleen <ak@linux.intel.com>
3829
3830 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
3831
3832 2010-09-02 Ira Rosen <irar@il.ibm.com>
3833
3834 * tree-vectorizer.h (get_later_stmt): New function.
3835 (vect_analyze_data_ref_dependences): Add argument.
3836 * tree-vect-loop.c (vect_analyze_loop): Update call to
3837 vect_analyze_data_ref_dependences.
3838 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
3839 New function.
3840 (vect_analyze_data_ref_dependence): Add argument for basic block
3841 dependencies. Check dependencies in basic block vectorization.
3842 (vect_analyze_data_ref_dependences): Add argument and update call to
3843 vect_analyze_data_ref_dependences.
3844 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
3845 (vect_bb_vectorizable_with_dependencies): New.
3846 (vect_slp_analyze_bb): Check dependencies in basic block.
3847 (vect_schedule_slp_instance): Insert stores before the last store in
3848 SLP instance.
3849
3850 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
3851
3852 PR target/45476
3853 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
3854 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
3855
3856 2010-09-01 Jakub Jelinek <jakub@redhat.com>
3857
3858 PR middle-end/45458
3859 * bb-reorder.c (add_labels_and_missing_jumps): Treat
3860 bbs ending with throwing insns like blocks ending with a call.
3861 (fix_up_fall_thru_edges): Likewise.
3862
3863 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
3864
3865 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
3866 (m32c_function_arg_advance): Delete.
3867 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3868 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
3869 comments. Take a const_tree and a bool. Declare.
3870 (m32c_function_arg_advance): Likewise.
3871 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3872
3873 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
3874
3875 PR target/45476
3876 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
3877 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
3878 * config/i386/mingw32.h: ... here.
3879
3880 2010-09-01 Andi Kleen <ak@linux.intel.com>
3881
3882 PR lto/45475
3883 * lto-streamer-in.c (lto_input_ts_target_option): Add.
3884 (lto_input_tree_pointers): Call lto_input_ts_target_option.
3885 * lto-streamer-out (lto_output_ts_target_option): Add.
3886 (lto_output_tree_pointers): Call lto_output_ts_target_option.
3887
3888 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
3889
3890 PR/target 45452
3891 * config/i386/cygwin.h: Change order of specified import libraries.
3892 * config/i386/mingw32.h: Likewise.
3893 * config/i386/t-cygwin: Likewise.
3894 * config/i386/t-mingw32: Likewise.
3895 * config/i386/t-mingw-w32: Likewise.
3896 * config/i386/t-mingw-w64: Likewise.
3897
3898 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3899
3900 * config/arm/neon-schedgen.ml (core): New type.
3901 (allCores): List of supported cores.
3902 (availability_table): Add supported cores.
3903 (collate_bypasses): Accept core as a parameter.
3904 (worst_case_latencies_and_bypasses): Accept core as a parameter.
3905 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
3906 and coreStr to get tune attribute and prefix for functional units.
3907 (emit_bypasses): Accept core name and use it.
3908 (calculate_per_core_availability_table): New.
3909 (filter_core): New.
3910 (calculate_core_availability_table): New.
3911 (main): Use calculate_core_availablity_table.
3912 * config/arm/cortex-a8-neon.md: Update copyright year.
3913 Regenerated from ml file and merged in.
3914 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
3915 cortex_a8_neon_mrc.
3916
3917 2010-09-01 Ian Bolton <ian.bolton@arm.com>
3918
3919 * Makefile.in (tree-switch-conversion.o): Update dependencies.
3920
3921 2010-09-01 Richard Guenther <rguenther@suse.de>
3922
3923 * alias.c (ao_ref_from_mem): Adjust.
3924 * builtins.c (get_object_alignment): Likewise.
3925 * cfgexpand.c (expand_debug_expr): Likewise.
3926 * gimple.c (get_base_address): Likewise.
3927 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3928 (get_addr_base_and_unit_offset): Likewise. Fix for
3929 both TMR_SYMBOL and TMR_BASE being set.
3930 * tree-eh.c (tree_could_trap_p): Likewise.
3931 * gimplify.c (gimplify_expr): Do not attempt to gimplify
3932 TMR_SYMBOL. Always gimplify TMR_BASE.
3933 * tree-cfg.c (verify_types_in_gimple_reference): Verify
3934 TMR_BASE if there is a TMR_SYMBOL.
3935 * tree-pretty-print.c (dump_generic_node): Adjust.
3936 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
3937 (tree_mem_ref_addr): Likewise.
3938 (create_mem_ref_raw): Likewise.
3939 (move_fixed_address_to_symbol): Likewise.
3940 (create_mem_ref): Likewise.
3941 (dump_mem_address): Likewise.
3942 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
3943 Fix for both TMR_SYMBOL and TMR_BASE being set.
3944 (indirect_refs_may_alias_p): Likewise.
3945 * tree-ssa-operands.c (get_tmr_operands): Adjust.
3946 * tree.def (TARGET_MEM_REF): Adjust documentation.
3947
3948 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
3949
3950 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
3951 Rename from X86_TUNE_ADD_ESP_4.
3952 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
3953 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
3954 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
3955 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
3956 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
3957 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
3958 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
3959 * config/i386/i386.c (initial_ix86_tune_features)
3960 <X86_TUNE_SINGLE_POP>: Invert members.
3961 <X86_TUNE_DOUBLE_POP>: Ditto.
3962 <X86_TUNE_SINGLE_PUSH>: Ditto.
3963 <X86_TUNE_DOUBLE_PUSH>: Ditto.
3964 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
3965 No longer exported.
3966 (push peephole2 patterns): Macroize peepholes using P mode iterator.
3967 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
3968 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
3969 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
3970
3971 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
3972
3973 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
3974 a volatile LHS if the constructor has only one element.
3975
3976 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
3977
3978 PR bootstrap/45321
3979 * tree.c (stdarg_p): Make fntype parameter const.
3980 * tree.h (stdarg_p): Likewise.
3981 (function_args_iterator): Remove unused fntype field.
3982 (function_args_iter_init): Do not initialize fntype
3983 field. Make fntype parameter const.
3984
3985 2010-09-01 Richard Guenther <rguenther@suse.de>
3986
3987 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
3988 estimate.
3989 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
3990 (execute_vrp): Compute number of iteration estimates.
3991 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
3992 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
3993 * tree-data-ref.c (estimated_loop_iterations): Adjust.
3994 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
3995 Infer loop bounds from undefined behavior based on a new parameter.
3996 (estimate_numbers_of_iterations): Likewise.
3997 (scev_probably_wraps_p): Adjust.
3998 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
3999
4000 2010-09-01 Nick Clifton <nickc@redhat.com>
4001
4002 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
4003 where appropriate.
4004 (xstormy16_legitimate_address_p): Use true and false instead of 1
4005 and 0.
4006 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
4007 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
4008 magic constant 2.
4009 (xstormy16_expand_call): Fix comment at start of function.
4010
4011 2010-09-01 Nick Clifton <nickc@redhat.com>
4012
4013 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
4014 when pushing accumulator register.
4015 (rx_get_stack_layout): Always save call clobbered registers inside
4016 interrupt handlers.
4017 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
4018
4019 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
4020
4021 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
4022 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
4023
4024 * libgcc-std.ver (GCC_4.6.0): Define version.
4025
4026 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
4027
4028 * tree-nested.c (convert_all_function_calls): Iterate until after the
4029 sum of static chains in the nest doesn't change.
4030
4031 2010-08-31 Anatoly Sokolov <aesok@post.ru>
4032
4033 * config/m32c/m32c.c (classes_intersect): Remove.
4034 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
4035 reg_classes_intersect_p instead of classes_intersect.
4036 (class_can_hold_mode): Change arguments type from enum reg_class to
4037 reg_class_t. Use reg_class_contents instead of class_contents.
4038 (m32c_register_move_cost): Make static. Change arguments type from
4039 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
4040 classes_intersect. Use reg_class_contents instead of class_contents.
4041 (m32c_memory_move_cost): Make static. Change arguments type from
4042 enum reg_class to reg_class_t.
4043 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4044 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4045 * config/m32c/m32c-protos.h (m32c_register_move_cost,
4046 m32c_memory_move_cost): Remove.
4047
4048 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
4049
4050 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
4051 (arm_function_arg): Delete.
4052 (arm_needs_doubleword_align): Take a const_tree.
4053 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4054 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
4055 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
4056 (arm_function_arg): Make static. Take a const_tree and a bool.
4057 (arm_function_arg_advance): Likewise.
4058 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4059
4060 2010-08-31 Andi Kleen <ak@linux.intel.com>
4061
4062 * common.opt (fwhopr=): Update for -fwhopr=jobserver
4063 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
4064 * lto-wrapper.c (run_gcc): Add jobserver mode.
4065 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
4066 argument.
4067
4068 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
4069
4070 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
4071 (popsi1): Ditto.
4072 (*popdi1_epilogue): Ditto.
4073 (*popsi1_epilogue): Ditto.
4074 (popsi, popdi peephole2 patterns): Update peepholes for changed
4075 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
4076
4077 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
4078 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
4079
4080 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
4081 (override_options): Do not initialize removed ix86_gen_pop1.
4082 (gen_pop): New static function.
4083 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
4084 (release_scratch_register_on_entry): Ditto.
4085 (ix86_restore_reg_using_pop): Ditto.
4086 (ix86_expand_epilogue): Ditto.
4087
4088 2010-08-31 Jakub Jelinek <jakub@redhat.com>
4089
4090 PR middle-end/45461
4091 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
4092
4093 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
4094
4095 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
4096 semicolons.
4097
4098 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4099
4100 * doc/extend.texi: Fix documentation of the return value of
4101 __builtin_choose_expr.
4102
4103 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
4104
4105 * config/v850/v850-protos.h (function_arg): Delete.
4106 * config/v850/v850.h (FUNCTION_ARG): Delete.
4107 (FUNCTION_ARG_ADVANCE): Move code to...
4108 * config/v850/v850.c (v850_function_arg_advance): ...here.
4109 (v850_function_arg): Make static. Take a const_tree and a bool.
4110 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4111
4112 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
4113
4114 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
4115 these...
4116 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
4117 ...and these...
4118 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
4119 ..to here..
4120 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
4121 ...and here.
4122 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4123
4124 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
4125
4126 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
4127 Delete.
4128 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4129 * config/rx/rx.c (rx_function_arg_size): Make static.
4130 (rx_function_arg): Likewise.
4131 (rx_function_arg_advance): New function.
4132 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4133
4134 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
4135
4136 * config/arm/arm.c (arm_override_options): Remove superfluous test.
4137 Fix indentation.
4138
4139 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
4140
4141 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
4142 (dwarf2out_decl) <CONST_DECL>: Likewise.
4143
4144 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
4145
4146 Stack usage support
4147 * common.opt (-fstack-usage): New option.
4148 * doc/invoke.texi (Debugging options): Document it.
4149 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
4150 allocate_dynamic_stack_space.
4151 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
4152 and propagate it to allocate_dynamic_stack_space.
4153 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
4154 * calls.c (initialize_argument_information): Pass TRUE as 4th
4155 argument to allocate_dynamic_stack_space.
4156 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
4157 to 1 when pushing a variable-sized argument onto the stack. Pass
4158 TRUE as 4th argument to allocate_dynamic_stack_space.
4159 Update current_function_pushed_stack_size.
4160 (emit_library_call_value_1): Likewise.
4161 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
4162 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
4163 attempt to find an upper bound. Remove redundant code for the
4164 SETJMP_VIA_SAVE_AREA case.
4165 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
4166 * function.h (struct stack_usage): New structure.
4167 (current_function_static_stack_size): New macro.
4168 (current_function_dynamic_stack_size): Likewise.
4169 (current_function_pushed_stack_size): Likewise.
4170 (current_function_dynamic_alloc_count): Likewise.
4171 (current_function_has_unbounded_dynamic_stack_size): Likewise.
4172 (current_function_allocates_dynamic_stack_space): Likewise.
4173 (struct function): Add new field 'su'.
4174 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
4175 add the value of the dynamic offset to the dynamic stack usage.
4176 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
4177 for variable-sized objects.
4178 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
4179 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
4180 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
4181 BUILT_IN_ALLOCA for variable-sized objects.
4182 * output.h (output_stack_usage): Declare.
4183 * toplev.c (stack_usage_file): New file pointer.
4184 (output_stack_usage): New function.
4185 (open_auxiliary_file): Likewise.
4186 (lang_dependent_init): Open file if flag_stack_usage is set.
4187 (finalize): Close file if stack_usage_file is not null.
4188 * tree.h (ALLOCA_FOR_VAR_P): New macro.
4189 * config/alpha/alpha.c (compute_frame_size): New function.
4190 (alpha_expand_prologue): Use it.
4191 (alpha_start_function): Likewise.
4192 (alpha_expand_epilogue): Likewise. Set stack usage info.
4193 * config/i386/i386.c (ix86_expand_prologue): Likewise.
4194 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4195 * config/mips/mips.c (mips_expand_prologue): Likewise.
4196 * config/pa/pa.c (hppa_expand_prologue): Likewise.
4197 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4198 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4199
4200 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
4201
4202 PR tree-optimization/45427
4203 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
4204 Handle the case that the exit is never taken correctly.
4205 (number_of_iterations_ne): Pass exit_must_be_taken to
4206 number_of_iterations_ne_max.
4207
4208 2010-08-30 Catherine Moore <clm@codesourcery.com>
4209
4210 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
4211 Infer -mdspr2 for the the 74K.
4212
4213 2010-08-30 Jakub Jelinek <jakub@redhat.com>
4214
4215 PR debug/45419
4216 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
4217
4218 PR middle-end/45423
4219 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
4220 and TRUTH_{AND,OR,XOR}_EXPR.
4221 * c-parser.c (c_parser_omp_atomic): Handle boolean
4222 {PRE,POST}_{INC,DEC}REMENT.
4223
4224 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
4225
4226 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
4227 (function_arg): Delete.
4228 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4229 (FUNCTION_INCOMING_ARG): Delete.
4230 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
4231 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
4232 and a bool.
4233 (function_arg): Rename to...
4234 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
4235 a bool.
4236 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
4237 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4238 (TARGET_FUNCTION_INCOMING_ARG): Define.
4239
4240 2010-08-30 Richard Guenther <rguenther@suse.de>
4241
4242 PR tree-optimization/21602
4243 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
4244 using points-to information.
4245
4246 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
4247
4248 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
4249
4250 2010-08-30 Richard Guenther <rguenther@suse.de>
4251
4252 PR tree-optimization/45449
4253 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
4254 variables.
4255
4256 2010-08-30 Joseph Myers <joseph@codesourcery.com>
4257
4258 * opts.h (CL_ERR_NEGATIVE): Define.
4259 * opts.c (unknown_option_callback): Don't postpone warnings for
4260 options marked with CL_ERR_NEGATIVE.
4261 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
4262 for negative versions of CL_REJECT_NEGATIVE options.
4263
4264 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
4265
4266 * config/i386/i386.md (zero_extendsidi2_1): Rename from
4267 zero_extendsidi2_32.
4268 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
4269 using SWI12 mode iterator.
4270 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
4271 to define_insn_and_split pattern.
4272 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
4273 using SWI24 mode iterator.
4274 (*zero_extendqi<mode>2_and): Macroize insn from
4275 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
4276 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
4277 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
4278 SWI24 mode iterator.
4279 (*zero_extendqi<mode>2_movzbl): Ditto from
4280 *zero_extendqi{hi,si}2_movzbl.
4281 (extendsidi2_1): Rename from extendsidi2_32.
4282 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
4283 SWI12 mode iterator.
4284
4285 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
4286
4287 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
4288 general purpose registers.
4289 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
4290 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
4291 with general purpose registers and memory operands. Add associated
4292 CCImode post-reload splitter.
4293 * config/ia64/div.md: Change BImode to CCImode throughout.
4294
4295 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
4296
4297 * config/ia64/ia64.md (cstorebi4): Fix thinko.
4298
4299 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
4300
4301 * config/picochip/picochip.c (reorder_var_tracking_notes): This
4302 function was dropping debug insns which caused PR45299.
4303
4304 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
4305
4306 * config/i386/sse.md (extsuffix): New code attribute.
4307 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
4308 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
4309 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
4310 and sse4_1_zero_extendv4qiv4si2.
4311 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
4312 and sse4_1_zero_extendv2qiv2di2.
4313 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
4314 and sse4_1_zero_extendv4hiv4si2.
4315 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
4316 and sse4_1_zero_extendv2hiv2di2.
4317 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
4318 and sse4_1_zero_extendv2siv2di2
4319
4320 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
4321 using any_extend code iterator.
4322 (*avx_<s>mulv8hi3_highpart): Macroize insn from
4323 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
4324 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
4325
4326 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
4327 gen_sse4_1_sign_extend* functions.
4328 (struct builtin_description bdesc_args): Ditto.
4329
4330 2010-08-27 Xinliang David Li <davidxl@google.com>
4331
4332 PR/45422
4333 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
4334 (iv_ca_set_no_cp): Update used inv expr count.
4335 (iv_ca_set_cp): Ditto.
4336 (iv_ca_new): Initialize new member.
4337 (iv_ca_free): Free memory.
4338
4339 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
4340
4341 * config/sh/sh-protos.h (sh_function_arg): Delete.
4342 (sh_function_arg_advance): Delete.
4343 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4344 (PASS_IN_REG_P): Eliminate cast.
4345 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
4346 const_tree and a bool.
4347 (sh_function_arg): Likewise.
4348 (sh_output_mi_thunk): Call sh_function_arg_advance) and
4349 sh_function_arg.
4350 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4351
4352 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
4353 Kaz Kojima <kkojima@gcc.gnu.org>
4354
4355 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
4356 when possible.
4357 (sh_expand_epilogue): Likewise.
4358 * config/sh/sh.md (movml_push_banked): New insn.
4359 (movml_pop_banked): Likewise.
4360
4361 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
4362
4363 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
4364 gen_regexp_oneof, gen_regexp_sequence): Use the string found
4365 in vector element 0 rather than the original string when there's
4366 only one element.
4367 (gen_regexp): Remove extra semicolon.
4368
4369 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
4370 thumb2_movsf_vfp): Set attribute "insn".
4371 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
4372 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
4373 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
4374 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
4375 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
4376 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
4377 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
4378 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
4379 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
4380 if_not_arith, if_arith_not, cond_move_not): Likewise.
4381
4382 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
4383
4384 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
4385 New declaration.
4386 (rs6000_allocate_stack_temp): Ditto.
4387 (rs6000_expand_convert_si_to_sfdf): Ditto.
4388
4389 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
4390 line. Update the options set if power6 or power7 server/embedded
4391 type options are used. If we give a warning for no vsx under
4392 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
4393 (rs6000_allocate_stack_temp): New function to allocate a stack
4394 tempoary and adjust the address so it meets either REG+OFFSET or
4395 REG+REG addressing requirements.
4396 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
4397 that they can be used with the LFIWAX/LFIWZX instrucitons.
4398 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
4399 converting signed/unsigned SImode to either SFmode/DFmode.
4400
4401 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
4402 whether certain instructions can be generated.
4403 (TARGET_FCTIDZ): Ditto.
4404 (TARGET_STFIWX): Ditto.
4405 (TARGET_LFIWAX): Ditto.
4406 (TARGET_LFIWZX): Ditto.
4407 (TARGET_FCFIDS): Ditto.
4408 (TARGET_FCFIDU): Ditto.
4409 (TARGET_FCFIDUS): Ditto.
4410 (TARGET_FCTIDUZ): Ditto.
4411 (TARGET_FCTIWUZ): Ditto.
4412
4413 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
4414 (UNSPEC_FCTID): Ditto.
4415 (UNSPEC_LFIWAX): Ditto.
4416 (UNSPEC_LFIWZX): Ditto.
4417 (UNSPEC_FCTIWUZ): Ditto.
4418 (rreg): Use correct constraints.
4419 (SI_CONVERT_FP): New mode attribute for floating point conversion
4420 tests.
4421 (E500_CONVERT): Ditto.
4422 (lfiwax): New insns for converting from integer to floating point
4423 utilizing newer instructions. Attempt to optimize conversions
4424 that come from memory so that we don't load the value into a GPR,
4425 spill it to the stack and reload it into a FPR.
4426 (floatsi<mode>2_lfiwax): Ditto.
4427 (floatsi<mode>2_lfiwax_mem): Ditto.
4428 (floatsi<mode>2_lfiwax_mem2): Ditto.
4429 (lfiwzx): Ditto.
4430 (floatunssi<mode>2_lfiwzx): Ditto.
4431 (floatunssi<mode>2_lfiwzx_mem): Ditto.
4432 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
4433 (floatdidf2_mem): Ditto.
4434 (floatunsdidf2_fcfidu): Ditto.
4435 (floatunsdidf2_mem): Ditto.
4436 (floatunsdisf2): Ditto.
4437 (floatunsdisf2_fcfidus): Ditto.
4438 (floatunsdisf2_mem): Ditto.
4439 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
4440 Use FCFID on 32-bit hosts that support it.
4441 (floatsidf2_internal): Ditto.
4442 (floatunssisf2): Ditto.
4443 (floatunssidf2): Ditto.
4444 (floatunssidf2_internal): Ditto.
4445 (floatsisf2): Ditto.
4446 (floatdidf2): Ditto.
4447 (floatdidf2_fpr): Ditto.
4448 (floatunsdidf2): Ditto.
4449 (floatdisf2): Ditto.
4450 (floatdisf2_fcfids): Ditto.
4451 (floatdisf2_internal1): Ditto.
4452 (fixuns_truncsfsi2): Delete, merge into common pattern for both
4453 SF/DF. Add power7 support.
4454 (fix_truncsfsi2): Ditto.
4455 (fixuns_truncdfsi2): Ditto.
4456 (fixuns_truncdfdi2): Ditto.
4457 (fix_truncdfsi2): Ditto.
4458 (fix_truncdfsi2_internal): Ditto.
4459 (fix_truncdfsi2_internal_gfxopt): Ditto.
4460 (fix_truncdfsi2_mfpgpr): Ditto.
4461 (fctiwz): Ditto.
4462 (btruncdf2): Ditto.
4463 (btruncdf2_fpr): Ditto.
4464 (btructsf2): Ditto.
4465 (ceildf2): Ditto.
4466 (ceildf2_fpr): Ditto.
4467 (ceilsf2): Ditto.
4468 (floordf2): Ditto.
4469 (floordf2_fpr): Ditto.
4470 (floorsf2): Ditto.
4471 (rounddf2): Ditto.
4472 (rounddf2_fpr): Ditto.
4473 (roundsf2): Ditto.
4474 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
4475 (fix_trunc<mode>di2): Ditto.
4476 (fixuns_trunc<mode>si2): Ditto.
4477 (fixuns_trunc<mode>di2): Ditto.
4478 (fctiwz_<mode>): Ditto.
4479 (btrunc<mode>2): Ditto.
4480 (btrunc<mode>2_fpr): Ditto.
4481 (ceil<mode>2): Ditto.
4482 (ceil<mode>2_fpr): Ditto.
4483 (floor<mode>2): Ditto.
4484 (float<mode>2_fpr): Ditto.
4485 (round<mode>2): Ditto.
4486 (round<mode>2_fpr): Ditto.
4487 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
4488 (fixuns_trunc<mode>si2_stfiwx): Ditto.
4489 (fix_truncdfsi2_internal): Ditto.
4490 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
4491 converted value on stack, loaded into GPR, and then stored into
4492 the final destination.
4493 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
4494 FCTIDZ.
4495 (lrint<mode>di2): New insn, provide the lrint builtin functions.
4496 (ftruncdf2): Delete, unused.
4497 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
4498
4499 * config/rs6000/vsx.md (toplevel): Update copyright year.
4500 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
4501 (VSr3): Ditto.
4502
4503 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
4504 Jeremie Salvucci <jeremie.salvucci@free.fr>
4505
4506 * gengtype.c (output_type_enum): Test the right union member.
4507
4508 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
4509
4510 PR target/41484
4511 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
4512 operands for operand 1.
4513 (sse4_1_extendv4qiv4si2): Ditto.
4514 (sse4_1_extendv2qiv2di2): Ditto.
4515 (sse4_1_extendv4hiv4si2): Ditto.
4516 (sse4_1_extendv2hiv2di2): Ditto.
4517 (sse4_1_extendv2siv2di2): Ditto.
4518 (sse4_1_zero_extendv8qiv8hi2): Ditto.
4519 (sse4_1_zero_extendv4qiv4si2): Ditto.
4520 (sse4_1_zero_extendv2qiv2di2): Ditto.
4521 (sse4_1_zero_extendv4hiv4si2): Ditto.
4522 (sse4_1_zero_extendv2hiv2di2): Ditto.
4523 (sse4_1_zero_extendv2siv2di2): Ditto.
4524 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
4525 (*sse4_1_extendv4qiv4si2): Ditto.
4526 (*sse4_1_extendv2qiv2di2): Ditto.
4527 (*sse4_1_extendv4hiv4si2): Ditto.
4528 (*sse4_1_extendv2hiv2di2): Ditto.
4529 (*sse4_1_extendv2siv2di2): Ditto.
4530 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
4531 (*sse4_1_zero_extendv4qiv4si2): Ditto.
4532 (*sse4_1_zero_extendv2qiv2di2): Ditto.
4533 (*sse4_1_zero_extendv4hiv4si2): Ditto.
4534 (*sse4_1_zero_extendv2hiv2di2): Ditto.
4535 (*sse4_1_zero_extendv2siv2di2): Ditto.
4536
4537 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
4538
4539 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
4540 (mips_function_arg): Delete.
4541 (mips_function_arg_boundary): Take a const_tree.
4542 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
4543 (mips_arg_info): Likewise.
4544 (mips_setup_incoming_varargs): Call mips_function_arg_advance
4545 instead of FUNCTION_ARG_ADVANCE.
4546 (mips_function_arg_advance): Adjust prototype. Make static.
4547 (mips_function_arg): Likewise.
4548 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4549 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
4550
4551 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
4552
4553 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4554 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
4555 (function_arg): Delete.
4556 (function_arg_boundary): Take a const_tree.
4557 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
4558 (rs6000_spe_function_arg): Likewise.
4559 (rs6000_parm_start): Likewise.
4560 (rs6000_arg_size): Likewise.
4561 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
4562 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
4563 (rs6000_mixed_function_arg): Likewise.
4564 (function_arg): Rename to...
4565 (rs6000_function_arg): ...this.
4566 (function_arg_advance): Rename to...
4567 (rs6000_function_arg_advance_1): ...this
4568 (rs6000_function_arg_advance): New function. Call it.
4569 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
4570 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
4571 (rs6000_function_value): Likewise.
4572 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4573
4574 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4575
4576 * config/arm/arm.md (enabled): Test the value of arch_enabled
4577 rather than just using it.
4578
4579 2010-08-27 Olivier Hainque <hainque@adacore.com>
4580 Eric Botcazou <ebotcazou@adacore.com>
4581
4582 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
4583 cover all the possible offsets from this base.
4584 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
4585
4586 2010-08-26 Jakub Jelinek <jakub@redhat.com>
4587
4588 PR tree-optimization/44485
4589 * calls.c (flags_from_decl_or_type): For const or pure
4590 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
4591 together with ECF_CONST resp. ECF_PURE.
4592 * builtins.c (expand_builtin): Use flags_from_decl_or_type
4593 instead of querying flags directly.
4594 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
4595 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
4596
4597 2010-08-26 Richard Guenther <rguenther@suse.de>
4598
4599 PR tree-optimization/45255
4600 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
4601 and externals are also invariant.
4602
4603 2010-08-25 Jakub Jelinek <jakub@redhat.com>
4604
4605 PR rtl-optimization/44858
4606 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
4607 newi2pat, make sure they don't affect newpat.
4608
4609 PR rtl-optimization/45400
4610 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
4611 SUBREG_REG if both modes are of MODE_INT class.
4612
4613 2010-08-25 Julian Brown <julian@codesourcery.com>
4614
4615 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
4616 * config/arm/arm.md (generic_sched): No for Cortex-A5.
4617 (generic_vfp): Likewise.
4618 (cortex-a5.md): Include.
4619 * config/arm/cortex-a5.md: New.
4620
4621 2010-08-25 Richard Guenther <rguenther@suse.de>
4622
4623 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
4624 * gimple.c (gimple_get_alias_set): Remove special handling
4625 for pointers.
4626
4627 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
4628
4629 PR middle-end/45355
4630 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
4631 dead_or_set_p when computing i0_feeds_i2_n.
4632
4633 * combine.c (find_split_point): Undo canonicalization of multiply-add
4634 to (minus x (mult)) when it seems likely that this will increase the
4635 chances of a split.
4636
4637 2010-08-25 Richard Guenther <rguenther@suse.de>
4638
4639 PR lto/44562
4640 * lto-streamer.c (lto_record_common_node): Do not mess with
4641 TYPE_CANONICAL when not in lto.
4642 * gimple.c (gimple_register_type): Likewise.
4643
4644 2010-08-25 Richard Guenther <rguenther@suse.de>
4645
4646 PR tree-optimization/45316
4647 * tree-ssa-pre.c (eliminate): Properly clean EH info.
4648
4649 2010-08-25 Richard Guenther <rguenther@suse.de>
4650
4651 PR tree-optimization/45393
4652 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
4653 and clean EH info. Avoid SSA update.
4654 (execute_cse_sincos): Cleanup the CFG if it has changed.
4655
4656 2010-08-25 Richard Guenther <rguenther@suse.de>
4657
4658 PR middle-end/45379
4659 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
4660 TARGET_MEM_REF in alignment computation.
4661
4662 2010-08-25 Jakub Jelinek <jakub@redhat.com>
4663
4664 PR tree-optimization/45059
4665 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
4666 type conversions from newop{1,2}. Assert t is a comparison and
4667 newop{1,2} after the stripping are gimple vals.
4668
4669 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
4670
4671 * config/arm/iterators.md (VU, SE, V_widen_l): New.
4672 (V_unpack, US): New.
4673 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
4674 (vec_unpack<US>_lo_<mode>): Likewise.
4675 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
4676 (neon_vec_unpack<US>_lo_<mode>): Likewise.
4677 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
4678 (vec_widen_<US>mult_hi_<mode>): Likewise.
4679 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
4680 (neon_vec_<US>mult_hi_<mode>"): Likewise.
4681 (neon_unpack<US>_<mode>): Widening move intermediate step for
4682 vectorizing without -mvectorize-with-neon-quad.
4683 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
4684 for vectorizing without -mvectorize-with-neon-quad.
4685 * config/arm/predicates.md (vect_par_constant_high): Check for
4686 high-half lanes of a vector.
4687 (vect_par_constant_low): Check for low-half lanes of a vector.
4688
4689 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
4690
4691 * tree-if-conv.c (struct ifc_dr): New.
4692 (IFC_DR): New.
4693 (DR_WRITTEN_AT_LEAST_ONCE): New.
4694 (DR_RW_UNCONDITIONALLY): New.
4695 (memref_read_or_written_unconditionally): Use the cached values
4696 when possible.
4697 (write_memref_written_at_least_once): Same.
4698 (if_convertible_loop_p): Initialize and free DR->aux fields.
4699
4700 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
4701
4702 * gimple.c (gimple_could_trap_p_1): Not static anymore.
4703 Pass an extra bool parameter include_mem.
4704 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
4705 (gimple_assign_rhs_could_trap_p): Same.
4706 * gimple.h (gimple_could_trap_p_1): Declared.
4707 * tree-data-ref.h (same_data_refs_base_objects): New.
4708 (same_data_refs): New.
4709 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
4710 (write_memrefs_written_at_least_once): New.
4711 (ifcvt_memrefs_wont_trap): New.
4712 (operations_could_trap): New.
4713 (ifcvt_could_trap_p): New.
4714 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
4715 Gets a vector of data refs.
4716 (if_convertible_stmt_p): Same.
4717 (if_convertible_loop_p_1): New.
4718 (if_convertible_loop_p): Call if_convertible_loop_p_1.
4719
4720 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
4721
4722 * common.opt (ftree-loop-if-convert-stores): New flag.
4723 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
4724 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
4725 the created statement before GSI.
4726 (if_convertible_phi_p): Allow virtual phi nodes when
4727 flag_loop_if_convert_stores is set.
4728 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
4729 Do not handle types that do not match is_gimple_reg_type.
4730 Remove loop and bb parameters. Call gimple_could_trap_p instead of
4731 when flag_loop_if_convert_stores is set, as LHS can contain
4732 memory refs.
4733 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
4734 to if_convertible_gimple_assign_stmt_p.
4735 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
4736 (replace_phi_with_cond_gimple_assign_stmt): Renamed
4737 predicate_scalar_phi. Do not handle virtual phi nodes.
4738 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
4739 Call predicate_scalar_phi.
4740 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
4741 just after the labels for flag_loop_if_convert_stores, otherwise
4742 insert the predicate in the end of the BB.
4743 (predicate_mem_writes): New.
4744 (combine_blocks): Call predicate_all_scalar_phis. When
4745 flag_loop_if_convert_stores is set, call predicate_mem_writes.
4746 (tree_if_conversion): Call mark_sym_for_renaming when
4747 flag_loop_if_convert_stores is set.
4748 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
4749 flag_loop_if_convert_stores is set.
4750
4751 2010-08-24 Anatoly Sokolov <aesok@post.ru>
4752
4753 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
4754 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
4755 (pa_function_value): Make static.
4756 (override_options): Rename to...
4757 (pa_option_override): ...this. Make static.
4758 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
4759 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
4760 TARGET_OPTION_OVERRIDE): Define.
4761 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
4762 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
4763 Remove.
4764 * config/pa/pa-protos.h (override_options): Remove.
4765
4766 2010-08-24 Richard Guenther <rguenther@suse.de>
4767
4768 PR middle-end/45379
4769 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
4770 if addr->index is NULL or zero.
4771 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
4772 TARGET_MEM_REF more properly.
4773 (indirect_ref_may_alias_decl_p): Likewise.
4774 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
4775 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
4776
4777 2010-08-23 Anatoly Sokolov <aesok@post.ru>
4778
4779 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
4780 (m32c_override_options): Rename to...
4781 (m32c_option_override): ...this. Make static.
4782 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
4783 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
4784 Remove.
4785 * config/m32c/m32c-protos.h (m32c_override_options,
4786 m32c_function_value_regno_p): Remove.
4787
4788 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
4789
4790 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
4791 Fix a typo in a previous commit.
4792
4793 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
4794
4795 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
4796 Pre-initialize innerloop_iters to one.
4797
4798 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
4799
4800 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
4801 existing static function global.
4802
4803 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
4804 is changed to global.
4805
4806 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
4807 may_be_nonaddressable_p on base, and don't collect this reference
4808 if the address of the base could not be taken.
4809
4810 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
4811
4812 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
4813 enable the compiler to autovectorize mathmetical functions for
4814 power7 using the Mathematical Acceleration Subsystem library.
4815
4816 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
4817 handle which vector math library we have.
4818 (rs6000_override_options): Add -mveclibabi=mass support.
4819 (rs6000_builtin_vectorized_libmass): New function to handle auto
4820 vectorizing math functions that are in the MASS library.
4821 (rs6000_builtin_vectorized_function): Call it.
4822
4823 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4824 -mveclibabi=mass.
4825
4826 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4827
4828 PR boehm-gc/34544
4829 * gthr-posix.h (__gthread_active_init): Delete.
4830 (__gthread_active_p): Do activity check here.
4831 Don't include errno.h on hppa-hpux. Update comment.
4832 * gthr-posix95.h (__gthread_active_init): Delete.
4833 (__gthread_active_p): Do activity check here.
4834 Don't include errno.h on hppa-hpux. Update comment.
4835 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
4836 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
4837 add -lpthread when -mt or -pthread is specified.
4838 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
4839 (LINK_GCC_C_SEQUENCE_SPEC): Define.
4840 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
4841 (stublib.c, pthread_default_stacksize_np-stub.o,
4842 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
4843 $(T)libgcc_stub.a): Add methods.
4844 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
4845 (stublib.c, pthread_default_stacksize_np-stub.o,
4846 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
4847 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
4848 pthread_mutex_unlock): New stubs.
4849
4850 2010-08-22 Joseph Myers <joseph@codesourcery.com>
4851
4852 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
4853 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
4854 options.
4855 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
4856 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
4857 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
4858 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
4859 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
4860 "-l".
4861 * cppspec.c: Include opts.h.
4862 (lang_specific_driver): Use cl_decoded_option structures.
4863 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
4864 * doc/tm.texi: Regenerate.
4865 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
4866 (driver_handle_option): Allow driver options needing no special
4867 processing.
4868 (process_command): Decode options before call to
4869 lang_specific_driver. Pass decoded options to
4870 lang_specific_driver.
4871 * gcc.h (lang_specific_driver): Update prototype.
4872 * gccspec.c: Include opts.h.
4873 (lang_specific_driver): Use cl_decoded_option structures.
4874 * opts-common.c (option_ok_for_language, generate_option,
4875 generate_option_input_file): New.
4876 (decode_cmdline_option): Use option_ok_for_language.
4877 (decode_cmdline_options_to_array): Use generate_option_input_file.
4878 (handle_generated_option): Use generate_option.
4879 * opts.h (generate_option, generate_option_input_file): Declare.
4880
4881 2010-08-22 Anatoly Sokolov <aesok@post.ru>
4882
4883 * config/mips/mips.c (mips_override_options): Rename to...
4884 (mips_option_override): ...this. Make static.
4885 (TARGET_OPTION_OVERRIDE): Define.
4886 (mips_in_small_data_p): Update comment.
4887 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
4888 (FIXED_REGISTERS): Update comment.
4889 * config/mips/mips-protos.h (mips_override_options): Remove.
4890
4891 2010-08-21 Olivier Hainque <hainque@adacore.com>
4892
4893 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
4894
4895 2010-08-21 Olivier Hainque <hainque@adacore.com>
4896
4897 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
4898 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
4899
4900 2010-08-20 Jan Hubicka <jh@suse.cz>
4901
4902 * tree-pass.h (pass_ipa_cdtor_merge): New function.
4903 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
4904 heap allocated.
4905 (record_cdtor_fn): Move to ipa.c; do not test for
4906 have_ctors_dtors.
4907 (build_cdtor): Move to ipa.c; add code avoiding construction
4908 when target have ctors/dtors and there is only one ctor/dtor at given
4909 priority.
4910 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
4911 sort; reverse order of constructors.
4912 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
4913 (cgraph_finalize_function): Do not call record_cdtor_fn.
4914 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
4915 (cgraph_build_static_cdtor): Move to ipa.c.
4916 * ipa.c: Include target.h and tree-iterator.h.
4917 (cgraph_build_static_cdtor, static_ctors, static_dtors,
4918 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
4919 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
4920 pass_ipa_cdtor_merge): New.
4921 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
4922 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
4923 bounds access.
4924
4925 2010-08-20 Jan Hubicka <jh@suse.cz>
4926
4927 PR c++/45307
4928 PR c++/17736
4929 * cgraph.h (cgraph_only_called_directly_p,
4930 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
4931 static cdtors.
4932 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
4933 are not needed.
4934 (cgraph_finalize_function): Static cdtors are reachable.
4935 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
4936
4937 2010-08-20 Jan Hubicka <jh@suse.cz>
4938
4939 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
4940 flag_wpa.
4941 * lto-streamer-out.c (lto_output): Likewise.
4942 * passes.c (ipa_write_optimization_summaries): Initialize statement
4943 uids.
4944
4945 2010-08-20 Olivier Hainque <hainque@adacore.com>
4946
4947 * tree.h (alias_diag_flags): New enum.
4948 (alias_pair): Add an 'emitted_diags' field.
4949 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
4950 (assemble_alias): Initialize emitted_diags of new pairs.
4951
4952 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
4953
4954 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
4955 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4956 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4957 (STACK_CHECK_PROTECT): Define.
4958 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
4959 (output_probe_stack_range): Likewise.
4960 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
4961 builtin stack checking is enabled.
4962 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
4963 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
4964 (probe_stack_range): New insn.
4965
4966 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
4967
4968 PR target/45336
4969 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
4970 short first.
4971
4972 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
4973 char first.
4974
4975 2010-08-20 Jakub Jelinek <jakub@redhat.com>
4976
4977 PR target/45336
4978 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
4979 to cover zero extension into 64-bit register.
4980 (*sse2_pextrw): Likewise.
4981 (*sse4_1_pextrd_zext): New insn.
4982
4983 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
4984
4985 revert r163410, partially revert r163267.
4986 * config/rs6000/darwin.h (LIB_SPEC): Remove.
4987 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
4988 Darwin versions.
4989
4990 2010-08-20 Jakub Jelinek <jakub@redhat.com>
4991
4992 PR middle-end/44974
4993 * builtins.c (expand_builtin): Don't optimize away
4994 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
4995
4996 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
4997
4998 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
4999 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
5000 alternative 1 of operand 2.
5001
5002 2010-08-20 Jakub Jelinek <jakub@redhat.com>
5003 Paolo Bonzini <bonzini@gnu.org>
5004
5005 * simplify-rtx.c (simplify_unary_operation_1): Optimize
5006 (sign_extend (zero_extend (...)) and
5007 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
5008
5009 2010-08-20 Jakub Jelinek <jakub@redhat.com>
5010
5011 PR rtl-optimization/45353
5012 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
5013 after bb_note is a BARRIER.
5014
5015 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
5016
5017 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
5018 linking libgcc.a.
5019
5020 2010-08-20 Jakub Jelinek <jakub@redhat.com>
5021 Michael Matz <matz@suse.de>
5022
5023 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
5024
5025 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5026
5027 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
5028 (ggc_mark_roots): ...here.
5029
5030 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5031
5032 * vec.h (FOR_EACH_VEC_ELT): Define.
5033 * c-decl.c: Use it.
5034 * cfgloop.c: Likewise.
5035 * cfgloopmanip.c: Likewise.
5036 * cgraph.c: Likewise.
5037 * cgraphunit.c: Likewise.
5038 * combine.c: Likewise.
5039 * config/bfin/bfin.c: Likewise.
5040 * config/mips/mips.c: Likewise.
5041 * config/rs6000/rs6000.c: Likewise.
5042 * dbxout.c: Likewise.
5043 * df-scan.c: Likewise.
5044 * dominance.c: Likewise.
5045 * dse.c: Likewise.
5046 * dwarf2out.c: Likewise.
5047 * except.c: Likewise.
5048 * expr.c: Likewise.
5049 * function.c: Likewise.
5050 * gcse.c: Likewise.
5051 * genattr.c: Likewise.
5052 * ggc-common.c: Likewise.
5053 * gimplify.c: Likewise.
5054 * graphite-blocking.c: Likewise.
5055 * graphite-clast-to-gimple.c: Likewise.
5056 * graphite-dependences.c: Likewise.
5057 * graphite-interchange.c: Likewise.
5058 * graphite-poly.c: Likewise.
5059 * graphite-scop-detection.c: Likewise.
5060 * graphite-sese-to-poly.c: Likewise.
5061 * graphite.c: Likewise.
5062 * haifa-sched.c: Likewise.
5063 * ifcvt.c: Likewise.
5064 * implicit-zee.c: Likewise.
5065 * ipa-prop.c: Likewise.
5066 * ipa-struct-reorg.c: Likewise.
5067 * ipa.c: Likewise.
5068 * ira-build.c: Likewise.
5069 * ira-color.c: Likewise.
5070 * ira-emit.c: Likewise.
5071 * lambda-code.c: Likewise.
5072 * loop-invariant.c: Likewise.
5073 * loop-unroll.c: Likewise.
5074 * lower-subreg.c: Likewise.
5075 * lto-cgraph.c: Likewise.
5076 * lto-opts.c: Likewise.
5077 * lto-streamer-in.c: Likewise.
5078 * lto-streamer-out.c: Likewise.
5079 * lto-streamer.c: Likewise.
5080 * lto-symtab.c: Likewise.
5081 * matrix-reorg.c: Likewise.
5082 * opts.c: Likewise.
5083 * predict.c: Likewise.
5084 * print-tree.c: Likewise.
5085 * sdbout.c: Likewise.
5086 * sel-sched-dump.c: Likewise.
5087 * sel-sched-ir.c: Likewise.
5088 * sel-sched.c: Likewise.
5089 * sese.c: Likewise.
5090 * stor-layout.c: Likewise.
5091 * tree-cfg.c: Likewise.
5092 * tree-cfgcleanup.c: Likewise.
5093 * tree-chrec.c: Likewise.
5094 * tree-data-ref.c: Likewise.
5095 * tree-emutls.c: Likewise.
5096 * tree-inline.c: Likewise.
5097 * tree-into-ssa.c: Likewise.
5098 * tree-loop-distribution.c: Likewise.
5099 * tree-loop-linear.c: Likewise.
5100 * tree-mudflap.c: Likewise.
5101 * tree-outof-ssa.c: Likewise.
5102 * tree-parloops.c: Likewise.
5103 * tree-predcom.c: Likewise.
5104 * tree-pretty-print.c: Likewise.
5105 * tree-scalar-evolution.c: Likewise.
5106 * tree-ssa-live.c: Likewise.
5107 * tree-ssa-loop-im.c: Likewise.
5108 * tree-ssa-loop-ivcanon.c: Likewise.
5109 * tree-ssa-loop-ivopts.c: Likewise.
5110 * tree-ssa-loop-manip.c: Likewise.
5111 * tree-ssa-loop-niter.c: Likewise.
5112 * tree-ssa-loop-prefetch.c: Likewise.
5113 * tree-ssa-phiprop.c: Likewise.
5114 * tree-ssa-pre.c: Likewise.
5115 * tree-ssa-reassoc.c: Likewise.
5116 * tree-ssa-sccvn.c: Likewise.
5117 * tree-ssa-structalias.c: Likewise.
5118 * tree-ssa.c: Likewise.
5119 * tree-vect-data-refs.c: Likewise.
5120 * tree-vect-loop-manip.c: Likewise.
5121 * tree-vect-loop.c: Likewise.
5122 * tree-vect-patterns.c: Likewise.
5123 * tree-vect-slp.c: Likewise.
5124 * tree-vect-stmts.c: Likewise.
5125 * tree-vrp.c: Likewise.
5126 * tree.c: Likewise.
5127 * value-prof.c: Likewise.
5128 * var-tracking.c: Likewise.
5129 * varasm.c: Likewise.
5130 * vmsdbgout.c: Likewise.
5131
5132 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
5133 Richard Guenther <richard.guenther@gmail.com>
5134
5135 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
5136 copy the src value and return a copy.
5137 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
5138 (C++ Volatiles): Adjust to describe C++ semantics only.
5139
5140 2010-08-20 Joseph Myers <joseph@codesourcery.com>
5141
5142 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
5143 be zero or nonzero.
5144 * doc/tm.texi: Regenerate.
5145 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
5146 * df-scan.c (df_get_exit_block_use_set), reginfo.c
5147 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
5148 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
5149 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
5150 to 1.
5151
5152 2010-08-20 Olivier Hainque <hainque@adacore.com>
5153
5154 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
5155 an extra nop past a sibling call at the very end.
5156
5157 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
5158
5159 PR bootstrap/45350
5160 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
5161 a comment.
5162
5163 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
5164
5165 * target.def (function_arg, function_incoming_arg): Remove const
5166 qualifier on CUMULATIVE_ARGS parameter.
5167 * targhooks.h (default_function_arg, default_function_incoming_arg):
5168 Likewise.
5169 * targhooks.c (default_function_arg, default_function_incoming_arg):
5170 Likewise.
5171 * config/i386/i386.c (ix86_function_arg): Likewise.
5172
5173 2010-08-19 Jakub Jelinek <jakub@redhat.com>
5174
5175 PR target/45336
5176 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
5177 SIGN_EXTENDs or ZERO_EXTENDs.
5178
5179 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
5180
5181 PR target/42172
5182 * combine.c (combine_validate_cost): New arg I0. All callers changed.
5183 Take its cost into account if nonnull.
5184 (insn_a_feeds_b): New static function.
5185 (combine_instructions): Look for four-insn combinations.
5186 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
5187 them into account when computing all_adjacent and looking for other
5188 uses.
5189 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
5190 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
5191 (try_combine): New arg I0. Handle four-insn combinations.
5192 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
5193 like ELIM_I1.
5194
5195 2010-08-19 Jason Merrill <jason@redhat.com>
5196
5197 PR c++/45307
5198 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
5199 if ctor is empty.
5200 (gimplify_modify_expr_rhs): Adjust.
5201
5202 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
5203
5204 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
5205 bitmap_bit_p.
5206 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
5207 * dominance.c (iterate_fix_dominators): Likewise.
5208 * dse.c (set_usage_bits): Likewise.
5209 (set_position_unneeded, record_store): Likewise.
5210 * gimple-fold.c (get_maxval_strlen): Likewise.
5211 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
5212 * ipa-inline.c (update_caller_keys): Likewise.
5213 * ipa-split.c (verify_non_ssa_vars): Likewise.
5214 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
5215 (close_type_exposed_parameter, close_type_full_escape): Likewise.
5216 (close_addressof_down): Likewise.
5217 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
5218 (setup_allocno_left_conflicts_size): Likewise.
5219 (ira_reassign_conflict_allocnos): Likewise.
5220 (ira_reassign_pseudos): Likewise.
5221 * ira-emit.c (change_loop): Likewise.
5222 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
5223 * lto-streamer-out.c (write_symbol): Likewise.
5224 * predict.c (expr_expected_value_1): Likewise.
5225 * regstat.c (regstat_bb_compute_ri): Likewise.
5226 * sel-sched.c (create_block_for_bookkeeping): Likewise.
5227 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
5228 * stmt.c (expand_case): Likewise.
5229 * tree-eh.c (emit_eh_dispatch): Likewise.
5230 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
5231 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
5232 Likewise.
5233 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
5234 (rdg_build_components): Likewise.
5235 * tree-object-size.c (collect_object_sizes_for): Likewise.
5236 * tree-sra.c (convert_callers): Likewise.
5237 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
5238 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
5239 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
5240
5241 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
5242
5243 * config/i386/i386.md (*lea_1): Use P mode iterator.
5244 (lea add splitter): Also handle DImode operands.
5245 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
5246 predicate. Do not use ix86_lea_for_add_ok.
5247 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
5248 (lea ashift splitter): Also handle DImode operands.
5249 (DImode lea ashift splitter): Remove splitter.
5250
5251 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
5252
5253 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
5254 ix86_binary_operator_ok.
5255
5256 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
5257
5258 PR rtl-optimization/44691
5259 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
5260 is not a register.
5261
5262 2010-08-19 Ian Bolton <ian.bolton@arm.com>
5263
5264 PR target/45070
5265 * config/arm/arm.c (arm_output_epilogue): Ensure that return
5266 value of size 1-3 is handled correctly.
5267
5268 2010-08-19 Ian Bolton <ian.bolton@arm.com>
5269
5270 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
5271 type for the conditional has wide enough range.
5272
5273 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
5274
5275 PR target/45327
5276 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
5277 ix86_binary_operator_ok.
5278
5279 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
5280
5281 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
5282 <default>: Swap operands 1 and 2 for alternative 2 to use existing
5283 code to output insn mnemonic. Fix comment.
5284 (*addsi_1_zext): Add r-r-0 alternative 1.
5285 <TYPE_LEA>: Split insn to lea.
5286 <default>: Handle alternative 1.
5287 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
5288 multi-level if_then_else RTX to set "type" attribute.
5289 <default>: Handle alternative 2.
5290 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
5291 Use cond RTX instead of multi-level if_then_else RTX to set
5292 "type" attribute.
5293 <default>: Handle alternatives 2 and 4.
5294 (lea splitters): Update calls to ix86_lea_for_add_ok.
5295
5296 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
5297 argument.
5298 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
5299
5300 2010-08-18 Richard Guenther <rguenther@suse.de>
5301
5302 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
5303 use operand helpers.
5304
5305 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
5306
5307 PR middle-end/45292
5308 * optabs.c (expand_bool_compare_and_swap): Expand pending
5309 pops before trying the optab.
5310
5311 2010-08-18 Yao Qi <yao@codesourcery.com>
5312
5313 PR target/45094
5314 * config/arm/arm.c (output_move_double): Fix typo generating
5315 instructions ('ldr'->'str').
5316
5317 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
5318
5319 PR rtl-optimization/42575
5320 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
5321 live ranges.
5322
5323 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
5324
5325 * config/arm/arm-protos.h (arm_expand_sync): New.
5326 (arm_output_memory_barrier, arm_output_sync_insn): New.
5327 (arm_sync_loop_insns): New.
5328 * config/arm/arm.c (FL_ARCH7): New.
5329 (FL_FOR_ARCH7): Include FL_ARCH7.
5330 (arm_arch7): New.
5331 (arm_print_operand): Support %C markup.
5332 (arm_legitimize_sync_memory): New.
5333 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
5334 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
5335 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
5336 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
5337 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
5338 (arm_process_output_sync_insn, arm_output_sync_insn): New.
5339 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
5340 * config/arm/arm.h (struct arm_sync_generator): New.
5341 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
5342 (TARGET_HAVE_MEMORY_BARRIER): New.
5343 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
5344 * config/arm/arm.md: Include sync.md.
5345 (UNSPEC_MEMORY_BARRIER): New.
5346 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
5347 (VUNSPEC_SYNC_OP):New.
5348 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
5349 (sync_result, sync_memory, sync_required_value): New attributes.
5350 (sync_new_value, sync_t1, sync_t2): Likewise.
5351 (sync_release_barrier, sync_op): Likewise.
5352 (length): Add logic to length attribute defintion to call
5353 arm_sync_loop_insns when appropriate.
5354 * config/arm/sync.md: New file.
5355
5356 2010-08-17 Jakub Jelinek <jakub@redhat.com>
5357
5358 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
5359 ENABLE_TREE_CHECKING.
5360 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
5361 and GCC >= 4.3.
5362
5363 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
5364
5365 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
5366 or optimizing for size, always avoid lea if possible.
5367
5368 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
5369
5370 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
5371
5372 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
5373 Dunmmy function with NULL return unless the target is
5374 OSX >= 10.6 (Darwin10).
5375
5376 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
5377
5378 * gcc.c (spec_function): Add remove-outfile.
5379 (remove_outfile_spec_function): New function.
5380 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
5381 * invoke.texi (replace-outfile): Document.
5382
5383 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
5384
5385 PR target/45296
5386 * reginfo.c (globalize_reg): Reject stack registers.
5387
5388 2010-08-17 Richard Guenther <rguenther@suse.de>
5389
5390 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
5391 list of conditional equivalences.
5392 (free_all_edge_infos): Adjust.
5393 (record_equivalences_from_incoming_edge): Likewise.
5394 (record_cond): Likewise.
5395 (build_and_record_new_cond): Likewise.
5396 (record_conditions): Likewise.
5397 (dom_opt_leave_block): Likewise.
5398
5399 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
5400
5401 * doc/invoke.texi (ms-extension): Add documentation.
5402
5403 2010-08-17 Richard Guenther <rguenther@suse.de>
5404
5405 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
5406
5407 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
5408
5409 PR c/40563
5410 * c-decl.c (diagnose_uninitialized_cst_member): New function.
5411 (finish_decl): Use it to issue a -Wc++-compat warning about
5412 uninitialized const field in struct or union.
5413
5414 (finish_struct): Use strip_array_types.
5415
5416 2010-08-17 Jakub Jelinek <jakub@redhat.com>
5417
5418 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
5419 functions.
5420 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
5421 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
5422 call block_nreverse here.
5423 (blocks_nreverse): Rename decl temporary to block.
5424
5425 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
5426
5427 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
5428 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
5429 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
5430 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
5431 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
5432 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
5433 thumb2_iorsi3): Delete.
5434 (orsi_notsi_si): No longer a named pattern.
5435 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
5436 * config/arm/predicates.md (shift_amount_operand): New.
5437 (mult_operator): New.
5438 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
5439 attr enabled): New.
5440 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
5441 arch matches t2.
5442 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
5443 (not_shiftsi_compare0): Likewise, renamed from
5444 arm_notsi_shiftsi_compare0.
5445 (not_shiftsi_compare0_scratch): Likweise, renamed from
5446 arm_notsi_shiftsi_compare0_scratch.
5447 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
5448 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
5449 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
5450 so that the register alternative is disabled when the shift_operator
5451 is MULT. Use "M" as the constraint for constants.
5452 (arith_shiftsi splitter): Enable for TARGET_32BIT.
5453 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
5454 constraint for constants.
5455 (arith_shiftsi_compare0_scratch): Likewise.
5456 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
5457 Handle Thumb2 alternative.
5458
5459 2010-08-16 Joseph Myers <joseph@codesourcery.com>
5460
5461 * doc/options.texi (NoDriverArg): Document.
5462 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
5463 -MDX and -MMDX.
5464 * opt-functions.awk (switch_flags): Handle NoDriverArg.
5465 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
5466 marking for CL_NO_DRIVER_ARG options when in the driver.
5467 * opts.h (CL_NO_DRIVER_ARG): Define.
5468 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
5469 CL_COMMON): Update values.
5470
5471 2010-08-16 Joseph Myers <joseph@codesourcery.com>
5472
5473 * common.opt: Add driver options.
5474 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
5475 * doc/options.texi (Driver, RejectDriver): Document.
5476 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
5477 print_prog_name, print_multi_directory, print_sysroot,
5478 print_multi_os_directory, print_multi_lib,
5479 print_sysroot_headers_suffix, report_times, combine_flag,
5480 use_pipes, wrapper_string): Remove.
5481 (save_switch, driver_unknown_option_callback,
5482 driver_wrong_lang_callback, driver_post_handling_callback,
5483 driver_handle_option): New.
5484 (spec_lang, last_language_n_infiles): Make file-scope static
5485 instead of local to process_command.
5486 (process_command): Use decode_cmdline_options_to_array and
5487 read_cmdline_option for option processing. Compute have_c in
5488 prescan of decoded options.
5489 * opt-functions.awk (switch_flags): Handle Driver and
5490 RejectDriver.
5491 (var_type, var_type_struct): Handle Separate options as generating
5492 const char * variables.
5493 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
5494 CL_TARGET to be passed by caller if required.
5495 (decode_cmdline_options_to_array): Update comment.
5496 * opts.c (complain_wrong_lang): Handle options only valid for the
5497 driver.
5498 (decode_options): Update call to decode_cmdline_options_to_array.
5499 (print_filtered_help): Ignore driver-only options.
5500 (print_specific_help): Ignore CL_DRIVER.
5501 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
5502 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
5503 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
5504 Update values.
5505
5506 2010-08-16 Richard Guenther <rguenther@suse.de>
5507
5508 * tree-cfg.c (verify_types_in_gimple_reference): Verify
5509 TARGET_MEM_REF a bit.
5510 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
5511 (create_mem_ref_raw): Always create TMR_OFFSET, store the
5512 alias pointer type via it.
5513 (copy_mem_ref_info): Adjust.
5514 (maybe_fold_tmr): Likewise.
5515 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
5516 (reference_alias_ptr_type): Likewise.
5517 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
5518 adjust documentation of TMR_OFFSET operand.
5519 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
5520 use the alias pointer type.
5521 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
5522 initialize mem attrs but the TMR itself.
5523 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
5524 similar to MEM_REF.
5525 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
5526 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
5527 (unshare_and_remove_ssa_names): Likewise.
5528 (copy_ref_info): Adjust.
5529 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
5530 TARGET_MEM_REF case.
5531 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
5532 at TMR_ORIGINAL.
5533 * tree.h (TMR_ORIGINAL): Remove.
5534 * gimple.c (get_base_address): For TARGET_MEM_REF with a
5535 symbol return that.
5536 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
5537 with a symbol.
5538 (get_addr_base_and_unit_offset): Likewise.
5539 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
5540 TARGET_MEM_REFs.
5541 (indirect_ref_may_alias_decl_p): Likewise.
5542 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
5543
5544 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
5545
5546 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
5547 with GCC version 4.6, the default setting (when not optimizing
5548 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
5549 been changed to -fomit-frame-pointer.
5550
5551 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
5552
5553 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
5554 Darwin10. Do not link libgcc.a for Darwin >= 9.
5555
5556 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
5557
5558 * doc/invoke.texi (Warning Options): Fix terminology and markup
5559 in the description of how unknown warning options are handled.
5560
5561 2010-08-15 Ira Rosen <irar@il.ibm.com>
5562
5563 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
5564 in basic blocks.
5565 (vect_supportable_dr_alignment): Check alignment for basic blocks.
5566 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
5567 data references.
5568 (vect_bb_vectorization_profitable_p): New function.
5569 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
5570 check if it's worthwhile to vectorize the basic block.
5571
5572 2010-08-14 Anatoly Sokolov <aesok@post.ru>
5573
5574 * reload.h (register_move_cost, memory_move_secondary_cost,
5575 secondary_reload_class): Adjust prototype.
5576 * rtl.h (reg_class_subset_p): Adjust prototype.
5577 * reload.c (secondary_reload_class): Change arguments type from
5578 enum reg_class to reg_class_t. Change result type to reg_class_t.
5579 * reginfo.c (register_move_cost, reg_class_subset_p): Change
5580 arguments type from enum reg_class to reg_class_t.
5581 (memory_move_secondary_cost): Change arguments type from
5582 enum reg_class to reg_class_t. Change type of saved_flags to
5583 reg_class_t.
5584
5585 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5586 Remove macros.
5587 (mips_cost): Remove.
5588 (struct mips_rtx_cost_data): Moved to mips.c.
5589 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
5590 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
5591 (mips_cost): Make static.
5592 (mips_canonicalize_move_class): Change argument type to reg_class_t.
5593 Change result type to reg_class_t.
5594 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
5595 type from enum reg_class to reg_class_t.
5596 (mips_register_move_cost): Make static. Change arguments
5597 type from enum reg_class to reg_class_t.
5598 (mips_memory_move_cost): New function.
5599 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5600
5601 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
5602
5603 PR rtl-optimization/43358
5604 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
5605 of a single hard register, using simplify_subreg_regno to decide
5606 what that register should be.
5607
5608 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
5609
5610 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
5611 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
5612 (loongson_pmull<V_suffix>): Rename to...
5613 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
5614
5615 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
5616
5617 * configure.ac: Enable -fomit-frame-pointer on darwin
5618 which support dwarf2.
5619 * config/i386/i386.c (override_options): Same.
5620
5621 2010-08-13 Jie Zhang <jie@codesourcery.com>
5622
5623 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
5624
5625 2010-08-12 Joseph Myers <joseph@codesourcery.com>
5626
5627 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
5628 -MMD.
5629
5630 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
5631
5632 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
5633 up dot_prod pattern searching if a stmt is outside the loop.
5634
5635 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
5636 Uros Bizjak <ubizjak@gmail.com>
5637
5638 * config.gcc: Handle --enable-frame-pointer.
5639
5640 * configure.ac: Add --enable-frame-pointer.
5641 * configure: Regenerated.
5642
5643 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
5644 (override_options): If not configured with --enable-frame-pointer,
5645 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
5646 optimizing for size), -fasynchronous-unwind-tables and
5647 -maccumulate-outgoing-args by default.
5648
5649 2010-08-12 Jakub Jelinek <jakub@redhat.com>
5650
5651 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
5652
5653 PR middle-end/45262
5654 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
5655 -a overflows. Normalize the range.
5656
5657 2010-08-12 Richard Guenther <rguenther@suse.de>
5658
5659 PR tree-optimization/45232
5660 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
5661 for types with undefined overflow.
5662 (reassociate_bb): Allow re-associating of bit and min/max
5663 operations for types with undefined overflow.
5664 * tree-ssa-forwprop.c (associate_plusminus): New function.
5665 (tree_ssa_forward_propagate_single_use_vars): Call it.
5666
5667 2010-08-12 Richard Guenther <rguenther@suse.de>
5668
5669 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
5670 * tree-ssa-alias.c (get_ptr_info): Move ...
5671 * tree-ssanames.c (get_ptr_info): ... here. Initialize
5672 align and misalign fields conservatively.
5673 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
5674 derive alignment information.
5675 (evaluate_stmt): Derive alignment information from memory
5676 allocation functions.
5677 * tree.h (get_pointer_alignment): Make unsigned.
5678 * builtins.c (get_object_alignment): Use alignment information we
5679 have computed for pointers.
5680 (get_pointer_alignment): Likewise. Make conservative, return
5681 and unsigned value.
5682 (expand_builtin_strlen): Adjust.
5683 (expand_builtin_memcmp): Likewise.
5684 (expand_builtin_strcmp): Likewise.
5685 (expand_builtin_strncmp): Likewise.
5686 (get_builtin_sync_mem): Use at least mode alignment.
5687 (fold_builtin_memset): Adjust.
5688 (fold_builtin_memory_op): Likewise.
5689 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
5690 information also dump pointer alignment knowledge.
5691 (dump_gimple_stmt): Likewise.
5692
5693 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
5694
5695 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
5696 (EMPTY_FIELD_BOUNDARY): Remove.
5697 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
5698
5699 2010-08-12 Jakub Jelinek <jakub@redhat.com>
5700
5701 PR debug/45259
5702 * caller-save.c (save_call_clobbered_regs): Only swap notes with
5703 DEBUG_INSNs if n_regs_saved.
5704
5705 2010-08-12 Wei Guozhi <carrot@google.com>
5706
5707 PR target/44999
5708 * config/arm/arm.md (andsi3): Change to zero extension if possible.
5709 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
5710
5711 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
5712
5713 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
5714
5715 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
5716
5717 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5718
5719 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
5720 the case removed in the previous patch, when the only phi argument
5721 is defined in the same loop as the phi node itself. Handle it
5722 separately from the invariant case by both propagating it outside
5723 the region and replacing the phi node with an assign.
5724
5725 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5726
5727 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
5728 constant phi nodes with one argument are is_gimple_min_invariant
5729 and SSA_NAME_IS_DEFAULT_DEF.
5730
5731 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5732
5733 * graphite-cloog-util.c (oppose_constraint):
5734 Extend loop counter's value range (CLOOG_ORG).
5735 (cloog_matrix_to_ppl_constraint): Same.
5736 (new_Constraint_System_from_Cloog_matrix): Same.
5737 * graphite-cloog-compat.h (matrix_num_type): New.
5738
5739 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5740
5741 * graphite.c (graphite_initialize): Do not initialize
5742 CLooG and initialize the Parma Polyhedra Library
5743 manually when using CLOOG_ORG.
5744 (graphite_finalize): Do not finalize CLooG and finalize
5745 the Parma Polyhedra Library manually when using CLOOG_ORG.
5746 * graphite-cloog-compat.h (cloog_initialize): Hide function
5747 when using CLOOG_ORG.
5748 (cloog_finalize): Same.
5749
5750 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5751
5752 * graphite-clast-to-gimple.c (free_scattering): Change
5753 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
5754 (CLOOG_ORG).
5755 (build_cloog_prog): Same.
5756 * graphite-cloog-compat.h (cloog_domain): Removed.
5757 (cloog_scattering): New.
5758 (cloog_set_domain): Removed.
5759 (cloog_set_scattering): New.
5760 (cloog_next_domain): Removed.
5761 (cloog_next_scattering): New.
5762 (cloog_set_next_domain): Removed.
5763 (cloog_set_next_scattering): New.
5764 (CloogScatteringList): New.
5765 (CloogScattering): New.
5766 (cloog_scattering_free): New.
5767 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
5768 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
5769 New.
5770
5771 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5772
5773 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
5774 CloogState.
5775 (set_cloog_options): Same.
5776 (print_clast_stmt): Same.
5777 (scop_to_clast): Same.
5778 (print_generated_program): Same.
5779 (gloog): Same.
5780 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
5781 (scop_to_clast): Extend with CloogState.
5782 * graphite-cloog-util.c: Include graphite-cloog-compat.h
5783 (new_Cloog_Domain_from_ppl_Polyhedron):
5784 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
5785 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
5786 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
5787 * graphite-cloog-util.h (build_cloog_prog): Same.
5788 * graphite-cloog-copat.h (build_cloog_prog): New.
5789 (CloogState): New.
5790 (cloog_state_malloc): New.
5791 (cloog_state_free): New.
5792 (cloog_loop_malloc): New.
5793 (cloog_options_malloc): New.
5794 (cloog_statement_alloc): New.
5795 (cloog_domain_from_cloog_matrix): New.
5796 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
5797 (new_Cloog_Domain_from_ppl_Polyhedron): New.
5798
5799 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5800
5801 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
5802 type of NAME now depends on used CLooG version.
5803 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
5804 (gcc_type_for_clast_expr): Same.
5805 (print_clast_stmt): Replace pprint with clast_pprint.
5806 * graphite-cloog-compat.h: Provide compatibility macros for
5807 CLooG Legacy.
5808 (clast_name_p): New.
5809 (clast_expr_term): New.
5810 (clast_expr_red): New.
5811 (clast_expr_bin): New.
5812 (clast_pprint): New.
5813
5814 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5815
5816 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
5817 compatible to newer CLooG releases (CLOOG_ORG).
5818 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
5819 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
5820 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
5821 (build_cloog_prog) : New.
5822 (cloog_program_extract_scalars): New.
5823 (cloog_program_scatter): New.
5824
5825 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5826
5827 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
5828 conditionally (CLOOG_ORG).
5829 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
5830 (cloog_statement_usr): New.
5831 (cloog_domain): Same.
5832 (cloog_set_domain): Same.
5833 (cloog_next_domain): Same.
5834 (cloog_set_next_domain): Same.
5835 (cloog_program_nb_scattdims): Same.
5836 (cloog_program_set_nb_scattdims): Same.
5837 (cloog_program_names): Same.
5838 (cloog_program_set_names): Same.
5839 (cloog_program_set_context): Same.
5840 (cloog_program_set_loop): Same.
5841 (cloog_program_blocklist): Same.
5842 (cloog_program_set_blocklist): Same.
5843 (cloog_program_scaldims): Same.
5844 (cloog_program_set_scaldims): Same.
5845 (cloog_names_nb_parameters): Same.
5846 (cloog_names_set_nb_parameters): Same.
5847 (cloog_names_parameters): Same.
5848 (cloog_names_set_parameters): Same.
5849 (cloog_names_set_nb_iterators): Same.
5850 (cloog_names_set_iterators): Same.
5851 (cloog_names_set_nb_scattering): Same.
5852 (cloog_names_set_scattering): Same.
5853 (cloog_statement_set_usr): Same.
5854 (cloog_loop_set_next): Same.
5855 (cloog_loop_set_domain): Same.
5856 (cloog_loop_set_block): Same.
5857 (cloog_block_list_next): Same.
5858 (cloog_block_list_set_next):
5859 (cloog_block_list_set_block): Same.
5860
5861 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5862
5863 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
5864 a bool.
5865 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
5866 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
5867 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
5868 when something has been changed.
5869 (rewrite_commutative_reductions_out_of_ssa): Same.
5870
5871 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5872
5873 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
5874 handle the case when def is in the sese region.
5875 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
5876 for invariant expressions.
5877 (rewrite_cross_bb_phi_deps): Removed.
5878 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
5879 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
5880 rewrite_cross_bb_phi_deps.
5881
5882 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5883
5884 * graphite-sese-to-poly.c
5885 (rewrite_commutative_reductions_out_of_ssa_loop): Call
5886 scev_analyzable_p only on is_gimple_reg
5887
5888 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5889
5890 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
5891 (rewrite_close_phi_out_of_ssa): Propagate constant values or
5892 parametric expressions outside the scop region.
5893 (rewrite_cross_bb_scalar_deps): Same.
5894 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
5895
5896 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5897
5898 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
5899 SSA_NAME_DEF_STMT only on SSA_NAMEs.
5900
5901 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5902
5903 * tree-scalar-evolution.c (instantiate_scev_name): Do not
5904 instantiate default definitions.
5905
5906 2010-08-11 Vladimir Kargov <kargov@gmail.com>
5907 Sebastian Pop <sebastian.pop@amd.com>
5908
5909 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
5910 (loop_exits_from_bb_p): New.
5911 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
5912 (loop_exits_from_bb_p): Declared.
5913 * graphite-scop-detection.c (scopdet_basic_block_info): Call
5914 loop_exits_to_bb_p.
5915
5916 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5917
5918 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
5919 extra parameter for the region. Call scev_analyzable_p.
5920 (rewrite_reductions_out_of_ssa): Update call to
5921 rewrite_close_phi_out_of_ssa.
5922 (rewrite_cross_bb_phi_deps): Same.
5923 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
5924 parameter for the region. Call scev_analyzable_p.
5925 (rewrite_commutative_reductions_out_of_ssa): Update call to
5926 rewrite_commutative_reductions_out_of_ssa_loop.
5927
5928 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5929
5930 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
5931
5932 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5933
5934 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
5935 SSA scalar phi nodes that can be scev_analyzable_p.
5936
5937 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5938
5939 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
5940 handle SSA_NAME_IS_DEFAULT_DEF.
5941
5942 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5943
5944 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
5945
5946 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5947
5948 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
5949 case non close-phi nodes with one argument.
5950
5951 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5952
5953 * sese.h (scev_analyzable_p): Scevs could be expressions without
5954 chrecs and still be scev_analyzable_p.
5955
5956 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5957
5958 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5959
5960 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5961
5962 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
5963 * cfgloop.h (struct loop): Remove single_iv field.
5964 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
5965 (scop_canonicalize_loops): Removed.
5966 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
5967 over all the loop phi nodes in loop->header.
5968 (build_poly_scop): Remove use of scop_canonicalize_loops.
5969
5970 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5971
5972 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
5973 handle GIMPLE_CALL.
5974
5975 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5976
5977 * tree-chrec.c (chrec_apply): Should only apply to the specified
5978 variable. Also handle multivariate chains of recurrences that
5979 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
5980
5981 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5982
5983 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
5984 (debug_clast_name_indexes_1): Removed.
5985 (debug_clast_name_indexes): Removed.
5986 (pbb_to_depth_to_oldiv): Removed.
5987 (build_iv_mapping): Replace the use of rename_map with iv_map.
5988 (translate_clast_user): Remove uses of rename_map. Allocate and
5989 free iv_map.
5990 (translate_clast_for_loop): Remove uses of rename_map.
5991 (translate_clast_for): Same.
5992 (translate_clast_guard): Same.
5993 (translate_clast): Same.
5994 (gloog): Same.
5995 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
5996 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
5997 * sese.c (set_rename): Now static.
5998 (rename_variables_in_stmt): Removed.
5999 (rename_uses): New.
6000 (is_parameter): Removed.
6001 (is_iv): Removed.
6002 (expand_scalar_variables_call): Removed.
6003 (expand_scalar_variables_ssa_name): Removed.
6004 (expand_scalar_variables_expr): Removed.
6005 (expand_scalar_variables_stmt): Removed.
6006 (expand_scalar_variables): Removed.
6007 (rename_variables): Removed.
6008 (remove_condition): Removed.
6009 (get_true_edge_from_guard_bb): Removed.
6010 (get_false_edge_from_guard_bb): Removed.
6011 (struct igp): Removed.
6012 (default_before_guard): Removed.
6013 (convert_for_phi_arg): Removed.
6014 (add_guard_exit_phis): Removed.
6015 (insert_guard_phis): Removed.
6016 (graphite_copy_stmts_from_block): Now also uses iv_map and a
6017 region. Do not copy conditions. Do not copy induction variables.
6018 Call rename_uses.
6019 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
6020 the translated statement. Use the iv_map for the induction
6021 variable renaming.
6022 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
6023 (set_rename): Removed declaration.
6024 (scev_analyzable_p): ...here.
6025 * tree-chrec.c (chrec_apply_map): New.
6026 * tree-chrec.h (chrec_apply_map): Declared.
6027
6028 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6029
6030 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
6031 insert_loop_close_phis.
6032 * sese.c (name_defined_in_loop_p): Removed.
6033 (expr_defined_in_loop_p): Removed.
6034 (alive_after_loop): Removed.
6035 (close_phi_not_yet_inserted_p): Removed.
6036 (struct alep): Removed.
6037 (add_loop_exit_phis): Removed.
6038 (insert_loop_close_phis): Removed.
6039
6040 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6041
6042 * graphite-cloog-util.c
6043 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
6044 * graphite-poly.c
6045 (psct_scattering_dim_for_loop_depth): Same.
6046
6047 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6048
6049 * graphite-cloog-util.h: Added cloog.h.
6050 * graphite-blocking.c: Removed cloog.h.
6051 * graphite-dependences.c: Same.
6052 * graphite-interchange.c: Same.
6053 * graphite-poly.c: Same.
6054 * graphite-ppl.c: Same.
6055 * graphite-scop-detection.c: Same.
6056 * graphite-sese-to-poly.c:
6057 Removed cloog.h.
6058 Removed graphite-clast-to-gimple.h.
6059 (check_poly_representation): Removed (unused).
6060 * graphite-sese-to-poly.h
6061 (check_poly_representation): Removed (unused).
6062
6063 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6064
6065 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
6066 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
6067 (graphite-cloog-util.o): New.
6068 (graphite-ppl.o): Added graphite-cloog-util.h.
6069 * graphite-clast-to-gimple.c:
6070 Added graphite-cloog-util.h to include statements.
6071 * graphite-cloog-util.c: New.
6072 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
6073 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6074 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6075 (new_C_Polyhedron_from_Cloog_Matrix): Same.
6076 (insert_constraint_into_matrix): Same.
6077 (ppl_Constrain_System_number_of_constraints): Same.
6078 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
6079 (oppose_constraint): Same.
6080 (cloog_matrix_to_ppl_constraint): Same.
6081 (new_Constraint_System_from_Cloog_Matrix): Same.
6082 * graphite-cloog-util.h: New.
6083 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
6084 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6085 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6086 (new_C_Polyhedron_from_Cloog_Matrix): Same.
6087 (insert_constraint_into_matrix): Same.
6088 * graphite-ppl.c:
6089 Added graphite-cloog-util.h to include statements.
6090 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
6091 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6092 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6093 (new_C_Polyhedron_from_Cloog_Matrix): Same.
6094 (insert_constraint_into_matrix): Same.
6095 (ppl_Constrain_System_number_of_constraints): Same.
6096 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
6097 (oppose_constraint): Same.
6098 (cloog_matrix_to_ppl_constraint): Same.
6099 (new_Constraint_System_from_Cloog_Matrix): Same.
6100 * graphite-ppl.h:
6101 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
6102 graphite-cloog-util.h.
6103 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6104 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6105 (new_C_Polyhedron_from_Cloog_Matrix): Same.
6106 (insert_constraint_into_matrix): Same.
6107
6108 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6109
6110 * graphite-clast-to-gimple.c
6111 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
6112 (precision_for_interval): Same.
6113 (gcc_type_for_interval): Same.
6114 (compute_type_for_level): Same.
6115 * graphite-interchange.c
6116 (lst_interchange_profitable_p): Same.
6117 * graphite-poly.c
6118 (psct_scattering_dim_for_loop_depth): Same.
6119 * graphite-ppl.c
6120 (ppl_max_for_le_pointset): Same.
6121 (ppl_min_for_le_pointset): Same.
6122
6123 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6124
6125 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
6126 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
6127
6128 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6129
6130 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
6131 rewrite_close_phi_out_of_ssa.
6132
6133 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6134
6135 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
6136
6137 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6138
6139 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
6140 rename_map.
6141 * sese.c (debug_rename_map): Same.
6142 (get_rename): Same.
6143 (set_rename): Same.
6144 (rename_variables_in_stmt): Same.
6145 (expand_scalar_variables_call): Same.
6146 (expand_scalar_variables_ssa_name): Same.
6147 (expand_scalar_variables_expr): Same.
6148 (expand_scalar_variables_stmt): Same.
6149 (expand_scalar_variables): Same.
6150 (rename_variables): Same.
6151 (graphite_copy_stmts_from_block): Same.
6152 (copy_bb_and_scalar_dependences): Same.
6153
6154 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6155
6156 * graphite-clast-to-gimple.c (copy_renames): Removed.
6157 (translate_clast_for): Do not call copy_renames.
6158 (translate_clast_guard): Same.
6159
6160 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6161
6162 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
6163 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
6164 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
6165 before rewrite_cross_bb_scalar_deps.
6166
6167 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6168
6169 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
6170 Early return in when flag_associative_math is not set.
6171
6172 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6173
6174 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
6175 of SSA copies on edges except for loop->latch.
6176
6177 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6178
6179 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
6180 Split out of rewrite_reductions_out_of_ssa.
6181 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
6182 Declared.
6183 * graphite.c (graphite_transform_loops): Call it.
6184
6185 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6186
6187 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
6188
6189 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
6190
6191 * dbgcnt.def (graphite_scop): New counter.
6192 * graphite.c: Include dbgcnt.h.
6193 (graphite_transform_loops): Use new counter to limit transformations.
6194 * Makefile.in (graphite.o): Depend on DBGCNT_H.
6195
6196 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6197
6198 * passes.c (init_optimization_passes): Add pass_graphite.
6199 Schedule a pass_copy_prop before pass_graphite_transforms.
6200 * timevar.def (TV_GRAPHITE): Declared.
6201 * tree-pass.h (pass_graphite): Declared.
6202 * tree-ssa-loop.c (pass_graphite): New.
6203
6204 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6205
6206 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
6207 Remove calls to rename_nb_iterations and rename_sese_parameters.
6208 * graphite-clast-to-gimple.h (gloog): Update declaration.
6209 * graphite.c (graphite_transform_loops): Update call to gloog.
6210 * sese.c (rename_variables_in_expr): Removed.
6211 (rename_nb_iterations): Removed.
6212 (rename_sese_parameters): Removed.
6213 * sese.h (rename_nb_iterations): Removed.
6214 (rename_sese_parameters): Removed.
6215
6216 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6217
6218 * graphite-clast-to-gimple.c (gloog): Remove call to
6219 sese_adjust_liveout_phis.
6220 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
6221 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
6222 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
6223 rewrite_phi_out_of_ssa.
6224 * sese.c (get_vdef_before_sese): Removed.
6225 (sese_adjust_vphi): Removed.
6226 (sese_adjust_liveout_phis): Removed.
6227 * sese.h (sese_adjust_liveout_phis): Removed.
6228
6229 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6230
6231 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
6232 argument for the place after which to insert the out of SSA copy.
6233 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
6234 (rewrite_phi_out_of_ssa): Same.
6235 (rewrite_cross_bb_scalar_deps): Same.
6236 (insert_copyout): Removed.
6237 (insert_copyin): Removed.
6238 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
6239 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
6240 insert_copyin.
6241
6242 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6243
6244 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
6245 (rewrite_reductions_out_of_ssa): Same.
6246 (rewrite_commutative_reductions_out_of_ssa): Same.
6247 (build_poly_scop): Do not call these functions.
6248 * graphite-sese-to-poly.h (build_poly_scop): Declared.
6249 (rewrite_reductions_out_of_ssa): Declared.
6250 (rewrite_commutative_reductions_out_of_ssa): Declared.
6251 * graphite.c (graphite_transform_loops): Call on every scop
6252 rewrite_commutative_reductions_out_of_ssa before calling
6253 rewrite_reductions_out_of_ssa and build_scop_bbs.
6254
6255 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6256
6257 * graphite-dependences.c (dot_deps): Make system call to dotty run
6258 in background.
6259 (dot_deps_stmt): Same.
6260 * graphite-poly.c (dot_lst): Same.
6261
6262 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6263
6264 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
6265 phi_arg_in_outermost_loop.
6266 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
6267 (remove_invariant_phi): Same.
6268
6269 2010-08-11 Anatoly Sokolov <aesok@post.ru>
6270
6271 * target.def (output_addr_const_extra): New hook.
6272 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
6273 * doc/tm.texi: Regenerate.
6274 * targhooks.c (default_asm_output_addr_const_extra): New function.
6275 * targhooks.h (default_asm_output_addr_const_extra): Declare.
6276 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
6277 target hook.
6278
6279 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6280 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
6281 * config/i386/i386.h (output_addr_const_extra): Rename to...
6282 (i386_asm_output_addr_const_extra): ...this. Make static.
6283 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6284
6285 2010-08-11 Richard Henderson <rth@redhat.com>
6286
6287 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
6288
6289 2010-08-11 Nick Clifton <nickc@redhat.com>
6290
6291 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
6292 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
6293 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
6294 stormy16-lib2-cmpsi.c.
6295
6296 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
6297 -O2.
6298
6299 2010-08-11 Joseph Myers <joseph@codesourcery.com>
6300
6301 * opts.h (struct cl_option_handler_func): Make handler take
6302 cl_decoded_option structure as parameter, not individual elements.
6303 (struct cl_option_handlers): Make callbacks take cl_decoded_option
6304 structure as parameter, not individual elements.
6305 (handle_option): Take cl_decoded_option structure as parameter,
6306 not individual elements.
6307 (handle_generated_option): Declare.
6308 * opts-common.c (handle_option): Take cl_decoded_option structure
6309 as parameter, not individual elements. Update calls to callback
6310 and handler functions.
6311 (handle_generated_option): New.
6312 (read_cmdline_option): Update calls to callback functions and
6313 handle_option.
6314 * opts.c (common_handle_option, complain_wrong_lang,
6315 unknown_option_callback, post_handling_callback,
6316 lang_handle_option, target_handle_option): Take cl_decoded_option
6317 structure as parameter, not individual elements.
6318 (lang_handle_option, target_handle_option, common_handle_option):
6319 Assert option has at most one argument.
6320 (enable_warning_as_error): Call handle_generated_option instead of
6321 handle_option. Do not pass -Werror argument as argument of
6322 generated option.
6323
6324 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6325
6326 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
6327 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
6328 (SUBWORD_BOOL_CAS): Likewise.
6329 (SUBWORD_SYNC_OP): Likewise.
6330 (SUBWORD_TEST_AND_SET): Likewise.
6331 (FETCH_AND_OP_WORD): Parenthesise INF_OP
6332 (SUBWORD_SYNC_OP): Likewise.
6333 (OP_AND_FETCH_WORD): Likewise.
6334
6335 2010-08-10 Xinliang David Li <davidxl@google.com>
6336
6337 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
6338 compute max/min offset in address.
6339
6340 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
6341
6342 * ira-live.c: Include sbitmap.h.
6343 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
6344 Compress live ranges even more.
6345
6346 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
6347
6348 * coverage.c (ctr_labels): Delete.
6349
6350 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
6351
6352 PR bootstrap/45177
6353 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
6354 test here from arm_gen_load_multiple_1.
6355 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
6356 multiple_operation_profitable_p.
6357
6358 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
6359
6360 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
6361 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
6362
6363 2010-08-10 Richard Henderson <rth@redhat.com>
6364
6365 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
6366 after saving registers. Assert that SSE registers are only saved
6367 with a sufficiently aligned frame.
6368 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
6369 remove stack_realign_fp handling.
6370 (ix86_expand_prologue): Save int registers before stack_realign_fp,
6371 and do not mark the stack alignment as frame related.
6372 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
6373
6374 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
6375 saves when re-aligning the stack.
6376
6377 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
6378
6379 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
6380 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
6381 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
6382
6383 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
6384
6385 * dwarf2out.c (struct die_struct): Move die_tag to the end.
6386
6387 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
6388
6389 * config/arm/iterators.md: New file.
6390 * config/arm/arm.md: Include iterators.md.
6391 (QHSI): Move to new file.
6392 (LTUGEU, cnb, optab, ior_xor): Likewise.
6393 * config/arm/iwmmxt.md (VMMX): Move to new file.
6394 (VSHFT, MMX_char): Likewise.
6395 * config/arm/neon.md (VD): Move to new file.
6396 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
6397 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
6398 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
6399 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
6400 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
6401 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
6402 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
6403 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
6404 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
6405 (Is_d_reg, V_mode_nunits): Likewise.
6406 * config/arm/vec-common.md (VALL): Move to new file.
6407 (VALLW, VINT, VINTW): Likewise.
6408
6409 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
6410
6411 PR middle-end/45182
6412 * combine.c (make_compound_operation): Don't try to convert
6413 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
6414
6415 2010-08-10 Richard Guenther <rguenther@suse.de>
6416
6417 * tree.h (get_object_alignment): Adjust prototype.
6418 * builtins.c (get_object_alignment): Return unsigned int,
6419 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
6420 and TARGET_MEM_REF properly.
6421 (get_pointer_alignment): Adjust.
6422 * emit-rtl.c (get_mem_align_offset): Adjust comment.
6423 (set_mem_attributes_minus_bitpos): Adjust.
6424 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
6425
6426 2010-08-10 Richard Guenther <rguenther@suse.de>
6427
6428 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
6429 (copy_prop_visit_assignment): Simplify.
6430 (copy_prop_visit_stmt): Also visit assignments from
6431 constants.
6432 (copy_prop_visit_phi_node): Use operand_equal_p.
6433
6434 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
6435
6436 * ipa-split.c (find_split_points): Free stack.
6437
6438 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
6439
6440 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
6441 * tree.c (tree_node_kind): Delete corresponding entries.
6442
6443 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
6444
6445 * alias.c (may_alias_p): Remove unused ret.
6446
6447 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
6448
6449 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
6450 alias_sets_conflict_p.
6451 (walk_mems_1): Moved from alias.c.
6452 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
6453 in alias.c.
6454 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
6455 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
6456 * alias.c (walk_mems_2): Moved to ddg.c.
6457 (walk_mems_1): Ditto.
6458 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
6459 to ddg.c.
6460 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
6461 disambiguation.
6462 *(may_alias_p): New function to check whether two memory expression
6463 may alias or not. Currently used in buidling inter-iteration memory
6464 dependence.
6465 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
6466 (insn_alias_sets_conflict_p): Removed
6467 *rtl.h (may_alias_p): New function prototype.
6468
6469 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
6470
6471 * tree.c (nreverse): Assert that we don't have a BLOCK.
6472
6473 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
6474
6475 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
6476 * config/arm/arm.c (arm_get_pcs_model): Likewise.
6477 * config/avr/avr.c (init_cumulative_args): Likewise.
6478 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
6479 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6480 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
6481 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
6482 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
6483 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6484 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
6485 * dwarf2out.c (gen_subprogram_die): Likewise.
6486 * function.c (allocate_struct_function): Likewise.
6487 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
6488 (deserves_ellipsis): Delete.
6489
6490 2010-08-09 Richard Guenther <rguenther@suse.de>
6491
6492 * tree-ssa-copy.c (cached_last_copy_of): Remove.
6493 (valueize_val): New function.
6494 (get_last_copy_of): Remove.
6495 (set_copy_of_val): Simplify.
6496 (dump_copy_of): Likewise.
6497 (copy_prop_visit_cond_stmt): Use valueize_val.
6498 (copy_prop_visit_phi_node): Properly handle unvisited names.
6499 Drop code managing copy-of chains.
6500 (init_copy_prop): Adjust.
6501 (fini_copy_prop): Likewise.
6502 (execute_copy_prop): Remove obsolete comment.
6503
6504 2010-08-09 Richard Guenther <rguenther@suse.de>
6505
6506 PR middle-end/44632
6507 * function.c (gimplify_parameters): Do not clear addressable
6508 bit of the original parameter.
6509
6510 2010-08-09 Richard Guenther <rguenther@suse.de>
6511
6512 PR middle-end/45212
6513 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
6514 alignment from MEM_REF offset only if we took it from the
6515 base object.
6516
6517 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
6518
6519 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
6520
6521 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6522
6523 * c-tree.h (build_arg_info): Declare.
6524 * c-decl.c (build_arg_info): Define.
6525 (get_parm_info): Call it. Delete initialization code.
6526 * c-parser.c (c_parser_parms_declarator): Likewise.
6527 (c_parser_parms_list_declaractor): Likewise.
6528
6529 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6530
6531 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
6532 (struct c_arg_info): Change type of tags field.
6533 * c-decl.c (grokdeclarator): Update for changed type of tags field.
6534 (get_parm_info): Likewise.
6535 (store_parm_decls_newstyle): Likewise.
6536
6537 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6538
6539 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
6540 (branch_island_list): Delete.
6541 (branch_islands): Declare.
6542 (add_compiler_branch_island): Adjust for branch_islands instead of
6543 branch_island_list.
6544 (macho_branch_islands): Likewise.
6545 (no_previous_def): Likewise.
6546 (get_prev_label): Likewise.
6547
6548 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6549
6550 PR boehm-gc/34544
6551 * gthr-posix.h (__gthread_start): Delete.
6552 (__gthread_active_init): Use pthread_default_stacksize_np instead of
6553 pthread_create to determine if hpux pthreads are active.
6554 * gthr-posix95.h (__gthread_start): Delete.
6555 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
6556
6557 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
6558
6559 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
6560 _WIN64 not expanded.
6561
6562 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
6563 H.J. Lu <hongjiu.lu@intel.com>
6564
6565 PR target/45213
6566 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
6567 to output 32bit SFmode immediate as 8 byte sign extended value.
6568
6569 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
6570
6571 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
6572 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
6573 (SUBWORD_BOOL_CAS): Likewise.
6574 (SUBWORD_SYNC_OP): Likewise.
6575 (SUBWORD_TEST_AND_SET): Likewise.
6576 (FETCH_AND_OP_WORD): Parenthesise INF_OP
6577 (SUBWORD_SYNC_OP): Likewise.
6578 (OP_AND_FETCH_WORD): Likewise.
6579
6580 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6581
6582 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
6583 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
6584 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
6585 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
6586 generic part.
6587 (cortex_a9_sched_adjust_cost): New function.
6588 (xscale_sched_adjust_cost): New function.
6589 * config/arm/arm-protos.h (struct tune_params): New field
6590 sched_adjust_cost.
6591 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
6592
6593 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
6594
6595 PR target/44942
6596 * config/sparc/sparc.c (function_arg_advance): Always take into account
6597 the padding, if any.
6598
6599 2010-08-06 Richard Guenther <rguenther@suse.de>
6600
6601 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
6602 (dump_lattice_value): Dump it.
6603 (get_default_value): Adjust.
6604 (get_constant_value): Likewise.
6605 (set_value_varying): Likewise.
6606 (set_lattice_value): Make sure to not go up the lattice
6607 with bitwise constant values.
6608 (get_value_for_expr): Handle ADDR_EXPRs.
6609 (value_to_double_int): New function.
6610 (get_value_from_alignment): Likewise.
6611 (do_dbg_cnt): Adjust.
6612 (ccp_lattice_meet): Handle partially constant values.
6613 (bit_value_unop_1): New function.
6614 (bit_value_binop_1): Likewise.
6615 (bit_value_unop): Likewise.
6616 (bit_value_binop): Likewise.
6617 (evaluate_stmt): Track partially constant values if
6618 flag_tree_bit_ccp is set.
6619 (ccp_fold_stmt): Dump if we folded a predicate.
6620 (ccp_visit_stmt): Adjust.
6621 * common.opt (ftree-bit-ccp): New flag.
6622 * doc/invoke.texi (ftree-bit-ccp): Document.
6623 * opts.c (decode_options): Enable bit-CCP at -O1.
6624
6625 2010-08-06 Alan Modra <amodra@gmail.com>
6626
6627 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
6628 and -mrelocatable-lib description.
6629
6630 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
6631
6632 From Martin Thuresson <martint@google.com>
6633 * postreload.c (reload_cse_simplify_operands): Use
6634 SET_REGNO_RAW instead of SET_REGNO.
6635 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
6636 SET_REGNO.
6637 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
6638 instead of SET_REGNO.
6639 * rtl.h (SET_REGNO_RAW): New macro.
6640
6641 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
6642
6643 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
6644 computations. Fix formatting issues.
6645 (num_sign_bit_copies1): Likewise.
6646 (canonicalize_condition): Likewise.
6647
6648 2010-08-05 Richard Henderson <rth@redhat.com>
6649
6650 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
6651 (floor_log2): Use clz_hwi.
6652 (exact_log2): Use ctz_hwi.
6653 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
6654 * builtins.c (fold_builtin_bitop): Use them.
6655 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6656 * combine.c (get_pos_from_mask): Use ctz_hwi.
6657 * double-int.c (double_int_ctz): Likewise.
6658 * explow.c (force_reg): Likewise.
6659 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
6660
6661 2010-08-05 Richard Henderson <rth@redhat.com>
6662
6663 PR target/45189
6664 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
6665 the alignment constant is properly sign-extended.
6666
6667 2010-08-05 Richard Guenther <rguenther@suse.de>
6668
6669 * expr.c (store_expr): Use emit_block_move only if both
6670 source and target are MEMs. Use store_bit_field if only
6671 the target is a MEM.
6672
6673 2010-08-05 Richard Henderson <rth@redhat.com>
6674
6675 PR debug/45188
6676 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
6677 (INCOMING_RETURN_ADDR_RTX): Likewise.
6678 (dwarf2out_do_frame): Remove conditional compilation.
6679 (dwarf2out_frame_init): Likewise.
6680
6681 2010-08-05 Nicolas Setton <setton@adacore.com>
6682
6683 * gcov.c (flag_display_progress): New static variable.
6684 (main): Display progress info on standard output if requested.
6685 (options): Add -d/--display-progress.
6686 (print_usage): Print them.
6687 (process_args): Handle them.
6688 * doc/gcov.texi: Document them.
6689
6690 2010-08-05 Martin Jambor <mjambor@suse.cz>
6691
6692 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
6693 (ipcp_insert_stage): Redirect only edges not flagged with
6694 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
6695 discovered constants.
6696
6697 2010-08-05 Martin Jambor <mjambor@suse.cz>
6698
6699 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
6700 (struct ipa_param_descriptor): New fields types and
6701 cannot_devirtualize.
6702 (ipa_param_cannot_devirtualize_p): New function.
6703 (ipa_param_types_vec_empty): Likewise.
6704 (ipa_make_edge_direct_to_target): Declare.
6705 * ipa-cp.c: Fixed first stage driver name in initial comment,
6706 described devirtualization there too.
6707 (ipcp_analyze_node): Call ipa_analyze_params_uses.
6708 (ipcp_print_all_lattices): Print devirtualization info.
6709 (ipa_set_param_cannot_devirtualize): New function.
6710 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
6711 lattice to BOTTOM.
6712 (ipcp_init_stage): Merged into...
6713 (ipcp_generate_summary): ...its caller.
6714 (ipcp_change_tops_to_bottom): Also process type lists.
6715 (ipcp_add_param_type): New function.
6716 (ipcp_copy_types): Likewise.
6717 (ipcp_propagate_types): Likewise.
6718 (ipcp_propagate_stage): Also propagate types.
6719 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
6720 Also return true if propagated types require it.
6721 (ipcp_update_callgraph): Dump redirection info.
6722 (ipcp_process_devirtualization_opportunities): New function.
6723 (ipcp_const_param_count): Include known type information.
6724 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
6725 on new node. Fixed formatting.
6726 * ipa-prop.c (make_edge_direct_to_target): Renamed to
6727 ipa_make_edge_direct_to_target and changed all callers. Made
6728 externally visible.
6729 (ipa_node_duplication_hook): Duplicate types vector.
6730 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
6731 redirect outgoing calls for which we can't get a decl from the
6732 statement. Check that we can get a decl from the call statement.
6733 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
6734 ipa_analyze_params_uses only when ipa-cp is disabled.
6735 * tree-inline.c (get_indirect_callee_fndecl): Removed.
6736 (expand_call_inline): Do not call get_indirect_callee_fndecl.
6737 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
6738 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
6739
6740 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
6741
6742 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
6743 temporary. Emit move from temporary to accum, so REG_EQUAL note will
6744 be attached to this insn in correct mode.
6745
6746 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
6747
6748 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
6749 using REGNO of base_reg directly.
6750
6751 2010-08-05 Jie Zhang <jie@codesourcery.com>
6752
6753 PR tree-optimization/45144
6754 * tree-sra.c (type_consists_of_records_p): Return false
6755 if the record contains bit-field.
6756
6757 2010-08-04 Richard Henderson <rth@redhat.com>
6758
6759 * config/i386/i386.c (struct ix86_frame): Remove padding and
6760 to_allocate members.
6761 (ix86_compute_frame_layout): Don't store them.
6762 (ix86_can_use_return_insn_p): Use a more direct and more obviously
6763 correct condition for the position of the stack pointer.
6764 (ix86_expand_prologue): Compute remaining stack allocation based
6765 on the ultimate stack pointer offset.
6766 (ix86_expand_epilogue): Use more obvious expressions testing for
6767 the stack pointer already pointing to the saved registers.
6768
6769 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
6770 duplication deconstructing the frame pointer. Simplify
6771 deallocation of the local stack frame.
6772
6773 * reg-notes.def (CFA_EXPRESSION): New.
6774 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
6775 (dwarf2out_frame_debug_cfa_expression): New.
6776 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
6777
6778 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
6779 * config/i386/i386.c (ix86_expand_prologue): Set it.
6780 (ix86_expand_epilogue): Clear it.
6781 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
6782 context, add REG_CFA_EXPRESSION notes.
6783
6784 * config/i386/i386.h (struct machine_frame_state): Rename from
6785 machine_cfa_state. Add members tracking SP and FP regardless
6786 of the current CFA register.
6787 (ix86_cfa_state): Remove.
6788 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
6789 and sse_reg_save_offset members.
6790 (ix86_compute_frame_layout): Set them.
6791 (gen_push): Increment sp_offset too.
6792 (choose_baseaddr_len, choose_baseaddr): New.
6793 (ix86_emit_save_reg_using_mov): New.
6794 (ix86_emit_save_regs_using_mov): Use it.
6795 (ix86_emit_save_sse_regs_using_mov): Likewise.
6796 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
6797 compare vs the saved red_zone_offset.
6798 (pro_epilogue_adjust_stack): Adjust sp_offset.
6799 (ix86_adjust_stack_and_probe): Likewise.
6800 (ix86_expand_prologue): Set up, use, and validate the new
6801 frame_state_info members. Use gen_frame_mem.
6802 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
6803 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
6804 new frame_state_info members.
6805 (ix86_emit_leave): Likewise.
6806 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
6807 out-of-range stack pointer offsets here.
6808 (ix86_emit_restore_sse_regs_using_mov): Likewise.
6809 (ix86_expand_epilogue): Use and validate the new frame_state_info
6810 members. Break up and simplify the logic selecting the
6811 restore_regs_via_mov code path. Ensure that there will be no
6812 out-of-range stack pointer offsets.
6813
6814 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
6815
6816 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
6817 argument name to reflect the expected tree; fix indentation.
6818 (ix86_asm_output_function_label): Output the entire 32-bit
6819 ms_hook here as bytes ...
6820 (ix86_expand_prologue): ... not here as insns. Attach the
6821 unwind info for the ms_hook to a blockage insn.
6822 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
6823 (ix86_ms_bitfield_layout_p): Fix indentation.
6824 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
6825
6826 * config/i386/i386.c (ix86_using_red_zone): New.
6827 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
6828 ix86_expand_prologue, ix86_force_to_memory): Use it.
6829
6830 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
6831 saving the int registers.
6832
6833 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
6834 and DWARF2_UNWIND_INFO conditional compilation.
6835
6836 2010-08-04 Richard Henderson <rth@redhat.com>
6837
6838 PR debug/45171
6839 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
6840 an is_naming_typedef_decl.
6841
6842 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
6843
6844 PR rtl-optimization/45162
6845 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
6846 * dce.c (word_dce_process_block): Likewise.
6847
6848 2010-08-04 Steve Ellcey <sje@cup.hp.com>
6849
6850 PR target/44583
6851 * config/ia64/constraints.md (Z): New.
6852 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
6853 (xfreg_or_signed_fp01_operand): New.
6854 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
6855 with fr_reg_or_signed_fp01_operand and constraint G with Z.
6856 (subsf3): Ditto.
6857 (*maddsf4): Ditto.
6858 (*msubsf4): Ditto.
6859 (adddf3): Ditto.
6860 (adddf3_trunc): Ditto.
6861 (subdf3): Ditto.
6862 (*subdf3_trunc): Ditto.
6863 (*madddf4): Ditto.
6864 (*madddf4_trunc): Ditto.
6865 (*msubdf4): Ditto.
6866 (*msubdf4_trunc): Ditto.
6867 (addxf3): Replace xfreg_or_fp01_operand with
6868 xfreg_or_signed_fp01_operand and constraint G with Z.
6869 (*addxf3_truncsf): Ditto.
6870 (*addxf3_truncdf): Ditto.
6871 (subxf3): Ditto.
6872 (*subxf3_truncsf): Ditto.
6873 (*subxf3_truncdf): Ditto.
6874 (*maddxf4): Ditto.
6875 (*maddxf4_truncsf): Ditto.
6876 (*maddxf4_truncdf): Ditto.
6877 (*msubxf4): Ditto.
6878 (*msubxf4_truncsf): Ditto.
6879 (*msubxf4_truncdf): Ditto.
6880
6881 2010-08-04 Richard Guenther <rguenther@suse.de>
6882
6883 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
6884 if either alias-set is zero.
6885
6886 2010-08-04 Richard Guenther <rguenther@suse.de>
6887
6888 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
6889 * tree-ssa-ccp.c: ... here.
6890 * tree-ssa-copy.c: ... and here.
6891 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
6892 value_range_t): Move ...
6893 * tree-vrp.c: ... here.
6894 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
6895 (substitute_and_fold): Adjust prototype.
6896 * tree-ssa-propagate.c (replace_uses_in): Adjust.
6897 (replace_phi_args_in): Likewise.
6898 (substitute_and_fold): Take callback to query lattice instead
6899 of pointer to lattice. Replace SSA name defs with lattice
6900 values first.
6901 * tree-ssa-ccp.c (ccp_finalize): Adjust.
6902 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
6903 (get_value): New function.
6904 (fini_copy_prop): Adjust.
6905 * tree-vrp.c (vrp_finalize): Adjust.
6906
6907 2010-08-04 Richard Guenther <rguenther@suse.de>
6908
6909 PR middle-end/45176
6910 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
6911 points-to set for original MEM_REF.
6912
6913 2010-08-04 Richard Guenther <rguenther@suse.de>
6914
6915 * tree-ssa-ccp.c (get_constant_value): New function.
6916 (get_rhs_assign_op_for_ccp): Remove.
6917 (valueize_op): New function.
6918 (ccp_fold): Use get_constant_value and valueize_op.
6919 (fold_const_aggregate_ref): Likewise.
6920 (ccp_fold_stmt): Likewise.
6921 (visit_assignment): Simplify.
6922
6923 2010-08-04 Richard Guenther <rguenther@suse.de>
6924
6925 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
6926 * double-int.h (double_int_ctz): Declare.
6927 * double-int.c (double_int_ctz): New function.
6928
6929 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
6930
6931 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
6932 Define.
6933 picochip_expand_movmemhi : Expand movmem pattern.
6934 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
6935 Declare.
6936 * config/picochip/picochip.md (movmemhi) : New pattern.
6937
6938 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
6939
6940 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
6941
6942 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
6943
6944 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
6945 NEG as operand of a MULT by merging it with the other operand.
6946 * combine.c (make_compound_operation): Use trunc_int_for_mode when
6947 generating a MULT with constant. Canonicalize PLUS and MINUS involving
6948 MULT.
6949 * config/arm/constraints.md (M): Examine only 32 bits of a
6950 HOST_WIDE_INT.
6951 * config/arm/predicates.md (power_of_two_operand): Likewise.
6952
6953 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6954
6955 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
6956 non-NOTE insns.
6957
6958 2010-08-03 Jan Hubicka <jh@suse.cz>
6959
6960 * ipa-split.c (struct split_point): Add split_part_set_retval.
6961 (find_retval): Forward declare.
6962 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
6963 (consider_split): Compute current->split_part_set_retval.
6964 (visit_bb): Do not look into return value.
6965 (split_function): Handle !split_part_set_retval
6966
6967 2010-08-03 Martin Jambor <mjambor@suse.cz>
6968
6969 * tree-sra.c (completely_scalarize_record): New parameter REF, create
6970 its own access->expr intead of using build_ref_for_offset.
6971
6972 2010-08-03 Joseph Myers <joseph@codesourcery.com>
6973
6974 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
6975 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
6976 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
6977 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
6978 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
6979 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
6980 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
6981 DEFAULT_SWITCH_TAKES_ARG.
6982 * config/rx/rx.opt (-patch=): Remove option.
6983 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
6984 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
6985 * doc/invoke.texi (RX Options): Remove -patch=.
6986 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
6987 (option_map): Remove --profile-blocks, --quiet and --silent.
6988
6989 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
6990
6991 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
6992 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
6993 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
6994 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
6995 Update calls to ix86_expand_compare and ix86_expand_branch.
6996 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
6997 ix86_expand_compare.
6998 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
6999 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
7000 Make static.
7001 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
7002 and ix86_compare_op1. Update calls to ix86_expand_compare.
7003 (ix86_expand_int_movcc): Ditto.
7004 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
7005 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
7006 (ix86_expand_setcc): Ditto.
7007 (ix86_expand_compare): Remove prototype.
7008 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
7009 ix86_compare_op0 and ix86_compare_op1. Update calls
7010 to ix86_expand_branch to directly pass operands[1] and operands[2].
7011 (cbranchxf4): Ditto.
7012 (cbranch<MODEF:mode>4): Ditto.
7013 (cbranchcc4): Ditto.
7014 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
7015 Update calls to ix86_expand_setcc to directly pass operands[2] and
7016 operands[3].
7017 (cstorexf4): Ditto.
7018 (cstore<MODEF:mode>4): Ditto.
7019 (cstorecc4): Ditto.
7020
7021 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
7022
7023 PR target/45063
7024 * caller-save.c (save_call_clobbered_regs): Remove regs from
7025 hard_regs_saved when they are set.
7026
7027 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
7028
7029 PR target/41089
7030 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
7031 as volatile.
7032
7033 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
7034
7035 * common.opt (ftree-loop-distribute-patterns): New.
7036 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
7037 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
7038 at -O3.
7039 * tree-data-ref.c (stores_zero_from_loop): New.
7040 * tree-data-ref.h (stores_zero_from_loop): Declared.
7041 * tree-loop-distribution.c (tree_loop_distribution): Call
7042 stores_zero_from_loop.
7043 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
7044
7045 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
7046
7047 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
7048 into account.
7049
7050 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
7051 * config/arm/arm.c (thumb1_code): New variable.
7052 (arm_override_options): Set it.
7053 (thumb1_final_prescan_insn): Keep track of condition code status.
7054 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
7055 jumps that depend on them.
7056 * config/arm/arm.h (thumb1_code): Declare variable.
7057 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
7058 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
7059 thumb1_cc_mode.
7060 (CC_STATUS_INIT): New macro.
7061 * config/arm/constraints.md (Pd): New constraint.
7062 * config/arm/predicates.md (noov_comparison_operator): New predicate.
7063 * config/arm/arm.md (is_thumb1): New define_attr.
7064 (conds): Set default to "clob" when generating Thumb1 code.
7065 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
7066 code are set. Use two-operand assembly syntax.
7067 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
7068 pattern.
7069 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
7070 codes are set. Use two-operand assembly syntax.
7071 (zero_extendhisi splitter): Remove constraints.
7072 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
7073 thumb1_movsf_insn): Set conds attribute as appropriate.
7074 (cbranchsi4_insn): Use condition code status from struct
7075 machine_function to determine whether the comparison can be eliminated.
7076 Discourage the alternative using high registers.
7077 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
7078 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
7079 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
7080 subsi3_cbranch): Delete.
7081 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
7082 one subtract and one cbranch insn.
7083
7084 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
7085 thumb2_movdf_soft_insn): Delete patterns.
7086 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
7087 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
7088 (pool_range, neg_pool_range): Use them to define defaults.
7089 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
7090 and allow for TARGET_32BIT.
7091
7092 PR target/40457
7093 * config/arm/arm.h (arm_regs_in_sequence): Declare.
7094 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
7095 load_multiple_sequence, store_multiple_sequence): Delete
7096 declarations.
7097 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
7098 declarations.
7099 * config/arm/ldmstm.md: New file.
7100 * config/arm/arm.c (arm_regs_in_sequence): New array.
7101 (load_multiple_sequence): Now static. New args SAVED_ORDER,
7102 CHECK_REGS. All callers changed.
7103 If SAVED_ORDER is nonnull, copy the computed order into it.
7104 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
7105 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
7106 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
7107 If SAVED_ORDER is nonnull, copy the computed order into it.
7108 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
7109 like REGS. Handle Thumb mode.
7110 (arm_gen_load_multiple_1): New function, broken out of
7111 arm_gen_load_multiple.
7112 (arm_gen_store_multiple_1): New function, broken out of
7113 arm_gen_store_multiple.
7114 (arm_gen_multiple_op): New function, with code from
7115 arm_gen_load_multiple and arm_gen_store_multiple moved here.
7116 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
7117 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
7118 changed.
7119 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
7120 * config/arm/predicates.md (commutative_binary_operator): New.
7121 (load_multiple_operation, store_multiple_operation): Handle more
7122 variants of these patterns with different starting offsets. Handle
7123 Thumb-1.
7124 * config/arm/arm.md: Include "ldmstm.md".
7125 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
7126 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
7127 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
7128 peepholes): Delete.
7129 * config/arm/ldmstm.md: New file.
7130 * config/arm/arm-ldmstm.ml: New file.
7131
7132 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
7133 if statement which adds extra costs to frame-related expressions.
7134
7135 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7136
7137 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
7138
7139 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
7140
7141 PR target/45142
7142 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
7143 alternative 2.
7144 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
7145 split V4SI operands.
7146
7147 2010-08-01 Anatoly Sokolov <aesok@post.ru>
7148
7149 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7150 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
7151 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
7152 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
7153
7154 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
7155
7156 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
7157 LOCAL_INCLUDE_DIR.
7158
7159 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7160
7161 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
7162 used in the call to optab_for_tree_code. Fix the second
7163 is_widening_mult_p call. Check that both unwidened operands
7164 have the same sign.
7165
7166 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
7167
7168 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
7169
7170 2010-07-31 Anatoly Sokolov <aesok@post.ru>
7171
7172 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7173
7174 2010-07-30 DJ Delorie <dj@redhat.com>
7175
7176 * config/rx/predicates.md (rx_constshift_operand): New.
7177 * config/rx/rx.md (zs_cond): New.
7178 (cbranchsi4): Remove mode.
7179 (*cbranchsi4_<code>): Likewise.
7180 (*tstbranchsi4_<code>): New.
7181 (*tstbranchsi4r_<code>): New.
7182 (*tstbranchsi4m_eq): New.
7183 (*tstbranchsi4m_ne): New.
7184 (cbranchsf4): Remove mode.
7185 (*cbranchsf4_<code>): Likewise.
7186
7187 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
7188
7189 * rtlanal.c (simplify_subreg_regno): Don't treat
7190 HARD_FRAME_POINTER_REGNUM specially.
7191
7192 2010-07-30 Joseph Myers <joseph@codesourcery.com>
7193
7194 * common.opt (-G): Don't define option here.
7195 * config/g.opt: New.
7196 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
7197 rs6000/powerpc and score targets.
7198 * opts.c (common_handle_option): Don't handle -G here.
7199 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
7200 * config/frv/frv.c (frv_handle_option): Handle -G.
7201 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
7202 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
7203 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
7204 * config/mips/mips.c (mips_handle_option): Handle -G.
7205 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
7206 * config/score/score.c (score_handle_option): Handle -G.
7207
7208 2010-07-30 Anatoly Sokolov <aesok@post.ru>
7209
7210 * config/mmix/mmix.c: Include basic-block.h.
7211
7212 2010-07-30 Jakub Jelinek <jakub@redhat.com>
7213
7214 PR debug/45055
7215 PR rtl-optimization/45137
7216 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
7217 prototypes.
7218 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
7219 New functions.
7220 * combine.c (next_nonnote_nondebug_insn): Removed.
7221 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
7222 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
7223 * sched-deps.c (sched_analyze_insn): Likewise.
7224 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
7225 * rtlanal.c (canonicalize_condition): Likewise.
7226 * postreload.c (reload_combine_recognize_pattern): Likewise.
7227 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
7228
7229 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
7230
7231 * config/i386/i386.md (int_cond): Remove code iterator.
7232 (fp_cond): Ditto.
7233 (cbranch<mode>4): Use ordered_comparison_operator predicate
7234 for operator0.
7235 (cstore<mode>4): Ditto for operator1.
7236 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
7237 (add<mode>cc): ditto.
7238
7239 2010-07-30 Richard Guenther <rguenther@suse.de>
7240
7241 PR middle-end/45141
7242 * expr.c (expand_expr_real_1): Check for not handled base address.
7243
7244 2010-07-30 Richard Guenther <rguenther@suse.de>
7245
7246 * ipa-prop.c (ipa_modify_formal_parameters): Use
7247 build_distinct_type_copy.
7248
7249 2010-07-30 Anthony Green <green@moxielogic.com>
7250
7251 * config/moxie/rtems.h: New file.
7252 * config.gcc: Add moxie-rtems support.
7253
7254 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
7255
7256 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
7257 df flags as in run_fast_df_dce.
7258
7259 2010-07-29 Jakub Jelinek <jakub@redhat.com>
7260
7261 Revert:
7262 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
7263
7264 * rtl.def (NOTE): Swap operands 4 and 5.
7265 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
7266 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
7267 Adjust accordingly.
7268 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
7269
7270 2010-07-29 Jakub Jelinek <jakub@redhat.com>
7271
7272 PR debug/45110
7273 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
7274 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
7275 (gen_subprogram_die): Likewise. Remove it when removing declaration's
7276 formal parameters.
7277 (gen_decl_die): Change return type to dw_die_ref, return what
7278 gen_formal_parameter_die returned.
7279
7280 2010-07-29 Martin Jambor <mjambor@suse.cz>
7281
7282 * dbgcnt.def (eipa_sra): New counter.
7283 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
7284
7285 2010-07-29 Xinliang David Li <davidxl@google.com>
7286
7287 PR bootstrap/45119
7288 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
7289 in revision 162652.
7290
7291 2010-07-29 Richard Guenther <rguenther@suse.de>
7292
7293 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
7294 (TV_TREE_STORE_CCP): Likewise.
7295 (TV_TREE_REDPHI): Likewise.
7296
7297 2010-07-29 Richard Guenther <rguenther@suse.de>
7298
7299 * double-int.h (double_int_and_not): New function.
7300 * combine.c (try_combine): Use it.
7301 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
7302
7303 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
7304
7305 PR rtl-optimization/42575
7306 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
7307 Argument AU removed. All callers changed. Ignore artificial refs.
7308 Use return value of df_word_lr_simulate_defs to decide whether an insn
7309 is necessary.
7310 (fast_dce): Rename arg to WORD_LEVEL.
7311 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
7312 static.
7313 (pass_fast_rtl_byte_dce): Delete.
7314 * dce.h (run_word_dce): Declare.
7315 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
7316 All callers changed. Simplify code to only deal with two-word regs.
7317 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
7318 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
7319 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
7320 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
7321 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
7322 (df_word_lr_mark_ref): Declare.
7323 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
7324 df_word_lr_simulate_uses): Declare or rename from byte variants.
7325 (df_byte_lr_simulate_artificial_refs_at_top,
7326 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
7327 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
7328 declarations.
7329 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
7330 (enum df_mm): Delete.
7331 * df-byte-scan.c: Delete file.
7332 * df-problems.c (df_word_lr_problem_data): Renamed from
7333 df_byte_lr_problem_data, all members deleted except for
7334 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
7335 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
7336 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
7337 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
7338 df_byte_lr_confluence_0): Delete functions.
7339 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
7340 callers changed.
7341 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
7342 Don't initialize members that were deleted, don't try to discover data
7343 about registers. Ignore hard regs.
7344 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
7345 (df_word_lr_mark_ref): New function.
7346 (df_word_lr_bb_local_compute): Renamed from
7347 df_byte_bb_lr_local_compute; all callers changed. Use
7348 df_word_lr_mark_ref. Assert that artificial refs don't include
7349 pseudos. Ignore hard registers.
7350 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
7351 Assert that exit block uses don't contain pseudos.
7352 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
7353 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
7354 callers changed. Ignore hard regs.
7355 (df_word_lr_transfer_function): Renamed from
7356 df_byte_lr_transfer_function; all callers changed.
7357 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
7358 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
7359 changed.
7360 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
7361 callers changed.
7362 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
7363 confluence operator 0 set to NULL.
7364 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
7365 callers changed.
7366 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
7367 Return bool, true if bitmap changed or insn otherwise necessary.
7368 All callers changed. Simplify using df_word_lr_mark_ref.
7369 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
7370 all callers changed. Simplify using df_word_lr_mark_ref.
7371 * lower-subreg.c: Include "dce.h"
7372 (decompose_multiword_subregs): Call run_word_dce if df available.
7373 * Makefile.in (lower-subreg.o): Adjust dependencies.
7374 (df-byte-scan.o): Delete.
7375 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
7376
7377 2010-07-29 Richard Guenther <rguenther@suse.de>
7378
7379 * tree.c (build_vector): Assert that the vector constant
7380 has enough elements.
7381 (build_vector_from_ctor): Pad with trailing zeros.
7382
7383 2010-07-29 Richard Guenther <rguenther@suse.de>
7384
7385 PR tree-optimization/45120
7386 * tree-ssa-structalias.c (get_constraint_for_component_ref):
7387 Handle offset in DEREFs properly.
7388 (get_constraint_for_1): Handle MEM_REF offset properly.
7389
7390 2010-07-29 Richard Guenther <rguenther@suse.de>
7391
7392 PR middle-end/45034
7393 * convert.c (convert_to_integer): Always use an unsigned
7394 type for narrowed negate and bitwise not.
7395
7396 2010-07-29 Ira Rosen <irar@il.ibm.com>
7397
7398 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
7399 to outer loop when creating reduction epilogue for double reduction,
7400 and switch back to the inner loop when updating the phi nodes.
7401 Update uses of outer loop exit phi nodes in double reduction (instead
7402 of uses of reduction).
7403
7404 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
7405
7406 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
7407 popcount on power7 and parity on power6 systems.
7408 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
7409 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
7410 instructions.
7411
7412 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
7413 (UNSPEC_PARITY): Ditto.
7414 (SFDF): New iterator for SF/DF.
7415 (rreg2): New mode attribute for floating register constraint.
7416 (TARGET_FLOAT): New mode attribute for whether single/double float
7417 is supported.
7418 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
7419 pattern.
7420 (parity<mode>2_cmpb): New insn for parity on power6 and newer
7421 machines.
7422 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
7423 pattern. Add support for fcpsgn instruction added in power6.
7424 (copysignsf3): Delete.
7425 (copysigndf3): Delete.
7426 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
7427 instead of if_then_else in RTL to avoid problems with -0.
7428
7429 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
7430 of if_then_else to mirror scalar code.
7431 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
7432 rs6000.md.
7433
7434 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
7435 instead of if_then_else.
7436
7437 2010-07-28 Xinliang David Li <davidxl@google.com>
7438
7439 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
7440 (dump_cand): Dump var_before/after.
7441 (htab_inv_expr_eq): New function.
7442 (htab_inv_expr_hash): New function.
7443 (tree_ssa_iv_optimize_init): Support pseudo invariants.
7444 (add_candidate_1): consider base type precision.
7445 (set_use_iv_cost): New parameter.
7446 (adjust_setup_cost): Use profile information.
7447 (get_address_cost): Do not hard code width in computing address
7448 offset limits.
7449 (compare_aff_trees): New function.
7450 (get_loop_invariant_expr_id): New function.
7451 (get_computation_cost_at): New parameter and use profile information.
7452 (get_computation_cost): New parameter.
7453 (determine_use_iv_cost_generic): Pass new parameter.
7454 (determine_use_iv_cost_address): Ditto.
7455 (determine_use_iv_cost_condition): Ditto.
7456 (autoinc_possible_for_pair): Ditto.
7457 (determine_use_iv_costs): More dumps.
7458 (iv_ca_get_num_inv_exprs): New function.
7459 (iv_ca_recount_cost): Consider loop invariants in register pressure
7460 cost.
7461 (iv_ca_add_use): New parameter.
7462 (iv_ca_dump): Better dumping.
7463 (iv_ca_extend): New parameter.
7464 (try_add_cand_for): Attempt to get better partial solution.
7465 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
7466 (create_new-ivs): More dumps.
7467 (rewrite_use_compare): Ditto.
7468 (free_loop_data): More cleanup.
7469 (treee_ssa_iv_optimize_finalize): Ditto.
7470
7471 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
7472
7473 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
7474 * config/i386/i386.c (ix86_profile_before_prologue): New.
7475 (override_options): Add special handling for -mfentry.
7476 (ix86_function_regparm): Likewise.
7477 (ix86_function_sseregparm): Likewise.
7478 (ix86_frame_pointer_required): Likewise.
7479 (ix86_expand_prologue): Check for ms_hook_prologue.
7480 (x86_function_profiler): Adjust mcount output.
7481 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
7482 * config/i386/i386.opt (mfentry): New.
7483 * doc/invoke.texi (mfentry): Add documentation.
7484 * doc/tm.texi: Regenerated..
7485 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
7486 * final.c (final_start_function): Replace macro
7487 PROFILE_BEFORE_PROLOGUE by target hook.
7488 * function.c (thread_prologue_and_epilogue_insns): Likewise.
7489 * target.def (profile_before_prologue): New hook.
7490 * targhooks.c (default_profile_before_prologue): New.
7491 * targhooks.h (default_profile_before_prologue): New.
7492
7493 2010-07-28 Jakub Jelinek <jakub@redhat.com>
7494
7495 PR debug/45105
7496 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
7497
7498 PR debug/45103
7499 * dwarf2out.c (dwarf2out_var_location): Always consider
7500 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
7501
7502 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
7503
7504 PR rtl-optimization/45107
7505 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
7506
7507 2010-07-28 Richard Guenther <rguenther@suse.de>
7508
7509 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
7510 (set_lattice_value): Do not query an old default value.
7511 (get_value_for_expr): New function. Properly canonicalize
7512 float values.
7513 (ccp_visit_phi_node): Use it.
7514
7515 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
7516
7517 * config/arm/arm.c (arm_pcs_default): Remove static.
7518 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
7519 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
7520 (arm_pcs_default): Declare.
7521
7522 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
7523
7524 * config/rs6000/rs6000.c (rs6000_override_options):
7525 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
7526 ... to darwin_rs6000_override_options.
7527 (rs6000_return_in_memory): Update preceding comment for darwin
7528 64 bit ABI. Use TARGET_MACHO inline.
7529 (rs6000_darwin64_struct_check_p): New.
7530 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
7531 (function_arg): Likewise.
7532 (rs6000_arg_partial_bytes): Likewise.
7533 (rs6000_function_value): Likewise.
7534
7535 2010-07-28 Andi Kleen <ak@linux.intel.com>
7536
7537 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
7538
7539 2010-07-28 Richard Guenther <rguenther@suse.de>
7540
7541 PR middle-end/44903
7542 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
7543 targets try harder to not generate unaligned accesses.
7544
7545 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
7546
7547 PR rtl-optimization/45101
7548 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
7549 for gcse-las.
7550
7551 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
7552
7553 PR tree-optimization/44885
7554 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
7555 with non-aliased component.
7556
7557 2010-07-28 Joseph Myers <joseph@codesourcery.com>
7558
7559 * config/darwin-driver.c (SWITCH_TAKES_ARG,
7560 WORD_SWITCH_TAKES_ARG): Remove.
7561 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
7562 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
7563 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
7564 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
7565 definitions from gcc.c.
7566 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
7567 defaults.h.
7568 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
7569 Move to defaults.h.
7570 * opts-common.c: Include tm.h.
7571 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
7572 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
7573 Handle more than one argument. Set canonical_option_num_elements.
7574 (decode_cmdline_options_to_array): Set
7575 canonical_option_num_elements and trailing elements of
7576 canonical_option.
7577 * opts.h (struct cl_decoded_option): Allow four elements in
7578 canonical_option. Add field canonical_option_num_elements.
7579 * Makefile.in (opts-common.o): Update dependencies.
7580
7581 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
7582
7583 PR middle-end/44790
7584 PR middle-end/44993
7585 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
7586 sure the base has address_mode before adding the offset.
7587
7588 2010-07-27 Xinliang David Li <davidxl@google.com>
7589
7590 * tree-flow.h (create_mem_ref): Add one new parameter.
7591 * tree-ssa-address.c (create_mem_ref): New parameter.
7592 (addr_to_parts): Ditto.
7593 (move_variant_to_index): New function.
7594 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
7595
7596 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
7597
7598 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
7599 4 and 5.
7600 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
7601 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
7602 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
7603 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
7604 CODE_LABELs and NOTEs.
7605 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
7606 * combine.c (try_combine): Likewise.
7607 * ira.c (setup_prohibited_mode_move_regs): Likewise.
7608 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
7609
7610 2010-07-27 Joseph Myers <joseph@codesourcery.com>
7611
7612 * coretypes.h (struct cl_option_handlers): Declare.
7613 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
7614 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
7615 * langhooks-def.h (lhd_handle_option): Declare.
7616 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
7617 * langhooks.c (lhd_handle_option): New.
7618 * langhooks.h (struct lang_hooks): Update prototype and return
7619 value type of handle_option hook.
7620 * optc-gen.awk: Generate target_flags_explicit definition for the
7621 driver.
7622 * opts-common.c: Include diagnostic.h.
7623 (handle_option): Move from opts.c. Update prototype and return
7624 value type. Use handlers structure.
7625 (read_cmdline_option): Move from opts.c. Update prototype. Use
7626 handlers structure.
7627 (set_option): Move from opts.c.
7628 * opts.c (common_handle_option): Update prototype and return value
7629 type. Update calls to handle_option and enable_warning_as_error.
7630 (unknown_option_callback, post_handling_callback,
7631 lang_handle_option, target_handle_option): New.
7632 (handle_option, read_cmdline_option): Move to opts-common.c.
7633 (read_cmdline_options): Update prototype. Update call to
7634 read_cmdline_option.
7635 (decode_options): Initialize and use handlers structure.
7636 (set_option): Move to opts-common.c.
7637 (enable_warning_as_error): Update prototype. Update call to
7638 handle_option.
7639 * opts.h (struct cl_option_handler_func, struct
7640 cl_option_handlers): New.
7641 (handle_option, enable_warning_as_error): Update prototypes.
7642 (read_cmdline_option): Declare.
7643 * Makefile.in (opts-common.o): Update dependencies.
7644
7645 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7646
7647 * config/arm/arm.c (params.h): Include.
7648 (arm_override_options): Tune gcse-unrestricted-cost.
7649 * config/arm/t-arm (arm.o): Define dependencies.
7650
7651 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7652
7653 PR target/42495
7654 PR middle-end/42574
7655 * basic-block.h (get_dominated_to_depth): Declare.
7656 * dominance.c (get_dominated_to_depth): New function, use
7657 get_all_dominated_blocks as a base.
7658 (get_all_dominated_blocks): Use get_dominated_to_depth.
7659
7660 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
7661 (hoist_exprs): Remove.
7662 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
7663 (compute_code_hoist_vbeinout): Add debug print outs.
7664 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
7665
7666 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
7667 quadratic behavior.
7668 * params.h (MAX_HOIST_DEPTH): New macro.
7669 * doc/invoke.texi (max-hoist-depth): Document.
7670
7671 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7672
7673 PR rtl-optimization/40956
7674 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
7675 constants.
7676
7677 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7678
7679 PR target/42495
7680 PR middle-end/42574
7681 * config/arm/arm.c (legitimize_pic_address): Use
7682 gen_calculate_pic_address pattern to emit calculation of PIC address.
7683 (will_be_in_index_register): New function.
7684 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
7685 (thumb1_legitimate_address_p): Use it provided !strict_p.
7686 * config/arm/arm.md (calculate_pic_address): New expand and split.
7687
7688 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7689
7690 PR target/42495
7691 PR middle-end/42574
7692 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
7693 * config/arm/arm.md (define_split "J", define_split "K"): Make
7694 IRA/reload friendly.
7695
7696 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7697
7698 * gcse.c (insert_insn_end_basic_block): Update signature, remove
7699 unused checks.
7700 (pre_edge_insert, hoist_code): Update.
7701
7702 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7703
7704 PR target/42495
7705 PR middle-end/42574
7706 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
7707
7708 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7709
7710 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
7711
7712 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7713
7714 PR rtl-optimization/40956
7715 PR target/42495
7716 PR middle-end/42574
7717 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
7718 for hoisting.
7719 (hoist_code): Count occurences in current block too.
7720
7721 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7722
7723 * gcse.c (struct expr:max_distance): New field.
7724 (doing_code_hoisting_p): New static variable.
7725 (want_to_gcse_p): Change signature. Allow constrained hoisting of
7726 simple expressions, don't change behavior for PRE. Set max_distance.
7727 (insert_expr_in_table): Set new max_distance field.
7728 (hash_scan_set): Update.
7729 (hoist_expr_reaches_here_p): Stop search after max_distance
7730 instructions.
7731 (find_occr_in_bb): New static function. Use it in ...
7732 (hoist_code): Calculate sizes of basic block before any changes are
7733 done. Pass max_distance to hoist_expr_reaches_here_p.
7734 (one_code_hoisting_pass): Set doing_code_hoisting_p.
7735
7736 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
7737 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
7738 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
7739 macros.
7740 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
7741 Document.
7742
7743 2010-07-27 Jeff Law <law@redhat.com>
7744 Maxim Kuvyrkov <maxim@codesourcery.com>
7745
7746 * gcse.c (compute_transpout, transpout): Remove, move logic
7747 to prune_expressions.
7748 (compute_pre_data): Move pruning of trapping expressions ...
7749 (prune_expressions): ... here. New static function.
7750 (compute_code_hoist_data): Use it.
7751 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
7752
7753 2010-07-27 Xinliang David Li <davidxl@google.com>
7754
7755 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
7756 (rewrite_use_address): Adjust iv update position when needed.
7757
7758 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7759
7760 * dbgcnt.def (hoist_insn): New debug counter.
7761 * gcse.c (hoist_code): Use it.
7762
7763 2010-07-27 Xinliang David Li <davidxl@google.com>
7764
7765 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
7766 (niter_for_single_dom_exit): Passes additional parameter.
7767 (iv_period): Fix comments.
7768 (may_eliminate_iv): Handles multiple exit loops properly.
7769 (free_tree_niter_desc): New function.
7770 (free_loop_data): Frees up loop iteration descriptors.
7771
7772 2010-07-27 Jakub Jelinek <jakub@redhat.com>
7773
7774 PR target/44542
7775 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
7776 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
7777 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
7778 (expand_one_var): Don't consider DECL_ALIGN for variables for
7779 which expand_one_stack_var_at has been already called.
7780
7781 PR testsuite/44701
7782 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
7783 constraints on IA-64.
7784
7785 2010-07-27 Jie Zhang <jie@codesourcery.com>
7786
7787 PR target/44290
7788 Revert:
7789 2010-07-23 Jie Zhang <jie@codesourcery.com>
7790
7791 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
7792 false if ! tree_versionable_function_p.
7793
7794 2010-07-27 Jakub Jelinek <jakub@redhat.com>
7795
7796 * dwarf2out.c (add_data_member_location_attribute): Use
7797 add_AT_unsigned instead of add_AT_int if offset is non-negative.
7798
7799 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
7800
7801 * postreload.c (try_replace_in_use): New static function.
7802 (reload_combine_recognize_const_pattern): Use it here. Allow
7803 substituting into a final add insn, and substituting into a memory
7804 reference in an insn that sets the reg.
7805
7806 2010-07-27 Joseph Myers <joseph@codesourcery.com>
7807
7808 * common.opt (o): Add MissingArgError.
7809 * doc/options.texi (MissingArgError): Document.
7810 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
7811 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
7812 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
7813 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
7814 * langhooks.h (struct lang_hooks): Remove missing_argument.
7815 * optc-gen.awk: Handle MissingArgError and output new structure
7816 field initializers.
7817 * opts.c (read_cmdline_option): Use missing_argument_error field
7818 instead of missing_argument langhook.
7819 * opts.h (struct cl_option): Add missing_argument_error field.
7820 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
7821
7822 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
7823
7824 PR target/29090
7825 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
7826 Darwin64 ABI, for zero-sized objects.
7827
7828 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
7829
7830 PR target/35491
7831 PR target/29090
7832
7833 Merge from Apple local 4.2.1.
7834 2005-05-11 Stan Shebs <shebs@apple.com>
7835 Fix 64-bit varargs for Darwin (Radar 4028089).
7836 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
7837 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
7838 Add argument, add case for 8-byte register half-filled with a float.
7839 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
7840 single-precision floats specially.
7841
7842 2010-07-27 Ira Rosen <irar@il.ibm.com>
7843
7844 PR tree-optimization/44152
7845 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
7846 complex numbers for further check.
7847 (vect_supported_load_permutation_p): Check nodes with
7848 complex numbers.
7849
7850 2010-07-27 Joseph Myers <joseph@codesourcery.com>
7851
7852 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
7853 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
7854 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
7855 (LANG_HOOKS_INITIALIZER): Add new hooks.
7856 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
7857 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
7858 and complain_wrong_lang_p. Update init_options prototype.
7859 * c-objc-common.c (c_initialize_diagnostics): First call
7860 c_common_initialize_diagnostics.
7861 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
7862 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
7863 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
7864 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
7865 (hook_uint_void_0): New.
7866 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
7867 (hook_uint_void_0): New.
7868 * opts-common.c (decode_cmdline_option,
7869 decode_cmdline_options_to_array): Also fill in canonical_option field.
7870 * opts.c (complain_wrong_lang): Use langhook to determine whether
7871 to complain instead of special-casing LTO.
7872 (decode_options): Separate lang_mask determination with
7873 option_lang_mask hook from call of init_options hook.
7874 * opts.h (struct cl_decoded_option): Add canonical_option.
7875
7876 2010-07-27 Jakub Jelinek <jakub@redhat.com>
7877
7878 PR tree-optimization/45083
7879 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
7880
7881 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
7882
7883 * postreload.c (reload_combine_recognize_const_pattern): Move test
7884 for limiting the insn movement to the right scope.
7885
7886 PR rtl-optimization/45051
7887 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
7888 than reg_mentioned_p.
7889
7890 2010-07-26 Richard Henderson <rth@redhat.com>
7891
7892 PR target/44132
7893 * tree-emutls.c: New file.
7894 * Makefile.in (OBJS-common): Add it.
7895 * tree-pass.h (pass_ipa_lower_emutls): Declare.
7896 * passes.c (init_optimization_passes): Add it.
7897
7898 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
7899 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
7900 * expr.c (emutls_var_address): Delete.
7901 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
7902 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
7903 (emutls_finish): Delete.
7904 * toplev.c (compile_file): Don't call it.
7905 * tree.h (emutls_decl): Delete.
7906 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
7907 (emutls_finish, emutls_finalize_control_var): Delete.
7908 (emutls_object_type): Move to tree-emutls.c.
7909 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
7910 default_emutls_var_fields, get_emutls_object_type,
7911 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
7912 default_emutls_var_init): Likewise.
7913 (get_variable_section): Don't special case emutls.
7914 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
7915 default_elf_select_section, default_unique_section,
7916 default_encode_section_info): Likewise.
7917 * varpool.c (decide_is_variable_needed): Likewise.
7918 * gimple-iterator.c (update_call_edge_frequencies): New
7919 (gsi_insert_on_edge_immediate): Use it.
7920 (gsi_insert_seq_on_edge_immediate): Likewise.
7921 (gsi_commit_one_edge_insert): Likewise.
7922
7923 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
7924 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
7925 (x86_64_elf_unique_section): Likewise.
7926
7927 2010-07-26 Jan Hubicka <jh@suse.cz>
7928
7929 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
7930 GTY((skip)).
7931
7932 2010-07-26 Anatoly Sokolov <aesok@post.ru>
7933
7934 * target.def (output_source_filename): New hook.
7935 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
7936 * doc/tm.texi: Regenerate.
7937 * toplev.c (output_file_directive) Remove function.
7938 * toplev.h (output_file_directive) Remove.
7939 * output.h (default_asm_output_source_filename,
7940 output_file_directive): Declare.
7941 * varasm.h (default_asm_output_source_filename,
7942 output_file_directive): New functions.
7943
7944 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7945 * config/mips/mips-protos.h (mips_output_filename): Remove.
7946 * config/mips/mips.c (mips_output_filename): Make Static.
7947 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
7948
7949 2010-07-26 Richard Guenther <rguenther@suse.de>
7950
7951 PR tree-optimization/43784
7952 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
7953 if the destination is used by the call.
7954
7955 2010-07-26 Richard Guenther <rguenther@suse.de>
7956
7957 PR middle-end/45073
7958 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
7959 SSA updating on being in SSA form.
7960
7961 2010-07-26 Richard Guenther <rguenther@suse.de>
7962
7963 PR middle-end/45056
7964 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
7965
7966 2010-07-26 Richard Guenther <rguenther@suse.de>
7967
7968 PR tree-optimization/45071
7969 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
7970 adjust op->opcode.
7971
7972 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
7973
7974 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
7975 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
7976 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
7977 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
7978 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
7979 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
7980 save_r31, return_r31, save_interrupt, return_interrupt,
7981 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
7982 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
7983 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
7984 new ABI requirements.
7985 (save_r6_r9, L_callt_save_r6_r9): Remove.
7986 * config/v850/predicates.md (even_reg_operand, disp23_operand,
7987 const_float_1_operand const_float_0_operand): New Predicates.
7988 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
7989 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
7990 * config/v850/t-v850: Update multilibs for new target variants.
7991 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
7992 * config/v850/t-v850e: Likewise.
7993 * config/v850/v850.c (v850_issue_rate): New.
7994 (v850_strict_argument_naming): New.
7995 (function_arg): Modify to generate a different ABI.
7996 (print_operand): Update case 'z' to support float modes.
7997 (output_move_single): Modify to generate appropriate and better
7998 assembly.
7999 (v850_float_z_comparison_operator, v850_select_cc_mode,
8000 v850_float_nz_comparison_operator, v850_gen_float_compare,
8001 v850_gen_compare): New functions to support comparison of float values.
8002 (ep_memory_offset): Add support for V850E2 targets.
8003 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
8004 (INTERRUPT_REGPARM_NUM): Remove.
8005 (compute_register_save_size): Add extra case to save/restore long call.
8006 (use_prolog_function): New function to support prologue.
8007 (expand_prologue): Add support for V850E2 targets and modified
8008 as per the current ABI requirements.
8009 (expand_epilogue): Likewise.
8010 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
8011 (construct_save_jarl): Likewise.
8012 (construct_dispose_instruction): Update as per the current ABI
8013 requirements.
8014 (construct_prepare_instruction): Likewise.
8015 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
8016 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
8017 (CPP_SPEC): Updated to support v850e2 targets.
8018 (STRICT_ALIGNMENT): Modified.
8019 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
8020 (FIXED_REGISTERS): Likewise.
8021 (CALL_USED_REGISTERS): Likewise.
8022 (CONDITIONAL_REGISTER_USAGE): Updated.
8023 (HARD_REGNO_MODE_OK): Updated.
8024 (reg_class): Updated to add even registers.
8025 (REG_CLASS_NAMES): Likewise.
8026 (REG_CLASS_CONTENTS): Likewise.
8027 (REGNO_REG_CLASS): Updated for CC registers.
8028 (REG_CLASS_FROM_LETTER): Added support for even registers.
8029 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
8030 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
8031 ARG_POINTER_REGNUM): Updated.
8032 (FUNCTION_ARG_ADVANCE): Define.
8033 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
8034 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
8035 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
8036 (GO_IF_LEGITIMATE_ADDRESS): Updated.
8037 (SELECT_CC_MODE): Define.
8038 (REGISTER_NAMES): Updated to add psw and fcc registers.
8039 (ADDITIONAL_REGISTER_NAMES): Updated.
8040 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
8041 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
8042 * config/v850/v850.md (define_constants): Define new constants.
8043 (type): Update store,bit1,macc,div,fpu and single attributes.
8044 (cpu): New attribute.
8045 (cc): Add set_z attribute.
8046 (unsign23byte_load, sign23byte_load, unsign23hword_load,
8047 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
8048 23word_store): New instructions for 23-bit displacement load and store.
8049 (movqi_internal, movhi_internal): Update the attributes.
8050 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
8051 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
8052 the attributes.
8053 (v850_tst1): Modified using CC_REGNUM.
8054 (tstsi): Remove.
8055 (cmpsi): Modified as define_expand from define_insn.
8056 (cmpsi_insn, cmpsf, cmpdf): New instructions.
8057 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
8058 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
8059 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
8060 one_cmplsi2): Clobber the CC_REGNUM register.
8061 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
8062 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
8063 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
8064 (setf_insn, set_z_insn, set_nz_insn): New instructions for
8065 v850e2v3 target.
8066 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
8067 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
8068 targets.
8069 (sasf_1, sasf_2): Remove.
8070 (sasf): New instruction.
8071 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
8072 targets. CC_REGNUM register is clobbered and attributes are
8073 updated.
8074 (branch_z_normal, branch_z_invert, branch_nz_normal,
8075 branch_nz_invert): New branch related instructions.
8076 (jump): Updated the attributes.
8077 (switch): Update to support new targets. CC_REGNUM register is
8078 clobbered and attributes are updated.
8079 (call_internal_short, call_internal_long, call_value_internal_short,
8080 call_value_internal_long): Updated the attributes.
8081 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
8082 clobbered and attributes are updated.
8083 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
8084 Update to support new targets. CC_REGNUM register is clobbered.
8085 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
8086 instructions.
8087 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
8088 are updated.
8089 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
8090 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
8091 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
8092 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
8093 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
8094 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
8095 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
8096 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
8097 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
8098 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
8099 point instructions defined for V850e2v3 target.
8100 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
8101 Add support for V850E2 targets and CC_REGNUM register is clobbered.
8102 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
8103 support for new targets.
8104 * config/v850/v850-modes.def: New file.
8105 * config/v850/v850.opt(mstrict-align): Remove.
8106 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
8107 mv850e2v3): New command line options for V850.
8108 * config.gcc: Update the newly added files.
8109 * doc/invoke.texi: Update the newly added command line options for
8110 V850 target.
8111
8112 2010-07-26 Richard Guenther <rguenther@suse.de>
8113
8114 PR tree-optimization/45052
8115 * ipa-pure-const.c (check_stmt): Check volatileness.
8116
8117 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
8118
8119 PR target/44707
8120 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
8121 * config/sparc/sparc.c: Include reload.h.
8122 (legitimize_tls_address): Rename into...
8123 (sparc_legitimize_tls_address): ...this.
8124 (legitimize_pic_address): Rename into...
8125 (sparc_legitimize_pic_address): ...this.
8126 (sparc_expand_move): Adjust to above renaming.
8127 (sparc_tls_referenced_p): Likewise.
8128 (sparc_legitimize_tls_address): Likewise.
8129 (sparc_legitimize_pic_address): Likewise.
8130 (sparc_legitimize_address): Likewise.
8131 (sparc_output_mi_thunk): Likewise.
8132 (sparc_legitimize_reload_address): New global function. Recognize
8133 (lo_sum (high ...) ...) patterns generated by earlier passes.
8134 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
8135
8136 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
8137
8138 PR target/44484
8139 * config/sparc/predicates.md (memory_reg_operand): Delete.
8140 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
8141 (*sync_compare_and_swap): Encode the address form in the pattern.
8142 (*sync_compare_and_swapdi_v8plus): Likewise.
8143
8144 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
8145
8146 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
8147 Streamline paragraph on compatibility with the system compiler.
8148
8149 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
8150
8151 PR middle-end/45035
8152 * alias.c (true_dependence_1): Fix thinko in merge of old
8153 true_dependence and canon_true_dependence.
8154
8155 2010-07-23 Jan Hubicka <jh@suse.cz>
8156
8157 * lto-streamer-out.c (write_symbol): Fix visibilities of external
8158 references.
8159
8160 2010-07-23 Le-Chun Wu <lcwu@google.com>
8161
8162 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
8163 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
8164 and an unnecessary assignment.
8165 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
8166 self-assign warning.
8167 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
8168 unnecessary self-init.
8169
8170 2010-07-23 Richard Guenther <rguenther@suse.de>
8171
8172 PR lto/43071
8173 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
8174 for -flto and -fwhopr.
8175
8176 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
8177
8178 PR target/41943
8179 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
8180 (stmp-int-hdrs): Prefix/postfix headers by include_next.
8181 * config.gcc (user_headers_inc_next_pre): New.
8182 (user_headers_inc_next_post): Likewise.
8183 (*-w64-mingw*): Use for float.h post-fixing, and for
8184 stddef.h/stdarg.h pre-fixing by include_next.
8185 * configure.ac (user_headers_inc_next_post): New.
8186 (user_headers_inc_next_pre): New.
8187 * configure: Regenerated.
8188
8189 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8190
8191 * configure.ac: Don't disable TLS on Solaris 8/9 by default
8192 Set tga_func for Solaris 2/x86 resp. SPARC.
8193 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
8194 (LIB_THREAD_LDFLAGS_SPEC): Define.
8195 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
8196 * configure: Regenerate.
8197 * config.in: Regenerate.
8198 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
8199 -pthread, -threads, LIB_TLS_SPEC with -pthread.
8200 * doc/install.texi (Specific, *-*-solaris2*): Document use of
8201 alternate thread libraries on Solaris 8.
8202 Document TLS patch requirements.
8203 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
8204 Document tls.
8205
8206 PR target/18788
8207 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
8208 -shared.
8209
8210 2010-07-23 Jakub Jelinek <jakub@redhat.com>
8211
8212 * tree.h (struct tree_base): Add nameless_flag bitfield.
8213 (TYPE_NAMELESS, DECL_NAMELESS): Define.
8214 * omp-low.c (create_omp_child_function, scan_omp_parallel,
8215 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
8216 DECL_ARTIFICIAL where needed.
8217 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
8218 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
8219 has DECL_NAMELESS set.
8220
8221 2010-07-23 Martin Jambor <mjambor@suse.cz>
8222
8223 PR tree-optimization/44915
8224 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
8225 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
8226 (analyze_function): Likewise.
8227
8228 2010-07-23 Martin Jambor <mjambor@suse.cz>
8229
8230 PR tree-optimization/44914
8231 * tree-sra.c (sra_modify_function_body): Return true if CFG was
8232 changed, add purging dead eh edges.
8233 (ipa_sra_modify_function_body): Return true if CFG was changed,
8234 simplify purging dead eh edges.
8235 (modify_function): Return true if CFG was changed.
8236 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
8237 was changed.
8238 (ipa_early_sra): Likewise.
8239
8240 2010-07-23 Jie Zhang <jie@codesourcery.com>
8241
8242 PR target/44290
8243 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
8244 if "naked".
8245 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
8246 false if ! tree_versionable_function_p.
8247
8248 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
8249
8250 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
8251 * ipa-pure-const.c (special_builtlin_state): Remove
8252 BUILT_IN_ARGS_INFO case.
8253 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8254 * builtins.c (expand_builtin): Likewise.
8255 (expand_builtin_args_info): Remove.
8256 * doc/tm.texi (__builtin_args_info): Remove.
8257 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
8258 * doc/tm.text.in: Likewise.
8259
8260 2010-07-23 Richard Guenther <rguenther@suse.de>
8261
8262 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
8263 (lto_symtab_merge_decls_2): Likewise.
8264 * tree-ssa.c (useless_type_conversion_p): Likewise.
8265 * lto-streamer-in.c (input_gimple_stmt): Likewise.
8266 * gimple.c (gtc_visited2, gtc_ob2): Remove.
8267 (struct type_pair_d): Make same_p an array indexed by mode.
8268 Update comment.
8269 (lookup_type_pair): Update initialization.
8270 (struct sccs): Adjust same_p type.
8271 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
8272 Adjust.
8273 (print_gimple_types_stats): Likewise.
8274 * gimple.h (enum gtc_mode): New.
8275 (gimple_types_compatible_p): Adjust prototype.
8276
8277 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
8278
8279 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
8280 again after processing insn.
8281
8282 2010-07-23 Jie Zhang <jie@codesourcery.com>
8283
8284 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
8285 proper words when !tree_versionable_function_p.
8286
8287 2010-07-23 Richard Guenther <rguenther@suse.de>
8288
8289 PR tree-optimization/45037
8290 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
8291
8292 2010-07-23 Jie Zhang <jie@codesourcery.com>
8293
8294 * doc/extend.texi: Remove IP2K from the description of naked attribute.
8295 Add MCORE instead.
8296
8297 2010-07-10 Andi Kleen <ak@linux.intel.com>
8298
8299 PR lto/44992
8300 * lto-opts.c (lto_write_options): Add NULL file_data argument to
8301 lto_get_section_name.
8302 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
8303 * lto-streamer-out.c (produce_asm): Likewise.
8304 (copy_function): Likewise.
8305 (produce_symtab): Likewise.
8306 (produce_asm_for_decls): Likewise.
8307 * lto-streamer.c (lto_get_section_name): Add file_data argument.
8308 Rewrite to add random postfix to LTO sections.
8309 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
8310 (lto_get_section_name): Add file_data argument to prototype.
8311
8312 2010-07-10 Andi Kleen <ak@linux.intel.com>
8313
8314 * lto-section-in.c (lto_section_name): Synchronize names
8315 with lto_get_section_name.
8316
8317 2010-07-10 Andi Kleen <ak@linux.intel.com>
8318
8319 * lto-opts.c (lto_read_file_options): Check for missing section.
8320
8321 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
8322
8323 * ira.c (check_allocation): Correctly handle the case where an allocno
8324 with two objects was allocated to a single reg.
8325
8326 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
8327
8328 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
8329 (is_widening_mult_p): Likewise.
8330 (convert_to_widen): Use them.
8331 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
8332 well as integer ones.
8333
8334 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
8335
8336 * alias.c (true_dependence_1): New function, merged version of
8337 true_dependence and canon_true_dependence.
8338 (true_dependence): Simplify.
8339 (canon_true_dependence): Simplify.
8340
8341 2010-07-22 Richard Henderson <rth@redhat.com>
8342
8343 PR target/45027
8344 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
8345 of V4SFmode for the SSE saves; increase stack alignment if needed.
8346 (ix86_gimplify_va_arg): Don't increase stack alignment here.
8347
8348 2010-07-22 Jakub Jelinek <jakub@redhat.com>
8349
8350 PR bootstrap/45028
8351 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
8352 call cprop_find_used_regs again via note_uses.
8353
8354 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
8355
8356 * alias.c (get_alias_set): Fix formatting issues.
8357
8358 2010-07-22 Steve Ellcey <sje@cup.hp.com>
8359
8360 PR middle-end/44878
8361 * stmt.c (expand_value_return): Call promote_function_mode with
8362 a for_return argument of 2 when returning by reference.
8363
8364 2010-07-22 Dodji Seketeli <dodji@redhat.com>
8365
8366 PR debug/45024
8367 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
8368 unit DIE if we can find the scope DIE.
8369
8370 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
8371
8372 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
8373 changed. Initialize OBJECT_SUBWORD.
8374 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
8375 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
8376 all callers changed.
8377 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
8378 (finish_allocno): Likewise.
8379 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
8380 (remove_low_level_allocnos): Likewise.
8381 (update_bad_spill_attribute): Likewise.
8382 (setup_min_max_allocno_live_range_point): Likewise.
8383 (sort_conflict_id_map): Likewise.
8384 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
8385 (ior_hard_reg_conflicts): New function.
8386 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
8387 (compress_conflict_vecs): Iterate over objects, not allocnos.
8388 (ira_add_live_range_to_object): New function.
8389 (object_range_compare_func): Renamed from allocno_range_compare_func.
8390 All callers changed.
8391 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
8392 subobjects, widen the min/max range of the lowest-order object to
8393 potentially include all other such low-order objects.
8394 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
8395 (check_allocation): Likewise. Use more fine-grained tests for register
8396 conflicts.
8397 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
8398 allocno subobjects.
8399 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
8400 choices about which bits to set in each set. Don't use
8401 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
8402 using the multiple sets we computed.
8403 (push_allocno_to_stack): Iterate over allocno subobjects.
8404 (all_conflicting_hard_regs_coalesced): New static function.
8405 (setup_allocno_available_regs_num): Use it.
8406 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
8407 subobjects.
8408 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
8409 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8410 by ALLOCNO_NUM_OBJECTS.
8411 (calculate_spill_cost): Likewise.
8412 (color_pass): Express if statement in a more normal way.
8413 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
8414 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
8415 (setup_slot_coalesced_allocno_live_ranges): Likewise.
8416 (allocno_reload_assign): Likewise.
8417 (ira_reassign_pseudos): Likewise.
8418 (fast_allocation): Likewise.
8419 * ira-conflicts.c (build_conflict_bit_table): Likewise.
8420 (print_allocno_conflicts): Likewise.
8421 (ira_build_conflicts): Likewise.
8422 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
8423 callers changed. Test subword 0 of each allocno for conflicts.
8424 (build_object_conflicts): Renamed from build_allocno_conflicts. All
8425 callers changed. Iterate over allocno subobjects.
8426 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
8427 * ira-int.h (struct ira_allocno): New member: num_objects.
8428 Rename object to objects and change it into an array.
8429 (ALLOCNO_OBJECT): Add new argument N.
8430 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
8431 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
8432 (ior_hard_reg_conflicts): Declare.
8433 (ira_add_live_range_to_object): Declare.
8434 (ira_allocno_object_iterator): New.
8435 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
8436 (FOR_EACH_ALLOCNO_OBJECT): New macro.
8437 * ira-lives.c (objects_live): Renamed from allocnos_live; all
8438 uses changed.
8439 (allocnos_processed): New sparseset.
8440 (make_object_born): Renamed from make_allocno_born; take an
8441 ira_object_t argument. All callers changed.
8442 (make_object_dead): Renamed from make_allocno_dead; take an
8443 ira_object_t argument. All callers changed.
8444 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
8445 All callers changed.
8446 (mark_pseudo_regno_live): Iterate over allocno subobjects.
8447 (mark_pseudo_regno_dead): Likewise.
8448 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
8449 functions.
8450 (mark_ref_live): Detect subword accesses and call
8451 mark_pseudo_regno_subword_live as appropriate.
8452 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
8453 (process_bb_nodes_live): Deal with object-related updates first; set
8454 and test bits in allocnos_processed to avoid computing allocno
8455 statistics more than once.
8456 (create_start_finish_chains): Iterate over objects, not allocnos.
8457 (print_object_live_ranges): New function.
8458 (print_allocno_live_ranges): Use it.
8459 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
8460 and objects_live.
8461
8462 2010-07-22 Richard Guenther <rguenther@suse.de>
8463
8464 PR lto/42451
8465 * gimple.c (gtc_next_dfs_num): New global.
8466 (struct sccs): Make value a union, add integer same_p member.
8467 (gtc_visit): New function.
8468 (gimple_types_compatible_p_1): New function, split out from ...
8469 (gimple_types_compatible_p): ... here. Start a DFS walk here.
8470 (iterative_hash_gimple_type): Adjust for sccs change.
8471
8472 2010-07-22 Martin Jambor <mjambor@suse.cz>
8473
8474 PR tree-optimization/44891
8475 * tree-sra.c: Include gimple-pretty-print.h.
8476 (replace_uses_with_default_def_ssa_name): Renamed to
8477 get_repl_default_def_ssa_name, return the new SSA name instead of
8478 replacing the old one.
8479 (sra_modify_assign): Dump a message when removing a load, if the LHS
8480 is an SSA_NAME, do not do any propagation, just set the RHS to a
8481 default definition SSA NAME, type convert if necessary.
8482 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
8483
8484 2010-07-22 Richard Guenther <rguenther@suse.de>
8485
8486 PR tree-optimization/45017
8487 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
8488 TYPE_PRECISION of integral types in addition to size.
8489
8490 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
8491
8492 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
8493 when no C library is specified.
8494
8495 2010-07-22 Martin Jambor <mjambor@suse.cz>
8496
8497 * ipa-prop.h (struct ipa_node_params): Updated comment.
8498 (struct ipa_edge_args): Likewise.
8499 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
8500
8501 2010-07-22 Martin Jambor <mjambor@suse.cz>
8502
8503 * cgraphunit.c (verify_edge_count_and_frequency): New function.
8504 (verify_cgraph_node): Verify frequencies of indirect edges.
8505 * tree-inline.c (tree_function_versioning): Update frequencies of
8506 indirect edges.
8507
8508 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8509
8510 PR target/43698
8511 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
8512 Set *arm_rev to be predicable.
8513
8514 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
8515
8516 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
8517 (LINK_COMMAND_SPEC_A): New.
8518 (DSYMUTIL): New.
8519 (DSYMUTIL_SPEC): New.
8520 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
8521 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
8522
8523 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
8524
8525 * calls.c (load_register_parameters): Move check for zero
8526 sized items so that only the call to
8527 mem_overlaps_already_clobbered_arg_p () is protected.
8528
8529 2010-07-22 Jan Hubicka <jh@suse.cz>
8530
8531 * ipa-pure-const.c (varying_state): Break out from ...
8532 (get_function_state): ... here; always return varying_state
8533 when state would be NULL otherwise.
8534 (remove_node_data): Do not free varying state.
8535
8536 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
8537
8538 PR bootstrap/44970
8539 PR middle-end/45009
8540 * postreload.c: Include "target.h".
8541 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
8542 into account.
8543 (fixup_debug_insns): Don't copy the rtx.
8544 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
8545 Don't copy when replacing. Call fixup_debug_insns in the case where
8546 we merged one add with another.
8547 (reload_combine_recognize_pattern): Fail if there aren't any uses.
8548 Try harder to determine whether we're picking a valid index register.
8549 Don't set store_ruid for an insn we're going to scan in the
8550 next iteration.
8551 (reload_combine): Remove unused code.
8552 (reload_combine_note_use): When updating use information for
8553 an old insn, ignore a use that occurs after store_ruid.
8554 * Makefile.in (postreload.o): Update dependencies.
8555
8556 * function.c (record_hard_reg_sets): Restrict the previous change
8557 to cases where the incoming nominal mode is the same as the
8558 incoming promoted mode and everything happens in MODE_INT.
8559
8560 2010-07-21 Jakub Jelinek <jakub@redhat.com>
8561
8562 PR debug/45015
8563 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
8564 ASM_OPERANDS_OUTPUT_IDX.
8565 (adjust_insn): For inline asm with multiple sets ensure first
8566 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
8567 the insn.
8568
8569 2010-07-21 Richard Henderson <rth@redhat.com>
8570
8571 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
8572 comparison for avoiding xmm register saves. Emit the xmm register
8573 saves explicitly.
8574 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
8575 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
8576 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
8577 Remove patterns and the associated splitters.
8578
8579 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
8580
8581 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
8582 and imagine parts of a complex, so that they can have the same
8583 base and fall into the same group.
8584
8585 2010-07-21 Richard Guenther <rguenther@suse.de>
8586
8587 PR lto/45018
8588 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
8589 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
8590 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
8591
8592 2010-07-21 Martin Jambor <mjambor@suse.cz>
8593
8594 PR tree-optimization/44900
8595 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
8596 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
8597
8598 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
8599
8600 PR middle-end/44738
8601 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
8602
8603 2010-07-21 Richard Guenther <rguenther@suse.de>
8604
8605 PR middle-end/45013
8606 * tree-ssa.c (useless_type_conversion_p): Dispatch to
8607 gimple_types_compatible_p only when in lto.
8608 * gimple.c (gimple_types_compatible_p): Use canonical types
8609 to speed up comparison.
8610
8611 2010-07-21 Richard Guenther <rguenther@suse.de>
8612
8613 * tree-flow.h (referenced_var): Move define ...
8614 * tree-flow-inline.h (referenced_var): ... here as an inline
8615 function. Assert here ...
8616 * tree-dfa.c (referenced_var_lookup): ... instead of here.
8617 * tree-ssa.c (maybe_optimize_var): Check if the variable
8618 is in referenced vars.
8619 (execute_update_addresses_taken): Remove old broken check.
8620 * gimple-pretty-print.c (pp_points_to_solution): Use
8621 referenced_var_lookup.
8622 * tree-into-ssa.c (dump_decl_set): Likewise.
8623
8624 2010-07-21 Jakub Jelinek <jakub@redhat.com>
8625
8626 PR debug/45003
8627 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
8628 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
8629 ZERO_EXTEND here.
8630
8631 2010-07-20 Richard Henderson <rth@redhat.com>
8632
8633 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
8634
8635 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
8636
8637 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
8638 computing the sum of the stack pointer and a large constant.
8639 * config/arm/constraints.md (M): Remove superfluous parentheses.
8640 (Pc): New constraint.
8641
8642 2010-07-20 Jakub Jelinek <jakub@redhat.com>
8643
8644 PR debug/45006
8645 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
8646 operand's type if exp is tcc_unary class tree.
8647
8648 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
8649
8650 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
8651 Reverse sense of if_then_else condition.
8652
8653 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
8654
8655 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
8656 * config/rs6000/rs6000.c (rs6000_override_options): Set
8657 rs6000_block_move_inline_limit appropriately.
8658 (expand_block_move): Use rs6000_block_move_inline_limit.
8659 * doc/invoke.texi (mblock-move-inline-limit): Document.
8660
8661 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
8662
8663 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
8664 FROM and TO. All callers changed. Don't look for tracked uses,
8665 just scan the RTL for DEBUG_INSNs and substitute.
8666 (reload_combine_recognize_pattern): Call fixup_debug_insns.
8667 (reload_combine): Ignore DEBUG_INSNs.
8668
8669 2010-07-20 Jakub Jelinek <jakub@redhat.com>
8670
8671 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
8672 depth to 8 from 5.
8673
8674 PR debug/45003
8675 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
8676 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
8677 instead of the result's type.
8678
8679 2010-07-20 Richard Guenther <rguenther@suse.de>
8680
8681 PR tree-optimization/44977
8682 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
8683 SSA form.
8684
8685 2010-07-20 Richard Guenther <rguenther@suse.de>
8686
8687 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
8688 (lto_symtab_merge_decls_2): Likewise.
8689 * gimple.h (gimple_types_compatible_p): Declare.
8690 * gimple.c (gimple_queue_type_fixup): Remove.
8691 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
8692 (gimple_compatible_complete_and_incomplete_type_p): New function.
8693 (gimple_types_compatible_p): Adjust.
8694 (gimple_register_type): Remove type fixup code.
8695 (print_gimple_types_stats): Adjust.
8696 (free_gimple_type_tables): Likewise.
8697 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
8698 * tree-ssa.c (useless_type_conversion_p): Likewise.
8699
8700 2010-07-20 Richard Guenther <rguenther@suse.de>
8701
8702 PR middle-end/44971
8703 PR middle-end/44988
8704 * tree-ssa.c (maybe_optimize_var): New function split out from ...
8705 (execute_update_addresses_taken): ... here.
8706 (non_rewritable_mem_ref_base): Likewise.
8707 (execute_update_addresses_taken): Do not iterate over all referenced
8708 vars but just all local decls and parms.
8709 Properly check call and asm arguments and rewrite call arguments.
8710
8711 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
8712
8713 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
8714 to top level.
8715 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
8716 definitions ...
8717 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
8718 New macro.
8719 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
8720
8721 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8722
8723 * gengtype.c (start_root_entry): New function, split out from
8724 write_root. Check whether V is null and raise an error if so.
8725 (write_field_root): Check for V being null. Don't raise an error here;
8726 set V to null instead.
8727 (write_root): Update comment above function. Use start_root_entry.
8728
8729 2010-07-19 Xinliang David Li <davidxl@google.com>
8730
8731 PR testsuite/44932
8732 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
8733 def edges.
8734 (find_uninit_use): Add dump.
8735 (is_use_properly_guarded): Ditto.
8736 (warn_uninitialized_phi): Ditto.
8737 (execute_late_warn_uninitialized): Ditto.
8738
8739 2010-07-19 Richard Guenther <rguenther@suse.de>
8740
8741 PR middle-end/44941
8742 * expr.c (emit_block_move_hints): Move zero size check first.
8743 Move asserts to more useful places.
8744 * calls.c (load_register_parameters): Check for zero size.
8745
8746 2010-07-19 Richard Henderson <rth@redhat.com>
8747
8748 * tree-optimize.c (execute_all_early_local_passes): New. Change
8749 cgraph_state here ...
8750 (execute_early_local_optimizations): ... not here. Remove.
8751 (pass_early_local_passes, pass_all_early_optimizations): Update.
8752
8753 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
8754
8755 * postreload.c (reload_combine_closest_single_use): Ignore the
8756 number of uses for DEBUG_INSNs.
8757 (fixup_debug_insns): New static function.
8758 (reload_combine_recognize_const_pattern): Use it. Don't let the
8759 main loop be affected by DEBUG_INSNs.
8760 Really disallow moving adds past a jump insn.
8761 (reload_combine_recognize_pattern): Don't update use_ruid here.
8762 (reload_combine_note_use): Do it here.
8763 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
8764
8765 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
8766
8767 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
8768 of a loop.
8769 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
8770
8771 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
8772
8773 * config/i386/darwin.h: Define darwin_emit_branch_islands.
8774 (TARGET_MACHO_BRANCH_ISLANDS): New.
8775 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
8776 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
8777 default value.
8778 * config/i386/i386.c (output_pic_addr_const): Do not emit
8779 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
8780 (x86_output_mi_thunk): Adjust symbol creation.
8781 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
8782 Remove out of date comment.
8783 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
8784 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
8785 (DARWIN_GENERATE_ISLANDS): Ditto.
8786 (output_call): Do not emit branch islands unless
8787 darwin_emit_branch_islands is set.
8788 * config/darwin.c: Declare darwin_emit_branch_islands.
8789 (machopic_indirect_data_reference): Do not emit unless
8790 darwin_emit_branch_islands is set.
8791 (darwin_override_options): Set darwin_emit_branch_islands
8792 where it is needed.
8793 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
8794
8795 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8796
8797 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8798 sse_runtime, sse2_runtime.
8799
8800 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
8801
8802 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
8803 low half of a single-register SCmode return value before ORing
8804 it with the high half.
8805 * config/mips/mips16.S (MERGE_GPRf): Likewise.
8806
8807 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8808
8809 PR target/44805
8810 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
8811 on all targets.
8812
8813 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
8814
8815 PR target/42235
8816 * postreload.c (reload_cse_move2add): Return bool, true if anything.
8817 changed. All callers changed.
8818 (move2add_use_add2_insn): Likewise.
8819 (move2add_use_add3_insn): Likewise.
8820 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
8821 reload_combine.
8822 (RELOAD_COMBINE_MAX_USES): Bump to 16.
8823 (last_jump_ruid): New static variable.
8824 (struct reg_use): New members CONTAINING_MEM and RUID.
8825 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
8826 (reload_combine_split_one_ruid, reload_combine_split_ruids,
8827 reload_combine_purge_insn_uses, reload_combine_closest_single_use
8828 reload_combine_purge_reg_uses_after_ruid,
8829 reload_combine_recognize_const_pattern): New static functions.
8830 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
8831 is true for our reg and that we have available index regs.
8832 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
8833 callers changed. Use them to initialize fields in struct reg_use.
8834 (reload_combine): Initialize last_jump_ruid. Be careful when to
8835 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
8836 Call reload_combine_recognize_const_pattern.
8837 (reload_combine_note_store): Update REAL_STORE_RUID field.
8838
8839 2010-07-16 Jason Merrill <jason@redhat.com>
8840
8841 * Makefile.in (opts-common.o): Depend on options.h.
8842
8843 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
8844
8845 * tree.c (build_common_builtin_nodes): Use build_function_type_list
8846 instead of build_function_type.
8847 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
8848 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
8849
8850 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
8851
8852 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
8853 do all the work.
8854 (rs6000_emit_int_cmove): Use function pointers for insn generation.
8855 Don't force values into registers unnecessarily.
8856 (output_isel): Assert that we're not given conditions we can't handle.
8857 Delete corresponding code.
8858 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
8859 scc_comparison_operator constraint. Permit 0 for the consequent
8860 operand. Permit any GPR for the alternative operand.
8861 (isel_unsigned_<mode>): Likewise.
8862
8863 2010-07-16 Jakub Jelinek <jakub@redhat.com>
8864
8865 PR target/44942
8866 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
8867 argument to const_tree.
8868 * config/i386/i386.c (function_arg_advance): If padding needs to be
8869 inserted before argument, increment cum->words by number of padding
8870 words as well.
8871 (contains_aligned_value_p): Change argument to const_tree.
8872 (ix86_function_arg_boundary): Change second argument to const_tree.
8873
8874 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
8875
8876 PR target/42235
8877 * function.c (record_hard_reg_sets): New static function.
8878 (assign_parm_setup_reg): If an optab for extending exists and the
8879 generated code clobbbers no hard regs, emit the insn directly and
8880 create a REG_EQUIV note.
8881
8882 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
8883
8884 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
8885 TREE_CHAIN.
8886 * c-typeck.c (push_init_level): Likewise.
8887 (process_init_element): Likewise.
8888
8889 2010-07-15 Anatoly Sokolov <aesok@post.ru>
8890
8891 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
8892 (integer_three_node): Add.
8893 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
8894 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
8895 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
8896 of call build_int_cst.
8897 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
8898 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
8899 (find_interesting_uses_address): Ditto.
8900 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
8901 * tree-eh.c (lower_eh_constructs_2): Ditto.
8902 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
8903 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
8904 * expmed.c (expand_divmod): Ditto.
8905 * tree-mudflap.c (mx_register_decls): Ditto.
8906 * varasm.c (array_size_for_constructor): Ditto.
8907 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
8908 * c-parser.c (c_parser_postfix_expression): Ditto.
8909
8910 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
8911
8912 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
8913 New static variables.
8914 (reload_combine_recognize_pattern): New static function, broken out
8915 of reload_combine.
8916 (reload_combine): Use it. Only initialize first_index_reg and
8917 last_index_reg once.
8918
8919 2010-07-15 Richard Henderson <rth@redhat.com>
8920
8921 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
8922 when done.
8923
8924 2010-07-15 Jan Hubicka <jh@suse.cz>
8925
8926 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
8927 comdats for broken gold.
8928 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
8929
8930 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
8931
8932 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
8933
8934 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
8935
8936 * tree.h (DECL_CHAIN): Define.
8937 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
8938 * c-decl.c: Likewise.
8939 * c-parser.c: Likewise.
8940 * c-typeck.c: Likewise.
8941 * cfgexpand.c: Likewise.
8942 * cgraph.c: Likewise.
8943 * cgraphunit.c: Likewise.
8944 * combine.c: Likewise.
8945 * config/alpha/alpha.c: Likewise.
8946 * config/arm/arm.c: Likewise.
8947 * config/frv/frv.c: Likewise.
8948 * config/i386/i386.c: Likewise.
8949 * config/i386/winnt-cxx.c: Likewise.
8950 * config/ia64/ia64.c: Likewise.
8951 * config/iq2000/iq2000.c: Likewise.
8952 * config/mep/mep.c: Likewise.
8953 * config/mips/mips.c: Likewise.
8954 * config/pa/som.h: Likewise.
8955 * config/rs6000/rs6000.c: Likewise.
8956 * config/s390/s390.c: Likewise.
8957 * config/sh/sh.c: Likewise.
8958 * config/sh/symbian-cxx.c: Likewise.
8959 * config/sparc/sparc.c: Likewise.
8960 * config/spu/spu.c: Likewise.
8961 * config/stormy16/stormy16.c: Likewise.
8962 * config/vxworks.c: Likewise.
8963 * config/xtensa/xtensa.c: Likewise.
8964 * coverage.c: Likewise.
8965 * dbxout.c: Likewise.
8966 * dwarf2out.c: Likewise.
8967 * emit-rtl.c: Likewise.
8968 * expr.c: Likewise.
8969 * function.c: Likewise.
8970 * gimple-low.c: Likewise.
8971 * gimple-pretty-print.c: Likewise.
8972 * gimplify.c: Likewise.
8973 * integrate.c: Likewise.
8974 * ipa-inline.c: Likewise.
8975 * ipa-prop.c: Likewise.
8976 * ipa-split.c: Likewise.
8977 * ipa-struct-reorg.c: Likewise.
8978 * ipa-type-escape.c: Likewise.
8979 * langhooks.c: Likewise.
8980 * lto-cgraph.c: Likewise.
8981 * omp-low.c: Likewise.
8982 * stor-layout.c: Likewise.
8983 * tree-cfg.c: Likewise.
8984 * tree-complex.c: Likewise.
8985 * tree-dfa.c: Likewise.
8986 * tree-dump.c: Likewise.
8987 * tree-inline.c: Likewise.
8988 * tree-mudflap.c: Likewise.
8989 * tree-nested.c: Likewise.
8990 * tree-object-size.c: Likewise.
8991 * tree-pretty-print.c: Likewise.
8992 * tree-sra.c: Likewise.
8993 * tree-ssa-live.c: Likewise.
8994 * tree-ssa-loop-niter.c: Likewise.
8995 * tree-ssa-math-opts.c: Likewise.
8996 * tree-ssa-reassoc.c: Likewise.
8997 * tree-ssa-sccvn.c: Likewise.
8998 * tree-ssa-structalias.c: Likewise.
8999 * tree-tailcall.c: Likewise.
9000 * tree-vrp.c: Likewise.
9001 * tree.c: Likewise.
9002 * var-tracking.c: Likewise.
9003 * varasm.c: Likewise.
9004
9005 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9006
9007 PR target/44877
9008 * config/spu/spu.c (spu_expand_builtin_1): Allow references
9009 (as well as pointers) as argument to mask_for_load builtins.
9010
9011 2010-07-15 Richard Guenther <rguenther@suse.de>
9012
9013 PR tree-optimization/44946
9014 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
9015 with accessing only padding properly.
9016
9017 2010-07-15 Jan Hubicka <jh@suse.cz>
9018
9019 * ipa.c (function_and_variable_visibility): Variables marked as used
9020 should not be localized.
9021
9022 2010-07-15 Jan Hubicka <jh@suse.cz>
9023
9024 * cgraph.c: Include lto-streamer.h
9025 (change_decl_assembler_name): Work when assembler name hash is at place.
9026 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
9027 be sure to rename it to avoid name clash.
9028 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
9029 Localize hidden symbols only when locally defined.
9030
9031 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
9032
9033 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
9034
9035 2010-07-15 Magnus Granberg <zorry@gentoo.org>
9036 Kevin F. Quinn <kevquinn@gentoo.org>
9037
9038 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
9039 * common.opt: Add -Wtrampolines.
9040 * doc/invoke.texi: Add -Wtrampolines.
9041
9042 2010-07-15 Jie Zhang <jie@codesourcery.com>
9043
9044 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
9045 cortex_a8_issue_ls.
9046
9047 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
9048
9049 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
9050 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
9051
9052 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9053
9054 * config/spu/spu.c (reg_names): Remove prototype.
9055 (call_used_regs): Likewise.
9056
9057 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
9058
9059 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
9060 "unused" with attribute "used".
9061 (__JCR_END__): Likewise.
9062 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
9063 "used" attribute.
9064 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
9065
9066 2010-07-14 Richard Guenther <rguenther@suse.de>
9067
9068 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
9069 (maybe_fixup_decls): Likewise.
9070 (input_gimple_stmt): Do not fixup anything.
9071 * lto-streamer-out.c (output_gimple_stmt): Make sure all
9072 non-automatic variable uses are wrapped inside a MEM_REF.
9073
9074 2010-07-14 Richard Henderson <rth@redhat.com>
9075
9076 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
9077 for functions.
9078 * varasm.c (assemble_variable): Remove early exit for functions;
9079 assert that we're given a variable.
9080
9081 2010-07-14 Jie Zhang <jie@codesourcery.com>
9082
9083 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
9084 cortex_a8_default when neon_type is not none.
9085
9086 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
9087
9088 * lower-subreg.c (subreg_context): New static bitmap.
9089 (decompose_multiword_subregs): Allocate and free it.
9090 (find_decomposable_subregs): Set a bit in it for a register that
9091 occurs in a subreg that changes mode but not size.
9092 (can_decompose_p): Test it instead of non_decomposable_context.
9093
9094 2010-07-14 Richard Guenther <rguenther@suse.de>
9095
9096 PR tree-optimization/44824
9097 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
9098 is_gimple_mem_ref_addr.
9099 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
9100 non-decl_address_invariant_p addresses.
9101
9102 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
9103
9104 * reload.c (find_reloads): Revert code to penalize small register
9105 classes that was brought in with the IRA merge.
9106
9107 2010-07-14 Richard Guenther <rguenther@suse.de>
9108
9109 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
9110 as base of ARRAY_REFs.
9111
9112 2010-07-14 Richard Guenther <rguenther@suse.de>
9113
9114 PR middle-end/44930
9115 * tree-pretty-print.c (do_niy): Do not print a newline.
9116
9117 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
9118
9119 * ira-int.h (struct ira_object): New.
9120 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
9121 (struct ira_allocno): Remove members min, max,
9122 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
9123 conflict_allocnos_num and conflict_vec_p. Add new member object.
9124 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
9125 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
9126 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
9127 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
9128 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
9129 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
9130 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
9131 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
9132 an ira_object_t rather than ira_allocno_t. All uses changed.
9133 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9134 contains a vector of ira_object_t; all uses changed.
9135 (ira_objects_num): Declare variable.
9136 (ira_create_allocno_object): Declare function.
9137 (ira_conflict_vector_profitable_p): Adjust prototype.
9138 (ira_allocate_conflict_vec): Renamed from
9139 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
9140 (ira_allocate_object_conflicts): Renamed from
9141 ira_allocate_allocno_conflicts; first arg now ira_object_t.
9142 (struct ira_object_iterator): New.
9143 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
9144 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
9145 to conflict_vec_p. All uses changed.
9146 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
9147 Changed to take into account that conflicts are now tracked for
9148 objects.
9149 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
9150 Args changed to accept ira_object_t. All uses changed.
9151 (allocnos_conflict_p): New static function.
9152 (collected_conflict_objects): Renamed from collected_allocno_objects;
9153 now a vector of ira_object_t. All uses changed.
9154 (build_conflict_bit_table): Changed to take into account that
9155 conflicts are now tracked for objects.
9156 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
9157 (print_allocno_conflicts, ira_build_conflicts): Likewise.
9158 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
9159 setup_allocno_left_conflicts_size, allocno_reload_assign,
9160 fast_allocation): Likewise.
9161 * ira-lives.c (make_hard_regno_born, make_allocno_born)
9162 process_single_reg_class_operands, process_bb_node_lives): Likewise.
9163 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
9164 Likewise.
9165 * ira-build.c (ira_objects_num): New variable.
9166 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9167 contains a vector of ira_object_t; all uses changed.
9168 (ira_object_id_map_vec): Corresponding change.
9169 (object_pool): New static variable.
9170 (initiate_allocnos): Initialize it.
9171 (finish_allocnos): Free it.
9172 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
9173 New functions.
9174 (ira_create_allocno): Don't set members that were removed.
9175 (ira_set_allocno_cover_class): Don't change conflict hard regs.
9176 (merge_hard_reg_conflicts): Changed to take into account that
9177 conflicts are now tracked for objects.
9178 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
9179 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
9180 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
9181 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
9182 setup_min_max_conflict_allocno_ids, ): Likewise.
9183 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
9184 to ira_object_t; all callers changed.
9185 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
9186 to ira_object_t, all callers changed.
9187 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
9188 to ira_object_t, all callers changed.
9189 (conflict_check, curr_conflict_check_tick): Renamed from
9190 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
9191 changed.
9192 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
9193 arg changed to ira_object_t, all callers changed.
9194 (create_cap_allocno): Call ira_create_allocno_object.
9195 (finish_allocno): Free the corresponding object.
9196 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
9197 callers changed. Adjusted for dealing with objects.
9198 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
9199 dealing with objects.
9200 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
9201
9202 * ira-int.h (struct live_range): Rename allocno member to object
9203 and change type to ira_object_t.
9204 (struct ira_object): New member live_ranges.
9205 (struct ira_allocno): Remove member live_ranges.
9206 (ALLOCNO_LIVE_RANGES): Remove.
9207 (OBJECT_LIVE_RANGES): New macro.
9208 (ira_create_live_range, ira_copy_live_range_list,
9209 ira_merge_live_range_list, ira_live_ranges_intersect_p,
9210 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
9211 * ira-build.c (ira_create_object): Initialize live ranges here.
9212 (ira_create_allocno): Not here.
9213 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
9214 changed to ira_object_t, all callers changed.
9215 (copy_live_range): Rename from copy_allocno_live_range, all callers
9216 changed.
9217 (ira_copy_live_range_list): Rename from
9218 ira_copy_allocno_live_range_list, all callers changed.
9219 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
9220 all callers changed.
9221 (ira_live_ranges_intersect_p): Rename from
9222 ira_allocno_live_ranges_intersect_p, all callers changed.
9223 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
9224 callers changed.
9225 (ira_finish_live_range_list): Rename from
9226 ira_finish_allocno_live_range_list, all callers changed.
9227 (change_object_in_range_list): Rename from change_allocno_in_range_list,
9228 last arg changed to ira_object_t, all callers changed.
9229 (finish_allocno): Changed to expect live ranges in the allocno's object.
9230 (move_allocno_live_ranges, copy_allocno_live_ranges,
9231 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
9232 ira_flattening, ira_build): Likewise.
9233 * ira-color.c (allocnos_have_intersected_live_ranges_p,
9234 slot_coalesced_allocno_live_ranges_intersect,
9235 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
9236 * ira-conflicts.c (build_conflict_bit_table): Likewise.
9237 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
9238 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
9239 make_allocno_dead, create_start_finish_chains,
9240 remove_some_program_points_and_update_live_ranges,
9241 ira_debug_live_range_list): Likewise.
9242
9243 * ira-int.h (ira_object_conflict_iterator): Rename from
9244 ira_allocno_conflict_iterator.
9245 (ira_object_conflict_iter_init): Rename from
9246 ira_allocno_conflict_iter_init, second arg changed to
9247 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
9248 FOR_EACH_ALLOCNO_CONFLICT.
9249 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
9250 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
9251 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
9252 * ira-conflicts.c (print_allocno_conflicts): Likewise.
9253
9254 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
9255
9256 PR other/44874
9257 * tree-dump.c (dump_options): Add enumerate_locals entry.
9258 Add TDF_NOID exclusion to all entry.
9259 * tree-dump.h (dump_enumerated_decls): Declare.
9260 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
9261 Don't display type uid.
9262 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
9263 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
9264 * tree-ssa-live.c: Include gimple.h.
9265 (numbered_tree_d): New struct.
9266 (numbered_tree): New typedef.
9267 (DEF_VEC_O (numbered_tree): New.
9268 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
9269 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
9270 (dump_enumerated_decls): Likewise.
9271 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
9272 debug info and flag_dump_final_insns, call dump_enumerated_decls.
9273 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
9274 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
9275
9276 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
9277
9278 * expmed.h (MAX_BITS_PER_WORD): Move to...
9279 * defaults.h (MAX_BITS_PER_WORD): ...here.
9280
9281 2010-07-13 DJ Delorie <dj@redhat.com>
9282
9283 * config/h8300/h8300.c (h8300_init_once): Default to
9284 -fstrict_volatile_bitfields.
9285
9286 * config/sh/sh.c (sh_override_options): Default to
9287 -fstrict_volatile_bitfields.
9288
9289 * config/rx/rx.c (rx_option_override): New.
9290
9291 * config/m32c/m32c.c (m32c_override_options): Default to
9292 -fstrict_volatile_bitfields.
9293
9294 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
9295
9296 * tree.h (build_function_call_expr): Delete.
9297 (build_call_expr_loc_array): New function.
9298 (build_call_expr_loc_vec): New function.
9299 * tree-flow.h (struct omp_region): Change type of ws_args field
9300 to a VEC.
9301 * builtins.c (build_function_call_expr): Delete.
9302 (build_call_expr_loc_array): New function.
9303 (build_call_expr_loc): Call it. Use XALLOCAVEC.
9304 (build_call_expr): Likewise.
9305 (build_call_expr_loc_vec): New function.
9306 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
9307 build_function_call_expr.
9308 * expr.c (emutls_var_address): Likewise.
9309 * varasm.c (emutls_common_1): Likewise.
9310 * omp-low.c (expand_omp_atomic_mutex): Likewise.
9311 (expand_omp_taskreg): Adjust for new type of region->ws_args.
9312 (get_ws_args_for): Return a VEC instead of a tree.
9313 (expand_parallel_call): Call build_call_expr_loc_vec instead of
9314 build_function_call_expr.
9315 * stor-layout.c (self_referential_size): Likewise.
9316
9317 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9318
9319 PR testsuite/44701
9320 * recog.c (constrain_operands): Allow side-effects in memory
9321 operands if either < or > constraint is used, rather than if
9322 both < and > is used.
9323
9324 2010-07-13 Richard Guenther <rguenther@suse.de>
9325
9326 PR middle-end/44911
9327 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
9328 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
9329 without name.
9330
9331 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
9332
9333 PR target/44761
9334 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
9335 to variable emited.
9336 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
9337 * config/sh/sh.md (symGOT_load): Likewise.
9338 (symDTPOFF2reg): Likewise.
9339 (symTPOFF2reg): Likewise.
9340
9341 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9342
9343 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
9344 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
9345
9346 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9347
9348 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
9349 explanation.
9350 Find ucontext_t * on Solaris 11.
9351 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
9352 Handle new Solaris 11 __sighndlr patterns.
9353
9354 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9355
9356 PR debug/44901
9357 * vec.h (VEC_block_remove): Fix comment.
9358 * tree-ssa-live.c (remove_unused_locals): Don't use
9359 VEC_unordered_remove on local_decls, instead replace a single
9360 vector element in each iteration if at least one element had
9361 to be removed and VEC_truncate at the end.
9362 * omp-low.c (expand_omp_taskreg): Likewise.
9363
9364 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
9365
9366 * c-decl.c (finish_function): Fix typo in comment.
9367
9368 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
9369
9370 PR bootstrap/44921
9371 * postreload.c (move2add_use_add3_insn): Silence gcc warning
9372 on min_regno.
9373
9374 2010-07-12 Jakub Jelinek <jakub@redhat.com>
9375
9376 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
9377 (simplify_stmt_using_ranges): Use it.
9378
9379 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9380
9381 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
9382 member. Do not mark as GTY(()).
9383 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
9384 (spu_builtin_decls): New static variable.
9385 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
9386 (spu_init_builtins): Likewise.
9387 (spu_builtin_mul_widen_even): Likewise.
9388 (spu_builtin_mul_widen_odd): Likewise.
9389 (spu_builtin_mask_for_load): Likewise.
9390 (spu_builtin_vec_perm): Likewise.
9391 * config/spu/spu-c.c: Include "target.h".
9392 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
9393 of using spu_builtins[].fndecl.
9394
9395 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9396
9397 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
9398 imply -minterlink-mips16.
9399
9400 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9401
9402 * config/mips/mips.h (mips16_globals): Declare.
9403 (SWITCHABLE_TARGET): Define.
9404 * config/mips/mips.c: Include target-globals.h.
9405 (mips16_globals): New variable.
9406 (mips_set_mips16_mode): Use save_target_globals and
9407 restore_target_globals instead of target_reinit.
9408
9409 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9410
9411 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
9412 to say that the function can be called more than once.
9413 * target-globals.c (save_target_globals): Call init_reg_sets.
9414
9415 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9416
9417 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
9418 * bb-reorder.h: New file.
9419 * bb-reorder.c (default_target_bb_reorder): New variable.
9420 (this_target_bb_reorder): New conditional variable.
9421 (uncond_jump_length): Redefine as a macro.
9422 * target-globals.h (this_target_bb_reorder): Declare.
9423 (target_globals): Add a bb_reorder field.
9424 (restore_target_globals): Copy the bb_reorder field to
9425 this_target_bb-reorder.
9426 * target-globals.c: Include bb-reorder.h.
9427 (default_target_globals): Initialize the bb_reorder field.
9428 (save_target_globals): Likewise.
9429
9430 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9431
9432 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
9433 * gcse.h: New file.
9434 * gcse.c: Include gcse.h.
9435 (default_target_gcse): New variable.
9436 (this_target_gcse): New conditional variable.
9437 (can_copy): Redefine as a macro.
9438 (can_copy_init_p): New macro.
9439 (can_copy_p): Remove can_copy_init_p.
9440 * target-globals.h (this_target_gcse): Declare.
9441 (target_globals): Add a gcse field.
9442 (restore_target_globals): Copy the gcse field to this_target_gcse.
9443 * target-globals.c: Include gcse.h.
9444 (default_target_globals): Initialize the gcse field.
9445 (save_target_globals): Likewise.
9446
9447 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9448
9449 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
9450 and x_ira_prohibited_mode_move_regs_initialized_p.
9451 (ira_prohibited_mode_move_regs): Redefine as a macro.
9452 * ira.c (ira_prohibited_mode_move_regs): Delete.
9453 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
9454
9455 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9456
9457 * reload.h (target_reload): Add x_cached_reg_save_code and
9458 x_cached_reg_restore_code.
9459 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
9460 Redefine as macros.
9461
9462 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9463
9464 * Makefile.in (target-globals.o): Depend on builtins.h.
9465 * builtins.h: New file.
9466 * builtins.c: Include builtins.h.
9467 (default_target_builtins): New variable.
9468 (this_target_builtins): New conditional variable.
9469 (apply_args_mode, apply_result_mode): Redefine as macros.
9470 * target-globals.h (this_target_builtins): Declare.
9471 (target_globals): Add a builtins field.
9472 (restore_target_globals): Copy the builtins field to
9473 this_target_builtins.
9474 * target-globals.c: Include builtins.h.
9475 (default_target_globals): Initialize the builtins field.
9476 (save_target_globals): Likewise.
9477
9478 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9479
9480 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
9481 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
9482 from expmed.c.
9483 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
9484 (alg_hash, alg_hash_used_p): New macros.
9485 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
9486 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
9487 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
9488
9489 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9490
9491 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
9492 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
9493 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
9494 (this_op_costs, costs_classes): Redefine as macros.
9495 (record_reg_classes): Don't take op_costs as a parameter.
9496 (record_operand_costs): Likewise. Update calls to record_reg_classes.
9497 (scan_one_insn): Update call to record_operand_costs.
9498
9499 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9500
9501 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
9502 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
9503 (target_ira_int): New structure.
9504 (default_target_ira_int): Declare.
9505 (this_target_ira_int): Declare as a variable or define as a macro.
9506 (ira_reg_mode_hard_regset, ira_register_move_cost)
9507 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
9508 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
9509 (prohibited_class_mode_regs, ira_important_classes_num)
9510 (ira_important_classes, ira_reg_class_intersect)
9511 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
9512 (ira_reg_class_union): Redefine as macros.
9513 * ira.h (target_ira): New structure.
9514 (default_target_ira): Declare.
9515 (this_target_ira): Declare as a variable or define as a macro.
9516 (ira_available_class_regs, ira_hard_regno_cover_class)
9517 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
9518 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
9519 (ira_class_hard_regs_num): Redefine as macros.
9520 * ira.c (default_target_ira, default_target_ira_int): New variables.
9521 (this_target_ira, this_target_ira_int): New conditional variables.
9522 (ira_reg_mode_hard_regset, ira_memory_move_cost)
9523 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
9524 (ira_class_subset_p): Delete.
9525 (no_unit_alloc_regs): Redefine as a macro.
9526 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
9527 (ira_class_hard_regs_num, ira_class_hard_reg_index)
9528 (ira_available_class_regs): Delete.
9529 (alloc_reg_class_subclasses): Redefine as a macro.
9530 (ira_reg_class_cover_size, ira_reg_class_cover)
9531 (ira_important_classes_num, ira_important_classes)
9532 (ira_important_class_nums, ira_class_translate): Delete.
9533 (cover_class_order): Document the variable's lifetime.
9534 (reorder_important_classes): Don't set ira_important_class_nums.
9535 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
9536 (ira_reg_class_super_classes, ira_reg_class_union)
9537 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
9538 Delete.
9539 (setup_reg_class_nregs): Don't set ira_max_regs.
9540 (prohibited_class_mode_regs): Delete.
9541 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
9542 (target_globals): Add ira and ira_int fields.
9543 (restore_target_globals): Copy the ira field to this_target_ira
9544 and the ira_int field to this_target_ira_int.
9545 * target-globals.c: Include ira-int.h.
9546 (default_target_globals): Initialize the ira and ira_int fields.
9547 (save_target_globals): Likewise.
9548
9549 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9550
9551 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
9552 * cfgloop.h (target_cfgloop): New structure.
9553 (default_target_cfgloop): Declare.
9554 (this_target_cfgloop): Declare as a variable or define as a macro.
9555 (target_avail_regs, target_clobbered_regs, target_res_regs)
9556 (target_reg_cost, target_spill_cost): Redefine as macros.
9557 * cfgloopanal.c (default_target_cfgloop): New variable.
9558 (this_target_cfgloop): New conditional variable.
9559 (target_avail_regs, target_clobbered_regs, target_res_regs)
9560 (target_reg_cost, target_spill_cost): Delete.
9561 * target-globals.h (this_target_cfgloop): Declare.
9562 (target_globals): Add a cfgloop field.
9563 (restore_target_globals): Copy the cfgloop field to
9564 this_target_cfgloop.
9565 * target-globals.c: Include cfgloop.h.
9566 (default_target_globals): Initialize the cfgloop field.
9567 (save_target_globals): Likewise.
9568
9569 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9570
9571 * regs.h (target_regs): Add x_direct_load, x_direct_store and
9572 x_float_extend_from_mem.
9573 (direct_load, direct_store, float_extend_from_mem): New macros.
9574 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
9575
9576 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9577
9578 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
9579 (target-globals.o): Depend on $(LIBFUNCS_H).
9580 * libfuncs.h: Include hashtab.h.
9581 (libfunc_entry): Moved from optabs.c.
9582 (target_libfuncs): New structure.
9583 (default_target_libfuncs): Declare.
9584 (this_target_libfuncs): Declare as a variable or define as a macro.
9585 (libfunc_table): Redefine as a macro.
9586 * optabs.c (default_target_libfuncs): New variable.
9587 (this_target_libfuncs): New conditional variable.
9588 (libfunc_table): Delete.
9589 (libfunc_entry): Moved to optabs.h.
9590 (libfunc_hash): Redefine as a macro.
9591 (hash_libfunc, eq_libfunc): Fix comments.
9592 (init_optabs): Use libfunc_hash to detect cases where the function
9593 has already been called. Clear the hash table instead of
9594 recreating it.
9595 * target-globals.h (this_target_libfuncs): Declare.
9596 (target_globals): Add a libfuncs field.
9597 (restore_target_globals): Copy the libfuncs field to
9598 this_target_libfuncs.
9599 * target-globals.c: Include libfuncs.h.
9600 (default_target_globals): Initialize the libfuncs field.
9601 (save_target_globals): Likewise.
9602
9603 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9604
9605 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
9606 in all dependency lists.
9607
9608 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9609
9610 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
9611 * optabs.h (target_optabs): New structure.
9612 (default_target_optabs): Declare.
9613 (this_target_optabs): Declare as a variable or define as a macro.
9614 (optab_table, convert_optab_table, direct_optab_table): Redefine
9615 as macros.
9616 * optabs.c (default_target_optabs): New variable.
9617 (this_target_optabs): New conditional variable.
9618 (optab_table, convert_optab_table, direct_optab_table): Delete.
9619 * target-globals.h (this_target_optabs): Declare.
9620 (target_globals): Add a optabs field.
9621 (restore_target_globals): Copy the optabs field to
9622 this_target_optabs.
9623 * target-globals.c: Include expr.h and optabs.h.
9624 (default_target_globals): Initialize the optabs field.
9625 (save_target_globals): Likewise.
9626
9627 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9628
9629 * flags.h (target_flagstate): Add x_flag_excess_precision.
9630 (flag_excess_precision): Redefine as a macro.
9631 * toplev.c (flag_excess_precision): Delete.
9632
9633 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9634
9635 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
9636 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
9637 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
9638 (no_caller_save_reg_set): Redefine as a macro.
9639 * reload.h (target_reload): Add x_caller_save_initialized_p and
9640 x_regno_save_mode.
9641 (caller_save_initialized_p): Redefine as a macro.
9642 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
9643 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
9644 (regno_save_mode): Redefine as a macro.
9645
9646 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9647
9648 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
9649 * expmed.h: New file.
9650 * expmed.c (default_target_costs): New variable.
9651 (this_target_costs): New conditional variable.
9652 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
9653 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
9654 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
9655 * target-globals.h (this_target_expmed): Declare.
9656 (target_globals): Add a expmed field.
9657 (restore_target_globals): Copy the expmed field to
9658 this_target_expmed.
9659 * target-globals.c: Include expmed.h.
9660 (default_target_globals): Initialize the expmed field.
9661 (save_target_globals): Likewise.
9662
9663 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9664
9665 * Makefile.in (target-globals.o): Depend on reload.h.
9666 * reload.h (target_reload): New structure.
9667 (default_target_reload): Declare.
9668 (this_target_reload): Declare as a variable or define as a macro.
9669 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
9670 * reload1.c (default_target_reload): New variable
9671 (this_target_reload): New conditional variable.
9672 (indirect_symref_ok, double_reg_address_ok): Delete.
9673 (spill_indirect_levels): Redefine as a macro.
9674 * target-globals.h (this_target_reload): Declare.
9675 (target_globals): Add a reload field.
9676 (restore_target_globals): Copy the reload field to
9677 this_target_reload.
9678 * target-globals.c: Include hard-reg-set.h.
9679 (default_target_globals): Initialize the reload field.
9680 (save_target_globals): Likewise.
9681
9682 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9683
9684 * rtl.h (target_rtl): Add x_static_reg_base_value.
9685 * alias.c (static_reg_base_value): Redefine as a macro.
9686
9687 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9688
9689 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
9690 (GTFILES): Remove reginfo.c.
9691 * rtl.h (target_rtl): Add x_top_of_stack.
9692 (top_of_stack): New macro.
9693 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
9694 (top_of_stack): Delete.
9695
9696 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9697
9698 * regs.h (target_regs): Add x_hard_regs_of_mode,
9699 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
9700 x_may_move_out_cost and x_last_mode_for_init_move_cost.
9701 (have_regs_of_mode, contains_reg_of_mode, move_cost)
9702 (may_move_in_cost, may_move_out_cost): Redefine as macros.
9703 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
9704 (may_move_in_cost, may_move_out_cost): Delete.
9705 (last_mode_for_init_move_cost): Redefine as a macro.
9706
9707 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9708
9709 * hard-reg-set.h (target_hard_regs): New structure.
9710 (default_target_hard_regs): Declare.
9711 (this_target_hard_regs): Declare as a variable or define as a macro.
9712 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
9713 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
9714 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
9715 (reg_class_size, reg_class_subclasses, reg_class_subunion)
9716 (reg_class_superunion, reg_names): Redefine as macros.
9717 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
9718 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
9719 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
9720 (reg_class_contents, reg_class_size, reg_class_subclasses)
9721 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
9722 (default_target_hard_regs): New variable
9723 (this_target_hard_regs, initial_call_really_used_regs)
9724 (initial_reg_alloc_order): New conditional variables.
9725 (initial_reg_names): New variable.
9726 (init_reg_sets): Assert that initial_call_really_used_regs,
9727 initial_reg_alloc_order and initial_reg_names
9728 are all the same size as their variable counterparts. Use them to
9729 initialize those counterparts.
9730 * target-globals.h (this_target_hard_regs): Declare.
9731 (target_globals): Add a hard_regs field.
9732 (restore_target_globals): Copy the hard_regs field to
9733 this_target_hard_regs.
9734 * target-globals.c: Include hard-reg-set.h.
9735 (default_target_globals): Initialize the hard_regs field.
9736 (save_target_globals): Likewise.
9737
9738 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9739
9740 * Makefile.in (target-globals.o): Depend on $(RTL_H).
9741 * rtl.h (target_rtl): New structure.
9742 (default_target_rtl): Declare.
9743 (this_target_rtl): Declare as a variable or define as a macro.
9744 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
9745 Redefine as macros.
9746 * emit-rtl.c (default_target_rtl): New variable.
9747 (this_target_rtl): New conditional variable.
9748 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
9749 (return_address_pointer_rtx): Delete.
9750 (initial_regno_reg_rtx): New macro.
9751 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
9752 (init_emit_regs): Likewise.
9753 * target-globals.h (this_target_rtl): Declare.
9754 (target_globals): Add a rtl field.
9755 (restore_target_globals): Copy the rtl field to this_target_rtl.
9756 * target-globals.c: Include rtl.h.
9757 (default_target_globals): Initialize the rtl field.
9758 (save_target_globals): Likewise.
9759
9760 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9761
9762 * Makefile.in (target-globals.o): Depend on $(REGS_H).
9763 * regs.h (target_reg_modes): New structure.
9764 (default_target_reg_modes): Declare.
9765 (this_target_reg_modes): Declare as a variable or define as a macro.
9766 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
9767 * reginfo.c (default_target_reg_modes): New variable.
9768 (this_target_reg_modes): New conditional variable.
9769 (hard_regno_nregs, reg_raw_mode): Delete.
9770 * target-globals.h (this_target_regs): Declare.
9771 (target_globals): Add a regs field.
9772 (restore_target_globals): Copy the regs field to this_target_regs.
9773 * target-globals.c: Include regs.h.
9774 (default_target_globals): Initialize the regs field.
9775 (save_target_globals): Likewise.
9776
9777 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9778
9779 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
9780 * doc/tm.texi: Regenerate.
9781 * Makefile.in (OBJS-common): Add target-globals.o.
9782 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
9783 and target-globals.h.
9784 (target-globals.o): New rule.
9785 (GTFILES): Include $(srcdir)/target-globals.h.
9786 * defaults.h (SWITCHABLE_TARGET): Define.
9787 * gengtype.c (open_base_files): Add target-globals.h to the
9788 list of includes.
9789 * target-globals.h: New file.
9790 * target-globals.c: Likewise.
9791
9792 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
9793 * flags.h (target_flag_state): New structure.
9794 (default_target_flag_state): Declare.
9795 (this_target_flag_state): Declare as a variable or define as a macro.
9796 (align_loops_log): Redefine as a macro.
9797 (align_loops_max_skip, align_jumps_log): Likewise.
9798 (align_jumps_max_skip, align_labels_log): Likewise.
9799 (align_labels_max_skip, align_functions_log): Likewise.
9800 * toplev.c (default_target_flag_state): New variable.
9801 (this_target_flag_state): New conditional variable.
9802 (align_loops_log): Delete.
9803 (align_loops_max_skip, align_jumps_log): Likewise.
9804 (align_jumps_max_skip, align_labels_log): Likewise.
9805 (align_labels_max_skip, align_functions_log): Likewise.
9806 * target-globals.h (this_target_flag_state): Declare.
9807 (target_globals): Add a flag_state field.
9808 (restore_target_globals): Copy the flag_state field to
9809 this_target_flag_state.
9810 * target-globals.c: Include flags.h.
9811 (default_target_globals): Initialize the flag_state field.
9812 (save_target_globals): Likewise.
9813
9814 2010-07-12 Jie Zhang <jie@codesourcery.com>
9815
9816 * postreload.c (reg_symbol_ref[]): New.
9817 (move2add_use_add2_insn): New.
9818 (move2add_use_add3_insn): New.
9819 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
9820 (move2add_note_store): Likewise.
9821
9822 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
9823
9824 PR rtl-optimization/44752
9825 * genautomata.c (main): Don't emit an empty file even if there
9826 is no automaton.
9827
9828 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9829
9830 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
9831 ix86_solaris_return_in_memory.
9832 * config/i386-protos.h: Reflect this.
9833 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
9834 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
9835 Move ...
9836 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
9837
9838 2010-07-12 Jie Zhang <jie@codesourcery.com>
9839
9840 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
9841 align the stack when it's going to be saved.
9842
9843 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9844
9845 PR pch/14940
9846 * config/host-solaris.c (mmap_fixed): New function.
9847 (sol_gt_pch_get_address): Use it.
9848 (sol_gt_pch_use_address): Likewise.
9849
9850 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9851
9852 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
9853 pentiumpro on Solaris 8 and 9/x86.
9854 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
9855 Document SSE/SSE2 support.
9856 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
9857
9858 2010-07-12 Andi Kleen <ak@linux.intel.com>
9859
9860 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
9861 instead of gcc_assert to print better error message for multiple
9862 prevailing defs.
9863
9864 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
9865
9866 * config/i386/i386.c (ix86_asm_output_function_label): Change format
9867 string placeholder from 0x%x to %#x.
9868 (ix86_code_end): Use putc to output '\n'.
9869 (ix86_print_operand) <case ';'>: Use putc to output ';'.
9870
9871 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
9872
9873 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
9874 in directive -export.
9875
9876 2010-07-10 Anatoly Sokolov <aesok@post.ru>
9877
9878 * reginfo.h (reg_classes_intersect_p): Change arguments type to
9879 reg_class_t.
9880 * rtl.h (reg_classes_intersect_p): Adjust prototype.
9881
9882 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9883 Remove macros.
9884 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
9885 rs6000_memory_move_cost): Remove
9886 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
9887 TARGET_MEMORY_MOVE_COST): Define.
9888 (rs6000_register_move_cost): Make static. Change arguments type from
9889 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
9890 (rs6000_memory_move_cost): Make static. Change arguments type from
9891 'enum reg_class' to reg_class_t.
9892
9893 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
9894
9895 PR middle-end/42505
9896 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
9897 lookup code into....
9898 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
9899 new functions.
9900 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
9901 * cfgloopanal.c (target_clobbered_regs): Define.
9902 (init_set_costs): Initialize target_clobbered_regs.
9903 (estimate_reg_pressure_cost): Add call_p argument. When true,
9904 adjust the number of available registers to exclude the
9905 call-clobbered registers.
9906 * cfgloop.h (target_clobbered_regs): Declare.
9907 (estimate_reg_pressure_cost): Adjust declaration.
9908 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
9909 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
9910 (determine_set_costs): Dump target_clobbered_regs.
9911 (loop_body_includes_call): New function.
9912 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
9913 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
9914 call_p flag through.
9915 (best_gain_for_invariant): Likewise.
9916 (find_invariants_to_move): Likewise.
9917 (move_single_loop_invariants): Likewise, using already-computed
9918 has_call field.
9919
9920 2010-07-10 Richard Guenther <rguenther@suse.de>
9921 Joern Rennecke <joern.rennecke@embecosm.com>
9922
9923 PR debug/44832
9924 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
9925 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
9926 unless they have DECL_IGNORED_P set.
9927
9928 2010-07-10 Richard Guenther <rguenther@suse.de>
9929
9930 PR lto/44889
9931 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
9932 helper function.
9933 (gimple_types_compatible_p): Similar to pointed-to
9934 types allow and merge a mix of complete and incomplete aggregate.
9935 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
9936 (iterative_hash_gimple_type): Adjust for that.
9937
9938 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
9939
9940 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
9941
9942 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
9943
9944 PR objc/44140
9945 * config/darwin.c (output_objc_section_asm_op): Save and restore
9946 section when outputting ObjC section list.
9947
9948 2010-07-09 Jan Hubicka <jh@suse.cz>
9949
9950 * lto-streamer-out.c (produce_symtab): Do not write alias
9951 cgraph/varpool nodes.
9952
9953 2010-07-09 Jan Hubicka <jh@suse.cz>
9954
9955 * tree-inline.c (declare_return_variable): Fix ICE while
9956 inlining DECL_BY_VALUE function not in SSA form
9957
9958 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
9959
9960 PR tree-optimization/44576
9961 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
9962 New. Pull out from is_loop_prefetching_profitable to implement
9963 the trip count to ahead ratio heuristic.
9964 (mem_ref_count_reasonable_p): New. Pull out from
9965 is_loop_prefetching_profitable to implement the instruction to
9966 memory reference ratio heuristic. Also consider not reasonable if
9967 the memory reference count is above a threshold (to avoid
9968 explosive compilation time.
9969 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
9970 is_loop_prefetching_profitable to implement the instruction to
9971 prefetch ratio heuristic.
9972 (is_loop_prefetching_profitable): Removed.
9973 (loop_prefetch_arrays): Distribute the cost analysis across the
9974 function to allow early exit of the prefetch analysis.
9975 is_loop_prefetching_profitable is splitted into three functions,
9976 with each one called as early as possible.
9977 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
9978 number of memory references in a loop is considered too many.
9979
9980 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
9981
9982 * reload.c (find_reloads): Don't clear badop if we have a winreg
9983 alternative, but not win, and the class only has fixed regs.
9984 * hard-reg-set.h (class_only_fixed_regs): Declare.
9985 * reginfo.c (class_only_fixed_regs): New array.
9986 (init_reg_sets_1): Initialize it.
9987 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
9988 discourage alternatives using the stack pointer.
9989
9990 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
9991
9992 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
9993
9994 * config/arm/arm.md (cbranchqi4): Fix array size.
9995 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
9996 calculating length.
9997
9998 2010-07-09 Richard Guenther <rguenther@suse.de>
9999
10000 * gimple.c (struct type_fixup_s): New struct and VEC type.
10001 (gimple_register_type_fixups): New static global.
10002 (gimple_queue_type_fixup): New function.
10003 (gimple_types_compatible_p): Queue type fixups instead of
10004 applying them here.
10005 (gimple_register_type): Apply queued fixups for the
10006 canonical type. Empty the type fixup queue.
10007
10008 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
10009
10010 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
10011 * configure: Regenerate.
10012 * config.in: Ditto.
10013
10014 2010-07-09 Jakub Jelinek <jakub@redhat.com>
10015 Denys Vlasenko <dvlasenk@redhat.com>
10016 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10017
10018 PR tree-optimization/28632
10019 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
10020 (extract_range_from_binary_expr): Further optimize
10021 BIT_AND_EXPR and BIT_IOR_EXPR.
10022
10023 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
10024
10025 * tree-if-conv.c (fold_or_predicates): New.
10026 (add_to_predicate_list): Call it.
10027
10028 2010-07-09 Richard Guenther <rguenther@suse.de>
10029
10030 PR middle-end/44890
10031 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
10032 if base is a pointer.
10033 * tree-cfg.c (verify_expr): Update MEM_REF checking.
10034
10035 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10036
10037 PR target/44877
10038 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
10039 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
10040 builtin mask for load/store builtins.
10041
10042 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
10043
10044 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
10045 for "lock addl".
10046 * configure: Regenerate.
10047 * config/i386/i386.c (ix86_print_operand) <case ';'>:
10048 Remove TARGET_MACHO.
10049
10050 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
10051
10052 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
10053 default ISA flags.
10054 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
10055
10056 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
10057
10058 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
10059
10060 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
10061
10062 * config/picochip/picochip.md (commsTestPort): Emit more
10063 efficient sequence for tstport instruction.
10064
10065 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
10066
10067 * config/i386/i386.c (ix86_veclib_handler): Make static.
10068
10069 2010-07-09 Richard Guenther <rguenther@suse.de>
10070
10071 PR tree-optimization/44852
10072 * tree-ssa-alias.c: Include toplev.h for exact_log2.
10073 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
10074 in MEM_REF.
10075 (indirect_refs_may_alias_p): Likewise.
10076 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
10077
10078 2010-07-09 Richard Guenther <rguenther@suse.de>
10079
10080 PR tree-optimization/44882
10081 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
10082 sets do conflict.
10083 (vectorizable_load): Likewise.
10084
10085 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
10086
10087 PR target/40657
10088 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
10089 All callers changed.
10090 Handle the case when we're called for the epilogue.
10091 (thumb_unexpanded_epilogue): Use it.
10092 (thumb1_expand_epilogue): Likewise.
10093
10094 2010-07-09 Jakub Jelinek <jakub@redhat.com>
10095
10096 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
10097 both ranges are range_int_cst_p with non-negative minimum,
10098 try harder to derive smaller range.
10099
10100 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10101
10102 * genrecog.c: Include diagnostic-core.h before toplev.h.
10103 * genoutput.c: Likewise.
10104 * genextract.c: Likewise.
10105 * genautomata.c: Likewise.
10106 * genemit.c: Likewise.
10107 * genpeep.c: Likewise.
10108 * genattrtab.c: Likewise.
10109 * genconditions.c: Likewise.
10110 * genpreds.c: Likewise.
10111
10112 2010-07-08 Andi Kleen <ak@linux.intel.com>
10113
10114 * lto-section-in.c (lto_section_name): Add missing comma.
10115
10116 2010-07-08 Anatoly Sokolov <aesok@post.ru>
10117
10118 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
10119 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
10120 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
10121 (ia64_override_options): Rename to...
10122 (ia64_option_override): ... this one. Make static.
10123
10124 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
10125
10126 PR middle-end/44843
10127 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
10128 pointed-to type of the offset in a MEM_REF to compute the alignment.
10129
10130 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
10131
10132 * final.c (final_scan_insn): Replace
10133 TARGET_UNWIND_INFO macro check by unwind_emit
10134 hook NULL check.
10135 * targhooks.c (default_unwind_emit): Removed.
10136 * targhooks.h (default_unwind_emit): Likewise.
10137 * target.def (unwind_emit): Set default value to NULL.
10138
10139 * config/i386/i386-protos.h (ix86_asm_output_function_label):
10140 New prototype.
10141 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
10142 for NULL fntype argument and allow 64-bit targets.
10143 (ix86_asm_output_function_label): New function.
10144 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
10145 (ix86_handle_fndecl_attribute): Likewise.
10146 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
10147 * doc/doc/tm.texi: Regenerated.
10148 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
10149 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
10150 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
10151 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
10152 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10153 * config/elfos.h: Likewise.
10154 * config/i386/cygming.h: Likewise.
10155 * config/netbsd-aout.h: Likewise.
10156 * config/openbsd.h: Likewise.
10157 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
10158 by ix86_asm_output_function_label function call.
10159 * varasm.c (assemble_start_function): Use
10160 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10161
10162 2010-07-08 Jan Hubicka <jh@suse.cz>
10163
10164 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
10165 New function.
10166 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
10167 Declare.
10168 * ipa-cp.c (ipcp_estimate_growth): Use it.
10169 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
10170 Likewise.
10171
10172 2010-07-08 Jan Hubicka <jh@suse.cz>
10173
10174 * tree-inline.c (declare_return_variable): Allocate annotation for new
10175 temporary.
10176
10177 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
10178
10179 PR tree-optimization/44710
10180 * tree-if-conv.c (parse_predicate): New.
10181 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
10182 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
10183
10184 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
10185
10186 * common.opt (ftree-loop-if-convert): New flag.
10187 * doc/invoke.texi (ftree-loop-if-convert): Documented.
10188 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
10189 when flag_tree_loop_if_convert is set.
10190
10191 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
10192
10193 * config/i386/i386.c: Use short syntax for function calls
10194 through function pointers.
10195 * config/i386/i386.md: Ditto.
10196
10197 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
10198
10199 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
10200
10201 2010-07-08 Richard Guenther <rguenther@suse.de>
10202
10203 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
10204 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
10205
10206 2010-07-08 Jakub Jelinek <jakub@redhat.com>
10207
10208 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
10209 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
10210 (loc_list_from_tree): Likewise.
10211 (output_loc_operands): Handle outputting DW_OP_const[48]u
10212 with loc->dtprel set.
10213 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
10214
10215 2010-07-08 Jan Hubicka <jh@suse.cz>
10216
10217 * ipa.c: Include pointer-set.h
10218 (cgraph_externally_visible_p): New attribute ALIASED;
10219 when in LTO, hidden symbols are local unless they are aliased.
10220 (function_and_variable_visibility): Compute aliased nodes;
10221 handle LTO and hidden symbol on functions and vars.
10222 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
10223 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
10224
10225 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
10226
10227 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
10228 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10229 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10230 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10231 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10232 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
10233 (ix86_gen_probe_stack_range): Likewise.
10234 (override_options): Set them.
10235 (ix86_target_stack_probe): New function.
10236 (ix86_compute_frame_layout): Force use of push instructions to
10237 save registers if stack checking with probes is enabled.
10238 (get_scratch_register_on_entry): New function.
10239 (release_scratch_register_on_entry): Likewise.
10240 (ix86_adjust_stack_and_probe): Likewise.
10241 (output_adjust_stack_and_probe): Likewise.
10242 (ix86_emit_probe_stack_range): Likewise.
10243 (output_probe_stack_range): Likewise.
10244 (ix86_expand_prologue): Emit stack checking code if static built-in
10245 stack checking is enabled.
10246 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
10247 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
10248 (output_adjust_stack_and_probe): Likewise.
10249 (output_probe_stack_range): Likewise.
10250 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
10251 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
10252 TARGET_STACK_PROBE.
10253 (allocate_stack_worker_64): Likewise.
10254 (allocate_stack): Likewise.
10255 (adjust_stack_and_probe): New insn.
10256 (probe_stack_range): Likewise.
10257
10258 2010-07-08 Richard Guenther <rguenther@suse.de>
10259
10260 PR tree-optimization/44831
10261 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
10262 a MEM_REF preserving TBAA info of the original dereference.
10263 Dereference the original pointer if the address is not invariant.
10264 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
10265 at least one invariant address that we are going to dereference.
10266
10267 2010-07-08 Richard Guenther <rguenther@suse.de>
10268
10269 PR tree-optimization/44861
10270 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
10271 information when building MEM_REFs.
10272 (vectorizable_load): Likewise.
10273 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
10274
10275 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
10276
10277 * config/sol2-c.c: Do not include diagnostic-core.h.
10278
10279 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10280
10281 PR bootstrap/44768
10282 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
10283 with respect to current_function_decl. Pass decl of the function.
10284 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
10285 * ipa-inline.c (compute_inline_parameters): Pass decl to
10286 estimated_stack_frame_size.
10287
10288 2010-07-08 Richard Guenther <rguenther@suse.de>
10289
10290 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10291 New function.
10292 (valueize_refs): Call it.
10293
10294 2010-07-08 Richard Guenther <rguenther@suse.de>
10295
10296 PR rtl-optimization/44838
10297 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
10298 SSA form do not use pointer equivalence.
10299
10300 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
10301
10302 * dwarf2out.c (AT_linkage_name): Delete.
10303 (add_linkage_attr): New function.
10304 (add_linkage_name): Call it to emit the linkage attribute.
10305 (dwarf2out_finish): Likewise.
10306 (move_linkage_attr): Explicitly accept both attribute variants.
10307
10308 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
10309
10310 * toplev.h: Do not include diagnostic-core.h.
10311 Include diagnostic-core.h in every file that includes toplev.h.
10312 * c-tree.h: Do not include toplev.h.
10313 * pretty-print.h: Update comment.
10314 * Makefile.in: Update dependencies.
10315 * alias.c: Include diagnostic-core.h in every file that includes
10316 toplev.h.
10317 * attribs.c: Likewise.
10318 * auto-inc-dec.c: Likewise.
10319 * bb-reorder.c: Likewise.
10320 * bt-load.c: Likewise.
10321 * caller-save.c: Likewise.
10322 * calls.c: Likewise.
10323 * cfg.c: Likewise.
10324 * cfganal.c: Likewise.
10325 * cfgbuild.c: Likewise.
10326 * cfgcleanup.c: Likewise.
10327 * cfghooks.c: Likewise.
10328 * cfgloop.c: Likewise.
10329 * combine.c: Likewise.
10330 * config/alpha/alpha.c: Likewise.
10331 * config/arc/arc.c: Likewise.
10332 * config/arm/arm.c: Likewise.
10333 * config/arm/pe.c: Likewise.
10334 * config/avr/avr.c: Likewise.
10335 * config/bfin/bfin.c: Likewise.
10336 * config/cris/cris.c: Likewise.
10337 * config/crx/crx.c: Likewise.
10338 * config/darwin-c.c: Likewise.
10339 * config/darwin.c: Likewise.
10340 * config/fr30/fr30.c: Likewise.
10341 * config/frv/frv.c: Likewise.
10342 * config/h8300/h8300.c: Likewise.
10343 * config/host-darwin.c: Likewise.
10344 * config/i386/i386.c: Likewise.
10345 * config/i386/netware.c: Likewise.
10346 * config/i386/nwld.c: Likewise.
10347 * config/i386/winnt-cxx.c: Likewise.
10348 * config/i386/winnt-stubs.c: Likewise.
10349 * config/i386/winnt.c: Likewise.
10350 * config/ia64/ia64-c.c: Likewise.
10351 * config/ia64/ia64.c: Likewise.
10352 * config/iq2000/iq2000.c: Likewise.
10353 * config/lm32/lm32.c: Likewise.
10354 * config/m32c/m32c-pragma.c: Likewise.
10355 * config/m32c/m32c.c: Likewise.
10356 * config/m32r/m32r.c: Likewise.
10357 * config/m68hc11/m68hc11.c: Likewise.
10358 * config/m68k/m68k.c: Likewise.
10359 * config/mcore/mcore.c: Likewise.
10360 * config/mep/mep-pragma.c: Likewise.
10361 * config/mep/mep.c: Likewise.
10362 * config/mmix/mmix.c: Likewise.
10363 * config/mn10300/mn10300.c: Likewise.
10364 * config/moxie/moxie.c: Likewise.
10365 * config/pa/pa.c: Likewise.
10366 * config/pdp11/pdp11.c: Likewise.
10367 * config/picochip/picochip.c: Likewise.
10368 * config/rs6000/rs6000-c.c: Likewise.
10369 * config/rs6000/rs6000.c: Likewise.
10370 * config/rx/rx.c: Likewise.
10371 * config/s390/s390.c: Likewise.
10372 * config/score/score.c: Likewise.
10373 * config/score/score3.c: Likewise.
10374 * config/score/score7.c: Likewise.
10375 * config/sh/sh.c: Likewise.
10376 * config/sh/symbian-base.c: Likewise.
10377 * config/sh/symbian-c.c: Likewise.
10378 * config/sh/symbian-cxx.c: Likewise.
10379 * config/sol2-c.c: Likewise.
10380 * config/sol2.c: Likewise.
10381 * config/sparc/sparc.c: Likewise.
10382 * config/spu/spu.c: Likewise.
10383 * config/stormy16/stormy16.c: Likewise.
10384 * config/v850/v850-c.c: Likewise.
10385 * config/v850/v850.c: Likewise.
10386 * config/vax/vax.c: Likewise.
10387 * config/vxworks.c: Likewise.
10388 * config/xtensa/xtensa.c: Likewise.
10389 * convert.c: Likewise.
10390 * cse.c: Likewise.
10391 * cselib.c: Likewise.
10392 * dbgcnt.c: Likewise.
10393 * dbxout.c: Likewise.
10394 * ddg.c: Likewise.
10395 * dominance.c: Likewise.
10396 * emit-rtl.c: Likewise.
10397 * explow.c: Likewise.
10398 * expmed.c: Likewise.
10399 * fixed-value.c: Likewise.
10400 * fold-const.c: Likewise.
10401 * fwprop.c: Likewise.
10402 * gcse.c: Likewise.
10403 * ggc-common.c: Likewise.
10404 * ggc-page.c: Likewise.
10405 * ggc-zone.c: Likewise.
10406 * gimple-low.c: Likewise.
10407 * gimplify.c: Likewise.
10408 * graph.c: Likewise.
10409 * haifa-sched.c: Likewise.
10410 * ifcvt.c: Likewise.
10411 * implicit-zee.c: Likewise.
10412 * integrate.c: Likewise.
10413 * ira-build.c: Likewise.
10414 * ira-color.c: Likewise.
10415 * ira-conflicts.c: Likewise.
10416 * ira-costs.c: Likewise.
10417 * ira-lives.c: Likewise.
10418 * ira.c: Likewise.
10419 * lists.c: Likewise.
10420 * loop-doloop.c: Likewise.
10421 * loop-iv.c: Likewise.
10422 * lto-opts.c: Likewise.
10423 * lto-symtab.c: Likewise.
10424 * main.c: Likewise.
10425 * modulo-sched.c: Likewise.
10426 * optabs.c: Likewise.
10427 * params.c: Likewise.
10428 * plugin.c: Likewise.
10429 * postreload-gcse.c: Likewise.
10430 * postreload.c: Likewise.
10431 * predict.c: Likewise.
10432 * profile.c: Likewise.
10433 * real.c: Likewise.
10434 * regcprop.c: Likewise.
10435 * reginfo.c: Likewise.
10436 * regmove.c: Likewise.
10437 * reorg.c: Likewise.
10438 * resource.c: Likewise.
10439 * rtl.c: Likewise.
10440 * rtlanal.c: Likewise.
10441 * sched-deps.c: Likewise.
10442 * sched-ebb.c: Likewise.
10443 * sched-rgn.c: Likewise.
10444 * sdbout.c: Likewise.
10445 * sel-sched-dump.c: Likewise.
10446 * sel-sched-ir.c: Likewise.
10447 * simplify-rtx.c: Likewise.
10448 * stmt.c: Likewise.
10449 * stor-layout.c: Likewise.
10450 * store-motion.c: Likewise.
10451 * targhooks.c: Likewise.
10452 * tree-cfg.c: Likewise.
10453 * tree-cfgcleanup.c: Likewise.
10454 * tree-dump.c: Likewise.
10455 * tree-eh.c: Likewise.
10456 * tree-inline.c: Likewise.
10457 * tree-nomudflap.c: Likewise.
10458 * tree-object-size.c: Likewise.
10459 * tree-optimize.c: Likewise.
10460 * tree-outof-ssa.c: Likewise.
10461 * tree-phinodes.c: Likewise.
10462 * tree-profile.c: Likewise.
10463 * tree-ssa-ccp.c: Likewise.
10464 * tree-ssa-coalesce.c: Likewise.
10465 * tree-ssa-live.c: Likewise.
10466 * tree-ssa-loop-niter.c: Likewise.
10467 * tree-ssa-loop-prefetch.c: Likewise.
10468 * tree-ssa-loop.c: Likewise.
10469 * tree-ssa-structalias.c: Likewise.
10470 * tree-ssa-uninit.c: Likewise.
10471 * tree-ssa.c: Likewise.
10472 * tree-vect-data-refs.c: Likewise.
10473 * tree-vect-loop-manip.c: Likewise.
10474 * tree-vect-loop.c: Likewise.
10475 * tree-vect-patterns.c: Likewise.
10476 * tree-vect-stmts.c: Likewise.
10477 * tree-vrp.c: Likewise.
10478 * varasm.c: Likewise.
10479 * vec.c: Likewise.
10480 * web.c: Likewise.
10481 * xcoffout.c: Likewise.
10482
10483 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
10484
10485 * gengtype.c (write_field_root): New function.
10486 (write_root): Use it.
10487
10488 2010-07-07 Wei Guozhi <carrot@google.com>
10489
10490 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
10491 of lowest bits to lshift/compare): Add a missing line.
10492
10493 2010-07-07 Wei Guozhi <carrot@google.com>
10494
10495 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
10496 of lowest bits to lshift/compare): New.
10497
10498 2010-07-07 Tom Tromey <tromey@redhat.com>
10499
10500 * doc/tm.texi: Update.
10501 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
10502 Add @hook.
10503 * target.def (want_debug_pub_sections): New hook.
10504 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
10505 * dwarf2out.c (add_pubname_string): Check
10506 targetm.want_debug_pub_sections.
10507 (add_pubname): Likewise.
10508 (add_pubtype): Likewise.
10509
10510 2010-07-07 Jie Zhang <jie@codesourcery.com>
10511
10512 * genautomata.c (output_automata_list_min_issue_delay_code):
10513 Correctly decompress min_issue_delay.
10514
10515 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
10516
10517 PR rtl-optimization/44404
10518 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
10519 possible, use reg_overlap_mentioned_p instead.
10520
10521 2010-07-07 Duncan Sands <baldrick@free.fr>
10522
10523 PR middle-end/41355
10524 * tree.c (build_function_type_skip_args): Copy the original type using
10525 build_distinct_type_copy rather than copy_node.
10526
10527 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
10528
10529 PR target/44850
10530 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
10531 revision 161876.
10532 (ix86_expand_prologue): Likewise.
10533 (ix86_handle_fndecl_attribute): Likewise.
10534 (ix86_asm_declare_function_name): Likewise.
10535 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10536 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10537 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
10538 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
10539 * doc/extend.texi: Likewise.
10540
10541 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
10542
10543 PR target/44844
10544 * config/i386/i386.md (rdrand<mode>): Changed to expand to
10545 retry if the carry flag isn't valid.
10546 (rdrand<mode>_1): New.
10547
10548 2010-07-07 Richard Guenther <rguenther@suse.de>
10549
10550 PR middle-end/44790
10551 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
10552 for expanding the constant offset for MEM_REFs.
10553
10554 2010-07-07 Richard Guenther <rguenther@suse.de>
10555
10556 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
10557 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
10558 * gimple.h (is_gimple_operand): Remove.
10559 * gimple.c (is_gimple_operand): Likewise.
10560 (walk_gimple_op): Fix wi->val_only setting for calls.
10561 * tree-cfg.c (verify_gimple_call): Fix argument validation.
10562 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
10563 invalid gimple calls.
10564
10565 2010-07-06 Jan Hubicka <jh@suse.cz>
10566
10567 * lto-cgraph.c (output_cgraph): Add missing declaration.
10568
10569 2010-07-06 Jan Hubicka <jh@suse.cz>
10570
10571 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
10572 partition.
10573
10574 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
10575
10576 * doc/gimple.texi (GIMPLE_DEBUG): Document.
10577 * doc/rtl.texi (Debug Information): New node.
10578 (NOTE_INSN_VAR_LOCATION): Document.
10579 (debug_insn): Likewise.
10580 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
10581
10582 2010-07-07 Jan Hubicka <jh@suse.cz>
10583
10584 With parts by Richard Guenther.
10585
10586 PR middle-end/44813
10587 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
10588 for functions passed by reference.
10589 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
10590 in memory when passed by reference.
10591 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
10592 beggining.
10593 * ipa-split.c (split_function): Cleanup way return value is passed;
10594 handle SSA DECL_BY_REFERENCE retvals.
10595 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
10596 DECL_BY_REFERENCE is set.
10597 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
10598 find_what_p_points_to): Handle RESULT_DECL.
10599 * tree-inline.c (declare_return_variable): Get new entry_block argument;
10600 when passing by reference ensure that RESULT_DECL is gimple_val.
10601 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
10602 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
10603
10604 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
10605
10606 PR rtl-optimization/44787
10607 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
10608 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
10609
10610 2010-07-06 Jan Hubicka <jh@suse.cz>
10611
10612 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
10613 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
10614 with body can prevail.
10615 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
10616 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
10617 * cgraph.c (cgraph_get_node_or_alias): New function.
10618 * cgraph.h (cgraph_get_node_or_alias): Declare.
10619
10620 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
10621
10622 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
10623 support.
10624 (ix86_expand_prologue): Likewise.
10625 (ix86_handle_fndecl_attribute): Likewise.
10626 (ix86_asm_declare_function_name): New function for
10627 ASM_DECLARE_FUNCTION_NAME.
10628 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
10629 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
10630 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
10631 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
10632 * doc/extend.texi: Adjust documentation about ms_hook_prologue
10633 attribute.
10634
10635 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
10636
10637 * config/i386/i386.md (immediate_operand): New mode attribute.
10638
10639 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
10640 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
10641 using P mode iterator.
10642 (pro_epilogue_adjust_stack_di_2): Rename from
10643 pro_epilogue_adjust_stack_rex64_2.
10644
10645 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
10646
10647 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
10648
10649 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
10650 through gen_mov_insv_1 function pointer.
10651 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
10652 gen_truncxf<mode>2 through gen_truncxf function pointer.
10653 (remainder<mode>3): Ditto.
10654 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
10655 (allocate_stack): Call gen_allocate_stack_worker_64 or
10656 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
10657 function pointer.
10658 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
10659 function pointer.
10660
10661 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
10662
10663 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
10664 operand constraint instead of <r><i>m.
10665
10666 2010-07-06 Richard Guenther <rguenther@suse.de>
10667
10668 PR middle-end/44828
10669 * convert.c (convert_to_integer): Watch out for overflowing
10670 MULT_EXPR as well.
10671
10672 2010-07-05 Jan Hubicka <jh@suse.cz>
10673
10674 * lto-streamer.c (write_symbol_vec): Rename to ...
10675 (write_symbol) ... this one; write only symbol given and when
10676 present in cache. Sanity check that what is defined is present
10677 in cgraph/varpool with body/finalized decl.
10678 (write_symbols_of_kind): Remove.
10679 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
10680 pairs to produce symtab.
10681 (produce_asm_for_decls): Update call of produce_symtab; don't do so
10682 when doing WPA streaming.
10683
10684 2010-07-05 Jan Hubicka <jh@suse.cz>
10685
10686 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
10687 function is still available to fold into.
10688
10689 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
10690
10691 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
10692 * function.h (struct_function): Change type of local_decls field
10693 to a VEC.
10694 (add_local_decl): New function.
10695 (FOR_EACH_LOCAL_DECL): New macro.
10696 * cfgexpand.c (init_vars_expansion): Adjust for new type of
10697 cfun->local_decls.
10698 (estimated_stack_frame_size): Likewise.
10699 (expand_used_vars): Likewise.
10700 * cgraphbuild.c (build_cgraph_edges): Likewise.
10701 * function.c (instantiate_decls_1): Likewise.
10702 * ipa-struct-reorg.c (build_data_structure): Likewise.
10703 * ipa-type-escape.c (analyze_function): Likewise.
10704 * lto-streamer-in.c (input_function): Likewise.
10705 * lto-streamer-out.c (output_function): Likewise.
10706 * tree-ssa-live.c (remove_unused_locals): Likewise.
10707 * tree.c (free_lang_data_in_decl): Likewise.
10708 (find_decls_types_in_node): Likewise.
10709 * omp-low.c (remove_exit_barrier): Likewise.
10710 (expand_omp_taskreg): Likewise.
10711 (list2chain): Rename to...
10712 (vec2chain): ...this. Adjust.
10713 * cgraphunit.c (assemble_thunk): Call add_local_decl.
10714 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
10715 * gimple-low.c (record_vars_into): Likewise.
10716 * tree-inline.c (remap_decls): Likewise.
10717 (declare_return_variable): Likewise.
10718 (declare_inline_vars): Likewise.
10719 (copy_forbidden): Adjust for new type of cfun->local_decls.
10720 (add_local_variables): New function.
10721 (expand_call_inline): Call it.
10722 (tree_function_versioning): Likewise.
10723
10724 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
10725
10726 AVX Programming Reference (June, 2010)
10727 * config/i386/cpuid.h (bit_F16C): New.
10728 (bit_RDRND): Likewise.
10729 (bit_FSGSBASE): Likewise.
10730
10731 * config/i386/i386-builtin-types.def: Add
10732 "DEF_FUNCTION_TYPE (UINT16)", function types for
10733 float16 <-> float conversions and
10734 "DEF_FUNCTION_TYPE (VOID, UINT64)".
10735
10736 * config/i386/i386-c.c (ix86_target_macros_internal): Support
10737 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
10738 OPTION_MASK_ISA_F16C.
10739
10740 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
10741 (OPTION_MASK_ISA_RDRND_SET): Likewise.
10742 (OPTION_MASK_ISA_F16C_SET): Likewise.
10743 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
10744 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
10745 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
10746 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
10747 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
10748 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
10749 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
10750 (override_options): Handle them.
10751 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
10752 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
10753 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
10754 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
10755 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
10756 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
10757 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
10758 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
10759 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
10760 (bdesc_args): Likewise.
10761 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
10762 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
10763 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
10764 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
10765 Handle non-memory store.
10766
10767 * config/i386/i386.h (TARGET_FSGSBASE): New.
10768 (TARGET_RDRND): Likewise.
10769 (TARGET_F12C): Likewise.
10770
10771 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
10772 (UNSPEC_VCVTPS2PH): Likewise.
10773 (UNSPECV_RDFSBASE): Likewise.
10774 (UNSPECV_RDGSBASE): Likewise.
10775 (UNSPECV_WRFSBASE): Likewise.
10776 (UNSPECV_WRGSBASE): Likewise.
10777 (UNSPECV_RDRAND): Likewise.
10778 (rdfsbase<mode>): Likewise.
10779 (rdgsbase<mode>): Likewise.
10780 (wrfsbase<mode>): Likewise.
10781 (wrgsbase<mode>): Likewise.
10782 (rdrand<mode>): Likewise.
10783
10784 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
10785
10786 * config/i386/immintrin.h (_rdrand_u16): New.
10787 (_rdrand_u32): Likewise.
10788 (_readfsbase_u32): Likewise.
10789 (_readfsbase_u64): Likewise.
10790 (_readgsbase_u32): Likewise.
10791 (_readgsbase_u64): Likewise.
10792 (_writefsbase_u32): Likewise.
10793 (_writefsbase_u64): Likewise.
10794 (_writegsbase_u32): Likewise.
10795 (_writegsbase_u64): Likewise.
10796 (_rdrand_u64): Likewise.
10797 (_cvtsh_ss): Likewise.
10798 (_mm_cvtph_ps): Likewise.
10799 (_mm256_cvtph_ps): Likewise.
10800 (_cvtss_sh): Likewise.
10801 (_mm_cvtps_ph): Likewise.
10802 (_mm256_cvtps_ph): Likewise.
10803
10804 * config/i386/sse.md (vcvtph2ps): New.
10805 (*vcvtph2ps_load): Likewise.
10806 (vcvtph2ps256): Likewise.
10807 (vcvtps2ph): Likewise.
10808 (*vcvtps2ph): Likewise.
10809 (*vcvtps2ph_store): Likewise.
10810 (vcvtps2ph256): Likewise.
10811
10812 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
10813
10814 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
10815
10816 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
10817
10818 PR bootstrap/44512
10819 * genenums.c (main): Output include of insn-constants.h
10820 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
10821
10822 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
10823
10824 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
10825 (override_options): Initialize it.
10826 (ix86_expand_prologue): Use it.
10827
10828 2010-07-05 Jakub Jelinek <jakub@redhat.com>
10829
10830 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
10831
10832 2010-07-05 Anatoly Sokolov <aesok@post.ru>
10833
10834 * double-int.h (fit_double_type): Remove declaration.
10835 * double-int.c (fit_double_type): Remove function.
10836 * tree.h (int_fits_type_p): Adjust prototype.
10837 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
10838 instead of fit_double_type.
10839 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
10840 instead of fit_double_type and build_int_cst_wide.
10841 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
10842 instead of fit_double_type and build_int_cst_wide.
10843 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
10844 of fit_double_type.
10845
10846 2010-07-05 Jan Hubicka <jh@suse.cz>
10847
10848 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
10849 in_other_partition.
10850 * lto-cgraph.c (referenced_from_other_partition_p,
10851 reachable_from_other_partition_p): Use in_other_partition flags.
10852 (output_node, output_varpool_node): COMDAT nodes always have private
10853 copies and thus are never used from other partition.
10854
10855 2010-07-05 Anatoly Sokolov <aesok@post.ru>
10856
10857 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
10858 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
10859 * config/ia64/ia64.c Include reload.h.
10860 (ia64_memory_move_cost): New function.
10861 (TARGET_MEMORY_MOVE_COST): Define.
10862 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
10863 memory_move_cost.
10864
10865 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
10866
10867 PR middle-end/42505
10868 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
10869 comments about cost model.
10870 (try_add_cand_for): Add second strategy for choosing initial set
10871 based on original IVs, controlled by ORIGINALP argument.
10872 (get_initial_solution): Add ORIGINALP argument.
10873 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
10874 (find_optimal_iv_set): Try two different strategies for choosing
10875 the IV set, and return the one with lower cost.
10876
10877 2010-07-05 Richard Guenther <rguenther@suse.de>
10878
10879 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
10880
10881 2010-07-05 Richard Guenther <rguenther@suse.de>
10882
10883 * tree.c (reference_alias_ptr_type): New function.
10884 * tree.h (reference_alias_ptr_type): Declare.
10885 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
10886 allow non-TARGET_MEM_REF new refs.
10887 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
10888 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
10889 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
10890 (create_mem_ref): Get alias pointer type. Adjust calls to
10891 create_mem_ref_raw.
10892 (maybe_fold_tmr): Likewise.
10893 * tree-flow.h (create_mem_ref): Adjust prototype.
10894
10895 2010-07-05 Jakub Jelinek <jakub@redhat.com>
10896
10897 PR c++/44808
10898 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
10899 *from_p is VAR_DECL.
10900
10901 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
10902
10903 * tree.h (build_call_list): Remove.
10904 * tree.c (build_call_list): Remove.
10905
10906 2010-07-05 Richard Guenther <rguenther@suse.de>
10907
10908 * double-int.h (double_int_sub): Declare.
10909 * double-int.c (double_int_sub): New function.
10910 * dwarf2out.c (field_byte_offset): Use it.
10911 * fixed-value.c (do_fixed_add): Likewise.
10912 (do_fixed_multiply): Likewise.
10913 (do_fixed_divide): Likewise.
10914 * tree-predcom.c (add_ref_to_chain): Likewise.
10915 (determine_roots_comp): Likewise.
10916 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
10917
10918 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
10919
10920 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
10921 implementations.
10922
10923 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
10924
10925 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
10926 * arm-modes.def (CC_NOTB): Don't define.
10927 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
10928 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
10929 (LTUGEU): New code_iterator.
10930 (cnb, optab): New corresponding code_attrs.
10931 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
10932 to canonical form. Operands 1 and 2 are commutative. Parametrize
10933 using LTUGEU.
10934 (addsi3_carryin_shift_<optab>): Likewise.
10935 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
10936 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
10937 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
10938 (subsi3_compare): Renamed from subsi3_compare0_c.
10939 Change CC_NOTB to CC.
10940 (arm_subsi3_insn): Allow constants for operand 0.
10941 (compare_scc peephole for eq case): New.
10942 (compare_scc splitters): Change CC_NOTB to CC.
10943
10944 2010-07-05 Richard Guenther <rguenther@suse.de>
10945
10946 * tree-ssa-loop-im.c (for_each_index): Do not handle
10947 ALIGN_INDIRECT_REF.
10948 (gen_lsm_tmp_name): Likewise.
10949 * tree-dump.c (dequeue_and_dump): Likewise.
10950 * tree-pretty-print.c (dump_generic_node): Likewise.
10951 (op_code_prio): Likewise.
10952 (op_symbol_code): Likewise.
10953 * tree.c (staticp): Likewise.
10954 (build1_stat): Likewise.
10955 * tree.h (INDIRECT_REF_P): Likewise.
10956 * fold-const.c (maybe_lvalue_p): Likewise.
10957 (operand_equal_p): Likewise.
10958 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
10959 (ao_ref_init_from_vn_reference): Likewise.
10960 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
10961 (find_interesting_uses_address): Likewise.
10962 * dwarf2out.c (loc_list_from_tree): Likewise.
10963 * gimplify.c (gimplify_expr): Likewise.
10964 * tree-eh.c (tree_could_trap_p): Likewise.
10965 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
10966 * cfgexpand.c (expand_debug_expr): Likewise.
10967 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
10968 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
10969 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
10970 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
10971 * tree-ssa-operands.c (get_expr_operands): Likewise.
10972 * expr.c (safe_from_p): Likewise.
10973 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
10974 * tree-vect-data-refs.c (vect_setup_realignment): Build
10975 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
10976 * tree-vect-stmts.c (vectorizable_load): Likewise.
10977 * tree.def (ALIGN_INDIRECT_REF): Remove.
10978
10979 2010-07-05 Richard Guenther <rguenther@suse.de>
10980
10981 PR tree-optimization/44784
10982 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
10983 for inserted stmts.
10984 (find_or_generate_expression): Fix SCCVN insertion check.
10985
10986 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
10987
10988 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
10989 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
10990 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
10991 directives.
10992
10993 2010-07-05 Ira Rosen <irar@il.ibm.com>
10994
10995 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
10996 statements that are not vectorized.
10997 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
10998 in INSIDE_COST.
10999
11000 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
11001
11002 PR bootstrap/44820
11003 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
11004
11005 2010-07-05 Richard Guenther <rguenther@suse.de>
11006
11007 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
11008 RESULT_DECLs properly.
11009
11010 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
11011
11012 PR rtl-optimization/44695
11013 * config/i386/i386.md (extract_code): Removed.
11014 (<u>divmodqi4): Likewise.
11015 (divmodqi4): New.
11016 (udivmodqi4): Likewise.
11017 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
11018 (udivmodhiqi3): Likewise.
11019
11020 2010-07-04 Jan Hubicka <jh@suse.cz>
11021
11022 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
11023
11024 2010-07-04 Jan Hubicka <jh@suse.cz>
11025
11026 * cgraphunit.c (init_cgraph): Only initialize dump file if it
11027 is not already initialized.
11028
11029 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
11030
11031 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
11032 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
11033 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
11034 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
11035 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
11036 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
11037 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
11038 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
11039 (sync_new_nand_optab): Redefine as macros.
11040 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
11041 Delete.
11042 (direct_optab_index): New enum.
11043 (direct_optab_d): New structure.
11044 (direct_optab): New typedef.
11045 (direct_optab_table): Declare.
11046 (direct_optab_handler, set_direct_optab_handler): New functions.
11047 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
11048 (sync_lock_release_optab): New macros.
11049 * optabs.c (direct_optab_table): New variable.
11050 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
11051 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
11052 cmpstr_optab and cmpstrn_optab.
11053 (emit_conditional_move): Likewise for movcc_optab.
11054 (can_conditionally_move_p): Likewise for movcc_gen_code.
11055 (init_insn_codes): Clear direct_optab_table.
11056 (init_optabs): Don't initialize the new "direct optabs" here.
11057 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
11058 vcond_gen_code.
11059 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
11060 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
11061 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
11062 (expand_sync_operation): Likewise other sync_*_optabs.
11063 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
11064 to sync_compare_and_swap_optab.
11065 (expand_sync_lock_test_and_set): Use direct_optab_handler for
11066 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
11067 to the names of both.
11068 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
11069 cmpstr_optab and cmpstrn_optab.
11070 (expand_builtin_lock_release): Likewise sync_lock_release.
11071 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
11072 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
11073 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
11074 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
11075 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
11076 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
11077 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
11078 (sync_lock_test_and_set, sync_lock_release): Delete.
11079 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
11080 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
11081 * genopinit.c (optabs): Use set_direct_optab_handler for the new
11082 macro optabs.
11083 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
11084 the "optab" local variable. Use direct_optab_handler for optab and
11085 sync_compare_and_swap_optab.
11086 * reload1.c (reload_in_optab, reload_out_optab): Delete.
11087 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
11088 reload_in_optab and reload_out_optab.
11089 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
11090 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
11091 * config/pa/pa.c (pa_secondary_reload): Likewise.
11092 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
11093 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
11094 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
11095 (VMSupportsCS8_builtin): Likewise.
11096
11097 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
11098
11099 * optabs.h (optab_handlers): Change type of insn_code to int.
11100 (optab_handler, set_optab_handler, convert_optab_handler)
11101 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
11102 CODE_FOR_nothing".
11103 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
11104 (init_insn_codes): Zero both the above arrays.
11105 (init_optabs): Never call init_insn_codes first time around.
11106
11107 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
11108
11109 * optabs.h (optab_handler, convert_optab_handler): Turn into
11110 inline functions that return an insn code.
11111 (set_optab_handler, set_convert_optab_handler): New functions.
11112 * builtins.c: Replace optab_handler(X)->insn_code with
11113 optab_handler or set_optab_handler thoughout. Likewise
11114 convert_optab_handler(X)->insn_code with convert_optab_handler
11115 and set_convert_optab_handler.
11116 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
11117 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
11118 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
11119 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
11120 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
11121 config/spu/spu.c: Likewise.
11122
11123 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
11124
11125 PR target/44531
11126 * config.gcc (sh*-*-*): Use regular expressions instead of
11127 the 'i' modifier for sed substitutions.
11128
11129 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
11130
11131 * gimple.c (gimple_body): Comments added.
11132
11133 2010-07-04 Richard Guenther <rguenther@suse.de>
11134
11135 PR middle-end/44809
11136 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
11137 of an INDIRECT_REF.
11138
11139 2010-07-04 Richard Guenther <rguenther@suse.de>
11140
11141 PR tree-optimization/44479
11142 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
11143 extra SSA name copy statements which preserves points-to
11144 information.
11145 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11146 Copy points-to information for all pointers. Properly handle
11147 MEM_REFs.
11148 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
11149 copy statements.
11150 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
11151 dependency.
11152
11153 2010-07-04 Richard Guenther <rguenther@suse.de>
11154
11155 PR middle-end/44785
11156 * tree-inline.c (initialize_inlined_parameters): Do not
11157 re-use pointer-map slot over remap_type call.
11158
11159 2010-07-04 Richard Guenther <rguenther@suse.de>
11160
11161 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
11162
11163 2010-07-04 Richard Guenther <rguenther@suse.de>
11164
11165 PR tree-optimization/44656
11166 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
11167 again after value-replacing in the defintions lhs.
11168
11169 2010-07-04 Ira Rosen <irar@il.ibm.com>
11170 Revital Eres <eres@il.ibm.com>
11171
11172 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
11173 Document new arguments.
11174 * doc/tm.texi: Regenerate.
11175 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
11176 Handle unaligned store.
11177 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
11178 * target.def (builtin_vectorization_cost): Add new arguments.
11179 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
11180 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
11181 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
11182 (vect_vfa_segment_size): Fix indentation.
11183 * tree-vectorizer.h (struct _vect_peel_info): New.
11184 (struct _vect_peel_extended_info): New.
11185 (struct _loop_vec_info): Add new field for peeling hash table and a
11186 macro for its access.
11187 (VECT_MAX_COST): Define.
11188 (vect_get_load_cost): Declare.
11189 (vect_get_store_cost, vect_get_known_peeling_cost,
11190 vect_get_single_scalar_iteraion_cost): Likewise.
11191 (vect_supportable_dr_alignment): Add new argument.
11192 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
11193 field.
11194 (destroy_loop_vec_info): Free peeling hash table.
11195 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
11196 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
11197 vect_analyze_slp. Fix indentation.
11198 (vect_get_single_scalar_iteraion_cost): New function.
11199 (vect_get_known_peeling_cost): Likewise.
11200 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
11201 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
11202 statement. Move outside cost calculation inside unknown peeling case.
11203 Call vect_get_known_peeling_cost for known amount of peeling.
11204 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
11205 reference to the print message of forced alignment.
11206 (vect_verify_datarefs_alignment): Update call to
11207 vect_supportable_dr_alignment.
11208 (vect_get_data_access_cost): New function.
11209 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
11210 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
11211 vect_peeling_hash_choose_best_peeling): Likewise.
11212 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
11213 to store all the accesses in the loop and find best possible access to
11214 align using peeling for known alignment case. For unknown alignment
11215 check if stores are preferred or if peeling is worthy.
11216 (vect_find_same_alignment_drs): Analyze pairs of loads too.
11217 (vect_supportable_dr_alignment): Add new argument and check aligned
11218 accesses according to it.
11219 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
11220 (cost_for_stmt): Call vect_get_stmt_cost.
11221 (vect_model_simple_cost): Likewise.
11222 (vect_model_store_cost): Call vect_get_stmt_cost. Call
11223 vect_get_store_cost to calculate the cost of the statement.
11224 (vect_get_store_cost): New function.
11225 (vect_model_load_cost): Call vect_get_stmt_cost. Call
11226 vect_get_load_cost to calculate the cost of the statement.
11227 (vect_get_load_cost): New function.
11228 (vectorizable_store): Update call to vect_supportable_dr_alignment.
11229 (vectorizable_load): Likewise.
11230 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
11231 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
11232 arguments. Handle unaligned store.
11233 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
11234 (rs6000_builtin_support_vector_misalignment): Return true for word and
11235 double word alignments for VSX.
11236 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
11237 vect_supportable_dr_alignment and builtin_vectorization_cost.
11238
11239 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11240
11241 PR target/44597
11242 * config/pa/predicates.md (prefetch_cc_operand): Remove.
11243 (prefetch_nocc_operand): Likewise.
11244 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
11245 (prefetch_20): New insn.
11246 (prefetch_cc): Remove.
11247 (prefetch_nocc): Likewise.
11248
11249 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
11250
11251 * expr.c (vector_mode_valid_p): Move to c-common.c.
11252 * expr.h (vector_mode_valid_p): Do not declare here.
11253 * system.h: Poison GCC_EXPR_H in front-ends.
11254 * Makefile.in: Update dependencies.
11255
11256 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11257
11258 PR target/44705
11259 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
11260
11261 2010-07-03 Jan Hubicka <jh@suse.cz>
11262
11263 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
11264 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
11265 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
11266 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
11267 Likewise.
11268
11269 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
11270 Update timevars.V
11271 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
11272 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
11273 TV_IPA_LTO_DECL_OUT): New.
11274 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
11275
11276 2010-07-03 Jan Hubicka <jh@suse.cz>
11277
11278 * ipa-inline.c (update_edge_key): Break out from ...
11279 update_callers_keys): ... here;
11280 (update_callee_keys): Update only the edges from caller to callee.
11281 (update_all_calle_keys): Do what update_calle_keys did.
11282 (decide_inlining_of_small_functions): Avoid recomputing of all
11283 callees when badness increase.
11284
11285 2010-07-03 Jie Zhang <jie@codesourcery.com>
11286
11287 * config/arm/arm.c (arm_attr_length_move_neon): New.
11288 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
11289 * config/arm/neon.md (define_mode_attr V_slen): Remove.
11290 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
11291 to compute length attribute.
11292
11293 2010-07-03 Jie Zhang <jie@codesourcery.com>
11294
11295 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
11296 as predicate for operand 1 and remove its constraint.
11297 * config/arm/predicates.md (vfp_register_operand): New.
11298 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
11299 (*push_fp_multi): Likewise.
11300
11301 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
11302
11303 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
11304
11305 2010-07-03 Jan Hubicka <jh@suse.cz>
11306
11307 * config/i386/i386.c (override_options): Revert accidental commit.
11308
11309 2010-07-02 Le-Chun Wu <lcwu@google.com>
11310
11311 PR c++/44128
11312 * doc/invoke.texi: Update documentation of -Wshadow.
11313
11314 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
11315 Julian Brown <julian@codesourcery.com>
11316 Sandra Loosemore <sandra@codesourcery.com>
11317
11318 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
11319 comparisons. Adjust to take both operands.
11320 (arm_select_cc_mode): Handle DImode comparisons.
11321 (arm_gen_compare_reg): Generate a scratch register for DImode
11322 comparisons which require one. Use xor for Thumb equality checks.
11323 (arm_const_double_by_immediates): New.
11324 (arm_print_operand): Allow 'Q' and 'R' for constants.
11325 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
11326 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
11327 arm_canonicalize_comparison.
11328 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
11329 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
11330 prototype.
11331 (arm_const_double_by_immediates): Declare.
11332 * config/arm/constraints.md (Di): New constraint.
11333 * config/arm/predicates.md (arm_immediate_di_operand)
11334 (arm_di_operand, cmpdi_operand): New.
11335 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
11336 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
11337 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
11338 (cstoredi4): Handle non-Cirrus also.
11339
11340 2010-07-02 Julian Brown <julian@codesourcery.com>
11341 Sandra Loosemore <sandra@codesourcery.com>
11342
11343 PR target/43703
11344 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
11345 (smax<mode>3): Disable for NEON float modes when
11346 flag_unsafe_math_optimizations is false.
11347 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
11348 (*mul<mode>3_neon)
11349 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
11350 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
11351 for NEON float modes when flag_unsafe_math_optimizations is false.
11352 (quad_halves_<code>v4sf): Only enable if
11353 flag_unsafe_math_optimizations is true.
11354 * doc/invoke.texi (ARM Options): Add note about floating point
11355 vectorization requiring -funsafe-math-optimizations.
11356
11357 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
11358 Julian Brown <julian@codesourcery.com>
11359
11360 * config/arm/neon.md (UNSPEC_VABA): Delete.
11361 (UNSPEC_VABAL): Delete.
11362 (UNSPEC_VABS): Delete.
11363 (UNSPEC_VMUL_N): Delete.
11364 (adddi3_neon): New.
11365 (subdi3_neon): New.
11366 (mul<mode>3add<mode>_neon): Make the pattern named.
11367 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
11368 (neon_vadd<mode>): Replace with define_expand, and move the remaining
11369 unspec parts...
11370 (neon_vadd<mode>_unspec): ...to this.
11371 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
11372 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
11373 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
11374 (neon_vaba<mode>): Rewrite in terms of vabd.
11375 (neon_vabal<mode>): Rewrite in terms of vabdl.
11376 (neon_vabs<mode>): Rewrite without unspec.
11377 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
11378 (*arm_subdi3): Likewise.
11379 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
11380 No_op attribute to disable assembly output checks.
11381 * config/arm/arm_neon.h: Regenerated.
11382 * doc/arm-neon-intrinsics.texi: Regenerated.
11383
11384 2010-07-02 Jan Hubicka <jh@suse.cz>
11385
11386 * ipa-split.c (split_function): For aggregate values, set the return
11387 slot optimization bit. When passing DECL_BY_REFERENCE, produce
11388 *<retval> = fncall.part ().
11389 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
11390
11391 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
11392
11393 * config/arm/neon.md (UNSPEC_VAND): Delete.
11394 (UNSPEC_VBIC): Delete.
11395 (UNSPEC_VCLZ): Delete.
11396 (UNSPEC_VCNT): Delete.
11397 (UNSPEC_VEOR): Delete.
11398 (UNSPEC_VORN): Delete.
11399 (UNSPEC_VORR): Delete.
11400 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
11401 core registers too.
11402 (anddi3_neon): Likewise.
11403 (orndi3_neon): Likewise.
11404 (bicdi3_neon): Likewise.
11405 (xordi3_neon): Likewise.
11406 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
11407 rid of unspec and handle unused operand.
11408 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
11409 * config/arm/predicates.md (imm_for_neon_logic_operand):
11410 Require TARGET_NEON.
11411 (imm_for_neon_inv_logic_operand): Likewise.
11412 * config/arm/arm.md (define_split for logical_binary_operator):
11413 Disable for NEON registers.
11414 (anddi3): Add new define_expand, and rename the insn. Disable
11415 this insn for NEON, where anddi3_neon now applies.
11416 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
11417 (iordi3): As for anddi3.
11418 (xordi3): Likewise.
11419 * config/arm/neon.ml (Vand): Split DImode variants and mark them
11420 as No_op to disable testing for exact instruction match.
11421 (Vorr): Likewise.
11422 (Veor): Likewise.
11423 (Vbic): Likewise.
11424 (Vorn): Likewise.
11425 * config/arm/arm_neon.h: Regenerated.
11426 * doc/arm-neon-intrinsics.texi: Regenerated.
11427
11428 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
11429
11430 * expr.h (emit_stack_probe): Declare.
11431 * explow.c (emit_stack_probe): Make global.
11432 (anti_adjust_stack_and_probe): Fix comments.
11433 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
11434 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11435 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11436 * config/sparc/sparc.c: Include except.h.
11437 (sparc_emit_probe_stack_range): New function.
11438 (output_probe_stack_range): Likewise.
11439 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
11440 built-in stack checking is enabled.
11441 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
11442 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
11443 (probe_stack_range): New insn.
11444
11445 2010-07-02 Richard Guenther <rguenther@suse.de>
11446
11447 PR target/43958
11448 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
11449 for argument alignment.
11450
11451 2010-07-02 Jan Hubicka <jh@suse.cz>
11452
11453 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
11454 walk backwards from entry_bb to check only those basic block of header
11455 that might lead to execution of split part.
11456 (consider_split) ... here.
11457 (find_return_bb): Allow assignment in return BB.
11458 (find_retval): New.
11459 (split_function): Fix name of cloned function; take care of updating
11460 return value in return_bb containing move.
11461
11462 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
11463
11464 PR target/44771
11465 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
11466 used variable insn.
11467
11468 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
11469
11470 * implicit-zee.c (combine_reaching_defs): Fix long lines.
11471 (is_set_with_extension_DI): Delete.
11472 (struct zero_extend_info): New structure.
11473 (add_removable_zero_extend): New function.
11474 (find_removable_zero_extends): Use note_stores to find SETs.
11475 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
11476
11477 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
11478
11479 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
11480 is_miss_rate_acceptable. Pull total_positions computation
11481 out of the loops. Early return if miss_positions exceeds
11482 the acceptable threshold.
11483 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
11484 is_miss_rate_acceptable after renaming of compute_miss_rate.
11485
11486 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
11487
11488 PR middle-end/44576
11489 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
11490 of 1000) for miss rate if the address diference is greater than or
11491 equal to the cache line size (the two reference will never hit the
11492 same cache line).
11493
11494 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
11495
11496 PR target/42835
11497 * config/arm/arm-modes.def (CC_NOTB): New mode.
11498 * config/arm/arm.c (get_arm_condition_code): Handle it.
11499 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
11500 * config/arm/arm.md (subsi3_compare0_c): New pattern.
11501 (compare_scc): Now a define_and_split. Add a number of extra
11502 splitters before it.
11503
11504 PR target/42172
11505 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
11506 and ZERO_EXTEND.
11507 (arm_rtx_costs_1): Likewise.
11508 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
11509 * config/arm/arm.md (is_arch6): New attribute.
11510 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
11511 extendqisi2): Tighten the code somewhat, avoiding invalid
11512 RTL to occur in the expander patterns.
11513 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
11514 (thumb1_zero_extendhisi2_v6): Delete.
11515 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
11516 (thumb1_extendhisi2_v6): Delete.
11517 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
11518 (thumb1_extendqisi2_v6): Delete.
11519 (zero_extendhisi2 for register input splitter): New.
11520 (zero_extendqisi2 for register input splitter): New.
11521 (thumb1_extendhisi2 for register input splitter): New.
11522 (extendhisi2 for register input splitter): New.
11523 (extendqisi2 for register input splitter): New.
11524 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
11525 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
11526 and add support for a register alternative requiring a split.
11527 (thumb1_zero_extendqisi2): Likewise.
11528 (arm_zero_extendqisi2): Likewise.
11529 (arm_extendhisi2): Likewise.
11530 (arm_extendqisi2): Likewise.
11531
11532 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
11533
11534 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
11535 instead of an unspec.
11536 (neon_expand_vector_init): Likewise.
11537 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
11538 (UNSPEC_VDUP_LANE): Delete.
11539 (UNSPEC VDUP_N): Delete.
11540 (UNSPEC_VGET_HIGH): Delete.
11541 (UNSPEC_VGET_LANE): Delete.
11542 (UNSPEC_VGET_LOW): Delete.
11543 (UNSPEC_VMVN): Delete.
11544 (UNSPEC_VSET_LANE): Delete.
11545 (V_double_vector_mode): New.
11546 (vec_set<mode>_internal): Make code emitted match that for the
11547 corresponding intrinsics.
11548 (vec_setv2di_internal): Likewise.
11549 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
11550 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
11551 (neon_vset_lane<mode>): Combine double and quad patterns and
11552 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
11553 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
11554 (neon_vdup_n<mode>): Rewrite RTL without unspec.
11555 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
11556 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
11557 with neon_vdup_lanev2di, adjusting the pattern from the latter
11558 to be predicable for consistency.
11559 (neon_vdup_lane<mode>_internal): New.
11560 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
11561 to avoid using an unspec.
11562 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
11563 (neon_vdup_lanev2di): Turn into a define_expand.
11564 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
11565 (neon_vget_high<mode>): Replace with....
11566 (neon_vget_highv16qi): New pattern using canonical RTL.
11567 (neon_vget_highv8hi): Likewise.
11568 (neon_vget_highv4si): Likewise.
11569 (neon_vget_highv4sf): Likewise.
11570 (neon_vget_highv2di): Likewise.
11571 (neon_vget_low<mode>): Replace with....
11572 (neon_vget_lowv16qi): New pattern using canonical RTL.
11573 (neon_vget_lowv8hi): Likewise.
11574 (neon_vget_lowv4si): Likewise.
11575 (neon_vget_lowv4sf): Likewise.
11576 (neon_vget_lowv2di): Likewise.
11577
11578 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
11579 test for this emitting vmov.
11580 (Vset_lane): Likewise.
11581 (Vdup_n): Likewise.
11582 (Vmov_n): Likewise.
11583
11584 * doc/arm-neon-intrinsics.texi: Regenerated.
11585
11586 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
11587
11588 * config/arm/neon.md (vec_extractv2di): Correct error in register
11589 numbering to reconcile with neon_vget_lanev2di.
11590
11591 2010-07-02 Richard Guenther <rguenther@suse.de>
11592
11593 * tree-ssa-structalias.c (pt_solution_set_var): New function.
11594 * tree-ssa-alias.h (pt_solution_set_var): Declare.
11595 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
11596 points-to information.
11597
11598 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
11599
11600 * config/s390/s390.c (override_options): Adopt prefetching
11601 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
11602
11603 2010-07-02 Jan Hubicka <jh@suse.cz>
11604
11605 * df-problems.c (df_kill_notes): Do not collect dead notes.
11606 (df_set_note): Just call add_reg_note.
11607 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
11608 df_create_unused_note): Do not deal with lists of old notes.
11609 (df_note_bb_compute): Likewise.
11610
11611 2010-07-02 Richard Guenther <rguenther@suse.de>
11612
11613 * tree-ssa-structalias.c (find_func_aliases): Handle
11614 pointer alignment via BIT_AND_EXPR.
11615 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
11616
11617 2010-07-02 Richard Guenther <rguenther@suse.de>
11618
11619 * tree-data-ref.c (initialize_data_dependence_relation): Handle
11620 mismatching number of dimensions properly.
11621
11622 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11623
11624 PR target/44707
11625 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
11626 (lo_sum (high ...) ...) patterns generated by earlier passes.
11627
11628 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11629
11630 * doc/install.texi (Prerequisites): Document Perl requirement on
11631 Solaris 2.
11632 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
11633
11634 2010-07-02 Richard Guenther <rguenther@suse.de>
11635
11636 PR middle-end/44777
11637 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
11638
11639 2010-07-02 Jan Hubicka <jh@suse.cz>
11640
11641 PR middle-end/44706
11642 * predict.c (predict_paths_for_bb): Handle case when control dependence
11643 BB has only abnormal edges.
11644
11645 2010-07-02 Richard Guenther <rguenther@suse.de>
11646
11647 PR tree-optimization/44748
11648 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
11649 the embedded conversion in MEM_REFs.
11650
11651 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
11652
11653 * reload.c: Include toplev.h.
11654 * recog.c: Likewise.
11655 * Makefile.in: Adjust dependencies.
11656
11657 2010-07-01 Jakub Jelinek <jakub@redhat.com>
11658
11659 PR debug/44694
11660 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
11661 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
11662
11663 2010-07-01 Richard Guenther <rguenther@suse.de>
11664
11665 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
11666 types for offsets.
11667
11668 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
11669
11670 PR target/44732
11671 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
11672 Fix argument types.
11673
11674 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
11675
11676 PR target/44727
11677 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
11678 Make sure operand 0 dies.
11679
11680 2010-07-01 Richard Guenther <rguenther@suse.de>
11681
11682 PR middle-end/42834
11683 PR middle-end/44468
11684 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
11685 * doc/generic.texi (References to storage): Document MEM_REF.
11686 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
11687 (print_call_name): Likewise.
11688 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
11689 (build_simple_mem_ref_loc): New function.
11690 (mem_ref_offset): Likewise.
11691 * tree.h (build_simple_mem_ref_loc): Declare.
11692 (build_simple_mem_ref): Define.
11693 (mem_ref_offset): Declare.
11694 * fold-const.c: Include tree-flow.h.
11695 (operand_equal_p): Handle MEM_REF.
11696 (build_fold_addr_expr_with_type_loc): Likewise.
11697 (fold_comparison): Likewise.
11698 (fold_unary_loc): Fold
11699 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
11700 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
11701 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
11702 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
11703 (ptr_deref_may_alias_ref_p_1): Likewise.
11704 (ao_ref_base_alias_set): Properly differentiate base object for
11705 offset and TBAA.
11706 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
11707 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
11708 (indirect_refs_may_alias_p): Likewise.
11709 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
11710 chasing code.
11711 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
11712 (call_may_clobber_ref_p_1): Likewise.
11713 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
11714 * expr.c (expand_assignment): Handle MEM_REF.
11715 (store_expr): Handle MEM_REFs from STRING_CSTs.
11716 (store_field): If expanding a MEM_REF of a non-addressable
11717 decl use bitfield operations.
11718 (get_inner_reference): Handle MEM_REF.
11719 (expand_expr_addr_expr_1): Likewise.
11720 (expand_expr_real_1): Likewise.
11721 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
11722 * alias.c (ao_ref_from_mem): Handle MEM_REF.
11723 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
11724 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
11725 (dr_analyze_indices): Likewise.
11726 (dr_analyze_alias): Likewise.
11727 (object_address_invariant_in_loop_p): Likewise.
11728 * gimplify.c (mark_addressable): Handle MEM_REF.
11729 (gimplify_cond_expr): Build MEM_REFs.
11730 (gimplify_modify_expr_to_memcpy): Likewise.
11731 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
11732 (gimple_fold_indirect_ref): Adjust.
11733 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
11734 * tree.def (MEM_REF): New tree code.
11735 * tree-dfa.c: Include toplev.h.
11736 (get_ref_base_and_extent): Handle MEM_REF.
11737 (get_addr_base_and_unit_offset): New function.
11738 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
11739 * gimple-fold.c (may_propagate_address_into_dereference): Handle
11740 MEM_REF.
11741 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
11742 accesses if the array has just one dimension. Remove always true
11743 parameter. Do not require type compatibility here.
11744 (maybe_fold_offset_to_component_ref): Remove.
11745 (maybe_fold_stmt_indirect): Remove.
11746 (maybe_fold_reference): Remove INDIRECT_REF handling.
11747 Fold back to non-MEM_REF.
11748 (maybe_fold_offset_to_address): Simplify. Deal with type
11749 mismatches here.
11750 (maybe_fold_reference): Likewise.
11751 (maybe_fold_stmt_addition): Likewise. Also handle
11752 &ARRAY + I in addition to &ARRAY[0] + I.
11753 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
11754 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
11755 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
11756 * tree-ssa.c (useless_type_conversion_p): Make most pointer
11757 conversions useless.
11758 (warn_uninitialized_var): Handle MEM_REF.
11759 (maybe_rewrite_mem_ref_base): New function.
11760 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
11761 to SSA form.
11762 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
11763 INDIRECT_REF handling.
11764 (copy_tree_body_r): Handle MEM_REF.
11765 * gimple.c (is_gimple_addressable): Adjust.
11766 (is_gimple_address): Likewise.
11767 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
11768 invariant base are invariant.
11769 (is_gimple_min_lval): Adjust.
11770 (is_gimple_mem_ref_addr): New function.
11771 (get_base_address): Handle MEM_REF.
11772 (count_ptr_derefs): Likewise.
11773 (get_base_loadstore): Likewise.
11774 * gimple.h (is_gimple_mem_ref_addr): Declare.
11775 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
11776 * tree-cfg.c (verify_address): New function, split out from ...
11777 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
11778 the address operand of MEM_REFs. Verify MEM_REFs. Reject
11779 INDIRECT_REFs.
11780 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
11781 INDIRECT_REF. Allow conversions.
11782 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
11783 a register does not change its size.
11784 (verify_types_in_gimple_reference): Verify MEM_REF.
11785 (verify_gimple_assign_single): Disallow INDIRECT_REF.
11786 Handle MEM_REF.
11787 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
11788 New.
11789 (mark_address_taken): Handle MEM_REF.
11790 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
11791 (get_asm_expr_operands): Pass opf_not_non_addressable.
11792 (get_expr_operands): Handle opf_[not_]non_addressable.
11793 Handle MEM_REF. Remove INDIRECT_REF handling.
11794 * tree-vrp.c (check_array_ref): Handle MEM_REF.
11795 (search_for_addr_array): Likewise.
11796 (check_array_bounds): Likewise.
11797 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
11798 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
11799 (ref_always_accessed_p): Likewise.
11800 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
11801 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
11802 Handle MEM_REF.
11803 * cgraphbuild.c (mark_load): Properly check for NULL result
11804 from get_base_address.
11805 (mark_store): Likewise.
11806 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
11807 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
11808 handling for MEM_REF.
11809 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
11810 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
11811 * builtins.c (stabilize_va_list_loc): Use the function ABI
11812 valist type if we couldn't canonicalize the argument type.
11813 Always dereference with the canonical va-list type.
11814 (maybe_emit_free_warning): Handle MEM_REF.
11815 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
11816 memmove to memcpy.
11817 * builtins.c (fold_builtin_memory_op): Use ref-all types
11818 for all memcpy foldings.
11819 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
11820 (build_outer_var_ref): Likewise.
11821 (scan_omp_1_op): Likewise.
11822 (lower_rec_input_clauses): Likewise.
11823 (lower_lastprivate_clauses): Likewise.
11824 (lower_reduction_clauses): Likewise.
11825 (lower_copyprivate_clauses): Likewise.
11826 (expand_omp_atomic_pipeline): Likewise.
11827 (expand_omp_atomic_mutex): Likewise.
11828 (create_task_copyfn): Likewise.
11829 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
11830 Remove old union trick. Initialize constant offsets.
11831 (ao_ref_init_from_vn_reference): Likewise. Do not handle
11832 INDIRECT_REF. Init base_alias_set properly.
11833 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
11834 (vn_reference_fold_indirect): Adjust for MEM_REFs.
11835 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
11836 for ARRAY_REFs.
11837 (may_insert): Remove.
11838 (visit_reference_op_load): Do not test may_insert.
11839 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
11840 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
11841 a field to store the constant offset this op applies.
11842 (run_scc_vn): Adjust prototype.
11843 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
11844 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
11845 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
11846 bother about volatile qualifiers on pointers.
11847 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
11848 * tree-ssa-loop-ivopts.c
11849 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
11850 (strip_offset_1): Likewise.
11851 (find_interesting_uses_address): Replace INDIRECT_REF handling with
11852 MEM_REF handling.
11853 (get_computation_cost_at): Likewise.
11854 * ipa-pure-const.c (check_op): Handle MEM_REF.
11855 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
11856 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
11857 and constants.
11858 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
11859 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
11860 (eliminate_local_variables_1): Likewise.
11861 (create_call_for_reduction_1): Likewise.
11862 (create_loads_for_reductions): Likewise.
11863 (create_loads_and_stores_for_name): Likewise.
11864 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
11865 (ssa_accessed_in_tree): Handle MEM_REF.
11866 (ssa_accessed_in_assign_rhs): Likewise.
11867 (update_type_size): Likewise.
11868 (analyze_accesses_for_call_stmt): Likewise.
11869 (analyze_accesses_for_assign_stmt): Likewise.
11870 (transform_access_sites): Likewise.
11871 (transform_allocation_sites): Likewise.
11872 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
11873 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
11874 not handle INDIRECT_REF.
11875 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
11876 (cond_store_replacement): Likewise.
11877 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
11878 MEM_REF, no not handle INDIRECT_REFs.
11879 (insert_into_preds_of_block): Properly initialize avail.
11880 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
11881 for ARRAY_REFs. Properly handle reference lookups that
11882 require a bit re-interpretation.
11883 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
11884 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
11885 (build_ref_for_offset_1): Remove.
11886 (build_ref_for_offset): Build MEM_REFs.
11887 (gate_intra_sra): Disable for now.
11888 (sra_ipa_modify_expr): Handle MEM_REF.
11889 (ipa_early_sra_gate): Disable for now.
11890 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
11891 MEM_REF handling.
11892 (disqualify_base_of_expr): Likewise.
11893 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
11894 MEM_REF handling.
11895 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
11896 Use mem_ref_offset. Remove bogus folding.
11897 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
11898 (make_fancy_name_1): Add support for MEM_REF.
11899 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
11900 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
11901 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
11902 (compute_complex_ancestor_jump_func): Likewise.
11903 (ipa_analyze_virtual_call_uses): Likewise.
11904 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
11905 INDIRECT_REF folding with more generalized MEM_REF folding.
11906 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
11907 (forward_propagate_addr_into_variable_array_index): Also handle
11908 &ARRAY + I in addition to &ARRAY[0] + I.
11909 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
11910 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
11911 creates assignments with overlap.
11912 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
11913 (get_frame_field): Likewise.
11914 (get_nonlocal_debug_decl): Likewise.
11915 (convert_nonlocal_reference_op): Likewise.
11916 (struct nesting_info): Add mem_refs pointer-set.
11917 (create_nesting_tree): Allocate it.
11918 (convert_local_reference_op): Insert to be folded mem-refs.
11919 (fold_mem_refs): New function.
11920 (finalize_nesting_tree_1): Perform defered folding of mem-refs
11921 (free_nesting_tree): Free the pointer-set.
11922 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
11923 (vectorizable_load): Likewise.
11924 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
11925 (propagate_with_phi): Likewise.
11926 * tree-object-size.c (addr_object_size): Handle MEM_REFs
11927 instead of INDIRECT_REFs.
11928 (compute_object_offset): Handle MEM_REF.
11929 (plus_stmt_object_size): Handle MEM_REF.
11930 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
11931 for &MEM_REF.
11932 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
11933 (symbol_marked_for_renaming): Likewise.
11934 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
11935 (fold-const.o): Add $(TREE_FLOW_H).
11936 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
11937 (find_func_clobbers): Likewise.
11938 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
11939 (decompose_access): Likewise.
11940 (replace_field_acc): Likewise.
11941 (replace_field_access_stmt): Likewise.
11942 (insert_new_var_in_stmt): Likewise.
11943 (get_stmt_accesses): Likewise.
11944 (reorg_structs_drive): Disable.
11945 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
11946 (ix86_canonical_va_list_type): Likewise.
11947
11948 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
11949
11950 PR other/44566
11951 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
11952 * target.def (struct gcc_target): Replace enum reg_class with
11953 reg_class_t in hook argument / return types.
11954 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
11955 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
11956 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
11957 * targhooks.h (default_branch_target_register_class): Likewise.
11958 (default_ira_cover_classes, default_secondary_reload): Likewise.
11959 (default_memory_move_cost, default_register_move_cost): Likewise.
11960 * targhooks.c (default_branch_target_register_class): Likewise.
11961 (default_ira_cover_classes, default_secondary_reload): Likewise.
11962 (default_memory_move_cost, default_register_move_cost): Likewise.
11963 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
11964 * bt-load.c (branch_target_load_optimize): Likewise.
11965 * ira.c (setup_cover_and_important_classes): Likewise.
11966 * ira-costs.c (copy_cost): Likewise.
11967 * reload1.c (emit_input_reload_insns): Likewise.
11968 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
11969 * config/frv/frv.c (frv_secondary_reload): Likewise.
11970 * config/s390/s390.c (s390_secondary_reload): Likewise.
11971 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
11972 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
11973 (ix86_register_move_cost): Likewise.
11974 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
11975 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
11976 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
11977 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
11978 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
11979 (rs6000_ira_cover_classes): Likewise.
11980 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
11981 * config/picochip/picochip-protos.h (picochip_secondary_reload):
11982 Likewise.
11983 * config/pa/pa.c (pa_secondary_reload): Likewise.
11984 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
11985 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
11986 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
11987 * doc/tm.texi: Regenerate.
11988
11989 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
11990
11991 PR bootstrrap/44726
11992 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
11993 use.
11994 (build_alias_set_optimal_p): Likewise.
11995 (build_base_obj_set_for_drs): Likewise.
11996
11997 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
11998
11999 * target.def: Remove comment about licensing problems of function
12000 declarations.
12001
12002 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
12003 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
12004 * doc/tm.texi: Regenerate.
12005
12006 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
12007 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
12008
12009 * target.def (enum_va_list_p): Use DEFHOOK.
12010 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
12011 Rename ptype to ptree.
12012 * doc/tm.texi: Regenerate.
12013
12014 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
12015 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
12016 * doc/tm.texi: Regenerate.
12017
12018 * target.def (memory_move_cost): Use DEFHOOK.
12019 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
12020 Rename regclass AKA class to rclass.
12021 * doc/tm.texi: Regenerate.
12022
12023 * target.def (pragma_parse): Use DEFHOOK.
12024 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
12025 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
12026 * doc/tm.texi: Regenerate.
12027
12028 * target.def (pass_by_reference): Use DEFHOOK.
12029 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
12030 * doc/tm.texi: Regenerate.
12031
12032 * target.def (resolve_overloaded_builtin): Rename params to arglist.
12033 Use DEFHOOK.
12034 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
12035 * doc/tm.texi: Regenerate.
12036
12037 * target.def (return_pops_args): Use DEFHOOK.
12038 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
12039 Rename stack-size to size.
12040 * doc/tm.texi: Regenerate.
12041
12042 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
12043 last-sched_cycle to last_clock, cur_cycle to clock.
12044 * doc/tm.texi.in: Use @hook.
12045 * doc/tm.texi: Regenerate.
12046
12047 * target.def (print_operand, print_operand_address): Update comment.
12048 (print_operand_punct_valid_p): Likewise.
12049
12050 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
12051
12052 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
12053 to rtl.h.
12054 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
12055 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
12056 * rtl-error.h: New.
12057 * regrename.c: Do not include toplev.h. Include rtl-error.h.
12058 * rtl-error.c: Likewise.
12059 * reload.c: Likewise.
12060 * recog.c: Likewise.
12061 * sel-sched.c: Likewise.
12062 * function.c: Likewise.
12063 * reg-stack.c: Likewise.
12064 * cfgrtl.c: Likewise.
12065 * reload1.c: Likewise.
12066 * final.c: Include rtl-error.
12067 * Makefile.in: Adjust dependencies.
12068
12069 2010-06-30 Jan Hubicka <jh@suse.cz>
12070
12071 PR middle-end/PR44706
12072 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
12073 to return the value.
12074
12075 2010-06-30 Michael Matz <matz@suse.de>
12076
12077 PR bootstrap/44699
12078 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
12079 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
12080 a gimple reg, attach the original VDEF to the last store in the
12081 sequence.
12082
12083 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
12084
12085 PR other/44034
12086 * config/darwin.c (darwin_override_options): Use renamed
12087 targetm.asm_out.emit_unwind_label.
12088
12089 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
12090
12091 PR tree-optimization/39799
12092 * tree-inline.c (remap_ssa_name): Initialize variable only if
12093 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
12094
12095 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
12096
12097 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
12098
12099 2010-06-30 Richard Guenther <rguenther@suse.de>
12100
12101 PR target/44722
12102 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
12103 against oscillation with reverse peephole2.
12104
12105 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
12106
12107 PR target/44721
12108 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12109 Fix last commit.
12110
12111 2010-06-30 Nick Clifton <nickc@redhat.com>
12112
12113 * config/rx/rx-modes.def: New file.
12114 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
12115 (CC_REGNUM): Define.
12116 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
12117 register.
12118 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
12119 (SELECT_CC_MODE): Define.
12120 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
12121 (reg:CC CC_REG) instead of (cc0).
12122 (attr "cc"): Delete.
12123 (cbranchsi4): Do not split compare and branch here. Instead move
12124 it to...
12125 (cbranchsi4_<code>): ... here. New patterns.
12126 (cmpsi): Call rx-compare_redundant to find out if it is necessary
12127 to emit the compare instruction.
12128 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
12129 cc_status flags.
12130 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
12131 FIRST_PSEUDO_REGNUM.
12132 (rx_expand_prologue, rx_expand_epilogue): Likewise.
12133 (rx_notice_update_cc): Delete.
12134 (rx_cc_modes_compatible): New function.
12135 (flags_needed_for_conditional): New function.
12136 (flags_from_mode): New function.
12137 (rx_compare_redundant): New function - scans backwards through
12138 insn list to find out if condition flags are already set correctly.
12139 (TARGET_CC_MODES_COMPATIBLE): Define.
12140 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
12141
12142 * config/rx/rx.h (BRANCH_COST): Define.
12143 (REGISTER_MOVE_COST): Define.
12144 * config/rx/predicates (rx_source_operand): Allow all constant types.
12145 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
12146 (tstsi4): New pattern.
12147 * config/rx/rx.c (rx_memory_move_cost): Define.
12148 (TARGET_MEMORY_MOVE_COST): Define.
12149
12150 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
12151
12152 * tree.h (block_may_fallthru): Declare here.
12153 * tree-flow.h (block_may_fallthru): Do not declare here.
12154 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
12155 bitmap.h
12156 * Makefile.in (c-typeck.o): Update dependencies.
12157
12158 2010-06-30 Jakub Jelinek <jakub@redhat.com>
12159
12160 PR debug/44694
12161 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
12162 * cselib.c (cfa_base_preserved_regno): New static variable.
12163 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
12164 of REGNO (cfa_base_preserved_val->locs->loc).
12165 (cselib_preserve_cfa_base_value): Add regno argument, set
12166 cfa_base_preserved_regno to it.
12167 (cselib_invalidate_regno): Allow removal of registers other than
12168 cfa_base_preserved_regno from cfa_base_preserved_val.
12169 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
12170 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
12171 of MEM addresses, if not on LHS.
12172 (reverse_op): Don't add reverse ops for cfa_base_rtx.
12173 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
12174
12175 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
12176
12177 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
12178 static variables.
12179 (peep2_buf_position): New static function.
12180 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
12181 peephole2_optimize): Use it.
12182 (peep2_attempt, peep2_update_life): New static functions, broken out
12183 of peephole2_optimize.
12184 (peep2_fill_buffer): New static function.
12185 (peephole2_optimize): Change the main loop to try to fill the buffer
12186 with the maximum number of insns before matching them against
12187 peepholes. Use a forward scan. Remove special case for targets with
12188 conditional execution.
12189 * genrecog.c (change_state): Delete dead code.
12190 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12191 Rewrite so as not to expect the second insn to have had a peephole
12192 applied yet.
12193
12194 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
12195
12196 * genhooks.c (emit_findices): Cast field precision to int.
12197 (emit_documentation): Likewise.
12198
12199 2010-06-29 Jakub Jelinek <jakub@redhat.com>
12200
12201 PR tree-optimization/43801
12202 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
12203 if old_decl was DECL_ONE_ONLY.
12204
12205 PR debug/44668
12206 * dwarf2out.c (add_accessibility_attribute): New function.
12207 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
12208 instead of adding DW_AT_accessibility manually.
12209 (gen_enumeration_type_die, gen_struct_or_union_type_die,
12210 gen_typedef_die): Use it.
12211
12212 2010-06-29 Douglas B Rupp <rupp@gnat.com>
12213
12214 * vmsdbgout.c (full_name): Just output the file name if not native.
12215
12216 2010-06-29 Douglas B Rupp <rupp@gnat.com>
12217
12218 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
12219 (funcnam_table): New static table.
12220 (funcnum_table): New static table.
12221 (write_rtnbeg): Write value saved in funcnum_table.
12222 (write_rtnend): Write value saved in funcnum_table.
12223 (vmsdbgout_begin_function): Save current function info in
12224 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
12225 (vmsdbgout_finish): Iterate over funcnum_table.
12226
12227 2010-06-29 Douglas B Rupp <rupp@gnat.com>
12228
12229 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
12230 (vmsdbgout_type_decl): Declare
12231 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
12232 (FUNC_EPILOGUE_LABEL): New macro
12233 (vmsdbgout_begin_epilogue): New function.
12234 (vmsdbgout_type_decl): New function.
12235
12236 2010-06-29 Douglas B Rupp <rupp@gnat.com>
12237
12238 * vmsdbg.h: Update copyright.
12239
12240 2010-06-29 Douglas B Rupp <rupp@gnat.com>
12241
12242 * vmsdbg.h (DST_K_TBG): New DST constant.
12243 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
12244 (write_modbeg): Cast module_language to avoid warning.
12245 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
12246
12247 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
12248
12249 PR other/44034
12250 * target.def, doc/tm.texi.in, genhooks.c: New files.
12251 * target.h: Instead of defining individual hook members,
12252 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
12253 include target.def.
12254 * target-def.h: Instead of defining individual hook initializers,
12255 include target-hooks-def.h.
12256 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
12257 targetm.live_on_entry -> targetm.extra_live_on_entry
12258 targetm.sched.md_finish ->targetm.sched.finish
12259 targetm.sched.md_init -> targetm.sched.init
12260 targetm.sched.md_init_global -> targetm.sched.init_global
12261 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
12262 targetm.asm_out.except_table_label ->
12263 targetm.asm_out.emit_except_table_label
12264 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
12265 targetm.target_help -> targetm.help
12266 targetm.vectorize.builtin_support_vector_misalignment ->
12267 targetm.vectorize.support_vector_misalignment
12268 targetm.file_start_app_off -> targetm.asm_file_start_app_off
12269 targetm.file_start_file_directive ->
12270 targetm.asm_file_start_file_directive
12271 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
12272 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
12273 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
12274 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
12275 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
12276 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
12277 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
12278 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
12279 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
12280 * Makefile.in (TARGET_H): Depend on target.def.
12281 (TARGET_DEF_H): Depend on target-hooks-def.h.
12282 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
12283 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
12284 * doc/tm.texi: Regenerate.
12285
12286 * Makefile.in (s-tm-texi): Remove stray tab / rule.
12287
12288 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
12289 (targetm.sched.init): Likewise.
12290
12291 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
12292
12293 PR bootstrap/44713
12294 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
12295 (function_arg_advance_32): Const-ify TYPE parameter.
12296 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
12297 (ix86_function_arg_advance): Change type of NAMED to bool.
12298 (function_arg_32): Const-ify CUM and TYPE parameters.
12299 (function_arg_64): Likewise. Change type of NAMED to bool.
12300 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
12301 to bool.
12302 (ix86_function_arg): Change type of NAMED to bool.
12303 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
12304 last argument as a bool.
12305
12306 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
12307
12308 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
12309 (OVERRIDE_OPTIONS): Add note of obsolescence.
12310 Replace references with references to TARGET_OPTION_OVERRIDE.
12311 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
12312 the macro).
12313 * targhooks.c (default_target_option_override): New function.
12314 * targhooks.h (default_target_option_override): Declare.
12315 * target.h (struct gcc_target): Add override member to
12316 target_option member.
12317 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
12318 targetm.target_option.override call.
12319 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
12320 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
12321
12322 2010-06-29 Jan Hubicka <jh@suse.cz>
12323
12324 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
12325
12326 2010-06-29 Jan Hubicka <jh@suse.cz>
12327
12328 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
12329 unreachable.
12330 (rebuild_frequencies): New function.
12331 * predict.h (rebuild_frequencies): Declare.
12332 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
12333 entry block and edge reaching new_entry.
12334 (tree_function_versioning): When doing partial cloning, rebuild
12335 frequencies when done.
12336 * passes.c (execute_function_todo): Use rebild_frequencies.
12337
12338 2010-06-29 Richard Guenther <rguenther@suse.de>
12339
12340 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
12341 * tree-flow.h (enum noalias_state): Remove.
12342 (struct var_ann_d): Remove noalias_state member.
12343
12344 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
12345
12346 PR target/43902
12347 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
12348 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
12349 (maddhidi4): Likewise.
12350
12351 Revert parts of the change for PR25130.
12352 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12353 MEM_ALIAS_SET.
12354
12355 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
12356
12357 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
12358 targetm.calls.function_incoming_arg, and
12359 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
12360 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
12361 * target.h (struct gcc_target): Add function_arg_advance,
12362 function_arg, and function_incoming_arg fields.
12363 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
12364 (TARGET_FUNCTION_INCOMING_ARG): Define.
12365 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
12366 and TARGET_FUNCTION_INCOMING_ARG.
12367 * targhooks.h (default_function_arg_advance): Declare.
12368 (default_function_arg, default_function_incoming_arg): Declare.
12369 * targhooks.c (default_function_arg_advance): New function.
12370 (default_function_arg, default_function_incoming_arg): New function.
12371 * config/i386/i386.c (function_arg_advance): Rename to...
12372 (ix86_function_arg_advance): ...this. Make static.
12373 (function_arg): Rename to...
12374 (ix86_function_arg): ...this. Make static.
12375 (TARGET_FUNCTION_ARG_ADVANCE): Define.
12376 (TARGET_FUNCTION_ARG): Define.
12377 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
12378 (FUNCTION_ARG): Delete.
12379 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
12380 (function_arg): Delete prototype.
12381
12382 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
12383
12384 * reginfo.c (init_reg_sets_1): Adjust comments.
12385 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
12386 * calls.c (prepare_call_address): Likewise.
12387 (emit_call_1): Use targetm.calls.return_pops_args.
12388 (expand_call): Likewise.
12389 * function.c (assign_parms): Likewise.
12390 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
12391 * target.h (struct gcc_target) [struct calls]: Add
12392 return_pops_args field.
12393 * targhooks.h (default_return_pops_args): Declare.
12394 * targhooks.c (default_return_pops_args): Define.
12395 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
12396 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
12397 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
12398 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
12399 documentation.
12400 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
12401 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
12402 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
12403 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
12404 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
12405 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
12406 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
12407 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
12408 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
12409 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
12410 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
12411 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
12412 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
12413 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
12414 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
12415 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
12416 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
12417 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
12418 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
12419 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
12420 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
12421 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
12422 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
12423 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
12424 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
12425 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
12426 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
12427 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
12428 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
12429 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
12430 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
12431 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
12432 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
12433 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
12434 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
12435 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
12436 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
12437 * config/i386/i386.c (ix86_return_pops_args): Make static.
12438 Constify arguments.
12439 (TARGET_RETURN_POPS_ARGS): Define.
12440 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
12441 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
12442 (TARGET_RETURN_POPS_ARGS): Define.
12443 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
12444 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
12445 (TARGET_RETURN_POPS_ARGS): Define.
12446
12447 2010-06-29 Richard Guenther <rguenther@suse.de>
12448
12449 PR middle-end/44667
12450 * tree-inline.c (initialize_inlined_parameters): Make sure
12451 to remap the inlined parameter variable substitutions types.
12452
12453 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
12454
12455 PR rtl-optimization/44659
12456 * combine.c (make_compound_operation) <SUBREG>: Do not return the
12457 result of force_to_mode if it partially re-expanded the compound.
12458
12459 2010-06-28 Jan Hubicka <jh@suse.cz>
12460
12461 PR middle-end/44671
12462 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
12463 RESULT_DECL.
12464
12465 2010-06-28 Anatoly Sokolov <aesok@post.ru>
12466
12467 * double-int.h (force_fit_type_double): Remove declaration.
12468 * double-int.c (force_fit_type_double): Move to tree.c.
12469 * tree.h (force_fit_type_double): Declare.
12470 * tree.h (force_fit_type_double): Moved from double-int.c. Use
12471 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
12472 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
12473 * convert.c (convert_to_pointer): Adjust call to
12474 force_fit_type_double.
12475 * tree-vrp.c (extract_range_from_assert,
12476 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
12477 * fold-const.c: Update comment.
12478 (int_const_binop, fold_convert_const_int_from_int,
12479 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
12480 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
12481 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
12482 round_up_loc): Adjust call to force_fit_type_double.
12483
12484 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12485
12486 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
12487
12488 2010-06-28 Martin Jambor <mjambor@suse.cz>
12489
12490 * tree-sra.c (convert_callers): New parameter, change fndecls of
12491 recursive calls.
12492 (modify_function): Pass the old decl to convert_callers.
12493
12494 2010-06-28 Martin Jambor <mjambor@suse.cz>
12495
12496 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
12497 ipa_check_create_node_params and ipa_initialize_node_params with
12498 checking asserts they are not necessary.
12499
12500 2010-06-28 Jan Hubicka <jh@suse.cz>
12501
12502 PR tree-optimization/44687
12503 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
12504
12505 2010-06-28 Martin Jambor <mjambor@suse.cz>
12506
12507 PR c++/44535
12508 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
12509 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
12510 instead of BINFO_BASE_BINFO.
12511
12512 2010-06-28 Michael Matz <matz@suse.de>
12513
12514 PR middle-end/44592
12515 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
12516 proper VDEF chain for intermediate stores in the sequence.
12517
12518 2010-06-28 Jan Hubicka <jh@suse.cz>
12519
12520 PR tree-optimization/44357
12521 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
12522 uninlinable functions.
12523
12524 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12525
12526 * config.gcc (powerpc*-*-*): Handle titan.
12527 * config/rs6000/rs6000.c (titan_cost): New costs.
12528 (rs6000_override_options): Add "titan" to processor_target_table.
12529 Add Titan to branch alignment logic.
12530 Correctly set rs6000_cost for titan.
12531 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
12532 * config/rs6000/titan.md: New file.
12533 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
12534
12535 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
12536
12537 * tree-browser.c (TB_history_stack): Convert to a VEC.
12538 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
12539 (TB_history_prev): Likewise.
12540
12541 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
12542
12543 * vec.h (vec_heap_free): Add parentheses around free.
12544
12545 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
12546
12547 * system.h: Poison GCC_EXCEPT_H for front-end files.
12548
12549 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
12550 langhook.
12551 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
12552 Define to NULL by default.
12553 * except.h: Define GCC_EXCEPT_H.
12554 (doing_eh): Remove prototype.
12555 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
12556 (lang_protect_cleanup_actions): Remove.
12557 * except.c (lang_protect_cleanup_actions): Remove.
12558 (doing_eh): Remove.
12559 (gen_eh_region): Don't check doing_eh here.
12560 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
12561 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
12562 instead of lang_protect_cleanup_actions.
12563 * omp-low.c (maybe_catch_exception): Likewise.
12564 * Makefile.in: Update dependencies.
12565
12566 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
12567
12568 * cgraph.h (struct varpool_node): new used_from_object_file flag.
12569 (struct cgraph_local_info): new used_from_object_file flag.
12570 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
12571 (cgraph_clone_node): initialize used_from_object_file.
12572 (cgraph_create_virtual_clone): initialize used_from_object_file.
12573 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
12574 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
12575 when compiling with -fwhole-program.
12576 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
12577 internal resolver.
12578 * ipa.c (function_and_variable_visibility): Set externally_visible
12579 flag of varpool_node if used_from_object_file flag is set.
12580 (cgraph_externally_visible_p): check used_from_object_file flag.
12581 * doc/invoke.texi (-fwhole-program option): Change description of
12582 externally_visible attribute accordingly.
12583 * doc/extend.texi (externally_visible): Ditto.
12584
12585 2010-06-27 Jan Hubicka <jh@suse.cz>
12586
12587 * params.def (max-inline-insns-auto): Default to 40.
12588 * doc/invoke.texi (max-inline-insns-auto): Document the change.
12589
12590 2010-06-27 Jan Hubicka <jh@suse.cz>
12591
12592 PR middle-end/44671
12593 PR middle-end/44686
12594 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
12595 signature change.
12596 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
12597 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
12598
12599 2010-06-27 Anatoly Sokolov <aesok@post.ru>
12600
12601 * target.h (struct gcc_target): Add register_move_cost field.
12602 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
12603 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
12604 * targhooks.c (default_register_move_cost): New function.
12605 * targhooks.h (default_register_move_cost): Declare function.
12606 * defaults.h (REGISTER_MOVE_COST): Delete.
12607 * ira-int.h (ira_register_move_cost): Update comment.
12608 * ira.c (ira_register_move_cost): Update comment.
12609 * reload.h (register_move_cost): Declare.
12610 * reginfo.c (register_move_cost): New function.
12611 (move_cost): Update comment.
12612 (init_move_cost, memory_move_secondary_cost): Replace
12613 REGISTER_MOVE_COST with register_move_cost.
12614 * postreload.c (reload_cse_simplify_set): (Ditto.).
12615 * reload.c (find_valid_class, find_reloads): (Ditto.).
12616 * reload1.c (choose_reload_regs): (Ditto.).
12617 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
12618 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
12619 * doc/md.texi (can_create_pseudo_p): Update documentation.
12620
12621 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
12622 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
12623 * config/i386/i386.h (ix86_memory_move_cost): Make static.
12624 (TARGET_MEMORY_MOVE_COST): Define.
12625
12626 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
12627 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
12628 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
12629 (TARGET_MEMORY_MOVE_COST): Define.
12630
12631 2010-06-27 Richard Guenther <rguenther@suse.de>
12632
12633 PR tree-optimization/44683
12634 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
12635 false edge from the inverted condition.
12636
12637 2010-06-27 Richard Guenther <rguenther@suse.de>
12638
12639 PR middle-end/44684
12640 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
12641 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
12642 for register LHS. Or non-store assignments.
12643
12644 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
12645
12646 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
12647 (sparc_emit_set_const64): Likewise. Remove disabled code.
12648 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
12649 (sparc_emit_set_const64): Likewise.
12650
12651 2010-06-26 Catherine Moore <clm@codesourcery.com>
12652
12653 * config/mips/mips.md (alu_type): New attribute.
12654 (type): Infer type from alu_type.
12655 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
12656 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
12657 *subsi3_extended, negsi2, negdi2, *low<mode>,
12658 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
12659 xor<mode>3, *nor<mode>3,
12660 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
12661 *zero_extendhi_truncqi): Set alu_type instead of type.
12662
12663 2010-06-26 Douglas B Rupp <rupp@gnat.com>
12664
12665 * config/alpha/alpha.c (alpha_need_linkage): Adjust
12666 splay_tree_new_ggc call.
12667 (alpha_use_linkage): Likewise.
12668
12669 2010-06-26 Joseph Myers <joseph@codesourcery.com>
12670
12671 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
12672 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
12673 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
12674 (static_specs): Remove switches_need_spaces.
12675 (process_command, do_self_spec): Hardcode handling "-o" instead of
12676 checking switches_need_spaces.
12677 * system.h (SWITCHES_NEED_SPACES): Poison.
12678
12679 2010-06-26 Richard Guenther <rguenther@suse.de>
12680
12681 PR tree-optimization/44393
12682 * tree-loop-distribution.c (generate_loops_for_partition): Fix
12683 stmt removal and VOP renaming.
12684 (generate_memset_zero): Remove redundant stmt updating.
12685 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
12686 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
12687
12688 2010-06-26 Jan Hubicka <jh@suse.cz>
12689
12690 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
12691 edges comming from header are equivalent.
12692 (visit_bb): Handle PHIs correctly.
12693 * tree-inline.c (copy_phis_for_bb): Be able to copy
12694 PHI from entry edge.
12695 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
12696
12697 2010-06-26 Richard Guenther <rguenther@suse.de>
12698
12699 PR middle-end/44674
12700 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
12701 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
12702
12703 2010-06-26 Joseph Myers <joseph@codesourcery.com>
12704
12705 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
12706 add_infile, alloc_switch): New.
12707 (process_command): Remove variable lang_n_infiles. Process
12708 options in a single pass. Use new functions for allocating
12709 infiles and switches arrays. Properly skip operands of
12710 -Xpreprocessor and -Xassembler.
12711
12712 2010-06-26 Jan Hubicka <jh@suse.cz>
12713
12714 PR middle-end/44671
12715 * cgraphunit.c (cgraph_function_versioning): Remove wrong
12716 cgraph_make_decl_local call; fix typo copying RTL data.
12717
12718 2010-06-25 DJ Delorie <dj@redhat.com>
12719
12720 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
12721 (m32c_output_aligned_common): Likewise.
12722 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
12723 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
12724 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
12725 (m32c_register_pragmas): Register it.
12726 * config/m32c/m32c.c (m32c_get_pragma_address): New.
12727 (m32c_insert_attributes): Set #pragma address decls volatile.
12728 (pragma_entry_eq): New.
12729 (pragma_entry_hash): New.
12730 (m32c_note_pragma_address): New.
12731 (m32c_get_pragma_address): New.
12732 (m32c_output_aligned_common): New.
12733 * doc/extend.texi: Document the new pragma.
12734
12735 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
12736 also.
12737 * config/m32c/predicates.md (m32c_any_operand): Check the code
12738 instead of memory_operand so as to allow matching volatile MEMs.
12739 (m32c_nonimmediate_operand): Likewise.
12740 (mra_operand): Allow volatiles.
12741
12742 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
12743
12744 PR debug/44610
12745 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
12746 address if the offset is unknown.
12747
12748 2010-06-25 Douglas B Rupp <rupp@gnat.com>
12749
12750 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
12751 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
12752 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
12753 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
12754 to ia64_start_function. Invoke it.
12755 * config/ia64/ia64.c (ia64_start_function): Call new function
12756 dwarf2out_vms_debug_main_pointer.
12757
12758 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
12759
12760 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
12761 statements computing the true predicate.
12762
12763 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
12764
12765 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
12766 to boolean_true_node.
12767 (reset_bb_predicate): New.
12768 (predicate_bbs): Call reset_bb_predicate.
12769
12770 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
12771
12772 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
12773 (tree_if_conversion): Returns true when something has been changed.
12774 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
12775 changed something.
12776
12777 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
12778
12779 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
12780 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
12781 * tree-if-conv.c: Include dbgcnt.h.
12782 (tree_if_conversion): Use if_conversion_tree to count the number of
12783 if-convertible loops.
12784
12785 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
12786
12787 * common.opt (fprefetch-loop-arrays): Re-define
12788 -fprefetch-loop-arrays as a tri-state option with the initial
12789 value of -1.
12790 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
12791 pass only when flag_prefetch_loop_arrays > 0.
12792 * toplev.c (process_options): Note that, with tri-states,
12793 flag_prefetch_loop_arrays>0 means prefetching is enabled.
12794 * config/i386/i386.c (override_options): Enable prefetching at -O3
12795 for a set of CPUs that sw prefetching is helpful.
12796 (software_prefetching_beneficial_p): New. Return TRUE if software
12797 prefetching is beneficial for the given CPU.
12798
12799 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
12800
12801 PR rtl-optimization/44326
12802 * implicit-zee.c (find_removable_zero_extends): Replace
12803 INSN_P with NONDEBUG_INSN_P.
12804
12805 2010-06-25 Martin Jambor <mjambor@suse.cz>
12806
12807 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
12808 (struct ipa_node_params): Removed the modification_analysis_done flag.
12809 (ipa_is_param_modified): Removed.
12810 (ipa_analyze_node): Declare.
12811 (ipa_compute_jump_functions): Remove declaration.
12812 (ipa_count_arguments): Likewise.
12813 (ipa_detect_param_modifications): Likewise.
12814 (ipa_analyze_params_uses): Likewise.
12815 * ipa-prop.c (struct param_analysis_info): New type.
12816 (visit_store_addr_for_mod_analysis): Removed.
12817 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
12818 moved down in the file.
12819 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
12820 (ipa_count_arguments): Made static.
12821 (mark_modified): New function.
12822 (is_parm_modified_before_call): New function.
12823 (compute_pass_through_member_ptrs): New parameter parms_info, call
12824 is_parm_modified_before_call instead of ipa_is_param_modified.
12825 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
12826 it to compute_pass_through_member_ptrs.
12827 (ipa_compute_jump_functions): New parameter parms_info, pass it to
12828 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
12829 on the callee if it is analyzed. Made static.
12830 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
12831 is_parm_modified_before_call instead of ipa_is_param_modified.
12832 (ipa_analyze_call_uses): New parameter parms_info, pass it to
12833 ipa_analyze_indirect_call_uses.
12834 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
12835 ipa_analyze_call_uses.
12836 (ipa_analyze_params_uses): New parameter parms_info, pass it to
12837 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
12838 (ipa_analyze_node): New function.
12839 (ipa_print_node_params): Do not dump the modified flag.
12840 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
12841 it. Do not stream the modified parameter flag.
12842 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
12843 it. Do not stream the modified parameter flag.
12844 * ipa-cp.c (ipcp_analyze_node): Removed.
12845 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
12846 with only a call to ipa_analyze_node.
12847 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
12848 node with only a call to ipa_analyze_node.
12849
12850 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
12851
12852 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
12853
12854 2010-06-25 Jan Hubicka <jh@suse.cz>
12855
12856 * tree-pass.h (pass_split_functions): Declare.
12857 * opts.c (decode_options): Enable function splitting at -O2
12858 * timevar.def (TV_IPA_FNSPLIT): New macro.
12859 * ipa-split.c: New file.
12860 * common.opt (-fpartial-inlining): New flag.
12861 * Makefile.in (ipa-split.o): New object file.
12862 * passes.c (init_optimization_passes): Add ipa-split.
12863 * params.def (partial-inlining-entry-probability): New parameters.
12864 * doc/invoke.texi (-fpartial-inlining): New.
12865
12866 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
12867
12868 PR 44665
12869 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
12870 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
12871 (gimplify_expr): Likewise.
12872
12873 2010-06-25 Martin Jambor <mjambor@suse.cz>
12874
12875 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
12876 statements instead of bailing out on them.
12877 (ipa_analyze_indirect_call_uses): Do not require that loads from the
12878 parameter are in the same BB as the condition. Update comments.
12879
12880 2010-06-25 Jakub Jelinek <jakub@redhat.com>
12881
12882 PR middle-end/43866
12883 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
12884 true or always false, return NULL_TREE.
12885 (tree_unswitch_single_loop): Optimize conditions even when reaching
12886 max-unswitch-level parameter. If num > 0, optimize first all conditions
12887 using entry checks, then do still reachable block discovery and consider
12888 only conditions in still reachable basic blocks in the loop.
12889
12890 PR tree-optimization/44539
12891 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
12892 the call doesn't have LHS, but has VDEF.
12893
12894 2010-06-25 Joseph Myers <joseph@codesourcery.com>
12895
12896 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
12897 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
12898 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
12899 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
12900 * system.h (MODIFY_TARGET_NAME): Poison.
12901
12902 2010-06-25 Alan Modra <amodra@gmail.com>
12903
12904 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
12905 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
12906 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
12907 CMODEL_LARGE as default.
12908 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
12909 (offsettable_ok_by_alignment): Delete.
12910 (rs6000_emit_move): Remove mcmodel=medium optimization.
12911
12912 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
12913
12914 With large parts from Jim Wilson:
12915 PR target/43902
12916 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
12917 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
12918 * optabs.c (optab_for_tree_code): Likewise.
12919 (expand_widen_pattern_expr): Likewise.
12920 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
12921 out of execute_optimize_widening_mul.
12922 (convert_plusminus_to_widen): New function.
12923 (execute_optimize_widening_mul): Use the two new functions.
12924 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
12925 Remove code to generate widening multiply-accumulate. Add support
12926 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
12927 * gimple-pretty-print.c (dump_ternary_rhs): New function.
12928 (dump_gimple_assign): Call it when appropriate.
12929 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
12930 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
12931 (expand_gimple_stmt_1): Likewise.
12932 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
12933 WIDEN_MULT_MINUS_EXPR.
12934 * tree-ssa-operands.c (get_expr_operands): Likewise.
12935 * tree-inline.c (estimate_operator_cost): Likewise.
12936 * gimple.c (extract_ops_from_tree_1): Renamed from
12937 extract_ops_from_tree. Add new arg for a third operand; fill it.
12938 (gimple_build_assign_stat): Support operations with three operands.
12939 (gimple_build_assign_with_ops_stat): Likewise.
12940 (gimple_assign_set_rhs_from_tree): Likewise.
12941 (gimple_assign_set_rhs_with_ops_1): Renamed from
12942 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
12943 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
12944 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
12945 WIDEN_MULT_MINUS_EXPR.
12946 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
12947 (extract_ops_from_tree_1): Adjust declaration.
12948 (gimple_assign_set_rhs_with_ops_1): Likewise.
12949 (gimple_build_assign_with_ops): Pass NULL for last operand.
12950 (gimple_build_assign_with_ops3): New macro.
12951 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
12952 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
12953 functions.
12954 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
12955 (verify_gimple_assign): Call it.
12956 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
12957 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
12958 functions for dealing with three-operand statements.
12959 * tree.c (commutative_ternary_tree_code): New function.
12960 * tree.h (commutative_ternary_tree_code): Declare it.
12961 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
12962 ternary statements.
12963 (gimple_assign_nonzero_warnv_p): Likewise.
12964 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
12965 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
12966 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
12967 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
12968 (struct hashtable_expr): New member ternary in the union.
12969 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
12970 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
12971 (iterative_hash_hashable_expr): Likewise.
12972 (print_expr_hash_elt): Handle EXPR_TERNARY.
12973 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
12974 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
12975 statements. Handle GIMPLE_TERNARY_RHS.
12976
12977 2010-06-25 Jan Hubicka <jh@suse.cz>
12978
12979 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
12980
12981 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
12982
12983 PR c/44517
12984 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
12985 parameters are not good.
12986 (c_parser_parameter_declaration): Error unknown type name if the type
12987 name can't start declaration specifiers.
12988
12989 2010-06-25 Joseph Myers <joseph@codesourcery.com>
12990
12991 * gcc.c (translate_options): Don't mention +e in comment.
12992 (process_command): Don't handle +e specially.
12993
12994 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
12995
12996 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
12997
12998 * ira-build.c (merge_hard_reg_conflicts): New function.
12999 (create_cap_allocno, copy_info_to_removed_store_destinations,
13000 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
13001 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
13002 (remove_unnecessary_allocnos, remove_low_level_allocnos)
13003 copy_nifo_to_removed_store_destination): Use them.
13004 * ira-lives.c (make_hard_regno_born): New function, split out of
13005 make_regno_born.
13006 (make_allocno_born): Likewise.
13007 (make_hard_regno_dead): New function, split out of make_regno_dead.
13008 (make_allocno_dead): Likewise.
13009 (inc_register_pressure): New function, split out of set_allocno_live.
13010 (dec_register_pressure): New function, split out of clear_allocno_live.
13011 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
13012 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
13013 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
13014 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
13015 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
13016 mark_pseudo_regno_live.
13017 (process_bb_node_lives): Use mark_pseudo_regno_live,
13018 make_hard_regno_born and make_allocno_dead.
13019 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
13020 set_allocno_live, clear_allocno_live): Delete functions.
13021
13022 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
13023 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
13024 functions.
13025 (ira_flattening): Use ira_parent_allocno.
13026 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
13027 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
13028
13029 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
13030 statement.
13031
13032 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
13033 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
13034 minmax_set_iter_cond, minmax_set_iter_next,
13035 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
13036 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
13037 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
13038 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
13039 uses changed.
13040
13041 * ira-int.h (struct live_range, live_range_t): Renamed from struct
13042 ira_allocno_live_range and allocno_live_range_t; all uses changed.
13043 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
13044 All uses changed.
13045
13046 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
13047
13048 * thumb2.md (thumb2_tlobits_cbranch): Delete.
13049 (peephole2 to convert zero_extract/compare of single bit to
13050 lshift/compare): New.
13051
13052 2010-06-24 Anatoly Sokolov <aesok@post.ru>
13053
13054 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
13055 recursive call and call to 'int_const_binop'.
13056 (build_range_check, fold_cond_expr_with_comparison, unextend,
13057 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
13058 multiple_of_p): Adjust call to const_binop.
13059
13060 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
13061
13062 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
13063 determine size of XFmode operand.
13064 (XFmode extended DFmode push splitter): Ditto.
13065 (XFmode extended SFmode push splitter): Ditto.
13066
13067 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
13068
13069 PR target/44588
13070 * config/i386/i386.md (extract_code): New.
13071 (<u>divmodqi4): Likewise.
13072 (divmodhiqi3): Likewise.
13073 (udivmodhiqi3): Likewise.
13074 (<u>divqi3): Remvoved.
13075
13076 2010-06-24 Jakub Jelinek <jakub@redhat.com>
13077
13078 PR middle-end/44492
13079 * recog.h (struct recog_data): Add is_asm field.
13080 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
13081 present in constraints of inline-asm operand and memory operand
13082 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
13083 (extract_insn): Initialize recog_data.is_asm.
13084 * doc/md.texi (Constraints): Document operand side-effect rules.
13085
13086 2010-06-24 Andi Kleen <ak@linux.intel.com>
13087
13088 * c-parser.c (c_parser_conditional_expression): Call
13089 warn_for_omitted_condop.
13090 * doc/invoke.texi: Document omitted condop warning.
13091
13092 2010-06-24 Nick Clifton<nickc@redhat.com>
13093
13094 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
13095 insn in the sequence is a jump insn before setting its label.
13096
13097 2010-06-24 Alan Modra <amodra@gmail.com>
13098
13099 * collect2.c (main): Match exactly --version and --help.
13100
13101 2010-06-24 DJ Delorie <dj@redhat.com>
13102
13103 * config/m32c/m32c-pragma.c: Don't include rtl.h.
13104
13105 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
13106
13107 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
13108 using X87MODEF mode iterator.
13109 (pushsf splitter): Macroize splitter using P mode iterator.
13110 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
13111 mode iterator.
13112
13113 (*movxf_internal): Rename from *movxf_integer.
13114 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
13115 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
13116 (*movdf_internal): Rename from *movdf_integer.
13117 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
13118 (*movsf_internal): Rename from *movdf_1.
13119
13120 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
13121
13122 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
13123 (const_gimple_seq_node): Removed typedefs.
13124
13125 * gimple.h (gimple_seq_node_d, gimple_seq_node)
13126 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
13127
13128 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
13129
13130 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
13131 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
13132 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
13133 and CODE_FOR_vec_extract_lo_v4df.
13134
13135 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
13136 Changed to define_insn_and_split.
13137 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
13138 (vec_extract_lo_v16hi): Likewise.
13139 (vec_extract_lo_v32qi): Likewise.
13140 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
13141 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
13142
13143 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
13144
13145 PR target/44640
13146 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
13147 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
13148 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
13149 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
13150 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
13151
13152 PR target/44640
13153 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
13154
13155 PR other/44644
13156 * df-core.c (struct df): Rename to df_d.
13157 * df.h (struct df): Likewise.
13158 * dse.h (struct df): Remove forward declaration.
13159 * recog.h (struct insn_data): Rename to:
13160 (struct_insn_data_d). Adjusted all users.
13161
13162 2010-06-23 Arnaud Charlet <charlet@adacore.com
13163
13164 PR ada/22220
13165 * doc/install.texi: Update requirements to build GNAT.
13166
13167 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
13168
13169 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
13170 enum type.
13171 (m68k_sched_attr_opx_type): Remove unreachable return.
13172 (m68k_sched_attr_opy_type): Likewise.
13173 (m68k_sched_attr_size): Likewise.
13174 (sched_get_opxy_mem_type): Likewise.
13175 (m68k_sched_attr_op_mem): Likewise.
13176
13177 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
13178
13179 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
13180 new statement and adjust VDEF only if necessary. Remove superfluous
13181 call to maybe_clean_or_replace_eh_stmt.
13182 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
13183 copy the flags.
13184 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
13185 * tree-inline.c (copy_bb): ...and not there.
13186
13187 2010-06-22 Cary Coutant <ccoutant@google.com>
13188
13189 * dwarf2out.c (is_nested_in_subprogram): New function.
13190 (should_move_die_to_comdat): Use it.
13191 (copy_ancestor_tree): Don't mark DIEs here.
13192 (copy_decls_walk): Start walk from root of newly-added tree;
13193 mark DIEs here instead.
13194
13195 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
13196
13197 * config/i386/i386.md (unit): Also check sseishft1.
13198
13199 2010-06-22 Jan Hubicka <jh@suse.cz>
13200
13201 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
13202 enabled.
13203
13204 2010-06-22 Jan Hubicka <jh@suse.cz>
13205
13206 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
13207 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
13208 Return true if something changed.
13209 * df.h (df_confluence_function_n): Return bool.
13210 * df-core.c (df_worklist_propagate_forward,
13211 df_worklist_propagate_backward): Track changes and ages.
13212 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
13213 track ages.
13214 * dse.c (dse_confluence_n): Return always true.
13215
13216 2010-06-22 Jan Hubicka <jh@suse.cz>
13217
13218 * bitmap.c (bitmap_clear_bit): Micro optimize.
13219
13220 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
13221
13222 * config/i386/i386.md (SWI1248x): New mode iterator.
13223 (SWI48x): Ditto.
13224 (SWI12): Ditto.
13225 (SWI24): Ditto.
13226
13227 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
13228 SWI1248x mode iterator.
13229 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
13230 using SWI124 mode iterator.
13231 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
13232 mode iterator.
13233 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
13234 *pushdi2_prologue_rex64 using P mode iterator.
13235 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
13236 using SWI48 mode iterator.
13237 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
13238 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
13239 using SWI1248x mode iterator.
13240 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
13241 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
13242 SWI48 mode iterator.
13243 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
13244 iterator.
13245 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
13246 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
13247 SWI12 mode iterator.
13248 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
13249 SWI12 mode iterator.
13250 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
13251 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
13252 SWI24 mode iterator.
13253 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
13254 SWI48 mode iterator.
13255 (mov<mode>_insn_1): New expander.
13256 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
13257 using SWI48x mode iterator.
13258
13259 (*movoi_internal_avx): Rename from *movoi_internal.
13260 (*movti_internal_rex64): Rename from *movti_rex64.
13261 (*movti_internal_sse): Rename from *movti_sse.
13262 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
13263 (*movdi_internal): Rename from *movdi_2.
13264 (*movsi_internal): Rename from *movsi_1.
13265 (*movhi_internal): Rename from *movhi_1.
13266 (*movqi_internal): Rename from *movqi_1.
13267
13268 (insv): Update the call to gen_movsi_insv_1 for rename.
13269 * config/i386/i386.c (promote_duplicated_reg): Ditto.
13270
13271 2010-06-22 Jan Hubicka <jh@suse.cz>
13272
13273 * passes.c (execute_function_todo): Move call of statistics_fini_pass
13274 to ...
13275 (execute_todo) ... this one.
13276
13277 2010-06-22 Alan Modra <amodra@gmail.com>
13278
13279 PR target/44364
13280 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13281 * caller-save.c (insert_restore, insert_save): Use non-validate
13282 form of adjust_address.
13283
13284 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13285
13286 PR target/39690
13287 * config/pa/pa.c (override_options): Disable
13288 -freorder-blocks-and-partition.
13289
13290 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
13291
13292 PR target/44615
13293 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
13294
13295 * config/i386/i386.md (type): Add sseishft1
13296
13297 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
13298 (ppro_insn_load): Likewise.
13299 (ppro_insn_store): Likewise.
13300 (ppro_insn_both): Likewise.
13301
13302 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
13303 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
13304 for type.
13305 (*vec_extractv2di_1_avx): Likewise.
13306 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
13307 type. Remove atom_unit.
13308 (*vec_extractv2di_1_sse2): Likewise.
13309
13310 2010-06-21 DJ Delorie <dj@redhat.com>
13311
13312 * diagnostic.h (diagnostic_classification_change_t): New.
13313 (diagnostic_context): Add history and push/pop list.
13314 (diagnostic_push_diagnostics): Declare.
13315 (diagnostic_pop_diagnostics): Declare.
13316 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
13317 from pragmas in a history chain instead of the global table.
13318 (diagnostic_push_diagnostics): New.
13319 (diagnostic_pop_diagnostics): New.
13320 (diagnostic_report_diagnostic): Scan history chain to find state
13321 of diagnostics as of the diagnostic location.
13322 * opts.c (set_option): Pass UNKNOWN_LOCATION to
13323 diagnostic_classify_diagnostic.
13324 (enable_warning_as_error): Likewise.
13325 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
13326 use in the history chain.
13327 * doc/extend.texi: Document pragma GCC diagnostic changes.
13328
13329 2010-06-21 Jakub Jelinek <jakub@redhat.com>
13330
13331 * dwarf2out.c (add_linkage_name): New function. Don't add
13332 anything to DW_TAG_member DIEs.
13333 (add_name_and_src_coords_attributes): Use it.
13334 (gen_variable_die): Call it for C++ static data members if
13335 specification is DW_TAG_member.
13336
13337 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
13338 C++ char16_t and char32_t.
13339
13340 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
13341 * genattrtab.c: Include vecprim.h.
13342 (cached_attrs, cached_attr_count, attrs_seen_once,
13343 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
13344 attrs_cached_after): New variables.
13345 (find_attrs_to_cache): New function.
13346 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
13347 (write_test_expr): Add attrs_cached argument, return it too,
13348 attempt to cache non-const attributes used more than once in
13349 a single case handling.
13350 (write_attr_get): Use find_attrs_to_cache, for caching candidates
13351 emit cached_* variables. Adjust write_attr_set callers.
13352 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
13353 to find attributes that should be cached in this block. Adjust
13354 write_test_expr callers.
13355 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
13356 callers.
13357 (make_automaton_attrs): Adjust write_test_expr caller.
13358
13359 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
13360 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
13361 (make_automaton_attrs): If find_tune_attr returns non-NULL,
13362 write separate internal_dfa_insn_code_* and insn_default_latency_*
13363 functions for each attribute's value and emit init_sched_attrs
13364 function and function pointers.
13365 * genattr.c (const_attrs, reservations): New variables.
13366 (gen_attr): Add const attributes to const_attrs vector.
13367 (check_tune_attr, find_tune_attr): New functions.
13368 (main): Add reservations to reservations vector. If find_tune_attr
13369 returns true, add prototype for init_sched_attrs and make
13370 internal_dfa_insn_code and insn_default_latency function pointers,
13371 otherwise define init_sched_attrs as dummy macro.
13372 * cfgexpand.c: Include insn-attr.h.
13373 (gimple_expand_cfg): Call init_sched_attrs.
13374
13375 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
13376
13377 PR target/44575
13378 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
13379 va_arg from a set of register save slots into a temporary,
13380 if the container is bigger than type size, do the copying
13381 using smaller mode or using memcpy.
13382
13383 PR bootstrap/44426
13384 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
13385 prototype.
13386 (sel_print_to_dot): Remove macro.
13387 (sel_print): Likewise. New prototype.
13388 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
13389 (sel_print): New function.
13390
13391 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13392
13393 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
13394 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
13395
13396 2010-06-21 Nick Clifton <nickc@redhat.com>
13397
13398 * config/rx/rx.h (PTRDIFF_TYPE): Define.
13399 (SMALL_REGISTER_CLASS): Define (to zero).
13400 (PRINT_OPERAND): Delete.
13401 (PRINT_OPERAND_ADDRESS): Delete.
13402 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
13403 (rx_print_operand_address): Delete prototype.
13404 * config/rx/rx.c (rx_print_operand): Make static.
13405 Allow %H and %L to handle CONST_DOUBLEs.
13406 (rx_print_operand_address): Make static.
13407 (rx_gen_move_template): Rename local variable 'template' to
13408 out_template.
13409 (rx_function_arg): Do not pass unknown sized objects in registers.
13410 (TARGET_PRINT_OPERAND): Define.
13411 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13412
13413 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13414
13415 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
13416
13417 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
13418
13419 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
13420 stack-alignment for simple leaf-functions.
13421
13422 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
13423
13424 * doc/install.texi: Document bootstrap-lto.
13425
13426 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
13427
13428 PR debug/44248
13429 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
13430 (input_function): Drop them here, if VTA is disabled.
13431
13432 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
13433
13434 PR target/44546
13435 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
13436 New predicate.
13437 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
13438 ix86_swapped_fp_comparsion_operator instead of
13439 ix86_fp_comparison_operator.
13440
13441 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
13442 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
13443 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
13444 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
13445 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
13446 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
13447
13448 2010-06-20 Joseph Myers <joseph@codesourcery.com>
13449
13450 PR other/32998
13451 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
13452 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
13453 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
13454 (decode_cmdline_option): Update for this return value. Set
13455 orig_option_with_args_text field. Set arg field for unknown
13456 options. Make static.
13457 (decode_cmdline_options_to_array): New.
13458 (prune_options): Update handling of find_opt return value.
13459 * opts.c (read_cmdline_option): Take decoded option. Return void.
13460 (read_cmdline_options): Take decoded options.
13461 (decode_options): Add parameters for decoded options. Use
13462 decode_cmdline_options_to_array. Use decoded options for -O
13463 scan. Use integral_argument for -O parameters. Update call to
13464 read_cmdline_options.
13465 (enable_warning_as_error): Update handling of find_opt return value.
13466 * opts.h: Update comment on unknown options.
13467 (struct cl_decoded_option): Update comments on opt_index and arg.
13468 Add orig_option_with_args_text.
13469 (decode_cmdline_option): Remove.
13470 (decode_cmdline_options_to_array): Declare.
13471 (decode_options): Update prototype.
13472 * toplev.c (save_argv): Remove.
13473 (save_decoded_options, save_decoded_options_count): New.
13474 (read_integral_parameter): Remove.
13475 (print_switch_values): Use decoded options.
13476 (toplev_main): Don't set save_argv. Update call to decode_options.
13477 * toplev.h (read_integral_parameter): Remove.
13478 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
13479
13480 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
13481
13482 PR target/44072
13483 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
13484 immediate.
13485 * constraints.md (Pw, Px): New constraints.
13486 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
13487
13488 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
13489
13490 * config/i386/sse.md (fma4modesuffixf4): Removed.
13491 (ssemodesuffixf2s): Likewise.
13492 (ssemodesuffixf4): Likewise.
13493 (ssemodesuffixf2c): Likewise.
13494 (ssescalarmodesuffix2s): Likewise.
13495 (avxmodesuffixf2c): Likewise.
13496 (ssemodesuffix): New.
13497 (ssescalarmodesuffix): Likewise.
13498 Update patterns with ssemodesuffix and ssescalarmodesuffix.
13499
13500 2010-06-19 Philip Herron <herron.philip@googlemail.com>
13501
13502 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
13503
13504 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
13505
13506 * stor-layout.c (debug_rli): Remove unused local variables.
13507
13508 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
13509
13510 PR rtl-optimization/40900
13511 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
13512 original expression for later reuse.
13513 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
13514 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
13515
13516 2010-06-18 Anatoly Sokolov <aesok@post.ru>
13517
13518 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
13519 double_int_fits_in_uhwi_p): Implement as static inline.
13520 (double_int_xor): New inline function.
13521 (double_int_lrotate, double_int_rrotate, double_int_max,
13522 double_int_umax, double_int_smax, double_int_min, double_int_umin,
13523 double_int_smin): Declare.
13524 (lrotate_double, rrotate_double): Remove declaration.
13525 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
13526 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
13527 (double_int_lrotate, double_int_rrotate, double_int_max,
13528 double_int_umax, double_int_smax, double_int_min, double_int_umin,
13529 double_int_smin): New function.
13530 * fold-const.c (int_const_binop): Clean up, use double_int_*
13531 functions.
13532 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
13533 double_int_* and immed_double_int_const functions.
13534
13535 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
13536
13537 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
13538 * function.c (types_used_by_cur_var_decl): Likewise.
13539 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
13540
13541 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
13542
13543 * tree.h (record_layout_info): Change type of pending_statics field
13544 to a VEC.
13545 * stor-layout.c (start_record_layout): Store NULL into
13546 pending_statics.
13547 (debug_rli): Call debug_vec_tree instead of debug_tree.
13548 (place_field): Likewise.
13549 (finish_record_layout): Likewise.
13550
13551 2010-06-18 Alan Modra <amodra@gmail.com>
13552
13553 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
13554
13555 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13556
13557 PR target/43740
13558 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
13559 for SET source operand from SET destination operand.
13560
13561 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
13562
13563 PR rtl-optimization/39871
13564 * reload1.c (init_eliminable_invariants): For flag_pic, disable
13565 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
13566 (function_invariant_p): Rule out a plus of frame or arg pointer with
13567 a SYMBOL_REF.
13568 * ira.c (find_reg_equiv_invariant_const): Likewise.
13569
13570 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
13571
13572 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
13573 print_operand_address and puts to output the operand for CONST.
13574
13575 2010-06-17 Jakub Jelinek <jakub@redhat.com>
13576
13577 PR debug/44572
13578 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
13579 hook.
13580
13581 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
13582
13583 * v850-protos.h (print_operand): Delete.
13584 (print_operand_address): Delete.
13585 * v850.h (PRINT_OPERAND): Delete.
13586 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13587 (PRINT_OPERAND_ADDRESS): Delete.
13588 * v850.c (print_operand_address): Rename to...
13589 (v850_print_operand_address): ...this. Make static. Call
13590 v850_print_operand.
13591 (print_operand): Rename to...
13592 (v850_print_operand): ...this. Make static. Call
13593 v850_print_operand_address.
13594 (v850_print_operand_punct_valid_p): New function.
13595 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13596 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13597
13598 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
13599
13600 * config/sh/sh-protos.h (print_operand): Delete.
13601 (print_operand_address): Delete.
13602 * config/sh/sh.h (PRINT_OPERAND): Delete.
13603 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13604 (PRINT_OPERAND_ADDRESS): Delete.
13605 * config/sh/sh.c (sh_print_operand_address): Make static.
13606 (sh_print_operand): Make static. Call sh_print_operand_address
13607 and sh_print_operand.
13608 (sh_print_operand_punct_valid_p): New function.
13609 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13610 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13611
13612 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
13613
13614 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
13615 (mcore_print_operand_address): Delete.
13616 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
13617 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13618 (PRINT_OPERAND_ADDRESS): Delete.
13619 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
13620 (mcore_print_operand): Make static.
13621 (mcore_print_operand_punct_valid_p): New function.
13622 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
13623 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13624
13625 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
13626
13627 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
13628 (print_operand_address): Delete.
13629 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
13630 (PRINT_OPERAND_ADDRESS): Delete.
13631 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
13632 static.
13633 (m68hc11_print_operand): Make static.
13634 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13635
13636 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
13637
13638 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
13639 (m32r_print_operand_address): Delete.
13640 * config/m32r/m32r.h (m32r_punct_chars): Delete.
13641 (PRINT_OPERAND): Delete.
13642 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13643 (PRINT_OPERAND_ADDRESS): Delete.
13644 * config/m32r/m32r.c (m32r_punct_chars): Make static.
13645 (m32r_print_operand_address): Make static.
13646 (m32r_print_operand): Make static.
13647 (m32r_print_operand_punct_valid_p): New function.
13648 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13649 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13650
13651 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
13652
13653 * config/iq2000/iq2000-protos.h (print_operand): Delete.
13654 (print_operand_address): Delete.
13655 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
13656 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13657 (PRINT_OPERAND_ADDRESS): Delete.
13658 (iq2000_print_operand_punct): Delete.
13659 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
13660 (iq2000_print_operand_address): Make static.
13661 (iq2000_print_operand): Make static.
13662 (iq2000_print_operand_punct_valid_p): New function.
13663 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13664 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13665
13666 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
13667
13668 * config/frv/frv-protos.h (frv_print_operand): Delete.
13669 (frv_print_operand_address): Delete.
13670 * config/frv/frv.h (PRINT_OPERAND): Delete.
13671 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13672 (PRINT_OPERAND_ADDRESS): Delete.
13673 * config/frv/frv.c (frv_print_operand_address): Make static.
13674 (frv_print_operand): Make static.
13675 (frv_print_operand_punct_valid_p): New function.
13676 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13677 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13678
13679 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
13680
13681 * tree.h (vec_member): Declare.
13682 * tree.c (vec_member): Define.
13683
13684 2010-06-17 Richard Guenther <rguenther@suse.de>
13685
13686 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
13687 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
13688
13689 2010-06-17 Richard Guenther <rguenther@suse.de>
13690
13691 * tree-inline.c (declare_return_variable): Remove bogus code.
13692
13693 2010-06-17 Richard Guenther <rguenther@suse.de>
13694
13695 * gimplify.c (gimplify_bind_expr): Always promote complex
13696 and vector variables to registers if possible.
13697
13698 2010-06-17 Richard Guenther <rguenther@suse.de>
13699
13700 * expr.c (get_inner_reference): Use double_int for bit_offset
13701 calculation.
13702
13703 2010-06-16 DJ Delorie <dj@redhat.com>
13704
13705 * common.opt (-fstrict-volatile-bitfields): new.
13706 * doc/invoke.texi: Document it.
13707 * fold-const.c (optimize_bit_field_compare): For volatile
13708 bitfields, use the field's type to determine the mode, not the
13709 field's size.
13710 * expr.c (expand_assignment): Likewise.
13711 (get_inner_reference): Likewise.
13712 (expand_expr_real_1): Likewise.
13713 * expmed.c (store_fixed_bit_field): Likewise.
13714 (extract_bit_field_1): Likewise.
13715 (extract_fixed_bit_field): Likewise.
13716
13717 2010-06-16 Richard Guenther <rguenther@suse.de>
13718
13719 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
13720
13721 2010-06-16 Douglas B Rupp <rupp@gnat.com>
13722
13723 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
13724 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
13725 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
13726 * debug.c: Likewise.
13727 * sdbout.c: Likewise.
13728 * vmsdbgout.c: Likewise.
13729 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
13730 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
13731 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
13732 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
13733 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
13734 * dwarf2out.c (dw_fde_struct): New fields
13735 dw_fde_vms_{end,begin}_prologue.
13736 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
13737 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
13738 (dwarf2out_vms_end_prologue): New function.
13739 (dwarf2out_vms_begin_epilogue): New function.
13740 (dw_val_struct): New value dw_val_class_vms_delta.
13741 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
13742 begin_epilogue for VMS.
13743 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
13744 new static functions.
13745 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
13746 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
13747 static functions.
13748 (print_die): New case dw_val_class_vms_delta.
13749 (attr_checksum): Likewise.
13750 (same_dw_val_p: Likewise.
13751 (size_of_die): Likewise.
13752 (value_format): Likewise.
13753 (output_die): Likewise.
13754 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
13755 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
13756 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
13757 dwarf2out_cfi_begin_epilogue
13758 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
13759
13760 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
13761
13762 * config/cris/cris-protos.h (cris_print_operand): Delete.
13763 (cris_print_operand_address): Delete.
13764 * config/cris/cris.h (PRINT_OPERAND): Delete.
13765 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13766 (PRINT_OPERAND_ADDRESS): Delete.
13767 * config/cris/cris.c (cris_print_operand_address): Make static.
13768 (cris_print_operand): Make static.
13769 (cris_print_operand_punct_valid_p): New function.
13770 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13771 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13772
13773 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
13774
13775 * config/arm/arm-protos.h (arm_print_operand): Delete.
13776 (arm_print_operand_address): Delete.
13777 * config/arm/arm.h (PRINT_OPERAND): Delete.
13778 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13779 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
13780 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
13781 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
13782 (arm_print_operand): Make static.
13783 (arm_print_operand_punct_valid_p): New function.
13784 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13785 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13786
13787 2010-06-16 Nick Clifton <nickc@redhat.com>
13788
13789 * config/rx/constraints.md (NEGint4): New constraint.
13790 * config/rx/rx.md (attr cc): Add set_zsc.
13791 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
13792 initialised.
13793 (cmpsf): Likewise.
13794 (call_internal): Clobber the cc0 register.
13795 (call_value_internal): Likewise.
13796 (cstoresi4): Likewise.
13797 (movsieq): Likewise.
13798 (movsine): Likewise.
13799 (addsi3): Add alternative to handle small negative constants.
13800 (sunsi3): Likewise.
13801 (addsi3): Do not set the O bit in the cc0 register.
13802 (adddi3): Likewise.
13803 (subsi3): Likewise.
13804 (subdi3): Likewise.
13805 (andsi3): Reorder alternatives to prefer shorter forms.
13806 (mulsi3): Likewise.
13807 (iorsi3): Likewise.
13808 (negsi2): Note that the cc0 flags are set.
13809 (rotlsi3): Note that only the Z and S bits are set in cc0.
13810 (lshrsi3): Likewise.
13811 (ashlsi3): Likewise.
13812 (subsf3): Use %Q for the MEM operand.
13813 (fix_truncsfsi2): Likewise.
13814 (floatsisf2): Likewise.
13815 (bitset): Remove early clobber from destination.
13816 (bitset_in_memory): Likewise.
13817 (lrintsf2): Clobber the cc0 register.
13818 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
13819 (rx_print_operand): Handle %N.
13820
13821 2010-06-16 Jan Hubicka <jh@suse.cz>
13822
13823 * df-core.c (df_compact_blocks): Free problem_temps vector.
13824
13825 2010-06-16 Martin Jambor <mjambor@suse.cz>
13826
13827 PR tree-optimization/43905
13828 * tree-sra.c: Include tree-inline.h.
13829 (create_abstract_origin): Removed.
13830 (modify_function): Version the call graph node instead of creating
13831 abstract origins and dealing with same_body aliases.
13832 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
13833 function is versionable.
13834 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
13835
13836 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
13837
13838 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
13839 (CHOOSE_DYNAMIC_LINKER): Update.
13840
13841 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
13842
13843 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
13844 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
13845 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
13846 *prefetch_3dnow_rex.
13847
13848 2010-06-15 Anatoly Sokolov <aesok@post.ru>
13849
13850 * target.h (struct asm_out):Add declare_constant_name field.
13851 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
13852 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
13853 * output.h (default_asm_declare_constant_name): Declare.
13854 (assemble_label): Update prototype.
13855 * varasm.c (assemble_constant_contents): Use
13856 targetm.asm_out.declare_constant_name target hook.
13857 (assemble_label): Add 'file' argument.
13858 (default_asm_declare_constant_name): New function.
13859 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
13860 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
13861 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
13862
13863 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
13864 * config/darwin.c (darwin_asm_declare_constant_name): New function.
13865 (machopic_output_indirection): Update assemble_label argument list.
13866 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
13867 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
13868
13869 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
13870
13871 PR middle-end/44391
13872 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
13873 size_one_node for pointer types. Do not call gmp_cst_to_tree.
13874
13875 2010-06-15 Richard Guenther <rguenther@suse.de>
13876
13877 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
13878
13879 2010-06-15 Paul Brook <paul@codesourcery.com>
13880
13881 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
13882 hard-float ABI.
13883
13884 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
13885
13886 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
13887 don't get a vector type for output.
13888
13889 2010-06-15 Jakub Jelinek <jakub@redhat.com>
13890
13891 PR fortran/44536
13892 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
13893 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
13894 (LANG_HOOKS_DECLS): Add it.
13895 * gimplify.c (omp_notice_variable): Call
13896 lang_hooks.decls.omp_report_decl.
13897
13898 2010-06-15 Martin Jambor <mjambor@suse.cz>
13899
13900 PR lto/44464
13901 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
13902 on the newly dead SSA name.
13903
13904 2010-06-15 Alan Modra <amodra@gmail.com>
13905
13906 * doc/invoke.texi: Add mcmodel to powerpc options.
13907 * configure.ac: Add HAVE_LD_LARGE_TOC test.
13908 * configure: Regenerate.
13909 * config.in: Regenerate.
13910 * config/rs6000/linux64.opt (mcmodel): New.
13911 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
13912 (TARGET_CMODEL, SET_CMODEL): Define.
13913 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
13914 select CMODEL_MEDIUM default.
13915 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
13916 (TARGET_CMODEL): Define default.
13917 * config/rs6000/rs6000.c (cmodel): New variable.
13918 (rs6000_explicit_options): Add cmodel field.
13919 (rs6000_handle_option): Handle -mcmodel.
13920 (create_TOC_reference): Add largetoc_reg param. Generate high,
13921 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
13922 (rs6000_delegitimize_address): Recognise new toc reference rtl
13923 and minimal-toc rtl.
13924 (rs6000_legitimize_reload_address): Handle new toc references.
13925 (print_operand_address): Handle legitimate_constant_pool_address_p
13926 match before lo_sum.
13927 (rs6000_eliminate_indexed_memrefs): Tidy.
13928 (rs6000_emit_move): Tweak threshold for inlining constants.
13929 Keep rs6000_emit_allocate_stack large stack frame offsets
13930 loaded into r0 inline.
13931 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
13932 (tocrel_base, tocrel_offset): New variables.
13933 (toc_relative_expr_p): Set them here.
13934 (print_operand_address): Skip over any offset on constant pool address.
13935 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
13936 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
13937 (offsettable_ok_by_alignment): New function.
13938 (rs6000_emit_move): Address suitably aligned local symbol_refs
13939 relative to the toc pointer for -mcmodel=medium.
13940 (legitimate_constant_pool_address_p): Make param const_rtx. Add
13941 strict param. Allow lo_sum version of addressing. Verify reg
13942 used for -mminimal-toc and -mcmodel != small. Update all callers.
13943 * config/rs6000/constraints.md: Update for above change.
13944 * config/rs6000/predicates.md: Likewise.
13945 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
13946 code.
13947 (tls_gd): Split for -mcmodel=medium/large.
13948 (tls_gd_high, tls_gd_low): New.
13949 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
13950 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
13951 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
13952 (largetoc_high, largetoc_low): New.
13953 (cmptf_internal2): Add clobber.
13954 * config/rs6000/rs6000-protos.h: Update.
13955
13956 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
13957
13958 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
13959 true if no prefetch is going to be generated for a given group.
13960 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
13961 estimate the prefetch_count.
13962 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
13963 prefetch count by considering the unroll_factor and prefetch_mod
13964 for is_loop_prefetching_profitable.
13965
13966 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
13967
13968 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
13969 anything if the argument is not a MEM.
13970
13971 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
13972
13973 PR debug/43650
13974 PR debug/44181
13975 PR debug/44247
13976 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
13977 debug stmts.
13978 (canonicalize_loop_ivs): Likewise.
13979
13980 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
13981
13982 PR debug/43656
13983 * haifa-sched.c (setup_insn_reg_pressure_info,
13984 update_register_pressure): Reject debug insns.
13985 (ready_sort): Don't setup reg pressure for debug insns.
13986 (schedule_insn): Don't update reg pressure for debug insns.
13987
13988 2010-06-14 Richard Guenther <rguenther@suse.de>
13989
13990 * lto-streamer.c (cached_bp): Remove.
13991 (bitpack_delete): Likewise.
13992 (bitpack_create): Likewise.
13993 (bp_get_next_word): Likewise.
13994 (bp_pack_value, bp_unpack_value): Move ...
13995 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
13996 Re-implement.
13997 (struct bitpack_d): Likewise.
13998 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
13999 New inline functions.
14000 * lto-streamer-out.c (lto_output_bitpack): Remove.
14001 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
14002 (pack_value_fields): Adjust.
14003 (lto_write_tree): Likewise.
14004 (output_gimple_stmt): Likewise.
14005 (output_function): Likewise.
14006 * lto-streamer-in.c (input_gimple_stmt): Adjust.
14007 (input_function): Likewise.
14008 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
14009 (lto_input_bitpack): Remove.
14010 (lto_materialize_tree): Adjust.
14011 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
14012 * lto-cgraph.c (lto_output_edge): Adjust.
14013 (lto_output_node): Likewise.
14014 (lto_output_varpool_node): Likewise.
14015 (lto_output_ref): Likewise.
14016 (input_node): Likewise.
14017 (input_varpool_node): Likewise.
14018 (input_ref): Likewise.
14019 (input_edge): Likewise.
14020 (output_node_opt_summary): Likewise.
14021 (input_node_opt_summary): Likewise.
14022 * ipa-pure-const.c (pure_const_write_summary): Likewise.
14023 (pure_const_read_summary): Likewise.
14024 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
14025 (ipa_read_indirect_edge_info): Likewise.
14026 (ipa_write_node_info): Likewise.
14027 (ipa_read_node_info): Likewise.
14028
14029 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
14030
14031 PR target/44534
14032 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
14033 (vec_extract_lo_v16hi): Likewise.
14034 (vec_extract_lo_v32qi): Likewise.
14035
14036 2010-06-14 Jakub Jelinek <jakub@redhat.com>
14037
14038 PR bootstrap/44426
14039 * tree.h (build_call_expr): Don't define as vararg macro, instead
14040 add a prototype.
14041 * builtins.c (build_call_nofold): Remove.
14042 (expand_builtin_int_roundingfn, expand_builtin_pow,
14043 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
14044 expand_builtin_memset_args, expand_builtin_strcmp,
14045 expand_builtin_strncmp, expand_builtin_memory_chk): Use
14046 build_call_nofold_loc instead of build_call_nofold.
14047 (build_call_expr): New function.
14048
14049 PR tree-optimization/44508
14050 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
14051 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
14052 don't eliminate trivially dead stmts.
14053 * tree-vrp.c (vrp_finalize): Pass false as last argument
14054 to substitute_and_fold.
14055 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
14056 to substitute_and_fold.
14057 * tree-ssa-ccp.c (ccp_finalize): Likewise.
14058
14059 PR bootstrap/44509
14060 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
14061
14062 2010-06-14 Ira Rosen <irar@il.ibm.com>
14063
14064 PR tree-optimization/44507
14065 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
14066 to build initial vector for BIT_AND_EXPR.
14067 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
14068
14069 2010-06-14 Jakub Jelinek <jakub@redhat.com>
14070
14071 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
14072 adjust z10prop set_attr.
14073
14074 2010-06-13 Jan Hubicka <jh@suse.cz>
14075
14076 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
14077 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
14078 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
14079 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
14080 datastructure checks into checking asserts.
14081 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
14082 * tree-ssa-sccvn.c (VN_INFO): Likewise.
14083 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
14084 df_ref_create_structure): Likewise.
14085 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
14086 pool_free): Use gcc_checking_assert.
14087 * alias.c (get_alias_set): Likewise.
14088 * var-tracking.c (variable_htab_free, shared_hash_copy,
14089 canonicalize_values_mark, variable_merge_over_cur): Likewise.
14090 * lto-streamer.c (bp_unpack_value): Likewise.
14091
14092 2010-06-13 Richard Guenther <rguenther@suse.de>
14093
14094 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
14095 Do not stream but initialize TYPE_CANONICAL to NULL.
14096 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
14097 * gimple.c (gimple_types_compatible_p): Disregard
14098 TYPE_STRUCTURAL_EQUALITY_P.
14099 (gimple_register_type): Use TYPE_CANONICAL as cache.
14100 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
14101 before registering common types.
14102 * config/i386/i386.c (ix86_function_arg_boundary): Do not
14103 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
14104 * tree.h (TYPE_CANONICAL): Clarify documentation.
14105
14106 2010-06-13 Anatoly Sokolov <aesok@post.ru>
14107
14108 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
14109 LIBCALL_VALUE): Remove macros.
14110 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
14111 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14112 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14113 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
14114 (ia64_function_value): Make static. Handle receiving the function
14115 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
14116
14117 2010-06-12 Jan Hubicka <jh@suse.cz>
14118
14119 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
14120 at correct place.
14121
14122 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
14123
14124 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
14125
14126 2010-06-12 Jan Hubicka <jh@suse.cz>
14127
14128 * df-core.c (df_clear_bb_info): New function.
14129 (df_set_blocks): bb_info is always allocated.
14130 (df_get_bb_info): Use block_info_elt_size.
14131 (df_set_bb_info): Likewise.
14132 (df_compact_blocks): Update for new block_info.
14133 (grow_bb_info): New function.
14134 * df-problems.c (df_grow_bb_info): Move to df-core.c
14135 (df_rd_set_bb_info): Remove.
14136 (df_rd_free_bb_info): Do not free block pool.
14137 (df_rd_alloc): Do not create pool, use check for
14138 obstack presence instead of NULL pointer for new blocks.
14139 (df_rd_free): DO not free alloc pool; clear block_info.
14140 (problem_RD): Add size of block info structure.
14141 (df_lr_set_bb_info): Remove.
14142 (df_lr_free_bb_info): Do not free block pool.
14143 (df_lr_alloc): Do not create pool, use check for
14144 obstack presence instead of NULL pointer for new blocks.
14145 (df_lr_free): DO not free alloc pool; clear block_info.
14146 (problem_LR): Add size of block info structure.
14147 (df_live_set_bb_info): Remove.
14148 (df_live_free_bb_info): Do not free block pool.
14149 (df_live_alloc): Do not create pool, use check for
14150 obstack presence instead of NULL pointer for new blocks.
14151 (df_live_free): DO not free alloc pool; clear block_info.
14152 (problem_LIVE): Add size of block info structure.
14153 (problem_CHAIN): Add size of block info structure.
14154 (df_byte_lr_set_bb_info): Remove.
14155 (df_byte_lr_free_bb_info): Do not free block pool.
14156 (df_byte_lr_alloc): Do not create pool, use check for
14157 obstack presence instead of NULL pointer for new blocks.
14158 (df_byte_lr_free): DO not free alloc pool; clear block_info.
14159 (problem_BYTE_LR): Add size of block info structure.
14160 (problem_NOTE): Add size of block info structure.
14161 (df_byte_MD_set_bb_info): Remove.
14162 (df_byte_MD_free_bb_info): Do not free block pool.
14163 (df_byte_MD_alloc): Do not create pool, use check for
14164 obstack presence instead of NULL pointer for new blocks.
14165 (df_byte_MD_free): DO not free alloc pool; clear block_info.
14166 (problem_BD): Add size of block info structure.
14167 * df-scan.c (df_scan_free_internal): Free block pool.
14168 (df_scan_set_bb_info): Remove.
14169 (df_scan_free_bb_info): Check for artificial_defs instead
14170 of bb_info being non-NULL.
14171 (df_scan_alloc): DO not create df_scan_block pool.
14172 (problem_SCAN): Set size of block info.
14173 (df_bb_refs_record): Do not allocate bb_info.
14174 * df.h (df_problem): Add block_info_elt_size.
14175 (struct dataflow): Change block_info to void *.
14176 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
14177 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
14178 in-line structures.
14179
14180 2010-06-12 Jan Hubicka <jh@suse.cz>
14181
14182 PR tree-optimize/44485
14183 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
14184 containing use of return value of noreturn function.
14185
14186 2010-06-12 Anatoly Sokolov <aesok@post.ru>
14187
14188 * targhooks.c (default_function_value): Don't use
14189 FUNCTION_OUTGOING_VALUE.
14190 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
14191 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
14192
14193 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
14194
14195 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
14196 Add crtfastmath.o to extra_parts.
14197 * config/mips/crtfastmath.c: New.
14198 * config/mips/linux.h (ENDFILE_SPEC): New.
14199
14200 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
14201
14202 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
14203 old_type in parameter.
14204 (gcc_type_for_value): Update call to gcc_type_for_interval.
14205 (compute_type_for_level_1): Renamed compute_type_for_level.
14206 Update call to gcc_type_for_interval.
14207
14208 2010-06-11 Joseph Myers <joseph@codesourcery.com>
14209
14210 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
14211 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
14212
14213 2010-06-11 Joseph Myers <joseph@codesourcery.com>
14214
14215 * opts-common.c: Include options.h.
14216 (integral_argument): Move from opts.c.
14217 (decode_cmdline_option): New. Based on read_cmdline_option.
14218 * opts.c (integral_argument): Move to opts-common.c.
14219 (read_cmdline_option): Move most contents to
14220 decode_cmdline_option. Use %qs in diagnostics.
14221 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
14222 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
14223 decode_cmdline_option): New.
14224
14225 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
14226
14227 PR target/44481
14228 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
14229 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
14230 (partiysi2_cmp): Ditto.
14231 (*partiyhi2_cmp): Ditto.
14232 (*parityqi2_cmp): Remove.
14233
14234 2010-06-11 Jan Hubicka <jh@suse.cz>
14235
14236 * bitmap.h (bmp_iter_next_bit): New.
14237 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
14238
14239 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
14240 Eric Botcazou <ebotcazou@adacore.com>
14241
14242 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
14243 computed cost.
14244
14245 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
14246
14247 * config/i386/i386.md (unspec): New define_c_enum.
14248 (unspecv): Ditto.
14249
14250 2010-06-10 Jakub Jelinek <jakub@redhat.com>
14251
14252 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
14253
14254 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
14255
14256 PR middle-end/44483
14257 * tree-if-conv.c (bb_predicate_s): New struct.
14258 (bb_predicate_p): New.
14259 (bb_has_predicate): New.
14260 (bb_predicate): New.
14261 (set_bb_predicate): New.
14262 (bb_predicate_gimplified_stmts): New.
14263 (set_bb_predicate_gimplified_stmts): New.
14264 (add_bb_predicate_gimplified_stmts): New.
14265 (init_bb_predicate): New.
14266 (free_bb_predicate): New.
14267 (is_predicated): Use bb_predicate.
14268 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
14269 (predicate_bbs): Same. Gimplify the condition of the basic blocks
14270 before processing their successors.
14271 (clean_predicate_lists): Removed.
14272 (find_phi_replacement_condition): Use bb_predicate.
14273 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
14274 computations.
14275 (insert_gimplified_predicates): New.
14276 (combine_blocks): Call insert_gimplified_predicates.
14277 (tree_if_conversion): Call free_bb_predicate instead of
14278 clean_predicate_lists.
14279
14280 2010-10-11 Paul Brook <paul@codesourcery.com>
14281
14282 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
14283 * config/arm/arm.c (all_architectures): Change v7e-m default to
14284 cortexm4.
14285 * config/arm/arm-cores.def: Add cortex-m4.
14286 * config/arm/arm-tune.md: Regenerate.
14287
14288 2010-06-11 Jan Hubicka <jh@suse.cz>
14289
14290 * ipa-pure-const.c (special_builtlin_state): New function.
14291 (check_call): Use it instead of special casign BUILT_IN_RETURN.
14292 (propagate_pure_const): Use it.
14293
14294 2010-06-11 Jan Hubicka <jh@suse.cz>
14295
14296 * df-problems.c (df_live_scratch): Convert to bitmap_head.
14297 (df_live_alloc): Initialize df_live_scratch when initializing
14298 problem_data.
14299 (df_live_transfer_function): Update uses of df_live_scratch.
14300 (df_live_free): Free problem_data; clear df_live_scratch before
14301 releasing the obstack.
14302 (df_md_free): Free problem data.
14303
14304 2010-06-11 Jan Hubicka <jh@suse.cz>
14305
14306 * doc/invoke.texi (Wsuggest-attribute): Document.
14307 (Wmissing-noreturn): Remove.
14308 * ipa-pure-const.c (warn_function_noreturn): New function.
14309 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
14310 warn_missing_noreturn.
14311 * common.opt (Wsuggest-attribute=noreturn): New.
14312 * tree-flow.h (warn_function_noreturn): Declare.
14313 * tree-cfg.c (execute_warn_function_noreturn): Use
14314 warn_function_noreturn.
14315 (gate_warn_function_noreturn): New.
14316 (pass_warn_function_noreturn): Update.
14317
14318 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
14319
14320 * c-typeck.c (handle_warn_cast_qual): Add loc
14321 parameter. Improve warning message.
14322 (build_c_cast): Pass location to handle_warn_cast_qual.
14323
14324 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
14325
14326 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
14327 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
14328 insn mnemonic.
14329 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
14330
14331 2010-06-10 Dodji Seketeli <dodji@redhat.com>
14332
14333 Fix bootstap on mips
14334 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
14335 be naming typedefs.
14336
14337 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
14338
14339 * system.h (helper_const_non_const_cast): New inline for
14340 gcc version <= 4.0.
14341 (CONST_CAST2): For gcc version <= 4.0 use
14342 new helper to do const/non-const casting.
14343
14344 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14345
14346 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
14347 * Makefile.in (OBJS-common): Include insn-enums.o.
14348 (insn-enums.o): New rule.
14349 (simple_generated_c): Add insn-enums.c.
14350 (build/genenums.o): New rule.
14351 (genprogmd): Add "enums".
14352 * genconstants.c (print_enum_type): Declare a C string array
14353 for each enum.
14354 * genenums.c: New file.
14355 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
14356 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
14357 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
14358
14359 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14360
14361 * doc/md.texi (define_enum_attr): Document.
14362 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
14363 * read-md.h (lookup_enum_type): Declare.
14364 * read-md.c (lookup_enum_type): New function.
14365 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
14366 * genattrtab.c (attr_desc): Add an enum_name field.
14367 (evaluate_eq_attr): Take the associated attribute as argument.
14368 Get the enum prefix from the enum_name field, if defined.
14369 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
14370 (simplify_test_exp): Pass attr to evaluate_eq_attr.
14371 (add_attr_value): New function, split out from...
14372 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
14373 (write_test_expr): Pass attr to evaluate_eq_attr.
14374 (write_attr_get): Use the enum_name as the enum tag, if defined.
14375 (write_attr_valueq): Use the enum_name as a prefix, if defined.
14376 (find_attr): Initialize enum_name.
14377 (main): Handle DEFINE_ENUM_ATTR.
14378 * gensupport.c (process_rtx): Likewise.
14379 * config/mips/mips.h (mips_tune_attr): Delete.
14380 * config/mips/mips.md (cpu): Use define_attr_enum.
14381
14382 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14383
14384 * doc/md.texi (define_c_enum, define_enum): Document.
14385 * read-md.h (md_constant): Add a parent_enum field.
14386 (enum_value, enum_type): New structures.
14387 (upcase_string, traverse_enum_types): Declare.
14388 * read-md.c (enum_types): New variable.
14389 (upcase_string, add_constant): New functions.
14390 (handle_constants): Don't create the hash table here.
14391 Use add_constant.
14392 (traverse_md_constants): Don't check for a null md_constants.
14393 (decimal_string, handle_enum, traverse_enum_types): New functions.
14394 (read_md_files): Initialize md_constants and md_enums.
14395 * genconstants.c (print_md_constant): Ignore info argument.
14396 Only print constants that belong to no enum.
14397 (print_enum_type): New function.
14398 (main): Don't pass stdout to print_md_constant. Call print_enum_type
14399 for each defined enum type.
14400 * config/mips/mips.md (processor): New define_enum.
14401 (unspec): New define_c_enum.
14402 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
14403 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
14404 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
14405 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
14406 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
14407 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
14408 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
14409 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
14410 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
14411 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
14412 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
14413 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
14414 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
14415 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
14416 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
14417 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
14418 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
14419 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
14420 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
14421 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
14422 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
14423 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
14424 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
14425 (UNSPEC_RDDSP): Move to mips-dsp.md.
14426 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
14427 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
14428 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
14429 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
14430 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
14431 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
14432 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
14433 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
14434 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
14435 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
14436 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
14437 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
14438 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
14439 Moved to mips-dspr2.md.
14440 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
14441 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
14442 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
14443 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
14444 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
14445 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
14446 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
14447 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
14448 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
14449 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
14450 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
14451 UNSPEC_LOONGSON_PSADBH)
14452 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
14453 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
14454 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
14455 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
14456 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
14457 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
14458 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
14459 (cpu): Update comment.
14460 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
14461 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
14462 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
14463 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
14464 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
14465 UNSPEC_LOONGSON_PCMPEQ)
14466 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
14467 UNSPEC_LOONGSON_PINSR_0)
14468 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
14469 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
14470 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
14471 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
14472 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
14473 UNSPEC_LOONGSON_PSADBH)
14474 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
14475 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
14476 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
14477 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
14478 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
14479 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
14480 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
14481 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
14482 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
14483 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
14484 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
14485 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
14486 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
14487 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
14488 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
14489 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
14490 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
14491 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
14492 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
14493 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
14494 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
14495 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
14496 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
14497 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
14498 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
14499 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
14500 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
14501 (UNSPEC_RDDSP): Moved from mips.md.
14502 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
14503 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
14504 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
14505 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
14506 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
14507 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
14508 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
14509 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
14510 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
14511 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
14512 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
14513 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
14514 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
14515 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
14516 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
14517 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
14518 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
14519 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
14520 (UNSPEC_SCC): Moved from mips.md.
14521 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
14522 "processor_type" to "processor".
14523 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
14524 * config/mips/mips.h (processor_type): Delete.
14525 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
14526 "processor_type" to "processor".
14527
14528 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14529
14530 * configure.ac (tm_include_list): Add insn-constants.h.
14531 * configure: Regenerate.
14532 * Makefile.in (GTM_H): Move insn-constants.h here from...
14533 (TM_H): ...here.
14534 * mkconfig.sh: Remove special handling for insn-constants.h.
14535
14536 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14537
14538 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
14539 (BUILD_MD): ...this new variable.
14540 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
14541 that include the old contents of simple_generated_h and
14542 simple_generated_c.
14543 (simple_generated_h, simple_generated_c): Include them. Add
14544 insn-constants.h.
14545 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
14546 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
14547 Remove these dependencies from the main rule and include
14548 insn-conditions.md in the command line only if it appears
14549 in the dependency list.
14550 (insn-constants.h, s-constants): Delete.
14551 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
14552 or gensupport.h.
14553 (build/genmddeps.o): Likewise.
14554 (genprogrtl): New variable that contains everything from genprogmd
14555 except mddeps and constants.
14556 (genprogmd): Redefine in terms of genprogrtl. Make these programs
14557 depend on $(BUILD_MD)
14558 (genprog): New variable. Make these programs depend on
14559 $(BUILD_ERRORS).
14560 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
14561 (main): Use read_md_files instead of init_rtx_reader_args.
14562 * genconstants.c: As for genmddeps.c.
14563 * read-md.h (read_skip_construct): Declare.
14564 * read-md.c (read_skip_construct): New function.
14565 (handle_file): Allow a null handle_directive, skipping the
14566 construct if so.
14567 (parse_include): Update the comment accordingly.
14568
14569 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14570
14571 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
14572 * genmddeps.c: Include read-md.h.
14573 (main): Call init_rtx_reader_args instead of init_md_reader_args.
14574 * genattr.c (main): Likewise.
14575 * genattrtab.c (main): Likewise.
14576 * genautomata.c (main): Likewise.
14577 * gencodes.c (main): Likewise.
14578 * genconditions.c (main): Likewise.
14579 * genconfig.c (main): Likewise.
14580 * genconstants.c (main): Likewise.
14581 * genemit.c (main): Likewise.
14582 * genextract.c (main): Likewise.
14583 * genflags.c (main): Likewise.
14584 * genopinit.c (main): Likewise.
14585 * genoutput.c (main): Likewise.
14586 * genpeep.c (main): Likewise.
14587 * genrecog.c (main): Likewise.
14588 * genpreds.c (main): Likewise.
14589 * gensupport.h (in_fname): Move to read-md.h.
14590 (init_md_reader_args_cb): Rename to...
14591 (init_rtx_reader_args_cb): ...this and return a bool.
14592 (init_md_reader_args): Rename to...
14593 (init_rtx_reader_args): ...this and return a bool.
14594 (include_callback): Move to read-md.h.
14595 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
14596 (file_name_list, first_dir_md_include): Move to read-md.c
14597 (first_bracket_include): Delete unused variable.
14598 (last_dir_md_include): Move to read-md.c.
14599 (process_include): Delete, moving code to read-md.c:handle_include.
14600 (process_rtx): Don't handle INCLUDE.
14601 (save_string): Delete.
14602 (rtx_handle_directive): New function.
14603 (init_md_reader_args_cb): Rename to...
14604 (init_rtx_reader_args_cb): ...this and return a boolean success value.
14605 Use read_md_args.
14606 (init_md_reader_args): Rename to...
14607 (init_rtx_reader_args): ...this and return a boolean success value.
14608 * rtl.def (INCLUDE): Delete.
14609 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
14610 argument.
14611 * read-rtl.c (read_conditions): Don't gobble ')' here.
14612 (read_mapping): Likewise.
14613 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
14614 Handle top-level non-rtx constructs here rather than in read_rtx_1.
14615 Store the whole queue in *X. Remove call to init_md_reader.
14616 (read_rtx_1): Rename to...
14617 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
14618 Don't handle top-level non-rtx constructs here. Don't handle (nil)
14619 here.
14620 (read_nested_rtx): New function. Handle (nil) here rather than
14621 in read_rtx_code.
14622 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
14623 gobble ')' here.
14624 * read-md.h (directive_handler_t): New type.
14625 (in_fname, include_callback): Moved from read-md.h.
14626 (read_constants, init_md_reader): Delete.
14627 (read_md_files): Declare.
14628 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
14629 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
14630 from gensupport.c.
14631 (read_constants): Rename to...
14632 (handle_constants): ...this. Don't gobble ')' here.
14633 (handle_include, handle_file, handle_toplevel_file)
14634 (parse_include): New functions, mostly taken from gensupport.c.
14635 (init_md_reader): Subsume into...
14636 (read_md_files): ...this new function.
14637
14638 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14639
14640 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
14641 (unread_char): Decrement read_md_lineno after putting back '\n'.
14642 * read-md.c (fatal_with_file_and_line): Push back any characters
14643 that we decide not to add to the context.
14644 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
14645 fatal_expected_char in cases where '/' ends a line (for example).
14646 (read_name): Don't increment read_md_lineno here.
14647 (read_escape): Likewise.
14648 (read_quoted_string): Likewise.
14649 (read_braced_string): Likewise.
14650
14651 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14652
14653 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
14654 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
14655 * genconstants.c: Include read-md.h.
14656 * read-rtl.c (md_constants): Move to read-md.c.
14657 (md_name): Move to read-md.h.
14658 (initialize_iterators): Use leading_string_hash instead of def_hash
14659 and leading_string_eq_p instead of def_name_eq_p.
14660 (read_name): Move to read-md.c.
14661 (def_hash, def_name_eq_p): Delete.
14662 (read_constants, traverse_md_constants): Move to read-md.c.
14663 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
14664 * read-md.h: Include hashtab.h.
14665 (md_name): Moved from read-rtl.c.
14666 (md_constant): Moved from read-md.h.
14667 (leading_string_hash, leading_string_eq_p, read_name)
14668 (read_constants, traverse_md_constants): Declare.
14669 * read-md.c (md_constants): Moved from read-rtl.c.
14670 (leading_string_hash, leading_string_eq_p): New functions.
14671 (read_name, read_constants, traverse_md_constants): Moved from
14672 read-rtl.c.
14673
14674 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14675
14676 * read-rtl.c (md_name): New structure.
14677 (read_name): Take an md_name instead of a buffer pointer.
14678 Use the "string" field instead of strcpy when expanding constants.
14679 (read_constants): Remove the tmp_char argument. Update the calls
14680 to read_name, using two local name buffers instead of the tmp_char
14681 argument. Merge the constant-creation code.
14682 (read_conditions): Remove the tmp_char argument. Update the calls
14683 to read_name, using a local name buffer instead of the tmp_char
14684 argument.
14685 (read_mapping): Replace tmp_char variable with a local name buffer.
14686 Update the calls to read_name.
14687 (read_rtx_1): Likewise. Update the calls to read_constants and
14688 read_conditions.
14689
14690 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14691
14692 * Makefile.in (build/read-md.o): Depend on errors.h.
14693 * read-md.h (error_with_line): Declare.
14694 * read-md.c: Include errors.h.
14695 (message_with_line_1): New function, extracted from...
14696 (message_with_line): ...here.
14697 (error_with_line): New function.
14698 * genattrtab.c: If a call to message_with_line is followed by
14699 "have_error = 1;", replace both statements with a call to
14700 error_with_line.
14701 * genoutput.c: Likewise.
14702 * genpreds.c: Likewise.
14703 * genrecog.c: If a call to message_with_line is followed by
14704 "error_count++;", replace both statements with a call to
14705 error_with_line.
14706 (errorcount): Delete.
14707 (main): Don't check it.
14708 * gensupport.c: If a call to message_with_line is followed by
14709 "errors = 1;", replace both statements with a call to error_with_line.
14710 (errors): Delete.
14711 (process_define_cond_exec): Check have_error instead of errors.
14712 (init_md_reader_args_cb): Likewise. Don't set errors.
14713
14714 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14715
14716 * read-md.h (read_md_file): Declare.
14717 (read_char, unread_char): New functions.
14718 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
14719 (read_quoted_string, read_string): Remove FILE * argument.
14720 * read-md.c (read_md_file): New variable.
14721 (read_md_filename, read_md_lineno): Update comments and remove
14722 unnecessary initialization.
14723 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
14724 (read_escape, read_quoted_string, read_braced_string, read_string):
14725 Remove FILE * argument. Update calls accordingly, using read_char
14726 and unread_char instead of getc and ungetc.
14727 * rtl.h (read_rtx): Remove FILE * argument.
14728 * read-rtl.c (iterator_group): Remove FILE * argument from
14729 "find_builtin".
14730 (iterator_traverse_data): Remove "infile" field.
14731 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
14732 (add_mapping, read_name, read_constants, read_conditions)
14733 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
14734 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
14735 Remove file arguments from all calls, using read_char and unread_char
14736 instead of getc and ungetc.
14737 * gensupport.c (process_include): Preserve read_md_file around
14738 the include. Set read_md_file to the handle of the included file.
14739 Update call to read_rtx.
14740 (init_md_reader_args_cb): Set read_md_file to the handle of the file
14741 and remove local FILE *. Update calls to read_rtx.
14742
14743 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14744
14745 * read-md.h (read_rtx_lineno): Rename to...
14746 (read_md_lineno): ...this.
14747 (read_rtx_filename): Rename to...
14748 (read_md_filename): ...this.
14749 (copy_rtx_ptr_loc): Rename to...
14750 (copy_md_ptr_loc): ...this.
14751 (print_rtx_ptr_loc): Rename to...
14752 (print_md_ptr_loc): ...this.
14753 * read-md.c: Likewise. Update references after renaming.
14754 (string_obstack): Replace RTL with MD in comment.
14755 (set_rtx_ptr_loc): Rename to...
14756 (set_md_ptr_loc): ...this.
14757 (get_rtx_ptr_loc): Rename to...
14758 (get_md_ptr_loc): ...this.
14759 * genconditions.c: Update references after renaming.
14760 * genemit.c: Likewise.
14761 * genoutput.c: Likewise.
14762 * genpreds.c: Likewise.
14763 * gensupport.c: Likewise.
14764 * read-rtl.c: Likewise.
14765
14766 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14767
14768 * Makefile.in (READ_MD_H): New variable.
14769 (BUILD_RTL): Add build/read-md.o.
14770 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
14771 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
14772 (build/genattrtab.o, build/genconditions.o build/genemit.o)
14773 (build/genextract.o, build/genflags.o, build/genoutput.o)
14774 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
14775 (build/read-md.o): New rule.
14776 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
14777 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
14778 * coretypes.h: ...here.
14779 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
14780 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
14781 * genattr.c: Include read-md.h.
14782 * genattrtab.c: Likewise.
14783 * genconditions.c: Likewise.
14784 * genemit.c: Likewise.
14785 * genextract.c: Likewise.
14786 * genflags.c: Likewise.
14787 * genoutput.c: Likewise.
14788 * genpreds.c: Likewise.
14789 * genrecog.c: Likewise.
14790 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
14791 (join_c_conditions, print_c_condition, read_rtx_filename)
14792 (read_rtx_lineno): Move to read-md.h.
14793 * read-rtl.c: Include read-md.h.
14794 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
14795 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
14796 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
14797 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
14798 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
14799 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
14800 (read_braced_string, read_string): Move to read-md.c.
14801 (read_rtx): Move some initialization to init_md_reader and call
14802 init_md_reader here.
14803 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
14804 Move to read-md.h.
14805 * gensupport.c: Include read-md.h.
14806 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
14807 * read-md.h, read-md.c: New files.
14808
14809 2010-06-10 Anatoly Sokolov <aesok@post.ru>
14810
14811 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
14812 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14813 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
14814 * config/moxie/moxie.c (moxie_function_value): Make static.
14815 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
14816 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14817
14818 2010-06-10 Martin Jambor <mjambor@suse.cz>
14819
14820 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
14821 * dbgcnt.def (tree_sra): New counter.
14822 * tree-sra.c: Include dbgcnt.h.
14823 (gate_intra_sra): Check tree_sra debug counter.
14824
14825 2010-06-10 Martin Jambor <mjambor@suse.cz>
14826
14827 PR tree-optimization/44258
14828 * tree-sra.c (build_access_subtree): Return false iff there is a
14829 partial overlap.
14830 (build_access_trees): Likewise.
14831 (analyze_all_variable_accesses): Disqualify candidates if
14832 build_access_trees returns true for them.
14833
14834 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
14835
14836 PR debug/41371
14837 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
14838 tail-recurse into canonical node. Fast-forward over
14839 non-canonical VALUEs.
14840
14841 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
14842
14843 PR boostrap/44470
14844 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
14845 (*addsi_1_zext) <TYPE_LEA>: Likewise.
14846 (add lea splitter): Likewise.
14847 (add_zext lea splitter): Likewise.
14848
14849 2010-06-10 Joseph Myers <joseph@codesourcery.com>
14850
14851 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
14852
14853 2010-06-10 Jan Hubicka <jh@suse.cz>
14854
14855 * df-problems.c (df_live_problem_data): Add live_bitmaps.
14856 (df_live_alloc): Initialize problem data and live_osbtacks.
14857 (df_live_finalize): Remove obstack, problem data; do not
14858 clear all bitmaps.
14859 (df_live_top_dump, df_live_bottom_dump): Do not dump old
14860 data when not allocated.
14861 (df_live_verify_solution_start): Do not allocate problem data.
14862 (df_live_verify_solution_end): Check if out is allocated.
14863 (struct df_md_problem_data): New structure.
14864 (df_md_alloc): Allocate problem data.
14865 (df_md_free): Free problem data; do not clear bitmaps.
14866
14867 2010-06-10 Jan Beulich <jbeulich@novell.com>
14868
14869 PR bootstrap/37304
14870 * configure.ac: Replace $() with ${} when intending to expand
14871 variables rather than invoking commands.
14872 * configure: Re-generate.
14873
14874 2010-06-10 Jan Hubicka <jh@suse.cz>
14875
14876 PR rtl-optimization/44460
14877 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
14878 TYPE_NEEDS_CONSTRUCTING sanity check.
14879
14880 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
14881
14882 * doc/include/fdl.texi: Move to GFDL version 1.3.
14883
14884 * doc/cpp.texi: Move to GFDL version 1.3.
14885 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
14886 * doc/gccint.texi: Move to GFDL version 1.3.
14887 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
14888 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
14889 * doc/invoke.texi: Move to GFDL version 1.3.
14890
14891 2010-06-09 Jan Hubicka <jh@suse.cz>
14892
14893 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
14894 Break out from ...
14895 (propagate) ... here; swap the order.
14896
14897 2010-06-09 Jan Hubicka <jh@suse.cz>
14898
14899 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
14900 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
14901 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
14902 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
14903
14904 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
14905
14906 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
14907 Do not the gather memory reference in the outer loop if the step
14908 is not a constant.
14909
14910 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
14911
14912 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
14913 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
14914 8 to 4. Minor change of the related comments.
14915
14916 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
14917
14918 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
14919 the scev analysis when the variable is not used outside the loop
14920 in a close phi node: call compute_overall_effect_of_inner_loop.
14921
14922 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
14923
14924 * graphite-sese-to-poly.c (single_pred_cond): Renamed
14925 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
14926 (build_sese_conditions_before): Renamed call to single_pred_cond.
14927 (build_sese_conditions_after): Same.
14928
14929 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
14930
14931 * graphite-poly.h: Fix comments and indentation.
14932 * graphite-sese-to-poly.c: Same.
14933 (build_sese_conditions_before): Compute stmt and gbb only when needed.
14934 * tree-chrec.c: Fix comments and indentation.
14935 (tree-ssa-loop-niter.c): Same.
14936
14937 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
14938
14939 PR rtl-optimization/42461
14940 * dce.c (deletable_insn_p): Return true for const or pure calls again.
14941 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
14942
14943 2010-06-09 Jan Hubicka <jh@suse.cz>
14944
14945 * bitmap.c (bitmap_and): Walk array forward.
14946 (bitmap_and_compl_into): Likewise.
14947 (bitmap_xor): Likewise.
14948 (bitmap_xor_into): Likewise.
14949 (bitmap_equal_p): Likewise.
14950 (bitmap_intersect_p): Likewise.
14951 (bitmap_intersect_compl_p): Likewise.
14952 (bitmap_ior_and_into): Likewise.
14953 (bitmap_elt_copy): Likewise.
14954 (bitmap_and_compl): Likewise.
14955 (bitmap_elt_ior): Likewise.
14956
14957 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
14958
14959 * opts-common.c (prune_options): Ensure replacement argv array
14960 is correctly terminated by a NULL entry.
14961
14962 2010-06-09 Jan Hubicka <jh@suse.cz>
14963
14964 * cgraph.h (varpool_first_static_initializer,
14965 varpool_next_static_initializer): Make checking only when
14966 checking enabled.
14967 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
14968 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
14969 gcc_assert to gcc_checking_assert.
14970 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
14971 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
14972 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
14973 op_iter_init_phiuse, op_iter_init_phidef,
14974 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
14975 gcc_checking_assert.
14976 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
14977 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
14978 partition_is_global, live_on_entry, live_on_exit,
14979 live_merge_and_clear): Likewise.
14980 * system.h (gcc_checking_assert): New macro.
14981 * gimple.h (set_bb_seq): Use gcc_checking_assert.
14982
14983 2010-06-09 Jason Merrill <jason@redhat.com>
14984
14985 * Makefile.in (TAGS): Collect tags info from c-family.
14986
14987 2010-06-09 Jan Hubicka <jh@suse.cz>
14988
14989 * gimple.h (gcc_gimple_checking_assert): New macro.
14990 (gimple_set_def_ops, gimple_set_use_ops,
14991 gimple_set_vuse, gimple_set_vdef,
14992 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
14993 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
14994 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
14995 gimple_asm_output_op, gimple_asm_output_op_ptr,
14996 gimple_asm_set_output_op, gimple_asm_clobber_op,
14997 gimple_asm_set_clobber_op, gimple_asm_label_op,
14998 gimple_asm_set_label_op, gimple_try_set_kind,
14999 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
15000 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
15001 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
15002 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
15003 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
15004 gimple_omp_for_set_initial, gimple_omp_for_final,
15005 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
15006 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
15007 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
15008 conditional with ENABLE_GIMPLE_CHECKING.
15009 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
15010
15011 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
15012
15013 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
15014 (get_computation_cost_at): Use it.
15015 (determine_use_iv_cost_condition): Likewise.
15016 (determine_iv_cost): Likewise.
15017
15018 2010-06-09 Richard Guenther <rguenther@suse.de>
15019
15020 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
15021 replace constants.
15022
15023 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
15024
15025 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
15026
15027 2010-06-09 Martin Jambor <mjambor@suse.cz>
15028
15029 PR tree-optimization/44423
15030 * tree-sra.c (dump_access): Dump also grp_assignment_read.
15031 (analyze_access_subtree): Pass negative allow_replacements to children
15032 if the current type is scalar.
15033
15034 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
15035
15036 PR testsuite/42843
15037 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
15038 * doc/plugins.texi (Plugin license check): Update information
15039 on type of plugin_is_GPL_compatible.
15040 * Makefile.in (PLUGINCC): Define as $(COMPILER).
15041 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
15042
15043 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
15044
15045 * config/arm/arm.c (thumb2_reorg): New function.
15046 (arm_reorg): Call it.
15047 * config/arm/thumb2.md (define_peephole2 for flag clobbering
15048 arithmetic operations): Delete.
15049
15050 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
15051
15052 PR target/44067
15053 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
15054 e500v2 target.
15055
15056 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
15057
15058 PR plugins/44459
15059 * gcc-plugin.h: Encapsulate all declarations in extern "C".
15060
15061 2010-06-08 Jan Hubicka <jh@suse.cz>
15062
15063 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
15064 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
15065
15066 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
15067
15068 PR tree-optimization/39874
15069 PR middle-end/28685
15070 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
15071 Declare.
15072 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
15073 same_bool_result_p): New.
15074 (and_var_with_comparison, and_var_with_comparison_1,
15075 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
15076 (or_var_with_comparison, or_var_with_comparison_1,
15077 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
15078 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
15079 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
15080 of combine_comparisons.
15081 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
15082
15083 2010-06-08 Anatoly Sokolov <aesok@post.ru>
15084
15085 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15086 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15087 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
15088 pdp11_function_value_regno_p): New functions.
15089 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15090 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15091
15092 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
15093
15094 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
15095 Thumb-2 in the MINUS case.
15096
15097 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
15098
15099 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
15100
15101 * doc/gty.texi (GTY Options): Document typed GC allocation and
15102 variable_size GTY option.
15103
15104 * ggc-internal.h: New.
15105
15106 * ggc.h: Update copyright year.
15107 (digit_string): Move to stringpool.c.
15108 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
15109 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
15110 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
15111 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
15112 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
15113 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
15114 (ggc_force_collect, ggc_get_size, ggc_statistics)
15115 (ggc_print_common_statistics): Move to ggc-internal.h.
15116 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
15117 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
15118 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
15119 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
15120 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
15121 (ggc_alloc_zone_pass_stat): Remove.
15122 (ggc_internal_alloc_stat, ggc_internal_alloc)
15123 (ggc_internal_cleared_alloc_stat): New.
15124 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
15125 (ggc_internal_vec_alloc_stat)
15126 (ggc_internal_cleared_vec_alloc_stat)
15127 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
15128 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
15129 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
15130 (ggc_cleared_alloc_ptr_array_two_args): New.
15131 (htab_create_ggc, splay_tree_new_ggc): Redefine.
15132 (ggc_splay_alloc): Change the type of the first argument to
15133 enum gt_types_enum.
15134 (ggc_alloc_string): Make macro.
15135 (ggc_alloc_string_stat): New.
15136 (ggc_strdup): Redefine.
15137 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
15138 (ggc_alloc_rtvec_sized): New.
15139 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
15140 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
15141 (ggc_internal_cleared_alloc_zone_stat)
15142 (ggc_internal_zone_alloc_stat)
15143 (ggc_internal_zone_cleared_alloc_stat)
15144 (ggc_internal_zone_vec_alloc_stat)
15145 (ggc_alloc_zone_rtx_def_stat)
15146 (ggc_alloc_zone_tree_node_stat)
15147 (ggc_alloc_zone_cleared_tree_node_stat)
15148 (ggc_alloc_cleared_gimple_statement_d_stat): New.
15149
15150 * ggc-common.c: Include ggc-internal.h.
15151 (ggc_internal_cleared_alloc_stat): Rename from
15152 ggc_alloc_cleared_stat.
15153 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
15154 (ggc_calloc): Remove.
15155 (ggc_cleared_alloc_htab_ignore_args): New.
15156 (ggc_cleared_alloc_ptr_array_two_args): New.
15157 (ggc_splay_alloc): Add obj_type parameter.
15158 (init_ggc_heuristics): Formatting fixes.
15159
15160 * ggc-none.c: Update copyright year.
15161 (ggc_alloc_stat): Rename to ggc_alloc_stat.
15162 (ggc_alloc_cleared_stat): Rename to
15163 ggc_internal_cleared_alloc_stat.
15164 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15165
15166 * ggc-page.c: Update copyright year. Include ggc-internal.h.
15167 Remove references to ggc_alloc in comments.
15168 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
15169 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
15170 (new_ggc_zone, destroy_ggc_zone): Remove.
15171 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15172
15173 * ggc-zone.c: Include ggc-internal.h. Remove references to
15174 ggc_alloc in comments.
15175 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
15176 (ggc_internal_alloc_zone_pass_stat): New.
15177 (ggc_internal_cleared_alloc_zone_stat): New.
15178 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
15179 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
15180 (new_ggc_zone, destroy_ggc_zone): Remove.
15181
15182 * stringpool.c: Update copyright year. Include ggc-internal.h
15183 (digit_vector): Make static.
15184 (digit_string): Moved from ggc.h.
15185 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
15186 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
15187
15188 * Makefile.in (GGC_INTERNAL_H): New.
15189 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
15190 $(GGC_INTERNAL_H) to dependencies.
15191
15192 * gentype.c: Update copyright year.
15193 (walk_type): Accept variable_size GTY option.
15194 (USED_BY_TYPED_GC_P): New macro.
15195 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
15196 whitespace at the end of strings.
15197 (get_type_specifier, variable_size_p): New functions.
15198 (alloc_quantity, alloc_zone): New enums.
15199 (write_typed_alloc_def): New function.
15200 (write_typed_struct_alloc_def): Likewise.
15201 (write_typed_typed_typedef_alloc_def): Likewise.
15202 (write_typed_alloc_defns): Likewise.
15203 (output_typename, write_splay_tree_allocator_def): Likewise.
15204 (write_splay_tree_allocators): Likewise.
15205 (main): Call write_typed_alloc_defns and
15206 write_splay_tree_allocators.
15207
15208 * lto-streamer.h (lto_file_decl_data_ptr): New.
15209
15210 * passes.c (order): Define using cgraph_node_ptr.
15211
15212 * strinpool.c (struct string_pool_data): Declare nested_ptr using
15213 ht_identifier_ptr.
15214
15215 * gimple.h (union gimple_statement_d): Likewise.
15216
15217 * rtl.h (struct rtx_def): Likewise.
15218 (struct rtvec_def): Likewise.
15219
15220 * tree.h (union tree_node): Likewise.
15221
15222 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
15223
15224 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
15225
15226 * tree-scalar-evolution.c (scev_initialize): Likewise.
15227
15228 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
15229
15230 * dwarf2asm.c (dw2_force_const_mem): Likewise.
15231
15232 * omp-low.c (lower_omp_critical): Likewise.
15233
15234 * bitmap.h (struct bitmap_head_def): Update comment to not
15235 reference ggc_alloc.
15236
15237 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
15238
15239 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
15240
15241 * ipa-prop.c (duplicate_ggc_array): Rename to
15242 duplicate_ipa_jump_func_array. Use typed GC allocation.
15243 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
15244
15245 * gimple.c (gimple_alloc_stat): Use
15246 ggc_alloc_cleared_gimple_statement_d_stat.
15247
15248 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
15249
15250 * tree.c (make_node_stat): Use
15251 ggc_alloc_zone_cleared_tree_node_stat.
15252 (make_tree_vec_stat): Likewise.
15253 (build_vl_exp_stat): Likewise.
15254 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
15255 (make_tree_binfo_stat): Likewise.
15256 (tree_cons_stat): Likewise.
15257
15258 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
15259 (shallow_copy_rtx_stat): Likewise.
15260 (make_node_stat): Likewise.
15261
15262 * lto-symtab.c: Fix comment.
15263
15264 * tree-cfg.c (create_bb): Update comment to not reference
15265 ggc_alloc_cleared.
15266 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
15267
15268 * varpool.c (varpool_node): Use typed GC allocation.
15269 (varpool_extra_name_alias): Likewise.
15270
15271 * varasm.c (emutls_decl): Likewise.
15272 (get_unnamed_section): Likewise.
15273 (get_noswitch_section): Likewise.
15274 (get_section): Likewise.
15275 (get_block_for_section): Likewise.
15276 (build_constant_desc): Likewise.
15277 (create_constant_pool): Likewise.
15278 (force_const_mem): Likewise.
15279
15280 * tree.c (build_vl_exp_stat): Likewise.
15281 (build_real): Likewise.
15282 (build_string): Likewise.
15283 (decl_debug_expr_insert): Likewise.
15284 (decl_value_expr_insert): Likewise.
15285 (type_hash_add): Likewise.
15286 (build_omp_clause): Likewise.
15287
15288 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
15289
15290 * tree-ssa.c (init_tree_ssa): Likewise.
15291
15292 * tree-ssa-structalias.c (heapvar_insert): Likewise.
15293
15294 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15295
15296 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15297
15298 * tree-ssa-alias.c (get_ptr_info): Likewise.
15299
15300 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15301
15302 * tree-phinodes.c (allocate_phi_node): Likewise.
15303
15304 * tree-iterator.c (tsi_link_before): Likewise.
15305 (tsi_link_after): Likewise.
15306
15307 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15308
15309 * tree-dfa.c (create_var_ann): Likewise.
15310
15311 * tree-cfg.c (create_bb): Likewise.
15312
15313 * toplev.c (alloc_for_identifier_to_locale): Likewise.
15314 (general_init): Likewise.
15315
15316 * stringpool.c (stringpool_ggc_alloc): Likewise.
15317 (gt_pch_save_stringpool): Likewise.
15318
15319 * sese.c (if_region_set_false_region): Likewise.
15320
15321 * passes.c (do_per_function_toporder): Likewise.
15322
15323 * optabs.c (set_optab_libfunc): Likewise.
15324 (set_conv_libfunc): Likewise.
15325
15326 * lto-symtab.c (lto_symtab_register_decl): Likewise.
15327
15328 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15329 (input_eh_region): Likewise.
15330 (input_eh_lp): Likewise.
15331 (make_new_block): Likewise.
15332 (unpack_ts_real_cst_value_fields): Likewise.
15333
15334 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15335
15336 * lto-cgraph.c (input_node_opt_summary): Likewise.
15337
15338 * loop-init.c (loop_optimizer_init): Likewise.
15339
15340 * lambda.h (lambda_vector_new): Likewise.
15341
15342 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
15343
15344 * ira.c (update_equiv_regs): Likewise.
15345
15346 * ipa.c (cgraph_node_set_new): Likewise.
15347 (cgraph_node_set_add): Likewise.
15348 (varpool_node_set_new): Likewise.
15349 (varpool_node_set_add): Likewise.
15350
15351 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
15352 (duplicate_ipa_jump_func_array): Likewise.
15353 (ipa_read_node_info): Likewise.
15354
15355 * ipa-cp.c (ipcp_create_replace_map): Likewise.
15356
15357 * integrate.c (get_hard_reg_initial_val): Likewise.
15358
15359 * gimple.c (gimple_alloc_stat): Likewise.
15360 (gimple_build_omp_for): Likewise.
15361 (gimple_seq_alloc): Likewise.
15362 (gimple_copy): Likewise.
15363
15364 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
15365 (gsi_insert_after_without_update): Likewise.
15366
15367 * function.c (add_frame_space): Likewise.
15368 (insert_temp_slot_address): Likewise.
15369 (assign_stack_temp_for_type): Likewise.
15370 (allocate_struct_function): Likewise.
15371 (types_used_by_var_decl_insert): Likewise.
15372
15373 * except.c (init_eh_for_function): Likewise.
15374 (gen_eh_region): Likewise.
15375 (gen_eh_region_catch): Likewise.
15376 (gen_eh_landing_pad): Likewise.
15377 (add_call_site): Likewise.
15378
15379 * emit-rtl.c (get_mem_attrs): Likewise.
15380 (get_reg_attrs): Likewise.
15381 (start_sequence): Likewise.
15382 (init_emit): Likewise.
15383
15384 * dwarf2out.c (new_cfi): Likewise.
15385 (queue_reg_save): Likewise.
15386 (dwarf2out_frame_init): Likewise.
15387 (new_loc_descr): Likewise.
15388 (find_AT_string): Likewise.
15389 (new_die): Likewise.
15390 (add_var_loc_to_decl): Likewise.
15391 (clone_die): Likewise.
15392 (clone_as_declaration): Likewise.
15393 (break_out_comdat_types): Likewise.
15394 (new_loc_list): Likewise.
15395 (loc_descriptor): Likewise.
15396 (add_loc_descr_to_each): Likewise.
15397 (add_const_value_attribute): Likewise.
15398 (tree_add_const_value_attribute): Likewise.
15399 (add_comp_dir_attribute): Likewise.
15400 (add_name_and_src_coords_attributes): Likewise.
15401 (lookup_filename): Likewise.
15402 (store_vcall_insn): Likewise.
15403 (dwarf2out_init): Likewise.
15404
15405 * dbxout.c (dbxout_init): Likewise.
15406
15407 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15408
15409 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15410
15411 * config/score/score7.c (score7_output_external): Likewise.
15412
15413 * config/score/score3.c (score3_output_external): Likewise.
15414
15415 * config/s390/s390.c (s390_init_machine_status): Likewise.
15416
15417 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15418 (rs6000_init_machine_status): Likewise.
15419 (output_toc): Likewise.
15420
15421 * config/pa/pa.c (pa_init_machine_status): Likewise.
15422 (get_deferred_plabel): Likewise.
15423
15424 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15425
15426 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15427
15428 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15429
15430 * config/mep/mep.c (mep_init_machine_status): Likewise.
15431 (mep_note_pragma_flag): Likewise.
15432
15433 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15434
15435 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15436
15437 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15438
15439 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15440 (i386_pe_maybe_record_exported_symbol): Likewise.
15441
15442 * config/i386/i386.c (get_dllimport_decl): Likewise.
15443 (ix86_init_machine_status): Likewise.
15444 (assign_386_stack_local): Likewise.
15445
15446 * config/frv/frv.c (frv_init_machine_status): Likewise.
15447
15448 * config/darwin.c (machopic_indirection_name): Likewise.
15449
15450 * config/cris/cris.c (cris_init_machine_status): Likewise.
15451
15452 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15453
15454 * config/avr/avr.c (avr_init_machine_status): Likewise.
15455
15456 * config/arm/arm.c (arm_init_machine_status): Likewise.
15457
15458 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15459 (alpha_need_linkage): Likewise.
15460 (alpha_use_linkage): Likewise.
15461
15462 * cgraph.c (cgraph_allocate_node): Likewise.
15463 (cgraph_create_edge_1): Likewise.
15464 (cgraph_create_indirect_edge): Likewise.
15465 (cgraph_add_asm_node): Likewise.
15466
15467 * cfgrtl.c (init_rtl_bb_info): Likewise.
15468
15469 * cfgloop.c (alloc_loop): Likewise.
15470 (rescan_loop_exit): Likewise.
15471
15472 * cfg.c (init_flow): Likewise.
15473 (alloc_block): Likewise.
15474 (unchecked_make_edge): Likewise.
15475
15476 * c-parser.c (c_parse_init): Likewise.
15477 (c_parse_file): Likewise.
15478
15479 * c-decl.c (bind): Likewise.
15480 (record_inline_static): Likewise.
15481 (push_scope): Likewise.
15482 (make_label): Likewise.
15483 (lookup_label_for_goto): Likewise.
15484 (finish_struct): Likewise.
15485 (finish_enum): Likewise.
15486 (c_push_function_context): Likewise.
15487
15488 * bitmap.c (bitmap_element_allocate): Likewise.
15489 (bitmap_gc_alloc_stat): Likewise.
15490
15491 * alias.c (record_alias_subset): Likewise.
15492 (init_alias_analysis): Likewise.
15493
15494 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
15495
15496 * fold-const.c (fold_comparison): Remove redundant parenthesis.
15497 * tree-inline.c (expand_call_inline): Pass translated return value of
15498 cgraph_inline_failed_string to diagnostic function.
15499
15500 2010-06-08 Andrew Pinski <pinskia@gmail.com>
15501 Shujing Zhao <pearly.zhao@oracle.com>
15502
15503 PR c/37724
15504 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
15505 implicit bad conversions is initialization.
15506 (error_init): Use gmsgid instead of msgid for argument name and change
15507 the call for error.
15508 (pedwarn_init): Use gmsgid instead of msgid for argument name and
15509 change the call for pedwarn.
15510 (warning_init): Use gmsgid instead of msgid for argument name and
15511 change the call for warning.
15512
15513 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
15514
15515 * config/mips/mips-protos.h (mips_print_operand): Delete.
15516 (mips_print_operand_address): Delete.
15517 * config/mips/mips.h (mips_print_operand_punct): Delete.
15518 (PRINT_OPERAND): Delete.
15519 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
15520 (PRINT_OPERAND_ADDRESS): Delete.
15521 * config/mips/mips.c (mips_print_operand_punct): Make static.
15522 (mips_print_operand_address): Make static.
15523 (mips_print_operand): Make static. Call
15524 mips_print_operand_punct_valid_p.
15525 (mips_print_operand_punct_valid_p): New function.
15526 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15527 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
15528
15529 2010-06-07 Jan Hubicka <jh@suse.cz>
15530
15531 PR middle-end/44454
15532 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
15533 are allocated.
15534
15535 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
15536
15537 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
15538 name of RECORD.
15539
15540 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15541
15542 * doc/sourcebuild.texi (Effective-Target Keywords, Other
15543 attributes): Document gas.
15544
15545 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
15546
15547 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
15548 <TYPE_LEA>: Split instruction.
15549 <default>: Remove alternative 2 handling.
15550 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
15551 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
15552 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
15553
15554 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
15555 (ashift_zext lea splitter): Use DImode for multiplication.
15556
15557 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
15558 to generate addition.
15559
15560 2010-06-07 Joseph Myers <joseph@codesourcery.com>
15561
15562 * common.opt (fira-verbose): Use Var.
15563 (fpcc-struct-return): Use Init instead of VarExists.
15564 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
15565 toplev.c.
15566 * flags.h (flag_signed_char, flag_short_enums,
15567 flag_pcc_struct_return, flag_ira_verbose,
15568 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
15569 * toplev.c (flag_detailed_statistics, flag_signed_char,
15570 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
15571 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
15572 * toplev.h (flag_crossjumping, flag_if_conversion,
15573 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
15574 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
15575 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
15576 flag_cprop_registers, time_report, flag_ira_loop_pressure,
15577 flag_ira_coalesce, flag_ira_move_spills,
15578 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
15579
15580 2010-06-07 Jan Hubicka <jh@suse.cz>
15581
15582 * df-core.c (df_analyze_problem): Do verification after allocation.
15583
15584 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
15585 (df_lr_alloc): Initialize problem data; move bitmaps to
15586 lr_bitmaps obstack.
15587 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
15588 (df_lr_verify_solution_start): Do not initialize problem data;
15589 allocate bitmaps in lr_bitmaps.
15590 (df_lr_verify_solution_end): Do not free problem data.
15591
15592 2010-06-07 Jan Hubicka <jh@suse.cz>
15593
15594 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
15595 if caller is noreturn.
15596 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
15597 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
15598 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
15599 * ipa-pure-const.c (check_decl): Add IPA parameter.
15600 (state_from_flags): New function.
15601 (better_state, worse_state): New functions.
15602 (check_call): When in IPA mode, do not care about callees.
15603 (check_load, check_store): Update.
15604 (check_ipa_load, check_ipa_store): New.
15605 (check_stmt): When in IPA mode, use IPA checkers.
15606 (analyze_function): Use state_from_flags.
15607 (propagate): Check indirect edges and references.
15608
15609 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
15610
15611 PR rtl-optimization/44404
15612 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
15613 of count_occurrences to see if it's safe to modify mem_insn.
15614
15615 2010-06-07 Richard Guenther <rguenther@suse.de>
15616
15617 * gimplify.c (gimplify_cleanup_point_expr): For empty body
15618 and EH-only cleanup drop the cleanup instead of inserting it
15619 unconditionally.
15620
15621 2010-06-07 Ira Rosen <irar@il.ibm.com>
15622
15623 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
15624 documentation.
15625 * targhooks.c (default_builtin_vectorization_cost): New function.
15626 * targhooks.h (default_builtin_vectorization_cost): Declare.
15627 * target.h (enum vect_cost_for_stmt): Define.
15628 (builtin_vectorization_cost): Change argument and comment.
15629 * tree-vectorizer.h: Remove cost model macros.
15630 * tree-vect-loop.c: Include target.h.
15631 (vect_get_cost): New function.
15632 (vect_estimate_min_profitable_iters): Replace cost model macros with
15633 calls to vect_get_cost.
15634 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
15635 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
15636 default implementation.
15637 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
15638 calls to target hook builtin_vectorization_cost.
15639 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
15640 Likewise.
15641 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
15642 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
15643 implementation to return costs.
15644 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
15645 * config/spu/spu.h: Remove vectorizer cost model macros.
15646 * config/i386/i386.h: Likewise.
15647 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
15648 a call to target hook builtin_vectorization_cost.
15649
15650 2010-06-06 Sriraman Tallam <tmsriram@google.com>
15651
15652 PR target/44319
15653 * config/i386/i386.c (override_options): Turn zee pass on for level 2
15654 and above and defer till target is known.
15655 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
15656 turn off otherwise.
15657
15658 2010-05-25 Jan Hubicka <jh@suse.cz>
15659
15660 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
15661 (df_compact_blocks): Likewise.
15662 * df.h (struct df): Turn hardware_regs_used,
15663 regular_block_artificial_uses, eh_block_artificial_uses,
15664 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
15665 bitmap_head.
15666 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
15667 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
15668 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
15669 df_scan_blocks, df_insn_delete, df_insn_rescan,
15670 df_insn_rescan_debug_internal, df_insn_rescan_all,
15671 df_process_deferred_rescans, df_process_deferred_rescans,
15672 df_notes_rescan, df_get_call_refs, df_get_call_refs,
15673 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
15674 df_record_entry_block_defs, df_record_exit_block_uses,
15675 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
15676 df_scan_verify): Update.
15677
15678 2010-05-25 Dodji Seketeli <dodji@redhat.com>
15679
15680 PR c++/44188
15681 * c-common.c (is_typedef_decl): Move this definition ...
15682 * tree.c (is_typedef_decl): ... here.
15683 (typdef_variant_p): Move definition here from cp/tree.c.
15684 * c-common.h (is_typedef_decl): Move this declaration ...
15685 * tree.h (is_typedef_decl): ... here.
15686 (typedef_variant_p): Move declaration here from cp/cp-tree.h
15687 * dwarf2out.c (is_naming_typedef_decl): New function.
15688 (gen_tagged_type_die): Split out of ...
15689 (gen_type_die_with_usage): ... this function. When an anonymous
15690 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
15691 is emitted for the typedef.
15692 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
15693 anonymous tagged types.
15694
15695 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
15696
15697 PR c/20000
15698 * c-decl.c (grokdeclarator): Delete warning.
15699
15700 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
15701
15702 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
15703 newly built CALL_EXPR.
15704 * tree-profile.c (tree_profiling): Don't profile functions produced
15705 for built-in stuff.
15706
15707 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
15708
15709 PR bootstrap/44427
15710 PR bootstrap/44428
15711 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
15712 endianness-independent.
15713
15714 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
15715
15716 * c-common.c: Move to c-family/.
15717 * c-common.def: Likewise.
15718 * c-common.h: Likewise.
15719 * c-cppbuiltin.c: Likewise.
15720 * c-dump.c: Likewise.
15721 * c-format.c: Likewise.
15722 * c-format.h : Likewise.
15723 * c-gimplify.c: Likewise.
15724 * c-lex.c: Likewise.
15725 * c-omp.c: Likewise.
15726 * c.opt: Likewise.
15727 * c-opts.c: Likewise.
15728 * c-pch.c: Likewise.
15729 * c-ppoutput.c: Likewise.
15730 * c-pragma.c: Likewise.
15731 * c-pragma.h: Likewise.
15732 * c-pretty-print.c: Likewise.
15733 * c-pretty-print.h: Likewise.
15734 * c-semantics.c: Likewise.
15735 * stub-objc.c: Likewise.
15736
15737 * gengtype.c (get_file_langdir): Special-case files in c-family/.
15738 (get_output_file_with_visibility): Fix name for c-common.h.
15739 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
15740
15741 * c-tree.h: Update include path for moved files.
15742 * c-lang.c: Likewise.
15743 * c-lang.h: Likewise.
15744 * c-parser.c: Likewise.
15745 * c-convert.c: Likewise.
15746 * c-decl.c: Likewise.
15747 * c-objc-common.c: Likewise.
15748 * configure.ac: Make sure c-family/ exists in the build directory.
15749 * configure: Regenerate.
15750 * Makefile.in: Update paths for moved files. Regroup files per
15751 location and update dependencies. Move generated_files down after
15752 ALL_GTFILES_H.
15753
15754 * config/spu/spu-c.c: Update paths for moved files.
15755 * config/mep/mep-pragma.c: Likewise.
15756 * config/darwin-c.c: Likewise.
15757 * config/i386/msformat-c.c: Likewise.
15758 * config/i386/i386-c.c: Likewise.
15759 * config/avr/avr-c.c: Likewise.
15760 * config/sol2-c.c: Likewise.
15761 * config/ia64/ia64-c.c: Likewise.
15762 * config/rs6000/rs6000-c.c: Likewise.
15763 * config/arm/arm.c: Likewise.
15764 * config/arm/arm-c.c: Likewise.
15765 * config/h8300/h8300.c: Likewise.
15766 * config/v850/v850-c.c: Likewise.
15767
15768 * config/t-darwin: Fix dependencies for moved files.
15769 * config/t-sol2: Fix dependencies for moved files.
15770 * config/mep/t-mep: Fix dependencies for moved files.
15771 * config/ia64/t-ia64: Fix dependencies for moved files.
15772 * config/rs6000/t-rs6000: Fix dependencies for moved files.
15773 * config/v850/t-v850: Fix dependencies for moved files.
15774 * config/v850/t-v850e: Fix dependencies for moved files.
15775
15776 * config/m32c/m32c-pragma.c
15777
15778 * po/exgettext: Look in c-family/ also.
15779
15780 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
15781
15782 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
15783 (mark_control_dependent_edges_necessary): Call it instead of marking
15784 the last statement manually.
15785 (propagate_necessity): Likewise.
15786
15787 2010-06-05 Jan Hubicka <jh@suse.cz>
15788
15789 * basic-block.h (compute_dominance_frontiers): Updated.
15790 (compute_idf): Likewise.
15791
15792 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
15793 for dominance frontiers.
15794 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
15795 (insert_updated_phi_nodes_for): Likewise.
15796 (update_ssa): Likewise.
15797 * cfganal.c (compute_dominance_frontiers_1): Likewise.
15798 (compute_dominance_frontiers): Likewise.
15799 (compute_idf): Likewise.
15800 * df-problems.c (df_md_local_compute): Likewise.
15801
15802 2010-06-05 Anatoly Sokolov <aesok@post.ru>
15803
15804 * target.h (struct gcc_target): Add memory_move_cost field.
15805 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
15806 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
15807 * targhooks.c (default_memory_move_cost): New function.
15808 * targhooks.h (default_memory_move_cost): Declare function.
15809 * reload.h (memory_move_cost): Declare.
15810 (memory_move_secondary_cost): Change type of 'in' argument to bool.
15811 * reginfo.c (memory_move_cost): New function.
15812 (memory_move_secondary_cost): Change type of 'in' argument to bool.
15813 * ira.h (ira_memory_move_cost): Update comment.
15814 * ira.c (ira_memory_move_cost): Update comment.
15815 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
15816 with memory_move_cost.
15817 * postreload.c (reload_cse_simplify_set): (Ditto.).
15818 * reload1.c (choose_reload_regs): (Ditto.).
15819 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
15820 (MEMORY_MOVE_COST): Revise documentation.
15821
15822 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
15823 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
15824 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
15825 type of 'in' argument to bool.
15826 (TARGET_MEMORY_MOVE_COST): Define.
15827
15828 2010-06-05 Jan Hubicka <jh@suse.cz>
15829
15830 * ipa-pure-const.c (propagate): Fix typo in handling of functions
15831 that cannot return. Be more careful when merging the results with
15832 previously known ones.
15833
15834 2010-06-05 Matthias Klose <doko@ubuntu.com>
15835
15836 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
15837 function to add the -iplugindir option.
15838 (find_plugindir_spec_function): Add new declaration and function.
15839 (static_spec_func): Use it for "find-plugindir".
15840
15841 2010-06-05 Jakub Jelinek <jakub@redhat.com>
15842
15843 PR c++/44361
15844 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
15845 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
15846 statement expression.
15847
15848 2010-06-05 Jan Hubicka <jh@suse.cz>
15849
15850 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
15851 (df_rd_problem_data): Convert sparse_invalidated_by_call,
15852 dense_invalidated_by_call to bitmap head.
15853 (df_rd_alloc, df_rd_bb_local_compute_process_def,
15854 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
15855 df_rd_start_dump, df_lr_verify_transfer_functions,
15856 df_live_verify_transfer_functions, df_chain_create_bb,
15857 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
15858 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
15859 df_simulate_one_insn_forwards, df_md_alloc,
15860 df_md_bb_local_compute_process_def,
15861 df_md_bb_local_compute_process_def, df_md_local_compute,
15862 df_md_transfer_function df_md_free): Update.
15863
15864 2010-06-05 Joseph Myers <joseph@codesourcery.com>
15865
15866 PR c/44322
15867 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
15868 target type for ADDR_EXPR; require no changes to qualifiers except
15869 for function types.
15870 * c-tree.h (c_build_type_variant): Remove.
15871
15872 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
15873
15874 * genautomata.c (get_excl_set): Do work per element, not per char.
15875 (check_presence_pattern_sets): Similar.
15876 (check_absence_pattern_sets): Similar.
15877
15878 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
15879
15880 * genautomata.c (curr_state_pass_num): Delete.
15881 (min_issue_delay_pass_states): Delete.
15882 (min_issue_delay): Delete.
15883 (initiate_min_issue_delay_pass_states): Delete.
15884 (output_min_issue_delay_table): Compute min_issue_delay_vect
15885 using a breadth-first search variant.
15886 (output_tables): Don't call initiate_min_issue_delay_pass_states.
15887
15888 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
15889
15890 PR boostrap/44421
15891 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
15892 (df_byte_lr_bb_local_compute): Likewise.
15893
15894 2010-06-03 Jason Merrill <jason@redhat.com>
15895
15896 Implement noexcept operator (5.3.7)
15897 * c-common.c (c_common_reswords): Add noexcept.
15898 * c-common.h (enum rid): Add RID_NOEXCEPT.
15899
15900 2010-06-04 Joseph Myers <joseph@codesourcery.com>
15901
15902 * config/darwin-driver.c (darwin_default_min_version): Use
15903 GCC-specific formats in diagnostics.
15904 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
15905 diagnostics.
15906 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
15907 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
15908 eval_spec_function, handle_braces, process_brace_body, main,
15909 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
15910 getenv_spec_function, compare_version_strings,
15911 version_compare_spec_function): Use GCC-specific formats in
15912 diagnostics.
15913
15914 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
15915
15916 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
15917 that operand 0 and operand 1 are equal.
15918 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
15919 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
15920 and operand 1 are equal.
15921 <default>: Ditto. Remove ??? comment.
15922 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
15923 and operand 1 are equal.
15924 <default>: Ditto. Remove ??? comment.
15925 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
15926 are equal.
15927 (*add<mode>_4) <default>: Ditto.
15928 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
15929
15930 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
15931
15932 * config/i386/i386-protos.h (ix86_print_operand): Declare.
15933 * config/i386/i386.c (ix86_print_operand): Make non-static.
15934 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
15935 * output.h (output_operand): Declare.
15936 * final.c (output_operand): Make non-static.
15937
15938 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
15939
15940 PR rtl-optimization/44013
15941 * sched-deps.c (add_dependence_list_and_free): Don't free lists
15942 when processing debug insns.
15943
15944 PR debug/41371
15945 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
15946 recursing. Check that recursion is bounded. Rename inner var
15947 to avoid hiding incoming argument.
15948
15949 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
15950
15951 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
15952 operands[2] == 255.
15953 (*addqi_3): Ditto.
15954 (*addqi_4): Ditto.
15955 (*addqi_5): Ditto.
15956 (*addqi_ext_1_rex64): Ditto.
15957 (*addqi_ext_1): Ditto.
15958
15959 (*addqi_4): Check for incdec_operand in QImode.
15960
15961 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
15962 using SWI mode iterator.
15963 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
15964 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
15965 mode iterator.
15966 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
15967 using SWI mode iterator.
15968
15969 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
15970
15971 PR c/25880
15972 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
15973 * c-format.c (gcc_diag_flag_specs): Add hash.
15974 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
15975 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
15976 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
15977 pp_c_cv_qualifiers. Handle qualifiers spelling here.
15978 (pp_c_type_qualifier_list): Call the function above.
15979 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
15980 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
15981 (WARN_FOR_QUALIFIERS): New macro.
15982 (convert_for_assignment): Use it.
15983
15984 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
15985
15986 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
15987
15988 2010-06-04 Jan Hubicka <jh@suse.cz>
15989
15990 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
15991 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
15992 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
15993 DF_BYTE_LR_OUT): Update for embedded bitmaps.
15994 * fwprop.c (single_def_use_enter_block): Likewise.
15995 * ddg.c (create_ddg_dep_from_intra_loop_link,
15996 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
15997 * loop-iv.c (latch_dominating_def): Likewise.
15998 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
15999 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
16000 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
16001 df_rd_transfer_function, df_rd_top_dump,
16002 df_rd_bottom_dump): Update.
16003 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
16004 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
16005 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
16006 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
16007 df_lr_verify_solution_start, df_lr_verify_solution_end,
16008 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
16009 df_live_free_bb_info, df_live_alloc, df_live_reset,
16010 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
16011 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
16012 df_live_verify_solution_start, df_live_verify_solution_end,
16013 df_live_verify_transfer_functions, df_chain_create_bb,
16014 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
16015 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
16016 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
16017 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
16018 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
16019 df_byte_lr_transfer_function, df_byte_lr_top_dump,
16020 df_byte_lr_bottom_dump, df_create_unused_note,
16021 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
16022 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
16023 df_md_transfer_function, df_md_init, df_md_confluence_0,
16024 df_md_confluence_n,
16025 df_md_top_dump, df_md_bottom_dump): Update.
16026 (struct df_lr_problem_data): Embedd bitmap headers.
16027
16028 2010-06-04 Jan Hubicka <jh@suse.cz>
16029
16030 * dce.c (dce_process_block): Do not re-scan already marked
16031 instructions.
16032
16033 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
16034
16035 PR rtl-optimization/39871
16036 PR rtl-optimization/40615
16037 PR rtl-optimization/42500
16038 PR rtl-optimization/42502
16039 * ira.c (init_reg_equiv_memory_loc: New function.
16040 (ira): Call it twice.
16041 * reload.h (calculate_elim_costs_all_insns): Declare.
16042 * ira-costs.c: Include "reload.h".
16043 (regno_equiv_gains): New static variable.
16044 (init_costs): Allocate it.
16045 (finish_costs): Free it.
16046 (ira_costs): Call calculate_elim_costs_all_insns.
16047 (find_costs_and_classes): Take estimated elimination costs
16048 into account.
16049 (ira_adjust_equiv_reg_cost): New function.
16050 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
16051 * reload1.c (init_eliminable_invariants, free_reg_equiv,
16052 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
16053 (elim_bb): New static variable.
16054 (reload): Move code out of here into init_eliminable_invariants and
16055 free_reg_equiv. Call them.
16056 (calculate_elim_costs_all_insns): New function.
16057 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
16058 all callers changed. If FOR_COSTS is true, don't call alter_reg,
16059 but call note_reg_elim_costly if we turned a valid memory address
16060 into an invalid one.
16061 * Makefile.in (ira-costs.o): Depend on reload.h.
16062
16063 2010-06-04 Julian Brown <julian@codesourcery.com>
16064
16065 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
16066 for pool ranges.
16067
16068 2010-06-04 Richard Guenther <rguenther@suse.de>
16069
16070 PR lto/41584
16071 * cgraph.h (struct varpool_node): Add lto_file_data field.
16072 * lto-cgraph.c (input_varpool_node): Initialize it.
16073
16074 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
16075
16076 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
16077 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
16078 predicate in "type" attribute calculation.
16079 (*addsi_1_zext): Ditto.
16080 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
16081 (*addsi_2_zext): Ditto.
16082 (*add<mode>_3): Ditto.
16083 (*addsi_3_zext): Ditto.
16084 (*add<mode>_5): Ditto.
16085
16086 2010-06-03 Jan Hubicka <jh@suse.cz>
16087
16088 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
16089 of bitmap_bit_p.
16090 * cfganal.c (compute_dominance_frontiers_1): Likewise.
16091
16092 2010-06-03 Jan Hubicka <jh@suse.cz>
16093
16094 * df-problems.c (df_create_unused_note, df_note_bb_compute):
16095 micro-optimize the checks when to add new note.
16096
16097 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
16098
16099 * final.c (output_asm_insn): Call
16100 targetm.asm_out.print_operand_punct_valid_p. Update comments.
16101 (output_operand): Call targetm.asm_out.print_operand. Update comments.
16102 (output_address): Call targetm.asm_out.print_operand_address.
16103 Update comments.
16104 * target.h (struct gcc_target): Add print_operand,
16105 print_operand_address, and print_operand_punct_valid_p fields.
16106 * targhooks.h (default_print_operand): Declare.
16107 (default_print_operand_address): Declare.
16108 (default_print_operand_punct_valid_p): Declare.
16109 * targhooks.c (default_print_operand): Define.
16110 (default_print_operand_address): Define.
16111 (default_print_operand_punct_valid_p): Define.
16112 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
16113 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
16114 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
16115 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
16116 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
16117 * vmsdbgout.c (addr_const_to_string): Update comment.
16118 * config/i386/i386.c (print_operand): Rename to...
16119 (ix86_print_operand): ...this. Make static.
16120 (print_operand_address): Rename to...
16121 (ix86_print_operand_address): ...this. Make static. Call
16122 ix86_print_operand instead of PRINT_OPERAND.
16123 (ix86_print_operand_punct_valid_p): New function.
16124 (TARGET_PRINT_OPERAND): Define.
16125 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16126 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16127 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
16128 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16129 (PRINT_OPERAND): Delete.
16130 (PRINT_OPERAND_ADDRESS): Delete.
16131 * config/i386/i386-protos.h (print_operand): Delete prototype.
16132 (print_operand_address): Delete prototype.
16133
16134 2010-06-03 Richard Guenther <rguenther@suse.de>
16135
16136 PR tree-optimization/44403
16137 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16138 Preserve pointer qualifiers.
16139 (vect_create_data_ref_ptr): Likewise.
16140
16141 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
16142
16143 PR c++/44294
16144 * defaults.h (MAX_FIXED_MODE_SIZE): New.
16145
16146 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
16147
16148 2010-06-03 Jakub Jelinek <jakub@redhat.com>
16149
16150 PR debug/44375
16151 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
16152 return false if merging the bbs would lead to goto_locus
16153 location being lost from the IL.
16154
16155 2010-06-03 Jan Hubicka <jh@suse.cz>
16156 Jakub Jelinek <jakub@redhat.com>
16157
16158 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
16159 set->regs[i] is NULL or has just one entry.
16160
16161 2010-06-03 Jan Hubicka <jh@suse.cz>
16162
16163 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
16164 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
16165
16166 2010-06-03 Paul Brook <paul@codesourcery.com>
16167
16168 * config/arm/arm.c (FL_TUNE): Define.
16169 (arm_default_cpu, arm_cpu_select): Remove.
16170 (all_cores): Populate core field.
16171 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
16172 (arm_find_cpu): New function.
16173 (arm_handle_option): Lookup cpu/architecture names.
16174 (arm_override_options): Cleanup mcpu/march/mtune handling.
16175 (arm_file_start): Ditto.
16176
16177 2010-06-03 Alan Modra <amodra@gmail.com>
16178
16179 PR target/44169
16180 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
16181 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
16182 rtx to gen_load_toc_v4_PIC_1b. Tidy.
16183 (rs6000_emit_load_toc_table): Likewise.
16184
16185 2010-06-02 Jan Hubicka <jh@suse.cz>
16186
16187 * passes.c (init_optimization_passes): Put ipa reference
16188 after ipa pure-const.
16189
16190 2010-06-02 Jan Hubicka <jh@suse.cz>
16191
16192 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
16193 calls_read_all and calls_write_all.
16194 (get_reference_optimization_summary): Fix formatting.
16195 (is_proper_for_analysis): Check that decl is not readonly.
16196 (propagate_bits): Check CONST/PURE/noreturn flags.
16197 (ipa_init): Move all_module_statics to optimization_summary_obstack.
16198 (analyze_function): Ignore indirect edges.
16199 (copy_global_bitmap): For all module statics, do nothing.
16200 (generate_summary): Do not print calls_read_all/calls_write_all.
16201 (read_write_all_from_decl): Take node as argument; check
16202 cgraph_node_cannot_return.
16203 (propagate): Reorganize read_all/write_all computation;
16204 check indirect edges; check ecf flags; use all_module_statics
16205 in the results; do not free all_module_statics.
16206 (stream_out_bitmap): Handle all_module_statics.
16207 (ipa_reference_write_optimization_summary): Likewise; use
16208 varpool/cgraph encoders to get boundaries.
16209 (ipa_reference_read_optimization_summary): Read in all_module_statics;
16210 use it when possible.
16211
16212 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16213
16214 PR target/44218
16215 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
16216 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
16217
16218 * doc/extend.texi (powerpc builtins): Document vec_recip,
16219 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
16220
16221 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
16222 (rs6000_emit_swrsqrt): Ditto.
16223 (rs6000_emit_swdivsf): Delete.
16224 (rs6000_emit_swdivdf): Ditto.
16225 (rs6000_emit_swrsqrtsf): Ditto.
16226
16227 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
16228 describe the reciprocal estimate support for each type.
16229 (recip_options): Map -mrecip=<opt> into option bits.
16230 (gen_2arg_fn_t): New typedef for binary rtx gen function.
16231 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
16232 reciprocal estimate instructions.
16233 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
16234 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
16235 Set up rs6000_recip_bits based on the -mrecip* options. Print the
16236 cost information if -mdebug=cost or -mdebug=reg.
16237 (rs6000_override_options): Set -mrecip-precision for power6, and
16238 power7 machines. If -mvsx or -mdfp, enable various options that
16239 came in previous instruction set ISAs, unless the option was
16240 explicitly disabled by the command line option. Parse
16241 -mrecip=<opt> options.
16242 (rs6000_builtin_vectorized_function): Add support for vectorizing
16243 the reciprocal estimate builtins and expansions.
16244 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
16245 (bdesc_2arg): Add reciprocal estimate builtins.
16246 (bdesc_1arg): Add reciprocal square root estimate builtins.
16247 (rs6000_expand_builtin): Rewrite to use a switch statement,
16248 instead of multiple if/then/elses. Add reciprocal estimate builtins.
16249 (rs6000_init_builtins): Create declarations for reciprocal
16250 estimate builtins.
16251 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
16252 sized, prefer traditional floating point registers, if integer
16253 vector types, prefer altivec registers. Don't actually look at
16254 the memory address any more.
16255 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
16256 builtins.
16257 (rs6000_load_constant_and_splat): New helper function to load up
16258 the constant for reciprocal estimate instructions.
16259 (rs6000_emit_madd): New helper function for generating
16260 multiply/add type instructions, based on the current switches.
16261 (rs6000_emit_msub): Ditto.
16262 (rs6000_emit_mnsub): Ditto.
16263 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
16264 replace a divide with a reciprocal estimate and fixup, adding
16265 support for machines with high precision and vectors.
16266 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
16267 low precision machines.
16268 (rs6000_emit_swdiv): New common function to be called to replace a
16269 division with reciprocal estimate and fixup.
16270 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
16271 for double and vector types. Add support for high precision machines.
16272
16273 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
16274 the reciprocal estimate instructions can be generated.
16275 (TARGET_FRE): Ditto.
16276 (TARGET_FRSQRTES): Ditto.
16277 (TARGET_FRSQRTE): Ditto.
16278 (RS6000_RECIP_*): New macros for reciprocal estimate support.
16279
16280 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
16281 square root estimate on vectors.
16282 (re<mode>2): New insn for reciprocal division estimate on vectors.
16283
16284 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
16285 New builtin.
16286 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
16287 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
16288 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
16289 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
16290 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
16291 (RS6000_BUILTIN_RSQRT): Ditto.
16292 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
16293 floating point builtin.
16294
16295 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
16296 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
16297 __RECIP_PRECISION__ based on the command line switches.
16298 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
16299
16300 * config/rs6000/rs6000.opt (-mrecip): Document add support for
16301 replacing division instructions with reciprocal estimate and fixup.
16302 (-mrecip=<opt>): New option.
16303 (-mrecip-precision): Ditto.
16304
16305 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
16306 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
16307 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
16308 precision scalar.
16309
16310 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
16311 (UNSPEC_VREFP): Ditto.
16312 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
16313 conterparts with regard to support of -mno-fused-madd and -ffast-math.
16314 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
16315 reciprocal estimate instructions to be generated.
16316 (altivec_vrefp): Ditto.
16317
16318 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
16319 estimate support.
16320 (rreg): New mode attribute for reciprocal estimate support.
16321 (recip<mode>3): New insn for division using reciprocal estimate
16322 and fixup builtins.
16323 (divide define_split): New define_split to convert floating point
16324 division to use reciprocal estimate if the user used the
16325 appropriate options and the split is run when we can add new
16326 pseudo registers for the fixup.
16327 (rsqrt<mode>2): New insn for reciprocal square root support.
16328 (recipsf3): Move into recip<mode>3.
16329 (recipdf3): Ditto.
16330 (fres): Use TARGET_FRES.
16331 (rsqrtsf2): Move into rsqrt<mode>2.
16332 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
16333 (copysignsf3): Add support for VSX.
16334 (fred): Use TARGET_FRE.
16335 (fred_fpr): Ditto.
16336 (rsqrtdf_internal1): New function for frsqrte instruciton.
16337
16338 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
16339 (vec_rsqrt): Ditto.
16340
16341 2010-06-03 Richard Guenther <rguenther@suse.de>
16342
16343 PR middle-end/44291
16344 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
16345 (set_user_assembler_libfunc): Likewise.
16346
16347 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
16348
16349 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
16350 defaults.h.
16351 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
16352 to defaults.h
16353 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
16354 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
16355 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
16356 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
16357 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
16358 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
16359 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
16360 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
16361 * defaults.h: Updated for above mentioned changes.
16362
16363 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
16364
16365 * c-common.c: Remove header include of tm_p.h.
16366 * Makefile.in (c-common.o): Remove TM_P_H dependency.
16367
16368 2010-06-02 Jakub Jelinek <jakub@redhat.com>
16369
16370 * tree.h (struct tree_decl_map): New type.
16371 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
16372 (tree_decl_map_hash): New prototype.
16373 (debug_expr_for_decl, value_expr_for_decl): Change into
16374 tree_decl_map hashtab from tree_map.
16375 (init_ttree): Adjust initialization.
16376 (tree_decl_map_hash): New function.
16377 (decl_debug_expr_lookup, decl_debug_expr_insert,
16378 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
16379
16380 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16381
16382 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
16383 linker emulations.
16384 * configure: Regenerate.
16385 * config.in: Regenerate.
16386
16387 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
16388 (X86_64_EMULATION): Define.
16389 (TARGET_LD_EMULATION): Use them.
16390
16391 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
16392 (SPARC64_EMULATION): Define.
16393 (LINK_ARCH_SPEC): Use them.
16394
16395 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
16396
16397 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
16398 smallest_mode_for_size for computing the precision types of new
16399 graphite IVs. Do not call lang_hooks.types.type_for_size.
16400
16401 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
16402
16403 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
16404 information.
16405 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
16406
16407 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
16408
16409 PR middle-end/44363
16410 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
16411 return false instead.
16412
16413 2010-06-02 Jan Hubicka <jh@suse.cz>
16414
16415 PR middle-end/44295
16416 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
16417 create new cgraph node to check callee.
16418
16419 2010-06-02 Richard Guenther <rguenther@suse.de>
16420
16421 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
16422
16423 2010-06-02 Richard Guenther <rguenther@suse.de>
16424
16425 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
16426 (lto_wrapper_cleanup): ... this. Do not exit.
16427 (fatal): Adjust. Exit here.
16428 (fatal_perror): Likewise.
16429 (fatal_signal): New function.
16430 (main): Set up signal handlers to cleanup temporary files.
16431 * Makefile.in (lto-wrapper.o): Adjust dependencies.
16432
16433 2010-06-02 Richard Guenther <rguenther@suse.de>
16434
16435 PR tree-optimization/44377
16436 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
16437
16438 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16439
16440 * config/s390/2097.md (z10_fhex): Remove insn reservation.
16441 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
16442 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
16443 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
16444 instruction.
16445 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
16446
16447 2010-06-02 Jan Hubicka <jh@suse.cz>
16448
16449 * bitmap.c (bitmap_descriptor): Add search_iter.
16450 (bitmap_find_bit): Increment it.
16451 (print_statistics): Print it.
16452
16453 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
16454
16455 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
16456 instead of gimple_build_call_vec. Delete unnecessary local variable.
16457
16458 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
16459
16460 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
16461 change from yesterday.
16462
16463 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
16464
16465 * c-ada-spec.c: Clean up redundant includes.
16466
16467 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
16468
16469 * gimplify.c: Do not include except.h and optabs.h.
16470 (gimplify_body): Do not initialize RTL profiling.
16471 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
16472 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
16473 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
16474 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
16475 langhooks.h.
16476
16477 * tree-pretty-print.h: Include pretty-print.h.
16478 * gimple-pretty-print.h: Include pretty-print.h.
16479
16480 * tree-pretty-print.c: Do not include diagnostic.h.
16481 * tree-vrp.c: Likewise.
16482 * tree-tailcall.c: Likewise
16483 * tree-scalar-evolution.c: Likewise
16484 * tree-ssa-dse.c: Likewise
16485 * tree-chrec.c: Likewise
16486 * tree-ssa-sccvn.c: Likewise
16487 * tree-ssa-copyrename.c: Likewise
16488 * tree-nomudflap.c: Likewise
16489 * tree-call-cdce.c: Likewise
16490 * tree-stdarg.c: Likewise
16491 * tree-ssa-math-opts.c: Likewise
16492 * tree-nrv.c: Likewise
16493 * tree-ssa-sink.c: Likewise
16494 * tree-browser.c: Likewise
16495 * tree-ssa-loop-ivcanon.c: Likewise
16496 * tree-ssa-loop.c: Likewise
16497 * tree-parloops.c: Likewise
16498 * tree-ssa-address.c: Likewise
16499 * tree-ssa-ifcombine.c: Likewise
16500 * tree-if-conv.c: Likewise
16501 * tree-data-ref.c: Likewise
16502 * tree-affine.c: Likewise
16503 * tree-ssa-phiopt.c: Likewise
16504 * tree-ssa-coalesce.c: Likewise
16505 * tree-ssa-pre.c: Likewise
16506 * tree-ssa-live.c: Likewise
16507 * tree-predcom.c: Likewise
16508 * tree-ssa-forwprop.c: Likewise
16509 * tree-ssa-dce.c: Likewise
16510 * tree-ssa-ter.c: Likewise
16511 * tree-ssa-loop-prefetch.c: Likewise
16512 * tree-optimize.c: Likewise
16513 * tree-ssa-phiprop.c: Likewise
16514 * tree-object-size.c: Likewise
16515 * tree-outof-ssa.c: Likewise
16516 * tree-ssa-structalias.c: Likewise
16517 * tree-switch-conversion.c: Likewise
16518 * tree-ssa-reassoc.c: Likewise
16519 * tree-ssa-operands.c: Likewise
16520 * tree-vectorizer.c: Likewise
16521 * tree-vect-data-refs.c: Likewise
16522 * tree-vect-generic.c: Likewise
16523 * tree-vect-stmts.c: Likewise
16524 * tree-vect-patterns.c: Likewise
16525 * tree-vect-slp.c: Likewise
16526 * tree-vect-loop.c: Likewise
16527 * tree-ssa-loop-ivopts.c: Likewise
16528 * tree-ssa-loop-im.c: Likewise
16529 * tree-ssa-loop-niter.c: Likewise
16530 * tree-ssa-loop-unswitch.c: Likewise
16531 * tree-ssa-loop-manip.c: Likewise
16532 * tree-ssa-loop-ch.c: Likewise
16533 * tree-dump.c: Likewise
16534 * tree-complex.c: Likewise
16535
16536 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
16537 * tree-ssa-uninit.c: Likewise
16538 * tree-ssa-threadupdate.c: Likewise
16539 * tree-ssa-uncprop.c: Likewise
16540 * tree-ssa-ccp.c: Likewise
16541 * tree-ssa-dom.c: Likewise
16542 * tree-ssa-propagate.c: Likewise
16543 * tree-ssa-alias.c: Likewise
16544 * tree-dfa.c: Likewise
16545 * tree-cfgcleanup.c: Likewise
16546 * tree-sra.c: Likewise
16547 * tree-ssa-copy.c: Likewise
16548 * tree-ssa.c: Likewise
16549 * tree-profile.c: Likewise
16550 * tree-cfg.c: Likewise
16551 * tree-ssa-threadedge.c: Likewise
16552 * tree-vect-loop-manip.c: Likewise
16553
16554 * tree-inline.c: Do not include diagnostic.h and expr.h.
16555 Include rtl.h.
16556 (copy_decl_for_dup_finish): Do not use NULL_RTX.
16557
16558 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
16559 * tree-loop-distribution.c: Likewise.
16560
16561 2010-06-01 Jan Hubicka <jh@suse.cz>
16562
16563 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
16564
16565 2010-06-01 Jan Hubicka <jh@suse.cz>
16566
16567 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
16568 remove return value.
16569 (split_bbs_on_noreturn_calls) .... here.
16570 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
16571 * tree-flow.h (fixup_noreturn_call): New.
16572
16573 2010-06-01 Jan Hubicka <jh@suse.cz>
16574
16575 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
16576
16577 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
16578
16579 * tree.h (build_nt_call_list): Delete.
16580 * tree.c (build_nt_call_list): Delete.
16581
16582 2010-06-01 Jan Hubicka <jh@suse.cz>
16583
16584 * fwprop.c: Make emit-rtl.h include last.
16585 * rtlanal.c: Include emit-rtl.h.
16586 * genautomata.c: Output emit-rtl include into insn-automata.c
16587 * df-scan.c: Include emit-rtl.h.
16588 * haifa-sched.c: Indlude emit-rtl.h.
16589 * mode-switching.c: Indlude emit-rtl.h.
16590 * graph.c: Indlude emit-rtl.h.
16591 * sel-sched.c: Include emit-rtl.h.
16592 * sel-sched-ir.c: Include emit-rtl.h.
16593 * ira-build.c: Include emit-rtl.h.
16594 * emit-rtl.c (first_insn, last_insn): Remove defines.
16595 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
16596 Move to emit-rtl.h.
16597 (set_new_first_and_last_insn, get_last_insn_anywhere,
16598 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
16599 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
16600 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
16601 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
16602 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
16603 Use accessor functions.
16604 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
16605 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
16606 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
16607 mem_expr_equal_p): Move here from rtl.h.
16608 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
16609 Move here from emit-rtl.c; make inline.
16610 * cfglayout.h: Include emit-rtl.h.
16611 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
16612 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
16613 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
16614 mem_expr_equal_p, get_insns, set_first-insn,
16615 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
16616 * reg-stack.c: Include emit-rtl.h.
16617 * dce.c: Likewise.
16618
16619 2010-06-01 Jan Hubicka <jh@suse.cz>
16620
16621 * cgraph.h (tree_function_versioning): Update prototype.
16622 (cgraph_function_versioning): Update prototype.
16623 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
16624 bitmap.
16625 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
16626 (cgraph_materialize_clone, save_inline_function_body): Update use of
16627 tree_function_versioning.
16628 * tree-inline.c (copy_bb): Look for previous copied block to link
16629 after; fix debug output.
16630 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
16631 (copy_body): Likewise.
16632 (expand_call_inline): Update use of copy_body.
16633 (tree_function_versioning): Update use of copy body; accept
16634 blocks_to_copy and new_entry.
16635
16636 2010-06-01 Jan Hubicka <jh@suse.cz>
16637
16638 * gegenrtl.c: Remove unnecesary prototypes.
16639 (gendecl): Remove.
16640 (gendef): Produce static inline.
16641 (gencode): Remove.
16642 (main): Do not decode parameters; generate header only.
16643 * Makefile.in (genrtl.c): Remove.
16644
16645 2010-06-01 Jan Hubicka <jh@suse.cz>
16646
16647 * tree-switch-conversion.c (build_one_array): Make it readonly.
16648
16649 2010-06-01 Richard Guenther <rguenther@suse.de>
16650
16651 * optabs.c (init_optabs): Guard all accesses to reinit.
16652 * ipa-pure-const.c (propagate): Fix another typo.
16653 * opts.c (common_handle_option): Split assignment to bool.
16654 * c-opts.c (c_common_handle_option): Likewise.
16655
16656 2010-06-01 Arnaud Charlet <charlet@adacore.com>
16657 Matthew Gingell <gingell@adacore.com>
16658
16659 * doc/invoke.texi: Mention -fdump-ada-spec.
16660 * tree-dump.c (dump_files): Add ada-spec.
16661 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
16662 * tree-pass.h (tree_dump_index): Add TDI_ada.
16663 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
16664 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
16665 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
16666 * c-decl.c: Include c-ada-spec.h.
16667 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
16668 functions.
16669 (c_write_global_declarations): Add handling of -fdump-ada-spec.
16670 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
16671 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
16672 * c-ada-spec.h, c-ada-spec.c: New files.
16673
16674 2010-06-01 Richard Guenther <rguenther@suse.de>
16675
16676 PR lto/43853
16677 * ipa-pure-const.c (get_function_state): Hand back varying state
16678 if we do not have one.
16679 (has_function_state): New function.
16680 (duplicate_node_data): Adjust.
16681 (remove_node_data): Likewise.
16682 (pure_const_write_summary): Likewise.
16683 (propagate): Likewise. Fix typo.
16684
16685 2010-06-01 Jan Hubicka <jh@suse.cz>
16686
16687 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
16688 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
16689 (execute_all_ipa_transforms): Do not play with the states.
16690
16691 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
16692
16693 * config/arm/t-linux-androideabi: New.
16694 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
16695
16696 2010-06-01 Jan Hubicka <jh@suse.cz>
16697
16698 * tree-inline.c (estimate_num_insns): For stdarg functions look
16699 into call statement to count cost of argument passing.
16700
16701 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
16702
16703 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
16704 argument for fprintf.
16705 (ix86_output_addr_diff_elt): Likewise.
16706 (x86_function_profiler): Likewise.
16707 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
16708 (LPREFIX): Likewise.
16709 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
16710
16711 2010-05-31 Jakub Jelinek <jakub@redhat.com>
16712
16713 PR target/44338
16714 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
16715 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
16716 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
16717 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
16718 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
16719 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
16720 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
16721 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
16722 TARGET_FUSED_MADD.
16723
16724 2010-05-31 Jan Hubicka <jh@suse.cz>
16725
16726 * tree.h (tree_range_check_failed): Declare noreturn.
16727
16728 2010-05-31 Jan Hubicka <jh@suse.cz>
16729
16730 * gimple.c (gimple_call_builtin_p): New function.
16731 * gimple.h (gimple_call_builtin_p): Declare.
16732 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
16733 to exit.
16734 (execute_warn_function_return): BUILT_IN_RETURN is return.
16735 (split_critical_edges): Return edges are not critical.
16736 (is_ctrl_altering_stmt): Builtin_in_return is altering.
16737 (gimple_verify_flow_info): Handle built_in_return.
16738 (execute_warn_function_return): Handle built_in_return.
16739 * ipa-pure-const.c (check_call): Ignore builtin_return.
16740
16741 2010-05-31 Jakub Jelinek <jakub@redhat.com>
16742
16743 PR middle-end/44337
16744 * expr.c (expand_assignment): Don't store anything for out-of-bounds
16745 array accesses with non-MEM.
16746
16747 PR tree-optimization/44182
16748 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
16749 newly needs to end a bb is followed by debug stmts, instead return
16750 true from the function at the end.
16751 (maybe_move_debug_stmts_to_successors): New function.
16752 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
16753
16754 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
16755
16756 PR target/44161
16757 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
16758
16759 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
16760
16761 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
16762 for nested functions in non-optimized compilation.
16763
16764 2010-05-31 Richard Guenther <rguenther@suse.de>
16765
16766 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
16767
16768 2010-05-30 Jan Hubicka <jh@suse.cz>
16769
16770 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
16771
16772 2010-05-30 Richard Guenther <rguenther@suse.de>
16773
16774 PR lto/42975
16775 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
16776 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
16777 no longer needed.
16778
16779 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
16780
16781 * config/darwin.c (output_objc_section_asm_op): Add comment.
16782 (name_needs_quotes): Add '_' to list of valid comment chars.
16783 (machopic_output_function_base_name): Remove unneeded quotes.
16784 (darwin_encode_section_info): Adjust asm whitespace.
16785 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
16786 (ASM_OUTPUT_LOCAL): Ditto.
16787 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
16788 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
16789 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
16790
16791 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
16792
16793 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
16794 RS6000_OUTPUT_BASENAME unconditionally.
16795 (rs6000_output_function_epilogue): Likewise.
16796
16797 2010-05-30 Jan Hubicka <jh@suse.cz>
16798
16799 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
16800 nodes.
16801
16802 2010-05-30 Richard Guenther <rguenther@suse.de>
16803
16804 * tree-cfg.c (verify_gimple_assign_single): Implement
16805 verification for COND_EXPR rhs.
16806
16807 2010-05-30 Jan Hubicka <jh@suse.cz>
16808
16809 * cgraph.h (cgraph_dump_file): Declare.
16810 * cgraphunit.c (cgraph_dump_file): Export.
16811 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
16812
16813 2010-05-30 Jan Hubicka <jh@suse.cz>
16814
16815 * dwarf2out.c (reference_to_unused,
16816 premark_types_used_by_global_vars_helper): Avoid creation of new
16817 varpool nodes.
16818
16819 2010-05-30 Jan Hubicka <jh@suse.cz>
16820
16821 * cgraph.h (cgraph_node_cannot_return,
16822 cgraph_edge_cannot_lead_to_return): New functions.
16823 * cgraph.c (cgraph_node_cannot_return,
16824 cgraph_edge_cannot_lead_to_return): Use them.
16825 * ipa-pure-const.c (pure_const_names): New static var.
16826 (check_call): Handle calls not leading to return.
16827 (pure_const_read_summary): Dump info read.
16828 (propagate): Dump info about propagation process; ignore side effects
16829 of functions not leading to exit; fix handling of pure functions.
16830
16831 2010-05-30 Jan Hubicka <jh@suse.cz>
16832
16833 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
16834 for tail call epilogues.
16835
16836 2010-05-30 Jan Hubicka <jh@suse.cz>
16837
16838 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
16839 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
16840 dump files.
16841
16842 2010-05-29 Jan Hubicka <jh@suse.cz>
16843
16844 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
16845 node; remove references in node we no longer keep in cgrpah but need
16846 body of.
16847
16848 2010-05-29 Jan Hubicka <jh@suse.cz>
16849
16850 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
16851
16852 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16853
16854 PR target/44165
16855 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
16856
16857 2010-05-29 Jan Hubicka <jh@suse.cz>
16858
16859 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
16860 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
16861 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
16862 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
16863 debug_names_replaced_by, debug_update_ssa): Likewise.
16864 * sbitmap.c (debug_sbitmap): Likewise.
16865 * genrecog.c (debug_decision, debug_decision_list): Likewise.
16866 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
16867 debug_tree_chain): Likewise.
16868 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
16869 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
16870 * optabs.c (debug_optab_libfuncs): Likewise.
16871 (verify_loop_closed_ssa): Likewise.
16872 * value-prof.c (verify_histograms): Likewise.
16873 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
16874 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
16875 * cfghooks.c (verify_flow_info): Likewise.
16876 * fold-const.c (debug_fold_checksum): Likewise.
16877 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
16878 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
16879 Likewise.
16880 * omega.c (debug_omega_problem): Likewise.
16881 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
16882 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
16883 * dominance.c (verify_dominators, debug_dominance_info,
16884 debug_dominance_tree): Likewise.
16885 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
16886 * df_regno_debug, df_ref_debug,
16887 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
16888 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
16889 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
16890 * sel-sched.c (debug_state): Likewise.
16891 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
16892 Likewise.
16893 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
16894 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
16895 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
16896 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
16897 Likewise.
16898 * c-pretty-print.c (debug_c_tree): Likewise.
16899 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
16900 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
16901 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
16902 * ebitmap.c (debug_ebitmap): Likewise.
16903 * function.c (debug_find_var_in_block_tree): Likewise.
16904 * print-rtl.c (debug_rtx): Likewise.
16905 (debug_rtx_count): Likewise.
16906 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
16907 * stor-layout.c (debug_rli): Likewise.
16908 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
16909 * tree-data-ref.c (debug_data_references,
16910 debug_data_dependence_relations, debug_data_reference,
16911 debug_data_dependence_relation, debug_rdg_vertex,
16912 debug_rdg_component, debug_rdg): Likewise.
16913 * tree-affine.c (debug_aff): Likewise.
16914 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
16915 Likewise.
16916 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
16917 * emit-rtl.c (verify_rtl_sharing): Likewise.
16918 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
16919 debug_value_expressions): Likewise.
16920 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
16921 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
16922 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
16923 * cfglayout.c (verify_insn_chain): Likewise.
16924 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
16925 debug_clast_stmt, debug_generated_program): Likewise.
16926 * ggc-page.c (debug_print_page_list): Likewise.
16927 * tree-ssa-ter.c (debug_ter): Likewise.
16928 * graphite-dependences.c (debug_pddr): Likewise.
16929 * sched-deps.c (debug_ds): Likewise.
16930 * tree-ssa.c (verify_ssa): Likewise.
16931 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
16932 debug_scattering_functions, debug_iteration_domains, debug_pdr,
16933 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
16934 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
16935 * tree-inline.c (debug_find_tree): Likewise.
16936 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
16937 debug_ppl_powerset_matrix): Likewise.
16938 * var-tracking.c (debug_dv): Likewise.
16939 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
16940 * cfgloop.c (verify_loop_structure): Likewise.
16941 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
16942 * c-common.c (verify_sequence_points): Likewise.
16943 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
16944 debug_candidates, debug_rgn_dependencies): Likewise.
16945 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
16946 * debug_constraint_graph, debug_solution_for_var,
16947 debug_sa_points_to_info): Likewise.
16948 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
16949 Likewie.
16950 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
16951 debug_loops, debug_loop, debug_loop_num): Likewise.
16952 * passes.c (debug_pass): Likewise.
16953 (dump_properties): Likewise; add cfglayout property.
16954 (debug_properties): Likewise.
16955 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
16956 * varpool.c (debug_varpool): Likewise.
16957 * regcprop.c (debug_value_data): Likewise.
16958 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
16959 debug_immediate_uses_for): Likewise.
16960
16961 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
16962
16963 PR bootstrap/44315
16964 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
16965 Filter out insn-flags.h.
16966
16967 2010-05-29 Jan Hubicka <jh@suse.cz>
16968
16969 * cgraph.h (struct varpool_node_set_def,
16970 struct cgraph_node_set_def): Remove unused AUX pointer.
16971 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
16972 VEC_empty macro.
16973
16974 2010-05-29 Jan Hubicka <jh@suse.cz>
16975
16976 PR middle-end/44324
16977 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
16978
16979 2010-05-29 Richard Guenther <rguenther@suse.de>
16980
16981 * lto-streamer.c (cached_bp): New global variable.
16982 (bitpack_create): Return the cached bitpack, if available.
16983 (bitpack_delete): Clear and cache the bitpack, if appropriate.
16984 (bp_pack_value): Remove redundant asserts.
16985
16986 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
16987
16988 PR middle-end/44306
16989 * tree-if-conv.c (is_true_predicate): New.
16990 (is_predicated): Use is_true_predicate.
16991 (add_to_predicate_list): Same. Do not use unshare_expr.
16992 (add_to_dst_predicate_list): Same.
16993
16994 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
16995
16996 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
16997 field on edges.
16998 (predicate_bbs): Same.
16999 (clean_predicate_lists): Same.
17000 (find_phi_replacement_condition): Do not AND the predicate from
17001 edge->aux.
17002
17003 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
17004
17005 PR bootstrap/44315
17006 * Makefile.in (build/gencondmd.o): Add a missing `\'.
17007
17008 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17009
17010 PR target/44261
17011 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
17012 (negdf2): Adjust expander pattern and use negdf2_slow.
17013 (negsf2): Likewise.
17014
17015 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
17016
17017 * basic-block.h (struct control_flow_graph): Move last_label_uid field
17018 up.
17019 * df.h (struct df_base_ref): Move regno field up.
17020 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
17021 * expr.h (struct separate_ops): Move location field up.
17022 * optabs.h (struct optab_d): Move libcall_basename field down.
17023 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
17024 * config/i386/i386.h (struct machine_function): Convert call_abi field
17025 into a bitfield. Move cfa field to the end of the structure.
17026
17027 2010-05-29 Jan Hubicka <jh@suse.cz>
17028
17029 * varpool.c (varpool_get_node): Fix lookup.
17030
17031 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
17032
17033 * config/spu/spu-protos.h: Do not include rtl.h. Protect
17034 RTL specific prototypes with #ifdef RTX_CODE.
17035 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
17036 * config/spu/t-spu-elf: Fix dependencies.
17037
17038 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
17039
17040 2010-05-29 Mike Stump <mikestump@comcast.net>
17041
17042 PR bootstrap/44315
17043 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
17044 TM_H when building to avoid dependency loops.
17045
17046 2010-05-29 Jan Hubicka <jh@suse.cz>
17047
17048 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
17049 refs and body; not the whole node for masters of materialized clones.
17050
17051 2010-05-29 Mike Stump <mikestump@comcast.net>
17052
17053 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
17054
17055 2010-05-29 Jan Hubicka <jh@suse.cz>
17056
17057 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
17058 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
17059 use of clone_function_name.
17060 * cgraph.h (cgraph_create_virtual_clone,
17061 cgraph_function_versioning): update prototypes.
17062 (clone_function_name): Declare.
17063 * ipa-cp.c (ipcp_insert_stage): Update call of
17064 cgraph_create_virtual_clone.
17065 * omp-low.c (create_omp_child_function_name): Use
17066 cgraph_create_virtual_clone.
17067 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
17068 (cgraph_function_versioning): Take SUFFIX argument; produce new name
17069 and make decl local.
17070
17071 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
17072
17073 * vec.h: Include statistics.h
17074 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
17075 with VEC_H.
17076
17077 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
17078
17079 * c-lex.c: Do not include c-tree.h.
17080 * c-pretty-print.c: Likewise.
17081 * c-opts.c: Likewise.
17082 * c-gimplify.c: Likewise.
17083 * c-common.c: Likewise.
17084 * c-dump.c: Likewise. Include c-common.h.
17085
17086 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
17087
17088 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
17089 before including diagnostic-core.h.
17090 (c_cpp_error): New prototype moved from c-tree.h.
17091 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
17092 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
17093 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
17094 (c_cpp_error): Prototype moved to c-common.h.
17095 * Makefile.in: Update dependency for C_COMMON_H.
17096
17097 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
17098
17099 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
17100 * c-common.c (c_register_addr_space): Remove here.
17101 * c-decl.c (c_register_addr_space): Re-add here.
17102
17103 2010-05-28 Mike Stump <mikestump@comcast.net>
17104
17105 * config/darwin-c.c: Remove c-tree.h include.
17106
17107 2010-05-28 Joseph Myers <joseph@codesourcery.com>
17108
17109 * gcc.c: Include diagnostic.h.
17110 (error_count): Remove. All users changed to use errorcount.
17111 (programname): Remove. All users changed to use progname.
17112 (fancy_abort, internal_error, fatal_error, error, warning, inform,
17113 fnotice): Remove.
17114 (execute): Don't include "Internal error" and bug reporting
17115 information in argument of internal_error call.
17116 (process_command): Don't increment error_count after calling
17117 perror_with_name.
17118 (input_filename): Rename to gcc_input_filename. All users
17119 changed.
17120 (main): Call diagnostic_initialize. Register delete_temp_files
17121 with atexit. Use seen_error to test for errors.
17122 * gcc.h: Include diagnostic-core.h.
17123 (fatal_error, error, warning): Remove.
17124 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
17125 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
17126 (gcc.o): Update dependencies.
17127
17128 2010-05-28 Jeff Law <law@redhat.com>
17129
17130 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
17131 functions.
17132 * ira.h (ira_bad_reload_regno): Declare
17133 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
17134
17135 * ira-color.c (update_curr_costs): Free updated hard reg costs.
17136 (ira_reassign_conflict_allocnos): Remove bogus asserts.
17137 (allocno_reload_assign): Likewise.
17138
17139 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
17140
17141 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
17142 build1_stat.
17143
17144 2010-05-28 Richard Guenther <rguenther@suse.de>
17145
17146 PR lto/44312
17147 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
17148 Stream fixed-point constants mode.
17149 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
17150 and TYPE_PRECISION.
17151 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
17152 Stream fixed-point constants mode.
17153 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
17154 and TYPE_PRECISION.
17155
17156 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
17157
17158 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
17159 only place it was called from.
17160 (number_of_latch_executions): Do not return chrec_dont_know when the
17161 may_be_zero is a runtime condition: instead, return a COND_EXPR
17162 including the may_be_zero condition.
17163 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
17164 of nb_iterations.
17165 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
17166 COND_EXPRs.
17167
17168 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
17169
17170 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
17171 generate COND_EXPRs for degenerate_phi_result.
17172
17173 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
17174
17175 PR middle-end/44293
17176 * tree-if-conv.c (if_convertible_loop_p): Check the
17177 if-convertibility of phi nodes in non predicated BBs.
17178
17179 2010-05-28 Joseph Myers <joseph@codesourcery.com>
17180
17181 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
17182
17183 2010-05-28 Joseph Myers <joseph@codesourcery.com>
17184
17185 PR driver/15303
17186 * gcc.c (inform, warning, inform): New functions.
17187 (fatal_ice): Rename to internal_error; change cmsgid parameter to
17188 gmsgid. All callers changed.
17189 (notice): Rename to fnotice; add parameter fp. All callers changed.
17190 (fatal_error): Rename to fatal_signal. All users changed.
17191 (fatal): Rename to fatal_error; change cmsgid parameter to
17192 gmsgid. All callers changed.
17193 (process_command): Use warning instead of error for warnings.
17194 (end_going_arg): Don't use _() around argument of error.
17195 (do_spec_1): Use inform for message from %n specs. Use warning
17196 instead of error for warnings.
17197 (main): Use inform for comparison messages. Use warning for
17198 message about unused linker input.
17199 (error): Increment error_count. Print "error: ".
17200 * gcc.h (fatal): Change to fatal_error.
17201 (warning): Declare.
17202 * config/darwin-driver.c (darwin_default_min_version): Use warning
17203 instead of fprintf for warnings.
17204 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
17205
17206 2010-05-28 Julian Brown <julian@codesourcery.com>
17207
17208 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
17209 (*thumb2_addsi3_compare0_scratch): New.
17210 * config/arm/constraints.md (Pv): New.
17211 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
17212 for ARM mode only.
17213 (*addsi3_compare0_scratch): Likewise.
17214
17215 2010-05-28 Jan Hubicka <jh@suse.cz>
17216
17217 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
17218 check.
17219 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
17220 only on local statics.
17221
17222 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
17223
17224 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
17225
17226 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
17227
17228 PR bootstrap/44314
17229 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
17230 (OPTION_GLIBC): Define.
17231
17232 2010-05-28 Jakub Jelinek <jakub@redhat.com>
17233
17234 PR debug/41048
17235 * dwarf2out.c (double_int_type_size_in_bits): New function.
17236 (round_up_to_align): Change first argument and return value to
17237 double_int.
17238 (field_byte_offset): Work internally on double_ints.
17239
17240 PR target/43636
17241 * builtins.c (expand_movstr): Use a temporary pseudo instead
17242 of target even when target is not NULL and not const0_rtx, but
17243 fails movstr predicate.
17244 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
17245
17246 2010-05-28 Joseph Myers <joseph@codesourcery.com>
17247
17248 * final.c (rest_of_clean_state): Use %m in errors instead of
17249 strerror (errno).
17250 * gengtype.c (read_input_list, close_output_files): Use xstrerror
17251 instead of strerror.
17252 * toplev.c (process_options): Use %m in errors instead of strerror
17253 (errno).
17254 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
17255 (errno).
17256
17257 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
17258
17259 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
17260 (ix86_canonical_va_list_type): Make static. Add declaration.
17261 (ix86_enum_va_list): Make static. Reindent.
17262 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
17263 (ix86_canonical_va_list_type): Ditto.
17264 (ix86_enum_va_list): Ditto.
17265
17266 2010-05-28 Richard Guenther <rguenther@suse.de>
17267
17268 * lto-wrapper.c (run_gcc): With -save-temps generate a
17269 user-visible ltrans filename. Fixup ltrans unit numbering.
17270
17271 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
17272
17273 * c-common.c (c_common_nodes_and_builtins): Replace use
17274 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
17275 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
17276 to ix86_enum_va_list.
17277 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
17278 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
17279 (TARGET_ENUM_VA_LIST_P): Add hook description.
17280 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
17281 * target.h (gcc_target): Add enum_va_list hook.
17282
17283 PR bootstrap/44299
17284 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
17285 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
17286 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
17287
17288 2010-05-28 Alan Modra <amodra@gmail.com>
17289
17290 PR target/44266
17291 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
17292 emit_library_call machinery to set up __tls_get_addr calls.
17293
17294 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17295
17296 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
17297
17298 2010-05-28 Dodji Seketeli <dodji@redhat.com>
17299
17300 Revert fix for PR c++/44188
17301 * c-common.c (is_typedef_decl): Revert the moving of this
17302 definition ...
17303 * tree.c (is_typedef_decl): ... here.
17304 (typdef_variant_p): Revert the moving of this definition
17305 here from cp/tree.c.
17306 * c-common.h (is_typedef_decl): Revert the moving of this
17307 declaration ...
17308 * tree.h (is_typedef_decl): ... here.
17309 (typedef_variant_p): Revert the moving of this declaration here
17310 from cp/cp-tree.h
17311 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
17312 (gen_tagged_type_die): Revert the splitting out of ...
17313 (gen_type_die_with_usage): ... this function. Revert the anonymous
17314 tagged type handling.
17315 (gen_typedef_die): Revert emitting DW_TAG_typedef for
17316 typedefs naming anonymous tagged types.
17317
17318 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
17319
17320 * config/rs6000/rs6000-modes.def (PSImode): Delete.
17321
17322 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
17323
17324 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
17325 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
17326 throughout.
17327 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
17328 "xer" to "ca".
17329 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
17330 XER_REGS to CA_REGS throughout.
17331 * config/rs6000/rs6000.h: Same.
17332 (ADDITIONAL_REGISTER_NAMES): Add "xer".
17333 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
17334 that mode_iterator "P" is the size for arithmetic carries as well.
17335 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
17336
17337 2010-05-28 Jakub Jelinek <jakub@redhat.com>
17338
17339 PR bootstrap/44255
17340 * combine.c (struct rtx_subst_pair): Define unconditionally.
17341 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
17342 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
17343 Call make_compound_operation on pair->to.
17344 (propagate_for_debug): Don't call make_compound_operation here.
17345 Always use simplify_replace_fn_rtx.
17346
17347 2010-05-27 Sterling Augustine <sterling@tensilica.com>
17348
17349 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
17350 * config/xtensa/xtensa.c (override_options): Check
17351 TARGET_FORCE_NO_PIC and set flag_pic.
17352 * config/xtensa/xtensa.opt: Document -mforce-no-pic
17353
17354 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
17355
17356 PR bootstrap/44299
17357 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
17358 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
17359
17360 2010-05-27 Joseph Myers <joseph@codesourcery.com>
17361
17362 * diagnostic-core.h: New. Contents moved from diagnostic.h and
17363 toplev.h.
17364 * diagnostic.c: Don't include toplev.h.
17365 (progname): Define. Moved from toplev.c.
17366 (seen_error): New function.
17367 * diagnostic.h: Include diagnostic-core.h.
17368 (diagnostic_t, emit_diagnostic): Don't declare here.
17369 * toplev.c (progname): Move to toplev.c.
17370 (emit_debug_global_declarations, compile_file, finalize,
17371 do_compile, toplev_main): Use seen_error.
17372 * toplev.h: Include diagnostic-core.h.
17373 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
17374 internal_error, warning, warning_at, error, error_n, error_at,
17375 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
17376 verbatim, fnotice, progname): Move to diagnostic-core.h.
17377 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
17378 (expand_builtin_expect): Use seen_error.
17379 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
17380 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
17381 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
17382 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
17383 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
17384 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
17385 errorcount for errors.
17386 * c-opts.c (c_common_finish): Use seen_error.
17387 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
17388 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
17389 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
17390 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
17391 (get_coverage_counts): Use seen_error.
17392 * dwarf2out.c (dwarf2out_finish): Use seen_error.
17393 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
17394 gimplify_body): Use seen_error.
17395 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
17396 * ipa-pure-const.c (gate_pure_const): Use seen_error.
17397 * ipa-reference.c (gate_reference): Use seen_error.
17398 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
17399 * lambda-code.c: Include diagnostic-core.h instead of
17400 diagnostic.h.
17401 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
17402 * lto-compress.c: Include diagnostic-core.h instead of
17403 diagnostic.h.
17404 * lto-section-in.c: Include diagnostic-core.h instead of
17405 diagnostic.h.
17406 * lto-streamer-out.c: Include diagnostic-core.h instead of
17407 diagnostic.h.
17408 * lto-streamer.c: Include diagnostic-core.h instead of
17409 diagnostic.h.
17410 (gate_lto_out): Use seen_error.
17411 * matrix-reorg.c: Include diagnostic-core.h instead of
17412 diagnostic.h.
17413 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
17414 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
17415 (gate_expand_omp, lower_omp_1): Use seen_error.
17416 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
17417 (rest_of_decl_compilation, rest_of_type_compilation,
17418 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
17419 * tree-cfg.c (label_to_block_fn): Use seen_error.
17420 * tree-inline.c (optimize_inline_calls): Use seen_error.
17421 * tree-mudflap.c (mudflap_finish_file): Use
17422 seen_error.
17423 * tree-optimize.c (gate_all_optimizations,
17424 gate_all_early_local_passes, gate_all_early_optimizations): Use
17425 seen_error.
17426 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
17427 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
17428 (varpool_remove_unreferenced_decls,
17429 varpool_assemble_pending_decls): Use seen_error.
17430 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
17431 (TOPLEV_H, DIAGNOSTIC_H): Update.
17432 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
17433 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
17434 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
17435 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
17436 coverage.o, lambda-code.o): Update dependencies.
17437
17438 2010-05-25 Dodji Seketeli <dodji@redhat.com>
17439
17440 PR c++/44188
17441 * c-common.c (is_typedef_decl): Move this definition ...
17442 * tree.c (is_typedef_decl): ... here.
17443 (typdef_variant_p): Move definition here from cp/tree.c.
17444 * c-common.h (is_typedef_decl): Move this declaration ...
17445 * tree.h (is_typedef_decl): ... here.
17446 (typedef_variant_p): Move declaration here from cp/cp-tree.h
17447 * dwarf2out.c (is_naming_typedef_decl): New function.
17448 (gen_tagged_type_die): Split out of ...
17449 (gen_type_die_with_usage): ... this function. When an anonymous
17450 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
17451 is emitted for the typedef.
17452 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
17453 anonymous tagged types.
17454
17455 2010-05-27 Jason Merrill <jason@redhat.com>
17456
17457 * print-tree.c (debug_vec_tree): New fn.
17458 (print_vec_tree): New fn.
17459 * tree.h: Declare them.
17460 * gdbinit.in (pvt): New command.
17461
17462 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
17463
17464 * gdbinit.in (pdd): New command.
17465
17466 2010-05-27 Jan Hubicka <jh@suse.cz>
17467
17468 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
17469 (update_caller_keys): Return early if there are no callers;
17470 only update fibheap when decresing the key.
17471 (update_callee_keys): Avoid recursion.
17472 (decide_inlining_of_small_functions): When badness does not match;
17473 re-insert into fibheap.
17474
17475 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
17476
17477 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
17478 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
17479 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
17480 (ALL_HOST_OBJS): Now a union of the above two.
17481 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
17482 all files in ALL_HOST_FRONTEND_OBJS.
17483 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
17484
17485 * c-common.c: Pretend to be a backend file by undefining
17486 IN_GCC_FRONTEND (still need rtl.h here).
17487
17488 2010-05-27 Jan Hubicka <jh@suse.cz>
17489
17490 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
17491 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
17492
17493 2010-05-27 Jan Hubicka <jh@suse.cz>
17494
17495 * sched-ebb.c: Rename struct deps to struct deps_desc.
17496 * ddg.c: Likewise.
17497 * sel-sched-ir.c: Likewise.
17498 * sched-deps.c: Likewise.
17499 * sched-int.h: Likewise.
17500 * sched-rgn.c: Likewise.
17501
17502 2010-05-27 Jon Beniston <jon@beniston.com>
17503
17504 PR 43726
17505 * config/lm32/lm32.h: Remove definition of
17506 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
17507
17508 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
17509
17510 PR lto/44230
17511 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
17512
17513 2010-05-27 Richard Guenther <rguenther@suse.de>
17514
17515 PR tree-optimization/44284
17516 * tree-vect-stmts.c (vectorizable_assignment): Handle
17517 sign-changing conversions as simple copy.
17518
17519 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
17520
17521 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
17522 Bionic C library.
17523 (__gthread_active_p): Check for pthread_create if compiling against
17524 Bionic C library.
17525
17526 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
17527
17528 Support compilation for Android platform. Reimplement -mandroid.
17529
17530 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
17531 (*android*): Set ANDROID_DEFAULT.
17532 (arm*-*-linux*): Include linux-android.h.
17533 (arm*-*-eabi*): Don't include previous -mandroid implementation.
17534 * config/arm/eabi.h: Remove, move Android-specific parts ...
17535 * config/linux-android.h: ... here. New file.
17536 * config/arm/eabi.opt: Rename to ...
17537 * config/linux-android.opt: ... this.
17538 (mandroid): Allow -mno-android option. Initialize based on
17539 ANDROID_DEFAULT.
17540 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
17541 Move logic to corresponding LINUX_TARGET_* macros.
17542 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
17543 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
17544 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
17545 Android definitions.
17546 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
17547 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
17548 Document.
17549
17550 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
17551
17552 Add support for Bionic C library
17553
17554 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
17555 macro.
17556 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
17557 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
17558
17559 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
17560 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
17561 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
17562 to support multiple C libraries. Handle Bionic.
17563 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
17564 (BIONIC_DYNAMIC_LINKER64): Define.
17565 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
17566 Update.
17567 (TARGET_HAS_SINCOS): Enable for Bionic.
17568
17569 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
17570 the last option specified on command line take effect.
17571 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
17572 (mbionic): New.
17573 (mglibc, muclibc): Update.
17574
17575 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
17576 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
17577 DEFAULT_LIBC.
17578
17579 * doc/invoke.texi (-mglibc, -muclibc): Update.
17580 (-mbionic): Document.
17581
17582 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17583
17584 * c-common.h (c_register_addr_space): Add prototype.
17585 (ADDR_SPACE_KEYWORD): Remove.
17586 * c-common.c (c_register_addr_space): New function.
17587 (c_addr_space_name): Reimplement.
17588 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
17589
17590 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
17591 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
17592
17593 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
17594 Remove TARGET_ADDR_SPACE_KEYWORDS.
17595
17596 2010-05-27 Joseph Myers <joseph@codesourcery.com>
17597
17598 * input.c: New file.
17599 * input.h (main_input_filename): Move declaration to toplev.h.
17600 * toplev.c (input_location, line_table): Move to input.c
17601 * toplev.h (main_input_filename): Move declaration from input.h.
17602 * tree.c (expand_location): Move to input.c.
17603 * Makefile.in (OBJS-common): Add input.o.
17604 (input.o): Add dependencies.
17605
17606 2010-05-27 Richard Guenther <rguenther@suse.de>
17607
17608 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
17609 for non-existant files.
17610 (fork_execute): Mark args_name file as deleted.
17611
17612 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
17613
17614 PR bootstrp/44287
17615 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
17616 (narrow_signed_type): Likewise.
17617
17618 2010-05-26 Jan Hubicka <jh@suse.cz>
17619
17620 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
17621 edge only when checking is enabled; check using former_clone_of;
17622 check inline clones too.
17623 (cgraph_materialize_clone): Record former_clone_of pointer.
17624 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
17625 combining redirections; dump args_to_skip bitmap
17626 (cgraph_materialize_all_clones): Do no redirection here.
17627 * ipa-inline.c (inline_transform): Do redirection here.
17628 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
17629 cheking only).
17630
17631 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
17632
17633 * config/avr/avr-c.c: Do not include regs.h.
17634 Include cpplib.h for cpp_define and tree.h for c-common.h.
17635 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
17636 * config/avr/t-avr: Fix dependencies for avr-c.o.
17637
17638 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
17639
17640 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
17641 string instead of SYMBOL_REF rtx.
17642 * rtl.h (set_stack_check_libfunc): Move prototype from here...
17643 * libfuncs.h: ...to here. Adjust for explow.c change.
17644
17645 2010-05-26 Joseph Myers <joseph@codesourcery.com>
17646
17647 * pretty-print.c: Don't include ggc.h.
17648 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
17649 (identifier_to_locale): Use them for allocation.
17650 * pretty-print.h (identifier_to_locale_alloc,
17651 identifier_to_locale_free): Declare.
17652 * toplev.c (alloc_for_identifier_to_locale): New.
17653 (general_init): Set identifier_to_locale_alloc and
17654 identifier_to_locale_free.
17655 * Makefile.in (pretty-print.o): Update dependencies.
17656
17657 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
17658
17659 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
17660 pointer types if they have different alignment or mode.
17661
17662 2010-05-26 Anatoly Sokolov <aesok@post.ru>
17663
17664 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
17665 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17666 * config/sparc/sparc-protos.h (function_value): Remove declaration.
17667 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
17668 sparc_function_value_regno_p): New functions.
17669 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
17670 TARGET_FUNCTION_VALUE_REGNO_P): Define.
17671 (function_value): Rename to...
17672 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
17673 argument to 'outgoing'.
17674 (function_arg_record_value, function_arg_union_value,
17675 function_arg_vector_value): Update comment.
17676
17677 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
17678
17679 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
17680 (fde_needed_for_eh_p): New predicate.
17681 (output_call_frame_info): Use it throughout to decide whether FDEs
17682 are needed for EH purpose.
17683 (dwarf2out_begin_prologue): Reorder assignments.
17684
17685 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
17686
17687 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
17688 special case loop->header.
17689 (is_predicated): New.
17690 (if_convertible_loop_p): Call it.
17691
17692 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
17693
17694 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
17695 iterator in parameter. Do not generate code during the analysis.
17696 (tree_if_convert_cond_stmt): Removed.
17697 (tree_if_convert_stmt): Removed.
17698 (predicate_bbs): New.
17699 (if_convertible_loop_p): Call predicate_bbs.
17700 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
17701 now contains all the analysis part.
17702
17703 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
17704
17705 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
17706 statements in the analysis part.
17707 (tree_if_convert_stmt): Update comment.
17708 (remove_conditions_and_labels): New.
17709 (combine_blocks): Call remove_conditions_and_labels.
17710 (tree_if_conversion): Update comment.
17711
17712 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
17713
17714 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
17715 than 2 predecessors or more than 2 successors.
17716
17717 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
17718
17719 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
17720 of loops in which the data dependence analysis fails.
17721
17722 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
17723
17724 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
17725 CDI_POST_DOMINATORS.
17726 (tree_if_conversion): Same.
17727
17728 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
17729
17730 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
17731
17732 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
17733
17734 * tree-if-conv.c: Update copyright years. Fix comments.
17735 Fix indentation.
17736
17737 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
17738
17739 * builtin-types.def (BT_INT128): New primitive type.
17740 (BT_UINT128): Likewise.
17741 * c-common.c (c_common_r): Add __int128 keyword.
17742 (c_common_type_for_size): Handle __int128.
17743 (c_common_type_for_mode): Likewise.
17744 (c_common_signed_or_unsigned_type): Likewise.
17745 (c_common_nodes_and_builtins): Add builtin type
17746 if target supports 128-bit integer scalar.
17747 * c-common.h (enum rid): Add RID_INT128.
17748 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
17749 if target supports 128-bit integer scalar.
17750 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
17751 (finish_declspecs): Likewise.
17752 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
17753 (c_token_starts_declspecs): Likewise.
17754 (c_parser_declspecs): Likewise.
17755 (c_parser_attributes): Likewise.
17756 (c_parser_objc_selector): Likewise.
17757 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
17758 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
17759 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
17760 * tree.c (make_or_reuse_type): Likewise.
17761 (make_unsigned_type): Likewise.
17762 (build_common_tree_nodes_2): Likewise.
17763 * tree.h (enum integer_type_kind): Add itk_int128 and
17764 itk_unsigned_int128.
17765 (int128_integer_type_node): New define.
17766 (int128_unsigned_type_node): New define.
17767 * doc/extend.texi: Add documentation about __int128 type.
17768
17769 2010-05-26 Richard Guenther <rguenther@suse.de>
17770
17771 * tree-ssa-sccvn.c (copy_nary): Adjust.
17772 (copy_phis): Rename to ...
17773 (copy_phi): ... this. Adjust.
17774 (copy_references): Rename to ...
17775 (copy_reference): ... this. Adjust.
17776 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
17777 result into the valid table.
17778
17779 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
17780
17781 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
17782 insn-config.h, insn-codes.h, recog.h, and optabs.h.
17783
17784 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
17785
17786 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
17787
17788 2010-05-26 Richard Guenther <rguenther@suse.de>
17789
17790 * opts.c (common_handle_option): Handle OPT_Ofast.
17791
17792 2010-05-26 Joseph Myers <joseph@codesourcery.com>
17793
17794 * diagnostic.c: Don't include opts.h.
17795 (permissive_error_option): Define.
17796 (diagnostic_initialize): Take n_opts parameter. Allocate memory
17797 for classify_diagnostic. Don't use memset for
17798 classify_diagnostic. Initialize new and recently added fields.
17799 (diagnostic_classify_diagnostic): Use context->n_opts instead of
17800 N_OPTS.
17801 (diagnostic_report_diagnostic): Pass context parameter to
17802 diagnostic_report_warnings_p. Use option_enabled and option_name
17803 hooks from context.
17804 (emit_diagnostic): Use permissive_error_option.
17805 (permerror): Likewise.
17806 * diagnostic.h: Don't include options.h.
17807 (struct diagnostic_context): Add n_opts, opt_permissive,
17808 inhibit_warnings, warn_system_headers, option_enabled and
17809 option_name fields. Change classify_diagnostic to a pointer.
17810 * opts-diagnostic.h: New file.
17811 * opts.c: Include opts-diagnostic.h.
17812 (common_handle_option): Set global_dc fields for -Wfatal-errors,
17813 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
17814 (option_name): New function.
17815 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
17816 (c_common_handle_option): Set global_dc->permissive for
17817 -fpermissive.
17818 * c-common.c (c_cpp_error): Save and restore
17819 global_dc->warn_system_headers, not variable warn_system_headers.
17820 * toplev.c: Include opts-diagnostic.h.
17821 (general_init): Update call to diagnostic_initialize. Set
17822 global_dc->show_column, global_dc->option_enabled and
17823 global_dc->option_name.
17824 (process_options): Don't set global_dc fields here.
17825 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
17826 (diagnostic.o, opts.o, toplev.o): Update dependencies.
17827
17828 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
17829
17830 * config/picochip/picochip.md (movsi): Split a movsi from a
17831 const after reload.
17832
17833 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
17834
17835 * ggc-zone.c: Update copyright year.
17836 (poison_region): Mark memory for Valgrind as undefined before
17837 memset () call and inaccessible afterwards.
17838 (ggc_pch_total_size): Change type of i to int.
17839
17840 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
17841
17842 * ggc-common.c (ggc_free_overhead): Allow empty slot.
17843
17844 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
17845
17846 * ggc-common.c: Update copyright year.
17847 (ggc_rlimit_bound): Remove prototype. Compile only if
17848 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
17849 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
17850 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
17851 (ggc_min_heapsize_heuristic): Likewise.
17852
17853 2010-05-26 Richard Guenther <rguenther@suse.de>
17854
17855 PR rtl-optimization/44164
17856 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
17857 no-common access-path disambiguation.
17858 (indirect_ref_may_alias_decl_p): Adjust.
17859 (indirect_refs_may_alias_p): Likewise.
17860 (refs_may_alias_p_1): Likewise.
17861
17862 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
17863
17864 * c-typeck.c: Do not include expr.h.
17865
17866 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
17867
17868 * rtl.h (decl_default_tls_model): Move prototype from here...
17869 * output.h: ...to here.
17870 * c-decl.c: Do not include rtl.h.
17871 * c-pragma.c: Likewise.
17872 * c-parser.c: Likewise.
17873 * c-gimplify.c: Likewise. And also not hard-reg-set.
17874 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
17875 FIXME note for it. Add a FIXME note for expr.h.
17876 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
17877 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
17878 defined.
17879
17880 2010-05-26 Jakub Jelinek <jakub@redhat.com>
17881
17882 PR target/44199
17883 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
17884 or total_size is larger than red zone size for non-V4 ABI, emit a
17885 stack_tie resp. frame_tie insn before stack pointer restore.
17886 * config/rs6000/rs6000.md (frame_tie): New insn.
17887
17888 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
17889
17890 * function.h (struct function): Add can_throw_non_call_exceptions bit.
17891 * lto-streamer-in.c (input_function): Stream it in.
17892 * lto-streamer-out.c (output_function): Stream it out.
17893 * function.c (allocate_struct_function): Set it.
17894 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
17895 for flag_non_call_exceptions.
17896 * cfgbuild.c (control_flow_insn_p): Likewise.
17897 (make_edges): Likewise.
17898 * cfgexpand.c (expand_stack_alignment): Likewise.
17899 * combine.c (distribute_notes): Likewise.
17900 * cse.c (cse_extended_basic_block): Likewise.
17901 * except.c (insn_could_throw_p): Likewise.
17902 * gcse.c (simple_mem): Likewise.
17903 * ipa-pure-const.c (check_call): Likewise.
17904 (check_stmt ): Likewise.
17905 * lower-subreg.c (lower-subreg.c): Likewise.
17906 * optabs.c (emit_libcall_block): Likewise.
17907 (prepare_cmp_insn): Likewise.
17908 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
17909 * postreload.c (rest_of_handle_postreload): Likewise.
17910 * reload1.c (reload_as_needed): Likewise.
17911 (emit_input_reload_insns): Likewise.
17912 (emit_output_reload_insns): Likewise.
17913 (fixup_abnormal_edges): Likewise.
17914 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
17915 * store-motion.c (find_moveable_store): Likewise.
17916 * tree-eh.c (stmt_could_throw_p): Likewise.
17917 (tree_could_throw_p): Likewise.
17918 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17919 * config/arm/arm.c (arm_expand_prologue): Likewise.
17920 (thumb1_expand_prologue): Likewise.
17921 * config/rx/rx.md (cbranchsf4): Likewise.
17922 (cmpsf): Likewise.
17923 * config/s390/s390.c (s390_emit_prologue): Likewise.
17924 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
17925 (inline_forbidden_into_p): New predicate.
17926 (expand_call_inline): Use it to forbid inlining.
17927 (tree_can_inline_p): Likewise.
17928
17929 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
17930
17931 * config/i386/i386-c.c: Do not include rtl.h.
17932 * config/i386/t-i386: Update dependencies.
17933
17934 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
17935
17936 * attribs.c: Do not include rtl.h.
17937 * Makefile.in: Update dependencies.
17938
17939 2010-05-25 Anatoly Sokolov <aesok@post.ru>
17940
17941 * double-int.h (double_int_and): New.
17942 * combine.c (try_combine): Clean up, use double_int_* and
17943 immed_double_int_const functions.
17944
17945 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17946
17947 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
17948 stderr to /dev/null instead of grep -q.
17949 * configure: Regenerate.
17950
17951 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
17952
17953 * Makefile.in (EXCEPT_H): Fix typo.
17954
17955 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
17956
17957 * ira-build.c (update_conflict_hard_reg_costs): New.
17958 (ira_build): Call update_conflict_hard_reg_costs.
17959
17960 2010-05-25 Jakub Jelinek <jakub@redhat.com>
17961
17962 PR debug/41371
17963 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
17964 ENABLE_CHECKING.
17965 (intersect_loc_chains): Walk the s2var's loc_chain together
17966 with s1node chain as long as the locations are equal, don't
17967 call find_loc_in_1pdv in that case.
17968
17969 PR debug/42801
17970 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
17971 (copy_bind_expr): ... instead of here.
17972 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
17973 if the block hasn't been remapped.
17974 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
17975 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
17976
17977 2010-05-25 Richard Guenther <rguenther@suse.de>
17978
17979 PR middle-end/44069
17980 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
17981 out-of-bounds array accesses.
17982
17983 2010-05-25 Richard Guenther <rguenther@suse.de>
17984
17985 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
17986 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
17987 (run_gcc): Re-organize to make cleanup easier.
17988
17989 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17990
17991 * config/s390/s390.c (optimization_options): Fix and move the
17992 flag_prefetch_loop_arrays override ...
17993 (override_options): ... here.
17994
17995 2010-05-25 Joseph Myers <joseph@codesourcery.com>
17996
17997 * diagnostic.c: Don't include plugin.h.
17998 (diagnostic_report_diagnostic): Don't handle plugins specially
17999 here. Pass context to internal_error callback.
18000 * diagnostic.h (struct diagnostic_context): Add context parameter
18001 to internal_error callback.
18002 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
18003 * plugin.h (struct diagnostic_context): Declare.
18004 (warn_if_plugins, plugins_internal_error_function): Declare.
18005 * toplev.c (general_init): Set global_dc->internal_error.
18006 * Makefile.in (diagnostic.o): Update dependencies.
18007
18008 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
18009
18010 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
18011 * config/rs6000/t-darwin64: New.
18012 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
18013 build crt2.
18014
18015 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
18016
18017 PR 44203
18018 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
18019 match the original (and intended) behaviour before r159557. This
18020 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
18021 in two ways.
18022
18023 2010-05-25 Richard Guenther <rguenther@suse.de>
18024
18025 * doc/invoke.texi: Document -Ofast.
18026 * target.h (struct gcc_target): Add handle_ofast.
18027 * target-def.h (TARGET_HANDLE_OFAST): Add.
18028 (TARGET_INITIALIZER): Adjust.
18029 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
18030 * common.opt (Ofast): Add.
18031
18032 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
18033
18034 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
18035 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
18036
18037 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
18038
18039 PR target/43610
18040 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
18041 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
18042 false_rtx. Use false_rtx to compute the correct *ptest for reversed
18043 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
18044
18045 2010-05-25 Jakub Jelinek <jakub@redhat.com>
18046
18047 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
18048 DW_OP_minus with negated offset instead of DW_OP_plus.
18049 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
18050
18051 2010-05-25 Wei Guozhi <carrot@google.com>
18052
18053 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
18054 tst instruction and a new alternative.
18055 * config/arm/constraints.md (Pu): New constraint.
18056
18057 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
18058
18059 * function.c (assign_stack_local_1): Initialize variable
18060 to avoid warning when bootstrapping at -O3.
18061
18062 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
18063
18064 * configure.ac (all_lang_makefiles): Remove everything related to it.
18065 * configure: Regenerate.
18066 * Makefile.in: Fix reference to ada Make-lang.in.
18067 Remove support for LANG_MAKEFILES.
18068
18069 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
18070 Sandra Loosemore <sandra@codesourcery.com>
18071
18072 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
18073 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
18074 description. Add arm_neon_fp16_ok.
18075 (Add Options): Add arm_neon and arm_neon_fp16.
18076
18077 2010-05-24 Joseph Myers <joseph@codesourcery.com>
18078
18079 * diagnostic.c: Don't include flags.h.
18080 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
18081 context parameters. Check flags in the context passed as a parameter.
18082 (diagnostic_build_prefix): Add context parameter. Check
18083 show_column flag in context.
18084 (diagnostic_action_after_output): Check fatal_errors flag in context.
18085 (diagnostic_report_current_module): Check show_column flag in context.
18086 (default_diagnostic_starter): Update call to
18087 diagnostic_build_prefix.
18088 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
18089 (emit_diagnostic): Pass context to permissive_error_kind.
18090 (permerror): Pass context to permissive_error_kind.
18091 * diagnostic.h (struct diagnostic_context): Add show_column,
18092 pedantic_errors, permissive and fatal_errors fields.
18093 (diagnostic_build_prefix): Update prototype.
18094 * langhooks.c
18095 * toplev.c (process_options): Set flags in global_dc from
18096 flag_show_column, flag_pedantic_errors, flag_permissive,
18097 flag_fatal_errors.
18098 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
18099 to diagnostic_build_prefix.
18100 * Makefile.in (diagnostic.o): Update dependencies.
18101
18102 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
18103
18104 * config/i386/ia32intrin.h (__crc32q): Define only if
18105 __SSE4_2__ is defined.
18106
18107 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
18108
18109 PR target/44132
18110 PR middle-end/43602
18111 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
18112 DECL_VISIBILITY_SPECIFIED.
18113 (emutls_decl): Set DECL_PRESERVE_P and copy
18114 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
18115 (emutls_finalize_control_var): New callback.
18116 (emutls_finish): Finalize emutls control variables.
18117 * toplev.c (compile_file): Move the call to emutls_finish ()
18118 before varpool_assemble_pending_decls ().
18119
18120 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
18121
18122 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
18123 added to the preprocessor condition.
18124
18125 2010-05-24 Paul Brook <paul@codesourcery.com>
18126
18127 * gengtype-lex.l: Add HARD_REG_SET.
18128 * expr.c (expand_expr_real_1): Record writes to hard registers.
18129 * function.c (rtl_data): Add asm_clobbers.
18130 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
18131 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
18132 Use crtl->asm_clobbers.
18133
18134 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18135
18136 * doc/makefile.texi (Makefile): Mention stages 'profile'
18137 and 'feedback' for profiledbootstrap.
18138
18139 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
18140
18141 PR target/44245
18142 * config/i386/i386.c (def_builtin): Properly check
18143 OPTION_MASK_ISA_64BIT.
18144
18145 2010-05-23 Joseph Myers <joseph@codesourcery.com>
18146
18147 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
18148 typedefs with different but compatible types. Allow duplicate
18149 typedefs with the same type except for pedantic non-C1X, but give
18150 warning for variably modified types.
18151 * c-typeck.c (tagged_types_tu_compatible_p,
18152 function_types_compatible_p, type_lists_compatible_p,
18153 comptypes_internal): Add parameter different_types_p; set
18154 *different_types_p for different but compatible types. All
18155 callers changed.
18156 (comptypes_check_different_types): New.
18157 * c-tree.h (comptypes_check_different_types): Declare.
18158
18159 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
18160
18161 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
18162 * jump.c: Include basic-block.h.
18163 * profile.c: Likewise.
18164 * tree-profile.c: Likewise.
18165 * coverage.c: Likewise.
18166 * basic-block.h (optimize_function_for_size_p): Move to function.h.
18167 (optimize_function_for_speed_p): Likewise.
18168 * function.h (optimize_function_for_size_p,
18169 optimize_function_for_speed_p): Moved here from basic-block.h.
18170 * Makefile.in: Update dependencies.
18171
18172 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18173
18174 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
18175 before calling make; allow override through $MAKE.
18176 * doc/invoke.texi (Optimize Options): Document override.
18177
18178 2010-05-23 Anatoly Sokolov <aesok@post.ru>
18179
18180 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
18181 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18182 (rs6000_mode_dependent_address_ptr): Make static.
18183 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18184 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
18185 Remove.
18186
18187 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
18188
18189 PR target/43869
18190 * config/i386/i386.c: Make sure that the correct regparm is passed.
18191
18192 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
18193
18194 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
18195 * sbitmap.c: ...to here to internalize sbitmap element access.
18196 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
18197 Explain why basic-block.h is included.
18198 * function.h: Include tm.h for CUMULATIVE_ARGS.
18199 * Makefile.in: Update dependencies.
18200
18201 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
18202
18203 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
18204 New core types.
18205 * sbitmap.h (struct sbitmap_def): Do not typedef here.
18206 * sbitmap.c: Include sbitmap.h.
18207 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
18208 hard-reg-set.h. Split everything related to regsets out from here...
18209 * regset.h: ...to here. New file.
18210 * df.h: Include regset.h and sbitmap.h.
18211 * tree-flow.h: Likewise.
18212 * cfgloop.h: Likewise.
18213 * except.h: Do not include sbitmap.h. Include hashtab.h.
18214 * cgraph.h: Include vec.h and function.h.
18215 * reload.h (struct insn_chain): Change types of live_throughout
18216 and dead_or_set from regset_head to bitmap_head.
18217 (compute_use_by_pseudos): Be defined also if regset.h is not included.
18218 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
18219 spilled_regs from regset_head to bitmap_head to avoid dependency
18220 in regset.h.
18221 * sel-sched-ir.h: Include regset.h.
18222 * reload.c: Include df.h before reload.h.
18223 * caller-save.c: Likewise.
18224 * reload1.c: Likewise.
18225 * ira.c: Likewise.
18226 (mark_elimination): Update type of r to bitmap, consistent with
18227 DF_LR_IN.
18228 * dominance.c: Include bitmap.h.
18229 * modulo-sched.c: Include df.h.
18230 * cfganal.c: Include bitmap.h and sbitmap.h.
18231 * cfgbuild.c: Include sbitmap.h.
18232 * lcm.c: Include sbitmap.h.
18233 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
18234 * domwalk.c: Include sbitmap.h, exclude ggc.h.
18235 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
18236 * cselib.c: Include bitmap.h.
18237 * tree-optimize.c: Include regset.h.
18238 * stmt.c: Include bitmap.h.
18239 * Makefile.in: Update dependencies.
18240
18241 2010-05-22 Jan Hubicka <jh@suse.cz>
18242
18243 * cgraph.h (struct varpool_node): Add same_comdat_group.
18244 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
18245 pointer.
18246 (output_varpool): Update call of lto_output_varpool_node.
18247 (input_varpool): Read same_comdat_group pointer.
18248 (input_varpool_1): Fixup same_comdat_group pointer.
18249 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
18250 group is needed, all are.
18251 * varpool.c (varpool_remove_node): Remove node from same comdat group
18252 linklist too.
18253 (varpool_analyze_pending_decls): Walk same comdat groups.
18254
18255 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
18256
18257 * rtl.h (union rtunion_def): Remove rt_bit member.
18258 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
18259 * print-rtl (print_rtx): Do not print the member.
18260 * gengtype.c (adjust_field_rtx_def): Do not handle it.
18261 * gengenrtl.c (type_from_format): Likewise.
18262 (accessor_from_format): Likewise.
18263
18264 2010-05-22 Joseph Myers <joseph@codesourcery.com>
18265
18266 * dbgcnt.c: Include toplev.h instead of errors.h.
18267 * ira-emit.c: Don't include errors.h.
18268 * ira.c: Include toplev.h instead of errors.h.
18269 * lto-compress.c: Include toplev.h instead of errors.h.
18270 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
18271 ira.o, dbgcnt.o): Update dependencies.
18272
18273 2010-05-22 Richard Guenther <rguenther@suse.de>
18274
18275 * gimple.c (gimple_types_compatible_p): Check type qualifications
18276 before merging pointer to complete and pointer to incomplete type.
18277 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
18278 we use our own resolution algorithm. The gold linker plugin
18279 doesn't do the job we want it to do here.
18280
18281 2010-05-22 Anatoly Sokolov <aesok@post.ru>
18282
18283 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18284 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18285 (sparc_mode_dependent_address_p): New function.
18286
18287 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
18288
18289 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
18290
18291 * timevar.c: Do not include any core headers.
18292 (timevar_print): De-i18n-ize.
18293 (print_time): Likewise.
18294 * timevar.h (timevar_push, timevar_pop): Make inline functions.
18295
18296 2010-05-21 Joseph Myers <joseph@codesourcery.com>
18297
18298 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
18299 langhooks-def.h.
18300 (diagnostic_initialize): Initialize x_data not last_function.
18301 (diagnostic_report_current_function): Move to tree-diagnostic.c.
18302 (default_diagnostic_starter): Call
18303 diagnostic_report_current_module not
18304 diagnostic_report_current_function.
18305 (diagnostic_report_diagnostic): Initialize x_data not
18306 abstract_origin.
18307 (verbatim): Likewise.
18308 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
18309 x_data.
18310 (struct diagnostic_context): Change last_function to x_data.
18311 (diagnostic_auxiliary_data): Replace with
18312 diagnostic_context_auxiliary_data and
18313 diagnostic_info_auxiliary_data.
18314 (diagnostic_last_function_changed, diagnostic_set_last_function,
18315 diagnostic_report_current_function): Move to tree-diagnostic.h.
18316 (print_declaration, dump_generic_node, print_generic_stmt,
18317 print_generic_stmt_indented, print_generic_expr,
18318 print_generic_decl, debug_c_tree, dump_omp_clauses,
18319 print_call_name, debug_generic_expr, debug_generic_stmt,
18320 debug_tree_chain, default_tree_printer): Move to
18321 tree-pretty-print.h.
18322 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
18323 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
18324 gimple-pretty-print.h.
18325 * pretty-print.c: Don't include tree.h
18326 (pp_base_format): Don't handle %K here.
18327 (pp_base_tree_identifier): Move to tree-pretty-print.c.
18328 * pretty-print.h (text_info): Change abstract_origin to x_data.
18329 (pp_tree_identifier, pp_unsupported_tree,
18330 pp_base_tree_identifier): Move to tree-pretty-print.h.
18331 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
18332 tree-pretty-print.h: New files.
18333 * tree-pretty-print.c: Include tree-pretty-print.h.
18334 (percent_K_format): New. Moved from pretty-print.c.
18335 (pp_base_tree_identifier): Move from pretty-print.c.
18336 * c-objc-common.c: Include tree-pretty-print.h.
18337 (c_tree_printer): Handle %K here.
18338 * langhooks.c: Include tree-diagnostic.h.
18339 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
18340 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
18341 (default_tree_printer): Handle %K using percent_K_format.
18342 (general_init): Use default_tree_diagnostic_starter.
18343 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
18344 (free_lang_data): Use default_tree_diagnostic_starter.
18345 * c-pretty-print.c: Include tree-pretty-print.h.
18346 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18347 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18348 * dwarf2out.c: Include tree-pretty-print.h.
18349 * except.c: Include tree-pretty-print.h.
18350 * gimple-pretty-print.c: Include tree-pretty-print.h and
18351 gimple-pretty-print.h.
18352 * gimplify.c: Include tree-pretty-print.h.
18353 * graphite-poly.c: Include tree-pretty-print.h and
18354 gimple-pretty-print.h.
18355 * ipa-cp.c: Include tree-pretty-print.h.
18356 * ipa-inline.c: Include gimple-pretty-print.h.
18357 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18358 * ipa-pure-const.c: Include gimple-pretty-print.h.
18359 * ipa-struct-reorg.c: Include tree-pretty-print.h and
18360 gimple-pretty-print.h.
18361 * ipa-type-escape.c: Include tree-pretty-print.h.
18362 * print-rtl.c: Include tree-pretty-print.h.
18363 * print-tree.c: Include gimple-pretty-print.h.
18364 * sese.c: Include tree-pretty-print.h.
18365 * tree-affine.c: Include tree-pretty-print.h.
18366 * tree-browser.c: Include tree-pretty-print.h.
18367 * tree-call-cdce.c: Include gimple-pretty-print.h.
18368 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18369 * tree-chrec.c: Include tree-pretty-print.h.
18370 * tree-data-ref.c: Include tree-pretty-print.h and
18371 gimple-pretty-print.h.
18372 * tree-dfa.c: Include tree-pretty-print.h.
18373 * tree-if-conv.c: Include tree-pretty-print.h and
18374 gimple-pretty-print.h.
18375 * tree-inline.c: Include tree-pretty-print.h.
18376 * tree-into-ssa.c: Include tree-pretty-print.h and
18377 gimple-pretty-print.h.
18378 * tree-nrv.c: Include tree-pretty-print.h.
18379 * tree-object-size.c: Include tree-pretty-print.h and
18380 gimple-pretty-print.h.
18381 * tree-outof-ssa.c: Include tree-pretty-print.h and
18382 gimple-pretty-print.h.
18383 * tree-parloops.c: Include tree-pretty-print.h and
18384 gimple-pretty-print.h.
18385 * tree-predcom.c: Include tree-pretty-print.h and
18386 gimple-pretty-print.h.
18387 * tree-scalar-evolution.c: Include tree-pretty-print.h and
18388 gimple-pretty-print.h.
18389 * tree-sra.c: Include tree-pretty-print.h.
18390 * tree-ssa-address.c: Include tree-pretty-print.h.
18391 * tree-ssa-alias.c: Include tree-pretty-print.h.
18392 * tree-ssa-ccp.c: Include tree-pretty-print.h and
18393 gimple-pretty-print.h.
18394 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
18395 * tree-ssa-copy.c: Include tree-pretty-print.h and
18396 gimple-pretty-print.h.
18397 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
18398 * tree-ssa-dce.c: Include tree-pretty-print.h and
18399 gimple-pretty-print.h.
18400 * tree-ssa-dom.c: Include tree-pretty-print.h and
18401 gimple-pretty-print.h.
18402 * tree-ssa-dse.c: Include gimple-pretty-print.h.
18403 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
18404 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
18405 * tree-ssa-live.c: Include tree-pretty-print.h and
18406 gimple-pretty-print.h.
18407 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
18408 gimple-pretty-print.h.
18409 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
18410 gimple-pretty-print.h.
18411 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
18412 gimple-pretty-print.h.
18413 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
18414 gimple-pretty-print.h.
18415 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
18416 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
18417 * tree-ssa-operands.c: Include tree-pretty-print.h and
18418 gimple-pretty-print.h.
18419 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
18420 gimple-pretty-print.h.
18421 * tree-ssa-pre.c: Include tree-pretty-print.h and
18422 gimple-pretty-print.h.
18423 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
18424 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
18425 gimple-pretty-print.h.
18426 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
18427 gimple-pretty-print.h.
18428 * tree-ssa-sink.c: Include gimple-pretty-print.h.
18429 * tree-ssa-ter.c: Include tree-pretty-print.h and
18430 gimple-pretty-print.h.
18431 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
18432 * tree-ssa.c: Include tree-pretty-print.h and
18433 gimple-pretty-print.h.
18434 * tree-stdarg.c: Include gimple-pretty-print.h.
18435 * tree-switch-conversion.c: Include gimple-pretty-print.h.
18436 * tree-tailcall.c: Include tree-pretty-print.h and
18437 gimple-pretty-print.h.
18438 * tree-vect-data-refs.c: Include tree-pretty-print.h and
18439 gimple-pretty-print.h.
18440 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
18441 gimple-pretty-print.h.
18442 * tree-vect-loop.c: Include tree-pretty-print.h and
18443 gimple-pretty-print.h.
18444 * tree-vect-patterns.c: Include gimple-pretty-print.h.
18445 * tree-vect-slp.c: Include tree-pretty-print.h and
18446 gimple-pretty-print.h.
18447 * tree-vect-stmts.c: Include tree-pretty-print.h and
18448 gimple-pretty-print.h.
18449 * tree-vectorizer.c: Include tree-pretty-print.h.
18450 * tree-vrp.c: Include tree-pretty-print.h and
18451 gimple-pretty-print.h.
18452 * value-prof.c: Include tree-pretty-print.h and
18453 gimple-pretty-print.h.
18454 * var-tracking.c: Include tree-pretty-print.h.
18455 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
18456 (tree-diagnostic.o): New dependencies.
18457 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
18458 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
18459 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
18460 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
18461 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
18462 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
18463 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
18464 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
18465 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
18466 tree-ssa-address.o, tree-ssa-loop-niter.o,
18467 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
18468 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
18469 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
18470 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
18471 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
18472 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
18473 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
18474 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
18475 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
18476 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
18477 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
18478 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
18479 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
18480 tree-switch-conversion.o, var-tracking.o, value-prof.o,
18481 cfgexpand.o, pretty-print.o): Update dependencies.
18482
18483 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
18484
18485 * tree-ssa-structalias.c: Remove tm_p.h from include.
18486
18487 2010-05-21 Jeff Law <law@redhat.com>
18488
18489 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
18490
18491 2010-05-21 Jason Merrill <jason@redhat.com>
18492
18493 * tree-eh.c (cleanup_is_dead_in): New.
18494 (lower_try_finally): Don't generate a dead cleanup region.
18495 (lower_cleanup): Likewise.
18496
18497 2010-05-21 Jakub Jelinek <jakub@redhat.com>
18498
18499 PR debug/44223
18500 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
18501 unchain each use from the cyclic next_regno_use chain first.
18502
18503 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
18504
18505 * real: Do not include gmp.h, mpfr.h, and mpc.h.
18506 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
18507 (real_value_negate, real_value_abs): New prototypes.
18508 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
18509 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
18510 new include file for interface between MPFR and REAL_VALUE_TYPE.
18511 * real.c: Include realmpfr.h.
18512 (real_arithmetic2): Remove legacy function.
18513 (real_value_negate): New.
18514 (real_value_abs): New.
18515 (mfpr_from_real, real_from_mpfr): Move from here...
18516 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
18517 * builtins.c: Include realmpfr.h.
18518 * fold-const.c: Include realmpfr.h.
18519 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
18520 (fold_negate_const): Likewise.
18521 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
18522 * toplev.c: Include realmpfr.h.
18523 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
18524 and real_value_negate.
18525 * fixed-value.c (check_real_for_fixed_mode): Likewise.
18526 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
18527 (vfp3_const_double_index): Likewise.
18528 (arm_print_operand): Likewise.
18529 * Makefile.in: Update dependencies.
18530
18531 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18532
18533 * config/s390/s390.c (override_options): Increase the default
18534 of max-completely-peel-times.
18535
18536 2010-05-21 Julian Brown <julian@codesourcery.com>
18537 Mark Mitchell <mark@codesourcery.com>
18538
18539 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
18540 sibling calls for Thumb-1.
18541 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
18542 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
18543 Thumb-2.
18544 (*call_insn, *call_value_insn): Don't use for Thumb-2.
18545 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
18546 for Thumb-2.
18547 (return): New expander.
18548 (*arm_return): New name for ARM return insn.
18549 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
18550
18551 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
18552
18553 * config.gcc (sparc64-*-rtems*): New target.
18554
18555 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
18556
18557 * tree.c (build_function_decl_skip_args): Fix grammar.
18558 (build_function_type_list_1): Fix typos, adjust formatting.
18559
18560 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
18561
18562 * tree.h: Include real.h and fixed-value.h as basic datatypes.
18563 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
18564 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
18565 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
18566 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
18567 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
18568 tree-pretty-print.c, tree-loop-distribution.c,
18569 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
18570 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
18571 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
18572 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
18573 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
18574 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
18575 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
18576 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
18577 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
18578 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
18579 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
18580 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
18581 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
18582 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
18583 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
18584 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
18585 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
18586 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
18587 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
18588 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
18589 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
18590 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
18591 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
18592 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
18593 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
18594 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
18595 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
18596 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
18597 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
18598 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
18599 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
18600 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
18601 config/score/score7.c, config/score/score.c, config/arm/arm.c,
18602 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
18603 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
18604 config/bfin/bfin.c: Clean up redundant includes.
18605 * Makefile.in: Update accordingly.
18606
18607 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
18608
18609 PR middle-end/44204
18610 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
18611 statement has no arguments.
18612
18613 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
18614
18615 PR/44139
18616 * varasm.c (emutls_decl): Merge attributes to new decl.
18617
18618 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
18619
18620 PR middle-end/44101
18621 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
18622 around the uniquized constructor if its type requires a conversion.
18623
18624 2010-05-21 Jakub Jelinek <jakub@redhat.com>
18625
18626 PR debug/44205
18627 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
18628 at -O0 goto_locus of any of the incoming edges differs from
18629 goto_locus of outgoing edge, or gimple_location of any of the
18630 labels differs.
18631
18632 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
18633
18634 * ira.c (ira_non_ordered_class_hard_regs): Define.
18635 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
18636 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
18637 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
18638 cost of unaligned hard regs when allocating multi-reg pseudos.
18639
18640 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
18641
18642 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
18643 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
18644 for TARGET_NO_FLOAT.
18645 * config/mips/mips.c (mips_file_start): Expand conditional expression
18646 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
18647 (mips_override_options): Move -mno-float override -msoft-float and
18648 -mhard-float.
18649 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
18650 Condition(TARGET_SUPPORTS_NO_FLOAT).
18651 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
18652 __mips_no_float here.
18653 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
18654 (TARGET_SUPPORTS_NO_FLOAT): Define.
18655 * config/mips/sdemtk.opt: Delete.
18656
18657 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
18658
18659 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
18660
18661 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
18662
18663 PR target/43733
18664 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
18665 * configure: Regenerate.
18666 * config.in: Regenerate.
18667 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
18668 instead of sahf only for 64bit targets.
18669
18670 2010-05-20 Jakub Jelinek <jakub@redhat.com>
18671
18672 PR debug/44178
18673 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
18674 setup_ref_regs for DEBUG_INSNs.
18675
18676 2010-05-20 Jan Hubicka <jh@suse.cz>
18677
18678 PR middle-end/44197
18679 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
18680
18681 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
18682
18683 PR bootstrap/43870
18684 * df-scan.c (df_ref_compare): Stabilize sort.
18685
18686 2010-05-20 Jakub Jelinek <jakub@redhat.com>
18687
18688 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
18689 argument. Don't use DW_OP_piece if offset is non-zero,
18690 put offset into second DW_OP_bit_piece argument.
18691 (dw_sra_loc_expr): Adjust callers. For memory expressions
18692 compute offset.
18693
18694 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
18695
18696 PR target/44202
18697 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
18698 settings for 16-bit-constant "addo" alternative.
18699
18700 2010-05-19 James E. Wilson <wilson@codesourcery.com>
18701
18702 * config/mips/mips-dsp.md (add<DSPV:mode>3,
18703 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
18704
18705 PR target/43764
18706 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
18707 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
18708 Use it.
18709
18710 2010-05-19 Joseph Myers <joseph@codesourcery.com>
18711
18712 * diagnostic.c (FLOAT, FFS): Don't undefine.
18713 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
18714 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
18715 include ordering.
18716
18717 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
18718
18719 * combine.c (propagate_for_debug): Call make_compound_operation
18720 on the source value.
18721 (try_combine): When implementing a split chosen by find_split_point,
18722 either copy i2src or set it to null. Assert that i2src is not null
18723 before substituting into CALL_INSN_FUNCTION_USAGE.
18724
18725 2010-05-19 Anatoly Sokolov <aesok@post.ru>
18726
18727 * double-int.h (double_int_ior): New function.
18728 * tree.h (build_int_cst_wide_type): Remove.
18729 * tree.c (build_int_cst_wide_type): Remove.
18730 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
18731 of build_int_cst_wide_type.
18732 * stor-layout.c (set_sizetype): (Ditto.).
18733 * dojump.c (do_jump): Use build_int_cstu instead of
18734 build_int_cst_wide_type.
18735
18736 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
18737
18738 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
18739 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
18740 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
18741 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
18742 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
18743 propagate the 'data' argument to copy_tree_r.
18744 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
18745 Propagate 'data' argument to walk_tree.
18746 (copy_if_shared): New function.
18747 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
18748 (unmark_visited): New function.
18749 (unshare_body): Call copy_if_shared instead of doing it manually.
18750 (unvisit_body): Call unmark_visited instead of doing it manually.
18751
18752 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
18753
18754 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
18755 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
18756 * hooks.c: Likewise.
18757 * target-def.h (TARGET_FOLD_BUILTIN): Define to
18758 hook_tree_tree_int_treep_bool_null.
18759 * target.h (struct gcc_target): Update signature of fold_builtin
18760 field.
18761 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
18762 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
18763 instead of the call expression.
18764 (fold_builtin_call_array): Pass n and argarray directly.
18765 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
18766 consing a list.
18767 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
18768 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
18769 `i' and use it in place of `arity'.
18770 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
18771 Dereference `args' directly.
18772 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
18773
18774 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18775
18776 * doc/sourcebuild.texi (Effective-Target Keywords): Document
18777 3dnow, sse3, sse2.
18778 (Directives): Document optional dg-require-effective-target
18779 selector.
18780
18781 2010-05-19 Richard Guenther <rguenther@suse.de>
18782
18783 PR lto/44196
18784 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
18785
18786 2010-05-19 Richard Guenther <rguenther@suse.de>
18787
18788 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
18789 * common.opt (fwhopr=): New.
18790 * opts.c (common_handle_option): Handle OPT_fwhopr.
18791 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
18792 * collect2.c (main): Match -fwhopr*.
18793 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
18794 Execute ltrans stage in parallel when jobs is bigger than 1.
18795
18796 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18797
18798 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
18799 pentiumpro on Solaris 8/x86 with Sun as.
18800 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
18801 hidden alias bug.
18802 (gcc_cv_as_ix86_quad): Check for .quad directive.
18803 * configure: Regenerate.
18804 * config.in: Regenerate.
18805 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
18806
18807 2010-05-19 Martin Jambor <mjambor@suse.cz>
18808
18809 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
18810 also for indirect edges. Actual printing moved...
18811 (ipa_print_node_jump_functions_for_edge): ...here.
18812 (ipa_compute_jump_functions): Renamed to
18813 ipa_compute_jump_functions_for_edge and made static.
18814 (ipa_compute_jump_functions): New function.
18815 (make_edge_direct_to_target): Check if the number of arguments on
18816 the newly direct edge is the same as the number of parametrs of
18817 the callee.
18818 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
18819 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
18820 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
18821 analysis functions unconditionally, call the new
18822 ipa_analyze_params_uses on the node instead of every edge.
18823
18824 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
18825
18826 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
18827 to tree.
18828 (dump_mem_ref): Adopt debug code to handle a tree as step. This
18829 also checks for a constant int vs. non-constant but
18830 loop-invariant steps.
18831 (find_or_create_group): Change the sort algorithm to only consider
18832 steps that are constant ints.
18833 (idx_analyze_ref): Adopt code to handle a tree instead of a
18834 HOST_WIDE_INT for step.
18835 (gather_memory_references_ref): Handle tree instead of int and be
18836 prepared to see a NULL_TREE.
18837 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
18838 prefetches if the step cannot be calculated at compile time.
18839 (issue_prefetch_ref): Issue prefetches for non-constant but
18840 loop-invariant steps.
18841
18842 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
18843
18844 Revert:
18845 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
18846
18847 * tree.h (build_call_list): Remove.
18848 * tree.c (build_call_list): Remove.
18849
18850 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
18851
18852 * tree.h (build_call_list): Remove.
18853 * tree.c (build_call_list): Remove.
18854
18855 2010-05-18 Jan Hubicka <jh@suse.cz>
18856
18857 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
18858
18859 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
18860
18861 PR rtl-optimization/43332
18862 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
18863
18864 2010-05-18 Anatoly Sokolov <aesok@post.ru>
18865
18866 * tree.h (build_int_cstu): Implement as static inline.
18867 * tree.c (build_int_cstu): Remove function.
18868 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
18869 sign extended.
18870
18871 2010-05-18 Richard Guenther <rguenther@suse.de>
18872
18873 PR lto/44143
18874 * lto-wrapper.c (verbose): New variable. Initialize from -v.
18875 (debug): Initialize from -save-temps.
18876 (collect_execute): Print command-line when verbose.
18877 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
18878 for ltrans invocation. Produce -dumpbase flag again.
18879 (process_args): Remove.
18880 (main): Simplify.
18881 * collect2.c (maybe_run_lto_and_relink): Only pass object
18882 files to lto-wrapper.
18883 * gcc.c (LINK_COMMAND_SPEC): Likewise.
18884
18885 2010-05-18 Jan Hubicka <jh@suse.cz>
18886
18887 * opts.c (decode_options): Do not disable whopr at ipa_cp.
18888 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
18889
18890 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
18891
18892 PR lto/44184
18893 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
18894 in a GIMPLE_ASM.
18895 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
18896 in a GIMPLE_ASM.
18897
18898 2010-05-18 Jakub Jelinek <jakub@redhat.com>
18899
18900 PR debug/41371
18901 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
18902 rtx_equal_p inline.
18903
18904 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
18905
18906 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
18907 lto-macho as lto_binary_reader.
18908
18909 * darwin.c (darwin_asm_named_section): Do not add assembler comment
18910 after .section directive; just print it before the directive instead.
18911
18912 2010-05-17 Jan Hubicka <jh@suse.cz>
18913
18914 * cgraph.c (cgraph_create_virtual_clone): Only check
18915 versionable_function_p when not in wpa and checking is enabled.
18916 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
18917 there are no more functions to materialize.
18918
18919 2010-05-17 Jan Hubicka <jh@suse.cz>
18920
18921 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
18922 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
18923 New functions.
18924 (output_cgraph): Call output_cgraph_opt_summary.
18925 (input_cgrpah): Call input_cgraph_opt_summary.
18926 (output_cgraph_opt_summary_p, output_node_opt_summary,
18927 input_node_opt_summary, input_cgraph_opt_section): New functions.
18928 * lto-section-in.c (lto_section_name): Add cgraphopt.
18929 * tree-inline.c (tree_function_versioning): Handle parm_num.
18930 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
18931 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
18932
18933 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
18934
18935 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
18936 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
18937 the insn to prefetch ratio heuristic to loops with known trip count.
18938
18939 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
18940
18941 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
18942 (schedule_prefetches): Do not generate a prefetch if the unroll factor
18943 is far from what is required by the prefetch.
18944
18945 2010-05-17 Jan Hubicka <jh@suse.cz>
18946
18947 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
18948 (ipcp_estimate_growth): Likewise.
18949 (ipcp_const_param_count): Likewise.
18950 (ipcp_insert_stage): Likewise.
18951 * ipa-prop.c (visit_load_for_mod_analysis): New function.
18952 (visit_store_addr_for_mod_analysis): Set used flag.
18953 (ipa_detect_param_modifications): Set used flag for SSE params;
18954 update use of walk_stmt_load_store_addr_ops.
18955 (ipa_print_node_params): Print used flag.
18956 (ipa_write_node_info): Stream used flag.
18957 (ipa_read_node_info): Likewise.
18958 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
18959 (ipa_is_param_used): New function.
18960 (lto_ipa_fixup_call_notes): Remove unused declaration.
18961
18962 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18963
18964 PR target/44074
18965 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
18966 * configure: Regenerate.
18967 * config.in: Regenerate.
18968 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
18969 !HAVE_AS_IX86_REP_LOCK_PREFIX.
18970 Don't emit whitespace.
18971 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
18972 (*rep_movsi): Likewise.
18973 (*rep_movsi_rex64): Likewise.
18974 (*rep_movqi): Likewise.
18975 (*rep_movqi_rex64): Likewise.
18976 (*rep_stosdi_rex64): Likewise.
18977 (*rep_stossi): Likewise.
18978 (*rep_stossi_rex64): Likewise.
18979 (*rep_stosqi): Likewise.
18980 (*rep_stosqi_rex64): Likewise.
18981 (*cmpstrnqi_nz_1): Use {%;} after repz.
18982 (*cmpstrnqi_nz_rex_1): Likewise.
18983 (*cmpstrnqi_1): Likewise.
18984 (*cmpstrnqi_rex_1): Likewise.
18985 (*strlenqi_1): Use {%;} after repnz.
18986 (*strlenqi_rex_1): Likewise.
18987 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
18988 (*sync_compare_and_swap<mode>): Likewise.
18989 (sync_double_compare_and_swap<mode>): Likewise.
18990 (*sync_double_compare_and_swapdi_pic): Likewise.
18991 (sync_old_add<mode>): Likewise.
18992 (sync_add<mode>): Likewise.
18993 (sync_sub<mode>): Likewise.
18994 (sync_<code><mode>): Likewise.
18995
18996 2010-05-17 Martin Jambor <mjambor@suse.cz>
18997
18998 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
18999 otr_token and polymorphic.
19000 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
19001 (cgraph_clone_edge): Copy the above fields.
19002 * tree.c (get_binfo_at_offset): New function.
19003 * tree.h (get_binfo_at_offset): Declare.
19004 * ipa-prop.h (enum jump_func_type): Added known_type jump function
19005 type, reordered items, updated comments.
19006 (union jump_func_value): Added base_type field, reordered fields.
19007 (enum ipa_lattice_type): Moved down in the file.
19008 (struct ipa_param_descriptor): New field polymorphic.
19009 (ipa_is_param_polymorphic): New function.
19010 * ipa-prop.c: Include gimple.h and gimple-fold.h.
19011 (ipa_print_node_jump_functions): Print known type jump functions.
19012 (compute_complex_pass_through): Renamed to...
19013 (compute_complex_assign_jump_func): this.
19014 (compute_complex_ancestor_jump_func): New function.
19015 (compute_known_type_jump_func): Likewise.
19016 (compute_scalar_jump_functions): Create known type and complex ancestor
19017 jump functions.
19018 (ipa_note_param_call): New parameter polymorphic, set the corresponding
19019 flag in the call note accordingly.
19020 (ipa_analyze_call_uses): Renamed to...
19021 (ipa_analyze_indirect_call_uses): this. New parameter target, define
19022 variable var only in the block where it is used.
19023 (ipa_analyze_virtual_call_uses): New function.
19024 (ipa_analyze_call_uses): Likewise.
19025 (combine_known_type_and_ancestor_jfs): Likewise.
19026 (update_jump_functions_after_inlining): Implemented handling of a
19027 number of new jump function types combination.
19028 (print_edge_addition_message): Removed.
19029 (make_edge_direct_to_target): New function.
19030 (try_make_edge_direct_simple_call): Likewise.
19031 (try_make_edge_direct_virtual_call): Likewise.
19032 (update_call_notes_after_inlining): Renamed to...
19033 (update_indirect_edges_after_inlining): this. Moved edge creation for
19034 indirect calls to try_make_edge_direct_simple_call, also calls
19035 try_make_edge_direct_virtual_call for virtual calls.
19036 (ipa_print_node_params): Changed the header message.
19037 (ipa_write_jump_function): Stream also known type jump functions.
19038 (ipa_read_jump_function): Likewise.
19039 (ipa_write_indirect_edge_info): Stream new fields in
19040 cgraph_indirect_call_info.
19041 (ipa_read_indirect_edge_info): Likewise.
19042 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
19043 GIMPLE_FOLD_H.
19044
19045 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19046
19047 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
19048
19049 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
19050
19051 * tree.h (CALL_EXPR_ARGS): Delete.
19052 (call_expr_arglist): Delete.
19053 * tree.c (call_expr_arglist): Delete.
19054 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
19055 targetm.fold_builtin.
19056 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
19057 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
19058 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
19059 arglist parameter. Use CALL_EXPR_ARG.
19060 (picochip_expand_builtin_3op): Likewise.
19061 (picochip_expand_builtin_2opvoid): Likewise.
19062 (picochip_expand_array_get): Likewise.
19063 (picochip_expand_array_put): Likewise.
19064 (picochip_expand_array_testport): Likewise.
19065 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
19066 rather than arglist.
19067 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
19068 CALL_EXPR_ARGS.
19069 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
19070 than TREE_VALUE and TREE_CHAIN.
19071 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
19072 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
19073 the arglist.
19074
19075 2010-05-17 Jakub Jelinek <jakub@redhat.com>
19076
19077 PR bootstrap/42347
19078 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
19079 to have no fallthru edge.
19080
19081 PR middle-end/44102
19082 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
19083 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
19084 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
19085 add BARRIER after previous bb if needed.
19086
19087 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
19088
19089 * tree.c (build_function_type_list_1): Remove bogus assert condition.
19090
19091 2010-05-17 Alan Modra <amodra@gmail.com>
19092
19093 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
19094 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
19095 with copy_reg rtx param.
19096 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
19097 Correct cases where code for ABI_V4 did not initialise the reg
19098 used to access frame. Also leave frame_reg_rtx as sp for large
19099 frames that save no regs.
19100
19101 2010-05-17 Martin Jambor <mjambor@suse.cz>
19102
19103 PR middle-end/44133
19104 * tree-sra.c (create_access_replacement): New parameter rename, mark
19105 the replaement for renaming only when it is true.
19106 (get_access_replacement): Pass true in the rename parameter of
19107 create_access_replacement.
19108 (get_unrenamed_access_replacement): New function.
19109 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
19110 replacement declaration from it.
19111
19112 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
19113
19114 * function.c (try_fit_stack_local, add_frame_space): New static
19115 functions.
19116 (assign_stack_local_1): Use them. Look for opportunities to use
19117 space previously wasted on alignment.
19118 * function.h (struct frame_space): New.
19119 (struct rtl_data): Add FRAME_SPACE_LIST member.
19120 * reload1.c (something_was_spilled): New static variable.
19121 (alter_reg): Set it.
19122 (reload): Test it in addition to testing if the frame size changed.
19123
19124 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
19125
19126 * config/s390/s390.c: Define sane prefetch settings and activate
19127 flag_prefetch_loop_arrays on -O3.
19128 * config/s390/s390.h: Declare that read can use write prefetch.
19129
19130 2010-05-17 Jakub Jelinek <jakub@redhat.com>
19131
19132 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
19133 build.
19134
19135 2010-05-16 Jan Hubicka <jh@suse.cz>
19136
19137 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
19138 function body; do not check stdarg field of struct function.
19139
19140 2010-05-16 Jan Hubicka <jh@suse.cz>
19141
19142 * cgraph.c (dump_cgraph_node): Dump versionable flag.
19143 * cgraph.h (cgraph_local_info): Add versionable flag.
19144 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
19145 (ipcp_versionable_function_p): Use it.
19146 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
19147 versionable flag.
19148
19149 2010-05-16 Jan Hubicka <jh@suse.cz>
19150
19151 * cgraph.c (cgraph_clone_node): Take decl argument and insert
19152 clone into hash when it is different from orig.
19153 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
19154 * cgraph.h (cgraph_clone_node): Update prototype.
19155 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
19156 (lto_cgraph_encoder_delete): Delete body map.
19157 (lto_cgraph_encoder_size): Move to header.
19158 (lto_cgraph_encoder_encode_body_p,
19159 lto_set_cgraph_encoder_encode_body): New.
19160 (lto_output_node): Do not take written_decls argument; output clone_of
19161 pointer.
19162 (add_node_to): Add include_body_argument; call
19163 lto_set_cgraph_encoder_encode_body on master of the clone.
19164 (add_references): Update use of add_node_to.
19165 (compute_ltrans_boundary): Likewise.
19166 (output_cgraph): Do not create written_decls bitmap.
19167 (input_node): Take nodes argument; stream in clone_of correctly.
19168 (input_cgraph_1): Update use of input_node.
19169 * lto-streamer-out.c (lto_output): Use encoder info to decide
19170 what bodies to output.
19171 * ipa-inline.c (cgraph_clone_inlined_nodes,
19172 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
19173 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
19174 (lto_cgraph_encoder_size): Define here.
19175 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
19176 Declare.
19177
19178 2010-05-16 Richard Guenther <rguenther@suse.de>
19179
19180 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
19181 -fipa-type-escape.
19182 * ipa-type-escape.c (gate_type_escape_vars): Run when
19183 -fipa-struct-reorg runs.
19184 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
19185 * common.opt (fipa-type-escape): Remove.
19186
19187 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
19188
19189 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
19190 (decode_options): Likewise.
19191 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
19192
19193 2010-05-16 Jan Hubicka <jh@suse.cz>
19194
19195 * ipa.c (function_and_variable_visibility): Also bring local all
19196 aliases.
19197
19198 2010-05-16 Richard Guenther <rguenther@suse.de>
19199
19200 * alias.c (nonoverlapping_memrefs_p): Remove use of
19201 IPA type-escape information.
19202
19203 2010-05-16 Joseph Myers <joseph@codesourcery.com>
19204
19205 * c-common.c (c_common_reswords): Add _Static_assert for C.
19206 * c-parser.c (c_token_starts_declaration,
19207 c_parser_next_token_starts_declaration,
19208 c_parser_static_assert_declaration_no_semi,
19209 c_parser_static_assert_declaration): New.
19210 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
19211 Handle static assertions if static_assert_ok.
19212 (c_parser_external_declaration, c_parser_declaration_or_fndef,
19213 c_parser_compound_statement_nostart, c_parser_label,
19214 c_parser_for_statement, c_parser_objc_methodprotolist,
19215 c_parser_omp_for_loop): All callers of
19216 c_parser_declaration_or_fndef changed.
19217 (c_parser_struct_declaration): Handle static assertions.
19218 (c_parser_compound_statement_nostart): Use
19219 c_parser_next_token_starts_declaration and
19220 c_token_starts_declaration to detect start of declarations.
19221 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
19222 Likewise.
19223
19224 2010-05-16 Anatoly Sokolov <aesok@post.ru>
19225
19226 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19227 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19228 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19229 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19230 (mmix_function_outgoing_value): Rename to...
19231 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
19232 (mmix_function_value_regno_p): Make static.
19233 (mmix_libcall_value): New function.
19234 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
19235 mmix_function_value_regno_p): Remove declaration.
19236
19237 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
19238
19239 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
19240 BUILT_IN_ALLOCA if stack checking is enabled.
19241
19242 2010-05-16 Richard Guenther <rguenther@suse.de>
19243
19244 * var-tracking.c (vars_copy_1): Inline ...
19245 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
19246 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
19247 (variable_merge_over_cur): Adjust. Merge asserts.
19248 (variable_merge_over_src): Likewise.
19249 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
19250 (variable_post_merge_new_vals): Merge asserts.
19251 (variable_post_merge_perm_vals): Likewise.
19252 (find_mem_expr_in_1pdv): Likewise.
19253 (dataflow_set_different_value): Remove.
19254 (onepart_variable_different_p): Merge asserts.
19255 (variable_different_p): Likewise.
19256 (dataflow_set_different_1): Inline ...
19257 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
19258 (emit_notes_for_differences_1): Merge asserts.
19259
19260 2010-05-16 Richard Guenther <rguenther@suse.de>
19261
19262 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
19263 * optabs.c (libfunc_decl_hash): Likewise.
19264 * varasm.c (emutls_decl): Likewise.
19265
19266 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
19267
19268 * c-decl.c: Don't include gimple.h.
19269 (merge_decls): Do not copy gimple_body.
19270
19271 2010-05-15 Jason Merrill <jason@redhat.com>
19272
19273 * c.opt: Add -fnothrow-opt.
19274
19275 2010-05-15 Jan Hubicka <jh@suse.cz>
19276
19277 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
19278 analyzed.
19279 * passes.c (ipa_write_summaries): Write all analyzed nodes.
19280
19281 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
19282
19283 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
19284 * Makefile.in: Add it.
19285 Fix all other Makefile dependencies for changes below.
19286 * tree.h: Include it instead of defining VEC primitives here.
19287 * gimple.h: Likewise.
19288 * rtl.h: Likewise.
19289 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
19290 * except.h: Include vecir.h, break dependence on tree.h.
19291
19292 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
19293 Move from here...
19294 * tree-iterator.c: ...to here.
19295 * tree-iterator.h: Fix file introduction comment. Add extern markers.
19296
19297 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
19298 tm_p.h.
19299 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
19300 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
19301 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
19302 tree-mudflap.h, and target.h.
19303 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
19304 predict.h, tree-inline.h, gimple.h, and langhooks.h.
19305 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
19306 Add FIXME for why gimple.h is still included (should be unnecessary
19307 since GCC 4.5 gimplification unit-at-a-time).
19308 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
19309 * c-pragma.c: Add FIXME for why function.h needs to be included just
19310 for cfun, at front-end level.
19311 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
19312 Do not include ggc.h, but include vecprim.h for VEC(char).
19313 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
19314 Explain why target.h is included.
19315 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
19316 Explain why gimple.h is included.
19317 * c-ppoutput.c: Do not include tm.h.
19318 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
19319 * c-parses.c: Explain why rtl.h is included, and that this (and only
19320 this) is also why tm.h must be included.
19321 Do not include except.h.
19322 * c-lang.c: Do not include ggc.h.
19323
19324 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
19325
19326 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
19327
19328 2010-05-15 Joseph Myers <joseph@codesourcery.com>
19329
19330 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
19331 unions by default if those structs and unions have no tags. Do
19332 not condition anonymous struct and unions handling on flag_iso.
19333 Allow anonymous structs and unions for C1X.
19334 (finish_struct): Do not diagnose lack of named fields when
19335 anonymous structs and unions present for C1X. Accept flexible
19336 array members in structure with anonymous structs or unions but no
19337 directly named fields.
19338 * doc/extend.texi (Unnamed Fields): Update.
19339
19340 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
19341
19342 * gimple.h (compare_field_offset): Rename into...
19343 (gimple_compare_field_offset): ...this.
19344 * gimple.c (compare_field_offset): Rename into...
19345 (gimple_compare_field_offset): ...this. Compare the full access if
19346 the offset is self-referential.
19347 (gimple_types_compatible_p): Adjust for above renaming.
19348 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
19349 DECL_NONADDRESSABLE_P flag of fields before merging them.
19350
19351 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
19352
19353 * tree.h (ctor_to_list): Delete.
19354 * tree.c (ctor_to_list): Delete.
19355
19356 2010-05-15 Jan Hubicka <jh@suse.cz>
19357
19358 * ipa-reference.c: Include toplev.h
19359 (is_proper_for_analysis): Only add to all_module_statics
19360 if it is allocated.
19361 (write_node_summary_p, stream_out_bitmap,
19362 ipa_reference_write_optimization_summary,
19363 ipa_reference_read_optimization_summary): New.
19364 (struct ipa_opt_pass_d pass_ipa_reference): Add
19365 optimization summary streaming.
19366 * lto-cgraph.c (referenced_from_this_partition_p,
19367 reachable_from_this_partition_p): New functions.
19368 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
19369 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
19370 * opts.c (decode_options): Enable ipa_reference.
19371 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
19372 * lto-streamer.h (referenced_from_this_partition_p,
19373 reachable_from_this_partition_p): Declare.
19374
19375 2010-05-15 Richard Guenther <rguenther@suse.de>
19376
19377 PR tree-optimization/44038
19378 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
19379 taking the address of a V_C_E of a constant.
19380
19381 2010-05-14 Jan Hubicka <jh@suse.cz>
19382
19383 * tree.h (memory_identifier_string): Remove.
19384 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
19385 (ipa_reference_global_vars_info_d): Remove statics_not_read and
19386 statics_not_written.
19387 (ipa_reference_optimization_summary_d): New structure.
19388 (ipa_reference_optimization_summary_t): New type and vector.
19389 (ipa_reference_vars_info_d): Embedd structures instead of using
19390 pointers.
19391 (reference_vars_to_consider): Remove out of GGC space.
19392 (module_statics_escape): Remove.
19393 (global_info_obstack): Rename to ...
19394 (optimization_summary_obstack): ... this one.
19395 (initialization_status_t): Remove.
19396 (memory_identifier_string): Remove.
19397 (get_reference_vars_info): Fix indenting.
19398 (set_reference_vars_info): Likewise.
19399 (get_reference_optimization_summary): New.
19400 (set_reference_optimization_summary): New.
19401 (get_global_reference_vars_info): Remove.
19402 (ipa_reference_get_read_global): Remove.
19403 (ipa_reference_get_written_global): Remove.
19404 (ipa_reference_get_not_read_global): Update.
19405 (ipa_reference_get_not_written_global): Update.
19406 (is_proper_for_analysis): Outlaw addressable.
19407 (propagate_bits): Update for new datastructures.
19408 (analyze_variable): Remove.
19409 (init_function_info): Update for new datastructures.
19410 (clean_function_local_data): Remove.
19411 (clean_function): Remove.
19412 (copy_global_bitmap): Use optimizations_summary_obstack.
19413 (duplicate_node_data): Duplicate optimization summary only.
19414 (remove_node_data): Remove optimization summary only.
19415 (generate_summary): Do not analyze variables; do not compute
19416 module_statics_escape; do not prune solutions by it.
19417 (read_write_all_from_decl): Fix typos in comments.
19418 (propagate): Doscover readonly and nonaddressable first;
19419 update for new datastructures; share global bitmaps.
19420 * ipa-reference.h (ipa_reference_get_read_global,
19421 ipa_reference_get_written_global): Remove.
19422 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
19423 * Makefile.in: Remove ipa-refereference from GT files.
19424
19425 2010-05-14 Jakub Jelinek <jakub@redhat.com>
19426
19427 PR debug/44112
19428 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
19429 for all SYMBOL_REF_DECLs.
19430
19431 2010-05-14 Jan Hubicka <jh@suse.cz>
19432
19433 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
19434 (varpool_all_refs_explicit_p): New inline function.
19435 * ipa-reference.c: Update comment.
19436 (module_statics_written): Remove.
19437 (get_static_decl): Remove.
19438 (ipa_init): Do not initialize module_statics_written.
19439 (analyze_function): Likewise.
19440 (generate_summary): Likewise; do not compute module_statics_readonly
19441 and do not update variable flags.
19442 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
19443 * ipa.c: Inlucde flags.h
19444 (cgraph_local_node_p): New.
19445 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
19446 promote functions to local.
19447 (ipa_discover_readonly_nonaddressable_vars): New function.
19448 (function_and_variable_visibility): Use cgraph_local_node_p.
19449 * varpool.c (varpool_finalize_decl): Set force_output for
19450 DECL_PRESERVE_P vars.
19451
19452 2010-05-14 Jan Hubicka <jh@suse.cz>
19453
19454 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
19455
19456 2010-05-14 Richard Guenther <rguenther@suse.de>
19457
19458 PR tree-optimization/44119
19459 * tree-ssa-pre.c (eliminate): Properly mark replacement of
19460 a PHI node necessary.
19461
19462 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
19463
19464 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
19465
19466 2010-05-14 Jason Merrill <jason@redhat.com>
19467
19468 PR c++/44127
19469 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
19470 (gimple_call_set_nothrow): New.
19471 * gimple.c (gimple_build_call_from_tree): Call it.
19472 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
19473
19474 PR c++/44127
19475 * gimplify.c (gimplify_seq_add_stmt): No longer static.
19476 * gimple.h: Declare it.
19477 * gimple.c (gimple_build_eh_filter): No ops.
19478
19479 2010-05-14 Jan Hubicka <jh@suse.cz>
19480
19481 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
19482 nodes already in queue.
19483 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
19484 re-enqueueing node.
19485
19486 2010-05-14 Jakub Jelinek <jakub@redhat.com>
19487
19488 PR debug/44136
19489 * cfgexpand.c (expand_debug_expr): If non-memory op0
19490 has BLKmode, return NULL.
19491
19492 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
19493
19494 * config.gcc: Add support for --with-cpu option for bdver1.
19495 * config/i386/i386.h (TARGET_BDVER1): New macro.
19496 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
19497 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
19498 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
19499 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
19500 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
19501 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
19502 (processor_type): Add PROCESSOR_BDVER1.
19503 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
19504 processor_type in config/i386/i386.h.
19505 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
19506 movaps <reg, reg> instead of movapd <reg, reg> when replacing
19507 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
19508 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
19509 to emit packed xor instead of packed double/packed integer
19510 xor for SSE and AVX when moving a zero value.
19511 * config/i386/sse.md: Add check for
19512 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
19513 movapd/movdqa for SSE and AVX.
19514 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
19515 single logical operations i.e and, or and xor instead of packed double
19516 logical operations for SSE and AVX.
19517 * config/i386/i386-c.c (ix86_target_macros_internal):
19518 Add PROCESSOR_BDVER1.
19519 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
19520 (has_fma4, has_xop): New.
19521 * config/i386/i386.c (bdver1_cost): New variable.
19522 (m_BDVER1): New macro.
19523 (m_AMD_MULTIPLE): Add m_BDVER1.
19524 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
19525 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
19526 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
19527 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
19528 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
19529 x86_tune_sse_partial_reg_dependency,
19530 x86_tune_sse_unaligned_load_optimal,
19531 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
19532 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
19533 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
19534 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
19535 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
19536 Enable/disable for bdver1.
19537 (processor_target_table): Add bdver1_cost.
19538 (cpu_names): Add bdver1.
19539 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
19540 processor_alias_table.
19541 (ix86_expand_vector_move_misalign): Change.
19542 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
19543 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
19544 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
19545 of movupd/movdqu for SSE and AVX.
19546 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
19547 (ix86_tune_adjust_cost): Add code for bdver1.
19548 (standard_sse_constant_opcode): Add check for
19549 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
19550 of packed double xor for SSE and AVX.
19551
19552 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
19553
19554 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
19555 result to unsigned.
19556
19557 2010-05-14 Tristan Gingold <gingold@adacore.com>
19558
19559 * toplev.c (default_debug_hooks): Remove this variable.
19560 (process_options): Remove assignments to default_debug_hooks.
19561
19562 2010-05-14 Martin Jambor <mjambor@suse.cz>
19563
19564 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
19565 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
19566 * langhooks.h (struct lang_hooks_for_decls): Removed field
19567 fold_obj_type_ref.
19568 * tree.c (free_lang_data): Remove assignment to
19569 lang_hooks.fold_obj_type_ref.
19570 * tree.def (OBJ_TYPE_REF): Update comment.
19571
19572 2010-05-14 Richard Guenther <rguenther@suse.de>
19573
19574 PR tree-optimization/44124
19575 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
19576
19577 2010-05-14 Alan Modra <amodra@gmail.com>
19578
19579 PR target/44075
19580 * config/rs6000/rs6000.c (struct machine_function): Reorder
19581 fields for better packing. Add lr_save_state.
19582 (rs6000_ra_ever_killed): Return lr_save_state if set.
19583 (rs6000_emit_eh_reg_restore): Set lr_save_state.
19584
19585 2010-05-13 Jan Hubicka <jh@suse.cz>
19586
19587 * varpool.c (decide_is_variable_needed): Drop code checking
19588 TREE_SYMBOL_REFERENCED.
19589
19590 2010-05-13 Jan Hubicka <jh@suse.cz>
19591
19592 * final.c (output_addr_const): Do not call mark_decl_referenced.
19593 * cgraphunit.c (process_function_and_variable_attributes): Use
19594 mark_needed_node dirrectly.
19595 (assemble_thunk): Do not call mark_decl_referenced.
19596
19597 2010-05-13 Anatoly Sokolov <aesok@post.ru>
19598
19599 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
19600
19601 2010-05-13 Jeff Law <law@redhat.com>
19602
19603 * ira-conflicts.c (print_allocno_conflicts): New function broken out
19604 from...
19605 (print_conflicts): Call print_allocno_conflicts.
19606
19607 2010-05-13 Jakub Jelinek <jakub@redhat.com>
19608
19609 PR debug/44104
19610 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
19611 if it is NULL.
19612
19613 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
19614
19615 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
19616 t-mingw-w64 or t-mingw-w32 for multilib configuration.
19617 * config/i386/t-mingw-w32: New.
19618 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
19619
19620 2010-05-13 Martin Jambor <mjambor@suse.cz>
19621
19622 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
19623 gimple-fold.c).
19624 * gimple-fold.c (get_base_binfo_for_type): New function.
19625 (gimple_get_relevant_ref_binfo): Likewise.
19626 (gimple_fold_obj_type_ref_known_binfo): Likewise.
19627 (gimple_fold_obj_type_ref): Likewise.
19628 (fold_gimple_call): Simplify condition for folding virtual calls
19629 and call gimple_fold_obj_type_ref.
19630 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
19631 (gimple_fold_obj_type_ref_known_binfo): Likewise.
19632
19633 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
19634
19635 * config/rs6000/rs6000-protos.h
19636 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
19637 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
19638 (rs6000_debug_mode_dependent_address)
19639 (rs6000_mode_dependent_address_ptr): Likewise.
19640
19641 2010-05-13 Jakub Jelinek <jakub@redhat.com>
19642
19643 PR debug/43983
19644 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
19645 by SRA.
19646 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
19647 * tree-sra.c (create_access_replacement): Call unshare_expr before
19648 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
19649 * dwarf2out.c: Include tree-flow.h.
19650 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
19651 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
19652 Handle DW_OP_bit_piece.
19653 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
19654 construct_piece_list, adjust_piece_list): New functions.
19655 (add_var_loc_to_decl): Handle SRA optimized variables.
19656 Adjust for var_loc_note to loc field renaming.
19657 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
19658 in VAR_LOCATION note.
19659 (new_loc_descr_op_bit_piece): New function.
19660 (dw_sra_loc_expr): New function.
19661 (dw_loc_list): Use it. Don't handle the last range after the
19662 loop, handle it inside of the loop. Adjust for var_loc_note
19663 to loc field renaming.
19664 (add_location_or_const_value_attribute): Only special case
19665 single entry loc lists if loc is NOTE_P. Adjust for
19666 var_loc_note to loc field renaming.
19667 (dwarf2out_var_location): Don't set newloc->var_loc_note
19668 and newloc->next here.
19669
19670 2010-05-12 Jan Hubicka <jh@suse.cz>
19671
19672 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
19673 flag.
19674 * cgraph.h (cgraph_only_called_directly_p,
19675 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
19676 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
19677 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
19678 (assemble
19679 * ipa.c (cgraph_remove_unreachable_nodes): Use
19680 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
19681 flags.
19682 * tree-inline.c (copy_bb): Check address_taken flag.
19683 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
19684 externally_visible flag.
19685
19686 2010-05-12 Jason Merrill <jason@redhat.com>
19687
19688 PR bootstrap/44048
19689 PR target/44099
19690 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
19691 * sdbout.c (plain_type_1): Likewise.
19692 * dwarf2out.c (is_base_type): Likewise.
19693 (gen_type_die_with_usage): Likewise. Generate
19694 DW_TAG_unspecified_type for any LANG_TYPE.
19695
19696 2010-05-12 Jan Hubicka <jh@suse.cz>
19697
19698 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
19699 indrect edges too.
19700 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
19701 (cgraph_clone_edge): Update.
19702 (cgraph_node_remove_callees): Remove indirect calls too.
19703 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
19704 (cgraph_create_indirect_edge): Update prototype.
19705 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
19706 is_proper_for_analysis.
19707 (add_new_function, visited_nodes, function_insertion_hook_holder,
19708 get_local_reference_vars_info, mark_address_taken, mark_address,
19709 mark_load, mark_store, check_asm_memory_clobber, check_call,
19710 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
19711 (ipa_init): Do not initialize visited_nodes;
19712 function_insertion_hook_holder.
19713 (analyze_variable): Rewrite.
19714 (analyze_function): Rewrite.
19715 (copy_local_bitmap): Remove.
19716 (duplicate_node_dat): Do not duplicate local info.
19717 (generate_summary): Simplify to only walk cgraph.
19718 (write_node_summary_p, ipa_reference_write_summary,
19719 ipa_reference_read_summary): Remove.
19720 (propagate): Do not remove function insertion;
19721 generate summary.
19722 (pass_ipa_reference): NULLify summary handling fields.
19723 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
19724 (input_edge): Input ecf_flags.
19725 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
19726 (update_indirect_edges_after_inlining): Ignore edges with unknown
19727 param.
19728
19729 2010-05-12 Sriraman Tallam <tmsriram@google.com>
19730
19731 * implicit-zee.c: New file.
19732 * tree-pass.h (pass_implicit_zee): Declare.
19733 * passes.c (init_optimization_passes): Add zee pass.
19734 * common.opt (fzee): New flag.
19735 * timevar.def (TV_ZEE): Define.
19736 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
19737 and beyond.
19738 * Makefile.in (implicit-zee.o): Add new build file.
19739
19740 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
19741 Nathan Froyd <froydnj@codesourcery.com>
19742
19743 * c-common.c (sync_resolve_params): Remove write-only variable.
19744
19745 2010-05-12 Anatoly Sokolov <aesok@post.ru>
19746
19747 * target.h (struct gcc_target): Add mode_dependent_address_p field.
19748 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
19749 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
19750 * targhooks.c (default_mode_dependent_address_p): New function.
19751 * targhooks.h (default_mode_dependent_address_p): Declare function.
19752 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
19753 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
19754 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
19755 target hook. Change return type to bool.
19756 * recog.h (mode_dependent_address_p): Change return type to bool.
19757
19758 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
19759 Nathan Froyd <froydnj@codesourcery.com>
19760
19761 * tree-mudflap.c (build_function_type_0, build_function_type_1,
19762 build_function_type_2, build_function_type_3): Remove.
19763 (mudflap_init): Use build_function_type_list.
19764
19765 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
19766 Nathan Froyd <froydnj@codesourcery.com>
19767
19768 * coverage.c (build_fn_info_value): Call build_constructor instead of
19769 build_constructor_from_list.
19770 (build_ctr_info_value): Likewise.
19771 (build_gcov_info): Likewise.
19772
19773 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
19774
19775 * tree.c (build_constructor): Compute TREE_CONSTANT for the
19776 resultant constructor.
19777 (build_constructor_single): Don't set TREE_CONSTANT.
19778 (build_constructor_from_list): Don't compute TREE_CONSTANT.
19779
19780 2010-05-12 Jan Hubicka <jh@suse.cz>
19781
19782 * cgraph.h (struct varpool_node): Add aux.
19783 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
19784 * varpool.c (varpool_remove_node): Do not remove initializer.
19785 (varpool_reset_queue): Export.
19786 (varpool_finalize_decl): Volatile vars are forced to be output.
19787 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
19788 replaced decl.
19789 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
19790 process_references, varpool_can_remove_if_no_refs): New functions.
19791 (cgraph_remove_unreachable_nodes): Handle variables too.
19792
19793 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
19794
19795 PR target/44088
19796 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
19797
19798 2010-05-12 Jakub Jelinek <jakub@redhat.com>
19799
19800 PR middle-end/44085
19801 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
19802 change value of ORT_TASK.
19803 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
19804 (omp_notice_threadprivate_variable): New function.
19805 (omp_notice_variable): Call it for threadprivate variables.
19806 If enclosing ctx is a task, print enclosing task rather than
19807 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
19808 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
19809 if task has untied clause.
19810
19811 PR debug/42278
19812 * dwarf2out.c (base_type_die): Don't add name attribute here.
19813 (modified_type_die): Instead of sizetype use
19814 its underlying original type. If a DW_TAG_base_type doesn't
19815 have name added, add __unknown__.
19816 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
19817 always call force_type_die instead.
19818
19819 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19820
19821 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
19822 for __stack_chk_guard.
19823
19824 2010-05-11 Jakub Jelinek <jakub@redhat.com>
19825
19826 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
19827 don't call start_source_file debug hook here...
19828 (finish_options): ... but here, after outputting predefined and
19829 command line defines and undefs.
19830
19831 PR middle-end/44071
19832 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
19833 no fallthru edge.
19834 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
19835 optimizing away empty bb with no successors, move over its
19836 footer chain to fallthru predecessor.
19837 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
19838 (rtl_split_edge): For asm goto call patch_jump_insn even if
19839 splitting fallthru edge.
19840
19841 PR c++/44059
19842 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
19843 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
19844 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
19845 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
19846 on DW.ref.* decls.
19847
19848 PR c++/44062
19849 * c-parser.c (c_parser_expression): Mark LHS of a comma
19850 expression as read if it is a decl, handled component or
19851 COMPOUND_EXPR with that on the RHS.
19852 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
19853 if it is a decl or handled component.
19854
19855 2010-05-11 Jan Hubicka <jh@suse.cz>
19856
19857 * lto-symtab.c (lto_symtab_free): New function.
19858 * lto-streamer.h (lto_symtab_free): Declare.
19859
19860 2010-05-11 Jan Hubicka <jh@suse.cz>
19861
19862 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
19863 that if function is needed it is reachable.
19864 (lto_output_node): See if it the function is reachable or referenced.
19865 (output_cgraph): Update call of lto_output_node.
19866 * lto-streamer.h (reachable_from_other_partition_p): Declare.
19867
19868 2010-05-11 Jan Hubicka <jh@suse.cz>
19869
19870 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
19871 Mark as used.
19872
19873 2010-05-11 Jan Hubicka <jh@suse.cz>
19874
19875 PR tree-optimize/44063
19876 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
19877 queue.
19878 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
19879 limits.
19880 (estimate_function_body_sizes): Compute sizes even when disregarding.
19881
19882 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
19883
19884 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
19885
19886 2010-05-11 Jan Hubicka <jh@suse.cz>
19887
19888 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
19889 into every boundary.
19890
19891 2010-05-11 Jan Hubicka <jh@suse.cz>
19892
19893 * matrix-reorg.c (matrix_reorg): Rebuild edges.
19894
19895 2010-05-11 Jan Hubicka <jh@suse.cz>
19896
19897 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
19898 lto_streamer_cache_delete): Put nodes into heap.
19899 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
19900 heap.
19901
19902 2010-05-11 Jan Hubicka <jh@suse.cz>
19903
19904 * cgraphbuild.c (cgraph_rebuild_references): New.
19905 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
19906 out extern inlines.
19907 * cgraph.h (cgraph_rebuild_references): Declare.
19908 * tree-inline.c (tree_function_versioning): Use it.
19909 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
19910
19911 2010-05-11 Jan Hubicka <jh@suse.cz>
19912
19913 * cgraph.c: Include ipa-utils.h
19914 (cgraph_create_virtual_clone): Update references.
19915 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
19916
19917 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
19918
19919 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
19920 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
19921 cache size.
19922
19923 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
19924
19925 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
19926
19927 2010-05-11 Jakub Jelinek <jakub@redhat.com>
19928
19929 * gcc.c (execute): For -### don't quote arguments that
19930 contain just alphanumerics and _/-. characters.
19931 * doc/invoke.texi: Document that change for -###.
19932
19933 PR debug/44023
19934 * df-problems.c (struct dead_debug): Add to_rescan field.
19935 (dead_debug_init): Clear to_rescan field.
19936 (dead_debug_finish): Rescan all debug insns in to_rescan
19937 bitmap and free the bitmap.
19938 (dead_debug_insert_before): Instead of rescanning debug insns
19939 immediately queue their rescanning until dead_debug_finish.
19940 (df_note_bb_compute): After dead_debug_add do continue instead
19941 of break.
19942
19943 2010-05-10 Jakub Jelinek <jakub@redhat.com>
19944
19945 PR debug/44028
19946 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
19947 clear also INSN_REG_USE_LIST.
19948
19949 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19950
19951 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
19952
19953 2010-05-10 Jan Hubicka <jh@suse.cz>
19954
19955 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
19956 commited change.
19957
19958 2010-05-10 Jan Hubicka <jh@suse.cz>
19959
19960 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
19961 Allocate encoders.
19962 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
19963 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
19964 (lto_streamer_cache_create): Init alloc pool.
19965 (lto_streamer_cache_delete): Free alloc pool.
19966 * lto-streamer.h: Include alloc pool.
19967 (lto_streamer_cache_d): Use alloc pool.
19968 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
19969
19970 2010-05-10 Jan Hubicka <jh@suse.cz>
19971
19972 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
19973 * cgraphbuild.c: Include except.h
19974 (record_type_list, record_eh_tables): New function.
19975 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
19976
19977 2010-05-10 Jan Hubicka <jh@suse.cz>
19978
19979 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
19980 __frame_dummy_init_array_entry, force_to_data): Attribute as used
19981 rather than unused.
19982
19983 2010-05-10 Michael Matz <matz@suse.de>
19984
19985 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
19986 (can_reassociate_p): Use FLOAT_TYPE_P.
19987 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
19988 (vect_force_simple_reduction): ... this.
19989 * tree-parloops.c (gather_scalar_reductions): Use
19990 vect_force_simple_reduction.
19991 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
19992 vect_is_simple_reduction, add modify argument, if true rewrite
19993 "a-b" into "a+(-b)".
19994 (vect_is_simple_reduction, vect_force_simple_reduction): New
19995 functions.
19996 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
19997
19998 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
19999 Vladimir Makarov <vmakarov@redhat.com>
20000
20001 PR rtl-optimization/44012
20002 * ira-build.c (remove_unnecessary_allocnos): Nullify
20003 regno_allocno_map of the removed allocno.
20004
20005 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20006
20007 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
20008 to /dev/null.
20009 * configure: Regenerate.
20010
20011 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20012
20013 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
20014 unused.
20015 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
20016 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
20017 support in Sun ld.
20018 * configure: Regenerate.
20019
20020 2010-05-10 Richard Guenther <rguenther@suse.de>
20021
20022 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
20023 marked if the entry identifier is marked.
20024
20025 2010-05-10 Richard Guenther <rguenther@suse.de>
20026
20027 * c-common.c (struct c_common_attributes): Add fnspec attribute.
20028 (handle_fnspec_attribute): New function.
20029 * gimple.h (gimple_call_return_flags): Declare.
20030 (gimple_call_arg_flags): Likewise.
20031 * gimple.c (gimple_call_arg_flags): New function.
20032 (gimple_call_return_flags): Likewise.
20033 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
20034 New argument flags.
20035 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
20036 return value flags.
20037 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
20038 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
20039 main work to ...
20040 (make_heapvar_for): ... this new function.
20041 (handle_rhs_call): Handle fnspec attribute argument specifiers.
20042 (handle_lhs_call): Likewise.
20043 (find_func_aliases): Adjust.
20044
20045 2010-05-10 Richard Guenther <rguenther@suse.de>
20046
20047 PR tree-optimization/44050
20048 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
20049
20050 2010-05-10 Wei Guozhi <carrot@google.com>
20051
20052 PR target/42879
20053 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
20054
20055 2010-05-09 Joseph Myers <joseph@codesourcery.com>
20056
20057 PR c/10676
20058 * c-typeck.c (lookup_field): Take a type directly. Update
20059 recursive calls.
20060 (build_component_ref): Update call to lookup_field.
20061 (set_init_label): Use lookup_field to find initialized field.
20062 Handle returned list of fields like a sequence of designators.
20063
20064 2010-05-09 Richard Guenther <rguenther@suse.de>
20065
20066 PR middle-end/44024
20067 * fold-const.c (tree_single_nonzero_warnv_p): Properly
20068 handle &FUNCTION_DECL.
20069
20070 2010-05-09 Joseph Myers <joseph@codesourcery.com>
20071
20072 PR c/4784
20073 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
20074 structures and unions recursively.
20075 (detect_field_duplicates): Move duplicate detection with a hash to
20076 detect_field_duplicates_hash. Always use a hash if anonymous
20077 structures or unions are present.
20078 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
20079 give errors.
20080
20081 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
20082
20083 PR target/44046
20084 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
20085 detect Atom, Core 2 and Core i7.
20086
20087 2010-05-09 Richard Guenther <rguenther@suse.de>
20088
20089 * gcc.c (store_arg): Handle temporary file deletion for
20090 joined arguments.
20091
20092 2010-05-09 Richard Guenther <rguenther@suse.de>
20093
20094 PR middle-end/44043
20095 * ipa-inline.c (estimate_function_body_sizes): Return after
20096 disregarding inline limits.
20097
20098 2010-05-09 Richard Guenther <rguenther@suse.de>
20099
20100 * gcc.c (store_arg): Revert last change.
20101
20102 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
20103
20104 PR middle-end/28685
20105 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
20106 (optimize_ops_list): Call it.
20107
20108 2010-05-08 Richard Guenther <rguenther@suse.de>
20109
20110 PR tree-optimization/44030
20111 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
20112 NECESSARY flag if we propagate from a inserted expression.
20113
20114 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
20115
20116 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
20117 domain types as equal if they are both PLACEHOLDER_EXPRs.
20118
20119 2010-05-08 Richard Guenther <rguenther@suse.de>
20120
20121 * lto-wrapper.c (run_gcc): Remove linker output from
20122 command line for LTRANS invocation.
20123
20124 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
20125
20126 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
20127 lto-macho as lto_binary_reader.
20128 * target.h (struct gcc_target): New hooks lto_start and lto_end.
20129 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
20130 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
20131 in lto_start and lto_end calls.
20132 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
20133 magic numbers.
20134 (scan_prog_file): Update is_elf_or_coff call.
20135 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
20136
20137 * collect2.c (main): Fix enum comparison.
20138
20139 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
20140 Add prototypes.
20141 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
20142 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
20143 and TARGET_ASM_LTO_END.
20144 * darwin.c: Include obstack.h and lto-streamer.h.
20145 (lto_section_names_offset, lto_section_names_obstack,
20146 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
20147 global variables.
20148 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
20149 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
20150 to a temporary file.
20151 (darwin_asm_lto_end): New function. Restore asm_out_file.
20152 (darwin_asm_named_section): For LTO sections, replace the name with
20153 the offset of the section name in a string table, and build this
20154 table.
20155 (darwin_file_start): Initialize global vars for LTO support.
20156 (darwin_file_end): If output to asm_out_file was redirected, append it
20157 to the proper asm_out_file here. Add the section names section.
20158
20159 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
20160
20161 * c-pragma.c (pending_weak_d, pending_weak): New.
20162 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
20163 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
20164 handle_pragma_weak): Update the uses of pending_weaks.
20165
20166 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20167
20168 PR documentation/44016
20169 * doc/standards.texi (Standards): Link to unversioned
20170 cxx0x_status.html page.
20171
20172 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
20173
20174 PR target/43708
20175 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
20176 in addition to TREE_USED, to avoid "set but unused" warnings.
20177
20178 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
20179
20180 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
20181 (is_loop_prefetching_profitable): Do not insert prefetches
20182 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
20183 times the prefetch ahead distance.
20184
20185 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
20186
20187 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
20188 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
20189 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
20190 the unroll_factor.
20191
20192 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
20193
20194 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
20195 a diagnostic info when the insn-to-mem ratio is too small.
20196
20197 2010-05-07 Richard Guenther <rguenther@suse.de>
20198
20199 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
20200 the linker plugin.
20201 (store_arg): Queue temp_filename for deletion instead of
20202 the whole argument.
20203
20204 2010-05-07 Richard Guenther <rguenther@suse.de>
20205
20206 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
20207 (run_gcc): Handle LTRANS phase invocation.
20208 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
20209
20210 2010-05-07 Jakub Jelinek <jakub@redhat.com>
20211
20212 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
20213 this is also meaningful on PARM_DECLs and RESULT_DECLs.
20214
20215 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20216
20217 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
20218
20219 2010-05-07 Richard Guenther <rguenther@suse.de>
20220
20221 PR tree-optimization/44020
20222 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
20223 code when PRE is not yet initialized.
20224
20225 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20226
20227 * config/mips/dbxmdebug.h: Remove.
20228 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
20229
20230 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
20231
20232 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
20233 with null pointer and also warn about ordered comparison of zero with
20234 pointer if -Wextra.
20235
20236 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
20237
20238 * graphite-blocking.c
20239 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
20240 * graphite-clast-to-gimple.c
20241 (clast_to_gcc_expression): Same.
20242 (precision_for_value): Same.
20243 (precision_for_interval): Same.
20244 (gcc_type_for_interval): Same.
20245 (graphite_create_new_guard): Same.
20246 (compute_bounds_for_level): Same.
20247 (graphite_create_new_loop_guard): Same.
20248 * graphite-interchange.c
20249 (build_linearized_memory_access): Same.
20250 (pdr_stride_in_loop): Same.
20251 (memory_strides_in_loop_1): Same.
20252 (memory_strides_in_loop): Same.
20253 (extend_scattering): Same.
20254 (psct_scattering_dim_for_loop_depth): Same.
20255 (pbb_number_of_iterations): Same.
20256 * graphite-poly.h
20257 (debug_iteration_domains): Same.
20258 * graphite-ppl.c
20259 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
20260 (ppl_set_inhomogeneous_gmp): Same.
20261 (ppl_strip_loop): Same.
20262 (ppl_lexico_compare_linear_expressions): Same.
20263 (ppl_read_polyhedron_matrix): Same.
20264 (ppl_max_for_le_pointset): Same.
20265 * graphite-ppl.h
20266 (ppl_read_polyhedron_matrix): Same.
20267 (tree_int_to_gmp): Same.
20268 (gmp_cst_to_tree): Same.
20269 (ppl_set_inhomogeneous): Same.
20270 (ppl_set_inhomogeneous_tree): Same.
20271 (ppl_set_coef): Same.
20272 (ppl_set_coef_tree): Same.
20273 * graphite-sese-to-poly.c
20274 (build_pbb_scattering_polyhedrons): Same.
20275 (build_scop_scattering): Same.
20276 (scan_tree_for_params_right_scev): Same.
20277 (scan_tree_for_params): Same.
20278 (find_params_in_bb): Same.
20279 (find_scop_parameters): Same.
20280 (add_upper_bounds_from_estimated_nit): Same.
20281 (build_loop_iteration_domains): Same.
20282 (add_condition_to_domain): Same.
20283 (pdr_add_memory_accesses): Same.
20284
20285 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
20286
20287 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
20288 CLooG's value_* macros to their respective mpz_* counterparts.
20289 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
20290 (graphite_create_new_loop_guard): Same.
20291 * graphite-interchange.c (build_linearized_memory_access): Same.
20292 (pdr_stride_in_loop): Same.
20293 (memory_strides_in_loop_1): Same.
20294 (1st_interchange_profitable_p): Same.
20295 * graphite-poly.c (extend_scattering): Same.
20296 (psct_scattering_dim_for_loop_depth): Same.
20297 (pbb_number_of_iterations): Same.
20298 (pbb_number_of_iterations_at_time): Same.
20299 * graphite-poly.h (new_1st_loop): Same.
20300 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
20301 (oppose_constraint): Same.
20302 (insert_constraint_into_matrix): Same.
20303 (ppl_set_inhomogeneous_gmp): Same.
20304 (ppl_set_coef_gmp): Same.
20305 (ppl_strip_loop): Same.
20306 (ppl_lexico_compare_linear_expressions): Same.
20307 (ppl_max_for_le_pointset): Same.
20308 (ppl_min_for_le_pointset): Same.
20309 (ppl_build_realtion): Same.
20310 * graphite-ppl.h (gmp_cst_to_tree): Same.
20311 (ppl_set_inhomogeneous): Same.
20312 (ppl_set_inhomogeneous_tree): Same.
20313 (ppl_set_coef): Same.
20314 (ppl_set_coef_tree): Same.
20315 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
20316 (build_scop_scattering): Same.
20317 (add_value_to_dim): Same.
20318 (scan_tree_for_params_right_scev): Same.
20319 (scan_tree_for_params_int): Same.
20320 (scan_tree_for_params): Same.
20321 (find_params_in_bb): Same.
20322 (find_scop_parameters): Same.
20323 (add_upper_bounds_from_estimated_nit): Same.
20324 (build_loop_iteration_domains): Same.
20325 (create_linear_expr_from_tree): Same.
20326 (add_condition_to_domain): Same.
20327 (pdr_add_memory_accesses): Same.
20328
20329 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
20330 Jason Merrill <jason@redhat.com>
20331
20332 * c-common.c (c_common_reswords): Add nullptr.
20333 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
20334 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
20335 (gen_type_die_with_usage): Likewise.
20336 * dbxout.c (dbxout_type): Likewise.
20337 * sdbout.c (plain_type_1): Likewise.
20338
20339 2010-05-06 Jason Merrill <jason@redhat.com>
20340
20341 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
20342 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
20343 ret appropriately.
20344 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
20345
20346 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
20347 stripping WITH_SIZE_EXPR.
20348 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
20349 change.
20350
20351 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20352
20353 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
20354 list of obsolete configurations.
20355 Disabled check for obsolete configurations.
20356 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
20357 Removed support for previous versions.
20358 * config/mips/iris.h: Removed.
20359 * config/mips/iris5.h: Removed.
20360 * config/mips/iris6.h: Merged old iris.h contents.
20361 (TARGET_IRIX): Removed.
20362 (DRIVER_SELF_SPECS): Removed mabi=32.
20363 (IDENT_ASM_OP): Removed undef.
20364 (STARTFILE_SPEC): Removed mabi=32.
20365 (ENDFILE_SPEC): Likewise.
20366 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
20367 (MACHINE_TYPE): Update for IRIX 6.5.
20368 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
20369 TARGET_IRIX by TARGET_IRIX6.
20370 (mips_file_start): Likewise.
20371 (mips_output_external): Remove IRIX 5/6 O32 support.
20372 (mips_output_function_prologue): Likewise.
20373 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
20374 TARGET_IRIX6.
20375 (TARGET_CPU_CPP_BUILTINS): Likewise.
20376 (TARGET_IRIX): Removed.
20377 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
20378 (MULTILIB_DIRNAMES): Removed 32.
20379 (MULTILIB_OSDIRNAMES): Removed ../lib.
20380 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
20381 (Specific, mips-sgi-irix5): Document removal.
20382 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
20383 Remove references to older IRIX 6 releases and the O32 ABI.
20384
20385 2010-05-06 Jakub Jelinek <jakub@redhat.com>
20386
20387 PR bootstrap/43994
20388 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
20389 instead of DF_REF_REAL_REG.
20390
20391 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
20392
20393 PR target/43888
20394 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
20395 handling to still return true for x64 targets.
20396
20397 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
20398
20399 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
20400
20401 2010-05-06 Jan Hubicka <jh@suse.cz>
20402
20403 PR tree-optimization/43791
20404 * ipa-inline.c (update_caller_keys): Remove bogus
20405 disregard_inline_limits check.
20406
20407 2010-05-06 Michael Matz <matz@suse.de>
20408
20409 PR tree-optimization/43984
20410 * tree-ssa-pre.c (inserted_phi_names): Remove.
20411 (inserted_exprs): Change to bitmap.
20412 (create_expression_by_pieces): Set bits, don't append to vector.
20413 (insert_into_preds_of_block): Don't handle inserted_phi_names.
20414 (eliminate): Don't look at inserted_phi_names, remove deleted
20415 insns from inserted_exprs.
20416 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
20417 (init_pre, fini_pre): Allocate and free bitmaps.
20418 (execute_pre): Insert insns on edges before elimination.
20419
20420 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
20421
20422 * tree.c (initializer_zerop): Handle STRING_CST.
20423
20424 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
20425
20426 PR 40989
20427 * doc/invoke.texi (Wimplicit): Document as C only.
20428 * opts.c (common_handle_option): Add argument kind.
20429 (handle_option): Rename as read_cmdline_option. Factor out code to...
20430 (handle_option): ... here. New.
20431 (handle_options): Rename as read_cmdline_options.
20432 (decode_options): Update call.
20433 (set_option): Use option index instead of option pointer. Classify
20434 diagnostics correctly.
20435 (enable_warning_as_error): Call handle_option.
20436 * opts.h (set_option): Update declaration.
20437 (handle_option): Declare.
20438 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
20439 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
20440 * c-opts.c (set_Wimplicit): Delete.
20441 (c_family_lang_mask): New static constant.
20442 (c_common_handle_option): Add argument kind. Use handle_option
20443 instead of set_Wimplicit.
20444 (c_common_post_options): warn_implicit and warn_implicit_int
20445 are disabled by default.
20446 * c-common.c (warn_implicit): Do not define here.
20447 * c-common.h (warn_implicit): Do not declare here.
20448 (c_common_handle_option): Update declaration.
20449 * lto-opts.c (lto_reissue_options): Update call to set_option.
20450
20451 2010-05-06 Richard Guenther <rguenther@suse.de>
20452
20453 PR tree-optimization/43571
20454 * domwalk.c (walk_dominator_tree): Walk the dominator
20455 sons in more optimal order.
20456
20457 2010-05-06 Richard Guenther <rguenther@suse.de>
20458
20459 PR tree-optimization/43934
20460 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
20461 (stmt_cost): Likewise.
20462 (extract_true_false_args_from_phi): New helper.
20463 (determine_max_movement): For PHI nodes verify we can hoist them
20464 and compute their cost.
20465 (determine_invariantness_stmt): Handle PHI nodes.
20466 (move_computations_stmt): Likewise. Hoist PHI nodes in
20467 if-converted form using COND_EXPRs.
20468 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
20469 (tree_ssa_lim): Likewise.
20470 * tree-flow.h (tree_ssa_lim): Adjust prototype.
20471 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
20472
20473 2010-05-06 Richard Guenther <rguenther@suse.de>
20474
20475 PR tree-optimization/43987
20476 * tree-ssa-structalias.c (could_have_pointers): For possibly
20477 address-taken variables force pointers to be recorded.
20478 (create_variable_info_for_1): Likewise.
20479 (push_fields_onto_fieldstack): Pass in wheter all fields
20480 must have pointers.
20481 (find_func_aliases): Query types instead of vars whether
20482 they contain pointers where appropriate.
20483
20484 2010-05-06 Jan Hubicka <jh@suse.cz>
20485
20486 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
20487 (record_reference, mark_address, mark_load, mark_store): Record
20488 references.
20489 (record_references_in_initializer): Update call of record_references.
20490 (rebuild_cgraph_edges): Remove all references before rebuiding.
20491 * cgraph.c (cgraph_create_node): Clear ref list.
20492 (cgraph_remove_node): Remove references.
20493 (dump_cgraph_node): Dump references.
20494 (cgraph_clone_node): Clone references.
20495 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
20496 (struct cgraph_node, varpool_node): Add ref_lst.
20497 * ipa-ref.c: New file.
20498 * ipa-ref.h: New file.
20499 * ipa-ref-inline.h: New file.
20500 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
20501 (referenced_from_other_partition_p): New function.
20502 (lto_output_varpool_node): Take set arugment; call
20503 referenced_from_other_partition.
20504 (lto_output_ref): New.
20505 (add_references): New.
20506 (output_refs): New.
20507 (output_cgraph): Compute boundary based on references; output refs.
20508 (output_varpool): Accept cgraph_node_set argument.
20509 (input_ref): New.
20510 (input_refs): New.
20511 (input_cgraph): Call input_refs.
20512 * lto-section-in.c (lto_section_name): Add refs.
20513 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
20514 (ipa-ref.o): New file.
20515 * varpool.c (varpool_node): Clear ipa ref list.
20516 (varpool_remove_node): Remove references.
20517 (dump_varpool_node): Dump references.
20518 (varpool_assemble_decl): Only compile finalized ones.
20519 (varpool_extra_name_alias): Initialize ref list.
20520 * lto-streamer.c (lto-get_section_name): Add .refs section.
20521 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
20522 (referenced_from_other_partition_p): Declared.
20523
20524 2010-05-06 Ira Rosen <irar@il.ibm.com>
20525
20526 PR tree-optimization/43901
20527 * tree-vect-stmts.c (vectorizable_call): Assert that vector
20528 type is not NULL if it's transformation phase, and return
20529 FALSE if it's analysis.
20530 (vectorizable_conversion, vectorizable_operation,
20531 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
20532
20533 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
20534
20535 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
20536 Delete.
20537 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
20538 New define.
20539 * config/mips/mips-protos.h
20540 (mips_small_register_classes_for_mode_p): Delete prototype.
20541
20542 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
20543
20544 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
20545 * config/arm/arm.c (multiple_operation_profitable_p,
20546 compute_offset_order): New static functions.
20547 (load_multiple_sequence, store_multiple_sequence): Use them.
20548 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
20549 memory offsets, not register numbers.
20550 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
20551
20552 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
20553
20554 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
20555 (get_pending_sizes, put_pending_size, put_pending_sizes):
20556 Update the uses of pending_sizes.
20557 * c-decl.c (store_parm_decls): Likewise.
20558 * c-tree.h (struct c_arg_info): Likewise.
20559 * tree.h: Update the prototype for get_pending_sizes and
20560 put_pending_sizes.
20561
20562 2010-05-05 Jason Merrill <jason@redhat.com>
20563
20564 PR debug/43370
20565 * c-common.c (handle_aligned_attribute): Respect
20566 ATTR_FLAG_TYPE_IN_PLACE.
20567
20568 PR testsuite/43758
20569 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
20570 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
20571 (TARGET_INITIALIZER): Use it.
20572 * c-common.c (attribute_takes_identifier_p): Call it.
20573 * c-common.h: Update prototype.
20574 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
20575 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
20576
20577 2010-05-05 Jakub Jelinek <jakub@redhat.com>
20578
20579 PR debug/43950
20580 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
20581 DW_ID_down_case for Fortran compilation units.
20582
20583 2010-05-05 Jan Hubicka <jh@suse.cz>
20584
20585 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
20586 handle aliases.
20587
20588 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
20589
20590 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
20591 a variable-sized RESULT_DECL.
20592
20593 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
20594
20595 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
20596
20597 2010-05-05 Jason Merrill <jason@redhat.com>
20598
20599 PR c++/43787
20600 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
20601 returns GS_OK.
20602 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
20603
20604 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
20605 Jakub Jelinek <jakub@redhat.com>
20606
20607 PR debug/43478
20608 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
20609 (dead_debug_init, dead_debug_finish): New functions.
20610 (dead_debug_add, dead_debug_insert_before): Likewise.
20611 (df_note_bb_compute): Initialize a dead_debug object, add dead
20612 debug uses to it, insert debug bind insns before death insns,
20613 reset debug insns that refer to pending uses at the end.
20614 * rtl.h (make_debug_expr_from_rtl): New prototype.
20615 * varasm.c (make_debug_expr_from_rtl): New function.
20616
20617 2010-05-05 Jan Hubicka <jh@suse.cz>
20618
20619 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
20620 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
20621 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
20622 lto_varpool_encoder_deref, lto_varpool_encoder_size,
20623 lto_varpool_encoder_encode_initializer_p,
20624 lto_set_varpool_encoder_encode_initializer): New functions.
20625 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
20626 call output_varpool.
20627 (input_varpool_node): Do not always set analyzed.
20628 (input_cgraph_1): Return vector of cgraph nodes.
20629 (input_varpool_1): Return vector of varpools.
20630 (input_cgraph): Free the vectors.
20631 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
20632 output only initializers needed.
20633 (lto_output): Only call output_cgraph.
20634 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
20635 * lto-section-out.c (lto_new_out_decl_state): Initialize
20636 state->varpool_node_encoder.
20637 * lto-streamer.h (lto_varpool_encoder_d): New.
20638 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
20639 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
20640 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
20641 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
20642 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
20643 Declare.
20644 (output_varpool, input_varpool): Remove declarations.
20645
20646 2010-05-05 Jan Hubicka <jh@suse.cz>
20647
20648 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
20649 with body can prevail.
20650
20651 2010-05-05 Jan Hubicka <jh@suse.cz>
20652
20653 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
20654 size.
20655
20656 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20657
20658 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
20659
20660 * gengtype.h (erro_at_line): Constify pos argument.
20661
20662 * gengtype.c: Include hashtab.h.
20663 (enum gc_used): Document GC_MAYBE_POINTED_TO.
20664 (error_at_line): Constify pos argument.
20665 (do_typedef): Initialize p->opt field.
20666 (get_file_gtfilename): Fix comment typo.
20667 (struct walk_type_data): Constify line field.
20668 (get_output_file_for_structure): New function.
20669 (write_local_func_for_structure): Constify orig_s argument.
20670 Use get_output_file_for_structure.
20671 (write_func_for_structure): Use get_output_file_for_structure.
20672 (INDENT): New define.
20673 (dump_pair, dump_type, dump_type_list, dump_typekind)
20674 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
20675 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
20676 functions.
20677 (seen_types): New variable.
20678 (main): New variable do_dump. Process "-d" command line option.
20679 Call dump_everything if dump requested.
20680
20681 2010-05-05 Jakub Jelinek <jakub@redhat.com>
20682
20683 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
20684 in a temporary instead of invoking the macro multiple times.
20685 (track_expr_p): Likewise.
20686
20687 2010-05-04 Neil Vachharajani <nvachhar@google.com>
20688
20689 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
20690 per new semantics.
20691 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
20692 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
20693 conditions for printing notes.
20694 * common.opt (-Wcoverage-mismatch): Allow negative, default to
20695 true, update documentation.
20696 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
20697
20698 2010-05-04 Jakub Jelinek <jakub@redhat.com>
20699
20700 PR c/43981
20701 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
20702 on dimen.
20703
20704 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
20705
20706 PR target/43799
20707 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
20708 (*sse_prologue_save_insn1): Likewise.
20709 (SSE prologue save splitter): Likewise.
20710
20711 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
20712
20713 * tree.c (free_lang_data_in_one_sizepos): New inline function.
20714 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
20715 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
20716 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
20717 all decls. Call it on DECL_FIELD_OFFSET of fields.
20718 (find_decls_types_r): Follow DECL_VALUE_EXPR.
20719 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
20720
20721 2010-05-04 Martin Jambor <mjambor@suse.cz>
20722
20723 * tree-sra.c (build_access_from_expr_1): The first parameter type
20724 changed to simple tree.
20725 (build_access_from_expr): Likewise, gsi parameter was eliminated.
20726 (scan_assign_result): Renamed to assignment_mod_result, enum elements
20727 renamed as well.
20728 (build_accesses_from_assign): Removed all parameters except for a
20729 simple gimple statement. Now returns a simple bool.
20730 (scan_function): All non-analysis parts moved to separate functions
20731 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
20732 parameters and updated both callers.
20733 (sra_modify_expr): Removed parameter data.
20734 (sra_modify_function_body): New function.
20735 (perform_intra_sra): Call sra_modify_function_body to modify the
20736 function body.
20737 (replace_removed_params_ssa_names): Parameter data changed into
20738 adjustments vector.
20739 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
20740 changed the parameter dont_convert to convert with the opposite
20741 meaning.
20742 (sra_ipa_modify_assign): Parameter data changed into adjustments
20743 vector, return value changed to bool.
20744 (ipa_sra_modify_function_body): New function.
20745 (sra_ipa_reset_debug_stmts): Updated a comment.
20746 (modify_function): Use ipa_sra_modify_function_body to modify function
20747 body.
20748
20749 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
20750
20751 PR middle-end/43671
20752 * alias.c (true_dependence): Handle the same VALUE in x and mem.
20753 (canon_true_dependence): Likewise.
20754 (write_dependence_p): Likewise.
20755
20756 2010-05-04 Jan Hubicka <jh@suse.cz>
20757
20758 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
20759 * cgraphbuild.c: Include ipa-utils.h
20760 (record_reference_ctx): New struct.
20761 (record_reference): Simplify to work on initializers; not statements.
20762 (mark_address, mark_load, mark_store): New.
20763 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
20764 walk PHI nodes too.
20765 (record_references_in_initializer): Update use of record_reference.
20766 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
20767 walk PHI nodes too.
20768
20769 2010-05-04 Jan Hubicka <jh@suse.cz>
20770
20771 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
20772 node will be removed anyway.
20773 (lto_varpool_replace_node): Allow also unanalyzed nodes;
20774 relink aliases of node into prevailing node.
20775 * varpool.c (varpool_remove_node): Remove aliases properly;
20776 when removing node, remove all its aliases too; remove DECL_INITIAL
20777 of removed node; ggc_free the varpool node.
20778
20779 2010-05-04 Richard Guenther <rguenther@suse.de>
20780
20781 PR tree-optimization/43879
20782 * tree-ssa-structalias.c (alias_get_name): Use
20783 DECL_ASSEMBLER_NAME if available.
20784 (create_function_info_for): Return the varinfo node.
20785 (ipa_pta_execute): Associate same-body aliases and extra names
20786 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
20787
20788 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
20789
20790 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
20791
20792 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
20793
20794 PR bootstrap/43964
20795 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
20796 only if HONOR_REG_ALLOC_ORDER is not defined.
20797
20798 2010-05-04 Richard Guenther <rguenther@suse.de>
20799
20800 PR tree-optimization/43949
20801 * tree-vrp.c (extract_range_from_binary_expr): Only handle
20802 TRUNC_MOD_EXPR.
20803
20804 2010-04-26 Jason Merrill <jason@redhat.com>
20805
20806 * c.opt (-fstrict-enums): New.
20807 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
20808
20809 2010-05-03 David Ung <davidu@mips.com>
20810 James E. Wilson <wilson@codesourcery.com>
20811
20812 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
20813 emit the trap instruction before the divide for TUNE_74K.
20814
20815 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
20816
20817 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
20818 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
20819 based on the above, for new target hook.
20820
20821 * hooks.c (hook_bool_mode_true): New generic hook.
20822 * hooks.h (hook_bool_mode_true): Add prototype.
20823
20824 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
20825 target hook.
20826 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
20827 target hook, set to hook_bool_mode_false.
20828 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
20829 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
20830 with targetm.small_register_classes_for_mode_p.
20831 (find_reusable_reload): Likewise.
20832 (combine_reloads): Likewise.
20833 * reload1.c (reload_as_needed): Likewise.
20834 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
20835 * ifcvt.c (noce_process_if_block, check_cond_move_block,
20836 dead_or_predicable): Likewise.
20837 * regmove.c (optimize_reg_copy_1): Likewise.
20838 * calls.c (prepare_call_address): Likewise.
20839 (precompute_register_parameters): Likewise.
20840
20841 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
20842 hook definition.
20843 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
20844 implementation of the hook that considers all register classes
20845 small except for SH64.
20846 (sh_override_options): Use the new hook.
20847 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
20848 Add prototype.
20849
20850 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
20851 hook definition.
20852 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
20853 implementation of the hook that considers all register classes
20854 small for THUMB1.
20855 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
20856 Add prototype.
20857
20858 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
20859 hook definition.
20860 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
20861 implementation of the hook that considers all register classes
20862 small for MIPS16.
20863 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
20864 Add prototype.
20865
20866 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
20867 hook definition.
20868 * config/m32c/m32c.h: Likewise.
20869 * config/pdp11/pdp11.h: Likewise.
20870 * config/avr/avr.h: Likewise.
20871 * config/xtensa/xtensa.h: Likewise.
20872 * config/m68hc11/m68hc11.h: Likewise.
20873 * config/mn10300/mn10300.h: Likewise.
20874 * config/mcore/mcore.h: Likewise.
20875 * config/h8300/h8300.h: Likewise.
20876 * config/bfin/bfin.h: Likewise.
20877
20878 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
20879 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
20880
20881 2010-05-03 Anatoly Sokolov <aesok@post.ru>
20882
20883 * double-int.h (tree_to_double_int): Remove macro.
20884 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
20885 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
20886 (tree_to_double_int): New function.
20887 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
20888 Move ...
20889 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
20890
20891 2010-05-03 Richard Guenther <rguenther@suse.de>
20892
20893 PR tree-optimization/43971
20894 * tree-ssa-structalias.c (get_constraint_for_1): Fix
20895 constraints in the !flag_delete_null_pointer_checks case.
20896
20897 2010-05-03 Jakub Jelinek <jakub@redhat.com>
20898
20899 PR debug/43972
20900 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
20901 result mode matches original rtl mode.
20902
20903 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
20904
20905 PR target/43888
20906 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
20907
20908 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
20909
20910 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
20911 when processing flag options.
20912
20913 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
20914
20915 * gcov-iov.c (main): Change format string placeholder
20916 from %#08x to 0x%08x.
20917 * genchecksum.c (dosum): Change format string placeholder
20918 from %#02x to 0x%02x.
20919
20920 2010-05-02 Richard Guenther <rguenther@suse.de>
20921
20922 PR tree-optimization/43879
20923 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
20924
20925 2010-05-02 Bruno Haible <bruno@clisp.org>
20926
20927 * doc/extend.texi (Function Attributes): Fix a typo.
20928
20929 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
20930
20931 Revert:
20932 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
20933 placeholder from 0x%x to %#x.
20934 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
20935 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
20936 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
20937 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
20938 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
20939 * config/i386/i386.c (ix86_target_string): Ditto.
20940 * config/i386/i386.c (output_pic_addr_const): Ditto.
20941 (print_operand): Ditto.
20942
20943 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
20944
20945 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
20946 placeholder from 0x%x to %#x.
20947 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
20948 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
20949 (ASM_OUTPUT_DEBUG_DATA): Ditto.
20950 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
20951 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
20952 * optc-gen.awk: Ditto.
20953 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
20954 (HOST_WIDE_INT_PRINT_HEX): Ditto.
20955 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
20956 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
20957
20958 2010-05-01 Anatoly Sokolov <aesok@post.ru>
20959
20960 * target.h (struct calls): Add function_value_regno_p field.
20961 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
20962 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
20963 * targhooks.c (default_function_value_regno_p): New function.
20964 * targhooks.h (default_function_value_regno_p): Declare function.
20965 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
20966 * builtins.c. (apply_result_size): (Ditto.).
20967 * combine.c. (likely_spilled_retval_p): (Ditto.).
20968 * mode-switching.c. Include 'target.h'.
20969 (create_pre_exit): Use function_value_regno_p hook.
20970 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
20971 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
20972 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
20973
20974 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
20975 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
20976 (ix86_function_value_regno_p): Declare as static, change argument
20977 type to const unsigned int.
20978 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
20979
20980 2010-05-01 Richard Guenther <rguenther@suse.de>
20981
20982 PR tree-optimization/43949
20983 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
20984 types.
20985 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
20986
20987 2010-05-01 Anatoly Sokolov <aesok@post.ru>
20988
20989 * rtl.h (CONST_DOUBLE_P): Define.
20990 (rtx_to_double_int): Declare.
20991 * emit-rtl.c (rtx_to_double_int): New function.
20992 * dwarf2out.c (insert_double): New function.
20993 (loc_descriptor, add_const_value_attribute): Clean up, use
20994 rtx_to_double_int and insert_double functions.
20995
20996 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
20997
20998 * doc/extend.texi (Inline): Add missing return keyword to examples.
20999 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
21000 "command-line".
21001
21002 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
21003
21004 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
21005 the variable part of the offset as well. Use highest_pow2_factor for
21006 all alignment checks.
21007
21008 2010-04-30 Richard Guenther <rguenther@suse.de>
21009
21010 PR tree-optimization/43879
21011 * tree-ssa-structalias.c (type_could_have_pointers): Functions
21012 can have pointers.
21013
21014 2010-04-30 Jan Hubicka <jh@suse.cz>
21015
21016 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
21017 varpool.
21018 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
21019
21020 2010-04-30 Jan Hubicka <jh@suse.cz>
21021
21022 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
21023 New.
21024 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
21025 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
21026 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
21027 cgraph_node_set_needs_ltrans_p): Remove.
21028
21029 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
21030
21031 * sdbout.c: Include vec.h, do not include varray.h.
21032 (deferred_global_decls, sdbout_global_decl,
21033 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
21034 * toplev.c: Do not include varray.h.
21035 (dump_memory_report): Do not dump VARRAY statistics.
21036 * gengtype.c (open_base_file): Ignore varray.h.
21037 * Makefile.in: Update for abovementioned changes.
21038 Remove all traces of varray.c and varray.h.
21039 * varray.c: Remove file.
21040 * varray.h: Remove file.
21041
21042 2010-04-30 Jan Hubicka <jh@suse.cz>
21043
21044 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
21045 references.
21046
21047 2010-04-30 Jan Hubicka <jh@suse.cz>
21048
21049 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
21050 needed.
21051
21052 2010-04-30 Richard Guenther <rguenther@suse.de>
21053
21054 * tree-ssa-structalias.c (get_constraint_for_1): Generate
21055 constraints for CONSTRUCTOR.
21056
21057 2010-04-30 Richard Guenther <rguenther@suse.de>
21058
21059 PR lto/43946
21060 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
21061 first after all lowering passes.
21062
21063 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
21064
21065 * toplev.c: Include varray.h for statistics dumping.
21066 * tree.h: Do not declare varray_head_tag.
21067 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
21068 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
21069 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
21070 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
21071 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
21072 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
21073 c-common.c, c-common.h, reg-stack.c, basic-block.h,
21074 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
21075 include varray.h.
21076 * Makefile.in: Update for abovementioned changes.
21077
21078 2010-04-30 Jakub Jelinek <jakub@redhat.com>
21079
21080 PR debug/43942
21081 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
21082
21083 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
21084
21085 * config/picochip/picochip.c (picochip_legitimize_address): Define.
21086 Use this function to do machine-specific conversion.
21087 (picochip_legitimize_reload_address): Likewise.
21088 (picochip_legitimate_address_p): Check valid base register only if
21089 strict.
21090 (picochip_check_conditional_copy): Check for modw only if opnd is
21091 register.
21092 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
21093 to call the function in c.
21094 * config/picochip/picochip-protos.h
21095 (picochip_legitimize_reload_address): Define.
21096 * config/picochip/picochip.md (supported_compare1): Define.
21097
21098 2010-04-30 Jan Hubicka <jh@suse.cz>
21099
21100 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
21101 (cgraph_global_info): Remove inlined.
21102 (LTO_cgraph_tag_names): Remove.
21103 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
21104 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
21105 simplify cgraph tags and document.
21106 (lto_output_node): Use only LTO_cgraph_unavail_node and
21107 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
21108 for_functions_valid, global info, process and output flags.
21109 (input_overwrite_node): Initialize estimated stack size and
21110 estimated growth. Do not read flags we no longer store.
21111 (input_node): Likewise do not read info no longer stored.
21112 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
21113 flag.
21114
21115 2010-04-30 Richard Guenther <rguenther@suse.de>
21116
21117 PR tree-optimization/43879
21118 * tree-ssa-structalias.c (get_constraint_for_1): Properly
21119 handle non-zero initializers.
21120
21121 2010-04-30 Richard Guenther <rguenther@suse.de>
21122
21123 * builtins.c (fold_builtin_1): Delete free (0).
21124
21125 2010-04-29 Jan Hubicka <jh@suse.cz>
21126
21127 * gengtype.c (open_base_files): Add lto-streamer.h
21128 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
21129 (pass_ipa_cp): GGC collect.
21130 * toplev. (compile_file): Do not output symbols.
21131 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
21132 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
21133 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
21134 * lto-section-in.c: Include ggc.h
21135 (lto_new_in_decl_state): Alloc in GGC.
21136 (lto_delete_in_decl_state): Likewise.
21137 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
21138 Collect.
21139
21140 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
21141
21142 PR target/42895
21143 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
21144 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
21145 (HONOR_REG_ALLOC_ORDER): Describe new macro.
21146 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
21147 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
21148 account only if HONOR_REG_ALLOC_ORDER is not defined.
21149 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
21150 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
21151
21152 2010-04-29 Jon Grant <04@jguk.org>
21153
21154 * collect2.c (vflag): Change type from int to bool.
21155 (debug): Likewise.
21156 (helpflag): New global bool.
21157 (main): Set vflag and debug with boolean, not integer truth values.
21158 Accept new "--help" option and output usage text if found.
21159 * collect2.h (vflag): Update prototype.
21160 (debug): Likewise.
21161
21162 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
21163
21164 PR bootstrap/43936
21165 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
21166
21167 2010-04-29 Richard Guenther <rguenther@suse.de>
21168
21169 PR bootstrap/43935
21170 * plugin.h (invoke_plugin_callbacks): Annotate arguments
21171 with ATTRIBUTE_UNUSED.
21172
21173 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
21174
21175 PR target/43921
21176 * config/i386/i386.c (get_some_local_dynamic_name): Replace
21177 INSN_P with NONDEBUG_INSN_P.
21178 (distance_non_agu_define): Likewise.
21179 (distance_agu_use): Likewise.
21180
21181 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
21182
21183 From Dominique d'Humieres <dominiq@lps.ens.fr>
21184 PR bootstrap/43858
21185 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
21186 test_set.
21187
21188 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
21189
21190 * plugin.h (invoke_plugin_callbacks): New inline function.
21191 * plugin.c (flag_plugin_added): New global flag.
21192 (add_new_plugin): Initialize above flag.
21193 (invoke_plugin_callbacks): Rename to ...
21194 (invoke_plugin_callbacks_full): ... this.
21195
21196 2010-04-28 Jan Hubicka <jh@suse.cz>
21197
21198 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
21199 (lto_varpool_replace_node): New.
21200 (lto_symtab_resolve_symbols): Resolve varpool nodes.
21201 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
21202 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
21203 * cgraph.h (varpool_node_ptr): New type.
21204 (varpool_node_ptr): New vector.
21205 (varpool_node_set_def): New structure.
21206 (varpool_node_set): New type.
21207 (varpool_node_set): New vector.
21208 (varpool_node_set_element_def): New structure.
21209 (varpool_node_set_element, const_varpool_node_set_element): New types.
21210 (varpool_node_set_iterator): New type.
21211 (varpool_node): Add prev pointers, add used_from_other_partition,
21212 in_other_partition.
21213 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
21214 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
21215 varpool_get_node, varpool_remove_node): Declare.
21216 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
21217 varpool_node_set_size): New inlines.
21218 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
21219 * tree-pass.h (varpool_node_set_def): Forward declare.
21220 (ipa_opt_pass_d): Summary writting takes vnode sets too.
21221 (ipa_write_optimization_summaries): Update prototype.
21222 * ipa-cp.c (ipcp_write_summary): Update.
21223 * ipa-reference.c (ipa_reference_write_summary): Update.
21224 * lto-cgraph.c (lto_output_varpool_node): New static function.
21225 (output_varpool): New function.
21226 (input_varpool_node): New static function.
21227 (input_varpool_1): New function.
21228 (input_cgraph): Input varpool.
21229 * ipa-pure-const.c (pure_const_write_summary): Update.
21230 * lto-streamer-out.c (lto_output): Update, output varpool too.
21231 (write_global_stream): Kill WPA hack.
21232 (produce_asm_for_decls): Update.
21233 (output_alias_pair_p): Handle variables.
21234 (output_unreferenced_globals): Output only needed partition of varpool.
21235 * ipa-inline.c (inline_write_summary): Update.
21236 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
21237 cgraph.
21238 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
21239 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
21240 varpool_node_set_new, varpool_node_set_add,
21241 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
21242 debug_varpool_node_set): New functions.
21243 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
21244 (execute_one_pass): Process new decls too.
21245 (ipa_write_summaries_2): Pass around vsets.
21246 (ipa_write_summaries_1): Likewise.
21247 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
21248 to add.
21249 (ipa_write_optimization_summaries_1): Pass around vsets.
21250 (ipa_write_optimization_summaries): Likewise.
21251 * varpool.c (varpool_get_node): New.
21252 (varpool_node): Update doubly linked lists.
21253 (varpool_remove_node): New.
21254 (dump_varpool_node): More dumping.
21255 (varpool_enqueue_needed_node): Update doubly linked lists.
21256 (decide_is_variable_needed): Kill ltrans hack.
21257 (varpool_finalize_decl): Kill lto hack.
21258 (varpool_assemble_decl): Skip decls in other partitions.
21259 (varpool_assemble_pending_decls): Update doubly linkes lists.
21260 (varpool_empty_needed_queue): Likewise.
21261 (varpool_extra_name_alias): Likewise.
21262 * lto-streamer.c (lto_get_section_name): Add vars section.
21263 * lto-streamer.h (lto_section_type): Update.
21264 (output_varpool, input_varpool): Declare.
21265
21266 2010-04-28 Mike Stump <mikestump@comcast.net>
21267
21268 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
21269
21270 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
21271
21272 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
21273 record or union type with RECORD_OR_UNION_TYPE_P predicate.
21274 (lto_input_ts_type_tree_pointers): Likewise.
21275 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
21276 (lto_output_ts_type_tree_pointers): Likewise.
21277
21278 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
21279
21280 Uniquization of constants at the Tree level
21281 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
21282 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
21283 bit to the end.
21284 (tree_output_constant_def): Declare.
21285 * gimplify.c (gimplify_init_constructor): When using block copy, first
21286 uniquize the constant constructor on the RHS.
21287 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
21288 DECL_IN_CONSTANT_POOL flag.
21289 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
21290 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
21291 constant pool.
21292 (assemble_variable): Deal with symbols belonging to the tree constant
21293 pool.
21294 (get_constant_section): Add ALIGN parameter and simplify.
21295 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
21296 (assemble_constant_contents): Use the expression of the VAR_DECL.
21297 (output_constant_def_contents): Use the alignment of the VAR_DECL.
21298 (tree_output_constant_def): New global function.
21299 (mark_constant): Use the expression of the VAR_DECL.
21300 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
21301 its expression.
21302 (output_object_block): Likewise and assemble the expression.
21303
21304 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
21305
21306 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
21307 hash_tree, eq_tree): New tree hash table.
21308 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
21309 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
21310 lto_orig_address_remove): Reimplement.
21311
21312 2010-04-28 Xinliang David Li <davidxl@google.com>
21313
21314 PR c/42643
21315 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
21316 (compute_uninit_opnds_pos): New function.
21317 (is_non_loop_exit_postdominating): New function.
21318 (compute_control_dep_chain): New function.
21319 (find_pdom): New function.
21320 (convert_control_dep_chain_into_preds): New function.
21321 (find_predicates): New function.
21322 (find_control_equiv_block): New function.
21323 (collect_phi_def_edges): New function.
21324 (find_def_preds): New function.
21325 (find_dom): New function.
21326 (dump_predicates): New function.
21327 (get_cmp_code): New function.
21328 (is_value_included_in): New function.
21329 (find_matching_predicate_in_rest_chains): New function.
21330 (use_pred_not_overlap_with_undef_path_pred): New function.
21331 (is_use_properly_guarded): New function.
21332 (normalize_cond_1): New function.
21333 (is_and_or_or): New function.
21334 (normalize_cond): New function.
21335 (is_gcond_subset_of): New function.
21336 (is_subset_of_any): New function.
21337 (is_or_set_subset_of): New function.
21338 (is_and_set_subset_of): New function.
21339 (is_norm_cond_subset_of): New function.
21340 (is_pred_expr_subset_of): New function.
21341 (is_pred_chain_subset_of): New function.
21342 (is_included_in): New function.
21343 (is_superset_of): New function.
21344 (find_uninit_use): New function.
21345 (warn_uninitialized_phi): New function.
21346 (compute_possibly_undefined_names): New function.
21347 (ssa_undefined_value_p): New function.
21348 (execute_late_warn_uninitialized): New function.
21349 * tree-ssa.c (ssa_undefined_value_p): Removed.
21350 (warn_uninit): Changed to extern.
21351 (warn_uninitialized_phi): Removed.
21352 (warn_uninitialized_vars): Changed to extern.
21353 (execute_late_warn_uninitialized): Removed
21354 * tree-flow.h: Add new prototypes.
21355 * timevar.def: Add new time variable.
21356 * Makefile.in: Add new build file.
21357
21358 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
21359
21360 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
21361 type if available.
21362
21363 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21364
21365 PR target/22224
21366 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
21367
21368 2010-04-28 Martin Jambor <mjambor@suse.cz>
21369
21370 * cgraph.h (struct cgraph_node): New field indirect_calls.
21371 (struct cgraph_indirect_call_info): New type.
21372 (struct cgraph_edge): Removed field indirect_call. New fields
21373 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
21374 (cgraph_create_indirect_edge): Declare.
21375 (cgraph_make_edge_direct): Likewise.
21376 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
21377 * ipa-prop.h (struct ipa_param_call_note): Removed.
21378 (struct ipa_node_params): Removed field param_calls.
21379 (ipa_create_all_structures_for_iinln): Declare.
21380 * cgraph.c: Described indirect edges and uids in initial comment.
21381 (cgraph_add_edge_to_call_site_hash): New function.
21382 (cgraph_edge): Search also among the indirect edges, use
21383 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
21384 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
21385 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
21386 site hash.
21387 (initialize_inline_failed): Assign a reason to indirect edges.
21388 (cgraph_create_edge_1): New function.
21389 (cgraph_create_edge): Moved some functionality to
21390 cgraph_create_edge_1.
21391 (cgraph_create_indirect_edge): New function.
21392 (cgraph_edge_remove_callee): Add an assert checking for
21393 non-indirectness.
21394 (cgraph_edge_remove_caller): Special-case indirect edges.
21395 (cgraph_remove_edge): Likewise.
21396 (cgraph_set_edge_callee): New function.
21397 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
21398 (cgraph_make_edge_direct): New function.
21399 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
21400 the declaration of the call statement matches.
21401 (cgraph_node_remove_callees): Special-case indirect edges.
21402 (cgraph_clone_edge): Likewise.
21403 (cgraph_clone_node): Clone also the indirect edges.
21404 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
21405 indirect_call, dump count of indirect_calls edges.
21406 * ipa-prop.c (iinlining_processed_edges): New variable.
21407 (ipa_note_param_call): Create indirect edges instead of
21408 creating notes. New parameter node.
21409 (ipa_analyze_call_uses): New parameter node, pass it on to
21410 ipa_note_param_call.
21411 (ipa_analyze_stmt_uses): Likewise.
21412 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
21413 (print_edge_addition_message): Work on edges rather than on notes.
21414 (update_call_notes_after_inlining): Likewise, renamed to
21415 update_indirect_edges_after_inlining.
21416 (ipa_create_all_structures_for_iinln): New function.
21417 (ipa_free_node_params_substructures): Do not free notes.
21418 (ipa_edge_duplication_hook): Propagate bits within
21419 iinlining_processed_edges bitmap.
21420 (ipa_node_duplication_hook): Do not duplicate notes.
21421 (free_all_ipa_structures_after_ipa_cp): Renamed to
21422 ipa_free_all_structures_after_ipa_cp.
21423 (free_all_ipa_structures_after_iinln): Renamed to
21424 ipa_free_all_structures_after_iinln.
21425 (ipa_write_param_call_note): Removed.
21426 (ipa_read_param_call_note): Removed.
21427 (ipa_write_indirect_edge_info): New function.
21428 (ipa_read_indirect_edge_info): Likewise.
21429 (ipa_write_node_info): Do not stream notes, do stream information
21430 in indirect edges.
21431 (ipa_read_node_info): Likewise.
21432 (lto_ipa_fixup_call_notes): Removed.
21433 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
21434 * ipa-inline.c (pass_ipa_inline): Likewise.
21435 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
21436 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
21437 * tree-inline.c (copy_bb): Removed an unnecessary double check for
21438 is_gimple_call.
21439 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
21440 edges.
21441 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
21442 (output_cgraph): Stream also indirect edges.
21443 (lto_output_edge): Added capability to stream indirect edges.
21444 (input_edge): Likewise.
21445 (input_cgraph_1): Likewise.
21446 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
21447 of indirect edges.
21448
21449 2010-04-28 Richard Guenther <rguenther@suse.de>
21450
21451 PR tree-optimization/43879
21452 PR tree-optimization/43909
21453 * tree-ssa-structalias.c (struct variable_info): Add
21454 only_restrict_pointers flag.
21455 (new_var_info): Initialize it. Increment stats.total_vars here.
21456 (create_function_info_for): Do not increment stats.total_vars here.
21457 (get_function_part_constraint): Fix build with C++.
21458 (insert_into_field_list): Remove.
21459 (push_fields_onto_fieldstack): Properly merge fields.
21460 (create_variable_info_for): Split and simplify.
21461 (create_variable_info_for_1): New piece.
21462 (intra_create_variable_infos): Properly make restrict constraints
21463 from parameters.
21464
21465 2010-04-28 Richard Guenther <rguenther@suse.de>
21466
21467 PR c++/43880
21468 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
21469
21470 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
21471 Jan Hubicka <hubicka@ucw.cz>
21472
21473 * doc/invoke.texi (-Wsuggest-attribute=const,
21474 -Wsuggest-attribute=pure): Document.
21475 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
21476 (function_always_visible_to_compiler_p,
21477 suggest_attribute, warn_function_pure, warn_function_const):
21478 New functions.
21479 (check_call): Improve debug info.
21480 (analyze_function): Do not check availability.
21481 (add_new_function): Check availability.
21482 (propagate): Output warnings.
21483 (skip_function_for_local_pure_const): New function.
21484 (local_pure_const): Use it; output warnings.
21485 * common.opt (Wsuggest-attribute=const,
21486 Wsuggest-attribute=pure): New.
21487
21488 2010-04-27 Jakub Jelinek <jakub@redhat.com>
21489
21490 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
21491 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
21492 or DW_CFA_def_cfa_offset{,_sf}.
21493
21494 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
21495
21496 * tree.h: Fix truncated long macros.
21497
21498 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
21499
21500 * collect2.c (TARGET_64BIT): Redefine to target's default.
21501 * tlink.c: Likewise.
21502 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
21503 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
21504 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
21505 for underscoring __USER_LABEL_PREFIX__.
21506 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
21507 (SUB_LINK_ENTRY32): New.
21508 (SUB_LINK_ENTRY64): New.
21509 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
21510 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
21511 (SUB_LINK_ENTRY64): New.
21512 (SUB_LINK_ENTRY): New.
21513 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
21514 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
21515 x64 target is choosen.
21516 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
21517 * configure: Regenerated.
21518 * configure.ac (leading-mingw64-underscores): Option added.
21519
21520 2010-04-27 Jan Hubicka <jh@suse.cz>
21521
21522 * doc/invoke.texi (-fipa-profile): Document.
21523 * opts.c (decode_options): Enable ipa-profile at -O1.
21524 * timevar.def (TV_IPA_PROFILE): Define.
21525 * common.opt (fipa-profile): Add.
21526 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
21527 flag for clones.
21528 (cgraph_propagate_frequency): Handle only local ones.
21529 * tree-pass.h (pass_ipa_profile): Declare.
21530 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
21531 (pass_ipa_profile): Use TV_IPA_PROFILE.
21532 * ipa.c (ipa_profile): New function.
21533 (gate_ipa_profile): Likewise.
21534 (pass_ipa_profile): New global variable.
21535 * passes.c (pass_ipa_profile): New.
21536
21537 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
21538
21539 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
21540
21541 2010-04-27 Martin Jambor <mjambor@suse.cz>
21542
21543 PR middle-end/43812
21544 * ipa.c (dissolve_same_comdat_group_list): New function.
21545 (function_and_variable_visibility): Call
21546 dissolve_same_comdat_group_list when comdat group contains external or
21547 newly local nodes.
21548 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
21549 lists are circular and that they contain only DECL_ONE_ONLY nodes.
21550
21551 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
21552
21553 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
21554 (const_hash_1) <VECTOR_CST>: New case.
21555 (compare_constant) <VECTOR_CST>: Likewise.
21556 <ADDR_EXPR>: Deal with LABEL_REFs.
21557 (copy_constant) <VECTOR_CST>: New case.
21558
21559 2010-04-27 Jan Hubicka <jh@suse.cz>
21560
21561 * cgraph.c (cgraph_propagate_frequency): New function.
21562 * cgraph.h (cgraph_propagate_frequency): Declare.
21563 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
21564 cgraph_propagate_frequency.
21565
21566 2010-04-27 Jakub Jelinek <jakub@redhat.com>
21567
21568 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
21569
21570 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
21571
21572 PR target/40657
21573 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
21574 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
21575 here to determine which regs to push and how much stack to reserve.
21576
21577 2010-04-27 Jie Zhang <jie@codesourcery.com>
21578
21579 * doc/gimple.texi (gimple_statement_with_ops): Remove
21580 addresses_taken field.
21581 (gimple_statement_with_memory_ops): Likewise.
21582
21583 2010-04-27 Jan Hubicka <jh@suse.cz>
21584
21585 * tree-inline.c (eni_inlining_weights): Remove.
21586 (estimate_num_insns): Special case more builtins.
21587
21588 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
21589
21590 PR c/32207
21591 * c-typeck.c (build_binary_op): Move forward check for comparison
21592 pointer with null pointer constant and adjust the diagnostic message.
21593
21594 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
21595
21596 PR lto/42776
21597 * configure.ac (gcc_cv_as_section_has_align): Set if installed
21598 binutils supports extended .section directive needed by LTO, or
21599 warn if older binutils found.
21600 (LTO_BINARY_READER): New AC_SUBST'd variable.
21601 (LTO_USE_LIBELF): Likewise.
21602 * config.gcc (lto_binary_reader): New target-specific configure
21603 variable.
21604 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
21605 (LTO_USE_LIBELF): Likewise.
21606 * configure: Regenerate.
21607
21608 * collect2.c (is_elf): Rename from this ...
21609 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
21610 object files in addition to ELF-formatted ones.
21611 (scan_prog_file): Caller updated. Also allow for LTO info marker
21612 symbol to be prefixed or not by an extra underscore.
21613
21614 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
21615 * config/i386/winnt.c: Also #include lto-streamer.h
21616 (i386_pe_asm_named_section): Specify 1-byte section alignment for
21617 LTO named sections.
21618 (i386_pe_asm_output_aligned_decl_common): Add comment.
21619 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
21620
21621 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
21622
21623 PR target/43889
21624 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
21625 Add missing earlyclobber for second alternative.
21626
21627 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
21628
21629 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
21630 bits for artificial defs at the top of the block.
21631 * fwprop.c (single_def_use_enter_block): Don't call it.
21632
21633 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
21634
21635 PR 43715
21636 * configure.ac: Use "$gcc_cv_nm -g" on darwin
21637 instead of "$gcc_cv_objdump -T".
21638 Use "-undefined dynamic_lookup" on darwin.
21639 * configure: Regenerate.
21640
21641 2010-04-26 Jakub Jelinek <jakub@redhat.com>
21642
21643 PR c/43893
21644 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
21645
21646 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
21647
21648 * c-parser.c (struct c_token): Move location field up.
21649 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
21650 (struct c_declspecs): Convert typespec_word, storage_class, and
21651 default_int_p into bitfields.
21652 (struct c_declarator): Move loc field up.
21653
21654 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
21655
21656 * cfgloop.h (struct loop): Move can_be_parallel field up.
21657 * ipa-prop.h (struct ip_node_params): Move bitfields up.
21658 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
21659 down.
21660 (struct iv_cand): Convert pos field into a bitfield.
21661 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
21662 field up.
21663 (struct _stmt_vec_info): Shuffle fields for better packing.
21664
21665 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
21666
21667 * varasm.c (IN_NAMED_SECTION): Remove guard.
21668 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
21669 (IN_NAMED_SECTION_P): ...this.
21670 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
21671 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
21672
21673 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
21674
21675 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
21676 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
21677 of shadowing it. Fix comments.
21678
21679 2010-04-26 Jan Hubicka <jh@suse.cz>
21680
21681 * cgraph.c (cgraph_create_node): Set node frequency to normal.
21682 (cgraph_clone_node): Copy function frequency.
21683 * cgraph.h (node_frequency): New enum
21684 (struct cgraph_node): Add.
21685 * final.c (rest_of_clean_state): Update.
21686 * lto-cgraph.c (lto_output_node): Output node frequency.
21687 (input_overwrite_node): Input node frequency.
21688 * tre-ssa-loop-ivopts (computation_cost): Update.
21689 * lto-streamer-out.c (output_function): Do not output function
21690 frequency.
21691 * predict.c (maybe_hot_frequency_p): Update and handle functions
21692 executed once.
21693 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
21694 attribute lookup.
21695 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
21696 (compute_function_frequency): Set noreturn functions to be executed
21697 once.
21698 (choose_function_section): Update.
21699 * lto-streamer-in.c (input_function): Do not input function frequency.
21700 * function.c (allocate_struct_function): Do not initialize function
21701 frequency.
21702 * function.h (function_frequency): Remove.
21703 (struct function): Remove function frequency.
21704 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
21705 (try_update): Update.
21706 * tree-inline.c (initialize_cfun): Do not update function frequency.
21707 * passes.c (pass_init_dump_file): Update.
21708 * i386.c (ix86_compute_frame_layout): Update.
21709 (ix86_pad_returns): Update.
21710
21711 2010-04-26 Jie Zhang <jie@codesourcery.com>
21712
21713 PR tree-optimization/43833
21714 * tree-vrp.c (range_int_cst_p): New.
21715 (range_int_cst_singleton_p): New.
21716 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
21717 when both operands are constants. Use range_int_cst_p in
21718 BIT_IOR_EXPR case.
21719
21720 2010-04-26 Jan Hubicka <jh@suse.cz>
21721
21722 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
21723
21724 2010-04-26 Richard Guenther <rguenther@suse.de>
21725
21726 PR lto/43080
21727 * gimple.c (gimple_decl_printable_name): Deal gracefully
21728 with a NULL DECL_NAME.
21729
21730 2010-04-26 Richard Guenther <rguenther@suse.de>
21731
21732 PR lto/42425
21733 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
21734 if emitting debug information and it is either a function
21735 or a namespace decl.
21736
21737 2010-04-26 Ira Rosen <irar@il.ibm.com>
21738
21739 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
21740 determine if the statement is vectorizable, and a macro to access it.
21741 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21742 Skip statements that can't be vectorized. If the analysis fails,
21743 mark the statement as unvectorizable if vectorizing basic block.
21744 (vect_compute_data_refs_alignment): Likewise.
21745 (vect_verify_datarefs_alignment): Skip statements marked as
21746 unvectorizable. Add print.
21747 (vect_analyze_group_access): Skip statements that can't be
21748 vectorized. If the analysis fails, mark the statement as
21749 unvectorizable if vectorizing basic block.
21750 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
21751 * tree-vect-stmts.c (vectorizable_store): Fix the number of
21752 generated stmts for SLP.
21753 (new_stmt_vec_info): Initialize the new field.
21754 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
21755 statements marked as unvectorizable.
21756
21757 2010-04-25 Joseph Myers <joseph@codesourcery.com>
21758
21759 * c-common.c (flag_isoc1x): New.
21760 (flag_isoc99): Update comment.
21761 * c-common.h (flag_isoc1x): New.
21762 (flag_isoc99): Update comment.
21763 * c-cppbuiltin.c (builtin_define_float_constants): Also define
21764 __<type>_DECIMAL_DIG__.
21765 * c-opts.c (set_std_c1x): New.
21766 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
21767 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
21768 * c.opt (-std=c1x, -std=gnu1x): New options.
21769 * doc/cpp.texi: Mention -std=c1x.
21770 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
21771 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
21772 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
21773 * doc/standards.texi: Mention C1X.
21774 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
21775 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
21776 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
21777 Define for C1X.
21778
21779 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
21780
21781 * config/i386/gmon-sol2.c (_mcleanup): Change format string
21782 placeholder from 0x%x to %#x.
21783 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
21784 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
21785 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
21786 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
21787 * config/i386/i386.c (ix86_target_string): Ditto.
21788 (output_pic_addr_const): Ditto.
21789 (print_operand): Ditto.
21790
21791 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
21792
21793 * combine.c (find_split_point): Add third argument. Use it
21794 to find nested multiply-accumulate instructions. Adjust calls.
21795 (try_combine): Adjust call to find_split_point.
21796
21797 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
21798
21799 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
21800
21801 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
21802
21803 PR tree-optimization/41442
21804 * fold-const.c (merge_truthop_with_opposite_arm): New function.
21805 (fold_binary_loc): Call it.
21806
21807 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
21808
21809 * toplev.c (general_init): Set default for fdiagnostics-show-option.
21810 * opts.c (common_handle_option): Allow disabling it.
21811 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
21812
21813 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
21814
21815 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
21816 between modes if both types are integral.
21817
21818 2010-04-23 Richard Guenther <rguenther@suse.de>
21819
21820 PR tree-optimization/43572
21821 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
21822
21823 2010-04-23 Richard Guenther <rguenther@suse.de>
21824
21825 PR lto/43455
21826 * tree-inline.c (tree_can_inline_p): Also check compatibility
21827 of return types.
21828
21829 2010-04-23 Martin Jambor <mjambor@suse.cz>
21830
21831 PR tree-optimization/43846
21832 * tree-sra.c (struct access): New flag grp_assignment_read.
21833 (build_accesses_from_assign): Set grp_assignment_read.
21834 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
21835 (enum mark_read_status): New type.
21836 (analyze_access_subtree): Propagate grp_assignment_read, create
21837 accesses also if both direct_read and root->grp_assignment_read.
21838
21839 2010-04-23 Martin Jambor <mjambor@suse.cz>
21840
21841 PR middle-end/43835
21842 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
21843 function does not have type attributes.
21844
21845 2010-04-23 Richard Guenther <rguenther@suse.de>
21846
21847 PR lto/42653
21848 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
21849 of FUNCTION_DECLs.
21850
21851 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
21852
21853 * sese.h (create_if_region_on_edge): Remove.
21854
21855 * sese.c (create_if_region_on_edge): Make static.
21856
21857 * tree-inline.c: Do not include ggc.h.
21858
21859 * expr.c: Do not include ggc.h.
21860
21861 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
21862 dependencies.
21863
21864 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
21865
21866 PR target/43744
21867 * config/sh/sh.c (find_barrier): Don't emit a constant pool
21868 in the middle of insns for casesi_worker_2.
21869
21870 2010-04-22 David Edelsohn <edelsohn@gnu.org>
21871
21872 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
21873
21874 2010-04-22 Ira Rosen <irar@il.ibm.com>
21875
21876 PR tree-optimization/43842
21877 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
21878 loop unrolling in update of exit phis. Fix comment.
21879 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
21880 least two reduction statements in the loop before starting SLP
21881 analysis.
21882
21883 2010-04-22 Nick Clifton <nickc@redhat.com>
21884
21885 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
21886
21887 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
21888
21889 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
21890 to simplify a + ~a.
21891
21892 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
21893
21894 * tree-parloops.c (loop_parallel_p): New argument
21895 parloop_obstack. Pass it down.
21896 (parallelize_loops): New variable parloop_obstack. Initialize it,
21897 pass it down, free it.
21898
21899 * tree-loop-linear.c (linear_transform_loops): Pass down
21900 lambda_obstack.
21901
21902 * tree-data-ref.h (lambda_compute_access_matrices): New argument
21903 of type struct obstack *.
21904
21905 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
21906 scratch_obstack. Initialize it, pass down, free it.
21907
21908 * lambda.h (lambda_loop_new): Remove.
21909 (lambda_matrix_new, lambda_matrix_inverse)
21910 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
21911 argument of type struct obstack *.
21912
21913 * lambda-trans.c (lambda_trans_matrix_new): New argument
21914 lambda_obstack. Pass it down, use obstack allocation for ret.
21915 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
21916 it down.
21917
21918 * lambda-mat.c (lambda_matrix_get_column)
21919 (lambda_matrix_project_to_null): Remove.
21920 (lambda_matrix_new): New argument lambda_obstack. Use obstack
21921 allocation for mat.
21922 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
21923 lambda_obstack.
21924
21925 * lambda-code.c (lambda_loop_new): New function.
21926 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
21927 (lambda_compute_auxillary_space, lambda_compute_target_space)
21928 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
21929 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
21930 (build_access_matrix): New argument lambda_obstack. Use obstack
21931 allocation for am.
21932 (lambda_compute_step_signs, lambda_compute_access_matrices): New
21933 argument lambda_obstack. Pass it down.
21934
21935 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
21936
21937 * optabs.h (expand_widening_mult): Declare.
21938
21939 2010-04-22 Richard Guenther <rguenther@suse.de>
21940
21941 PR tree-optimization/43845
21942 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
21943 lookup the CALL_EXPR function and arguments.
21944
21945 2010-04-22 Nick Clifton <nickc@redhat.com>
21946
21947 * config/stormy16/stormy16.c
21948 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
21949 * config/stormy16/stormy16.h: Tidy up formatting.
21950 (DONT_USE_BUILTIN_SETJMP): Remove definition.
21951 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
21952 (ineqbranchsi): Delete pattern.
21953 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
21954 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
21955 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
21956 stormy16-lib2-ucmpsi2.c.
21957
21958 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
21959
21960 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
21961 df_simulate_find_noclobber_defs as appropriate. Keep track of an
21962 extra set merge_set_noclobber, and use it to relax the final test
21963 slightly.
21964 * df.h (df_simulate_find_noclobber_defs): Declare.
21965 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
21966 conditional defs.
21967 (df_simulate_find_noclobber_defs): New function.
21968
21969 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
21970
21971 * config/i386/i386.md: Use {} around multi-line preparation statements.
21972
21973 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
21974
21975 * c-tree.h (push_init_level, pop_init_level, set_init_index)
21976 (process_init_element): New argument of type struct obstack *.
21977
21978 * c-typeck.c (push_init_level, pop_init_level, set_designator)
21979 (set_init_index, set_init_label, set_nonincremental_init)
21980 (set_nonincremental_init_from_string, find_init_member)
21981 (output_init_element, output_pending_init_elements)
21982 (process_init_element): New argument braced_init_obstack. Pass it
21983 down.
21984 (push_range_stack, add_pending_init): New argument
21985 braced_init_obstack. Use obstack allocation.
21986
21987 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
21988 braced_init_obstack. Pass it down.
21989 (c_parser_braced_init): New variables ret, braced_init_obstack.
21990 Initialize obstack, pass it down and finally free it.
21991
21992 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
21993
21994 PR middle-end/29274
21995 * tree-pass.h (pass_optimize_widening_mul): Declare.
21996 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
21997 gate_optimize_widening_mul): New static functions.
21998 (pass_optimize_widening_mul): New.
21999 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
22000 <case MULT_EXPR>: Remove support for widening multiplies.
22001 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
22002 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
22003 simplify_gen_unary rather than directly building extensions.
22004 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
22005 WIDEN_MULT_EXPR.
22006 * expmed.c (expand_widening_mult): New function.
22007 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
22008
22009 2010-04-21 Jan Hubicka <jh@suse.cz>
22010
22011 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
22012 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
22013 * lto-wpa-fixup.c: Remove.
22014 * Makefile.in (lto-wpa-fixup.o): Remove.
22015 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
22016 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
22017 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
22018
22019 2010-04-21 Jan Hubicka <jh@suse.cz>
22020
22021 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
22022 add write_optimization_summary, read_optimization_summary.
22023 (ipa_write_summaries_of_cgraph_node_set): Remove.
22024 (ipa_write_optimization_summaries): Declare.
22025 (ipa_read_optimization_summaries): Declare.
22026 * ipa-cp.c (pass_ipa_cp): Update.
22027 * ipa-reference.c (pass_ipa_reference): Update.
22028 * ipa-pure-const.c (pass_ipa_pure_const): Update.
22029 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
22030 Update.
22031 * ipa-inline.c (pass_ipa_inline): Update.
22032 * ipa.c (pass_ipa_whole_program): Update.
22033 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
22034 * passes.c (ipa_write_summaries_1): Do not test wpa.
22035 (ipa_write_optimization_summaries_1): New.
22036 (ipa_write_optimization_summaries): New.
22037 (ipa_read_summaries): Do not test ltrans.
22038 (ipa_read_optimization_summaries_1): New.
22039 (ipa_read_optimization_summaries): New.
22040
22041 2010-04-21 Jan Hubicka <jh@suse.cz>
22042
22043 * lto-cgraph.c (lto_output_node): Do not output comdat groups
22044 for boundary nodes.
22045 (output_cgraph): Do not arrange comdat groups for boundary nodes.
22046
22047 2010-04-21 Jakub Jelinek <jakub@redhat.com>
22048
22049 PR debug/40040
22050 * dwarf2out.c (add_name_and_src_coords_attributes): Add
22051 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
22052
22053 2010-04-21 Jan Hubicka <jh@suse.cz>
22054
22055 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
22056
22057 2010-04-21 Jan Hubicka <jh@suse.cz>
22058
22059 * varpool.c (decide_is_variable_needed): Variable is always needed
22060 during ltrans.
22061
22062 2010-04-21 Jan Hubicka <jh@suse.cz>
22063
22064 * opts.c (decode_options): Enable pure-const pass for whopr.
22065
22066 2010-04-21 Jan Hubicka <jh@suse.cz>
22067
22068 * cgraph.c (dump_cgraph_node): Dump also assembler name.
22069 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
22070 at WPA dumping.
22071 (cgraph_decide_inlining): Do not expect callee to be removed in all
22072 cases.
22073
22074 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
22075
22076 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
22077
22078 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
22079
22080 * config/i386/i386.md (x86_shrd): Add athlon_decode and
22081 amdfam10_decode attributes.
22082
22083 2010-04-21 Jakub Jelinek <jakub@redhat.com>
22084
22085 PR middle-end/43570
22086 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
22087 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
22088 (lower_copyprivate_clauses): Use private var in outer
22089 context instead of original var. Make sure the types
22090 are correct for VLAs.
22091
22092 2010-04-21 Richard Guenther <rguenther@suse.de>
22093
22094 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
22095 to non-pointer objects.
22096
22097 2010-04-21 Jakub Jelinek <jakub@redhat.com>
22098
22099 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
22100 last chain entry if it starts with the still current label.
22101 (add_location_or_const_value_attribute): Check that
22102 loc_list->first->next is NULL instead of comparing ->first with ->last.
22103 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
22104 to add_var_loc_to_decl.
22105
22106 * dwarf2out.c (output_call_frame_info): For dw_cie_version
22107 >= 4 add also address size and segment size fields into CIE header.
22108
22109 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
22110 long as address size is the same as sizeof (void *) and
22111 segment size is 0.
22112 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
22113 address size or segment size is unexpected, return DW_EH_PE_omit.
22114 (classify_object_over_fdes): If get_cie_encoding returned
22115 DW_EH_PE_omit, return -1.
22116 (init_object): If classify_object_over_fdes returned -1,
22117 pretend there were no FDEs at all.
22118
22119 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
22120
22121 * config/i386/i386.md (bswap<mode>2): Macroize expander from
22122 bswap{si,di}2 using SWI48 mode iterator.
22123 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
22124 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
22125 set modrm attribute of bswap insn to 0 and remove length attribute.
22126 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
22127 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
22128 set mode attribute to <MODE> and remove length attribute.
22129
22130 2010-04-20 James E. Wilson <wilson@codesourcery.com>
22131
22132 PR rtl-optimization/43520
22133 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
22134 zero available registers.
22135
22136 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22137
22138 * builtins.c (fold_builtin_cproj): Fold more cases.
22139
22140 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22141
22142 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
22143 (fold_builtin_1): Fold builtin cproj.
22144 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
22145 Use ATTR_CONST_NOTHROW_LIST.
22146
22147 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
22148
22149 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
22150 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
22151 ffsi2_no_cmove for !TARGET_CMOVE.
22152 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
22153 (ffssi2): Remove expander.
22154 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
22155 mode iterator.
22156 (ctz<mode>2): Ditto from ctz{si,di}2.
22157 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
22158 mode iterator.
22159 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
22160 mode iterator.
22161
22162 2010-04-20 Jakub Jelinek <jakub@redhat.com>
22163
22164 * dwarf2out.c (AT_linkage_name): Define.
22165 (clone_as_declaration): Handle DW_AT_linkage_name.
22166 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
22167 of DW_AT_MIPS_linkage_name.
22168 (move_linkage_attr): Likewise.
22169 (dwarf2out_finish): Likewise.
22170
22171 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
22172
22173 PR middle-end/41952
22174 * fold-const.c (fold_comparison): New folding rule.
22175
22176 2010-04-20 Anatoly Sokolov <aesok@post.ru>
22177
22178 * double-int.h (double_int_setbit): Declare.
22179 * double-int.c (double_int_setbit): New function.
22180 * rtl.h (immed_double_int_const): Declare.
22181 * emit-rtl.c (immed_double_int_const): New function.
22182 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
22183 and immed_double_int_const functions.
22184 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
22185 expand_copysign_bit): (Ditto.).
22186 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
22187 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
22188 * dojump.c (prefer_and_bit_test): (Ditto.).
22189 * expr.c (convert_modes, reduce_to_bit_field_precision,
22190 const_vector_from_tree): (Ditto.).
22191 * expmed.c (mask_rtx, lshift_value): (Ditto.).
22192
22193 2010-04-20 Jan Hubicka <jh@suse.cz>
22194
22195 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
22196 (dump_cgraph_node): Dump new flags.
22197 * cgraph.h (struct cgraph_node): Add flags
22198 reachable_from_other_partition and in_other_partition.
22199 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
22200 other partition can not be removed.
22201 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
22202 the other partition must be output; silence sanity checking on
22203 leaking functions bodies from other paritition.
22204 * lto-cgraph.c (reachable_from_other_partition_p): New function.
22205 (lto_output_node): Output new flags; do not sanity check that inline
22206 clones are output; drop lto_forced_extern_inline_p code; do not mock
22207 visibility flags at partition boundaries.
22208 (add_node_to): New function.
22209 (output_cgraph): Use it to sort functions so masters appear before
22210 clones.
22211 (input_overwrite_node): Input new flags.
22212 * passes.c (ipa_write_summaries): Do not call
22213 lto_new_extern_inline_states.
22214 * lto-section-out.c (forced_extern_inline,
22215 lto_new_extern_inline_states lto_delete_extern_inline_states,
22216 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
22217 * lto-streamer.h (lto_new_extern_inline_states,
22218 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
22219 lto_forced_extern_inline_p): Kill.
22220
22221 2010-04-20 Richard Guenther <rguenther@suse.de>
22222
22223 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
22224 from vars that can have pointers.
22225 (process_constraint): Dump useless constraints.
22226
22227 2010-04-20 Richard Guenther <rguenther@suse.de>
22228
22229 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
22230 (dump_sa_points_to_info): Remove asserts.
22231 (init_base_vars): nothing_id isn't an escape point nor does it
22232 have pointers.
22233
22234 2010-04-20 Jakub Jelinek <jakub@redhat.com>
22235
22236 * tree.h (TYPE_REF_IS_RVALUE): Define.
22237 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
22238 should_move_die_to_comdat, prune_unused_types_walk): Handle
22239 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
22240 (modified_type_die, gen_reference_type_die): Emit
22241 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
22242 if TYPE_REF_IS_RVALUE and -gdwarf-4.
22243
22244 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22245
22246 PR target/43635
22247 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
22248 calls for -fpic -m31 if they have been sibcall optimized.
22249
22250 2010-04-19 James E. Wilson <wilson@codesourcery.com>
22251
22252 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
22253 ar.lc fixed and call-used.
22254
22255 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
22256
22257 2010-04-19 Jan Hubicka <jh@suse.cz>
22258
22259 * opts.c (decode_options): Disable whpr incompatible passes.
22260 * lto/lto.c (lto_1_to_1_map): Skip clones.
22261 (read_cgraph_and_symbols): Do not mark everything as needed.
22262 (do_whole_program_analysis): Do map only after optimizing;
22263 set proper cgraph_state; use passmanager.
22264
22265 2010-04-19 DJ Delorie <dj@redhat.com>
22266
22267 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
22268 POINTER_PLUS_EXPR and fix them.
22269
22270 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
22271
22272 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
22273 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
22274 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
22275 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
22276 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
22277 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
22278 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
22279 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
22280 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
22281 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
22282 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
22283
22284 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
22285
22286 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
22287 (check_cond_move_block): Likewise.
22288 (cond_move_process_if_block): Likewise.
22289 (noce_find_if_block): Improve formatting.
22290 (find_if_header): Pass 0 to memset and tweak conditions.
22291 (cond_exec_find_if_block): Fix long lines and tweak conditions.
22292
22293 2010-04-19 Jakub Jelinek <jakub@redhat.com>
22294
22295 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
22296 for -gdwarf-4.
22297
22298 PR middle-end/43337
22299 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
22300 with non-local decl doesn't need chain.
22301
22302 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
22303
22304 * ira-color.c (allocno_reload_assign): Avoid accumulating
22305 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
22306
22307 2010-04-19 Martin Jambor <mjambor@suse.cz>
22308
22309 * gimple.h (create_tmp_reg): Declare.
22310 * gimplify.c (create_tmp_reg): New function.
22311 (gimplify_return_expr): Use create_tmp_reg.
22312 (gimplify_omp_atomic): Likewise.
22313 (gimple_regimplify_operands): Likewise.
22314 * tree-dfa.c (make_rename_temp): Likewise.
22315 * tree-predcom.c (predcom_tmp_var): Likewise.
22316 (reassociate_to_the_same_stmt): Likewise.
22317 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
22318 (get_replaced_param_substitute): Likewise.
22319 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
22320 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
22321 * tree-ssa-pre.c (get_representative_for): Likewise.
22322 (create_expression_by_pieces): Likewise.
22323 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
22324 (create_tailcall_accumulator): Likewise.
22325
22326 2010-04-19 Martin Jambor <mjambor@suse.cz>
22327
22328 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
22329 new_stmt.
22330 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
22331
22332 2010-04-19 Richard Guenther <rguenther@suse.de>
22333
22334 PR tree-optimization/43796
22335 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
22336 from SCEV in the lattice.
22337 (vrp_visit_phi_node): Dump change.
22338
22339 2010-04-19 Richard Guenther <rguenther@suse.de>
22340
22341 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
22342 * configure: Re-generated.
22343
22344 2010-04-19 Richard Guenther <rguenther@suse.de>
22345
22346 PR tree-optimization/43783
22347 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
22348 constant ARRAY_REF operands two and three if possible.
22349
22350 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
22351
22352 PR target/43766
22353 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
22354
22355 2010-04-19 Jie Zhang <jie@codesourcery.com>
22356
22357 PR target/43662
22358 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
22359
22360 2010-04-19 Ira Rosen <irar@il.ibm.com>
22361
22362 PR tree-optimization/37027
22363 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
22364 and macro to access it.
22365 (vectorizable_reduction): Add argument.
22366 (vect_get_slp_defs): Likewise.
22367 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
22368 statements for possible use in SLP.
22369 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
22370 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
22371 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
22372 add new argument.
22373 (vectorizable_reduction): Likewise.
22374 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
22375 vect_get_slp_defs.
22376 (vectorizable_type_demotion, vectorizable_type_promotion,
22377 vectorizable_store): Likewise.
22378 (vect_analyze_stmt): Update call to vectorizable_reduction.
22379 (vect_transform_stmt): Likewise.
22380 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
22381 (vect_build_slp_tree): Fix indentation. Check that there are no loads
22382 from different interleaving chains in same node.
22383 (vect_slp_rearrange_stmts): New function.
22384 (vect_supported_load_permutation_p): Allow load permutations for
22385 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
22386 inside SLP nodes if necessary.
22387 (vect_analyze_slp_instance): Handle reductions.
22388 (vect_analyze_slp): Try to build SLP instances originating from groups
22389 of reductions.
22390 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
22391 (vect_get_constant_vectors): Create initial vectors for reductions
22392 according to reduction code. Add new argument.
22393 (vect_get_slp_defs): Add new argument, pass it to
22394 vect_get_constant_vectors.
22395 (vect_schedule_slp_instance): Remove SLP tree root statements.
22396
22397 2010-04-19 Jakub Jelinek <jakub@redhat.com>
22398
22399 * tree.h (ENUM_IS_SCOPED): Define.
22400 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
22401 for ENUM_IS_SCOPED enums.
22402
22403 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
22404
22405 * fold-const.c (fold_comparison): Use ssizetype.
22406 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
22407 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
22408 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
22409 * tree-object-size.c (compute_object_sizes): Use size_type_node.
22410
22411 * tree.h (initialize_sizetypes): Remove parameter.
22412 (build_common_tree_nodes): Remove second parameter.
22413 * stor-layout.c (initialize_sizetypes): Remove parameter.
22414 Always create an unsigned type.
22415 (set_sizetype): Assert that the passed type is unsigned and simplify.
22416 * tree.c (build_common_tree_nodes): Remove second parameter.
22417 Adjust call to initialize_sizetypes.
22418 * c-decl.c (c_init_decl_processing): Remove second argument in call to
22419 build_common_tree_nodes.
22420
22421 2010-04-18 Matthias Klose <doko@ubuntu.com>
22422
22423 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
22424
22425 2010-04-18 Ira Rosen <irar@il.ibm.com>
22426
22427 PR tree-optimization/43771
22428 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
22429 load permutation doesn't have gaps.
22430
22431 2010-04-18 Jan Hubicka <jh@suse.cz>
22432
22433 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
22434 (sse_prologue_save_insn expander): Use new pattern.
22435 (sse_prologue_save_insn1): New pattern and splitter.
22436 (sse_prologue_save_insn): Update to deal also with 64bit aligned
22437 blocks.
22438 * i386.c (setup_incoming_varargs_64): Do not compute jump
22439 destination here.
22440 (ix86_gimplify_va_arg): Update alignment needed.
22441 (ix86_local_alignment): Do not align all local arrays to 128bit.
22442
22443 2010-04-17 Jan Hubicka <jh@suse.cz>
22444
22445 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
22446
22447 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
22448
22449 * arm.md (negdi2): Remove redundant code to force values into a
22450 register.
22451
22452 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
22453
22454 * arm/bpabi.S: Add EABI alignment attributes to objects.
22455 * arm/bpabi-v6m.S: Likewise.
22456 * arm/crti.asm: Likewise.
22457 * arm/crtn.asm: Likewise.
22458 * arm/lib1funcs.asm: Likewise.
22459 * arm/libunwind.S: Likewise.
22460
22461 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
22462
22463 * arm-protos.h (tune_params): New structure.
22464 * arm.c (current_tune): New variable.
22465 (arm_constant_limit): Delete.
22466 (struct processors): Add pointer to the tune parameters.
22467 (arm_slowmul_tune): New tuning option.
22468 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
22469 (all_cores): Adjust to pick up the tuning model.
22470 (arm_constant_limit): New function.
22471 (arm_override_options): Select the appropriate tuning model. Delete
22472 initialization of arm_const_limit.
22473 (arm_split_constant): Use the new constant-limit model.
22474 (arm_rtx_costs): Pick up the current tuning model.
22475 * arm.md (is_strongarm, is_xscale): Delete.
22476 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
22477 for Xscale variant architectures.
22478 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
22479
22480 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22481
22482 * config/arm/arm.c (arm_gen_constant): Remove unused variable
22483 can_shift.
22484 (arm_rtx_costs_1): Remove unused variable extra_cost.
22485 (arm_unwind_emit_set): Use variable offset.
22486 (thumb1_output_casesi): Remove unused variable flags.
22487
22488 2010-04-16 Jeff Law <law@redhat.com>
22489
22490 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
22491 needing assignment rather than doing a two-phase assignment. Remove
22492 unused variable 'm'.
22493
22494 2010-04-16 Jakub Jelinek <jakub@redhat.com>
22495
22496 PR bootstrap/43767
22497 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
22498
22499 2010-04-16 Doug Kwan <dougkwan@google.com>
22500
22501 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
22502 (next_operand_entry_id): New static variable.
22503 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
22504 (add_to_ops_vec): Assigned unique ID to operand entry.
22505 (struct oecount_s): New field ID.
22506 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
22507 (undistribute_ops_list): Assign unique IDs to oecounts.
22508 (init_reassoc): reset next_operand_entry_id.
22509
22510 2010-04-16 Doug Kwan <dougkwan@google.com>
22511
22512 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
22513 missing left parenthesis.
22514
22515 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
22516
22517 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
22518 *btdi_rex64 using SWI48 mode iterator.
22519 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
22520 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
22521 *jcc_btdi_mask_rex64.
22522
22523 2010-04-16 Anatoly Sokolov <aesok@post.ru>
22524
22525 * double-int.h (tree_to_double_int): Convert to macro.
22526 * double-int.c (tree_to_double_int): Remove.
22527
22528 2010-04-16 Jakub Jelinek <jakub@redhat.com>
22529
22530 PR debug/43762
22531 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
22532 with want_address 2 and in case a single element list might be
22533 possible, call it again with want_address 0.
22534
22535 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
22536
22537 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
22538 case 'W' print operands for HI mode.
22539 * config/h8300/h8300.h (Y0, Y2) : New constraints.
22540 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
22541 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
22542 * config/h8300/predicate.md (bit_register_indirect_operand): New.
22543
22544 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
22545
22546 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
22547 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
22548 #xx:3 and #xx:4 mode.
22549
22550 * config/h8300/h8300.md (inverted load with HImode dest): Add
22551 support for H8300SX.
22552
22553 * config/h8300/predicate.md (bit_operand): Allow immediate values that
22554 satisfy 'U' constraint.
22555
22556 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22557
22558 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
22559 * configure: Regenerate.
22560 * config.in: Regenerate.
22561 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
22562 works.
22563
22564 2010-04-16 Richard Guenther <rguenther@suse.de>
22565
22566 * tree.h (struct tree_decl_minimal): Move pt_uid ...
22567 (struct tree_decl_common): ... here.
22568 (DECL_PT_UID): Adjust.
22569 (SET_DECL_PT_UID): Likewise.
22570 (DECL_PT_UID_SET_P): Likewise.
22571
22572 2010-04-16 Richard Guenther <rguenther@suse.de>
22573
22574 PR tree-optimization/43572
22575 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
22576 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
22577 * tree-flow.h (is_call_clobbered): Remove.
22578 * tree-flow-inline.h (is_call_clobbered): Likewise.
22579 * tree-dfa.c (dump_variable): Do not dump call clobber state.
22580 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
22581 (execute_return_slot_opt): Adjust.
22582 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
22583 check for call clobbered vars here.
22584 (find_tail_calls): Move tailcall verification to the
22585 proper place.
22586
22587 2010-04-16 Diego Novillo <dnovillo@google.com>
22588
22589 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
22590
22591 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
22592
22593 PR target/40603
22594 * config/arm/arm.md (cbranchqi4): New pattern.
22595 * config/arm/predicates.md (const0_operand,
22596 cbranchqi4_comparison_operator): New predicates.
22597
22598 2010-04-16 Richard Guenther <rguenther@suse.de>
22599
22600 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
22601 (dump_gimple_stmt): Likewise.
22602
22603 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
22604
22605 * recog.h (struct recog_data): New field is_operator.
22606 (struct insn_operand_data): New field is_operator.
22607 * recog.c (extract_insn): Set recog_data.is_operator.
22608 * genoutput.c (output_operand_data): Emit code to set the
22609 is_operator field.
22610 * reload.c (find_reloads): Use it rather than testing for an
22611 empty constraint string.
22612
22613 PR target/41514
22614 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
22615 If the previous insn is a cbranchsi4_insn with the same arguments,
22616 omit the compare instruction.
22617
22618 * config/arm/arm.md (addsi3_cbranch): If destination is a high
22619 register, inputs must be low registers and we need a low register
22620 scratch. Handle alternative 2 like alternative 3.
22621
22622 2010-04-16 Jakub Jelinek <jakub@redhat.com>
22623
22624 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
22625 don't call get_addr on both. If one expression is a VALUE and
22626 the other a REG, check VALUE's locs if the REG isn't among them.
22627
22628 2010-04-16 Christian Bruel <christian.bruel@st.com>
22629
22630 * config/sh/sh.h (sh_frame_pointer_required): New function.
22631 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
22632 (flag_omit_frame_pointer) Set.
22633 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
22634 (rounded_frame_size): Adjust size with outgoing_args_size.
22635 (sh_set_return_address): Must return from stack pointer.
22636 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
22637 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
22638 (ACCUMULATE_OUTGOING_ARGS): Define.
22639 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
22640 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
22641
22642 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
22643
22644 PR target/43471
22645 * config/sh/sh.c (sh_legitimize_reload_address): Use
22646 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
22647 Remove a unneeded check for offset_base.
22648
22649 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
22650
22651 * configure: Regenerated.
22652
22653 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22654
22655 * config/s390/s390.c (s390_call_save_register_used): Switch back
22656 to HARD_REGNO_NREGS.
22657
22658 2010-04-15 Richard Guenther <rguenther@suse.de>
22659
22660 * alias.c (alias_set_subset_of): Handle alias-set zero
22661 child properly.
22662
22663 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
22664 Julian Brown <julian@codesourcery.com>
22665
22666 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
22667 alternatives according to use of high and low regs.
22668 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
22669 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
22670 optimizing for size on Thumb-2.
22671
22672 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
22673
22674 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
22675
22676 2010-04-15 Richard Guenther <rguenther@suse.de>
22677
22678 * tree-ssa-structalias.c (struct variable_info): Add
22679 is_fn_info flag.
22680 (new_var_info): Initialize it.
22681 (dump_constraints): Support printing last added constraints.
22682 (debug_constraints): Adjust.
22683 (dump_constraint_graph): Likewise.
22684 (make_heapvar_for): Check for NULL cfun.
22685 (get_function_part_constraint): New function.
22686 (get_fi_for_callee): Likewise.
22687 (find_func_aliases): Properly implement IPA PTA constraints.
22688 (process_ipa_clobber): New function.
22689 (find_func_clobbers): Likewise.
22690 (insert_into_field_list_sorted): Remove.
22691 (create_function_info_for): Properly allocate vars for IPA mode.
22692 Do not use insert_into_field_list_sorted.
22693 (create_variable_info_for): Properly generate constraints for
22694 global vars in IPA mode.
22695 (dump_solution_for_var): Always dump the solution.
22696 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
22697 (find_what_var_points_to): Adjust.
22698 (pt_solution_set): Change.
22699 (pt_solution_ior_into): New function.
22700 (pt_solution_empty_p): Export.
22701 (pt_solution_includes_global): Adjust.
22702 (pt_solution_includes_1): Likewise.
22703 (pt_solutions_intersect_1): Likewise.
22704 (dump_sa_points_to_info): Check some invariants.
22705 (solve_constraints): Move constraint dumping ...
22706 (compute_points_to_sets): ... here.
22707 (ipa_pta_execute): ... and here.
22708 (compute_may_aliases): Do not re-compute points-to info
22709 locally if IPA info is available.
22710 (ipa_escaped_pt): New global var.
22711 (ipa_pta_execute): Properly implement IPA PTA.
22712 * tree-into-ssa.c (dump_decl_set): Support dumping
22713 decls not in referenced-vars.
22714 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
22715 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
22716 (dump_points_to_solution): Likewise.
22717 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
22718 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
22719 (remap_gimple_stmt): Reset call clobber/use information if necessary.
22720 (copy_decl_to_var): Copy DECL_PT_UID.
22721 (copy_result_decl_to_var): Likewise.
22722 * tree.c (make_node_stat): Initialize DECL_PT_UID.
22723 (copy_node_stat): Copy it.
22724 * tree.h (DECL_PT_UID): New macro.
22725 (SET_DECL_PT_UID): Likewise.
22726 (DECL_PT_UID_SET_P): Likewise.
22727 (struct tree_decl_minimal): Add pt_uid member.
22728 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
22729 (pt_solution_empty_p): Declare.
22730 (pt_solution_set): Adjust.
22731 (ipa_escaped_pt): Declare.
22732 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
22733 * gimple-pretty-print.c (pp_points_to_solution): New function.
22734 (dump_gimple_call): Dump call clobber/use information.
22735 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
22736 * tree-pass.h (TDF_ALIAS): New dump option.
22737 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
22738 * doc/invoke.texi (-fipa-pta): Update documentation.
22739
22740 2010-04-15 Richard Guenther <rguenther@suse.de>
22741
22742 * Makefile.in (OBJS-common): Add gimple-fold.o.
22743 (gimple-fold.o): New rule.
22744 * tree.h (maybe_fold_offset_to_reference,
22745 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
22746 prototypes ...
22747 * gimple.h: ... here.
22748 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
22749 may_propagate_address_into_dereference): Move prototypes ...
22750 * gimple.h: ... here.
22751 * tree-ssa-ccp.c (get_symbol_constant_value,
22752 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
22753 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
22754 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
22755 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
22756 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
22757 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
22758 gimplify_and_update_call_from_tree): Move ...
22759 * gimple-fold.c: ... here. New file.
22760 (ccp_fold_builtin): Rename to ...
22761 (gimple_fold_builtin): ... this.
22762 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
22763
22764 2010-04-15 Richard Guenther <rguenther@suse.de>
22765
22766 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
22767 fit_double_type, force_fit_type_double, add_double_with_sign,
22768 neg_double, mul_double_with_sign, lshift_double, rshift_double,
22769 lrotate_double, rrotate_double, div_and_round_double): Move ...
22770 * double-int.c: ... here.
22771 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
22772 add_double, neg_double, mul_double_with_sign, mul_double,
22773 lshift_double, rshift_double, lrotate_double, rrotate_double,
22774 div_and_round_double): Move prototypes ...
22775 * double-int.h: ... here.
22776
22777 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
22778
22779 PR target/43742
22780 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
22781 matching constraints to ensure inputs match the output.
22782
22783 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
22784
22785 PR target/43742
22786 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
22787 in an input-only operand.
22788
22789 2010-04-15 Anatoly Sokolov <aesok@post.ru>
22790
22791 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
22792 (double_int_not, double_int_lshift, double_int_rshift): Declare.
22793 (double_int_negative_p): Convert to static inline function.
22794 * double-int.c (double_int_lshift, double_int_lshift): New functions.
22795 (double_int_negative_p): Remove.
22796 * tree.h (lshift_double, rshift_double):
22797 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
22798 * fold-const.c (fold_convert_const_int_from_real,
22799 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
22800 (lshift_double): Change type of arith argument to bool.
22801 (rshift_double): Change type of arith argument to bool. Correct
22802 comment.
22803 * expmed.c (mask_rtx, lshift_value): (Ditto.).
22804
22805 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
22806
22807 PR target/21803
22808 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
22809 at the start and end of the then/else blocks, and omit them from the
22810 conversion.
22811 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
22812 argument; all callers changed. Pass zero to old_insns_match_p instead.
22813 (flow_find_head_matching_sequence): New function.
22814 (old_insns_match_p): Check REG_EH_REGION notes for calls.
22815 * basic-block.h (flow_find_cross_jump,
22816 flow_find_head_matching_sequence): Declare functions.
22817
22818 2010-04-14 Jason Merrill <jason@redhat.com>
22819
22820 PR c++/36625
22821 * c-common.c (attribute_takes_identifier_p): New fn.
22822 * c-common.h: Declare it.
22823
22824 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
22825
22826 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
22827 splitter condition.
22828 (*udivmod<mode>4): Ditto.
22829
22830 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
22831
22832 * config/i386/i386.md (maxmin_int): Rename code attribute from
22833 maxminiprefix and update all users.
22834 (maxmin_float): Ditto from maxminfprefix.
22835 (logic): Ditto from logicprefix.
22836 (absneg_mnemonic): Ditto from absnegprefix.
22837 * config/i386/mmx.md: Update all users of maxminiprefix,
22838 maxminfprefix and logicprefix for rename.
22839 * config/i386/sse.md: Ditto.
22840 * config/i386/sync.md (sync_<code><mode>): Update for
22841 logicprefix rename.
22842
22843 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
22844
22845 PR 42966
22846 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
22847 warnings converted to errors.
22848
22849 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
22850
22851 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
22852 used insn_type variable.
22853 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
22854 to avoid set-but-not-used warning.
22855
22856 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
22857
22858 * df-core.c (df_ref_debug): Change format string placeholder
22859 from 0x%x to %#x.
22860 * dwarf2asm.c (dw2_asm_output_data_raw,
22861 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
22862 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
22863 * dwarf2out.c (output_cfi, output_cfi_directive,
22864 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
22865 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
22866 Ditto.
22867 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
22868 * print-rtl.c (print_rtx): Ditto.
22869
22870 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
22871
22872 PR middle-end/42694
22873 * builtins.c (expand_builtin_pow_root): New function to expand pow
22874 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
22875 series of sqrt and cbrt calls under -ffast-math.
22876 (expand_builtin_pow): Call it.
22877
22878 2010-04-14 Michael Matz <matz@suse.de>
22879
22880 PR tree-optimization/42963
22881 * tree-cfg.c (touched_switch_bbs): New static variable.
22882 (group_case_labels_stmt): New function broken out from ...
22883 (group_case_labels): ... here, use the above.
22884 (start_recording_case_labels): Allocate touched_switch_bbs.
22885 (end_recording_case_labels): Deallocate it, call
22886 group_case_labels_stmt.
22887 (gimple_redirect_edge_and_branch): Remember index of affected BB.
22888
22889 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
22890
22891 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
22892 from insn template.
22893
22894 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
22895
22896 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
22897
22898 2010-04-13 Jan Hubicka <jh@suse.cz>
22899
22900 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
22901 of optimized out static functions.
22902 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
22903 cost computation. Also sanity check for overflows.
22904 (update_caller_keys): Update cgraph_edge_badness call; properly
22905 update fibheap and sanity check that it is up to date.
22906 (add_new_edges_to_heap): Update cgraph_edge_badness.
22907 (cgraph_decide_inlining_of_small_function): Likewise;
22908 add sanity checking that badness in heap is up to date;
22909 improve dumping of reason; Update badness of calls to the
22910 offline copy of function currently inlined; dump badness
22911 of functions not inlined because of unit growth limits.
22912
22913 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
22914
22915 PR middle-end/32628
22916 * c-common.c (pointer_int_sum): Disregard overflow that occured only
22917 because of sign-extension change when converting to sizetype here...
22918 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
22919
22920 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
22921 the folding to constants. Remove redundant final conversion.
22922 (fold_binary) <associate>: Do not associate if the re-association of
22923 constants alone overflows.
22924 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
22925 to the end of the list.
22926 (multiple_of_p) <COND_EXPR>: New case.
22927
22928 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
22929
22930 * opt-functions.awk (opt_sanitized_name): New.
22931 (opt_enum): New.
22932 * optc-gen.awk: Use it
22933 * opth-gen.awk: Use it.
22934
22935 2010-04-13 Martin Jambor <mjambor@suse.cz>
22936
22937 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
22938 (sra_modify_assign): Delete stmts loading dead data even if racc has no
22939 children. Call replace_uses_with_default_def_ssa_name to handle
22940 SSA_NAES on lhs.
22941
22942 2010-04-13 Michael Matz <matz@suse.de>
22943
22944 PR middle-end/43730
22945 * builtins.c (expand_builtin_interclass_mathfn): Also create
22946 a register if the predicate doesn't match.
22947
22948 2010-04-13 Diego Novillo <dnovillo@google.com>
22949
22950 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
22951 * c-pch.c: Include timevar.h.
22952 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
22953 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
22954 * ggc-common.c: Include timevar.h.
22955 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
22956 * timevar.def (TV_PCH_SAVE): Define.
22957 (TV_PCH_CPP_SAVE): Define.
22958 (TV_PCH_PTR_REALLOC): Define.
22959 (TV_PCH_PTR_SORT): Define.
22960 (TV_PCH_RESTORE): Define.
22961 (TV_PCH_CPP_RESTORE): Define.
22962
22963 2010-04-13 Michael Matz <matz@suse.de>
22964
22965 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
22966 into MINUS_EXPRs.
22967 (can_reassociate_p): New function.
22968 (break_up_subtract_bb, reassociate_bb): Use it.
22969
22970 2010-04-13 Richard Guenther <rguenther@suse.de>
22971
22972 PR bootstrap/43737
22973 * builtins.c (c_readstr): Fix assert.
22974
22975 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
22976
22977 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
22978 when generating cltd insn.
22979
22980 (*ashl<mode>3_1): Remove special handling for register operand 2.
22981 (*ashlsi3_1_zext): Ditto.
22982 (*ashlhi3_1): Ditto.
22983 (*ashlhi3_1_lea): Ditto.
22984 (*ashlqi3_1): Ditto.
22985 (*ashlqi3_1_lea): Ditto.
22986 (*<shiftrt_insn><mode>3_1): Ditto.
22987 (*<shiftrt_insn>si3_1_zext): Ditto.
22988 (*<shiftrt_insn>qi3_1_slp): Ditto.
22989 (*<rotate_insn><mode>3_1): Ditto.
22990 (*<rotate_insn>si3_1_zext): Ditto.
22991 (*<rotate_insn>qi3_1_slp): Ditto.
22992
22993 2010-04-13 Richard Guenther <rguenther@suse.de>
22994
22995 * tree-ssa-structalias.c (callused_id): Remove.
22996 (call_stmt_vars): New.
22997 (get_call_vi): Likewise.
22998 (lookup_call_use_vi): Likewise.
22999 (lookup_call_clobber_vi): Likewise.
23000 (get_call_use_vi): Likewise.
23001 (get_call_clobber_vi): Likewise.
23002 (make_transitive_closure_constraints): Likewise.
23003 (handle_const_call): Adjust to do per-call call-used handling.
23004 (handle_pure_call): Likewise.
23005 (find_what_var_points_to): Remove general callused handling.
23006 (init_base_vars): Likewise.
23007 (init_alias_vars): Initialize call_stmt_vars.
23008 (compute_points_to_sets): Process call-used and call-clobbered
23009 vars for call statements.
23010 (delete_points_to_sets): Free call_stmt_vars.
23011
23012 2010-04-13 Richard Guenther <rguenther@suse.de>
23013
23014 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
23015 Only add RW dependence for dependence distance zero.
23016 Adjust maximal vectorization factor according to dependences.
23017 Move alignment handling ...
23018 (vect_find_same_alignment_drs): ... here. New function.
23019 (vect_analyze_data_ref_dependences): Adjust.
23020 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
23021 (vect_analyze_data_refs): Adjust minimal vectorization factor
23022 according to data references.
23023 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
23024 dependences before determining the vectorization factor.
23025 Analyze alignment after determining the vectorization factor.
23026 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
23027 dependences before alignment.
23028 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
23029 Adjust prototype.
23030 (vect_analyze_data_refs): Likewise.
23031 (MAX_VECTORIZATION_FACTOR): New define.
23032
23033 2010-04-13 Duncan Sands <baldrick@free.fr>
23034
23035 * except.h (lang_eh_type_covers): Remove.
23036 * except.c (lang_eh_type_covers): Likewise.
23037
23038 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23039 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23040
23041 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
23042 * config/s390/s390.c: Replace UNTIS_PER_WORD with
23043 UNITS_PER_LONG where it is ABI relevant.
23044 (s390_return_addr_rtx): Likewise.
23045 (s390_back_chain_rtx): Likewise.
23046 (s390_frame_area): Likewise.
23047 (s390_frame_info): Likewise.
23048 (s390_initial_elimination_offset): Likewise.
23049 (save_gprs): Likewise.
23050 (s390_emit_prologue): Likewise.
23051 (s390_emit_epilogue): Likewise.
23052 (s390_function_arg_advance): Likewise.
23053 (s390_function_arg): Likewise.
23054 (s390_va_start): Likewise.
23055 (s390_gimplify_va_arg): Likewise.
23056 (s390_function_profiler): Likewise.
23057 (s390_optimize_prologue): Likewise.
23058 (s390_rtx_costs): Likewise.
23059 (s390_secondary_reload): Likewise.
23060 (s390_promote_function_mode): Likewise.
23061 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
23062 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
23063 registers available.
23064 (s390_unwind_word_mode): New function.
23065 (s390_function_value): Split 64 bit values into register pair if
23066 used as return value.
23067 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
23068 function call parameters. Handle parallels.
23069 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
23070 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
23071 (DWARF_CIE_DATA_ALIGNMENT): New macro.
23072 (s390_expand_setmem): Remove unused variable src_addr.
23073 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
23074 deal with 64 bit registers.
23075 * config/s390/s390.h: Define __zarch__ predefined macro.
23076 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
23077 (UNITS_PER_LONG): New macro.
23078 * libjava/include/s390-signal.h: Define extended ucontext
23079 structure containing the upper halfs of the 64 bit registers.
23080
23081 2010-04-13 Simon Baldwin <simonb@google.com>
23082
23083 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
23084
23085 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
23086
23087 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
23088 rvalue on the RHS if the LHS is of a non-renamable type.
23089 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
23090
23091 2010-04-13 Matthias Klose <doko@ubuntu.com>
23092
23093 * gcc.c (cc1_options): Handle -iplugindir before processing
23094 the cc1 spec. Only add -iplugindir once.
23095 (cpp_unique_options): Add -iplugindir option if -fplugin* options
23096 found.
23097 * common.opt (iplugindir): Remove `Separate' property, initialize.
23098 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
23099 option.
23100 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
23101 (distclean): Remove plugin dir.
23102 * doc/invoke.texi: Document -iplugindir.
23103
23104 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
23105
23106 * doc/plugins.texi (Loading Plugins): Document short
23107 -fplugin=foo option.
23108 (Plugin API): Mention default_plugin_dir_name function.
23109
23110 * gcc.c (find_file_spec_function): Add new declaration.
23111 (static_spec_func): Use it for "find-file".
23112 (find_file_spec_function): Add new function.
23113 (cc1_options): Add -iplugindir option if -fplugin* options found.
23114
23115 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
23116
23117 * plugin.c (add_new_plugin): Updated comment, and handle short
23118 plugin name.
23119 (default_plugin_dir_name): Added new function.
23120
23121 * common.opt (iplugindir): New option to set the plugin directory.
23122
23123 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
23124
23125 * config/i386/i386.md (any_rotate): New code iterator.
23126 (rotate_insn): New code attribute.
23127 (rotate): Ditto.
23128 (SWIM124): New mode iterator.
23129 (<rotate_insn>ti3): New expander.
23130 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
23131 any_rotate code iterator.
23132 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
23133 using any_rotate code iterator and SWIM124 mode iterator.
23134 (ix86_rotlti3): New insn_and_split pattern.
23135 (ix86_rotrti3): Ditto.
23136 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
23137 ix86_rotl{di,ti}3 patterns.
23138 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
23139 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
23140 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
23141 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
23142 code iterator and SWI mode iterator.
23143 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
23144 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
23145 code iterator.
23146 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
23147 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
23148 (bswap rotatert splitter): Add splitter.
23149 (bswap splitter): Macroize splitter using any_rotate code iterator.
23150 Add insn predicate to split only for TARGET_USE_XCHGB or when
23151 optimizing function for size.
23152
23153 2010-04-12 Steve Ellcey <sje@cup.hp.com>
23154
23155 * config/pa/pa.c (emit_move_sequence): Remove use of
23156 deleted variable flag_argument_noalias.
23157
23158 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23159
23160 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
23161 configurations.
23162 Add to unsupported targets list.
23163 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
23164 sparc*-sun-solaris2.[567]* from target lists.
23165 * configure: Regenerate.
23166 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
23167 removal.
23168 Remove Solaris 7 patch references.
23169 (Specific, sparc-sun-solaris2.7): Removed.
23170 (sparc-sun-solaris2*): Update Solaris 7 example.
23171 (sparc64-*-solaris2*): Likewise.
23172
23173 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23174
23175 * config.build (alpha*-dec-osf4*): Remove.
23176 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
23177 of obsolete configurations.
23178 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
23179 support.
23180 * config/alpha/t-osf4: Renamed to ...
23181 * config/alpha/t-osf5: ... this.
23182 * config/alpha/osf.h: Renamed to ...
23183 * config/alpha/osf5.h: ... this.
23184 Merged old osf5.h contents.
23185 Update comments.
23186 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
23187 (EXTRA_SPECS): Removed.
23188 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
23189 reflect removal of Tru64 UNIX V4.0/V5.0 support.
23190 Document that.
23191
23192 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23193
23194 * doc/contrib.texi (Contributors, Rainer Orth): Update.
23195
23196 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
23197
23198 PR/43702
23199 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
23200 __thiscall convention.
23201
23202 2010-04-12 Steve Ellcey <sje@cup.hp.com>
23203
23204 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
23205 orig_base.
23206 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
23207
23208 2010-04-12 Steve Ellcey <sje@cup.hp.com>
23209
23210 * function.c (assign_parms_initialize_all): Add unused attribute
23211 to fntype.
23212
23213 2010-04-12 Richard Guenther <rguenther@suse.de>
23214
23215 * gsstruct.def (GSS_CALL): New.
23216 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
23217 * gimple.h: Include tree-ssa-alias.h.
23218 (struct gimple_statement_call): New.
23219 (union gimple_statement_struct_d): Add gimple_call member.
23220 (gimple_call_reset_alias_info): Declare.
23221 (gimple_call_use_set): New function.
23222 (gimple_call_clobber_set): Likewise.
23223 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
23224 * gimple.c (gimple_call_reset_alias_info): New function.
23225 (gimple_build_call_1): Call it.
23226 * lto-streamer-in.c (input_gimple_stmt): Likewise.
23227 * tree-inline.c (remap_gimple_stmt): Likewise.
23228 (expand_call_inline): Remove callused handling.
23229 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
23230 * tree-dfa.c (dump_variable): Likewise.
23231 * tree-parloops.c (parallelize_loops): Likewise.
23232 * tree-ssa.c (init_tree_ssa): Likewise.
23233 (delete_tree_ssa): Likewise.
23234 * tree-flow-inline.h (is_call_used): Remove.
23235 * tree-flow.h (struct gimple_df): Remove callused member.
23236 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
23237 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
23238 (ref_maybe_used_by_call_p_1): Simplify.
23239 (call_may_clobber_ref_p_1): Likewise.
23240 * tree-ssa-structalias.c (compute_points_to_sets): Set
23241 the call stmt used and clobbered sets.
23242 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
23243 (find_tail_calls): Verify the tail call.
23244
23245 2010-04-12 Richard Guenther <rguenther@suse.de>
23246
23247 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
23248 single-iteration always-inline inlining.
23249 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
23250 (cgraph_decide_inlining): Do not handle always-inline specially.
23251 (try_inline): Remove always-inline cycle detection special case.
23252 Do not recurse on always-inlines.
23253 (cgraph_early_inlining): Do not iterate if not optimizing.
23254 (cgraph_gate_early_inlining): remove.
23255 (pass_early_inline): Run unconditionally.
23256 (gate_cgraph_decide_inlining): New function.
23257 (pass_ipa_inline): Use it. Do not run the IPA inliner if
23258 not inlining or optimizing.
23259 (cgraph_decide_inlining_of_small_functions): Also consider
23260 always-inline functions.
23261 (cgraph_default_inline_p): Return true for nodes which should
23262 disregard inline limits.
23263 (estimate_function_body_sizes): Assume zero size and time for
23264 nodes which are marked as disregarding inline limits.
23265 (cgraph_decide_recursive_inlining): Do not perform recursive
23266 inlining on always-inline nodes.
23267
23268 2010-04-12 Jakub Jelinek <jakub@redhat.com>
23269
23270 PR bootstrap/43699
23271 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
23272 for exprs satisfying handled_component_p.
23273
23274 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
23275
23276 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
23277 non-constant aggregate elements.
23278
23279 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
23280 is a real initialization.
23281
23282 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
23283
23284 PR c/36774
23285 * c-decl.c (start_function): Move forward check for nested function.
23286
23287 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
23288
23289 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
23290 * config/sh/sh.c: Include reload.h.
23291 (sh_legitimize_reload_address): New.
23292 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
23293 sh_legitimize_reload_address.
23294
23295 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
23296
23297 * config/sh/sh.md (*movqi_pop): New insn pattern.
23298 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
23299
23300 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
23301
23302 * config/i386/i386.md (any_shiftrt): New code iterator.
23303 (shiftrt_insn): New code attribute.
23304 (shiftrt): Ditto.
23305 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
23306 using any_shiftrt code iterator.
23307 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
23308 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
23309 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
23310 pattern from corresponding peephole2 patterns.
23311 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
23312 using any_shiftrt code iterator.
23313 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
23314 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
23315 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
23316 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
23317 *{ashr,lshr}<mode>3_cmp_zext.
23318 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
23319
23320 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
23321
23322 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
23323 scratch register.
23324 (*lshr<mode>3_cconly): Ditto.
23325
23326 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
23327
23328 * config/i386/i386.md (lshr<mode>3): Macroize expander from
23329 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
23330 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
23331 pattern from *lshr{di,ti}3_1 and corresponding splitters using
23332 DWI mode iterator.
23333 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
23334 from corresponding peephole2 patterns.
23335 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
23336 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
23337 and *lshrdi3_1_rex64 using SWI mode iterator.
23338 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
23339 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
23340 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
23341 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
23342 and *lshrdi3_cmp_rex64 using SWI mode iterator.
23343 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
23344 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
23345 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
23346 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
23347 SWI mode iterator.
23348
23349 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
23350
23351 * config/i386/i386.md (ashr<mode>3): Macroize expander from
23352 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
23353 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
23354 pattern from *ashr{di,ti}3_1 and corresponding splitters using
23355 DWI mode iterator.
23356 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
23357 from corresponding peephole2 patterns.
23358 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
23359 (ashrsi3_cvt): Rename from ashrsi3_31.
23360 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
23361 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
23362 and x86_64_shift_adj_3 using SWI48 mode iterator.
23363 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
23364 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
23365 and *ashrdi3_1_rex64 using SWI mode iterator.
23366 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
23367 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
23368 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
23369 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
23370 and *ashrdi3_cmp_rex64 using SWI mode iterator.
23371 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
23372 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
23373 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
23374 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
23375 SWI mode iterator.
23376 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
23377 * config/i386/i386.c (ix86_split_ashr): Update for renamed
23378 x86_shift<mode>_adj_3 expanders.
23379
23380 2010-04-10 Wei Guozhi <carrot@google.com>
23381
23382 PR target/42601
23383 * config/arm/arm.c (arm_pic_static_addr): New function.
23384 (legitimize_pic_address): Call arm_pic_static_addr when it detects
23385 a static symbol.
23386 (arm_output_addr_const_extra): Output expression for new pattern.
23387 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
23388
23389 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
23390
23391 * ira-costs.c (record_reg_classes): Ignore alternatives that are
23392 not enabled.
23393
23394 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
23395 * web.c: Include "insn-config.h" and "recog.h".
23396 (union_match_dups): New function.
23397 (web_main): Call it.
23398 (union_defs): Don't try to recognize match_dups.
23399
23400 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
23401 if doing so would replace the entire pattern.
23402
23403 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
23404
23405 PR target/43707
23406 PR target/43709
23407 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
23408 and splitter pattern. Change splitter operand 1 predicate to
23409 nonmemory_operand.
23410
23411 2010-04-09 Martin Jambor <mjambor@suse.cz>
23412
23413 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
23414 lattices are addresses of CONST_DECLs with the same initial value.
23415 (ipcp_print_all_lattices): Print values of CONST_DECLs.
23416 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
23417
23418 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
23419 Bernd Schmidt <bernds@codesourcery.com>
23420
23421 * loop-invariant.c (replace_uses): New static function.
23422 (move_invariant_reg): Use it to ensure we can replace the uses.
23423
23424 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
23425
23426 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
23427 function template.
23428 (picochip_override_options): Enable section anchors only above -O1.
23429 (picochip_reorg): Fixed a couple of build warnings.
23430
23431 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23432
23433 * configure.ac (plugin -rdynamic test): Log result.
23434 * configure: Regenerate.
23435 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
23436 (RDYNAMIC_SPEC): Define.
23437 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
23438
23439 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23440
23441 * configure.ac: Determine Sun ld version numbers.
23442 (comdat_group): Restrict GNU ld version checks to gld.
23443 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
23444 (enable_comdat): Support --enable-comdat.
23445 * configure: Regenerate.
23446 * doc/install.texi (Configuration): Document --enable-comdat.
23447
23448 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23449
23450 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
23451 * config/sol2-gld.h: ... here.
23452 * config.gcc (sparc*-*-solaris2*): Reflect this.
23453 (i[34567]86-*-solaris2*): Use it.
23454
23455 2010-04-09 Steve Ellcey <sje@cup.hp.com>
23456
23457 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
23458 setup_clocks_p.
23459 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
23460
23461 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
23462
23463 PR 42965
23464 * diagnostic.c (diagnostic_initialize): Initialize
23465 some_warnings_are_errors.
23466 (diagnostic_finish): New.
23467 (diagnostic_action_after_output): Call it before exiting.
23468 (diagnostic_report_diagnostic): Do not print message here. Set
23469 some_warnings_are_errors.
23470 * diagnostic.h (diagnostic_context): Delete
23471 issue_warnings_are_errors_message. Add some_warnings_are_errors.
23472 (diagnostic_finish): Declare.
23473 * toplev.c (toplev_main): Call it before exit.
23474
23475 2010-04-09 Jason Merrill <jason@redhat.com>
23476
23477 PR c++/42623
23478 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
23479 for incomplete type.
23480
23481 PR c++/41788
23482 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
23483 based on a warning flag.
23484
23485 2010-04-09 Richard Guenther <rguenther@suse.de>
23486
23487 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
23488
23489 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
23490
23491 PR bootstrap/43684
23492 * varasm.c (default_assemble_visibility): Wrap vars that are
23493 set, but unused, by targets without GAS.
23494 * config/rs6000/rs6000.c (paired_emit_vector_compare):
23495 Remove set, but unused, vars.
23496 (rs6000_legitimize_tls_address): Likewise.
23497 (altivec_expand_dst_builtin): Likewise.
23498 * config/darwin.c (machopic_classify_symbol): Likewise.
23499 (machopic_indirection_name): Likewise.
23500
23501 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
23502
23503 * config/i386/i386.md (DWI): New mode iterator.
23504 (S): New mode attribute.
23505 (shift_operand): Ditto.
23506 (shift_immediate_operand): Ditto.
23507 (ashl_input_operand): Ditto.
23508 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
23509 using SDWIM mode iterator.
23510 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
23511 pattern from *ashl{di,ti}3_1 and corresponding splitters using
23512 DWI mode iterator.
23513 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
23514 from corresponding peephole2 patterns.
23515 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
23516 and x86_64_shift_adj_1 using SWI48 mode iterator.
23517 (x86_shift<mode>_adj_2): Ditto.
23518 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
23519 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
23520 using SWI48 mode iterator.
23521 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
23522 *ashldi3_cmp_rex64 using SWI mode iterator.
23523 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
23524 *ashldi3_cconly_rex64 using SWI mode iterator.
23525 * config/i386/i386.c (ix86_split_ashl): Update for renamed
23526 x86_shift<mode>_adj_{1,2}.
23527 (ix86_split_ashr): Ditto.
23528 (ix86_split_lshr): Ditto.
23529
23530 2010-04-09 Richard Guenther <rguenther@suse.de>
23531
23532 * target.h (builtin_conversion): Pass in input and output types.
23533 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
23534 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
23535 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
23536 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
23537
23538 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
23539 Handle AVX modes.
23540 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
23541
23542 2010-04-09 Richard Guenther <rguenther@suse.de>
23543
23544 PR target/43152
23545 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
23546
23547 2010-04-09 Richard Guenther <rguenther@suse.de>
23548
23549 * tree-vectorizer.h (struct _stmt_vec_info): Document
23550 that vectype is the type of the LHS.
23551 (supportable_widening_operation, supportable_narrowing_operation):
23552 Get both input and output vector types as arguments.
23553 (vect_is_simple_use_1): Declare.
23554 (get_same_sized_vectype): Likewise.
23555 * tree-vect-loop.c (vect_determine_vectorization_factor):
23556 Set STMT_VINFO_VECTYPE to the vector type of the def.
23557 (vectorizable_reduction): Adjust.
23558 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
23559 Adjust. Specify the output vector type.
23560 (vect_pattern_recog_1): Adjust.
23561 * tree-vect-stmts.c (get_same_sized_vectype): New function.
23562 (vectorizable_call): Adjust.
23563 (vectorizable_conversion): Likewise.
23564 (vectorizable_operation): Likewise.
23565 (vectorizable_type_demotion): Likewise.
23566 (vectorizable_type_promotion): Likewise.
23567 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
23568 the def.
23569 (vect_is_simple_use_1): New function.
23570 (supportable_widening_operation): Get both input and output
23571 vector types.
23572 (supportable_narrowing_operation): Likewise.
23573 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
23574
23575 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
23576
23577 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
23578 __thiscall and _thiscall as predefined macros.
23579 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
23580 thiscall attribute handling.
23581 (ix86_comp_type_attributes): Likewise.
23582 (ix86_function_regparm): Likewise.
23583 (ix86_return_pops_args): Likewise.
23584 (init_cumulative_args): Likewise.
23585 (find_drap_reg): Likewise.
23586 (ix86_static_chain): Likewise.
23587 (x86_this_parameter): Likewise.
23588 (x86_output_mi_thunk): Likewise.
23589 (ix86_attribute_table): Add description for thiscall attribute.
23590 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
23591 * doc/extend.texi: Add documentation for thiscall.
23592
23593 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
23594
23595 PR c++/28584
23596 * c.opt (Wint-to-pointer-cast): Available in C++.
23597 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
23598
23599 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
23600
23601 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
23602 * calls.c (expand_call): Pass the function type to aggregate_value_p.
23603 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
23604 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
23605 function type instead. Reorder and simplify checks.
23606
23607 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
23608
23609 2010-04-08 Jing Yu <jingyu@google.com>
23610 Zdenek Dvorak <ook@ucw.cz>
23611
23612 PR tree-optimization/42720
23613 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
23614 loop unswitch conditions here from ...
23615 (tree_unswitch_single_loop): ... here.
23616
23617 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
23618
23619 * tree-if-conv.c: Fix comments and simplify logic.
23620
23621 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
23622
23623 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
23624 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
23625 (main_tree_if_conversion): Update call to tree_if_conversion.
23626
23627 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
23628
23629 PR 42485
23630 * doc/invoke.texi (-b,-V): Delete.
23631 * doc/tm.texi: Do not mention -b.
23632 * gcc.c (display_help): Delete -b and -V.
23633 (process_command): Delete -b and -V.
23634 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
23635
23636 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
23637 Wolfgang Gellerich <gellerich@de.ibm.com>
23638
23639 Implement target hook for loop unrolling
23640 * target.h (loop_unroll_adjust): Add a new target hook function.
23641 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
23642 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
23643 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
23644 (s390_loop_unroll_adjust): Implement the new target hook for s390.
23645 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
23646 target hook.
23647 (decide_unroll_stupid): Likewise.
23648
23649 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23650
23651 PR target/43643
23652 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
23653
23654 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23655
23656 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
23657 (Specific, *-*-solaris2*): Likewise.
23658 Don't prefer Sun as over GNU as.
23659
23660 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
23661
23662 * config/s390/s390.c (override_options): Adjust the z10 defaults
23663 for max-unroll-times, max-completely-peeled-insns
23664 and max-completely-peel-times.
23665
23666 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23667
23668 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
23669 instructions for z10.
23670 (s390_expand_setmem): Likewise.
23671 (s390_expand_cmpmem): Likewise.
23672
23673 2010-04-08 Richard Guenther <rguenther@suse.de>
23674
23675 PR tree-optimization/43679
23676 * tree-ssa-pre.c (eliminate): Only propagate copies.
23677
23678 2010-04-08 Jakub Jelinek <jakub@redhat.com>
23679
23680 PR bootstrap/43681
23681 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
23682 set but not used variable warning.
23683
23684 2010-04-08 Wei Guozhi <carrot@google.com>
23685
23686 PR target/41653
23687 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
23688 (arm_size_rtx_costs): Call the new function when optimized for size.
23689
23690 2010-04-08 Jakub Jelinek <jakub@redhat.com>
23691
23692 PR debug/43670
23693 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
23694 op0 is not a MEM, just return NULL instead of assertion
23695 failure.
23696 (discover_nonconstant_array_refs): Don't walk debug stmts.
23697
23698 2010-04-08 Doug Kwan <dougkwan@google.com>
23699
23700 * configure.ac: Recognize gold and do not use its version number
23701 to test ld features.
23702 * configure: Regenerate.
23703
23704 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
23705
23706 PR middle-end/40815
23707 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
23708 (negate_value): Move code to push elements to broken_up_substracts ...
23709 (eliminate_plus_minus_pair): ... here. Push operands that have no
23710 negative pair to plus_negates.
23711 (repropagate_negates, init_reassoc, fini_reassoc): Update.
23712
23713 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23714
23715 * doc/install.texi (Configuration): Move description of
23716 --enable-lto, --with-libelf*, --enable-gold from Java section to
23717 general section.
23718
23719 * doc/generic.texi (Working with declarations)
23720 (Function Properties, C and C++ Trees): Fix typos.
23721 * doc/sourcebuild.texi (Top Level): Likewise.
23722
23723 2010-04-07 Jakub Jelinek <jakub@redhat.com>
23724
23725 PR c/18624
23726 * tree.h (DECL_READ_P): Define.
23727 (struct tree_decl_common): Add decl_read_flag.
23728 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
23729 a set but not used warning.
23730 (merge_decls): Merge DECL_READ_P flag.
23731 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
23732 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
23733 * c-common.c (handle_used_attribute, handle_unused_attribute):
23734 Likewise.
23735 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
23736 New prototypes.
23737 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
23738 New functions.
23739 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
23740 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
23741 c_parser_binary_expression, c_parser_cast_expression,
23742 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
23743 Call default_function_array_read_conversion instead of
23744 default_function_array_conversion where needed.
23745 (c_parser_unary_expression, c_parser_conditional_expression,
23746 c_parser_postfix_expression_after_primary, c_parser_initelt):
23747 Likewise. Call mark_exp_read where needed.
23748 (c_parser_statement_after_labels, c_parser_asm_operands,
23749 c_parser_typeof_specifier, c_parser_sizeof_expression,
23750 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
23751 where needed.
23752 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
23753 New.
23754 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
23755 (warn_unused_but_set_parameter): Default to warn_unused
23756 && extra_warnings.
23757 * doc/invoke.texi: Document -Wunused-but-set-variable and
23758 -Wunused-but-set-parameter.
23759
23760 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
23761 used count variable.
23762 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
23763 when operandN variables aren't used in the body of the expander
23764 or splitter.
23765 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
23766 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
23767 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
23768 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
23769 FOR_EACH_IMM_USE_ON_STMT): Likewise.
23770 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
23771 * tree.c (PROCESS_ARG): Likewise.
23772
23773 2010-04-07 Simon Baldwin <simonb@google.com>
23774
23775 * diagnostic.h (diagnostic_override_option_index): New macro to
23776 set a diagnostic's option_index.
23777 * c-tree.h (c_cpp_error): Add warning reason argument.
23778 * opts.c (_warning_as_error_callback): New.
23779 (register_warning_as_error_callback): Store callback for
23780 warnings enabled via enable_warning_as_error.
23781 (enable_warning_as_error): Call callback, minor code tidy.
23782 * opts.h (register_warning_as_error_callback): Declare.
23783 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
23784 response to -Werror=.
23785 (c_common_init_options): Register warning_as_error_callback in opts.c.
23786 * common.opt: Add -Wno-cpp option.
23787 * c-common.c (struct reason_option_codes_t): Map cpp warning
23788 reason codes to gcc option indexes.
23789 * (c_option_controlling_cpp_error): New function, lookup the gcc
23790 option index for a cpp warning reason code.
23791 * (c_cpp_error): Add warning reason argument, call
23792 c_option_controlling_cpp_error for diagnostic_override_option_index.
23793 * doc/invoke.texi: Document -Wno-cpp.
23794
23795 2010-04-07 Richard Guenther <rguenther@suse.de>
23796
23797 * ipa-reference.c (mark_load): Use get_base_address.
23798 (mark_store): Likewise.
23799
23800 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
23801 inserting GIMPLE_NOPs into the IL.
23802 * tree-ssa-structalias.c (get_constraint_for_component_ref):
23803 Explicitly strip handled components and indirect references.
23804
23805 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
23806 folding address expressions.
23807 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
23808 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
23809 operand_equal_p to compare decls.
23810 (ptr_deref_may_alias_decl_p): Likewise.
23811 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
23812 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
23813 Handle reversed comparison ops.
23814 * tree-sra.c (asm_visit_addr): Use get_base_address.
23815 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
23816 * ipa-reference.c (mark_address): Use get_base_address.
23817
23818 2010-04-07 Richard Guenther <rguenther@suse.de>
23819
23820 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
23821 Propagate constants everywhere.
23822
23823 2010-04-07 Jakub Jelinek <jakub@redhat.com>
23824
23825 PR debug/43516
23826 * tree.c (MAX_INT_CACHED_PREC): Define.
23827 (nonstandard_integer_type_cache): New array.
23828 (build_nonstandard_integer_type): Cache results for precision
23829 <= MAX_INT_CACHED_PREC.
23830
23831 2010-04-07 Richard Guenther <rguenther@suse.de>
23832
23833 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
23834 -fargument-noalias-global, -fargument-noalias-anything): Remove.
23835 * common.opt: Likewise.
23836 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
23837 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
23838 (nonoverlapping_memrefs_p): Likewise.
23839 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
23840 * opts.c (common_handle_option): Handle OPT_fargument_alias,
23841 OPT_fargument_noalias, OPT_fargument_noalias_anything and
23842 OPT_fargument_noalias_global for backward compatibility.
23843
23844 2010-04-07 Richard Guenther <rguenther@suse.de>
23845
23846 PR tree-optimization/43270
23847 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
23848 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
23849 * tree-ssa-pre.c (phi_translate_1): Adjust.
23850 (fully_constant_expression): Split out vn_reference handling to ...
23851 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
23852 Fold reads from constant strings.
23853 (vn_reference_lookup): Handle fully constant references.
23854 (vn_reference_lookup_pieces): Likewise.
23855 * Makefile.in (expmed.o-warn): Add -Wno-error.
23856
23857 2010-04-07 Martin Jambor <mjambor@suse.cz>
23858
23859 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
23860
23861 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
23862
23863 PR driver/41594
23864 * gcc.c: Add -static-libstdc++ to list of recognized options.
23865
23866 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23867
23868 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
23869
23870 2010-04-07 Richard Guenther <rguenther@suse.de>
23871
23872 PR middle-end/42617
23873 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
23874 bases build simple mem attributes to retain points-to information.
23875
23876 2010-04-07 Richard Guenther <rguenther@suse.de>
23877
23878 PR middle-end/42617
23879 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
23880 preserve points-to related information.
23881
23882 2010-04-07 Richard Guenther <rguenther@suse.de>
23883
23884 PR middle-end/42617
23885 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
23886 discard plain indirect references.
23887 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
23888 * tree.c (tree_nop_conversion): Likewise.
23889
23890 2010-04-07 Dodji Seketeli <dodji@redhat.com>
23891
23892 PR debug/43628
23893 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
23894
23895 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
23896
23897 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
23898 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
23899
23900 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
23901
23902 * tree-if-conv.c: Fix indentation and comments.
23903
23904 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
23905
23906 * tree-if-conv.c: Sort static functions in topological order.
23907
23908 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
23909
23910 * tree-if-conv.c: Fix indentation and comments.
23911
23912 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
23913
23914 PR middle-end/43519
23915 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
23916 lang_hooks.types.type_for_size instead of
23917 build_nonstandard_integer_type.
23918 When converting an unsigned type to signed, double its precision.
23919 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
23920 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
23921 (graphite_create_new_loop_guard): When ub + 1 wraps around,
23922 use lb <= ub.
23923
23924 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
23925
23926 PR middle-end/43519
23927 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
23928 POINTER_PLUS_EXPR for pointer types.
23929
23930 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
23931
23932 PR middle-end/43519
23933 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
23934 * graphite-clast-to-gimple.c: Include langhooks.h.
23935 (max_signed_precision_type): New.
23936 (max_precision_type): Takes two types as arguments.
23937 (precision_for_value): New.
23938 (precision_for_interval): New.
23939 (gcc_type_for_interval): New.
23940 (gcc_type_for_value): New.
23941 (gcc_type_for_clast_term): New.
23942 (gcc_type_for_clast_red): New.
23943 (gcc_type_for_clast_bin): New.
23944 (gcc_type_for_clast_expr): Split up into several functions.
23945 (gcc_type_for_clast_eq): Rewritten.
23946 (compute_bounds_for_level): New.
23947 (compute_type_for_level_1): New.
23948 (compute_type_for_level): New.
23949 (gcc_type_for_cloog_iv): Removed.
23950 (gcc_type_for_iv_of_clast_loop): Rewritten.
23951 (graphite_create_new_loop): Compute the lower and upper bound types
23952 with gcc_type_for_clast_expr.
23953 (graphite_create_new_loop_guard): Same.
23954 (find_cloog_iv_in_expr): Removed.
23955 (compute_cloog_iv_types_1): Removed.
23956 (compute_cloog_iv_types): Removed.
23957 (gloog): Do not call compute_cloog_iv_types.
23958 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
23959 GBB_CLOOG_IV_TYPES.
23960 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
23961 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
23962 (GBB_CLOOG_IV_TYPES): Removed.
23963
23964 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
23965
23966 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
23967 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
23968 (detect_commutative_reduction): Same.
23969
23970 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
23971
23972 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
23973 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
23974 argument.
23975 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
23976 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
23977 (rewrite_commutative_reductions_out_of_ssa): Same.
23978 * passes.c (execute_function_todo): Call verify_ssa for every pass
23979 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
23980 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
23981 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
23982 with an extra argument.
23983 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
23984 verify_ssa only when the extra argument is true.
23985 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
23986 with an extra argument.
23987 (tree_transform_and_unroll_loop): Same.
23988
23989 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
23990
23991 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
23992 for all the passes of the LNO having LOOP_CLOSED_SSA.
23993 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
23994 * tree-loop-distribution.c (pass_loop_distribution): Same.
23995 * tree-pass.h (TODO_verify_loops): Removed.
23996 * tree-ssa-loop.c (pass_tree_loop_init): Same.
23997 (pass_lim): Same.
23998 (pass_tree_unswitch): Same.
23999 (pass_predcom): Same.
24000 (pass_vectorize): Same.
24001 (pass_linear_transform): Same.
24002 (pass_graphite_transforms): Same.
24003 (pass_iv_canon): Same.
24004 (pass_complete_unroll): Same.
24005 (pass_complete_unrolli): Same.
24006 (pass_parallelize_loops): Same.
24007 (pass_loop_prefetch): Same.
24008 (pass_iv_optimize): Same.
24009
24010 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
24011
24012 PR middle-end/32824
24013 * passes.c (init_optimization_passes): Move pass_lim before
24014 pass_copy_prop and pass_dce_loop.
24015
24016 2010-04-06 Jakub Jelinek <jakub@redhat.com>
24017
24018 PR target/43667
24019 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
24020 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
24021 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
24022 MULTI_* defines for 4 argument vpermil2p* builtins.
24023
24024 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
24025
24026 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
24027 * config/i386/i386.c (x86_maybe_negate_const_int): New.
24028 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
24029 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
24030 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
24031 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
24032 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
24033 Use x86_maybe_negate_const_int to output insn mnemonic.
24034 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
24035 check from instruction predicate. Update comments.
24036 * config/i386/sync.md (sync_add<mode>): Use
24037 x86_maybe_negate_const_int to output insn mnemonic.
24038
24039 2010-04-06 Jan Hubicka <jh@suse.cz>
24040
24041 PR tree-optimization/42906
24042 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
24043 IGNORE_SELF argument. Set visited_control_parents for fully
24044 processed BBs.
24045 (find_obviously_necessary_stmts): Update call of
24046 mark_control_dependent_edges_necessary.
24047 (propagate_necessity): Likewise. Handle PHI edges more curefully.
24048
24049 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
24050
24051 * config/i386/i386.md: Remove comment about 'e' and 'E'
24052 operand modifier.
24053
24054 2010-04-06 Richard Guenther <rguenther@suse.de>
24055
24056 PR tree-optimization/43627
24057 * tree-vrp.c (extract_range_from_unary_expr): Widenings
24058 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
24059 not varying.
24060
24061 2010-04-06 Jakub Jelinek <jakub@redhat.com>
24062
24063 * BASE-VER: Change to 4.6.0.
24064
24065 PR target/43638
24066 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
24067 handling.
24068
24069 2010-04-06 Richard Guenther <rguenther@suse.de>
24070
24071 PR middle-end/43661
24072 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
24073
24074 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24075
24076 * doc/invoke.texi (Optimize Options): Document that LTO
24077 won't remove object access purely due to incompatible
24078 declarations.
24079
24080 2010-04-04 Matthias Klose <doko@ubuntu.com>
24081
24082 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
24083 Initialize variable.
24084
24085 2010-04-03 Richard Guenther <rguenther@suse.de>
24086
24087 PR middle-end/42509
24088 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
24089 require a non-NULL MEM_OFFSET.
24090
24091 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
24092
24093 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
24094 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
24095 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
24096 config/alpha/predicates.md, config/arm/arm.md,
24097 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
24098 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
24099 config/darwin9.h, config/darwin.c, config/darwin.h,
24100 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
24101 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
24102 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
24103 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
24104 config/mips/mips.md, config/mn10300/mn10300.c,
24105 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
24106 config/rs6000/aix.h, config/rs6000/dfp.md,
24107 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
24108 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
24109 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
24110 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
24111 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
24112 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
24113 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
24114 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
24115 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
24116 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
24117 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
24118 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
24119 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
24120 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
24121 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
24122 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
24123 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
24124 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
24125 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
24126 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
24127 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
24128 opt-functions.awk, opth-gen.awk, params.def, passes.c,
24129 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
24130 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
24131 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
24132 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
24133 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
24134 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
24135 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
24136 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
24137 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
24138 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
24139 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
24140 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
24141 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
24142 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
24143
24144 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24145
24146 PR other/43620
24147 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
24148 * aclocal.m4: Regenerate.
24149
24150 2010-04-02 Richard Guenther <rguenther@suse.de>
24151
24152 PR tree-optimization/43629
24153 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
24154 if we have seen a constant value.
24155
24156 2010-04-02 Joseph Myers <joseph@codesourcery.com>
24157
24158 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
24159
24160 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
24161
24162 PR target/43469
24163 * arm.c (legitimize_tls_address): Adjust call to
24164 gen_tls_load_dot_plus_four.
24165 (arm_note_pic_base): New function.
24166 (arm_cannot_copy_insn_p): Use it.
24167 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
24168 constraint.
24169
24170 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24171
24172 PR bootstrap/43531
24173
24174 Revert:
24175 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24176
24177 * Makefile.in ($(out_object_file)): Depend on
24178 gt-$(basename $(notdir $(out_file))).h.
24179
24180 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
24181
24182 * config.gcc (lm32-*-rtems*): Add t-lm32.
24183
24184 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
24185
24186 * config.gcc: Add lm32-*-rtems*.
24187 * config/lm32/rtems.h: New file.
24188
24189 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
24190
24191 PR target/42609
24192 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
24193
24194 2010-04-01 Jakub Jelinek <jakub@redhat.com>
24195
24196 * dwarf2out.c (output_compilation_unit_header): For
24197 -gdwarf-4 use version 4 instead of version 3.
24198 (output_line_info): For version 4 and above emit additional
24199 maximum ops per insn header field.
24200 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
24201
24202 * dwarf2out.c (is_c_family, is_java): Remove.
24203 (lower_bound_default): New function.
24204 (add_bound_info, gen_descr_array_type_die): Use it.
24205
24206 2010-04-01 Dodji Seketeli <dodji@redhat.com>
24207
24208 PR debug/43325
24209 * dwarf2out.c (gen_variable_die): Allow debug info for variable
24210 re-declaration when it happens in a function.
24211
24212 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
24213
24214 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
24215 (cgraph_remove_function_insertion_hook): Same.
24216 (cgraph_call_function_insertion_hooks): Same.
24217
24218 2010-04-01 Richard Guenther <rguenther@suse.de>
24219
24220 PR middle-end/43614
24221 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
24222 and TREE_THIS_VOLATILE.
24223 (copy_ref_info): Likewise.
24224 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
24225 * tree.c (build6_stat): Ignore side-effects of all but arg5
24226 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
24227 TARGET_MEM_REF.
24228
24229 2010-04-01 Richard Guenther <rguenther@suse.de>
24230
24231 PR tree-optimization/43607
24232 * ipa-type-escape.c (check_call): Do not access non-existing
24233 arguments.
24234
24235 2010-04-01 Richard Guenther <rguenther@suse.de>
24236
24237 PR middle-end/43602
24238 Revert
24239 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
24240 Jack Howarth <howarth@bromo.med.uc.edu>
24241
24242 * tree-profile.c (tree_init_ic_make_global_vars): Make static
24243 variables TLS.
24244
24245 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24246
24247 * doc/install.texi (Prerequisites): Document libelf usability on
24248 IRIX 5/6 and Solaris 2.
24249 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
24250 Update GNU as, GNU ld requirements.
24251 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
24252 Document Sun Studio compiler download.
24253 Update and simplify as, ld recommendations.
24254 (Specific, *-*-solaris2.7): Note obsoletion, removal.
24255
24256 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24257
24258 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
24259 with_tune_32 to pentium4.
24260
24261 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
24262
24263 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
24264
24265 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24266
24267 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
24268 obsoletion, removal.
24269 Update IDO URL.
24270 Document GNU as requirement.
24271 Update configure requirements.
24272 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
24273 Recomment IRIX 6.5.18+.
24274 Document IDF/IDL requirement.
24275 Document GNU as requirement.
24276 Document GNU ld bootstrap failure.
24277 Remove freeware.sgi.com reference.
24278
24279 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24280
24281 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
24282 UNIX V4.0, V5.0 obsoletion, removal.
24283 Remove --with-gc=simple reference.
24284 Update VM requirements during bootstrap.
24285 Remove -oldas bootstrap description.
24286 Update binutils reference.
24287 Remove comparison failure note.
24288
24289 2010-03-31 Richard Guenther <rguenther@suse.de>
24290 Zdenek Dvorak <ook@ucw.cz>
24291 Sebastian Pop <sebastian.pop@amd.com>
24292
24293 PR middle-end/43464
24294 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
24295 with multiple arguments.
24296 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
24297
24298 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
24299
24300 * graphite-dependences.c (print_pddr): Call print_pdr with an
24301 extra argument.
24302 * graphite-poly.c (debug_pdr): Add an extra argument for the
24303 verbosity level.
24304 (print_pdr): Same.
24305 (print_pbb_domain): Same.
24306 (print_pbb): Same.
24307 (print_scop_context): Same.
24308 (print_scop): Same.
24309 (print_cloog): Same.
24310 (debug_pbb_domain): Same.
24311 (debug_pbb): Same.
24312 (print_pdrs): Same.
24313 (debug_pdrs): Same.
24314 (debug_scop_context): Same.
24315 (debug_scop): Same.
24316 (debug_cloog): Same.
24317 (print_scop_params): Same.
24318 (debug_scop_params): Same.
24319 (print_iteration_domain): Same.
24320 (print_iteration_domains): Same.
24321 (debug_iteration_domain): Same.
24322 (debug_iteration_domains): Same.
24323 (print_scattering_function): Same.
24324 (print_scattering_functions): Same.
24325 (debug_scattering_function): Same.
24326 (debug_scattering_functions): Same.
24327 * graphite-poly.h (debug_pdr): Update declaration.
24328 (print_pdr): Same.
24329 (print_pbb_domain): Same.
24330 (print_pbb): Same.
24331 (print_scop_context): Same.
24332 (print_scop): Same.
24333 (print_cloog): Same.
24334 (debug_pbb_domain): Same.
24335 (debug_pbb): Same.
24336 (print_pdrs): Same.
24337 (debug_pdrs): Same.
24338 (debug_scop_context): Same.
24339 (debug_scop): Same.
24340 (debug_cloog): Same.
24341 (print_scop_params): Same.
24342 (debug_scop_params): Same.
24343 (print_iteration_domain): Same.
24344 (print_iteration_domains): Same.
24345 (debug_iteration_domain): Same.
24346 (debug_iteration_domains): Same.
24347 (print_scattering_function): Same.
24348 (print_scattering_functions): Same.
24349 (debug_scattering_function): Same.
24350 (debug_scattering_functions): Same.
24351
24352 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
24353
24354 * graphite-poly.c (print_scattering_function_1): New.
24355 (print_scattering_function): Call it.
24356 (print_scop_params): Remove spaces at the end of lines.
24357 (print_cloog): New.
24358 (debug_cloog): New.
24359 * graphite-poly.h (print_cloog): Declared.
24360 (debug_cloog): Declared.
24361
24362 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
24363
24364 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
24365 in loop->header.
24366 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
24367 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
24368 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
24369 to switch between adding the IV bump in loop->latch or in loop->header.
24370
24371 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
24372
24373 * graphite-poly.c (print_scattering_function): Pretty print following
24374 the scoplib format.
24375 (print_pdr): Same.
24376 (print_pbb_domain): Same.
24377 (dump_gbb_cases): Same.
24378 (dump_gbb_conditions): Same.
24379 (print_pdrs): Same.
24380 (print_pbb): Same.
24381 (print_scop_params): Same.
24382 (print_scop_context): Same.
24383 (print_scop): Same.
24384 (print_pbb_body): New.
24385 (lst_indent_to): New.
24386 (print_lst): Start new lines with a #.
24387 * graphite-poly.h (pbb_bb): New.
24388 (pbb_index): Use pbb_bb.
24389 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
24390 disjuncts.
24391 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
24392
24393 2010-03-31 Jakub Jelinek <jakub@redhat.com>
24394
24395 * dwarf2out.c (size_of_die): For -gdwarf-4 use
24396 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
24397 and 0 instead of 1 for dw_val_class_flag.
24398 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
24399 dw_val_class_range_list, dw_val_class_loc_list,
24400 dw_val_class_lineptr and dw_val_class_macptr, use
24401 DW_FORM_flag_present for dw_val_class_flag and
24402 DW_FORM_exprloc for dw_val_class_loc.
24403 (output_die): For -gdwarf-4 print dw_val_class_loc
24404 size as uleb128 instead of 1 or 2 bytes and don't print
24405 anything for dw_val_class_flag.
24406
24407 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
24408 instead of cselib_lookup following by tweaking locs->setting_insn.
24409
24410 PR bootstrap/43596
24411 * cselib.c (cselib_process_insn): Clear cselib_current_insn
24412 even before returning from label, setjmp call or volatile asm
24413 handling.
24414
24415 2010-03-31 Richard Guenther <rguenther@suse.de>
24416
24417 PR middle-end/43600
24418 * cgraphunit.c (cgraph_output_in_order): Do not allocate
24419 temporary data on stack.
24420
24421 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24422
24423 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
24424 (PUSHSECTION_ASM_OP): Remove.
24425 (POPSECTION_ASM_OP): Remove.
24426 (PUSHSECTION_FORMAT): Remove.
24427 * config/sol2.h (PUSHSECTION_FORMAT): Define.
24428 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
24429 * config/sol2.c (solaris_output_init_fini): Use it.
24430
24431 2010-03-31 Jie Zhang <jie@codesourcery.com>
24432
24433 PR 43574
24434 * opt-functions.awk (var_type_struct): Use signed char type
24435 for simple variables.
24436
24437 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24438
24439 * config/sol2.c: Include output.h.
24440 (solaris_assemble_visibility): New function.
24441 * config/t-sol2 (sol2.o): Add output.h dependency.
24442 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
24443 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
24444 Redefine.
24445
24446 2010-03-31 Jakub Jelinek <jakub@redhat.com>
24447
24448 PR target/43580
24449 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
24450 V2SImode or XFmode on PRE_DEC.
24451
24452 PR debug/43557
24453 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
24454 BLKmode.
24455
24456 2010-03-31 Jie Zhang <jie@codesourcery.com>
24457
24458 PR 43562
24459 * reload.h (caller_save_initialized_p): Declare.
24460 * toplev.c (backend_init_target): Don't call
24461 init_caller_save but set caller_save_initialized_p to false.
24462 * caller-save.c (caller_save_initialized_p): Define.
24463 (init_caller_save): Check caller_save_initialized_p.
24464 * ira.c (ira): Call init_caller_save if flag_caller_saves.
24465
24466 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24467
24468 PR target/39048
24469 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
24470 and soft-fp/t-softfp to tmake_file.
24471 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
24472 (LIBGCC2_TF_CEXT): Define.
24473 (TF_SIZE): Define.
24474
24475 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
24476
24477 PR debug/42977
24478 * cselib.c (n_useless_values): Document handling of debug locs.
24479 (n_useless_debug_values, n_debug_values): New variables.
24480 (new_elt_loc_list): Don't add to debug values, keep count.
24481 (promote_debug_loc): New.
24482 (cselib_reset_table): Zero new variables.
24483 (entry_and_rtx_equal_p): Promote debug locs.
24484 (discard_useless_locs): Increment n_useless_debug_values for
24485 debug values.
24486 (remove_useless_values): Adjust n_useless_values and n_debug_values
24487 with n_useless_debug_values.
24488 (add_mem_for_addr): Promote debug locs.
24489 (cselib_lookup_mem): Likewise.
24490 (cselib_lookup_addr): Renamed to...
24491 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
24492 (cselib_log_lookup): ... this. Turn into...
24493 (cselib_lookup_addr): ... new wrapper.
24494 (cselib_lookup_from_insn): New.
24495 (cselib_invalidate_regno): Increment n_useless_debug_values for
24496 debug values.
24497 (cselib_invalidate_mem): Likewise.
24498 (cselib_process_insn): Take n_deleted and n_debug_values into
24499 account to guard remove_useless_value call.
24500 (cselib_finish): Zero n_useless_debug_values.
24501 * cselib.h (cselib_lookup_from_insn): Declare.
24502 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
24503 (sched_analyze_2): Likewise.
24504
24505 2010-03-30 Jakub Jelinek <jakub@redhat.com>
24506
24507 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
24508 functions.
24509 (adjust_mems): Replace narrowing SUBREG of expression containing
24510 just PLUS, MINUS, MULT and ASHIFT of registers and constants
24511 with operations in the narrower mode.
24512
24513 PR debug/43593
24514 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
24515 regs_invalidated_by_call instead all call_used_reg_set registers.
24516
24517 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
24518
24519 PR middle-end/43430
24520 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
24521 pointer comparisons with types_compatible_p.
24522 * tree-vect-stmts.c (vectorizable_call): Same.
24523 (vectorizable_condition): Same.
24524
24525 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24526
24527 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
24528 stack check if the mask would be zero.
24529
24530 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
24531 Jack Howarth <howarth@bromo.med.uc.edu>
24532
24533 * tree-profile.c (tree_init_ic_make_global_vars): Make static
24534 variables TLS.
24535
24536 2010-03-30 Joseph Myers <joseph@codesourcery.com>
24537
24538 PR other/25232
24539 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
24540 and __unordtf2.
24541 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
24542 Include ___unordxf2 and ___unordtf2.
24543 * config/i386/libgcc-glibc.ver: Do not define inheritance from
24544 GCC_4.4.0 here.
24545
24546 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
24547
24548 * config/lm32/t-lm32: New file.
24549 * config.gcc: Use the above file when targetting lm32.
24550
24551 2010-03-28 Duncan Sands <baldrick@free.fr>
24552
24553 * Makefile.in (PLUGIN_HEADERS): Add except.h.
24554
24555 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
24556
24557 PR middle-end/43431
24558 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
24559 Improve vectorization cost model diagnostic.
24560
24561 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
24562
24563 PR middle-end/43436
24564 * tree-vect-data-refs.c (vect_analyze_data_refs): When
24565 compute_data_dependences_for_loop returns false, early exit
24566 and output an extra diagnostic for the failed data reference
24567 analysis.
24568
24569 2010-03-29 Richard Guenther <rguenther@suse.de>
24570
24571 PR tree-optimization/43560
24572 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
24573 (can_sm_ref_p): Treat stores to readonly locations as trapping.
24574
24575 2010-03-29 Jie Zhang <jie@codesourcery.com>
24576
24577 PR 43564
24578 * toplev.c (process_options): Set optimization_default_node
24579 and optimization_current_node.
24580 * opts.c (decode_options): Don't set optimization_default_node
24581 and optimization_current_node.
24582
24583 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
24584
24585 * config/rtems.h: Abandon -qrtems_debug.
24586
24587 2010-03-28 Jan Hubicka <jh@suse.cz>
24588
24589 PR tree-optimization/43505
24590 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
24591 map should not be copied.
24592
24593 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24594
24595 PR middle-end/41674
24596 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
24597 cdtors, set DECL_PRESERVE_P.
24598 * ipa.c (cgraph_externally_visible_p): Return true if declaration
24599 should be preseved.
24600
24601 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
24602
24603 PR tree-optimization/43528
24604 * stor-layout.c (place_field): Check that constant fits into
24605 unsigned HWI when skipping calculation of MS bitfield layout.
24606
24607 2010-03-27 Jan Hubicka <jh@suse.cz>
24608
24609 PR middle-end/43391
24610 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
24611 notice_global_symbol work.
24612
24613 2010-03-27 Jakub Jelinek <jakub@redhat.com>
24614
24615 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
24616 instead of dwarf2out_decl.
24617 (struct var_loc_node): Remove section_label field.
24618 (dwarf2out_function_decl): New function.
24619 (dwarf2out_var_location): Don't set section_label field.
24620 (dwarf2out_begin_function): Don't empty decl_loc_table here.
24621
24622 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
24623
24624 PR tree-optimization/43544
24625 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
24626 First argument for builtin vectorized function hook is now a
24627 tree to be able to distinguish between machine specific and
24628 standard builtins.
24629 * targhooks.c (default_builtin_vectorized_function): Ditto.
24630 * targhooks.h (default_builtin_vectorized_function): Ditto.
24631 * target.h (struct gcc_target): Ditto.
24632 * tree-vect-stmts.c (vectorizable_function): Ditto.
24633 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
24634 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
24635 Ditto.
24636
24637 2010-03-26 Joseph Myers <joseph@codesourcery.com>
24638
24639 PR c/43381
24640 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
24641 nested binding iff it is a FUNCTION_DECL.
24642 (store_parm_decls_newstyle): Pass nested=true to bind for
24643 FUNCTION_DECLs amongst parameters.
24644
24645 2010-03-26 Jakub Jelinek <jakub@redhat.com>
24646
24647 * var-tracking.c (vt_expand_loc_callback): Don't run
24648 cselib_expand_value_rtx_cb in dummy mode if
24649 cselib_dummy_expand_value_rtx_cb returned false.
24650
24651 * var-tracking.c (emit_note_insn_var_location): For one part
24652 notes with offset 0, don't add EXPR_LIST around the location.
24653 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
24654 add_location_or_const_value_attribute): Adjust for that change.
24655
24656 PR debug/43540
24657 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
24658 into first operand and location into second.
24659 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
24660 dw_cfi_oprnd_loc for DW_CFA_expression.
24661 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
24662 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
24663 assume first argument is regnum and second argument is location.
24664
24665 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
24666
24667 PR target/42113
24668 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
24669 of scratch register to DImode. Split to DImode comparison operator.
24670 Use SImode subreg of scratch register in the multiplication.
24671 (*cmp_sadd_sidi): Ditto.
24672 (*cmp_ssub_si): Ditto.
24673 (*cmp_ssub_sidi): Ditto.
24674
24675 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
24676
24677 PR target/43524
24678 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
24679 Remove invalid assert and wrong comment.
24680
24681 2010-03-26 Jakub Jelinek <jakub@redhat.com>
24682
24683 PR debug/43516
24684 * flags.h (final_insns_dump_p): New extern.
24685 * final.c (final_insns_dump_p): New variable.
24686 (rest_of_clean_state): Set it before -fdump-final-insns=
24687 dumping, clear afterwards.
24688 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
24689 MEM_ALIAS_SET on MEMs.
24690
24691 2010-03-26 David S. Miller <davem@davemloft.net>
24692
24693 * configure.ac: Fix sparc GOTDATA_OP bug check.
24694 * configure: Rebuild.
24695
24696 2010-03-26 Alan Modra <amodra@gmail.com>
24697
24698 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
24699
24700 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24701
24702 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
24703 TLS_SECTION_ASM_FLAG.
24704
24705 2010-03-25 Jakub Jelinek <jakub@redhat.com>
24706
24707 PR bootstrap/43511
24708 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
24709 Clear first_function_block_is_cold.
24710
24711 PR c/43385
24712 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
24713 argument if the argument is truth_value_p.
24714
24715 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
24716
24717 * config/rs6000/constraints.md: Update copyright year for my changes.
24718
24719 PR target/43484
24720 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
24721 used in reg+reg addressing, swap registers.
24722
24723 2010-03-24 Jakub Jelinek <jakub@redhat.com>
24724
24725 PR debug/43293
24726 * target.h (struct gcc_target): Add code_end hook.
24727 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
24728 if not yet defined.
24729 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
24730 * toplev.c (compile_file): Call targetm.asm_out.code_end
24731 hook before unwind info/debug info output.
24732 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
24733 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
24734 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
24735 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
24736 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
24737 * config/i386/i386.c (ix86_file_end): Renamed to...
24738 (ix86_code_end): ... this. Make static. Don't call
24739 file_end_indicate_exec_stack. Emit unwind info using
24740 final_start_function/final_end_function.
24741 (darwin_x86_file_end): Remove.
24742 (TARGET_ASM_CODE_END): Define.
24743 * config/i386/i386.h (TARGET_ASM_FILE_END,
24744 NEED_INDICATE_EXEC_STACK): Don't define.
24745 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
24746 (TARGET_ASM_FILE_END): Define to darwin_file_end.
24747 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
24748 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
24749
24750 PR target/43498
24751 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
24752 at the beginning and final_end_function at the end.
24753 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
24754
24755 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24756
24757 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
24758 and Sun as TLS syntax.
24759 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
24760 * configure: Regenerate.
24761 * config.in: Regenerate.
24762 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
24763 (default_elf_asm_named_section): Use it.
24764 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
24765 (i386_output_dwarf_dtprel): Likewise.
24766 (output_addr_const_extra): Likewise.
24767 (output_pic_addr_const): Lowercase @GOTTPOFF.
24768 (output_addr_const_extra): Likewise.
24769 (output_pic_addr_const): Lowercase @GOTNTPOFF.
24770 (output_addr_const_extra): Likewise.
24771 (output_pic_addr_const): Lowercase @INDNTPOFF.
24772 (output_addr_const_extra): Likewise.
24773 (output_pic_addr_const): Lowercase @NTPOFF.
24774 (output_addr_const_extra): Likewise.
24775 (output_pic_addr_const): Lowercase @TPOFF.
24776 (output_addr_const_extra): Likewise.
24777 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
24778 (*tls_global_dynamic_64): Likewise.
24779 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
24780 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
24781
24782 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
24783 (ASM_OUTPUT_TLS_COMMON): Use it.
24784 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
24785
24786 PR target/38118
24787 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
24788 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
24789 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
24790 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
24791 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
24792 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
24793
24794 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24795
24796 * config/i386/i386.c (override_options): Don't accept
24797 -mtls-dialect=sun any longer.
24798 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
24799 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
24800 (*tls_local_dynamic_base_32_sun): Likewise.
24801 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
24802
24803 2010-03-24 Jakub Jelinek <jakub@redhat.com>
24804
24805 PR debug/43508
24806 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
24807 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
24808
24809 PR debug/43479
24810 * ira.c (adjust_cleared_regs): New function.
24811 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
24812
24813 PR debug/19192
24814 PR debug/43479
24815 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
24816 from gimple_block.
24817 * expr.c (expand_expr_real): Restore previous
24818 curr_insn_source_location and curr_insn_block after
24819 expand_expr_real_1 call.
24820 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
24821 instead of expand_expr_real_1.
24822
24823 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
24824
24825 PR rtl-optimization/43413
24826 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
24827 hard regs too.
24828
24829 2010-03-22 James E. Wilson <wilson@codesourcery.com>
24830
24831 PR target/43348
24832 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
24833 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
24834
24835 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
24836
24837 * config/i386/i386.c (ix86_target_string): Add -mfma.
24838 Fix a typo in comment.
24839
24840 2010-03-22 Mike Stump <mikestump@comcast.net>
24841
24842 PR target/23071
24843 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
24844 Don't overly align based upon packed packed fields.
24845
24846 2010-03-22 Jason Merrill <jason@redhat.com>
24847
24848 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
24849 Use () rather than [], and move before the element type.
24850
24851 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24852
24853 * doc/configfiles.texi (Configuration Files): Removed
24854 fixinc/Makefile*, intl/Makefile.*.
24855 * doc/makefile.texi: Fixed markup. Abstract from version
24856 control system used.
24857 (Makefile): Removed obsolete java/parse.y example.
24858 * doc/sourcebuild.texi: Likewise.
24859 (Top Level): Added config, gnattools, libdecnumber, libgcc,
24860 libgomp, libssp. Removed fastjar.
24861 (Miscellaneous Docs): Clarify location.
24862 Added COPYING3, COPYING3.LIB.
24863 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
24864
24865 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24866
24867 PR target/38085
24868 * config/i386/i386.c (x86_function_profiler)
24869 [!NO_PROFILE_COUNTERS]: Fix typo.
24870 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
24871 instead of callq.
24872
24873 2010-03-22 Janis Johnson <janis187@us.ibm.com>
24874 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24875
24876 * doc/sourcebuild.texi (Test Directives): Split into six
24877 subsections, with most of the current text in new subsections
24878 Directives, Selectors, and Final Actions.
24879 (Directives): Split list of test directives into multiple
24880 subsubsections.
24881 (Selectors): Describe use and syntax of selectors.
24882 (Effective-Target Keywords): Describe all existing keywords.
24883 (Add Options): Describe features for dg-add-options.
24884 (Require Support): Describe variants of dg-require-support.
24885 (Final Actions): Describe commands to use in dg-final.
24886
24887 2010-03-22 Michael Matz <matz@suse.de>
24888
24889 PR middle-end/43475
24890 * recog.c (validate_replace_rtx_group): Replace also in
24891 REG_EQUAL and REG_EQUIV notes.
24892
24893 2010-03-22 Richard Guenther <rguenther@suse.de>
24894
24895 PR tree-optimization/43390
24896 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
24897 sure vector extracts are type correct.
24898
24899 2010-03-22 Richard Guenther <rguenther@suse.de>
24900
24901 PR middle-end/40106
24902 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
24903 x * sqrt (x) even when optimizing for size if the target
24904 has native support for sqrt.
24905
24906 2010-03-22 Jakub Jelinek <jakub@redhat.com>
24907
24908 * varasm.c (make_decl_rtl_for_debug): Also clear
24909 flag_mudflap for the duration of make_decl_rtl call.
24910
24911 PR debug/43443
24912 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
24913 locs from preserved VALUEs.
24914
24915 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24916
24917 PR middle-end/42718
24918 * pa.md (movmemsi): Set align to one if zero.
24919 (movmemdi): Likewise.
24920
24921 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
24922
24923 PR target/42321
24924 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
24925 with their corresponding prologue pushes.
24926
24927 2010-03-20 Andrew Pinski <pinskia@gmail.com>
24928
24929 PR target/43156
24930 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
24931 at the begining or end.
24932 (spu_expand_epilogue): Likewise.
24933
24934 2010-03-20 Richard Guenther <rguenther@suse.de>
24935
24936 PR rtl-optimization/43438
24937 * combine.c (make_extraction): Properly zero-/sign-extend an
24938 extraction of the low part of a CONST_INT. Also handle
24939 CONST_DOUBLE.
24940
24941 2010-03-19 Mike Stump <mikestump@comcast.net>
24942
24943 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
24944 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
24945 (override_options): Use SUBTARGET32_DEFAULT_CPU.
24946
24947 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
24948
24949 PR c/43211
24950 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
24951 an error.
24952
24953 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
24954
24955 PR rtl-optimization/42258
24956 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
24957 use that may match DEF.
24958
24959 PR target/40697
24960 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
24961 the cost of loading the constant rather than assuming
24962 COSTS_N_INSNS (1).
24963 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
24964 outer code is AND, do the same tests as the andsi3 expander and
24965 return COSTS_N_INSNS (1) if and is cheap.
24966
24967 * optabs.c (avoid_expensive_constant): Fix formatting.
24968
24969 2010-03-19 Michael Matz <matz@suse.de>
24970
24971 PR c++/43116
24972 * attribs.c (decl_attributes): When rebuilding a function pointer
24973 type use the same qualifiers as the original pointer type.
24974
24975 2010-03-19 Martin Jambor <mjambor@suse.cz>
24976
24977 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
24978 and is_gimple_ip_invariant_address.
24979
24980 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24981
24982 Revert
24983 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24984
24985 * config/arm/arm.c (arm_override_options): Turn off
24986 flag_dwarf2_cfi_asm for AAPCS variants.
24987
24988 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24989
24990 PR target/43399
24991 * config/arm/arm.c (emit_multi_reg_push): Update comments.
24992 Use PRE_MODIFY instead of PRE_DEC.
24993 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
24994 (vfp_emit_fstmd): Likewise.
24995
24996 2010-03-19 Michael Matz <matz@suse.de>
24997
24998 PR target/43305
24999 * builtins.c (expand_builtin_interclass_mathfn,
25000 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
25001 if that fails.
25002
25003 2010-03-19 Richard Guenther <rguenther@suse.de>
25004
25005 PR tree-optimization/43415
25006 * tree-ssa-pre.c (phi_translate): Split out worker to ...
25007 (phi_translate_1): ... this.
25008 (phi_translate): Move all caching here. Cache all NARY
25009 and REFERENCE translations.
25010
25011 2010-03-19 David S. Miller <davem@davemloft.net>
25012
25013 With help from Eric Botcazou.
25014 * config/sparc/sparc.c: Include dwarf2out.h.
25015 (emit_pic_helper): Delete.
25016 (pic_helper_symbol_name): Delete.
25017 (pic_helper_emitted_p): Delete.
25018 (pic_helper_needed): New.
25019 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
25020 (get_pc_thunk_name): New.
25021 (load_pic_register): Remove 'delay_pic_helper' arg. Use
25022 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
25023 Set pic_helper_needed to true. Don't call emit_pic_helper.
25024 (sparc_expand_prologue): Update load_pic_register call.
25025 (sparc_output_mi_thunk): Likewise.
25026 (sparc_file_end): Emit a hidden comdat symbol for the PIC
25027 thunk if possible. Output CFI information as needed.
25028
25029 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
25030 Jack Howarth <howarth@bromo.med.uc.edu>
25031
25032 PR target/36399
25033 * config/i386/i386.h: Fix ABI on darwin x86-32.
25034
25035 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
25036
25037 * tree.h: Declare make_decl_rtl_for_debug.
25038 * varasm.c (make_decl_rtl_for_debug): New.
25039 * dwarf2out.c (rtl_for_decl_location): Call it.
25040 * cfgexpand.c (expand_debug_expr): Call it.
25041
25042 2010-03-18 Jakub Jelinek <jakub@redhat.com>
25043
25044 PR bootstrap/43399
25045 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
25046 mem_mode.
25047
25048 PR bootstrap/43403
25049 * var-tracking.c (vt_init_cfa_base): Do nothing if
25050 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
25051
25052 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
25053
25054 PR debug/42873
25055 * var-tracking.c (canonicalize_vars_star): New.
25056 (dataflow_post_merge_adjust): Use it.
25057
25058 2010-03-18 Jakub Jelinek <jakub@redhat.com>
25059
25060 PR debug/43058
25061 * var-tracking.c (non_suitable_const): New function.
25062 (add_uses): For DEBUG_INSNs with constants, don't record any
25063 value, instead just the constant value itself.
25064 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
25065 is not VAR_LOC_UNKNOWN_P, set var to the constant.
25066 (emit_notes_in_bb): Likewise.
25067 (emit_note_insn_var_location): For onepart variables if
25068 cur_loc is a VOIDmode constant, use DECL_MODE.
25069
25070 2010-03-18 Martin Jambor <mjambor@suse.cz>
25071
25072 PR middle-end/42450
25073 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
25074 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
25075 all non-clones. Moved call redirection...
25076 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
25077 (cgraph_materialize_all_clones): Dispose of all
25078 combined_args_to_skip bitmaps.
25079 (verify_cgraph_node): Do not check for edges pointing to wrong
25080 nodes in inline clones.
25081 * tree-inline.c (copy_bb): Call
25082 cgraph_redirect_edge_call_stmt_to_callee.
25083 * ipa.c (cgraph_remove_unreachable_nodes): Call
25084 cgraph_node_remove_callees even when there are used clones.
25085
25086 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
25087
25088 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
25089
25090 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
25091
25092 PR target/43383
25093 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
25094 for 32bit.
25095
25096 2010-03-18 Michael Matz <matz@suse.de>
25097
25098 PR middle-end/43419
25099 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
25100 into sqrt(x) if we need to preserve signed zeros.
25101
25102 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
25103 Eric Botcazou <ebotcazou@adacore.com>
25104
25105 PR rtl-optimization/43360
25106 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
25107 note if we don't know its invariant status.
25108
25109 2010-03-18 Michael Matz <matz@suse.de>
25110
25111 PR tree-optimization/43402
25112 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
25113 PHI chains of ssa names registered for update.
25114
25115 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
25116
25117 PR target/42427
25118 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
25119 non-offsettable and pre_modify update addressing.
25120 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
25121 and "2" alternatives "#".
25122 (*movdd_softfloat32): Make all alternatives "#";
25123 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
25124 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
25125 (*movdf_softfloat32): Make all alternatives "#";
25126 (movdi): Use the new DIFD mode iterator to create a common splitter
25127 for movdi, movdf and movdd patterns.
25128
25129 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
25130
25131 * common.opt (dumpdir): Remove redundant tab.
25132
25133 2010-03-17 Martin Jambor <mjambor@suse.cz>
25134
25135 PR tree-optimization/43347
25136 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
25137 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
25138
25139 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
25140
25141 PR rtl-optimization/42216
25142 * regrename.c (create_new_chain): New function, broken out from...
25143 (scan_rtx_reg): ... here. Call it. Handle the case where we are
25144 appending a use to an empty chain.
25145 (build_def_use): Remove previous changes that convert OP_INOUT to
25146 OP_OUT operands; instead detect the case where an OP_INOUT operand
25147 uses a previously untracked register and create an empty chain for it.
25148
25149 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25150
25151 * doc/extend.texi (Function Attributes): Rewrite unfinished
25152 sentence in ms_abi documentation.
25153
25154 2010-03-17 Alan Modra <amodra@gmail.com>
25155
25156 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
25157 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
25158 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
25159 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
25160
25161 2010-03-16 Richard Henderson <rth@redhat.com>
25162
25163 PR middle-end/43365
25164 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
25165 (lower_try_finally): Save and restore eh_seq around the expansion
25166 of the try-finally.
25167
25168 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
25169
25170 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
25171 statements before splitting block.
25172
25173 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25174
25175 * doc/sourcebuild.texi (Testsuites): Fix markup.
25176 Use pathnames relative to gcc/testsuite.
25177 (Test Directives): Move description of how timeout is determined.
25178 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
25179 (C Tests): Correct gcc.misc-tests directory.
25180 Framework tests now live in gcc.test-framework.
25181
25182 2010-03-16 Richard Guenther <rguenther@suse.de>
25183
25184 PR middle-end/43379
25185 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
25186 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
25187
25188 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
25189 Alexandre Oliva <aoliva@redhat.com>
25190
25191 PR tree-optimization/42917
25192 * lambda-code.c (remove_iv): Skip debug statements.
25193 (lambda_loopnest_to_gcc_loopnest): Likewise.
25194 (not_interesting_stmt): Debug statements are not interesting.
25195
25196 2010-03-16 Jakub Jelinek <jakub@redhat.com>
25197
25198 PR debug/43051
25199 PR debug/43092
25200 * cselib.c (cselib_preserve_constants,
25201 cfa_base_preserved_val): New static variables.
25202 (preserve_only_constants): New function.
25203 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
25204 clear its REG_VALUES. If cselib_preserve_constants, don't
25205 empty the whole hash table, but preserve there VALUEs with constants,
25206 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
25207 (cselib_preserve_cfa_base_value): New function.
25208 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
25209 (cselib_init): Change argument to int bitfield. Set
25210 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
25211 is in it.
25212 (cselib_finish): Clear cselib_preserve_constants and
25213 cfa_base_preserved_val.
25214 * cselib.h (enum cselib_record_what): New enum.
25215 (cselib_init): Change argument to int.
25216 (cselib_preserve_cfa_base_value): New prototype.
25217 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
25218 * dse.c (dse_step1): Likewise.
25219 * cfgcleanup.c (thread_jump): Likewise.
25220 * sched-deps.c (sched_analyze): Likewise.
25221 * gcse.c (local_cprop_pass): Likewise.
25222 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
25223 If FN is non-NULL, call the callback always and whenever it returns
25224 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
25225 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
25226 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
25227 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
25228 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
25229 * var-tracking.c: Include recog.h.
25230 (bb_stack_adjust_offset): Remove.
25231 (vt_stack_adjustments): Don't call it, instead just gather the
25232 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
25233 (adjust_stack_reference): Remove.
25234 (compute_cfa_pointer): New function.
25235 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
25236 (struct adjust_mem_data): New type.
25237 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
25238 functions.
25239 (get_address_mode): New function.
25240 (replace_expr_with_values): Use it.
25241 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
25242 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
25243 (adjust_sets): Remove.
25244 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
25245 Use get_address_mode.
25246 (get_adjusted_src): Remove.
25247 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
25248 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
25249 (add_with_sets): Don't call adjust_sets.
25250 (fp_setter, vt_init_cfa_base): New functions.
25251 (vt_initialize): Change return type to bool. Move most of pool etc.
25252 initialization to the beginning of the function from end. Pass
25253 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
25254 If !frame_pointer_needed, call vt_stack_adjustment before mos
25255 vector is filled, call vt_init_cfa_base if argp/framep has been
25256 eliminated to sp. If frame_pointer_needed and argp/framep has
25257 been eliminated to hard frame pointer, set
25258 hard_frame_pointer_adjustment and call vt_init_cfa_base after
25259 encountering fp setter in the prologue. For MO_ADJUST, call
25260 log_op_type before pusing the op into mos vector, not afterwards.
25261 Call adjust_insn before cselib_process_insn/add_with_sets,
25262 call cancel_changes (0) afterwards.
25263 (variable_tracking_main_1): Adjust for vt_initialize calling
25264 vt_stack_adjustments and returning whether it succeeded or not.
25265
25266 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
25267
25268 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
25269 debug statements.
25270
25271 2010-03-15 Jakub Jelinek <jakub@redhat.com>
25272
25273 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
25274 has been set.
25275 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
25276 drap_reg has not been set.
25277
25278 2010-03-15 Michael Matz <matz@suse.de>
25279
25280 PR middle-end/43300
25281 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
25282 use it to expand block copies.
25283 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
25284 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
25285 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
25286
25287 2010-03-15 Richard Guenther <rguenther@suse.de>
25288
25289 PR tree-optimization/43367
25290 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
25291 elimination check.
25292
25293 2010-03-15 Richard Guenther <rguenther@suse.de>
25294
25295 PR tree-optimization/43317
25296 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
25297
25298 2010-03-15 Martin Jambor <mjambor@suse.cz>
25299
25300 PR tree-optimization/43141
25301 * tree-sra.c (create_abstract_origin): New function.
25302 (modify_function): Call create_abstract_origin.
25303
25304 2010-03-15 Chris Demetriou <cgd@google.com>
25305
25306 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
25307 wasn't copied.
25308
25309 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25310
25311 PR middle-end/43354
25312 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
25313 call insert_out_of_ssa_copy for default definitions.
25314
25315 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25316
25317 * graphite-clast-to-gimple.c (my_long_long): Defined.
25318 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
25319 * graphite-sese-to-poly.c (my_long_long): Defined.
25320 (scop_ivs_can_be_represented): Use it.
25321
25322 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25323
25324 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
25325 graphite-max-bbs-per-function, and loop-block-tile-size.
25326 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
25327 with "maximum".
25328 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
25329
25330 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25331
25332 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
25333 forward declaration.
25334 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
25335 (add_upper_bounds_from_estimated_nit): New.
25336 (build_loop_iteration_domains): Use it.
25337
25338 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25339
25340 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
25341
25342 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25343
25344 PR middle-end/43306
25345 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
25346 should be an INTEGER_CST. Also handle CASE_CONVERT.
25347
25348 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25349
25350 * graphite.c (graphite_initialize): To bound the number of bbs per
25351 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
25352 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
25353 * doc/invoke.texi: Document it.
25354
25355 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25356
25357 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
25358 * graphite-sese-to-poly.h (build_poly_scop): Same.
25359
25360 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25361
25362 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
25363 the number of parameters in the scop. Use as an upper bound
25364 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
25365 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
25366 * doc/invoke.texi: Document it.
25367
25368 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
25369
25370 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
25371 * doc/c-tree.texi: Remove.
25372 * doc/generic.texi: Merge c-tree.texi here.
25373 * doc/gccint.texi (Trees): Remove menu entry.
25374 (c-tree.texi): Remove @include.
25375 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
25376 * doc/languages.texi (Reading RTL): Ditto.
25377
25378 2010-03-12 Steve Ellcey <sje@cup.hp.com>
25379
25380 PR target/42869
25381 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
25382
25383 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25384
25385 PR middle-end/42431
25386 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
25387 code added to work around reload clobbering CONST insns.
25388
25389 2010-03-12 Jakub Jelinek <jakub@redhat.com>
25390
25391 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
25392 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
25393 (cselib_preserve_only_values): Remove retain argument, don't
25394 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
25395 * cselib.h (cselib_preserve_only_values): Remove retain argument.
25396 * var-tracking.c (micro_operation): Move insn field before union.
25397 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
25398 (struct variable_tracking_info_def): Remove n_mos field, change
25399 mos into a vector of micro_operations.
25400 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
25401 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
25402 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
25403 changing into a vector.
25404 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
25405 come before all other uops generated by add_stores.
25406 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
25407 argument removal.
25408 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
25409 a vector. Run just one pass over the bbs instead of separate counting
25410 and computation phase.
25411 (vt_finalize): Free VTI (bb)->mos vector instead of array.
25412
25413 PR debug/43329
25414 * tree-inline.c (remap_decls): Put old_var rather than origin_var
25415 into *nonlocalized_list vector.
25416 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
25417 even if origin is non-NULL.
25418 (gen_variable_die): Likewise.
25419 (process_scope_var): Don't change origin.
25420 (gen_decl_die): Likewise.
25421 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
25422 before adding new edges instead of after it, fix moving over
25423 debug stmts.
25424
25425 2010-03-11 David S. Miller <davem@davemloft.net>
25426
25427 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
25428 of four.
25429 * configure: Rebuild.
25430
25431 2010-03-11 Martin Jambor <mjambor@suse.cz>
25432
25433 PR tree-optimization/43257
25434 * tree.c (assign_assembler_name_if_neeeded): New function.
25435 (free_lang_data_in_cgraph): Assembler name assignment moved to the
25436 above new function.
25437 * tree.h (assign_assembler_name_if_neeeded): Declare.
25438 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
25439 the function if needed.
25440
25441 2010-03-11 Chris Demetriou <cgd@google.com>
25442
25443 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
25444 include/stdint-gcc.h, and include/stdint.h world-readable.
25445
25446 2010-03-11 Richard Guenther <rguenther@suse.de>
25447
25448 PR tree-optimization/43255
25449 * tree-vrp.c (process_assert_insertions_for): Do not insert
25450 asserts for trivial conditions.
25451
25452 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25453
25454 PR tree-optimization/43280
25455 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
25456 generation. Move calculation of size out of the if branch.
25457 (find_bswap): Modify compare number generation.
25458
25459 2010-03-11 Richard Guenther <rguenther@suse.de>
25460
25461 PR lto/43200
25462 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
25463 (input_gimple_stmt): Fixup handled component types during
25464 operand read. Also fix up decls in ADDR_EXPRs.
25465
25466 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
25467
25468 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
25469 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
25470
25471 2010-03-10 Jan Hubicka <jh@suse.cz>
25472
25473 PR c/43288
25474 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
25475 * varasm.c (get_variable_section): Don't do that here...
25476 (make_decl_rtl): ... and here.
25477 (do_assemble_alias): Produce decl RTL.
25478 (assemble_alias): Likewise.
25479
25480 2010-03-10 Jakub Jelinek <jakub@redhat.com>
25481
25482 PR debug/43290
25483 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
25484 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
25485 of fde->vdrap_reg.
25486 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
25487 (based_loc_descr): Only express drap or vdrap regno based expressions
25488 using DW_OP_fbreg when not optimizing.
25489 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
25490 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
25491 REG_CFA_SET_VDRAP note.
25492
25493 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
25494
25495 PR tree-optimization/43236
25496 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
25497 error in calculation of base address in reverse iteration case.
25498 (generate_builtin): Take number of latch executions if the statement
25499 is in the latch.
25500
25501 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
25502
25503 PR middle-end/42859
25504 * tree-eh.c: Include pointer-set.h.
25505 (lower_eh_dispatch): Filter out duplicate case labels and
25506 remove the unneeded edge when the label is unused. Return
25507 true when some edges are removed.
25508 (execute_lower_eh_dispatch): When any lowering resulted in
25509 removing an edge, also delete unreachable blocks.
25510
25511 2010-03-10 Jakub Jelinek <jakub@redhat.com>
25512
25513 PR bootstrap/43287
25514 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
25515 UNSPEC_MACHOPIC_OFFSET.
25516
25517 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
25518
25519 PR target/43294
25520 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
25521 (m68k_delegitimize_address): New function.
25522
25523 2010-03-09 Jakub Jelinek <jakub@redhat.com>
25524
25525 PR debug/43299
25526 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
25527
25528 PR debug/43299
25529 * var-tracking.c (adjust_sets): New function.
25530 (count_with_sets, add_with_sets): Use it.
25531 (get_adjusted_src): New inline function.
25532 (add_stores): Use it.
25533
25534 PR debug/43304
25535 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
25536 call cselib_dummy_expand_value_rtx_cb instead of
25537 cselib_expand_value_rtx_cb.
25538
25539 PR debug/43293
25540 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
25541 * config/i386/i386.c: Include debug.h and dwarf2out.h.
25542 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
25543 and .cfi_endproc around the pic thunks.
25544 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
25545 all queued unwind info register saves are saved before the call.
25546 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
25547 considered as sp-=4 for unwind info and the pop as sp+=4 which
25548 also clobbers dest, but doesn't actually restore it.
25549
25550 PR debug/43290
25551 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
25552 RTX_FRAME_RELATED_P.
25553
25554 2010-03-09 Jie Zhang <jie@codesourcery.com>
25555
25556 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
25557 whitespaces in output template.
25558
25559 2010-03-09 Jie Zhang <jie@codesourcery.com>
25560
25561 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
25562 out array boundary.
25563
25564 2010-03-08 Jakub Jelinek <jakub@redhat.com>
25565
25566 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
25567 builtins.exp in a separate job.
25568
25569 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
25570
25571 * graphite-sese-to-poly.c (add_param_constraints): Use
25572 lower_bound_in_type and upper_bound_in_type.
25573
25574 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
25575
25576 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
25577 instead of unsigned_type_node.
25578
25579 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
25580 Reza Yazdani <reza.yazdani@amd.com>
25581
25582 PR middle-end/43065
25583 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
25584 on pointer type parameters.
25585
25586 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
25587
25588 PR middle-end/42644
25589 PR middle-end/42130
25590 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
25591 handle conversions from pointer to integers.
25592 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
25593 induction variable, to be able to work with code generated by CLooG.
25594 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
25595 (build_poly_scop): Bail out if we cannot codegen a loop.
25596
25597 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
25598
25599 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
25600 code generation with gloog_error.
25601
25602 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
25603
25604 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
25605 Call fold_convert on all the returned values.
25606 (expand_scalar_variables_expr): Pass to
25607 expand_scalar_variables_ssa_name the type of the resulting expression.
25608
25609 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
25610
25611 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
25612 ppl_min_for_le_pointset.
25613 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
25614 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
25615
25616 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
25617
25618 * graphite-dependences.c (map_into_dep_poly): Removed.
25619 (dependence_polyhedron_1): Use combine_context_id_scat.
25620
25621 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
25622
25623 * graphite-poly.h (struct poly_scattering): Add layout documentation.
25624 (struct poly_bb): Same.
25625 (combine_context_id_scat): New.
25626
25627 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
25628
25629 PR middle-end/42326
25630 * sese.c (name_defined_in_loop_p): Return false for default
25631 definitions.
25632
25633 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
25634
25635 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
25636 and clean up the logic.
25637
25638 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
25639
25640 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
25641 early return.
25642
25643 2010-03-08 Jakub Jelinek <jakub@redhat.com>
25644
25645 * var-tracking.c (remove_cselib_value_chains): Define only for
25646 ENABLE_CHECKING.
25647 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
25648 delete_slot_part, emit_notes_for_differences_1): Don't call
25649 remove_cselib_value_chains here.
25650 (set_slot_part, emit_notes_for_differences_2): Don't call
25651 add_cselib_value_chains here.
25652 (preserved_values): New vector.
25653 (preserve_value): New function.
25654 (add_uses, add_stores, vt_add_function_parameters): Use it
25655 instead of cselib_preserve_value.
25656 (changed_values_stack): New vector.
25657 (check_changed_vars_0): New function.
25658 (check_changed_vars_1, check_changed_vars_2): Use it.
25659 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
25660 changed_values_stack VALUEs.
25661 (vt_emit_notes): For all preserved_values call
25662 add_cselib_value_chains. If ENABLE_CHECKING call
25663 remove_cselib_value_chains before verifying value_chains is empty.
25664 Initialize and free changed_values_stack.
25665 (vt_initialize): Initialize preserved_values.
25666 (vt_finalize): Free preserved_values.
25667
25668 2010-03-08 Richard Guenther <rguenther@suse.de>
25669
25670 PR tree-optimization/43269
25671 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
25672 region detection.
25673
25674 2010-03-08 Martin Jambor <mjambor@suse.cz>
25675
25676 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
25677 (ipa_is_param_called): Removed.
25678 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
25679 (ipa_print_node_params): Do not print the called flag.
25680 (ipa_write_node_info): Do not stream the called flag.
25681 (ipa_read_node_info): Likewise.
25682
25683 2010-03-07 Jakub Jelinek <jakub@redhat.com>
25684
25685 PR debug/43176
25686 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
25687 * cselib.c (struct expand_value_data): Add dummy field.
25688 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
25689 dummy to false.
25690 (cselib_dummy_expand_value_rtx_cb): New function.
25691 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
25692 any rtl.
25693 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
25694 * var-tracking.c: Include pointer-set.h.
25695 (variable): Change n_var_parts to char from int. Add
25696 cur_loc_changed and in_changed_variables fields.
25697 (variable_canonicalize): Remove.
25698 (shared_var_p): New inline function.
25699 (unshare_variable): Maintain cur_loc_changed and
25700 in_changed_variables fields. If var was in changed_variables,
25701 replace it there with new_var. Just copy cur_loc instead of
25702 resetting it to something else.
25703 (variable_union): Don't recompute cur_loc. Use shared_var_p.
25704 (dataflow_set_union): Don't call variable_canonicalize.
25705 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
25706 of their DEBUG_EXPR_TREE_DECLs.
25707 (canonicalize_loc_order_check): Verify that cur_loc is NULL
25708 and in_changed_variables and cur_loc_changed is false.
25709 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
25710 and cur_loc_changed. Don't update cur_loc here.
25711 (variable_merge_over_src): Don't call variable_canonicalize.
25712 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
25713 removing loc that is equal to cur_loc, clear cur_loc,
25714 set cur_loc_changed and ensure variable_was_changed is called.
25715 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
25716 compare pointers in cur_loc check, if it is equal to loc,
25717 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
25718 (variable_different_p): Remove compare_current_location argument,
25719 don't compare cur_loc.
25720 (dataflow_set_different_1): Adjust variable_different_p caller.
25721 (variable_was_changed): If dv had some var in changed_variables
25722 already, reset in_changed_variables flag for it and propagate
25723 cur_loc_changed over to the new variable. On empty var
25724 always set cur_loc_changed. Set in_changed_variables on whatever
25725 var is added to changed_variables.
25726 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
25727 Use shared_var_p. When removing loc that is equal to cur_loc,
25728 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
25729 end, don't set it to something else, just call variable_was_changed.
25730 (delete_slot_part): Use shared_var_p. When cur_loc equals to
25731 loc being removed, clear cur_loc and set cur_loc_changed.
25732 Set cur_loc_changed if all locations have been removed.
25733 (struct expand_loc_callback_data): New type.
25734 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
25735 allocated. Always create SUBREGs if simplify_subreg failed.
25736 Prefer to use cur_loc, when that fails and still in
25737 changed_variables (and seen first time) recompute it. Set
25738 cur_loc_changed of variables which had to change cur_loc and
25739 compute elcd->cur_loc_changed if any of the subexpressions used
25740 had to change cur_loc.
25741 (vt_expand_loc): Adjust to pass arguments in
25742 expand_loc_callback_data structure.
25743 (vt_expand_loc_dummy): New function.
25744 (emitted_notes): New variable.
25745 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
25746 that weren't used for any other decl in current
25747 emit_notes_for_changes call call vt_expand_loc_dummy to update
25748 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
25749 first loc_chain location if NULL before. Always use just
25750 cur_loc instead of first loc_chain location. When cur_loc_changed
25751 is false, when not --enable-checking=rtl just don't emit any note.
25752 When rtl checking, compute the note and assert it is the same
25753 as previous note. Clear cur_loc_changed and in_changed_variables
25754 at the end before removing from changed_variables.
25755 (check_changed_vars_3): New function.
25756 (emit_notes_for_changes): Traverse changed_vars to call
25757 check_changed_vars_3 on each changed var.
25758 (emit_notes_for_differences_1): Clear cur_loc_changed and
25759 in_changed_variables. Recompute cur_loc of new_var.
25760 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
25761 (vt_emit_notes): Initialize and destroy emitted_notes.
25762
25763 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
25764
25765 PR rtl-optimization/42220
25766 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
25767 Use verify_reg_tracked to determine if we should use OP_OUT rather
25768 than OP_INOUT.
25769 (build_def_use): If we see an in-out operand for a register that we
25770 know nothing about, treat is an output if possible, fail the block if
25771 not.
25772
25773 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
25774
25775 PR debug/42897
25776 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
25777 permanently.
25778
25779 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
25780
25781 PR debug/42897
25782 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
25783 uses of relevant DEFs that are dead outside the loop too.
25784
25785 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
25786
25787 * var-tracking.c (dataflow_set_merge): Swap src and src2.
25788 Reverted:
25789 2010-01-13 Jakub Jelinek <jakub@redhat.com>
25790 PR debug/41371
25791 * var-tracking.c (values_to_unmark): New variable.
25792 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
25793 values_to_unmark vector. Moved body to...
25794 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
25795 instead queue it into values_to_unmark vector.
25796 (vt_find_locations): Free values_to_unmark vector.
25797
25798 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
25799
25800 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
25801 (site.exp): Export them when plugins are enabled.
25802
25803 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
25804
25805 PR middle-end/42326
25806 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
25807 that contain scevs.
25808 (chrec_fold_multiply): Same.
25809
25810 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
25811
25812 PR c/43248
25813 * c-decl.c (build_compound_literal): Return early if init is
25814 an error_mark_node.
25815
25816 2010-03-04 Martin Jambor <mjambor@suse.cz>
25817
25818 PR tree-optimization/43164
25819 PR tree-optimization/43191
25820 * tree-sra.c (type_consists_of_records_p): Reject records with
25821 zero-size bit-fields at the end.
25822
25823 2010-03-04 Mike Stump <mikestump@comcast.net>
25824
25825 * Makefile.in (TAGS): Remove *.y.
25826
25827 2010-03-04 Richard Guenther <rguenther@suse.de>
25828
25829 PR tree-optimization/40761
25830 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
25831 in reverse order.
25832 (my_rev_post_order_compute): New function.
25833 (init_pre): Call it.
25834
25835 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
25836
25837 PR middle-end/43209
25838 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
25839 decrease the cost of an IV candidate when the cost is infinite.
25840
25841 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25842
25843 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
25844 Use '3DNow!' for the extension of that name, ensure normal space
25845 after the string.
25846 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
25847
25848 2010-03-03 Jeff Law <law@redhat.com>
25849
25850 * PR middle-end/32693
25851 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
25852 than gen_rtx_SUBREG.
25853 (extract_bit_field_1): Likewise.
25854
25855 2010-03-03 Janis Johnson <janis187@us.ibm.com>
25856
25857 * doc/sourcebuild.texi (Test directives): Document that arguments
25858 include-opts and exclude-opts are now optional for dg-skip-if,
25859 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
25860
25861 2010-03-03 Jason Merrill <jason@redhat.com>
25862
25863 PR c++/12909
25864 * cgraph.h (varpool_node): Add extra_name field.
25865 * varpool.c (varpool_extra_name_alias): New.
25866 (varpool_assemble_decl): Emit extra name aliases.
25867 (varpool_mark_needed_node): Look past an extra name alias.
25868 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
25869 * lto-streamer-in.c (lto_input_tree): Read it.
25870 * lto-streamer-out.c (output_unreferenced_globals): Write it.
25871
25872 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
25873
25874 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
25875 (sparc*-*-solaris2*): ...this.
25876
25877 2010-03-03 Jakub Jelinek <jakub@redhat.com>
25878
25879 PR debug/43229
25880 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
25881 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
25882 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
25883 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
25884
25885 PR debug/43237
25886 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
25887 fallthrough to default handling, just with want_address 0 instead of 2.
25888 For single element lists, add_AT_loc directly, otherwise create an
25889 artificial variable DIE and stick location list to it.
25890
25891 PR debug/43177
25892 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
25893 (VAL_EXPR_HAS_REVERSE): Define.
25894 (reverse_op): New function.
25895 (add_stores): For reversible operations add an extra MO_VAL_USE.
25896
25897 2010-03-02 Jason Merrill <jason@redhat.com>
25898
25899 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
25900
25901 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
25902
25903 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
25904 (sparc64-*-linux*): Likewise.
25905 (sparc64-*-solaris2*): Include assembler files before linker ones.
25906 (sparc-*-solaris2*): Simplify and reorder to match previous case.
25907 * config/sparc/gas.h: Delete.
25908 * config/sparc/sol2-64.h: Add copyright notice.
25909 * config/sparc/sol2-gas-bi.h: Likewise.
25910 * config/sparc/sol2-gld.h: Likewise.
25911 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
25912 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
25913 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
25914 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
25915 (sparc_elf_asm_named_section): Rename into...
25916 (sparc_solaris_elf_asm_named_section): ...this. Always define.
25917
25918 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
25919
25920 * config/alpha/alpha.c (override_options): Fix -mtune error message.
25921
25922 2010-03-02 Jeff Law <law@redhat.com>
25923
25924 PR middle-end/42431
25925 * reload1.c (rtx_p, substitute_stack): Declare.
25926 (substitute): Record addresses of changed rtxs.
25927 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
25928 Restore the original rtx when complete.
25929 (reload): Free subsitute_stack when complete.
25930
25931 2010-03-02 Janis Johnson <janis187@us.ibm.com>
25932
25933 * doc/gccint.texi (menu): Add Testsuites as a chapter.
25934 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
25935 new chapter.
25936 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
25937 LTO Testing, gcov Testing, profopt Testing, compat Testing,
25938 Torture Tests): Change from subsection to section.
25939
25940 2010-03-02 Jakub Jelinek <jakub@redhat.com>
25941 Steven Bosscher <steven@gcc.gnu.org>
25942
25943 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
25944 instead of bb.
25945
25946 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
25947
25948 PR middle-end/42640
25949 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
25950 the assignment from the new induction variable to the assignment
25951 of the value from the original loop PHI function.
25952
25953 2010-03-01 Janis Johnson <janis187@us.ibm.com>
25954 Daniel Jacobowitz <dan@codesourcery.com>
25955
25956 * doc/sourcebuild.texi (Test directives): Clarify options to
25957 dg-skip-if.
25958
25959 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25960
25961 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
25962 Disable cfi directives unless GCC and gas agree on using read-only
25963 .eh_frame sections for 64-bit.
25964 * configure: Regenerate.
25965
25966 2010-03-01 Richard Guenther <rguenther@suse.de>
25967
25968 PR tree-optimization/43220
25969 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
25970 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
25971
25972 2010-03-01 Richard Guenther <rguenther@suse.de>
25973 Martin Jambor <mjambor@suse.cz>
25974
25975 PR middle-end/41250
25976 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
25977 gimplified parameters.
25978
25979 2010-03-01 Christian Bruel <christian.bruel@st.com>
25980
25981 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
25982
25983 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
25984
25985 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
25986
25987 2010-03-01 Richard Guenther <rguenther@suse.de>
25988
25989 PR middle-end/43213
25990 * expr.c (expand_assignment): Use the alias-oracle to tell
25991 if the rhs aliases the result decl.
25992
25993 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25994
25995 PR pch/14940
25996 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
25997 to sol_gt_pch_get_address.
25998 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
25999 64-bit, SPARC and x86.
26000 (sol_gt_pch_get_address): New function.
26001
26002 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
26003
26004 * toplev.h (inform_n, error_n): Declare.
26005 * diagnostic.c (inform_n, error_n): New function.
26006
26007 2010-03-01 Jakub Jelinek <jakub@redhat.com>
26008
26009 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
26010 has no rtl yet when processing local_decls, queue it and recheck
26011 if deferred stack allocation hasn't assigned it rtl.
26012
26013 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
26014
26015 * config/sh/sh.c (unspec_bbr_uid): New.
26016 (gen_block_redirect): Use it instead of INSN_UID.
26017 (gen_far_branch): Likewise.
26018
26019 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
26020
26021 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
26022 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
26023
26024 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26025
26026 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
26027 (Warning Options): -Wno-conversion-null is valid for
26028 Objective-C++ as well.
26029 * doc/tm.texi (Named Address Spaces): Likewise.
26030 * doc/plugins.texi (Plugins): Replace TABs with spaces.
26031 * doc/tree-ssa.texi (Tree SSA): Likewise.
26032
26033 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
26034
26035 PR bootstrap/43202
26036 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
26037 by default. Don't set the default arch for
26038 i[34567]86-*-darwin*|x86_64-*-darwin*.
26039
26040 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
26041
26042 PR bootstrap/43202
26043 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
26044 default. Set the default 32bit/64bit archs with $with_arch
26045 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
26046
26047 2010-02-27 Richard Guenther <rguenther@suse.de>
26048
26049 PR tree-optimization/43186
26050 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
26051 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
26052 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
26053 unroller iterations.
26054
26055 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
26056
26057 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
26058 required and i[34567]86-*-* targets don't support 64bit ISA.
26059
26060 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
26061
26062 PR ada/43096
26063 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
26064 the same alias set.
26065
26066 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
26067
26068 * config.gcc: Set the default arch at least to Prescott for
26069 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
26070 if SSE math is enabled.
26071
26072 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
26073
26074 * diagnostic.c (diagnostic_initialize): Update.
26075 (diagnostic_report_diagnostic): Test inhibit_notes_p for
26076 informative notes.
26077 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
26078 (diagnostic_inhibit_notes): New.
26079 * toplev.c (process_options): inhibit notes with -fcompare-debug.
26080
26081 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
26082
26083 PR c/20631
26084 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
26085 * doc/standards.texi: Likewise.
26086 * doc/extend.texi: Likewise.
26087 * doc/trouble.texi: Likewise.
26088 * doc/cppopts.texi: Likewise.
26089 * doc/install.texi: Likewise.
26090 * c.opt (std=c90,std=gnu90): New options.
26091 * c-opts.c (c_common_handle_option): Handle them.
26092
26093 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
26094
26095 PR c/24577
26096 * c-decl.c (undeclared_variable): Use an informative note.
26097
26098 2010-02-26 Richard Guenther <rguenther@suse.de>
26099
26100 PR tree-optimization/43186
26101 * gimple.h (gimple_fold): Remove.
26102 * gimple.c (gimple_fold): Remove. Inline into single user ...
26103 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
26104 Try harder for conditions.
26105
26106 2010-02-26 Jakub Jelinek <jakub@redhat.com>
26107
26108 PR debug/43190
26109 * function.c (used_types_insert): Don't skip through named pointer
26110 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
26111 and it is different from the main variant's type.
26112
26113 2010-02-26 Nick Clifton <nickc@redhat.com>
26114
26115 * config/rx/rx.md (sminsi3): Remove bogus alternative.
26116
26117 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
26118
26119 * config.gcc: Support --with-fpmath=sse for x86.
26120
26121 * config/i386/ssemath.h: New.
26122
26123 * doc/install.texi (--with-fpmath=sse): Documented.
26124
26125 2010-02-26 Richard Guenther <rguenther@suse.de>
26126
26127 PR tree-optimization/43188
26128 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
26129 vector types of over-aligned element type.
26130
26131 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
26132
26133 PR target/43175
26134 * config/i386/i386.c (expand_vec_perm_blend): Use correct
26135 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
26136
26137 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
26138
26139 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
26140
26141 2010-02-26 Jakub Jelinek <jakub@redhat.com>
26142
26143 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
26144 * var-tracking.c: Include diagnostic.h.
26145 (debug_dv): New function.
26146 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
26147
26148 PR debug/43160
26149 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
26150 (add_value_chain, add_value_chains, remove_value_chain,
26151 remove_value_chains): Handle DEBUG_EXPRs.
26152 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
26153
26154 PR debug/43161
26155 * regcprop.c (struct queued_debug_insn_change): New type.
26156 (struct value_data_entry): Add debug_insn_changes field.
26157 (struct value_data): Add n_debug_insn_changes field.
26158 (debug_insn_changes_pool): New variable.
26159 (free_debug_insn_changes, apply_debug_insn_changes,
26160 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
26161 (kill_value_one_regno): Call free_debug_insn_changes if needed.
26162 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
26163 fields.
26164 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
26165 changes for them.
26166 (copyprop_hardreg_forward_1): Don't call apply_change_group for
26167 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
26168 changes, call cprop_find_used_regs via note_stores.
26169 (copyprop_hardreg_forward): When copying vd from predecessor
26170 which has any queued DEBUG_INSN changes, make sure the pointers are
26171 cleared. At the end call df_analyze and then if there are any
26172 DEBUG_INSN changes queued at the end of some basic block for still
26173 live registers, apply them.
26174 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
26175
26176 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
26177
26178 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
26179 (arm*-*-*): Ditto.
26180
26181 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
26182
26183 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
26184 targets. Set the default with_cpu/with_arch from arch/cpu.
26185 Allow x86-64 and native for with_cpu/with_arch.
26186
26187 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
26188
26189 * ebitmap.c: Change calls to verify_popcount with calls to
26190 sbitmap_verify_popcount.
26191 (ebitmap_clear_bit): Fixed map->cacheindex test and
26192 map>cache update when bit clearing results in an empty
26193 element.
26194
26195 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
26196
26197 PR target/43154
26198 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
26199 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
26200 and support both V2DF and V2DI modes.
26201 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
26202 support both V2DF and V2DI modes.
26203 (general): Delete trailing whitespace from a few patterns.
26204
26205 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26206 V2DF/V2DI interleave high/low builtins.
26207
26208 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
26209 new VSX builtins.
26210
26211 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
26212 interleave high/low functions.
26213
26214 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
26215
26216 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
26217 #pragma extern_prefix.
26218
26219 2010-02-25 Jakub Jelinek <jakub@redhat.com>
26220
26221 PR debug/43166
26222 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
26223 BLKmode, assert op0 is a MEM and just adjust its mode.
26224
26225 PR debug/43165
26226 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
26227 if bitpos isn't multiple of mode's bitsize.
26228
26229 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
26230
26231 * c.opt (-ftemplate-depth=): New.
26232 (-ftemplate-depth-): Deprecate.
26233 * optc-gen.awk: Handle -ftemplate-depth=.
26234 * opth-gen.awk: Likewise.
26235 * c-opts.c (c_common_handle_option): Likewise.
26236 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
26237
26238 2010-02-24 Jason Merrill <jason@redhat.com>
26239
26240 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
26241
26242 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26243
26244 * cfg.c (alloc_aux_for_block): Remove inline.
26245 (alloc_aux_for_edge): Likewise.
26246
26247 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26248
26249 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
26250
26251 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26252
26253 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
26254 * config/i386/sol2-gas.h: New file.
26255 * config.gcc (i[34567]86-*-solaris2*): Use it.
26256
26257 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
26258
26259 PR c/43128
26260 * c-typeck.c (ep_convert_and_check): New.
26261 (build_conditional_expr): Use it.
26262 (build_binary_op): Likewise.
26263
26264 2010-02-24 Jakub Jelinek <jakub@redhat.com>
26265
26266 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
26267
26268 PR debug/43150
26269 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
26270 bounds even for -O+.
26271 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
26272 expr needs to have DECL_NAME set.
26273
26274 2010-02-24 Nick Clifton <nickc@redhat.com>
26275
26276 * config/mep/mep.c: Include gimple.h.
26277 (mep_function_uses_sp): Delete unused function.
26278 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
26279 parameters. Use unsigned integers to count args. Return a
26280 NULL_RTX instead of an error_mark_node. Toidy up formatting.
26281
26282 2010-02-23 Jakub Jelinek <jakub@redhat.com>
26283
26284 PR target/43107
26285 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
26286 greater or equal to nelt instead of 2 * nelt.
26287 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
26288 with nelt - 1.
26289
26290 2010-02-23 Jason Merrill <jason@redhat.com>
26291
26292 PR debug/42800
26293 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
26294 in cfun->local_decls even if they have register types.
26295
26296 PR c++/42837
26297 * stor-layout.c (place_field): Don't warn about unnecessary
26298 DECL_PACKED if the type is packed.
26299
26300 2010-02-23 Jakub Jelinek <jakub@redhat.com>
26301
26302 PR target/43139
26303 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
26304 GOTOFF relocs, even when the base reg isn't pic pointer.
26305
26306 2010-02-23 Michael Matz <matz@suse.de>
26307
26308 PR debug/43077
26309 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
26310 (expand_gimple_basic_block): Generate and use debug temps if there
26311 are debug uses left after the last real use of TERed ssa names.
26312 Unlink debug immediate uses when they are expanded.
26313
26314 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
26315
26316 PR 43123
26317 * config/i386/i386.c (override_options): Reorganise to provide
26318 better error messages.
26319
26320 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
26321
26322 PR middle-end/43083
26323 * graphite-scop-detection.c (create_single_exit_edge): Move
26324 the call to find_single_exit_edge to....
26325 (create_sese_edges): ...here. Don't handle multiple edges
26326 exiting the function.
26327 (build_graphite_scops): Don't handle multiple edges
26328 exiting the function.
26329
26330 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
26331
26332 PR middle-end/43097
26333 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
26334 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
26335
26336 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
26337
26338 PR middle-end/43026
26339 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
26340
26341 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
26342
26343 PR c++/43126
26344 * c-typeck.c (convert_arguments): Print declaration location.
26345 * c-common.c (validate_nargs): Rename as
26346 builtin_function_validate_nargs.
26347 (check_builtin_function_arguments): Update.
26348
26349 2010-02-22 Richard Guenther <rguenther@suse.de>
26350
26351 PR lto/43045
26352 * tree-inline.c (declare_return_variable): Use the type of
26353 the call stmt lhs if available.
26354
26355 2010-02-22 Duncan Sands <baldrick@free.fr>
26356
26357 * passes.c (register_pass): Always consider all pass lists when
26358 ref_pass_instance_number is zero.
26359
26360 2010-02-22 Richard Guenther <rguenther@suse.de>
26361
26362 PR tree-optimization/42749
26363 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
26364 parameter. Do arithmetic in the original type.
26365 (update_accumulator_with_ops): Likewise.
26366 (adjust_accumulator_values): Adjust.
26367
26368 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26369
26370 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
26371 (QI to BLKmode splitter): New splitter.
26372
26373 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
26374
26375 * config/i386/i386.c (initial_ix86_tune_features): Turn on
26376 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
26377
26378 2010-02-22 Richard Guenther <rguenther@suse.de>
26379
26380 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
26381
26382 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
26383
26384 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
26385 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
26386 ($(T)crti.o, $(T)crtn.o): Remove rules.
26387
26388 2010-02-21 Tobias Burnus <burnus@net-b.de>
26389
26390 PR fortran/35259
26391 * doc/invoke.texi (-fassociative-math): Document that this
26392 option is automatically enabled for Fortran.
26393
26394 2010-02-20 David S. Miller <davem@davemloft.net>
26395
26396 * configure.ac: Test if linker and assembler properly support
26397 GOTDATA_OP relocations.
26398 * configure: Rebuild.
26399 * config.in: Likewise.
26400 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
26401 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
26402 (movsi_high_pic): Likewise.
26403 (movdi_lo_sum_pic): Likewise.
26404 (movdi_high_pic): Likewise.
26405 (movsi_pic_gotdata_op): New pattern.
26406 (movdi_pic_gotdata_op): Likewise.
26407 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
26408 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
26409
26410 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
26411
26412 PR target/43067
26413 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
26414 attribute to ssemul.
26415 (xop_mulv2div2di3_high): Ditto.
26416
26417 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
26418
26419 PR c++/35669
26420 * c.opt (Wconversion-null): New option.
26421 * doc/invoke.texi (Wconversion-null): Document.
26422
26423 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
26424
26425 * common.opt (Wlarger-than-): Add Undocumented.
26426
26427 2010-02-19 Mike Stump <mikestump@comcast.net>
26428
26429 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
26430
26431 2010-02-19 Jason Merrill <jason@redhat.com>
26432
26433 PR target/40332
26434 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
26435 * configure: Likewise.
26436
26437 2010-02-20 Alan Modra <amodra@gmail.com>
26438
26439 PR middle-end/42344
26440 * cgraph.h (cgraph_make_decl_local): Declare.
26441 * cgraph.c (cgraph_make_decl_local): New function.
26442 (cgraph_make_node_local): Use it.
26443 * cgraphunit.c (cgraph_function_versioning): Likewise.
26444 * ipa.c (function_and_variable_visibility): Likewise.
26445
26446 2010-02-19 Jakub Jelinek <jakub@redhat.com>
26447
26448 PR bootstrap/43121
26449 * except.c (sjlj_emit_function_enter): Don't call
26450 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
26451 directly.
26452 * rtl.h (add_reg_br_prob_note): Remove prototype.
26453
26454 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
26455
26456 PR 41779
26457 * c-common.c (conversion_warning): Remove widening conversions
26458 before checking the conversion of integers to reals.
26459
26460 2010-02-19 Mike Stump <mikestump@comcast.net>
26461
26462 PR middle-end/43125
26463 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
26464
26465 PR objc/43061
26466 * cgraphunit.c (process_function_and_variable_attributes): Check
26467 DECL_PRESERVE_P instead of looking up attribute "used".
26468 * ipa-pure-const.c (check_decl): Likewise.
26469 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
26470 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
26471 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
26472 instead of attribute "used".
26473 * config/sol2-c.c (solaris_pragma_init): Likewise.
26474 (solaris_pragma_fini): Likewise.
26475
26476 2010-02-19 Jakub Jelinek <jakub@redhat.com>
26477
26478 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
26479 Use XCNEW instead of xcalloc.
26480 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
26481 XNEW instead of xmalloc.
26482 (get_fields): Use XNEWVEC instead of xmalloc.
26483
26484 PR debug/43084
26485 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
26486 populate vars array.
26487 (create_new_general_access): For debug stmts just reset value.
26488 (get_stmt_accesses): For accesses within debug stmts just record them
26489 using add_access_to_acc_sites instead of preventing the peeling or
26490 counting them as accesses.
26491
26492 PR middle-end/42233
26493 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
26494
26495 2010-02-19 Richard Guenther <rguenther@suse.de>
26496
26497 PR tree-optimization/42916
26498 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
26499 instructions.
26500
26501 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
26502
26503 * configure.ac: Replace all uses of changequote in macro arguments
26504 with proper quoting.
26505
26506 2010-02-19 Jakub Jelinek <jakub@redhat.com>
26507
26508 PR middle-end/42233
26509 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
26510
26511 2010-02-19 Richard Guenther <rguenther@suse.de>
26512
26513 PR tree-optimization/42944
26514 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
26515 test for aliasing with errno.
26516
26517 2010-02-19 Jakub Jelinek <jakub@redhat.com>
26518
26519 PR middle-end/42233
26520 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
26521 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
26522 * dojump.c: Include output.h.
26523 (inv): New inline function.
26524 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
26525 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
26526 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
26527 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
26528 argument, pass it down to other calls.
26529 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
26530 add REG_BR_PROB note to the conditional jump.
26531 * cfgexpand.c (add_reg_br_prob_note): Removed.
26532 (expand_gimple_cond): Don't call it, add the probability
26533 as last argument to jumpif_1/jumpifnot_1.
26534 * Makefile.in (dojump.o): Depend on output.h.
26535 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
26536 callers.
26537 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
26538 * stmt.c (do_jump_if_equal): Likewise.
26539 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
26540 * loop-unswitch.c (compare_and_jump_seq): Likewise.
26541 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
26542 Likewise.
26543 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
26544 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
26545 jumpifnot_1 callers.
26546 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
26547 callers.
26548 (store_expr): Adjust jumpifnot caller.
26549 (store_constructor): Adjust jumpif caller.
26550
26551 PR middle-end/42233
26552 * gimplify.c (gimple_boolify): For __builtin_expect call
26553 gimple_boolify also on its first argument.
26554
26555 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
26556
26557 * configure.ac (gnu-unique-object): Wrap regexps using [] in
26558 changequote block.
26559 (__stack_chk_fail): Ditto. Remove quadrigraphs.
26560 * configure: Regenerated.
26561
26562 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26563
26564 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
26565 lang_hooks.types_compatible_p instead of comptypes.
26566
26567 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
26568
26569 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
26570 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
26571 if __prefer_thumb__ is defined.
26572
26573 2010-02-18 Martin Jambor <mjambor@suse.cz>
26574
26575 PR tree-optimization/43066
26576 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
26577 array with zero-sized element type.
26578
26579 2010-02-18 Jakub Jelinek <jakub@redhat.com>
26580
26581 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
26582 rtx, allocate struct var_loc_node here and return it to the
26583 caller, and only if it is actually needed.
26584 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
26585 move it earlier and return immediately if it returns NULL.
26586
26587 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
26588
26589 * config/sparc/gas.h: New file. Restore
26590 TARGET_ASM_NAMED_SECTION to its ELF default.
26591 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
26592 check !HAVE_GNU_AS.
26593 * config/sparc/sparc.c (sparc_elf_asm_named_section):
26594 Likewise. Add ATTRIBUTE_UNUSED to prototype.
26595 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
26596 after sparc/sysv4.h.
26597
26598 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
26599
26600 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
26601
26602 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
26603
26604 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
26605 patterns from predicated pattern.
26606
26607 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
26608
26609 PR target/43103
26610 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
26611 for insn mnemonic suffix.
26612
26613 2010-02-17 Richard Guenther <rguenther@suse.de>
26614
26615 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
26616 to loop PHI nodes.
26617
26618 2010-02-17 Jakub Jelinek <jakub@redhat.com>
26619
26620 PR debug/42918
26621 * caller-save.c (save_call_clobbered_regs): If BB ends with
26622 a DEBUG_INSN, move any notes in between last real insn and the last
26623 DEBUG_INSN after the last DEBUG_INSN.
26624
26625 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
26626
26627 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
26628 Fix return type. Fix argument type. Explain meaning of return value.
26629
26630 2010-02-16 Richard Guenther <rguenther@suse.de>
26631
26632 PR tree-optimization/41043
26633 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
26634 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
26635 statements ...
26636 (vrp_visit_phi_node): ... but only for loop PHI nodes.
26637
26638 2010-02-16 Ira Rosen <irar@il.ibm.com>
26639
26640 PR tree-optimization/43074
26641 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
26642 * tree-vect-loop.c (vect_analyze_loop_operations): Add
26643 vectorizable cycles in hybrid SLP check.
26644 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
26645
26646 2010-02-16 Richard Guenther <rguenther@suse.de>
26647
26648 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
26649 (true_dependence): If memrefs_conflict_p computes must-alias
26650 trust it. Move TBAA check after offset-based disambiguation.
26651 (canon_true_dependence): Likewise.
26652
26653 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
26654
26655 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
26656 * doc/invoke.texi: Document it.
26657 * var-tracking.c: Include toplev.h and params.h.
26658 (vt_find_locations): Return bool indicating success. Compute
26659 hash sizes unconditionally. Check new parameter, report.
26660 (variable_tracking_main_1): Check vt_find_locations results and
26661 retry. Renamed from...
26662 (variable_tracking_main): ... this. New wrapper to preserve
26663 flag_var_tracking_assignments.
26664 * Makefile.in (var-tracking.o): Adjust dependencies.
26665
26666 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
26667 Jakub Jelinek <jakub@redhat.com>
26668
26669 PR target/42854
26670 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
26671 if weak_import attribute is present.
26672 * config/darwin.c (machopic_select_section): Likewise.
26673
26674 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
26675
26676 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
26677 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
26678 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
26679 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
26680
26681 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
26682 types.
26683
26684 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
26685 Fix argument types.
26686
26687 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
26688 Rewrite text to refer to the names.
26689
26690 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
26691
26692 * config/i386/i386-builtin-types.def
26693 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
26694 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
26695 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
26696 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
26697 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
26698 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
26699 IX86_BUILTIN_VPERMIL2PS256.
26700 (MULTI_ARG_4_DF2_DI_I): Defined.
26701 (MULTI_ARG_4_DF2_DI_I1): Defined.
26702 (MULTI_ARG_4_SF2_SI_I): Defined.
26703 (MULTI_ARG_4_SF2_SI_I1): Defined.
26704 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
26705 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
26706 __builtin_ia32_vpermil2ps256.
26707 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
26708 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
26709 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
26710 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
26711 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
26712 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
26713 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
26714 CODE_FOR_xop_vpermil2v8sf3.
26715 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
26716 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
26717 * config/i386/xopintrin.h (_mm_permute2_pd): New.
26718 (_mm256_permute2_pd): New.
26719 (_mm_permute2_ps): New.
26720 (_mm256_permute2_ps): New.
26721
26722 2010-02-15 Nick Clifton <nickc@redhat.com>
26723
26724 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
26725 boolean parameters. Use emit_jump_insn when emitting a pop
26726 instruction containing a return insn.
26727 (push): Use 'true' rather than '1' as second parameter to F.
26728 (h8300_expand_prologue): Likewise.
26729 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
26730 (h8300_expand_epilogue): Likewise.
26731
26732 2010-02-15 Richard Guenther <rguenther@suse.de>
26733
26734 PR middle-end/43068
26735 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
26736 if that is zero.
26737
26738 2010-02-15 Nick Clifton <nickc@redhat.com>
26739
26740 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
26741 delta.
26742
26743 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
26744
26745 * intl.c (fake_ngettext): New function.
26746 * intl.h (fake_ngettext): Declare.
26747 (ngettext): Define macro.
26748 * collect2.c (notice_translated): New function.
26749 (main): Use notice_translated and ngettext.
26750 * collect2.h (notice_translated): Declare.
26751
26752 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
26753
26754 * reorg.c (delete_computation): Comment fixes.
26755 * caller-save.c (setup_save_areas): Idem.
26756 * sel-sched-dump.c (dump_lv_set): Idem.
26757 * rtl.def: Idem.
26758
26759 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26760
26761 * config/s390/s390.c (s390_sched_init): New function.
26762 (TARGET_SCHED_INIT): Target hook defined.
26763
26764 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
26765 Jack Howarth <howarth@bromo.med.uc.edu>
26766 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
26767
26768 PR target/42982
26769 Partial revert of unintended change in fix for PR41605.
26770 * config/darwin.h: Fix typo.
26771 * config/darwin9.h: Same.
26772
26773 2010-02-11 Jakub Jelinek <jakub@redhat.com>
26774
26775 * c-pch.c (pch_init): Clear v.
26776
26777 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
26778
26779 PR middle-end/42930
26780 * graphite-scop-detection.c (graphite_can_represent_scev): Call
26781 graphite_can_represent_init for MULT_EXPR.
26782
26783 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
26784
26785 PR middle-end/42914
26786 PR middle-end/42530
26787 * graphite-sese-to-poly.c (remove_phi): New.
26788 (translate_scalar_reduction_to_array): Call remove_phi.
26789
26790 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
26791
26792 PR middle-end/42771
26793 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
26794 * graphite-clast-to-gimple.h (gloog): Update declaration.
26795 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
26796 * graphite-poly.h (struct poly_bb): Add missing comments.
26797 (struct scop): Add poly_scop_p field.
26798 (POLY_SCOP_P): New.
26799 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
26800 * graphite.c (graphite_transform_loops): Build the polyhedral
26801 representation for each scop before code generation.
26802 * sese.c (rename_variables_in_operand): Removed.
26803 (rename_variables_in_expr): Return the renamed expression.
26804 (rename_sese_parameters): New.
26805 * sese.h (rename_sese_parameters): Declared.
26806
26807 2010-02-11 Richard Guenther <rguenther@suse.de>
26808
26809 PR tree-optimization/42998
26810 * tree-ssa-pre.c (create_expression_by_pieces): Treat
26811 POINTER_PLUS_EXPR properly.
26812
26813 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
26814 Changpeng Fang <changpeng.fang@amd.com>
26815
26816 PR middle-end/40886
26817 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
26818 the cost of an IV candidate when the IV is used in a test against zero.
26819
26820 * gcc.dg/tree-ssa/ivopts-3.c: New.
26821
26822 2010-02-11 Richard Guenther <rguenther@suse.de>
26823
26824 PR lto/41664
26825 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
26826 pointer-vs-decl case by swapping refs. Handle some cases
26827 of pointer-vs-decl disambiguations more conservatively.
26828 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
26829 to false after expanding.
26830
26831 2010-02-11 Richard Guenther <rguenther@suse.de>
26832
26833 PR driver/43021
26834 * gcc.c (process_command): Handle LTO file@offset case more
26835 appropriately.
26836
26837 2010-02-11 Jakub Jelinek <jakub@redhat.com>
26838
26839 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
26840 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
26841 of DEBUG_INSNs.
26842 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
26843
26844 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
26845 if MEM's mode size isn't DWARF2_ADDR_SIZE.
26846 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
26847 Optimize eq/ne comparisons when both arguments are known to be
26848 zero-extended.
26849 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
26850 Don't mask operands unnecessarily if they are known to be already
26851 zero-extended.
26852
26853 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
26854
26855 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
26856 instead of loop.
26857
26858 2010-02-10 Richard Guenther <rguenther@suse.de>
26859
26860 PR tree-optimization/43017
26861 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
26862 for wrapping signed arithmetic.
26863
26864 2010-02-10 Jakub Jelinek <jakub@redhat.com>
26865
26866 PR debug/43010
26867 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
26868 if no debug info should be emitted for it.
26869
26870 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
26871
26872 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
26873 note when flag_exceptions is set.
26874
26875 2010-02-10 Duncan Sands <baldrick@free.fr>
26876
26877 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
26878
26879 2010-02-10 Richard Guenther <rguenther@suse.de>
26880
26881 PR c/43007
26882 * tree.c (get_unwidened): Handle constants.
26883 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
26884
26885 2010-02-10 Martin Jambor <mjambor@suse.cz>
26886
26887 PR lto/42985
26888 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
26889 check for variable argument counts independently.
26890
26891 2010-02-10 Christian Bruel <christian.bruel@st.com>
26892
26893 PR target/42841
26894 * config/sh/sh.c (find_barrier): Increase length for non delayed
26895 conditional branches.
26896
26897 2010-02-10 Christian Bruel <christian.bruel@st.com>
26898
26899 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
26900
26901 2010-02-10 Jakub Jelinek <jakub@redhat.com>
26902
26903 * builtins.c (set_builtin_user_assembler_name): Also handle
26904 ffs if int is smaller than word.
26905
26906 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
26907
26908 PR middle-end/42973
26909 * ira-conflicts.c (get_dup): Remove.
26910 (process_reg_shuffles): Add new parameter. Use it as an
26911 additional guard for copy generation.
26912 (add_insn_allocno_copies): Rewrite.
26913
26914 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
26915
26916 * common.opt (fsched2-use-traces): Preserved for backward
26917 compatibility.
26918 * doc/invoke.texi: Remove the documentation about option
26919 -fsched2-use-traces.
26920 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
26921 flag_sched2_use_traces.
26922 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
26923 the backward compatibility flag section.
26924
26925 2010-02-09 Richard Guenther <rguenther@suse.de>
26926
26927 PR tree-optimization/43008
26928 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
26929 make HEAP variables initialized from global memory if they
26930 are not known builtin functions.
26931 (find_func_aliases): Adjust.
26932
26933 2010-02-09 Richard Guenther <rguenther@suse.de>
26934
26935 PR tree-optimization/43000
26936 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
26937 arithmetic manually.
26938
26939 2010-02-08 Jakub Jelinek <jakub@redhat.com>
26940
26941 PR tree-optimization/42931
26942 * tree-loop-linear.c (try_interchange_loops): Don't call
26943 double_int_mul if estimated_loop_iterations failed.
26944
26945 2010-02-08 Martin Jambor <mjambor@suse.cz>
26946
26947 PR middle-end/42898
26948 * tree-sra.c (build_accesses_from_assign): Do not mark in
26949 should_scalarize_away_bitmap if stmt has volatile ops.
26950 (sra_modify_assign): Do not process assigns piecemeal if if stmt
26951 has volatile ops.
26952
26953 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
26954
26955 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
26956
26957 2010-02-07 Adam Nemet <adambnmet@gmail.com>
26958
26959 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
26960 before the pattern.
26961
26962 2010-02-07 Andrew Pinski <pinskia@gmail.com>
26963
26964 PR middle-end/42946
26965 * df-core.c (df_finish_pass): Change type of saved_flags to int.
26966
26967 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
26968
26969 PR middle-end/42988
26970 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
26971 to unknown_dependence.
26972 (graphite_legal_transform_dr): Handle the unknown_dependence.
26973 (graphite_carried_dependence_level_k): Same.
26974
26975 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
26976
26977 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
26978
26979 2010-02-07 Richard Guenther <rguenther@suse.de>
26980
26981 PR middle-end/42991
26982 * expr.c (get_inner_reference): Always initialize *pbitsize.
26983
26984 2010-02-07 Richard Guenther <rguenther@suse.de>
26985
26986 PR middle-end/42956
26987 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
26988 new ARRAY_REFs on variable size element or minimal index arrays.
26989 Complete.
26990 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
26991 gimple_fold_indirect_ref.
26992
26993 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
26994
26995 PR target/42957
26996 * arm.c (arm_override_options): Just return if the user has specified
26997 an invalid fpu name.
26998
26999 2010-02-03 Jason Merrill <jason@redhat.com>
27000
27001 PR c++/42870
27002 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
27003 i386_pe_maybe_record_exported_symbol.
27004
27005 2010-02-05 Steve Ellcey <sje@cup.hp.com>
27006
27007 PR target/42924
27008 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
27009 (pa_delegitimize_address): New function.
27010
27011 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
27012
27013 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
27014 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
27015
27016 2010-02-05 Richard Guenther <rguenther@suse.de>
27017
27018 PR lto/42762
27019 * lto-streamer-in.c (get_resolution): Deal with references
27020 to undefined functions.
27021
27022 2010-02-05 Richard Guenther <rguenther@suse.de>
27023
27024 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
27025 (fold_const_aggregate_ref): Likewise.
27026 (ccp_fold_stmt): Substitute loads.
27027 (maybe_fold_reference): Verify types before substituting.
27028 Unshare properly.
27029 (fold_gimple_assign): Unshare properly.
27030 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
27031
27032 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
27033
27034 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
27035 for rs6000_gen_cell_microcode.
27036
27037 2010-02-04 Richard Guenther <rguenther@suse.de>
27038
27039 PR rtl-optimization/42952
27040 * dse.c (const_or_frame_p): Remove MEM handling.
27041
27042 2010-02-04 Nick Clifton <nickc@redhat.com>
27043
27044 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
27045 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
27046 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
27047 (mn10300_asm_output_mi_thunk): New function.
27048 (mn10300_can_output_mu_thunk): New function.
27049 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
27050 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
27051 (FUNCTION_ARG): Delete incorrect comment.
27052
27053 2010-02-03 Jason Merrill <jason@redhat.com>
27054
27055 PR c++/40138
27056 * fold-const.c (operand_equal_p): Handle erroneous types.
27057
27058 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27059
27060 * config/h8300/h8300.md (can_delay): Fix attibute condition.
27061
27062 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
27063
27064 PR rtl-optimization/42941
27065 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
27066 of xmalloc.
27067
27068 2010-02-03 Jason Merrill <jason@redhat.com>
27069
27070 PR c++/35652
27071 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
27072
27073 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
27074
27075 PR debug/42896
27076 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
27077 (cselib_reset_table): Renamed from...
27078 (cselib_reset_table_with_next_value): ... this.
27079 (cselib_get_next_uid): Renamed from...
27080 (cselib_get_next_unknown_value): ... this.
27081 * cselib.c (next_uid): Renamed from...
27082 (next_unknown_value): ... this.
27083 (cselib_clear_table): Adjust.
27084 (cselib_reset_table): Adjust. Renamed from...
27085 (cselib_reset_table_with_next_value): ... this.
27086 (cselib_get_next_uid): Adjust. Renamed from...
27087 (cselib_get_next_unknown_value): ... this.
27088 (get_value_hash): Use hash.
27089 (cselib_hash_rtx): Likewise.
27090 (new_cselib_val): Adjust. Set and dump uid.
27091 (cselib_lookup_mem): Pass next_uid as hash.
27092 (cselib_subst_to_values): Likewise.
27093 (cselib_log_lookup): Dump uid.
27094 (cselib_lookup): Pass next_uid as hash. Adjust.
27095 (cselib_process_insn): Adjust.
27096 (cselib_init): Initialize next_uid.
27097 (cselib_finish): Adjust.
27098 (dump_cselib_table): Likewise.
27099 * dse.c (canon_address): Dump value uid.
27100 * print-rtl.c (print_rtx): Print value uid.
27101 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
27102 (dvuid): New type.
27103 (dv_uid): New function, sort of renamed from...
27104 (dv_htab_hash): ... this, reimplemented in terms of it and...
27105 (dv_uid2hash): ... this. New.
27106 (variable_htab_eq): Drop excess assertions.
27107 (tie_break_pointers): Removed.
27108 (canon_value_cmp): Compare uids.
27109 (variable_post_merge_New_vals): Print uids.
27110 (vt_add_function_parameters): Adjust.
27111 (vt_initialize): Reset table. Adjust.
27112
27113 2010-02-03 Richard Guenther <rguenther@suse.de>
27114
27115 PR tree-optimization/42944
27116 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
27117 (call_may_clobber_ref_p_1): Likewise. Properly handle
27118 malloc and calloc clobbering errno.
27119
27120 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
27121
27122 * doc/invoke.texi: Fix name of sched1 dump.
27123
27124 * opts.c (decode_options): Set flag_tree_switch_conversion
27125 only conditionally on optimize >= 2.
27126
27127 * gcse.c: Assorted comment fixes in pass description.
27128
27129 2010-02-03 Anthony Green <green@moxielogic.com>
27130
27131 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
27132 nop padding in order to maintain alignment of storage location of
27133 target function address.
27134 (moxie_trampoline_init): Store target function address at newly
27135 aligned location.
27136 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
27137 to 32.
27138 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
27139
27140 2010-02-03 Richard Guenther <rguenther@suse.de>
27141
27142 PR middle-end/42927
27143 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
27144
27145 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27146
27147 * config.gcc: Reenable check for obsolete targets.
27148 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
27149 mips-sgi-irix6.[0-4]*.
27150
27151 2010-02-02 Nick Clifton <nickc@redhat.com>
27152
27153 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
27154 constant size of 4 as being the same as 0.
27155 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
27156 can take values in the range 0..4.
27157
27158 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
27159
27160 PR java/41991
27161 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
27162 as _darwin10_Unwind_FindEnclosingFunction().
27163 * libgcc-libsystem.ver: New.
27164
27165 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
27166
27167 PR target/41399
27168 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
27169 implicitly set registers.
27170
27171 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
27172
27173 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
27174 (arm_override_options): Allow automatic selection of the thread
27175 pointer register if thumb2.
27176 (legitimize_pic_address): Improve code sequences for Thumb2.
27177 (arm_call_tls_get_addr): Likewise.
27178 (legitimize_tls_address): Likewise.
27179 * arm.md (pic_load_addr_arm): Delete. Replace with ...
27180 (pic_load_addr_32bit): ... this. New named pattern.
27181 * thumb2.md (pic_load_addr_thumb2): Delete.
27182 (pic_load_dot_plus_four): Delete.
27183 (tls_load_dot_plus_four): New named pattern.
27184
27185 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27186
27187 PR libgomp/29986
27188 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
27189 Document fix for TLS bug.
27190
27191 2010-01-31 Richard Guenther <rguenther@suse.de>
27192
27193 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
27194 conservatively correct.
27195
27196 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27197
27198 PR target/42850
27199 Revert:
27200 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27201
27202 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
27203
27204 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27205
27206 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
27207
27208 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
27209
27210 * config.gcc: Adjust order of makefile fragments for mingw targets.
27211
27212 2010-01-31 Richard Guenther <rguenther@suse.de>
27213
27214 PR middle-end/42898
27215 * gimplify.c (gimplify_init_constructor): For volatile LHS
27216 initialize a temporary.
27217
27218 2010-01-31 Matthias Klose <doko@ubuntu.com>
27219
27220 * configure.ac: Fix __stack_chk_fail check for cross builds configured
27221 --with-headers
27222 * configure: Regenerate.
27223
27224 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
27225
27226 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
27227 the same alias set and their sizes different constantness.
27228 (aliasing_component_refs_p): Revert 2009-10-24 change.
27229
27230 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27231
27232 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
27233 unused.
27234
27235 2010-01-29 Richard Guenther <rguenther@suse.de>
27236
27237 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
27238 Assert we successfully updated the call.
27239
27240 2010-01-29 Jakub Jelinek <jakub@redhat.com>
27241
27242 PR rtl-optimization/42889
27243 * df.h (df_set_bb_dirty_nonlr): New prototype.
27244 * df-core.c (df_set_bb_dirty_nonlr): New function.
27245 * df-scan.c (df_insn_rescan): Call it instead of
27246 df_set_bb_dirty for DEBUG_INSNs.
27247
27248 2010-01-29 Richard Guenther <rguenther@suse.de>
27249
27250 PR middle-end/37448
27251 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
27252 quadratic behavior in most cases.
27253
27254 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
27255
27256 PR target/42891
27257 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
27258 in the call to gen_x86_movsicc_0_m1.
27259
27260 2010-01-28 Richard Guenther <rguenther@suse.de>
27261
27262 PR tree-optimization/42871
27263 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
27264
27265 2010-01-28 Richard Guenther <rguenther@suse.de>
27266
27267 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
27268 into call arguments.
27269
27270 2010-01-28 Richard Guenther <rguenther@suse.de>
27271
27272 PR middle-end/42883
27273 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
27274 the forwarder if the destination is an EH landing pad.
27275
27276 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
27277
27278 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
27279 block list passed to gimple_duplicate_sese_tail.
27280 (parallelize_loops): Avoid parallelization when the function
27281 has_nonlocal_label.
27282 Avoid parallelization when the preheader is IRREDUCIBLE.
27283 Try to optimize when estimated_loop_iterations_int is unresolved.
27284 Add the loop's location to the dump file.
27285 * tree-cfg.c (add_phi_args_after_redirect): Remove.
27286 (gimple_duplicate_sese_tail): Remove the check for the latch.
27287 Redirect nexits to the exit block.
27288 Remove handling of the incoming edges to the latch.
27289 Redirect the backedge from the copied latch to the exit bb.
27290
27291 2010-01-28 Michael Matz <matz@suse.de>
27292
27293 PR target/42881
27294 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
27295 Wrap force_reg into a sequence, emit it before user.
27296
27297 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
27298
27299 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
27300 (arm_rev): New.
27301 (arm_legacy_rev): Likewise.
27302 (thumb_legacy_rev): Likewise.
27303
27304 2010-01-27 Jakub Jelinek <jakub@redhat.com>
27305
27306 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
27307 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
27308 on MEM's address failed, try avoid_constant_pool_reference and
27309 recurse if it returned something different.
27310 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
27311 address, try avoid_constant_pool_reference and recurse if it
27312 returned something different.
27313 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
27314 address and avoid_constant_pool_reference returned something
27315 different, don't set have_address.
27316
27317 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
27318
27319 PR debug/42861
27320 * var-tracking.c (val_store): Add modified argument, obey it.
27321 Adjust callers.
27322 (count_uses): Move down logging of main.
27323 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
27324 don't need resolution.
27325 (emit_notes_in_bb): Likewise.
27326
27327 2010-01-27 Richard Guenther <rguenther@suse.de>
27328
27329 PR middle-end/42878
27330 * tree-inline.c (remap_decl): Delay remapping of SSA name
27331 default definitions until we need them.
27332
27333 2010-01-27 Jakub Jelinek <jakub@redhat.com>
27334
27335 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
27336 (rs6000_delegitimize_address): New function.
27337
27338 * config/s390/s390.c (s390_delegitimize_address): Call
27339 delegitimize_mem_from_attrs.
27340
27341 PR middle-end/42874
27342 * tree-inline.c (cannot_copy_type_1): Removed.
27343 (copy_forbidden): Don't forbid copying of functions containing
27344 records/unions with variable length fields.
27345
27346 2010-01-27 Christian Bruel <christian.bruel@st.com>
27347
27348 Revert:
27349 PR target/42841
27350 * config/sh/sh.c (find_barrier): Increase length for non delayed
27351 conditional branches.
27352
27353 2010-01-27 Matthias Klose <doko@ubuntu.com>
27354
27355 * configure.ac (gnu-unique-object): Fix ldd version check.
27356 * configure: Regenerate.
27357
27358 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27359
27360 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
27361 HAVE_GNU_AS value.
27362 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
27363 Test for HAVE_GNU_AS value.
27364
27365 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27366
27367 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
27368 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
27369 INT64_TYPE): Define.
27370 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
27371 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
27372 INT_LEAST64_TYPE): Define.
27373 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
27374 UINT_LEAST64_TYPE): Define.
27375 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
27376 INT_FAST64_TYPE): Define.
27377 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
27378 UINT_FAST64_TYPE): Define.
27379 (INTMAX_TYPE, UINTMAX_TYPE): Define.
27380 (INTPTR_TYPE, UINTPTR_TYPE): Define.
27381 (SIG_ATOMIC_TYPE): Define.
27382
27383 2010-01-26 Richard Guenther <rguenther@suse.de>
27384
27385 * df-scan.c (df_scan_set_bb_info): Remove assert.
27386 (df_insn_rescan_debug_internal): Merge asserts.
27387 (df_install_ref): Likewise.
27388 (df_mark_reg): Use bitmap_set_range.
27389 (df_hard_reg_used_p): Remove assert.
27390 (df_hard_reg_used_count): Likewise.
27391
27392 2010-01-26 Richard Guenther <rguenther@suse.de>
27393
27394 PR rtl-optimization/42685
27395 * web.c (web_main): Ignore DEBUG_INSNs.
27396
27397 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
27398
27399 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
27400
27401 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
27402 Fix types of fndecl and arglist parameters.
27403
27404 2010-01-26 Richard Guenther <rguenther@suse.de>
27405
27406 PR middle-end/42806
27407 * tree-eh.c (unsplit_eh): Skip debug insns.
27408
27409 2010-01-26 Richard Guenther <rguenther@suse.de>
27410
27411 PR tree-optimization/42250
27412 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
27413
27414 2010-01-26 Jakub Jelinek <jakub@redhat.com>
27415
27416 PR fortran/42866
27417 * omp-low.c (expand_omp_sections): Only use single_pred if
27418 l2_bb is single_pred_p.
27419
27420 2010-01-25 Christian Bruel <christian.bruel@st.com>
27421
27422 PR target/42841
27423 * config/sh/sh.c (find_barrier): Increase length for non delayed
27424 conditional branches.
27425 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
27426
27427 2010-01-24 David S. Miller <davem@davemloft.net>
27428
27429 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
27430 define if not using GAS.
27431 * config/sparc/sparc.c (sparc_elf_asm_named_section):
27432 Likewise. Delete SECTION_MERGE code, which is only applicable
27433 when using GAS.
27434
27435 2010-01-24 Mark Mitchell <mark@codesourcery.com>
27436
27437 PR c++/42748
27438 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
27439 mangling of va_list in system headers.
27440
27441 2010-01-23 Toon Moene <toon@moene.org>
27442
27443 * tree-predcom.c (combine_chains): Return NULL, not false.
27444
27445 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
27446
27447 * tree-loop-distribution.c (distribute_loop): Fix declaration and
27448 initialization of variable res to agree with return type.
27449
27450 2010-01-22 Steve Ellcey <sje@cup.hp.com>
27451
27452 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
27453 * tree-sra.c: Add include of expr.h.
27454
27455 2010-01-22 Jakub Jelinek <jakub@redhat.com>
27456
27457 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
27458 insert the debug stmt on the single non-EH edge from the stmt.
27459
27460 2010-01-22 Richard Henderson <rth@redhat.com>
27461
27462 PR tree-opt/42833
27463 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
27464 the RHS until after generate_subtree_copies has insertted its
27465 code before the current statement.
27466
27467 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
27468
27469 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
27470
27471 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
27472
27473 2010-01-21 Martin Jambor <mjambor@suse.cz>
27474
27475 PR tree-optimization/42585
27476 * tree-sra.c (struct access): New field grp_total_scalarization.
27477 (dump_access): Dump the new field.
27478 (should_scalarize_away_bitmap): New variable.
27479 (cannot_scalarize_away_bitmap): Likewise.
27480 (sra_initialize): Allocate new bitmaps.
27481 (sra_deinitialize): Free new bitmaps.
27482 (create_access_1): New function.
27483 (create_access): Parts moved to create_access_1.
27484 (type_consists_of_records_p): New function.
27485 (completely_scalarize_record): Likewise.
27486 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
27487 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
27488 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
27489 access.
27490 (analyze_all_variable_accesses): Completely scalarize small eligible
27491 records.
27492
27493 2010-01-21 Martin Jambor <mjambor@suse.cz>
27494
27495 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
27496
27497 2010-01-21 Andrew Haley <aph@redhat.com>
27498
27499 * gcc.c (process_command): Move lang_specific_driver before
27500 setting cc_libexec_prefix.
27501
27502 2010-01-21 Richard Guenther <rguenther@suse.de>
27503
27504 PR middle-end/19988
27505 * fold-const.c (negate_expr_p): Pretend only negative
27506 real constants are easily negatable.
27507
27508 2010-01-20 Janis Johnson <janis187@us.ibm.com>
27509 Jason Merrill <jason@redhat.com>
27510
27511 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
27512 (TYPE_TRANSPARENT_AGGR): this, for union and record.
27513 * calls.c (initialize argument_information): Handle it.
27514 * c-common.c (handle_transparent_union_attribute): Use new name.
27515 * c-decl.c (finish_struct): Ditto.
27516 * c-typeck.c (type_lists_compatible_p): Ditto.
27517 (convert_for_assignment): Use new name and also handle record.
27518 * function.c (aggregate_value_p): Handle it.
27519 (pass_by_reference): Ditto.
27520 (assign_parm_data_types): Ditto.
27521 * print-tree.c (print_node): Ditto.
27522 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
27523 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
27524 * tree.c (first_field): New fn.
27525
27526 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
27527
27528 PR target/42818
27529 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
27530 even when linking statically, for now.
27531
27532 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
27533
27534 PR debug/42715
27535 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
27536 without a cselib val.
27537 (count_uses): Accept MO_VAL_SET with no val on stores.
27538 (add_stores): Likewise.
27539
27540 2010-01-20 Jakub Jelinek <jakub@redhat.com>
27541
27542 * var-tracking.c (check_value_val): Add a compile time assertion.
27543 (dv_is_decl_p): Simplify.
27544 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
27545 gcc_assert if ENABLE_CHECKING.
27546
27547 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
27548
27549 PR debug/42782
27550 * var-tracking.c: Include tree-flow.h.
27551 (mem_dies_at_call): New.
27552 (dataflow_set_preserve_mem_locs): Use it.
27553 (dataflow_set_remove_mem_locs): Likewise.
27554 (dump_var): Renamed from dump_variable. Adjust all callers.
27555 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
27556 * Makefile.in (var-tracking.o): Adjust deps.
27557
27558 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
27559
27560 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
27561
27562 2010-01-20 Richard Guenther <rguenther@suse.de>
27563
27564 PR tree-optimization/42717
27565 * tree-ssa-dce.c (get_live_post_dom): Remove.
27566 (forward_edge_to_pdom): Take an arbitrary edge to copy
27567 degenerate PHI args from.
27568 (remove_dead_stmt): Use the first post-dominator even if it
27569 does not contain live statements as redirection destination.
27570
27571 2010-01-20 Richard Guenther <rguenther@suse.de>
27572
27573 * tree-inline.c (estimate_num_insns): Handle EH builtins.
27574
27575 2010-01-20 Jakub Jelinek <jakub@redhat.com>
27576
27577 * sel-sched.c (create_speculation_check): Remove set but not used
27578 variable twin.
27579 (try_transformation_cache): Remove set but not used variable ds.
27580 (calculate_privileged_insns): Remove set but not used variables
27581 cur_insn and min_spec_insn.
27582 (find_best_expr): Remove set but not used variable avail_n.
27583 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
27584 variable e.
27585 * cgraphunit.c (assemble_thunk): Remove set but not used variable
27586 false_label.
27587 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
27588 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
27589 new_scop_exit_edge.
27590
27591 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
27592
27593 PR bootstrap/42786
27594 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
27595 cpu types. Add support for *-sse3 cpu types.
27596 (x86_64-*-*): Ditto.
27597
27598 2010-01-20 Jakub Jelinek <jakub@redhat.com>
27599
27600 PR middle-end/42803
27601 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
27602 argument, call initializer_constant_valid_p_1 instead of
27603 initializer_constant_valid_p, pass CACHE to it, return NULL
27604 immediately if first call returns NULL.
27605 (initializer_constant_valid_p_1): New function.
27606 (initializer_constant_valid_p): Use it.
27607
27608 2010-01-20 Thomas Quinot <quinot@adacore.com>
27609
27610 * tree.def (PLACEHOLDER_EXPR): Fix comment.
27611
27612 2010-01-20 Jakub Jelinek <jakub@redhat.com>
27613
27614 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
27615 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
27616 (loc_list_from_tree): Don't handle unsigned division. Handle
27617 signed modulo using DW_OP_{over,over,div,mul,minus}.
27618 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
27619 modulo instead of signed.
27620
27621 2010-01-20 DJ Delorie <dj@redhat.com>
27622
27623 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
27624 (Fpa): Pass it
27625 (h8300_emit_stack_adjustment): Propogate it.
27626 (push): Pass it.
27627 (h8300_expand_prologue): Likewise.
27628 (h8300_expand_epilogue): Likewise.
27629
27630 2010-01-19 Michael Matz <matz@suse.de>
27631
27632 PR tree-optimization/41783
27633 * tree-data-ref.c (toplevel): Include flags.h.
27634 (dump_data_dependence_relation): Also dump the inputs if the
27635 result will be unknown.
27636 (split_constant_offset_1): Look through some conversions.
27637 * tree-predcom.c (determine_roots_comp): Restart a new chain if
27638 the offset from last element is too large.
27639 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
27640 (reassociate_to_the_same_stmt): Handle vector registers.
27641 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
27642 (e.g. conversions).
27643 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
27644 wide_prolog_niters argument, emit widening instructions.
27645 (vect_do_peeling_for_alignment): Adjust caller, use widened
27646 variant of the iteration cound.
27647 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
27648
27649 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27650
27651 PR target/38697
27652 * config/arm/neon-testgen.m (emit_automatics): New parameter
27653 features. Adjust for Fixed_return_reg feature.
27654 (test_intrinsic): Call emit_automatics with new feature.
27655 * config/arm/neon.ml: Update copyright years.
27656 (features): New Fixed_return_reg feature.
27657 (ops): Update feature for Vget_low.
27658
27659 2010-01-19 Jakub Jelinek <jakub@redhat.com>
27660
27661 PR tree-optimization/42719
27662 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
27663 stmt uses.
27664
27665 PR debug/42728
27666 * fwprop.c (all_uses_available_at): Return false if def_set dest
27667 is a REG that is used in def_insn.
27668
27669 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
27670
27671 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
27672
27673 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
27674 Add argument names.
27675
27676 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
27677
27678 * target.h (struct gcc_target) <secondary_reload>: Change type
27679 of last argument to secondary_reload_info *.
27680
27681 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
27682
27683 PR target/42774
27684 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
27685 memory references with unaligned offsets. Remove CQImode handling.
27686 (unaligned_memory_operand): Return 1 for memory references with
27687 unaligned offsets. Remove CQImode handling.
27688
27689 2010-01-18 Richard Guenther <rguenther@suse.de>
27690
27691 PR middle-end/39954
27692 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
27693 builtin calls.
27694
27695 2010-01-18 Richard Guenther <rguenther@suse.de>
27696
27697 PR tree-optimization/42781
27698 * tree-ssa-structalias.c (find_what_var_points_to): Skip
27699 restrict processing only if the original variable was artificial.
27700
27701 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
27702
27703 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
27704 find number of popped argument bytes.
27705
27706 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
27707 Fix the text that describes the return value for invalid insns.
27708
27709 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
27710
27711 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
27712 Clarify what 'cost of the -dependence' is. Fix quoting.
27713
27714 * toplev.c (default_get_pch_validity): Rename argument to "sz".
27715 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
27716
27717 2010-01-17 Jakub Jelinek <jakub@redhat.com>
27718
27719 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
27720 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
27721
27722 2010-01-17 Richard Guenther <rguenther@suse.de>
27723
27724 PR middle-end/42248
27725 * function.c (split_complex_args): Take a VEC to modify.
27726 (assign_parms_augmented_arg_list): Build a VEC instead of
27727 a chain of PARM_DECLs.
27728 (assign_parms_unsplit_complex): Take a VEC of arguments.
27729 Do not fixup unmodified parms.
27730 (assign_parms): Deal with the VEC.
27731 (gimplify_parameters): Likewise.
27732
27733 2010-01-17 Richard Guenther <rguenther@suse.de>
27734
27735 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
27736 node existence check.
27737 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
27738 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
27739 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
27740 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
27741 (gimple_execute_on_growing_pred): Likewise.
27742
27743 2010-01-17 Richard Guenther <rguenther@suse.de>
27744
27745 PR tree-optimization/42773
27746 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
27747 (compute_antic_aux): Likewise.
27748 (compute_partial_antic_aux): Likewise.
27749
27750 2010-01-17 Jie Zhang <jie.zhang@analog.com>
27751
27752 PR debug/42767
27753 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
27754 and US_TRUNCATE.
27755
27756 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
27757
27758 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
27759 appearance.
27760
27761 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
27762 Fix markup for strict argument.
27763
27764 (TARGET_SCHED_REORDER2): Fix argument types.
27765
27766 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
27767 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
27768
27769 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
27770 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
27771
27772 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
27773 Add argument name.
27774
27775 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
27776 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
27777 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
27778 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
27779 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
27780
27781 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
27782
27783 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
27784
27785 (TARGET_ASM_RELOC_RW_MASK): Add return type.
27786 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
27787
27788 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
27789
27790 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
27791 Use prototype.
27792
27793 (TARGET_ASM_NAMED_SECTION): Fix argument list.
27794
27795 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
27796 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
27797
27798 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
27799
27800 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
27801
27802 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
27803 referring to it. Fix language.
27804
27805 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
27806
27807 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
27808
27809 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
27810
27811 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
27812
27813 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
27814 '@var{stream}. Remove stray 'and'.
27815
27816 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
27817
27818 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
27819
27820 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
27821
27822 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
27823 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
27824
27825 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
27826 Fix description of return value.
27827 Rename argument "sz" to "len."
27828
27829 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
27830 Clarify meaning of 'true' return value.
27831
27832 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
27833
27834 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
27835 rep_mode versus mode_rep.
27836
27837 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
27838
27839 (TARGET_BUILTIN_DECL): Fix name.
27840
27841 (TARGET_COMMUTATIVE_P): Fix type of first argument.
27842
27843 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
27844
27845 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
27846
27847 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
27848
27849 (TARGET_RELAXED_ORDERING): Use @deftypevr.
27850
27851 (TARGET_GET_DRAP_RTX): Note that this is a hook.
27852 Clarify language.
27853
27854 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
27855 Rename argument tm_fn to md_fn.
27856
27857 (TARGET_OPTION_PRINT): Fix argument list.
27858
27859 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
27860
27861 PR target/42664
27862 * config/i386/i386.c (ix86_fixup_binary_operands):
27863 Revert FMA4 fixup of operands.
27864
27865 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27866
27867 PR gcc/42525
27868 * Makefile.in (write_entries_to_file, install-plugin):
27869 Use \012 instead of \n with tr.
27870
27871 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
27872
27873 * configure.ac (HAVE_AS_REF): New C macro.
27874 * configure: Regenerate.
27875 * config.in: Likewise.
27876 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
27877 if HAVE_AS_REF.
27878 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
27879 if HAVE_AS_REF.
27880
27881 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
27882
27883 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
27884
27885 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
27886
27887 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
27888
27889 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
27890
27891 (TARGET_IN_SMALL_DATA_P): Fix argument type.
27892
27893 (TARGET_BINDS_LOCAL_P): Fix argument type.
27894
27895 (TARGET_ASM_FILE_END): Use prototype.
27896
27897 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
27898
27899 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
27900
27901 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
27902
27903 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
27904
27905 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
27906 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
27907
27908 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
27909 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
27910
27911 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
27912 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
27913 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
27914 (TARGET_ADDR_SPACE_CONVERT): Likewise.
27915
27916 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
27917
27918 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
27919
27920 (TARGET_INIT_BUILTINS): Use prototype.
27921
27922 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
27923 Put 'const char *' in braces. Fix parameter types.
27924 (TARGET_INVALID_CONVERSION): Fix parameter types.
27925 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
27926 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
27927
27928 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
27929 Fix argument type.
27930
27931 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
27932
27933 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
27934
27935 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
27936
27937 * doc/tm.texi (TARGET_HELP): Fix return type.
27938
27939 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
27940 in braces. Fix argument types.
27941
27942 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
27943
27944 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
27945
27946 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
27947
27948 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
27949 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
27950
27951 (TARGET_MANGLE_TYPE): Fix argument types.
27952
27953 (TARGET_IRA_COVER_CLASSES): Use prototype.
27954
27955 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
27956
27957 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
27958
27959 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
27960
27961 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
27962
27963 (TARGET_CALLEE_COPIES): Fix argument types.
27964
27965 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
27966
27967 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
27968
27969 (TARGET_FUNCTION_VALUE): Fix argument types.
27970
27971 (TARGET_RETURN_IN_MSB): Fix argument type.
27972
27973 (TARGET_RETURN_IN_MEMORY): Fix argument types.
27974
27975 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
27976
27977 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
27978
27979 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
27980 agree with return type.
27981
27982 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
27983
27984 2010-01-15 Jing Yu <jingyu@google.com>
27985
27986 PR rtl-optimization/42691
27987 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
27988 a pseudo to a constant and are merged, and adjust comments.
27989
27990 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
27991
27992 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
27993
27994 2010-01-15 Richard Guenther <rguenther@suse.de>
27995
27996 PR middle-end/42739
27997 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
27998 labels of computed or non-local gotos to the destination.
27999 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
28000 landing pad label is the first label.
28001
28002 2010-01-15 Richard Guenther <rguenther@suse.de>
28003
28004 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
28005
28006 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
28007
28008 PR target/42747
28009 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
28010 to allow generation of the xssqrtdp instruction on power7.
28011 (sqrtdf2_fpr): Ditto.
28012
28013 2010-01-14 Jakub Jelinek <jakub@redhat.com>
28014
28015 PR middle-end/42674
28016 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
28017 functions with noreturn attribute.
28018
28019 PR c++/42608
28020 * varasm.c (declare_weak): Add weak attribute to decl if it
28021 doesn't have one already.
28022 (assemble_external): Only add decls to weak_decls if they also
28023 have weak attribute.
28024
28025 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
28026
28027 * var-tracking.c (var_reg_delete): Don't delete the association
28028 between REGs and values or one-part variables if the register
28029 isn't clobbered.
28030
28031 2010-01-14 Jakub Jelinek <jakub@redhat.com>
28032
28033 PR debug/42657
28034 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
28035 because its first operand is a non-localized variable.
28036
28037 2010-01-14 Martin Jambor <mjambor@suse.cz>
28038
28039 PR tree-optimization/42706
28040 * tree-sra.c (encountered_recursive_call): New variable.
28041 (encountered_unchangable_recursive_call): Likewise.
28042 (sra_initialize): Initialize both new variables.
28043 (callsite_has_enough_arguments_p): New function.
28044 (scan_function): Call decl and flags check only for IPA-SRA, check
28045 whether there is a recursive call and whether it has enough arguments.
28046 (all_callers_have_enough_arguments_p): New function.
28047 (convert_callers): Look for recursive calls only when
28048 encountered_recursive_call is set.
28049 (ipa_early_sra): Bail out either if
28050 !all_callers_have_enough_arguments_p or
28051 encountered_unchangable_recursive_call.
28052
28053 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28054
28055 * sel-sched.c: Add 2010 to copyright years.
28056 * sel-sched-ir.c: Likewise.
28057 * sel-sched-ir.h: Likewise.
28058
28059 2010-01-14 Martin Jambor <mjambor@suse.cz>
28060
28061 PR tree-optimization/42714
28062 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
28063 constructors specially.
28064
28065 2010-01-14 Andi Kleen <ak@linux.intel.com>
28066
28067 * config/i386/drivers-i386.c (detect_caches_intel):
28068 Add l2sizekb parameter and fill in.
28069 (host_detect_local_cpu): Add l2sizekb, fill in.
28070 Add Atom small cache heuristic.
28071
28072 2010-01-14 Andi Kleen <ak@linux.intel.com>
28073
28074 * config/i386/drivers-i386.c (detect_caches_cpuid4):
28075 Add level3 parameter and fill in.
28076 (detect_caches_intel): Handle level3 cache.
28077
28078 2010-01-14 Andi Kleen <ak@linux.intel.com>
28079
28080 * config/i386/drivers-i386.c (host_detect_local_cpu):
28081 Fix core duo detection.
28082
28083 2010-01-14 Andi Kleen <ak@linux.intel.com>
28084
28085 * config/i386/drivers-i386.c (host_detect_local_cpu):
28086 Fix Atom detection.
28087
28088 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28089
28090 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
28091 (rs6000_variable_issue_1): this. Use...
28092 (rs6000_variable_issue): here. Reimplement. Print debug info.
28093
28094 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28095
28096 * sel-sched-ir.c (sel_restore_other_notes): Rename to
28097 sel_restore_notes. Update all callers. Call reemit_notes
28098 for all insns.
28099
28100 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28101
28102 PR rtl-optimization/42246
28103 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
28104 loops.
28105
28106 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28107
28108 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
28109 all successors is the same as number of successors in current region.
28110
28111 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28112
28113 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
28114 to rename is not separable. Otherwise check that its LHS is not NULL.
28115
28116 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28117
28118 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
28119
28120 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28121
28122 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
28123 available registers when failed to discover LHS register class.
28124 Fix indentation. Update comment.
28125
28126 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28127 Alexander Monakov <amonakov@ispras.ru>
28128
28129 PR rtl-optimization/42389
28130 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
28131 to can_issue_more.
28132 (advance_state_on_fence): Likewise.
28133 (sel_target_adjust_priority): Print debug output only when
28134 sched_verbose >= 4, not 2.
28135 (get_expr_cost): Do not issue all unique insns on the next cycle.
28136 (fill_insns): Initialize can_issue_more from the value saved
28137 with the fence.
28138 * sel-sched-ir.c (flist_add): New parameter issue_more.
28139 Init FENCE_ISSUE_MORE with it.
28140 (merge_fences): Likewise.
28141 (init_fences): Update call to flist_add.
28142 (add_to_fences, add_clean_fence_to_fences)
28143 (add_dirty_fence_to_fences): Likewise.
28144 (move_fence_to_fences): Update call to merge_fences.
28145 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
28146 sched groups.
28147 * sel-sched-ir.h (struct _fence): New field issue_more.
28148 (FENCE_ISSUE_MORE): New accessor macro.
28149
28150 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28151
28152 PR rtl-optimization/42388
28153 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
28154 that have no predecessors nor successors. Do not call move_bb_info
28155 for empty blocks outside of current region.
28156
28157 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28158
28159 PR rtl-optimization/42294
28160 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
28161 * sel-sched.c (move_exprs_to_boundary): Transitively add all
28162 originators' originators.
28163
28164 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28165
28166 PR rtl-optimization/39453
28167 PR rtl-optimization/42246
28168 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
28169 for pipelining_p.
28170 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
28171
28172 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28173 Alexander Monakov <amonakov@ispras.ru>
28174
28175 PR middle-end/42245
28176 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
28177 (maybe_tidy_empty_bb): ... here. Make static. Add new
28178 argument. Update all callers.
28179 (tidy_control_flow): ... and here. Recompute topological order
28180 of basic blocks in region if necessary.
28181 (sel_redirect_edge_and_branch): Change return type. Return true
28182 if topological order might have been invalidated.
28183 (purge_empty_blocks): Export and move from...
28184 * sel-sched.c (purge_empty_blocks): ... here.
28185 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
28186 (maybe_tidy_empty_bb): Delete prototype.
28187 (purge_empty_blocks): Declare.
28188
28189 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28190
28191 PR rtl-optimization/42249
28192 * sel-sched.c (try_replace_dest_reg): When chosen register
28193 and original register is the same, do not bail out early, but
28194 still check all original insns for validity of replacing destination
28195 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
28196 in this case.
28197
28198 2010-01-14 Jakub Jelinek <jakub@redhat.com>
28199
28200 PR c/42721
28201 Port from no-undefined-overflow branch:
28202 2009-03-09 Richard Guenther <rguenther@suse.de>
28203
28204 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
28205
28206 2010-01-14 Richard Guenther <rguenther@suse.de>
28207
28208 PR lto/42665
28209 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
28210
28211 2010-01-14 Ira Rosen <irar@il.ibm.com>
28212
28213 PR tree-optimization/42709
28214 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
28215 as scalar type in creation of constant vector operand.
28216
28217 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28218
28219 PR testsuite/42414
28220 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
28221 (check-parallel-%): Match `testsuite' directory component only
28222 at the end.
28223
28224 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
28225
28226 PR translation/39521
28227 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
28228 strings with _().
28229
28230 2010-01-13 Richard Guenther <rguenther@suse.de>
28231
28232 PR tree-optimization/42730
28233 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
28234 offset zero.
28235
28236 2010-01-13 Steve Ellcey <sje@cup.hp.com>
28237
28238 PR target/pr42542
28239 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
28240 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
28241 them signed.
28242
28243 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
28244
28245 * config/bfin/libgcc-bfin.ver: Regenerate based on current
28246 libgcc-std.ver. Add entries for ___smulsi3_highpart and
28247 ___umulsi3_highpart.
28248
28249 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
28250 rather than schedule_insns if the pass is enabled.
28251
28252 2010-01-13 Martin Jambor <mjambor@suse.cz>
28253
28254 PR tree-optimization/42704
28255 * tree-sra.c (sra_modify_assign): Do not delete assignments to
28256 SSA_NAMEs.
28257
28258 2010-01-13 Martin Jambor <mjambor@suse.cz>
28259
28260 PR tree-optimization/42703
28261 * tree-sra.c (analyze_access_subtree): Check that we can build a
28262 reference to the original data within the aggregate.
28263
28264 2010-01-13 Richard Guenther <rguenther@suse.de>
28265
28266 PR tree-optimization/42705
28267 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
28268
28269 2010-01-13 Richard Guenther <rguenther@suse.de>
28270
28271 PR middle-end/42716
28272 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
28273
28274 2010-01-13 Jakub Jelinek <jakub@redhat.com>
28275
28276 PR debug/41371
28277 * var-tracking.c (values_to_unmark): New variable.
28278 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
28279 values_to_unmark vector. Moved body to...
28280 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
28281 instead queue it into values_to_unmark vector.
28282 (vt_find_locations): Free values_to_unmark vector.
28283
28284 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
28285
28286 * config/s390/s390.c (override_options): Set
28287 default of max-pending-list-length to 256
28288
28289 2010-01-13 Richard Guenther <rguenther@suse.de>
28290
28291 PR lto/42678
28292 * tree-pass.h (PROP_gimple_lcx): New.
28293 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
28294 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
28295 before the final cleanup_eh.
28296 (dump_properties): Dump PROP_gimple_lcx.
28297 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
28298 (tree_lower_complex_O0): Remove.
28299 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
28300 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
28301 tree_lower_complex, schedule TODO_update_ssa.
28302 * lto-streamer-out.c (output_function): Stream the functions
28303 properties.
28304 * lto-streamer-in.c (input_function): Likewise.
28305 (lto_read_body): Do not override them here.
28306
28307 2010-01-12 Joseph Myers <joseph@codesourcery.com>
28308
28309 PR c/42708
28310 * c-typeck.c (build_c_cast): Fold value cast to union type before
28311 wrapping it in a CONSTRUCTOR.
28312
28313 2010-01-12 Jakub Jelinek <jakub@redhat.com>
28314
28315 PR rtl-optimization/42699
28316 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
28317 involved.
28318
28319 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28320
28321 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
28322 SUBTARGET_WARN_UNUSED_SPEC): Move ...
28323 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
28324 SUBTARGET_WARN_UNUSED_SPEC): ... here
28325 * config/mips/iris5.h (LIBGCC_SPEC): Define.
28326
28327 2010-01-12 Julian Brown <julian@codesourcery.com>
28328
28329 * config/arm/neon-schedgen.ml (Utils): Don't try to
28330 open missing module.
28331 (find_with_result): New.
28332
28333 2010-01-12 Jakub Jelinek <jakub@redhat.com>
28334
28335 PR debug/42662
28336 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
28337 sharing when canonicalizing ({lt,ge}u (plus a b) b).
28338
28339 PR tree-optimization/42645
28340 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
28341 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
28342 decl_map, set processing_debug_stmt to -1 and return name without
28343 any remapping.
28344
28345 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
28346
28347 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
28348 binutils version, and reword target configuration description.
28349
28350 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
28351
28352 * config/avr/avr.h (LINKER_NAME): Remove.
28353
28354 2010-01-11 Janis Johnson <janis187@us.ibm.com>
28355
28356 PR target/42416
28357 * config/rs6000/rs6000.c (rs6000_override_options): On targets
28358 that support VSX, warn for -mno-altivec if vsx is not disabled,
28359 and disable vsx.
28360
28361 2010-01-11 Joseph Myers <joseph@codesourcery.com>
28362 Shujing Zhao <pearly.zhao@oracle.com>
28363
28364 PR translation/42469
28365 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
28366 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
28367 character between option name and help text.
28368 * c.opt (imultilib): Likewise.
28369
28370 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
28371
28372 * lto-streamer-out.c (output_unreferenced_globals): Output static
28373 variables.
28374
28375 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
28376
28377 PR rtl-optimization/42621
28378 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
28379 optimizing for size.
28380 (duplicate_computed_gotos): Remove now-redundant check.
28381
28382 2010-01-10 Steve Ellcey <sje@cup.hp.com>
28383
28384 PR target/37454
28385 * configure.ac: Save and restore LDFLAGS and LIBS
28386 * configure: Regenerate.
28387
28388 2010-01-10 Richard Guenther <rguenther@suse.de>
28389
28390 PR middle-end/42667
28391 * builtins.c (fold_builtin_strlen): Add type argument and
28392 convert the resulting length to it.
28393 (fold_builtin_1): Adjust.
28394
28395 2010-01-09 Jakub Jelinek <jakub@redhat.com>
28396
28397 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
28398 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
28399 1 insn.
28400 (num_insns_constant_wide): Adjust for that change.
28401
28402 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28403
28404 PR debug/42631
28405 * web.c (union_defs): Add used argument, to combine uses of
28406 uninitialized regs.
28407 (entry_register): Adjust type and tests of used argument.
28408 (web_main): Widen used for new use. Pass it to union_defs.
28409 * df.h (union_defs): Adjust prototype.
28410
28411 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28412
28413 PR debug/42630
28414 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
28415 uses in new incoming argument. Free body.
28416 (reset_debug_uses_in_loop): New.
28417 (analyze_insn_to_expand_var): Call the latter if the former found
28418 anything. Fix whitespace. Reject invalid dest overlaps before
28419 going through all insns in the loop.
28420
28421 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28422
28423 PR debug/42629
28424 * haifa-sched.c (dying_use_p): Debug insns don't count.
28425
28426 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28427
28428 PR middle-end/42363
28429 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
28430 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
28431 (verify_gimple_call): Reject LHS in noreturn calls.
28432
28433 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28434
28435 PR debug/42604
28436 PR debug/42395
28437 * tree-vect-loop-manip.c (adjust_info): New type.
28438 (adjust_vec): New pointer to vector.
28439 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
28440 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
28441 (slpeel_update_phis_for_duplicate_loop): Use them.
28442 (slpeel_update_phi_nodes_for_guard1): Likewise.
28443 (slpeel_update_phi_nodes_for_guard2): Likewise.
28444 (slpeel_tree_peel_loop_to_edge): Likewise.
28445 (vect_update_ivs_after_vectorizer): Likewise.
28446
28447 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28448
28449 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
28450 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
28451
28452 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28453
28454 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
28455 bogus uninitialized warning.
28456
28457 2010-01-09 Richard Guenther <rguenther@suse.de>
28458
28459 PR middle-end/42512
28460 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
28461 the evolution is compatible with the initial condition.
28462
28463 2010-01-09 Jakub Jelinek <jakub@redhat.com>
28464
28465 * gcc.c (process_command): Update copyright notice dates.
28466 * gcov.c (print_version): Likewise.
28467 * gcov-dump.c (print_version): Likewise.
28468 * mips-tfile.c (main): Likewise.
28469 * mips-tdump.c (main): Likewise.
28470
28471 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
28472
28473 PR target/41885
28474 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
28475 (rotlhi3): Delete.
28476 (rotlhi3_8): Delete.
28477 (rotlsi3): Delete.
28478 (rotlsi3_8): Delete.
28479 (rotlsi3_16): Delete.
28480 (rotlsi3_24): Delete.
28481 (rotl<mode>3): New.
28482 (*rotw<mode>3): New.
28483 (*rotb<mode>3): New.
28484 * config/avr/avr.c (avr_rotate_bytes): New function.
28485 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
28486
28487 2010-01-08 Steve Ellcey <sje@cup.hp.com>
28488
28489 PR target/37454
28490 * configure.ac: Modify -rdynamic check.
28491 * configure: Regenerate.
28492
28493 2010-01-08 DJ Delorie <dj@redhat.com>
28494
28495 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
28496 register popping order.
28497
28498 2010-01-08 Richard Guenther <rguenther@suse.de>
28499
28500 PR lto/42528
28501 * c.opt (fsigned-char): Also let LTO handle this option.
28502 (funsigned-char): Likewise.
28503
28504 2010-01-07 Richard Guenther <rguenther@suse.de>
28505
28506 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
28507 (gimple_op): Likewise.
28508 (gimple_op_ptr): Likewise.
28509 (gimple_assign_set_lhs): Remove gcc_assert.
28510 (gimple_assign_set_rhs1): Likewise.
28511 (gimple_assign_set_rhs2): Likewise.
28512 (gimple_call_set_lhs): Likewise.
28513 (gimple_call_set_fn): Likewise.
28514 (gimple_call_set_fndecl): Likewise.
28515 (gimple_call_fndecl): Likewise.
28516 (gimple_call_return_type): Likewise.
28517 (gimple_call_set_chain): Likewise.
28518 (gimple_call_num_args): Likewise.
28519 (gimple_call_set_arg): Likewise.
28520 (gimple_cond_set_code): Likewise.
28521 (gimple_cond_set_lhs): Likewise.
28522 (gimple_cond_set_rhs): Likewise.
28523 (gimple_cond_set_true_label): Likewise.
28524 (gimple_cond_set_false_label): Likewise.
28525 (gimple_label_set_label): Likewise.
28526 (gimple_goto_set_dest): Likewise.
28527 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
28528 (gimple_debug_bind_get_value): Likewise.
28529 (gimple_debug_bind_get_value_ptr): Likewise.
28530 (gimple_debug_bind_set_var): Likewise.
28531 (gimple_debug_bind_set_value): Likewise.
28532 (gimple_debug_bind_reset_value): Likewise.
28533 (gimple_debug_bind_has_value_p): Likewise.
28534 (gimple_return_retval_ptr): Remove gcc_assert.
28535 (gimple_return_retval): Likewise.
28536 (gimple_return_set_retval): Likewise.
28537 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
28538 (safe_referenced_var_iterator): Remove.
28539 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
28540 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
28541 (fill_referenced_var_vec): Remove.
28542 (first_readonly_imm_use): Remove redundant gcc_assert.
28543 (phi_arg_index_from_use): Combine gcc_asserts.
28544 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
28545 (first_imm_use_stmt): Remove redundant gcc_assert.
28546 * tree-cfg.c (verify_gimple_call): Verify function and chain
28547 operands. Verify arguments.
28548 (verify_types_in_gimple_stmt): Verify condition code and labels.
28549
28550 2010-01-07 Richard Guenther <rguenther@suse.de>
28551
28552 PR tree-optimization/42641
28553 * sese.c (rename_map_elt_info): Use the SSA name version, do
28554 not hash pointers.
28555
28556 2010-01-07 Jakub Jelinek <jakub@redhat.com>
28557
28558 PR tree-optimization/42625
28559 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
28560 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
28561
28562 2010-01-07 Duncan Sands <baldrick@free.fr>
28563
28564 * Makefile.in (PLUGIN_HEADERS): Add version.h.
28565
28566 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
28567
28568 PR target/42511
28569 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
28570 note itself is not function_invariant_p.
28571
28572 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
28573
28574 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
28575 Do not add the DF_NOTE problem.
28576 * store-motion.c (execute_rtl_store_motion): Likewise.
28577
28578 2010-01-07 Martin Jambor <mjambor@suse.cz>
28579
28580 PR tree-optimization/42157
28581 * tree-sra.c (compare_access_positions): Stabilize sort if both
28582 accesses have integer types, return zero immediately if they are the
28583 same.
28584
28585 2010-01-06 Richard Henderson <rth@redhat.com>
28586
28587 PR middle-end/41883
28588 * haifa-sched.c (add_to_note_list): Merge into ...
28589 (concat_note_lists): ... here, and ...
28590 (unlink_other_notes, rm_other_notes): Merge into...
28591 (remove_notes): ... here. Create REG_SAVE_NOTEs for
28592 NOTE_INSN_EPILOGUE_BEG.
28593
28594 2010-01-06 Richard Guenther <rguenther@suse.de>
28595
28596 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
28597 not inline regular functions into always-inline functions.
28598
28599 2010-01-06 Nick Clifton <nickc@redhat.com>
28600
28601 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
28602 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
28603 used together.
28604 (OVERRIDE_OPTIONS): Delete.
28605 (OPTIMIZATION_OPTIONS): Define.
28606 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
28607 * config/rx/rx.c (rx_handle_option): Issue an error message if
28608 -mcpu=rx200 and -fpu are used together.
28609 (rx_set_optimization_options): New function. Issue an error
28610 message if an optimization attribute attempts to reset the FPU/
28611 math optimization pairing.
28612 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
28613 * config/rx/rx.opt: Set the default to 32-bit doubles.
28614 * config/rx/t-rx: Add multilibs for -nofpu option.
28615 * doc/invoke.texi: Update documentation of RX options.
28616
28617 2010-01-06 Richard Guenther <rguenther@suse.de>
28618
28619 * tree-ssa-pre.c (name_to_id): New global.
28620 (alloc_expression_id): Simplify SSA name handling.
28621 (lookup_expression_id): Likewise.
28622 (init_pre): Zero name_to_id.
28623 (fini_pre): Free it.
28624
28625 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
28626
28627 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
28628
28629 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
28630
28631 PR target/42542
28632 * config/i386/sse.md (smaxv2di3): New.
28633 (umaxv2di3): Likewise.
28634 (sminv2di3): Likewise.
28635 (uminv2di3): Likewise.
28636
28637 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
28638
28639 PR target/42564
28640 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
28641 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
28642 (legitimize_tls_address): Likewise.
28643 (sparc_tls_referenced_p): Likewise.
28644 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
28645 and adjust calls to legitimize_pic_address.
28646 (legitimate_constant_p) Use sparc_tls_referenced_p.
28647 (legitimate_pic_operand_p): Likewise.
28648 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
28649 (sparc_tls_symbol_ref_1): Delete.
28650 (sparc_tls_referenced_p): Make static, recognize specific patterns.
28651 (legitimize_tls_address): Make static, handle CONST patterns.
28652 (legitimize_pic_address): Make static, remove unused parameter and
28653 adjust recursive calls.
28654 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
28655 and adjust call to legitimize_pic_address.
28656 (sparc_output_mi_thunk): Likewise.
28657
28658 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
28659 H.J. Lu <hongjiu.lu@intel.com>
28660
28661 PR target/42542
28662 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
28663 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
28664 operands to make them signed.
28665
28666 Revert:
28667 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
28668
28669 PR target/42542
28670 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
28671 GTU to GT for V4SI and V2DI.
28672
28673 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
28674 (umin<mode>3): Removed.
28675 (uminv8hi3): New.
28676 (uminv4si3): Likewise.
28677
28678 2010-01-05 Martin Jambor <mjambor@suse.cz>
28679
28680 PR tree-optimization/42462
28681 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
28682 current_function_decl to helper functions and macros.
28683
28684 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28685
28686 PR bootstrap/41771
28687 * flags.h: Don't include real.h.
28688 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
28689 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
28690 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
28691 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
28692 * dominance.c: Update copyright.
28693 * gimple.c (walk_gimple_op): Remove inline.
28694 * tree-ssa-reassoc.c: Include real.h.
28695 * Makefile.in (FLAGS_H): Remove $(REAL_H).
28696 (tree-ssa-reassoc.o): Depend on $(REAL_H).
28697
28698 2010-01-05 Nick Clifton <nickc@redhat.com>
28699
28700 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
28701 register to push into the stack frame when the accumulator has to
28702 be saved during interrupts.
28703
28704 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
28705
28706 * doc/invoke.texi: Remove the documentation about option
28707 -Wunreachable-code.
28708 * common.opt (Wunreachable-code): Preserved for backward
28709 compatibility.
28710 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
28711 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
28712 the backward compatibility flag section.
28713
28714 2010-01-05 Richard Guenther <rguenther@suse.de>
28715
28716 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
28717
28718 2010-01-05 Jakub Jelinek <jakub@redhat.com>
28719
28720 PR other/42611
28721 * cfgexpand.c (expand_one_var): Diagnose too large variables.
28722
28723 PR tree-optimization/42508
28724 * tree-sra.c (convert_callers): Check for recursive call
28725 by comparing cgraph nodes instead of decls.
28726 (modify_function): Call ipa_modify_formal_parameters also
28727 on all same_body aliases.
28728
28729 * cgraphunit.c (cgraph_materialize_all_clones): Compare
28730 cgraph nodes when checking for same_body aliases.
28731
28732 2010-01-05 Richard Guenther <rguenther@suse.de>
28733
28734 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
28735 allocation and lookup.
28736 (get_or_alloc_expr_for_constant): Likewise.
28737 (phi_translate): Sink allocation.
28738
28739 2010-01-04 Richard Guenther <rguenther@suse.de>
28740
28741 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
28742 a new entry only if needed.
28743 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
28744 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
28745 hashtable lookup.
28746 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
28747 the result array.
28748 (phi_translate): Handle CONSTANTs early.
28749
28750 2010-01-04 Martin Jambor <mjambor@suse.cz>
28751
28752 PR tree-optimization/42398
28753 * tree-sra.c (struct access): Removed flag grp_different_types.
28754 (dump_access): Do not dump the removed flag.
28755 (sort_and_splice_var_accesses): Do not set the removed flag.
28756 (sra_modify_expr): Check for type compatibility directly.
28757
28758 2010-01-04 Martin Jambor <mjambor@suse.cz>
28759
28760 PR tree-optimization/42366
28761 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
28762 edges with variable number of parameters.
28763 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
28764 flag instead of asserting it.
28765 (ipa_read_node_info): Read uses_analysis_done flag.
28766
28767 2010-01-04 Richard Guenther <rguenther@suse.de>
28768
28769 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
28770 iterative_hash_* as intended.
28771 (vn_reference_compute_hash): Likewise. Simplify hashing
28772 SSA names.
28773 (vn_reference_lookup_2): Likewise.
28774 (vn_nary_op_compute_hash): Likewise.
28775 (vn_phi_compute_hash): Likewise.
28776 (expressions_equal_p): Remove strange code.
28777 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
28778 (pre_expr_hash): Likewise. Simplify hashing SSA names.
28779 (bitmap_insert_into_set_1): Take value-id as parameter.
28780 (add_to_value): Pass it.
28781 (bitmap_insert_into_set): Likewise.
28782 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
28783
28784 2010-01-04 Jakub Jelinek <jakub@redhat.com>
28785
28786 PR driver/42442
28787 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
28788 (do_self_spec): For switches with SWITCH_IGNORE set set also
28789 SWITCH_IGNORE_PERMANENTLY.
28790 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
28791 of SWITCH_IGNORE.
28792
28793 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
28794
28795 * lto-streamer-out.c (output_unreferenced_globals): Output the full
28796 tree of an unreferenced global var.
28797
28798 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
28799
28800 PR target/42542
28801 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
28802 GTU to GT for V4SI and V2DI.
28803
28804 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
28805 (umin<mode>3): Removed.
28806 (uminv8hi3): New.
28807 (uminv4si3): Likewise.
28808
28809 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
28810
28811 PR lto/42581
28812 * collect2.c (main): Turn on trace in collect2 if -v is passed
28813 to gcc with LTO.
28814
28815 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
28816
28817 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
28818 description of expression operand.
28819
28820 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
28821
28822 * configure.ac: Add install-html to target_list for Make-hooks.
28823 * configure: Regenerate.
28824 * fortran/Make-lang.in (F95_HTMLFILES): New.
28825 (fortran.html): Use it.
28826 (fortran.install-html): New.
28827 * Makefile.in (install-html): Add lang.install-html.
28828 * java/Make-lang.in (JAVA_HTMLFILES): New.
28829 (java.html): Use it.
28830 (java.install-html): New.
28831 * objc/Make-lang.in (objc.install-html): New.
28832 * objcp/Make-lang.in (obj-c++.install-html): New.
28833 * cp/Make-lang.in (c++.install-html): New.
28834 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
28835 * lto/Make-lang.in (lto.install-html): New.
28836
28837 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
28838
28839 PR lto/42520
28840 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
28841
28842 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
28843
28844 PR rtl-optimization/41862
28845 * store-motion.c (store_killed_in_insn, compute_store_table,
28846 remove_reachable_equiv_notes, replace_store_insn,
28847 build_store_vectors): Ignore all DEBUG_INSNs.
28848
28849 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
28850
28851 PR lto/41564
28852 * common.opt: Add dumpdir.
28853
28854 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
28855 isn't specified.
28856 (option_map): Add --dumpdir.
28857
28858 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
28859
28860 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
28861
28862 * opts.c (decode_options): Try dump_dir_name first if
28863 dump_base_name isn't an absolute path.
28864 (common_handle_option): Handle OPT_dumpdir.
28865
28866 * toplev.c (dump_dir_name): New.
28867 (print_switch_values): Also ignore -dumpdir.
28868
28869 * toplev.h (dump_dir_name): New.
28870
28871 2010-01-03 Richard Guenther <rguenther@suse.de>
28872
28873 PR tree-optimization/42589
28874 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
28875 double-word expansion of bswap32.
28876
28877 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
28878
28879 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
28880 with BLOCK_FOR_INSN.
28881 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
28882 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
28883 noce_process_if_block): Likewise.
28884 * gcse.c (compute_local_properties, insert_expr_in_table,
28885 insert_set_in_table, canon_list_insert, find_avail_set,
28886 pre_insert_copy_insn): Likewise.
28887
28888 * basic-block.h (BLOCK_NUM): Move from here...
28889 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
28890
28891 2010-01-03 Richard Guenther <rguenther@suse.de>
28892
28893 PR tree-optimization/42438
28894 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
28895 contains_may_not_return_call flag.
28896 (BB_MAY_NOTRETURN): New.
28897 (valid_in_sets): Trapping nary operations are not valid
28898 in blocks that may not return.
28899 (insert_into_preds_of_block): Remove check for trapping expressions.
28900 (compute_avail): Compute also BB_MAY_NOTRETURN.
28901
28902 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
28903
28904 * doc/invoke.texi: Add 2010 to copyright years.
28905
28906 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
28907
28908 * config/sparc/sparc.c: Fix formatting nits.
28909
28910 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
28911 Alexander Monakov <amonakov@ispras.ru>
28912
28913 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
28914
28915 2010-01-02 Richard Guenther <rguenther@suse.de>
28916
28917 PR middle-end/42577
28918 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
28919 (simplify_switch_using_ranges): Mark to be removed edges
28920 as non-executable.
28921
28922 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28923
28924 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
28925
28926 * collect2.c (scan_libraries): Add missing argument in call to
28927 scan_prog_file.
28928
28929 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
28930
28931 PR target/42448
28932 * config/alpha/predicates.md (aligned_memory_operand): Return false
28933 for CQImode.
28934 (unaligned_memory_operand): Return true for CQImode.
28935 * config/alpha/alpha.c (get_aligned_mem): Assert that location
28936 doesn not cross aligned SImode word boundary.
28937
28938 2010-01-02 Anatoly Sokolov <aesok@post.ru>
28939
28940 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
28941 Remove.
28942 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
28943 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
28944
28945 2010-01-02 Richard Guenther <rguenther@suse.de>
28946
28947 PR lto/41597
28948 * toplev.c (compile_file): Emit LTO marker properly. Change
28949 it to __gnu_lto_v1.
28950 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
28951
28952 2010-01-01 Richard Guenther <rguenther@suse.de>
28953
28954 PR debug/42455
28955 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
28956
28957 2010-01-01 Richard Guenther <rguenther@suse.de>
28958
28959 PR c/42570
28960 * c-decl.c (grokdeclarator): For zero-size arrays force
28961 structural equality checks as layout_type does.
28962
28963 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
28964
28965 * builtins.c: Update copyright to 2010.
28966
28967 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
28968
28969 PR lto/42531
28970 * lto-streamer-out.c (produce_asm): Revert the last change.
28971 (copy_function): Likewise.
28972
28973 * lto-streamer.c (lto_get_section_name): Skip any leading
28974 asterisk in name.
28975
28976 2010-01-01 Richard Guenther <rguenther@suse.de>
28977
28978 PR middle-end/42559
28979 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
28980 for LABEL_DECLs.
28981
28982 \f
28983 Copyright (C) 2010 Free Software Foundation, Inc.
28984
28985 Copying and distribution of this file, with or without modification,
28986 are permitted in any medium without royalty provided the copyright
28987 notice and this notice are preserved.