OSDN Git Service

Fix PR45758: reset scevs before Graphite.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2
3         PR middle-end/45758
4         * graphite.c (graphite_initialize): Call scev_reset.
5
6 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7
8         * sese.h (scev_analyzable_p): Return false for real or floating
9         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
10
11 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
12
13         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
14         and ps.
15         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
16         domain.
17         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
18         Do not allocate ub_expr, it is passed in initialized.
19
20 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
21
22         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
23         (build_cloog_prog): Dump CLooG input file when
24         flag_graphite_dump_cloog is set.  This is disabled on trunk.
25         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
26
27 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
28
29         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
30         verify_dominators for CDI_POST_DOMINATORS.
31         * sese.h: Remove comment about CDI_POST_DOMINATORS.
32         (recompute_all_dominators): Remove call to free_dominance_info
33         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
34         for CDI_POST_DOMINATORS.
35
36 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
37
38         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
39         over pbb_dim_iter_domain.
40
41 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
42
43         * graphite-flattening.c: Fix comments.
44
45 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
46
47         * Makefile.in (OBJS-common): Add graphite-flattening.o.
48         (graphite-flattening.o): New rule.
49         * common.opt (floop-flatten): New flag.
50         * doc/invoke.texi (-floop-flatten): Documented.
51         * graphite-flattening.c: New.
52         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
53         * graphite-poly.h (flatten_all_loops): Declared.
54         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
55         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
56         is set, also set flag_graphite.
57
58 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
59
60         * graphite-poly.c (cloog_checksum): New.
61         * graphite-poly.h (cloog_checksum): Declared.
62
63 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
64
65         * graphite-poly.c (pbb_number_of_iterations): Removed.
66         (pbb_number_of_iterations_at_time): Correctly compute the number
67         of iterations in the transformed loop.
68         * graphite-poly.h (pbb_number_of_iterations): Removed.
69
70 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
71
72         * graphite-poly.h (lst_update_scattering_seq): Removed.
73         (lst_update_scattering): Correctly handle outermost loop dewey
74         renumbering.
75
76 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
77
78         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
79         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
80         * graphite-poly.h (lst_niter_for_loop): New.
81
82 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
83
84         * graphite-poly.c (apply_poly_transforms): Do not abort when the
85         transform read from disk is not legal.  Call fatal_error instead.
86
87 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
88
89         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
90         (print_scop_header): Removed.  Inlined in the only call place...
91         (print_scop): ... here.
92
93 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
94
95         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
96
97 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
98
99         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
100
101 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
102
103         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
104         (dot_deps_stmt): Same.
105         * graphite-poly.c (dot_lst): Same.
106
107 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
108
109         * graphite-blocking.c (scop_do_strip_mine): Do not call
110         graphite_legal_transform.
111         (scop_do_block): Same.
112
113 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
114
115         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
116         description.
117
118 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
119
120         * tree-scalar-evolution.c (instantiate_array_ref): New.
121         (instantiate_scev_r): Also handle ARRAY_REFs.
122
123 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
124
125         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
126         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
127         RESULT_DECL, and FIELD_DECL.  Return false for an
128         SSA_NAME_IS_DEFAULT_DEF.
129         (compute_scalar_evolution_in_loop): Do not further analyze the
130         scalar evolution when no_evolution_in_loop_p returns true.
131
132 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
133
134         * tree-chrec.h (evolution_function_is_affine_p): Do not check
135         whether CHREC_LEFT is invariant.  A function is affine when
136         CHREC_RIGHT is invariant.
137
138 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
139
140         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
141         is_gimple_reg.
142         (rewrite_degenerate_phi): Same.
143         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
144
145 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
146
147         * graphite-scop-detection.c (graphite_can_represent_scev,
148         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
149         graphite_can_represent_loop): Remove outermost_loop.
150
151 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
152
153         PR middle-end/45229
154         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
155         handle GIMPLE_CALLs with no LHS.
156
157 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
158
159         * graphite-poly.c (init_graphite_out_file): New.
160         (init_graphite_in_file): New.
161         (apply_poly_transforms): Updated to enable reading and writing of
162         multiple scop files.
163
164 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
165
166         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
167         redundant checks.
168
169 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
170
171         * graphite-clast-to-gimple.c (precision_for_value): Adjust
172         computation of precision by 1.
173
174 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
175
176         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
177         (openscop_read_polyhedron_matrix): New.
178         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
179         (openscop_read_N_int): Same.
180         * graphite-poly.c (openscop_read_N_int): New.
181         (openscop_read_one_int): New.
182         (openscop_read_N_string): New.
183         (openscop_read_one_string): New.
184         (openscop_read_powerset_matrix): New.
185         (graphite_read_transforms): Remove.
186         (graphite_read_scatt): New.
187         (graphite_read_scop_file): New.
188         (apply_poly_transforms): Updated to call graphite_read_scop_file.
189
190 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
191
192         * graphite-poly.c: Change include order.
193
194 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
195
196         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
197         (cloog_matrix_nrows): New.
198
199 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
200
201         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
202         from matrix lines.
203         * graphite-poly.c (openscop_print_scattering_function_1): Same.
204         (print_scattering_function_1): Same.
205         (openscop_print_pbb_domain): Same.
206         (openscop_print_scop_context): Same.
207         (print_scop_context): Same.
208
209 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
210
211         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
212         (openscop_print_pdr_polyhedron): Print pph.
213
214 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
215
216         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
217         priority signed types.
218
219 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
220
221         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove the call
222         to lang_hooks.types.type_for_size.  Call build_nonstandard_integer_type.
223
224 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
225
226         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
227         (openscop_print_polyhedron_matrix): New.
228         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
229         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
230         (openscop_print_pdr_powerset): New.
231         (openscop_print_powerset_matrix): New.
232         (openscop_print_scattering_function_1): New.
233         (print_scattering_function): Add support for scattering names and
234         OpenScop format.
235         (graphite_write_transforms): Remove.
236         (print_pdr_access_layout): Updated to support OpenScop format.
237         (print_pdr): Same.
238         (openscop_print_pbb_domain): New.
239         (print_pbb_body): Added a parameter to allow indicating that pbb_body is
240         not provided.
241         (print_pbb): Updated to call the new print_pbb_body.
242         (openscop_print_scop_context): New.
243         (print_scop_header): New.
244         (print_scop): Updated to call print_scop_header.
245         * graphite-poly.h: Document OpenScop format.
246
247 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
248
249         * config/cris/m32c.c (cris_memory_move_cost): New.
250         (cris_register_move_cost): Make static. Change arguments type from
251         enum reg_class to reg_class_t.
252         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
253         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
254         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
255
256 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
257
258         PR target/45843
259         * config/i386/i386.c (ix86_gimplify_va_arg): Use
260         INTVAL (XEXP (slot, 1)) as prev_size.
261
262 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
263
264         PR target/45837
265         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
266         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
267         defined.
268         * config/rs6000/option-defaults.h (toplevel): Change #if
269         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
270         global option changes.
271
272 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
273
274         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
275
276         PR tree-optimization/31261
277         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
278         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
279
280 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
281
282         PR bootstrap/45796
283         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
284         special-casing for generators and turn into ...
285         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
286         rule, for better error messages in case of toplevel dependency
287         errors.
288         (genprog): Add hooks, rename to ...
289         (genprogerr): ... this, and let genprog also contain check,
290         checksum, condmd.
291         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
292         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
293         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
294
295 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
296             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
297
298         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
299         for GMP, MPFR and MPC.
300
301 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
302
303         * config/sparc/sparc.opt (mimpure-text): Move ...
304         * config/sol2.opt: ... here.
305         Correct description.
306         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
307         * doc/invoke.texi (Option Summary, SPARC Options): Move
308         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
309         (Option Summary, Solaris 2 Options): ... here.
310         (Submodel Options, Solaris 2 Options): New menu entry.
311         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
312         (Solaris 2 Options): ... here.
313
314 2010-09-30  Michael Eager  <eager@eagercon.com>
315
316         * extend.texi (interrupt_handler): Add MicroBlaze to list.
317         (save_volatiles): Describe option for MicroBlaze.
318         * invoke.texi: Add MicroBlaze Options.
319         * contrib.texi: Add acknowledgment. 
320         * md.texi: Add MicroBlaze d and z constraints.
321         * install.texi: Add microblaze-*-elf.
322         * configure.ac: Add microblaze-*-* to target list.
323         * configure: Regenerate.
324         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
325         * config/microblaze/microblaze-protos.h: New.
326         * config/microblaze/crti.s: New.
327         * config/microblaze/predicates.md: New.
328         * config/microblaze/linux.h: New.
329         * config/microblaze/microblaze.md: New.
330         * config/microblaze/constraints.md: New.
331         * config/microblaze/crtn.s: New.
332         * config/microblaze/microblaze.opt: New.
333         * config/microblaze/microblaze-c.c: New.
334         * config/microblaze/t-microblaze: New.
335         * config/microblaze/microblaze.c: New.
336         * config/microblaze/microblaze.h: New.
337
338 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
339
340         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
341         parse @optional/@required and set the flags as appropriate.
342
343 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
344
345         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
346
347 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
348
349         * opt-functions.awk (static_var): Update comment.
350         (var_ref): Return offsetof expression or -1, not variable address.
351         * optc-gen.awk: Generate structure field initializers instead of
352         static variables.  Expect -1 for missing variables instead of null
353         pointer.  Add gcc_options parameters to generated functions.
354         * opth-gen.awk: Generate structure fields for static variables.
355         Add gcc_options parameters to generated functions.
356         * common.opt (optimize, optimize_size): Add variables.
357         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
358         &global_options to cl_target_option_restore.
359         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
360         &global_options to cl_optimization_restore, cl_target_option_save
361         and cl_target_option_restore.
362         (ix86_set_current_function): Pass &global_options to
363         cl_target_option_restore.
364         * config/pdp11/pdp11.h (optimize): Remove.
365         * config/rs6000/rs6000.h (optimize): Remove.
366         * config/sh/sh.h (optimize): Remove.
367         * config/xtensa/xtensa.h (optimize): Remove.
368         * coretypes.h (struct gcc_options): Declare.
369         * diagnostic.c (diagnostic_initialize): Initialize
370         context->option_state.
371         (diagnostic_report_diagnostic): Pass option_state to
372         option_enabled hook.
373         * diagnostic.h (diagnostic_context.option_enabled): Add void *
374         parameter.
375         (diagnostic_context.option_state): New field.
376         * final.c (final_start_function, final, final_scan_insn): Rename
377         optimize parameter to optimize_p.
378         * flags.h (optimize, optimize_size): Remove.
379         * function.c (invoke_set_current_function_hook): Pass
380         &global_options to cl_optimization_restore.
381         * gcc.c (driver_handle_option): Take gcc_options parameter.
382         Assert that it is &global_options.
383         (process_command): Pass &global_options to read_cmdline_option.
384         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
385         option_enabled.
386         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
387         &global_options to set_option.
388         * opts-common.c (handle_option, handle_generated_option,
389         read_cmdline_option, set_option): Take explicit gcc_options
390         parameters.  Use option_flag_var.
391         (option_flag_var): New.
392         * opts.c (common_handle_option, lang_handle_option,
393         target_handle_option): Take gcc_options parameter.  Assert that it
394         is &global_options.
395         (read_cmdline_options): Pass &global_options to
396         read_cmdline_option.
397         (print_filtered_help): Use option_flag_var.  Pass &global_options
398         to option_enabled.
399         (common_handle_option): Use option_flag_var.
400         (option_enabled): Take opts parameter.  Use option_flag_var.
401         (get_option_state): Take gcc_options parameter.  Use
402         option_flag_var.  Pass gcc_options parameter to option_enabled.
403         (enable_warning_as_error): Pass &global_options to
404         handle_generated_option.
405         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
406         (cl_option_handler_func.handler): Take gcc_options parameter.
407         (option_enabled, get_option_state, set_option, handle_option,
408         handle_generated_option, read_cmdline_option): Take gcc_options
409         parameters.
410         * toplev.c (optimize, optimize_size): Remove.
411         (print_switch_values): Pass &global_options to option_enabled.
412         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
413         to get_option_state.
414         (general_init): Initialize global_dc->option_state.
415         * tree.c (build_optimization_node): Pass &global_options to
416         cl_optimization_save.
417         (build_target_option_node): Pass &global_options to
418         cl_target_option_save.
419
420 2010-09-30  Martin Jambor  <mjambor@suse.cz>
421
422         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
423         zero sized bit-fields.
424
425 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
426
427         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
428         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
429         (c_parser_external_declaration): Use RID_AT_CLASS
430         instead of RID_CLASS.
431         (c_parser_objc_class_declaration): Same change.
432         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
433         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
434         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
435         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
436         and RID_AT_PUBLIC instead of RID_PUBLIC.
437         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
438         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
439         
440 2010-09-30  Tom G. Christensen <tgc@jupiterrise.com>
441
442         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
443         Add links to current providers of packages for Solaris and IRIX.
444
445 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
446
447         Merge from 'apple/trunk' branch on FSF servers.
448         * c-parser.c: Applied change originally in c-parse.in.
449         
450         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
451
452         Radar 4281748
453         * c-decl.c (start_decl): Check for redeclaration of class name.
454         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
455
456 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
457
458         * config/ia64/ia64.c (ia64_builtin_decl): New.
459         (TARGET_BUILTIN_DECL): Define.
460         (ia64_builtins): New.
461         (ia64_init_builtins): Save decls in ia64_builtins.
462
463 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
464
465         PR target/40457
466         * postreload.c (move2add_use_add2_insn): Use full_costs for
467         comparison.
468         (move2add_use_add3_insn): Likewise.
469         (reload_cse_move2add): Likewise.
470         * rtlanal.c (get_full_rtx_cost): New function.
471         * rtl.h (struct full_rtx_costs): New.
472         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
473         costs_add_n_insns): New inline functions.
474         (get_full_rtx_cost): Declare.
475
476         PR c/45054
477         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
478         invariants.  Check for reg_equiv_invariant.
479         (reload): Assert that spilled_pseudos is empty when returning.
480
481 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
482
483         * config/i386/mingw32.h (TARGET_64BIT): replaced by
484         TARGET_64BIT_DEFAULT in #if check.
485
486 2010-09-29  Jack Howarth <howarth@bromo.med.uc.edu>
487
488         * varasm.c (assemble_alias): Add error message for
489         unsupported ifunc.
490
491 2010-09-29  Mike Stump  <mikestump@comcast.net>
492
493         * config/darwin.h (flag_mkernel): Remove.
494         (flag_apple_kext): Likewise.
495
496 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
497             Jack Howarth <howarth@bromo.med.uc.edu>
498
499         * config/darwin.opt (undefined): Add.
500
501 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
502
503         * configure.ac: Add --enable-indirect-function option.
504         * config.gcc: Add default_gnu_indirect_function.
505         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
506         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
507         * varasm.c (do_assemble_alias): Adjust for macto name change.
508         * configure: Rebuilt.
509         * doc/install.texi: Document --enable-indirect-function.
510
511 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
512
513         * doc/options.texi (Variable, Var, Init): Update documentation
514         without reference to VarExists.
515         (VarExists): Remove.
516         * common.opt, config/i386/i386.opt, config/linux.opt,
517         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
518         Don't use VarExists.
519
520 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
521
522         * optc-gen.awk: Generate global_options initializer instead of
523         individual variables.  Add x_ prefix to names of structure
524         members.
525         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
526         names of structure members.
527         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
528         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
529         * doc/tm.texi: Regenerate.
530         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
531         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
532         * c-parser.c (disable_extension_diagnostics,
533         restore_extension_diagnostics): Update names of cpp_options
534         members.
535         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
536         * common.opt (fcompare-debug-second): Don't use Var.
537         * config/alpha/alpha.h (target_flags): Remove.
538         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
539         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
540         * config/bfin/bfin.h (target_flags): Remove.
541         * config/cris/cris.h (target_flags): Remove.
542         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
543         cl_target_option members.
544         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
545         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
546         ix86_can_inline_p): Update names of cl_target_option members.
547         * config/i386/i386.h (ix86_isa_flags): Remove.
548         * config/lm32/lm32.h (target_flags): Remove.
549         * config/mcore/mcore.h (mcore_stack_increment): Remove.
550         * config/mcore/mcore.md (addsi3): Remove extern declaration of
551         flag_omit_frame_pointer.
552         * config/mep/mep.h (target_flags): Remove.
553         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
554         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
555         * config/mmix/mmix.h (target_flags): Remove.
556         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
557         flag_expensive_optimizations): Remove.
558         * config/s390/s390.h (flag_pic): Remove.
559         * config/score/score-conv.h (target_flags): Remove.
560         * config/sh/sh.h (sh_fixed_range_str): Remove.
561         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
562         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
563         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
564         * diagnostic.c (diagnostic_initialize): Update names of
565         diagnostic_context members.
566         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
567         warn_system_headers.
568         (diagnostic_report_warnings_p): Update for new names.
569         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
570         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
571         HARD_FRAME_POINTER_IS_ARG_POINTER.
572         * flags.h (flag_compare_debug): Declare.
573         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
574         * opts.c (flag_compare_debug): Define.
575         (common_handle_option): Update names of diagnostic_context
576         members.  Handle -fcompare-debug-second.
577         (fast_math_flags_struct_set_p): Update names of cl_optimization
578         members.
579         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
580         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
581         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
582         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
583         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
584         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
585         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
586         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
587         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
588
589 2010-09-29  Hariharan Sandanagobalane <hariharan@picochip.com>
590
591         * config/picochip/picochip.c (picochip_output_internal_label):
592           This function can now be called for debug CFI labels, which can come in
593           the middle of a vliw instruction. Postpone until end of vliw.
594
595 2010-09-29  Richard Guenther  <rguenther@suse.de>
596
597         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
598         (DECL_FILE_SCOPE_P): Use it.
599         (TYPE_FILE_SCOPE_P): New macro.
600
601 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
602
603         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
604         a CPP_NAME which is a reserved word, clearly separate cases for
605         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
606
607 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
608
609         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
610         token->value with the canonical spelling.  Do exactly like C and
611         C++ and leave it as it is.
612
613 2010-09-28  Richard Henderson  <rth@redhat.com>
614
615         * config/alpha/alpha.c (alpha_builtins): New.
616         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
617         (alpha_builtin_function): New.
618         (alpha_add_builtins, alpha_init_builtins): Use it.
619
620 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
621
622         * doc/standards.texi (Standards): Expanded the section on
623         Objective-C and Objective-C++.
624
625 2010-09-28  DJ Delorie  <dj@redhat.com>
626
627         PR target/45800
628         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
629         volatile MEMs.
630
631 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
632
633         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
634         attributes on methods.
635          (c_parser_objc_method_definition): Handle attributes.
636         (c_parser_objc_methodproto): Likewise.
637         (c_parser_objc_maybe_method_attributes): New.
638         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
639         missing definition, similar to that in ObjC++.
640
641 2010-09-28  Richard Henderson  <rth@redhat.com>
642
643         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
644         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
645         (CONFIG_SJLJ_EXCEPTIONS): Remove.
646         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
647         (STACK_CHECK_PROTECT): Likewise.
648         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
649         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
650         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
651         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
652         (dwarf2out_assembly_start): Likewise.
653         * except.c (init_eh): Use targetm.except_unwind_info.
654         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
655         (output_one_function_exception_table): Likewise.
656         * final.c: Unconditionally include dwarf2out.h.
657         (final_start_function): Unconditionally call dwarf2out routines.
658         (final_end_function, final_scan_insn): Likewise.
659         * function.c (expand_function_end): Use targetm.except_unwind_info.
660         * opts.c (decode_options): Use targetm.except_unwind_info.
661         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
662         * target.def (debug_unwind_info, except_unwind_info): New.
663         * target.h (enum unwind_info_type): New.
664         * targhooks.c (default_debug_unwind_info): New.
665         (default_except_unwind_info): New.
666         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
667         * targhooks.h: Declare them.
668         * tree-tailcall.c: Include "target.h"
669         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
670         * Makefile.in (tree-tailcall.o): Update.
671         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
672         (lhd_gcc_personality): Likewise.
673
674         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
675         (TARGET_EXCEPT_UNWIND_INFO): New.
676         (DWARF2_UNWIND_INFO): Update.
677         (TARGET_DEBUG_UNWIND_INFO): New.
678         * doc/tm.texi: Rebuild.
679
680         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
681         targetm.except_unwind_info.
682
683         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
684         (arm_except_unwind_info): New.
685         (arm_compute_func_type): Use it.
686         (arm_expand_prologue, thumb_pushpop): Likewise.
687         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
688         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
689         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
690         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
691         (DWARF2_UNWIND_INFO): Remove.
692         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
693         (ARM_EABI_UNWIND_TABLES): Remove.
694
695         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
696         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
697         (ia64_except_unwind_info): New.
698         (ia64_output_function_prologue): Use it.
699         (ia64_add_bundle_selector_before): Likewise.
700         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
701         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
702         (TARGET_UNWIND_INFO): Remove.
703
704         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
705         
706 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
707
708         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
709         (c_parser_objc_protocol_definition): Likewise.
710         (c_parser_external_declaration): Provide dummy attribute arguments.
711         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
712         (c_parser_objc_class_definition): Handle attributes.
713         (c_parser_objc_protocol_definition): Likewise.
714
715 2010-09-28  Tobias Burnus  <burnus@net-b.de>
716
717         PR fortran/40569
718         PR fortran/40568
719         * toplev.h (save_decoded_options, save_decoded_options_count):
720         New global variables.
721         * toplev.c (save_decoded_options, save_decoded_options_count):
722         export variables.
723
724 2010-09-28  Ian Lance Taylor  <iant@google.com>
725
726         * config/i386/i386.c (ix86_supports_split_stack): Test
727         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than
728         dwarf2out_do_cfi_asm.
729
730 2010-09-28  Ian Lance Taylor  <iant@google.com>
731
732         PR target/45815
733         * opts.c (decode_options): Don't test whether the target supports
734         split stack if flag_split_stack == 0.
735
736 2010-09-28  Jan Hubicka  <jh@suse.cz>
737
738         * builtin-attrs.def (ATTR_LEAF): New attribute.
739         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
740         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
741         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
742         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
743         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
744         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
745         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
746         * sync-builtins.def: Annotate all builtins by leaf.
747         * omp-builtins.def: Annotate all builtins by leaf.
748         * builtins.def: Annotate relevant builtins with leaf attribute.
749         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
750         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
751         leaf.
752
753 2010-09-28  Jan Hubicka  <jh@suse.cz>
754
755         * tree-ssa-ccp.c (fold_ctor_reference): New function.
756         (fold_const_aggregate_ref): Use it.
757         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
758         into external static.
759
760 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
761
762         PR target/44452
763         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
764         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
765         (ix86_solaris_return_in_memory): Remove.
766         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
767         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
768         (TARGET_SUBTARGET_DEFAULT): Redefine.
769         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
770         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
771         (TARGET_SUBTARGET_DEFAULT): Redefine.
772         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
773         -mvect8-ret-in-mem.
774         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
775
776 2010-09-29  Alan Modra  <amodra@gmail.com>
777
778         PR target/45807
779         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
780         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
781         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
782         Delete.
783         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
784         (rs6000_emit_prologue): Don't just create frame save info for r2,
785         actually save r2.
786
787 2010-09-28  Richard Henderson  <rth@redhat.com>
788
789         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
790         when 8 bytes are requested.
791
792 2010-09-28  Tristan Gingold  <gingold@adacore.com>
793
794         * config/avr/avr.c (expand_prologue): Set
795         current_function_static_stack_size.
796
797 2010-09-28  Tristan Gingold  <gingold@adacore.com>
798
799         * config/alpha/alpha.md: Change the initial condition of the
800         probing loop.
801
802 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
803
804         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
805         Split from *avx_<maxmin:code><mode>3.
806         (*avx_<smaxmin:code><mode>3): Ditto.
807         * config/i386/i386.md (maxmin): Remove code iterator.
808
809 2010-09-27  Ian Lance Taylor  <iant@google.com>
810
811         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
812         requires assembler support for CFI directives.
813
814 2010-09-27  Richard Henderson  <rth@redhat.com>
815
816         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
817
818 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
819
820         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
821         that AFTER is not in the range FROM..TO, inclusive.
822
823 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
824             Bernd Schmidt  <bernds@codesourcery.com>
825
826         PR rtl-optimization/45792
827         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
828         If not all insns are to be merged, for each edge, stash the
829         next candidate after the to-be-merged insns before doing the
830         merge, and use them for the retry at the new insertion point.
831         Handle CC0 targets when retrying.
832
833 2010-09-27  Ian Lance Taylor  <iant@google.com>
834
835         * common.opt (fsplit-stack): New option.
836         * opts.c (decode_options): Set flag_split_stack to final value.
837         * target.def (supports_split_stack): New hook.
838         * gcc.c (STACK_SPLIT_SPEC): Define.
839         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
840         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
841         (Code Gen Options): Document -fsplit-stack.
842         * doc/extend.texi (Function Attributes): Mention no_split_stack.
843         (Function Attributes): Document no_split_stack.
844         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
845         TARGET_SUPPORTS_SPLIT_STACK.
846         * doc/tm.texi: Rebuild.
847         * function.c (thread_prologue_and_epilogue_insns): If
848         flag_split_stack, add split stack prologue.
849         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
850         * varasm.c (saw_no_split_stack): New static variable.
851         (assemble_start_function): Set saw_no_split_stack if the function
852         has the no_split_stack attribute.
853         (file_end_indicate_split_stack): New function.
854         * output.h (file_end_indicate_split_stack): Declare.
855         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
856         and function.
857         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
858         routines.
859         * config/i386/i386.c (ix86_option_override_internal): Don't set
860         expand_builtin_va_start to NULL if -fsplit-stack.
861         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
862         -fsplit-stack.
863         (ix86_va_start): If -fsplit-stack, get overflow pointer from
864         scratch register set by prologue.
865         (ix86_code_end): If -fsplit-stack, call
866         file_end_indicate_split_stack.
867         (ix86_supports_split_stack): New static function.
868         (SPLIT_STACK_AVAILABLE): Define.
869         (split_stack_prologue_scratch_regno): New static function.
870         (split_stack_fn): New static variable.
871         (ix86_expand_split_stack_prologue): New function.
872         (ix86_live_on_entry): New static function.
873         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
874         (output_pic_addr_const): Likewise.
875         (i386_asm_output_addr_const_extra): Likewise.
876         (ix86_expand_call): Change return type to rtx.  Return the new
877         call instruction.
878         (TARGET_SUPPORTS_SPLIT_STACK): Define.
879         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
880         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
881         (split_stack_prologue, split_stack_return): New insns.
882         (split_stack_space_check): New insn.
883         * config/i386/i386.h (struct machine_function): Add
884         split_stack_varargs_pointer field.
885         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
886         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
887         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
888         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
889         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
890         Declare.
891         (ix86_expand_call): Update declaration.
892
893 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
894
895         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
896         code.  Added byref, which was missing in the list of codes.
897         Explain that enumeration values are encoded as the integer type
898         that the compiler uses to store them.  Explain and make examples
899         of how 'const' interacts with pointers, and the complication of
900         the encoding of 'const char *'.
901         (Legacy type encoding): New subsection, explaining that GCC emits
902         incorrect type encodings for the NeXT runtime for compatibility
903         reasons.
904         (@@encode): New subsection, explaining @encode and particularly
905         that protocol qualifiers are not recognized inside an @encode()
906         expression.
907         (Method signatures): New subsection, explaining how method
908         signatures are encoded.
909
910 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
911
912         Merge from 'apple/trunk' branch on FSF servers.  Removed small
913         change in build_conditional_expr that had been added when fixing
914         PR objc/27377 and which did the same check in a less complete way.
915
916         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
917
918         Radar 4229905
919         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
920         looking for objective-c common pointer types.
921         
922         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
923
924         Radar 4154928
925         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
926         use their ObjC common type.
927
928 2010-09-27  Richard Guenther  <rguenther@suse.de>
929
930         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
931
932 2010-09-27  Jie Zhang  <jie@codesourcery.com>
933
934         * print-tree.c (print_node): Print in-constant-pool.
935
936 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
937
938         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
939         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
940         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
941         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
942
943 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
944
945         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
946         from pro_epilogue_adjust_stack_<mode>_{1,2}.
947         (pro_epilogue_adjust_stack_<mode>_add): Rename from
948         pro_epilogue_adjust_stack_<mode>_3.
949         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
950         renamed pro_epilogue_adjust_stack_{si,di}_add.
951         (ix86_expand_prologue): Use indirect functions.  Update for renamed
952         pro_epilogue_adjust_stack_{si,di}_sub.
953
954 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
955
956         * config/i386/i386.md (movmsk_df): New insn.
957         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
958         sequence for TARGET_SSE_MATH.
959
960 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
961
962         * config/mips/mips.c (mips_builtin_decls): Declare.
963         (mips_init_builtins): Store function declarations in
964         mips_builtin_decls.
965         (mips_builtin_decl): New function.
966         (TARGET_BUILTIN_DECL): Define.
967
968 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
969             Richard Henderson  <rth@redhat.com>
970
971         * config/i386/cygwin.asm: Include auto-host.h.
972         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
973         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
974         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
975         alignment code from the 64-bit path.  Use gas local labels.
976         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
977         from _di_2.  Remove the useless constant integer argument.
978         (pro_epilogue_adjust_stack_<mode>_3): New.
979         (allocate_stack_worker_probe_<mode>): Macroize from
980         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
981         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
982         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
983         (__chkstk_ms): New function.
984         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
985         * gcc/config/i386/t-interix: Likewise.
986         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
987         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
988         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
989         * configure, config.in: Rebuild.
990
991 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
992
993         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
994         statements because of the return slot optimization.
995
996 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
997
998         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
999         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
1000         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1001         (class_likely_spilled_p): Rename to...
1002         (avr_class_likely_spilled_p): ...this. Make static. Change argument
1003         type to reg_class_t.
1004
1005 2010-09-24  Jan Hubicka  <jh@suse.cz>
1006
1007         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
1008         (lto_symtab_resolve_symbols): Set it.
1009         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
1010         store resolution field in cgraph/varpool.
1011         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
1012         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
1013         (cgraph_dump_node): Drop used_from_object_file.
1014         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
1015         (cgraph_function_body_availability): Use decl_replaceable_p.
1016         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
1017         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
1018         cgraph_used_from_object_file_p.
1019         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
1020         cgraph_used_from_object_file_p.
1021         (resolution_used_from_other_file_p): New functoin.
1022         (cgraph_used_from_object_file_p): New predicate.
1023         * cgraph.h: Include plugin-api.h
1024         (struct cgraph_local_info): Remove used_from_object_file.
1025         (struct cgraph_node): Add resolution field.
1026         (struct varpool_node): Likewise; remove used_from_object_file;
1027         reove const_value_known.
1028         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
1029         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
1030         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1031         varpool_used_from_object_file_p): Declare.
1032         (varpool_get_node, varpool_extra_name_alias): Update prototype.
1033         * tree.h (DECL_REPLACEABLE_P): Remove.
1034         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
1035         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
1036         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1037         input_overwrite_node, input_node, input_varpool_node): Stream
1038         resolution.
1039         * expr.c (expand_expr_real_1): Use const_value_known_p
1040         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
1041         const_value_known.
1042         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
1043         (function_and_variable_visibility): Set resolution for local vars
1044         and functions; use varpool_used_from_object_file_p.
1045         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
1046         static functions.
1047         (default_binds_local_p_1): Use resolutoin info.
1048         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
1049         * varpool.c (varpool_get_node): Constify.
1050         (const_value_known_p): Do not use vnode->const_value_known;
1051         use decl_replaceable_p.
1052         (varpool_finalize_decl): Do not set const_value_known.
1053         (cgraph_variable_initializer_availability): Use decl_replaceable_p
1054         (varpool_extra_name_alias): Return new node.
1055         (varpool_used_from_object_file_p): New function.
1056
1057 2010-09-24  Richard Henderson  <rth@redhat.com>
1058
1059         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
1060         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
1061         (do_spill): Use REG_CFA_OFFSET.
1062         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
1063         as appropriate.
1064         (ia64_expand_epilogue): Likewise.
1065         (process_set): Split into ...
1066         (process_cfa_adjust_cfa): this,
1067         (process_cfa_register): this,
1068         (process_cfa_offset): and this new function.
1069         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
1070         instead of REG_FRAME_RELATED_EXPR.
1071
1072 2010-09-24  Olivier Hainque  <hainque@adacore.com>
1073
1074         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
1075
1076 2010-09-24  Jan Hubicka  <jh@suse.cz>
1077
1078         * doc/extend.texi: (attribute leaf): Document.
1079         * tree.c (local_define_builtin): Handle ECF_LEAF.
1080         (build_common_builtin_nodes): Set ECF_LEAF where needed.
1081         * tree.h (ECF_LEAF): New.
1082         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
1083         overwrittable and unavailable functions.
1084         (ipa_init): Put all_module_statics into optimization_summary_obstack.
1085         (copy_global_bitmap): Do not copy all_module_statics.
1086         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
1087         (propagate): Handle overwritable and unavailable leaf functions;
1088         initialize global info for overwritable and unavailable leaf functions;
1089         do not free all module statics.
1090         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
1091         local statics.
1092         * calls.c (flags_from_decl_or_type): Handle leaf.
1093         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
1094         abnormal gotos.
1095
1096 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
1097
1098         * gengtype.c: Reindented.
1099         * gengtype.h: Reindented.
1100         * gengtype-parse.c: Reindented.
1101
1102 2010-09-24  Jan Hubicka  <jh@suse.cz>
1103
1104         PR tree-optimization/45738
1105         PR tree-optimization/45741
1106         * expr.c (string_constant): Allow CONST_DECL too;
1107         check that DECL_INITIAL is set.
1108         * varpool.c (const_value_known_p): Only look into VAR_DECL
1109         and CONST_DECL.
1110
1111 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
1112
1113         * common.opt (undef): New.
1114
1115 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
1116
1117         PR middle-end/45234
1118         * rtl.h (enum global_rtl_index): Add
1119         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
1120         (LAST_VIRTUAL_POINTER_REGISTER): Define.
1121         (virtual_preferred_stack_boundary_rtx,
1122         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
1123         (LAST_VIRTUAL_REGISTER): Increase by one.
1124         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
1125         instead of LAST_VIRTUAL_REGISTER.
1126         * function.c (instantiate_new_reg): Handle
1127         virtual_preferred_stack_boundary_rtx.
1128         * emit-rtl.c (init_virtual_regs): Handle
1129         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
1130         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
1131         * explow.c (round_push): If crtl->preferred_stack_boundary
1132         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
1133         virtual_preferred_stack_boundary_rtx alignment instead of
1134         crtl->preferred_stack_boundary alignment.
1135         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
1136         macros.  Never decrease crtl->preferred_stack_boundary,
1137         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
1138         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
1139         stack_pointer_delta in dynamic allocation, even when size
1140         is constant.
1141         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
1142         macro.
1143         * print-rtl.c (print_rtx): Handle
1144         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
1145         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
1146         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
1147         * config/frv/frv.c (frv_emit_movsi): Likewise.
1148         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
1149         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
1150         Likewise.
1151
1152         Revert:
1153         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
1154
1155         PR middle-end/45234
1156         * calls.c (expand_call): Make sure that all variable sized
1157         adjustments are multiple of preferred stack boundary after
1158         stack alignment.
1159
1160 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
1161             Dominique Dhumieres  <dominiq@lps.ens.fr>
1162
1163         PR bootstrap/45751
1164         * gcc/config/darwin-driver.c (darwin_default_min_version):
1165         Adjust size passed to memcpy in two places.
1166
1167 2010-09-24  Richard Guenther  <rguenther@suse.de>
1168
1169         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
1170         Make sure to not call set_type_context with error_mark_node.
1171         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
1172
1173 2010-09-24  Richard Guenther  <rguenther@suse.de>
1174
1175         * Makefile.in (OBJS-onestep): Remove.
1176         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
1177         (libbackend.a): Remove onestep support.
1178         (libbackend.o): Remove.
1179         * configure.ac (--enable-intermodule): Remove.
1180         * configure: Regenerate.
1181
1182 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
1183
1184         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
1185         reaching the end of a block if it occurs at a DEBUG_INSN.
1186
1187 2010-09-09  Tristan Gingold  <gingold@adacore.com>
1188
1189         PR target/44242
1190         * config/vms/vms-crt0-64.c: Removed.
1191         * config/vms/vms-crt0.c: Removed.
1192         * config/vms/vms-psxcrt0-64.c: Removed.
1193         * config/vms/vms-psxcrt0.c: Removed.
1194         * config/vms/vms-ucrt0.c: New file.
1195         * config/vms/t-vms64: Removed.
1196         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
1197         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
1198         * config.gcc (alpha-dec-vms): Use t-vms.
1199
1200 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
1201
1202         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
1203         underfull hbox in DVI output.
1204         (-fobjc-class-cxx-cdtors): Same change.
1205         (-fobjc-exceptions): Tidied up documentation.  Explain what the
1206         option does, but moved the (lenghty) description of the exception
1207         syntax into objc.texi.
1208         (-fobjc-gc): Explain that the option is not useful with the GNU
1209         runtime.
1210         (-fzero-link): Explain that the GNU runtime always works in
1211         "zero-link" mode.
1212         * doc/objc.texi: All sections: simplified @node declarations
1213         removing specification of next, previous, up node.
1214         (Objective-C): Updated introduction.
1215         (Garbage Collection): Updated.  The bohem-gc library is now
1216         included in gcc itself.  Mention that this section only applies to
1217         the GNU Objective-C runtime.
1218         (compatibility_alias): Small tidy up.
1219         (Exceptions): New section mostly containing text previously in the
1220         description of the -fobjc-exception command-line option.
1221         (Synchronization): Same.
1222
1223 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
1224
1225         * config/i386/i386.md (ix86_code_end): Move the initialization of
1226         xops array near the consumer.  Use AX_REG and SP_REG instead of
1227         numerical constants.
1228
1229 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
1230
1231         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
1232         method [methodname]' for an Objective-C method instead of the less
1233         satisfactory 'too many arguments to function' (with no method name).
1234
1235 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
1236
1237         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
1238         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
1239         (execute_update_addresses_taken): Remove parameter.  Execute the
1240         optimization unconditionally.
1241         * passes.c (execute_function_todo): Call execute_update_addresses_taken
1242         unconditionally if TODO_rebuild_alias is set, else only when optimizing
1243         if TODO_update_address_taken is set.
1244
1245 >>>>>>> .r164755
1246 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
1247
1248         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1249         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
1250         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1251         (arm_output_addr_const_extra): Make static.
1252
1253 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
1254
1255         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
1256         define as unspec_volatile.
1257         ("nops"): Define as unspec_volatile. Use fputs to write to
1258         asm_out_file directly.  Output NOPs on separate lines using while loop.
1259         * config/i386/i386.c (ix86_code_end): Use fputs to write to
1260         asm_out_file directly.  Output NOPs on separate lines using while loop.
1261
1262 2010-09-23  Richard Guenther  <rguenther@suse.de>
1263
1264         PR tree-optimization/45565
1265         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
1266         Make sure to adjust the fndecl before replacing the stmt.
1267
1268 2010-09-23  Richard Guenther  <rguenther@suse.de>
1269
1270         PR middle-end/45750
1271         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
1272         gimplifying MEM_REF.
1273
1274 2010-09-23  Alan Modra  <amodra@gmail.com>
1275
1276         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
1277         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
1278
1279 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
1280
1281         PR rtl-optimization/44374
1282         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
1283         * df-core.c (df_set_bb_dirty): Set it.
1284         * ifcvt.c (find_memory): Remove function.
1285         (dead_or_predicable): Use can_move_insns_across.
1286         * df.h (can_move_insns_across): Declare function.
1287         * cfgcleanup.c (block_was_dirty): New static variable.
1288         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
1289         than df_get_bb_dirty.
1290         (try_head_merge_bb): New static function.
1291         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
1292         is set.
1293         * df-problems.c: Include "target.h"
1294         (df_simulate_find_uses): New static function.
1295         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
1296         (find_memory, find_memory_store): New static functions.
1297         (can_move_insns_across): New function.
1298         * Makefile.in (df-problems.o): Update dependencies.
1299
1300 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
1301
1302         PR java/44095
1303         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
1304         is specified and the suffix of the file isn't ".c".
1305         * config/sparc/linux64.h (ASM_SPEC): Likewise.
1306
1307 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1308
1309         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
1310         * doc/cppopts.texi: Fix markup of index entry.
1311         * doc/extend.texi (Constructing Calls): Fix markup of
1312         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
1313         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
1314         (Vague Linkage, C++ Attributes): Fix markup of index entries and
1315         keywords.
1316         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
1317         avoid long lines.
1318         (C Dialect Options, C++ Dialect Options, Warning Options)
1319         (Debugging Options, Spec Files, Darwin Options)
1320         (i386 and x86-64 Options, MIPS Options)
1321         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
1322         index entries, avoid abbreviations, allow URLs to wrap, avoid
1323         long lines, avoid overlong pages from long @itemx lists.
1324         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
1325         * doc/standards.texi (Standards): Likewise.
1326         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
1327
1328 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
1329
1330         * opts-common.c (prune_options): Make static.  Work with decoded
1331         options.
1332         (decode_cmdline_options_to_array): Call prune_options.  Don't
1333         resize option array here.
1334         * opts.h (prune_options): Remove prototype.
1335         * gcc.c (process_command): Take decoded options; don't call
1336         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
1337         (main): Call decode_cmdline_options_to_array here instead of
1338         prune_options.  Update call to process_command.
1339         * config/darwin-driver.c: Include opts.h.
1340         (darwin_default_min_version): Work with decoded options.  Don't
1341         handle -b or -V here.
1342         * config/darwin.h (darwin_default_min_version): Update prototype.
1343         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
1344         darwin_default_min_version.
1345         * config/i386/cygwin.h (mingw_scan): Update prototype.
1346         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
1347         * config/i386/cygwin1.c: Include opts.h.
1348         (mingw_scan): Work with decoded options.
1349         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
1350         * config/t-darwin (darwin-driver.o): Update dependencies.
1351
1352 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
1353
1354         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
1355         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
1356         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
1357         -force-link, -force-link=, -language, -language=,
1358         -library-directory, -library-directory=, -no-canonical-prefixes,
1359         -no-standard-libraries, -no-warnings, -optimize, -output,
1360         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
1361         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
1362         -print-file-name=, -print-libgcc-file-name,
1363         -print-multi-directory, -print-multi-lib,
1364         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
1365         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
1366         -profile, -save-temps, -shared, -specs, -specs=, -static,
1367         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
1368         symbolic): New.
1369         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
1370         * gcc.c (A Short Introduction to Adding a Command-Line Option):
1371         Remove comment.
1372         (cc1_options): Correct specs for passing down --help,
1373         --target-help and --help=*.  Add spec for passing down --version.
1374         (struct option_map, option_map, target_option_translations,
1375         translate_options): Remove.
1376         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
1377         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
1378         OPT_fhelp_ and OPT_ftarget_help.
1379         (process_command): Don't call translate_options.  Call
1380         decode_cmdline_options_to_array before checking for
1381         -no-canonical-prefixes using decoded options.
1382         * opts-common.c (tm.h): Update comment on #include.
1383         (find_opt): Allow abbreviations of long options.
1384         (struct option_map, option_map): New.
1385         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
1386         and -mno handling.
1387         (target_option_translations): New.
1388         (decode_cmdline_options_to_array): Handle
1389         TARGET_OPTION_TRANSLATE_TABLE in driver.
1390         * opts.c (common_handle_option): Don't handle OPT_fhelp,
1391         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
1392
1393 2010-09-22  Richard Guenther  <rguenther@suse.de>
1394
1395         * tree-inline.c (optimize_inline_calls): Schedule cleanups
1396         only if we inlined something.  Block compaction and conditional
1397         folding are done by cfg cleanup.  Schedule update-address-taken.
1398         (tree_function_versioning): Remove redundant call to number_blocks.
1399         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
1400         folding is done by cfg cleanup.
1401         * passes.c (init_optimization_passes): Remove update-address-taken
1402         pass after IPA inlining.
1403
1404 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
1405
1406         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
1407         to update conditions. Fix reg_mode[] check.
1408
1409 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
1410
1411         * config/picochip/picochip.md (movhicc): Use expand to check whether
1412         movhicc is available and split it after reload.
1413
1414 2010-09-22  Richard Guenther  <rguenther@suse.de>
1415
1416         * tree-ssanames.c (release_dead_ssa_names): Do not remove
1417         callee edges here.
1418         * passes.c (init_optimization_passes): Remove early CFG cleanup.
1419         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
1420         (pass_cleanup_cfg): Likewise.
1421         (execute_fixup_cfg): Cleanup.
1422         * tree-pass.h (pass_cleanup_cfg): Remove.
1423
1424 2010-09-22  Martin Jambor  <mjambor@suse.cz>
1425
1426         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
1427         builtins if it is true.
1428         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
1429         parameter.
1430
1431 2010-09-22  Martin Jambor  <mjambor@suse.cz>
1432
1433         * tree-sra.c (struct access): New field grp_no_warning.
1434         (create_access_replacement): Set TREE_NO_WARNING according to
1435          grp_no_warning.
1436         (create_artificial_child_access): Use build_ref_for_model and set
1437         grp_no_warning if build_user_friendly_ref_for_offset fails.
1438         (propagate_subaccesses_across_link): Likewise.
1439
1440 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
1441
1442         PR target/35664
1443         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
1444         ('f'): Likewise.
1445
1446 2010-09-22  Tristan Gingold  <gingold@adacore.com>
1447
1448         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
1449
1450 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
1451
1452         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
1453         * config/i386/i386.c (decide_alg): Update for rename.
1454
1455 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
1456
1457         PR rtl-optimization/45739
1458         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
1459         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
1460
1461 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
1462
1463         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
1464         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
1465         Remove.
1466         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
1467         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1468
1469 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
1470
1471         PR objc/23710
1472         * c-parser.c (c_parser_objc_method_definition): Check the return
1473         value of objc_start_method_definition and if false is returned,
1474         parse the method definition but emit no code.
1475
1476 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
1477
1478         PR objc/25965
1479         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
1480         call objc_get_interface_ivars ().
1481
1482 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
1483
1484         PR target/45694
1485         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
1486         static chain-register is used for 64-bit.
1487
1488 2010-09-21  Richard Guenther  <rguenther@suse.de>
1489
1490         * dwarf2out.c (is_cu_die): New function.
1491         (add_pubtype): Use it.
1492         (gen_subprogram_die): Likewise.
1493         (gen_struct_or_union_type_die): Likewise.
1494         (dwarf2out_finish): Likewise.
1495         (comp_unit_die): Rename to ...
1496         (single_comp_unit_die): ... this.
1497         (comp_unit_die): New function lazily constructing and
1498         returning single_comp_unit_die.
1499         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
1500         base_type_die, subrange_type_die, modified_type_die,
1501         lower_bound_default, add_bound_info, add_prototyped_attribute,
1502         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
1503         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
1504         force_decl_die, gen_namespace_die, dwarf2out_decl,
1505         dwarf2out_start_source_file, dwarf2out_end_source_file,
1506         prune_unused_types, dwarf2out_finish): Use it.
1507         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
1508         the global list of translation-unit decls.
1509         (dwarf2out_init): Do not create single_comp_unit_die here.
1510         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
1511
1512 2010-09-21  Richard Guenther  <rguenther@suse.de>
1513
1514         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
1515         for bool for C++.
1516
1517 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
1518
1519         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
1520         (qhs_extenddi_cstr): Likewise.
1521         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
1522         them for the source operand.
1523
1524 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
1525
1526         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
1527         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
1528         (ix86_split_ashr): Ditto.
1529         (ix86_split_lshr): Ditto.
1530
1531 2010-09-21  Richard Guenther  <rguenther@suse.de>
1532
1533         PR tree-optimization/45580
1534         * tree-ssa-propagate.c (substitute_and_fold): Always replace
1535         regular uses.
1536         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
1537         virtuals fold the call into a regular indirect one.
1538
1539 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
1540
1541         PR rtl-optimization/42775
1542         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
1543         scheduling is enabled.
1544
1545 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
1546
1547         PR rtl-optimization/45728
1548         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
1549         gen_lowpart_common first and if that fails, force_reg first
1550         before calling gen_lowpart.
1551
1552         PR middle-end/45678
1553         * cfgexpand.c (expand_one_stack_var_at): Use
1554         crtl->max_used_stack_slot_alignment as max_align, instead
1555         of maximum of that and PREFERRED_STACK_BOUNDARY.
1556         Don't call update_stack_alignment.
1557
1558 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
1559
1560         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
1561         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
1562         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
1563         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
1564         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
1565         (build_nonstandard_integer_type): Likewise.
1566         (build_range_type_1): New function, built from...
1567         (build_range_type): ...this.  Call build_range_type_1.
1568         (build_nonshared_range_type): New function.
1569         (build_array_type_1): New function, built from...
1570         (build_array_type: ...this.  Call build_array_type_1.
1571         (build_nonshared_array_type): New function.
1572         * tree.h (build_nonshared_range_type): Declare.
1573         (build_nonshared_array_type): Likewise.
1574
1575 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
1576
1577         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
1578         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1579         (arm_class_likely_spilled_p): New function.
1580
1581 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
1582
1583         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
1584         indirect functions.
1585         (ix86_split_ashl): Ditto.
1586         (ix86_split_ashr): Ditto.
1587         (ix86_split_lshr): Ditto.
1588         (ix86_adjust_counter): Ditto.
1589
1590 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
1591
1592         * c-family/c-common.h (constant_string_class): Documented with
1593         comment identical to the one already in c-common.c.
1594
1595 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
1596
1597         * dwarf2out.c (any_cfis_emitted): New static variable.
1598         (add_fde_cfi): Set it.
1599         (dwarf2out_frame_debug): Clear it before processing,
1600         if it is set afterwards, flush any queued reg saves.
1601
1602         PR debug/45124
1603         * dwarf2out.c (add_accessibility_attribute): Assume
1604         DW_ACCESS_private as the default for dwarf_version > 2
1605         and DW_TAG_class_type parent.
1606         (gen_inheritance_die): Assume DW_ACCESS_public as the default
1607         for dwarf_version > 2 and parent other than DW_TAG_class_type.
1608
1609 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
1610
1611         PR target/45726
1612         * arm.md (arm_movt): Only enable on machines with MOVT.
1613
1614 2010-09-20  Jie Zhang  <jie@codesourcery.com>
1615
1616         * config/arm/arm.c (arm_address_offset_is_imm): New.
1617         (arm_early_store_addr_dep): New.
1618         (arm_early_load_addr_dep): New.
1619         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
1620         (arm_early_load_addr_dep): Declare.
1621         (arm_address_offset_is_imm): Declare.
1622         * config/arm/cortex-m4.md: New file.
1623         * config/arm/cortex-m4-fpu.md: New file.
1624         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
1625         (attr generic_sched): Exclude cortexm4.
1626         (attr generic_vfp): Exclude cortexm4.
1627
1628 2010-09-20  Richard Guenther  <rguenther@suse.de>
1629
1630         PR middle-end/45704
1631         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
1632
1633 2010-09-20  Jan Hubicka  <jh@suse.cz>
1634
1635         PR tree-optimize/45605
1636         * cgraph.h (const_value_known_p): Declare.
1637         (varpool_decide_const_value_known): Remove.
1638         * tree-ssa-ccp.c (get_base_constructor): Use it.
1639         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
1640         * expr.c (string_constant): Likewise.
1641         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
1642         * ipa.c (ipa_discover_readonly_nonaddressable_var,
1643         function_and_variable_visibility): Likewise.
1644         * gimplify.c (gimplify_call_expr): Likewise.
1645         * gimple-fold.c (get_symbol_constant_value): Likewise.
1646         * varpool.c (varpool_decide_const_value_known): Replace by...
1647         (const_value_known_p): ... this one; handle other kinds of DECLs
1648         too and work for automatic vars.
1649         (varpool_finalize_decl): Use const_value_known_p.
1650
1651 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
1652
1653         PR target/45726
1654         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
1655
1656 2010-09-20  Richard Guenther  <rguenther@suse.de>
1657
1658         PR tree-optimization/45705
1659         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
1660
1661 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
1662
1663         PR rtl-optimization/45695
1664         * combine.c (try_combine): When splitting a two set pattern,
1665         make sure the pattern which will be put into i2 doesn't use REGs
1666         or MEMs set by insns in between i2 and i3.
1667
1668 2010-09-19  Jan Hubicka  <jh@suse.cz>
1669
1670         PR lto/44246
1671         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
1672         processing same node twice.
1673
1674 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
1675
1676         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
1677         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1678         (bfin_class_likely_spilled_p): New function
1679
1680 2010-09-19  Ira Rosen  <irar@il.ibm.com>
1681
1682         PR tree-optimization/45714
1683         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
1684         created in vectorizable_call instead of the original statement in
1685         def stmt updates.
1686
1687 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
1688
1689         * config/i386/i386-protos.h (split_double_mode): New prototype.
1690         (split_di, split_ti): Remove prototypes.
1691         * config/i386/i386.c (split_double_mode): New function.
1692         (split_di, split_ti): Remove.
1693         (ix86_expand_branch): Use split_double_mode.
1694         (ix86_split_to_parts): Ditto.
1695         (ix86_split_ashl): Ditto.
1696         (ix86_split_ashr): Ditto.
1697         (ix86_split_lshr): Ditto.
1698         (ix86_force_to_memory): Ditto.
1699         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
1700
1701 2010-09-18  Jan Hubicka  <jh@suse.cz>
1702
1703         PR tree-optimization/45453
1704         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
1705         virtual functions are reachable.
1706         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
1707         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
1708         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
1709         when modifying function.
1710
1711 2010-09-18  Jan Hubicka  <jh@suse.cz>
1712
1713         PR tree-optimization/45605
1714         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
1715         * gimple-fold.c (static_object_in_other_unit_p): New function.
1716         (canonicalize_constructor_val): Use it.
1717         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
1718         returning NULL.
1719         (gimple_fold_obj_type_ref_known_binfo): Use
1720         static_object_in_other_unit_p.
1721
1722 2010-09-18  Richard Guenther  <rguenther@suse.de>
1723
1724         PR tree-optimization/45709
1725         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
1726         insertions until after all PHI nodes of the block are processed.
1727
1728 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
1729
1730         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
1731
1732 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
1733
1734         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
1735
1736 2010-09-18  Richard Guenther  <rguenther@suse.de>
1737
1738         PR tree-optimization/45709
1739         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
1740
1741 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
1742
1743         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
1744         (dot_deps_stmt): Same.
1745         * graphite-poly.c (dot_lst): Same.
1746         * graphite-scop-detection.c (dot_all_scops): Same.
1747         (dot_scop): Same.
1748
1749 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
1750
1751         Revert:
1752         2009-12-16  Ben Elliston  <bje@au.ibm.com>
1753
1754         * tree-data-ref.c (dot_rdg_1): Added back.
1755         (dot_rdg): Same.  Added "#if 0" around system call.
1756
1757 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
1758             Richard Henderson  <rth@redhat.com>
1759
1760         * config/i386/i386.c (initial_ix86_tune_features): Add
1761         X86_TUNE_PAD_SHORT_FUNCTION.
1762         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
1763         (ix86_count_insn): New.
1764         (ix86_pad_short_function): Likewise.
1765         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
1766
1767         * config/i386/i386.h (ix86_tune_indices): Add
1768         X86_TUNE_PAD_SHORT_FUNCTION.
1769         (TARGET_PAD_SHORT_FUNCTION): New.
1770
1771         * config/i386/i386.md (UNSPEC_NOPS): New.
1772         (nops): Likewise.
1773
1774 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
1775
1776         PR middle-end/45234
1777         * calls.c (expand_call): Make sure that all variable sized
1778         adjustments are multiple of preferred stack boundary after
1779         stack alignment.
1780
1781 2010-09-17  DJ Delorie  <dj@redhat.com>
1782
1783         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
1784         passed an invalid value, print an error instead of ICEing.
1785         (valid_psw_flag): New.
1786         (rx_expand_builtin): Call it for setpsw/clrpsw.
1787         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
1788
1789         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
1790         (bitclr_in_memory): Likewise.
1791         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
1792
1793 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
1794
1795         PR middle-end/45678
1796         * cfgexpand.c (update_stack_alignment): New.
1797         (get_decl_align_unit): Use it.
1798         (expand_one_stack_var_at): Call update_stack_alignment.
1799
1800 2010-09-17  Richard Guenther  <rguenther@suse.de>
1801
1802         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
1803         Properly copy the read string.
1804
1805 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
1806
1807         * doc/options.texi (Variable): Document.
1808         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
1809         generate target_flags declarations explicitly.  Don't define
1810         VarExists variables for the driver.
1811         * common.opt (target_flags): New Variable record.
1812         (flag_dump_unnumbered, flag_dump_unnumbered_links,
1813         flag_var_tracking, flag_var_tracking_assignments,
1814         flag_var_tracking_assignments_toggle): Don't mark variables with
1815         VarExists.
1816         * config/i386/i386.c (ix86_isa_flags): Don't define here.
1817         * config/i386/i386.opt (ix86_isa_flags): Define here.
1818         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
1819         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
1820         VarExists.
1821         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
1822         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
1823         Only define for generator programs.
1824         * rtlanal.c (target_flags): Remove.
1825         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
1826         flag_var_tracking_assignments_toggle): Remove.
1827
1828 2010-09-17  Michael Matz  <matz@suse.de>
1829
1830         PR tree-optimization/43432
1831         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
1832         Accept backwards consecutive accesses.
1833         (vect_create_data_ref_ptr): If step is negative generate
1834         decreasing IVs.
1835         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
1836         (perm_mask_for_reverse, reverse_vec_elements): New functions.
1837         (vectorizable_load): Handle loads with negative steps when easily
1838         possible.
1839
1840 2010-09-03  Jan Hubicka  <jh@suse.cz>
1841
1842         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
1843
1844 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
1845
1846         * config/v850/v850.c (v850_function_value_regno_p): Make static.
1847         Adjust comments. Declare.
1848         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
1849         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
1850
1851 2010-09-17  Richard Guenther  <rguenther@suse.de>
1852
1853         * common.opt (combine): Remove.
1854         * gcc.c (default_compilers): Remove specs testing combine.
1855         The C compilers no longer can combine.
1856         (option_map): Remove -combine.
1857         (display_help): Remove -combine.
1858         (driver_handle_option): Remove OPT_combine handling.
1859         (compile_input_file_p): Remove.
1860         (do_spec): Remove code concerning combine.
1861         (main): Likewise.
1862         * doc/invoke.texi: Remove traces of -combine.
1863         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
1864
1865 2010-09-17  Richard Guenther  <rguenther@suse.de>
1866
1867         PR middle-end/45678
1868         * builtins.c (fold_builtin_memory_op): Always properly adjust
1869         alignment of memory accesses.
1870
1871 2010-09-16  Jan Hubicka  <jh@suse.cz>
1872
1873         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
1874         processing clone.
1875
1876 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
1877
1878         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
1879
1880         * config/i386/i386.c (predict_jump): Add prototype.
1881         (flag_opts): Add -m8bit-idiv.
1882         (ix86_split_idivmod): New.
1883
1884         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
1885         Add 2 splitters for SI/DI mode divide.
1886         (divmod<mode>4_1): New pattern.
1887         (udivmod<mode>4_1): Likewise.
1888         (testdi_ccno_1): Likewise.
1889
1890         * config/i386/i386.opt (m8bit-idiv): New.
1891
1892         * doc/invoke.texi: Document -m8bit-idiv.
1893
1894 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
1895
1896         PR bootstrap/45680
1897         * config/i386/i386.c (min_insn_size): Moved out of the
1898         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
1899
1900 2010-09-16  Jan Hubicka  <jh@suse.cz>
1901
1902         * lto-cgraph.c (lto_output_node): Fix handling of clones.
1903         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
1904         unreachable clones with reachable clones.
1905         * tree-inline.c (copy_bb): Fix sanity checking when producing
1906         unreachable clone.
1907
1908 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
1909
1910         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
1911         (TARGET_MEMORY_MOVE_COST): Define.
1912         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
1913
1914 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
1915
1916         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
1917         maybe_tidy_empty_bb.
1918
1919         Revert:
1920         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
1921         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
1922
1923 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
1924
1925         * target.def (target_option.optimization): New hook.
1926         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
1927         TARGET_OPTION_OPTIMIZATION hook.
1928         * doc/tm.texi: Regenerate.
1929         * hooks.c (hook_void_int_int): New.
1930         * hooks.h (hook_void_int_int): Declare.
1931         * opts.c: Don't include tm_p.h.
1932         (decode_options): Use targetm.target_option.optimization instead
1933         of OPTIMIZATION_OPTIONS.
1934         * system.h (OPTIMIZATION_OPTIONS): Poison.
1935         * config/arm/arm-protos.h (arm_optimization_options): Remove.
1936         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
1937         (arm_optimization_options): Rename to arm_option_optimization.
1938         Make static.
1939         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
1940         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
1941         (cris_option_optimization): New.
1942         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
1943         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
1944         (crx_option_optimization): New.
1945         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
1946         * config/frv/frv-protos.h (frv_optimization_options): Remove.
1947         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
1948         (frv_optimization_options): Rename to frv_option_optimization.
1949         Make static.
1950         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
1951         * config/h8300/h8300.c (h8300_option_optimization): New.
1952         (TARGET_OPTION_OPTIMIZATION): Define.
1953         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
1954         * config/i386/i386-protos.h (optimization_options): Remove.
1955         * config/i386/i386.c (optimization_options): Rename to
1956         ix86_option_optimization.  Make static.
1957         (TARGET_OPTION_OPTIMIZATION): Define.
1958         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
1959         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
1960         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
1961         (ia64_optimization_options): Rename to ia64_option_optimization.
1962         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
1963         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
1964         commented-out definition.
1965         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
1966         instead of OPTIMIZATION_OPTIONS.
1967         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
1968         (m32r_option_optimization): New.
1969         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
1970         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
1971         Remove.
1972         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
1973         (mcore_option_optimization): New.
1974         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
1975         * config/mep/mep-protos.h (mep_optimization_options): Remove.
1976         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
1977         (mep_optimization_options): Rename to mep_option_optimization.
1978         Make static.  Take unused level and size parameters.
1979         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
1980         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
1981         (mmix_option_optimization): New.
1982         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
1983         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
1984         (pdp11_option_optimization): New.
1985         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
1986         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
1987         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
1988         (optimization_options): Rename to rs6000_option_optimization.
1989         Make static.
1990         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
1991         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
1992         * config/rx/rx.c (rx_set_optimization_options): Rename to
1993         rx_option_optimization.  Make static.  Take unused level and size
1994         parameters.
1995         (TARGET_OPTION_OPTIMIZATION): Define.
1996         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
1997         * config/s390/s390-protos.h (optimization_options): Remove.
1998         * config/s390/s390.c (optimization_options): Rename to
1999         s390_option_optimization.  Make static.  Don't mark size parameter
2000         unused.
2001         (TARGET_OPTION_OPTIMIZATION): Define.
2002         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
2003         * config/sh/sh-protos.h (sh_optimization_options): Remove.
2004         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
2005         (sh_optimization_options): Rename to sh_option_optimization.  Make
2006         static.  Don't mark parameters unused.
2007         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
2008         * config/spu/spu-protos.h (spu_optimization_options): Remove.
2009         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
2010         (spu_optimization_options): Rename to spu_option_optimization.
2011         Make static.
2012         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
2013         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
2014         (v850_option_optimization): New.
2015         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
2016         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
2017         (xtensa_option_optimization): New.
2018         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
2019
2020 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
2021
2022         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
2023         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
2024         * doc/tm.texi: Regenerate.
2025         * system.h (OVERRIDE_OPTIONS): Poison.
2026         * target.def (override): Default to hook_void_void.
2027         * targhooks.c (default_target_option_override): Remove.
2028         * genmodes.c, machmode.def: Update comments mentioning
2029         OVERRIDE_OPTIONS.
2030         * config/alpha/alpha-modes.def: Update comment mentioning
2031         alpha_override_options.
2032         * config/alpha/alpha-protos.h (override_options): Remove.
2033         * config/alpha/alpha.c (override_options): Rename to
2034         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
2035         (TARGET_OPTION_OVERRIDE): Define.
2036         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
2037         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
2038         of OVERRIDE_OPTIONS.
2039         * config/arc/arc-protos.h (arc_init): Remove.
2040         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
2041         (arc_init): Rename to arc_option_override.  Make static.
2042         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
2043         (OVERRIDE_OPTIONS): Remove.
2044         * config/arm/arm-protos.h (arm_override_options): Remove.
2045         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
2046         (arm_override_options): Rename to arm_option_override.  Make
2047         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
2048         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
2049         * config/arm/arm.md: Update comment referring to arm_override_options.
2050         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
2051         instead of OVERRIDE_OPTIONS.
2052         * config/avr/avr-protos.h (avr_override_options): Remove.
2053         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
2054         (avr_override_options): Rename to avr_option_override.  Make static.
2055         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
2056         * config/bfin/bfin-protos.h (override_options): Remove (twice).
2057         * config/bfin/bfin.c (override_options): Rename to
2058         bfin_option_override.  Make static.
2059         (TARGET_OPTION_OVERRIDE): Define.
2060         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
2061         * config/cris/cris-protos.h (cris_override_options): Remove.
2062         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
2063         (cris_override_options): Rename to cris_option_override.  Make static.
2064         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
2065         * config/frv/frv-protos.h (frv_override_options): Remove.
2066         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
2067         (frv_override_options): Rename to frv_option_override.  Make static.
2068         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
2069         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
2070         * config/h8300/h8300.c (h8300_init_once): Rename to
2071         h8300_option_override.  Make static.
2072         (TARGET_OPTION_OVERRIDE): Define.
2073         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
2074         * config/i386/i386-protos.h (override_options): Remove.
2075         * config/i386/i386.c (override_options): Rename to
2076         ix86_option_override_internal.  Make static.  Comments referring
2077         to this function and callers changed.
2078         (ix86_option_override): New.
2079         (TARGET_OPTION_OVERRIDE): Define.
2080         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
2081         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
2082         * config/ia64/ia64.c (ia64_file_start): Update comment referring
2083         to ia64_override_options.
2084         * config/iq2000/iq2000-protos.h (override_options): Remove.
2085         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
2086         (override_options): Rename to iq2000_option_override.  Make static.
2087         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
2088         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
2089         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
2090         (lm32_override_options): Rename to lm32_option_override.  Make static.
2091         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
2092         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
2093         (m32r_option_override): New.
2094         (m32r_init): Update comment.
2095         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
2096         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
2097         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
2098         (m68hc11_override_options): Rename to m68hc11_option_override.
2099         Make static.  Return void.
2100         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
2101         * config/m68k/m68k-protos.h (override_options): Remove.
2102         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
2103         (override_options): Rename to m68k_option_override.  Make static.
2104         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
2105         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
2106         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
2107         (mcore_override_options): Rename to mcore_option_override.  Make
2108         static.
2109         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
2110         * config/mep/mep-protos.h (mep_override_options): Remove.
2111         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
2112         (mep_override_options): Rename to mep_option_override.  Make static.
2113         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
2114         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
2115         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
2116         (mmix_override_options): Rename to mmix_option_override.  Make static.
2117         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
2118         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
2119         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
2120         (mn10300_override_options): Rename to mn10300_option_override.
2121         Make static.
2122         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
2123         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
2124         * config/moxie/moxie.c (moxie_override_options): Rename to
2125         moxie_option_override.  Make static.
2126         (TARGET_OPTION_OVERRIDE): Define.
2127         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
2128         * config/picochip/picochip-protos.h (picochip_override_options):
2129         Remove.  Update comment referring to picochip_override_options.
2130         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
2131         (picochip_override_options): Rename to picochip_option_override.
2132         Make static.  Update comment and definition of
2133         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
2134         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
2135         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2136         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2137         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2138         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2139         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2140         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
2141         instead of OVERRIDE_OPTIONS.
2142         * config/rs6000/rs6000-modes.def: Update comment referring to
2143         rs6000_override_options.
2144         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
2145         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
2146         (rs6000_override_options): Rename to
2147         rs6000_option_override_internal.  Make static.  Commented
2148         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
2149         (rs6000_option_override): New.
2150         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
2151         instead of OVERRIDE_OPTIONS.
2152         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2153         * config/s390/s390-protos.h (override_options): Remove.
2154         * config/s390/s390.c (override_options): Rename to
2155         s390_option_override.  Make static.
2156         (TARGET_OPTION_OVERRIDE): Define.
2157         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
2158         * config/score/score-protos.h (score_override_options): Remove.
2159         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
2160         (score_override_options): Rename to score_option_override.  Make
2161         static.
2162         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
2163         Update comment referring to override_options.
2164         * config/score/score3.c (score3_override_options): Rename to
2165         score3_option_override.
2166         * config/score/score3.h (score3_override_options): Rename to
2167         score3_option_override.
2168         * config/score/score7.c (score7_override_options): Rename to
2169         score7_option_override.
2170         * config/score/score7.h (score7_override_options): Rename to
2171         score7_option_override.
2172         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
2173         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
2174         (sparc_override_options): Rename to sparc_option_override.  Make
2175         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
2176         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
2177         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
2178         instead of OVERRIDE_OPTIONS.
2179         * config/spu/spu-protos.h (spu_override_options): Remove.
2180         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
2181         (spu_override_options): Rename to spu_option_override.  Make
2182         static.
2183         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
2184         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
2185         OVERRIDE_OPTIONS.
2186         * config/vax/vax-protos.h (override_options): Remove.
2187         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
2188         (override_options): Rename to vax_option_override.  Make static.
2189         Call SUBTARGET_OVERRIDE_OPTIONS.
2190         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
2191         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
2192         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
2193         * config/xtensa/xtensa-protos.h (override_options): Remove.
2194         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
2195         (override_options): Rename to xtensa_option_override.  Make static.
2196         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
2197
2198 2010-09-16  Richard Guenther  <rguenther@suse.de>
2199
2200         PR tree-optimization/45623
2201         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
2202         (get_constraint_for_component_ref): If computing a constraint
2203         for the rhs handle type punning through unions.
2204         (get_constraint_for_address_of): Adjust.
2205         (get_constraint_for_1): Likewise.
2206         (get_constraint_for): Likewise.
2207         (get_constraint_for_rhs): New function.
2208         (do_structure_copy): Adjust.
2209         (make_constraint_to): Likewise.
2210         (handle_const_call): Likewise.
2211         (find_func_aliases): Likewise.
2212         (process_ipa_clobber): Likewise.
2213         (create_variable_info_for): Likewise.
2214
2215 2010-09-16  Ira Rosen  <irar@il.ibm.com>
2216
2217         * tree-vectorizer.c: Fix documentation.
2218         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
2219         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
2220         is_pattern_stmt_p, is_loop_header_bb_p,
2221         stmt_vinfo_set_inside_of_loop_cost,
2222         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
2223         known_alignment_for_access_p): Likewise.
2224         * tree-vect-loop.c: Fix documentation.
2225         (vect_get_cost): Start function name from new line.
2226         * tree-vect-data-refs.c: Fix documentation.
2227         * tree-vect_stmts.c: Likewise.
2228         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
2229         (vectorizable_store): Free vec_oprnds if allocated.
2230         (vectorizable_condition): Initialize several variables to avoid
2231         warnings.
2232         * tree-vect-slp.c: Fix documentation.
2233
2234 2010-09-16  Richard Guenther  <rguenther@suse.de>
2235
2236         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
2237         is TS_TRANSLATION_UNIT_DECL.
2238         (initialize_tree_contains_struct): Adjust.
2239         (all_translation_units): New global vector.
2240         (build_translation_unit_decl): New function.
2241         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
2242         (struct tree_translation_unit_decl): New.
2243         (all_translation_units): Declare.
2244         (union tree_node): Add translation_unit_decl member.
2245         (build_translation_unit_decl): Declare.
2246         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
2247         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
2248         New function.
2249         (pack_value_fields): Call it.
2250         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
2251         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
2252         (lto_output_tree_pointers): Call it.
2253         * lto-streamer-in.c (lto_input_tree_ref): Handle references
2254         to TRANSLATION_UNIT_DECL.
2255         (unpack_ts_translation_unit_decl_value_fields): New function.
2256         (unpack_value_fields): Call it.
2257         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
2258         (lto_input_tree_pointers): Call it.
2259         * lto-streamer.c (check_handled_ts_structures): Adjust.
2260         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
2261         * c-decl.c (all_translation_units): Remove.
2262         (pop_scope): Use build_translation_unit_decl.
2263         (collect_all_refs): Adjust.
2264         (for_each_global_decl): Likewise.
2265         (c_write_global_declarations): Likewise.
2266
2267 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
2268
2269         PR bootstrap/45686
2270         * fold-const.c (fold_checksum_tree): Change slot from const void **
2271         to void **, use CONST_CAST_TREE to store into *slot.
2272
2273 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
2274
2275         * config/i386/i386.md: Remove unneeded empty conditions and
2276         preparation statements from expanders.
2277         * config/i386/mmx.md: Ditto.
2278         * config/i386/sse.md: Ditto.
2279
2280 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
2281
2282         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
2283
2284 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
2285
2286         PR rtl-optimization/45593
2287         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
2288         insns that were in delay slots as stand-alone insns.
2289
2290 2010-09-15  Ian Lance Taylor  <iant@google.com>
2291
2292         * incpath.c (remove_duplicates): If name is not a directory, issue
2293         a warning rather than an error.
2294
2295 2010-09-15  Martin Jambor  <mjambor@suse.cz>
2296
2297         PR middle-end/45644
2298         * tree-sra.c (create_access): Check for bit-fields directly.
2299
2300 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
2301
2302         PR tree-optimization/45633
2303         * tree-cfg.c (verify_gimple_assign_binary): Allow
2304         MINUS_EXPR with lhs and rhs1 pointer vector and
2305         rhs2 sizetype vector.
2306         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
2307         or vector pointer use TER to optimize pointer subtraction.
2308
2309 2010-09-15  Jie Zhang  <jie@codesourcery.com>
2310
2311         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
2312         fcmpd to fcmps.
2313
2314 2010-09-15  Ian Lance Taylor  <iant@google.com>
2315
2316         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
2317
2318 2010-09-15  Ian Lance Taylor  <iant@google.com>
2319
2320         * function.c (get_arg_pointer_save_area): Set
2321         arg_pointer_save_area_init to true.
2322
2323 2010-09-15  Martin Jambor  <mjambor@suse.cz>
2324
2325         * tree-sra.c (generate_subtree_copies): Updated comment.
2326         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
2327         obtained from the statement iterator instead.
2328         (load_assign_lhs_subreplacements): Removed parameters lhs and
2329         right_offset, which is obtained from top_racc instead.  Parameter lacc
2330         is now expected to be the root of the processed tree rather than root's
2331         first child.  Updated all callers.
2332
2333 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
2334
2335         * config/pdp11/pdp11.c (register_move_cost): Rename to
2336         pdp11_register_move_cost.
2337         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
2338         pdp11_register_move_cost.
2339         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
2340         pdp11_register_move_cost instead of register_move_cost.
2341
2342 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
2343
2344         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
2345         pattern for vmovn. Expansion in case of non
2346         -mvectorize-with-neon-quad.
2347         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
2348         non- -mvectorize-with-neon-quad case.
2349         (move_lo_quad_<mode>): New expansion to vmov into low part.
2350         (move_hi_quad_<mode>): New expansion to vmov into high part.
2351         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
2352         (move_lo_quad_v4sf): Likewise.
2353         (move_lo_quad_v8hi): Likewise.
2354         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
2355         low part.
2356         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
2357         high part.
2358         * config/arm/iterators.md (ANY128): New mode iterator.
2359         (V_narrow_pack): New mode attribute.
2360         (V_HALF): Add attribute.
2361         (V_DOUBLE): Add attribute.
2362         (V_mode_nunits): Add attribute.
2363
2364 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
2365
2366         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
2367         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
2368
2369 2010-09-15  Olivier Hainque  <hainque@adacore.com>
2370             Jose Ruiz  <ruiz@adacore.com>
2371
2372         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
2373         * config/alpha/osf5-unwind.h: New file.
2374
2375 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2376
2377         PR bootstrap/45672
2378         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
2379         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
2380         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
2381
2382 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2383
2384         * c-lang.h (struct lang_type): Add variable_size GTY option.
2385
2386 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2387
2388         PR bootstrap/45672
2389         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
2390
2391 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2392
2393         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
2394         result isn't used in memory address.
2395
2396 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2397
2398         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
2399         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
2400         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
2401         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
2402         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
2403         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
2404
2405         * target.def: Add units_per_simd_word to vectorize.
2406
2407         * targhooks.c (default_units_per_simd_word): New.
2408         * targhooks.h (default_units_per_simd_word): Likewise.
2409         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
2410         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2411         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
2412         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2413         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
2414         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2415         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
2416         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2417
2418         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
2419         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
2420
2421         * tree-vect-stmts.c: Don't include "tm_p.h".
2422         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
2423         with targetm.vectorize.units_per_simd_word.
2424
2425         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
2426
2427         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
2428
2429         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
2430         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
2431
2432         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
2433         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
2434
2435         * doc/tm.texi: Regenerated.
2436
2437 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2438
2439         * tree-vect-stmts.c: Include "tm_p.h".
2440
2441         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
2442         out of RTX_CODE.
2443
2444 2010-09-14  Martin Jambor  <mjambor@suse.cz>
2445
2446         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
2447         location of generated statement.  Changed all callers.
2448         (build_ref_for_model): New parameter loc which used to set location of
2449         all generated expressions.  Changed all callers.
2450         (generate_subtree_copies): Likewise.
2451         (init_subtree_with_zero): Likewise.
2452         (sra_modify_expr): Set locations of all generated statements and
2453         expressions to the location the original statement.
2454         (handle_unscalarized_data_in_subtree): Likewise.
2455         (load_assign_lhs_subreplacements): Likewise.
2456         (sra_modify_constructor_assign): Likewise.
2457         (sra_modify_assign): Likewise.
2458
2459 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
2460
2461         PR target/45277
2462         PR target/45363
2463         PR target/45407
2464         * doc/install.texi (sparc*-*-*): New section.
2465         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
2466
2467 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
2468
2469         PR middle-end/45567
2470         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
2471         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
2472         (expand_builtin): Adjust caller.
2473         (expand_builtin_unop): Only use subtarget if it has the right mode.
2474
2475 2010-09-14  Tristan Gingold  <gingold@adacore.com>
2476
2477         * configure.ac (plugins): Fix typos.
2478         * configure: Regenerate.
2479
2480 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
2481
2482         PR debug/45660
2483         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
2484         gen_type_die for function/method return type.
2485
2486 2010-09-14  Ira Rosen  <irar@il.ibm.com>
2487
2488         PR tree-optimization/45470
2489         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
2490         can throw an exception.
2491         * tree-vect-stmts.c (vectorizable_call): Likewise.
2492
2493 2010-09-14  DJ Delorie  <dj@redhat.com>
2494
2495         PR target/44749
2496         * config/mep/mep-protos.h (mep_save_register_info,
2497         mep_reinit_regs, mep_init_regs): Declare.
2498
2499         * config/mep/mep.c: Move all target definitions to the end of the
2500         file to avoid the need for duplicate declarations.
2501         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
2502         (mep_reorg_erepeat): Remove unused variables.
2503         (mep_expand_builtin): Likewise.
2504
2505         * config/mep/mep-pragma.c: Don't include rtl.h.
2506         (INVALID_REGNUM): New.
2507         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
2508         functions.
2509         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
2510         Avoid enum/integer math.
2511
2512 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
2513
2514         PR target/44749
2515         * config/mep/t-mep (GTM_H): Add insn-constants.h.
2516         * config/mep/mep.c (mep_conditional_register_usage): Take no
2517         parameters.
2518         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
2519         prototype.
2520         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
2521         call to mep_conditional_register_usage.
2522
2523 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
2524
2525         PR debug/43937
2526         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
2527         the DECL as well.
2528
2529 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
2530
2531         PR rtl-optimization/45617
2532         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
2533         even if low N bits of X aren't known to be zero.
2534
2535 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2536
2537         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
2538
2539         * config/i386/i386.c (initial_ix86_tune_features): Add
2540         X86_TUNE_VECTORIZE_DOUBLE.
2541         (ix86_units_per_simd_word): New.
2542
2543         * config/i386/i386.h (ix86_tune_indices): Add
2544         X86_TUNE_VECTORIZE_DOUBLE.
2545         (TARGET_VECTORIZE_DOUBLE): New.
2546         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
2547
2548 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
2549
2550         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
2551         (new_temp_expr_table): Allocate call_cnt vector.
2552         (free_temp_expr_table): Free it.
2553         (process_replaceable): Add call_cnt parm and set in vector.
2554         (find_replaceable_in_bb): Skip replacement if def/use span a call.
2555         (debug_ter): Dump call_cnt value, remove stderr uses.
2556
2557 2010-09-13  Jan Hubicka  <jh@suse.cz>
2558
2559         * tree.c (build_zero_cst): New.
2560         * tree.h (build_zero_cst): Declare.
2561         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
2562         (get_base_constructor): Break out from ...
2563         (fold_const_aggregate_ref): Here; handle empty constructors.
2564
2565 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2566
2567         * config/arm/arm.md: (define_attr "conds"): Update comment.
2568         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
2569         conds attribute to clob.
2570         (arm_sync_compare_and_swapsi): Likewise.
2571         (arm_sync_compare_and_swap<mode>): Likewise.
2572         (arm_sync_lock_test_and_setsi): Likewise.
2573         (arm_sync_lock_test_and_set<mode>): Likewise.
2574         (arm_sync_new_<sync_optab>si): Likewise.
2575         (arm_sync_new_nandsi): Likewise.
2576         (arm_sync_new_<sync_optab><mode>): Likewise.
2577         (arm_sync_new_nand<mode>): Likewise.
2578         (arm_sync_old_<sync_optab>si): Likewise.
2579         (arm_sync_old_nandsi): Likewise.
2580         (arm_sync_old_<sync_optab><mode>): Likewise.
2581         (arm_sync_old_nand<mode>): Likewise.
2582
2583 2010-09-13  Olivier Hainque  <hainque@adacore.com>
2584
2585         * fwprop.c (forward_propagate_and_simplify): Only attach a
2586         REG_EQUAL note to an insn if the destination is a register.
2587         * gcse.c (try_replace_reg): Likewise.
2588
2589 2010-09-13  Richard Guenther  <rguenther@suse.de>
2590
2591         PR tree-optimization/45611
2592         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
2593         (copy_ref_info): Likewise.
2594
2595 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
2596
2597         PR debug/45604
2598         PR debug/45419
2599         PR debug/45408
2600         * tree-pretty-print.c (dump_generic_node): Disregard top-level
2601         types of MEM_REF pointer types to the same type.
2602
2603 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
2604
2605         PR rtl-optimization/41087
2606         * ifcvt.c (noce_get_condition): Don't allow conditions with
2607         side-effects.
2608
2609 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
2610
2611         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2612         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
2613         * config/frv/frv.c (frv_register_move_cost): Make static. Change
2614         arguments type to reg_class_t. Add mode argument.
2615         (frv_memory_move_cost): New.
2616         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
2617
2618 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
2619
2620         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
2621         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
2622
2623 2010-09-10  Jan Hubicka  <jh@suse.cz>
2624
2625         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
2626
2627 2010-09-10  Richard Guenther  <rguenther@suse.de>
2628
2629         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
2630         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
2631         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
2632         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
2633         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
2634
2635 2010-09-10  Richard Guenther  <rguenther@suse.de>
2636
2637         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
2638         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
2639         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
2640         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
2641
2642 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2643
2644         PR middle-end/45634
2645         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
2646         of string folding is of integral type.
2647
2648 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
2649
2650         * doc/invoke.texi (-x): Fix typo.
2651
2652 2010-09-10  Richard Guenther  <rguenther@suse.de>
2653
2654         PR debug/44115
2655         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
2656         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
2657         Output DECL_DEBUG_EXPR.
2658         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
2659         Input DECL_DEBUG_EXPR.
2660
2661 2010-09-10  Richard Guenther  <rguenther@suse.de>
2662
2663         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
2664         (build_index_type): Implement in terms of build_range_type.
2665         (build_range_type): Do not allow NULL_TREE type, improve
2666         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
2667         if we didn't hash.
2668         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
2669         create a distinct copy of the type.
2670
2671 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
2672
2673         * configure: Regenerated.
2674         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
2675
2676 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2677
2678         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
2679         * config/arm/cortex-a9-neon.md: New and partially generated.
2680         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
2681
2682 2010-09-10  Richard Guenther  <rguenther@suse.de>
2683
2684         * tree.h (build_index_2_type): Remove.
2685         * tree.c (build_index_2_type): Remove.
2686
2687 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
2688
2689         PR bootstrap/45630
2690         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
2691         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
2692         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
2693
2694 2010-09-10  Martin Jambor  <mjambor@suse.cz>
2695
2696         PR tree-optimization/44972
2697         * tree-sra.c: Include toplev.h.
2698         (build_ref_for_offset): Entirely reimplemented.
2699         (build_ref_for_model): New function.
2700         (build_user_friendly_ref_for_offset): New function.
2701         (analyze_access_subtree): Removed build_ref_for_offset check.
2702         (propagate_subaccesses_across_link): Likewise.
2703         (create_artificial_child_access): Use
2704         build_user_friendly_ref_for_offset.
2705         (propagate_subaccesses_across_link): Likewise.
2706         (ref_expr_for_all_replacements_p): Removed.
2707         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
2708         (sra_modify_expr): Use build_ref_for_model.
2709         (load_assign_lhs_subreplacements): Likewise.
2710         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
2711         checks for return values of build_ref_for_offset.
2712         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
2713         build_ref_for_offset.
2714         * ipa-prop.h: Include gimple.h
2715         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
2716         (ipa_analyze_indirect_call_uses): Update comment.
2717         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
2718         (IPA_PROP_H): Likewise.
2719
2720 2010-09-10  Martin Jambor  <mjambor@suse.cz>
2721
2722         PR tree-optimization/44972
2723         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
2724         calling build_ref_for_offset.
2725
2726 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2727
2728         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
2729         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
2730         * config/arm/arm-tune.md: Regenerate.
2731         * doc/invoke.texi (ARM Options): Document it.
2732
2733 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
2734
2735         * config/i386/i386.c: Include sched-int.h.
2736         (TARGET_SCHED_DISPATCH): Defined.
2737         (TARGET_SCHED_DISPATCH_DO): Defined.
2738         (DISPATCH_WINDOW_SIZE): Defined.
2739         (MAX_DISPATCH_WINDOWS): Defined.
2740         (MAX_INSN): Defined.
2741         (MAX_IMM): Defined.
2742         (MAX_IMM_SIZE): Defined.
2743         (MAX_IMM_32): Defined.
2744         (MAX_IMM_64): Defined.
2745         (MAX_LOAD): Defined.
2746         (MAX_STORE): Defined.
2747         (BIG): Defined.
2748         (dispatch_group): New.
2749         (num_allowable_groups): New.
2750         (group_name): New.
2751         (sched_insn_info_s): New.
2752         (dispatch_windows_s): New.
2753         (imm_info_s): New.
2754         (dispatch_window_list): New.
2755         (dispatch_window_list1): New.
2756         (get_mem_group): New.
2757         (is_cmp): New.
2758         (dispatch_violation): New.
2759         (is_branch): New.
2760         (is_prefetch): New.
2761         (init_window): New.
2762         (allocate_window): New.
2763         (init_dispatch_sched): New.
2764         (is_end_basic_block): New.
2765         (process_end_window): New.
2766         (allocate_next_window): New.
2767         (find_constant_1): New.
2768         (find_constant): New.
2769         (get_num_immediates): New.
2770         (has_immediate): New.
2771         (get_insn_path): New.
2772         (get_insn_group): New.
2773         (count_num_restricted): New.
2774         (fits_dispatch_window): New.
2775         (add_insn_window): New.
2776         (add_to_dispatch_window): New.
2777         (debug_dispatch_window_file): New.
2778         (debug_dispatch_window): New.
2779         (debug_insn_dispatch_info_file): New.
2780         (debug_ready_dispatch): New.
2781         (do_dispatch): New.
2782         (has_dispatch): New.
2783         * config/i386/i386.h (debug_ready_dispatch): Declared.
2784         (debug_dispatch_window): Declared.
2785         * config/i386/i386.opt (mdispatch-scheduler): New flag.
2786         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
2787         (TARGET_SCHED_DISPATCH_DO): New.
2788         * doc/tm.texi: Regererated.
2789         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
2790         ready_remove_first_dispatch
2791         (schedule_block): Call targetm.sched.dispatch and
2792         targetm.sched.dispatch_do.
2793         (sched_init): Call targetm.sched.dispatch and
2794         targetm.sched.dispatch_do.
2795         (ready_remove_first_dispatch): New.
2796         (number_in_ready): New.
2797         (get_ready_element): New.
2798         * hooks.c (hook_bool_rtx_int_false): New.
2799         (hook_void_rtx_int): New.
2800         * hooks.h (hook_bool_rtx_int_false): Declared.
2801         (hook_void_rtx_int): Declared.
2802         * sched-int.h (IS_DISPATCH_ON): Defined.
2803         (IS_CMP): Defined.
2804         (DISPATCH_VIOLATION): Defined.
2805         (FITS_DISPATCH_WINDOW): Defined.
2806         (DISPATCH_INIT): Defined.
2807         (ADD_TO_DISPATCH_WINDOW): Defined.
2808         (get_ready_element): Declared.
2809         (number_in_ready): Declared.
2810         * target.def (dispatch): Defined.
2811         (dispatch_do): Defined.
2812
2813 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
2814
2815         PR middle-end/45312
2816         * reload1.c (merge_assigned_reloads): Remove.
2817         (reload_as_needed): Don't call it.
2818
2819 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
2820
2821         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
2822         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2823         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
2824
2825 2010-09-09  Matthias Klose  <doko@ubuntu.com>
2826
2827         PR bootstrap/43847
2828         * configure.ac (--enable-plugin): Enhance for cross builds.
2829         * configure: Regenerate.
2830
2831 2010-09-09  Jan Hubicka  <jh@suse.cz>
2832
2833         PR tree-optimization/45598
2834         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
2835         string folding is of integral type.
2836
2837 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
2838
2839         * configure.ac (gnu_indirect_function): New test.
2840         * configure: Rebuilt.
2841         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
2842         * defaults.h (IFUNC_ASM_TYPE): Provide default.
2843
2844         * doc/extend.texi (Function Attributes): Document ifunc.
2845         * varasm.c (do_assemble_alias): Deal with ifuncs too.
2846
2847 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
2848
2849         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
2850         epilogue instruction move.
2851
2852 2010-09-09  Jan Hubicka  <jh@suse.cz>
2853
2854         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
2855         command line to allow more partitions than input files.
2856
2857 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
2858
2859         PR middle-end/44554
2860         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
2861
2862 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
2863
2864         PR middle-end/40386
2865         * ira.c (pseudo_for_reload_consideration_p): Don't use
2866         flag_ira_share_spill_slots.
2867
2868 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2869
2870         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
2871         point zero operands that fit into a single GPR.
2872         (s390_preferred_reload_class): Ensure we only return general-purpose
2873         register classes.
2874         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
2875         floating-point zero operands into GPRs.
2876         ("*mov<mode>_64"): Likewise.
2877         ("mov<mode>"): Likewise using lhi.
2878
2879 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2880
2881         * config/s390/s390.c (s390_symref_operand_p): Return false for
2882         literal pool references.
2883         (s390_check_qrst_address): Update caller.
2884
2885 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
2886
2887         * config/i386/predicates.md (ext_register_operand): Check that
2888         SUBREG_REG is really a register before looking for REGNO.
2889         (reg_not_xmm0_operand): Handle SUBREGs correctly.
2890         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
2891
2892 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
2893
2894         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
2895         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
2896         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
2897         * print-rtl.c (print_rtx): Likewise.
2898         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
2899         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
2900         for ADDR_EXPR with non-addressable object.
2901         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
2902         (struct dw_val_struct): Add v.val_decl_ref.
2903         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
2904         Handle DW_OP_GNU_implicit_pointer.
2905         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
2906         (get_ref_die_offset_label): New function.
2907         (implicit_ptr_descriptor): New function.
2908         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
2909         (loc_descriptor): Likewise.
2910         (gen_variable_die): Put even definitions into decl_die_table.
2911         (resolve_addr_in_expr): Resolve still unresolved
2912         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
2913         return false.
2914         (dwarf2out_finish): Call output_location_lists after outputting
2915         .debug_info and .debug_abbrev instead of before.
2916
2917 2010-09-09  Roland McGrath  <roland@redhat.com>
2918
2919         * dwarf2out.c (DWARF_REF_SIZE): Define.
2920         (size_of_loc_descr): Use it for DW_OP_call_ref.
2921
2922 2010-09-09  Alan Modra  <amodra@gmail.com>
2923
2924         * doc/invoke.text: Reinstate mcmodel=medium.
2925         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2926         CMODEL_MEDIUM as default.
2927         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
2928         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
2929         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
2930         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
2931
2932 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2933
2934         PR target/45250
2935         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
2936         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
2937         (builtin_longjmp): Likewise.
2938         (allocate_stack): Use hard_frame_pointer_rtx instead of
2939         frame_pointer_rtx.
2940         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
2941         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
2942         (pa_can_eliminate): Likewise.
2943         (TARGET_INTERNAL_ARG_POINTER): Define.
2944         (TARGET_CAN_ELIMINATE): Define.
2945         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
2946         pointer.
2947         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
2948         (pa_internal_arg_pointer, pa_can_eliminate,
2949         pa_initial_elimination_offset): New.
2950         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
2951         (HARD_FRAME_POINTER_REGNUM): Set to register three.
2952         (INITIAL_FRAME_POINTER_OFFSET): Delete.
2953         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
2954         Define.
2955         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
2956         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
2957         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
2958         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
2959         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
2960         new soft frame pointer.
2961         * config/pa/pa64-regs.h: Likewise.
2962
2963 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
2964
2965         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
2966         numerical constant.
2967         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
2968
2969 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
2970
2971         PR debug/45531
2972         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
2973
2974 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
2975
2976         PR debug/45419
2977         PR debug/45408
2978         * tree-pretty-print.c (dump_generic_node): Disregard top-level
2979         qualifiers in otherwise equal MEM_REF pointer types.
2980         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
2981         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
2982
2983 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2984
2985         PR target/44392
2986         * config/arm/arm.md (bswapsi2): Handle condition correctly
2987         for armv6 and optimize_size.
2988
2989 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2990
2991         PR other/18555
2992         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
2993
2994 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
2995
2996         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
2997         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
2998         ix86_expand_strlen, legitimate_pic_address_disp_p,
2999         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
3000         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
3001         ix86_check_movabs, ix86_secondary_memory_needed): Change function
3002         prototype to bool.
3003         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
3004         return_in_memory_ms_64, ix86_check_movabs,
3005         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
3006         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
3007         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
3008         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
3009         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
3010         ix86_secondary_memory_needed): Change to bool.  Return
3011         "true" and "false" values.
3012         * config/i386/i386.md: Return "true" and "false" values.
3013
3014 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3015
3016         * doc/sourcebuild.texi (Effective-Target Keywords): Document
3017         run_expensive_tests.
3018
3019 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3020
3021         * toplev.c (output_stack_usage): Use lbasename instead of basename.
3022
3023 2010-09-08  Martin Jambor  <mjambor@suse.cz>
3024
3025         PR other/45443
3026         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
3027         at -O3.
3028
3029 2010-09-08  Richard Guenther  <rguenther@suse.de>
3030
3031         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
3032         (visit): Adjust.
3033         (iterative_hash_gimple_type): Likewise.
3034         (gimple_type_hash): Likewise.
3035         (gimple_register_type): Likewise.
3036         (print_gimple_types_stats): Likewise.
3037         (free_gimple_type_tables): Likewise.
3038
3039 2010-09-08  Michael Matz  <matz@suse.de>
3040
3041         PR tree-optimization/43430
3042         * tree-vect-stmts.c (vectorizable_condition): Support multiple
3043         copies for conditional statements if it's not part of a reduction.
3044
3045 2010-09-08  Michael Matz  <matz@suse.de>
3046
3047         PR tree-optimization/33244
3048         * tree-ssa-sink.c (statement_sink_location): Don't sink into
3049         empty loop latches.
3050
3051 2010-09-08  Richard Guenther  <rguenther@suse.de>
3052
3053         PR tree-optimization/45578
3054         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
3055         Be more careful when transfering alignment information to
3056         the new induction variable.
3057         (copy_ref_info): Likewise.
3058
3059 2010-09-08  Richard Guenther  <rguenther@suse.de>
3060
3061         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
3062         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
3063
3064 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
3065
3066         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
3067         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
3068
3069 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
3070
3071         PR doc/45587
3072         * doc/md.texi: Fixed modes on several standard pattern names.
3073
3074 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
3075
3076         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
3077         (ashl<mode>3): ...this.
3078         (loongson_psra<V_suffix>): Rename to...
3079         (ashr<mode>3): ...this.
3080         (loongson_psrl<V_suffix>): Rename to...
3081         (lshr<mode>3): ...this.
3082         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
3083         (CODE_FOR_loongson_psllw): Define.
3084         (CODE_FOR_loongson_psrlh): Define.
3085         (CODE_FOR_loongson_psrlw): Define.
3086         (CODE_FOR_loongson_psrah): Define.
3087         (CODE_FOR_loongson_psraw): Define.
3088
3089 2010-09-07  Richard Henderson  <rth@redhat.com>
3090
3091         * tree-vect-data-refs.c: Include tm_p.h.
3092         * Makefile.in (tree-vect-data-refs.o): Update deps.
3093         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
3094         Move delarations outside #ifdef RTX_CODE.
3095
3096 2010-09-07  Richard Henderson  <rth@redhat.com>
3097
3098         * final.c (rest_of_handle_final): Unconditionally do
3099         output_function_exception_table before assemble_end_function.
3100
3101 2010-09-07  Jan Hubicka  <jh@suse.cz>
3102
3103         * tree-inline.c (tree_inlinable_function_p): Do not test
3104         DECL_REPLACEABLE_P.
3105         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
3106         update_callee_keys, cgraph_decide_inlining): Test function availability.
3107         * cif-code.def (OVERWRITABLE): New code.
3108
3109 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
3110             Jack Howarth  <howarth@bromo.med.uc.edu>
3111
3112         PR target/36502
3113         PR target/42313
3114         PR target/44651
3115         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
3116         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
3117         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
3118         MAX macro.
3119
3120 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3121
3122         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
3123         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
3124
3125 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3126
3127         * config.gcc: Don't append t-android for Android targets.
3128
3129         * config/t-android: Removed.
3130
3131 2010-09-07  Richard Henderson  <rth@redhat.com>
3132
3133         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
3134         * doc/tm.texi.in: Add doc marker.
3135         * doc/tm.texi: Rebuild.
3136         * except.c (switch_to_exception_section): Always build.
3137         (output_one_function_exception_table): Move section switch,
3138         personality output, and label output ...
3139         (output_function_exception_table): ... here.  Use the new
3140         personality hook.
3141
3142         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
3143         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
3144         TARGET_ASM_INIT_SECTIONS): New.
3145         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
3146         make static.
3147         (TARGET_ASM_UNWIND_EMIT): Update to match.
3148         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
3149
3150         * config/arm/arm.c (arm_asm_emit_except_personality): New.
3151         (arm_asm_init_sections): New.
3152         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
3153
3154 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3155
3156         * config/arm/arm.md: Remove unused variable.
3157
3158 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
3159
3160         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3161         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
3162         (m32r_memory_move_cost): New function.
3163
3164 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3165
3166         * config.gcc: Append t-android for Android targets.
3167
3168         * config/t-android: New.
3169
3170 2010-09-07  Richard Henderson  <rth@redhat.com>
3171
3172         * target.def (unwind_emit_before_insn): New hook.
3173         * doc/tm.texi.in: Add @hook marker for it.
3174         * doc/tm.texi: Rebuild.
3175         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
3176
3177 2010-09-07  Martin Jambor  <mjambor@suse.cz>
3178
3179         PR fortran/43665
3180         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
3181         are any type attributes.
3182
3183 2010-09-07  Jan Hubicka  <jh@suse.cz>
3184
3185         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
3186         array_ref_low_bound in string access folding.
3187
3188 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
3189
3190         PR target/45206
3191         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
3192         eh_return fixup sequence.
3193
3194 2010-09-07  Jan Hubicka  <jh@suse.cz>
3195
3196         * gimple-fold.c (maybe_fold_reference): Verify that operand is
3197         gimple_min_invariant.
3198
3199 2010-09-07  Richard Guenther  <rguenther@suse.de>
3200
3201         PR middle-end/45569
3202         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
3203         nor CONSTRUCTOR can trap.
3204         * tree-complex.c (update_complex_assignment): Update EH info.
3205
3206 2010-09-07  Richard Guenther  <rguenther@suse.de>
3207
3208         PR middle-end/45569
3209         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
3210         * passes.c (execute_function_todo): Do not verify anything if
3211         we saw errors.
3212
3213 2010-09-07  Richard Guenther  <rguenther@suse.de>
3214
3215         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
3216
3217 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
3218
3219         PR target/43137
3220         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
3221         New define_mode_attrs.
3222         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
3223         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
3224         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
3225         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
3226         Remove pool_range attribute.
3227         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
3228         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
3229         pool_range and neg_pool_range attributes.
3230         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
3231         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
3232         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
3233
3234 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3235
3236         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
3237         check glibc.
3238
3239 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
3240
3241         PR target/22152
3242         * config/i386/mmx.md (*mov<mode>_internal_rex64,
3243         *mov<mode>_internal_avx, *mov<mode>_internal,
3244         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
3245         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
3246
3247 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
3248
3249         * c-typeck.c (do_warn_double_promotion): Remove.
3250         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
3251         Objective-C++ too.
3252
3253 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
3254
3255         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
3256         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
3257         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
3258         argument type to reg_class_t. Change result type to bool.
3259         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3260
3261 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
3262
3263         PR libobjc/19850
3264         * gthr-posix.h (__gthread_objc_thread_detach): Use
3265         _objc_thread_attribs when detaching a thread.
3266         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
3267
3268 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3269
3270         PR target/45524
3271         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
3272         * configure: Regenerated.
3273
3274 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3275
3276         * combine.c (try_combine): Set subst_low_luid to i0.
3277
3278 2010-09-06  Richard Guenther  <rguenther@suse.de>
3279
3280         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
3281         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
3282         (build_aligned_type): Declare.
3283         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
3284         (check_aligned_type): New function.
3285         (build_aligned_type): Likewise.
3286         * expr.c (expand_assignment): Handle misaligned stores via
3287         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
3288         (expand_expr_real_1): Likewise.
3289         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
3290         * tree-vect-stmts.c (vectorizable_store): Do not build
3291         MISALIGNED_INDIRECT_REF but initialize alignment information.
3292         (vectorizable_load): Likewise.
3293         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
3294         handling.
3295         * cfgexpand.c (expand_debug_expr): Likewise.
3296         * dwarf2out.c (loc_list_from_tree): Likewise.
3297         * fold-const.c (maybe_lvalue_p): Likewise.
3298         (operand_equal_p): Likewise.
3299         (build_fold_addr_expr_with_type_loc): Likewise.
3300         * gimplify.c (gimplify_addr_expr): Likewise.
3301         (gimplify_expr): Likewise.
3302         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
3303         (verify_gimple_assign_single): Likewise.
3304         * tree-dump.c (dequeue_and_dump): Likewise.
3305         (tree_could_trap_p): Likewise.
3306         * tree-predcom.c (ref_at_iteration): Likewise.
3307         * tree-pretty-print.c (dump_generic_node): Likewise.
3308         (op_code_prio): Likewise.
3309         (op_symbol_code): Likewise.
3310         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
3311         * tree-ssa-loop-im.c (for_each_index): Likewise.
3312         (gen_lsm_tmp_name): Likewise.
3313         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
3314         (find_interesting_uses_address): Likewise.
3315         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
3316         * tree-ssa-operands.c (get_expr_operands): Likewise.
3317         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3318         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3319         (ao_ref_init_from_vn_reference): Likewise.
3320         * tree.c (staticp): Likewise.
3321         (build1_stat): Likewise.
3322         (reference_alias_ptr_type): Likewise.
3323         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3324         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
3325         MISALIGNED_INDIRECT_REF handling.
3326
3327 2010-09-06  Richard Guenther  <rguenther@suse.de>
3328
3329         PR tree-optimization/45534
3330         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
3331         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
3332         on the target.
3333         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
3334         valid on the target.
3335
3336 2010-09-06  Andreas Schwab  <schwab@redhat.com>
3337
3338         * configure.ac: Quote argument of AC_MSG_WARN.
3339         * configure: Regenerate.
3340
3341 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
3342
3343         * sel-sched.c (move_cond_jump): Correct arguments to
3344         maybe_tidy_empty_bb.
3345         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
3346
3347 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
3348
3349         PR rtl-optimization/44919
3350         * sel-sched.c (move_cond_jump): Remove assert, check that
3351         the several blocks case can only happen with mutually exclusive
3352         insns instead.  Rewrite the movement code to support moving through
3353         several basic blocks.
3354
3355 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
3356
3357         * config/i386/i386.md (iptrsize): New mode attribute.
3358         (tp_seg): Ditto.
3359         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
3360         mode iterator.
3361         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
3362         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
3363         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
3364         (stack_tls_protect_set_<mode>): Ditto from
3365         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
3366         of thread base pointer load.
3367         (stack_tls_protect_test_<mode>): Ditto from
3368         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
3369         of thread base pointer load.
3370         (stack_protect_set): Rewrite using indirect functions.
3371         (stack_protect_test): Ditto.
3372         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
3373         (ix86_print_operand): Handle '@'.
3374
3375 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
3376
3377         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
3378         MINUS_EXPR.
3379
3380 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
3381
3382         * doc/invoke.texi: Document -Wdouble-promotion.
3383         * c-typeck.c (convert_arguments): Check for implicit conversions
3384         from float to double.
3385         (do_warn_double_promotion): New function.
3386         (build_conditional_expr): Use it.
3387         (build_binary_op): Likewise.
3388
3389 2010-09-05  Richard Guenther  <rguenther@suse.de>
3390
3391         PR tree-optimization/45535
3392         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
3393         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
3394         dereferencing it.
3395         (indirect_refs_may_alias_p): Likewise.
3396
3397 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
3398
3399         * config/sh/sh.c (sh_option_override): Make static.
3400         Adjust comments.  Declare.
3401         (sh_function_value_regno_p): Likewise.
3402         (sh_register_move_cost): Modify the arguments, make static.
3403         Adjust comments.  Declare.
3404         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
3405         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3406         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
3407         REGISTER_MOVE_COST): Delete.
3408         * config/sh/sh-protos.h (sh_override_options): Delete.
3409         (sh_register_move_cost): Delete.
3410         (sh_function_value_regno_p): Delete.
3411
3412 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
3413
3414         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
3415         m32r_function_value_regno_p): New functions.
3416         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3417         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
3418         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
3419         FUNCTION_VALUE_REGNO_P): Remove.
3420
3421 2010-09-04  Jan Hubicka  <jh@suse.cz>
3422
3423         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
3424         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
3425         fold_read_from_constant_string.
3426
3427         * gimple.h (canonicalize_constructor_val): Declare.
3428         * gimple-fold.c (canonicalize_constructor_val): New function.
3429         (get_symbol_constant_value):Use it.
3430         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
3431
3432 2010-09-04  Jan Hubicka  <jh@suse.cz>
3433
3434         * tree-switch-conversion.c (build_one_array): Set constructor to be
3435         static.
3436         * varpool.c (varpool_finalize_decl): Compute const_value_known.
3437
3438 2010-09-04  Richard Guenther  <rguenther@suse.de>
3439
3440         PR bootstrap/45519
3441         * tree-flow.h (force_gimple_operand_1): Declare.
3442         (force_gimple_operand_gsi_1): Likewise.
3443         * gimplify.c (force_gimple_operand_1): New worker taking a
3444         gimple predicate for ...
3445         (force_gimple_operand): ... which now wraps it.
3446         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
3447         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
3448         last change.
3449         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
3450         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
3451         (create_mem_ref): Likewise.
3452
3453 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
3454
3455         * config/i386/predicates.md (sse_reg_operand): New predicate.
3456         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
3457         predicate for operand 1.
3458         (XFmode push splitter): Use fp_register_operand predicate
3459         for operand 1.
3460         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
3461         (SF-DF float_extend push splitter): Add reload_completed insn
3462         predicate.
3463         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
3464         MODEF mode macro.  Add reload_completed insn predicate.
3465
3466 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
3467
3468         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
3469         (struct df_extract_ref): Remove.
3470         (union df_ref_d): Remove extract_ref member.
3471         (df_ref_create): Remove last three arguments.
3472         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
3473         * df-scan.c (df_ref_record): Remove last three arguments, do not
3474         pass them to df_ref_create_structure.
3475         (df_uses_record): Remove first and last three arguments.  Replace
3476         first argument with DF_REF_REGULAR, adjust calls to remove the
3477         width, offset and mode.  Always call recursively on the second
3478         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
3479         (df_ref_create_structure): Remove first argument.
3480         (struct df_scan_problem_data): Remove ref_extract_pool.
3481         (df_scan_free_internal): Do not free it.
3482         (df_scan_alloc): Do not allocate it.
3483         (df_ref_create): Remove last three arguments, do not pass them to
3484         df_ref_create_structure.
3485         (df_free_ref): Remove DF_REF_EXTRACT case.
3486         (df_notes_rescan): Adjust call to df_uses_record.
3487         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
3488         Remove DF_REF_EXTRACT case.
3489         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
3490         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
3491         and SUBREG definitions.
3492         (df_get_conditional_uses): Remove references to width/offset/mode,
3493         adjust call to df_ref_create_structure.
3494         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
3495         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
3496         calls to df_uses_record and df_ref_record.
3497         * fwprop.c (update_df): Remove references to width/offset/mode,
3498         adjust call to df_ref_create.
3499
3500 2010-09-03  Jan Hubicka  <jh@suse.cz>
3501
3502         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
3503         (build_cdtor_fns): Update use of build_cdtor.
3504
3505 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
3506
3507         * doc/options.texi (SeparateAlias): Document.
3508         * opt-functions.awk (switch_flags): Handle SeparateAlias.
3509         * opth-gen.awk: Generate enumeration names for options marked
3510         SeparateAlias, but not for those marked Ignore.
3511         * opts-common.c (generate_canonical_option): Don't output separate
3512         argument for options marked CL_SEPARATE_ALIAS.
3513         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
3514         * opts.h (CL_SEPARATE_ALIAS): New.
3515         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
3516         CL_COMMON): Adjust definitions.
3517         * config/i386/darwin.opt, config/mips/sde.opt: New.
3518         * common.opt (fdump-final-insns): New.
3519         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3520         i386/darwin.opt.
3521         (mips*-sde-elf*): Add mips/sde.opt.
3522         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
3523         -mno-data-in-code and -mcode-xonly here.
3524         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
3525         * gcc.c (option_map): Add "j" to --dump entry.
3526         (translate_options): Don't translate -d to -foutput-class-dir= here.
3527
3528 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
3529
3530         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
3531         DR_IS_WRITE.
3532         (compute_all_dependences): Same.
3533         (create_rdg_edge_for_ddr): Same.
3534         * tree-data-ref.h (DR_IS_WRITE): New.
3535         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
3536         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
3537         (write_memrefs_written_at_least_once): Same.
3538         * tree-predcom.c (suitable_component_p): Same.
3539         (determine_roots_comp): Same.
3540         (execute_load_motion): Same.
3541         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
3542         (vect_enhance_data_refs_alignment): Same.
3543         (vect_analyze_group_access): Same.
3544
3545 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
3546
3547         PR testsuite/42843
3548         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
3549         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
3550
3551 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
3552
3553         * dwarf2out.c (file scope): Remove #if0'd code.
3554         (gen_subprogram_die): Same.
3555
3556 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
3557
3558         PR middle-end/45484
3559         * dwarf2out.c (flush_queued_reg_saves): Rename to...
3560         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
3561         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
3562         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
3563         * config/i386/i386.c (output_set_got): Call it.
3564
3565 2010-09-03  Michael Matz  <matz@suse.de>
3566
3567         PR middle-end/45415
3568         * tree-sra.c (sra_modify_assign): If we modify the statement,
3569         say so.
3570
3571         * tree-ssa.c (verify_ssa): Check number of operands and links
3572         per statement to agree.
3573
3574 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
3575             Iain Sandoe  <iains@gcc.gnu.org>
3576
3577         PR target/45476
3578         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
3579         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
3580         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
3581
3582 2010-09-03  Richard Guenther  <rguenther@suse.de>
3583
3584         * lto-streamer-out.c (output_function): Output function
3585         start and end loci.
3586         * lto-streamer-in.c (input_function): Input function start
3587         and end loci.
3588
3589 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3590
3591         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
3592         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
3593         * configure: Regenerate.
3594         * aclocal.m4: Regenerate.
3595
3596 2010-09-03  Jan Hubicka  <jh@suse.cz>
3597
3598         PR lto/44812
3599         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
3600         on functions/variables in other partition.
3601
3602 2010-09-03  Jan Hubicka  <jh@suse.cz>
3603
3604         * cgraph.h (struct varpool_node): Add const_value_known.
3605         (varpool_decide_const_value_known): Declare.
3606         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
3607         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
3608         (input_varpool_node): Restore const_value_known.
3609         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
3610         initializer folding.
3611         * ipa.c (ipa_discover_readonly_nonaddressable_var,
3612         function_and_variable_visibility): Compute const_value_known.
3613         * gimple-fold.c (get_symbol_constant_value): Use varpool for
3614         initializer folding.
3615         * varpool.c (varpool_decide_const_value_known): New function.
3616
3617 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
3618
3619         * config/i386/i386.md: Remove empty preparation statements
3620         from splitters.
3621
3622 2010-09-03  Jan Hubicka  <jh@suse.cz>
3623
3624         * passes.c (rest_of_decl_compilation): Do not add local vars into
3625         varpool.
3626         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
3627         static or extern vars are in varpool.
3628         (varpool_finalize_decl): Sanity check that only static vars are
3629         finalized.
3630
3631 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
3632
3633         PR debug/45500
3634         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
3635         not just generic vectors with BLKmode.
3636
3637 2010-09-03  Richard Guenther  <rguenther@suse.de>
3638
3639         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
3640         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
3641         * tree.h (TMR_SYMBOL): Remove.
3642         (TMR_BASE, TMR_OFFSET): Adjust.
3643         (TMR_INDEX2): New.
3644         * alias.c (ao_ref_from_mem): Use TMR_BASE.
3645         * builtins.c (get_object_alignment): Merge TMR_BASE and
3646         TMR_SYMBOL handling.
3647         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
3648         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
3649         handling.  Also allow TARGET_MEM_REF as base address.
3650         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
3651         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
3652         base.  Gimplify TMR_INDEX2.
3653         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
3654         * tree-dfa.c (get_ref_base_and_extent): Likewise.
3655         (get_addr_base_and_unit_offset): Likewise.
3656         * tree-eh.c (tree_could_trap_p): Likewise.
3657         * tree-pretty-print.c (dump_generic_node): Likewise.
3658         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
3659         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
3660         base to index2.
3661         (get_address_description): Reconstruct addres description
3662         from merged TMR_BASE and TMR_INDEX2.
3663         (maybe_fold_tmr): Fold propagated addresses.
3664         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
3665         MEM_REF and TARGET_MEM_REF paths.
3666         (indirect_refs_may_alias_p): Likewise.
3667         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
3668         instead of TMR_SYMBOL.
3669         * tree-ssa-operands.c (get_tmr_operands): Simplify.
3670         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
3671         according to changes ...
3672         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
3673         Split TARGET_MEM_REF into two fields plus the base.
3674         * tree.c (mem_ref_offset): Simplify.
3675         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
3676         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
3677         Strip NOPs when folding MEM_REF addresses.
3678         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
3679         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
3680         (fold_gimple_assign): ... not here.
3681
3682 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
3683
3684         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
3685         * config/mips/mips.c (mips_shift_truncation_mask): New function.
3686         (TARGET_SHIFT_TRUNCATION_MASK): Define.
3687
3688 2010-09-02  Richard Henderson  <rth@redhat.com>
3689
3690         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
3691         instead of readelf in the test.
3692         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
3693         in the .debug_frame section for coff targets.
3694         * configure: Rebuild.
3695
3696 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
3697
3698         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
3699         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
3700         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3701         (m32c_class_likely_spilled_p): Make static. Change argument type to
3702         reg_class_t. Change result type to bool.
3703
3704 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3705
3706         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
3707         to convert (double)(long) into a single FRIZ instruction or not
3708         when -ffast-math is used.
3709
3710         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
3711         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
3712         or FRIZ instruction if -ffast-math.
3713         * config/rs6000/rs6000.md (friz): Ditto.
3714
3715         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
3716
3717 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
3718
3719         * opth-gen.awk (quote, comma): Remove unused variables.
3720
3721 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
3722
3723         * arm.c (arm_override_options): Correct fall-back code to use
3724         SUBTARGET_CPU_DEFAULT.
3725
3726 2010-09-02  Julian Brown  <julian@codesourcery.com>
3727
3728         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
3729         unspecs.
3730         (vcond<mode>, vcondu<mode>): New expanders.
3731         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
3732         comparisons with zero.
3733         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
3734         * config/arm/constraints.md (Dz): New constraint.
3735
3736 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
3737
3738         * target.def (class_likely_spilled_p): New hook.
3739         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
3740         * doc/tm.texi: Regenerate.
3741         * targhooks.c (default_class_likely_spilled_p): New function.
3742         * targhooks.h (default_class_likely_spilled_p): Declare.
3743         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
3744         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
3745         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
3746         Use fixed_reg_set instead of fixed_regs.
3747         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
3748         * calls.c (avoid_likely_spilled_reg): Ditto.
3749         * ira-conflicts.c (ira_build_conflicts): Ditto.
3750         * ira.c (update_equiv_regs): Ditto.
3751         * mode-switching.c (create_pre_exit): Ditto.
3752         * regmove.c (find_matches): Ditto.
3753         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
3754         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
3755         (small_register_class_p): New inline function.
3756         (push_secondary_reload, find_reusable_reload, find_reloads): Use
3757         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
3758
3759         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
3760         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
3761         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3762
3763 2010-09-02  Richard Guenther  <rguenther@suse.de>
3764
3765         PR tree-optimization/44937
3766         PR tree-optimization/45412
3767         * ipa-split.c (split_function): Properly remove PHI nodes.
3768
3769 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
3770
3771         * opts.h (struct cl_option): Add warn_message field.
3772         (struct cl_decoded_option): Add warn_message field.
3773         * doc/options.texi (Ignore, Warn): Document.
3774         * opt-functions.awk (needs_state_p): Don't consider aliases or
3775         ignored options to need state saved.
3776         * optc-gen.awk: Handle Warn and Ignore.
3777         * opth-gen.awk: Output OPT_SPECIAL_ignore.
3778         * opts-common.c (decode_cmdline_option): Set warn_message field.
3779         Handle ignored options.
3780         (decode_cmdline_options_to_array, generate_option,
3781         generate_option_input_file): Set warn_message field.
3782         (read_cmdline_option): Generate warnings from warn_message field.
3783         Handle ignored options.
3784         * common.opt (Wunreachable-code, fargument-alias,
3785         fargument-noalias, fargument-noalias-global,
3786         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
3787         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
3788         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
3789         ftree-salias): Mark Ignore.
3790         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
3791         -mintel-syntax and -mno-intel-syntax here.
3792         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
3793         using Warn.
3794         * opts.c (common_handle_option): Don't handle options marked as
3795         ignored.
3796         (enable_warning_as_error): Handle ignored options.
3797
3798 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
3799
3800         PR driver/44076
3801         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
3802         alias_target fields.
3803         * opt-functions.awk (opt_sanitized_name): Don't handle
3804         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
3805         * optc-gen.awk: Generate alias fields.
3806         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
3807         Don't generate such constants for aliases.
3808         * opts-common.c (generate_canonical_option): New.
3809         (decode_cmdline_option): Handle aliases.  Use
3810         generate_canonical_option for known options instead of copying the
3811         input option text.
3812         * doc/options.texi (Alias): Document.
3813         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
3814         fstack-check, specs): Mark as aliases.
3815         * gcc.c (driver_handle_option): Canonicalize -L options to joined
3816         arguments.
3817         (driver_handle_option): Don't handle OPT_specs.
3818         * opts.c (common_handle_option): Don't handle options marked as
3819         aliases.
3820         (enable_warning_as_error): Handle aliases.
3821         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
3822         OPT_Wlarger_than_eq.
3823         * tree-optimize.c (tree_rest_of_compilation): Use
3824         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
3825
3826 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
3827
3828         * config/i386/i386.md (nonmemory_operand): New mode attribute.
3829         (push memory peephole2): Macroize peepholes using SWI mode iterator.
3830         (move immediate to memory peephole2): Macroize peepholes using
3831         SWI124 mode iterator.
3832         (non-pairable NOT peephole2): Macroize peepholes using SWI124
3833         mode iterator.
3834         (simple lea add peephole2): Macroize peepholes using SWI48
3835         mode iterator.
3836         (simple lea mult peephole2): Ditto.
3837         (imul by 3,5,9 to lea peephole2): Ditto.
3838         (mov $-1, reg peephole2): Macroize peepholes using SWI248
3839         mode iterator.
3840         (imul $32bit_imm,mem,reg peephole2): Ditto.
3841         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
3842
3843 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
3844
3845         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
3846
3847 2010-09-02  Olivier Hainque  <hainque@adacore.com>
3848
3849         PR middle-end/44763
3850         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
3851         (allocno_priority_compare_func): Use it instead of a straight
3852         difference computation over priorities.
3853
3854 2010-09-02  Andi Kleen  <ak@linux.intel.com>
3855
3856         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
3857
3858 2010-09-02  Ira Rosen  <irar@il.ibm.com>
3859
3860         * tree-vectorizer.h (get_later_stmt): New function.
3861         (vect_analyze_data_ref_dependences): Add argument.
3862         * tree-vect-loop.c (vect_analyze_loop): Update call to
3863         vect_analyze_data_ref_dependences.
3864         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
3865         New function.
3866         (vect_analyze_data_ref_dependence): Add argument for basic block
3867         dependencies. Check dependencies in basic block vectorization.
3868         (vect_analyze_data_ref_dependences): Add argument and update call to
3869         vect_analyze_data_ref_dependences.
3870         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
3871         (vect_bb_vectorizable_with_dependencies): New.
3872         (vect_slp_analyze_bb): Check dependencies in basic block.
3873         (vect_schedule_slp_instance): Insert stores before the last store in
3874         SLP instance.
3875
3876 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
3877
3878         PR target/45476
3879         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
3880         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
3881
3882 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
3883
3884         PR middle-end/45458
3885         * bb-reorder.c (add_labels_and_missing_jumps): Treat
3886         bbs ending with throwing insns like blocks ending with a call.
3887         (fix_up_fall_thru_edges): Likewise.
3888
3889 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
3890
3891         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
3892         (m32c_function_arg_advance): Delete.
3893         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3894         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
3895         comments.  Take a const_tree and a bool.  Declare.
3896         (m32c_function_arg_advance): Likewise.
3897         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3898
3899 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
3900
3901         PR target/45476
3902         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
3903         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
3904         * config/i386/mingw32.h: ... here.
3905
3906 2010-09-01  Andi Kleen  <ak@linux.intel.com>
3907
3908         PR lto/45475
3909         * lto-streamer-in.c (lto_input_ts_target_option): Add.
3910         (lto_input_tree_pointers): Call lto_input_ts_target_option.
3911         * lto-streamer-out (lto_output_ts_target_option): Add.
3912         (lto_output_tree_pointers): Call lto_output_ts_target_option.
3913
3914 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
3915
3916         PR/target 45452
3917         * config/i386/cygwin.h: Change order of specified import libraries.
3918         * config/i386/mingw32.h: Likewise.
3919         * config/i386/t-cygwin: Likewise.
3920         * config/i386/t-mingw32: Likewise.
3921         * config/i386/t-mingw-w32: Likewise.
3922         * config/i386/t-mingw-w64: Likewise.
3923
3924 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3925
3926         * config/arm/neon-schedgen.ml (core): New type.
3927         (allCores): List of supported cores.
3928         (availability_table): Add supported cores.
3929         (collate_bypasses): Accept core as a parameter.
3930         (worst_case_latencies_and_bypasses): Accept core as a parameter.
3931         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
3932         and coreStr to get tune attribute and prefix for functional units.
3933         (emit_bypasses): Accept core name and use it.
3934         (calculate_per_core_availability_table): New.
3935         (filter_core): New.
3936         (calculate_core_availability_table): New.
3937         (main): Use calculate_core_availablity_table.
3938         * config/arm/cortex-a8-neon.md: Update copyright year.
3939         Regenerated from ml file and merged in.
3940         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
3941         cortex_a8_neon_mrc.
3942
3943 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
3944
3945         * Makefile.in (tree-switch-conversion.o): Update dependencies.
3946
3947 2010-09-01  Richard Guenther  <rguenther@suse.de>
3948
3949         * alias.c (ao_ref_from_mem): Adjust.
3950         * builtins.c (get_object_alignment): Likewise.
3951         * cfgexpand.c (expand_debug_expr): Likewise.
3952         * gimple.c (get_base_address): Likewise.
3953         * tree-dfa.c (get_ref_base_and_extent): Likewise.
3954         (get_addr_base_and_unit_offset): Likewise.  Fix for
3955         both TMR_SYMBOL and TMR_BASE being set.
3956         * tree-eh.c (tree_could_trap_p): Likewise.
3957         * gimplify.c (gimplify_expr): Do not attempt to gimplify
3958         TMR_SYMBOL.  Always gimplify TMR_BASE.
3959         * tree-cfg.c (verify_types_in_gimple_reference): Verify
3960         TMR_BASE if there is a TMR_SYMBOL.
3961         * tree-pretty-print.c (dump_generic_node): Adjust.
3962         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
3963         (tree_mem_ref_addr): Likewise.
3964         (create_mem_ref_raw): Likewise.
3965         (move_fixed_address_to_symbol): Likewise.
3966         (create_mem_ref): Likewise.
3967         (dump_mem_address): Likewise.
3968         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
3969         Fix for both TMR_SYMBOL and TMR_BASE being set.
3970         (indirect_refs_may_alias_p): Likewise.
3971         * tree-ssa-operands.c (get_tmr_operands): Adjust.
3972         * tree.def (TARGET_MEM_REF): Adjust documentation.
3973
3974 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
3975
3976         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
3977         Rename from X86_TUNE_ADD_ESP_4.
3978         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
3979         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
3980         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
3981         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
3982         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
3983         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
3984         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
3985         * config/i386/i386.c (initial_ix86_tune_features)
3986         <X86_TUNE_SINGLE_POP>: Invert members.
3987         <X86_TUNE_DOUBLE_POP>: Ditto.
3988         <X86_TUNE_SINGLE_PUSH>: Ditto.
3989         <X86_TUNE_DOUBLE_PUSH>: Ditto.
3990         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
3991         No longer exported.
3992         (push peephole2 patterns): Macroize peepholes using P mode iterator.
3993         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
3994         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
3995         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
3996
3997 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
3998
3999         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
4000         a volatile LHS if the constructor has only one element.
4001
4002 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
4003
4004         PR bootstrap/45321
4005         * tree.c (stdarg_p): Make fntype parameter const.
4006         * tree.h (stdarg_p): Likewise.
4007         (function_args_iterator): Remove unused fntype field.
4008         (function_args_iter_init): Do not initialize fntype
4009         field.  Make fntype parameter const.
4010
4011 2010-09-01  Richard Guenther  <rguenther@suse.de>
4012
4013         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
4014         estimate.
4015         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
4016         (execute_vrp): Compute number of iteration estimates.
4017         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
4018         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
4019         * tree-data-ref.c (estimated_loop_iterations): Adjust.
4020         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
4021         Infer loop bounds from undefined behavior based on a new parameter.
4022         (estimate_numbers_of_iterations): Likewise.
4023         (scev_probably_wraps_p): Adjust.
4024         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
4025
4026 2010-09-01  Nick Clifton  <nickc@redhat.com>
4027
4028         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
4029         where appropriate.
4030         (xstormy16_legitimate_address_p): Use true and false instead of 1
4031         and 0.
4032         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
4033         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
4034         magic constant 2.
4035         (xstormy16_expand_call): Fix comment at start of function.
4036
4037 2010-09-01  Nick Clifton  <nickc@redhat.com>
4038
4039         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
4040         when pushing accumulator register.
4041         (rx_get_stack_layout): Always save call clobbered registers inside
4042         interrupt handlers.
4043         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
4044
4045 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
4046
4047         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
4048         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
4049
4050         * libgcc-std.ver (GCC_4.6.0): Define version.
4051
4052 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
4053
4054         * tree-nested.c (convert_all_function_calls): Iterate until after the
4055         sum of static chains in the nest doesn't change.
4056
4057 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
4058
4059         * config/m32c/m32c.c (classes_intersect): Remove.
4060         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
4061         reg_classes_intersect_p instead of classes_intersect.
4062         (class_can_hold_mode): Change arguments type from enum reg_class to
4063         reg_class_t.  Use reg_class_contents instead of class_contents.
4064         (m32c_register_move_cost): Make static. Change arguments type from
4065         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
4066         classes_intersect. Use reg_class_contents instead of class_contents.
4067         (m32c_memory_move_cost): Make static. Change arguments type from
4068         enum reg_class to reg_class_t.
4069         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4070         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4071         * config/m32c/m32c-protos.h (m32c_register_move_cost,
4072         m32c_memory_move_cost): Remove.
4073
4074 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4075
4076         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
4077         (arm_function_arg): Delete.
4078         (arm_needs_doubleword_align): Take a const_tree.
4079         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4080         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
4081         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
4082         (arm_function_arg): Make static.  Take a const_tree and a bool.
4083         (arm_function_arg_advance): Likewise.
4084         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4085
4086 2010-08-31  Andi Kleen  <ak@linux.intel.com>
4087
4088         * common.opt (fwhopr=): Update for -fwhopr=jobserver
4089         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
4090         * lto-wrapper.c (run_gcc): Add jobserver mode.
4091         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
4092         argument.
4093
4094 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
4095
4096         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
4097         (popsi1): Ditto.
4098         (*popdi1_epilogue): Ditto.
4099         (*popsi1_epilogue): Ditto.
4100         (popsi, popdi peephole2 patterns): Update peepholes for changed
4101         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
4102
4103         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
4104         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
4105
4106         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
4107         (override_options): Do not initialize removed ix86_gen_pop1.
4108         (gen_pop): New static function.
4109         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
4110         (release_scratch_register_on_entry): Ditto.
4111         (ix86_restore_reg_using_pop): Ditto.
4112         (ix86_expand_epilogue): Ditto.
4113
4114 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
4115
4116         PR middle-end/45461
4117         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
4118
4119 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4120
4121         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
4122         semicolons.
4123
4124 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4125
4126         * doc/extend.texi: Fix documentation of the return value of
4127         __builtin_choose_expr.
4128
4129 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4130
4131         * config/v850/v850-protos.h (function_arg): Delete.
4132         * config/v850/v850.h (FUNCTION_ARG): Delete.
4133         (FUNCTION_ARG_ADVANCE): Move code to...
4134         * config/v850/v850.c (v850_function_arg_advance): ...here.
4135         (v850_function_arg): Make static.  Take a const_tree and a bool.
4136         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4137
4138 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4139
4140         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
4141         these...
4142         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
4143         ...and these...
4144         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
4145         ..to here..
4146         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
4147         ...and here.
4148         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4149
4150 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4151
4152         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
4153         Delete.
4154         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4155         * config/rx/rx.c (rx_function_arg_size): Make static.
4156         (rx_function_arg): Likewise.
4157         (rx_function_arg_advance): New function.
4158         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4159
4160 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
4161
4162         * config/arm/arm.c (arm_override_options): Remove superfluous test.
4163         Fix indentation.
4164
4165 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
4166
4167         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
4168         (dwarf2out_decl) <CONST_DECL>: Likewise.
4169
4170 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
4171
4172         Stack usage support
4173         * common.opt (-fstack-usage): New option.
4174         * doc/invoke.texi (Debugging options): Document it.
4175         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
4176         allocate_dynamic_stack_space.
4177         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
4178         and propagate it to allocate_dynamic_stack_space.
4179         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
4180         * calls.c (initialize_argument_information): Pass TRUE as 4th
4181         argument to allocate_dynamic_stack_space.
4182         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
4183         to 1 when pushing a variable-sized argument onto the stack.  Pass
4184         TRUE as 4th argument to allocate_dynamic_stack_space.
4185         Update current_function_pushed_stack_size.
4186         (emit_library_call_value_1): Likewise.
4187         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
4188         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
4189         attempt to find an upper bound.  Remove redundant code for the
4190         SETJMP_VIA_SAVE_AREA case.
4191         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
4192         * function.h (struct stack_usage): New structure.
4193         (current_function_static_stack_size): New macro.
4194         (current_function_dynamic_stack_size): Likewise.
4195         (current_function_pushed_stack_size): Likewise.
4196         (current_function_dynamic_alloc_count): Likewise.
4197         (current_function_has_unbounded_dynamic_stack_size): Likewise.
4198         (current_function_allocates_dynamic_stack_space): Likewise.
4199         (struct function): Add new field 'su'.
4200         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
4201         add the value of the dynamic offset to the dynamic stack usage.
4202         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
4203         for variable-sized objects.
4204         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
4205         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
4206         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
4207         BUILT_IN_ALLOCA for variable-sized objects.
4208         * output.h (output_stack_usage): Declare.
4209         * toplev.c (stack_usage_file): New file pointer.
4210         (output_stack_usage): New function.
4211         (open_auxiliary_file): Likewise.
4212         (lang_dependent_init): Open file if flag_stack_usage is set.
4213         (finalize): Close file if stack_usage_file is not null.
4214         * tree.h (ALLOCA_FOR_VAR_P): New macro.
4215         * config/alpha/alpha.c (compute_frame_size): New function.
4216         (alpha_expand_prologue): Use it.
4217         (alpha_start_function): Likewise.
4218         (alpha_expand_epilogue): Likewise.  Set stack usage info.
4219         * config/i386/i386.c (ix86_expand_prologue): Likewise.
4220         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4221         * config/mips/mips.c (mips_expand_prologue): Likewise.
4222         * config/pa/pa.c (hppa_expand_prologue): Likewise.
4223         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4224         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4225
4226 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
4227
4228         PR tree-optimization/45427
4229         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
4230         Handle the case that the exit is never taken correctly.
4231         (number_of_iterations_ne): Pass exit_must_be_taken to
4232         number_of_iterations_ne_max.
4233
4234 2010-08-30  Catherine Moore  <clm@codesourcery.com>
4235
4236         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
4237         Infer -mdspr2 for the the 74K.
4238
4239 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
4240
4241         PR debug/45419
4242         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
4243
4244         PR middle-end/45423
4245         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
4246         and TRUTH_{AND,OR,XOR}_EXPR.
4247         * c-parser.c (c_parser_omp_atomic): Handle boolean
4248         {PRE,POST}_{INC,DEC}REMENT.
4249
4250 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
4251
4252         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
4253         (function_arg): Delete.
4254         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4255         (FUNCTION_INCOMING_ARG): Delete.
4256         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
4257         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
4258         and a bool.
4259         (function_arg): Rename to...
4260         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
4261         a bool.
4262         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
4263         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4264         (TARGET_FUNCTION_INCOMING_ARG): Define.
4265
4266 2010-08-30  Richard Guenther  <rguenther@suse.de>
4267
4268         PR tree-optimization/21602
4269         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
4270         using points-to information.
4271
4272 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
4273
4274         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
4275
4276 2010-08-30  Richard Guenther  <rguenther@suse.de>
4277
4278         PR tree-optimization/45449
4279         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
4280         variables.
4281
4282 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
4283
4284         * opts.h (CL_ERR_NEGATIVE): Define.
4285         * opts.c (unknown_option_callback): Don't postpone warnings for
4286         options marked with CL_ERR_NEGATIVE.
4287         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
4288         for negative versions of CL_REJECT_NEGATIVE options.
4289
4290 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
4291
4292         * config/i386/i386.md (zero_extendsidi2_1): Rename from
4293         zero_extendsidi2_32.
4294         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
4295         using SWI12 mode iterator.
4296         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
4297         to define_insn_and_split pattern.
4298         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
4299         using SWI24 mode iterator.
4300         (*zero_extendqi<mode>2_and): Macroize insn from
4301         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
4302         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
4303         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
4304         SWI24 mode iterator.
4305         (*zero_extendqi<mode>2_movzbl): Ditto from
4306         *zero_extendqi{hi,si}2_movzbl.
4307         (extendsidi2_1): Rename from extendsidi2_32.
4308         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
4309         SWI12 mode iterator.
4310
4311 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
4312
4313         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
4314         general purpose registers.
4315         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
4316         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
4317         with general purpose registers and memory operands.  Add associated
4318         CCImode post-reload splitter.
4319         * config/ia64/div.md: Change BImode to CCImode throughout.
4320
4321 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
4322
4323         * config/ia64/ia64.md (cstorebi4): Fix thinko.
4324
4325 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
4326
4327         * config/picochip/picochip.c (reorder_var_tracking_notes): This
4328         function was dropping debug insns which caused PR45299.
4329
4330 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
4331
4332         * config/i386/sse.md (extsuffix): New code attribute.
4333         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
4334         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
4335         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
4336         and sse4_1_zero_extendv4qiv4si2.
4337         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
4338         and sse4_1_zero_extendv2qiv2di2.
4339         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
4340         and sse4_1_zero_extendv4hiv4si2.
4341         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
4342         and sse4_1_zero_extendv2hiv2di2.
4343         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
4344         and sse4_1_zero_extendv2siv2di2
4345
4346         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
4347         using any_extend code iterator.
4348         (*avx_<s>mulv8hi3_highpart): Macroize insn from
4349         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
4350         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
4351
4352         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
4353         gen_sse4_1_sign_extend* functions.
4354         (struct builtin_description bdesc_args): Ditto.
4355
4356 2010-08-27  Xinliang David Li  <davidxl@google.com>
4357
4358         PR/45422
4359         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
4360         (iv_ca_set_no_cp): Update used inv expr count.
4361         (iv_ca_set_cp): Ditto.
4362         (iv_ca_new): Initialize new member.
4363         (iv_ca_free): Free memory.
4364
4365 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
4366
4367         * config/sh/sh-protos.h (sh_function_arg): Delete.
4368         (sh_function_arg_advance): Delete.
4369         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4370         (PASS_IN_REG_P): Eliminate cast.
4371         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
4372         const_tree and a bool.
4373         (sh_function_arg): Likewise.
4374         (sh_output_mi_thunk): Call sh_function_arg_advance) and
4375         sh_function_arg.
4376         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4377
4378 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
4379             Kaz Kojima  <kkojima@gcc.gnu.org>
4380
4381         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
4382         when possible.
4383         (sh_expand_epilogue): Likewise.
4384         * config/sh/sh.md (movml_push_banked): New insn.
4385         (movml_pop_banked): Likewise.
4386
4387 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
4388
4389         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
4390         gen_regexp_oneof, gen_regexp_sequence): Use the string found
4391         in vector element 0 rather than the original string when there's
4392         only one element.
4393         (gen_regexp): Remove extra semicolon.
4394
4395         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
4396         thumb2_movsf_vfp): Set attribute "insn".
4397         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
4398         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
4399         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
4400         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
4401         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
4402         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
4403         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
4404         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
4405         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
4406         if_not_arith, if_arith_not, cond_move_not): Likewise.
4407
4408 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4409
4410         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
4411         New declaration.
4412         (rs6000_allocate_stack_temp): Ditto.
4413         (rs6000_expand_convert_si_to_sfdf): Ditto.
4414
4415         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
4416         line.  Update the options set if power6 or power7 server/embedded
4417         type options are used.  If we give a warning for no vsx under
4418         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
4419         (rs6000_allocate_stack_temp): New function to allocate a stack
4420         tempoary and adjust the address so it meets either REG+OFFSET or
4421         REG+REG addressing requirements.
4422         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
4423         that they can be used with the LFIWAX/LFIWZX instrucitons.
4424         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
4425         converting signed/unsigned SImode to either SFmode/DFmode.
4426
4427         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
4428         whether certain instructions can be generated.
4429         (TARGET_FCTIDZ): Ditto.
4430         (TARGET_STFIWX): Ditto.
4431         (TARGET_LFIWAX): Ditto.
4432         (TARGET_LFIWZX): Ditto.
4433         (TARGET_FCFIDS): Ditto.
4434         (TARGET_FCFIDU): Ditto.
4435         (TARGET_FCFIDUS): Ditto.
4436         (TARGET_FCTIDUZ): Ditto.
4437         (TARGET_FCTIWUZ): Ditto.
4438
4439         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
4440         (UNSPEC_FCTID): Ditto.
4441         (UNSPEC_LFIWAX): Ditto.
4442         (UNSPEC_LFIWZX): Ditto.
4443         (UNSPEC_FCTIWUZ): Ditto.
4444         (rreg): Use correct constraints.
4445         (SI_CONVERT_FP): New mode attribute for floating point conversion
4446         tests.
4447         (E500_CONVERT): Ditto.
4448         (lfiwax): New insns for converting from integer to floating point
4449         utilizing newer instructions.  Attempt to optimize conversions
4450         that come from memory so that we don't load the value into a GPR,
4451         spill it to the stack and reload it into a FPR.
4452         (floatsi<mode>2_lfiwax): Ditto.
4453         (floatsi<mode>2_lfiwax_mem): Ditto.
4454         (floatsi<mode>2_lfiwax_mem2): Ditto.
4455         (lfiwzx): Ditto.
4456         (floatunssi<mode>2_lfiwzx): Ditto.
4457         (floatunssi<mode>2_lfiwzx_mem): Ditto.
4458         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
4459         (floatdidf2_mem): Ditto.
4460         (floatunsdidf2_fcfidu): Ditto.
4461         (floatunsdidf2_mem): Ditto.
4462         (floatunsdisf2): Ditto.
4463         (floatunsdisf2_fcfidus): Ditto.
4464         (floatunsdisf2_mem): Ditto.
4465         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
4466         Use FCFID on 32-bit hosts that support it.
4467         (floatsidf2_internal): Ditto.
4468         (floatunssisf2): Ditto.
4469         (floatunssidf2): Ditto.
4470         (floatunssidf2_internal): Ditto.
4471         (floatsisf2): Ditto.
4472         (floatdidf2): Ditto.
4473         (floatdidf2_fpr): Ditto.
4474         (floatunsdidf2): Ditto.
4475         (floatdisf2): Ditto.
4476         (floatdisf2_fcfids): Ditto.
4477         (floatdisf2_internal1): Ditto.
4478         (fixuns_truncsfsi2): Delete, merge into common pattern for both
4479         SF/DF.  Add power7 support.
4480         (fix_truncsfsi2): Ditto.
4481         (fixuns_truncdfsi2): Ditto.
4482         (fixuns_truncdfdi2): Ditto.
4483         (fix_truncdfsi2): Ditto.
4484         (fix_truncdfsi2_internal): Ditto.
4485         (fix_truncdfsi2_internal_gfxopt): Ditto.
4486         (fix_truncdfsi2_mfpgpr): Ditto.
4487         (fctiwz): Ditto.
4488         (btruncdf2): Ditto.
4489         (btruncdf2_fpr): Ditto.
4490         (btructsf2): Ditto.
4491         (ceildf2): Ditto.
4492         (ceildf2_fpr): Ditto.
4493         (ceilsf2): Ditto.
4494         (floordf2): Ditto.
4495         (floordf2_fpr): Ditto.
4496         (floorsf2): Ditto.
4497         (rounddf2): Ditto.
4498         (rounddf2_fpr): Ditto.
4499         (roundsf2): Ditto.
4500         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
4501         (fix_trunc<mode>di2): Ditto.
4502         (fixuns_trunc<mode>si2): Ditto.
4503         (fixuns_trunc<mode>di2): Ditto.
4504         (fctiwz_<mode>): Ditto.
4505         (btrunc<mode>2): Ditto.
4506         (btrunc<mode>2_fpr): Ditto.
4507         (ceil<mode>2): Ditto.
4508         (ceil<mode>2_fpr): Ditto.
4509         (floor<mode>2): Ditto.
4510         (float<mode>2_fpr): Ditto.
4511         (round<mode>2): Ditto.
4512         (round<mode>2_fpr): Ditto.
4513         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
4514         (fixuns_trunc<mode>si2_stfiwx): Ditto.
4515         (fix_truncdfsi2_internal): Ditto.
4516         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
4517         converted value on stack, loaded into GPR, and then stored into
4518         the final destination.
4519         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
4520         FCTIDZ.
4521         (lrint<mode>di2): New insn, provide the lrint builtin functions.
4522         (ftruncdf2): Delete, unused.
4523         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
4524
4525         * config/rs6000/vsx.md (toplevel): Update copyright year.
4526         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
4527         (VSr3): Ditto.
4528
4529 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
4530             Jeremie Salvucci  <jeremie.salvucci@free.fr>
4531
4532         * gengtype.c (output_type_enum): Test the right union member.
4533
4534 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
4535
4536         PR target/41484
4537         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
4538         operands for operand 1.
4539         (sse4_1_extendv4qiv4si2): Ditto.
4540         (sse4_1_extendv2qiv2di2): Ditto.
4541         (sse4_1_extendv4hiv4si2): Ditto.
4542         (sse4_1_extendv2hiv2di2): Ditto.
4543         (sse4_1_extendv2siv2di2): Ditto.
4544         (sse4_1_zero_extendv8qiv8hi2): Ditto.
4545         (sse4_1_zero_extendv4qiv4si2): Ditto.
4546         (sse4_1_zero_extendv2qiv2di2): Ditto.
4547         (sse4_1_zero_extendv4hiv4si2): Ditto.
4548         (sse4_1_zero_extendv2hiv2di2): Ditto.
4549         (sse4_1_zero_extendv2siv2di2): Ditto.
4550         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
4551         (*sse4_1_extendv4qiv4si2): Ditto.
4552         (*sse4_1_extendv2qiv2di2): Ditto.
4553         (*sse4_1_extendv4hiv4si2): Ditto.
4554         (*sse4_1_extendv2hiv2di2): Ditto.
4555         (*sse4_1_extendv2siv2di2): Ditto.
4556         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
4557         (*sse4_1_zero_extendv4qiv4si2): Ditto.
4558         (*sse4_1_zero_extendv2qiv2di2): Ditto.
4559         (*sse4_1_zero_extendv4hiv4si2): Ditto.
4560         (*sse4_1_zero_extendv2hiv2di2): Ditto.
4561         (*sse4_1_zero_extendv2siv2di2): Ditto.
4562
4563 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
4564
4565         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
4566         (mips_function_arg): Delete.
4567         (mips_function_arg_boundary): Take a const_tree.
4568         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
4569         (mips_arg_info): Likewise.
4570         (mips_setup_incoming_varargs): Call mips_function_arg_advance
4571         instead of FUNCTION_ARG_ADVANCE.
4572         (mips_function_arg_advance): Adjust prototype.  Make static.
4573         (mips_function_arg): Likewise.
4574         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4575         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
4576
4577 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
4578
4579         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4580         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
4581         (function_arg): Delete.
4582         (function_arg_boundary): Take a const_tree.
4583         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
4584         (rs6000_spe_function_arg): Likewise.
4585         (rs6000_parm_start): Likewise.
4586         (rs6000_arg_size): Likewise.
4587         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
4588         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
4589         (rs6000_mixed_function_arg): Likewise.
4590         (function_arg): Rename to...
4591         (rs6000_function_arg): ...this.
4592         (function_arg_advance): Rename to...
4593         (rs6000_function_arg_advance_1): ...this
4594         (rs6000_function_arg_advance): New function.  Call it.
4595         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
4596         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
4597         (rs6000_function_value): Likewise.
4598         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4599
4600 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4601
4602         * config/arm/arm.md (enabled): Test the value of arch_enabled
4603         rather than just using it.
4604
4605 2010-08-27  Olivier Hainque  <hainque@adacore.com>
4606             Eric Botcazou  <ebotcazou@adacore.com>
4607
4608         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
4609         cover all the possible offsets from this base.
4610         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
4611
4612 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
4613
4614         PR tree-optimization/44485
4615         * calls.c (flags_from_decl_or_type): For const or pure
4616         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
4617         together with ECF_CONST resp. ECF_PURE.
4618         * builtins.c (expand_builtin): Use flags_from_decl_or_type
4619         instead of querying flags directly.
4620         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
4621         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
4622
4623 2010-08-26  Richard Guenther  <rguenther@suse.de>
4624
4625         PR tree-optimization/45255
4626         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
4627         and externals are also invariant.
4628
4629 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
4630
4631         PR rtl-optimization/44858
4632         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
4633         newi2pat, make sure they don't affect newpat.
4634
4635         PR rtl-optimization/45400
4636         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
4637         SUBREG_REG if both modes are of MODE_INT class.
4638
4639 2010-08-25  Julian Brown  <julian@codesourcery.com>
4640
4641         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
4642         * config/arm/arm.md (generic_sched): No for Cortex-A5.
4643         (generic_vfp): Likewise.
4644         (cortex-a5.md): Include.
4645         * config/arm/cortex-a5.md: New.
4646
4647 2010-08-25  Richard Guenther  <rguenther@suse.de>
4648
4649         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
4650         * gimple.c (gimple_get_alias_set): Remove special handling
4651         for pointers.
4652
4653 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
4654
4655         PR middle-end/45355
4656         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
4657         dead_or_set_p when computing i0_feeds_i2_n.
4658
4659         * combine.c (find_split_point): Undo canonicalization of multiply-add
4660         to (minus x (mult)) when it seems likely that this will increase the
4661         chances of a split.
4662
4663 2010-08-25  Richard Guenther  <rguenther@suse.de>
4664
4665         PR lto/44562
4666         * lto-streamer.c (lto_record_common_node): Do not mess with
4667         TYPE_CANONICAL when not in lto.
4668         * gimple.c (gimple_register_type): Likewise.
4669
4670 2010-08-25  Richard Guenther  <rguenther@suse.de>
4671
4672         PR tree-optimization/45316
4673         * tree-ssa-pre.c (eliminate): Properly clean EH info.
4674
4675 2010-08-25  Richard Guenther  <rguenther@suse.de>
4676
4677         PR tree-optimization/45393
4678         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
4679         and clean EH info.  Avoid SSA update.
4680         (execute_cse_sincos): Cleanup the CFG if it has changed.
4681
4682 2010-08-25  Richard Guenther  <rguenther@suse.de>
4683
4684         PR middle-end/45379
4685         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
4686         TARGET_MEM_REF in alignment computation.
4687
4688 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
4689
4690         PR tree-optimization/45059
4691         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
4692         type conversions from newop{1,2}.  Assert t is a comparison and
4693         newop{1,2} after the stripping are gimple vals.
4694
4695 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
4696
4697         * config/arm/iterators.md (VU, SE, V_widen_l): New.
4698         (V_unpack, US): New.
4699         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
4700         (vec_unpack<US>_lo_<mode>): Likewise.
4701         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
4702         (neon_vec_unpack<US>_lo_<mode>): Likewise.
4703         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
4704         (vec_widen_<US>mult_hi_<mode>): Likewise.
4705         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
4706         (neon_vec_<US>mult_hi_<mode>"): Likewise.
4707         (neon_unpack<US>_<mode>): Widening move intermediate step for
4708         vectorizing without -mvectorize-with-neon-quad.
4709         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
4710         for vectorizing without -mvectorize-with-neon-quad.
4711         * config/arm/predicates.md (vect_par_constant_high): Check for
4712         high-half lanes of a vector.
4713         (vect_par_constant_low): Check for low-half lanes of a vector.
4714
4715 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
4716
4717         * tree-if-conv.c (struct ifc_dr): New.
4718         (IFC_DR): New.
4719         (DR_WRITTEN_AT_LEAST_ONCE): New.
4720         (DR_RW_UNCONDITIONALLY): New.
4721         (memref_read_or_written_unconditionally): Use the cached values
4722         when possible.
4723         (write_memref_written_at_least_once): Same.
4724         (if_convertible_loop_p): Initialize and free DR->aux fields.
4725
4726 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
4727
4728         * gimple.c (gimple_could_trap_p_1): Not static anymore.
4729         Pass an extra bool parameter include_mem.
4730         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
4731         (gimple_assign_rhs_could_trap_p): Same.
4732         * gimple.h (gimple_could_trap_p_1): Declared.
4733         * tree-data-ref.h (same_data_refs_base_objects): New.
4734         (same_data_refs): New.
4735         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
4736         (write_memrefs_written_at_least_once): New.
4737         (ifcvt_memrefs_wont_trap): New.
4738         (operations_could_trap): New.
4739         (ifcvt_could_trap_p): New.
4740         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
4741         Gets a vector of data refs.
4742         (if_convertible_stmt_p): Same.
4743         (if_convertible_loop_p_1): New.
4744         (if_convertible_loop_p): Call if_convertible_loop_p_1.
4745
4746 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
4747
4748         * common.opt (ftree-loop-if-convert-stores): New flag.
4749         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
4750         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
4751         the created statement before GSI.
4752         (if_convertible_phi_p): Allow virtual phi nodes when
4753         flag_loop_if_convert_stores is set.
4754         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
4755         Do not handle types that do not match is_gimple_reg_type.
4756         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
4757         when flag_loop_if_convert_stores is set, as LHS can contain
4758         memory refs.
4759         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
4760         to if_convertible_gimple_assign_stmt_p.
4761         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
4762         (replace_phi_with_cond_gimple_assign_stmt): Renamed
4763         predicate_scalar_phi.  Do not handle virtual phi nodes.
4764         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
4765         Call predicate_scalar_phi.
4766         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
4767         just after the labels for flag_loop_if_convert_stores, otherwise
4768         insert the predicate in the end of the BB.
4769         (predicate_mem_writes): New.
4770         (combine_blocks): Call predicate_all_scalar_phis.  When
4771         flag_loop_if_convert_stores is set, call predicate_mem_writes.
4772         (tree_if_conversion): Call mark_sym_for_renaming when
4773         flag_loop_if_convert_stores is set.
4774         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
4775         flag_loop_if_convert_stores is set.
4776
4777 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
4778
4779         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
4780         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
4781         (pa_function_value): Make static.
4782         (override_options): Rename to...
4783         (pa_option_override): ...this. Make static.
4784         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
4785         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
4786         TARGET_OPTION_OVERRIDE): Define.
4787         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
4788         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
4789         Remove.
4790         * config/pa/pa-protos.h (override_options): Remove.
4791
4792 2010-08-24  Richard Guenther  <rguenther@suse.de>
4793
4794         PR middle-end/45379
4795         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
4796         if addr->index is NULL or zero.
4797         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
4798         TARGET_MEM_REF more properly.
4799         (indirect_ref_may_alias_decl_p): Likewise.
4800         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
4801         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
4802
4803 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
4804
4805         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
4806         (m32c_override_options): Rename to...
4807         (m32c_option_override): ...this. Make static.
4808         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
4809         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
4810         Remove.
4811         * config/m32c/m32c-protos.h (m32c_override_options,
4812         m32c_function_value_regno_p): Remove.
4813
4814 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
4815
4816         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
4817         Fix a typo in a previous commit.
4818
4819 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
4820
4821         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
4822         Pre-initialize innerloop_iters to one.
4823
4824 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
4825
4826         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
4827         existing static function global.
4828
4829         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
4830         is changed to global.
4831
4832         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
4833         may_be_nonaddressable_p on base, and don't collect this reference
4834         if the address of the base could not be taken.
4835
4836 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4837
4838         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
4839         enable the compiler to autovectorize mathmetical functions for
4840         power7 using the Mathematical Acceleration Subsystem library.
4841
4842         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
4843         handle which vector math library we have.
4844         (rs6000_override_options): Add -mveclibabi=mass support.
4845         (rs6000_builtin_vectorized_libmass): New function to handle auto
4846         vectorizing math functions that are in the MASS library.
4847         (rs6000_builtin_vectorized_function): Call it.
4848
4849         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4850         -mveclibabi=mass.
4851
4852 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4853
4854         PR boehm-gc/34544
4855         * gthr-posix.h (__gthread_active_init): Delete.
4856         (__gthread_active_p): Do activity check here.
4857         Don't include errno.h on hppa-hpux.  Update comment.
4858         * gthr-posix95.h (__gthread_active_init): Delete.
4859         (__gthread_active_p): Do activity check here.
4860         Don't include errno.h on hppa-hpux.  Update comment.
4861         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
4862         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
4863         add -lpthread when -mt or -pthread is specified.
4864         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
4865         (LINK_GCC_C_SEQUENCE_SPEC): Define.
4866         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
4867         (stublib.c, pthread_default_stacksize_np-stub.o,
4868         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
4869         $(T)libgcc_stub.a): Add methods.
4870         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
4871         (stublib.c, pthread_default_stacksize_np-stub.o,
4872         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
4873         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
4874         pthread_mutex_unlock): New stubs.
4875
4876 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
4877
4878         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
4879         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
4880         options.
4881         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
4882         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
4883         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
4884         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
4885         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
4886         "-l".
4887         * cppspec.c: Include opts.h.
4888         (lang_specific_driver): Use cl_decoded_option structures.
4889         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
4890         * doc/tm.texi: Regenerate.
4891         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
4892         (driver_handle_option): Allow driver options needing no special
4893         processing.
4894         (process_command): Decode options before call to
4895         lang_specific_driver.  Pass decoded options to
4896         lang_specific_driver.
4897         * gcc.h (lang_specific_driver): Update prototype.
4898         * gccspec.c: Include opts.h.
4899         (lang_specific_driver): Use cl_decoded_option structures.
4900         * opts-common.c (option_ok_for_language, generate_option,
4901         generate_option_input_file): New.
4902         (decode_cmdline_option): Use option_ok_for_language.
4903         (decode_cmdline_options_to_array): Use generate_option_input_file.
4904         (handle_generated_option): Use generate_option.
4905         * opts.h (generate_option, generate_option_input_file): Declare.
4906
4907 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
4908
4909         * config/mips/mips.c (mips_override_options): Rename to...
4910         (mips_option_override): ...this. Make static.
4911         (TARGET_OPTION_OVERRIDE): Define.
4912         (mips_in_small_data_p): Update comment.
4913         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
4914         (FIXED_REGISTERS): Update comment.
4915         * config/mips/mips-protos.h (mips_override_options): Remove.
4916
4917 2010-08-21  Olivier Hainque  <hainque@adacore.com>
4918
4919         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
4920
4921 2010-08-21  Olivier Hainque  <hainque@adacore.com>
4922
4923         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
4924         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
4925
4926 2010-08-20  Jan Hubicka  <jh@suse.cz>
4927
4928         * tree-pass.h (pass_ipa_cdtor_merge): New function.
4929         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
4930         heap allocated.
4931         (record_cdtor_fn): Move to ipa.c; do not test for
4932         have_ctors_dtors.
4933         (build_cdtor): Move to ipa.c; add code avoiding construction
4934         when target have ctors/dtors and there is only one ctor/dtor at given
4935         priority.
4936         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
4937         sort; reverse order of constructors.
4938         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
4939         (cgraph_finalize_function): Do not call record_cdtor_fn.
4940         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
4941         (cgraph_build_static_cdtor): Move to ipa.c.
4942         * ipa.c: Include target.h and tree-iterator.h.
4943         (cgraph_build_static_cdtor, static_ctors, static_dtors,
4944         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
4945         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
4946         pass_ipa_cdtor_merge): New.
4947         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
4948         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
4949         bounds access.
4950
4951 2010-08-20  Jan Hubicka  <jh@suse.cz>
4952
4953         PR c++/45307
4954         PR c++/17736
4955         * cgraph.h (cgraph_only_called_directly_p,
4956         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
4957         static cdtors.
4958         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
4959         are not needed.
4960         (cgraph_finalize_function): Static cdtors are reachable.
4961         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
4962
4963 2010-08-20  Jan Hubicka  <jh@suse.cz>
4964
4965         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
4966         flag_wpa.
4967         * lto-streamer-out.c (lto_output): Likewise.
4968         * passes.c (ipa_write_optimization_summaries): Initialize statement
4969         uids.
4970
4971 2010-08-20  Olivier Hainque  <hainque@adacore.com>
4972
4973         * tree.h (alias_diag_flags): New enum.
4974         (alias_pair): Add an 'emitted_diags' field.
4975         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
4976         (assemble_alias): Initialize emitted_diags of new pairs.
4977
4978 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
4979
4980         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
4981         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4982         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4983         (STACK_CHECK_PROTECT): Define.
4984         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
4985         (output_probe_stack_range): Likewise.
4986         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
4987         builtin stack checking is enabled.
4988         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
4989         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
4990         (probe_stack_range): New insn.
4991
4992 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
4993
4994         PR target/45336
4995         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
4996         short first.
4997
4998         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
4999         char first.
5000
5001 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5002
5003         PR target/45336
5004         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
5005         to cover zero extension into 64-bit register.
5006         (*sse2_pextrw): Likewise.
5007         (*sse4_1_pextrd_zext): New insn.
5008
5009 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
5010
5011         revert r163410, partially revert r163267.
5012         * config/rs6000/darwin.h (LIB_SPEC): Remove.
5013         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
5014         Darwin versions.
5015
5016 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5017
5018         PR middle-end/44974
5019         * builtins.c (expand_builtin): Don't optimize away
5020         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
5021
5022 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
5023
5024         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
5025         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
5026         alternative 1 of operand 2.
5027
5028 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5029             Paolo Bonzini  <bonzini@gnu.org>
5030
5031         * simplify-rtx.c (simplify_unary_operation_1): Optimize
5032         (sign_extend (zero_extend (...)) and
5033         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
5034
5035 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5036
5037         PR rtl-optimization/45353
5038         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
5039         after bb_note is a BARRIER.
5040
5041 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
5042
5043         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
5044         linking libgcc.a.
5045
5046 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5047             Michael Matz  <matz@suse.de>
5048
5049         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
5050
5051 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
5052
5053         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
5054         (ggc_mark_roots): ...here.
5055
5056 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
5057
5058         * vec.h (FOR_EACH_VEC_ELT): Define.
5059         * c-decl.c: Use it.
5060         * cfgloop.c: Likewise.
5061         * cfgloopmanip.c: Likewise.
5062         * cgraph.c: Likewise.
5063         * cgraphunit.c: Likewise.
5064         * combine.c: Likewise.
5065         * config/bfin/bfin.c: Likewise.
5066         * config/mips/mips.c: Likewise.
5067         * config/rs6000/rs6000.c: Likewise.
5068         * dbxout.c: Likewise.
5069         * df-scan.c: Likewise.
5070         * dominance.c: Likewise.
5071         * dse.c: Likewise.
5072         * dwarf2out.c: Likewise.
5073         * except.c: Likewise.
5074         * expr.c: Likewise.
5075         * function.c: Likewise.
5076         * gcse.c: Likewise.
5077         * genattr.c: Likewise.
5078         * ggc-common.c: Likewise.
5079         * gimplify.c: Likewise.
5080         * graphite-blocking.c: Likewise.
5081         * graphite-clast-to-gimple.c: Likewise.
5082         * graphite-dependences.c: Likewise.
5083         * graphite-interchange.c: Likewise.
5084         * graphite-poly.c: Likewise.
5085         * graphite-scop-detection.c: Likewise.
5086         * graphite-sese-to-poly.c: Likewise.
5087         * graphite.c: Likewise.
5088         * haifa-sched.c: Likewise.
5089         * ifcvt.c: Likewise.
5090         * implicit-zee.c: Likewise.
5091         * ipa-prop.c: Likewise.
5092         * ipa-struct-reorg.c: Likewise.
5093         * ipa.c: Likewise.
5094         * ira-build.c: Likewise.
5095         * ira-color.c: Likewise.
5096         * ira-emit.c: Likewise.
5097         * lambda-code.c: Likewise.
5098         * loop-invariant.c: Likewise.
5099         * loop-unroll.c: Likewise.
5100         * lower-subreg.c: Likewise.
5101         * lto-cgraph.c: Likewise.
5102         * lto-opts.c: Likewise.
5103         * lto-streamer-in.c: Likewise.
5104         * lto-streamer-out.c: Likewise.
5105         * lto-streamer.c: Likewise.
5106         * lto-symtab.c: Likewise.
5107         * matrix-reorg.c: Likewise.
5108         * opts.c: Likewise.
5109         * predict.c: Likewise.
5110         * print-tree.c: Likewise.
5111         * sdbout.c: Likewise.
5112         * sel-sched-dump.c: Likewise.
5113         * sel-sched-ir.c: Likewise.
5114         * sel-sched.c: Likewise.
5115         * sese.c: Likewise.
5116         * stor-layout.c: Likewise.
5117         * tree-cfg.c: Likewise.
5118         * tree-cfgcleanup.c: Likewise.
5119         * tree-chrec.c: Likewise.
5120         * tree-data-ref.c: Likewise.
5121         * tree-emutls.c: Likewise.
5122         * tree-inline.c: Likewise.
5123         * tree-into-ssa.c: Likewise.
5124         * tree-loop-distribution.c: Likewise.
5125         * tree-loop-linear.c: Likewise.
5126         * tree-mudflap.c: Likewise.
5127         * tree-outof-ssa.c: Likewise.
5128         * tree-parloops.c: Likewise.
5129         * tree-predcom.c: Likewise.
5130         * tree-pretty-print.c: Likewise.
5131         * tree-scalar-evolution.c: Likewise.
5132         * tree-ssa-live.c: Likewise.
5133         * tree-ssa-loop-im.c: Likewise.
5134         * tree-ssa-loop-ivcanon.c: Likewise.
5135         * tree-ssa-loop-ivopts.c: Likewise.
5136         * tree-ssa-loop-manip.c: Likewise.
5137         * tree-ssa-loop-niter.c: Likewise.
5138         * tree-ssa-loop-prefetch.c: Likewise.
5139         * tree-ssa-phiprop.c: Likewise.
5140         * tree-ssa-pre.c: Likewise.
5141         * tree-ssa-reassoc.c: Likewise.
5142         * tree-ssa-sccvn.c: Likewise.
5143         * tree-ssa-structalias.c: Likewise.
5144         * tree-ssa.c: Likewise.
5145         * tree-vect-data-refs.c: Likewise.
5146         * tree-vect-loop-manip.c: Likewise.
5147         * tree-vect-loop.c: Likewise.
5148         * tree-vect-patterns.c: Likewise.
5149         * tree-vect-slp.c: Likewise.
5150         * tree-vect-stmts.c: Likewise.
5151         * tree-vrp.c: Likewise.
5152         * tree.c: Likewise.
5153         * value-prof.c: Likewise.
5154         * var-tracking.c: Likewise.
5155         * varasm.c: Likewise.
5156         * vmsdbgout.c: Likewise.
5157
5158 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
5159             Richard Guenther  <richard.guenther@gmail.com>
5160
5161         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
5162         copy the src value and return a copy.
5163         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
5164         (C++ Volatiles): Adjust to describe C++ semantics only.
5165
5166 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
5167
5168         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
5169         be zero or nonzero.
5170         * doc/tm.texi: Regenerate.
5171         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
5172         * df-scan.c (df_get_exit_block_use_set), reginfo.c
5173         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
5174         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
5175         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
5176         to 1.
5177
5178 2010-08-20  Olivier Hainque  <hainque@adacore.com>
5179
5180         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
5181         an extra nop past a sibling call at the very end.
5182
5183 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
5184
5185         PR bootstrap/45350
5186         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
5187         a comment.
5188
5189 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
5190
5191         * target.def (function_arg, function_incoming_arg): Remove const
5192         qualifier on CUMULATIVE_ARGS parameter.
5193         * targhooks.h (default_function_arg, default_function_incoming_arg):
5194         Likewise.
5195         * targhooks.c (default_function_arg, default_function_incoming_arg):
5196         Likewise.
5197         * config/i386/i386.c (ix86_function_arg): Likewise.
5198
5199 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
5200
5201         PR target/45336
5202         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
5203         SIGN_EXTENDs or ZERO_EXTENDs.
5204
5205 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
5206
5207         PR target/42172
5208         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
5209         Take its cost into account if nonnull.
5210         (insn_a_feeds_b): New static function.
5211         (combine_instructions): Look for four-insn combinations.
5212         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
5213         them into account when computing all_adjacent and looking for other
5214         uses.
5215         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
5216         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
5217         (try_combine): New arg I0.  Handle four-insn combinations.
5218         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
5219         like ELIM_I1.
5220
5221 2010-08-19  Jason Merrill  <jason@redhat.com>
5222
5223         PR c++/45307
5224         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
5225         if ctor is empty.
5226         (gimplify_modify_expr_rhs): Adjust.
5227
5228 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
5229
5230         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
5231         bitmap_bit_p.
5232         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
5233         * dominance.c (iterate_fix_dominators): Likewise.
5234         * dse.c (set_usage_bits): Likewise.
5235         (set_position_unneeded, record_store): Likewise.
5236         * gimple-fold.c (get_maxval_strlen): Likewise.
5237         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
5238         * ipa-inline.c (update_caller_keys): Likewise.
5239         * ipa-split.c (verify_non_ssa_vars): Likewise.
5240         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
5241         (close_type_exposed_parameter, close_type_full_escape): Likewise.
5242         (close_addressof_down): Likewise.
5243         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
5244         (setup_allocno_left_conflicts_size): Likewise.
5245         (ira_reassign_conflict_allocnos): Likewise.
5246         (ira_reassign_pseudos): Likewise.
5247         * ira-emit.c (change_loop): Likewise.
5248         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
5249         * lto-streamer-out.c (write_symbol): Likewise.
5250         * predict.c (expr_expected_value_1): Likewise.
5251         * regstat.c (regstat_bb_compute_ri): Likewise.
5252         * sel-sched.c (create_block_for_bookkeeping): Likewise.
5253         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
5254         * stmt.c (expand_case): Likewise.
5255         * tree-eh.c (emit_eh_dispatch): Likewise.
5256         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
5257         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
5258         Likewise.
5259         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
5260         (rdg_build_components): Likewise.
5261         * tree-object-size.c (collect_object_sizes_for): Likewise.
5262         * tree-sra.c (convert_callers): Likewise.
5263         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
5264         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
5265         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
5266
5267 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
5268
5269         * config/i386/i386.md (*lea_1): Use P mode iterator.
5270         (lea add splitter): Also handle DImode operands.
5271         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
5272         predicate.  Do not use ix86_lea_for_add_ok.
5273         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
5274         (lea ashift splitter): Also handle DImode operands.
5275         (DImode lea ashift splitter): Remove splitter.
5276
5277 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
5278
5279         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
5280         ix86_binary_operator_ok.
5281
5282 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
5283
5284         PR rtl-optimization/44691
5285         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
5286         is not a register.
5287
5288 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
5289
5290         PR target/45070
5291         * config/arm/arm.c (arm_output_epilogue): Ensure that return
5292          value of size 1-3 is handled correctly.
5293
5294 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
5295
5296         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
5297         type for the conditional has wide enough range.
5298
5299 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
5300
5301         PR target/45327
5302         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
5303         ix86_binary_operator_ok.
5304
5305 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
5306
5307         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
5308         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
5309         code to output insn mnemonic.  Fix comment.
5310         (*addsi_1_zext): Add r-r-0 alternative 1.
5311         <TYPE_LEA>: Split insn to lea.
5312         <default>: Handle alternative 1.
5313         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
5314         multi-level if_then_else RTX to set "type" attribute.
5315         <default>: Handle alternative 2.
5316         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
5317         Use cond RTX instead of multi-level if_then_else RTX to set
5318         "type" attribute.
5319         <default>: Handle alternatives 2 and 4.
5320         (lea splitters): Update calls to ix86_lea_for_add_ok.
5321
5322         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
5323         argument.
5324         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
5325
5326 2010-08-18  Richard Guenther  <rguenther@suse.de>
5327
5328         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
5329         use operand helpers.
5330
5331 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
5332
5333         PR middle-end/45292
5334         * optabs.c (expand_bool_compare_and_swap): Expand pending
5335         pops before trying the optab.
5336
5337 2010-08-18  Yao Qi  <yao@codesourcery.com>
5338
5339         PR target/45094
5340         * config/arm/arm.c (output_move_double): Fix typo generating
5341         instructions ('ldr'->'str').
5342
5343 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
5344
5345         PR rtl-optimization/42575
5346         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
5347         live ranges.
5348
5349 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5350
5351         * config/arm/arm-protos.h (arm_expand_sync): New.
5352         (arm_output_memory_barrier, arm_output_sync_insn): New.
5353         (arm_sync_loop_insns): New.
5354         * config/arm/arm.c (FL_ARCH7): New.
5355         (FL_FOR_ARCH7): Include FL_ARCH7.
5356         (arm_arch7): New.
5357         (arm_print_operand): Support %C markup.
5358         (arm_legitimize_sync_memory): New.
5359         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
5360         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
5361         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
5362         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
5363         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
5364         (arm_process_output_sync_insn, arm_output_sync_insn): New.
5365         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
5366         * config/arm/arm.h (struct arm_sync_generator): New.
5367         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
5368         (TARGET_HAVE_MEMORY_BARRIER): New.
5369         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
5370         * config/arm/arm.md: Include sync.md.
5371         (UNSPEC_MEMORY_BARRIER): New.
5372         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
5373         (VUNSPEC_SYNC_OP):New.
5374         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
5375         (sync_result, sync_memory, sync_required_value): New attributes.
5376         (sync_new_value, sync_t1, sync_t2): Likewise.
5377         (sync_release_barrier, sync_op): Likewise.
5378         (length): Add logic to length attribute defintion to call
5379         arm_sync_loop_insns when appropriate.
5380         * config/arm/sync.md: New file.
5381
5382 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
5383
5384         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
5385         ENABLE_TREE_CHECKING.
5386         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
5387         and GCC >= 4.3.
5388
5389 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
5390
5391         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
5392         or optimizing for size, always avoid lea if possible.
5393
5394         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
5395
5396 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
5397
5398         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
5399         Dunmmy function with NULL return unless the target is
5400         OSX >= 10.6 (Darwin10).
5401
5402 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
5403
5404         * gcc.c (spec_function): Add remove-outfile.
5405         (remove_outfile_spec_function): New function.
5406         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
5407         * invoke.texi (replace-outfile): Document.
5408
5409 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
5410
5411         PR target/45296
5412         * reginfo.c (globalize_reg): Reject stack registers.
5413
5414 2010-08-17  Richard Guenther  <rguenther@suse.de>
5415
5416         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
5417         list of conditional equivalences.
5418         (free_all_edge_infos): Adjust.
5419         (record_equivalences_from_incoming_edge): Likewise.
5420         (record_cond): Likewise.
5421         (build_and_record_new_cond): Likewise.
5422         (record_conditions): Likewise.
5423         (dom_opt_leave_block): Likewise.
5424
5425 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
5426
5427         * doc/invoke.texi (ms-extension): Add documentation.
5428
5429 2010-08-17  Richard Guenther  <rguenther@suse.de>
5430
5431         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
5432
5433 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
5434
5435         PR c/40563
5436         * c-decl.c (diagnose_uninitialized_cst_member): New function.
5437         (finish_decl): Use it to issue a -Wc++-compat warning about
5438         uninitialized const field in struct or union.
5439
5440         (finish_struct): Use strip_array_types.
5441
5442 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
5443
5444         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
5445         functions.
5446         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
5447         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
5448         call block_nreverse here.
5449         (blocks_nreverse): Rename decl temporary to block.
5450
5451 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
5452
5453         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
5454         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
5455         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
5456         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
5457         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
5458         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
5459         thumb2_iorsi3): Delete.
5460         (orsi_notsi_si): No longer a named pattern.
5461         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
5462         * config/arm/predicates.md (shift_amount_operand): New.
5463         (mult_operator): New.
5464         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
5465         attr enabled): New.
5466         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
5467         arch matches t2.
5468         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
5469         (not_shiftsi_compare0): Likewise, renamed from
5470         arm_notsi_shiftsi_compare0.
5471         (not_shiftsi_compare0_scratch): Likweise, renamed from
5472         arm_notsi_shiftsi_compare0_scratch.
5473         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
5474         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
5475         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
5476         so that the register alternative is disabled when the shift_operator
5477         is MULT.  Use "M" as the constraint for constants.
5478         (arith_shiftsi splitter): Enable for TARGET_32BIT.
5479         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
5480         constraint for constants.
5481         (arith_shiftsi_compare0_scratch): Likewise.
5482         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
5483         Handle Thumb2 alternative.
5484
5485 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
5486
5487         * doc/options.texi (NoDriverArg): Document.
5488         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
5489         -MDX and -MMDX.
5490         * opt-functions.awk (switch_flags): Handle NoDriverArg.
5491         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
5492         marking for CL_NO_DRIVER_ARG options when in the driver.
5493         * opts.h (CL_NO_DRIVER_ARG): Define.
5494         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
5495         CL_COMMON): Update values.
5496
5497 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
5498
5499         * common.opt: Add driver options.
5500         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
5501         * doc/options.texi (Driver, RejectDriver): Document.
5502         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
5503         print_prog_name, print_multi_directory, print_sysroot,
5504         print_multi_os_directory, print_multi_lib,
5505         print_sysroot_headers_suffix, report_times, combine_flag,
5506         use_pipes, wrapper_string): Remove.
5507         (save_switch, driver_unknown_option_callback,
5508         driver_wrong_lang_callback, driver_post_handling_callback,
5509         driver_handle_option): New.
5510         (spec_lang, last_language_n_infiles): Make file-scope static
5511         instead of local to process_command.
5512         (process_command): Use decode_cmdline_options_to_array and
5513         read_cmdline_option for option processing.  Compute have_c in
5514         prescan of decoded options.
5515         * opt-functions.awk (switch_flags): Handle Driver and
5516         RejectDriver.
5517         (var_type, var_type_struct): Handle Separate options as generating
5518         const char * variables.
5519         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
5520         CL_TARGET to be passed by caller if required.
5521         (decode_cmdline_options_to_array): Update comment.
5522         * opts.c (complain_wrong_lang): Handle options only valid for the
5523         driver.
5524         (decode_options): Update call to decode_cmdline_options_to_array.
5525         (print_filtered_help): Ignore driver-only options.
5526         (print_specific_help): Ignore CL_DRIVER.
5527         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
5528         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
5529         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
5530         Update values.
5531
5532 2010-08-16  Richard Guenther  <rguenther@suse.de>
5533
5534         * tree-cfg.c (verify_types_in_gimple_reference): Verify
5535         TARGET_MEM_REF a bit.
5536         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
5537         (create_mem_ref_raw): Always create TMR_OFFSET, store the
5538         alias pointer type via it.
5539         (copy_mem_ref_info): Adjust.
5540         (maybe_fold_tmr): Likewise.
5541         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
5542         (reference_alias_ptr_type): Likewise.
5543         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
5544         adjust documentation of TMR_OFFSET operand.
5545         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
5546         use the alias pointer type.
5547         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
5548         initialize mem attrs but the TMR itself.
5549         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
5550         similar to MEM_REF.
5551         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
5552         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
5553         (unshare_and_remove_ssa_names): Likewise.
5554         (copy_ref_info): Adjust.
5555         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
5556         TARGET_MEM_REF case.
5557         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
5558         at TMR_ORIGINAL.
5559         * tree.h (TMR_ORIGINAL): Remove.
5560         * gimple.c (get_base_address): For TARGET_MEM_REF with a
5561         symbol return that.
5562         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
5563         with a symbol.
5564         (get_addr_base_and_unit_offset): Likewise.
5565         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
5566         TARGET_MEM_REFs.
5567         (indirect_ref_may_alias_decl_p): Likewise.
5568         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
5569
5570 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
5571
5572         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
5573         with GCC version 4.6, the default setting (when not optimizing
5574         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
5575         been changed to -fomit-frame-pointer.
5576
5577 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
5578
5579         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
5580         Darwin10.  Do not link libgcc.a for Darwin >= 9.
5581
5582 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
5583
5584         * doc/invoke.texi (Warning Options): Fix terminology and markup
5585         in the description of how unknown warning options are handled.
5586
5587 2010-08-15  Ira Rosen  <irar@il.ibm.com>
5588
5589         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
5590         in basic blocks.
5591         (vect_supportable_dr_alignment): Check alignment for basic blocks.
5592         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
5593         data references.
5594         (vect_bb_vectorization_profitable_p): New function.
5595         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
5596         check if it's worthwhile to vectorize the basic block.
5597
5598 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
5599
5600         * reload.h (register_move_cost, memory_move_secondary_cost,
5601         secondary_reload_class): Adjust prototype.
5602         * rtl.h (reg_class_subset_p): Adjust prototype.
5603         * reload.c (secondary_reload_class): Change arguments type from
5604         enum reg_class to reg_class_t. Change result type to reg_class_t.
5605         * reginfo.c (register_move_cost, reg_class_subset_p): Change
5606         arguments type from enum reg_class to reg_class_t.
5607         (memory_move_secondary_cost): Change arguments type from
5608         enum reg_class to reg_class_t. Change type of saved_flags to
5609         reg_class_t.
5610
5611         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5612         Remove macros.
5613         (mips_cost): Remove.
5614         (struct mips_rtx_cost_data): Moved to mips.c.
5615         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
5616         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
5617         (mips_cost): Make static.
5618         (mips_canonicalize_move_class): Change argument type to reg_class_t.
5619         Change result type to reg_class_t.
5620         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
5621         type from enum reg_class to reg_class_t.
5622         (mips_register_move_cost): Make static. Change arguments
5623         type from enum reg_class to reg_class_t.
5624         (mips_memory_move_cost): New function.
5625         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5626
5627 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
5628
5629         PR rtl-optimization/43358
5630         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
5631         of a single hard register, using simplify_subreg_regno to decide
5632         what that register should be.
5633
5634 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
5635
5636         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
5637         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
5638         (loongson_pmull<V_suffix>): Rename to...
5639         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
5640
5641 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
5642
5643         * configure.ac: Enable -fomit-frame-pointer on darwin
5644         which support dwarf2.
5645         * config/i386/i386.c (override_options): Same.
5646
5647 2010-08-13  Jie Zhang  <jie@codesourcery.com>
5648
5649         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
5650
5651 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
5652
5653         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
5654         -MMD.
5655
5656 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
5657
5658         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
5659         up dot_prod pattern searching if a stmt is outside the loop.
5660
5661 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
5662             Uros Bizjak  <ubizjak@gmail.com>
5663
5664         * config.gcc: Handle --enable-frame-pointer.
5665
5666         * configure.ac: Add --enable-frame-pointer.
5667         * configure: Regenerated.
5668
5669         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
5670         (override_options): If not configured with --enable-frame-pointer,
5671         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
5672         optimizing for size), -fasynchronous-unwind-tables and
5673         -maccumulate-outgoing-args by default.
5674
5675 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
5676
5677         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
5678
5679         PR middle-end/45262
5680         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
5681         -a overflows.  Normalize the range.
5682
5683 2010-08-12  Richard Guenther  <rguenther@suse.de>
5684
5685         PR tree-optimization/45232
5686         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
5687         for types with undefined overflow.
5688         (reassociate_bb): Allow re-associating of bit and min/max
5689         operations for types with undefined overflow.
5690         * tree-ssa-forwprop.c (associate_plusminus): New function.
5691         (tree_ssa_forward_propagate_single_use_vars): Call it.
5692
5693 2010-08-12  Richard Guenther  <rguenther@suse.de>
5694
5695         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
5696         * tree-ssa-alias.c (get_ptr_info): Move ...
5697         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
5698         align and misalign fields conservatively.
5699         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
5700         derive alignment information.
5701         (evaluate_stmt): Derive alignment information from memory
5702         allocation functions.
5703         * tree.h (get_pointer_alignment): Make unsigned.
5704         * builtins.c (get_object_alignment): Use alignment information we
5705         have computed for pointers.
5706         (get_pointer_alignment): Likewise.  Make conservative, return
5707         and unsigned value.
5708         (expand_builtin_strlen): Adjust.
5709         (expand_builtin_memcmp): Likewise.
5710         (expand_builtin_strcmp): Likewise.
5711         (expand_builtin_strncmp): Likewise.
5712         (get_builtin_sync_mem): Use at least mode alignment.
5713         (fold_builtin_memset): Adjust.
5714         (fold_builtin_memory_op): Likewise.
5715         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
5716         information also dump pointer alignment knowledge.
5717         (dump_gimple_stmt): Likewise.
5718
5719 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
5720
5721         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
5722         (EMPTY_FIELD_BOUNDARY): Remove.
5723         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
5724
5725 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
5726
5727         PR debug/45259
5728         * caller-save.c (save_call_clobbered_regs): Only swap notes with
5729         DEBUG_INSNs if n_regs_saved.
5730
5731 2010-08-12  Wei Guozhi  <carrot@google.com>
5732
5733         PR target/44999
5734         * config/arm/arm.md (andsi3): Change to zero extension if possible.
5735         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
5736
5737 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
5738
5739         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
5740
5741         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
5742
5743 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5744
5745         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
5746         the case removed in the previous patch, when the only phi argument
5747         is defined in the same loop as the phi node itself.  Handle it
5748         separately from the invariant case by both propagating it outside
5749         the region and replacing the phi node with an assign.
5750
5751 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5752
5753         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
5754         constant phi nodes with one argument are is_gimple_min_invariant
5755         and SSA_NAME_IS_DEFAULT_DEF.
5756
5757 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5758
5759         * graphite-cloog-util.c (oppose_constraint):
5760         Extend loop counter's value range (CLOOG_ORG).
5761         (cloog_matrix_to_ppl_constraint): Same.
5762         (new_Constraint_System_from_Cloog_matrix): Same.
5763         * graphite-cloog-compat.h (matrix_num_type): New.
5764
5765 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5766
5767         * graphite.c (graphite_initialize): Do not initialize
5768         CLooG and initialize the Parma Polyhedra Library
5769         manually when using CLOOG_ORG.
5770         (graphite_finalize): Do not finalize CLooG and finalize
5771         the Parma Polyhedra Library manually when using CLOOG_ORG.
5772         * graphite-cloog-compat.h (cloog_initialize): Hide function
5773         when using CLOOG_ORG.
5774         (cloog_finalize): Same.
5775
5776 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5777
5778         * graphite-clast-to-gimple.c (free_scattering): Change
5779         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
5780         (CLOOG_ORG).
5781         (build_cloog_prog): Same.
5782         * graphite-cloog-compat.h (cloog_domain): Removed.
5783         (cloog_scattering): New.
5784         (cloog_set_domain): Removed.
5785         (cloog_set_scattering): New.
5786         (cloog_next_domain): Removed.
5787         (cloog_next_scattering): New.
5788         (cloog_set_next_domain): Removed.
5789         (cloog_set_next_scattering): New.
5790         (CloogScatteringList): New.
5791         (CloogScattering): New.
5792         (cloog_scattering_free): New.
5793         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
5794         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
5795         New.
5796
5797 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5798
5799         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
5800         CloogState.
5801         (set_cloog_options): Same.
5802         (print_clast_stmt): Same.
5803         (scop_to_clast): Same.
5804         (print_generated_program): Same.
5805         (gloog): Same.
5806         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
5807         (scop_to_clast): Extend with CloogState.
5808         * graphite-cloog-util.c: Include graphite-cloog-compat.h
5809         (new_Cloog_Domain_from_ppl_Polyhedron):
5810         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
5811         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
5812         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
5813         * graphite-cloog-util.h (build_cloog_prog): Same.
5814         * graphite-cloog-copat.h (build_cloog_prog): New.
5815         (CloogState): New.
5816         (cloog_state_malloc): New.
5817         (cloog_state_free): New.
5818         (cloog_loop_malloc): New.
5819         (cloog_options_malloc): New.
5820         (cloog_statement_alloc): New.
5821         (cloog_domain_from_cloog_matrix): New.
5822         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
5823         (new_Cloog_Domain_from_ppl_Polyhedron): New.
5824
5825 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5826
5827         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
5828         type of NAME now depends on used CLooG version.
5829         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
5830         (gcc_type_for_clast_expr): Same.
5831         (print_clast_stmt): Replace pprint with clast_pprint.
5832         * graphite-cloog-compat.h: Provide compatibility macros for
5833         CLooG Legacy.
5834         (clast_name_p): New.
5835         (clast_expr_term): New.
5836         (clast_expr_red): New.
5837         (clast_expr_bin): New.
5838         (clast_pprint): New.
5839
5840 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5841
5842         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
5843         compatible to newer CLooG releases (CLOOG_ORG).
5844         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
5845         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
5846         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
5847         (build_cloog_prog) : New.
5848         (cloog_program_extract_scalars): New.
5849         (cloog_program_scatter): New.
5850
5851 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5852
5853         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
5854         conditionally (CLOOG_ORG).
5855         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
5856         (cloog_statement_usr): New.
5857         (cloog_domain): Same.
5858         (cloog_set_domain): Same.
5859         (cloog_next_domain): Same.
5860         (cloog_set_next_domain): Same.
5861         (cloog_program_nb_scattdims): Same.
5862         (cloog_program_set_nb_scattdims): Same.
5863         (cloog_program_names): Same.
5864         (cloog_program_set_names): Same.
5865         (cloog_program_set_context): Same.
5866         (cloog_program_set_loop): Same.
5867         (cloog_program_blocklist): Same.
5868         (cloog_program_set_blocklist): Same.
5869         (cloog_program_scaldims): Same.
5870         (cloog_program_set_scaldims): Same.
5871         (cloog_names_nb_parameters): Same.
5872         (cloog_names_set_nb_parameters): Same.
5873         (cloog_names_parameters): Same.
5874         (cloog_names_set_parameters): Same.
5875         (cloog_names_set_nb_iterators): Same.
5876         (cloog_names_set_iterators): Same.
5877         (cloog_names_set_nb_scattering): Same.
5878         (cloog_names_set_scattering): Same.
5879         (cloog_statement_set_usr): Same.
5880         (cloog_loop_set_next): Same.
5881         (cloog_loop_set_domain): Same.
5882         (cloog_loop_set_block): Same.
5883         (cloog_block_list_next): Same.
5884         (cloog_block_list_set_next):
5885         (cloog_block_list_set_block): Same.
5886
5887 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5888
5889         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
5890         a bool.
5891         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
5892         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
5893         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
5894         when something has been changed.
5895         (rewrite_commutative_reductions_out_of_ssa): Same.
5896
5897 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5898
5899         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
5900         handle the case when def is in the sese region.
5901         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
5902         for invariant expressions.
5903         (rewrite_cross_bb_phi_deps): Removed.
5904         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
5905         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
5906         rewrite_cross_bb_phi_deps.
5907
5908 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5909
5910         * graphite-sese-to-poly.c
5911         (rewrite_commutative_reductions_out_of_ssa_loop): Call
5912         scev_analyzable_p only on is_gimple_reg
5913
5914 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5915
5916         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
5917         (rewrite_close_phi_out_of_ssa): Propagate constant values or
5918         parametric expressions outside the scop region.
5919         (rewrite_cross_bb_scalar_deps): Same.
5920         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
5921
5922 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5923
5924         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
5925         SSA_NAME_DEF_STMT only on SSA_NAMEs.
5926
5927 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5928
5929         * tree-scalar-evolution.c (instantiate_scev_name): Do not
5930         instantiate default definitions.
5931
5932 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
5933             Sebastian Pop  <sebastian.pop@amd.com>
5934
5935         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
5936         (loop_exits_from_bb_p): New.
5937         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
5938         (loop_exits_from_bb_p): Declared.
5939         * graphite-scop-detection.c (scopdet_basic_block_info): Call
5940         loop_exits_to_bb_p.
5941
5942 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5943
5944         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
5945         extra parameter for the region.  Call scev_analyzable_p.
5946         (rewrite_reductions_out_of_ssa): Update call to
5947         rewrite_close_phi_out_of_ssa.
5948         (rewrite_cross_bb_phi_deps): Same.
5949         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
5950         parameter for the region.  Call scev_analyzable_p.
5951         (rewrite_commutative_reductions_out_of_ssa): Update call to
5952         rewrite_commutative_reductions_out_of_ssa_loop.
5953
5954 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5955
5956         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
5957
5958 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5959
5960         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
5961         SSA scalar phi nodes that can be scev_analyzable_p.
5962
5963 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5964
5965         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
5966         handle SSA_NAME_IS_DEFAULT_DEF.
5967
5968 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5969
5970         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
5971
5972 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5973
5974         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
5975         case non close-phi nodes with one argument.
5976
5977 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5978
5979         * sese.h (scev_analyzable_p): Scevs could be expressions without
5980         chrecs and still be scev_analyzable_p.
5981
5982 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5983
5984         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5985
5986 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5987
5988         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
5989         * cfgloop.h (struct loop): Remove single_iv field.
5990         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
5991         (scop_canonicalize_loops): Removed.
5992         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
5993         over all the loop phi nodes in loop->header.
5994         (build_poly_scop): Remove use of scop_canonicalize_loops.
5995
5996 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5997
5998         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
5999         handle GIMPLE_CALL.
6000
6001 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6002
6003         * tree-chrec.c (chrec_apply): Should only apply to the specified
6004         variable.  Also handle multivariate chains of recurrences that
6005         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
6006
6007 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6008
6009         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
6010         (debug_clast_name_indexes_1): Removed.
6011         (debug_clast_name_indexes): Removed.
6012         (pbb_to_depth_to_oldiv): Removed.
6013         (build_iv_mapping): Replace the use of rename_map with iv_map.
6014         (translate_clast_user): Remove uses of rename_map.  Allocate and
6015         free iv_map.
6016         (translate_clast_for_loop): Remove uses of rename_map.
6017         (translate_clast_for): Same.
6018         (translate_clast_guard): Same.
6019         (translate_clast): Same.
6020         (gloog): Same.
6021         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
6022         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
6023         * sese.c (set_rename): Now static.
6024         (rename_variables_in_stmt): Removed.
6025         (rename_uses): New.
6026         (is_parameter): Removed.
6027         (is_iv): Removed.
6028         (expand_scalar_variables_call): Removed.
6029         (expand_scalar_variables_ssa_name): Removed.
6030         (expand_scalar_variables_expr): Removed.
6031         (expand_scalar_variables_stmt): Removed.
6032         (expand_scalar_variables): Removed.
6033         (rename_variables): Removed.
6034         (remove_condition): Removed.
6035         (get_true_edge_from_guard_bb): Removed.
6036         (get_false_edge_from_guard_bb): Removed.
6037         (struct igp): Removed.
6038         (default_before_guard): Removed.
6039         (convert_for_phi_arg): Removed.
6040         (add_guard_exit_phis): Removed.
6041         (insert_guard_phis): Removed.
6042         (graphite_copy_stmts_from_block): Now also uses iv_map and a
6043         region.  Do not copy conditions.  Do not copy induction variables.
6044         Call rename_uses.
6045         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
6046         the translated statement.  Use the iv_map for the induction
6047         variable renaming.
6048         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
6049         (set_rename): Removed declaration.
6050         (scev_analyzable_p): ...here.
6051         * tree-chrec.c (chrec_apply_map): New.
6052         * tree-chrec.h (chrec_apply_map): Declared.
6053
6054 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6055
6056         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
6057         insert_loop_close_phis.
6058         * sese.c (name_defined_in_loop_p): Removed.
6059         (expr_defined_in_loop_p): Removed.
6060         (alive_after_loop): Removed.
6061         (close_phi_not_yet_inserted_p): Removed.
6062         (struct alep): Removed.
6063         (add_loop_exit_phis): Removed.
6064         (insert_loop_close_phis): Removed.
6065
6066 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6067
6068         * graphite-cloog-util.c
6069         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
6070         * graphite-poly.c
6071         (psct_scattering_dim_for_loop_depth): Same.
6072
6073 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6074
6075         * graphite-cloog-util.h: Added cloog.h.
6076         * graphite-blocking.c: Removed cloog.h.
6077         * graphite-dependences.c: Same.
6078         * graphite-interchange.c: Same.
6079         * graphite-poly.c: Same.
6080         * graphite-ppl.c: Same.
6081         * graphite-scop-detection.c: Same.
6082         * graphite-sese-to-poly.c:
6083         Removed cloog.h.
6084         Removed graphite-clast-to-gimple.h.
6085         (check_poly_representation): Removed (unused).
6086         * graphite-sese-to-poly.h
6087         (check_poly_representation): Removed (unused).
6088
6089 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6090
6091         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
6092         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
6093         (graphite-cloog-util.o): New.
6094         (graphite-ppl.o): Added graphite-cloog-util.h.
6095         * graphite-clast-to-gimple.c:
6096         Added graphite-cloog-util.h to include statements.
6097         * graphite-cloog-util.c: New.
6098         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
6099         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6100         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6101         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6102         (insert_constraint_into_matrix): Same.
6103         (ppl_Constrain_System_number_of_constraints): Same.
6104         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
6105         (oppose_constraint): Same.
6106         (cloog_matrix_to_ppl_constraint): Same.
6107         (new_Constraint_System_from_Cloog_Matrix): Same.
6108         * graphite-cloog-util.h: New.
6109         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
6110         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6111         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6112         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6113         (insert_constraint_into_matrix): Same.
6114         * graphite-ppl.c:
6115         Added graphite-cloog-util.h to include statements.
6116         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
6117         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6118         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6119         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6120         (insert_constraint_into_matrix): Same.
6121         (ppl_Constrain_System_number_of_constraints): Same.
6122         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
6123         (oppose_constraint): Same.
6124         (cloog_matrix_to_ppl_constraint): Same.
6125         (new_Constraint_System_from_Cloog_Matrix): Same.
6126         * graphite-ppl.h:
6127         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
6128         graphite-cloog-util.h.
6129         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6130         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6131         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6132         (insert_constraint_into_matrix): Same.
6133
6134 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6135
6136         * graphite-clast-to-gimple.c
6137         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
6138         (precision_for_interval): Same.
6139         (gcc_type_for_interval): Same.
6140         (compute_type_for_level): Same.
6141         * graphite-interchange.c
6142         (lst_interchange_profitable_p): Same.
6143         * graphite-poly.c
6144         (psct_scattering_dim_for_loop_depth): Same.
6145         * graphite-ppl.c
6146         (ppl_max_for_le_pointset): Same.
6147         (ppl_min_for_le_pointset): Same.
6148
6149 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6150
6151         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
6152         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
6153
6154 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6155
6156         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
6157         rewrite_close_phi_out_of_ssa.
6158
6159 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6160
6161         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
6162
6163 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6164
6165         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
6166         rename_map.
6167         * sese.c (debug_rename_map): Same.
6168         (get_rename): Same.
6169         (set_rename): Same.
6170         (rename_variables_in_stmt): Same.
6171         (expand_scalar_variables_call): Same.
6172         (expand_scalar_variables_ssa_name): Same.
6173         (expand_scalar_variables_expr): Same.
6174         (expand_scalar_variables_stmt): Same.
6175         (expand_scalar_variables): Same.
6176         (rename_variables): Same.
6177         (graphite_copy_stmts_from_block): Same.
6178         (copy_bb_and_scalar_dependences): Same.
6179
6180 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6181
6182         * graphite-clast-to-gimple.c (copy_renames): Removed.
6183         (translate_clast_for): Do not call copy_renames.
6184         (translate_clast_guard): Same.
6185
6186 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6187
6188         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
6189         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
6190         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
6191         before rewrite_cross_bb_scalar_deps.
6192
6193 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6194
6195         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
6196         Early return in when flag_associative_math is not set.
6197
6198 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6199
6200         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
6201         of SSA copies on edges except for loop->latch.
6202
6203 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6204
6205         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
6206         Split out of rewrite_reductions_out_of_ssa.
6207         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
6208         Declared.
6209         * graphite.c (graphite_transform_loops): Call it.
6210
6211 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6212
6213         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
6214
6215 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
6216
6217         * dbgcnt.def (graphite_scop): New counter.
6218         * graphite.c: Include dbgcnt.h.
6219         (graphite_transform_loops): Use new counter to limit transformations.
6220         * Makefile.in (graphite.o): Depend on DBGCNT_H.
6221
6222 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6223
6224         * passes.c (init_optimization_passes): Add pass_graphite.
6225         Schedule a pass_copy_prop before pass_graphite_transforms.
6226         * timevar.def (TV_GRAPHITE): Declared.
6227         * tree-pass.h (pass_graphite): Declared.
6228         * tree-ssa-loop.c (pass_graphite): New.
6229
6230 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6231
6232         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
6233         Remove calls to rename_nb_iterations and rename_sese_parameters.
6234         * graphite-clast-to-gimple.h (gloog): Update declaration.
6235         * graphite.c (graphite_transform_loops): Update call to gloog.
6236         * sese.c (rename_variables_in_expr): Removed.
6237         (rename_nb_iterations): Removed.
6238         (rename_sese_parameters): Removed.
6239         * sese.h (rename_nb_iterations): Removed.
6240         (rename_sese_parameters): Removed.
6241
6242 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6243
6244         * graphite-clast-to-gimple.c (gloog): Remove call to
6245         sese_adjust_liveout_phis.
6246         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
6247         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
6248         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
6249         rewrite_phi_out_of_ssa.
6250         * sese.c (get_vdef_before_sese): Removed.
6251         (sese_adjust_vphi): Removed.
6252         (sese_adjust_liveout_phis): Removed.
6253         * sese.h (sese_adjust_liveout_phis): Removed.
6254
6255 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6256
6257         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
6258         argument for the place after which to insert the out of SSA copy.
6259         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
6260         (rewrite_phi_out_of_ssa): Same.
6261         (rewrite_cross_bb_scalar_deps): Same.
6262         (insert_copyout): Removed.
6263         (insert_copyin): Removed.
6264         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
6265         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
6266         insert_copyin.
6267
6268 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6269
6270         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
6271         (rewrite_reductions_out_of_ssa): Same.
6272         (rewrite_commutative_reductions_out_of_ssa): Same.
6273         (build_poly_scop): Do not call these functions.
6274         * graphite-sese-to-poly.h (build_poly_scop): Declared.
6275         (rewrite_reductions_out_of_ssa): Declared.
6276         (rewrite_commutative_reductions_out_of_ssa): Declared.
6277         * graphite.c (graphite_transform_loops): Call on every scop
6278         rewrite_commutative_reductions_out_of_ssa before calling
6279         rewrite_reductions_out_of_ssa and build_scop_bbs.
6280
6281 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6282
6283         * graphite-dependences.c (dot_deps): Make system call to dotty run
6284         in background.
6285         (dot_deps_stmt): Same.
6286         * graphite-poly.c (dot_lst): Same.
6287
6288 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6289
6290         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
6291         phi_arg_in_outermost_loop.
6292         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
6293         (remove_invariant_phi): Same.
6294
6295 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
6296
6297         * target.def (output_addr_const_extra): New hook.
6298         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
6299         * doc/tm.texi: Regenerate.
6300         * targhooks.c (default_asm_output_addr_const_extra): New function.
6301         * targhooks.h (default_asm_output_addr_const_extra): Declare.
6302         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
6303         target hook.
6304
6305         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6306         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
6307         * config/i386/i386.h (output_addr_const_extra): Rename to...
6308         (i386_asm_output_addr_const_extra): ...this. Make static.
6309         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6310
6311 2010-08-11  Richard Henderson  <rth@redhat.com>
6312
6313         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
6314
6315 2010-08-11  Nick Clifton  <nickc@redhat.com>
6316
6317         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
6318         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
6319         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
6320         stormy16-lib2-cmpsi.c.
6321
6322         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
6323         -O2.
6324
6325 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
6326
6327         * opts.h (struct cl_option_handler_func): Make handler take
6328         cl_decoded_option structure as parameter, not individual elements.
6329         (struct cl_option_handlers): Make callbacks take cl_decoded_option
6330         structure as parameter, not individual elements.
6331         (handle_option): Take cl_decoded_option structure as parameter,
6332         not individual elements.
6333         (handle_generated_option): Declare.
6334         * opts-common.c (handle_option): Take cl_decoded_option structure
6335         as parameter, not individual elements.  Update calls to callback
6336         and handler functions.
6337         (handle_generated_option): New.
6338         (read_cmdline_option): Update calls to callback functions and
6339         handle_option.
6340         * opts.c (common_handle_option, complain_wrong_lang,
6341         unknown_option_callback, post_handling_callback,
6342         lang_handle_option, target_handle_option): Take cl_decoded_option
6343         structure as parameter, not individual elements.
6344         (lang_handle_option, target_handle_option, common_handle_option):
6345         Assert option has at most one argument.
6346         (enable_warning_as_error): Call handle_generated_option instead of
6347         handle_option.  Do not pass -Werror argument as argument of
6348         generated option.
6349
6350 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6351
6352         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
6353         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
6354         (SUBWORD_BOOL_CAS): Likewise.
6355         (SUBWORD_SYNC_OP): Likewise.
6356         (SUBWORD_TEST_AND_SET): Likewise.
6357         (FETCH_AND_OP_WORD): Parenthesise INF_OP
6358         (SUBWORD_SYNC_OP): Likewise.
6359         (OP_AND_FETCH_WORD): Likewise.
6360
6361 2010-08-10  Xinliang David Li  <davidxl@google.com>
6362
6363         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
6364         compute max/min offset in address.
6365
6366 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
6367
6368         * ira-live.c: Include sbitmap.h.
6369         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
6370         Compress live ranges even more.
6371
6372 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
6373
6374         * coverage.c (ctr_labels): Delete.
6375
6376 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
6377
6378         PR bootstrap/45177
6379         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
6380         test here from arm_gen_load_multiple_1.
6381         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
6382         multiple_operation_profitable_p.
6383
6384 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
6385
6386         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
6387         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
6388
6389 2010-08-10  Richard Henderson  <rth@redhat.com>
6390
6391         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
6392         after saving registers.  Assert that SSE registers are only saved
6393         with a sufficiently aligned frame.
6394         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
6395         remove stack_realign_fp handling.
6396         (ix86_expand_prologue): Save int registers before stack_realign_fp,
6397         and do not mark the stack alignment as frame related.
6398         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
6399
6400         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
6401         saves when re-aligning the stack.
6402
6403 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
6404
6405         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
6406         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
6407         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
6408
6409 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
6410
6411         * dwarf2out.c (struct die_struct): Move die_tag to the end.
6412
6413 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
6414
6415         * config/arm/iterators.md: New file.
6416         * config/arm/arm.md: Include iterators.md.
6417         (QHSI): Move to new file.
6418         (LTUGEU, cnb, optab, ior_xor): Likewise.
6419         * config/arm/iwmmxt.md (VMMX): Move to new file.
6420         (VSHFT, MMX_char): Likewise.
6421         * config/arm/neon.md (VD): Move to new file.
6422         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
6423         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
6424         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
6425         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
6426         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
6427         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
6428         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
6429         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
6430         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
6431         (Is_d_reg, V_mode_nunits): Likewise.
6432         * config/arm/vec-common.md (VALL): Move to new file.
6433         (VALLW, VINT, VINTW): Likewise.
6434
6435 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
6436
6437         PR middle-end/45182
6438         * combine.c (make_compound_operation): Don't try to convert
6439         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
6440
6441 2010-08-10  Richard Guenther  <rguenther@suse.de>
6442
6443         * tree.h (get_object_alignment): Adjust prototype.
6444         * builtins.c (get_object_alignment): Return unsigned int,
6445         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
6446         and TARGET_MEM_REF properly.
6447         (get_pointer_alignment): Adjust.
6448         * emit-rtl.c (get_mem_align_offset): Adjust comment.
6449         (set_mem_attributes_minus_bitpos): Adjust.
6450         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
6451
6452 2010-08-10  Richard Guenther  <rguenther@suse.de>
6453
6454         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
6455         (copy_prop_visit_assignment): Simplify.
6456         (copy_prop_visit_stmt): Also visit assignments from
6457         constants.
6458         (copy_prop_visit_phi_node): Use operand_equal_p.
6459
6460 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
6461
6462         * ipa-split.c (find_split_points): Free stack.
6463
6464 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
6465
6466         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
6467         * tree.c (tree_node_kind): Delete corresponding entries.
6468
6469 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
6470
6471         * alias.c (may_alias_p): Remove unused ret.
6472
6473 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
6474
6475         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
6476         alias_sets_conflict_p.
6477         (walk_mems_1): Moved from alias.c.
6478         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
6479         in alias.c.
6480         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
6481         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
6482         * alias.c (walk_mems_2): Moved to ddg.c.
6483         (walk_mems_1): Ditto.
6484         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
6485         to ddg.c.
6486         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
6487         disambiguation.
6488         *(may_alias_p): New function to check whether two memory expression
6489         may alias or not. Currently used in buidling inter-iteration memory
6490         dependence.
6491         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
6492         (insn_alias_sets_conflict_p): Removed
6493         *rtl.h (may_alias_p): New function prototype.
6494
6495 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
6496
6497         * tree.c (nreverse): Assert that we don't have a BLOCK.
6498
6499 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
6500
6501         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
6502         * config/arm/arm.c (arm_get_pcs_model): Likewise.
6503         * config/avr/avr.c (init_cumulative_args): Likewise.
6504         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
6505         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6506         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
6507         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
6508         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
6509         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6510         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
6511         * dwarf2out.c (gen_subprogram_die): Likewise.
6512         * function.c (allocate_struct_function): Likewise.
6513         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
6514         (deserves_ellipsis): Delete.
6515
6516 2010-08-09  Richard Guenther  <rguenther@suse.de>
6517
6518         * tree-ssa-copy.c (cached_last_copy_of): Remove.
6519         (valueize_val): New function.
6520         (get_last_copy_of): Remove.
6521         (set_copy_of_val): Simplify.
6522         (dump_copy_of): Likewise.
6523         (copy_prop_visit_cond_stmt): Use valueize_val.
6524         (copy_prop_visit_phi_node): Properly handle unvisited names.
6525         Drop code managing copy-of chains.
6526         (init_copy_prop): Adjust.
6527         (fini_copy_prop): Likewise.
6528         (execute_copy_prop): Remove obsolete comment.
6529
6530 2010-08-09  Richard Guenther  <rguenther@suse.de>
6531
6532         PR middle-end/44632
6533         * function.c (gimplify_parameters): Do not clear addressable
6534         bit of the original parameter.
6535
6536 2010-08-09  Richard Guenther  <rguenther@suse.de>
6537
6538         PR middle-end/45212
6539         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
6540         alignment from MEM_REF offset only if we took it from the
6541         base object.
6542
6543 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
6544
6545         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
6546
6547 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
6548
6549         * c-tree.h (build_arg_info): Declare.
6550         * c-decl.c (build_arg_info): Define.
6551         (get_parm_info): Call it.  Delete initialization code.
6552         * c-parser.c (c_parser_parms_declarator): Likewise.
6553         (c_parser_parms_list_declaractor): Likewise.
6554
6555 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
6556
6557         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
6558         (struct c_arg_info): Change type of tags field.
6559         * c-decl.c (grokdeclarator): Update for changed type of tags field.
6560         (get_parm_info): Likewise.
6561         (store_parm_decls_newstyle): Likewise.
6562
6563 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
6564
6565         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
6566         (branch_island_list): Delete.
6567         (branch_islands): Declare.
6568         (add_compiler_branch_island): Adjust for branch_islands instead of
6569         branch_island_list.
6570         (macho_branch_islands): Likewise.
6571         (no_previous_def): Likewise.
6572         (get_prev_label): Likewise.
6573
6574 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6575
6576         PR boehm-gc/34544
6577         * gthr-posix.h (__gthread_start): Delete.
6578         (__gthread_active_init): Use pthread_default_stacksize_np instead of
6579         pthread_create to determine if hpux pthreads are active.
6580         * gthr-posix95.h (__gthread_start): Delete.
6581         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
6582
6583 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
6584
6585         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
6586         _WIN64 not expanded.
6587
6588 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
6589             H.J. Lu  <hongjiu.lu@intel.com>
6590
6591         PR target/45213
6592         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
6593         to output 32bit SFmode immediate as 8 byte sign extended value.
6594
6595 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6596
6597         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
6598         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
6599         (SUBWORD_BOOL_CAS): Likewise.
6600         (SUBWORD_SYNC_OP): Likewise.
6601         (SUBWORD_TEST_AND_SET): Likewise.
6602         (FETCH_AND_OP_WORD): Parenthesise INF_OP
6603         (SUBWORD_SYNC_OP): Likewise.
6604         (OP_AND_FETCH_WORD): Likewise.
6605
6606 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6607
6608         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
6609         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
6610         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
6611         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
6612         generic part.
6613         (cortex_a9_sched_adjust_cost): New function.
6614         (xscale_sched_adjust_cost): New function.
6615         * config/arm/arm-protos.h (struct tune_params): New field
6616         sched_adjust_cost.
6617         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
6618
6619 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
6620
6621         PR target/44942
6622         * config/sparc/sparc.c (function_arg_advance): Always take into account
6623         the padding, if any.
6624
6625 2010-08-06  Richard Guenther  <rguenther@suse.de>
6626
6627         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
6628         (dump_lattice_value): Dump it.
6629         (get_default_value): Adjust.
6630         (get_constant_value): Likewise.
6631         (set_value_varying): Likewise.
6632         (set_lattice_value): Make sure to not go up the lattice
6633         with bitwise constant values.
6634         (get_value_for_expr): Handle ADDR_EXPRs.
6635         (value_to_double_int): New function.
6636         (get_value_from_alignment): Likewise.
6637         (do_dbg_cnt): Adjust.
6638         (ccp_lattice_meet): Handle partially constant values.
6639         (bit_value_unop_1): New function.
6640         (bit_value_binop_1): Likewise.
6641         (bit_value_unop): Likewise.
6642         (bit_value_binop): Likewise.
6643         (evaluate_stmt): Track partially constant values if
6644         flag_tree_bit_ccp is set.
6645         (ccp_fold_stmt): Dump if we folded a predicate.
6646         (ccp_visit_stmt): Adjust.
6647         * common.opt (ftree-bit-ccp): New flag.
6648         * doc/invoke.texi (ftree-bit-ccp): Document.
6649         * opts.c (decode_options): Enable bit-CCP at -O1.
6650
6651 2010-08-06  Alan Modra  <amodra@gmail.com>
6652
6653         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
6654         and -mrelocatable-lib description.
6655
6656 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
6657
6658         From Martin Thuresson  <martint@google.com>
6659         * postreload.c (reload_cse_simplify_operands): Use
6660         SET_REGNO_RAW instead of SET_REGNO.
6661         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
6662         SET_REGNO.
6663         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
6664         instead of SET_REGNO.
6665         * rtl.h (SET_REGNO_RAW): New macro.
6666
6667 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
6668
6669         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
6670         computations.  Fix formatting issues.
6671         (num_sign_bit_copies1): Likewise.
6672         (canonicalize_condition): Likewise.
6673
6674 2010-08-05  Richard Henderson  <rth@redhat.com>
6675
6676         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
6677         (floor_log2): Use clz_hwi.
6678         (exact_log2): Use ctz_hwi.
6679         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
6680         * builtins.c (fold_builtin_bitop): Use them.
6681         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6682         * combine.c (get_pos_from_mask): Use ctz_hwi.
6683         * double-int.c (double_int_ctz): Likewise.
6684         * explow.c (force_reg): Likewise.
6685         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
6686
6687 2010-08-05  Richard Henderson  <rth@redhat.com>
6688
6689         PR target/45189
6690         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
6691         the alignment constant is properly sign-extended.
6692
6693 2010-08-05  Richard Guenther  <rguenther@suse.de>
6694
6695         * expr.c (store_expr): Use emit_block_move only if both
6696         source and target are MEMs.  Use store_bit_field if only
6697         the target is a MEM.
6698
6699 2010-08-05  Richard Henderson  <rth@redhat.com>
6700
6701         PR debug/45188
6702         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
6703         (INCOMING_RETURN_ADDR_RTX): Likewise.
6704         (dwarf2out_do_frame): Remove conditional compilation.
6705         (dwarf2out_frame_init): Likewise.
6706
6707 2010-08-05  Nicolas Setton  <setton@adacore.com>
6708
6709         * gcov.c (flag_display_progress): New static variable.
6710         (main): Display progress info on standard output if requested.
6711         (options): Add -d/--display-progress.
6712         (print_usage): Print them.
6713         (process_args): Handle them.
6714         * doc/gcov.texi: Document them.
6715
6716 2010-08-05  Martin Jambor  <mjambor@suse.cz>
6717
6718         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
6719         (ipcp_insert_stage): Redirect only edges not flagged with
6720         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
6721         discovered constants.
6722
6723 2010-08-05  Martin Jambor  <mjambor@suse.cz>
6724
6725         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
6726         (struct ipa_param_descriptor): New fields types and
6727         cannot_devirtualize.
6728         (ipa_param_cannot_devirtualize_p): New function.
6729         (ipa_param_types_vec_empty): Likewise.
6730         (ipa_make_edge_direct_to_target): Declare.
6731         * ipa-cp.c: Fixed first stage driver name in initial comment,
6732         described devirtualization there too.
6733         (ipcp_analyze_node): Call ipa_analyze_params_uses.
6734         (ipcp_print_all_lattices): Print devirtualization info.
6735         (ipa_set_param_cannot_devirtualize): New function.
6736         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
6737         lattice to BOTTOM.
6738         (ipcp_init_stage): Merged into...
6739         (ipcp_generate_summary): ...its caller.
6740         (ipcp_change_tops_to_bottom): Also process type lists.
6741         (ipcp_add_param_type): New function.
6742         (ipcp_copy_types): Likewise.
6743         (ipcp_propagate_types): Likewise.
6744         (ipcp_propagate_stage): Also propagate types.
6745         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
6746         Also return true if propagated types require it.
6747         (ipcp_update_callgraph): Dump redirection info.
6748         (ipcp_process_devirtualization_opportunities): New function.
6749         (ipcp_const_param_count): Include known type information.
6750         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
6751         on new node.  Fixed formatting.
6752         * ipa-prop.c (make_edge_direct_to_target): Renamed to
6753         ipa_make_edge_direct_to_target and changed all callers.  Made
6754         externally visible.
6755         (ipa_node_duplication_hook): Duplicate types vector.
6756         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
6757         redirect outgoing calls for which we can't get a decl from the
6758         statement.  Check that we can get a decl from the call statement.
6759         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
6760         ipa_analyze_params_uses only when ipa-cp is disabled.
6761         * tree-inline.c (get_indirect_callee_fndecl): Removed.
6762         (expand_call_inline): Do not call get_indirect_callee_fndecl.
6763         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
6764         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
6765
6766 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
6767
6768         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
6769         temporary. Emit move from temporary to accum, so REG_EQUAL note will
6770         be attached to this insn in correct mode.
6771
6772 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
6773
6774         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
6775         using REGNO of base_reg directly.
6776
6777 2010-08-05  Jie Zhang  <jie@codesourcery.com>
6778
6779         PR tree-optimization/45144
6780         * tree-sra.c (type_consists_of_records_p): Return false
6781         if the record contains bit-field.
6782
6783 2010-08-04  Richard Henderson  <rth@redhat.com>
6784
6785         * config/i386/i386.c (struct ix86_frame): Remove padding and
6786         to_allocate members.
6787         (ix86_compute_frame_layout): Don't store them.
6788         (ix86_can_use_return_insn_p): Use a more direct and more obviously
6789         correct condition for the position of the stack pointer.
6790         (ix86_expand_prologue): Compute remaining stack allocation based
6791         on the ultimate stack pointer offset.
6792         (ix86_expand_epilogue): Use more obvious expressions testing for
6793         the stack pointer already pointing to the saved registers.
6794
6795         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
6796         duplication deconstructing the frame pointer.  Simplify
6797         deallocation of the local stack frame.
6798
6799         * reg-notes.def (CFA_EXPRESSION): New.
6800         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
6801         (dwarf2out_frame_debug_cfa_expression): New.
6802         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
6803
6804         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
6805         * config/i386/i386.c (ix86_expand_prologue): Set it.
6806         (ix86_expand_epilogue): Clear it.
6807         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
6808         context, add REG_CFA_EXPRESSION notes.
6809
6810         * config/i386/i386.h (struct machine_frame_state): Rename from
6811         machine_cfa_state.  Add members tracking SP and FP regardless
6812         of the current CFA register.
6813         (ix86_cfa_state): Remove.
6814         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
6815         and sse_reg_save_offset members.
6816         (ix86_compute_frame_layout): Set them.
6817         (gen_push): Increment sp_offset too.
6818         (choose_baseaddr_len, choose_baseaddr): New.
6819         (ix86_emit_save_reg_using_mov): New.
6820         (ix86_emit_save_regs_using_mov): Use it.
6821         (ix86_emit_save_sse_regs_using_mov): Likewise.
6822         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
6823         compare vs the saved red_zone_offset.
6824         (pro_epilogue_adjust_stack): Adjust sp_offset.
6825         (ix86_adjust_stack_and_probe): Likewise.
6826         (ix86_expand_prologue): Set up, use, and validate the new
6827         frame_state_info members.  Use gen_frame_mem.
6828         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
6829         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
6830         new frame_state_info members.
6831         (ix86_emit_leave): Likewise.
6832         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
6833         out-of-range stack pointer offsets here.
6834         (ix86_emit_restore_sse_regs_using_mov): Likewise.
6835         (ix86_expand_epilogue): Use and validate the new frame_state_info
6836         members.  Break up and simplify the logic selecting the
6837         restore_regs_via_mov code path.  Ensure that there will be no
6838         out-of-range stack pointer offsets.
6839
6840         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
6841
6842         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
6843         argument name to reflect the expected tree; fix indentation.
6844         (ix86_asm_output_function_label): Output the entire 32-bit
6845         ms_hook here as bytes ...
6846         (ix86_expand_prologue): ... not here as insns.  Attach the
6847         unwind info for the ms_hook to a blockage insn.
6848         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
6849         (ix86_ms_bitfield_layout_p): Fix indentation.
6850         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
6851
6852         * config/i386/i386.c (ix86_using_red_zone): New.
6853         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
6854         ix86_expand_prologue, ix86_force_to_memory): Use it.
6855
6856         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
6857         saving the int registers.
6858
6859         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
6860         and DWARF2_UNWIND_INFO conditional compilation.
6861
6862 2010-08-04  Richard Henderson  <rth@redhat.com>
6863
6864         PR debug/45171
6865         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
6866         an is_naming_typedef_decl.
6867
6868 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
6869
6870         PR rtl-optimization/45162
6871         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
6872         * dce.c (word_dce_process_block): Likewise.
6873
6874 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
6875
6876         PR target/44583
6877         * config/ia64/constraints.md (Z): New.
6878         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
6879         (xfreg_or_signed_fp01_operand): New.
6880         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
6881         with fr_reg_or_signed_fp01_operand and constraint G with Z.
6882         (subsf3): Ditto.
6883         (*maddsf4): Ditto.
6884         (*msubsf4): Ditto.
6885         (adddf3): Ditto.
6886         (adddf3_trunc): Ditto.
6887         (subdf3): Ditto.
6888         (*subdf3_trunc): Ditto.
6889         (*madddf4): Ditto.
6890         (*madddf4_trunc): Ditto.
6891         (*msubdf4): Ditto.
6892         (*msubdf4_trunc): Ditto.
6893         (addxf3): Replace xfreg_or_fp01_operand with
6894         xfreg_or_signed_fp01_operand and constraint G with Z.
6895         (*addxf3_truncsf): Ditto.
6896         (*addxf3_truncdf): Ditto.
6897         (subxf3): Ditto.
6898         (*subxf3_truncsf): Ditto.
6899         (*subxf3_truncdf): Ditto.
6900         (*maddxf4): Ditto.
6901         (*maddxf4_truncsf): Ditto.
6902         (*maddxf4_truncdf): Ditto.
6903         (*msubxf4): Ditto.
6904         (*msubxf4_truncsf): Ditto.
6905         (*msubxf4_truncdf): Ditto.
6906
6907 2010-08-04  Richard Guenther  <rguenther@suse.de>
6908
6909         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
6910         if either alias-set is zero.
6911
6912 2010-08-04  Richard Guenther  <rguenther@suse.de>
6913
6914         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
6915         * tree-ssa-ccp.c: ... here.
6916         * tree-ssa-copy.c: ... and here.
6917         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
6918         value_range_t): Move ...
6919         * tree-vrp.c: ... here.
6920         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
6921         (substitute_and_fold): Adjust prototype.
6922         * tree-ssa-propagate.c (replace_uses_in): Adjust.
6923         (replace_phi_args_in): Likewise.
6924         (substitute_and_fold): Take callback to query lattice instead
6925         of pointer to lattice.  Replace SSA name defs with lattice
6926         values first.
6927         * tree-ssa-ccp.c (ccp_finalize): Adjust.
6928         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
6929         (get_value): New function.
6930         (fini_copy_prop): Adjust.
6931         * tree-vrp.c (vrp_finalize): Adjust.
6932
6933 2010-08-04  Richard Guenther  <rguenther@suse.de>
6934
6935         PR middle-end/45176
6936         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
6937         points-to set for original MEM_REF.
6938
6939 2010-08-04  Richard Guenther  <rguenther@suse.de>
6940
6941         * tree-ssa-ccp.c (get_constant_value): New function.
6942         (get_rhs_assign_op_for_ccp): Remove.
6943         (valueize_op): New function.
6944         (ccp_fold): Use get_constant_value and valueize_op.
6945         (fold_const_aggregate_ref): Likewise.
6946         (ccp_fold_stmt): Likewise.
6947         (visit_assignment): Simplify.
6948
6949 2010-08-04  Richard Guenther  <rguenther@suse.de>
6950
6951         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
6952         * double-int.h (double_int_ctz): Declare.
6953         * double-int.c (double_int_ctz): New function.
6954
6955 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
6956
6957         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
6958         Define.
6959         picochip_expand_movmemhi : Expand movmem pattern.
6960         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
6961         Declare.
6962         * config/picochip/picochip.md (movmemhi) : New pattern.
6963
6964 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
6965
6966         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
6967
6968 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
6969
6970         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
6971         NEG as operand of a MULT by merging it with the other operand.
6972         * combine.c (make_compound_operation): Use trunc_int_for_mode when
6973         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
6974         MULT.
6975         * config/arm/constraints.md (M): Examine only 32 bits of a
6976         HOST_WIDE_INT.
6977         * config/arm/predicates.md (power_of_two_operand): Likewise.
6978
6979 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6980
6981         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
6982         non-NOTE insns.
6983
6984 2010-08-03  Jan Hubicka  <jh@suse.cz>
6985
6986         * ipa-split.c (struct split_point): Add split_part_set_retval.
6987         (find_retval): Forward declare.
6988         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
6989         (consider_split): Compute current->split_part_set_retval.
6990         (visit_bb): Do not look into return value.
6991         (split_function): Handle !split_part_set_retval
6992
6993 2010-08-03  Martin Jambor  <mjambor@suse.cz>
6994
6995         * tree-sra.c (completely_scalarize_record): New parameter REF, create
6996         its own access->expr intead of using build_ref_for_offset.
6997
6998 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
6999
7000         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
7001         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
7002         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
7003         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
7004         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
7005         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
7006         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
7007         DEFAULT_SWITCH_TAKES_ARG.
7008         * config/rx/rx.opt (-patch=): Remove option.
7009         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
7010         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
7011         * doc/invoke.texi (RX Options): Remove -patch=.
7012         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
7013         (option_map): Remove --profile-blocks, --quiet and --silent.
7014
7015 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
7016
7017         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
7018         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
7019         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
7020         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
7021         Update calls to ix86_expand_compare and ix86_expand_branch.
7022         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
7023         ix86_expand_compare.
7024         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
7025         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
7026         Make static.
7027         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
7028         and ix86_compare_op1.  Update calls to ix86_expand_compare.
7029         (ix86_expand_int_movcc): Ditto.
7030         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
7031         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
7032         (ix86_expand_setcc): Ditto.
7033         (ix86_expand_compare): Remove prototype.
7034         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
7035         ix86_compare_op0 and ix86_compare_op1.  Update calls
7036         to ix86_expand_branch to directly pass operands[1] and operands[2].
7037         (cbranchxf4): Ditto.
7038         (cbranch<MODEF:mode>4): Ditto.
7039         (cbranchcc4): Ditto.
7040         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
7041         Update calls to ix86_expand_setcc to directly pass operands[2] and
7042         operands[3].
7043         (cstorexf4): Ditto.
7044         (cstore<MODEF:mode>4): Ditto.
7045         (cstorecc4): Ditto.
7046
7047 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
7048
7049         PR target/45063
7050         * caller-save.c (save_call_clobbered_regs): Remove regs from
7051         hard_regs_saved when they are set.
7052
7053 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
7054
7055         PR target/41089
7056         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
7057         as volatile.
7058
7059 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
7060
7061         * common.opt (ftree-loop-distribute-patterns): New.
7062         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
7063         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
7064         at -O3.
7065         * tree-data-ref.c (stores_zero_from_loop): New.
7066         * tree-data-ref.h (stores_zero_from_loop): Declared.
7067         * tree-loop-distribution.c (tree_loop_distribution): Call
7068         stores_zero_from_loop.
7069         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
7070
7071 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
7072
7073         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
7074         into account.
7075
7076         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
7077         * config/arm/arm.c (thumb1_code): New variable.
7078         (arm_override_options): Set it.
7079         (thumb1_final_prescan_insn): Keep track of condition code status.
7080         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
7081         jumps that depend on them.
7082         * config/arm/arm.h (thumb1_code): Declare variable.
7083         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
7084         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
7085         thumb1_cc_mode.
7086         (CC_STATUS_INIT): New macro.
7087         * config/arm/constraints.md (Pd): New constraint.
7088         * config/arm/predicates.md (noov_comparison_operator): New predicate.
7089         * config/arm/arm.md (is_thumb1): New define_attr.
7090         (conds): Set default to "clob" when generating Thumb1 code.
7091         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
7092         code are set.  Use two-operand assembly syntax.
7093         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
7094         pattern.
7095         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
7096         codes are set.  Use two-operand assembly syntax.
7097         (zero_extendhisi splitter): Remove constraints.
7098         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
7099         thumb1_movsf_insn): Set conds attribute as appropriate.
7100         (cbranchsi4_insn): Use condition code status from struct
7101         machine_function to determine whether the comparison can be eliminated.
7102         Discourage the alternative using high registers.
7103         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
7104         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
7105         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
7106         subsi3_cbranch): Delete.
7107         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
7108         one subtract and one cbranch insn.
7109
7110         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
7111         thumb2_movdf_soft_insn): Delete patterns.
7112         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
7113         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
7114         (pool_range, neg_pool_range): Use them to define defaults.
7115         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
7116         and allow for TARGET_32BIT.
7117
7118         PR target/40457
7119         * config/arm/arm.h (arm_regs_in_sequence): Declare.
7120         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
7121         load_multiple_sequence, store_multiple_sequence): Delete
7122         declarations.
7123         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
7124         declarations.
7125         * config/arm/ldmstm.md: New file.
7126         * config/arm/arm.c (arm_regs_in_sequence): New array.
7127         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
7128         CHECK_REGS.  All callers changed.
7129         If SAVED_ORDER is nonnull, copy the computed order into it.
7130         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
7131         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
7132         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
7133         If SAVED_ORDER is nonnull, copy the computed order into it.
7134         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
7135         like REGS.  Handle Thumb mode.
7136         (arm_gen_load_multiple_1): New function, broken out of
7137         arm_gen_load_multiple.
7138         (arm_gen_store_multiple_1): New function, broken out of
7139         arm_gen_store_multiple.
7140         (arm_gen_multiple_op): New function, with code from
7141         arm_gen_load_multiple and arm_gen_store_multiple moved here.
7142         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
7143         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
7144         changed.
7145         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
7146         * config/arm/predicates.md (commutative_binary_operator): New.
7147         (load_multiple_operation, store_multiple_operation): Handle more
7148         variants of these patterns with different starting offsets.  Handle
7149         Thumb-1.
7150         * config/arm/arm.md: Include "ldmstm.md".
7151         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
7152         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
7153         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
7154         peepholes): Delete.
7155         * config/arm/ldmstm.md: New file.
7156         * config/arm/arm-ldmstm.ml: New file.
7157
7158         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
7159         if statement which adds extra costs to frame-related expressions.
7160
7161 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7162
7163         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
7164
7165 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
7166
7167         PR target/45142
7168         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
7169         alternative 2.
7170         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
7171         split V4SI operands.
7172
7173 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
7174
7175         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7176         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
7177         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
7178         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
7179
7180 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
7181
7182         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
7183         LOCAL_INCLUDE_DIR.
7184
7185 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
7186
7187         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
7188         used in the call to optab_for_tree_code.  Fix the second
7189         is_widening_mult_p call.  Check that both unwidened operands
7190         have the same sign.
7191
7192 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
7193
7194         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
7195
7196 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
7197
7198         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7199
7200 2010-07-30  DJ Delorie  <dj@redhat.com>
7201
7202         * config/rx/predicates.md (rx_constshift_operand): New.
7203         * config/rx/rx.md (zs_cond): New.
7204         (cbranchsi4): Remove mode.
7205         (*cbranchsi4_<code>): Likewise.
7206         (*tstbranchsi4_<code>): New.
7207         (*tstbranchsi4r_<code>): New.
7208         (*tstbranchsi4m_eq): New.
7209         (*tstbranchsi4m_ne): New.
7210         (cbranchsf4): Remove mode.
7211         (*cbranchsf4_<code>): Likewise.
7212
7213 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
7214
7215         * rtlanal.c (simplify_subreg_regno): Don't treat
7216         HARD_FRAME_POINTER_REGNUM specially.
7217
7218 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
7219
7220         * common.opt (-G): Don't define option here.
7221         * config/g.opt: New.
7222         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
7223         rs6000/powerpc and score targets.
7224         * opts.c (common_handle_option): Don't handle -G here.
7225         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
7226         * config/frv/frv.c (frv_handle_option): Handle -G.
7227         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
7228         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
7229         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
7230         * config/mips/mips.c (mips_handle_option): Handle -G.
7231         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
7232         * config/score/score.c (score_handle_option): Handle -G.
7233
7234 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
7235
7236         * config/mmix/mmix.c: Include basic-block.h.
7237
7238 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
7239
7240         PR debug/45055
7241         PR rtl-optimization/45137
7242         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
7243         prototypes.
7244         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
7245         New functions.
7246         * combine.c (next_nonnote_nondebug_insn): Removed.
7247         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
7248         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
7249         * sched-deps.c (sched_analyze_insn): Likewise.
7250         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
7251         * rtlanal.c (canonicalize_condition): Likewise.
7252         * postreload.c (reload_combine_recognize_pattern): Likewise.
7253         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
7254
7255 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
7256
7257         * config/i386/i386.md (int_cond): Remove code iterator.
7258         (fp_cond): Ditto.
7259         (cbranch<mode>4): Use ordered_comparison_operator predicate
7260         for operator0.
7261         (cstore<mode>4): Ditto for operator1.
7262         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
7263         (add<mode>cc): ditto.
7264
7265 2010-07-30  Richard Guenther  <rguenther@suse.de>
7266
7267         PR middle-end/45141
7268         * expr.c (expand_expr_real_1): Check for not handled base address.
7269
7270 2010-07-30  Richard Guenther  <rguenther@suse.de>
7271
7272         * ipa-prop.c (ipa_modify_formal_parameters): Use
7273         build_distinct_type_copy.
7274
7275 2010-07-30  Anthony Green  <green@moxielogic.com>
7276
7277         * config/moxie/rtems.h: New file.
7278         * config.gcc: Add moxie-rtems support.
7279
7280 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
7281
7282         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
7283         df flags as in run_fast_df_dce.
7284
7285 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
7286
7287         Revert:
7288         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
7289
7290         * rtl.def (NOTE): Swap operands 4 and 5.
7291         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
7292         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
7293         Adjust accordingly.
7294         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
7295
7296 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
7297
7298         PR debug/45110
7299         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
7300         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
7301         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
7302         formal parameters.
7303         (gen_decl_die): Change return type to dw_die_ref, return what
7304         gen_formal_parameter_die returned.
7305
7306 2010-07-29  Martin Jambor  <mjambor@suse.cz>
7307
7308         * dbgcnt.def (eipa_sra): New counter.
7309         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
7310
7311 2010-07-29  Xinliang David Li  <davidxl@google.com>
7312
7313         PR bootstrap/45119
7314         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
7315         in revision 162652.
7316
7317 2010-07-29  Richard Guenther  <rguenther@suse.de>
7318
7319         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
7320         (TV_TREE_STORE_CCP): Likewise.
7321         (TV_TREE_REDPHI): Likewise.
7322
7323 2010-07-29  Richard Guenther  <rguenther@suse.de>
7324
7325         * double-int.h (double_int_and_not): New function.
7326         * combine.c (try_combine): Use it.
7327         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
7328
7329 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
7330
7331         PR rtl-optimization/42575
7332         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
7333         Argument AU removed.  All callers changed.  Ignore artificial refs.
7334         Use return value of df_word_lr_simulate_defs to decide whether an insn
7335         is necessary.
7336         (fast_dce): Rename arg to WORD_LEVEL.
7337         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
7338         static.
7339         (pass_fast_rtl_byte_dce): Delete.
7340         * dce.h (run_word_dce): Declare.
7341         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
7342         All callers changed.  Simplify code to only deal with two-word regs.
7343         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
7344         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
7345         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
7346         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
7347         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
7348         (df_word_lr_mark_ref): Declare.
7349         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
7350         df_word_lr_simulate_uses): Declare or rename from byte variants.
7351         (df_byte_lr_simulate_artificial_refs_at_top,
7352         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
7353         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
7354         declarations.
7355         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
7356         (enum df_mm): Delete.
7357         * df-byte-scan.c: Delete file.
7358         * df-problems.c (df_word_lr_problem_data): Renamed from
7359         df_byte_lr_problem_data, all members deleted except for
7360         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
7361         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
7362         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
7363         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
7364         df_byte_lr_confluence_0): Delete functions.
7365         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
7366         callers changed.
7367         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
7368         Don't initialize members that were deleted, don't try to discover data
7369         about registers.  Ignore hard regs.
7370         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
7371         (df_word_lr_mark_ref): New function.
7372         (df_word_lr_bb_local_compute): Renamed from
7373         df_byte_bb_lr_local_compute; all callers changed.  Use
7374         df_word_lr_mark_ref.  Assert that artificial refs don't include
7375         pseudos.  Ignore hard registers.
7376         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
7377         Assert that exit block uses don't contain pseudos.
7378         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
7379         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
7380         callers changed.  Ignore hard regs.
7381         (df_word_lr_transfer_function): Renamed from
7382         df_byte_lr_transfer_function; all callers changed.
7383         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
7384         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
7385         changed.
7386         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
7387         callers changed.
7388         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
7389         confluence operator 0 set to NULL.
7390         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
7391         callers changed.
7392         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
7393         Return bool, true if bitmap changed or insn otherwise necessary.
7394         All callers changed.  Simplify using df_word_lr_mark_ref.
7395         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
7396         all callers changed.  Simplify using df_word_lr_mark_ref.
7397         * lower-subreg.c: Include "dce.h"
7398         (decompose_multiword_subregs): Call run_word_dce if df available.
7399         * Makefile.in (lower-subreg.o): Adjust dependencies.
7400         (df-byte-scan.o): Delete.
7401         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
7402
7403 2010-07-29  Richard Guenther  <rguenther@suse.de>
7404
7405         * tree.c (build_vector): Assert that the vector constant
7406         has enough elements.
7407         (build_vector_from_ctor): Pad with trailing zeros.
7408
7409 2010-07-29  Richard Guenther  <rguenther@suse.de>
7410
7411         PR tree-optimization/45120
7412         * tree-ssa-structalias.c (get_constraint_for_component_ref):
7413         Handle offset in DEREFs properly.
7414         (get_constraint_for_1): Handle MEM_REF offset properly.
7415
7416 2010-07-29  Richard Guenther  <rguenther@suse.de>
7417
7418         PR middle-end/45034
7419         * convert.c (convert_to_integer): Always use an unsigned
7420         type for narrowed negate and bitwise not.
7421
7422 2010-07-29  Ira Rosen  <irar@il.ibm.com>
7423
7424         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
7425         to outer loop when creating reduction epilogue for double reduction,
7426         and switch back to the inner loop when updating the phi nodes.
7427         Update uses of outer loop exit phi nodes in double reduction (instead
7428         of uses of reduction).
7429
7430 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
7431
7432         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
7433         popcount on power7 and parity on power6 systems.
7434         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
7435         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
7436         instructions.
7437
7438         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
7439         (UNSPEC_PARITY): Ditto.
7440         (SFDF): New iterator for SF/DF.
7441         (rreg2): New mode attribute for floating register constraint.
7442         (TARGET_FLOAT): New mode attribute for whether single/double float
7443         is supported.
7444         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
7445         pattern.
7446         (parity<mode>2_cmpb): New insn for parity on power6 and newer
7447         machines.
7448         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
7449         pattern.  Add support for fcpsgn instruction added in power6.
7450         (copysignsf3): Delete.
7451         (copysigndf3): Delete.
7452         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
7453         instead of if_then_else in RTL to avoid problems with -0.
7454
7455         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
7456         of if_then_else to mirror scalar code.
7457         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
7458         rs6000.md.
7459
7460         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
7461         instead of if_then_else.
7462
7463 2010-07-28  Xinliang David Li  <davidxl@google.com>
7464
7465         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
7466         (dump_cand): Dump var_before/after.
7467         (htab_inv_expr_eq): New function.
7468         (htab_inv_expr_hash): New function.
7469         (tree_ssa_iv_optimize_init): Support pseudo invariants.
7470         (add_candidate_1): consider base type precision.
7471         (set_use_iv_cost): New parameter.
7472         (adjust_setup_cost): Use profile information.
7473         (get_address_cost): Do not hard code width in computing address
7474         offset limits.
7475         (compare_aff_trees): New function.
7476         (get_loop_invariant_expr_id): New function.
7477         (get_computation_cost_at): New parameter and use profile information.
7478         (get_computation_cost): New parameter.
7479         (determine_use_iv_cost_generic): Pass new parameter.
7480         (determine_use_iv_cost_address): Ditto.
7481         (determine_use_iv_cost_condition): Ditto.
7482         (autoinc_possible_for_pair): Ditto.
7483         (determine_use_iv_costs): More dumps.
7484         (iv_ca_get_num_inv_exprs): New function.
7485         (iv_ca_recount_cost): Consider loop invariants in register pressure
7486         cost.
7487         (iv_ca_add_use): New parameter.
7488         (iv_ca_dump): Better dumping.
7489         (iv_ca_extend): New parameter.
7490         (try_add_cand_for): Attempt to get better partial solution.
7491         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
7492         (create_new-ivs): More dumps.
7493         (rewrite_use_compare): Ditto.
7494         (free_loop_data): More cleanup.
7495         (treee_ssa_iv_optimize_finalize): Ditto.
7496
7497 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
7498
7499         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
7500         * config/i386/i386.c (ix86_profile_before_prologue): New.
7501         (override_options): Add special handling for -mfentry.
7502         (ix86_function_regparm): Likewise.
7503         (ix86_function_sseregparm): Likewise.
7504         (ix86_frame_pointer_required): Likewise.
7505         (ix86_expand_prologue): Check for ms_hook_prologue.
7506         (x86_function_profiler): Adjust mcount output.
7507         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
7508         * config/i386/i386.opt (mfentry): New.
7509         * doc/invoke.texi (mfentry): Add documentation.
7510         * doc/tm.texi: Regenerated..
7511         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
7512         * final.c (final_start_function): Replace macro
7513         PROFILE_BEFORE_PROLOGUE by target hook.
7514         * function.c (thread_prologue_and_epilogue_insns): Likewise.
7515         * target.def (profile_before_prologue): New hook.
7516         * targhooks.c (default_profile_before_prologue): New.
7517         * targhooks.h (default_profile_before_prologue): New.
7518
7519 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
7520
7521         PR debug/45105
7522         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
7523
7524         PR debug/45103
7525         * dwarf2out.c (dwarf2out_var_location): Always consider
7526         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
7527
7528 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
7529
7530         PR rtl-optimization/45107
7531         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
7532
7533 2010-07-28  Richard Guenther  <rguenther@suse.de>
7534
7535         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
7536         (set_lattice_value): Do not query an old default value.
7537         (get_value_for_expr): New function.  Properly canonicalize
7538         float values.
7539         (ccp_visit_phi_node): Use it.
7540
7541 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
7542
7543         * config/arm/arm.c (arm_pcs_default): Remove static.
7544         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
7545         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
7546         (arm_pcs_default): Declare.
7547
7548 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
7549
7550         * config/rs6000/rs6000.c (rs6000_override_options):
7551         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
7552         ... to darwin_rs6000_override_options.
7553         (rs6000_return_in_memory): Update preceding comment for darwin
7554         64 bit ABI.  Use TARGET_MACHO inline.
7555         (rs6000_darwin64_struct_check_p): New.
7556         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
7557         (function_arg): Likewise.
7558         (rs6000_arg_partial_bytes): Likewise.
7559         (rs6000_function_value): Likewise.
7560
7561 2010-07-28  Andi Kleen  <ak@linux.intel.com>
7562
7563         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
7564
7565 2010-07-28  Richard Guenther  <rguenther@suse.de>
7566
7567         PR middle-end/44903
7568         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
7569         targets try harder to not generate unaligned accesses.
7570
7571 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
7572
7573         PR rtl-optimization/45101
7574         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
7575         for gcse-las.
7576
7577 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
7578
7579         PR tree-optimization/44885
7580         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
7581         with non-aliased component.
7582
7583 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
7584
7585         * config/darwin-driver.c (SWITCH_TAKES_ARG,
7586         WORD_SWITCH_TAKES_ARG): Remove.
7587         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
7588         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
7589         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
7590         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
7591         definitions from gcc.c.
7592         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
7593         defaults.h.
7594         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
7595         Move to defaults.h.
7596         * opts-common.c: Include tm.h.
7597         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
7598         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
7599         Handle more than one argument.  Set canonical_option_num_elements.
7600         (decode_cmdline_options_to_array): Set
7601         canonical_option_num_elements and trailing elements of
7602         canonical_option.
7603         * opts.h (struct cl_decoded_option): Allow four elements in
7604         canonical_option.  Add field canonical_option_num_elements.
7605         * Makefile.in (opts-common.o): Update dependencies.
7606
7607 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
7608
7609         PR middle-end/44790
7610         PR middle-end/44993
7611         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
7612         sure the base has address_mode before adding the offset.
7613
7614 2010-07-27  Xinliang David Li  <davidxl@google.com>
7615
7616         * tree-flow.h (create_mem_ref): Add one new parameter.
7617         * tree-ssa-address.c (create_mem_ref): New parameter.
7618         (addr_to_parts): Ditto.
7619         (move_variant_to_index): New function.
7620         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
7621
7622 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
7623
7624         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
7625         4 and 5.
7626         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
7627         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
7628         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
7629         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
7630         CODE_LABELs and NOTEs.
7631         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
7632         * combine.c (try_combine): Likewise.
7633         * ira.c (setup_prohibited_mode_move_regs): Likewise.
7634         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
7635
7636 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
7637
7638         * coretypes.h (struct cl_option_handlers): Declare.
7639         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
7640         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
7641         * langhooks-def.h (lhd_handle_option): Declare.
7642         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
7643         * langhooks.c (lhd_handle_option): New.
7644         * langhooks.h (struct lang_hooks): Update prototype and return
7645         value type of handle_option hook.
7646         * optc-gen.awk: Generate target_flags_explicit definition for the
7647         driver.
7648         * opts-common.c: Include diagnostic.h.
7649         (handle_option): Move from opts.c.  Update prototype and return
7650         value type.  Use handlers structure.
7651         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
7652         handlers structure.
7653         (set_option): Move from opts.c.
7654         * opts.c (common_handle_option): Update prototype and return value
7655         type.  Update calls to handle_option and enable_warning_as_error.
7656         (unknown_option_callback, post_handling_callback,
7657         lang_handle_option, target_handle_option): New.
7658         (handle_option, read_cmdline_option): Move to opts-common.c.
7659         (read_cmdline_options): Update prototype.  Update call to
7660         read_cmdline_option.
7661         (decode_options): Initialize and use handlers structure.
7662         (set_option): Move to opts-common.c.
7663         (enable_warning_as_error): Update prototype.  Update call to
7664         handle_option.
7665         * opts.h (struct cl_option_handler_func, struct
7666         cl_option_handlers): New.
7667         (handle_option, enable_warning_as_error): Update prototypes.
7668         (read_cmdline_option): Declare.
7669         * Makefile.in (opts-common.o): Update dependencies.
7670
7671 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7672
7673         * config/arm/arm.c (params.h): Include.
7674         (arm_override_options): Tune gcse-unrestricted-cost.
7675         * config/arm/t-arm (arm.o): Define dependencies.
7676
7677 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7678
7679         PR target/42495
7680         PR middle-end/42574
7681         * basic-block.h (get_dominated_to_depth): Declare.
7682         * dominance.c (get_dominated_to_depth): New function, use
7683         get_all_dominated_blocks as a base.
7684         (get_all_dominated_blocks): Use get_dominated_to_depth.
7685
7686         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
7687         (hoist_exprs): Remove.
7688         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
7689         (compute_code_hoist_vbeinout): Add debug print outs.
7690         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
7691
7692         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
7693         quadratic behavior.
7694         * params.h (MAX_HOIST_DEPTH): New macro.
7695         * doc/invoke.texi (max-hoist-depth): Document.
7696
7697 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7698
7699         PR rtl-optimization/40956
7700         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
7701         constants.
7702
7703 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7704
7705         PR target/42495
7706         PR middle-end/42574
7707         * config/arm/arm.c (legitimize_pic_address): Use
7708         gen_calculate_pic_address pattern to emit calculation of PIC address.
7709         (will_be_in_index_register): New function.
7710         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
7711         (thumb1_legitimate_address_p): Use it provided !strict_p.
7712         * config/arm/arm.md (calculate_pic_address): New expand and split.
7713
7714 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7715
7716         PR target/42495
7717         PR middle-end/42574
7718         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
7719         * config/arm/arm.md (define_split "J", define_split "K"): Make
7720         IRA/reload friendly.
7721
7722 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7723
7724         * gcse.c (insert_insn_end_basic_block): Update signature, remove
7725         unused checks.
7726         (pre_edge_insert, hoist_code): Update.
7727
7728 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7729
7730         PR target/42495
7731         PR middle-end/42574
7732         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
7733
7734 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7735
7736         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
7737
7738 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7739
7740         PR rtl-optimization/40956
7741         PR target/42495
7742         PR middle-end/42574
7743         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
7744         for hoisting.
7745         (hoist_code): Count occurences in current block too.
7746
7747 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7748
7749         * gcse.c (struct expr:max_distance): New field.
7750         (doing_code_hoisting_p): New static variable.
7751         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
7752         simple expressions, don't change behavior for PRE.  Set max_distance.
7753         (insert_expr_in_table): Set new max_distance field.
7754         (hash_scan_set): Update.
7755         (hoist_expr_reaches_here_p): Stop search after max_distance
7756         instructions.
7757         (find_occr_in_bb): New static function.  Use it in ...
7758         (hoist_code): Calculate sizes of basic block before any changes are
7759         done.  Pass max_distance to hoist_expr_reaches_here_p.
7760         (one_code_hoisting_pass): Set doing_code_hoisting_p.
7761
7762         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
7763         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
7764         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
7765         macros.
7766         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
7767         Document.
7768
7769 2010-07-27  Jeff Law  <law@redhat.com>
7770             Maxim Kuvyrkov  <maxim@codesourcery.com>
7771
7772         * gcse.c (compute_transpout, transpout): Remove, move logic
7773         to prune_expressions.
7774         (compute_pre_data): Move pruning of trapping expressions ...
7775         (prune_expressions): ... here.  New static function.
7776         (compute_code_hoist_data): Use it.
7777         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
7778
7779 2010-07-27  Xinliang David Li  <davidxl@google.com>
7780
7781         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
7782         (rewrite_use_address): Adjust iv update position when needed.
7783
7784 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7785
7786         * dbgcnt.def (hoist_insn): New debug counter.
7787         * gcse.c (hoist_code): Use it.
7788
7789 2010-07-27  Xinliang David Li  <davidxl@google.com>
7790
7791         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
7792         (niter_for_single_dom_exit): Passes additional parameter.
7793         (iv_period): Fix comments.
7794         (may_eliminate_iv): Handles multiple exit loops properly.
7795         (free_tree_niter_desc): New function.
7796         (free_loop_data): Frees up loop iteration descriptors.
7797
7798 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
7799
7800         PR target/44542
7801         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
7802         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
7803         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
7804         (expand_one_var): Don't consider DECL_ALIGN for variables for
7805         which expand_one_stack_var_at has been already called.
7806
7807         PR testsuite/44701
7808         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
7809         constraints on IA-64.
7810
7811 2010-07-27  Jie Zhang  <jie@codesourcery.com>
7812
7813         PR target/44290
7814         Revert:
7815         2010-07-23  Jie Zhang  <jie@codesourcery.com>
7816
7817         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
7818         false if ! tree_versionable_function_p.
7819
7820 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
7821
7822         * dwarf2out.c (add_data_member_location_attribute): Use
7823         add_AT_unsigned instead of add_AT_int if offset is non-negative.
7824
7825 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
7826
7827         * postreload.c (try_replace_in_use): New static function.
7828         (reload_combine_recognize_const_pattern): Use it here.  Allow
7829         substituting into a final add insn, and substituting into a memory
7830         reference in an insn that sets the reg.
7831
7832 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
7833
7834         * common.opt (o): Add MissingArgError.
7835         * doc/options.texi (MissingArgError): Document.
7836         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
7837         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
7838         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
7839         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
7840         * langhooks.h (struct lang_hooks): Remove missing_argument.
7841         * optc-gen.awk: Handle MissingArgError and output new structure
7842         field initializers.
7843         * opts.c (read_cmdline_option): Use missing_argument_error field
7844         instead of missing_argument langhook.
7845         * opts.h (struct cl_option): Add missing_argument_error field.
7846         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
7847
7848 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
7849
7850         PR target/29090
7851         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
7852         Darwin64 ABI, for zero-sized objects.
7853
7854 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
7855
7856         PR target/35491
7857         PR target/29090
7858
7859         Merge from Apple local 4.2.1.
7860         2005-05-11  Stan Shebs  <shebs@apple.com>
7861         Fix 64-bit varargs for Darwin (Radar 4028089).
7862         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
7863         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
7864         Add argument, add case for 8-byte register half-filled with a float.
7865         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
7866         single-precision floats specially.
7867
7868 2010-07-27  Ira Rosen  <irar@il.ibm.com>
7869
7870         PR tree-optimization/44152
7871         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
7872         complex numbers for further check.
7873         (vect_supported_load_permutation_p): Check nodes with
7874         complex numbers.
7875
7876 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
7877
7878         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
7879         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
7880         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
7881         (LANG_HOOKS_INITIALIZER): Add new hooks.
7882         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
7883         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
7884         and complain_wrong_lang_p.  Update init_options prototype.
7885         * c-objc-common.c (c_initialize_diagnostics): First call
7886         c_common_initialize_diagnostics.
7887         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
7888         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
7889         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
7890         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
7891         (hook_uint_void_0): New.
7892         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
7893         (hook_uint_void_0): New.
7894         * opts-common.c (decode_cmdline_option,
7895         decode_cmdline_options_to_array): Also fill in canonical_option field.
7896         * opts.c (complain_wrong_lang): Use langhook to determine whether
7897         to complain instead of special-casing LTO.
7898         (decode_options): Separate lang_mask determination with
7899         option_lang_mask hook from call of init_options hook.
7900         * opts.h (struct cl_decoded_option): Add canonical_option.
7901
7902 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
7903
7904         PR tree-optimization/45083
7905         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
7906
7907 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
7908
7909         * postreload.c (reload_combine_recognize_const_pattern): Move test
7910         for limiting the insn movement to the right scope.
7911
7912         PR rtl-optimization/45051
7913         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
7914         than reg_mentioned_p.
7915
7916 2010-07-26  Richard Henderson  <rth@redhat.com>
7917
7918         PR target/44132
7919         * tree-emutls.c: New file.
7920         * Makefile.in (OBJS-common): Add it.
7921         * tree-pass.h (pass_ipa_lower_emutls): Declare.
7922         * passes.c (init_optimization_passes): Add it.
7923
7924         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
7925         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
7926         * expr.c (emutls_var_address): Delete.
7927         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
7928         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
7929         (emutls_finish): Delete.
7930         * toplev.c (compile_file): Don't call it.
7931         * tree.h (emutls_decl): Delete.
7932         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
7933         (emutls_finish, emutls_finalize_control_var): Delete.
7934         (emutls_object_type): Move to tree-emutls.c.
7935         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
7936         default_emutls_var_fields, get_emutls_object_type,
7937         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
7938         default_emutls_var_init): Likewise.
7939         (get_variable_section): Don't special case emutls.
7940         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
7941         default_elf_select_section, default_unique_section,
7942         default_encode_section_info): Likewise.
7943         * varpool.c (decide_is_variable_needed): Likewise.
7944         * gimple-iterator.c (update_call_edge_frequencies): New
7945         (gsi_insert_on_edge_immediate): Use it.
7946         (gsi_insert_seq_on_edge_immediate): Likewise.
7947         (gsi_commit_one_edge_insert): Likewise.
7948
7949         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
7950         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
7951         (x86_64_elf_unique_section): Likewise.
7952
7953 2010-07-26  Jan Hubicka  <jh@suse.cz>
7954
7955         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
7956         GTY((skip)).
7957
7958 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
7959
7960         * target.def (output_source_filename): New hook.
7961         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
7962         * doc/tm.texi: Regenerate.
7963         * toplev.c (output_file_directive) Remove function.
7964         * toplev.h (output_file_directive) Remove.
7965         * output.h (default_asm_output_source_filename,
7966         output_file_directive): Declare.
7967         * varasm.h (default_asm_output_source_filename,
7968         output_file_directive): New functions.
7969
7970         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7971         * config/mips/mips-protos.h (mips_output_filename): Remove.
7972         * config/mips/mips.c (mips_output_filename): Make Static.
7973         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
7974
7975 2010-07-26  Richard Guenther  <rguenther@suse.de>
7976
7977         PR tree-optimization/43784
7978         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
7979         if the destination is used by the call.
7980
7981 2010-07-26  Richard Guenther  <rguenther@suse.de>
7982
7983         PR middle-end/45073
7984         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
7985         SSA updating on being in SSA form.
7986
7987 2010-07-26  Richard Guenther  <rguenther@suse.de>
7988
7989         PR middle-end/45056
7990         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
7991
7992 2010-07-26  Richard Guenther  <rguenther@suse.de>
7993
7994         PR tree-optimization/45071
7995         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
7996         adjust op->opcode.
7997
7998 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
7999
8000         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
8001         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
8002         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
8003         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
8004         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
8005         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
8006         save_r31, return_r31, save_interrupt, return_interrupt,
8007         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
8008         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
8009         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
8010         new ABI requirements.
8011         (save_r6_r9, L_callt_save_r6_r9): Remove.
8012         * config/v850/predicates.md (even_reg_operand, disp23_operand,
8013         const_float_1_operand const_float_0_operand): New Predicates.
8014         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
8015         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
8016         * config/v850/t-v850: Update multilibs for new target variants.
8017         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
8018         * config/v850/t-v850e: Likewise.
8019         * config/v850/v850.c (v850_issue_rate): New.
8020         (v850_strict_argument_naming): New.
8021         (function_arg): Modify to generate a different ABI.
8022         (print_operand): Update case 'z' to support float modes.
8023         (output_move_single): Modify to generate appropriate and better
8024         assembly.
8025         (v850_float_z_comparison_operator, v850_select_cc_mode,
8026         v850_float_nz_comparison_operator,  v850_gen_float_compare,
8027         v850_gen_compare): New functions to support comparison of float values.
8028         (ep_memory_offset): Add support for V850E2 targets.
8029         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
8030         (INTERRUPT_REGPARM_NUM): Remove.
8031         (compute_register_save_size): Add extra case to save/restore long call.
8032         (use_prolog_function): New function to support prologue.
8033         (expand_prologue): Add support for V850E2 targets and modified
8034         as per the current ABI requirements.
8035         (expand_epilogue): Likewise.
8036         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
8037         (construct_save_jarl): Likewise.
8038         (construct_dispose_instruction): Update as per the current ABI
8039         requirements.
8040         (construct_prepare_instruction): Likewise.
8041         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
8042         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
8043         (CPP_SPEC): Updated to support v850e2 targets.
8044         (STRICT_ALIGNMENT): Modified.
8045         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
8046         (FIXED_REGISTERS): Likewise.
8047         (CALL_USED_REGISTERS): Likewise.
8048         (CONDITIONAL_REGISTER_USAGE): Updated.
8049         (HARD_REGNO_MODE_OK): Updated.
8050         (reg_class): Updated to add even registers.
8051         (REG_CLASS_NAMES): Likewise.
8052         (REG_CLASS_CONTENTS): Likewise.
8053         (REGNO_REG_CLASS): Updated for CC registers.
8054         (REG_CLASS_FROM_LETTER): Added support for even registers.
8055         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
8056         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
8057         ARG_POINTER_REGNUM): Updated.
8058         (FUNCTION_ARG_ADVANCE): Define.
8059         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
8060         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
8061         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
8062         (GO_IF_LEGITIMATE_ADDRESS): Updated.
8063         (SELECT_CC_MODE): Define.
8064         (REGISTER_NAMES): Updated to add psw and fcc registers.
8065         (ADDITIONAL_REGISTER_NAMES): Updated.
8066         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
8067         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
8068         * config/v850/v850.md (define_constants): Define new constants.
8069         (type): Update store,bit1,macc,div,fpu and single attributes.
8070         (cpu): New attribute.
8071         (cc): Add set_z attribute.
8072         (unsign23byte_load, sign23byte_load, unsign23hword_load,
8073         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
8074         23word_store): New instructions for 23-bit displacement load and store.
8075         (movqi_internal, movhi_internal): Update the attributes.
8076         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
8077         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
8078         the attributes.
8079         (v850_tst1): Modified using CC_REGNUM.
8080         (tstsi): Remove.
8081         (cmpsi): Modified as define_expand from define_insn.
8082         (cmpsi_insn, cmpsf, cmpdf): New instructions.
8083         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
8084         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
8085         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
8086         one_cmplsi2): Clobber the CC_REGNUM register.
8087         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
8088         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
8089         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
8090         (setf_insn, set_z_insn, set_nz_insn): New instructions for
8091         v850e2v3 target.
8092         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
8093         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
8094         targets.
8095         (sasf_1, sasf_2): Remove.
8096         (sasf): New instruction.
8097         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
8098         targets. CC_REGNUM register is clobbered and attributes are
8099         updated.
8100         (branch_z_normal, branch_z_invert, branch_nz_normal,
8101         branch_nz_invert): New branch related instructions.
8102         (jump): Updated the attributes.
8103         (switch): Update to support new targets. CC_REGNUM register is
8104         clobbered and attributes are updated.
8105         (call_internal_short, call_internal_long, call_value_internal_short,
8106         call_value_internal_long): Updated the attributes.
8107         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
8108         clobbered and attributes are updated.
8109         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
8110         Update to support new targets. CC_REGNUM register is clobbered.
8111         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
8112         instructions.
8113         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
8114         are updated.
8115         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
8116         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
8117         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
8118         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
8119         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
8120         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
8121         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
8122         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
8123         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
8124         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
8125         point instructions defined for V850e2v3 target.
8126         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
8127         Add support for V850E2 targets and CC_REGNUM register is clobbered.
8128         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
8129         support for new targets.
8130         * config/v850/v850-modes.def: New file.
8131         * config/v850/v850.opt(mstrict-align): Remove.
8132         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
8133         mv850e2v3): New command line options for V850.
8134         * config.gcc: Update the newly added files.
8135         * doc/invoke.texi: Update the newly added command line options for
8136         V850 target.
8137
8138 2010-07-26  Richard Guenther  <rguenther@suse.de>
8139
8140         PR tree-optimization/45052
8141         * ipa-pure-const.c (check_stmt): Check volatileness.
8142
8143 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
8144
8145         PR target/44707
8146         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
8147         * config/sparc/sparc.c: Include reload.h.
8148         (legitimize_tls_address): Rename into...
8149         (sparc_legitimize_tls_address): ...this.
8150         (legitimize_pic_address): Rename into...
8151         (sparc_legitimize_pic_address): ...this.
8152         (sparc_expand_move): Adjust to above renaming.
8153         (sparc_tls_referenced_p): Likewise.
8154         (sparc_legitimize_tls_address): Likewise.
8155         (sparc_legitimize_pic_address): Likewise.
8156         (sparc_legitimize_address): Likewise.
8157         (sparc_output_mi_thunk): Likewise.
8158         (sparc_legitimize_reload_address): New global function.  Recognize
8159         (lo_sum (high ...) ...) patterns generated by earlier passes.
8160         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
8161
8162 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
8163
8164         PR target/44484
8165         * config/sparc/predicates.md (memory_reg_operand): Delete.
8166         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
8167         (*sync_compare_and_swap): Encode the address form in the pattern.
8168         (*sync_compare_and_swapdi_v8plus): Likewise.
8169
8170 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
8171
8172         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
8173         Streamline paragraph on compatibility with the system compiler.
8174
8175 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
8176
8177         PR middle-end/45035
8178         * alias.c (true_dependence_1): Fix thinko in merge of old
8179         true_dependence and canon_true_dependence.
8180
8181 2010-07-23  Jan Hubicka  <jh@suse.cz>
8182
8183         * lto-streamer-out.c (write_symbol): Fix visibilities of external
8184         references.
8185
8186 2010-07-23  Le-Chun Wu  <lcwu@google.com>
8187
8188         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
8189         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
8190         and an unnecessary assignment.
8191         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
8192         self-assign warning.
8193         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
8194         unnecessary self-init.
8195
8196 2010-07-23  Richard Guenther  <rguenther@suse.de>
8197
8198         PR lto/43071
8199         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
8200         for -flto and -fwhopr.
8201
8202 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
8203
8204         PR target/41943
8205         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
8206         (stmp-int-hdrs): Prefix/postfix headers by include_next.
8207         * config.gcc (user_headers_inc_next_pre): New.
8208         (user_headers_inc_next_post): Likewise.
8209         (*-w64-mingw*): Use for float.h post-fixing, and for
8210         stddef.h/stdarg.h pre-fixing by include_next.
8211         * configure.ac (user_headers_inc_next_post): New.
8212         (user_headers_inc_next_pre): New.
8213         * configure: Regenerated.
8214
8215 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8216
8217         * configure.ac: Don't disable TLS on Solaris 8/9 by default
8218         Set tga_func for Solaris 2/x86 resp. SPARC.
8219         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
8220         (LIB_THREAD_LDFLAGS_SPEC): Define.
8221         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
8222         * configure: Regenerate.
8223         * config.in: Regenerate.
8224         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
8225         -pthread, -threads, LIB_TLS_SPEC with -pthread.
8226         * doc/install.texi (Specific, *-*-solaris2*): Document use of
8227         alternate thread libraries on Solaris 8.
8228         Document TLS patch requirements.
8229         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
8230         Document tls.
8231
8232         PR target/18788
8233         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
8234         -shared.
8235
8236 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
8237
8238         * tree.h (struct tree_base): Add nameless_flag bitfield.
8239         (TYPE_NAMELESS, DECL_NAMELESS): Define.
8240         * omp-low.c (create_omp_child_function, scan_omp_parallel,
8241         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
8242         DECL_ARTIFICIAL where needed.
8243         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
8244         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
8245         has DECL_NAMELESS set.
8246
8247 2010-07-23  Martin Jambor  <mjambor@suse.cz>
8248
8249         PR tree-optimization/44915
8250         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
8251         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
8252         (analyze_function): Likewise.
8253
8254 2010-07-23  Martin Jambor  <mjambor@suse.cz>
8255
8256         PR tree-optimization/44914
8257         * tree-sra.c (sra_modify_function_body): Return true if CFG was
8258         changed, add purging dead eh edges.
8259         (ipa_sra_modify_function_body): Return true if CFG was changed,
8260         simplify purging dead eh edges.
8261         (modify_function): Return true if CFG was changed.
8262         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
8263         was changed.
8264         (ipa_early_sra): Likewise.
8265
8266 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8267
8268         PR target/44290
8269         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
8270         if "naked".
8271         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
8272         false if ! tree_versionable_function_p.
8273
8274 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
8275
8276         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
8277         * ipa-pure-const.c (special_builtlin_state): Remove
8278         BUILT_IN_ARGS_INFO case.
8279         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8280         * builtins.c (expand_builtin): Likewise.
8281         (expand_builtin_args_info): Remove.
8282         * doc/tm.texi (__builtin_args_info): Remove.
8283         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
8284         * doc/tm.text.in: Likewise.
8285
8286 2010-07-23  Richard Guenther  <rguenther@suse.de>
8287
8288         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
8289         (lto_symtab_merge_decls_2): Likewise.
8290         * tree-ssa.c (useless_type_conversion_p): Likewise.
8291         * lto-streamer-in.c (input_gimple_stmt): Likewise.
8292         * gimple.c (gtc_visited2, gtc_ob2): Remove.
8293         (struct type_pair_d): Make same_p an array indexed by mode.
8294         Update comment.
8295         (lookup_type_pair): Update initialization.
8296         (struct sccs): Adjust same_p type.
8297         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
8298         Adjust.
8299         (print_gimple_types_stats): Likewise.
8300         * gimple.h (enum gtc_mode): New.
8301         (gimple_types_compatible_p): Adjust prototype.
8302
8303 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
8304
8305         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
8306         again after processing insn.
8307
8308 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8309
8310         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
8311         proper words when !tree_versionable_function_p.
8312
8313 2010-07-23  Richard Guenther  <rguenther@suse.de>
8314
8315         PR tree-optimization/45037
8316         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
8317
8318 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8319
8320         * doc/extend.texi: Remove IP2K from the description of naked attribute.
8321         Add MCORE instead.
8322
8323 2010-07-10  Andi Kleen  <ak@linux.intel.com>
8324
8325         PR lto/44992
8326         * lto-opts.c (lto_write_options): Add NULL file_data argument to
8327         lto_get_section_name.
8328         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
8329         * lto-streamer-out.c (produce_asm): Likewise.
8330         (copy_function): Likewise.
8331         (produce_symtab): Likewise.
8332         (produce_asm_for_decls): Likewise.
8333         * lto-streamer.c (lto_get_section_name): Add file_data argument.
8334         Rewrite to add random postfix to LTO sections.
8335         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
8336         (lto_get_section_name): Add file_data argument to prototype.
8337
8338 2010-07-10  Andi Kleen  <ak@linux.intel.com>
8339
8340         * lto-section-in.c (lto_section_name): Synchronize names
8341         with lto_get_section_name.
8342
8343 2010-07-10  Andi Kleen  <ak@linux.intel.com>
8344
8345         * lto-opts.c (lto_read_file_options): Check for missing section.
8346
8347 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
8348
8349         * ira.c (check_allocation): Correctly handle the case where an allocno
8350         with two objects was allocated to a single reg.
8351
8352 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
8353
8354         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
8355         (is_widening_mult_p): Likewise.
8356         (convert_to_widen): Use them.
8357         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
8358         well as integer ones.
8359
8360 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
8361
8362         * alias.c (true_dependence_1): New function, merged version of
8363         true_dependence and canon_true_dependence.
8364         (true_dependence): Simplify.
8365         (canon_true_dependence): Simplify.
8366
8367 2010-07-22  Richard Henderson  <rth@redhat.com>
8368
8369         PR target/45027
8370         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
8371         of V4SFmode for the SSE saves; increase stack alignment if needed.
8372         (ix86_gimplify_va_arg): Don't increase stack alignment here.
8373
8374 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
8375
8376         PR bootstrap/45028
8377         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
8378         call cprop_find_used_regs again via note_uses.
8379
8380 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
8381
8382         * alias.c (get_alias_set): Fix formatting issues.
8383
8384 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
8385
8386         PR middle-end/44878
8387         * stmt.c (expand_value_return):  Call promote_function_mode with
8388         a for_return argument of 2 when returning by reference.
8389
8390 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
8391
8392         PR debug/45024
8393         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
8394         unit DIE if we can find the scope DIE.
8395
8396 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
8397
8398         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
8399         changed.  Initialize OBJECT_SUBWORD.
8400         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
8401         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
8402         all callers changed.
8403         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
8404         (finish_allocno): Likewise.
8405         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
8406         (remove_low_level_allocnos): Likewise.
8407         (update_bad_spill_attribute): Likewise.
8408         (setup_min_max_allocno_live_range_point): Likewise.
8409         (sort_conflict_id_map): Likewise.
8410         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
8411         (ior_hard_reg_conflicts): New function.
8412         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
8413         (compress_conflict_vecs): Iterate over objects, not allocnos.
8414         (ira_add_live_range_to_object): New function.
8415         (object_range_compare_func): Renamed from allocno_range_compare_func.
8416         All callers changed.
8417         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
8418         subobjects, widen the min/max range of the lowest-order object to
8419         potentially include all other such low-order objects.
8420         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
8421         (check_allocation): Likewise.  Use more fine-grained tests for register
8422         conflicts.
8423         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
8424         allocno subobjects.
8425         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
8426         choices about which bits to set in each set.  Don't use
8427         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
8428         using the multiple sets we computed.
8429         (push_allocno_to_stack): Iterate over allocno subobjects.
8430         (all_conflicting_hard_regs_coalesced): New static function.
8431         (setup_allocno_available_regs_num): Use it.
8432         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
8433         subobjects.
8434         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
8435         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8436         by ALLOCNO_NUM_OBJECTS.
8437         (calculate_spill_cost): Likewise.
8438         (color_pass): Express if statement in a more normal way.
8439         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
8440         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
8441         (setup_slot_coalesced_allocno_live_ranges): Likewise.
8442         (allocno_reload_assign): Likewise.
8443         (ira_reassign_pseudos): Likewise.
8444         (fast_allocation): Likewise.
8445         * ira-conflicts.c (build_conflict_bit_table): Likewise.
8446         (print_allocno_conflicts): Likewise.
8447         (ira_build_conflicts): Likewise.
8448         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
8449         callers changed.  Test subword 0 of each allocno for conflicts.
8450         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
8451         callers changed.  Iterate over allocno subobjects.
8452         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
8453         * ira-int.h (struct ira_allocno): New member: num_objects.
8454         Rename object to objects and change it into an array.
8455         (ALLOCNO_OBJECT): Add new argument N.
8456         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
8457         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
8458         (ior_hard_reg_conflicts): Declare.
8459         (ira_add_live_range_to_object): Declare.
8460         (ira_allocno_object_iterator): New.
8461         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
8462         (FOR_EACH_ALLOCNO_OBJECT): New macro.
8463         * ira-lives.c (objects_live): Renamed from allocnos_live; all
8464         uses changed.
8465         (allocnos_processed): New sparseset.
8466         (make_object_born): Renamed from make_allocno_born; take an
8467         ira_object_t argument.  All callers changed.
8468         (make_object_dead): Renamed from make_allocno_dead; take an
8469         ira_object_t argument.  All callers changed.
8470         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
8471         All callers changed.
8472         (mark_pseudo_regno_live): Iterate over allocno subobjects.
8473         (mark_pseudo_regno_dead): Likewise.
8474         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
8475         functions.
8476         (mark_ref_live): Detect subword accesses and call
8477         mark_pseudo_regno_subword_live as appropriate.
8478         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
8479         (process_bb_nodes_live): Deal with object-related updates first; set
8480         and test bits in allocnos_processed to avoid computing allocno
8481         statistics more than once.
8482         (create_start_finish_chains): Iterate over objects, not allocnos.
8483         (print_object_live_ranges): New function.
8484         (print_allocno_live_ranges): Use it.
8485         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
8486         and objects_live.
8487
8488 2010-07-22  Richard Guenther  <rguenther@suse.de>
8489
8490         PR lto/42451
8491         * gimple.c (gtc_next_dfs_num): New global.
8492         (struct sccs): Make value a union, add integer same_p member.
8493         (gtc_visit): New function.
8494         (gimple_types_compatible_p_1): New function, split out from ...
8495         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
8496         (iterative_hash_gimple_type): Adjust for sccs change.
8497
8498 2010-07-22  Martin Jambor  <mjambor@suse.cz>
8499
8500         PR tree-optimization/44891
8501         * tree-sra.c: Include gimple-pretty-print.h.
8502         (replace_uses_with_default_def_ssa_name): Renamed to
8503         get_repl_default_def_ssa_name, return the new SSA name instead of
8504         replacing the old one.
8505         (sra_modify_assign): Dump a message when removing a load, if the LHS
8506         is an SSA_NAME, do not do any propagation, just set the RHS to a
8507         default definition SSA NAME, type convert if necessary.
8508         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
8509
8510 2010-07-22  Richard Guenther  <rguenther@suse.de>
8511
8512         PR tree-optimization/45017
8513         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
8514         TYPE_PRECISION of integral types in addition to size.
8515
8516 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8517
8518         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
8519         when no C library is specified.
8520
8521 2010-07-22  Martin Jambor  <mjambor@suse.cz>
8522
8523         * ipa-prop.h (struct ipa_node_params): Updated comment.
8524         (struct ipa_edge_args): Likewise.
8525         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
8526
8527 2010-07-22  Martin Jambor  <mjambor@suse.cz>
8528
8529         * cgraphunit.c (verify_edge_count_and_frequency): New function.
8530         (verify_cgraph_node): Verify frequencies of indirect edges.
8531         * tree-inline.c (tree_function_versioning): Update frequencies of
8532         indirect edges.
8533
8534 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8535
8536         PR target/43698
8537         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
8538         Set *arm_rev to be predicable.
8539
8540 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
8541
8542         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
8543         (LINK_COMMAND_SPEC_A): New.
8544         (DSYMUTIL): New.
8545         (DSYMUTIL_SPEC): New.
8546         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
8547         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
8548
8549 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
8550
8551         * calls.c (load_register_parameters): Move check for zero
8552         sized items so that only the call to
8553         mem_overlaps_already_clobbered_arg_p () is protected.
8554
8555 2010-07-22  Jan Hubicka  <jh@suse.cz>
8556
8557         * ipa-pure-const.c (varying_state): Break out from ...
8558         (get_function_state): ... here; always return varying_state
8559         when state would be NULL otherwise.
8560         (remove_node_data): Do not free varying state.
8561
8562 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
8563
8564         PR bootstrap/44970
8565         PR middle-end/45009
8566         * postreload.c: Include "target.h".
8567         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
8568         into account.
8569         (fixup_debug_insns): Don't copy the rtx.
8570         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
8571         Don't copy when replacing.  Call fixup_debug_insns in the case where
8572         we merged one add with another.
8573         (reload_combine_recognize_pattern): Fail if there aren't any uses.
8574         Try harder to determine whether we're picking a valid index register.
8575         Don't set store_ruid for an insn we're going to scan in the
8576         next iteration.
8577         (reload_combine): Remove unused code.
8578         (reload_combine_note_use): When updating use information for
8579         an old insn, ignore a use that occurs after store_ruid.
8580         * Makefile.in (postreload.o): Update dependencies.
8581
8582         * function.c (record_hard_reg_sets): Restrict the previous change
8583         to cases where the incoming nominal mode is the same as the
8584         incoming promoted mode and everything happens in MODE_INT.
8585
8586 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
8587
8588         PR debug/45015
8589         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
8590         ASM_OPERANDS_OUTPUT_IDX.
8591         (adjust_insn): For inline asm with multiple sets ensure first
8592         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
8593         the insn.
8594
8595 2010-07-21  Richard Henderson  <rth@redhat.com>
8596
8597         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
8598         comparison for avoiding xmm register saves.  Emit the xmm register
8599         saves explicitly.
8600         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
8601         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
8602         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
8603         Remove patterns and the associated splitters.
8604
8605 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
8606
8607         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
8608         and imagine parts of a complex, so that they can have the same
8609         base and fall into the same group.
8610
8611 2010-07-21  Richard Guenther  <rguenther@suse.de>
8612
8613         PR lto/45018
8614         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
8615         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
8616         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
8617
8618 2010-07-21  Martin Jambor  <mjambor@suse.cz>
8619
8620         PR tree-optimization/44900
8621         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
8622         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
8623
8624 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
8625
8626         PR middle-end/44738
8627         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
8628
8629 2010-07-21  Richard Guenther  <rguenther@suse.de>
8630
8631         PR middle-end/45013
8632         * tree-ssa.c (useless_type_conversion_p): Dispatch to
8633         gimple_types_compatible_p only when in lto.
8634         * gimple.c (gimple_types_compatible_p): Use canonical types
8635         to speed up comparison.
8636
8637 2010-07-21  Richard Guenther  <rguenther@suse.de>
8638
8639         * tree-flow.h (referenced_var): Move define ...
8640         * tree-flow-inline.h (referenced_var): ... here as an inline
8641         function.  Assert here ...
8642         * tree-dfa.c (referenced_var_lookup): ... instead of here.
8643         * tree-ssa.c (maybe_optimize_var): Check if the variable
8644         is in referenced vars.
8645         (execute_update_addresses_taken): Remove old broken check.
8646         * gimple-pretty-print.c (pp_points_to_solution): Use
8647         referenced_var_lookup.
8648         * tree-into-ssa.c (dump_decl_set): Likewise.
8649
8650 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
8651
8652         PR debug/45003
8653         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
8654         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
8655         ZERO_EXTEND here.
8656
8657 2010-07-20  Richard Henderson  <rth@redhat.com>
8658
8659         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
8660
8661 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
8662
8663         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
8664         computing the sum of the stack pointer and a large constant.
8665         * config/arm/constraints.md (M): Remove superfluous parentheses.
8666         (Pc): New constraint.
8667
8668 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
8669
8670         PR debug/45006
8671         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
8672         operand's type if exp is tcc_unary class tree.
8673
8674 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
8675
8676         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
8677         Reverse sense of if_then_else condition.
8678
8679 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
8680
8681         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
8682         * config/rs6000/rs6000.c (rs6000_override_options): Set
8683         rs6000_block_move_inline_limit appropriately.
8684         (expand_block_move): Use rs6000_block_move_inline_limit.
8685         * doc/invoke.texi (mblock-move-inline-limit): Document.
8686
8687 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
8688
8689         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
8690         FROM and TO.  All callers changed.  Don't look for tracked uses,
8691         just scan the RTL for DEBUG_INSNs and substitute.
8692         (reload_combine_recognize_pattern): Call fixup_debug_insns.
8693         (reload_combine): Ignore DEBUG_INSNs.
8694
8695 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
8696
8697         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
8698         depth to 8 from 5.
8699
8700         PR debug/45003
8701         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
8702         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
8703         instead of the result's type.
8704
8705 2010-07-20  Richard Guenther  <rguenther@suse.de>
8706
8707         PR tree-optimization/44977
8708         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
8709         SSA form.
8710
8711 2010-07-20  Richard Guenther  <rguenther@suse.de>
8712
8713         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
8714         (lto_symtab_merge_decls_2): Likewise.
8715         * gimple.h (gimple_types_compatible_p): Declare.
8716         * gimple.c (gimple_queue_type_fixup): Remove.
8717         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
8718         (gimple_compatible_complete_and_incomplete_type_p): New function.
8719         (gimple_types_compatible_p): Adjust.
8720         (gimple_register_type): Remove type fixup code.
8721         (print_gimple_types_stats): Adjust.
8722         (free_gimple_type_tables): Likewise.
8723         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
8724         * tree-ssa.c (useless_type_conversion_p): Likewise.
8725
8726 2010-07-20  Richard Guenther  <rguenther@suse.de>
8727
8728         PR middle-end/44971
8729         PR middle-end/44988
8730         * tree-ssa.c (maybe_optimize_var): New function split out from ...
8731         (execute_update_addresses_taken): ... here.
8732         (non_rewritable_mem_ref_base): Likewise.
8733         (execute_update_addresses_taken): Do not iterate over all referenced
8734         vars but just all local decls and parms.
8735         Properly check call and asm arguments and rewrite call arguments.
8736
8737 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
8738
8739         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
8740         to top level.
8741         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
8742         definitions ...
8743         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
8744         New macro.
8745         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
8746
8747 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
8748
8749         * gengtype.c (start_root_entry): New function, split out from
8750         write_root.  Check whether V is null and raise an error if so.
8751         (write_field_root): Check for V being null.  Don't raise an error here;
8752         set V to null instead.
8753         (write_root): Update comment above function.  Use start_root_entry.
8754
8755 2010-07-19  Xinliang David Li  <davidxl@google.com>
8756
8757         PR testsuite/44932
8758         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
8759         def edges.
8760         (find_uninit_use): Add dump.
8761         (is_use_properly_guarded): Ditto.
8762         (warn_uninitialized_phi): Ditto.
8763         (execute_late_warn_uninitialized): Ditto.
8764
8765 2010-07-19  Richard Guenther  <rguenther@suse.de>
8766
8767         PR middle-end/44941
8768         * expr.c (emit_block_move_hints): Move zero size check first.
8769         Move asserts to more useful places.
8770         * calls.c (load_register_parameters): Check for zero size.
8771
8772 2010-07-19  Richard Henderson  <rth@redhat.com>
8773
8774         * tree-optimize.c (execute_all_early_local_passes): New.  Change
8775         cgraph_state here ...
8776         (execute_early_local_optimizations): ... not here.  Remove.
8777         (pass_early_local_passes, pass_all_early_optimizations): Update.
8778
8779 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
8780
8781         * postreload.c (reload_combine_closest_single_use): Ignore the
8782         number of uses for DEBUG_INSNs.
8783         (fixup_debug_insns): New static function.
8784         (reload_combine_recognize_const_pattern): Use it.  Don't let the
8785         main loop be affected by DEBUG_INSNs.
8786         Really disallow moving adds past a jump insn.
8787         (reload_combine_recognize_pattern): Don't update use_ruid here.
8788         (reload_combine_note_use): Do it here.
8789         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
8790
8791 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
8792
8793         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
8794         of a loop.
8795         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
8796
8797 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
8798
8799         * config/i386/darwin.h: Define darwin_emit_branch_islands.
8800         (TARGET_MACHO_BRANCH_ISLANDS): New.
8801         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
8802         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
8803         default value.
8804         * config/i386/i386.c (output_pic_addr_const): Do not emit
8805         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
8806         (x86_output_mi_thunk): Adjust symbol creation.
8807         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
8808         Remove out of date comment.
8809         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
8810         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
8811         (DARWIN_GENERATE_ISLANDS): Ditto.
8812         (output_call):  Do not emit branch islands unless
8813         darwin_emit_branch_islands is set.
8814         * config/darwin.c: Declare darwin_emit_branch_islands.
8815         (machopic_indirect_data_reference): Do not emit unless
8816         darwin_emit_branch_islands is set.
8817         (darwin_override_options): Set darwin_emit_branch_islands
8818         where it is needed.
8819         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
8820
8821 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8822
8823         * doc/sourcebuild.texi (Effective-Target Keywords): Document
8824         sse_runtime, sse2_runtime.
8825
8826 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
8827
8828         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
8829         low half of a single-register SCmode return value before ORing
8830         it with the high half.
8831         * config/mips/mips16.S (MERGE_GPRf): Likewise.
8832
8833 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8834
8835         PR target/44805
8836         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
8837         on all targets.
8838
8839 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
8840
8841         PR target/42235
8842         * postreload.c (reload_cse_move2add): Return bool, true if anything.
8843         changed.  All callers changed.
8844         (move2add_use_add2_insn): Likewise.
8845         (move2add_use_add3_insn): Likewise.
8846         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
8847         reload_combine.
8848         (RELOAD_COMBINE_MAX_USES): Bump to 16.
8849         (last_jump_ruid): New static variable.
8850         (struct reg_use): New members CONTAINING_MEM and RUID.
8851         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
8852         (reload_combine_split_one_ruid, reload_combine_split_ruids,
8853         reload_combine_purge_insn_uses, reload_combine_closest_single_use
8854         reload_combine_purge_reg_uses_after_ruid,
8855         reload_combine_recognize_const_pattern): New static functions.
8856         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
8857         is true for our reg and that we have available index regs.
8858         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
8859         callers changed.  Use them to initialize fields in struct reg_use.
8860         (reload_combine): Initialize last_jump_ruid.  Be careful when to
8861         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
8862         Call reload_combine_recognize_const_pattern.
8863         (reload_combine_note_store): Update REAL_STORE_RUID field.
8864
8865 2010-07-16  Jason Merrill  <jason@redhat.com>
8866
8867         * Makefile.in (opts-common.o): Depend on options.h.
8868
8869 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
8870
8871         * tree.c (build_common_builtin_nodes): Use build_function_type_list
8872         instead of build_function_type.
8873         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
8874         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
8875
8876 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
8877
8878         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
8879         do all the work.
8880         (rs6000_emit_int_cmove): Use function pointers for insn generation.
8881         Don't force values into registers unnecessarily.
8882         (output_isel): Assert that we're not given conditions we can't handle.
8883         Delete corresponding code.
8884         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
8885         scc_comparison_operator constraint.  Permit 0 for the consequent
8886         operand.  Permit any GPR for the alternative operand.
8887         (isel_unsigned_<mode>): Likewise.
8888
8889 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
8890
8891         PR target/44942
8892         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
8893         argument to const_tree.
8894         * config/i386/i386.c (function_arg_advance): If padding needs to be
8895         inserted before argument, increment cum->words by number of padding
8896         words as well.
8897         (contains_aligned_value_p): Change argument to const_tree.
8898         (ix86_function_arg_boundary): Change second argument to const_tree.
8899
8900 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
8901
8902         PR target/42235
8903         * function.c (record_hard_reg_sets): New static function.
8904         (assign_parm_setup_reg): If an optab for extending exists and the
8905         generated code clobbbers no hard regs, emit the insn directly and
8906         create a REG_EQUIV note.
8907
8908 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
8909
8910         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
8911         TREE_CHAIN.
8912         * c-typeck.c (push_init_level): Likewise.
8913         (process_init_element): Likewise.
8914
8915 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
8916
8917         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
8918         (integer_three_node): Add.
8919         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
8920         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
8921         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
8922         of call build_int_cst.
8923         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
8924         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
8925         (find_interesting_uses_address): Ditto.
8926         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
8927         * tree-eh.c (lower_eh_constructs_2): Ditto.
8928         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
8929         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
8930         * expmed.c (expand_divmod): Ditto.
8931         * tree-mudflap.c (mx_register_decls): Ditto.
8932         * varasm.c (array_size_for_constructor): Ditto.
8933         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
8934         * c-parser.c (c_parser_postfix_expression): Ditto.
8935
8936 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
8937
8938         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
8939         New static variables.
8940         (reload_combine_recognize_pattern): New static function, broken out
8941         of reload_combine.
8942         (reload_combine): Use it.  Only initialize first_index_reg and
8943         last_index_reg once.
8944
8945 2010-07-15  Richard Henderson  <rth@redhat.com>
8946
8947         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
8948         when done.
8949
8950 2010-07-15  Jan Hubicka  <jh@suse.cz>
8951
8952         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
8953         comdats for broken gold.
8954         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
8955
8956 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
8957
8958         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
8959
8960 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
8961
8962         * tree.h (DECL_CHAIN): Define.
8963         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
8964         * c-decl.c: Likewise.
8965         * c-parser.c: Likewise.
8966         * c-typeck.c: Likewise.
8967         * cfgexpand.c: Likewise.
8968         * cgraph.c: Likewise.
8969         * cgraphunit.c: Likewise.
8970         * combine.c: Likewise.
8971         * config/alpha/alpha.c: Likewise.
8972         * config/arm/arm.c: Likewise.
8973         * config/frv/frv.c: Likewise.
8974         * config/i386/i386.c: Likewise.
8975         * config/i386/winnt-cxx.c: Likewise.
8976         * config/ia64/ia64.c: Likewise.
8977         * config/iq2000/iq2000.c: Likewise.
8978         * config/mep/mep.c: Likewise.
8979         * config/mips/mips.c: Likewise.
8980         * config/pa/som.h: Likewise.
8981         * config/rs6000/rs6000.c: Likewise.
8982         * config/s390/s390.c: Likewise.
8983         * config/sh/sh.c: Likewise.
8984         * config/sh/symbian-cxx.c: Likewise.
8985         * config/sparc/sparc.c: Likewise.
8986         * config/spu/spu.c: Likewise.
8987         * config/stormy16/stormy16.c: Likewise.
8988         * config/vxworks.c: Likewise.
8989         * config/xtensa/xtensa.c: Likewise.
8990         * coverage.c: Likewise.
8991         * dbxout.c: Likewise.
8992         * dwarf2out.c: Likewise.
8993         * emit-rtl.c: Likewise.
8994         * expr.c: Likewise.
8995         * function.c: Likewise.
8996         * gimple-low.c: Likewise.
8997         * gimple-pretty-print.c: Likewise.
8998         * gimplify.c: Likewise.
8999         * integrate.c: Likewise.
9000         * ipa-inline.c: Likewise.
9001         * ipa-prop.c: Likewise.
9002         * ipa-split.c: Likewise.
9003         * ipa-struct-reorg.c: Likewise.
9004         * ipa-type-escape.c: Likewise.
9005         * langhooks.c: Likewise.
9006         * lto-cgraph.c: Likewise.
9007         * omp-low.c: Likewise.
9008         * stor-layout.c: Likewise.
9009         * tree-cfg.c: Likewise.
9010         * tree-complex.c: Likewise.
9011         * tree-dfa.c: Likewise.
9012         * tree-dump.c: Likewise.
9013         * tree-inline.c: Likewise.
9014         * tree-mudflap.c: Likewise.
9015         * tree-nested.c: Likewise.
9016         * tree-object-size.c: Likewise.
9017         * tree-pretty-print.c: Likewise.
9018         * tree-sra.c: Likewise.
9019         * tree-ssa-live.c: Likewise.
9020         * tree-ssa-loop-niter.c: Likewise.
9021         * tree-ssa-math-opts.c: Likewise.
9022         * tree-ssa-reassoc.c: Likewise.
9023         * tree-ssa-sccvn.c: Likewise.
9024         * tree-ssa-structalias.c: Likewise.
9025         * tree-tailcall.c: Likewise.
9026         * tree-vrp.c: Likewise.
9027         * tree.c: Likewise.
9028         * var-tracking.c: Likewise.
9029         * varasm.c: Likewise.
9030
9031 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9032
9033         PR target/44877
9034         * config/spu/spu.c (spu_expand_builtin_1): Allow references
9035         (as well as pointers) as argument to mask_for_load builtins.
9036
9037 2010-07-15  Richard Guenther  <rguenther@suse.de>
9038
9039         PR tree-optimization/44946
9040         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
9041         with accessing only padding properly.
9042
9043 2010-07-15  Jan Hubicka  <jh@suse.cz>
9044
9045         * ipa.c (function_and_variable_visibility): Variables marked as used
9046         should not be localized.
9047
9048 2010-07-15  Jan Hubicka  <jh@suse.cz>
9049
9050         * cgraph.c: Include lto-streamer.h
9051         (change_decl_assembler_name): Work when assembler name hash is at place.
9052         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
9053         be sure to rename it to avoid name clash.
9054         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
9055         Localize hidden symbols only when locally defined.
9056
9057 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
9058
9059         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
9060
9061 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
9062             Kevin F. Quinn  <kevquinn@gentoo.org>
9063
9064         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
9065         * common.opt: Add -Wtrampolines.
9066         * doc/invoke.texi: Add -Wtrampolines.
9067
9068 2010-07-15  Jie Zhang  <jie@codesourcery.com>
9069
9070         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
9071         cortex_a8_issue_ls.
9072
9073 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
9074
9075         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
9076         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
9077
9078 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9079
9080         * config/spu/spu.c (reg_names): Remove prototype.
9081         (call_used_regs): Likewise.
9082
9083 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
9084
9085         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
9086         "unused" with attribute "used".
9087         (__JCR_END__): Likewise.
9088         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
9089         "used" attribute.
9090         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
9091
9092 2010-07-14  Richard Guenther  <rguenther@suse.de>
9093
9094         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
9095         (maybe_fixup_decls): Likewise.
9096         (input_gimple_stmt): Do not fixup anything.
9097         * lto-streamer-out.c (output_gimple_stmt): Make sure all
9098         non-automatic variable uses are wrapped inside a MEM_REF.
9099
9100 2010-07-14  Richard Henderson  <rth@redhat.com>
9101
9102         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
9103         for functions.
9104         * varasm.c (assemble_variable): Remove early exit for functions;
9105         assert that we're given a variable.
9106
9107 2010-07-14  Jie Zhang  <jie@codesourcery.com>
9108
9109         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
9110         cortex_a8_default when neon_type is not none.
9111
9112 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9113
9114         * lower-subreg.c (subreg_context): New static bitmap.
9115         (decompose_multiword_subregs): Allocate and free it.
9116         (find_decomposable_subregs): Set a bit in it for a register that
9117         occurs in a subreg that changes mode but not size.
9118         (can_decompose_p): Test it instead of non_decomposable_context.
9119
9120 2010-07-14  Richard Guenther  <rguenther@suse.de>
9121
9122         PR tree-optimization/44824
9123         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
9124         is_gimple_mem_ref_addr.
9125         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
9126         non-decl_address_invariant_p addresses.
9127
9128 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9129
9130         * reload.c (find_reloads): Revert code to penalize small register
9131         classes that was brought in with the IRA merge.
9132
9133 2010-07-14  Richard Guenther  <rguenther@suse.de>
9134
9135         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
9136         as base of ARRAY_REFs.
9137
9138 2010-07-14  Richard Guenther  <rguenther@suse.de>
9139
9140         PR middle-end/44930
9141         * tree-pretty-print.c (do_niy): Do not print a newline.
9142
9143 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9144
9145         * ira-int.h (struct ira_object): New.
9146         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
9147         (struct ira_allocno): Remove members min, max,
9148         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
9149         conflict_allocnos_num and conflict_vec_p.  Add new member object.
9150         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
9151         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
9152         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
9153         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
9154         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
9155         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
9156         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
9157         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
9158         an ira_object_t rather than ira_allocno_t.  All uses changed.
9159         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9160         contains a vector of ira_object_t; all uses changed.
9161         (ira_objects_num): Declare variable.
9162         (ira_create_allocno_object): Declare function.
9163         (ira_conflict_vector_profitable_p): Adjust prototype.
9164         (ira_allocate_conflict_vec): Renamed from
9165         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
9166         (ira_allocate_object_conflicts): Renamed from
9167         ira_allocate_allocno_conflicts; first arg now ira_object_t.
9168         (struct ira_object_iterator): New.
9169         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
9170         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
9171         to conflict_vec_p.  All uses changed.
9172         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
9173         Changed to take into account that conflicts are now tracked for
9174         objects.
9175         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
9176         Args changed to accept ira_object_t.  All uses changed.
9177         (allocnos_conflict_p): New static function.
9178         (collected_conflict_objects): Renamed from collected_allocno_objects;
9179         now a vector of ira_object_t.  All uses changed.
9180         (build_conflict_bit_table): Changed to take into account that
9181         conflicts are now tracked for objects.
9182         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
9183         (print_allocno_conflicts, ira_build_conflicts): Likewise.
9184         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
9185         setup_allocno_left_conflicts_size, allocno_reload_assign,
9186         fast_allocation): Likewise.
9187         * ira-lives.c (make_hard_regno_born, make_allocno_born)
9188         process_single_reg_class_operands, process_bb_node_lives): Likewise.
9189         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
9190         Likewise.
9191         * ira-build.c (ira_objects_num): New variable.
9192         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9193         contains a vector of ira_object_t; all uses changed.
9194         (ira_object_id_map_vec): Corresponding change.
9195         (object_pool): New static variable.
9196         (initiate_allocnos): Initialize it.
9197         (finish_allocnos): Free it.
9198         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
9199         New functions.
9200         (ira_create_allocno): Don't set members that were removed.
9201         (ira_set_allocno_cover_class): Don't change conflict hard regs.
9202         (merge_hard_reg_conflicts): Changed to take into account that
9203         conflicts are now tracked for objects.
9204         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
9205         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
9206         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
9207         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
9208         setup_min_max_conflict_allocno_ids, ):  Likewise.
9209         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
9210         to ira_object_t; all callers changed.
9211         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
9212         to ira_object_t, all callers changed.
9213         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
9214         to ira_object_t, all callers changed.
9215         (conflict_check, curr_conflict_check_tick): Renamed from
9216         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
9217         changed.
9218         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
9219         arg changed to ira_object_t, all callers changed.
9220         (create_cap_allocno): Call ira_create_allocno_object.
9221         (finish_allocno): Free the corresponding object.
9222         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
9223         callers changed.  Adjusted for dealing with objects.
9224         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
9225         dealing with objects.
9226         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
9227
9228         * ira-int.h (struct live_range): Rename allocno member to object
9229         and change type to ira_object_t.
9230         (struct ira_object): New member live_ranges.
9231         (struct ira_allocno): Remove member live_ranges.
9232         (ALLOCNO_LIVE_RANGES): Remove.
9233         (OBJECT_LIVE_RANGES): New macro.
9234         (ira_create_live_range, ira_copy_live_range_list,
9235         ira_merge_live_range_list, ira_live_ranges_intersect_p,
9236         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
9237         * ira-build.c (ira_create_object): Initialize live ranges here.
9238         (ira_create_allocno): Not here.
9239         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
9240         changed to ira_object_t, all callers changed.
9241         (copy_live_range): Rename from copy_allocno_live_range, all callers
9242         changed.
9243         (ira_copy_live_range_list): Rename from
9244         ira_copy_allocno_live_range_list, all callers changed.
9245         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
9246         all callers changed.
9247         (ira_live_ranges_intersect_p): Rename from
9248         ira_allocno_live_ranges_intersect_p, all callers changed.
9249         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
9250         callers changed.
9251         (ira_finish_live_range_list): Rename from
9252         ira_finish_allocno_live_range_list, all callers changed.
9253         (change_object_in_range_list): Rename from change_allocno_in_range_list,
9254         last arg changed to ira_object_t, all callers changed.
9255         (finish_allocno): Changed to expect live ranges in the allocno's object.
9256         (move_allocno_live_ranges, copy_allocno_live_ranges,
9257         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
9258         ira_flattening, ira_build): Likewise.
9259         * ira-color.c (allocnos_have_intersected_live_ranges_p,
9260         slot_coalesced_allocno_live_ranges_intersect,
9261         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
9262         * ira-conflicts.c (build_conflict_bit_table): Likewise.
9263         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
9264         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
9265         make_allocno_dead, create_start_finish_chains,
9266         remove_some_program_points_and_update_live_ranges,
9267         ira_debug_live_range_list): Likewise.
9268
9269         * ira-int.h (ira_object_conflict_iterator): Rename from
9270         ira_allocno_conflict_iterator.
9271         (ira_object_conflict_iter_init): Rename from
9272         ira_allocno_conflict_iter_init, second arg changed to
9273         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
9274         FOR_EACH_ALLOCNO_CONFLICT.
9275         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
9276         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
9277         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
9278         * ira-conflicts.c (print_allocno_conflicts): Likewise.
9279
9280 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
9281
9282         PR other/44874
9283         * tree-dump.c (dump_options): Add enumerate_locals entry.
9284         Add TDF_NOID exclusion to all entry.
9285         * tree-dump.h (dump_enumerated_decls): Declare.
9286         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
9287         Don't display type uid.
9288         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
9289         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
9290         * tree-ssa-live.c: Include gimple.h.
9291         (numbered_tree_d): New struct.
9292         (numbered_tree): New typedef.
9293         (DEF_VEC_O (numbered_tree): New.
9294         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
9295         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
9296         (dump_enumerated_decls): Likewise.
9297         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
9298         debug info and flag_dump_final_insns, call dump_enumerated_decls.
9299         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
9300         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
9301
9302 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
9303
9304         * expmed.h (MAX_BITS_PER_WORD): Move to...
9305         * defaults.h (MAX_BITS_PER_WORD): ...here.
9306
9307 2010-07-13  DJ Delorie  <dj@redhat.com>
9308
9309         * config/h8300/h8300.c (h8300_init_once): Default to
9310         -fstrict_volatile_bitfields.
9311
9312         * config/sh/sh.c (sh_override_options): Default to
9313         -fstrict_volatile_bitfields.
9314
9315         * config/rx/rx.c (rx_option_override): New.
9316
9317         * config/m32c/m32c.c (m32c_override_options): Default to
9318         -fstrict_volatile_bitfields.
9319
9320 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
9321
9322         * tree.h (build_function_call_expr): Delete.
9323         (build_call_expr_loc_array): New function.
9324         (build_call_expr_loc_vec): New function.
9325         * tree-flow.h (struct omp_region): Change type of ws_args field
9326         to a VEC.
9327         * builtins.c (build_function_call_expr): Delete.
9328         (build_call_expr_loc_array): New function.
9329         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
9330         (build_call_expr): Likewise.
9331         (build_call_expr_loc_vec): New function.
9332         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
9333         build_function_call_expr.
9334         * expr.c (emutls_var_address): Likewise.
9335         * varasm.c (emutls_common_1): Likewise.
9336         * omp-low.c (expand_omp_atomic_mutex): Likewise.
9337         (expand_omp_taskreg): Adjust for new type of region->ws_args.
9338         (get_ws_args_for): Return a VEC instead of a tree.
9339         (expand_parallel_call): Call build_call_expr_loc_vec instead of
9340         build_function_call_expr.
9341         * stor-layout.c (self_referential_size): Likewise.
9342
9343 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
9344
9345         PR testsuite/44701
9346         * recog.c (constrain_operands): Allow side-effects in memory
9347         operands if either < or > constraint is used, rather than if
9348         both < and > is used.
9349
9350 2010-07-13  Richard Guenther  <rguenther@suse.de>
9351
9352         PR middle-end/44911
9353         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
9354         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
9355         without name.
9356
9357 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
9358
9359         PR target/44761
9360         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
9361         to variable emited.
9362         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
9363         * config/sh/sh.md (symGOT_load): Likewise.
9364         (symDTPOFF2reg): Likewise.
9365         (symTPOFF2reg): Likewise.
9366
9367 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9368
9369         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
9370         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
9371
9372 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9373
9374         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
9375         explanation.
9376         Find ucontext_t * on Solaris 11.
9377         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
9378         Handle new Solaris 11 __sighndlr patterns.
9379
9380 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
9381
9382         PR debug/44901
9383         * vec.h (VEC_block_remove): Fix comment.
9384         * tree-ssa-live.c (remove_unused_locals): Don't use
9385         VEC_unordered_remove on local_decls, instead replace a single
9386         vector element in each iteration if at least one element had
9387         to be removed and VEC_truncate at the end.
9388         * omp-low.c (expand_omp_taskreg): Likewise.
9389
9390 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9391
9392         * c-decl.c (finish_function): Fix typo in comment.
9393
9394 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
9395
9396         PR bootstrap/44921
9397         * postreload.c (move2add_use_add3_insn): Silence gcc warning
9398         on min_regno.
9399
9400 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
9401
9402         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
9403         (simplify_stmt_using_ranges): Use it.
9404
9405 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9406
9407         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
9408         member.  Do not mark as GTY(()).
9409         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
9410         (spu_builtin_decls): New static variable.
9411         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
9412         (spu_init_builtins): Likewise.
9413         (spu_builtin_mul_widen_even): Likewise.
9414         (spu_builtin_mul_widen_odd): Likewise.
9415         (spu_builtin_mask_for_load): Likewise.
9416         (spu_builtin_vec_perm): Likewise.
9417         * config/spu/spu-c.c: Include "target.h".
9418         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
9419         of using spu_builtins[].fndecl.
9420
9421 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9422
9423         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
9424         imply -minterlink-mips16.
9425
9426 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9427
9428         * config/mips/mips.h (mips16_globals): Declare.
9429         (SWITCHABLE_TARGET): Define.
9430         * config/mips/mips.c: Include target-globals.h.
9431         (mips16_globals): New variable.
9432         (mips_set_mips16_mode): Use save_target_globals and
9433         restore_target_globals instead of target_reinit.
9434
9435 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9436
9437         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
9438         to say that the function can be called more than once.
9439         * target-globals.c (save_target_globals): Call init_reg_sets.
9440
9441 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9442
9443         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
9444         * bb-reorder.h: New file.
9445         * bb-reorder.c (default_target_bb_reorder): New variable.
9446         (this_target_bb_reorder): New conditional variable.
9447         (uncond_jump_length): Redefine as a macro.
9448         * target-globals.h (this_target_bb_reorder): Declare.
9449         (target_globals): Add a bb_reorder field.
9450         (restore_target_globals): Copy the bb_reorder field to
9451         this_target_bb-reorder.
9452         * target-globals.c: Include bb-reorder.h.
9453         (default_target_globals): Initialize the bb_reorder field.
9454         (save_target_globals): Likewise.
9455
9456 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9457
9458         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
9459         * gcse.h: New file.
9460         * gcse.c: Include gcse.h.
9461         (default_target_gcse): New variable.
9462         (this_target_gcse): New conditional variable.
9463         (can_copy): Redefine as a macro.
9464         (can_copy_init_p): New macro.
9465         (can_copy_p): Remove can_copy_init_p.
9466         * target-globals.h (this_target_gcse): Declare.
9467         (target_globals): Add a gcse field.
9468         (restore_target_globals): Copy the gcse field to this_target_gcse.
9469         * target-globals.c: Include gcse.h.
9470         (default_target_globals): Initialize the gcse field.
9471         (save_target_globals): Likewise.
9472
9473 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9474
9475         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
9476         and x_ira_prohibited_mode_move_regs_initialized_p.
9477         (ira_prohibited_mode_move_regs): Redefine as a macro.
9478         * ira.c (ira_prohibited_mode_move_regs): Delete.
9479         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
9480
9481 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9482
9483         * reload.h (target_reload): Add x_cached_reg_save_code and
9484         x_cached_reg_restore_code.
9485         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
9486         Redefine as macros.
9487
9488 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9489
9490         * Makefile.in (target-globals.o): Depend on builtins.h.
9491         * builtins.h: New file.
9492         * builtins.c: Include builtins.h.
9493         (default_target_builtins): New variable.
9494         (this_target_builtins): New conditional variable.
9495         (apply_args_mode, apply_result_mode): Redefine as macros.
9496         * target-globals.h (this_target_builtins): Declare.
9497         (target_globals): Add a builtins field.
9498         (restore_target_globals): Copy the builtins field to
9499         this_target_builtins.
9500         * target-globals.c: Include builtins.h.
9501         (default_target_globals): Initialize the builtins field.
9502         (save_target_globals): Likewise.
9503
9504 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9505
9506         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
9507         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
9508         from expmed.c.
9509         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
9510         (alg_hash, alg_hash_used_p): New macros.
9511         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
9512         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
9513         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
9514
9515 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9516
9517         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
9518         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
9519         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
9520         (this_op_costs, costs_classes): Redefine as macros.
9521         (record_reg_classes): Don't take op_costs as a parameter.
9522         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
9523         (scan_one_insn): Update call to record_operand_costs.
9524
9525 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9526
9527         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
9528         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
9529         (target_ira_int): New structure.
9530         (default_target_ira_int): Declare.
9531         (this_target_ira_int): Declare as a variable or define as a macro.
9532         (ira_reg_mode_hard_regset, ira_register_move_cost)
9533         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
9534         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
9535         (prohibited_class_mode_regs, ira_important_classes_num)
9536         (ira_important_classes, ira_reg_class_intersect)
9537         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
9538         (ira_reg_class_union): Redefine as macros.
9539         * ira.h (target_ira): New structure.
9540         (default_target_ira): Declare.
9541         (this_target_ira): Declare as a variable or define as a macro.
9542         (ira_available_class_regs, ira_hard_regno_cover_class)
9543         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
9544         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
9545         (ira_class_hard_regs_num): Redefine as macros.
9546         * ira.c (default_target_ira, default_target_ira_int): New variables.
9547         (this_target_ira, this_target_ira_int): New conditional variables.
9548         (ira_reg_mode_hard_regset, ira_memory_move_cost)
9549         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
9550         (ira_class_subset_p): Delete.
9551         (no_unit_alloc_regs): Redefine as a macro.
9552         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
9553         (ira_class_hard_regs_num, ira_class_hard_reg_index)
9554         (ira_available_class_regs): Delete.
9555         (alloc_reg_class_subclasses): Redefine as a macro.
9556         (ira_reg_class_cover_size, ira_reg_class_cover)
9557         (ira_important_classes_num, ira_important_classes)
9558         (ira_important_class_nums, ira_class_translate): Delete.
9559         (cover_class_order): Document the variable's lifetime.
9560         (reorder_important_classes): Don't set ira_important_class_nums.
9561         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
9562         (ira_reg_class_super_classes, ira_reg_class_union)
9563         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
9564         Delete.
9565         (setup_reg_class_nregs): Don't set ira_max_regs.
9566         (prohibited_class_mode_regs): Delete.
9567         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
9568         (target_globals): Add ira and ira_int fields.
9569         (restore_target_globals): Copy the ira field to this_target_ira
9570         and the ira_int field to this_target_ira_int.
9571         * target-globals.c: Include ira-int.h.
9572         (default_target_globals): Initialize the ira and ira_int fields.
9573         (save_target_globals): Likewise.
9574
9575 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9576
9577         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
9578         * cfgloop.h (target_cfgloop): New structure.
9579         (default_target_cfgloop): Declare.
9580         (this_target_cfgloop): Declare as a variable or define as a macro.
9581         (target_avail_regs, target_clobbered_regs, target_res_regs)
9582         (target_reg_cost, target_spill_cost): Redefine as macros.
9583         * cfgloopanal.c (default_target_cfgloop): New variable.
9584         (this_target_cfgloop): New conditional variable.
9585         (target_avail_regs, target_clobbered_regs, target_res_regs)
9586         (target_reg_cost, target_spill_cost): Delete.
9587         * target-globals.h (this_target_cfgloop): Declare.
9588         (target_globals): Add a cfgloop field.
9589         (restore_target_globals): Copy the cfgloop field to
9590         this_target_cfgloop.
9591         * target-globals.c: Include cfgloop.h.
9592         (default_target_globals): Initialize the cfgloop field.
9593         (save_target_globals): Likewise.
9594
9595 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9596
9597         * regs.h (target_regs): Add x_direct_load, x_direct_store and
9598         x_float_extend_from_mem.
9599         (direct_load, direct_store, float_extend_from_mem): New macros.
9600         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
9601
9602 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9603
9604         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
9605         (target-globals.o): Depend on $(LIBFUNCS_H).
9606         * libfuncs.h: Include hashtab.h.
9607         (libfunc_entry): Moved from optabs.c.
9608         (target_libfuncs): New structure.
9609         (default_target_libfuncs): Declare.
9610         (this_target_libfuncs): Declare as a variable or define as a macro.
9611         (libfunc_table): Redefine as a macro.
9612         * optabs.c (default_target_libfuncs): New variable.
9613         (this_target_libfuncs): New conditional variable.
9614         (libfunc_table): Delete.
9615         (libfunc_entry): Moved to optabs.h.
9616         (libfunc_hash): Redefine as a macro.
9617         (hash_libfunc, eq_libfunc): Fix comments.
9618         (init_optabs): Use libfunc_hash to detect cases where the function
9619         has already been called.  Clear the hash table instead of
9620         recreating it.
9621         * target-globals.h (this_target_libfuncs): Declare.
9622         (target_globals): Add a libfuncs field.
9623         (restore_target_globals): Copy the libfuncs field to
9624         this_target_libfuncs.
9625         * target-globals.c: Include libfuncs.h.
9626         (default_target_globals): Initialize the libfuncs field.
9627         (save_target_globals): Likewise.
9628
9629 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9630
9631         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
9632         in all dependency lists.
9633
9634 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9635
9636         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
9637         * optabs.h (target_optabs): New structure.
9638         (default_target_optabs): Declare.
9639         (this_target_optabs): Declare as a variable or define as a macro.
9640         (optab_table, convert_optab_table, direct_optab_table): Redefine
9641         as macros.
9642         * optabs.c (default_target_optabs): New variable.
9643         (this_target_optabs): New conditional variable.
9644         (optab_table, convert_optab_table, direct_optab_table): Delete.
9645         * target-globals.h (this_target_optabs): Declare.
9646         (target_globals): Add a optabs field.
9647         (restore_target_globals): Copy the optabs field to
9648         this_target_optabs.
9649         * target-globals.c: Include expr.h and optabs.h.
9650         (default_target_globals): Initialize the optabs field.
9651         (save_target_globals): Likewise.
9652
9653 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9654
9655         * flags.h (target_flagstate): Add x_flag_excess_precision.
9656         (flag_excess_precision): Redefine as a macro.
9657         * toplev.c (flag_excess_precision): Delete.
9658
9659 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9660
9661         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
9662         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
9663         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
9664         (no_caller_save_reg_set): Redefine as a macro.
9665         * reload.h (target_reload): Add x_caller_save_initialized_p and
9666         x_regno_save_mode.
9667         (caller_save_initialized_p): Redefine as a macro.
9668         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
9669         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
9670         (regno_save_mode): Redefine as a macro.
9671
9672 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9673
9674         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
9675         * expmed.h: New file.
9676         * expmed.c (default_target_costs): New variable.
9677         (this_target_costs): New conditional variable.
9678         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
9679         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
9680         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
9681         * target-globals.h (this_target_expmed): Declare.
9682         (target_globals): Add a expmed field.
9683         (restore_target_globals): Copy the expmed field to
9684         this_target_expmed.
9685         * target-globals.c: Include expmed.h.
9686         (default_target_globals): Initialize the expmed field.
9687         (save_target_globals): Likewise.
9688
9689 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9690
9691         * Makefile.in (target-globals.o): Depend on reload.h.
9692         * reload.h (target_reload): New structure.
9693         (default_target_reload): Declare.
9694         (this_target_reload): Declare as a variable or define as a macro.
9695         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
9696         * reload1.c (default_target_reload): New variable
9697         (this_target_reload): New conditional variable.
9698         (indirect_symref_ok, double_reg_address_ok): Delete.
9699         (spill_indirect_levels): Redefine as a macro.
9700         * target-globals.h (this_target_reload): Declare.
9701         (target_globals): Add a reload field.
9702         (restore_target_globals): Copy the reload field to
9703         this_target_reload.
9704         * target-globals.c: Include hard-reg-set.h.
9705         (default_target_globals): Initialize the reload field.
9706         (save_target_globals): Likewise.
9707
9708 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9709
9710         * rtl.h (target_rtl): Add x_static_reg_base_value.
9711         * alias.c (static_reg_base_value): Redefine as a macro.
9712
9713 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9714
9715         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
9716         (GTFILES): Remove reginfo.c.
9717         * rtl.h (target_rtl): Add x_top_of_stack.
9718         (top_of_stack): New macro.
9719         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
9720         (top_of_stack): Delete.
9721
9722 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9723
9724         * regs.h (target_regs): Add x_hard_regs_of_mode,
9725         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
9726         x_may_move_out_cost and x_last_mode_for_init_move_cost.
9727         (have_regs_of_mode, contains_reg_of_mode, move_cost)
9728         (may_move_in_cost, may_move_out_cost): Redefine as macros.
9729         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
9730         (may_move_in_cost, may_move_out_cost): Delete.
9731         (last_mode_for_init_move_cost): Redefine as a macro.
9732
9733 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9734
9735         * hard-reg-set.h (target_hard_regs): New structure.
9736         (default_target_hard_regs): Declare.
9737         (this_target_hard_regs): Declare as a variable or define as a macro.
9738         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
9739         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
9740         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
9741         (reg_class_size, reg_class_subclasses, reg_class_subunion)
9742         (reg_class_superunion, reg_names): Redefine as macros.
9743         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
9744         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
9745         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
9746         (reg_class_contents, reg_class_size, reg_class_subclasses)
9747         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
9748         (default_target_hard_regs): New variable
9749         (this_target_hard_regs, initial_call_really_used_regs)
9750         (initial_reg_alloc_order): New conditional variables.
9751         (initial_reg_names): New variable.
9752         (init_reg_sets): Assert that initial_call_really_used_regs,
9753         initial_reg_alloc_order and initial_reg_names
9754         are all the same size as their variable counterparts.  Use them to
9755         initialize those counterparts.
9756         * target-globals.h (this_target_hard_regs): Declare.
9757         (target_globals): Add a hard_regs field.
9758         (restore_target_globals): Copy the hard_regs field to
9759         this_target_hard_regs.
9760         * target-globals.c: Include hard-reg-set.h.
9761         (default_target_globals): Initialize the hard_regs field.
9762         (save_target_globals): Likewise.
9763
9764 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9765
9766         * Makefile.in (target-globals.o): Depend on $(RTL_H).
9767         * rtl.h (target_rtl): New structure.
9768         (default_target_rtl): Declare.
9769         (this_target_rtl): Declare as a variable or define as a macro.
9770         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
9771         Redefine as macros.
9772         * emit-rtl.c (default_target_rtl): New variable.
9773         (this_target_rtl): New conditional variable.
9774         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
9775         (return_address_pointer_rtx): Delete.
9776         (initial_regno_reg_rtx): New macro.
9777         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
9778         (init_emit_regs): Likewise.
9779         * target-globals.h (this_target_rtl): Declare.
9780         (target_globals): Add a rtl field.
9781         (restore_target_globals): Copy the rtl field to this_target_rtl.
9782         * target-globals.c: Include rtl.h.
9783         (default_target_globals): Initialize the rtl field.
9784         (save_target_globals): Likewise.
9785
9786 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9787
9788         * Makefile.in (target-globals.o): Depend on $(REGS_H).
9789         * regs.h (target_reg_modes): New structure.
9790         (default_target_reg_modes): Declare.
9791         (this_target_reg_modes): Declare as a variable or define as a macro.
9792         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
9793         * reginfo.c (default_target_reg_modes): New variable.
9794         (this_target_reg_modes): New conditional variable.
9795         (hard_regno_nregs, reg_raw_mode): Delete.
9796         * target-globals.h (this_target_regs): Declare.
9797         (target_globals): Add a regs field.
9798         (restore_target_globals): Copy the regs field to this_target_regs.
9799         * target-globals.c: Include regs.h.
9800         (default_target_globals): Initialize the regs field.
9801         (save_target_globals): Likewise.
9802
9803 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9804
9805         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
9806         * doc/tm.texi: Regenerate.
9807         * Makefile.in (OBJS-common): Add target-globals.o.
9808         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
9809         and target-globals.h.
9810         (target-globals.o): New rule.
9811         (GTFILES): Include $(srcdir)/target-globals.h.
9812         * defaults.h (SWITCHABLE_TARGET): Define.
9813         * gengtype.c (open_base_files): Add target-globals.h to the
9814         list of includes.
9815         * target-globals.h: New file.
9816         * target-globals.c: Likewise.
9817
9818         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
9819         * flags.h (target_flag_state): New structure.
9820         (default_target_flag_state): Declare.
9821         (this_target_flag_state): Declare as a variable or define as a macro.
9822         (align_loops_log): Redefine as a macro.
9823         (align_loops_max_skip, align_jumps_log): Likewise.
9824         (align_jumps_max_skip, align_labels_log): Likewise.
9825         (align_labels_max_skip, align_functions_log): Likewise.
9826         * toplev.c (default_target_flag_state): New variable.
9827         (this_target_flag_state): New conditional variable.
9828         (align_loops_log): Delete.
9829         (align_loops_max_skip, align_jumps_log): Likewise.
9830         (align_jumps_max_skip, align_labels_log): Likewise.
9831         (align_labels_max_skip, align_functions_log): Likewise.
9832         * target-globals.h (this_target_flag_state): Declare.
9833         (target_globals): Add a flag_state field.
9834         (restore_target_globals): Copy the flag_state field to
9835         this_target_flag_state.
9836         * target-globals.c: Include flags.h.
9837         (default_target_globals): Initialize the flag_state field.
9838         (save_target_globals): Likewise.
9839
9840 2010-07-12  Jie Zhang  <jie@codesourcery.com>
9841
9842         * postreload.c (reg_symbol_ref[]): New.
9843         (move2add_use_add2_insn): New.
9844         (move2add_use_add3_insn): New.
9845         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
9846         (move2add_note_store): Likewise.
9847
9848 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
9849
9850         PR rtl-optimization/44752
9851         * genautomata.c (main): Don't emit an empty file even if there
9852         is no automaton.
9853
9854 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9855
9856         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
9857         ix86_solaris_return_in_memory.
9858         * config/i386-protos.h: Reflect this.
9859         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
9860         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
9861         Move ...
9862         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
9863
9864 2010-07-12  Jie Zhang  <jie@codesourcery.com>
9865
9866         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
9867         align the stack when it's going to be saved.
9868
9869 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9870
9871         PR pch/14940
9872         * config/host-solaris.c (mmap_fixed): New function.
9873         (sol_gt_pch_get_address): Use it.
9874         (sol_gt_pch_use_address): Likewise.
9875
9876 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9877
9878         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
9879         pentiumpro on Solaris 8 and 9/x86.
9880         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
9881         Document SSE/SSE2 support.
9882         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
9883
9884 2010-07-12  Andi Kleen  <ak@linux.intel.com>
9885
9886         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
9887         instead of gcc_assert to print better error message for multiple
9888         prevailing defs.
9889
9890 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
9891
9892         * config/i386/i386.c (ix86_asm_output_function_label): Change format
9893         string placeholder from 0x%x to %#x.
9894         (ix86_code_end): Use putc to output '\n'.
9895         (ix86_print_operand) <case ';'>: Use putc to output ';'.
9896
9897 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
9898
9899         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
9900         in directive -export.
9901
9902 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
9903
9904         * reginfo.h (reg_classes_intersect_p): Change arguments type to
9905         reg_class_t.
9906         * rtl.h (reg_classes_intersect_p): Adjust prototype.
9907
9908         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9909         Remove macros.
9910         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
9911         rs6000_memory_move_cost): Remove
9912         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
9913         TARGET_MEMORY_MOVE_COST): Define.
9914         (rs6000_register_move_cost): Make static. Change arguments type from
9915         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
9916         (rs6000_memory_move_cost): Make static. Change arguments type from
9917         'enum reg_class' to reg_class_t.
9918
9919 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
9920
9921         PR middle-end/42505
9922         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
9923         lookup code into....
9924         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
9925         new functions.
9926         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
9927         * cfgloopanal.c (target_clobbered_regs): Define.
9928         (init_set_costs): Initialize target_clobbered_regs.
9929         (estimate_reg_pressure_cost): Add call_p argument.  When true,
9930         adjust the number of available registers to exclude the
9931         call-clobbered registers.
9932         * cfgloop.h (target_clobbered_regs): Declare.
9933         (estimate_reg_pressure_cost): Adjust declaration.
9934         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
9935         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
9936         (determine_set_costs): Dump target_clobbered_regs.
9937         (loop_body_includes_call): New function.
9938         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
9939         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
9940         call_p flag through.
9941         (best_gain_for_invariant): Likewise.
9942         (find_invariants_to_move): Likewise.
9943         (move_single_loop_invariants): Likewise, using already-computed
9944         has_call field.
9945
9946 2010-07-10  Richard Guenther  <rguenther@suse.de>
9947             Joern Rennecke  <joern.rennecke@embecosm.com>
9948
9949         PR debug/44832
9950         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
9951         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
9952         unless they have DECL_IGNORED_P set.
9953
9954 2010-07-10  Richard Guenther  <rguenther@suse.de>
9955
9956         PR lto/44889
9957         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
9958         helper function.
9959         (gimple_types_compatible_p): Similar to pointed-to
9960         types allow and merge a mix of complete and incomplete aggregate.
9961         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
9962         (iterative_hash_gimple_type): Adjust for that.
9963
9964 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
9965
9966         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
9967
9968 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
9969
9970         PR objc/44140
9971         * config/darwin.c (output_objc_section_asm_op): Save and restore
9972         section when outputting ObjC section list.
9973
9974 2010-07-09  Jan Hubicka  <jh@suse.cz>
9975
9976         * lto-streamer-out.c (produce_symtab): Do not write alias
9977         cgraph/varpool nodes.
9978
9979 2010-07-09  Jan Hubicka  <jh@suse.cz>
9980
9981         * tree-inline.c (declare_return_variable): Fix ICE while
9982         inlining DECL_BY_VALUE function not in SSA form
9983
9984 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
9985
9986         PR tree-optimization/44576
9987         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
9988         New.  Pull out from is_loop_prefetching_profitable to implement
9989         the trip count to ahead ratio heuristic.
9990         (mem_ref_count_reasonable_p): New.  Pull out from
9991         is_loop_prefetching_profitable to implement the instruction to
9992         memory reference ratio heuristic.  Also consider not reasonable if
9993         the memory reference count is above a threshold (to avoid
9994         explosive compilation time.
9995         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
9996         is_loop_prefetching_profitable to implement the instruction to
9997         prefetch ratio heuristic.
9998         (is_loop_prefetching_profitable): Removed.
9999         (loop_prefetch_arrays): Distribute the cost analysis across the
10000         function to allow early exit of the prefetch analysis.
10001         is_loop_prefetching_profitable is splitted into three functions,
10002         with each one called as early as possible.
10003         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
10004         number of memory references in a loop is considered too many.
10005
10006 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
10007
10008         * reload.c (find_reloads): Don't clear badop if we have a winreg
10009         alternative, but not win, and the class only has fixed regs.
10010         * hard-reg-set.h (class_only_fixed_regs): Declare.
10011         * reginfo.c (class_only_fixed_regs): New array.
10012         (init_reg_sets_1): Initialize it.
10013         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
10014         discourage alternatives using the stack pointer.
10015
10016         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
10017
10018         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
10019
10020         * config/arm/arm.md (cbranchqi4): Fix array size.
10021         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
10022         calculating length.
10023
10024 2010-07-09  Richard Guenther  <rguenther@suse.de>
10025
10026         * gimple.c (struct type_fixup_s): New struct and VEC type.
10027         (gimple_register_type_fixups): New static global.
10028         (gimple_queue_type_fixup): New function.
10029         (gimple_types_compatible_p): Queue type fixups instead of
10030         applying them here.
10031         (gimple_register_type): Apply queued fixups for the
10032         canonical type.  Empty the type fixup queue.
10033
10034 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
10035
10036         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
10037         * configure: Regenerate.
10038         * config.in: Ditto.
10039
10040 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
10041             Denys Vlasenko  <dvlasenk@redhat.com>
10042             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10043
10044         PR tree-optimization/28632
10045         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
10046         (extract_range_from_binary_expr): Further optimize
10047         BIT_AND_EXPR and BIT_IOR_EXPR.
10048
10049 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
10050
10051         * tree-if-conv.c (fold_or_predicates): New.
10052         (add_to_predicate_list): Call it.
10053
10054 2010-07-09  Richard Guenther  <rguenther@suse.de>
10055
10056         PR middle-end/44890
10057         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
10058         if base is a pointer.
10059         * tree-cfg.c (verify_expr): Update MEM_REF checking.
10060
10061 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10062
10063         PR target/44877
10064         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
10065         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
10066         builtin mask for load/store builtins.
10067
10068 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
10069
10070         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
10071         for "lock addl".
10072         * configure: Regenerate.
10073         * config/i386/i386.c (ix86_print_operand) <case ';'>:
10074         Remove TARGET_MACHO.
10075
10076 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
10077
10078         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
10079         default ISA flags.
10080         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
10081
10082 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
10083
10084         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
10085
10086 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
10087
10088         * config/picochip/picochip.md (commsTestPort): Emit more
10089         efficient sequence for tstport instruction.
10090
10091 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
10092
10093         * config/i386/i386.c (ix86_veclib_handler): Make static.
10094
10095 2010-07-09  Richard Guenther  <rguenther@suse.de>
10096
10097         PR tree-optimization/44852
10098         * tree-ssa-alias.c: Include toplev.h for exact_log2.
10099         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
10100         in MEM_REF.
10101         (indirect_refs_may_alias_p): Likewise.
10102         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
10103
10104 2010-07-09  Richard Guenther  <rguenther@suse.de>
10105
10106         PR tree-optimization/44882
10107         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
10108         sets do conflict.
10109         (vectorizable_load): Likewise.
10110
10111 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
10112
10113         PR target/40657
10114         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
10115         All callers changed.
10116         Handle the case when we're called for the epilogue.
10117         (thumb_unexpanded_epilogue): Use it.
10118         (thumb1_expand_epilogue): Likewise.
10119
10120 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
10121
10122         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
10123         both ranges are range_int_cst_p with non-negative minimum,
10124         try harder to derive smaller range.
10125
10126 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10127
10128         * genrecog.c: Include diagnostic-core.h before toplev.h.
10129         * genoutput.c: Likewise.
10130         * genextract.c: Likewise.
10131         * genautomata.c: Likewise.
10132         * genemit.c: Likewise.
10133         * genpeep.c: Likewise.
10134         * genattrtab.c: Likewise.
10135         * genconditions.c: Likewise.
10136         * genpreds.c: Likewise.
10137
10138 2010-07-08  Andi Kleen  <ak@linux.intel.com>
10139
10140         * lto-section-in.c (lto_section_name): Add missing comma.
10141
10142 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
10143
10144         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
10145         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
10146         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
10147         (ia64_override_options): Rename to...
10148         (ia64_option_override): ... this one. Make static.
10149
10150 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10151
10152         PR middle-end/44843
10153         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
10154         pointed-to type of the offset in a MEM_REF to compute the alignment.
10155
10156 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
10157
10158         * final.c (final_scan_insn): Replace
10159         TARGET_UNWIND_INFO macro check by unwind_emit
10160         hook NULL check.
10161         * targhooks.c (default_unwind_emit): Removed.
10162         * targhooks.h (default_unwind_emit): Likewise.
10163         * target.def (unwind_emit): Set default value to NULL.
10164
10165         * config/i386/i386-protos.h (ix86_asm_output_function_label):
10166         New prototype.
10167         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
10168         for NULL fntype argument and allow 64-bit targets.
10169         (ix86_asm_output_function_label): New function.
10170         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
10171         (ix86_handle_fndecl_attribute): Likewise.
10172         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
10173         * doc/doc/tm.texi: Regenerated.
10174         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
10175         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
10176         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
10177         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
10178         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10179         * config/elfos.h: Likewise.
10180         * config/i386/cygming.h: Likewise.
10181         * config/netbsd-aout.h: Likewise.
10182         * config/openbsd.h: Likewise.
10183         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
10184         by ix86_asm_output_function_label function call.
10185         * varasm.c (assemble_start_function): Use
10186         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10187
10188 2010-07-08  Jan Hubicka  <jh@suse.cz>
10189
10190         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
10191         New function.
10192         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
10193         Declare.
10194         * ipa-cp.c (ipcp_estimate_growth): Use it.
10195         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
10196         Likewise.
10197
10198 2010-07-08  Jan Hubicka  <jh@suse.cz>
10199
10200         * tree-inline.c (declare_return_variable): Allocate annotation for new
10201         temporary.
10202
10203 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
10204
10205         PR tree-optimization/44710
10206         * tree-if-conv.c (parse_predicate): New.
10207         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
10208         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
10209
10210 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
10211
10212         * common.opt (ftree-loop-if-convert): New flag.
10213         * doc/invoke.texi (ftree-loop-if-convert): Documented.
10214         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
10215         when flag_tree_loop_if_convert is set.
10216
10217 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
10218
10219         * config/i386/i386.c: Use short syntax for function calls
10220         through function pointers.
10221         * config/i386/i386.md: Ditto.
10222
10223 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10224
10225         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
10226
10227 2010-07-08  Richard Guenther  <rguenther@suse.de>
10228
10229         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
10230         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
10231
10232 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
10233
10234         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
10235         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
10236         (loc_list_from_tree): Likewise.
10237         (output_loc_operands): Handle outputting DW_OP_const[48]u
10238         with loc->dtprel set.
10239         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
10240
10241 2010-07-08  Jan Hubicka  <jh@suse.cz>
10242
10243         * ipa.c: Include pointer-set.h
10244         (cgraph_externally_visible_p): New attribute ALIASED;
10245         when in LTO, hidden symbols are local unless they are aliased.
10246         (function_and_variable_visibility): Compute aliased nodes;
10247         handle LTO and hidden symbol on functions and vars.
10248         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
10249         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
10250
10251 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10252
10253         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
10254         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10255         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10256         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10257         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10258         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
10259         (ix86_gen_probe_stack_range): Likewise.
10260         (override_options): Set them.
10261         (ix86_target_stack_probe): New function.
10262         (ix86_compute_frame_layout): Force use of push instructions to
10263         save registers if stack checking with probes is enabled.
10264         (get_scratch_register_on_entry): New function.
10265         (release_scratch_register_on_entry): Likewise.
10266         (ix86_adjust_stack_and_probe): Likewise.
10267         (output_adjust_stack_and_probe): Likewise.
10268         (ix86_emit_probe_stack_range): Likewise.
10269         (output_probe_stack_range): Likewise.
10270         (ix86_expand_prologue): Emit stack checking code if static built-in
10271         stack checking is enabled.
10272         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
10273         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
10274         (output_adjust_stack_and_probe): Likewise.
10275         (output_probe_stack_range): Likewise.
10276         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
10277         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
10278         TARGET_STACK_PROBE.
10279         (allocate_stack_worker_64): Likewise.
10280         (allocate_stack): Likewise.
10281         (adjust_stack_and_probe): New insn.
10282         (probe_stack_range): Likewise.
10283
10284 2010-07-08  Richard Guenther  <rguenther@suse.de>
10285
10286         PR tree-optimization/44831
10287         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
10288         a MEM_REF preserving TBAA info of the original dereference.
10289         Dereference the original pointer if the address is not invariant.
10290         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
10291         at least one invariant address that we are going to dereference.
10292
10293 2010-07-08  Richard Guenther  <rguenther@suse.de>
10294
10295         PR tree-optimization/44861
10296         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
10297         information when building MEM_REFs.
10298         (vectorizable_load): Likewise.
10299         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
10300
10301 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10302
10303         * config/sol2-c.c: Do not include diagnostic-core.h.
10304
10305 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10306
10307         PR bootstrap/44768
10308         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
10309         with respect to current_function_decl. Pass decl of the function.
10310         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
10311         * ipa-inline.c (compute_inline_parameters): Pass decl to
10312         estimated_stack_frame_size.
10313
10314 2010-07-08  Richard Guenther  <rguenther@suse.de>
10315
10316         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10317         New function.
10318         (valueize_refs): Call it.
10319
10320 2010-07-08  Richard Guenther  <rguenther@suse.de>
10321
10322         PR rtl-optimization/44838
10323         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
10324         SSA form do not use pointer equivalence.
10325
10326 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10327
10328         * dwarf2out.c (AT_linkage_name): Delete.
10329         (add_linkage_attr): New function.
10330         (add_linkage_name): Call it to emit the linkage attribute.
10331         (dwarf2out_finish): Likewise.
10332         (move_linkage_attr): Explicitly accept both attribute variants.
10333
10334 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10335
10336         * toplev.h: Do not include diagnostic-core.h.
10337         Include diagnostic-core.h in every file that includes toplev.h.
10338         * c-tree.h: Do not include toplev.h.
10339         * pretty-print.h: Update comment.
10340         * Makefile.in: Update dependencies.
10341         * alias.c: Include diagnostic-core.h in every file that includes
10342         toplev.h.
10343         * attribs.c: Likewise.
10344         * auto-inc-dec.c: Likewise.
10345         * bb-reorder.c: Likewise.
10346         * bt-load.c: Likewise.
10347         * caller-save.c: Likewise.
10348         * calls.c: Likewise.
10349         * cfg.c: Likewise.
10350         * cfganal.c: Likewise.
10351         * cfgbuild.c: Likewise.
10352         * cfgcleanup.c: Likewise.
10353         * cfghooks.c: Likewise.
10354         * cfgloop.c: Likewise.
10355         * combine.c: Likewise.
10356         * config/alpha/alpha.c: Likewise.
10357         * config/arc/arc.c: Likewise.
10358         * config/arm/arm.c: Likewise.
10359         * config/arm/pe.c: Likewise.
10360         * config/avr/avr.c: Likewise.
10361         * config/bfin/bfin.c: Likewise.
10362         * config/cris/cris.c: Likewise.
10363         * config/crx/crx.c: Likewise.
10364         * config/darwin-c.c: Likewise.
10365         * config/darwin.c: Likewise.
10366         * config/fr30/fr30.c: Likewise.
10367         * config/frv/frv.c: Likewise.
10368         * config/h8300/h8300.c: Likewise.
10369         * config/host-darwin.c: Likewise.
10370         * config/i386/i386.c: Likewise.
10371         * config/i386/netware.c: Likewise.
10372         * config/i386/nwld.c: Likewise.
10373         * config/i386/winnt-cxx.c: Likewise.
10374         * config/i386/winnt-stubs.c: Likewise.
10375         * config/i386/winnt.c: Likewise.
10376         * config/ia64/ia64-c.c: Likewise.
10377         * config/ia64/ia64.c: Likewise.
10378         * config/iq2000/iq2000.c: Likewise.
10379         * config/lm32/lm32.c: Likewise.
10380         * config/m32c/m32c-pragma.c: Likewise.
10381         * config/m32c/m32c.c: Likewise.
10382         * config/m32r/m32r.c: Likewise.
10383         * config/m68hc11/m68hc11.c: Likewise.
10384         * config/m68k/m68k.c: Likewise.
10385         * config/mcore/mcore.c: Likewise.
10386         * config/mep/mep-pragma.c: Likewise.
10387         * config/mep/mep.c: Likewise.
10388         * config/mmix/mmix.c: Likewise.
10389         * config/mn10300/mn10300.c: Likewise.
10390         * config/moxie/moxie.c: Likewise.
10391         * config/pa/pa.c: Likewise.
10392         * config/pdp11/pdp11.c: Likewise.
10393         * config/picochip/picochip.c: Likewise.
10394         * config/rs6000/rs6000-c.c: Likewise.
10395         * config/rs6000/rs6000.c: Likewise.
10396         * config/rx/rx.c: Likewise.
10397         * config/s390/s390.c: Likewise.
10398         * config/score/score.c: Likewise.
10399         * config/score/score3.c: Likewise.
10400         * config/score/score7.c: Likewise.
10401         * config/sh/sh.c: Likewise.
10402         * config/sh/symbian-base.c: Likewise.
10403         * config/sh/symbian-c.c: Likewise.
10404         * config/sh/symbian-cxx.c: Likewise.
10405         * config/sol2-c.c: Likewise.
10406         * config/sol2.c: Likewise.
10407         * config/sparc/sparc.c: Likewise.
10408         * config/spu/spu.c: Likewise.
10409         * config/stormy16/stormy16.c: Likewise.
10410         * config/v850/v850-c.c: Likewise.
10411         * config/v850/v850.c: Likewise.
10412         * config/vax/vax.c: Likewise.
10413         * config/vxworks.c: Likewise.
10414         * config/xtensa/xtensa.c: Likewise.
10415         * convert.c: Likewise.
10416         * cse.c: Likewise.
10417         * cselib.c: Likewise.
10418         * dbgcnt.c: Likewise.
10419         * dbxout.c: Likewise.
10420         * ddg.c: Likewise.
10421         * dominance.c: Likewise.
10422         * emit-rtl.c: Likewise.
10423         * explow.c: Likewise.
10424         * expmed.c: Likewise.
10425         * fixed-value.c: Likewise.
10426         * fold-const.c: Likewise.
10427         * fwprop.c: Likewise.
10428         * gcse.c: Likewise.
10429         * ggc-common.c: Likewise.
10430         * ggc-page.c: Likewise.
10431         * ggc-zone.c: Likewise.
10432         * gimple-low.c: Likewise.
10433         * gimplify.c: Likewise.
10434         * graph.c: Likewise.
10435         * haifa-sched.c: Likewise.
10436         * ifcvt.c: Likewise.
10437         * implicit-zee.c: Likewise.
10438         * integrate.c: Likewise.
10439         * ira-build.c: Likewise.
10440         * ira-color.c: Likewise.
10441         * ira-conflicts.c: Likewise.
10442         * ira-costs.c: Likewise.
10443         * ira-lives.c: Likewise.
10444         * ira.c: Likewise.
10445         * lists.c: Likewise.
10446         * loop-doloop.c: Likewise.
10447         * loop-iv.c: Likewise.
10448         * lto-opts.c: Likewise.
10449         * lto-symtab.c: Likewise.
10450         * main.c: Likewise.
10451         * modulo-sched.c: Likewise.
10452         * optabs.c: Likewise.
10453         * params.c: Likewise.
10454         * plugin.c: Likewise.
10455         * postreload-gcse.c: Likewise.
10456         * postreload.c: Likewise.
10457         * predict.c: Likewise.
10458         * profile.c: Likewise.
10459         * real.c: Likewise.
10460         * regcprop.c: Likewise.
10461         * reginfo.c: Likewise.
10462         * regmove.c: Likewise.
10463         * reorg.c: Likewise.
10464         * resource.c: Likewise.
10465         * rtl.c: Likewise.
10466         * rtlanal.c: Likewise.
10467         * sched-deps.c: Likewise.
10468         * sched-ebb.c: Likewise.
10469         * sched-rgn.c: Likewise.
10470         * sdbout.c: Likewise.
10471         * sel-sched-dump.c: Likewise.
10472         * sel-sched-ir.c: Likewise.
10473         * simplify-rtx.c: Likewise.
10474         * stmt.c: Likewise.
10475         * stor-layout.c: Likewise.
10476         * store-motion.c: Likewise.
10477         * targhooks.c: Likewise.
10478         * tree-cfg.c: Likewise.
10479         * tree-cfgcleanup.c: Likewise.
10480         * tree-dump.c: Likewise.
10481         * tree-eh.c: Likewise.
10482         * tree-inline.c: Likewise.
10483         * tree-nomudflap.c: Likewise.
10484         * tree-object-size.c: Likewise.
10485         * tree-optimize.c: Likewise.
10486         * tree-outof-ssa.c: Likewise.
10487         * tree-phinodes.c: Likewise.
10488         * tree-profile.c: Likewise.
10489         * tree-ssa-ccp.c: Likewise.
10490         * tree-ssa-coalesce.c: Likewise.
10491         * tree-ssa-live.c: Likewise.
10492         * tree-ssa-loop-niter.c: Likewise.
10493         * tree-ssa-loop-prefetch.c: Likewise.
10494         * tree-ssa-loop.c: Likewise.
10495         * tree-ssa-structalias.c: Likewise.
10496         * tree-ssa-uninit.c: Likewise.
10497         * tree-ssa.c: Likewise.
10498         * tree-vect-data-refs.c: Likewise.
10499         * tree-vect-loop-manip.c: Likewise.
10500         * tree-vect-loop.c: Likewise.
10501         * tree-vect-patterns.c: Likewise.
10502         * tree-vect-stmts.c: Likewise.
10503         * tree-vrp.c: Likewise.
10504         * varasm.c: Likewise.
10505         * vec.c: Likewise.
10506         * web.c: Likewise.
10507         * xcoffout.c: Likewise.
10508
10509 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
10510
10511         * gengtype.c (write_field_root): New function.
10512         (write_root): Use it.
10513
10514 2010-07-07  Wei Guozhi  <carrot@google.com>
10515
10516         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
10517         of lowest bits to lshift/compare): Add a missing line.
10518
10519 2010-07-07  Wei Guozhi  <carrot@google.com>
10520
10521         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
10522         of lowest bits to lshift/compare): New.
10523
10524 2010-07-07  Tom Tromey  <tromey@redhat.com>
10525
10526         * doc/tm.texi: Update.
10527         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
10528         Add @hook.
10529         * target.def (want_debug_pub_sections): New hook.
10530         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
10531         * dwarf2out.c (add_pubname_string): Check
10532         targetm.want_debug_pub_sections.
10533         (add_pubname): Likewise.
10534         (add_pubtype): Likewise.
10535
10536 2010-07-07  Jie Zhang  <jie@codesourcery.com>
10537
10538         * genautomata.c (output_automata_list_min_issue_delay_code):
10539         Correctly decompress min_issue_delay.
10540
10541 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10542
10543         PR rtl-optimization/44404
10544         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
10545         possible, use reg_overlap_mentioned_p instead.
10546
10547 2010-07-07  Duncan Sands  <baldrick@free.fr>
10548
10549         PR middle-end/41355
10550         * tree.c (build_function_type_skip_args): Copy the original type using
10551         build_distinct_type_copy rather than copy_node.
10552
10553 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
10554
10555         PR target/44850
10556         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
10557         revision 161876.
10558         (ix86_expand_prologue): Likewise.
10559         (ix86_handle_fndecl_attribute): Likewise.
10560         (ix86_asm_declare_function_name): Likewise.
10561         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10562         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10563         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
10564         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
10565         * doc/extend.texi: Likewise.
10566
10567 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
10568
10569         PR target/44844
10570         * config/i386/i386.md (rdrand<mode>): Changed to expand to
10571         retry if the carry flag isn't valid.
10572         (rdrand<mode>_1): New.
10573
10574 2010-07-07  Richard Guenther  <rguenther@suse.de>
10575
10576         PR middle-end/44790
10577         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
10578         for expanding the constant offset for MEM_REFs.
10579
10580 2010-07-07  Richard Guenther  <rguenther@suse.de>
10581
10582         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
10583         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
10584         * gimple.h (is_gimple_operand): Remove.
10585         * gimple.c (is_gimple_operand): Likewise.
10586         (walk_gimple_op): Fix wi->val_only setting for calls.
10587         * tree-cfg.c (verify_gimple_call): Fix argument validation.
10588         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
10589         invalid gimple calls.
10590
10591 2010-07-06  Jan Hubicka  <jh@suse.cz>
10592
10593         * lto-cgraph.c (output_cgraph): Add missing declaration.
10594
10595 2010-07-06  Jan Hubicka  <jh@suse.cz>
10596
10597         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
10598         partition.
10599
10600 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
10601
10602         * doc/gimple.texi (GIMPLE_DEBUG): Document.
10603         * doc/rtl.texi (Debug Information): New node.
10604         (NOTE_INSN_VAR_LOCATION): Document.
10605         (debug_insn): Likewise.
10606         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
10607
10608 2010-07-07  Jan Hubicka  <jh@suse.cz>
10609
10610         With parts by Richard Guenther.
10611
10612         PR middle-end/44813
10613         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
10614         for functions passed by reference.
10615         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
10616         in memory when passed by reference.
10617         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
10618         beggining.
10619         * ipa-split.c (split_function): Cleanup way return value is passed;
10620         handle SSA DECL_BY_REFERENCE retvals.
10621         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
10622         DECL_BY_REFERENCE is set.
10623         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
10624         find_what_p_points_to): Handle RESULT_DECL.
10625         * tree-inline.c (declare_return_variable): Get new entry_block argument;
10626         when passing by reference ensure that RESULT_DECL is gimple_val.
10627         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
10628         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
10629
10630 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10631
10632         PR rtl-optimization/44787
10633         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
10634         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
10635
10636 2010-07-06  Jan Hubicka  <jh@suse.cz>
10637
10638         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
10639         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
10640         with body can prevail.
10641         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
10642         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
10643         * cgraph.c (cgraph_get_node_or_alias): New function.
10644         * cgraph.h (cgraph_get_node_or_alias): Declare.
10645
10646 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
10647
10648         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
10649         support.
10650         (ix86_expand_prologue): Likewise.
10651         (ix86_handle_fndecl_attribute): Likewise.
10652         (ix86_asm_declare_function_name): New function for
10653         ASM_DECLARE_FUNCTION_NAME.
10654         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
10655         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
10656         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
10657         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
10658         * doc/extend.texi: Adjust documentation about ms_hook_prologue
10659         attribute.
10660
10661 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
10662
10663         * config/i386/i386.md (immediate_operand): New mode attribute.
10664
10665         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
10666         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
10667         using P mode iterator.
10668         (pro_epilogue_adjust_stack_di_2): Rename from
10669         pro_epilogue_adjust_stack_rex64_2.
10670
10671         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
10672
10673 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
10674
10675         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
10676         through gen_mov_insv_1 function pointer.
10677         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
10678         gen_truncxf<mode>2 through gen_truncxf function pointer.
10679         (remainder<mode>3): Ditto.
10680         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
10681         (allocate_stack): Call gen_allocate_stack_worker_64 or
10682         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
10683         function pointer.
10684         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
10685         function pointer.
10686
10687 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
10688
10689         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
10690         operand constraint instead of <r><i>m.
10691
10692 2010-07-06  Richard Guenther  <rguenther@suse.de>
10693
10694         PR middle-end/44828
10695         * convert.c (convert_to_integer): Watch out for overflowing
10696         MULT_EXPR as well.
10697
10698 2010-07-05  Jan Hubicka  <jh@suse.cz>
10699
10700         * lto-streamer.c (write_symbol_vec): Rename to ...
10701         (write_symbol) ... this one; write only symbol given and when
10702         present in cache. Sanity check that what is defined is present
10703         in cgraph/varpool with body/finalized decl.
10704         (write_symbols_of_kind): Remove.
10705         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
10706         pairs to produce symtab.
10707         (produce_asm_for_decls): Update call of produce_symtab; don't do so
10708         when doing WPA streaming.
10709
10710 2010-07-05  Jan Hubicka  <jh@suse.cz>
10711
10712         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
10713         function is still available to fold into.
10714
10715 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
10716
10717         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
10718         * function.h (struct_function): Change type of local_decls field
10719         to a VEC.
10720         (add_local_decl): New function.
10721         (FOR_EACH_LOCAL_DECL): New macro.
10722         * cfgexpand.c (init_vars_expansion): Adjust for new type of
10723         cfun->local_decls.
10724         (estimated_stack_frame_size): Likewise.
10725         (expand_used_vars): Likewise.
10726         * cgraphbuild.c (build_cgraph_edges): Likewise.
10727         * function.c (instantiate_decls_1): Likewise.
10728         * ipa-struct-reorg.c (build_data_structure): Likewise.
10729         * ipa-type-escape.c (analyze_function): Likewise.
10730         * lto-streamer-in.c (input_function): Likewise.
10731         * lto-streamer-out.c (output_function): Likewise.
10732         * tree-ssa-live.c (remove_unused_locals): Likewise.
10733         * tree.c (free_lang_data_in_decl): Likewise.
10734         (find_decls_types_in_node): Likewise.
10735         * omp-low.c (remove_exit_barrier): Likewise.
10736         (expand_omp_taskreg): Likewise.
10737         (list2chain): Rename to...
10738         (vec2chain): ...this.  Adjust.
10739         * cgraphunit.c (assemble_thunk): Call add_local_decl.
10740         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
10741         * gimple-low.c (record_vars_into): Likewise.
10742         * tree-inline.c (remap_decls): Likewise.
10743         (declare_return_variable): Likewise.
10744         (declare_inline_vars): Likewise.
10745         (copy_forbidden): Adjust for new type of cfun->local_decls.
10746         (add_local_variables): New function.
10747         (expand_call_inline): Call it.
10748         (tree_function_versioning): Likewise.
10749
10750 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
10751
10752         AVX Programming Reference (June, 2010)
10753         * config/i386/cpuid.h (bit_F16C): New.
10754         (bit_RDRND): Likewise.
10755         (bit_FSGSBASE): Likewise.
10756
10757         * config/i386/i386-builtin-types.def: Add
10758         "DEF_FUNCTION_TYPE (UINT16)", function types for
10759         float16 <-> float conversions and
10760         "DEF_FUNCTION_TYPE (VOID, UINT64)".
10761
10762         * config/i386/i386-c.c (ix86_target_macros_internal): Support
10763         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
10764         OPTION_MASK_ISA_F16C.
10765
10766         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
10767         (OPTION_MASK_ISA_RDRND_SET): Likewise.
10768         (OPTION_MASK_ISA_F16C_SET): Likewise.
10769         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
10770         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
10771         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
10772         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
10773         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
10774         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
10775         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
10776         (override_options): Handle them.
10777         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
10778         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
10779         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
10780         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
10781         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
10782         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
10783         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
10784         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
10785         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
10786         (bdesc_args): Likewise.
10787         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
10788         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
10789         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
10790         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
10791         Handle non-memory store.
10792
10793         * config/i386/i386.h (TARGET_FSGSBASE): New.
10794         (TARGET_RDRND): Likewise.
10795         (TARGET_F12C): Likewise.
10796
10797         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
10798         (UNSPEC_VCVTPS2PH): Likewise.
10799         (UNSPECV_RDFSBASE): Likewise.
10800         (UNSPECV_RDGSBASE): Likewise.
10801         (UNSPECV_WRFSBASE): Likewise.
10802         (UNSPECV_WRGSBASE): Likewise.
10803         (UNSPECV_RDRAND): Likewise.
10804         (rdfsbase<mode>): Likewise.
10805         (rdgsbase<mode>): Likewise.
10806         (wrfsbase<mode>): Likewise.
10807         (wrgsbase<mode>): Likewise.
10808         (rdrand<mode>): Likewise.
10809
10810         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
10811
10812         * config/i386/immintrin.h (_rdrand_u16): New.
10813         (_rdrand_u32): Likewise.
10814         (_readfsbase_u32): Likewise.
10815         (_readfsbase_u64): Likewise.
10816         (_readgsbase_u32): Likewise.
10817         (_readgsbase_u64): Likewise.
10818         (_writefsbase_u32): Likewise.
10819         (_writefsbase_u64): Likewise.
10820         (_writegsbase_u32): Likewise.
10821         (_writegsbase_u64): Likewise.
10822         (_rdrand_u64): Likewise.
10823         (_cvtsh_ss): Likewise.
10824         (_mm_cvtph_ps): Likewise.
10825         (_mm256_cvtph_ps): Likewise.
10826         (_cvtss_sh): Likewise.
10827         (_mm_cvtps_ph): Likewise.
10828         (_mm256_cvtps_ph): Likewise.
10829
10830         * config/i386/sse.md (vcvtph2ps): New.
10831         (*vcvtph2ps_load): Likewise.
10832         (vcvtph2ps256): Likewise.
10833         (vcvtps2ph): Likewise.
10834         (*vcvtps2ph): Likewise.
10835         (*vcvtps2ph_store): Likewise.
10836         (vcvtps2ph256): Likewise.
10837
10838         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
10839
10840         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
10841
10842 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
10843
10844         PR bootstrap/44512
10845         * genenums.c (main): Output include of insn-constants.h
10846         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
10847
10848 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
10849
10850         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
10851         (override_options): Initialize it.
10852         (ix86_expand_prologue): Use it.
10853
10854 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
10855
10856         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
10857
10858 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
10859
10860         * double-int.h (fit_double_type): Remove declaration.
10861         * double-int.c (fit_double_type): Remove function.
10862         * tree.h (int_fits_type_p): Adjust prototype.
10863         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
10864         instead of fit_double_type.
10865         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
10866         instead of fit_double_type and build_int_cst_wide.
10867         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
10868         instead of fit_double_type and build_int_cst_wide.
10869         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
10870         of fit_double_type.
10871
10872 2010-07-05  Jan Hubicka  <jh@suse.cz>
10873
10874         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
10875         in_other_partition.
10876         * lto-cgraph.c (referenced_from_other_partition_p,
10877         reachable_from_other_partition_p): Use in_other_partition flags.
10878         (output_node, output_varpool_node): COMDAT nodes always have private
10879         copies and thus are never used from other partition.
10880
10881 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
10882
10883         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
10884         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
10885         * config/ia64/ia64.c Include reload.h.
10886         (ia64_memory_move_cost): New function.
10887         (TARGET_MEMORY_MOVE_COST): Define.
10888         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
10889         memory_move_cost.
10890
10891 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
10892
10893         PR middle-end/42505
10894         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
10895         comments about cost model.
10896         (try_add_cand_for):  Add second strategy for choosing initial set
10897         based on original IVs, controlled by ORIGINALP argument.
10898         (get_initial_solution): Add ORIGINALP argument.
10899         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
10900         (find_optimal_iv_set): Try two different strategies for choosing
10901         the IV set, and return the one with lower cost.
10902
10903 2010-07-05  Richard Guenther  <rguenther@suse.de>
10904
10905         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
10906
10907 2010-07-05  Richard Guenther  <rguenther@suse.de>
10908
10909         * tree.c (reference_alias_ptr_type): New function.
10910         * tree.h (reference_alias_ptr_type): Declare.
10911         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
10912         allow non-TARGET_MEM_REF new refs.
10913         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
10914         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
10915         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
10916         (create_mem_ref): Get alias pointer type.  Adjust calls to
10917         create_mem_ref_raw.
10918         (maybe_fold_tmr): Likewise.
10919         * tree-flow.h (create_mem_ref): Adjust prototype.
10920
10921 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
10922
10923         PR c++/44808
10924         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
10925         *from_p is VAR_DECL.
10926
10927 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
10928
10929         * tree.h (build_call_list): Remove.
10930         * tree.c (build_call_list): Remove.
10931
10932 2010-07-05  Richard Guenther  <rguenther@suse.de>
10933
10934         * double-int.h (double_int_sub): Declare.
10935         * double-int.c (double_int_sub): New function.
10936         * dwarf2out.c (field_byte_offset): Use it.
10937         * fixed-value.c (do_fixed_add): Likewise.
10938         (do_fixed_multiply): Likewise.
10939         (do_fixed_divide): Likewise.
10940         * tree-predcom.c (add_ref_to_chain): Likewise.
10941         (determine_roots_comp): Likewise.
10942         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
10943
10944 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
10945
10946         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
10947         implementations.
10948
10949 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
10950
10951         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
10952         * arm-modes.def (CC_NOTB): Don't define.
10953         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
10954         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
10955         (LTUGEU): New code_iterator.
10956         (cnb, optab): New corresponding code_attrs.
10957         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
10958         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
10959         using LTUGEU.
10960         (addsi3_carryin_shift_<optab>): Likewise.
10961         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
10962         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
10963         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
10964         (subsi3_compare): Renamed from subsi3_compare0_c.
10965         Change CC_NOTB to CC.
10966         (arm_subsi3_insn): Allow constants for operand 0.
10967         (compare_scc peephole for eq case): New.
10968         (compare_scc splitters): Change CC_NOTB to CC.
10969
10970 2010-07-05  Richard Guenther  <rguenther@suse.de>
10971
10972         * tree-ssa-loop-im.c (for_each_index): Do not handle
10973         ALIGN_INDIRECT_REF.
10974         (gen_lsm_tmp_name): Likewise.
10975         * tree-dump.c (dequeue_and_dump): Likewise.
10976         * tree-pretty-print.c (dump_generic_node): Likewise.
10977         (op_code_prio): Likewise.
10978         (op_symbol_code): Likewise.
10979         * tree.c (staticp): Likewise.
10980         (build1_stat): Likewise.
10981         * tree.h (INDIRECT_REF_P): Likewise.
10982         * fold-const.c (maybe_lvalue_p): Likewise.
10983         (operand_equal_p): Likewise.
10984         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
10985         (ao_ref_init_from_vn_reference): Likewise.
10986         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
10987         (find_interesting_uses_address): Likewise.
10988         * dwarf2out.c (loc_list_from_tree): Likewise.
10989         * gimplify.c (gimplify_expr): Likewise.
10990         * tree-eh.c (tree_could_trap_p): Likewise.
10991         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
10992         * cfgexpand.c (expand_debug_expr): Likewise.
10993         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
10994         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
10995         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
10996         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
10997         * tree-ssa-operands.c (get_expr_operands): Likewise.
10998         * expr.c (safe_from_p): Likewise.
10999         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
11000         * tree-vect-data-refs.c (vect_setup_realignment): Build
11001         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
11002         * tree-vect-stmts.c (vectorizable_load): Likewise.
11003         * tree.def (ALIGN_INDIRECT_REF): Remove.
11004
11005 2010-07-05  Richard Guenther  <rguenther@suse.de>
11006
11007         PR tree-optimization/44784
11008         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
11009         for inserted stmts.
11010         (find_or_generate_expression): Fix SCCVN insertion check.
11011
11012 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
11013
11014         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
11015         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
11016         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
11017         directives.
11018
11019 2010-07-05  Ira Rosen  <irar@il.ibm.com>
11020
11021         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
11022         statements that are not vectorized.
11023         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
11024         in INSIDE_COST.
11025
11026 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
11027
11028         PR bootstrap/44820
11029         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
11030
11031 2010-07-05  Richard Guenther  <rguenther@suse.de>
11032
11033         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
11034         RESULT_DECLs properly.
11035
11036 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
11037
11038         PR rtl-optimization/44695
11039         * config/i386/i386.md (extract_code): Removed.
11040         (<u>divmodqi4): Likewise.
11041         (divmodqi4): New.
11042         (udivmodqi4): Likewise.
11043         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
11044         (udivmodhiqi3): Likewise.
11045
11046 2010-07-04  Jan Hubicka  <jh@suse.cz>
11047
11048         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
11049
11050 2010-07-04  Jan Hubicka  <jh@suse.cz>
11051
11052         * cgraphunit.c (init_cgraph): Only initialize dump file if it
11053         is not already initialized.
11054
11055 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
11056
11057         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
11058         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
11059         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
11060         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
11061         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
11062         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
11063         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
11064         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
11065         (sync_new_nand_optab): Redefine as macros.
11066         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
11067         Delete.
11068         (direct_optab_index): New enum.
11069         (direct_optab_d): New structure.
11070         (direct_optab): New typedef.
11071         (direct_optab_table): Declare.
11072         (direct_optab_handler, set_direct_optab_handler): New functions.
11073         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
11074         (sync_lock_release_optab): New macros.
11075         * optabs.c (direct_optab_table): New variable.
11076         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
11077         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
11078         cmpstr_optab and cmpstrn_optab.
11079         (emit_conditional_move): Likewise for movcc_optab.
11080         (can_conditionally_move_p): Likewise for movcc_gen_code.
11081         (init_insn_codes): Clear direct_optab_table.
11082         (init_optabs): Don't initialize the new "direct optabs" here.
11083         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
11084         vcond_gen_code.
11085         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
11086         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
11087         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
11088         (expand_sync_operation): Likewise other sync_*_optabs.
11089         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
11090         to sync_compare_and_swap_optab.
11091         (expand_sync_lock_test_and_set): Use direct_optab_handler for
11092         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
11093         to the names of both.
11094         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
11095         cmpstr_optab and cmpstrn_optab.
11096         (expand_builtin_lock_release): Likewise sync_lock_release.
11097         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
11098         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
11099         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
11100         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
11101         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
11102         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
11103         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
11104         (sync_lock_test_and_set, sync_lock_release): Delete.
11105         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
11106         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
11107         * genopinit.c (optabs): Use set_direct_optab_handler for the new
11108         macro optabs.
11109         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
11110         the "optab" local variable.  Use direct_optab_handler for optab and
11111         sync_compare_and_swap_optab.
11112         * reload1.c (reload_in_optab, reload_out_optab): Delete.
11113         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
11114         reload_in_optab and reload_out_optab.
11115         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
11116         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
11117         * config/pa/pa.c (pa_secondary_reload): Likewise.
11118         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
11119         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
11120         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
11121         (VMSupportsCS8_builtin): Likewise.
11122
11123 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
11124
11125         * optabs.h (optab_handlers): Change type of insn_code to int.
11126         (optab_handler, set_optab_handler, convert_optab_handler)
11127         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
11128         CODE_FOR_nothing".
11129         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
11130         (init_insn_codes): Zero both the above arrays.
11131         (init_optabs): Never call init_insn_codes first time around.
11132
11133 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
11134
11135         * optabs.h (optab_handler, convert_optab_handler): Turn into
11136         inline functions that return an insn code.
11137         (set_optab_handler, set_convert_optab_handler): New functions.
11138         * builtins.c: Replace optab_handler(X)->insn_code with
11139         optab_handler or set_optab_handler thoughout.  Likewise
11140         convert_optab_handler(X)->insn_code with convert_optab_handler
11141         and set_convert_optab_handler.
11142         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
11143         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
11144         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
11145         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
11146         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
11147         config/spu/spu.c: Likewise.
11148
11149 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
11150
11151         PR target/44531
11152         * config.gcc (sh*-*-*): Use regular expressions instead of
11153         the 'i' modifier for sed substitutions.
11154
11155 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
11156
11157         * gimple.c (gimple_body): Comments added.
11158
11159 2010-07-04  Richard Guenther  <rguenther@suse.de>
11160
11161         PR middle-end/44809
11162         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
11163         of an INDIRECT_REF.
11164
11165 2010-07-04  Richard Guenther  <rguenther@suse.de>
11166
11167         PR tree-optimization/44479
11168         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
11169         extra SSA name copy statements which preserves points-to
11170         information.
11171         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11172         Copy points-to information for all pointers.  Properly handle
11173         MEM_REFs.
11174         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
11175         copy statements.
11176         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
11177         dependency.
11178
11179 2010-07-04  Richard Guenther  <rguenther@suse.de>
11180
11181         PR middle-end/44785
11182         * tree-inline.c (initialize_inlined_parameters): Do not
11183         re-use pointer-map slot over remap_type call.
11184
11185 2010-07-04  Richard Guenther  <rguenther@suse.de>
11186
11187         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
11188
11189 2010-07-04  Richard Guenther  <rguenther@suse.de>
11190
11191         PR tree-optimization/44656
11192         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
11193         again after value-replacing in the defintions lhs.
11194
11195 2010-07-04  Ira Rosen  <irar@il.ibm.com>
11196             Revital Eres  <eres@il.ibm.com>
11197
11198         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
11199         Document new arguments.
11200         * doc/tm.texi: Regenerate.
11201         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
11202         Handle unaligned store.
11203         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
11204         * target.def (builtin_vectorization_cost): Add new arguments.
11205         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
11206         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
11207         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
11208         (vect_vfa_segment_size): Fix indentation.
11209         * tree-vectorizer.h (struct _vect_peel_info): New.
11210         (struct _vect_peel_extended_info): New.
11211         (struct _loop_vec_info): Add new field for peeling hash table and a
11212         macro for its access.
11213         (VECT_MAX_COST): Define.
11214         (vect_get_load_cost): Declare.
11215         (vect_get_store_cost, vect_get_known_peeling_cost,
11216         vect_get_single_scalar_iteraion_cost): Likewise.
11217         (vect_supportable_dr_alignment): Add new argument.
11218         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
11219         field.
11220         (destroy_loop_vec_info): Free peeling hash table.
11221         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
11222         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
11223         vect_analyze_slp. Fix indentation.
11224         (vect_get_single_scalar_iteraion_cost): New function.
11225         (vect_get_known_peeling_cost): Likewise.
11226         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
11227         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
11228         statement. Move outside cost calculation inside unknown peeling case.
11229         Call vect_get_known_peeling_cost for known amount of peeling.
11230         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
11231         reference to the print message of forced alignment.
11232         (vect_verify_datarefs_alignment): Update call to
11233         vect_supportable_dr_alignment.
11234         (vect_get_data_access_cost): New function.
11235         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
11236         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
11237         vect_peeling_hash_choose_best_peeling): Likewise.
11238         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
11239         to store all the accesses in the loop and find best possible access to
11240         align using peeling for known alignment case. For unknown alignment
11241         check if stores are preferred or if peeling is worthy.
11242         (vect_find_same_alignment_drs): Analyze pairs of loads too.
11243         (vect_supportable_dr_alignment): Add new argument and check aligned
11244         accesses according to it.
11245         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
11246         (cost_for_stmt): Call vect_get_stmt_cost.
11247         (vect_model_simple_cost): Likewise.
11248         (vect_model_store_cost): Call vect_get_stmt_cost. Call
11249         vect_get_store_cost to calculate the cost of the statement.
11250         (vect_get_store_cost): New function.
11251         (vect_model_load_cost): Call vect_get_stmt_cost. Call
11252         vect_get_load_cost to calculate the cost of the statement.
11253         (vect_get_load_cost): New function.
11254         (vectorizable_store): Update call to vect_supportable_dr_alignment.
11255         (vectorizable_load): Likewise.
11256         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
11257         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
11258         arguments. Handle unaligned store.
11259         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
11260         (rs6000_builtin_support_vector_misalignment): Return true for word and
11261         double word alignments for VSX.
11262         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
11263         vect_supportable_dr_alignment and builtin_vectorization_cost.
11264
11265 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11266
11267         PR target/44597
11268         * config/pa/predicates.md (prefetch_cc_operand): Remove.
11269         (prefetch_nocc_operand): Likewise.
11270         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
11271         (prefetch_20): New insn.
11272         (prefetch_cc): Remove.
11273         (prefetch_nocc): Likewise.
11274
11275 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11276
11277         * expr.c (vector_mode_valid_p): Move to c-common.c.
11278         * expr.h (vector_mode_valid_p): Do not declare here.
11279         * system.h: Poison GCC_EXPR_H in front-ends.
11280         * Makefile.in: Update dependencies.
11281
11282 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11283
11284         PR target/44705
11285         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
11286
11287 2010-07-03  Jan Hubicka  <jh@suse.cz>
11288
11289         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
11290         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
11291         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
11292         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
11293         Likewise.
11294
11295         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
11296         Update timevars.V
11297         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
11298         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
11299         TV_IPA_LTO_DECL_OUT): New.
11300         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
11301
11302 2010-07-03  Jan Hubicka  <jh@suse.cz>
11303
11304         * ipa-inline.c (update_edge_key): Break out from ...
11305         update_callers_keys): ... here;
11306         (update_callee_keys): Update only the edges from caller to callee.
11307         (update_all_calle_keys): Do what update_calle_keys did.
11308         (decide_inlining_of_small_functions): Avoid recomputing of all
11309         callees when badness increase.
11310
11311 2010-07-03  Jie Zhang  <jie@codesourcery.com>
11312
11313         * config/arm/arm.c (arm_attr_length_move_neon): New.
11314         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
11315         * config/arm/neon.md (define_mode_attr V_slen): Remove.
11316         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
11317         to compute length attribute.
11318
11319 2010-07-03  Jie Zhang  <jie@codesourcery.com>
11320
11321         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
11322         as predicate for operand 1 and remove its constraint.
11323         * config/arm/predicates.md (vfp_register_operand): New.
11324         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
11325         (*push_fp_multi): Likewise.
11326
11327 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
11328
11329         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
11330
11331 2010-07-03  Jan Hubicka  <jh@suse.cz>
11332
11333         * config/i386/i386.c (override_options): Revert accidental commit.
11334
11335 2010-07-02  Le-Chun Wu  <lcwu@google.com>
11336
11337         PR c++/44128
11338         * doc/invoke.texi: Update documentation of -Wshadow.
11339
11340 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
11341             Julian Brown  <julian@codesourcery.com>
11342             Sandra Loosemore  <sandra@codesourcery.com>
11343
11344         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
11345         comparisons.  Adjust to take both operands.
11346         (arm_select_cc_mode): Handle DImode comparisons.
11347         (arm_gen_compare_reg): Generate a scratch register for DImode
11348         comparisons which require one.  Use xor for Thumb equality checks.
11349         (arm_const_double_by_immediates): New.
11350         (arm_print_operand): Allow 'Q' and 'R' for constants.
11351         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
11352         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
11353         arm_canonicalize_comparison.
11354         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
11355         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
11356         prototype.
11357         (arm_const_double_by_immediates): Declare.
11358         * config/arm/constraints.md (Di): New constraint.
11359         * config/arm/predicates.md (arm_immediate_di_operand)
11360         (arm_di_operand, cmpdi_operand): New.
11361         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
11362         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
11363         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
11364         (cstoredi4): Handle non-Cirrus also.
11365
11366 2010-07-02  Julian Brown  <julian@codesourcery.com>
11367             Sandra Loosemore  <sandra@codesourcery.com>
11368
11369         PR target/43703
11370         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
11371         (smax<mode>3): Disable for NEON float modes when
11372         flag_unsafe_math_optimizations is false.
11373         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
11374         (*mul<mode>3_neon)
11375         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
11376         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
11377         for NEON float modes when flag_unsafe_math_optimizations is false.
11378         (quad_halves_<code>v4sf): Only enable if
11379         flag_unsafe_math_optimizations is true.
11380         * doc/invoke.texi (ARM Options): Add note about floating point
11381         vectorization requiring -funsafe-math-optimizations.
11382
11383 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
11384             Julian Brown  <julian@codesourcery.com>
11385
11386         * config/arm/neon.md (UNSPEC_VABA): Delete.
11387         (UNSPEC_VABAL): Delete.
11388         (UNSPEC_VABS): Delete.
11389         (UNSPEC_VMUL_N): Delete.
11390         (adddi3_neon): New.
11391         (subdi3_neon): New.
11392         (mul<mode>3add<mode>_neon): Make the pattern named.
11393         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
11394         (neon_vadd<mode>): Replace with define_expand, and move the remaining
11395         unspec parts...
11396         (neon_vadd<mode>_unspec): ...to this.
11397         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
11398         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
11399         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
11400         (neon_vaba<mode>): Rewrite in terms of vabd.
11401         (neon_vabal<mode>): Rewrite in terms of vabdl.
11402         (neon_vabs<mode>): Rewrite without unspec.
11403         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
11404         (*arm_subdi3): Likewise.
11405         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
11406         No_op attribute to disable assembly output checks.
11407         * config/arm/arm_neon.h: Regenerated.
11408         * doc/arm-neon-intrinsics.texi: Regenerated.
11409
11410 2010-07-02  Jan Hubicka  <jh@suse.cz>
11411
11412         * ipa-split.c (split_function): For aggregate values, set the return
11413         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
11414         *<retval> = fncall.part ().
11415         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
11416
11417 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
11418
11419         * config/arm/neon.md (UNSPEC_VAND): Delete.
11420         (UNSPEC_VBIC): Delete.
11421         (UNSPEC_VCLZ): Delete.
11422         (UNSPEC_VCNT): Delete.
11423         (UNSPEC_VEOR): Delete.
11424         (UNSPEC_VORN): Delete.
11425         (UNSPEC_VORR): Delete.
11426         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
11427         core registers too.
11428         (anddi3_neon): Likewise.
11429         (orndi3_neon): Likewise.
11430         (bicdi3_neon): Likewise.
11431         (xordi3_neon): Likewise.
11432         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
11433         rid of unspec and handle unused operand.
11434         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
11435         * config/arm/predicates.md (imm_for_neon_logic_operand):
11436         Require TARGET_NEON.
11437         (imm_for_neon_inv_logic_operand): Likewise.
11438         * config/arm/arm.md (define_split for logical_binary_operator):
11439         Disable for NEON registers.
11440         (anddi3): Add new define_expand, and rename the insn.  Disable
11441         this insn for NEON, where anddi3_neon now applies.
11442         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
11443         (iordi3): As for anddi3.
11444         (xordi3): Likewise.
11445         * config/arm/neon.ml (Vand): Split DImode variants and mark them
11446         as No_op to disable testing for exact instruction match.
11447         (Vorr): Likewise.
11448         (Veor): Likewise.
11449         (Vbic): Likewise.
11450         (Vorn): Likewise.
11451         * config/arm/arm_neon.h: Regenerated.
11452         * doc/arm-neon-intrinsics.texi: Regenerated.
11453
11454 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
11455
11456         * expr.h (emit_stack_probe): Declare.
11457         * explow.c (emit_stack_probe): Make global.
11458         (anti_adjust_stack_and_probe): Fix comments.
11459         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
11460         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11461         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11462         * config/sparc/sparc.c: Include except.h.
11463         (sparc_emit_probe_stack_range): New function.
11464         (output_probe_stack_range): Likewise.
11465         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
11466         built-in stack checking is enabled.
11467         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
11468         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
11469         (probe_stack_range): New insn.
11470
11471 2010-07-02  Richard Guenther  <rguenther@suse.de>
11472
11473         PR target/43958
11474         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
11475         for argument alignment.
11476
11477 2010-07-02  Jan Hubicka  <jh@suse.cz>
11478
11479         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
11480         walk backwards from entry_bb to check only those basic block of header
11481         that might lead to execution of split part.
11482         (consider_split) ... here.
11483         (find_return_bb): Allow assignment in return BB.
11484         (find_retval): New.
11485         (split_function): Fix name of cloned function; take care of updating
11486         return value in return_bb containing move.
11487
11488 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
11489
11490         PR target/44771
11491         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
11492         used variable insn.
11493
11494 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
11495
11496         * implicit-zee.c (combine_reaching_defs): Fix long lines.
11497         (is_set_with_extension_DI): Delete.
11498         (struct zero_extend_info): New structure.
11499         (add_removable_zero_extend): New function.
11500         (find_removable_zero_extends): Use note_stores to find SETs.
11501         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
11502
11503 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
11504
11505         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
11506         is_miss_rate_acceptable. Pull total_positions computation
11507         out of the loops.  Early return if miss_positions exceeds
11508         the acceptable threshold.
11509         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
11510         is_miss_rate_acceptable after renaming of compute_miss_rate.
11511
11512 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
11513
11514         PR middle-end/44576
11515         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
11516         of 1000) for miss rate if the address diference is greater than or
11517         equal to the cache line size (the two reference will never hit the
11518         same cache line).
11519
11520 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
11521
11522         PR target/42835
11523         * config/arm/arm-modes.def (CC_NOTB): New mode.
11524         * config/arm/arm.c (get_arm_condition_code): Handle it.
11525         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
11526         * config/arm/arm.md (subsi3_compare0_c): New pattern.
11527         (compare_scc): Now a define_and_split.  Add a number of extra
11528         splitters before it.
11529
11530         PR target/42172
11531         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
11532         and ZERO_EXTEND.
11533         (arm_rtx_costs_1): Likewise.
11534         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
11535         * config/arm/arm.md (is_arch6): New attribute.
11536         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
11537         extendqisi2): Tighten the code somewhat, avoiding invalid
11538         RTL to occur in the expander patterns.
11539         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
11540         (thumb1_zero_extendhisi2_v6): Delete.
11541         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
11542         (thumb1_extendhisi2_v6): Delete.
11543         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
11544         (thumb1_extendqisi2_v6): Delete.
11545         (zero_extendhisi2 for register input splitter): New.
11546         (zero_extendqisi2 for register input splitter): New.
11547         (thumb1_extendhisi2 for register input splitter): New.
11548         (extendhisi2 for register input splitter): New.
11549         (extendqisi2 for register input splitter): New.
11550         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
11551         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
11552         and add support for a register alternative requiring a split.
11553         (thumb1_zero_extendqisi2): Likewise.
11554         (arm_zero_extendqisi2): Likewise.
11555         (arm_extendhisi2): Likewise.
11556         (arm_extendqisi2): Likewise.
11557
11558 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
11559
11560         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
11561         instead of an unspec.
11562         (neon_expand_vector_init): Likewise.
11563         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
11564         (UNSPEC_VDUP_LANE): Delete.
11565         (UNSPEC VDUP_N): Delete.
11566         (UNSPEC_VGET_HIGH): Delete.
11567         (UNSPEC_VGET_LANE): Delete.
11568         (UNSPEC_VGET_LOW): Delete.
11569         (UNSPEC_VMVN): Delete.
11570         (UNSPEC_VSET_LANE): Delete.
11571         (V_double_vector_mode): New.
11572         (vec_set<mode>_internal): Make code emitted match that for the
11573         corresponding intrinsics.
11574         (vec_setv2di_internal): Likewise.
11575         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
11576         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
11577         (neon_vset_lane<mode>): Combine double and quad patterns and
11578         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
11579         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
11580         (neon_vdup_n<mode>): Rewrite RTL without unspec.
11581         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
11582         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
11583         with neon_vdup_lanev2di, adjusting the pattern from the latter
11584         to be predicable for consistency.
11585         (neon_vdup_lane<mode>_internal): New.
11586         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
11587         to avoid using an unspec.
11588         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
11589         (neon_vdup_lanev2di): Turn into a define_expand.
11590         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
11591         (neon_vget_high<mode>): Replace with....
11592         (neon_vget_highv16qi): New pattern using canonical RTL.
11593         (neon_vget_highv8hi): Likewise.
11594         (neon_vget_highv4si): Likewise.
11595         (neon_vget_highv4sf): Likewise.
11596         (neon_vget_highv2di): Likewise.
11597         (neon_vget_low<mode>): Replace with....
11598         (neon_vget_lowv16qi): New pattern using canonical RTL.
11599         (neon_vget_lowv8hi): Likewise.
11600         (neon_vget_lowv4si): Likewise.
11601         (neon_vget_lowv4sf): Likewise.
11602         (neon_vget_lowv2di): Likewise.
11603
11604         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
11605         test for this emitting vmov.
11606         (Vset_lane): Likewise.
11607         (Vdup_n): Likewise.
11608         (Vmov_n): Likewise.
11609
11610         * doc/arm-neon-intrinsics.texi: Regenerated.
11611
11612 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
11613
11614         * config/arm/neon.md (vec_extractv2di): Correct error in register
11615         numbering to reconcile with neon_vget_lanev2di.
11616
11617 2010-07-02  Richard Guenther  <rguenther@suse.de>
11618
11619         * tree-ssa-structalias.c (pt_solution_set_var): New function.
11620         * tree-ssa-alias.h (pt_solution_set_var): Declare.
11621         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
11622         points-to information.
11623
11624 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
11625
11626         * config/s390/s390.c (override_options): Adopt prefetching
11627         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
11628
11629 2010-07-02  Jan Hubicka  <jh@suse.cz>
11630
11631         * df-problems.c (df_kill_notes): Do not collect dead  notes.
11632         (df_set_note): Just call add_reg_note.
11633         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
11634         df_create_unused_note): Do not deal with lists of old notes.
11635         (df_note_bb_compute): Likewise.
11636
11637 2010-07-02  Richard Guenther  <rguenther@suse.de>
11638
11639         * tree-ssa-structalias.c (find_func_aliases): Handle
11640         pointer alignment via BIT_AND_EXPR.
11641         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
11642
11643 2010-07-02  Richard Guenther  <rguenther@suse.de>
11644
11645         * tree-data-ref.c (initialize_data_dependence_relation): Handle
11646         mismatching number of dimensions properly.
11647
11648 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11649
11650         PR target/44707
11651         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
11652         (lo_sum (high ...) ...) patterns generated by earlier passes.
11653
11654 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11655
11656         * doc/install.texi (Prerequisites): Document Perl requirement on
11657         Solaris 2.
11658         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
11659
11660 2010-07-02  Richard Guenther  <rguenther@suse.de>
11661
11662         PR middle-end/44777
11663         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
11664
11665 2010-07-02  Jan Hubicka  <jh@suse.cz>
11666
11667         PR middle-end/44706
11668         * predict.c (predict_paths_for_bb): Handle case when control dependence
11669         BB has only abnormal edges.
11670
11671 2010-07-02  Richard Guenther  <rguenther@suse.de>
11672
11673         PR tree-optimization/44748
11674         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
11675         the embedded conversion in MEM_REFs.
11676
11677 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
11678
11679         * reload.c: Include toplev.h.
11680         * recog.c:  Likewise.
11681         * Makefile.in: Adjust dependencies.
11682
11683 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
11684
11685         PR debug/44694
11686         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
11687         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
11688
11689 2010-07-01  Richard Guenther  <rguenther@suse.de>
11690
11691         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
11692         types for offsets.
11693
11694 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
11695
11696         PR target/44732
11697         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
11698         Fix argument types.
11699
11700 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
11701
11702         PR target/44727
11703         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
11704         Make sure operand 0 dies.
11705
11706 2010-07-01  Richard Guenther  <rguenther@suse.de>
11707
11708         PR middle-end/42834
11709         PR middle-end/44468
11710         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
11711         * doc/generic.texi (References to storage): Document MEM_REF.
11712         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
11713         (print_call_name): Likewise.
11714         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
11715         (build_simple_mem_ref_loc): New function.
11716         (mem_ref_offset): Likewise.
11717         * tree.h (build_simple_mem_ref_loc): Declare.
11718         (build_simple_mem_ref): Define.
11719         (mem_ref_offset): Declare.
11720         * fold-const.c: Include tree-flow.h.
11721         (operand_equal_p): Handle MEM_REF.
11722         (build_fold_addr_expr_with_type_loc): Likewise.
11723         (fold_comparison): Likewise.
11724         (fold_unary_loc): Fold
11725         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
11726         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
11727         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
11728         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
11729         (ptr_deref_may_alias_ref_p_1): Likewise.
11730         (ao_ref_base_alias_set): Properly differentiate base object for
11731         offset and TBAA.
11732         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
11733         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
11734         (indirect_refs_may_alias_p): Likewise.
11735         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
11736         chasing code.
11737         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
11738         (call_may_clobber_ref_p_1): Likewise.
11739         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
11740         * expr.c (expand_assignment): Handle MEM_REF.
11741         (store_expr): Handle MEM_REFs from STRING_CSTs.
11742         (store_field): If expanding a MEM_REF of a non-addressable
11743         decl use bitfield operations.
11744         (get_inner_reference): Handle MEM_REF.
11745         (expand_expr_addr_expr_1): Likewise.
11746         (expand_expr_real_1): Likewise.
11747         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
11748         * alias.c (ao_ref_from_mem): Handle MEM_REF.
11749         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
11750         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
11751         (dr_analyze_indices): Likewise.
11752         (dr_analyze_alias): Likewise.
11753         (object_address_invariant_in_loop_p): Likewise.
11754         * gimplify.c (mark_addressable): Handle MEM_REF.
11755         (gimplify_cond_expr): Build MEM_REFs.
11756         (gimplify_modify_expr_to_memcpy): Likewise.
11757         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
11758         (gimple_fold_indirect_ref): Adjust.
11759         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
11760         * tree.def (MEM_REF): New tree code.
11761         * tree-dfa.c: Include toplev.h.
11762         (get_ref_base_and_extent): Handle MEM_REF.
11763         (get_addr_base_and_unit_offset): New function.
11764         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
11765         * gimple-fold.c (may_propagate_address_into_dereference): Handle
11766         MEM_REF.
11767         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
11768         accesses if the array has just one dimension.  Remove always true
11769         parameter.  Do not require type compatibility here.
11770         (maybe_fold_offset_to_component_ref): Remove.
11771         (maybe_fold_stmt_indirect): Remove.
11772         (maybe_fold_reference): Remove INDIRECT_REF handling.
11773         Fold back to non-MEM_REF.
11774         (maybe_fold_offset_to_address): Simplify.  Deal with type
11775         mismatches here.
11776         (maybe_fold_reference): Likewise.
11777         (maybe_fold_stmt_addition): Likewise.  Also handle
11778         &ARRAY + I in addition to &ARRAY[0] + I.
11779         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
11780         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
11781         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
11782         * tree-ssa.c (useless_type_conversion_p): Make most pointer
11783         conversions useless.
11784         (warn_uninitialized_var): Handle MEM_REF.
11785         (maybe_rewrite_mem_ref_base): New function.
11786         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
11787         to SSA form.
11788         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
11789         INDIRECT_REF handling.
11790         (copy_tree_body_r): Handle MEM_REF.
11791         * gimple.c (is_gimple_addressable): Adjust.
11792         (is_gimple_address): Likewise.
11793         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
11794         invariant base are invariant.
11795         (is_gimple_min_lval): Adjust.
11796         (is_gimple_mem_ref_addr): New function.
11797         (get_base_address): Handle MEM_REF.
11798         (count_ptr_derefs): Likewise.
11799         (get_base_loadstore): Likewise.
11800         * gimple.h (is_gimple_mem_ref_addr): Declare.
11801         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
11802         * tree-cfg.c (verify_address): New function, split out from ...
11803         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
11804         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
11805         INDIRECT_REFs.
11806         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
11807         INDIRECT_REF.  Allow conversions.
11808         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
11809         a register does not change its size.
11810         (verify_types_in_gimple_reference): Verify MEM_REF.
11811         (verify_gimple_assign_single): Disallow INDIRECT_REF.
11812         Handle MEM_REF.
11813         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
11814         New.
11815         (mark_address_taken): Handle MEM_REF.
11816         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
11817         (get_asm_expr_operands): Pass opf_not_non_addressable.
11818         (get_expr_operands): Handle opf_[not_]non_addressable.
11819         Handle MEM_REF.  Remove INDIRECT_REF handling.
11820         * tree-vrp.c (check_array_ref): Handle MEM_REF.
11821         (search_for_addr_array): Likewise.
11822         (check_array_bounds): Likewise.
11823         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
11824         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
11825         (ref_always_accessed_p): Likewise.
11826         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
11827         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
11828         Handle MEM_REF.
11829         * cgraphbuild.c (mark_load): Properly check for NULL result
11830         from get_base_address.
11831         (mark_store): Likewise.
11832         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
11833         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
11834         handling for MEM_REF.
11835         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
11836         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
11837         * builtins.c (stabilize_va_list_loc): Use the function ABI
11838         valist type if we couldn't canonicalize the argument type.
11839         Always dereference with the canonical va-list type.
11840         (maybe_emit_free_warning): Handle MEM_REF.
11841         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
11842         memmove to memcpy.
11843         * builtins.c (fold_builtin_memory_op): Use ref-all types
11844         for all memcpy foldings.
11845         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
11846         (build_outer_var_ref): Likewise.
11847         (scan_omp_1_op): Likewise.
11848         (lower_rec_input_clauses): Likewise.
11849         (lower_lastprivate_clauses): Likewise.
11850         (lower_reduction_clauses): Likewise.
11851         (lower_copyprivate_clauses): Likewise.
11852         (expand_omp_atomic_pipeline): Likewise.
11853         (expand_omp_atomic_mutex): Likewise.
11854         (create_task_copyfn): Likewise.
11855         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
11856         Remove old union trick.  Initialize constant offsets.
11857         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
11858         INDIRECT_REF.  Init base_alias_set properly.
11859         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
11860         (vn_reference_fold_indirect): Adjust for MEM_REFs.
11861         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
11862         for ARRAY_REFs.
11863         (may_insert): Remove.
11864         (visit_reference_op_load): Do not test may_insert.
11865         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
11866         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
11867         a field to store the constant offset this op applies.
11868         (run_scc_vn): Adjust prototype.
11869         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
11870         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
11871         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
11872         bother about volatile qualifiers on pointers.
11873         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
11874         * tree-ssa-loop-ivopts.c
11875         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
11876         (strip_offset_1): Likewise.
11877         (find_interesting_uses_address): Replace INDIRECT_REF handling with
11878         MEM_REF handling.
11879         (get_computation_cost_at): Likewise.
11880         * ipa-pure-const.c (check_op): Handle MEM_REF.
11881         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
11882         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
11883         and constants.
11884         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
11885         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
11886         (eliminate_local_variables_1): Likewise.
11887         (create_call_for_reduction_1): Likewise.
11888         (create_loads_for_reductions): Likewise.
11889         (create_loads_and_stores_for_name): Likewise.
11890         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
11891         (ssa_accessed_in_tree): Handle MEM_REF.
11892         (ssa_accessed_in_assign_rhs): Likewise.
11893         (update_type_size): Likewise.
11894         (analyze_accesses_for_call_stmt): Likewise.
11895         (analyze_accesses_for_assign_stmt): Likewise.
11896         (transform_access_sites): Likewise.
11897         (transform_allocation_sites): Likewise.
11898         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
11899         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
11900         not handle INDIRECT_REF.
11901         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
11902         (cond_store_replacement): Likewise.
11903         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
11904         MEM_REF, no not handle INDIRECT_REFs.
11905         (insert_into_preds_of_block): Properly initialize avail.
11906         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
11907         for ARRAY_REFs.  Properly handle reference lookups that
11908         require a bit re-interpretation.
11909         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
11910         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
11911         (build_ref_for_offset_1): Remove.
11912         (build_ref_for_offset): Build MEM_REFs.
11913         (gate_intra_sra): Disable for now.
11914         (sra_ipa_modify_expr): Handle MEM_REF.
11915         (ipa_early_sra_gate): Disable for now.
11916         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
11917         MEM_REF handling.
11918         (disqualify_base_of_expr): Likewise.
11919         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
11920         MEM_REF handling.
11921         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
11922         Use mem_ref_offset.  Remove bogus folding.
11923         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
11924         (make_fancy_name_1): Add support for MEM_REF.
11925         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
11926         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
11927         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
11928         (compute_complex_ancestor_jump_func): Likewise.
11929         (ipa_analyze_virtual_call_uses): Likewise.
11930         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
11931         INDIRECT_REF folding with more generalized MEM_REF folding.
11932         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
11933         (forward_propagate_addr_into_variable_array_index): Also handle
11934         &ARRAY + I in addition to &ARRAY[0] + I.
11935         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
11936         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
11937         creates assignments with overlap.
11938         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
11939         (get_frame_field): Likewise.
11940         (get_nonlocal_debug_decl): Likewise.
11941         (convert_nonlocal_reference_op): Likewise.
11942         (struct nesting_info): Add mem_refs pointer-set.
11943         (create_nesting_tree): Allocate it.
11944         (convert_local_reference_op): Insert to be folded mem-refs.
11945         (fold_mem_refs): New function.
11946         (finalize_nesting_tree_1): Perform defered folding of mem-refs
11947         (free_nesting_tree): Free the pointer-set.
11948         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
11949         (vectorizable_load): Likewise.
11950         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
11951         (propagate_with_phi): Likewise.
11952         * tree-object-size.c (addr_object_size): Handle MEM_REFs
11953         instead of INDIRECT_REFs.
11954         (compute_object_offset): Handle MEM_REF.
11955         (plus_stmt_object_size): Handle MEM_REF.
11956         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
11957         for &MEM_REF.
11958         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
11959         (symbol_marked_for_renaming): Likewise.
11960         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
11961         (fold-const.o): Add $(TREE_FLOW_H).
11962         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
11963         (find_func_clobbers): Likewise.
11964         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
11965         (decompose_access): Likewise.
11966         (replace_field_acc): Likewise.
11967         (replace_field_access_stmt): Likewise.
11968         (insert_new_var_in_stmt): Likewise.
11969         (get_stmt_accesses): Likewise.
11970         (reorg_structs_drive): Disable.
11971         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
11972         (ix86_canonical_va_list_type): Likewise.
11973
11974 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
11975
11976         PR other/44566
11977         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
11978         * target.def (struct gcc_target): Replace enum reg_class with
11979         reg_class_t in hook argument / return types.
11980         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
11981         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
11982         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
11983         * targhooks.h (default_branch_target_register_class): Likewise.
11984         (default_ira_cover_classes, default_secondary_reload): Likewise.
11985         (default_memory_move_cost, default_register_move_cost): Likewise.
11986         * targhooks.c (default_branch_target_register_class): Likewise.
11987         (default_ira_cover_classes, default_secondary_reload): Likewise.
11988         (default_memory_move_cost, default_register_move_cost): Likewise.
11989         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
11990         * bt-load.c (branch_target_load_optimize): Likewise.
11991         * ira.c (setup_cover_and_important_classes): Likewise.
11992         * ira-costs.c (copy_cost): Likewise.
11993         * reload1.c (emit_input_reload_insns): Likewise.
11994         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
11995         * config/frv/frv.c (frv_secondary_reload): Likewise.
11996         * config/s390/s390.c (s390_secondary_reload): Likewise.
11997         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
11998         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
11999         (ix86_register_move_cost): Likewise.
12000         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
12001         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
12002         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
12003         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
12004         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
12005         (rs6000_ira_cover_classes): Likewise.
12006         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
12007         * config/picochip/picochip-protos.h (picochip_secondary_reload):
12008         Likewise.
12009         * config/pa/pa.c (pa_secondary_reload): Likewise.
12010         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
12011         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
12012         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
12013         * doc/tm.texi: Regenerate.
12014
12015 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
12016
12017         PR bootstrrap/44726
12018         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
12019         use.
12020         (build_alias_set_optimal_p): Likewise.
12021         (build_base_obj_set_for_drs): Likewise.
12022
12023 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
12024
12025         * target.def: Remove comment about licensing problems of function
12026         declarations.
12027
12028         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
12029         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
12030         * doc/tm.texi: Regenerate.
12031
12032         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
12033         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
12034
12035         * target.def (enum_va_list_p): Use DEFHOOK.
12036         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
12037         Rename ptype to ptree.
12038         * doc/tm.texi: Regenerate.
12039
12040         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
12041         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
12042         * doc/tm.texi: Regenerate.
12043
12044         * target.def (memory_move_cost): Use DEFHOOK.
12045         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
12046         Rename regclass AKA class to rclass.
12047         * doc/tm.texi: Regenerate.
12048
12049         * target.def (pragma_parse): Use DEFHOOK.
12050         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
12051         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
12052         * doc/tm.texi: Regenerate.
12053
12054         * target.def (pass_by_reference): Use DEFHOOK.
12055         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
12056         * doc/tm.texi: Regenerate.
12057
12058         * target.def (resolve_overloaded_builtin): Rename params to arglist.
12059         Use DEFHOOK.
12060         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
12061         * doc/tm.texi: Regenerate.
12062
12063         * target.def (return_pops_args): Use DEFHOOK.
12064         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
12065         Rename stack-size to size.
12066         * doc/tm.texi: Regenerate.
12067
12068         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
12069         last-sched_cycle to last_clock, cur_cycle to clock.
12070         * doc/tm.texi.in: Use @hook.
12071         * doc/tm.texi: Regenerate.
12072
12073         * target.def (print_operand, print_operand_address): Update comment.
12074         (print_operand_punct_valid_p): Likewise.
12075
12076 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12077
12078         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
12079         to rtl.h.
12080         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
12081         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
12082         * rtl-error.h: New.
12083         * regrename.c: Do not include toplev.h. Include rtl-error.h.
12084         * rtl-error.c: Likewise.
12085         * reload.c: Likewise.
12086         * recog.c:  Likewise.
12087         * sel-sched.c: Likewise.
12088         * function.c: Likewise.
12089         * reg-stack.c: Likewise.
12090         * cfgrtl.c: Likewise.
12091         * reload1.c: Likewise.
12092         * final.c: Include rtl-error.
12093         * Makefile.in: Adjust dependencies.
12094
12095 2010-06-30  Jan Hubicka  <jh@suse.cz>
12096
12097         PR middle-end/PR44706
12098         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
12099         to return the value.
12100
12101 2010-06-30  Michael Matz  <matz@suse.de>
12102
12103         PR bootstrap/44699
12104         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
12105         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
12106         a gimple reg, attach the original VDEF to the last store in the
12107         sequence.
12108
12109 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
12110
12111         PR other/44034
12112         * config/darwin.c (darwin_override_options): Use renamed
12113         targetm.asm_out.emit_unwind_label.
12114
12115 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
12116
12117         PR tree-optimization/39799
12118         * tree-inline.c (remap_ssa_name): Initialize variable only if
12119         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
12120
12121 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
12122
12123         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
12124
12125 2010-06-30  Richard Guenther  <rguenther@suse.de>
12126
12127         PR target/44722
12128         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
12129         against oscillation with reverse peephole2.
12130
12131 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
12132
12133         PR target/44721
12134         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12135         Fix last commit.
12136
12137 2010-06-30  Nick Clifton  <nickc@redhat.com>
12138
12139         * config/rx/rx-modes.def: New file.
12140         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
12141         (CC_REGNUM): Define.
12142         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
12143         register.
12144         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
12145         (SELECT_CC_MODE): Define.
12146         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
12147         (reg:CC CC_REG) instead of (cc0).
12148         (attr "cc"): Delete.
12149         (cbranchsi4): Do not split compare and branch here. Instead move
12150         it to...
12151         (cbranchsi4_<code>): ... here.  New patterns.
12152         (cmpsi): Call rx-compare_redundant to find out if it is necessary
12153         to emit the compare instruction.
12154         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
12155         cc_status flags.
12156         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
12157         FIRST_PSEUDO_REGNUM.
12158         (rx_expand_prologue, rx_expand_epilogue): Likewise.
12159         (rx_notice_update_cc): Delete.
12160         (rx_cc_modes_compatible): New function.
12161         (flags_needed_for_conditional): New function.
12162         (flags_from_mode): New function.
12163         (rx_compare_redundant): New function - scans backwards through
12164         insn list to find out if condition flags are already set correctly.
12165         (TARGET_CC_MODES_COMPATIBLE): Define.
12166         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
12167
12168         * config/rx/rx.h (BRANCH_COST): Define.
12169         (REGISTER_MOVE_COST): Define.
12170         * config/rx/predicates (rx_source_operand): Allow all constant types.
12171         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
12172         (tstsi4): New pattern.
12173         * config/rx/rx.c (rx_memory_move_cost): Define.
12174         (TARGET_MEMORY_MOVE_COST): Define.
12175
12176 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12177
12178         * tree.h (block_may_fallthru): Declare here.
12179         * tree-flow.h (block_may_fallthru): Do not declare here.
12180         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
12181         bitmap.h
12182         * Makefile.in (c-typeck.o): Update dependencies.
12183
12184 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
12185
12186         PR debug/44694
12187         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
12188         * cselib.c (cfa_base_preserved_regno): New static variable.
12189         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
12190         of REGNO (cfa_base_preserved_val->locs->loc).
12191         (cselib_preserve_cfa_base_value): Add regno argument, set
12192         cfa_base_preserved_regno to it.
12193         (cselib_invalidate_regno): Allow removal of registers other than
12194         cfa_base_preserved_regno from cfa_base_preserved_val.
12195         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
12196         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
12197         of MEM addresses, if not on LHS.
12198         (reverse_op): Don't add reverse ops for cfa_base_rtx.
12199         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
12200
12201 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
12202
12203         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
12204         static variables.
12205         (peep2_buf_position): New static function.
12206         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
12207         peephole2_optimize): Use it.
12208         (peep2_attempt, peep2_update_life): New static functions, broken out
12209         of peephole2_optimize.
12210         (peep2_fill_buffer): New static function.
12211         (peephole2_optimize): Change the main loop to try to fill the buffer
12212         with the maximum number of insns before matching them against
12213         peepholes.  Use a forward scan.  Remove special case for targets with
12214         conditional execution.
12215         * genrecog.c (change_state): Delete dead code.
12216         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12217         Rewrite so as not to expect the second insn to have had a peephole
12218         applied yet.
12219
12220 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12221
12222         * genhooks.c (emit_findices): Cast field precision to int.
12223         (emit_documentation): Likewise.
12224
12225 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
12226
12227         PR tree-optimization/43801
12228         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
12229         if old_decl was DECL_ONE_ONLY.
12230
12231         PR debug/44668
12232         * dwarf2out.c (add_accessibility_attribute): New function.
12233         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
12234         instead of adding DW_AT_accessibility manually.
12235         (gen_enumeration_type_die, gen_struct_or_union_type_die,
12236         gen_typedef_die): Use it.
12237
12238 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12239
12240         * vmsdbgout.c (full_name): Just output the file name if not native.
12241
12242 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12243
12244         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
12245         (funcnam_table): New static table.
12246         (funcnum_table): New static table.
12247         (write_rtnbeg): Write value saved in funcnum_table.
12248         (write_rtnend): Write value saved in funcnum_table.
12249         (vmsdbgout_begin_function): Save current function info in
12250         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
12251         (vmsdbgout_finish): Iterate over funcnum_table.
12252
12253 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12254
12255         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
12256         (vmsdbgout_type_decl): Declare
12257         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
12258         (FUNC_EPILOGUE_LABEL): New macro
12259         (vmsdbgout_begin_epilogue): New function.
12260         (vmsdbgout_type_decl): New function.
12261
12262 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12263
12264         * vmsdbg.h: Update copyright.
12265
12266 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12267
12268         * vmsdbg.h (DST_K_TBG): New DST constant.
12269         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
12270         (write_modbeg): Cast module_language to avoid warning.
12271         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
12272
12273 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
12274
12275         PR other/44034
12276         * target.def, doc/tm.texi.in, genhooks.c: New files.
12277         * target.h: Instead of defining individual hook members,
12278         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
12279         include target.def.
12280         * target-def.h: Instead of defining individual hook initializers,
12281         include target-hooks-def.h.
12282         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
12283         targetm.live_on_entry -> targetm.extra_live_on_entry
12284         targetm.sched.md_finish ->targetm.sched.finish
12285         targetm.sched.md_init -> targetm.sched.init
12286         targetm.sched.md_init_global -> targetm.sched.init_global
12287         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
12288         targetm.asm_out.except_table_label ->
12289           targetm.asm_out.emit_except_table_label
12290         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
12291         targetm.target_help -> targetm.help
12292         targetm.vectorize.builtin_support_vector_misalignment ->
12293           targetm.vectorize.support_vector_misalignment
12294         targetm.file_start_app_off -> targetm.asm_file_start_app_off
12295         targetm.file_start_file_directive ->
12296          targetm.asm_file_start_file_directive
12297         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
12298         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
12299         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
12300         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
12301           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
12302         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
12303           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
12304         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
12305         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
12306         * Makefile.in (TARGET_H): Depend on target.def.
12307         (TARGET_DEF_H): Depend on target-hooks-def.h.
12308         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
12309         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
12310         * doc/tm.texi: Regenerate.
12311
12312         * Makefile.in (s-tm-texi): Remove stray tab / rule.
12313
12314         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
12315         (targetm.sched.init): Likewise.
12316
12317 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12318
12319         PR bootstrap/44713
12320         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
12321         (function_arg_advance_32): Const-ify TYPE parameter.
12322         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
12323         (ix86_function_arg_advance): Change type of NAMED to bool.
12324         (function_arg_32): Const-ify CUM and TYPE parameters.
12325         (function_arg_64): Likewise.  Change type of NAMED to bool.
12326         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
12327         to bool.
12328         (ix86_function_arg): Change type of NAMED to bool.
12329         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
12330         last argument as a bool.
12331
12332 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
12333
12334         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
12335         (OVERRIDE_OPTIONS): Add note of obsolescence.
12336         Replace references with references to TARGET_OPTION_OVERRIDE.
12337         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
12338          the macro).
12339         * targhooks.c (default_target_option_override): New function.
12340         * targhooks.h (default_target_option_override): Declare.
12341         * target.h (struct gcc_target): Add override member to
12342         target_option member.
12343         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
12344         targetm.target_option.override call.
12345         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
12346         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
12347
12348 2010-06-29  Jan Hubicka  <jh@suse.cz>
12349
12350         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
12351
12352 2010-06-29  Jan Hubicka  <jh@suse.cz>
12353
12354         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
12355         unreachable.
12356         (rebuild_frequencies): New function.
12357         * predict.h (rebuild_frequencies): Declare.
12358         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
12359         entry block and edge reaching new_entry.
12360         (tree_function_versioning): When doing partial cloning, rebuild
12361         frequencies when done.
12362         * passes.c (execute_function_todo): Use rebild_frequencies.
12363
12364 2010-06-29  Richard Guenther  <rguenther@suse.de>
12365
12366         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
12367         * tree-flow.h (enum noalias_state): Remove.
12368         (struct var_ann_d): Remove noalias_state member.
12369
12370 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
12371
12372         PR target/43902
12373         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
12374         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
12375         (maddhidi4): Likewise.
12376
12377         Revert parts of the change for PR25130.
12378         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12379         MEM_ALIAS_SET.
12380
12381 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12382
12383         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
12384         targetm.calls.function_incoming_arg, and
12385         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
12386         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
12387         * target.h (struct gcc_target): Add function_arg_advance,
12388         function_arg, and function_incoming_arg fields.
12389         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
12390         (TARGET_FUNCTION_INCOMING_ARG): Define.
12391         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
12392         and TARGET_FUNCTION_INCOMING_ARG.
12393         * targhooks.h (default_function_arg_advance): Declare.
12394         (default_function_arg, default_function_incoming_arg): Declare.
12395         * targhooks.c (default_function_arg_advance): New function.
12396         (default_function_arg, default_function_incoming_arg): New function.
12397         * config/i386/i386.c (function_arg_advance): Rename to...
12398         (ix86_function_arg_advance): ...this.  Make static.
12399         (function_arg): Rename to...
12400         (ix86_function_arg): ...this.  Make static.
12401         (TARGET_FUNCTION_ARG_ADVANCE): Define.
12402         (TARGET_FUNCTION_ARG): Define.
12403         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
12404         (FUNCTION_ARG): Delete.
12405         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
12406         (function_arg): Delete prototype.
12407
12408 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12409
12410         * reginfo.c (init_reg_sets_1): Adjust comments.
12411         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
12412         * calls.c (prepare_call_address): Likewise.
12413         (emit_call_1): Use targetm.calls.return_pops_args.
12414         (expand_call): Likewise.
12415         * function.c (assign_parms): Likewise.
12416         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
12417         * target.h (struct gcc_target) [struct calls]: Add
12418         return_pops_args field.
12419         * targhooks.h (default_return_pops_args): Declare.
12420         * targhooks.c (default_return_pops_args): Define.
12421         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
12422         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
12423         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
12424         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
12425         documentation.
12426         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
12427         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
12428         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
12429         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
12430         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
12431         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
12432         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
12433         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
12434         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
12435         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
12436         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
12437         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
12438         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
12439         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
12440         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
12441         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
12442         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
12443         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
12444         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
12445         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
12446         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
12447         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
12448         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
12449         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
12450         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
12451         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
12452         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
12453         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
12454         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
12455         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
12456         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
12457         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
12458         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
12459         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
12460         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
12461         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
12462         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
12463         * config/i386/i386.c (ix86_return_pops_args): Make static.
12464         Constify arguments.
12465         (TARGET_RETURN_POPS_ARGS): Define.
12466         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
12467         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
12468         (TARGET_RETURN_POPS_ARGS): Define.
12469         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
12470         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
12471         (TARGET_RETURN_POPS_ARGS): Define.
12472
12473 2010-06-29  Richard Guenther  <rguenther@suse.de>
12474
12475         PR middle-end/44667
12476         * tree-inline.c (initialize_inlined_parameters): Make sure
12477         to remap the inlined parameter variable substitutions types.
12478
12479 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
12480
12481         PR rtl-optimization/44659
12482         * combine.c (make_compound_operation) <SUBREG>: Do not return the
12483         result of force_to_mode if it partially re-expanded the compound.
12484
12485 2010-06-28  Jan Hubicka  <jh@suse.cz>
12486
12487         PR middle-end/44671
12488         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
12489         RESULT_DECL.
12490
12491 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
12492
12493         * double-int.h (force_fit_type_double): Remove declaration.
12494         * double-int.c (force_fit_type_double): Move to tree.c.
12495         * tree.h (force_fit_type_double): Declare.
12496         * tree.h (force_fit_type_double): Moved from double-int.c. Use
12497         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
12498         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
12499         * convert.c (convert_to_pointer): Adjust call to
12500         force_fit_type_double.
12501         * tree-vrp.c (extract_range_from_assert,
12502         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
12503         * fold-const.c: Update comment.
12504         (int_const_binop, fold_convert_const_int_from_int,
12505         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
12506         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
12507         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
12508         round_up_loc): Adjust call to force_fit_type_double.
12509
12510 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12511
12512         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
12513
12514 2010-06-28  Martin Jambor  <mjambor@suse.cz>
12515
12516         * tree-sra.c (convert_callers): New parameter, change fndecls of
12517         recursive calls.
12518         (modify_function): Pass the old decl to convert_callers.
12519
12520 2010-06-28  Martin Jambor  <mjambor@suse.cz>
12521
12522         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
12523         ipa_check_create_node_params and ipa_initialize_node_params with
12524         checking asserts they are not necessary.
12525
12526 2010-06-28  Jan Hubicka  <jh@suse.cz>
12527
12528         PR tree-optimization/44687
12529         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
12530
12531 2010-06-28  Martin Jambor  <mjambor@suse.cz>
12532
12533         PR c++/44535
12534         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
12535         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
12536         instead of BINFO_BASE_BINFO.
12537
12538 2010-06-28  Michael Matz  <matz@suse.de>
12539
12540         PR middle-end/44592
12541         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
12542         proper VDEF chain for intermediate stores in the sequence.
12543
12544 2010-06-28  Jan Hubicka  <jh@suse.cz>
12545
12546         PR tree-optimization/44357
12547         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
12548         uninlinable functions.
12549
12550 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12551
12552         * config.gcc (powerpc*-*-*): Handle titan.
12553         * config/rs6000/rs6000.c (titan_cost): New costs.
12554         (rs6000_override_options): Add "titan" to processor_target_table.
12555         Add Titan to branch alignment logic.
12556         Correctly set rs6000_cost for titan.
12557         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
12558         * config/rs6000/titan.md: New file.
12559         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
12560
12561 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
12562
12563         * tree-browser.c (TB_history_stack): Convert to a VEC.
12564         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
12565         (TB_history_prev): Likewise.
12566
12567 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
12568
12569         * vec.h (vec_heap_free): Add parentheses around free.
12570
12571 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
12572
12573         * system.h: Poison GCC_EXCEPT_H for front-end files.
12574
12575         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
12576         langhook.
12577         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
12578         Define to NULL by default.
12579         * except.h: Define GCC_EXCEPT_H.
12580         (doing_eh): Remove prototype.
12581         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
12582         (lang_protect_cleanup_actions): Remove.
12583         * except.c (lang_protect_cleanup_actions): Remove.
12584         (doing_eh): Remove.
12585         (gen_eh_region): Don't check doing_eh here.
12586         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
12587         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
12588         instead of lang_protect_cleanup_actions.
12589         * omp-low.c (maybe_catch_exception): Likewise.
12590         * Makefile.in: Update dependencies.
12591
12592 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
12593
12594         * cgraph.h (struct varpool_node): new used_from_object_file flag.
12595         (struct cgraph_local_info): new used_from_object_file flag.
12596         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
12597         (cgraph_clone_node): initialize used_from_object_file.
12598         (cgraph_create_virtual_clone): initialize used_from_object_file.
12599         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
12600         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
12601         when compiling with -fwhole-program.
12602         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
12603         internal resolver.
12604         * ipa.c (function_and_variable_visibility): Set externally_visible
12605         flag of varpool_node if used_from_object_file flag is set.
12606         (cgraph_externally_visible_p): check used_from_object_file flag.
12607         * doc/invoke.texi (-fwhole-program option): Change description of
12608         externally_visible attribute accordingly.
12609         * doc/extend.texi (externally_visible): Ditto.
12610
12611 2010-06-27  Jan Hubicka  <jh@suse.cz>
12612
12613         * params.def (max-inline-insns-auto): Default to 40.
12614         * doc/invoke.texi (max-inline-insns-auto): Document the change.
12615
12616 2010-06-27  Jan Hubicka  <jh@suse.cz>
12617
12618         PR middle-end/44671
12619         PR middle-end/44686
12620         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
12621         signature change.
12622         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
12623         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
12624
12625 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
12626
12627         * target.h (struct gcc_target): Add register_move_cost field.
12628         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
12629         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
12630         * targhooks.c (default_register_move_cost): New function.
12631         * targhooks.h (default_register_move_cost): Declare function.
12632         * defaults.h (REGISTER_MOVE_COST): Delete.
12633         * ira-int.h (ira_register_move_cost): Update comment.
12634         * ira.c (ira_register_move_cost): Update comment.
12635         * reload.h (register_move_cost): Declare.
12636         * reginfo.c (register_move_cost): New function.
12637         (move_cost): Update comment.
12638         (init_move_cost, memory_move_secondary_cost): Replace
12639         REGISTER_MOVE_COST with register_move_cost.
12640         * postreload.c (reload_cse_simplify_set): (Ditto.).
12641         * reload.c (find_valid_class, find_reloads): (Ditto.).
12642         * reload1.c (choose_reload_regs): (Ditto.).
12643         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
12644         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
12645         * doc/md.texi (can_create_pseudo_p): Update documentation.
12646
12647         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
12648         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
12649         * config/i386/i386.h (ix86_memory_move_cost): Make static.
12650         (TARGET_MEMORY_MOVE_COST): Define.
12651
12652         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
12653         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
12654         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
12655         (TARGET_MEMORY_MOVE_COST): Define.
12656
12657 2010-06-27  Richard Guenther  <rguenther@suse.de>
12658
12659         PR tree-optimization/44683
12660         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
12661         false edge from the inverted condition.
12662
12663 2010-06-27  Richard Guenther  <rguenther@suse.de>
12664
12665         PR middle-end/44684
12666         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
12667         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
12668         for register LHS.  Or non-store assignments.
12669
12670 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
12671
12672         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
12673         (sparc_emit_set_const64): Likewise.  Remove disabled code.
12674         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
12675         (sparc_emit_set_const64): Likewise.
12676
12677 2010-06-26  Catherine Moore  <clm@codesourcery.com>
12678
12679         * config/mips/mips.md (alu_type): New attribute.
12680         (type): Infer type from alu_type.
12681         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
12682         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
12683         *subsi3_extended, negsi2, negdi2, *low<mode>,
12684         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
12685         xor<mode>3, *nor<mode>3,
12686         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
12687         *zero_extendhi_truncqi):  Set alu_type instead of type.
12688
12689 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
12690
12691         * config/alpha/alpha.c (alpha_need_linkage): Adjust
12692         splay_tree_new_ggc call.
12693         (alpha_use_linkage): Likewise.
12694
12695 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
12696
12697         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
12698         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
12699         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
12700         (static_specs): Remove switches_need_spaces.
12701         (process_command, do_self_spec): Hardcode handling "-o" instead of
12702         checking switches_need_spaces.
12703         * system.h (SWITCHES_NEED_SPACES): Poison.
12704
12705 2010-06-26  Richard Guenther  <rguenther@suse.de>
12706
12707         PR tree-optimization/44393
12708         * tree-loop-distribution.c (generate_loops_for_partition): Fix
12709         stmt removal and VOP renaming.
12710         (generate_memset_zero): Remove redundant stmt updating.
12711         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
12712         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
12713
12714 2010-06-26  Jan Hubicka  <jh@suse.cz>
12715
12716         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
12717         edges comming from header are equivalent.
12718         (visit_bb): Handle PHIs correctly.
12719         * tree-inline.c (copy_phis_for_bb): Be able to copy
12720         PHI from entry edge.
12721         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
12722
12723 2010-06-26  Richard Guenther  <rguenther@suse.de>
12724
12725         PR middle-end/44674
12726         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
12727         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
12728
12729 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
12730
12731         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
12732         add_infile, alloc_switch): New.
12733         (process_command): Remove variable lang_n_infiles.  Process
12734         options in a single pass.  Use new functions for allocating
12735         infiles and switches arrays.  Properly skip operands of
12736         -Xpreprocessor and -Xassembler.
12737
12738 2010-06-26  Jan Hubicka  <jh@suse.cz>
12739
12740         PR middle-end/44671
12741         * cgraphunit.c (cgraph_function_versioning): Remove wrong
12742         cgraph_make_decl_local call; fix typo copying RTL data.
12743
12744 2010-06-25  DJ Delorie  <dj@redhat.com>
12745
12746         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
12747         (m32c_output_aligned_common): Likewise.
12748         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
12749         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
12750         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
12751         (m32c_register_pragmas): Register it.
12752         * config/m32c/m32c.c (m32c_get_pragma_address): New.
12753         (m32c_insert_attributes): Set #pragma address decls volatile.
12754         (pragma_entry_eq): New.
12755         (pragma_entry_hash): New.
12756         (m32c_note_pragma_address): New.
12757         (m32c_get_pragma_address): New.
12758         (m32c_output_aligned_common): New.
12759         * doc/extend.texi: Document the new pragma.
12760
12761         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
12762         also.
12763         * config/m32c/predicates.md (m32c_any_operand): Check the code
12764         instead of memory_operand so as to allow matching volatile MEMs.
12765         (m32c_nonimmediate_operand): Likewise.
12766         (mra_operand): Allow volatiles.
12767
12768 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
12769
12770         PR debug/44610
12771         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
12772         address if the offset is unknown.
12773
12774 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
12775
12776         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
12777         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
12778         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
12779         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
12780         to ia64_start_function. Invoke it.
12781         * config/ia64/ia64.c (ia64_start_function): Call new function
12782         dwarf2out_vms_debug_main_pointer.
12783
12784 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
12785
12786         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
12787         statements computing the true predicate.
12788
12789 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
12790
12791         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
12792         to boolean_true_node.
12793         (reset_bb_predicate): New.
12794         (predicate_bbs): Call reset_bb_predicate.
12795
12796 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
12797
12798         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
12799         (tree_if_conversion): Returns true when something has been changed.
12800         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
12801         changed something.
12802
12803 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
12804
12805         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
12806         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
12807         * tree-if-conv.c: Include dbgcnt.h.
12808         (tree_if_conversion): Use if_conversion_tree to count the number of
12809         if-convertible loops.
12810
12811 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
12812
12813         * common.opt (fprefetch-loop-arrays): Re-define
12814         -fprefetch-loop-arrays as a tri-state option with the initial
12815         value of -1.
12816         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
12817         pass only when flag_prefetch_loop_arrays > 0.
12818         * toplev.c (process_options): Note that, with tri-states,
12819         flag_prefetch_loop_arrays>0 means prefetching is enabled.
12820         * config/i386/i386.c (override_options): Enable prefetching at -O3
12821         for a set of CPUs that sw prefetching is helpful.
12822         (software_prefetching_beneficial_p): New.  Return TRUE if software
12823         prefetching is beneficial for the given CPU.
12824
12825 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
12826
12827         PR rtl-optimization/44326
12828         * implicit-zee.c (find_removable_zero_extends): Replace
12829         INSN_P with NONDEBUG_INSN_P.
12830
12831 2010-06-25  Martin Jambor  <mjambor@suse.cz>
12832
12833         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
12834         (struct ipa_node_params): Removed the modification_analysis_done flag.
12835         (ipa_is_param_modified): Removed.
12836         (ipa_analyze_node): Declare.
12837         (ipa_compute_jump_functions): Remove declaration.
12838         (ipa_count_arguments): Likewise.
12839         (ipa_detect_param_modifications): Likewise.
12840         (ipa_analyze_params_uses): Likewise.
12841         * ipa-prop.c (struct param_analysis_info): New type.
12842         (visit_store_addr_for_mod_analysis): Removed.
12843         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
12844         moved down in the file.
12845         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
12846         (ipa_count_arguments): Made static.
12847         (mark_modified): New function.
12848         (is_parm_modified_before_call): New function.
12849         (compute_pass_through_member_ptrs): New parameter parms_info, call
12850         is_parm_modified_before_call instead of ipa_is_param_modified.
12851         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
12852         it to compute_pass_through_member_ptrs.
12853         (ipa_compute_jump_functions): New parameter parms_info, pass it to
12854         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
12855         on the callee if it is analyzed.  Made static.
12856         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
12857         is_parm_modified_before_call instead of ipa_is_param_modified.
12858         (ipa_analyze_call_uses): New parameter parms_info, pass it to
12859         ipa_analyze_indirect_call_uses.
12860         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
12861         ipa_analyze_call_uses.
12862         (ipa_analyze_params_uses): New parameter parms_info, pass it to
12863         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
12864         (ipa_analyze_node): New function.
12865         (ipa_print_node_params): Do not dump the modified flag.
12866         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
12867         it.  Do not stream the modified parameter flag.
12868         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
12869         it.  Do not stream the modified parameter flag.
12870         * ipa-cp.c (ipcp_analyze_node): Removed.
12871         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
12872         with only a call to ipa_analyze_node.
12873         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
12874         node with only a call to ipa_analyze_node.
12875
12876 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12877
12878         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
12879
12880 2010-06-25  Jan Hubicka  <jh@suse.cz>
12881
12882         * tree-pass.h (pass_split_functions): Declare.
12883         * opts.c (decode_options): Enable function splitting at -O2
12884         * timevar.def (TV_IPA_FNSPLIT): New macro.
12885         * ipa-split.c: New file.
12886         * common.opt (-fpartial-inlining): New flag.
12887         * Makefile.in (ipa-split.o): New object file.
12888         * passes.c (init_optimization_passes): Add ipa-split.
12889         * params.def (partial-inlining-entry-probability): New parameters.
12890         * doc/invoke.texi (-fpartial-inlining): New.
12891
12892 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12893
12894         PR 44665
12895         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
12896         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
12897         (gimplify_expr): Likewise.
12898
12899 2010-06-25  Martin Jambor  <mjambor@suse.cz>
12900
12901         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
12902         statements instead of bailing out on them.
12903         (ipa_analyze_indirect_call_uses): Do not require that loads from the
12904         parameter are in the same BB as the condition.  Update comments.
12905
12906 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
12907
12908         PR middle-end/43866
12909         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
12910         true or always false, return NULL_TREE.
12911         (tree_unswitch_single_loop): Optimize conditions even when reaching
12912         max-unswitch-level parameter.  If num > 0, optimize first all conditions
12913         using entry checks, then do still reachable block discovery and consider
12914         only conditions in still reachable basic blocks in the loop.
12915
12916         PR tree-optimization/44539
12917         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
12918         the call doesn't have LHS, but has VDEF.
12919
12920 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
12921
12922         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
12923         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
12924         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
12925         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
12926         * system.h (MODIFY_TARGET_NAME): Poison.
12927
12928 2010-06-25  Alan Modra  <amodra@gmail.com>
12929
12930         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
12931         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
12932         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
12933         CMODEL_LARGE as default.
12934         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
12935         (offsettable_ok_by_alignment): Delete.
12936         (rs6000_emit_move): Remove mcmodel=medium optimization.
12937
12938 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
12939
12940         With large parts from Jim Wilson:
12941         PR target/43902
12942         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
12943         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
12944         * optabs.c (optab_for_tree_code): Likewise.
12945         (expand_widen_pattern_expr): Likewise.
12946         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
12947         out of execute_optimize_widening_mul.
12948         (convert_plusminus_to_widen): New function.
12949         (execute_optimize_widening_mul): Use the two new functions.
12950         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
12951         Remove code to generate widening multiply-accumulate.  Add support
12952         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
12953         * gimple-pretty-print.c (dump_ternary_rhs): New function.
12954         (dump_gimple_assign): Call it when appropriate.
12955         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
12956         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
12957         (expand_gimple_stmt_1): Likewise.
12958         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
12959         WIDEN_MULT_MINUS_EXPR.
12960         * tree-ssa-operands.c (get_expr_operands): Likewise.
12961         * tree-inline.c (estimate_operator_cost): Likewise.
12962         * gimple.c (extract_ops_from_tree_1): Renamed from
12963         extract_ops_from_tree.  Add new arg for a third operand; fill it.
12964         (gimple_build_assign_stat): Support operations with three operands.
12965         (gimple_build_assign_with_ops_stat): Likewise.
12966         (gimple_assign_set_rhs_from_tree): Likewise.
12967         (gimple_assign_set_rhs_with_ops_1): Renamed from
12968         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
12969         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
12970         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
12971         WIDEN_MULT_MINUS_EXPR.
12972         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
12973         (extract_ops_from_tree_1): Adjust declaration.
12974         (gimple_assign_set_rhs_with_ops_1): Likewise.
12975         (gimple_build_assign_with_ops): Pass NULL for last operand.
12976         (gimple_build_assign_with_ops3): New macro.
12977         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
12978         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
12979         functions.
12980         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
12981         (verify_gimple_assign): Call it.
12982         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
12983         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
12984         functions for dealing with three-operand statements.
12985         * tree.c (commutative_ternary_tree_code): New function.
12986         * tree.h (commutative_ternary_tree_code): Declare it.
12987         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
12988         ternary statements.
12989         (gimple_assign_nonzero_warnv_p): Likewise.
12990         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
12991         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
12992         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
12993         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
12994         (struct hashtable_expr): New member ternary in the union.
12995         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
12996         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
12997         (iterative_hash_hashable_expr): Likewise.
12998         (print_expr_hash_elt): Handle EXPR_TERNARY.
12999         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
13000         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
13001         statements.  Handle GIMPLE_TERNARY_RHS.
13002
13003 2010-06-25  Jan Hubicka  <jh@suse.cz>
13004
13005         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
13006
13007 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
13008
13009         PR c/44517
13010         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
13011         parameters are not good.
13012         (c_parser_parameter_declaration): Error unknown type name if the type
13013         name can't start declaration specifiers.
13014
13015 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
13016
13017         * gcc.c (translate_options): Don't mention +e in comment.
13018         (process_command): Don't handle +e specially.
13019
13020 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
13021
13022         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
13023
13024         * ira-build.c (merge_hard_reg_conflicts): New function.
13025         (create_cap_allocno, copy_info_to_removed_store_destinations,
13026         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
13027         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
13028         (remove_unnecessary_allocnos, remove_low_level_allocnos)
13029         copy_nifo_to_removed_store_destination): Use them.
13030         * ira-lives.c (make_hard_regno_born): New function, split out of
13031         make_regno_born.
13032         (make_allocno_born): Likewise.
13033         (make_hard_regno_dead): New function, split out of make_regno_dead.
13034         (make_allocno_dead): Likewise.
13035         (inc_register_pressure): New function, split out of set_allocno_live.
13036         (dec_register_pressure): New function, split out of clear_allocno_live.
13037         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
13038         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
13039         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
13040         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
13041         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
13042         mark_pseudo_regno_live.
13043         (process_bb_node_lives): Use mark_pseudo_regno_live,
13044         make_hard_regno_born and make_allocno_dead.
13045         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
13046         set_allocno_live, clear_allocno_live): Delete functions.
13047
13048         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
13049         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
13050         functions.
13051         (ira_flattening): Use ira_parent_allocno.
13052         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
13053         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
13054
13055         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
13056         statement.
13057
13058         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
13059         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
13060         minmax_set_iter_cond, minmax_set_iter_next,
13061         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
13062         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
13063         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
13064         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
13065         uses changed.
13066
13067         * ira-int.h (struct live_range, live_range_t): Renamed from struct
13068         ira_allocno_live_range and allocno_live_range_t; all uses changed.
13069         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
13070         All uses changed.
13071
13072 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
13073
13074         * thumb2.md (thumb2_tlobits_cbranch): Delete.
13075         (peephole2 to convert zero_extract/compare of single bit to
13076          lshift/compare): New.
13077
13078 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
13079
13080         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
13081         recursive call and call to 'int_const_binop'.
13082         (build_range_check, fold_cond_expr_with_comparison, unextend,
13083         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
13084         multiple_of_p): Adjust call to const_binop.
13085
13086 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
13087
13088         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
13089         determine size of XFmode operand.
13090         (XFmode extended DFmode push splitter): Ditto.
13091         (XFmode extended SFmode push splitter): Ditto.
13092
13093 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
13094
13095         PR target/44588
13096         * config/i386/i386.md (extract_code): New.
13097         (<u>divmodqi4): Likewise.
13098         (divmodhiqi3): Likewise.
13099         (udivmodhiqi3): Likewise.
13100         (<u>divqi3): Remvoved.
13101
13102 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
13103
13104         PR middle-end/44492
13105         * recog.h (struct recog_data): Add is_asm field.
13106         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
13107         present in constraints of inline-asm operand and memory operand
13108         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
13109         (extract_insn): Initialize recog_data.is_asm.
13110         * doc/md.texi (Constraints): Document operand side-effect rules.
13111
13112 2010-06-24  Andi Kleen  <ak@linux.intel.com>
13113
13114         * c-parser.c (c_parser_conditional_expression): Call
13115         warn_for_omitted_condop.
13116         * doc/invoke.texi: Document omitted condop warning.
13117
13118 2010-06-24  Nick Clifton<nickc@redhat.com>
13119
13120         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
13121         insn in the sequence is a jump insn before setting its label.
13122
13123 2010-06-24  Alan Modra  <amodra@gmail.com>
13124
13125         * collect2.c (main): Match exactly --version and --help.
13126
13127 2010-06-24  DJ Delorie  <dj@redhat.com>
13128
13129         * config/m32c/m32c-pragma.c: Don't include rtl.h.
13130
13131 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
13132
13133         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
13134         using X87MODEF mode iterator.
13135         (pushsf splitter): Macroize splitter using P mode iterator.
13136         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
13137         mode iterator.
13138
13139         (*movxf_internal): Rename from *movxf_integer.
13140         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
13141         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
13142         (*movdf_internal): Rename from *movdf_integer.
13143         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
13144         (*movsf_internal): Rename from *movdf_1.
13145
13146 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
13147
13148         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
13149         (const_gimple_seq_node): Removed typedefs.
13150
13151         * gimple.h (gimple_seq_node_d, gimple_seq_node)
13152         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
13153
13154 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
13155
13156         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
13157         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
13158         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
13159         and CODE_FOR_vec_extract_lo_v4df.
13160
13161         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
13162         Changed to define_insn_and_split.
13163         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
13164         (vec_extract_lo_v16hi): Likewise.
13165         (vec_extract_lo_v32qi): Likewise.
13166         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
13167         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
13168
13169 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
13170
13171         PR target/44640
13172         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
13173         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
13174         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
13175         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
13176         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
13177
13178         PR target/44640
13179         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
13180
13181         PR other/44644
13182         * df-core.c (struct df): Rename to df_d.
13183         * df.h (struct df): Likewise.
13184         * dse.h (struct df): Remove forward declaration.
13185         * recog.h (struct insn_data): Rename to:
13186         (struct_insn_data_d).  Adjusted all users.
13187
13188 2010-06-23  Arnaud Charlet  <charlet@adacore.com
13189
13190         PR ada/22220
13191         * doc/install.texi: Update requirements to build GNAT.
13192
13193 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
13194
13195         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
13196         enum type.
13197         (m68k_sched_attr_opx_type): Remove unreachable return.
13198         (m68k_sched_attr_opy_type): Likewise.
13199         (m68k_sched_attr_size): Likewise.
13200         (sched_get_opxy_mem_type): Likewise.
13201         (m68k_sched_attr_op_mem): Likewise.
13202
13203 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
13204
13205         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
13206         new statement and adjust VDEF only if necessary.  Remove superfluous
13207         call to maybe_clean_or_replace_eh_stmt.
13208         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
13209         copy the flags.
13210         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
13211         * tree-inline.c (copy_bb): ...and not there.
13212
13213 2010-06-22  Cary Coutant  <ccoutant@google.com>
13214
13215         * dwarf2out.c (is_nested_in_subprogram): New function.
13216         (should_move_die_to_comdat): Use it.
13217         (copy_ancestor_tree): Don't mark DIEs here.
13218         (copy_decls_walk): Start walk from root of newly-added tree;
13219         mark DIEs here instead.
13220
13221 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13222
13223         * config/i386/i386.md (unit): Also check sseishft1.
13224
13225 2010-06-22  Jan Hubicka  <jh@suse.cz>
13226
13227         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
13228         enabled.
13229
13230 2010-06-22  Jan Hubicka  <jh@suse.cz>
13231
13232         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
13233         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
13234         Return true if something changed.
13235         * df.h (df_confluence_function_n): Return bool.
13236         * df-core.c (df_worklist_propagate_forward,
13237         df_worklist_propagate_backward): Track changes and ages.
13238         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
13239         track ages.
13240         * dse.c (dse_confluence_n): Return always true.
13241
13242 2010-06-22  Jan Hubicka  <jh@suse.cz>
13243
13244         * bitmap.c (bitmap_clear_bit): Micro optimize.
13245
13246 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
13247
13248         * config/i386/i386.md (SWI1248x): New mode iterator.
13249         (SWI48x): Ditto.
13250         (SWI12): Ditto.
13251         (SWI24): Ditto.
13252
13253         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
13254         SWI1248x mode iterator.
13255         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
13256         using SWI124 mode iterator.
13257         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
13258         mode iterator.
13259         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
13260         *pushdi2_prologue_rex64 using P mode iterator.
13261         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
13262         using SWI48 mode iterator.
13263         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
13264         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
13265         using SWI1248x mode iterator.
13266         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
13267         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
13268         SWI48 mode iterator.
13269         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
13270         iterator.
13271         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
13272         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
13273         SWI12 mode iterator.
13274         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
13275         SWI12 mode iterator.
13276         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
13277         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
13278         SWI24 mode iterator.
13279         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
13280         SWI48 mode iterator.
13281         (mov<mode>_insn_1): New expander.
13282         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
13283         using SWI48x mode iterator.
13284
13285         (*movoi_internal_avx): Rename from *movoi_internal.
13286         (*movti_internal_rex64): Rename from *movti_rex64.
13287         (*movti_internal_sse): Rename from *movti_sse.
13288         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
13289         (*movdi_internal): Rename from *movdi_2.
13290         (*movsi_internal): Rename from *movsi_1.
13291         (*movhi_internal): Rename from *movhi_1.
13292         (*movqi_internal): Rename from *movqi_1.
13293
13294         (insv): Update the call to gen_movsi_insv_1 for rename.
13295         * config/i386/i386.c (promote_duplicated_reg): Ditto.
13296
13297 2010-06-22  Jan Hubicka  <jh@suse.cz>
13298
13299         * passes.c (execute_function_todo): Move call of statistics_fini_pass
13300         to ...
13301         (execute_todo) ... this one.
13302
13303 2010-06-22  Alan Modra  <amodra@gmail.com>
13304
13305         PR target/44364
13306         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13307         * caller-save.c (insert_restore, insert_save): Use non-validate
13308         form of adjust_address.
13309
13310 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13311
13312         PR target/39690
13313         * config/pa/pa.c (override_options): Disable
13314         -freorder-blocks-and-partition.
13315
13316 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
13317
13318         PR target/44615
13319         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
13320
13321         * config/i386/i386.md (type): Add sseishft1
13322
13323         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
13324         (ppro_insn_load): Likewise.
13325         (ppro_insn_store): Likewise.
13326         (ppro_insn_both): Likewise.
13327
13328         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
13329         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
13330         for type.
13331         (*vec_extractv2di_1_avx): Likewise.
13332         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
13333         type.  Remove atom_unit.
13334         (*vec_extractv2di_1_sse2): Likewise.
13335
13336 2010-06-21  DJ Delorie  <dj@redhat.com>
13337
13338         * diagnostic.h (diagnostic_classification_change_t): New.
13339         (diagnostic_context): Add history and push/pop list.
13340         (diagnostic_push_diagnostics): Declare.
13341         (diagnostic_pop_diagnostics): Declare.
13342         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
13343         from pragmas in a history chain instead of the global table.
13344         (diagnostic_push_diagnostics): New.
13345         (diagnostic_pop_diagnostics): New.
13346         (diagnostic_report_diagnostic): Scan history chain to find state
13347         of diagnostics as of the diagnostic location.
13348         * opts.c (set_option): Pass UNKNOWN_LOCATION to
13349         diagnostic_classify_diagnostic.
13350         (enable_warning_as_error): Likewise.
13351         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
13352         use in the history chain.
13353         * doc/extend.texi: Document pragma GCC diagnostic changes.
13354
13355 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
13356
13357         * dwarf2out.c (add_linkage_name): New function.  Don't add
13358         anything to DW_TAG_member DIEs.
13359         (add_name_and_src_coords_attributes): Use it.
13360         (gen_variable_die): Call it for C++ static data members if
13361         specification is DW_TAG_member.
13362
13363         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
13364         C++ char16_t and char32_t.
13365
13366         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
13367         * genattrtab.c: Include vecprim.h.
13368         (cached_attrs, cached_attr_count, attrs_seen_once,
13369         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
13370         attrs_cached_after): New variables.
13371         (find_attrs_to_cache): New function.
13372         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
13373         (write_test_expr): Add attrs_cached argument, return it too,
13374         attempt to cache non-const attributes used more than once in
13375         a single case handling.
13376         (write_attr_get): Use find_attrs_to_cache, for caching candidates
13377         emit cached_* variables.  Adjust write_attr_set callers.
13378         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
13379         to find attributes that should be cached in this block.  Adjust
13380         write_test_expr callers.
13381         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
13382         callers.
13383         (make_automaton_attrs): Adjust write_test_expr caller.
13384
13385         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
13386         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
13387         (make_automaton_attrs): If find_tune_attr returns non-NULL,
13388         write separate internal_dfa_insn_code_* and insn_default_latency_*
13389         functions for each attribute's value and emit init_sched_attrs
13390         function and function pointers.
13391         * genattr.c (const_attrs, reservations): New variables.
13392         (gen_attr): Add const attributes to const_attrs vector.
13393         (check_tune_attr, find_tune_attr): New functions.
13394         (main): Add reservations to reservations vector.  If find_tune_attr
13395         returns true, add prototype for init_sched_attrs and make
13396         internal_dfa_insn_code and insn_default_latency function pointers,
13397         otherwise define init_sched_attrs as dummy macro.
13398         * cfgexpand.c: Include insn-attr.h.
13399         (gimple_expand_cfg): Call init_sched_attrs.
13400
13401         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
13402
13403         PR target/44575
13404         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
13405         va_arg from a set of register save slots into a temporary,
13406         if the container is bigger than type size, do the copying
13407         using smaller mode or using memcpy.
13408
13409         PR bootstrap/44426
13410         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
13411         prototype.
13412         (sel_print_to_dot): Remove macro.
13413         (sel_print): Likewise.  New prototype.
13414         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
13415         (sel_print): New function.
13416
13417 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13418
13419         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
13420         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
13421
13422 2010-06-21  Nick Clifton  <nickc@redhat.com>
13423
13424         * config/rx/rx.h (PTRDIFF_TYPE): Define.
13425         (SMALL_REGISTER_CLASS): Define (to zero).
13426         (PRINT_OPERAND): Delete.
13427         (PRINT_OPERAND_ADDRESS): Delete.
13428         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
13429         (rx_print_operand_address): Delete prototype.
13430         * config/rx/rx.c (rx_print_operand): Make static.
13431         Allow %H and %L to handle CONST_DOUBLEs.
13432         (rx_print_operand_address): Make static.
13433         (rx_gen_move_template): Rename local variable 'template' to
13434         out_template.
13435         (rx_function_arg): Do not pass unknown sized objects in registers.
13436         (TARGET_PRINT_OPERAND): Define.
13437         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13438
13439 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
13440
13441         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
13442
13443 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
13444
13445         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
13446         stack-alignment for simple leaf-functions.
13447
13448 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
13449
13450         * doc/install.texi: Document bootstrap-lto.
13451
13452 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
13453
13454         PR debug/44248
13455         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
13456         (input_function): Drop them here, if VTA is disabled.
13457
13458 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
13459
13460         PR target/44546
13461         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
13462         New predicate.
13463         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
13464         ix86_swapped_fp_comparsion_operator instead of
13465         ix86_fp_comparison_operator.
13466
13467         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
13468         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
13469         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
13470         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
13471         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
13472         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
13473
13474 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
13475
13476         PR other/32998
13477         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
13478         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
13479         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
13480         (decode_cmdline_option): Update for this return value.  Set
13481         orig_option_with_args_text field.  Set arg field for unknown
13482         options.  Make static.
13483         (decode_cmdline_options_to_array): New.
13484         (prune_options): Update handling of find_opt return value.
13485         * opts.c (read_cmdline_option): Take decoded option.  Return void.
13486         (read_cmdline_options): Take decoded options.
13487         (decode_options): Add parameters for decoded options.  Use
13488         decode_cmdline_options_to_array.  Use decoded options for -O
13489         scan.  Use integral_argument for -O parameters.  Update call to
13490         read_cmdline_options.
13491         (enable_warning_as_error): Update handling of find_opt return value.
13492         * opts.h: Update comment on unknown options.
13493         (struct cl_decoded_option): Update comments on opt_index and arg.
13494         Add orig_option_with_args_text.
13495         (decode_cmdline_option): Remove.
13496         (decode_cmdline_options_to_array): Declare.
13497         (decode_options): Update prototype.
13498         * toplev.c (save_argv): Remove.
13499         (save_decoded_options, save_decoded_options_count): New.
13500         (read_integral_parameter): Remove.
13501         (print_switch_values): Use decoded options.
13502         (toplev_main): Don't set save_argv.  Update call to decode_options.
13503         * toplev.h (read_integral_parameter): Remove.
13504         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
13505
13506 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
13507
13508         PR target/44072
13509         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
13510         immediate.
13511         * constraints.md (Pw, Px): New constraints.
13512         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
13513
13514 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
13515
13516         * config/i386/sse.md (fma4modesuffixf4): Removed.
13517         (ssemodesuffixf2s): Likewise.
13518         (ssemodesuffixf4): Likewise.
13519         (ssemodesuffixf2c): Likewise.
13520         (ssescalarmodesuffix2s): Likewise.
13521         (avxmodesuffixf2c): Likewise.
13522         (ssemodesuffix): New.
13523         (ssescalarmodesuffix): Likewise.
13524         Update patterns with ssemodesuffix and ssescalarmodesuffix.
13525
13526 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
13527
13528         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
13529
13530 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
13531
13532         * stor-layout.c (debug_rli): Remove unused local variables.
13533
13534 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
13535
13536         PR rtl-optimization/40900
13537         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
13538         original expression for later reuse.
13539         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
13540         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
13541
13542 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
13543
13544         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
13545         double_int_fits_in_uhwi_p): Implement as static inline.
13546         (double_int_xor): New inline function.
13547         (double_int_lrotate, double_int_rrotate, double_int_max,
13548         double_int_umax, double_int_smax, double_int_min, double_int_umin,
13549         double_int_smin): Declare.
13550         (lrotate_double, rrotate_double): Remove declaration.
13551         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
13552         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
13553         (double_int_lrotate, double_int_rrotate, double_int_max,
13554         double_int_umax, double_int_smax, double_int_min, double_int_umin,
13555         double_int_smin): New function.
13556         * fold-const.c (int_const_binop): Clean up, use double_int_*
13557         functions.
13558         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
13559         double_int_* and immed_double_int_const functions.
13560
13561 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
13562
13563         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
13564         * function.c (types_used_by_cur_var_decl): Likewise.
13565         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
13566
13567 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
13568
13569         * tree.h (record_layout_info): Change type of pending_statics field
13570         to a VEC.
13571         * stor-layout.c (start_record_layout): Store NULL into
13572         pending_statics.
13573         (debug_rli): Call debug_vec_tree instead of debug_tree.
13574         (place_field): Likewise.
13575         (finish_record_layout): Likewise.
13576
13577 2010-06-18  Alan Modra  <amodra@gmail.com>
13578
13579         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
13580
13581 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13582
13583         PR target/43740
13584         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
13585         for SET source operand from SET destination operand.
13586
13587 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
13588
13589         PR rtl-optimization/39871
13590         * reload1.c (init_eliminable_invariants): For flag_pic, disable
13591         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
13592         (function_invariant_p): Rule out a plus of frame or arg pointer with
13593         a SYMBOL_REF.
13594         * ira.c (find_reg_equiv_invariant_const): Likewise.
13595
13596 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
13597
13598         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
13599         print_operand_address and puts to output the operand for CONST.
13600
13601 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
13602
13603         PR debug/44572
13604         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
13605         hook.
13606
13607 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13608
13609         * v850-protos.h (print_operand): Delete.
13610         (print_operand_address): Delete.
13611         * v850.h (PRINT_OPERAND): Delete.
13612         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13613         (PRINT_OPERAND_ADDRESS): Delete.
13614         * v850.c (print_operand_address): Rename to...
13615         (v850_print_operand_address): ...this.  Make static. Call
13616         v850_print_operand.
13617         (print_operand): Rename to...
13618         (v850_print_operand): ...this.  Make static.  Call
13619         v850_print_operand_address.
13620         (v850_print_operand_punct_valid_p): New function.
13621         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13622         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13623
13624 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13625
13626         * config/sh/sh-protos.h (print_operand): Delete.
13627         (print_operand_address): Delete.
13628         * config/sh/sh.h (PRINT_OPERAND): Delete.
13629         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13630         (PRINT_OPERAND_ADDRESS): Delete.
13631         * config/sh/sh.c (sh_print_operand_address): Make static.
13632         (sh_print_operand): Make static.  Call sh_print_operand_address
13633         and sh_print_operand.
13634         (sh_print_operand_punct_valid_p): New function.
13635         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13636         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13637
13638 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13639
13640         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
13641         (mcore_print_operand_address): Delete.
13642         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
13643         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13644         (PRINT_OPERAND_ADDRESS): Delete.
13645         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
13646         (mcore_print_operand): Make static.
13647         (mcore_print_operand_punct_valid_p): New function.
13648         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
13649         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13650
13651 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13652
13653         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
13654         (print_operand_address): Delete.
13655         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
13656         (PRINT_OPERAND_ADDRESS): Delete.
13657         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
13658         static.
13659         (m68hc11_print_operand): Make static.
13660         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13661
13662 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13663
13664         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
13665         (m32r_print_operand_address): Delete.
13666         * config/m32r/m32r.h (m32r_punct_chars): Delete.
13667         (PRINT_OPERAND): Delete.
13668         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13669         (PRINT_OPERAND_ADDRESS): Delete.
13670         * config/m32r/m32r.c (m32r_punct_chars): Make static.
13671         (m32r_print_operand_address): Make static.
13672         (m32r_print_operand): Make static.
13673         (m32r_print_operand_punct_valid_p): New function.
13674         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13675         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13676
13677 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13678
13679         * config/iq2000/iq2000-protos.h (print_operand): Delete.
13680         (print_operand_address): Delete.
13681         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
13682         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13683         (PRINT_OPERAND_ADDRESS): Delete.
13684         (iq2000_print_operand_punct): Delete.
13685         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
13686         (iq2000_print_operand_address): Make static.
13687         (iq2000_print_operand): Make static.
13688         (iq2000_print_operand_punct_valid_p): New function.
13689         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13690         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13691
13692 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13693
13694         * config/frv/frv-protos.h (frv_print_operand): Delete.
13695         (frv_print_operand_address): Delete.
13696         * config/frv/frv.h (PRINT_OPERAND): Delete.
13697         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13698         (PRINT_OPERAND_ADDRESS): Delete.
13699         * config/frv/frv.c (frv_print_operand_address): Make static.
13700         (frv_print_operand): Make static.
13701         (frv_print_operand_punct_valid_p): New function.
13702         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13703         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13704
13705 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13706
13707         * tree.h (vec_member): Declare.
13708         * tree.c (vec_member): Define.
13709
13710 2010-06-17  Richard Guenther  <rguenther@suse.de>
13711
13712         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
13713         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
13714
13715 2010-06-17  Richard Guenther  <rguenther@suse.de>
13716
13717         * tree-inline.c (declare_return_variable): Remove bogus code.
13718
13719 2010-06-17  Richard Guenther  <rguenther@suse.de>
13720
13721         * gimplify.c (gimplify_bind_expr): Always promote complex
13722         and vector variables to registers if possible.
13723
13724 2010-06-17  Richard Guenther  <rguenther@suse.de>
13725
13726         * expr.c (get_inner_reference): Use double_int for bit_offset
13727         calculation.
13728
13729 2010-06-16  DJ Delorie  <dj@redhat.com>
13730
13731         * common.opt (-fstrict-volatile-bitfields): new.
13732         * doc/invoke.texi: Document it.
13733         * fold-const.c (optimize_bit_field_compare): For volatile
13734         bitfields, use the field's type to determine the mode, not the
13735         field's size.
13736         * expr.c (expand_assignment): Likewise.
13737         (get_inner_reference): Likewise.
13738         (expand_expr_real_1): Likewise.
13739         * expmed.c (store_fixed_bit_field): Likewise.
13740         (extract_bit_field_1): Likewise.
13741         (extract_fixed_bit_field): Likewise.
13742
13743 2010-06-16  Richard Guenther  <rguenther@suse.de>
13744
13745         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
13746
13747 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
13748
13749         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
13750         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
13751         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
13752         * debug.c: Likewise.
13753         * sdbout.c: Likewise.
13754         * vmsdbgout.c: Likewise.
13755         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
13756         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
13757         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
13758         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
13759         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
13760         * dwarf2out.c (dw_fde_struct): New fields
13761         dw_fde_vms_{end,begin}_prologue.
13762         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
13763         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
13764         (dwarf2out_vms_end_prologue): New function.
13765         (dwarf2out_vms_begin_epilogue): New function.
13766         (dw_val_struct): New value dw_val_class_vms_delta.
13767         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
13768         begin_epilogue for VMS.
13769         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
13770         new static functions.
13771         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
13772         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
13773         static functions.
13774         (print_die): New case dw_val_class_vms_delta.
13775         (attr_checksum): Likewise.
13776         (same_dw_val_p: Likewise.
13777         (size_of_die): Likewise.
13778         (value_format): Likewise.
13779         (output_die): Likewise.
13780         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
13781         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
13782         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
13783         dwarf2out_cfi_begin_epilogue
13784         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
13785
13786 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
13787
13788         * config/cris/cris-protos.h (cris_print_operand): Delete.
13789         (cris_print_operand_address): Delete.
13790         * config/cris/cris.h (PRINT_OPERAND): Delete.
13791         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13792         (PRINT_OPERAND_ADDRESS): Delete.
13793         * config/cris/cris.c (cris_print_operand_address): Make static.
13794         (cris_print_operand): Make static.
13795         (cris_print_operand_punct_valid_p): New function.
13796         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13797         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13798
13799 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
13800
13801         * config/arm/arm-protos.h (arm_print_operand): Delete.
13802         (arm_print_operand_address): Delete.
13803         * config/arm/arm.h (PRINT_OPERAND): Delete.
13804         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13805         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
13806         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
13807         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
13808         (arm_print_operand): Make static.
13809         (arm_print_operand_punct_valid_p): New function.
13810         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13811         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13812
13813 2010-06-16  Nick Clifton  <nickc@redhat.com>
13814
13815         * config/rx/constraints.md (NEGint4): New constraint.
13816         * config/rx/rx.md (attr cc): Add set_zsc.
13817         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
13818         initialised.
13819         (cmpsf): Likewise.
13820         (call_internal): Clobber the cc0 register.
13821         (call_value_internal): Likewise.
13822         (cstoresi4): Likewise.
13823         (movsieq): Likewise.
13824         (movsine): Likewise.
13825         (addsi3): Add alternative to handle small negative constants.
13826         (sunsi3): Likewise.
13827         (addsi3): Do not set the O bit in the cc0 register.
13828         (adddi3): Likewise.
13829         (subsi3): Likewise.
13830         (subdi3): Likewise.
13831         (andsi3): Reorder alternatives to prefer shorter forms.
13832         (mulsi3): Likewise.
13833         (iorsi3): Likewise.
13834         (negsi2): Note that the cc0 flags are set.
13835         (rotlsi3): Note that only the Z and S bits are set in cc0.
13836         (lshrsi3): Likewise.
13837         (ashlsi3): Likewise.
13838         (subsf3): Use %Q for the MEM operand.
13839         (fix_truncsfsi2): Likewise.
13840         (floatsisf2): Likewise.
13841         (bitset): Remove early clobber from destination.
13842         (bitset_in_memory): Likewise.
13843         (lrintsf2): Clobber the cc0 register.
13844         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
13845         (rx_print_operand): Handle %N.
13846
13847 2010-06-16  Jan Hubicka  <jh@suse.cz>
13848
13849         * df-core.c (df_compact_blocks): Free problem_temps vector.
13850
13851 2010-06-16  Martin Jambor  <mjambor@suse.cz>
13852
13853         PR tree-optimization/43905
13854         * tree-sra.c: Include tree-inline.h.
13855         (create_abstract_origin): Removed.
13856         (modify_function): Version the call graph node instead of creating
13857         abstract origins and dealing with same_body aliases.
13858         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
13859         function is versionable.
13860         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
13861
13862 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
13863
13864         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
13865         (CHOOSE_DYNAMIC_LINKER): Update.
13866
13867 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
13868
13869         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
13870         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
13871         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
13872         *prefetch_3dnow_rex.
13873
13874 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
13875
13876         * target.h (struct asm_out):Add declare_constant_name field.
13877         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
13878         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
13879         * output.h (default_asm_declare_constant_name): Declare.
13880         (assemble_label): Update prototype.
13881         * varasm.c (assemble_constant_contents): Use
13882         targetm.asm_out.declare_constant_name target hook.
13883         (assemble_label): Add 'file' argument.
13884         (default_asm_declare_constant_name): New function.
13885         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
13886         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
13887         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
13888
13889         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
13890         * config/darwin.c (darwin_asm_declare_constant_name): New function.
13891         (machopic_output_indirection): Update assemble_label argument list.
13892         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
13893         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
13894
13895 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
13896
13897         PR middle-end/44391
13898         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
13899         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
13900
13901 2010-06-15  Richard Guenther  <rguenther@suse.de>
13902
13903         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
13904
13905 2010-06-15  Paul Brook  <paul@codesourcery.com>
13906
13907         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
13908         hard-float ABI.
13909
13910 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
13911
13912         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
13913         don't get a vector type for output.
13914
13915 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
13916
13917         PR fortran/44536
13918         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
13919         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
13920         (LANG_HOOKS_DECLS): Add it.
13921         * gimplify.c (omp_notice_variable): Call
13922         lang_hooks.decls.omp_report_decl.
13923
13924 2010-06-15  Martin Jambor  <mjambor@suse.cz>
13925
13926         PR lto/44464
13927         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
13928         on the newly dead SSA name.
13929
13930 2010-06-15  Alan Modra  <amodra@gmail.com>
13931
13932         * doc/invoke.texi: Add mcmodel to powerpc options.
13933         * configure.ac: Add HAVE_LD_LARGE_TOC test.
13934         * configure: Regenerate.
13935         * config.in: Regenerate.
13936         * config/rs6000/linux64.opt (mcmodel): New.
13937         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
13938         (TARGET_CMODEL, SET_CMODEL): Define.
13939         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
13940         select CMODEL_MEDIUM default.
13941         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
13942         (TARGET_CMODEL): Define default.
13943         * config/rs6000/rs6000.c (cmodel): New variable.
13944         (rs6000_explicit_options): Add cmodel field.
13945         (rs6000_handle_option): Handle -mcmodel.
13946         (create_TOC_reference): Add largetoc_reg param.  Generate high,
13947         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
13948         (rs6000_delegitimize_address): Recognise new toc reference rtl
13949         and minimal-toc rtl.
13950         (rs6000_legitimize_reload_address): Handle new toc references.
13951         (print_operand_address): Handle legitimate_constant_pool_address_p
13952         match before lo_sum.
13953         (rs6000_eliminate_indexed_memrefs): Tidy.
13954         (rs6000_emit_move): Tweak threshold for inlining constants.
13955         Keep rs6000_emit_allocate_stack large stack frame offsets
13956         loaded into r0 inline.
13957         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
13958         (tocrel_base, tocrel_offset): New variables.
13959         (toc_relative_expr_p): Set them here.
13960         (print_operand_address): Skip over any offset on constant pool address.
13961         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
13962         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
13963         (offsettable_ok_by_alignment): New function.
13964         (rs6000_emit_move): Address suitably aligned local symbol_refs
13965         relative to the toc pointer for -mcmodel=medium.
13966         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
13967         strict param.  Allow lo_sum version of addressing.  Verify reg
13968         used for -mminimal-toc and -mcmodel != small.  Update all callers.
13969         * config/rs6000/constraints.md: Update for above change.
13970         * config/rs6000/predicates.md: Likewise.
13971         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
13972         code.
13973         (tls_gd): Split for -mcmodel=medium/large.
13974         (tls_gd_high, tls_gd_low): New.
13975         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
13976         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
13977         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
13978         (largetoc_high, largetoc_low): New.
13979         (cmptf_internal2): Add clobber.
13980         * config/rs6000/rs6000-protos.h: Update.
13981
13982 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
13983
13984         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
13985         true if no prefetch is going to be generated for a given group.
13986         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
13987         estimate the prefetch_count.
13988         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
13989         prefetch count by considering the unroll_factor and prefetch_mod
13990         for is_loop_prefetching_profitable.
13991
13992 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
13993
13994         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
13995         anything if the argument is not a MEM.
13996
13997 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
13998
13999         PR debug/43650
14000         PR debug/44181
14001         PR debug/44247
14002         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
14003         debug stmts.
14004         (canonicalize_loop_ivs): Likewise.
14005
14006 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
14007
14008         PR debug/43656
14009         * haifa-sched.c (setup_insn_reg_pressure_info,
14010         update_register_pressure): Reject debug insns.
14011         (ready_sort): Don't setup reg pressure for debug insns.
14012         (schedule_insn): Don't update reg pressure for debug insns.
14013
14014 2010-06-14  Richard Guenther  <rguenther@suse.de>
14015
14016         * lto-streamer.c (cached_bp): Remove.
14017         (bitpack_delete): Likewise.
14018         (bitpack_create): Likewise.
14019         (bp_get_next_word): Likewise.
14020         (bp_pack_value, bp_unpack_value): Move ...
14021         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
14022         Re-implement.
14023         (struct bitpack_d): Likewise.
14024         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
14025         New inline functions.
14026         * lto-streamer-out.c (lto_output_bitpack): Remove.
14027         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
14028         (pack_value_fields): Adjust.
14029         (lto_write_tree): Likewise.
14030         (output_gimple_stmt): Likewise.
14031         (output_function): Likewise.
14032         * lto-streamer-in.c (input_gimple_stmt): Adjust.
14033         (input_function): Likewise.
14034         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
14035         (lto_input_bitpack): Remove.
14036         (lto_materialize_tree): Adjust.
14037         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
14038         * lto-cgraph.c (lto_output_edge): Adjust.
14039         (lto_output_node): Likewise.
14040         (lto_output_varpool_node): Likewise.
14041         (lto_output_ref): Likewise.
14042         (input_node): Likewise.
14043         (input_varpool_node): Likewise.
14044         (input_ref): Likewise.
14045         (input_edge): Likewise.
14046         (output_node_opt_summary): Likewise.
14047         (input_node_opt_summary): Likewise.
14048         * ipa-pure-const.c (pure_const_write_summary): Likewise.
14049         (pure_const_read_summary): Likewise.
14050         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
14051         (ipa_read_indirect_edge_info): Likewise.
14052         (ipa_write_node_info): Likewise.
14053         (ipa_read_node_info): Likewise.
14054
14055 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
14056
14057         PR target/44534
14058         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
14059         (vec_extract_lo_v16hi): Likewise.
14060         (vec_extract_lo_v32qi): Likewise.
14061
14062 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
14063
14064         PR bootstrap/44426
14065         * tree.h (build_call_expr): Don't define as vararg macro, instead
14066         add a prototype.
14067         * builtins.c (build_call_nofold): Remove.
14068         (expand_builtin_int_roundingfn, expand_builtin_pow,
14069         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
14070         expand_builtin_memset_args, expand_builtin_strcmp,
14071         expand_builtin_strncmp, expand_builtin_memory_chk): Use
14072         build_call_nofold_loc instead of build_call_nofold.
14073         (build_call_expr): New function.
14074
14075         PR tree-optimization/44508
14076         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
14077         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
14078         don't eliminate trivially dead stmts.
14079         * tree-vrp.c (vrp_finalize): Pass false as last argument
14080         to substitute_and_fold.
14081         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
14082         to substitute_and_fold.
14083         * tree-ssa-ccp.c (ccp_finalize): Likewise.
14084
14085         PR bootstrap/44509
14086         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
14087
14088 2010-06-14  Ira Rosen  <irar@il.ibm.com>
14089
14090         PR tree-optimization/44507
14091         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
14092         to build initial vector for BIT_AND_EXPR.
14093         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
14094
14095 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
14096
14097         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
14098         adjust z10prop set_attr.
14099
14100 2010-06-13  Jan Hubicka  <jh@suse.cz>
14101
14102         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
14103         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
14104         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
14105         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
14106         datastructure checks into checking asserts.
14107         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
14108         * tree-ssa-sccvn.c (VN_INFO): Likewise.
14109         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
14110         df_ref_create_structure): Likewise.
14111         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
14112         pool_free): Use gcc_checking_assert.
14113         * alias.c (get_alias_set): Likewise.
14114         * var-tracking.c (variable_htab_free, shared_hash_copy,
14115         canonicalize_values_mark, variable_merge_over_cur): Likewise.
14116         * lto-streamer.c (bp_unpack_value): Likewise.
14117
14118 2010-06-13  Richard Guenther  <rguenther@suse.de>
14119
14120         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
14121         Do not stream but initialize TYPE_CANONICAL to NULL.
14122         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
14123         * gimple.c (gimple_types_compatible_p): Disregard
14124         TYPE_STRUCTURAL_EQUALITY_P.
14125         (gimple_register_type): Use TYPE_CANONICAL as cache.
14126         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
14127         before registering common types.
14128         * config/i386/i386.c (ix86_function_arg_boundary): Do not
14129         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
14130         * tree.h (TYPE_CANONICAL): Clarify documentation.
14131
14132 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
14133
14134         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
14135         LIBCALL_VALUE): Remove macros.
14136         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
14137         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14138         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14139         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
14140         (ia64_function_value): Make static. Handle receiving the function
14141         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
14142
14143 2010-06-12  Jan Hubicka  <jh@suse.cz>
14144
14145         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
14146         at correct place.
14147
14148 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
14149
14150         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
14151
14152 2010-06-12  Jan Hubicka  <jh@suse.cz>
14153
14154         * df-core.c (df_clear_bb_info): New function.
14155         (df_set_blocks): bb_info is always allocated.
14156         (df_get_bb_info): Use block_info_elt_size.
14157         (df_set_bb_info): Likewise.
14158         (df_compact_blocks): Update for new block_info.
14159         (grow_bb_info): New function.
14160         * df-problems.c (df_grow_bb_info): Move to df-core.c
14161         (df_rd_set_bb_info): Remove.
14162         (df_rd_free_bb_info): Do not free block pool.
14163         (df_rd_alloc): Do not create pool, use check for
14164         obstack presence instead of NULL pointer for new blocks.
14165         (df_rd_free): DO not free alloc pool; clear block_info.
14166         (problem_RD): Add size of block info structure.
14167         (df_lr_set_bb_info): Remove.
14168         (df_lr_free_bb_info): Do not free block pool.
14169         (df_lr_alloc): Do not create pool, use check for
14170         obstack presence instead of NULL pointer for new blocks.
14171         (df_lr_free): DO not free alloc pool; clear block_info.
14172         (problem_LR): Add size of block info structure.
14173         (df_live_set_bb_info): Remove.
14174         (df_live_free_bb_info): Do not free block pool.
14175         (df_live_alloc): Do not create pool, use check for
14176         obstack presence instead of NULL pointer for new blocks.
14177         (df_live_free): DO not free alloc pool; clear block_info.
14178         (problem_LIVE): Add size of block info structure.
14179         (problem_CHAIN): Add size of block info structure.
14180         (df_byte_lr_set_bb_info): Remove.
14181         (df_byte_lr_free_bb_info): Do not free block pool.
14182         (df_byte_lr_alloc): Do not create pool, use check for
14183         obstack presence instead of NULL pointer for new blocks.
14184         (df_byte_lr_free): DO not free alloc pool; clear block_info.
14185         (problem_BYTE_LR): Add size of block info structure.
14186         (problem_NOTE): Add size of block info structure.
14187         (df_byte_MD_set_bb_info): Remove.
14188         (df_byte_MD_free_bb_info): Do not free block pool.
14189         (df_byte_MD_alloc): Do not create pool, use check for
14190         obstack presence instead of NULL pointer for new blocks.
14191         (df_byte_MD_free): DO not free alloc pool; clear block_info.
14192         (problem_BD): Add size of block info structure.
14193         * df-scan.c (df_scan_free_internal): Free block pool.
14194         (df_scan_set_bb_info): Remove.
14195         (df_scan_free_bb_info): Check for artificial_defs instead
14196         of bb_info being non-NULL.
14197         (df_scan_alloc): DO not create df_scan_block pool.
14198         (problem_SCAN): Set size of block info.
14199         (df_bb_refs_record): Do not allocate bb_info.
14200         * df.h (df_problem): Add block_info_elt_size.
14201         (struct dataflow): Change block_info to void *.
14202         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
14203         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
14204         in-line structures.
14205
14206 2010-06-12  Jan Hubicka  <jh@suse.cz>
14207
14208         PR tree-optimize/44485
14209         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
14210         containing use of return value of noreturn function.
14211
14212 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
14213
14214         * targhooks.c (default_function_value): Don't use
14215         FUNCTION_OUTGOING_VALUE.
14216         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
14217         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
14218
14219 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
14220
14221         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
14222         Add crtfastmath.o to extra_parts.
14223         * config/mips/crtfastmath.c: New.
14224         * config/mips/linux.h (ENDFILE_SPEC): New.
14225
14226 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
14227
14228         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
14229         old_type in parameter.
14230         (gcc_type_for_value): Update call to gcc_type_for_interval.
14231         (compute_type_for_level_1): Renamed compute_type_for_level.
14232         Update call to gcc_type_for_interval.
14233
14234 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
14235
14236         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
14237         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
14238
14239 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
14240
14241         * opts-common.c: Include options.h.
14242         (integral_argument): Move from opts.c.
14243         (decode_cmdline_option): New.  Based on read_cmdline_option.
14244         * opts.c (integral_argument): Move to opts-common.c.
14245         (read_cmdline_option): Move most contents to
14246         decode_cmdline_option.  Use %qs in diagnostics.
14247         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
14248         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
14249         decode_cmdline_option): New.
14250
14251 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
14252
14253         PR target/44481
14254         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
14255         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
14256         (partiysi2_cmp): Ditto.
14257         (*partiyhi2_cmp): Ditto.
14258         (*parityqi2_cmp): Remove.
14259
14260 2010-06-11  Jan Hubicka  <jh@suse.cz>
14261
14262         * bitmap.h (bmp_iter_next_bit): New.
14263         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
14264
14265 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
14266             Eric Botcazou  <ebotcazou@adacore.com>
14267
14268         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
14269         computed cost.
14270
14271 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
14272
14273         * config/i386/i386.md (unspec): New define_c_enum.
14274         (unspecv): Ditto.
14275
14276 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
14277
14278         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
14279
14280 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
14281
14282         PR middle-end/44483
14283         * tree-if-conv.c (bb_predicate_s): New struct.
14284         (bb_predicate_p): New.
14285         (bb_has_predicate): New.
14286         (bb_predicate): New.
14287         (set_bb_predicate): New.
14288         (bb_predicate_gimplified_stmts): New.
14289         (set_bb_predicate_gimplified_stmts): New.
14290         (add_bb_predicate_gimplified_stmts): New.
14291         (init_bb_predicate): New.
14292         (free_bb_predicate): New.
14293         (is_predicated): Use bb_predicate.
14294         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
14295         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
14296         before processing their successors.
14297         (clean_predicate_lists): Removed.
14298         (find_phi_replacement_condition): Use bb_predicate.
14299         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
14300         computations.
14301         (insert_gimplified_predicates): New.
14302         (combine_blocks): Call insert_gimplified_predicates.
14303         (tree_if_conversion): Call free_bb_predicate instead of
14304         clean_predicate_lists.
14305
14306 2010-10-11  Paul Brook  <paul@codesourcery.com>
14307
14308         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
14309         * config/arm/arm.c (all_architectures): Change v7e-m default to
14310         cortexm4.
14311         * config/arm/arm-cores.def: Add cortex-m4.
14312         * config/arm/arm-tune.md: Regenerate.
14313
14314 2010-06-11  Jan Hubicka  <jh@suse.cz>
14315
14316         * ipa-pure-const.c (special_builtlin_state): New function.
14317         (check_call): Use it instead of special casign BUILT_IN_RETURN.
14318         (propagate_pure_const): Use it.
14319
14320 2010-06-11  Jan Hubicka  <jh@suse.cz>
14321
14322         * df-problems.c (df_live_scratch): Convert to bitmap_head.
14323         (df_live_alloc): Initialize df_live_scratch when initializing
14324         problem_data.
14325         (df_live_transfer_function): Update uses of df_live_scratch.
14326         (df_live_free): Free problem_data; clear df_live_scratch before
14327         releasing the obstack.
14328         (df_md_free): Free problem data.
14329
14330 2010-06-11  Jan Hubicka  <jh@suse.cz>
14331
14332         * doc/invoke.texi (Wsuggest-attribute): Document.
14333         (Wmissing-noreturn): Remove.
14334         * ipa-pure-const.c (warn_function_noreturn): New function.
14335         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
14336         warn_missing_noreturn.
14337         * common.opt (Wsuggest-attribute=noreturn): New.
14338         * tree-flow.h (warn_function_noreturn): Declare.
14339         * tree-cfg.c (execute_warn_function_noreturn): Use
14340         warn_function_noreturn.
14341         (gate_warn_function_noreturn): New.
14342         (pass_warn_function_noreturn): Update.
14343
14344 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14345
14346         * c-typeck.c (handle_warn_cast_qual): Add loc
14347         parameter. Improve warning message.
14348         (build_c_cast): Pass location to handle_warn_cast_qual.
14349
14350 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
14351
14352         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
14353         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
14354         insn mnemonic.
14355         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
14356
14357 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
14358
14359         Fix bootstap on mips
14360         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
14361         be naming typedefs.
14362
14363 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
14364
14365         * system.h (helper_const_non_const_cast): New inline for
14366         gcc version <= 4.0.
14367         (CONST_CAST2): For gcc version <= 4.0 use
14368         new helper to do const/non-const casting.
14369
14370 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14371
14372         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
14373         * Makefile.in (OBJS-common): Include insn-enums.o.
14374         (insn-enums.o): New rule.
14375         (simple_generated_c): Add insn-enums.c.
14376         (build/genenums.o): New rule.
14377         (genprogmd): Add "enums".
14378         * genconstants.c (print_enum_type): Declare a C string array
14379         for each enum.
14380         * genenums.c: New file.
14381         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
14382         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
14383         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
14384
14385 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14386
14387         * doc/md.texi (define_enum_attr): Document.
14388         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
14389         * read-md.h (lookup_enum_type): Declare.
14390         * read-md.c (lookup_enum_type): New function.
14391         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
14392         * genattrtab.c (attr_desc): Add an enum_name field.
14393         (evaluate_eq_attr): Take the associated attribute as argument.
14394         Get the enum prefix from the enum_name field, if defined.
14395         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
14396         (simplify_test_exp): Pass attr to evaluate_eq_attr.
14397         (add_attr_value): New function, split out from...
14398         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
14399         (write_test_expr): Pass attr to evaluate_eq_attr.
14400         (write_attr_get): Use the enum_name as the enum tag, if defined.
14401         (write_attr_valueq): Use the enum_name as a prefix, if defined.
14402         (find_attr): Initialize enum_name.
14403         (main): Handle DEFINE_ENUM_ATTR.
14404         * gensupport.c (process_rtx): Likewise.
14405         * config/mips/mips.h (mips_tune_attr): Delete.
14406         * config/mips/mips.md (cpu): Use define_attr_enum.
14407
14408 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14409
14410         * doc/md.texi (define_c_enum, define_enum): Document.
14411         * read-md.h (md_constant): Add a parent_enum field.
14412         (enum_value, enum_type): New structures.
14413         (upcase_string, traverse_enum_types): Declare.
14414         * read-md.c (enum_types): New variable.
14415         (upcase_string, add_constant): New functions.
14416         (handle_constants): Don't create the hash table here.
14417         Use add_constant.
14418         (traverse_md_constants): Don't check for a null md_constants.
14419         (decimal_string, handle_enum, traverse_enum_types): New functions.
14420         (read_md_files): Initialize md_constants and md_enums.
14421         * genconstants.c (print_md_constant): Ignore info argument.
14422         Only print constants that belong to no enum.
14423         (print_enum_type): New function.
14424         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
14425         for each defined enum type.
14426         * config/mips/mips.md (processor): New define_enum.
14427         (unspec): New define_c_enum.
14428         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
14429         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
14430         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
14431         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
14432         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
14433         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
14434         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
14435         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
14436         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
14437         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
14438         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
14439         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
14440         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
14441         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
14442         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
14443         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
14444         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
14445         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
14446         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
14447         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
14448         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
14449         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
14450         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
14451         (UNSPEC_RDDSP): Move to mips-dsp.md.
14452         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
14453         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
14454         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
14455         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
14456         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
14457         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
14458         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
14459         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
14460         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
14461         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
14462         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
14463         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
14464         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
14465         Moved to mips-dspr2.md.
14466         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
14467         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
14468         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
14469         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
14470         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
14471         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
14472         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
14473         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
14474         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
14475         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
14476         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
14477         UNSPEC_LOONGSON_PSADBH)
14478         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
14479         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
14480         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
14481         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
14482         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
14483         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
14484         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
14485         (cpu): Update comment.
14486         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
14487         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
14488         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
14489         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
14490         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
14491         UNSPEC_LOONGSON_PCMPEQ)
14492         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
14493         UNSPEC_LOONGSON_PINSR_0)
14494         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
14495         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
14496         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
14497         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
14498         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
14499         UNSPEC_LOONGSON_PSADBH)
14500         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
14501         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
14502         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
14503         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
14504         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
14505         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
14506         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
14507         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
14508         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
14509         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
14510         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
14511         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
14512         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
14513         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
14514         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
14515         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
14516         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
14517         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
14518         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
14519         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
14520         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
14521         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
14522         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
14523         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
14524         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
14525         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
14526         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
14527         (UNSPEC_RDDSP): Moved from mips.md.
14528         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
14529         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
14530         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
14531         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
14532         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
14533         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
14534         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
14535         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
14536         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
14537         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
14538         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
14539         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
14540         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
14541         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
14542         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
14543         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
14544         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
14545         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
14546         (UNSPEC_SCC): Moved from mips.md.
14547         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
14548         "processor_type" to "processor".
14549         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
14550         * config/mips/mips.h (processor_type): Delete.
14551         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
14552         "processor_type" to "processor".
14553
14554 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14555
14556         * configure.ac (tm_include_list): Add insn-constants.h.
14557         * configure: Regenerate.
14558         * Makefile.in (GTM_H): Move insn-constants.h here from...
14559         (TM_H): ...here.
14560         * mkconfig.sh: Remove special handling for insn-constants.h.
14561
14562 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14563
14564         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
14565         (BUILD_MD): ...this new variable.
14566         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
14567         that include the old contents of simple_generated_h and
14568         simple_generated_c.
14569         (simple_generated_h, simple_generated_c): Include them.  Add
14570         insn-constants.h.
14571         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
14572         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
14573         Remove these dependencies from the main rule and include
14574         insn-conditions.md in the command line only if it appears
14575         in the dependency list.
14576         (insn-constants.h, s-constants): Delete.
14577         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
14578         or gensupport.h.
14579         (build/genmddeps.o): Likewise.
14580         (genprogrtl): New variable that contains everything from genprogmd
14581         except mddeps and constants.
14582         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
14583         depend on $(BUILD_MD)
14584         (genprog): New variable.  Make these programs depend on
14585         $(BUILD_ERRORS).
14586         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
14587         (main): Use read_md_files instead of init_rtx_reader_args.
14588         * genconstants.c: As for genmddeps.c.
14589         * read-md.h (read_skip_construct): Declare.
14590         * read-md.c (read_skip_construct): New function.
14591         (handle_file): Allow a null handle_directive, skipping the
14592         construct if so.
14593         (parse_include): Update the comment accordingly.
14594
14595 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14596
14597         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
14598         * genmddeps.c: Include read-md.h.
14599         (main): Call init_rtx_reader_args instead of init_md_reader_args.
14600         * genattr.c (main): Likewise.
14601         * genattrtab.c (main): Likewise.
14602         * genautomata.c (main): Likewise.
14603         * gencodes.c (main): Likewise.
14604         * genconditions.c (main): Likewise.
14605         * genconfig.c (main): Likewise.
14606         * genconstants.c (main): Likewise.
14607         * genemit.c (main): Likewise.
14608         * genextract.c (main): Likewise.
14609         * genflags.c (main): Likewise.
14610         * genopinit.c (main): Likewise.
14611         * genoutput.c (main): Likewise.
14612         * genpeep.c (main): Likewise.
14613         * genrecog.c (main): Likewise.
14614         * genpreds.c (main): Likewise.
14615         * gensupport.h (in_fname): Move to read-md.h.
14616         (init_md_reader_args_cb): Rename to...
14617         (init_rtx_reader_args_cb): ...this and return a bool.
14618         (init_md_reader_args): Rename to...
14619         (init_rtx_reader_args): ...this and return a bool.
14620         (include_callback): Move to read-md.h.
14621         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
14622         (file_name_list, first_dir_md_include): Move to read-md.c
14623         (first_bracket_include): Delete unused variable.
14624         (last_dir_md_include): Move to read-md.c.
14625         (process_include): Delete, moving code to read-md.c:handle_include.
14626         (process_rtx): Don't handle INCLUDE.
14627         (save_string): Delete.
14628         (rtx_handle_directive): New function.
14629         (init_md_reader_args_cb): Rename to...
14630         (init_rtx_reader_args_cb): ...this and return a boolean success value.
14631         Use read_md_args.
14632         (init_md_reader_args): Rename to...
14633         (init_rtx_reader_args): ...this and return a boolean success value.
14634         * rtl.def (INCLUDE): Delete.
14635         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
14636         argument.
14637         * read-rtl.c (read_conditions): Don't gobble ')' here.
14638         (read_mapping): Likewise.
14639         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
14640         Handle top-level non-rtx constructs here rather than in read_rtx_1.
14641         Store the whole queue in *X.  Remove call to init_md_reader.
14642         (read_rtx_1): Rename to...
14643         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
14644         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
14645         here.
14646         (read_nested_rtx): New function.  Handle (nil) here rather than
14647         in read_rtx_code.
14648         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
14649         gobble ')' here.
14650         * read-md.h (directive_handler_t): New type.
14651         (in_fname, include_callback): Moved from read-md.h.
14652         (read_constants, init_md_reader): Delete.
14653         (read_md_files): Declare.
14654         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
14655         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
14656         from gensupport.c.
14657         (read_constants): Rename to...
14658         (handle_constants): ...this.  Don't gobble ')' here.
14659         (handle_include, handle_file, handle_toplevel_file)
14660         (parse_include): New functions, mostly taken from gensupport.c.
14661         (init_md_reader): Subsume into...
14662         (read_md_files): ...this new function.
14663
14664 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14665
14666         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
14667         (unread_char): Decrement read_md_lineno after putting back '\n'.
14668         * read-md.c (fatal_with_file_and_line): Push back any characters
14669         that we decide not to add to the context.
14670         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
14671         fatal_expected_char in cases where '/' ends a line (for example).
14672         (read_name): Don't increment read_md_lineno here.
14673         (read_escape): Likewise.
14674         (read_quoted_string): Likewise.
14675         (read_braced_string): Likewise.
14676
14677 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14678
14679         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
14680         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
14681         * genconstants.c: Include read-md.h.
14682         * read-rtl.c (md_constants): Move to read-md.c.
14683         (md_name): Move to read-md.h.
14684         (initialize_iterators): Use leading_string_hash instead of def_hash
14685         and leading_string_eq_p instead of def_name_eq_p.
14686         (read_name): Move to read-md.c.
14687         (def_hash, def_name_eq_p): Delete.
14688         (read_constants, traverse_md_constants): Move to read-md.c.
14689         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
14690         * read-md.h: Include hashtab.h.
14691         (md_name): Moved from read-rtl.c.
14692         (md_constant): Moved from read-md.h.
14693         (leading_string_hash, leading_string_eq_p, read_name)
14694         (read_constants, traverse_md_constants): Declare.
14695         * read-md.c (md_constants): Moved from read-rtl.c.
14696         (leading_string_hash, leading_string_eq_p): New functions.
14697         (read_name, read_constants, traverse_md_constants): Moved from
14698         read-rtl.c.
14699
14700 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14701
14702         * read-rtl.c (md_name): New structure.
14703         (read_name): Take an md_name instead of a buffer pointer.
14704         Use the "string" field instead of strcpy when expanding constants.
14705         (read_constants): Remove the tmp_char argument.  Update the calls
14706         to read_name, using two local name buffers instead of the tmp_char
14707         argument.  Merge the constant-creation code.
14708         (read_conditions): Remove the tmp_char argument.  Update the calls
14709         to read_name, using a local name buffer instead of the tmp_char
14710         argument.
14711         (read_mapping): Replace tmp_char variable with a local name buffer.
14712         Update the calls to read_name.
14713         (read_rtx_1): Likewise.  Update the calls to read_constants and
14714         read_conditions.
14715
14716 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14717
14718         * Makefile.in (build/read-md.o): Depend on errors.h.
14719         * read-md.h (error_with_line): Declare.
14720         * read-md.c: Include errors.h.
14721         (message_with_line_1): New function, extracted from...
14722         (message_with_line): ...here.
14723         (error_with_line): New function.
14724         * genattrtab.c: If a call to message_with_line is followed by
14725         "have_error = 1;", replace both statements with a call to
14726         error_with_line.
14727         * genoutput.c: Likewise.
14728         * genpreds.c: Likewise.
14729         * genrecog.c: If a call to message_with_line is followed by
14730         "error_count++;", replace both statements with a call to
14731         error_with_line.
14732         (errorcount): Delete.
14733         (main): Don't check it.
14734         * gensupport.c: If a call to message_with_line is followed by
14735         "errors = 1;", replace both statements with a call to error_with_line.
14736         (errors): Delete.
14737         (process_define_cond_exec): Check have_error instead of errors.
14738         (init_md_reader_args_cb): Likewise.  Don't set errors.
14739
14740 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14741
14742         * read-md.h (read_md_file): Declare.
14743         (read_char, unread_char): New functions.
14744         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
14745         (read_quoted_string, read_string): Remove FILE * argument.
14746         * read-md.c (read_md_file): New variable.
14747         (read_md_filename, read_md_lineno): Update comments and remove
14748         unnecessary initialization.
14749         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
14750         (read_escape, read_quoted_string, read_braced_string, read_string):
14751         Remove FILE * argument.  Update calls accordingly, using read_char
14752         and unread_char instead of getc and ungetc.
14753         * rtl.h (read_rtx): Remove FILE * argument.
14754         * read-rtl.c (iterator_group): Remove FILE * argument from
14755         "find_builtin".
14756         (iterator_traverse_data): Remove "infile" field.
14757         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
14758         (add_mapping, read_name, read_constants, read_conditions)
14759         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
14760         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
14761         Remove file arguments from all calls, using read_char and unread_char
14762         instead of getc and ungetc.
14763         * gensupport.c (process_include): Preserve read_md_file around
14764         the include.  Set read_md_file to the handle of the included file.
14765         Update call to read_rtx.
14766         (init_md_reader_args_cb): Set read_md_file to the handle of the file
14767         and remove local FILE *.  Update calls to read_rtx.
14768
14769 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14770
14771         * read-md.h (read_rtx_lineno): Rename to...
14772         (read_md_lineno): ...this.
14773         (read_rtx_filename): Rename to...
14774         (read_md_filename): ...this.
14775         (copy_rtx_ptr_loc): Rename to...
14776         (copy_md_ptr_loc): ...this.
14777         (print_rtx_ptr_loc): Rename to...
14778         (print_md_ptr_loc): ...this.
14779         * read-md.c: Likewise.  Update references after renaming.
14780         (string_obstack): Replace RTL with MD in comment.
14781         (set_rtx_ptr_loc): Rename to...
14782         (set_md_ptr_loc): ...this.
14783         (get_rtx_ptr_loc): Rename to...
14784         (get_md_ptr_loc): ...this.
14785         * genconditions.c: Update references after renaming.
14786         * genemit.c: Likewise.
14787         * genoutput.c: Likewise.
14788         * genpreds.c: Likewise.
14789         * gensupport.c: Likewise.
14790         * read-rtl.c: Likewise.
14791
14792 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14793
14794         * Makefile.in (READ_MD_H): New variable.
14795         (BUILD_RTL): Add build/read-md.o.
14796         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
14797         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
14798         (build/genattrtab.o, build/genconditions.o build/genemit.o)
14799         (build/genextract.o, build/genflags.o, build/genoutput.o)
14800         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
14801         (build/read-md.o): New rule.
14802         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
14803         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
14804         * coretypes.h: ...here.
14805         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
14806         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
14807         * genattr.c: Include read-md.h.
14808         * genattrtab.c: Likewise.
14809         * genconditions.c: Likewise.
14810         * genemit.c: Likewise.
14811         * genextract.c: Likewise.
14812         * genflags.c: Likewise.
14813         * genoutput.c: Likewise.
14814         * genpreds.c: Likewise.
14815         * genrecog.c: Likewise.
14816         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
14817         (join_c_conditions, print_c_condition, read_rtx_filename)
14818         (read_rtx_lineno): Move to read-md.h.
14819         * read-rtl.c: Include read-md.h.
14820         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
14821         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
14822         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
14823         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
14824         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
14825         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
14826         (read_braced_string, read_string): Move to read-md.c.
14827         (read_rtx): Move some initialization to init_md_reader and call
14828         init_md_reader here.
14829         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
14830         Move to read-md.h.
14831         * gensupport.c: Include read-md.h.
14832         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
14833         * read-md.h, read-md.c: New files.
14834
14835 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
14836
14837         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
14838         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14839         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
14840         * config/moxie/moxie.c (moxie_function_value): Make static.
14841         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
14842         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14843
14844 2010-06-10  Martin Jambor  <mjambor@suse.cz>
14845
14846         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
14847         * dbgcnt.def (tree_sra): New counter.
14848         * tree-sra.c: Include dbgcnt.h.
14849         (gate_intra_sra): Check tree_sra debug counter.
14850
14851 2010-06-10  Martin Jambor  <mjambor@suse.cz>
14852
14853         PR tree-optimization/44258
14854         * tree-sra.c (build_access_subtree): Return false iff there is a
14855         partial overlap.
14856         (build_access_trees): Likewise.
14857         (analyze_all_variable_accesses): Disqualify candidates if
14858         build_access_trees returns true for them.
14859
14860 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
14861
14862         PR debug/41371
14863         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
14864         tail-recurse into canonical node.  Fast-forward over
14865         non-canonical VALUEs.
14866
14867 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
14868
14869         PR boostrap/44470
14870         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
14871         (*addsi_1_zext) <TYPE_LEA>: Likewise.
14872         (add lea splitter): Likewise.
14873         (add_zext lea splitter): Likewise.
14874
14875 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
14876
14877         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
14878
14879 2010-06-10  Jan Hubicka  <jh@suse.cz>
14880
14881         * df-problems.c (df_live_problem_data): Add live_bitmaps.
14882         (df_live_alloc): Initialize problem data and live_osbtacks.
14883         (df_live_finalize): Remove obstack, problem data; do not
14884         clear all bitmaps.
14885         (df_live_top_dump, df_live_bottom_dump): Do not dump old
14886         data when not allocated.
14887         (df_live_verify_solution_start): Do not allocate problem data.
14888         (df_live_verify_solution_end): Check if out is allocated.
14889         (struct df_md_problem_data): New structure.
14890         (df_md_alloc): Allocate problem data.
14891         (df_md_free): Free problem data; do not clear bitmaps.
14892
14893 2010-06-10  Jan Beulich  <jbeulich@novell.com>
14894
14895         PR bootstrap/37304
14896         * configure.ac: Replace $() with ${} when intending to expand
14897         variables rather than invoking commands.
14898         * configure: Re-generate.
14899
14900 2010-06-10  Jan Hubicka  <jh@suse.cz>
14901
14902         PR rtl-optimization/44460
14903         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
14904         TYPE_NEEDS_CONSTRUCTING sanity check.
14905
14906 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
14907
14908         * doc/include/fdl.texi: Move to GFDL version 1.3.
14909
14910         * doc/cpp.texi: Move to GFDL version 1.3.
14911         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
14912         * doc/gccint.texi: Move to GFDL version 1.3.
14913         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
14914         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
14915         * doc/invoke.texi: Move to GFDL version 1.3.
14916
14917 2010-06-09  Jan Hubicka  <jh@suse.cz>
14918
14919         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
14920         Break out from ...
14921         (propagate) ... here; swap the order.
14922
14923 2010-06-09  Jan Hubicka  <jh@suse.cz>
14924
14925         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
14926         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
14927         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
14928         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
14929
14930 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
14931
14932         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
14933         Do not the gather memory reference in the outer loop if the step
14934         is not a constant.
14935
14936 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
14937
14938         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
14939         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
14940         8 to 4.  Minor change of the related comments.
14941
14942 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
14943
14944         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
14945         the scev analysis when the variable is not used outside the loop
14946         in a close phi node: call compute_overall_effect_of_inner_loop.
14947
14948 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
14949
14950         * graphite-sese-to-poly.c (single_pred_cond): Renamed
14951         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
14952         (build_sese_conditions_before): Renamed call to single_pred_cond.
14953         (build_sese_conditions_after): Same.
14954
14955 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
14956
14957         * graphite-poly.h: Fix comments and indentation.
14958         * graphite-sese-to-poly.c: Same.
14959         (build_sese_conditions_before): Compute stmt and gbb only when needed.
14960         * tree-chrec.c: Fix comments and indentation.
14961         (tree-ssa-loop-niter.c): Same.
14962
14963 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
14964
14965         PR rtl-optimization/42461
14966         * dce.c (deletable_insn_p): Return true for const or pure calls again.
14967         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
14968
14969 2010-06-09  Jan Hubicka  <jh@suse.cz>
14970
14971         * bitmap.c (bitmap_and): Walk array forward.
14972         (bitmap_and_compl_into): Likewise.
14973         (bitmap_xor): Likewise.
14974         (bitmap_xor_into):  Likewise.
14975         (bitmap_equal_p): Likewise.
14976         (bitmap_intersect_p): Likewise.
14977         (bitmap_intersect_compl_p): Likewise.
14978         (bitmap_ior_and_into): Likewise.
14979         (bitmap_elt_copy): Likewise.
14980         (bitmap_and_compl): Likewise.
14981         (bitmap_elt_ior): Likewise.
14982
14983 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
14984
14985         * opts-common.c (prune_options): Ensure replacement argv array
14986         is correctly terminated by a NULL entry.
14987
14988 2010-06-09  Jan Hubicka  <jh@suse.cz>
14989
14990         * cgraph.h (varpool_first_static_initializer,
14991         varpool_next_static_initializer): Make checking only when
14992         checking enabled.
14993         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
14994         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
14995         gcc_assert to gcc_checking_assert.
14996         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
14997         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
14998         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
14999         op_iter_init_phiuse, op_iter_init_phidef,
15000         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
15001         gcc_checking_assert.
15002         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
15003         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
15004         partition_is_global, live_on_entry, live_on_exit,
15005         live_merge_and_clear): Likewise.
15006         * system.h (gcc_checking_assert): New macro.
15007         * gimple.h (set_bb_seq): Use gcc_checking_assert.
15008
15009 2010-06-09  Jason Merrill  <jason@redhat.com>
15010
15011         * Makefile.in (TAGS): Collect tags info from c-family.
15012
15013 2010-06-09  Jan Hubicka  <jh@suse.cz>
15014
15015         * gimple.h (gcc_gimple_checking_assert): New macro.
15016         (gimple_set_def_ops, gimple_set_use_ops,
15017         gimple_set_vuse, gimple_set_vdef,
15018         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
15019         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
15020         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
15021         gimple_asm_output_op, gimple_asm_output_op_ptr,
15022         gimple_asm_set_output_op, gimple_asm_clobber_op,
15023         gimple_asm_set_clobber_op, gimple_asm_label_op,
15024         gimple_asm_set_label_op, gimple_try_set_kind,
15025         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
15026         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
15027         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
15028         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
15029         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
15030         gimple_omp_for_set_initial, gimple_omp_for_final,
15031         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
15032         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
15033         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
15034         conditional with ENABLE_GIMPLE_CHECKING.
15035         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
15036
15037 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
15038
15039         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
15040         (get_computation_cost_at): Use it.
15041         (determine_use_iv_cost_condition): Likewise.
15042         (determine_iv_cost): Likewise.
15043
15044 2010-06-09  Richard Guenther  <rguenther@suse.de>
15045
15046         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
15047         replace constants.
15048
15049 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
15050
15051         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
15052
15053 2010-06-09  Martin Jambor  <mjambor@suse.cz>
15054
15055         PR tree-optimization/44423
15056         * tree-sra.c (dump_access): Dump also grp_assignment_read.
15057         (analyze_access_subtree): Pass negative allow_replacements to children
15058         if the current type is scalar.
15059
15060 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
15061
15062         PR testsuite/42843
15063         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
15064         * doc/plugins.texi (Plugin license check): Update information
15065         on type of plugin_is_GPL_compatible.
15066         * Makefile.in (PLUGINCC): Define as $(COMPILER).
15067         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
15068
15069 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
15070
15071         * config/arm/arm.c (thumb2_reorg): New function.
15072         (arm_reorg): Call it.
15073         * config/arm/thumb2.md (define_peephole2 for flag clobbering
15074         arithmetic operations): Delete.
15075
15076 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
15077
15078         PR target/44067
15079         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
15080         e500v2 target.
15081
15082 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
15083
15084         PR plugins/44459
15085         * gcc-plugin.h: Encapsulate all declarations in extern "C".
15086
15087 2010-06-08  Jan Hubicka  <jh@suse.cz>
15088
15089         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
15090         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
15091
15092 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
15093
15094         PR tree-optimization/39874
15095         PR middle-end/28685
15096         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
15097         Declare.
15098         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
15099         same_bool_result_p): New.
15100         (and_var_with_comparison, and_var_with_comparison_1,
15101         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
15102         (or_var_with_comparison, or_var_with_comparison_1,
15103         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
15104         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
15105         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
15106         of combine_comparisons.
15107         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
15108
15109 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
15110
15111         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15112         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15113         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
15114         pdp11_function_value_regno_p): New functions.
15115         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15116         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15117
15118 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
15119
15120         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
15121         Thumb-2 in the MINUS case.
15122
15123 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15124
15125         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
15126
15127         * doc/gty.texi (GTY Options): Document typed GC allocation and
15128         variable_size GTY option.
15129
15130         * ggc-internal.h: New.
15131
15132         * ggc.h: Update copyright year.
15133         (digit_string): Move to stringpool.c.
15134         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
15135         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
15136         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
15137         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
15138         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
15139         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
15140         (ggc_force_collect, ggc_get_size, ggc_statistics)
15141         (ggc_print_common_statistics): Move to ggc-internal.h.
15142         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
15143         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
15144         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
15145         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
15146         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
15147         (ggc_alloc_zone_pass_stat): Remove.
15148         (ggc_internal_alloc_stat, ggc_internal_alloc)
15149         (ggc_internal_cleared_alloc_stat): New.
15150         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
15151         (ggc_internal_vec_alloc_stat)
15152         (ggc_internal_cleared_vec_alloc_stat)
15153         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
15154         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
15155         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
15156         (ggc_cleared_alloc_ptr_array_two_args): New.
15157         (htab_create_ggc, splay_tree_new_ggc): Redefine.
15158         (ggc_splay_alloc): Change the type of the first argument to
15159         enum gt_types_enum.
15160         (ggc_alloc_string): Make macro.
15161         (ggc_alloc_string_stat): New.
15162         (ggc_strdup): Redefine.
15163         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
15164         (ggc_alloc_rtvec_sized): New.
15165         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
15166         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
15167         (ggc_internal_cleared_alloc_zone_stat)
15168         (ggc_internal_zone_alloc_stat)
15169         (ggc_internal_zone_cleared_alloc_stat)
15170         (ggc_internal_zone_vec_alloc_stat)
15171         (ggc_alloc_zone_rtx_def_stat)
15172         (ggc_alloc_zone_tree_node_stat)
15173         (ggc_alloc_zone_cleared_tree_node_stat)
15174         (ggc_alloc_cleared_gimple_statement_d_stat): New.
15175
15176         * ggc-common.c: Include ggc-internal.h.
15177         (ggc_internal_cleared_alloc_stat): Rename from
15178         ggc_alloc_cleared_stat.
15179         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
15180         (ggc_calloc): Remove.
15181         (ggc_cleared_alloc_htab_ignore_args): New.
15182         (ggc_cleared_alloc_ptr_array_two_args): New.
15183         (ggc_splay_alloc): Add obj_type parameter.
15184         (init_ggc_heuristics): Formatting fixes.
15185
15186         * ggc-none.c: Update copyright year.
15187         (ggc_alloc_stat): Rename to ggc_alloc_stat.
15188         (ggc_alloc_cleared_stat): Rename to
15189         ggc_internal_cleared_alloc_stat.
15190         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15191
15192         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
15193         Remove references to ggc_alloc in comments.
15194         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
15195         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
15196         (new_ggc_zone, destroy_ggc_zone): Remove.
15197         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15198
15199         * ggc-zone.c: Include ggc-internal.h.  Remove references to
15200         ggc_alloc in comments.
15201         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
15202         (ggc_internal_alloc_zone_pass_stat): New.
15203         (ggc_internal_cleared_alloc_zone_stat): New.
15204         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
15205         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
15206         (new_ggc_zone, destroy_ggc_zone): Remove.
15207
15208         * stringpool.c: Update copyright year.  Include ggc-internal.h
15209         (digit_vector): Make static.
15210         (digit_string): Moved from ggc.h.
15211         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
15212         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
15213
15214         * Makefile.in (GGC_INTERNAL_H): New.
15215         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
15216         $(GGC_INTERNAL_H) to dependencies.
15217
15218         * gentype.c: Update copyright year.
15219         (walk_type): Accept variable_size GTY option.
15220         (USED_BY_TYPED_GC_P): New macro.
15221         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
15222         whitespace at the end of strings.
15223         (get_type_specifier, variable_size_p): New functions.
15224         (alloc_quantity, alloc_zone): New enums.
15225         (write_typed_alloc_def): New function.
15226         (write_typed_struct_alloc_def): Likewise.
15227         (write_typed_typed_typedef_alloc_def): Likewise.
15228         (write_typed_alloc_defns): Likewise.
15229         (output_typename, write_splay_tree_allocator_def): Likewise.
15230         (write_splay_tree_allocators): Likewise.
15231         (main): Call write_typed_alloc_defns and
15232         write_splay_tree_allocators.
15233
15234         * lto-streamer.h (lto_file_decl_data_ptr): New.
15235
15236         * passes.c (order): Define using cgraph_node_ptr.
15237
15238         * strinpool.c (struct string_pool_data): Declare nested_ptr using
15239         ht_identifier_ptr.
15240
15241         * gimple.h (union gimple_statement_d): Likewise.
15242
15243         * rtl.h (struct rtx_def): Likewise.
15244         (struct rtvec_def): Likewise.
15245
15246         * tree.h (union tree_node): Likewise.
15247
15248         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
15249
15250         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
15251
15252         * tree-scalar-evolution.c (scev_initialize): Likewise.
15253
15254         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
15255
15256         * dwarf2asm.c (dw2_force_const_mem): Likewise.
15257
15258         * omp-low.c (lower_omp_critical): Likewise.
15259
15260         * bitmap.h (struct bitmap_head_def): Update comment to not
15261         reference ggc_alloc.
15262
15263         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
15264
15265         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
15266
15267         * ipa-prop.c (duplicate_ggc_array): Rename to
15268         duplicate_ipa_jump_func_array.  Use typed GC allocation.
15269         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
15270
15271         * gimple.c (gimple_alloc_stat): Use
15272         ggc_alloc_cleared_gimple_statement_d_stat.
15273
15274         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
15275
15276         * tree.c (make_node_stat): Use
15277         ggc_alloc_zone_cleared_tree_node_stat.
15278         (make_tree_vec_stat): Likewise.
15279         (build_vl_exp_stat): Likewise.
15280         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
15281         (make_tree_binfo_stat): Likewise.
15282         (tree_cons_stat): Likewise.
15283
15284         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
15285         (shallow_copy_rtx_stat): Likewise.
15286         (make_node_stat): Likewise.
15287
15288         * lto-symtab.c: Fix comment.
15289
15290         * tree-cfg.c (create_bb): Update comment to not reference
15291         ggc_alloc_cleared.
15292         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
15293
15294         * varpool.c (varpool_node): Use typed GC allocation.
15295         (varpool_extra_name_alias): Likewise.
15296
15297         * varasm.c (emutls_decl): Likewise.
15298         (get_unnamed_section): Likewise.
15299         (get_noswitch_section): Likewise.
15300         (get_section): Likewise.
15301         (get_block_for_section): Likewise.
15302         (build_constant_desc): Likewise.
15303         (create_constant_pool): Likewise.
15304         (force_const_mem): Likewise.
15305
15306         * tree.c (build_vl_exp_stat): Likewise.
15307         (build_real): Likewise.
15308         (build_string): Likewise.
15309         (decl_debug_expr_insert): Likewise.
15310         (decl_value_expr_insert): Likewise.
15311         (type_hash_add): Likewise.
15312         (build_omp_clause): Likewise.
15313
15314         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
15315
15316         * tree-ssa.c (init_tree_ssa): Likewise.
15317
15318         * tree-ssa-structalias.c (heapvar_insert): Likewise.
15319
15320         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15321
15322         * tree-ssa-loop-niter.c (record_estimate): Likewise.
15323
15324         * tree-ssa-alias.c (get_ptr_info): Likewise.
15325
15326         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15327
15328         * tree-phinodes.c (allocate_phi_node): Likewise.
15329
15330         * tree-iterator.c (tsi_link_before): Likewise.
15331         (tsi_link_after): Likewise.
15332
15333         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15334
15335         * tree-dfa.c (create_var_ann): Likewise.
15336
15337         * tree-cfg.c (create_bb): Likewise.
15338
15339         * toplev.c (alloc_for_identifier_to_locale): Likewise.
15340         (general_init): Likewise.
15341
15342         * stringpool.c (stringpool_ggc_alloc): Likewise.
15343         (gt_pch_save_stringpool): Likewise.
15344
15345         * sese.c (if_region_set_false_region): Likewise.
15346
15347         * passes.c (do_per_function_toporder): Likewise.
15348
15349         * optabs.c (set_optab_libfunc): Likewise.
15350         (set_conv_libfunc): Likewise.
15351
15352         * lto-symtab.c (lto_symtab_register_decl): Likewise.
15353
15354         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15355         (input_eh_region): Likewise.
15356         (input_eh_lp): Likewise.
15357         (make_new_block): Likewise.
15358         (unpack_ts_real_cst_value_fields): Likewise.
15359
15360         * lto-section-in.c (lto_new_in_decl_state): Likewise.
15361
15362         * lto-cgraph.c (input_node_opt_summary): Likewise.
15363
15364         * loop-init.c (loop_optimizer_init): Likewise.
15365
15366         * lambda.h (lambda_vector_new): Likewise.
15367
15368         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
15369
15370         * ira.c (update_equiv_regs): Likewise.
15371
15372         * ipa.c (cgraph_node_set_new): Likewise.
15373         (cgraph_node_set_add): Likewise.
15374         (varpool_node_set_new): Likewise.
15375         (varpool_node_set_add): Likewise.
15376
15377         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
15378         (duplicate_ipa_jump_func_array): Likewise.
15379         (ipa_read_node_info): Likewise.
15380
15381         * ipa-cp.c (ipcp_create_replace_map): Likewise.
15382
15383         * integrate.c (get_hard_reg_initial_val): Likewise.
15384
15385         * gimple.c (gimple_alloc_stat): Likewise.
15386         (gimple_build_omp_for): Likewise.
15387         (gimple_seq_alloc): Likewise.
15388         (gimple_copy): Likewise.
15389
15390         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
15391         (gsi_insert_after_without_update): Likewise.
15392
15393         * function.c (add_frame_space): Likewise.
15394         (insert_temp_slot_address): Likewise.
15395         (assign_stack_temp_for_type): Likewise.
15396         (allocate_struct_function): Likewise.
15397         (types_used_by_var_decl_insert): Likewise.
15398
15399         * except.c (init_eh_for_function): Likewise.
15400         (gen_eh_region): Likewise.
15401         (gen_eh_region_catch): Likewise.
15402         (gen_eh_landing_pad): Likewise.
15403         (add_call_site): Likewise.
15404
15405         * emit-rtl.c (get_mem_attrs): Likewise.
15406         (get_reg_attrs): Likewise.
15407         (start_sequence): Likewise.
15408         (init_emit): Likewise.
15409
15410         * dwarf2out.c (new_cfi): Likewise.
15411         (queue_reg_save): Likewise.
15412         (dwarf2out_frame_init): Likewise.
15413         (new_loc_descr): Likewise.
15414         (find_AT_string): Likewise.
15415         (new_die): Likewise.
15416         (add_var_loc_to_decl): Likewise.
15417         (clone_die): Likewise.
15418         (clone_as_declaration): Likewise.
15419         (break_out_comdat_types): Likewise.
15420         (new_loc_list): Likewise.
15421         (loc_descriptor): Likewise.
15422         (add_loc_descr_to_each): Likewise.
15423         (add_const_value_attribute): Likewise.
15424         (tree_add_const_value_attribute): Likewise.
15425         (add_comp_dir_attribute): Likewise.
15426         (add_name_and_src_coords_attributes): Likewise.
15427         (lookup_filename): Likewise.
15428         (store_vcall_insn): Likewise.
15429         (dwarf2out_init): Likewise.
15430
15431         * dbxout.c (dbxout_init): Likewise.
15432
15433         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15434
15435         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15436
15437         * config/score/score7.c (score7_output_external): Likewise.
15438
15439         * config/score/score3.c (score3_output_external): Likewise.
15440
15441         * config/s390/s390.c (s390_init_machine_status): Likewise.
15442
15443         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15444         (rs6000_init_machine_status): Likewise.
15445         (output_toc): Likewise.
15446
15447         * config/pa/pa.c (pa_init_machine_status): Likewise.
15448         (get_deferred_plabel): Likewise.
15449
15450         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15451
15452         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15453
15454         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15455
15456         * config/mep/mep.c (mep_init_machine_status): Likewise.
15457         (mep_note_pragma_flag): Likewise.
15458
15459         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15460
15461         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15462
15463         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15464
15465         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15466         (i386_pe_maybe_record_exported_symbol): Likewise.
15467
15468         * config/i386/i386.c (get_dllimport_decl): Likewise.
15469         (ix86_init_machine_status): Likewise.
15470         (assign_386_stack_local): Likewise.
15471
15472         * config/frv/frv.c (frv_init_machine_status): Likewise.
15473
15474         * config/darwin.c (machopic_indirection_name): Likewise.
15475
15476         * config/cris/cris.c (cris_init_machine_status): Likewise.
15477
15478         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15479
15480         * config/avr/avr.c (avr_init_machine_status): Likewise.
15481
15482         * config/arm/arm.c (arm_init_machine_status): Likewise.
15483
15484         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15485         (alpha_need_linkage): Likewise.
15486         (alpha_use_linkage): Likewise.
15487
15488         * cgraph.c (cgraph_allocate_node): Likewise.
15489         (cgraph_create_edge_1): Likewise.
15490         (cgraph_create_indirect_edge): Likewise.
15491         (cgraph_add_asm_node): Likewise.
15492
15493         * cfgrtl.c (init_rtl_bb_info): Likewise.
15494
15495         * cfgloop.c (alloc_loop): Likewise.
15496         (rescan_loop_exit): Likewise.
15497
15498         * cfg.c (init_flow): Likewise.
15499         (alloc_block): Likewise.
15500         (unchecked_make_edge): Likewise.
15501
15502         * c-parser.c (c_parse_init): Likewise.
15503         (c_parse_file): Likewise.
15504
15505         * c-decl.c (bind): Likewise.
15506         (record_inline_static): Likewise.
15507         (push_scope): Likewise.
15508         (make_label): Likewise.
15509         (lookup_label_for_goto): Likewise.
15510         (finish_struct): Likewise.
15511         (finish_enum): Likewise.
15512         (c_push_function_context): Likewise.
15513
15514         * bitmap.c (bitmap_element_allocate): Likewise.
15515         (bitmap_gc_alloc_stat): Likewise.
15516
15517         * alias.c (record_alias_subset): Likewise.
15518         (init_alias_analysis): Likewise.
15519
15520 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
15521
15522         * fold-const.c (fold_comparison): Remove redundant parenthesis.
15523         * tree-inline.c (expand_call_inline): Pass translated return value of
15524         cgraph_inline_failed_string to diagnostic function.
15525
15526 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
15527             Shujing Zhao  <pearly.zhao@oracle.com>
15528
15529         PR c/37724
15530         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
15531         implicit bad conversions is initialization.
15532         (error_init): Use gmsgid instead of msgid for argument name and change
15533         the call for error.
15534         (pedwarn_init): Use gmsgid instead of msgid for argument name and
15535         change the call for pedwarn.
15536         (warning_init): Use gmsgid instead of msgid for argument name and
15537         change the call for warning.
15538
15539 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
15540
15541         * config/mips/mips-protos.h (mips_print_operand): Delete.
15542         (mips_print_operand_address): Delete.
15543         * config/mips/mips.h (mips_print_operand_punct): Delete.
15544         (PRINT_OPERAND): Delete.
15545         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
15546         (PRINT_OPERAND_ADDRESS): Delete.
15547         * config/mips/mips.c (mips_print_operand_punct): Make static.
15548         (mips_print_operand_address): Make static.
15549         (mips_print_operand): Make static.  Call
15550         mips_print_operand_punct_valid_p.
15551         (mips_print_operand_punct_valid_p): New function.
15552         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15553         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
15554
15555 2010-06-07  Jan Hubicka  <jh@suse.cz>
15556
15557         PR middle-end/44454
15558         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
15559         are allocated.
15560
15561 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
15562
15563         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
15564         name of RECORD.
15565
15566 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15567
15568         * doc/sourcebuild.texi (Effective-Target Keywords, Other
15569         attributes): Document gas.
15570
15571 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
15572
15573         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
15574         <TYPE_LEA>: Split instruction.
15575         <default>: Remove alternative 2 handling.
15576         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
15577         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
15578         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
15579
15580         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
15581         (ashift_zext lea splitter): Use DImode for multiplication.
15582
15583         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
15584         to generate addition.
15585
15586 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
15587
15588         * common.opt (fira-verbose): Use Var.
15589         (fpcc-struct-return): Use Init instead of VarExists.
15590         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
15591         toplev.c.
15592         * flags.h (flag_signed_char, flag_short_enums,
15593         flag_pcc_struct_return, flag_ira_verbose,
15594         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
15595         * toplev.c (flag_detailed_statistics, flag_signed_char,
15596         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
15597         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
15598         * toplev.h (flag_crossjumping, flag_if_conversion,
15599         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
15600         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
15601         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
15602         flag_cprop_registers, time_report, flag_ira_loop_pressure,
15603         flag_ira_coalesce, flag_ira_move_spills,
15604         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
15605
15606 2010-06-07  Jan Hubicka  <jh@suse.cz>
15607
15608         * df-core.c (df_analyze_problem): Do verification after allocation.
15609
15610         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
15611         (df_lr_alloc): Initialize problem data; move bitmaps to
15612         lr_bitmaps obstack.
15613         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
15614         (df_lr_verify_solution_start): Do not initialize problem data;
15615         allocate bitmaps in lr_bitmaps.
15616         (df_lr_verify_solution_end): Do not free problem data.
15617
15618 2010-06-07  Jan Hubicka  <jh@suse.cz>
15619
15620         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
15621         if caller is noreturn.
15622         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
15623         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
15624         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
15625         * ipa-pure-const.c (check_decl): Add IPA parameter.
15626         (state_from_flags): New function.
15627         (better_state, worse_state): New functions.
15628         (check_call): When in IPA mode, do not care about callees.
15629         (check_load, check_store): Update.
15630         (check_ipa_load, check_ipa_store): New.
15631         (check_stmt): When in IPA mode, use IPA checkers.
15632         (analyze_function): Use state_from_flags.
15633         (propagate): Check indirect edges and references.
15634
15635 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
15636
15637         PR rtl-optimization/44404
15638         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
15639         of count_occurrences to see if it's safe to modify mem_insn.
15640
15641 2010-06-07  Richard Guenther  <rguenther@suse.de>
15642
15643         * gimplify.c (gimplify_cleanup_point_expr): For empty body
15644         and EH-only cleanup drop the cleanup instead of inserting it
15645         unconditionally.
15646
15647 2010-06-07  Ira Rosen  <irar@il.ibm.com>
15648
15649         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
15650         documentation.
15651         * targhooks.c (default_builtin_vectorization_cost): New function.
15652         * targhooks.h (default_builtin_vectorization_cost): Declare.
15653         * target.h (enum vect_cost_for_stmt): Define.
15654         (builtin_vectorization_cost): Change argument and comment.
15655         * tree-vectorizer.h: Remove cost model macros.
15656         * tree-vect-loop.c: Include target.h.
15657         (vect_get_cost): New function.
15658         (vect_estimate_min_profitable_iters): Replace cost model macros with
15659         calls to vect_get_cost.
15660         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
15661         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
15662         default implementation.
15663         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
15664         calls to target hook builtin_vectorization_cost.
15665         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
15666         Likewise.
15667         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
15668         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
15669         implementation to return costs.
15670         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
15671         * config/spu/spu.h: Remove vectorizer cost model macros.
15672         * config/i386/i386.h: Likewise.
15673         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
15674         a call to target hook builtin_vectorization_cost.
15675
15676 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
15677
15678         PR target/44319
15679         * config/i386/i386.c (override_options): Turn zee pass on for level 2
15680         and above and defer till target is known.
15681         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
15682         turn off otherwise.
15683
15684 2010-05-25  Jan Hubicka  <jh@suse.cz>
15685
15686         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
15687         (df_compact_blocks): Likewise.
15688         * df.h (struct df): Turn hardware_regs_used,
15689         regular_block_artificial_uses, eh_block_artificial_uses,
15690         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
15691         bitmap_head.
15692         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
15693         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
15694         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
15695         df_scan_blocks, df_insn_delete, df_insn_rescan,
15696         df_insn_rescan_debug_internal, df_insn_rescan_all,
15697         df_process_deferred_rescans, df_process_deferred_rescans,
15698         df_notes_rescan, df_get_call_refs, df_get_call_refs,
15699         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
15700         df_record_entry_block_defs, df_record_exit_block_uses,
15701         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
15702         df_scan_verify): Update.
15703
15704 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
15705
15706         PR c++/44188
15707         * c-common.c (is_typedef_decl): Move this definition ...
15708         * tree.c (is_typedef_decl): ... here.
15709         (typdef_variant_p): Move definition here from cp/tree.c.
15710         * c-common.h (is_typedef_decl): Move this declaration ...
15711         * tree.h (is_typedef_decl): ... here.
15712         (typedef_variant_p): Move declaration here from cp/cp-tree.h
15713         * dwarf2out.c (is_naming_typedef_decl): New function.
15714         (gen_tagged_type_die): Split out of ...
15715         (gen_type_die_with_usage): ... this function. When an anonymous
15716         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
15717         is emitted for the typedef.
15718         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
15719         anonymous tagged types.
15720
15721 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15722
15723         PR c/20000
15724         * c-decl.c (grokdeclarator): Delete warning.
15725
15726 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
15727
15728         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
15729         newly built CALL_EXPR.
15730         * tree-profile.c (tree_profiling): Don't profile functions produced
15731         for built-in stuff.
15732
15733 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
15734
15735         PR bootstrap/44427
15736         PR bootstrap/44428
15737         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
15738         endianness-independent.
15739
15740 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
15741
15742         * c-common.c: Move to c-family/.
15743         * c-common.def: Likewise.
15744         * c-common.h: Likewise.
15745         * c-cppbuiltin.c: Likewise.
15746         * c-dump.c: Likewise.
15747         * c-format.c: Likewise.
15748         * c-format.h : Likewise.
15749         * c-gimplify.c: Likewise.
15750         * c-lex.c: Likewise.
15751         * c-omp.c: Likewise.
15752         * c.opt: Likewise.
15753         * c-opts.c: Likewise.
15754         * c-pch.c: Likewise.
15755         * c-ppoutput.c: Likewise.
15756         * c-pragma.c: Likewise.
15757         * c-pragma.h: Likewise.
15758         * c-pretty-print.c: Likewise.
15759         * c-pretty-print.h: Likewise.
15760         * c-semantics.c: Likewise.
15761         * stub-objc.c: Likewise.
15762
15763         * gengtype.c (get_file_langdir): Special-case files in c-family/.
15764         (get_output_file_with_visibility): Fix name for c-common.h.
15765         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
15766
15767         * c-tree.h: Update include path for moved files.
15768         * c-lang.c: Likewise.
15769         * c-lang.h: Likewise.
15770         * c-parser.c: Likewise.
15771         * c-convert.c: Likewise.
15772         * c-decl.c: Likewise.
15773         * c-objc-common.c: Likewise.
15774         * configure.ac: Make sure c-family/ exists in the build directory.
15775         * configure: Regenerate.
15776         * Makefile.in: Update paths for moved files.  Regroup files per
15777         location and update dependencies.  Move generated_files down after
15778         ALL_GTFILES_H.
15779
15780         * config/spu/spu-c.c: Update paths for moved files.
15781         * config/mep/mep-pragma.c: Likewise.
15782         * config/darwin-c.c: Likewise.
15783         * config/i386/msformat-c.c: Likewise.
15784         * config/i386/i386-c.c: Likewise.
15785         * config/avr/avr-c.c: Likewise.
15786         * config/sol2-c.c: Likewise.
15787         * config/ia64/ia64-c.c: Likewise.
15788         * config/rs6000/rs6000-c.c: Likewise.
15789         * config/arm/arm.c: Likewise.
15790         * config/arm/arm-c.c: Likewise.
15791         * config/h8300/h8300.c: Likewise.
15792         * config/v850/v850-c.c: Likewise.
15793
15794         * config/t-darwin: Fix dependencies for moved files.
15795         * config/t-sol2: Fix dependencies for moved files.
15796         * config/mep/t-mep: Fix dependencies for moved files.
15797         * config/ia64/t-ia64: Fix dependencies for moved files.
15798         * config/rs6000/t-rs6000: Fix dependencies for moved files.
15799         * config/v850/t-v850: Fix dependencies for moved files.
15800         * config/v850/t-v850e: Fix dependencies for moved files.
15801
15802         * config/m32c/m32c-pragma.c
15803
15804         * po/exgettext: Look in c-family/ also.
15805
15806 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
15807
15808         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
15809         (mark_control_dependent_edges_necessary): Call it instead of marking
15810         the last statement manually.
15811         (propagate_necessity): Likewise.
15812
15813 2010-06-05  Jan Hubicka  <jh@suse.cz>
15814
15815         * basic-block.h (compute_dominance_frontiers): Updated.
15816         (compute_idf): Likewise.
15817
15818         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
15819         for dominance frontiers.
15820         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
15821         (insert_updated_phi_nodes_for): Likewise.
15822         (update_ssa): Likewise.
15823         * cfganal.c (compute_dominance_frontiers_1): Likewise.
15824         (compute_dominance_frontiers): Likewise.
15825         (compute_idf): Likewise.
15826         * df-problems.c (df_md_local_compute): Likewise.
15827
15828 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
15829
15830         * target.h (struct gcc_target): Add memory_move_cost field.
15831         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
15832         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
15833         * targhooks.c (default_memory_move_cost): New function.
15834         * targhooks.h (default_memory_move_cost): Declare function.
15835         * reload.h (memory_move_cost): Declare.
15836         (memory_move_secondary_cost): Change type of 'in' argument to bool.
15837         * reginfo.c (memory_move_cost): New function.
15838         (memory_move_secondary_cost): Change type of 'in' argument to bool.
15839         * ira.h (ira_memory_move_cost): Update comment.
15840         * ira.c (ira_memory_move_cost): Update comment.
15841         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
15842         with memory_move_cost.
15843         * postreload.c (reload_cse_simplify_set): (Ditto.).
15844         * reload1.c (choose_reload_regs): (Ditto.).
15845         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
15846         (MEMORY_MOVE_COST):  Revise documentation.
15847
15848         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
15849         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
15850         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
15851         type of 'in' argument to bool.
15852         (TARGET_MEMORY_MOVE_COST): Define.
15853
15854 2010-06-05  Jan Hubicka  <jh@suse.cz>
15855
15856         * ipa-pure-const.c (propagate): Fix typo in handling of functions
15857         that cannot return.  Be more careful when merging the results with
15858         previously known ones.
15859
15860 2010-06-05  Matthias Klose  <doko@ubuntu.com>
15861
15862         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
15863         function to add the -iplugindir option.
15864         (find_plugindir_spec_function): Add new declaration and function.
15865         (static_spec_func): Use it for "find-plugindir".
15866
15867 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
15868
15869         PR c++/44361
15870         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
15871         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
15872         statement expression.
15873
15874 2010-06-05  Jan Hubicka  <jh@suse.cz>
15875
15876         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
15877         (df_rd_problem_data): Convert sparse_invalidated_by_call,
15878         dense_invalidated_by_call to bitmap head.
15879         (df_rd_alloc, df_rd_bb_local_compute_process_def,
15880         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
15881         df_rd_start_dump, df_lr_verify_transfer_functions,
15882         df_live_verify_transfer_functions, df_chain_create_bb,
15883         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
15884         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
15885         df_simulate_one_insn_forwards, df_md_alloc,
15886         df_md_bb_local_compute_process_def,
15887         df_md_bb_local_compute_process_def, df_md_local_compute,
15888         df_md_transfer_function df_md_free): Update.
15889
15890 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
15891
15892         PR c/44322
15893         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
15894         target type for ADDR_EXPR; require no changes to qualifiers except
15895         for function types.
15896         * c-tree.h (c_build_type_variant): Remove.
15897
15898 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
15899
15900         * genautomata.c (get_excl_set): Do work per element, not per char.
15901         (check_presence_pattern_sets): Similar.
15902         (check_absence_pattern_sets): Similar.
15903
15904 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
15905
15906         * genautomata.c (curr_state_pass_num): Delete.
15907         (min_issue_delay_pass_states): Delete.
15908         (min_issue_delay): Delete.
15909         (initiate_min_issue_delay_pass_states): Delete.
15910         (output_min_issue_delay_table): Compute min_issue_delay_vect
15911         using a breadth-first search variant.
15912         (output_tables): Don't call initiate_min_issue_delay_pass_states.
15913
15914 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
15915
15916         PR boostrap/44421
15917         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
15918         (df_byte_lr_bb_local_compute): Likewise.
15919
15920 2010-06-03  Jason Merrill  <jason@redhat.com>
15921
15922         Implement noexcept operator (5.3.7)
15923         * c-common.c (c_common_reswords): Add noexcept.
15924         * c-common.h (enum rid): Add RID_NOEXCEPT.
15925
15926 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
15927
15928         * config/darwin-driver.c (darwin_default_min_version): Use
15929         GCC-specific formats in diagnostics.
15930         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
15931         diagnostics.
15932         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
15933         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
15934         eval_spec_function, handle_braces, process_brace_body, main,
15935         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
15936         getenv_spec_function, compare_version_strings,
15937         version_compare_spec_function): Use GCC-specific formats in
15938         diagnostics.
15939
15940 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
15941
15942         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
15943         that operand 0 and operand 1 are equal.
15944         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
15945         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
15946         and operand 1 are equal.
15947         <default>: Ditto.  Remove ??? comment.
15948         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
15949         and operand 1 are equal.
15950         <default>: Ditto.  Remove ??? comment.
15951         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
15952         are equal.
15953         (*add<mode>_4) <default>: Ditto.
15954         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
15955
15956 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
15957
15958         * config/i386/i386-protos.h (ix86_print_operand): Declare.
15959         * config/i386/i386.c (ix86_print_operand): Make non-static.
15960         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
15961         * output.h (output_operand): Declare.
15962         * final.c (output_operand): Make non-static.
15963
15964 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
15965
15966         PR rtl-optimization/44013
15967         * sched-deps.c (add_dependence_list_and_free): Don't free lists
15968         when processing debug insns.
15969
15970         PR debug/41371
15971         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
15972         recursing.  Check that recursion is bounded.  Rename inner var
15973         to avoid hiding incoming argument.
15974
15975 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
15976
15977         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
15978         operands[2] == 255.
15979         (*addqi_3): Ditto.
15980         (*addqi_4): Ditto.
15981         (*addqi_5): Ditto.
15982         (*addqi_ext_1_rex64): Ditto.
15983         (*addqi_ext_1): Ditto.
15984
15985         (*addqi_4): Check for incdec_operand in QImode.
15986
15987         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
15988         using SWI mode iterator.
15989         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
15990         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
15991         mode iterator.
15992         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
15993         using SWI mode iterator.
15994
15995 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15996
15997         PR c/25880
15998         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
15999         * c-format.c (gcc_diag_flag_specs): Add hash.
16000         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
16001         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
16002         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
16003         pp_c_cv_qualifiers. Handle qualifiers spelling here.
16004         (pp_c_type_qualifier_list): Call the function above.
16005         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
16006         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
16007         (WARN_FOR_QUALIFIERS): New macro.
16008         (convert_for_assignment): Use it.
16009
16010 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
16011
16012         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
16013
16014 2010-06-04  Jan Hubicka  <jh@suse.cz>
16015
16016         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
16017         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
16018         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
16019         DF_BYTE_LR_OUT): Update for embedded bitmaps.
16020         * fwprop.c (single_def_use_enter_block): Likewise.
16021         * ddg.c (create_ddg_dep_from_intra_loop_link,
16022         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
16023         * loop-iv.c (latch_dominating_def): Likewise.
16024         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
16025         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
16026         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
16027         df_rd_transfer_function, df_rd_top_dump,
16028         df_rd_bottom_dump): Update.
16029         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
16030         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
16031         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
16032         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
16033         df_lr_verify_solution_start, df_lr_verify_solution_end,
16034         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
16035         df_live_free_bb_info, df_live_alloc, df_live_reset,
16036         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
16037         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
16038         df_live_verify_solution_start, df_live_verify_solution_end,
16039         df_live_verify_transfer_functions, df_chain_create_bb,
16040         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
16041         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
16042         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
16043         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
16044         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
16045         df_byte_lr_transfer_function, df_byte_lr_top_dump,
16046         df_byte_lr_bottom_dump, df_create_unused_note,
16047         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
16048         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
16049         df_md_transfer_function, df_md_init, df_md_confluence_0,
16050         df_md_confluence_n,
16051         df_md_top_dump, df_md_bottom_dump): Update.
16052         (struct df_lr_problem_data): Embedd bitmap headers.
16053
16054 2010-06-04  Jan Hubicka  <jh@suse.cz>
16055
16056         * dce.c (dce_process_block): Do not re-scan already marked
16057         instructions.
16058
16059 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
16060
16061         PR rtl-optimization/39871
16062         PR rtl-optimization/40615
16063         PR rtl-optimization/42500
16064         PR rtl-optimization/42502
16065         * ira.c (init_reg_equiv_memory_loc: New function.
16066         (ira): Call it twice.
16067         * reload.h (calculate_elim_costs_all_insns): Declare.
16068         * ira-costs.c: Include "reload.h".
16069         (regno_equiv_gains): New static variable.
16070         (init_costs): Allocate it.
16071         (finish_costs): Free it.
16072         (ira_costs): Call calculate_elim_costs_all_insns.
16073         (find_costs_and_classes): Take estimated elimination costs
16074         into account.
16075         (ira_adjust_equiv_reg_cost): New function.
16076         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
16077         * reload1.c (init_eliminable_invariants, free_reg_equiv,
16078         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
16079         (elim_bb): New static variable.
16080         (reload): Move code out of here into init_eliminable_invariants and
16081         free_reg_equiv.  Call them.
16082         (calculate_elim_costs_all_insns): New function.
16083         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
16084         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
16085         but call note_reg_elim_costly if we turned a valid memory address
16086         into an invalid one.
16087         * Makefile.in (ira-costs.o): Depend on reload.h.
16088
16089 2010-06-04  Julian Brown  <julian@codesourcery.com>
16090
16091         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
16092         for pool ranges.
16093
16094 2010-06-04  Richard Guenther  <rguenther@suse.de>
16095
16096         PR lto/41584
16097         * cgraph.h (struct varpool_node): Add lto_file_data field.
16098         * lto-cgraph.c (input_varpool_node): Initialize it.
16099
16100 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
16101
16102         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
16103         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
16104         predicate in "type" attribute calculation.
16105         (*addsi_1_zext): Ditto.
16106         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
16107         (*addsi_2_zext): Ditto.
16108         (*add<mode>_3): Ditto.
16109         (*addsi_3_zext): Ditto.
16110         (*add<mode>_5): Ditto.
16111
16112 2010-06-03  Jan Hubicka  <jh@suse.cz>
16113
16114         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
16115         of bitmap_bit_p.
16116         * cfganal.c (compute_dominance_frontiers_1): Likewise.
16117
16118 2010-06-03  Jan Hubicka  <jh@suse.cz>
16119
16120         * df-problems.c (df_create_unused_note, df_note_bb_compute):
16121         micro-optimize the checks when to add new note.
16122
16123 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
16124
16125         * final.c (output_asm_insn): Call
16126         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
16127         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
16128         (output_address): Call targetm.asm_out.print_operand_address.
16129         Update comments.
16130         * target.h (struct gcc_target): Add print_operand,
16131         print_operand_address, and print_operand_punct_valid_p fields.
16132         * targhooks.h (default_print_operand): Declare.
16133         (default_print_operand_address): Declare.
16134         (default_print_operand_punct_valid_p): Declare.
16135         * targhooks.c (default_print_operand): Define.
16136         (default_print_operand_address): Define.
16137         (default_print_operand_punct_valid_p): Define.
16138         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
16139         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
16140         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
16141         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
16142         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
16143         * vmsdbgout.c (addr_const_to_string): Update comment.
16144         * config/i386/i386.c (print_operand): Rename to...
16145         (ix86_print_operand): ...this.  Make static.
16146         (print_operand_address): Rename to...
16147         (ix86_print_operand_address): ...this.  Make static.  Call
16148         ix86_print_operand instead of PRINT_OPERAND.
16149         (ix86_print_operand_punct_valid_p): New function.
16150         (TARGET_PRINT_OPERAND): Define.
16151         (TARGET_PRINT_OPERAND_ADDRESS): Define.
16152         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16153         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
16154         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16155         (PRINT_OPERAND): Delete.
16156         (PRINT_OPERAND_ADDRESS): Delete.
16157         * config/i386/i386-protos.h (print_operand): Delete prototype.
16158         (print_operand_address): Delete prototype.
16159
16160 2010-06-03  Richard Guenther  <rguenther@suse.de>
16161
16162         PR tree-optimization/44403
16163         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16164         Preserve pointer qualifiers.
16165         (vect_create_data_ref_ptr): Likewise.
16166
16167 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
16168
16169         PR c++/44294
16170         * defaults.h (MAX_FIXED_MODE_SIZE): New.
16171
16172         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
16173
16174 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
16175
16176         PR debug/44375
16177         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
16178         return false if merging the bbs would lead to goto_locus
16179         location being lost from the IL.
16180
16181 2010-06-03  Jan Hubicka  <jh@suse.cz>
16182             Jakub Jelinek  <jakub@redhat.com>
16183
16184         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
16185         set->regs[i] is NULL or has just one entry.
16186
16187 2010-06-03  Jan Hubicka  <jh@suse.cz>
16188
16189         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
16190         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
16191
16192 2010-06-03  Paul Brook  <paul@codesourcery.com>
16193
16194         * config/arm/arm.c (FL_TUNE): Define.
16195         (arm_default_cpu, arm_cpu_select): Remove.
16196         (all_cores): Populate core field.
16197         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
16198         (arm_find_cpu): New function.
16199         (arm_handle_option): Lookup cpu/architecture names.
16200         (arm_override_options): Cleanup mcpu/march/mtune handling.
16201         (arm_file_start): Ditto.
16202
16203 2010-06-03  Alan Modra  <amodra@gmail.com>
16204
16205         PR target/44169
16206         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
16207         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
16208         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
16209         (rs6000_emit_load_toc_table): Likewise.
16210
16211 2010-06-02  Jan Hubicka  <jh@suse.cz>
16212
16213         * passes.c (init_optimization_passes): Put ipa reference
16214         after ipa pure-const.
16215
16216 2010-06-02  Jan Hubicka  <jh@suse.cz>
16217
16218         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
16219         calls_read_all and calls_write_all.
16220         (get_reference_optimization_summary): Fix formatting.
16221         (is_proper_for_analysis): Check that decl is not readonly.
16222         (propagate_bits): Check CONST/PURE/noreturn flags.
16223         (ipa_init): Move all_module_statics to optimization_summary_obstack.
16224         (analyze_function): Ignore indirect edges.
16225         (copy_global_bitmap): For all module statics, do nothing.
16226         (generate_summary): Do not print calls_read_all/calls_write_all.
16227         (read_write_all_from_decl): Take node as argument; check
16228         cgraph_node_cannot_return.
16229         (propagate): Reorganize read_all/write_all computation;
16230         check indirect edges; check ecf flags; use all_module_statics
16231         in the results; do not free all_module_statics.
16232         (stream_out_bitmap): Handle all_module_statics.
16233         (ipa_reference_write_optimization_summary): Likewise; use
16234         varpool/cgraph encoders to get boundaries.
16235         (ipa_reference_read_optimization_summary): Read in all_module_statics;
16236         use it when possible.
16237
16238 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
16239
16240         PR target/44218
16241         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
16242         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
16243
16244         * doc/extend.texi (powerpc builtins): Document vec_recip,
16245         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
16246
16247         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
16248         (rs6000_emit_swrsqrt): Ditto.
16249         (rs6000_emit_swdivsf): Delete.
16250         (rs6000_emit_swdivdf): Ditto.
16251         (rs6000_emit_swrsqrtsf): Ditto.
16252
16253         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
16254         describe the reciprocal estimate support for each type.
16255         (recip_options): Map -mrecip=<opt> into option bits.
16256         (gen_2arg_fn_t): New typedef for binary rtx gen function.
16257         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
16258         reciprocal estimate instructions.
16259         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
16260         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
16261         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
16262         cost information if -mdebug=cost or -mdebug=reg.
16263         (rs6000_override_options): Set -mrecip-precision for power6, and
16264         power7 machines.  If -mvsx or -mdfp, enable various options that
16265         came in previous instruction set ISAs, unless the option was
16266         explicitly disabled by the command line option.  Parse
16267         -mrecip=<opt> options.
16268         (rs6000_builtin_vectorized_function): Add support for vectorizing
16269         the reciprocal estimate builtins and expansions.
16270         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
16271         (bdesc_2arg): Add reciprocal estimate builtins.
16272         (bdesc_1arg): Add reciprocal square root estimate builtins.
16273         (rs6000_expand_builtin): Rewrite to use a switch statement,
16274         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
16275         (rs6000_init_builtins): Create declarations for reciprocal
16276         estimate builtins.
16277         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
16278         sized, prefer traditional floating point registers, if integer
16279         vector types, prefer altivec registers.  Don't actually look at
16280         the memory address any more.
16281         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
16282         builtins.
16283         (rs6000_load_constant_and_splat): New helper function to load up
16284         the constant for reciprocal estimate instructions.
16285         (rs6000_emit_madd): New helper function for generating
16286         multiply/add type instructions, based on the current switches.
16287         (rs6000_emit_msub): Ditto.
16288         (rs6000_emit_mnsub): Ditto.
16289         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
16290         replace a divide with a reciprocal estimate and fixup, adding
16291         support for machines with high precision and vectors.
16292         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
16293         low precision machines.
16294         (rs6000_emit_swdiv): New common function to be called to replace a
16295         division with reciprocal estimate and fixup.
16296         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
16297         for double and vector types.  Add support for high precision machines.
16298
16299         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
16300         the reciprocal estimate instructions can be generated.
16301         (TARGET_FRE): Ditto.
16302         (TARGET_FRSQRTES): Ditto.
16303         (TARGET_FRSQRTE): Ditto.
16304         (RS6000_RECIP_*): New macros for reciprocal estimate support.
16305
16306         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
16307         square root estimate on vectors.
16308         (re<mode>2): New insn for reciprocal division estimate on vectors.
16309
16310         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
16311         New builtin.
16312         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
16313         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
16314         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
16315         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
16316         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
16317         (RS6000_BUILTIN_RSQRT): Ditto.
16318         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
16319         floating point builtin.
16320
16321         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
16322         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
16323         __RECIP_PRECISION__ based on the command line switches.
16324         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
16325
16326         * config/rs6000/rs6000.opt (-mrecip): Document add support for
16327         replacing division instructions with reciprocal estimate and fixup.
16328         (-mrecip=<opt>): New option.
16329         (-mrecip-precision): Ditto.
16330
16331         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
16332         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
16333         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
16334         precision scalar.
16335
16336         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
16337         (UNSPEC_VREFP): Ditto.
16338         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
16339         conterparts with regard to support of -mno-fused-madd and -ffast-math.
16340         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
16341         reciprocal estimate instructions to be generated.
16342         (altivec_vrefp): Ditto.
16343
16344         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
16345         estimate support.
16346         (rreg): New mode attribute for reciprocal estimate support.
16347         (recip<mode>3): New insn for division using reciprocal estimate
16348         and fixup builtins.
16349         (divide define_split): New define_split to convert floating point
16350         division to use reciprocal estimate if the user used the
16351         appropriate options and the split is run when we can add new
16352         pseudo registers for the fixup.
16353         (rsqrt<mode>2): New insn for reciprocal square root support.
16354         (recipsf3): Move into recip<mode>3.
16355         (recipdf3): Ditto.
16356         (fres): Use TARGET_FRES.
16357         (rsqrtsf2): Move into rsqrt<mode>2.
16358         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
16359         (copysignsf3): Add support for VSX.
16360         (fred): Use TARGET_FRE.
16361         (fred_fpr): Ditto.
16362         (rsqrtdf_internal1): New function for frsqrte instruciton.
16363
16364         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
16365         (vec_rsqrt): Ditto.
16366
16367 2010-06-03  Richard Guenther  <rguenther@suse.de>
16368
16369         PR middle-end/44291
16370         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
16371         (set_user_assembler_libfunc): Likewise.
16372
16373 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
16374
16375         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
16376         defaults.h.
16377         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
16378         to defaults.h
16379         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
16380         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
16381         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
16382         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
16383         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
16384         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
16385         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
16386         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
16387         * defaults.h: Updated for above mentioned changes.
16388
16389 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
16390
16391         * c-common.c: Remove header include of tm_p.h.
16392         * Makefile.in (c-common.o): Remove TM_P_H dependency.
16393
16394 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
16395
16396         * tree.h (struct tree_decl_map): New type.
16397         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
16398         (tree_decl_map_hash): New prototype.
16399         (debug_expr_for_decl, value_expr_for_decl): Change into
16400         tree_decl_map hashtab from tree_map.
16401         (init_ttree): Adjust initialization.
16402         (tree_decl_map_hash): New function.
16403         (decl_debug_expr_lookup, decl_debug_expr_insert,
16404         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
16405
16406 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16407
16408         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
16409         linker emulations.
16410         * configure: Regenerate.
16411         * config.in: Regenerate.
16412
16413         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
16414         (X86_64_EMULATION): Define.
16415         (TARGET_LD_EMULATION): Use them.
16416
16417         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
16418         (SPARC64_EMULATION): Define.
16419         (LINK_ARCH_SPEC): Use them.
16420
16421 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
16422
16423         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
16424         smallest_mode_for_size for computing the precision types of new
16425         graphite IVs.  Do not call lang_hooks.types.type_for_size.
16426
16427 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
16428
16429         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
16430         information.
16431         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
16432
16433 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
16434
16435         PR middle-end/44363
16436         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
16437         return false instead.
16438
16439 2010-06-02  Jan Hubicka  <jh@suse.cz>
16440
16441         PR middle-end/44295
16442         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
16443         create new cgraph node to check callee.
16444
16445 2010-06-02  Richard Guenther  <rguenther@suse.de>
16446
16447         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
16448
16449 2010-06-02  Richard Guenther  <rguenther@suse.de>
16450
16451         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
16452         (lto_wrapper_cleanup): ... this.  Do not exit.
16453         (fatal): Adjust.  Exit here.
16454         (fatal_perror): Likewise.
16455         (fatal_signal): New function.
16456         (main): Set up signal handlers to cleanup temporary files.
16457         * Makefile.in (lto-wrapper.o): Adjust dependencies.
16458
16459 2010-06-02  Richard Guenther  <rguenther@suse.de>
16460
16461         PR tree-optimization/44377
16462         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
16463
16464 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16465
16466         * config/s390/2097.md (z10_fhex): Remove insn reservation.
16467         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
16468         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
16469         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
16470         instruction.
16471         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
16472
16473 2010-06-02  Jan Hubicka  <jh@suse.cz>
16474
16475         * bitmap.c (bitmap_descriptor): Add search_iter.
16476         (bitmap_find_bit): Increment it.
16477         (print_statistics): Print it.
16478
16479 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
16480
16481         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
16482         instead of gimple_build_call_vec.  Delete unnecessary local variable.
16483
16484 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
16485
16486         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
16487         change from yesterday.
16488
16489 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
16490
16491         * c-ada-spec.c: Clean up redundant includes.
16492
16493 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
16494
16495         * gimplify.c: Do not include except.h and optabs.h.
16496         (gimplify_body): Do not initialize RTL profiling.
16497         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
16498         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
16499         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
16500         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
16501         langhooks.h.
16502
16503         * tree-pretty-print.h: Include pretty-print.h.
16504         * gimple-pretty-print.h: Include pretty-print.h.
16505
16506         * tree-pretty-print.c: Do not include diagnostic.h.
16507         * tree-vrp.c: Likewise.
16508         * tree-tailcall.c: Likewise
16509         * tree-scalar-evolution.c: Likewise
16510         * tree-ssa-dse.c: Likewise
16511         * tree-chrec.c: Likewise
16512         * tree-ssa-sccvn.c: Likewise
16513         * tree-ssa-copyrename.c: Likewise
16514         * tree-nomudflap.c: Likewise
16515         * tree-call-cdce.c: Likewise
16516         * tree-stdarg.c: Likewise
16517         * tree-ssa-math-opts.c: Likewise
16518         * tree-nrv.c: Likewise
16519         * tree-ssa-sink.c: Likewise
16520         * tree-browser.c: Likewise
16521         * tree-ssa-loop-ivcanon.c: Likewise
16522         * tree-ssa-loop.c: Likewise
16523         * tree-parloops.c: Likewise
16524         * tree-ssa-address.c: Likewise
16525         * tree-ssa-ifcombine.c: Likewise
16526         * tree-if-conv.c: Likewise
16527         * tree-data-ref.c: Likewise
16528         * tree-affine.c: Likewise
16529         * tree-ssa-phiopt.c: Likewise
16530         * tree-ssa-coalesce.c: Likewise
16531         * tree-ssa-pre.c: Likewise
16532         * tree-ssa-live.c: Likewise
16533         * tree-predcom.c: Likewise
16534         * tree-ssa-forwprop.c: Likewise
16535         * tree-ssa-dce.c: Likewise
16536         * tree-ssa-ter.c: Likewise
16537         * tree-ssa-loop-prefetch.c: Likewise
16538         * tree-optimize.c: Likewise
16539         * tree-ssa-phiprop.c: Likewise
16540         * tree-object-size.c: Likewise
16541         * tree-outof-ssa.c: Likewise
16542         * tree-ssa-structalias.c: Likewise
16543         * tree-switch-conversion.c: Likewise
16544         * tree-ssa-reassoc.c: Likewise
16545         * tree-ssa-operands.c: Likewise
16546         * tree-vectorizer.c: Likewise
16547         * tree-vect-data-refs.c: Likewise
16548         * tree-vect-generic.c: Likewise
16549         * tree-vect-stmts.c: Likewise
16550         * tree-vect-patterns.c: Likewise
16551         * tree-vect-slp.c: Likewise
16552         * tree-vect-loop.c: Likewise
16553         * tree-ssa-loop-ivopts.c: Likewise
16554         * tree-ssa-loop-im.c: Likewise
16555         * tree-ssa-loop-niter.c: Likewise
16556         * tree-ssa-loop-unswitch.c: Likewise
16557         * tree-ssa-loop-manip.c: Likewise
16558         * tree-ssa-loop-ch.c: Likewise
16559         * tree-dump.c: Likewise
16560         * tree-complex.c: Likewise
16561
16562         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
16563         * tree-ssa-uninit.c: Likewise
16564         * tree-ssa-threadupdate.c: Likewise
16565         * tree-ssa-uncprop.c: Likewise
16566         * tree-ssa-ccp.c: Likewise
16567         * tree-ssa-dom.c: Likewise
16568         * tree-ssa-propagate.c: Likewise
16569         * tree-ssa-alias.c: Likewise
16570         * tree-dfa.c: Likewise
16571         * tree-cfgcleanup.c: Likewise
16572         * tree-sra.c: Likewise
16573         * tree-ssa-copy.c: Likewise
16574         * tree-ssa.c: Likewise
16575         * tree-profile.c: Likewise
16576         * tree-cfg.c: Likewise
16577         * tree-ssa-threadedge.c: Likewise
16578         * tree-vect-loop-manip.c: Likewise
16579
16580         * tree-inline.c: Do not include diagnostic.h and expr.h.
16581         Include rtl.h.
16582         (copy_decl_for_dup_finish): Do not use NULL_RTX.
16583
16584         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
16585         * tree-loop-distribution.c: Likewise.
16586
16587 2010-06-01  Jan Hubicka  <jh@suse.cz>
16588
16589         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
16590
16591 2010-06-01  Jan Hubicka  <jh@suse.cz>
16592
16593         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
16594         remove return value.
16595         (split_bbs_on_noreturn_calls) .... here.
16596         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
16597         * tree-flow.h (fixup_noreturn_call): New.
16598
16599 2010-06-01  Jan Hubicka  <jh@suse.cz>
16600
16601         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
16602
16603 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
16604
16605         * tree.h (build_nt_call_list): Delete.
16606         * tree.c (build_nt_call_list): Delete.
16607
16608 2010-06-01  Jan Hubicka  <jh@suse.cz>
16609
16610         * fwprop.c: Make emit-rtl.h include last.
16611         * rtlanal.c: Include emit-rtl.h.
16612         * genautomata.c: Output emit-rtl include into insn-automata.c
16613         * df-scan.c: Include emit-rtl.h.
16614         * haifa-sched.c: Indlude emit-rtl.h.
16615         * mode-switching.c: Indlude emit-rtl.h.
16616         * graph.c: Indlude emit-rtl.h.
16617         * sel-sched.c: Include emit-rtl.h.
16618         * sel-sched-ir.c: Include emit-rtl.h.
16619         * ira-build.c: Include emit-rtl.h.
16620         * emit-rtl.c (first_insn, last_insn): Remove defines.
16621         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
16622         Move to emit-rtl.h.
16623         (set_new_first_and_last_insn, get_last_insn_anywhere,
16624         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
16625         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
16626         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
16627         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
16628         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
16629         Use accessor functions.
16630         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
16631          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
16632         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
16633         mem_expr_equal_p): Move here from rtl.h.
16634         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
16635         Move here from emit-rtl.c; make inline.
16636         * cfglayout.h: Include emit-rtl.h.
16637         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
16638          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
16639         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
16640         mem_expr_equal_p, get_insns, set_first-insn,
16641         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
16642         * reg-stack.c: Include emit-rtl.h.
16643         * dce.c: Likewise.
16644
16645 2010-06-01  Jan Hubicka  <jh@suse.cz>
16646
16647         * cgraph.h (tree_function_versioning): Update prototype.
16648         (cgraph_function_versioning): Update prototype.
16649         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
16650         bitmap.
16651         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
16652         (cgraph_materialize_clone, save_inline_function_body): Update use of
16653         tree_function_versioning.
16654         * tree-inline.c (copy_bb): Look for previous copied block to link
16655         after; fix debug output.
16656         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
16657         (copy_body): Likewise.
16658         (expand_call_inline): Update use of copy_body.
16659         (tree_function_versioning): Update use of copy body; accept
16660         blocks_to_copy and new_entry.
16661
16662 2010-06-01  Jan Hubicka  <jh@suse.cz>
16663
16664         * gegenrtl.c: Remove unnecesary prototypes.
16665         (gendecl): Remove.
16666         (gendef): Produce static inline.
16667         (gencode): Remove.
16668         (main): Do not decode parameters; generate header only.
16669         * Makefile.in (genrtl.c): Remove.
16670
16671 2010-06-01  Jan Hubicka  <jh@suse.cz>
16672
16673         * tree-switch-conversion.c (build_one_array): Make it readonly.
16674
16675 2010-06-01  Richard Guenther  <rguenther@suse.de>
16676
16677         * optabs.c (init_optabs): Guard all accesses to reinit.
16678         * ipa-pure-const.c (propagate): Fix another typo.
16679         * opts.c (common_handle_option): Split assignment to bool.
16680         * c-opts.c (c_common_handle_option): Likewise.
16681
16682 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
16683             Matthew Gingell  <gingell@adacore.com>
16684
16685         * doc/invoke.texi: Mention -fdump-ada-spec.
16686         * tree-dump.c (dump_files): Add ada-spec.
16687         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
16688         * tree-pass.h (tree_dump_index): Add TDI_ada.
16689         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
16690         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
16691         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
16692         * c-decl.c: Include c-ada-spec.h.
16693         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
16694         functions.
16695         (c_write_global_declarations): Add handling of -fdump-ada-spec.
16696         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
16697         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
16698         * c-ada-spec.h, c-ada-spec.c: New files.
16699
16700 2010-06-01  Richard Guenther  <rguenther@suse.de>
16701
16702         PR lto/43853
16703         * ipa-pure-const.c (get_function_state): Hand back varying state
16704         if we do not have one.
16705         (has_function_state): New function.
16706         (duplicate_node_data): Adjust.
16707         (remove_node_data): Likewise.
16708         (pure_const_write_summary): Likewise.
16709         (propagate): Likewise.  Fix typo.
16710
16711 2010-06-01  Jan Hubicka  <jh@suse.cz>
16712
16713         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
16714         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
16715         (execute_all_ipa_transforms): Do not play with the states.
16716
16717 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
16718
16719         * config/arm/t-linux-androideabi: New.
16720         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
16721
16722 2010-06-01  Jan Hubicka  <jh@suse.cz>
16723
16724         * tree-inline.c (estimate_num_insns): For stdarg functions look
16725         into call statement to count cost of argument passing.
16726
16727 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
16728
16729         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
16730         argument for fprintf.
16731         (ix86_output_addr_diff_elt): Likewise.
16732         (x86_function_profiler): Likewise.
16733         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
16734         (LPREFIX): Likewise.
16735         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
16736
16737 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
16738
16739         PR target/44338
16740         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
16741         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
16742         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
16743         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
16744         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
16745         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
16746         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
16747         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
16748         TARGET_FUSED_MADD.
16749
16750 2010-05-31  Jan Hubicka  <jh@suse.cz>
16751
16752         * tree.h (tree_range_check_failed): Declare noreturn.
16753
16754 2010-05-31  Jan Hubicka  <jh@suse.cz>
16755
16756         * gimple.c (gimple_call_builtin_p): New function.
16757         * gimple.h (gimple_call_builtin_p): Declare.
16758         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
16759         to exit.
16760         (execute_warn_function_return): BUILT_IN_RETURN is return.
16761         (split_critical_edges): Return edges are not critical.
16762         (is_ctrl_altering_stmt): Builtin_in_return is altering.
16763         (gimple_verify_flow_info): Handle built_in_return.
16764         (execute_warn_function_return): Handle built_in_return.
16765         * ipa-pure-const.c (check_call): Ignore builtin_return.
16766
16767 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
16768
16769         PR middle-end/44337
16770         * expr.c (expand_assignment): Don't store anything for out-of-bounds
16771         array accesses with non-MEM.
16772
16773         PR tree-optimization/44182
16774         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
16775         newly needs to end a bb is followed by debug stmts, instead return
16776         true from the function at the end.
16777         (maybe_move_debug_stmts_to_successors): New function.
16778         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
16779
16780 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
16781
16782         PR target/44161
16783         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
16784
16785 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
16786
16787         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
16788         for nested functions in non-optimized compilation.
16789
16790 2010-05-31  Richard Guenther  <rguenther@suse.de>
16791
16792         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
16793
16794 2010-05-30  Jan Hubicka  <jh@suse.cz>
16795
16796         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
16797
16798 2010-05-30  Richard Guenther  <rguenther@suse.de>
16799
16800         PR lto/42975
16801         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
16802         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
16803         no longer needed.
16804
16805 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
16806
16807         * config/darwin.c (output_objc_section_asm_op): Add comment.
16808         (name_needs_quotes): Add '_' to list of valid comment chars.
16809         (machopic_output_function_base_name): Remove unneeded quotes.
16810         (darwin_encode_section_info): Adjust asm whitespace.
16811         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
16812         (ASM_OUTPUT_LOCAL): Ditto.
16813         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
16814         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
16815         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
16816
16817 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
16818
16819         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
16820         RS6000_OUTPUT_BASENAME unconditionally.
16821         (rs6000_output_function_epilogue): Likewise.
16822
16823 2010-05-30  Jan Hubicka  <jh@suse.cz>
16824
16825         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
16826         nodes.
16827
16828 2010-05-30  Richard Guenther  <rguenther@suse.de>
16829
16830         * tree-cfg.c (verify_gimple_assign_single): Implement
16831         verification for COND_EXPR rhs.
16832
16833 2010-05-30  Jan Hubicka  <jh@suse.cz>
16834
16835         * cgraph.h (cgraph_dump_file): Declare.
16836         * cgraphunit.c (cgraph_dump_file): Export.
16837         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
16838
16839 2010-05-30  Jan Hubicka  <jh@suse.cz>
16840
16841         * dwarf2out.c (reference_to_unused,
16842         premark_types_used_by_global_vars_helper): Avoid creation of new
16843         varpool nodes.
16844
16845 2010-05-30  Jan Hubicka  <jh@suse.cz>
16846
16847         * cgraph.h (cgraph_node_cannot_return,
16848         cgraph_edge_cannot_lead_to_return): New functions.
16849         * cgraph.c (cgraph_node_cannot_return,
16850         cgraph_edge_cannot_lead_to_return): Use them.
16851         * ipa-pure-const.c (pure_const_names): New static var.
16852         (check_call): Handle calls not leading to return.
16853         (pure_const_read_summary): Dump info read.
16854         (propagate): Dump info about propagation process; ignore side effects
16855         of functions not leading to exit; fix handling of pure functions.
16856
16857 2010-05-30  Jan Hubicka  <jh@suse.cz>
16858
16859         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
16860         for tail call epilogues.
16861
16862 2010-05-30  Jan Hubicka  <jh@suse.cz>
16863
16864         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
16865         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
16866         dump files.
16867
16868 2010-05-29  Jan Hubicka  <jh@suse.cz>
16869
16870         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
16871         node; remove references in node we no longer keep in cgrpah but need
16872         body of.
16873
16874 2010-05-29  Jan Hubicka  <jh@suse.cz>
16875
16876         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
16877
16878 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16879
16880         PR target/44165
16881         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
16882
16883 2010-05-29  Jan Hubicka  <jh@suse.cz>
16884
16885         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
16886         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
16887         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
16888         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
16889         debug_names_replaced_by, debug_update_ssa): Likewise.
16890         * sbitmap.c (debug_sbitmap): Likewise.
16891         * genrecog.c (debug_decision, debug_decision_list): Likewise.
16892         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
16893         debug_tree_chain): Likewise.
16894         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
16895         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
16896         * optabs.c (debug_optab_libfuncs): Likewise.
16897         (verify_loop_closed_ssa): Likewise.
16898         * value-prof.c (verify_histograms): Likewise.
16899         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
16900         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
16901         * cfghooks.c (verify_flow_info): Likewise.
16902         * fold-const.c (debug_fold_checksum): Likewise.
16903         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
16904         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
16905         Likewise.
16906         * omega.c (debug_omega_problem): Likewise.
16907         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
16908         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
16909         * dominance.c (verify_dominators, debug_dominance_info,
16910         debug_dominance_tree): Likewise.
16911         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
16912         * df_regno_debug, df_ref_debug,
16913         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
16914         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
16915         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
16916         * sel-sched.c (debug_state): Likewise.
16917         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
16918         Likewise.
16919         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
16920         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
16921         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
16922         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
16923         Likewise.
16924         * c-pretty-print.c (debug_c_tree): Likewise.
16925         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
16926         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
16927         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
16928         * ebitmap.c (debug_ebitmap): Likewise.
16929         * function.c (debug_find_var_in_block_tree): Likewise.
16930         * print-rtl.c (debug_rtx): Likewise.
16931         (debug_rtx_count): Likewise.
16932         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
16933         * stor-layout.c (debug_rli): Likewise.
16934         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
16935         * tree-data-ref.c (debug_data_references,
16936         debug_data_dependence_relations, debug_data_reference,
16937         debug_data_dependence_relation, debug_rdg_vertex,
16938         debug_rdg_component, debug_rdg): Likewise.
16939         * tree-affine.c (debug_aff): Likewise.
16940         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
16941         Likewise.
16942         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
16943         * emit-rtl.c (verify_rtl_sharing): Likewise.
16944         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
16945         debug_value_expressions): Likewise.
16946         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
16947         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
16948         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
16949         * cfglayout.c (verify_insn_chain): Likewise.
16950         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
16951         debug_clast_stmt, debug_generated_program): Likewise.
16952         * ggc-page.c (debug_print_page_list): Likewise.
16953         * tree-ssa-ter.c (debug_ter): Likewise.
16954         * graphite-dependences.c (debug_pddr): Likewise.
16955         * sched-deps.c (debug_ds): Likewise.
16956         * tree-ssa.c (verify_ssa): Likewise.
16957         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
16958         debug_scattering_functions, debug_iteration_domains, debug_pdr,
16959         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
16960         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
16961         * tree-inline.c (debug_find_tree): Likewise.
16962         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
16963         debug_ppl_powerset_matrix): Likewise.
16964         * var-tracking.c (debug_dv): Likewise.
16965         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
16966         * cfgloop.c (verify_loop_structure): Likewise.
16967         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
16968         * c-common.c (verify_sequence_points): Likewise.
16969         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
16970         debug_candidates, debug_rgn_dependencies): Likewise.
16971         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
16972         * debug_constraint_graph, debug_solution_for_var,
16973         debug_sa_points_to_info): Likewise.
16974         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
16975         Likewie.
16976         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
16977         debug_loops, debug_loop, debug_loop_num): Likewise.
16978         * passes.c (debug_pass): Likewise.
16979         (dump_properties): Likewise; add cfglayout property.
16980         (debug_properties): Likewise.
16981         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
16982         * varpool.c (debug_varpool): Likewise.
16983         * regcprop.c (debug_value_data): Likewise.
16984         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
16985         debug_immediate_uses_for): Likewise.
16986
16987 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
16988
16989         PR bootstrap/44315
16990         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
16991         Filter out insn-flags.h.
16992
16993 2010-05-29  Jan Hubicka  <jh@suse.cz>
16994
16995         * cgraph.h (struct varpool_node_set_def,
16996         struct cgraph_node_set_def): Remove unused AUX pointer.
16997         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
16998         VEC_empty macro.
16999
17000 2010-05-29  Jan Hubicka  <jh@suse.cz>
17001
17002         PR middle-end/44324
17003         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
17004
17005 2010-05-29  Richard Guenther  <rguenther@suse.de>
17006
17007         * lto-streamer.c (cached_bp): New global variable.
17008         (bitpack_create): Return the cached bitpack, if available.
17009         (bitpack_delete): Clear and cache the bitpack, if appropriate.
17010         (bp_pack_value): Remove redundant asserts.
17011
17012 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
17013
17014         PR middle-end/44306
17015         * tree-if-conv.c (is_true_predicate): New.
17016         (is_predicated): Use is_true_predicate.
17017         (add_to_predicate_list): Same.  Do not use unshare_expr.
17018         (add_to_dst_predicate_list): Same.
17019
17020 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
17021
17022         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
17023         field on edges.
17024         (predicate_bbs): Same.
17025         (clean_predicate_lists): Same.
17026         (find_phi_replacement_condition): Do not AND the predicate from
17027         edge->aux.
17028
17029 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
17030
17031         PR bootstrap/44315
17032         * Makefile.in (build/gencondmd.o): Add a missing `\'.
17033
17034 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17035
17036         PR target/44261
17037         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
17038         (negdf2): Adjust expander pattern and use negdf2_slow.
17039         (negsf2): Likewise.
17040
17041 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
17042
17043         * basic-block.h (struct control_flow_graph): Move last_label_uid field
17044         up.
17045         * df.h (struct df_base_ref): Move regno field up.
17046         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
17047         * expr.h (struct separate_ops): Move location field up.
17048         * optabs.h (struct optab_d): Move libcall_basename field down.
17049         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
17050         * config/i386/i386.h (struct machine_function): Convert call_abi field
17051         into a bitfield.  Move cfa field to the end of the structure.
17052
17053 2010-05-29  Jan Hubicka  <jh@suse.cz>
17054
17055         * varpool.c (varpool_get_node): Fix lookup.
17056
17057 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17058
17059         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
17060         RTL specific prototypes with #ifdef RTX_CODE.
17061         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
17062         * config/spu/t-spu-elf: Fix dependencies.
17063
17064         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
17065
17066 2010-05-29  Mike Stump  <mikestump@comcast.net>
17067
17068         PR bootstrap/44315
17069         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
17070         TM_H when building to avoid dependency loops.
17071
17072 2010-05-29  Jan Hubicka  <jh@suse.cz>
17073
17074         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
17075         refs and body; not the whole node for masters of materialized clones.
17076
17077 2010-05-29  Mike Stump  <mikestump@comcast.net>
17078
17079         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
17080
17081 2010-05-29  Jan Hubicka  <jh@suse.cz>
17082
17083         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
17084         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
17085         use of clone_function_name.
17086         * cgraph.h (cgraph_create_virtual_clone,
17087         cgraph_function_versioning): update prototypes.
17088         (clone_function_name): Declare.
17089         * ipa-cp.c (ipcp_insert_stage): Update call of
17090         cgraph_create_virtual_clone.
17091         * omp-low.c (create_omp_child_function_name): Use
17092         cgraph_create_virtual_clone.
17093         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
17094         (cgraph_function_versioning): Take SUFFIX argument; produce new name
17095         and make decl local.
17096
17097 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17098
17099         * vec.h: Include statistics.h
17100         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
17101         with VEC_H.
17102
17103 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17104
17105         * c-lex.c: Do not include c-tree.h.
17106         * c-pretty-print.c: Likewise.
17107         * c-opts.c: Likewise.
17108         * c-gimplify.c: Likewise.
17109         * c-common.c: Likewise.
17110         * c-dump.c: Likewise.  Include c-common.h.
17111
17112 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17113
17114         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
17115         before including diagnostic-core.h.
17116         (c_cpp_error): New prototype moved from c-tree.h.
17117         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
17118         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
17119         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
17120         (c_cpp_error): Prototype moved to c-common.h.
17121         * Makefile.in: Update dependency for C_COMMON_H.
17122
17123 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17124
17125         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
17126         * c-common.c (c_register_addr_space): Remove here.
17127         * c-decl.c (c_register_addr_space): Re-add here.
17128
17129 2010-05-28  Mike Stump  <mikestump@comcast.net>
17130
17131         * config/darwin-c.c: Remove c-tree.h include.
17132
17133 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17134
17135         * gcc.c: Include diagnostic.h.
17136         (error_count): Remove.  All users changed to use errorcount.
17137         (programname): Remove.  All users changed to use progname.
17138         (fancy_abort, internal_error, fatal_error, error, warning, inform,
17139         fnotice): Remove.
17140         (execute): Don't include "Internal error" and bug reporting
17141         information in argument of internal_error call.
17142         (process_command): Don't increment error_count after calling
17143         perror_with_name.
17144         (input_filename): Rename to gcc_input_filename.  All users
17145         changed.
17146         (main): Call diagnostic_initialize.  Register delete_temp_files
17147         with atexit.  Use seen_error to test for errors.
17148         * gcc.h: Include diagnostic-core.h.
17149         (fatal_error, error, warning): Remove.
17150         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
17151         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
17152         (gcc.o): Update dependencies.
17153
17154 2010-05-28  Jeff Law  <law@redhat.com>
17155
17156         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
17157         functions.
17158         * ira.h (ira_bad_reload_regno): Declare
17159         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
17160
17161         * ira-color.c (update_curr_costs): Free updated hard reg costs.
17162         (ira_reassign_conflict_allocnos): Remove bogus asserts.
17163         (allocno_reload_assign): Likewise.
17164
17165 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
17166
17167         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
17168         build1_stat.
17169
17170 2010-05-28  Richard Guenther  <rguenther@suse.de>
17171
17172         PR lto/44312
17173         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
17174         Stream fixed-point constants mode.
17175         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
17176         and TYPE_PRECISION.
17177         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
17178         Stream fixed-point constants mode.
17179         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
17180         and TYPE_PRECISION.
17181
17182 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17183
17184         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
17185         only place it was called from.
17186         (number_of_latch_executions): Do not return chrec_dont_know when the
17187         may_be_zero is a runtime condition: instead, return a COND_EXPR
17188         including the may_be_zero condition.
17189         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
17190         of nb_iterations.
17191         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
17192         COND_EXPRs.
17193
17194 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17195
17196         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
17197         generate COND_EXPRs for degenerate_phi_result.
17198
17199 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17200
17201         PR middle-end/44293
17202         * tree-if-conv.c (if_convertible_loop_p): Check the
17203         if-convertibility of phi nodes in non predicated BBs.
17204
17205 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17206
17207         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
17208
17209 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17210
17211         PR driver/15303
17212         * gcc.c (inform, warning, inform): New functions.
17213         (fatal_ice): Rename to internal_error; change cmsgid parameter to
17214         gmsgid.  All callers changed.
17215         (notice): Rename to fnotice; add parameter fp.  All callers changed.
17216         (fatal_error): Rename to fatal_signal.  All users changed.
17217         (fatal): Rename to fatal_error; change cmsgid parameter to
17218         gmsgid.  All callers changed.
17219         (process_command): Use warning instead of error for warnings.
17220         (end_going_arg): Don't use _() around argument of error.
17221         (do_spec_1): Use inform for message from %n specs.  Use warning
17222         instead of error for warnings.
17223         (main): Use inform for comparison messages.  Use warning for
17224         message about unused linker input.
17225         (error): Increment error_count.  Print "error: ".
17226         * gcc.h (fatal): Change to fatal_error.
17227         (warning): Declare.
17228         * config/darwin-driver.c (darwin_default_min_version): Use warning
17229         instead of fprintf for warnings.
17230         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
17231
17232 2010-05-28  Julian Brown  <julian@codesourcery.com>
17233
17234         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
17235         (*thumb2_addsi3_compare0_scratch): New.
17236         * config/arm/constraints.md (Pv): New.
17237         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
17238         for ARM mode only.
17239         (*addsi3_compare0_scratch): Likewise.
17240
17241 2010-05-28  Jan Hubicka  <jh@suse.cz>
17242
17243         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
17244         check.
17245         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
17246         only on local statics.
17247
17248 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
17249
17250         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
17251
17252 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
17253
17254         PR bootstrap/44314
17255         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
17256         (OPTION_GLIBC): Define.
17257
17258 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
17259
17260         PR debug/41048
17261         * dwarf2out.c (double_int_type_size_in_bits): New function.
17262         (round_up_to_align): Change first argument and return value to
17263         double_int.
17264         (field_byte_offset): Work internally on double_ints.
17265
17266         PR target/43636
17267         * builtins.c (expand_movstr): Use a temporary pseudo instead
17268         of target even when target is not NULL and not const0_rtx, but
17269         fails movstr predicate.
17270         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
17271
17272 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17273
17274         * final.c (rest_of_clean_state): Use %m in errors instead of
17275         strerror (errno).
17276         * gengtype.c (read_input_list, close_output_files): Use xstrerror
17277         instead of strerror.
17278         * toplev.c (process_options): Use %m in errors instead of strerror
17279         (errno).
17280         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
17281         (errno).
17282
17283 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
17284
17285         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
17286         (ix86_canonical_va_list_type): Make static.  Add declaration.
17287         (ix86_enum_va_list): Make static.  Reindent.
17288         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
17289         (ix86_canonical_va_list_type): Ditto.
17290         (ix86_enum_va_list): Ditto.
17291
17292 2010-05-28  Richard Guenther  <rguenther@suse.de>
17293
17294         * lto-wrapper.c (run_gcc): With -save-temps generate a
17295         user-visible ltrans filename.  Fixup ltrans unit numbering.
17296
17297 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
17298
17299         * c-common.c (c_common_nodes_and_builtins): Replace use
17300         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
17301         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
17302         to ix86_enum_va_list.
17303         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
17304         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
17305         (TARGET_ENUM_VA_LIST_P): Add hook description.
17306         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
17307         * target.h (gcc_target): Add enum_va_list hook.
17308
17309         PR bootstrap/44299
17310         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
17311         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
17312         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
17313
17314 2010-05-28  Alan Modra  <amodra@gmail.com>
17315
17316         PR target/44266
17317         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
17318         emit_library_call machinery to set up __tls_get_addr calls.
17319
17320 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17321
17322         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
17323
17324 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
17325
17326         Revert fix for PR c++/44188
17327         * c-common.c (is_typedef_decl): Revert the moving of  this
17328         definition ...
17329         * tree.c (is_typedef_decl): ... here.
17330         (typdef_variant_p): Revert the moving of this  definition
17331         here from cp/tree.c.
17332         * c-common.h (is_typedef_decl): Revert the moving of this
17333         declaration ...
17334         * tree.h (is_typedef_decl): ... here.
17335         (typedef_variant_p): Revert the moving of this  declaration here
17336         from cp/cp-tree.h
17337         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
17338         (gen_tagged_type_die): Revert the splitting out of ...
17339         (gen_type_die_with_usage): ... this function. Revert the anonymous
17340         tagged type handling.
17341         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
17342         typedefs naming anonymous tagged types.
17343
17344 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
17345
17346         * config/rs6000/rs6000-modes.def (PSImode): Delete.
17347
17348 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
17349
17350         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
17351         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
17352         throughout.
17353         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
17354         "xer" to "ca".
17355         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
17356         XER_REGS to CA_REGS throughout.
17357         * config/rs6000/rs6000.h: Same.
17358         (ADDITIONAL_REGISTER_NAMES): Add "xer".
17359         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
17360         that mode_iterator "P" is the size for arithmetic carries as well.
17361         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
17362
17363 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
17364
17365         PR bootstrap/44255
17366         * combine.c (struct rtx_subst_pair): Define unconditionally.
17367         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
17368         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
17369         Call make_compound_operation on pair->to.
17370         (propagate_for_debug): Don't call make_compound_operation here.
17371         Always use simplify_replace_fn_rtx.
17372
17373 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
17374
17375         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
17376         * config/xtensa/xtensa.c (override_options): Check
17377           TARGET_FORCE_NO_PIC and set flag_pic.
17378         * config/xtensa/xtensa.opt: Document -mforce-no-pic
17379
17380 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
17381
17382         PR bootstrap/44299
17383         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
17384         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
17385
17386 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
17387
17388         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
17389         toplev.h.
17390         * diagnostic.c: Don't include toplev.h.
17391         (progname): Define.  Moved from toplev.c.
17392         (seen_error): New function.
17393         * diagnostic.h: Include diagnostic-core.h.
17394         (diagnostic_t, emit_diagnostic): Don't declare here.
17395         * toplev.c (progname): Move to toplev.c.
17396         (emit_debug_global_declarations, compile_file, finalize,
17397         do_compile, toplev_main): Use seen_error.
17398         * toplev.h: Include diagnostic-core.h.
17399         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
17400         internal_error, warning, warning_at, error, error_n, error_at,
17401         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
17402         verbatim, fnotice, progname): Move to diagnostic-core.h.
17403         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
17404         (expand_builtin_expect): Use seen_error.
17405         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
17406         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
17407         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
17408         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
17409         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
17410         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
17411         errorcount for errors.
17412         * c-opts.c (c_common_finish): Use seen_error.
17413         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
17414         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
17415         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
17416         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
17417         (get_coverage_counts): Use seen_error.
17418         * dwarf2out.c (dwarf2out_finish): Use seen_error.
17419         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
17420         gimplify_body): Use seen_error.
17421         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
17422         * ipa-pure-const.c (gate_pure_const): Use seen_error.
17423         * ipa-reference.c (gate_reference): Use seen_error.
17424         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
17425         * lambda-code.c: Include diagnostic-core.h instead of
17426         diagnostic.h.
17427         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
17428         * lto-compress.c: Include diagnostic-core.h instead of
17429         diagnostic.h.
17430         * lto-section-in.c: Include diagnostic-core.h instead of
17431         diagnostic.h.
17432         * lto-streamer-out.c: Include diagnostic-core.h instead of
17433         diagnostic.h.
17434         * lto-streamer.c: Include diagnostic-core.h instead of
17435         diagnostic.h.
17436         (gate_lto_out): Use seen_error.
17437         * matrix-reorg.c: Include diagnostic-core.h instead of
17438         diagnostic.h.
17439         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
17440         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
17441         (gate_expand_omp, lower_omp_1): Use seen_error.
17442         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
17443         (rest_of_decl_compilation, rest_of_type_compilation,
17444         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
17445         * tree-cfg.c (label_to_block_fn): Use seen_error.
17446         * tree-inline.c (optimize_inline_calls): Use seen_error.
17447         * tree-mudflap.c (mudflap_finish_file): Use
17448         seen_error.
17449         * tree-optimize.c (gate_all_optimizations,
17450         gate_all_early_local_passes, gate_all_early_optimizations): Use
17451         seen_error.
17452         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
17453         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
17454         (varpool_remove_unreferenced_decls,
17455         varpool_assemble_pending_decls): Use seen_error.
17456         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
17457         (TOPLEV_H, DIAGNOSTIC_H): Update.
17458         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
17459         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
17460         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
17461         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
17462         coverage.o, lambda-code.o): Update dependencies.
17463
17464 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
17465
17466         PR c++/44188
17467         * c-common.c (is_typedef_decl): Move this definition ...
17468         * tree.c (is_typedef_decl): ... here.
17469         (typdef_variant_p): Move definition here from cp/tree.c.
17470         * c-common.h (is_typedef_decl): Move this declaration ...
17471         * tree.h (is_typedef_decl): ... here.
17472         (typedef_variant_p): Move declaration here from cp/cp-tree.h
17473         * dwarf2out.c (is_naming_typedef_decl): New function.
17474         (gen_tagged_type_die): Split out of ...
17475         (gen_type_die_with_usage): ... this function. When an anonymous
17476         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
17477         is emitted for the typedef.
17478         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
17479         anonymous tagged types.
17480
17481 2010-05-27  Jason Merrill  <jason@redhat.com>
17482
17483         * print-tree.c (debug_vec_tree): New fn.
17484         (print_vec_tree): New fn.
17485         * tree.h: Declare them.
17486         * gdbinit.in (pvt): New command.
17487
17488         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
17489
17490         * gdbinit.in (pdd): New command.
17491
17492 2010-05-27  Jan Hubicka  <jh@suse.cz>
17493
17494         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
17495         (update_caller_keys): Return early if there are no callers;
17496         only update fibheap when decresing the key.
17497         (update_callee_keys): Avoid recursion.
17498         (decide_inlining_of_small_functions): When badness does not match;
17499         re-insert into fibheap.
17500
17501 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
17502
17503         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
17504         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
17505         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
17506         (ALL_HOST_OBJS): Now a union of the above two.
17507         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
17508         all files in ALL_HOST_FRONTEND_OBJS.
17509         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
17510
17511         * c-common.c: Pretend to be a backend file by undefining
17512         IN_GCC_FRONTEND (still need rtl.h here).
17513
17514 2010-05-27  Jan Hubicka  <jh@suse.cz>
17515
17516         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
17517         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
17518
17519 2010-05-27  Jan Hubicka  <jh@suse.cz>
17520
17521         * sched-ebb.c: Rename struct deps to struct deps_desc.
17522         * ddg.c: Likewise.
17523         * sel-sched-ir.c: Likewise.
17524         * sched-deps.c: Likewise.
17525         * sched-int.h: Likewise.
17526         * sched-rgn.c: Likewise.
17527
17528 2010-05-27  Jon Beniston  <jon@beniston.com>
17529
17530         PR 43726
17531         * config/lm32/lm32.h: Remove definition of
17532         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
17533
17534 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
17535
17536         PR lto/44230
17537         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
17538
17539 2010-05-27  Richard Guenther  <rguenther@suse.de>
17540
17541         PR tree-optimization/44284
17542         * tree-vect-stmts.c (vectorizable_assignment): Handle
17543         sign-changing conversions as simple copy.
17544
17545 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17546
17547         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
17548         Bionic C library.
17549         (__gthread_active_p): Check for pthread_create if compiling against
17550         Bionic C library.
17551
17552 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17553
17554         Support compilation for Android platform.  Reimplement -mandroid.
17555
17556         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
17557         (*android*): Set ANDROID_DEFAULT.
17558         (arm*-*-linux*): Include linux-android.h.
17559         (arm*-*-eabi*): Don't include previous -mandroid implementation.
17560         * config/arm/eabi.h: Remove, move Android-specific parts ...
17561         * config/linux-android.h: ... here.  New file.
17562         * config/arm/eabi.opt: Rename to ...
17563         * config/linux-android.opt: ... this.
17564         (mandroid): Allow -mno-android option.  Initialize based on
17565         ANDROID_DEFAULT.
17566         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
17567         Move logic to corresponding LINUX_TARGET_* macros.
17568         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
17569         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
17570         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
17571         Android definitions.
17572         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
17573         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
17574         Document.
17575
17576 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17577
17578         Add support for Bionic C library
17579
17580         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
17581         macro.
17582         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
17583         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
17584
17585         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
17586         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
17587         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
17588         to support multiple C libraries.  Handle Bionic.
17589         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
17590         (BIONIC_DYNAMIC_LINKER64): Define.
17591         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
17592         Update.
17593         (TARGET_HAS_SINCOS): Enable for Bionic.
17594
17595         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
17596         the last option specified on command line take effect.
17597         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
17598         (mbionic): New.
17599         (mglibc, muclibc): Update.
17600
17601         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
17602         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
17603         DEFAULT_LIBC.
17604
17605         * doc/invoke.texi (-mglibc, -muclibc): Update.
17606         (-mbionic): Document.
17607
17608 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17609
17610         * c-common.h (c_register_addr_space): Add prototype.
17611         (ADDR_SPACE_KEYWORD): Remove.
17612         * c-common.c (c_register_addr_space): New function.
17613         (c_addr_space_name): Reimplement.
17614         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
17615
17616         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
17617         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
17618
17619         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
17620         Remove TARGET_ADDR_SPACE_KEYWORDS.
17621
17622 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
17623
17624         * input.c: New file.
17625         * input.h (main_input_filename): Move declaration to toplev.h.
17626         * toplev.c (input_location, line_table): Move to input.c
17627         * toplev.h (main_input_filename): Move declaration from input.h.
17628         * tree.c (expand_location): Move to input.c.
17629         * Makefile.in (OBJS-common): Add input.o.
17630         (input.o): Add dependencies.
17631
17632 2010-05-27  Richard Guenther  <rguenther@suse.de>
17633
17634         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
17635         for non-existant files.
17636         (fork_execute): Mark args_name file as deleted.
17637
17638 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
17639
17640         PR bootstrp/44287
17641         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
17642         (narrow_signed_type): Likewise.
17643
17644 2010-05-26  Jan Hubicka  <jh@suse.cz>
17645
17646         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
17647         edge only when checking is enabled; check using former_clone_of;
17648         check inline clones too.
17649         (cgraph_materialize_clone): Record former_clone_of pointer.
17650         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
17651         combining redirections; dump args_to_skip bitmap
17652         (cgraph_materialize_all_clones): Do no redirection here.
17653         * ipa-inline.c (inline_transform): Do redirection here.
17654         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
17655         cheking only).
17656
17657 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
17658
17659         * config/avr/avr-c.c: Do not include regs.h.
17660         Include cpplib.h for cpp_define and tree.h for c-common.h.
17661         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
17662         * config/avr/t-avr: Fix dependencies for avr-c.o.
17663
17664 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
17665
17666         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
17667         string instead of SYMBOL_REF rtx.
17668         * rtl.h (set_stack_check_libfunc): Move prototype from here...
17669         * libfuncs.h: ...to here.  Adjust for explow.c change.
17670
17671 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
17672
17673         * pretty-print.c: Don't include ggc.h.
17674         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
17675         (identifier_to_locale): Use them for allocation.
17676         * pretty-print.h (identifier_to_locale_alloc,
17677         identifier_to_locale_free): Declare.
17678         * toplev.c (alloc_for_identifier_to_locale): New.
17679         (general_init): Set identifier_to_locale_alloc and
17680         identifier_to_locale_free.
17681         * Makefile.in (pretty-print.o): Update dependencies.
17682
17683 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
17684
17685         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
17686         pointer types if they have different alignment or mode.
17687
17688 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
17689
17690         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
17691         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17692         * config/sparc/sparc-protos.h (function_value): Remove declaration.
17693         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
17694         sparc_function_value_regno_p): New functions.
17695         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
17696         TARGET_FUNCTION_VALUE_REGNO_P): Define.
17697         (function_value): Rename to...
17698         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
17699         argument to 'outgoing'.
17700         (function_arg_record_value, function_arg_union_value,
17701         function_arg_vector_value): Update comment.
17702
17703 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
17704
17705         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
17706         (fde_needed_for_eh_p): New predicate.
17707         (output_call_frame_info): Use it throughout to decide whether FDEs
17708         are needed for EH purpose.
17709         (dwarf2out_begin_prologue): Reorder assignments.
17710
17711 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17712
17713         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
17714         special case loop->header.
17715         (is_predicated): New.
17716         (if_convertible_loop_p): Call it.
17717
17718 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17719
17720         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
17721         iterator in parameter.  Do not generate code during the analysis.
17722         (tree_if_convert_cond_stmt): Removed.
17723         (tree_if_convert_stmt): Removed.
17724         (predicate_bbs): New.
17725         (if_convertible_loop_p): Call predicate_bbs.
17726         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
17727         now contains all the analysis part.
17728
17729 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17730
17731         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
17732         statements in the analysis part.
17733         (tree_if_convert_stmt): Update comment.
17734         (remove_conditions_and_labels): New.
17735         (combine_blocks): Call remove_conditions_and_labels.
17736         (tree_if_conversion): Update comment.
17737
17738 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17739
17740         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
17741         than 2 predecessors or more than 2 successors.
17742
17743 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17744
17745         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
17746         of loops in which the data dependence analysis fails.
17747
17748 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17749
17750         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
17751         CDI_POST_DOMINATORS.
17752         (tree_if_conversion): Same.
17753
17754 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17755
17756         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
17757
17758 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17759
17760         * tree-if-conv.c: Update copyright years.  Fix comments.
17761         Fix indentation.
17762
17763 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
17764
17765         * builtin-types.def (BT_INT128): New primitive type.
17766         (BT_UINT128): Likewise.
17767         * c-common.c (c_common_r): Add __int128 keyword.
17768         (c_common_type_for_size): Handle __int128.
17769         (c_common_type_for_mode): Likewise.
17770         (c_common_signed_or_unsigned_type): Likewise.
17771         (c_common_nodes_and_builtins): Add builtin type
17772         if target supports 128-bit integer scalar.
17773         * c-common.h (enum rid): Add RID_INT128.
17774         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
17775         if target supports 128-bit integer scalar.
17776         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
17777         (finish_declspecs): Likewise.
17778         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
17779         (c_token_starts_declspecs): Likewise.
17780         (c_parser_declspecs): Likewise.
17781         (c_parser_attributes): Likewise.
17782         (c_parser_objc_selector): Likewise.
17783         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
17784         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
17785         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
17786         * tree.c (make_or_reuse_type): Likewise.
17787         (make_unsigned_type): Likewise.
17788         (build_common_tree_nodes_2): Likewise.
17789         * tree.h (enum integer_type_kind): Add itk_int128 and
17790         itk_unsigned_int128.
17791         (int128_integer_type_node): New define.
17792         (int128_unsigned_type_node): New define.
17793         * doc/extend.texi: Add documentation about __int128 type.
17794
17795 2010-05-26  Richard Guenther  <rguenther@suse.de>
17796
17797         * tree-ssa-sccvn.c (copy_nary): Adjust.
17798         (copy_phis): Rename to ...
17799         (copy_phi): ... this.  Adjust.
17800         (copy_references): Rename to ...
17801         (copy_reference): ... this.  Adjust.
17802         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
17803         result into the valid table.
17804
17805 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
17806
17807         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
17808         insn-config.h, insn-codes.h, recog.h, and optabs.h.
17809
17810 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17811
17812         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
17813
17814 2010-05-26  Richard Guenther  <rguenther@suse.de>
17815
17816         * opts.c (common_handle_option): Handle OPT_Ofast.
17817
17818 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
17819
17820         * diagnostic.c: Don't include opts.h.
17821         (permissive_error_option): Define.
17822         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
17823         for classify_diagnostic.  Don't use memset for
17824         classify_diagnostic.  Initialize new and recently added fields.
17825         (diagnostic_classify_diagnostic): Use context->n_opts instead of
17826         N_OPTS.
17827         (diagnostic_report_diagnostic): Pass context parameter to
17828         diagnostic_report_warnings_p.  Use option_enabled and option_name
17829         hooks from context.
17830         (emit_diagnostic): Use permissive_error_option.
17831         (permerror): Likewise.
17832         * diagnostic.h: Don't include options.h.
17833         (struct diagnostic_context): Add n_opts, opt_permissive,
17834         inhibit_warnings, warn_system_headers, option_enabled and
17835         option_name fields.  Change classify_diagnostic to a pointer.
17836         * opts-diagnostic.h: New file.
17837         * opts.c: Include opts-diagnostic.h.
17838         (common_handle_option): Set global_dc fields for -Wfatal-errors,
17839         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
17840         (option_name): New function.
17841         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
17842         (c_common_handle_option): Set global_dc->permissive for
17843         -fpermissive.
17844         * c-common.c (c_cpp_error): Save and restore
17845         global_dc->warn_system_headers, not variable warn_system_headers.
17846         * toplev.c: Include opts-diagnostic.h.
17847         (general_init): Update call to diagnostic_initialize.  Set
17848         global_dc->show_column, global_dc->option_enabled and
17849         global_dc->option_name.
17850         (process_options): Don't set global_dc fields here.
17851         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
17852         (diagnostic.o, opts.o, toplev.o): Update dependencies.
17853
17854 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
17855
17856         * config/picochip/picochip.md (movsi): Split a movsi from a
17857         const after reload.
17858
17859 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17860
17861         * ggc-zone.c: Update copyright year.
17862         (poison_region): Mark memory for Valgrind as undefined before
17863         memset () call and inaccessible afterwards.
17864         (ggc_pch_total_size): Change type of i to int.
17865
17866 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17867
17868         * ggc-common.c (ggc_free_overhead): Allow empty slot.
17869
17870 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17871
17872         * ggc-common.c: Update copyright year.
17873         (ggc_rlimit_bound): Remove prototype.  Compile only if
17874         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
17875         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
17876         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
17877         (ggc_min_heapsize_heuristic): Likewise.
17878
17879 2010-05-26  Richard Guenther  <rguenther@suse.de>
17880
17881         PR rtl-optimization/44164
17882         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
17883         no-common access-path disambiguation.
17884         (indirect_ref_may_alias_decl_p): Adjust.
17885         (indirect_refs_may_alias_p): Likewise.
17886         (refs_may_alias_p_1): Likewise.
17887
17888 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
17889
17890         * c-typeck.c: Do not include expr.h.
17891
17892 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
17893
17894         * rtl.h (decl_default_tls_model): Move prototype from here...
17895         * output.h: ...to here.
17896         * c-decl.c: Do not include rtl.h.
17897         * c-pragma.c: Likewise.
17898         * c-parser.c: Likewise.
17899         * c-gimplify.c: Likewise.  And also not hard-reg-set.
17900         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
17901         FIXME note for it.  Add a FIXME note for expr.h.
17902         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
17903         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
17904         defined.
17905
17906 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
17907
17908         PR target/44199
17909         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
17910         or total_size is larger than red zone size for non-V4 ABI, emit a
17911         stack_tie resp. frame_tie insn before stack pointer restore.
17912         * config/rs6000/rs6000.md (frame_tie): New insn.
17913
17914 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
17915
17916         * function.h (struct function): Add can_throw_non_call_exceptions bit.
17917         * lto-streamer-in.c (input_function): Stream it in.
17918         * lto-streamer-out.c (output_function): Stream it out.
17919         * function.c (allocate_struct_function): Set it.
17920         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
17921         for flag_non_call_exceptions.
17922         * cfgbuild.c (control_flow_insn_p): Likewise.
17923         (make_edges): Likewise.
17924         * cfgexpand.c (expand_stack_alignment): Likewise.
17925         * combine.c (distribute_notes): Likewise.
17926         * cse.c (cse_extended_basic_block): Likewise.
17927         * except.c (insn_could_throw_p): Likewise.
17928         * gcse.c (simple_mem): Likewise.
17929         * ipa-pure-const.c (check_call): Likewise.
17930         (check_stmt ): Likewise.
17931         * lower-subreg.c (lower-subreg.c): Likewise.
17932         * optabs.c (emit_libcall_block): Likewise.
17933         (prepare_cmp_insn): Likewise.
17934         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
17935         * postreload.c (rest_of_handle_postreload): Likewise.
17936         * reload1.c (reload_as_needed): Likewise.
17937         (emit_input_reload_insns): Likewise.
17938         (emit_output_reload_insns): Likewise.
17939         (fixup_abnormal_edges): Likewise.
17940         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
17941         * store-motion.c (find_moveable_store): Likewise.
17942         * tree-eh.c (stmt_could_throw_p): Likewise.
17943         (tree_could_throw_p): Likewise.
17944         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17945         * config/arm/arm.c (arm_expand_prologue): Likewise.
17946         (thumb1_expand_prologue): Likewise.
17947         * config/rx/rx.md (cbranchsf4): Likewise.
17948         (cmpsf): Likewise.
17949         * config/s390/s390.c (s390_emit_prologue): Likewise.
17950         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
17951         (inline_forbidden_into_p): New predicate.
17952         (expand_call_inline): Use it to forbid inlining.
17953         (tree_can_inline_p): Likewise.
17954
17955 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
17956
17957         * config/i386/i386-c.c: Do not include rtl.h.
17958         * config/i386/t-i386: Update dependencies.
17959
17960 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
17961
17962         * attribs.c: Do not include rtl.h.
17963         * Makefile.in: Update dependencies.
17964
17965 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
17966
17967         * double-int.h (double_int_and): New.
17968         * combine.c (try_combine): Clean up, use double_int_* and
17969         immed_double_int_const functions.
17970
17971 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17972
17973         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
17974         stderr to /dev/null instead of grep -q.
17975         * configure: Regenerate.
17976
17977 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
17978
17979         * Makefile.in (EXCEPT_H): Fix typo.
17980
17981 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
17982
17983         * ira-build.c (update_conflict_hard_reg_costs): New.
17984         (ira_build): Call update_conflict_hard_reg_costs.
17985
17986 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
17987
17988         PR debug/41371
17989         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
17990         ENABLE_CHECKING.
17991         (intersect_loc_chains): Walk the s2var's loc_chain together
17992         with s1node chain as long as the locations are equal, don't
17993         call find_loc_in_1pdv in that case.
17994
17995         PR debug/42801
17996         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
17997         (copy_bind_expr): ... instead of here.
17998         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
17999         if the block hasn't been remapped.
18000         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
18001         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
18002
18003 2010-05-25  Richard Guenther  <rguenther@suse.de>
18004
18005         PR middle-end/44069
18006         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
18007         out-of-bounds array accesses.
18008
18009 2010-05-25  Richard Guenther  <rguenther@suse.de>
18010
18011         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
18012         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
18013         (run_gcc): Re-organize to make cleanup easier.
18014
18015 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18016
18017         * config/s390/s390.c (optimization_options): Fix and move the
18018         flag_prefetch_loop_arrays override ...
18019         (override_options): ... here.
18020
18021 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
18022
18023         * diagnostic.c: Don't include plugin.h.
18024         (diagnostic_report_diagnostic): Don't handle plugins specially
18025         here.  Pass context to internal_error callback.
18026         * diagnostic.h (struct diagnostic_context): Add context parameter
18027         to internal_error callback.
18028         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
18029         * plugin.h (struct diagnostic_context): Declare.
18030         (warn_if_plugins, plugins_internal_error_function): Declare.
18031         * toplev.c (general_init): Set global_dc->internal_error.
18032         * Makefile.in (diagnostic.o): Update dependencies.
18033
18034 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
18035
18036         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
18037         * config/rs6000/t-darwin64: New.
18038         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
18039         build crt2.
18040
18041 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
18042
18043         PR 44203
18044         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
18045         match the original (and intended) behaviour before r159557.  This
18046         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
18047         in two ways.
18048
18049 2010-05-25  Richard Guenther  <rguenther@suse.de>
18050
18051         * doc/invoke.texi: Document -Ofast.
18052         * target.h (struct gcc_target): Add handle_ofast.
18053         * target-def.h (TARGET_HANDLE_OFAST): Add.
18054         (TARGET_INITIALIZER): Adjust.
18055         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
18056         * common.opt (Ofast): Add.
18057
18058 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
18059
18060         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
18061         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
18062
18063 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
18064
18065         PR target/43610
18066         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
18067         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
18068         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
18069         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
18070
18071 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
18072
18073         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
18074         DW_OP_minus with negated offset instead of DW_OP_plus.
18075         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
18076
18077 2010-05-25  Wei Guozhi  <carrot@google.com>
18078
18079         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
18080         tst instruction and a new alternative.
18081         * config/arm/constraints.md (Pu): New constraint.
18082
18083 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
18084
18085         * function.c (assign_stack_local_1): Initialize variable
18086         to avoid warning when bootstrapping at -O3.
18087
18088 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
18089
18090         * configure.ac (all_lang_makefiles): Remove everything related to it.
18091         * configure: Regenerate.
18092         * Makefile.in: Fix reference to ada Make-lang.in.
18093         Remove support for LANG_MAKEFILES.
18094
18095 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
18096             Sandra Loosemore  <sandra@codesourcery.com>
18097
18098         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
18099         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
18100         description.  Add arm_neon_fp16_ok.
18101         (Add Options): Add arm_neon and arm_neon_fp16.
18102
18103 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
18104
18105         * diagnostic.c: Don't include flags.h.
18106         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
18107         context parameters.  Check flags in the context passed as a parameter.
18108         (diagnostic_build_prefix): Add context parameter.  Check
18109         show_column flag in context.
18110         (diagnostic_action_after_output): Check fatal_errors flag in context.
18111         (diagnostic_report_current_module): Check show_column flag in context.
18112         (default_diagnostic_starter): Update call to
18113         diagnostic_build_prefix.
18114         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
18115         (emit_diagnostic): Pass context to permissive_error_kind.
18116         (permerror): Pass context to permissive_error_kind.
18117         * diagnostic.h (struct diagnostic_context): Add show_column,
18118         pedantic_errors, permissive and fatal_errors fields.
18119         (diagnostic_build_prefix): Update prototype.
18120         * langhooks.c
18121         * toplev.c (process_options): Set flags in global_dc from
18122         flag_show_column, flag_pedantic_errors, flag_permissive,
18123         flag_fatal_errors.
18124         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
18125         to diagnostic_build_prefix.
18126         * Makefile.in (diagnostic.o): Update dependencies.
18127
18128 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
18129
18130         * config/i386/ia32intrin.h (__crc32q): Define only if
18131         __SSE4_2__ is defined.
18132
18133 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
18134
18135         PR target/44132
18136         PR middle-end/43602
18137         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
18138         DECL_VISIBILITY_SPECIFIED.
18139         (emutls_decl): Set DECL_PRESERVE_P and copy
18140         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
18141         (emutls_finalize_control_var): New callback.
18142         (emutls_finish): Finalize emutls control variables.
18143         * toplev.c (compile_file): Move the call to emutls_finish ()
18144         before varpool_assemble_pending_decls ().
18145
18146 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
18147
18148         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
18149         added to the preprocessor condition.
18150
18151 2010-05-24  Paul Brook  <paul@codesourcery.com>
18152
18153         * gengtype-lex.l: Add HARD_REG_SET.
18154         * expr.c (expand_expr_real_1): Record writes to hard registers.
18155         * function.c (rtl_data): Add asm_clobbers.
18156         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
18157         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
18158         Use crtl->asm_clobbers.
18159
18160 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18161
18162         * doc/makefile.texi (Makefile): Mention stages 'profile'
18163         and 'feedback' for profiledbootstrap.
18164
18165 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
18166
18167         PR target/44245
18168         * config/i386/i386.c (def_builtin): Properly check
18169         OPTION_MASK_ISA_64BIT.
18170
18171 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
18172
18173         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
18174         typedefs with different but compatible types.  Allow duplicate
18175         typedefs with the same type except for pedantic non-C1X, but give
18176         warning for variably modified types.
18177         * c-typeck.c (tagged_types_tu_compatible_p,
18178         function_types_compatible_p, type_lists_compatible_p,
18179         comptypes_internal): Add parameter different_types_p; set
18180         *different_types_p for different but compatible types.  All
18181         callers changed.
18182         (comptypes_check_different_types): New.
18183         * c-tree.h (comptypes_check_different_types): Declare.
18184
18185 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
18186
18187         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
18188         * jump.c: Include basic-block.h.
18189         * profile.c: Likewise.
18190         * tree-profile.c: Likewise.
18191         * coverage.c: Likewise.
18192         * basic-block.h (optimize_function_for_size_p): Move to function.h.
18193         (optimize_function_for_speed_p): Likewise.
18194         * function.h (optimize_function_for_size_p,
18195         optimize_function_for_speed_p): Moved here from basic-block.h.
18196         * Makefile.in: Update dependencies.
18197
18198 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18199
18200         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
18201         before calling make; allow override through $MAKE.
18202         * doc/invoke.texi (Optimize Options): Document override.
18203
18204 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
18205
18206         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
18207         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18208         (rs6000_mode_dependent_address_ptr): Make static.
18209         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18210         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
18211         Remove.
18212
18213 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
18214
18215         PR target/43869
18216         * config/i386/i386.c: Make sure that the correct regparm is passed.
18217
18218 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
18219
18220         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
18221         * sbitmap.c: ...to here to internalize sbitmap element access.
18222         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
18223         Explain why basic-block.h is included.
18224         * function.h: Include tm.h for CUMULATIVE_ARGS.
18225         * Makefile.in: Update dependencies.
18226
18227 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
18228
18229         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
18230         New core types.
18231         * sbitmap.h (struct sbitmap_def): Do not typedef here.
18232         * sbitmap.c: Include sbitmap.h.
18233         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
18234         hard-reg-set.h.  Split everything related to regsets out from here...
18235         * regset.h: ...to here.  New file.
18236         * df.h: Include regset.h and sbitmap.h.
18237         * tree-flow.h: Likewise.
18238         * cfgloop.h: Likewise.
18239         * except.h: Do not include sbitmap.h.  Include hashtab.h.
18240         * cgraph.h: Include vec.h and function.h.
18241         * reload.h (struct insn_chain): Change types of live_throughout
18242         and dead_or_set from regset_head to bitmap_head.
18243         (compute_use_by_pseudos): Be defined also if regset.h is not included.
18244         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
18245         spilled_regs from regset_head to bitmap_head to avoid dependency
18246         in regset.h.
18247         * sel-sched-ir.h: Include regset.h.
18248         * reload.c: Include df.h before reload.h.
18249         * caller-save.c: Likewise.
18250         * reload1.c: Likewise.
18251         * ira.c: Likewise.
18252         (mark_elimination): Update type of r to bitmap, consistent with
18253         DF_LR_IN.
18254         * dominance.c: Include bitmap.h.
18255         * modulo-sched.c: Include df.h.
18256         * cfganal.c: Include bitmap.h and sbitmap.h.
18257         * cfgbuild.c: Include sbitmap.h.
18258         * lcm.c: Include sbitmap.h.
18259         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
18260         * domwalk.c: Include sbitmap.h, exclude ggc.h.
18261         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
18262         * cselib.c: Include bitmap.h.
18263         * tree-optimize.c: Include regset.h.
18264         * stmt.c: Include bitmap.h.
18265         * Makefile.in: Update dependencies.
18266
18267 2010-05-22  Jan Hubicka  <jh@suse.cz>
18268
18269         * cgraph.h (struct varpool_node): Add same_comdat_group.
18270         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
18271         pointer.
18272         (output_varpool): Update call of lto_output_varpool_node.
18273         (input_varpool): Read same_comdat_group pointer.
18274         (input_varpool_1): Fixup same_comdat_group pointer.
18275         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
18276         group is needed, all are.
18277         * varpool.c (varpool_remove_node): Remove node from same comdat group
18278         linklist too.
18279         (varpool_analyze_pending_decls): Walk same comdat groups.
18280
18281 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
18282
18283         * rtl.h (union rtunion_def): Remove rt_bit member.
18284         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
18285         * print-rtl (print_rtx): Do not print the member.
18286         * gengtype.c (adjust_field_rtx_def): Do not handle it.
18287         * gengenrtl.c (type_from_format): Likewise.
18288         (accessor_from_format): Likewise.
18289
18290 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
18291
18292         * dbgcnt.c: Include toplev.h instead of errors.h.
18293         * ira-emit.c: Don't include errors.h.
18294         * ira.c: Include toplev.h instead of errors.h.
18295         * lto-compress.c: Include toplev.h instead of errors.h.
18296         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
18297         ira.o, dbgcnt.o): Update dependencies.
18298
18299 2010-05-22  Richard Guenther  <rguenther@suse.de>
18300
18301         * gimple.c (gimple_types_compatible_p): Check type qualifications
18302         before merging pointer to complete and pointer to incomplete type.
18303         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
18304         we use our own resolution algorithm.  The gold linker plugin
18305         doesn't do the job we want it to do here.
18306
18307 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
18308
18309         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18310         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18311         (sparc_mode_dependent_address_p): New function.
18312
18313 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
18314
18315         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
18316
18317         * timevar.c: Do not include any core headers.
18318         (timevar_print): De-i18n-ize.
18319         (print_time): Likewise.
18320         * timevar.h (timevar_push, timevar_pop): Make inline functions.
18321
18322 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
18323
18324         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
18325         langhooks-def.h.
18326         (diagnostic_initialize): Initialize x_data not last_function.
18327         (diagnostic_report_current_function): Move to tree-diagnostic.c.
18328         (default_diagnostic_starter): Call
18329         diagnostic_report_current_module not
18330         diagnostic_report_current_function.
18331         (diagnostic_report_diagnostic): Initialize x_data not
18332         abstract_origin.
18333         (verbatim): Likewise.
18334         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
18335         x_data.
18336         (struct diagnostic_context): Change last_function to x_data.
18337         (diagnostic_auxiliary_data): Replace with
18338         diagnostic_context_auxiliary_data and
18339         diagnostic_info_auxiliary_data.
18340         (diagnostic_last_function_changed, diagnostic_set_last_function,
18341         diagnostic_report_current_function): Move to tree-diagnostic.h.
18342         (print_declaration, dump_generic_node, print_generic_stmt,
18343         print_generic_stmt_indented, print_generic_expr,
18344         print_generic_decl, debug_c_tree, dump_omp_clauses,
18345         print_call_name, debug_generic_expr, debug_generic_stmt,
18346         debug_tree_chain, default_tree_printer): Move to
18347         tree-pretty-print.h.
18348         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
18349         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
18350         gimple-pretty-print.h.
18351         * pretty-print.c: Don't include tree.h
18352         (pp_base_format): Don't handle %K here.
18353         (pp_base_tree_identifier): Move to tree-pretty-print.c.
18354         * pretty-print.h (text_info): Change abstract_origin to x_data.
18355         (pp_tree_identifier, pp_unsupported_tree,
18356         pp_base_tree_identifier): Move to tree-pretty-print.h.
18357         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
18358         tree-pretty-print.h: New files.
18359         * tree-pretty-print.c: Include tree-pretty-print.h.
18360         (percent_K_format): New.  Moved from pretty-print.c.
18361         (pp_base_tree_identifier): Move from pretty-print.c.
18362         * c-objc-common.c: Include tree-pretty-print.h.
18363         (c_tree_printer): Handle %K here.
18364         * langhooks.c: Include tree-diagnostic.h.
18365         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
18366         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
18367         (default_tree_printer): Handle %K using percent_K_format.
18368         (general_init): Use default_tree_diagnostic_starter.
18369         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
18370         (free_lang_data): Use default_tree_diagnostic_starter.
18371         * c-pretty-print.c: Include tree-pretty-print.h.
18372         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18373         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18374         * dwarf2out.c: Include tree-pretty-print.h.
18375         * except.c: Include tree-pretty-print.h.
18376         * gimple-pretty-print.c: Include tree-pretty-print.h and
18377         gimple-pretty-print.h.
18378         * gimplify.c: Include tree-pretty-print.h.
18379         * graphite-poly.c: Include tree-pretty-print.h and
18380         gimple-pretty-print.h.
18381         * ipa-cp.c: Include tree-pretty-print.h.
18382         * ipa-inline.c: Include gimple-pretty-print.h.
18383         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18384         * ipa-pure-const.c: Include gimple-pretty-print.h.
18385         * ipa-struct-reorg.c: Include tree-pretty-print.h and
18386         gimple-pretty-print.h.
18387         * ipa-type-escape.c: Include tree-pretty-print.h.
18388         * print-rtl.c: Include tree-pretty-print.h.
18389         * print-tree.c: Include gimple-pretty-print.h.
18390         * sese.c: Include tree-pretty-print.h.
18391         * tree-affine.c: Include tree-pretty-print.h.
18392         * tree-browser.c: Include tree-pretty-print.h.
18393         * tree-call-cdce.c: Include gimple-pretty-print.h.
18394         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18395         * tree-chrec.c: Include tree-pretty-print.h.
18396         * tree-data-ref.c: Include tree-pretty-print.h and
18397         gimple-pretty-print.h.
18398         * tree-dfa.c: Include tree-pretty-print.h.
18399         * tree-if-conv.c: Include tree-pretty-print.h and
18400         gimple-pretty-print.h.
18401         * tree-inline.c: Include tree-pretty-print.h.
18402         * tree-into-ssa.c: Include tree-pretty-print.h and
18403         gimple-pretty-print.h.
18404         * tree-nrv.c: Include tree-pretty-print.h.
18405         * tree-object-size.c: Include tree-pretty-print.h and
18406         gimple-pretty-print.h.
18407         * tree-outof-ssa.c: Include tree-pretty-print.h and
18408         gimple-pretty-print.h.
18409         * tree-parloops.c: Include tree-pretty-print.h and
18410         gimple-pretty-print.h.
18411         * tree-predcom.c: Include tree-pretty-print.h and
18412         gimple-pretty-print.h.
18413         * tree-scalar-evolution.c: Include tree-pretty-print.h and
18414         gimple-pretty-print.h.
18415         * tree-sra.c: Include tree-pretty-print.h.
18416         * tree-ssa-address.c: Include tree-pretty-print.h.
18417         * tree-ssa-alias.c: Include tree-pretty-print.h.
18418         * tree-ssa-ccp.c: Include tree-pretty-print.h and
18419         gimple-pretty-print.h.
18420         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
18421         * tree-ssa-copy.c: Include tree-pretty-print.h and
18422         gimple-pretty-print.h.
18423         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
18424         * tree-ssa-dce.c: Include tree-pretty-print.h and
18425         gimple-pretty-print.h.
18426         * tree-ssa-dom.c: Include tree-pretty-print.h and
18427         gimple-pretty-print.h.
18428         * tree-ssa-dse.c: Include gimple-pretty-print.h.
18429         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
18430         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
18431         * tree-ssa-live.c: Include tree-pretty-print.h and
18432         gimple-pretty-print.h.
18433         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
18434         gimple-pretty-print.h.
18435         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
18436         gimple-pretty-print.h.
18437         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
18438         gimple-pretty-print.h.
18439         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
18440         gimple-pretty-print.h.
18441         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
18442         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
18443         * tree-ssa-operands.c: Include tree-pretty-print.h and
18444         gimple-pretty-print.h.
18445         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
18446         gimple-pretty-print.h.
18447         * tree-ssa-pre.c: Include tree-pretty-print.h and
18448         gimple-pretty-print.h.
18449         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
18450         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
18451         gimple-pretty-print.h.
18452         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
18453         gimple-pretty-print.h.
18454         * tree-ssa-sink.c: Include gimple-pretty-print.h.
18455         * tree-ssa-ter.c: Include tree-pretty-print.h and
18456         gimple-pretty-print.h.
18457         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
18458         * tree-ssa.c: Include tree-pretty-print.h and
18459         gimple-pretty-print.h.
18460         * tree-stdarg.c: Include gimple-pretty-print.h.
18461         * tree-switch-conversion.c: Include gimple-pretty-print.h.
18462         * tree-tailcall.c: Include tree-pretty-print.h and
18463         gimple-pretty-print.h.
18464         * tree-vect-data-refs.c: Include tree-pretty-print.h and
18465         gimple-pretty-print.h.
18466         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
18467         gimple-pretty-print.h.
18468         * tree-vect-loop.c: Include tree-pretty-print.h and
18469         gimple-pretty-print.h.
18470         * tree-vect-patterns.c: Include gimple-pretty-print.h.
18471         * tree-vect-slp.c: Include tree-pretty-print.h and
18472         gimple-pretty-print.h.
18473         * tree-vect-stmts.c: Include tree-pretty-print.h and
18474         gimple-pretty-print.h.
18475         * tree-vectorizer.c: Include tree-pretty-print.h.
18476         * tree-vrp.c: Include tree-pretty-print.h and
18477         gimple-pretty-print.h.
18478         * value-prof.c: Include tree-pretty-print.h and
18479         gimple-pretty-print.h.
18480         * var-tracking.c: Include tree-pretty-print.h.
18481         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
18482         (tree-diagnostic.o): New dependencies.
18483         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
18484         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
18485         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
18486         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
18487         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
18488         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
18489         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
18490         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
18491         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
18492         tree-ssa-address.o, tree-ssa-loop-niter.o,
18493         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
18494         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
18495         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
18496         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
18497         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
18498         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
18499         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
18500         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
18501         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
18502         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
18503         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
18504         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
18505         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
18506         tree-switch-conversion.o, var-tracking.o, value-prof.o,
18507         cfgexpand.o, pretty-print.o): Update dependencies.
18508
18509 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
18510
18511         * tree-ssa-structalias.c: Remove tm_p.h from include.
18512
18513 2010-05-21  Jeff Law  <law@redhat.com>
18514
18515         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
18516
18517 2010-05-21  Jason Merrill  <jason@redhat.com>
18518
18519         * tree-eh.c (cleanup_is_dead_in): New.
18520         (lower_try_finally): Don't generate a dead cleanup region.
18521         (lower_cleanup): Likewise.
18522
18523 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
18524
18525         PR debug/44223
18526         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
18527         unchain each use from the cyclic next_regno_use chain first.
18528
18529 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
18530
18531         * real: Do not include gmp.h, mpfr.h, and mpc.h.
18532         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
18533         (real_value_negate, real_value_abs): New prototypes.
18534         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
18535         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
18536         new include file for interface between MPFR and REAL_VALUE_TYPE.
18537         * real.c: Include realmpfr.h.
18538         (real_arithmetic2): Remove legacy function.
18539         (real_value_negate): New.
18540         (real_value_abs): New.
18541         (mfpr_from_real, real_from_mpfr): Move from here...
18542         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
18543         * builtins.c: Include realmpfr.h.
18544         * fold-const.c: Include realmpfr.h.
18545         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
18546         (fold_negate_const): Likewise.
18547         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
18548         * toplev.c: Include realmpfr.h.
18549         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
18550         and real_value_negate.
18551         * fixed-value.c (check_real_for_fixed_mode): Likewise.
18552         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
18553         (vfp3_const_double_index): Likewise.
18554         (arm_print_operand): Likewise.
18555         * Makefile.in: Update dependencies.
18556
18557 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18558
18559         * config/s390/s390.c (override_options): Increase the default
18560         of max-completely-peel-times.
18561
18562 2010-05-21  Julian Brown  <julian@codesourcery.com>
18563             Mark Mitchell  <mark@codesourcery.com>
18564
18565         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
18566         sibling calls for Thumb-1.
18567         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
18568         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
18569         Thumb-2.
18570         (*call_insn, *call_value_insn): Don't use for Thumb-2.
18571         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
18572         for Thumb-2.
18573         (return): New expander.
18574         (*arm_return): New name for ARM return insn.
18575         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
18576
18577 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
18578
18579         * config.gcc (sparc64-*-rtems*): New target.
18580
18581 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
18582
18583         * tree.c (build_function_decl_skip_args): Fix grammar.
18584         (build_function_type_list_1): Fix typos, adjust formatting.
18585
18586 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
18587
18588         * tree.h: Include real.h and fixed-value.h as basic datatypes.
18589         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
18590         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
18591         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
18592         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
18593         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
18594         tree-pretty-print.c, tree-loop-distribution.c,
18595         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
18596         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
18597         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
18598         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
18599         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
18600         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
18601         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
18602         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
18603         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
18604         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
18605         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
18606         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
18607         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
18608         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
18609         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
18610         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
18611         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
18612         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
18613         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
18614         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
18615         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
18616         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
18617         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
18618         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
18619         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
18620         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
18621         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
18622         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
18623         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
18624         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
18625         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
18626         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
18627         config/score/score7.c, config/score/score.c, config/arm/arm.c,
18628         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
18629         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
18630         config/bfin/bfin.c: Clean up redundant includes.
18631         * Makefile.in: Update accordingly.
18632
18633 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
18634
18635         PR middle-end/44204
18636         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
18637         statement has no arguments.
18638
18639 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
18640
18641         PR/44139
18642         * varasm.c (emutls_decl): Merge attributes to new decl.
18643
18644 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
18645
18646         PR middle-end/44101
18647         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
18648         around the uniquized constructor if its type requires a conversion.
18649
18650 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
18651
18652         PR debug/44205
18653         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
18654         at -O0 goto_locus of any of the incoming edges differs from
18655         goto_locus of outgoing edge, or gimple_location of any of the
18656         labels differs.
18657
18658 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
18659
18660         * ira.c (ira_non_ordered_class_hard_regs): Define.
18661         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
18662         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
18663         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
18664         cost of unaligned hard regs when allocating multi-reg pseudos.
18665
18666 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
18667
18668         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
18669         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
18670         for TARGET_NO_FLOAT.
18671         * config/mips/mips.c (mips_file_start): Expand conditional expression
18672         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
18673         (mips_override_options): Move -mno-float override -msoft-float and
18674         -mhard-float.
18675         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
18676         Condition(TARGET_SUPPORTS_NO_FLOAT).
18677         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
18678         __mips_no_float here.
18679         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
18680         (TARGET_SUPPORTS_NO_FLOAT): Define.
18681         * config/mips/sdemtk.opt: Delete.
18682
18683 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
18684
18685         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
18686
18687 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
18688
18689         PR target/43733
18690         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
18691         * configure: Regenerate.
18692         * config.in: Regenerate.
18693         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
18694         instead of sahf only for 64bit targets.
18695
18696 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
18697
18698         PR debug/44178
18699         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
18700         setup_ref_regs for DEBUG_INSNs.
18701
18702 2010-05-20  Jan Hubicka  <jh@suse.cz>
18703
18704         PR middle-end/44197
18705         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
18706
18707 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
18708
18709         PR bootstrap/43870
18710         * df-scan.c (df_ref_compare): Stabilize sort.
18711
18712 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
18713
18714         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
18715         argument.  Don't use DW_OP_piece if offset is non-zero,
18716         put offset into second DW_OP_bit_piece argument.
18717         (dw_sra_loc_expr): Adjust callers.  For memory expressions
18718         compute offset.
18719
18720 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
18721
18722         PR target/44202
18723         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
18724         settings for 16-bit-constant "addo" alternative.
18725
18726 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
18727
18728         * config/mips/mips-dsp.md (add<DSPV:mode>3,
18729         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
18730
18731         PR target/43764
18732         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
18733         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
18734         Use it.
18735
18736 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
18737
18738         * diagnostic.c (FLOAT, FFS): Don't undefine.
18739         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
18740         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
18741         include ordering.
18742
18743 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
18744
18745         * combine.c (propagate_for_debug): Call make_compound_operation
18746         on the source value.
18747         (try_combine): When implementing a split chosen by find_split_point,
18748         either copy i2src or set it to null.  Assert that i2src is not null
18749         before substituting into CALL_INSN_FUNCTION_USAGE.
18750
18751 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
18752
18753         * double-int.h (double_int_ior): New function.
18754         * tree.h (build_int_cst_wide_type): Remove.
18755         * tree.c (build_int_cst_wide_type): Remove.
18756         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
18757         of build_int_cst_wide_type.
18758         * stor-layout.c (set_sizetype): (Ditto.).
18759         * dojump.c (do_jump): Use build_int_cstu instead of
18760         build_int_cst_wide_type.
18761
18762 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
18763
18764         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
18765         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
18766         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
18767         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
18768         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
18769         propagate the 'data' argument to copy_tree_r.
18770         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
18771         Propagate 'data' argument to walk_tree.
18772         (copy_if_shared): New function.
18773         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
18774         (unmark_visited): New function.
18775         (unshare_body): Call copy_if_shared instead of doing it manually.
18776         (unvisit_body): Call unmark_visited instead of doing it manually.
18777
18778 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
18779
18780         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
18781         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
18782         * hooks.c: Likewise.
18783         * target-def.h (TARGET_FOLD_BUILTIN): Define to
18784         hook_tree_tree_int_treep_bool_null.
18785         * target.h (struct gcc_target): Update signature of fold_builtin
18786         field.
18787         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
18788         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
18789         instead of the call expression.
18790         (fold_builtin_call_array): Pass n and argarray directly.
18791         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
18792         consing a list.
18793         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
18794         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
18795         `i' and use it in place of `arity'.
18796         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
18797         Dereference `args' directly.
18798         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
18799
18800 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18801
18802         * doc/sourcebuild.texi (Effective-Target Keywords): Document
18803         3dnow, sse3, sse2.
18804         (Directives): Document optional dg-require-effective-target
18805         selector.
18806
18807 2010-05-19  Richard Guenther  <rguenther@suse.de>
18808
18809         PR lto/44196
18810         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
18811
18812 2010-05-19  Richard Guenther  <rguenther@suse.de>
18813
18814         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
18815         * common.opt (fwhopr=): New.
18816         * opts.c (common_handle_option): Handle OPT_fwhopr.
18817         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
18818         * collect2.c (main): Match -fwhopr*.
18819         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
18820         Execute ltrans stage in parallel when jobs is bigger than 1.
18821
18822 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18823
18824         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
18825         pentiumpro on Solaris 8/x86 with Sun as.
18826         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
18827         hidden alias bug.
18828         (gcc_cv_as_ix86_quad): Check for .quad directive.
18829         * configure: Regenerate.
18830         * config.in: Regenerate.
18831         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
18832
18833 2010-05-19  Martin Jambor  <mjambor@suse.cz>
18834
18835         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
18836         also for indirect edges.  Actual printing moved...
18837         (ipa_print_node_jump_functions_for_edge): ...here.
18838         (ipa_compute_jump_functions): Renamed to
18839         ipa_compute_jump_functions_for_edge and made static.
18840         (ipa_compute_jump_functions): New function.
18841         (make_edge_direct_to_target): Check if the number of arguments on
18842         the newly direct edge is the same as the number of parametrs of
18843         the callee.
18844         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
18845         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
18846         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
18847         analysis functions unconditionally, call the new
18848         ipa_analyze_params_uses on the node instead of every edge.
18849
18850 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
18851
18852         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
18853         to tree.
18854         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
18855         also checks for a constant int vs.  non-constant but
18856         loop-invariant steps.
18857         (find_or_create_group): Change the sort algorithm to only consider
18858         steps that are constant ints.
18859         (idx_analyze_ref): Adopt code to handle a tree instead of a
18860         HOST_WIDE_INT for step.
18861         (gather_memory_references_ref): Handle tree instead of int and be
18862         prepared to see a NULL_TREE.
18863         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
18864         prefetches if the step cannot be calculated at compile time.
18865         (issue_prefetch_ref): Issue prefetches for non-constant but
18866         loop-invariant steps.
18867
18868 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
18869
18870         Revert:
18871         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
18872
18873         * tree.h (build_call_list): Remove.
18874         * tree.c (build_call_list): Remove.
18875
18876 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
18877
18878         * tree.h (build_call_list): Remove.
18879         * tree.c (build_call_list): Remove.
18880
18881 2010-05-18  Jan Hubicka  <jh@suse.cz>
18882
18883         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
18884
18885 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
18886
18887         PR rtl-optimization/43332
18888         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
18889
18890 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
18891
18892         * tree.h (build_int_cstu): Implement as static inline.
18893         * tree.c (build_int_cstu): Remove function.
18894         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
18895         sign extended.
18896
18897 2010-05-18  Richard Guenther  <rguenther@suse.de>
18898
18899         PR lto/44143
18900         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
18901         (debug): Initialize from -save-temps.
18902         (collect_execute): Print command-line when verbose.
18903         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
18904         for ltrans invocation.  Produce -dumpbase flag again.
18905         (process_args): Remove.
18906         (main): Simplify.
18907         * collect2.c (maybe_run_lto_and_relink): Only pass object
18908         files to lto-wrapper.
18909         * gcc.c (LINK_COMMAND_SPEC): Likewise.
18910
18911 2010-05-18  Jan Hubicka  <jh@suse.cz>
18912
18913         * opts.c (decode_options): Do not disable whopr at ipa_cp.
18914         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
18915
18916 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
18917
18918         PR lto/44184
18919         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
18920         in a GIMPLE_ASM.
18921         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
18922         in a GIMPLE_ASM.
18923
18924 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
18925
18926         PR debug/41371
18927         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
18928         rtx_equal_p inline.
18929
18930 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
18931
18932         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
18933         lto-macho as lto_binary_reader.
18934
18935         * darwin.c (darwin_asm_named_section): Do not add assembler comment
18936         after .section directive; just print it before the directive instead.
18937
18938 2010-05-17  Jan Hubicka  <jh@suse.cz>
18939
18940         * cgraph.c (cgraph_create_virtual_clone): Only check
18941         versionable_function_p when not in wpa and checking is enabled.
18942         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
18943         there are no more functions to materialize.
18944
18945 2010-05-17  Jan Hubicka  <jh@suse.cz>
18946
18947         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
18948         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
18949         New functions.
18950         (output_cgraph): Call output_cgraph_opt_summary.
18951         (input_cgrpah): Call input_cgraph_opt_summary.
18952         (output_cgraph_opt_summary_p, output_node_opt_summary,
18953         input_node_opt_summary, input_cgraph_opt_section): New functions.
18954         * lto-section-in.c (lto_section_name): Add cgraphopt.
18955         * tree-inline.c (tree_function_versioning): Handle parm_num.
18956         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
18957         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
18958
18959 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
18960
18961         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
18962         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
18963         the insn to prefetch ratio heuristic to loops with known trip count.
18964
18965 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
18966
18967         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
18968         (schedule_prefetches): Do not generate a prefetch if the unroll factor
18969         is far from what is required by the prefetch.
18970
18971 2010-05-17  Jan Hubicka  <jh@suse.cz>
18972
18973         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
18974         (ipcp_estimate_growth): Likewise.
18975         (ipcp_const_param_count): Likewise.
18976         (ipcp_insert_stage): Likewise.
18977         * ipa-prop.c (visit_load_for_mod_analysis): New function.
18978         (visit_store_addr_for_mod_analysis): Set used flag.
18979         (ipa_detect_param_modifications): Set used flag for SSE params;
18980         update use of walk_stmt_load_store_addr_ops.
18981         (ipa_print_node_params): Print used flag.
18982         (ipa_write_node_info): Stream used flag.
18983         (ipa_read_node_info): Likewise.
18984         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
18985         (ipa_is_param_used): New function.
18986         (lto_ipa_fixup_call_notes): Remove unused declaration.
18987
18988 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18989
18990         PR target/44074
18991         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
18992         * configure: Regenerate.
18993         * config.in: Regenerate.
18994         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
18995         !HAVE_AS_IX86_REP_LOCK_PREFIX.
18996         Don't emit whitespace.
18997         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
18998         (*rep_movsi): Likewise.
18999         (*rep_movsi_rex64): Likewise.
19000         (*rep_movqi): Likewise.
19001         (*rep_movqi_rex64): Likewise.
19002         (*rep_stosdi_rex64): Likewise.
19003         (*rep_stossi): Likewise.
19004         (*rep_stossi_rex64): Likewise.
19005         (*rep_stosqi): Likewise.
19006         (*rep_stosqi_rex64): Likewise.
19007         (*cmpstrnqi_nz_1): Use {%;} after repz.
19008         (*cmpstrnqi_nz_rex_1): Likewise.
19009         (*cmpstrnqi_1): Likewise.
19010         (*cmpstrnqi_rex_1): Likewise.
19011         (*strlenqi_1): Use {%;} after repnz.
19012         (*strlenqi_rex_1): Likewise.
19013         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
19014         (*sync_compare_and_swap<mode>): Likewise.
19015         (sync_double_compare_and_swap<mode>): Likewise.
19016         (*sync_double_compare_and_swapdi_pic): Likewise.
19017         (sync_old_add<mode>): Likewise.
19018         (sync_add<mode>): Likewise.
19019         (sync_sub<mode>): Likewise.
19020         (sync_<code><mode>): Likewise.
19021
19022 2010-05-17  Martin Jambor  <mjambor@suse.cz>
19023
19024         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
19025         otr_token and polymorphic.
19026         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
19027         (cgraph_clone_edge): Copy the above fields.
19028         * tree.c (get_binfo_at_offset): New function.
19029         * tree.h (get_binfo_at_offset): Declare.
19030         * ipa-prop.h (enum jump_func_type): Added known_type jump function
19031         type, reordered items, updated comments.
19032         (union jump_func_value): Added base_type field, reordered fields.
19033         (enum ipa_lattice_type): Moved down in the file.
19034         (struct ipa_param_descriptor): New field polymorphic.
19035         (ipa_is_param_polymorphic): New function.
19036         * ipa-prop.c: Include gimple.h and gimple-fold.h.
19037         (ipa_print_node_jump_functions): Print known type jump functions.
19038         (compute_complex_pass_through): Renamed to...
19039         (compute_complex_assign_jump_func): this.
19040         (compute_complex_ancestor_jump_func): New function.
19041         (compute_known_type_jump_func): Likewise.
19042         (compute_scalar_jump_functions): Create known type and complex ancestor
19043         jump functions.
19044         (ipa_note_param_call): New parameter polymorphic, set the corresponding
19045         flag in the call note accordingly.
19046         (ipa_analyze_call_uses): Renamed to...
19047         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
19048         variable var only in the block where it is used.
19049         (ipa_analyze_virtual_call_uses): New function.
19050         (ipa_analyze_call_uses): Likewise.
19051         (combine_known_type_and_ancestor_jfs): Likewise.
19052         (update_jump_functions_after_inlining): Implemented handling of a
19053         number of new jump function types combination.
19054         (print_edge_addition_message): Removed.
19055         (make_edge_direct_to_target): New function.
19056         (try_make_edge_direct_simple_call): Likewise.
19057         (try_make_edge_direct_virtual_call): Likewise.
19058         (update_call_notes_after_inlining): Renamed to...
19059         (update_indirect_edges_after_inlining): this.  Moved edge creation for
19060         indirect calls to try_make_edge_direct_simple_call, also calls
19061         try_make_edge_direct_virtual_call for virtual calls.
19062         (ipa_print_node_params): Changed the header message.
19063         (ipa_write_jump_function): Stream also known type jump functions.
19064         (ipa_read_jump_function): Likewise.
19065         (ipa_write_indirect_edge_info): Stream new fields in
19066         cgraph_indirect_call_info.
19067         (ipa_read_indirect_edge_info): Likewise.
19068         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
19069         GIMPLE_FOLD_H.
19070
19071 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19072
19073         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
19074
19075 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
19076
19077         * tree.h (CALL_EXPR_ARGS): Delete.
19078         (call_expr_arglist): Delete.
19079         * tree.c (call_expr_arglist): Delete.
19080         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
19081         targetm.fold_builtin.
19082         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
19083         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
19084         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
19085         arglist parameter.  Use CALL_EXPR_ARG.
19086         (picochip_expand_builtin_3op): Likewise.
19087         (picochip_expand_builtin_2opvoid): Likewise.
19088         (picochip_expand_array_get): Likewise.
19089         (picochip_expand_array_put): Likewise.
19090         (picochip_expand_array_testport): Likewise.
19091         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
19092         rather than arglist.
19093         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
19094         CALL_EXPR_ARGS.
19095         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
19096         than TREE_VALUE and TREE_CHAIN.
19097         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
19098         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
19099         the arglist.
19100
19101 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
19102
19103         PR bootstrap/42347
19104         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
19105         to have no fallthru edge.
19106
19107         PR middle-end/44102
19108         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
19109         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
19110         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
19111         add BARRIER after previous bb if needed.
19112
19113 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
19114
19115         * tree.c (build_function_type_list_1): Remove bogus assert condition.
19116
19117 2010-05-17  Alan Modra  <amodra@gmail.com>
19118
19119         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
19120         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
19121         with copy_reg rtx param.
19122         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
19123         Correct cases where code for ABI_V4 did not initialise the reg
19124         used to access frame.  Also leave frame_reg_rtx as sp for large
19125         frames that save no regs.
19126
19127 2010-05-17  Martin Jambor  <mjambor@suse.cz>
19128
19129         PR middle-end/44133
19130         * tree-sra.c (create_access_replacement): New parameter rename, mark
19131         the replaement for renaming only when it is true.
19132         (get_access_replacement): Pass true in the rename parameter of
19133         create_access_replacement.
19134         (get_unrenamed_access_replacement): New function.
19135         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
19136         replacement declaration from it.
19137
19138 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
19139
19140         * function.c (try_fit_stack_local, add_frame_space): New static
19141         functions.
19142         (assign_stack_local_1): Use them.  Look for opportunities to use
19143         space previously wasted on alignment.
19144         * function.h (struct frame_space): New.
19145         (struct rtl_data): Add FRAME_SPACE_LIST member.
19146         * reload1.c (something_was_spilled): New static variable.
19147         (alter_reg): Set it.
19148         (reload): Test it in addition to testing if the frame size changed.
19149
19150 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
19151
19152         * config/s390/s390.c: Define sane prefetch settings and activate
19153         flag_prefetch_loop_arrays on -O3.
19154         * config/s390/s390.h: Declare that read can use write prefetch.
19155
19156 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
19157
19158         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
19159         build.
19160
19161 2010-05-16  Jan Hubicka  <jh@suse.cz>
19162
19163         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
19164         function body; do not check stdarg field of struct function.
19165
19166 2010-05-16  Jan Hubicka  <jh@suse.cz>
19167
19168         * cgraph.c (dump_cgraph_node): Dump versionable flag.
19169         * cgraph.h (cgraph_local_info): Add versionable flag.
19170         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
19171         (ipcp_versionable_function_p): Use it.
19172         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
19173         versionable flag.
19174
19175 2010-05-16  Jan Hubicka  <jh@suse.cz>
19176
19177         * cgraph.c (cgraph_clone_node): Take decl argument and insert
19178         clone into hash when it is different from orig.
19179         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
19180         * cgraph.h (cgraph_clone_node): Update prototype.
19181         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
19182         (lto_cgraph_encoder_delete): Delete body map.
19183         (lto_cgraph_encoder_size): Move to header.
19184         (lto_cgraph_encoder_encode_body_p,
19185         lto_set_cgraph_encoder_encode_body): New.
19186         (lto_output_node): Do not take written_decls argument; output clone_of
19187         pointer.
19188         (add_node_to): Add include_body_argument; call
19189         lto_set_cgraph_encoder_encode_body on master of the clone.
19190         (add_references): Update use of add_node_to.
19191         (compute_ltrans_boundary): Likewise.
19192         (output_cgraph): Do not create written_decls bitmap.
19193         (input_node): Take nodes argument; stream in clone_of correctly.
19194         (input_cgraph_1): Update use of input_node.
19195         * lto-streamer-out.c (lto_output): Use encoder info to decide
19196         what bodies to output.
19197         * ipa-inline.c (cgraph_clone_inlined_nodes,
19198         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
19199         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
19200         (lto_cgraph_encoder_size): Define here.
19201         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
19202         Declare.
19203
19204 2010-05-16  Richard Guenther  <rguenther@suse.de>
19205
19206         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
19207         -fipa-type-escape.
19208         * ipa-type-escape.c (gate_type_escape_vars): Run when
19209         -fipa-struct-reorg runs.
19210         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
19211         * common.opt (fipa-type-escape): Remove.
19212
19213 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
19214
19215         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
19216         (decode_options): Likewise.
19217         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
19218
19219 2010-05-16  Jan Hubicka  <jh@suse.cz>
19220
19221         * ipa.c (function_and_variable_visibility): Also bring local all
19222         aliases.
19223
19224 2010-05-16  Richard Guenther  <rguenther@suse.de>
19225
19226         * alias.c (nonoverlapping_memrefs_p): Remove use of
19227         IPA type-escape information.
19228
19229 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
19230
19231         * c-common.c (c_common_reswords): Add _Static_assert for C.
19232         * c-parser.c (c_token_starts_declaration,
19233         c_parser_next_token_starts_declaration,
19234         c_parser_static_assert_declaration_no_semi,
19235         c_parser_static_assert_declaration): New.
19236         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
19237         Handle static assertions if static_assert_ok.
19238         (c_parser_external_declaration, c_parser_declaration_or_fndef,
19239         c_parser_compound_statement_nostart, c_parser_label,
19240         c_parser_for_statement, c_parser_objc_methodprotolist,
19241         c_parser_omp_for_loop): All callers of
19242         c_parser_declaration_or_fndef changed.
19243         (c_parser_struct_declaration): Handle static assertions.
19244         (c_parser_compound_statement_nostart): Use
19245         c_parser_next_token_starts_declaration and
19246         c_token_starts_declaration to detect start of declarations.
19247         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
19248         Likewise.
19249
19250 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
19251
19252         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19253         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19254         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19255         TARGET_FUNCTION_VALUE_REGNO_P): Define.
19256         (mmix_function_outgoing_value): Rename to...
19257         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
19258         (mmix_function_value_regno_p): Make static.
19259         (mmix_libcall_value): New function.
19260         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
19261         mmix_function_value_regno_p): Remove declaration.
19262
19263 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
19264
19265         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
19266         BUILT_IN_ALLOCA if stack checking is enabled.
19267
19268 2010-05-16  Richard Guenther  <rguenther@suse.de>
19269
19270         * var-tracking.c (vars_copy_1): Inline ...
19271         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
19272         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
19273         (variable_merge_over_cur): Adjust.  Merge asserts.
19274         (variable_merge_over_src): Likewise.
19275         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
19276         (variable_post_merge_new_vals): Merge asserts.
19277         (variable_post_merge_perm_vals): Likewise.
19278         (find_mem_expr_in_1pdv): Likewise.
19279         (dataflow_set_different_value): Remove.
19280         (onepart_variable_different_p): Merge asserts.
19281         (variable_different_p): Likewise.
19282         (dataflow_set_different_1): Inline ...
19283         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
19284         (emit_notes_for_differences_1): Merge asserts.
19285
19286 2010-05-16  Richard Guenther  <rguenther@suse.de>
19287
19288         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
19289         * optabs.c (libfunc_decl_hash): Likewise.
19290         * varasm.c (emutls_decl): Likewise.
19291
19292 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
19293
19294         * c-decl.c: Don't include gimple.h.
19295         (merge_decls): Do not copy gimple_body.
19296
19297 2010-05-15  Jason Merrill  <jason@redhat.com>
19298
19299         * c.opt: Add -fnothrow-opt.
19300
19301 2010-05-15  Jan Hubicka  <jh@suse.cz>
19302
19303         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
19304         analyzed.
19305         * passes.c (ipa_write_summaries): Write all analyzed nodes.
19306
19307 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
19308
19309         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
19310         * Makefile.in: Add it.
19311         Fix all other Makefile dependencies for changes below.
19312         * tree.h: Include it instead of defining VEC primitives here.
19313         * gimple.h: Likewise.
19314         * rtl.h: Likewise.
19315         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
19316         * except.h: Include vecir.h, break dependence on tree.h.
19317
19318         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
19319         Move from here...
19320         * tree-iterator.c: ...to here.
19321         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
19322
19323         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
19324         tm_p.h.
19325         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
19326         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
19327         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
19328         tree-mudflap.h, and target.h.
19329         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
19330         predict.h, tree-inline.h, gimple.h, and langhooks.h.
19331         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
19332         Add FIXME for why gimple.h is still included (should be unnecessary
19333         since GCC 4.5 gimplification unit-at-a-time).
19334         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
19335         * c-pragma.c: Add FIXME for why function.h needs to be included just
19336         for cfun, at front-end level.
19337         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
19338         Do not include ggc.h, but include vecprim.h for VEC(char).
19339         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
19340         Explain why target.h is included.
19341         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
19342         Explain why gimple.h is included.
19343         * c-ppoutput.c: Do not include tm.h.
19344         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
19345         * c-parses.c: Explain why rtl.h is included, and that this (and only
19346         this) is also why tm.h must be included.
19347         Do not include except.h.
19348         * c-lang.c: Do not include ggc.h.
19349
19350 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
19351
19352         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
19353
19354 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
19355
19356         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
19357         unions by default if those structs and unions have no tags.  Do
19358         not condition anonymous struct and unions handling on flag_iso.
19359         Allow anonymous structs and unions for C1X.
19360         (finish_struct): Do not diagnose lack of named fields when
19361         anonymous structs and unions present for C1X.  Accept flexible
19362         array members in structure with anonymous structs or unions but no
19363         directly named fields.
19364         * doc/extend.texi (Unnamed Fields): Update.
19365
19366 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
19367
19368         * gimple.h (compare_field_offset): Rename into...
19369         (gimple_compare_field_offset): ...this.
19370         * gimple.c (compare_field_offset): Rename into...
19371         (gimple_compare_field_offset): ...this.  Compare the full access if
19372         the offset is self-referential.
19373         (gimple_types_compatible_p): Adjust for above renaming.
19374         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
19375         DECL_NONADDRESSABLE_P flag of fields before merging them.
19376
19377 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
19378
19379         * tree.h (ctor_to_list): Delete.
19380         * tree.c (ctor_to_list): Delete.
19381
19382 2010-05-15  Jan Hubicka  <jh@suse.cz>
19383
19384         * ipa-reference.c: Include toplev.h
19385         (is_proper_for_analysis): Only add to all_module_statics
19386         if it is allocated.
19387         (write_node_summary_p, stream_out_bitmap,
19388         ipa_reference_write_optimization_summary,
19389         ipa_reference_read_optimization_summary): New.
19390         (struct ipa_opt_pass_d pass_ipa_reference): Add
19391         optimization summary streaming.
19392         * lto-cgraph.c (referenced_from_this_partition_p,
19393         reachable_from_this_partition_p): New functions.
19394         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
19395         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
19396         * opts.c (decode_options): Enable ipa_reference.
19397         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
19398         * lto-streamer.h (referenced_from_this_partition_p,
19399         reachable_from_this_partition_p): Declare.
19400
19401 2010-05-15  Richard Guenther  <rguenther@suse.de>
19402
19403         PR tree-optimization/44038
19404         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
19405         taking the address of a V_C_E of a constant.
19406
19407 2010-05-14  Jan Hubicka  <jh@suse.cz>
19408
19409         * tree.h (memory_identifier_string): Remove.
19410         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
19411         (ipa_reference_global_vars_info_d): Remove statics_not_read and
19412         statics_not_written.
19413         (ipa_reference_optimization_summary_d): New structure.
19414         (ipa_reference_optimization_summary_t): New type and vector.
19415         (ipa_reference_vars_info_d): Embedd structures instead of using
19416         pointers.
19417         (reference_vars_to_consider): Remove out of GGC space.
19418         (module_statics_escape): Remove.
19419         (global_info_obstack): Rename to ...
19420         (optimization_summary_obstack): ... this one.
19421         (initialization_status_t): Remove.
19422         (memory_identifier_string): Remove.
19423         (get_reference_vars_info): Fix indenting.
19424         (set_reference_vars_info): Likewise.
19425         (get_reference_optimization_summary): New.
19426         (set_reference_optimization_summary): New.
19427         (get_global_reference_vars_info): Remove.
19428         (ipa_reference_get_read_global): Remove.
19429         (ipa_reference_get_written_global): Remove.
19430         (ipa_reference_get_not_read_global): Update.
19431         (ipa_reference_get_not_written_global): Update.
19432         (is_proper_for_analysis): Outlaw addressable.
19433         (propagate_bits): Update for new datastructures.
19434         (analyze_variable): Remove.
19435         (init_function_info): Update for new datastructures.
19436         (clean_function_local_data): Remove.
19437         (clean_function): Remove.
19438         (copy_global_bitmap): Use optimizations_summary_obstack.
19439         (duplicate_node_data): Duplicate optimization summary only.
19440         (remove_node_data): Remove optimization summary only.
19441         (generate_summary): Do not analyze variables; do not compute
19442         module_statics_escape; do not prune solutions by it.
19443         (read_write_all_from_decl): Fix typos in comments.
19444         (propagate): Doscover readonly and nonaddressable first;
19445         update for new datastructures; share global bitmaps.
19446         * ipa-reference.h (ipa_reference_get_read_global,
19447         ipa_reference_get_written_global): Remove.
19448         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
19449         * Makefile.in: Remove ipa-refereference from GT files.
19450
19451 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
19452
19453         PR debug/44112
19454         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
19455         for all SYMBOL_REF_DECLs.
19456
19457 2010-05-14  Jan Hubicka  <jh@suse.cz>
19458
19459         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
19460         (varpool_all_refs_explicit_p): New inline function.
19461         * ipa-reference.c: Update comment.
19462         (module_statics_written): Remove.
19463         (get_static_decl): Remove.
19464         (ipa_init): Do not initialize module_statics_written.
19465         (analyze_function): Likewise.
19466         (generate_summary): Likewise; do not compute module_statics_readonly
19467         and do not update variable flags.
19468         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
19469         * ipa.c: Inlucde flags.h
19470         (cgraph_local_node_p): New.
19471         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
19472         promote functions to local.
19473         (ipa_discover_readonly_nonaddressable_vars): New function.
19474         (function_and_variable_visibility): Use cgraph_local_node_p.
19475         * varpool.c (varpool_finalize_decl): Set force_output for
19476         DECL_PRESERVE_P vars.
19477
19478 2010-05-14  Jan Hubicka  <jh@suse.cz>
19479
19480         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
19481
19482 2010-05-14  Richard Guenther  <rguenther@suse.de>
19483
19484         PR tree-optimization/44119
19485         * tree-ssa-pre.c (eliminate): Properly mark replacement of
19486         a PHI node necessary.
19487
19488 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
19489
19490         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
19491
19492 2010-05-14  Jason Merrill  <jason@redhat.com>
19493
19494         PR c++/44127
19495         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
19496         (gimple_call_set_nothrow): New.
19497         * gimple.c (gimple_build_call_from_tree): Call it.
19498         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
19499
19500         PR c++/44127
19501         * gimplify.c (gimplify_seq_add_stmt): No longer static.
19502         * gimple.h: Declare it.
19503         * gimple.c (gimple_build_eh_filter): No ops.
19504
19505 2010-05-14  Jan Hubicka  <jh@suse.cz>
19506
19507         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
19508         nodes already in queue.
19509         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
19510         re-enqueueing node.
19511
19512 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
19513
19514         PR debug/44136
19515         * cfgexpand.c (expand_debug_expr): If non-memory op0
19516         has BLKmode, return NULL.
19517
19518 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
19519
19520         * config.gcc: Add support for --with-cpu option for bdver1.
19521         * config/i386/i386.h (TARGET_BDVER1): New macro.
19522         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
19523         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
19524         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
19525         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
19526         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
19527         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
19528         (processor_type): Add PROCESSOR_BDVER1.
19529         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
19530         processor_type in config/i386/i386.h.
19531         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
19532         movaps <reg, reg> instead of movapd <reg, reg> when replacing
19533         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
19534         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
19535         to emit packed xor instead of packed double/packed integer
19536         xor for SSE and AVX when moving a zero value.
19537         * config/i386/sse.md: Add check for
19538         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
19539         movapd/movdqa for SSE and AVX.
19540         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
19541         single logical operations i.e and, or and xor instead of packed double
19542         logical operations for SSE and AVX.
19543         * config/i386/i386-c.c (ix86_target_macros_internal):
19544         Add PROCESSOR_BDVER1.
19545         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
19546         (has_fma4, has_xop): New.
19547         * config/i386/i386.c (bdver1_cost): New variable.
19548         (m_BDVER1): New macro.
19549         (m_AMD_MULTIPLE): Add m_BDVER1.
19550         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
19551         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
19552         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
19553         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
19554         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
19555         x86_tune_sse_partial_reg_dependency,
19556         x86_tune_sse_unaligned_load_optimal,
19557         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
19558         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
19559         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
19560         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
19561         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
19562         Enable/disable for bdver1.
19563         (processor_target_table): Add bdver1_cost.
19564         (cpu_names): Add bdver1.
19565         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
19566          processor_alias_table.
19567         (ix86_expand_vector_move_misalign): Change.
19568         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
19569         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
19570         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
19571         of movupd/movdqu for SSE and AVX.
19572         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
19573         (ix86_tune_adjust_cost): Add code for bdver1.
19574         (standard_sse_constant_opcode): Add check for
19575         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
19576         of packed double xor for SSE and AVX.
19577
19578 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
19579
19580         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
19581         result to unsigned.
19582
19583 2010-05-14  Tristan Gingold  <gingold@adacore.com>
19584
19585         * toplev.c (default_debug_hooks): Remove this variable.
19586         (process_options): Remove assignments to default_debug_hooks.
19587
19588 2010-05-14  Martin Jambor  <mjambor@suse.cz>
19589
19590         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
19591         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
19592         * langhooks.h (struct lang_hooks_for_decls): Removed field
19593         fold_obj_type_ref.
19594         * tree.c (free_lang_data): Remove assignment to
19595         lang_hooks.fold_obj_type_ref.
19596         * tree.def (OBJ_TYPE_REF): Update comment.
19597
19598 2010-05-14  Richard Guenther  <rguenther@suse.de>
19599
19600         PR tree-optimization/44124
19601         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
19602
19603 2010-05-14  Alan Modra  <amodra@gmail.com>
19604
19605         PR target/44075
19606         * config/rs6000/rs6000.c (struct machine_function): Reorder
19607         fields for better packing.  Add lr_save_state.
19608         (rs6000_ra_ever_killed): Return lr_save_state if set.
19609         (rs6000_emit_eh_reg_restore): Set lr_save_state.
19610
19611 2010-05-13  Jan Hubicka  <jh@suse.cz>
19612
19613         * varpool.c (decide_is_variable_needed): Drop code checking
19614         TREE_SYMBOL_REFERENCED.
19615
19616 2010-05-13  Jan Hubicka  <jh@suse.cz>
19617
19618         * final.c (output_addr_const): Do not call mark_decl_referenced.
19619         * cgraphunit.c (process_function_and_variable_attributes): Use
19620         mark_needed_node dirrectly.
19621         (assemble_thunk): Do not call mark_decl_referenced.
19622
19623 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
19624
19625         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
19626
19627 2010-05-13  Jeff Law  <law@redhat.com>
19628
19629         * ira-conflicts.c (print_allocno_conflicts): New function broken out
19630         from...
19631         (print_conflicts): Call print_allocno_conflicts.
19632
19633 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
19634
19635         PR debug/44104
19636         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
19637         if it is NULL.
19638
19639 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
19640
19641         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
19642         t-mingw-w64 or t-mingw-w32 for multilib configuration.
19643         * config/i386/t-mingw-w32: New.
19644         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
19645
19646 2010-05-13  Martin Jambor  <mjambor@suse.cz>
19647
19648         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
19649         gimple-fold.c).
19650         * gimple-fold.c (get_base_binfo_for_type): New function.
19651         (gimple_get_relevant_ref_binfo): Likewise.
19652         (gimple_fold_obj_type_ref_known_binfo): Likewise.
19653         (gimple_fold_obj_type_ref): Likewise.
19654         (fold_gimple_call): Simplify condition for folding virtual calls
19655         and call gimple_fold_obj_type_ref.
19656         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
19657         (gimple_fold_obj_type_ref_known_binfo): Likewise.
19658
19659 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
19660
19661         * config/rs6000/rs6000-protos.h
19662         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
19663         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
19664         (rs6000_debug_mode_dependent_address)
19665         (rs6000_mode_dependent_address_ptr): Likewise.
19666
19667 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
19668
19669         PR debug/43983
19670         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
19671         by SRA.
19672         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
19673         * tree-sra.c (create_access_replacement): Call unshare_expr before
19674         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
19675         * dwarf2out.c: Include tree-flow.h.
19676         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
19677         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
19678         Handle DW_OP_bit_piece.
19679         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
19680         construct_piece_list, adjust_piece_list): New functions.
19681         (add_var_loc_to_decl): Handle SRA optimized variables.
19682         Adjust for var_loc_note to loc field renaming.
19683         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
19684         in VAR_LOCATION note.
19685         (new_loc_descr_op_bit_piece): New function.
19686         (dw_sra_loc_expr): New function.
19687         (dw_loc_list): Use it.  Don't handle the last range after the
19688         loop, handle it inside of the loop.  Adjust for var_loc_note
19689         to loc field renaming.
19690         (add_location_or_const_value_attribute): Only special case
19691         single entry loc lists if loc is NOTE_P.  Adjust for
19692         var_loc_note to loc field renaming.
19693         (dwarf2out_var_location): Don't set newloc->var_loc_note
19694         and newloc->next here.
19695
19696 2010-05-12  Jan Hubicka  <jh@suse.cz>
19697
19698         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
19699         flag.
19700         * cgraph.h (cgraph_only_called_directly_p,
19701         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
19702         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
19703         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
19704         (assemble
19705         * ipa.c (cgraph_remove_unreachable_nodes): Use
19706         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
19707         flags.
19708         * tree-inline.c (copy_bb): Check address_taken flag.
19709         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
19710         externally_visible flag.
19711
19712 2010-05-12  Jason Merrill  <jason@redhat.com>
19713
19714         PR bootstrap/44048
19715         PR target/44099
19716         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
19717         * sdbout.c (plain_type_1): Likewise.
19718         * dwarf2out.c (is_base_type): Likewise.
19719         (gen_type_die_with_usage): Likewise.  Generate
19720         DW_TAG_unspecified_type for any LANG_TYPE.
19721
19722 2010-05-12  Jan Hubicka  <jh@suse.cz>
19723
19724         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
19725         indrect edges too.
19726         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
19727         (cgraph_clone_edge): Update.
19728         (cgraph_node_remove_callees): Remove indirect calls too.
19729         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
19730         (cgraph_create_indirect_edge): Update prototype.
19731         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
19732         is_proper_for_analysis.
19733         (add_new_function, visited_nodes, function_insertion_hook_holder,
19734         get_local_reference_vars_info, mark_address_taken, mark_address,
19735         mark_load, mark_store, check_asm_memory_clobber, check_call,
19736         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
19737         (ipa_init): Do not initialize visited_nodes;
19738         function_insertion_hook_holder.
19739         (analyze_variable): Rewrite.
19740         (analyze_function): Rewrite.
19741         (copy_local_bitmap): Remove.
19742         (duplicate_node_dat): Do not duplicate local info.
19743         (generate_summary): Simplify to only walk cgraph.
19744         (write_node_summary_p, ipa_reference_write_summary,
19745         ipa_reference_read_summary): Remove.
19746         (propagate): Do not remove function insertion;
19747         generate summary.
19748         (pass_ipa_reference): NULLify summary handling fields.
19749         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
19750         (input_edge): Input ecf_flags.
19751         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
19752         (update_indirect_edges_after_inlining): Ignore edges with unknown
19753         param.
19754
19755 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
19756
19757         * implicit-zee.c: New file.
19758         * tree-pass.h (pass_implicit_zee): Declare.
19759         * passes.c (init_optimization_passes): Add zee pass.
19760         * common.opt (fzee): New flag.
19761         * timevar.def (TV_ZEE): Define.
19762         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
19763         and beyond.
19764         * Makefile.in (implicit-zee.o): Add new build file.
19765
19766 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
19767             Nathan Froyd  <froydnj@codesourcery.com>
19768
19769         * c-common.c (sync_resolve_params): Remove write-only variable.
19770
19771 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
19772
19773         * target.h (struct gcc_target): Add mode_dependent_address_p field.
19774         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
19775         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
19776         * targhooks.c (default_mode_dependent_address_p): New function.
19777         * targhooks.h (default_mode_dependent_address_p): Declare function.
19778         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
19779         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
19780         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
19781         target hook. Change return type to bool.
19782         * recog.h (mode_dependent_address_p): Change return type to bool.
19783
19784 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
19785             Nathan Froyd  <froydnj@codesourcery.com>
19786
19787         * tree-mudflap.c (build_function_type_0, build_function_type_1,
19788         build_function_type_2, build_function_type_3): Remove.
19789         (mudflap_init): Use build_function_type_list.
19790
19791 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
19792             Nathan Froyd  <froydnj@codesourcery.com>
19793
19794         * coverage.c (build_fn_info_value): Call build_constructor instead of
19795         build_constructor_from_list.
19796         (build_ctr_info_value): Likewise.
19797         (build_gcov_info): Likewise.
19798
19799 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
19800
19801         * tree.c (build_constructor): Compute TREE_CONSTANT for the
19802         resultant constructor.
19803         (build_constructor_single): Don't set TREE_CONSTANT.
19804         (build_constructor_from_list): Don't compute TREE_CONSTANT.
19805
19806 2010-05-12  Jan Hubicka  <jh@suse.cz>
19807
19808         * cgraph.h (struct varpool_node): Add aux.
19809         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
19810         * varpool.c (varpool_remove_node): Do not remove initializer.
19811         (varpool_reset_queue): Export.
19812         (varpool_finalize_decl): Volatile vars are forced to be output.
19813         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
19814         replaced decl.
19815         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
19816         process_references, varpool_can_remove_if_no_refs): New functions.
19817         (cgraph_remove_unreachable_nodes): Handle variables too.
19818
19819 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
19820
19821         PR target/44088
19822         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
19823
19824 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
19825
19826         PR middle-end/44085
19827         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
19828         change value of ORT_TASK.
19829         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
19830         (omp_notice_threadprivate_variable): New function.
19831         (omp_notice_variable): Call it for threadprivate variables.
19832         If enclosing ctx is a task, print enclosing task rather than
19833         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
19834         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
19835         if task has untied clause.
19836
19837         PR debug/42278
19838         * dwarf2out.c (base_type_die): Don't add name attribute here.
19839         (modified_type_die): Instead of sizetype use
19840         its underlying original type.  If a DW_TAG_base_type doesn't
19841         have name added, add __unknown__.
19842         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
19843         always call force_type_die instead.
19844
19845 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
19846
19847         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
19848         for __stack_chk_guard.
19849
19850 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
19851
19852         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
19853         don't call start_source_file debug hook here...
19854         (finish_options): ... but here, after outputting predefined and
19855         command line defines and undefs.
19856
19857         PR middle-end/44071
19858         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
19859         no fallthru edge.
19860         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
19861         optimizing away empty bb with no successors, move over its
19862         footer chain to fallthru predecessor.
19863         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
19864         (rtl_split_edge): For asm goto call patch_jump_insn even if
19865         splitting fallthru edge.
19866
19867         PR c++/44059
19868         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
19869         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
19870         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
19871         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
19872         on DW.ref.* decls.
19873
19874         PR c++/44062
19875         * c-parser.c (c_parser_expression): Mark LHS of a comma
19876         expression as read if it is a decl, handled component or
19877         COMPOUND_EXPR with that on the RHS.
19878         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
19879         if it is a decl or handled component.
19880
19881 2010-05-11  Jan Hubicka  <jh@suse.cz>
19882
19883         * lto-symtab.c (lto_symtab_free): New function.
19884         * lto-streamer.h (lto_symtab_free): Declare.
19885
19886 2010-05-11  Jan Hubicka  <jh@suse.cz>
19887
19888         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
19889         that if function is needed it is reachable.
19890         (lto_output_node): See if it the function is reachable or referenced.
19891         (output_cgraph): Update call of lto_output_node.
19892         * lto-streamer.h (reachable_from_other_partition_p): Declare.
19893
19894 2010-05-11  Jan Hubicka  <jh@suse.cz>
19895
19896         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
19897         Mark as used.
19898
19899 2010-05-11  Jan Hubicka  <jh@suse.cz>
19900
19901         PR tree-optimize/44063
19902         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
19903         queue.
19904         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
19905         limits.
19906         (estimate_function_body_sizes): Compute sizes even when disregarding.
19907
19908 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
19909
19910         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
19911
19912 2010-05-11  Jan Hubicka  <jh@suse.cz>
19913
19914         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
19915         into every boundary.
19916
19917 2010-05-11  Jan Hubicka  <jh@suse.cz>
19918
19919         * matrix-reorg.c (matrix_reorg): Rebuild edges.
19920
19921 2010-05-11  Jan Hubicka  <jh@suse.cz>
19922
19923         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
19924         lto_streamer_cache_delete): Put nodes into heap.
19925         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
19926         heap.
19927
19928 2010-05-11  Jan Hubicka  <jh@suse.cz>
19929
19930         * cgraphbuild.c (cgraph_rebuild_references): New.
19931         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
19932         out extern inlines.
19933         * cgraph.h (cgraph_rebuild_references): Declare.
19934         * tree-inline.c (tree_function_versioning): Use it.
19935         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
19936
19937 2010-05-11  Jan Hubicka  <jh@suse.cz>
19938
19939         * cgraph.c: Include ipa-utils.h
19940         (cgraph_create_virtual_clone): Update references.
19941         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
19942
19943 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
19944
19945         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
19946         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
19947         cache size.
19948
19949 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
19950
19951         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
19952
19953 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
19954
19955         * gcc.c (execute): For -### don't quote arguments that
19956         contain just alphanumerics and _/-. characters.
19957         * doc/invoke.texi: Document that change for -###.
19958
19959         PR debug/44023
19960         * df-problems.c (struct dead_debug): Add to_rescan field.
19961         (dead_debug_init): Clear to_rescan field.
19962         (dead_debug_finish): Rescan all debug insns in to_rescan
19963         bitmap and free the bitmap.
19964         (dead_debug_insert_before): Instead of rescanning debug insns
19965         immediately queue their rescanning until dead_debug_finish.
19966         (df_note_bb_compute): After dead_debug_add do continue instead
19967         of break.
19968
19969 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
19970
19971         PR debug/44028
19972         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
19973         clear also INSN_REG_USE_LIST.
19974
19975 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19976
19977         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
19978
19979 2010-05-10  Jan Hubicka  <jh@suse.cz>
19980
19981         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
19982         commited change.
19983
19984 2010-05-10  Jan Hubicka  <jh@suse.cz>
19985
19986         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
19987         Allocate encoders.
19988         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
19989         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
19990         (lto_streamer_cache_create): Init alloc pool.
19991         (lto_streamer_cache_delete): Free alloc pool.
19992         * lto-streamer.h: Include alloc pool.
19993         (lto_streamer_cache_d): Use alloc pool.
19994         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
19995
19996 2010-05-10  Jan Hubicka  <jh@suse.cz>
19997
19998         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
19999         * cgraphbuild.c: Include except.h
20000         (record_type_list, record_eh_tables): New function.
20001         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
20002
20003 2010-05-10  Jan Hubicka  <jh@suse.cz>
20004
20005         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
20006         __frame_dummy_init_array_entry, force_to_data): Attribute as used
20007         rather than unused.
20008
20009 2010-05-10  Michael Matz  <matz@suse.de>
20010
20011         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
20012         (can_reassociate_p): Use FLOAT_TYPE_P.
20013         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
20014         (vect_force_simple_reduction): ... this.
20015         * tree-parloops.c (gather_scalar_reductions): Use
20016         vect_force_simple_reduction.
20017         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
20018         vect_is_simple_reduction, add modify argument, if true rewrite
20019         "a-b" into "a+(-b)".
20020         (vect_is_simple_reduction, vect_force_simple_reduction): New
20021         functions.
20022         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
20023
20024 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20025             Vladimir Makarov  <vmakarov@redhat.com>
20026
20027         PR rtl-optimization/44012
20028         * ira-build.c (remove_unnecessary_allocnos): Nullify
20029         regno_allocno_map of the removed allocno.
20030
20031 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20032
20033         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
20034         to /dev/null.
20035         * configure: Regenerate.
20036
20037 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20038
20039         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
20040         unused.
20041         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
20042         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
20043         support in Sun ld.
20044         * configure: Regenerate.
20045
20046 2010-05-10  Richard Guenther  <rguenther@suse.de>
20047
20048         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
20049         marked if the entry identifier is marked.
20050
20051 2010-05-10  Richard Guenther  <rguenther@suse.de>
20052
20053         * c-common.c (struct c_common_attributes): Add fnspec attribute.
20054         (handle_fnspec_attribute): New function.
20055         * gimple.h (gimple_call_return_flags): Declare.
20056         (gimple_call_arg_flags): Likewise.
20057         * gimple.c (gimple_call_arg_flags): New function.
20058         (gimple_call_return_flags): Likewise.
20059         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
20060         New argument flags.
20061         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
20062         return value flags.
20063         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
20064         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
20065         main work to ...
20066         (make_heapvar_for): ... this new function.
20067         (handle_rhs_call): Handle fnspec attribute argument specifiers.
20068         (handle_lhs_call): Likewise.
20069         (find_func_aliases): Adjust.
20070
20071 2010-05-10  Richard Guenther  <rguenther@suse.de>
20072
20073         PR tree-optimization/44050
20074         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
20075
20076 2010-05-10  Wei Guozhi  <carrot@google.com>
20077
20078         PR target/42879
20079         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
20080
20081 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
20082
20083         PR c/10676
20084         * c-typeck.c (lookup_field): Take a type directly.  Update
20085         recursive calls.
20086         (build_component_ref): Update call to lookup_field.
20087         (set_init_label): Use lookup_field to find initialized field.
20088         Handle returned list of fields like a sequence of designators.
20089
20090 2010-05-09  Richard Guenther  <rguenther@suse.de>
20091
20092         PR middle-end/44024
20093         * fold-const.c (tree_single_nonzero_warnv_p): Properly
20094         handle &FUNCTION_DECL.
20095
20096 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
20097
20098         PR c/4784
20099         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
20100         structures and unions recursively.
20101         (detect_field_duplicates): Move duplicate detection with a hash to
20102         detect_field_duplicates_hash.  Always use a hash if anonymous
20103         structures or unions are present.
20104         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
20105         give errors.
20106
20107 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
20108
20109         PR target/44046
20110         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
20111         detect Atom, Core 2 and Core i7.
20112
20113 2010-05-09  Richard Guenther  <rguenther@suse.de>
20114
20115         * gcc.c (store_arg): Handle temporary file deletion for
20116         joined arguments.
20117
20118 2010-05-09  Richard Guenther  <rguenther@suse.de>
20119
20120         PR middle-end/44043
20121         * ipa-inline.c (estimate_function_body_sizes): Return after
20122         disregarding inline limits.
20123
20124 2010-05-09  Richard Guenther  <rguenther@suse.de>
20125
20126         * gcc.c (store_arg): Revert last change.
20127
20128 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
20129
20130         PR middle-end/28685
20131         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
20132         (optimize_ops_list): Call it.
20133
20134 2010-05-08  Richard Guenther  <rguenther@suse.de>
20135
20136         PR tree-optimization/44030
20137         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
20138         NECESSARY flag if we propagate from a inserted expression.
20139
20140 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
20141
20142         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
20143         domain types as equal if they are both PLACEHOLDER_EXPRs.
20144
20145 2010-05-08  Richard Guenther  <rguenther@suse.de>
20146
20147         * lto-wrapper.c (run_gcc): Remove linker output from
20148         command line for LTRANS invocation.
20149
20150 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
20151
20152         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
20153         lto-macho as lto_binary_reader.
20154         * target.h (struct gcc_target): New hooks lto_start and lto_end.
20155         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
20156         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
20157         in lto_start and lto_end calls.
20158         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
20159         magic numbers.
20160         (scan_prog_file): Update is_elf_or_coff call.
20161         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
20162
20163         * collect2.c (main): Fix enum comparison.
20164
20165         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
20166         Add prototypes.
20167         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
20168         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
20169         and TARGET_ASM_LTO_END.
20170         * darwin.c: Include obstack.h and lto-streamer.h.
20171         (lto_section_names_offset, lto_section_names_obstack,
20172         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
20173         global variables.
20174         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
20175         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
20176         to a temporary file.
20177         (darwin_asm_lto_end): New function.  Restore asm_out_file.
20178         (darwin_asm_named_section): For LTO sections, replace the name with
20179         the offset of the section name in a string table, and build this
20180         table.
20181         (darwin_file_start): Initialize global vars for LTO support.
20182         (darwin_file_end): If output to asm_out_file was redirected, append it
20183         to the proper asm_out_file here.  Add the section names section.
20184
20185 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
20186
20187         * c-pragma.c (pending_weak_d, pending_weak): New.
20188         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
20189         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
20190         handle_pragma_weak): Update the uses of pending_weaks.
20191
20192 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20193
20194         PR documentation/44016
20195         * doc/standards.texi (Standards): Link to unversioned
20196         cxx0x_status.html page.
20197
20198 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
20199
20200         PR target/43708
20201         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
20202         in addition to TREE_USED, to avoid "set but unused" warnings.
20203
20204 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20205
20206         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
20207         (is_loop_prefetching_profitable): Do not insert prefetches
20208         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
20209         times the prefetch ahead distance.
20210
20211 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20212
20213         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
20214         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
20215         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
20216         the unroll_factor.
20217
20218 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20219
20220         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
20221         a diagnostic info when the insn-to-mem ratio is too small.
20222
20223 2010-05-07  Richard Guenther  <rguenther@suse.de>
20224
20225         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
20226         the linker plugin.
20227         (store_arg): Queue temp_filename for deletion instead of
20228         the whole argument.
20229
20230 2010-05-07  Richard Guenther  <rguenther@suse.de>
20231
20232         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
20233         (run_gcc): Handle LTRANS phase invocation.
20234         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
20235
20236 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
20237
20238         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
20239         this is also meaningful on PARM_DECLs and RESULT_DECLs.
20240
20241 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20242
20243         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
20244
20245 2010-05-07  Richard Guenther  <rguenther@suse.de>
20246
20247         PR tree-optimization/44020
20248         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
20249         code when PRE is not yet initialized.
20250
20251 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20252
20253         * config/mips/dbxmdebug.h: Remove.
20254         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
20255
20256 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
20257
20258         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
20259         with null pointer and also warn about ordered comparison of zero with
20260         pointer if -Wextra.
20261
20262 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
20263
20264         * graphite-blocking.c
20265         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
20266         * graphite-clast-to-gimple.c
20267         (clast_to_gcc_expression): Same.
20268         (precision_for_value): Same.
20269         (precision_for_interval): Same.
20270         (gcc_type_for_interval): Same.
20271         (graphite_create_new_guard): Same.
20272         (compute_bounds_for_level): Same.
20273         (graphite_create_new_loop_guard): Same.
20274         * graphite-interchange.c
20275         (build_linearized_memory_access): Same.
20276         (pdr_stride_in_loop): Same.
20277         (memory_strides_in_loop_1): Same.
20278         (memory_strides_in_loop): Same.
20279         (extend_scattering): Same.
20280         (psct_scattering_dim_for_loop_depth): Same.
20281         (pbb_number_of_iterations): Same.
20282         * graphite-poly.h
20283         (debug_iteration_domains): Same.
20284         * graphite-ppl.c
20285         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
20286         (ppl_set_inhomogeneous_gmp): Same.
20287         (ppl_strip_loop): Same.
20288         (ppl_lexico_compare_linear_expressions): Same.
20289         (ppl_read_polyhedron_matrix): Same.
20290         (ppl_max_for_le_pointset): Same.
20291         * graphite-ppl.h
20292         (ppl_read_polyhedron_matrix): Same.
20293         (tree_int_to_gmp): Same.
20294         (gmp_cst_to_tree): Same.
20295         (ppl_set_inhomogeneous): Same.
20296         (ppl_set_inhomogeneous_tree): Same.
20297         (ppl_set_coef): Same.
20298         (ppl_set_coef_tree): Same.
20299         * graphite-sese-to-poly.c
20300         (build_pbb_scattering_polyhedrons): Same.
20301         (build_scop_scattering): Same.
20302         (scan_tree_for_params_right_scev): Same.
20303         (scan_tree_for_params): Same.
20304         (find_params_in_bb): Same.
20305         (find_scop_parameters): Same.
20306         (add_upper_bounds_from_estimated_nit): Same.
20307         (build_loop_iteration_domains): Same.
20308         (add_condition_to_domain): Same.
20309         (pdr_add_memory_accesses): Same.
20310
20311 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
20312
20313         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
20314         CLooG's value_* macros to their respective mpz_* counterparts.
20315         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
20316         (graphite_create_new_loop_guard): Same.
20317         * graphite-interchange.c (build_linearized_memory_access): Same.
20318         (pdr_stride_in_loop): Same.
20319         (memory_strides_in_loop_1): Same.
20320         (1st_interchange_profitable_p): Same.
20321         * graphite-poly.c (extend_scattering): Same.
20322         (psct_scattering_dim_for_loop_depth): Same.
20323         (pbb_number_of_iterations): Same.
20324         (pbb_number_of_iterations_at_time): Same.
20325         * graphite-poly.h (new_1st_loop): Same.
20326         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
20327         (oppose_constraint): Same.
20328         (insert_constraint_into_matrix): Same.
20329         (ppl_set_inhomogeneous_gmp): Same.
20330         (ppl_set_coef_gmp): Same.
20331         (ppl_strip_loop): Same.
20332         (ppl_lexico_compare_linear_expressions): Same.
20333         (ppl_max_for_le_pointset): Same.
20334         (ppl_min_for_le_pointset): Same.
20335         (ppl_build_realtion): Same.
20336         * graphite-ppl.h (gmp_cst_to_tree): Same.
20337         (ppl_set_inhomogeneous): Same.
20338         (ppl_set_inhomogeneous_tree): Same.
20339         (ppl_set_coef): Same.
20340         (ppl_set_coef_tree): Same.
20341         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
20342         (build_scop_scattering): Same.
20343         (add_value_to_dim): Same.
20344         (scan_tree_for_params_right_scev): Same.
20345         (scan_tree_for_params_int): Same.
20346         (scan_tree_for_params): Same.
20347         (find_params_in_bb): Same.
20348         (find_scop_parameters): Same.
20349         (add_upper_bounds_from_estimated_nit): Same.
20350         (build_loop_iteration_domains): Same.
20351         (create_linear_expr_from_tree): Same.
20352         (add_condition_to_domain): Same.
20353         (pdr_add_memory_accesses): Same.
20354
20355 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
20356             Jason Merrill  <jason@redhat.com>
20357
20358         * c-common.c (c_common_reswords): Add nullptr.
20359         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
20360         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
20361         (gen_type_die_with_usage): Likewise.
20362         * dbxout.c (dbxout_type): Likewise.
20363         * sdbout.c (plain_type_1): Likewise.
20364
20365 2010-05-06  Jason Merrill  <jason@redhat.com>
20366
20367         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
20368         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
20369         ret appropriately.
20370         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
20371
20372         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
20373         stripping WITH_SIZE_EXPR.
20374         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
20375         change.
20376
20377 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20378
20379         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
20380         list of obsolete configurations.
20381         Disabled check for obsolete configurations.
20382         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
20383         Removed support for previous versions.
20384         * config/mips/iris.h: Removed.
20385         * config/mips/iris5.h: Removed.
20386         * config/mips/iris6.h: Merged old iris.h contents.
20387         (TARGET_IRIX): Removed.
20388         (DRIVER_SELF_SPECS): Removed mabi=32.
20389         (IDENT_ASM_OP): Removed undef.
20390         (STARTFILE_SPEC): Removed mabi=32.
20391         (ENDFILE_SPEC): Likewise.
20392         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
20393         (MACHINE_TYPE): Update for IRIX 6.5.
20394         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
20395         TARGET_IRIX by TARGET_IRIX6.
20396         (mips_file_start): Likewise.
20397         (mips_output_external): Remove IRIX 5/6 O32 support.
20398         (mips_output_function_prologue): Likewise.
20399         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
20400         TARGET_IRIX6.
20401         (TARGET_CPU_CPP_BUILTINS): Likewise.
20402         (TARGET_IRIX): Removed.
20403         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
20404         (MULTILIB_DIRNAMES): Removed 32.
20405         (MULTILIB_OSDIRNAMES): Removed ../lib.
20406         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
20407         (Specific, mips-sgi-irix5): Document removal.
20408         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
20409         Remove references to older IRIX 6 releases and the O32 ABI.
20410
20411 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
20412
20413         PR bootstrap/43994
20414         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
20415         instead of DF_REF_REAL_REG.
20416
20417 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
20418
20419         PR target/43888
20420         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
20421         handling to still return true for x64 targets.
20422
20423 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
20424
20425         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
20426
20427 2010-05-06  Jan Hubicka  <jh@suse.cz>
20428
20429         PR tree-optimization/43791
20430         * ipa-inline.c (update_caller_keys): Remove bogus
20431         disregard_inline_limits check.
20432
20433 2010-05-06  Michael Matz  <matz@suse.de>
20434
20435         PR tree-optimization/43984
20436         * tree-ssa-pre.c (inserted_phi_names): Remove.
20437         (inserted_exprs): Change to bitmap.
20438         (create_expression_by_pieces): Set bits, don't append to vector.
20439         (insert_into_preds_of_block): Don't handle inserted_phi_names.
20440         (eliminate): Don't look at inserted_phi_names, remove deleted
20441         insns from inserted_exprs.
20442         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
20443         (init_pre, fini_pre): Allocate and free bitmaps.
20444         (execute_pre): Insert insns on edges before elimination.
20445
20446 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
20447
20448         * tree.c (initializer_zerop): Handle STRING_CST.
20449
20450 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20451
20452         PR 40989
20453         * doc/invoke.texi (Wimplicit): Document as C only.
20454         * opts.c (common_handle_option): Add argument kind.
20455         (handle_option): Rename as read_cmdline_option. Factor out code to...
20456         (handle_option): ... here. New.
20457         (handle_options): Rename as read_cmdline_options.
20458         (decode_options): Update call.
20459         (set_option): Use option index instead of option pointer. Classify
20460         diagnostics correctly.
20461         (enable_warning_as_error): Call handle_option.
20462         * opts.h (set_option): Update declaration.
20463         (handle_option): Declare.
20464         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
20465         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
20466         * c-opts.c (set_Wimplicit): Delete.
20467         (c_family_lang_mask): New static constant.
20468         (c_common_handle_option): Add argument kind. Use handle_option
20469         instead of set_Wimplicit.
20470         (c_common_post_options): warn_implicit and warn_implicit_int
20471         are disabled by default.
20472         * c-common.c (warn_implicit): Do not define here.
20473         * c-common.h (warn_implicit): Do not declare here.
20474         (c_common_handle_option): Update declaration.
20475         * lto-opts.c (lto_reissue_options): Update call to set_option.
20476
20477 2010-05-06  Richard Guenther  <rguenther@suse.de>
20478
20479         PR tree-optimization/43571
20480         * domwalk.c (walk_dominator_tree): Walk the dominator
20481         sons in more optimal order.
20482
20483 2010-05-06  Richard Guenther  <rguenther@suse.de>
20484
20485         PR tree-optimization/43934
20486         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
20487         (stmt_cost): Likewise.
20488         (extract_true_false_args_from_phi): New helper.
20489         (determine_max_movement): For PHI nodes verify we can hoist them
20490         and compute their cost.
20491         (determine_invariantness_stmt): Handle PHI nodes.
20492         (move_computations_stmt): Likewise.  Hoist PHI nodes in
20493         if-converted form using COND_EXPRs.
20494         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
20495         (tree_ssa_lim): Likewise.
20496         * tree-flow.h (tree_ssa_lim): Adjust prototype.
20497         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
20498
20499 2010-05-06  Richard Guenther  <rguenther@suse.de>
20500
20501         PR tree-optimization/43987
20502         * tree-ssa-structalias.c (could_have_pointers): For possibly
20503         address-taken variables force pointers to be recorded.
20504         (create_variable_info_for_1): Likewise.
20505         (push_fields_onto_fieldstack): Pass in wheter all fields
20506         must have pointers.
20507         (find_func_aliases): Query types instead of vars whether
20508         they contain pointers where appropriate.
20509
20510 2010-05-06  Jan Hubicka  <jh@suse.cz>
20511
20512         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
20513         (record_reference, mark_address, mark_load, mark_store): Record
20514         references.
20515         (record_references_in_initializer): Update call of record_references.
20516         (rebuild_cgraph_edges): Remove all references before rebuiding.
20517         * cgraph.c (cgraph_create_node): Clear ref list.
20518         (cgraph_remove_node): Remove references.
20519         (dump_cgraph_node): Dump references.
20520         (cgraph_clone_node): Clone references.
20521         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
20522         (struct cgraph_node, varpool_node): Add ref_lst.
20523         * ipa-ref.c: New file.
20524         * ipa-ref.h: New file.
20525         * ipa-ref-inline.h: New file.
20526         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
20527         (referenced_from_other_partition_p): New function.
20528         (lto_output_varpool_node): Take set arugment; call
20529         referenced_from_other_partition.
20530         (lto_output_ref): New.
20531         (add_references): New.
20532         (output_refs): New.
20533         (output_cgraph): Compute boundary based on references; output refs.
20534         (output_varpool): Accept cgraph_node_set argument.
20535         (input_ref): New.
20536         (input_refs): New.
20537         (input_cgraph): Call input_refs.
20538         * lto-section-in.c (lto_section_name): Add refs.
20539         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
20540         (ipa-ref.o): New file.
20541         * varpool.c (varpool_node): Clear ipa ref list.
20542         (varpool_remove_node): Remove references.
20543         (dump_varpool_node): Dump references.
20544         (varpool_assemble_decl): Only compile finalized ones.
20545         (varpool_extra_name_alias): Initialize ref list.
20546         * lto-streamer.c (lto-get_section_name): Add .refs section.
20547         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
20548         (referenced_from_other_partition_p): Declared.
20549
20550 2010-05-06  Ira Rosen  <irar@il.ibm.com>
20551
20552         PR tree-optimization/43901
20553         * tree-vect-stmts.c (vectorizable_call): Assert that vector
20554         type is not NULL if it's transformation phase, and return
20555         FALSE if it's analysis.
20556         (vectorizable_conversion, vectorizable_operation,
20557         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
20558
20559 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
20560
20561         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
20562         Delete.
20563         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
20564         New define.
20565         * config/mips/mips-protos.h
20566         (mips_small_register_classes_for_mode_p): Delete prototype.
20567
20568 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
20569
20570         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
20571         * config/arm/arm.c (multiple_operation_profitable_p,
20572         compute_offset_order): New static functions.
20573         (load_multiple_sequence, store_multiple_sequence): Use them.
20574         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
20575         memory offsets, not register numbers.
20576         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
20577
20578 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
20579
20580         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
20581         (get_pending_sizes, put_pending_size, put_pending_sizes):
20582         Update the uses of pending_sizes.
20583         * c-decl.c (store_parm_decls): Likewise.
20584         * c-tree.h (struct c_arg_info): Likewise.
20585         * tree.h: Update the prototype for get_pending_sizes and
20586         put_pending_sizes.
20587
20588 2010-05-05  Jason Merrill  <jason@redhat.com>
20589
20590         PR debug/43370
20591         * c-common.c (handle_aligned_attribute): Respect
20592         ATTR_FLAG_TYPE_IN_PLACE.
20593
20594         PR testsuite/43758
20595         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
20596         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
20597         (TARGET_INITIALIZER): Use it.
20598         * c-common.c (attribute_takes_identifier_p): Call it.
20599         * c-common.h: Update prototype.
20600         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
20601         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
20602
20603 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
20604
20605         PR debug/43950
20606         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
20607         DW_ID_down_case for Fortran compilation units.
20608
20609 2010-05-05  Jan Hubicka  <jh@suse.cz>
20610
20611         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
20612         handle aliases.
20613
20614 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
20615
20616         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
20617         a variable-sized RESULT_DECL.
20618
20619 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
20620
20621         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
20622
20623 2010-05-05  Jason Merrill  <jason@redhat.com>
20624
20625         PR c++/43787
20626         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
20627         returns GS_OK.
20628         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
20629
20630 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
20631             Jakub Jelinek  <jakub@redhat.com>
20632
20633         PR debug/43478
20634         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
20635         (dead_debug_init, dead_debug_finish): New functions.
20636         (dead_debug_add, dead_debug_insert_before): Likewise.
20637         (df_note_bb_compute): Initialize a dead_debug object, add dead
20638         debug uses to it, insert debug bind insns before death insns,
20639         reset debug insns that refer to pending uses at the end.
20640         * rtl.h (make_debug_expr_from_rtl): New prototype.
20641         * varasm.c (make_debug_expr_from_rtl): New function.
20642
20643 2010-05-05  Jan Hubicka  <jh@suse.cz>
20644
20645         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
20646         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
20647         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
20648         lto_varpool_encoder_deref, lto_varpool_encoder_size,
20649         lto_varpool_encoder_encode_initializer_p,
20650         lto_set_varpool_encoder_encode_initializer): New functions.
20651         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
20652         call output_varpool.
20653         (input_varpool_node): Do not always set analyzed.
20654         (input_cgraph_1): Return vector of cgraph nodes.
20655         (input_varpool_1): Return vector of varpools.
20656         (input_cgraph): Free the vectors.
20657         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
20658         output only initializers needed.
20659         (lto_output): Only call output_cgraph.
20660         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
20661         * lto-section-out.c (lto_new_out_decl_state): Initialize
20662         state->varpool_node_encoder.
20663         * lto-streamer.h (lto_varpool_encoder_d): New.
20664         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
20665         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
20666         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
20667         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
20668         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
20669         Declare.
20670         (output_varpool, input_varpool): Remove declarations.
20671
20672 2010-05-05  Jan Hubicka  <jh@suse.cz>
20673
20674         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
20675         with body can prevail.
20676
20677 2010-05-05  Jan Hubicka  <jh@suse.cz>
20678
20679         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
20680         size.
20681
20682 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20683
20684         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
20685
20686         * gengtype.h (erro_at_line): Constify pos argument.
20687
20688         * gengtype.c: Include hashtab.h.
20689         (enum gc_used): Document GC_MAYBE_POINTED_TO.
20690         (error_at_line): Constify pos argument.
20691         (do_typedef): Initialize p->opt field.
20692         (get_file_gtfilename): Fix comment typo.
20693         (struct walk_type_data): Constify line field.
20694         (get_output_file_for_structure): New function.
20695         (write_local_func_for_structure): Constify orig_s argument.
20696         Use get_output_file_for_structure.
20697         (write_func_for_structure): Use get_output_file_for_structure.
20698         (INDENT): New define.
20699         (dump_pair, dump_type, dump_type_list, dump_typekind)
20700         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
20701         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
20702         functions.
20703         (seen_types): New variable.
20704         (main): New variable do_dump.  Process "-d" command line option.
20705         Call dump_everything if dump requested.
20706
20707 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
20708
20709         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
20710         in a temporary instead of invoking the macro multiple times.
20711         (track_expr_p): Likewise.
20712
20713 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
20714
20715         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
20716         per new semantics.
20717         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
20718         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
20719         conditions for printing notes.
20720         * common.opt (-Wcoverage-mismatch): Allow negative, default to
20721         true, update documentation.
20722         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
20723
20724 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
20725
20726         PR c/43981
20727         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
20728         on dimen.
20729
20730 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
20731
20732         PR target/43799
20733         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
20734         (*sse_prologue_save_insn1): Likewise.
20735         (SSE prologue save splitter): Likewise.
20736
20737 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
20738
20739         * tree.c (free_lang_data_in_one_sizepos): New inline function.
20740         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
20741         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
20742         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
20743         all decls.  Call it on DECL_FIELD_OFFSET of fields.
20744         (find_decls_types_r): Follow DECL_VALUE_EXPR.
20745         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
20746
20747 2010-05-04  Martin Jambor  <mjambor@suse.cz>
20748
20749         * tree-sra.c (build_access_from_expr_1): The first parameter type
20750         changed to simple tree.
20751         (build_access_from_expr): Likewise, gsi parameter was eliminated.
20752         (scan_assign_result): Renamed to assignment_mod_result, enum elements
20753         renamed as well.
20754         (build_accesses_from_assign): Removed all parameters except for a
20755         simple gimple statement.  Now returns a simple bool.
20756         (scan_function): All non-analysis parts moved to separate functions
20757         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
20758         parameters and updated both callers.
20759         (sra_modify_expr): Removed parameter data.
20760         (sra_modify_function_body): New function.
20761         (perform_intra_sra): Call sra_modify_function_body to modify the
20762         function body.
20763         (replace_removed_params_ssa_names): Parameter data changed into
20764         adjustments vector.
20765         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
20766         changed the parameter dont_convert to convert with the opposite
20767         meaning.
20768         (sra_ipa_modify_assign): Parameter data changed into adjustments
20769         vector, return value changed to bool.
20770         (ipa_sra_modify_function_body): New function.
20771         (sra_ipa_reset_debug_stmts): Updated a comment.
20772         (modify_function): Use ipa_sra_modify_function_body to modify function
20773         body.
20774
20775 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
20776
20777         PR middle-end/43671
20778         * alias.c (true_dependence): Handle the same VALUE in x and mem.
20779         (canon_true_dependence): Likewise.
20780         (write_dependence_p): Likewise.
20781
20782 2010-05-04  Jan Hubicka  <jh@suse.cz>
20783
20784         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
20785         * cgraphbuild.c: Include ipa-utils.h
20786         (record_reference_ctx): New struct.
20787         (record_reference): Simplify to work on initializers; not statements.
20788         (mark_address, mark_load, mark_store): New.
20789         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
20790         walk PHI nodes too.
20791         (record_references_in_initializer): Update use of record_reference.
20792         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
20793         walk PHI nodes too.
20794
20795 2010-05-04  Jan Hubicka  <jh@suse.cz>
20796
20797         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
20798         node will be removed anyway.
20799         (lto_varpool_replace_node): Allow also unanalyzed nodes;
20800         relink aliases of node into prevailing node.
20801         * varpool.c (varpool_remove_node): Remove aliases properly;
20802         when removing node, remove all its aliases too; remove DECL_INITIAL
20803         of removed node; ggc_free the varpool node.
20804
20805 2010-05-04  Richard Guenther  <rguenther@suse.de>
20806
20807         PR tree-optimization/43879
20808         * tree-ssa-structalias.c (alias_get_name): Use
20809         DECL_ASSEMBLER_NAME if available.
20810         (create_function_info_for): Return the varinfo node.
20811         (ipa_pta_execute): Associate same-body aliases and extra names
20812         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
20813
20814 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
20815
20816         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
20817
20818 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
20819
20820         PR bootstrap/43964
20821         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
20822         only if HONOR_REG_ALLOC_ORDER is not defined.
20823
20824 2010-05-04  Richard Guenther  <rguenther@suse.de>
20825
20826         PR tree-optimization/43949
20827         * tree-vrp.c (extract_range_from_binary_expr): Only handle
20828         TRUNC_MOD_EXPR.
20829
20830 2010-04-26  Jason Merrill  <jason@redhat.com>
20831
20832         * c.opt (-fstrict-enums): New.
20833         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
20834
20835 2010-05-03  David Ung  <davidu@mips.com>
20836             James E. Wilson  <wilson@codesourcery.com>
20837
20838         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
20839         emit the trap instruction before the divide for TUNE_74K.
20840
20841 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
20842
20843         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
20844         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
20845         based on the above, for new target hook.
20846
20847         * hooks.c (hook_bool_mode_true): New generic hook.
20848         * hooks.h (hook_bool_mode_true): Add prototype.
20849
20850         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
20851         target hook.
20852         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
20853         target hook, set to hook_bool_mode_false.
20854         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
20855         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
20856         with targetm.small_register_classes_for_mode_p.
20857         (find_reusable_reload): Likewise.
20858         (combine_reloads): Likewise.
20859         * reload1.c (reload_as_needed): Likewise.
20860         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
20861         * ifcvt.c (noce_process_if_block, check_cond_move_block,
20862         dead_or_predicable): Likewise.
20863         * regmove.c (optimize_reg_copy_1): Likewise.
20864         * calls.c (prepare_call_address): Likewise.
20865         (precompute_register_parameters): Likewise.
20866
20867         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
20868         hook definition.
20869         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
20870         implementation of the hook that considers all register classes
20871         small except for SH64.
20872         (sh_override_options): Use the new hook.
20873         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
20874         Add prototype.
20875
20876         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
20877         hook definition.
20878         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
20879         implementation of the hook that considers all register classes
20880         small for THUMB1.
20881         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
20882         Add prototype.
20883
20884         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
20885         hook definition.
20886         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
20887         implementation of the hook that considers all register classes
20888         small for MIPS16.
20889         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
20890         Add prototype.
20891
20892         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
20893         hook definition.
20894         * config/m32c/m32c.h: Likewise.
20895         * config/pdp11/pdp11.h: Likewise.
20896         * config/avr/avr.h: Likewise.
20897         * config/xtensa/xtensa.h: Likewise.
20898         * config/m68hc11/m68hc11.h: Likewise.
20899         * config/mn10300/mn10300.h: Likewise.
20900         * config/mcore/mcore.h: Likewise.
20901         * config/h8300/h8300.h: Likewise.
20902         * config/bfin/bfin.h: Likewise.
20903
20904         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
20905         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
20906
20907 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
20908
20909         * double-int.h (tree_to_double_int): Remove macro.
20910         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
20911         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
20912         (tree_to_double_int): New function.
20913         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
20914         Move ...
20915         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
20916
20917 2010-05-03  Richard Guenther  <rguenther@suse.de>
20918
20919         PR tree-optimization/43971
20920         * tree-ssa-structalias.c (get_constraint_for_1): Fix
20921         constraints in the !flag_delete_null_pointer_checks case.
20922
20923 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
20924
20925         PR debug/43972
20926         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
20927         result mode matches original rtl mode.
20928
20929 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
20930
20931         PR target/43888
20932         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
20933
20934 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
20935
20936         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
20937         when processing flag options.
20938
20939 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
20940
20941         * gcov-iov.c (main): Change format string placeholder
20942         from %#08x to 0x%08x.
20943         * genchecksum.c (dosum): Change format string placeholder
20944         from %#02x to 0x%02x.
20945
20946 2010-05-02  Richard Guenther  <rguenther@suse.de>
20947
20948         PR tree-optimization/43879
20949         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
20950
20951 2010-05-02  Bruno Haible  <bruno@clisp.org>
20952
20953         * doc/extend.texi (Function Attributes): Fix a typo.
20954
20955 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
20956
20957         Revert:
20958         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
20959         placeholder from 0x%x to %#x.
20960         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
20961         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
20962         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
20963         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
20964         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
20965         * config/i386/i386.c (ix86_target_string): Ditto.
20966         * config/i386/i386.c (output_pic_addr_const): Ditto.
20967         (print_operand): Ditto.
20968
20969 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
20970
20971         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
20972         placeholder from 0x%x to %#x.
20973         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
20974         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
20975         (ASM_OUTPUT_DEBUG_DATA): Ditto.
20976         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
20977         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
20978         * optc-gen.awk: Ditto.
20979         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
20980         (HOST_WIDE_INT_PRINT_HEX): Ditto.
20981         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
20982         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
20983
20984 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
20985
20986         * target.h (struct calls): Add function_value_regno_p field.
20987         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
20988         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
20989         * targhooks.c (default_function_value_regno_p): New function.
20990         * targhooks.h (default_function_value_regno_p): Declare function.
20991         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
20992         * builtins.c. (apply_result_size): (Ditto.).
20993         * combine.c. (likely_spilled_retval_p): (Ditto.).
20994         * mode-switching.c. Include 'target.h'.
20995         (create_pre_exit): Use function_value_regno_p hook.
20996         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
20997         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
20998         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
20999
21000         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
21001         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
21002         (ix86_function_value_regno_p): Declare as static, change argument
21003         type to const unsigned int.
21004         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
21005
21006 2010-05-01  Richard Guenther  <rguenther@suse.de>
21007
21008         PR tree-optimization/43949
21009         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
21010         types.
21011         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
21012
21013 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
21014
21015         * rtl.h (CONST_DOUBLE_P): Define.
21016         (rtx_to_double_int): Declare.
21017         * emit-rtl.c (rtx_to_double_int): New function.
21018         * dwarf2out.c (insert_double): New function.
21019         (loc_descriptor, add_const_value_attribute): Clean up, use
21020         rtx_to_double_int and insert_double functions.
21021
21022 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
21023
21024         * doc/extend.texi (Inline): Add missing return keyword to examples.
21025         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
21026         "command-line".
21027
21028 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
21029
21030         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
21031         the variable part of the offset as well.  Use highest_pow2_factor for
21032         all alignment checks.
21033
21034 2010-04-30  Richard Guenther  <rguenther@suse.de>
21035
21036         PR tree-optimization/43879
21037         * tree-ssa-structalias.c (type_could_have_pointers): Functions
21038         can have pointers.
21039
21040 2010-04-30  Jan Hubicka  <jh@suse.cz>
21041
21042         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
21043         varpool.
21044         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
21045
21046 2010-04-30  Jan Hubicka  <jh@suse.cz>
21047
21048         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
21049         New.
21050         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
21051         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
21052         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
21053         cgraph_node_set_needs_ltrans_p): Remove.
21054
21055 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
21056
21057         * sdbout.c: Include vec.h, do not include varray.h.
21058         (deferred_global_decls, sdbout_global_decl,
21059         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
21060         * toplev.c: Do not include varray.h.
21061         (dump_memory_report): Do not dump VARRAY statistics.
21062         * gengtype.c (open_base_file): Ignore varray.h.
21063         * Makefile.in: Update for abovementioned changes.
21064         Remove all traces of varray.c and varray.h.
21065         * varray.c: Remove file.
21066         * varray.h: Remove file.
21067
21068 2010-04-30  Jan Hubicka  <jh@suse.cz>
21069
21070         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
21071         references.
21072
21073 2010-04-30  Jan Hubicka  <jh@suse.cz>
21074
21075         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
21076         needed.
21077
21078 2010-04-30  Richard Guenther  <rguenther@suse.de>
21079
21080         * tree-ssa-structalias.c (get_constraint_for_1): Generate
21081         constraints for CONSTRUCTOR.
21082
21083 2010-04-30  Richard Guenther  <rguenther@suse.de>
21084
21085         PR lto/43946
21086         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
21087         first after all lowering passes.
21088
21089 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
21090
21091         * toplev.c: Include varray.h for statistics dumping.
21092         * tree.h: Do not declare varray_head_tag.
21093         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
21094         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
21095         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
21096         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
21097         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
21098         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
21099         c-common.c, c-common.h, reg-stack.c, basic-block.h,
21100         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
21101         include varray.h.
21102         * Makefile.in: Update for abovementioned changes.
21103
21104 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
21105
21106         PR debug/43942
21107         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
21108
21109 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
21110
21111         * config/picochip/picochip.c (picochip_legitimize_address): Define.
21112         Use this function to do machine-specific conversion.
21113         (picochip_legitimize_reload_address): Likewise.
21114         (picochip_legitimate_address_p): Check valid base register only if
21115         strict.
21116         (picochip_check_conditional_copy): Check for modw only if opnd is
21117         register.
21118         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
21119         to call the function in c.
21120         * config/picochip/picochip-protos.h
21121         (picochip_legitimize_reload_address): Define.
21122         * config/picochip/picochip.md (supported_compare1): Define.
21123
21124 2010-04-30  Jan Hubicka  <jh@suse.cz>
21125
21126         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
21127         (cgraph_global_info): Remove inlined.
21128         (LTO_cgraph_tag_names): Remove.
21129         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
21130         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
21131         simplify cgraph tags and document.
21132         (lto_output_node): Use only LTO_cgraph_unavail_node and
21133         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
21134         for_functions_valid, global info, process and output flags.
21135         (input_overwrite_node): Initialize estimated stack size and
21136         estimated growth.  Do not read flags we no longer store.
21137         (input_node): Likewise do not read info no longer stored.
21138         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
21139         flag.
21140
21141 2010-04-30  Richard Guenther  <rguenther@suse.de>
21142
21143         PR tree-optimization/43879
21144         * tree-ssa-structalias.c (get_constraint_for_1): Properly
21145         handle non-zero initializers.
21146
21147 2010-04-30  Richard Guenther  <rguenther@suse.de>
21148
21149         * builtins.c (fold_builtin_1): Delete free (0).
21150
21151 2010-04-29  Jan Hubicka  <jh@suse.cz>
21152
21153         * gengtype.c (open_base_files): Add lto-streamer.h
21154         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
21155         (pass_ipa_cp): GGC collect.
21156         * toplev. (compile_file): Do not output symbols.
21157         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
21158         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
21159         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
21160         * lto-section-in.c: Include ggc.h
21161         (lto_new_in_decl_state): Alloc in GGC.
21162         (lto_delete_in_decl_state): Likewise.
21163         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
21164         Collect.
21165
21166 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
21167
21168         PR target/42895
21169         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
21170         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
21171         (HONOR_REG_ALLOC_ORDER): Describe new macro.
21172         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
21173         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
21174         account only if HONOR_REG_ALLOC_ORDER is not defined.
21175         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
21176         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
21177
21178 2010-04-29  Jon Grant  <04@jguk.org>
21179
21180         * collect2.c (vflag): Change type from int to bool.
21181         (debug): Likewise.
21182         (helpflag): New global bool.
21183         (main): Set vflag and debug with boolean, not integer truth values.
21184         Accept new "--help" option and output usage text if found.
21185         * collect2.h (vflag): Update prototype.
21186         (debug): Likewise.
21187
21188 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
21189
21190         PR bootstrap/43936
21191         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
21192
21193 2010-04-29  Richard Guenther  <rguenther@suse.de>
21194
21195         PR bootstrap/43935
21196         * plugin.h (invoke_plugin_callbacks): Annotate arguments
21197         with ATTRIBUTE_UNUSED.
21198
21199 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
21200
21201         PR target/43921
21202         * config/i386/i386.c (get_some_local_dynamic_name): Replace
21203         INSN_P with NONDEBUG_INSN_P.
21204         (distance_non_agu_define): Likewise.
21205         (distance_agu_use): Likewise.
21206
21207 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
21208
21209         From Dominique d'Humieres  <dominiq@lps.ens.fr>
21210         PR bootstrap/43858
21211         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
21212         test_set.
21213
21214 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
21215
21216         * plugin.h (invoke_plugin_callbacks): New inline function.
21217         * plugin.c (flag_plugin_added): New global flag.
21218         (add_new_plugin): Initialize above flag.
21219         (invoke_plugin_callbacks): Rename to ...
21220         (invoke_plugin_callbacks_full): ... this.
21221
21222 2010-04-28  Jan Hubicka  <jh@suse.cz>
21223
21224         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
21225         (lto_varpool_replace_node): New.
21226         (lto_symtab_resolve_symbols): Resolve varpool nodes.
21227         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
21228         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
21229         * cgraph.h (varpool_node_ptr): New type.
21230         (varpool_node_ptr): New vector.
21231         (varpool_node_set_def): New structure.
21232         (varpool_node_set): New type.
21233         (varpool_node_set): New vector.
21234         (varpool_node_set_element_def): New structure.
21235         (varpool_node_set_element, const_varpool_node_set_element): New types.
21236         (varpool_node_set_iterator): New type.
21237         (varpool_node): Add prev pointers, add used_from_other_partition,
21238         in_other_partition.
21239         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
21240         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
21241         varpool_get_node, varpool_remove_node): Declare.
21242         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
21243         varpool_node_set_size): New inlines.
21244         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
21245         * tree-pass.h (varpool_node_set_def): Forward declare.
21246         (ipa_opt_pass_d): Summary writting takes vnode sets too.
21247         (ipa_write_optimization_summaries): Update prototype.
21248         * ipa-cp.c (ipcp_write_summary): Update.
21249         * ipa-reference.c (ipa_reference_write_summary): Update.
21250         * lto-cgraph.c (lto_output_varpool_node): New static function.
21251         (output_varpool): New function.
21252         (input_varpool_node): New static function.
21253         (input_varpool_1): New function.
21254         (input_cgraph): Input varpool.
21255         * ipa-pure-const.c (pure_const_write_summary): Update.
21256         * lto-streamer-out.c (lto_output): Update, output varpool too.
21257         (write_global_stream): Kill WPA hack.
21258         (produce_asm_for_decls): Update.
21259         (output_alias_pair_p): Handle variables.
21260         (output_unreferenced_globals): Output only needed partition of varpool.
21261         * ipa-inline.c (inline_write_summary): Update.
21262         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
21263         cgraph.
21264         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
21265         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
21266         varpool_node_set_new, varpool_node_set_add,
21267         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
21268         debug_varpool_node_set): New functions.
21269         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
21270         (execute_one_pass): Process new decls too.
21271         (ipa_write_summaries_2): Pass around vsets.
21272         (ipa_write_summaries_1): Likewise.
21273         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
21274         to add.
21275         (ipa_write_optimization_summaries_1): Pass around vsets.
21276         (ipa_write_optimization_summaries): Likewise.
21277         * varpool.c (varpool_get_node): New.
21278         (varpool_node): Update doubly linked lists.
21279         (varpool_remove_node): New.
21280         (dump_varpool_node): More dumping.
21281         (varpool_enqueue_needed_node): Update doubly linked lists.
21282         (decide_is_variable_needed): Kill ltrans hack.
21283         (varpool_finalize_decl): Kill lto hack.
21284         (varpool_assemble_decl): Skip decls in other partitions.
21285         (varpool_assemble_pending_decls): Update doubly linkes lists.
21286         (varpool_empty_needed_queue): Likewise.
21287         (varpool_extra_name_alias): Likewise.
21288         * lto-streamer.c (lto_get_section_name): Add vars section.
21289         * lto-streamer.h (lto_section_type): Update.
21290         (output_varpool, input_varpool): Declare.
21291
21292 2010-04-28  Mike Stump  <mikestump@comcast.net>
21293
21294         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
21295
21296 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21297
21298         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
21299         record or union type with RECORD_OR_UNION_TYPE_P predicate.
21300         (lto_input_ts_type_tree_pointers): Likewise.
21301         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
21302         (lto_output_ts_type_tree_pointers): Likewise.
21303
21304 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21305
21306         Uniquization of constants at the Tree level
21307         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
21308         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
21309         bit to the end.
21310         (tree_output_constant_def): Declare.
21311         * gimplify.c (gimplify_init_constructor): When using block copy, first
21312         uniquize the constant constructor on the RHS.
21313         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
21314         DECL_IN_CONSTANT_POOL flag.
21315         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
21316         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
21317         constant pool.
21318         (assemble_variable): Deal with symbols belonging to the tree constant
21319         pool.
21320         (get_constant_section): Add ALIGN parameter and simplify.
21321         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
21322         (assemble_constant_contents): Use the expression of the VAR_DECL.
21323         (output_constant_def_contents): Use the alignment of the VAR_DECL.
21324         (tree_output_constant_def): New global function.
21325         (mark_constant): Use the expression of the VAR_DECL.
21326         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
21327         its expression.
21328         (output_object_block): Likewise and assemble the expression.
21329
21330 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21331
21332         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
21333         hash_tree, eq_tree): New tree hash table.
21334         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
21335         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
21336         lto_orig_address_remove): Reimplement.
21337
21338 2010-04-28  Xinliang David Li  <davidxl@google.com>
21339
21340         PR c/42643
21341         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
21342         (compute_uninit_opnds_pos): New function.
21343         (is_non_loop_exit_postdominating): New function.
21344         (compute_control_dep_chain): New function.
21345         (find_pdom): New function.
21346         (convert_control_dep_chain_into_preds): New function.
21347         (find_predicates): New function.
21348         (find_control_equiv_block): New function.
21349         (collect_phi_def_edges): New function.
21350         (find_def_preds): New function.
21351         (find_dom): New function.
21352         (dump_predicates): New function.
21353         (get_cmp_code): New function.
21354         (is_value_included_in): New function.
21355         (find_matching_predicate_in_rest_chains): New function.
21356         (use_pred_not_overlap_with_undef_path_pred): New function.
21357         (is_use_properly_guarded): New function.
21358         (normalize_cond_1): New function.
21359         (is_and_or_or): New function.
21360         (normalize_cond): New function.
21361         (is_gcond_subset_of): New function.
21362         (is_subset_of_any): New function.
21363         (is_or_set_subset_of): New function.
21364         (is_and_set_subset_of): New function.
21365         (is_norm_cond_subset_of): New function.
21366         (is_pred_expr_subset_of): New function.
21367         (is_pred_chain_subset_of): New function.
21368         (is_included_in): New function.
21369         (is_superset_of): New function.
21370         (find_uninit_use): New function.
21371         (warn_uninitialized_phi): New function.
21372         (compute_possibly_undefined_names): New function.
21373         (ssa_undefined_value_p): New function.
21374         (execute_late_warn_uninitialized): New function.
21375         * tree-ssa.c (ssa_undefined_value_p): Removed.
21376         (warn_uninit): Changed to extern.
21377         (warn_uninitialized_phi): Removed.
21378         (warn_uninitialized_vars): Changed to extern.
21379         (execute_late_warn_uninitialized): Removed
21380         * tree-flow.h: Add new prototypes.
21381         * timevar.def: Add new time variable.
21382         * Makefile.in: Add new build file.
21383
21384 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
21385
21386         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
21387         type if available.
21388
21389 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21390
21391         PR target/22224
21392         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
21393
21394 2010-04-28  Martin Jambor  <mjambor@suse.cz>
21395
21396         * cgraph.h (struct cgraph_node): New field indirect_calls.
21397         (struct cgraph_indirect_call_info): New type.
21398         (struct cgraph_edge): Removed field indirect_call. New fields
21399         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
21400         (cgraph_create_indirect_edge): Declare.
21401         (cgraph_make_edge_direct): Likewise.
21402         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
21403         * ipa-prop.h (struct ipa_param_call_note): Removed.
21404         (struct ipa_node_params): Removed field param_calls.
21405         (ipa_create_all_structures_for_iinln): Declare.
21406         * cgraph.c: Described indirect edges and uids in initial comment.
21407         (cgraph_add_edge_to_call_site_hash): New function.
21408         (cgraph_edge): Search also among the indirect edges, use
21409         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
21410         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
21411         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
21412         site hash.
21413         (initialize_inline_failed): Assign a reason to indirect edges.
21414         (cgraph_create_edge_1): New function.
21415         (cgraph_create_edge): Moved some functionality to
21416         cgraph_create_edge_1.
21417         (cgraph_create_indirect_edge): New function.
21418         (cgraph_edge_remove_callee): Add an assert checking for
21419         non-indirectness.
21420         (cgraph_edge_remove_caller): Special-case indirect edges.
21421         (cgraph_remove_edge): Likewise.
21422         (cgraph_set_edge_callee): New function.
21423         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
21424         (cgraph_make_edge_direct): New function.
21425         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
21426         the declaration of the call statement matches.
21427         (cgraph_node_remove_callees): Special-case indirect edges.
21428         (cgraph_clone_edge): Likewise.
21429         (cgraph_clone_node): Clone also the indirect edges.
21430         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
21431         indirect_call, dump count of indirect_calls edges.
21432         * ipa-prop.c (iinlining_processed_edges): New variable.
21433         (ipa_note_param_call): Create indirect edges instead of
21434         creating notes.  New parameter node.
21435         (ipa_analyze_call_uses): New parameter node, pass it on to
21436         ipa_note_param_call.
21437         (ipa_analyze_stmt_uses): Likewise.
21438         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
21439         (print_edge_addition_message): Work on edges rather than on notes.
21440         (update_call_notes_after_inlining): Likewise, renamed to
21441         update_indirect_edges_after_inlining.
21442         (ipa_create_all_structures_for_iinln): New function.
21443         (ipa_free_node_params_substructures): Do not free notes.
21444         (ipa_edge_duplication_hook): Propagate bits within
21445         iinlining_processed_edges bitmap.
21446         (ipa_node_duplication_hook): Do not duplicate notes.
21447         (free_all_ipa_structures_after_ipa_cp): Renamed to
21448         ipa_free_all_structures_after_ipa_cp.
21449         (free_all_ipa_structures_after_iinln): Renamed to
21450         ipa_free_all_structures_after_iinln.
21451         (ipa_write_param_call_note): Removed.
21452         (ipa_read_param_call_note): Removed.
21453         (ipa_write_indirect_edge_info): New function.
21454         (ipa_read_indirect_edge_info): Likewise.
21455         (ipa_write_node_info): Do not stream notes, do stream information
21456         in indirect edges.
21457         (ipa_read_node_info): Likewise.
21458         (lto_ipa_fixup_call_notes): Removed.
21459         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
21460         * ipa-inline.c (pass_ipa_inline): Likewise.
21461         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
21462         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
21463         * tree-inline.c (copy_bb): Removed an unnecessary double check for
21464         is_gimple_call.
21465         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
21466         edges.
21467         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
21468         (output_cgraph): Stream also indirect edges.
21469         (lto_output_edge): Added capability to stream indirect edges.
21470         (input_edge): Likewise.
21471         (input_cgraph_1): Likewise.
21472         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
21473         of indirect edges.
21474
21475 2010-04-28  Richard Guenther  <rguenther@suse.de>
21476
21477         PR tree-optimization/43879
21478         PR tree-optimization/43909
21479         * tree-ssa-structalias.c (struct variable_info): Add
21480         only_restrict_pointers flag.
21481         (new_var_info): Initialize it.  Increment stats.total_vars here.
21482         (create_function_info_for): Do not increment stats.total_vars here.
21483         (get_function_part_constraint): Fix build with C++.
21484         (insert_into_field_list): Remove.
21485         (push_fields_onto_fieldstack): Properly merge fields.
21486         (create_variable_info_for): Split and simplify.
21487         (create_variable_info_for_1): New piece.
21488         (intra_create_variable_infos): Properly make restrict constraints
21489         from parameters.
21490
21491 2010-04-28  Richard Guenther  <rguenther@suse.de>
21492
21493         PR c++/43880
21494         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
21495
21496 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21497             Jan Hubicka  <hubicka@ucw.cz>
21498
21499         * doc/invoke.texi (-Wsuggest-attribute=const,
21500         -Wsuggest-attribute=pure): Document.
21501         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
21502         (function_always_visible_to_compiler_p,
21503         suggest_attribute, warn_function_pure, warn_function_const):
21504         New functions.
21505         (check_call): Improve debug info.
21506         (analyze_function): Do not check availability.
21507         (add_new_function): Check availability.
21508         (propagate): Output warnings.
21509         (skip_function_for_local_pure_const): New function.
21510         (local_pure_const): Use it; output warnings.
21511         * common.opt (Wsuggest-attribute=const,
21512         Wsuggest-attribute=pure): New.
21513
21514 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
21515
21516         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
21517         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
21518         or DW_CFA_def_cfa_offset{,_sf}.
21519
21520 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
21521
21522         * tree.h: Fix truncated long macros.
21523
21524 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
21525
21526         * collect2.c (TARGET_64BIT): Redefine to target's default.
21527         * tlink.c: Likewise.
21528         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
21529         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
21530         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
21531         for underscoring __USER_LABEL_PREFIX__.
21532         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
21533         (SUB_LINK_ENTRY32): New.
21534         (SUB_LINK_ENTRY64): New.
21535         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
21536         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
21537         (SUB_LINK_ENTRY64): New.
21538         (SUB_LINK_ENTRY): New.
21539         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
21540         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
21541         x64 target is choosen.
21542         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
21543         * configure: Regenerated.
21544         * configure.ac (leading-mingw64-underscores): Option added.
21545
21546 2010-04-27  Jan Hubicka  <jh@suse.cz>
21547
21548         * doc/invoke.texi (-fipa-profile): Document.
21549         * opts.c (decode_options): Enable ipa-profile at -O1.
21550         * timevar.def (TV_IPA_PROFILE): Define.
21551         * common.opt (fipa-profile): Add.
21552         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
21553         flag for clones.
21554         (cgraph_propagate_frequency): Handle only local ones.
21555         * tree-pass.h (pass_ipa_profile): Declare.
21556         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
21557         (pass_ipa_profile): Use TV_IPA_PROFILE.
21558         * ipa.c (ipa_profile): New function.
21559         (gate_ipa_profile): Likewise.
21560         (pass_ipa_profile): New global variable.
21561         * passes.c (pass_ipa_profile): New.
21562
21563 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
21564
21565         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
21566
21567 2010-04-27  Martin Jambor  <mjambor@suse.cz>
21568
21569         PR middle-end/43812
21570         * ipa.c (dissolve_same_comdat_group_list): New function.
21571         (function_and_variable_visibility): Call
21572         dissolve_same_comdat_group_list when comdat group contains external or
21573         newly local nodes.
21574         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
21575         lists are circular and that they contain only DECL_ONE_ONLY nodes.
21576
21577 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
21578
21579         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
21580         (const_hash_1) <VECTOR_CST>: New case.
21581         (compare_constant) <VECTOR_CST>: Likewise.
21582         <ADDR_EXPR>: Deal with LABEL_REFs.
21583         (copy_constant) <VECTOR_CST>: New case.
21584
21585 2010-04-27  Jan Hubicka  <jh@suse.cz>
21586
21587         * cgraph.c (cgraph_propagate_frequency): New function.
21588         * cgraph.h (cgraph_propagate_frequency): Declare.
21589         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
21590         cgraph_propagate_frequency.
21591
21592 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
21593
21594         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
21595
21596 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
21597
21598         PR target/40657
21599         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
21600         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
21601         here to determine which regs to push and how much stack to reserve.
21602
21603 2010-04-27  Jie Zhang  <jie@codesourcery.com>
21604
21605         * doc/gimple.texi (gimple_statement_with_ops): Remove
21606         addresses_taken field.
21607         (gimple_statement_with_memory_ops): Likewise.
21608
21609 2010-04-27  Jan Hubicka  <jh@suse.cz>
21610
21611         * tree-inline.c (eni_inlining_weights): Remove.
21612         (estimate_num_insns): Special case more builtins.
21613
21614 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
21615
21616         PR c/32207
21617         * c-typeck.c (build_binary_op): Move forward check for comparison
21618         pointer with null pointer constant and adjust the diagnostic message.
21619
21620 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
21621
21622         PR lto/42776
21623         * configure.ac (gcc_cv_as_section_has_align): Set if installed
21624         binutils supports extended .section directive needed by LTO, or
21625         warn if older binutils found.
21626         (LTO_BINARY_READER): New AC_SUBST'd variable.
21627         (LTO_USE_LIBELF): Likewise.
21628         * config.gcc (lto_binary_reader): New target-specific configure
21629         variable.
21630         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
21631         (LTO_USE_LIBELF): Likewise.
21632         * configure: Regenerate.
21633
21634         * collect2.c (is_elf): Rename from this ...
21635         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
21636          object files in addition to ELF-formatted ones.
21637         (scan_prog_file): Caller updated.  Also allow for LTO info marker
21638         symbol to be prefixed or not by an extra underscore.
21639
21640         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
21641         * config/i386/winnt.c: Also #include lto-streamer.h
21642         (i386_pe_asm_named_section): Specify 1-byte section alignment for
21643         LTO named sections.
21644         (i386_pe_asm_output_aligned_decl_common): Add comment.
21645         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
21646
21647 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
21648
21649         PR target/43889
21650         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
21651         Add missing earlyclobber for second alternative.
21652
21653 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
21654
21655         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
21656         bits for artificial defs at the top of the block.
21657         * fwprop.c (single_def_use_enter_block): Don't call it.
21658
21659 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
21660
21661         PR 43715
21662         * configure.ac: Use "$gcc_cv_nm -g" on darwin
21663         instead of "$gcc_cv_objdump -T".
21664         Use "-undefined dynamic_lookup" on darwin.
21665         * configure: Regenerate.
21666
21667 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
21668
21669         PR c/43893
21670         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
21671
21672 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
21673
21674         * c-parser.c (struct c_token): Move location field up.
21675         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
21676         (struct c_declspecs): Convert typespec_word, storage_class, and
21677         default_int_p into bitfields.
21678         (struct c_declarator): Move loc field up.
21679
21680 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
21681
21682         * cfgloop.h (struct loop): Move can_be_parallel field up.
21683         * ipa-prop.h (struct ip_node_params): Move bitfields up.
21684         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
21685         down.
21686         (struct iv_cand): Convert pos field into a bitfield.
21687         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
21688         field up.
21689         (struct _stmt_vec_info): Shuffle fields for better packing.
21690
21691 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
21692
21693         * varasm.c (IN_NAMED_SECTION): Remove guard.
21694         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
21695         (IN_NAMED_SECTION_P): ...this.
21696         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
21697         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
21698
21699 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
21700
21701         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
21702         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
21703         of shadowing it.  Fix comments.
21704
21705 2010-04-26  Jan Hubicka  <jh@suse.cz>
21706
21707         * cgraph.c (cgraph_create_node): Set node frequency to normal.
21708         (cgraph_clone_node): Copy function frequency.
21709         * cgraph.h (node_frequency): New enum
21710         (struct cgraph_node): Add.
21711         * final.c (rest_of_clean_state): Update.
21712         * lto-cgraph.c (lto_output_node): Output node frequency.
21713         (input_overwrite_node): Input node frequency.
21714         * tre-ssa-loop-ivopts (computation_cost): Update.
21715         * lto-streamer-out.c (output_function): Do not output function
21716         frequency.
21717         * predict.c (maybe_hot_frequency_p): Update and handle functions
21718         executed once.
21719         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
21720         attribute lookup.
21721         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
21722         (compute_function_frequency): Set noreturn functions to be executed
21723         once.
21724         (choose_function_section): Update.
21725         * lto-streamer-in.c (input_function): Do not input function frequency.
21726         * function.c (allocate_struct_function): Do not initialize function
21727         frequency.
21728         * function.h (function_frequency): Remove.
21729         (struct function): Remove function frequency.
21730         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
21731         (try_update): Update.
21732         * tree-inline.c (initialize_cfun): Do not update function frequency.
21733         * passes.c (pass_init_dump_file): Update.
21734         * i386.c (ix86_compute_frame_layout): Update.
21735         (ix86_pad_returns): Update.
21736
21737 2010-04-26  Jie Zhang  <jie@codesourcery.com>
21738
21739         PR tree-optimization/43833
21740         * tree-vrp.c (range_int_cst_p): New.
21741         (range_int_cst_singleton_p): New.
21742         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
21743         when both operands are constants.  Use range_int_cst_p in
21744         BIT_IOR_EXPR case.
21745
21746 2010-04-26  Jan Hubicka  <jh@suse.cz>
21747
21748         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
21749
21750 2010-04-26  Richard Guenther  <rguenther@suse.de>
21751
21752         PR lto/43080
21753         * gimple.c (gimple_decl_printable_name): Deal gracefully
21754         with a NULL DECL_NAME.
21755
21756 2010-04-26  Richard Guenther  <rguenther@suse.de>
21757
21758         PR lto/42425
21759         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
21760         if emitting debug information and it is either a function
21761         or a namespace decl.
21762
21763 2010-04-26  Ira Rosen  <irar@il.ibm.com>
21764
21765         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
21766         determine if the statement is vectorizable, and a macro to access it.
21767         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21768         Skip statements that can't be vectorized. If the analysis fails,
21769         mark the statement as unvectorizable if vectorizing basic block.
21770         (vect_compute_data_refs_alignment): Likewise.
21771         (vect_verify_datarefs_alignment): Skip statements marked as
21772         unvectorizable. Add print.
21773         (vect_analyze_group_access): Skip statements that can't be
21774         vectorized. If the analysis fails, mark the statement as
21775         unvectorizable if vectorizing basic block.
21776         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
21777         * tree-vect-stmts.c (vectorizable_store): Fix the number of
21778         generated stmts for SLP.
21779         (new_stmt_vec_info): Initialize the new field.
21780         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
21781         statements marked as unvectorizable.
21782
21783 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
21784
21785         * c-common.c (flag_isoc1x): New.
21786         (flag_isoc99): Update comment.
21787         * c-common.h (flag_isoc1x): New.
21788         (flag_isoc99): Update comment.
21789         * c-cppbuiltin.c (builtin_define_float_constants): Also define
21790         __<type>_DECIMAL_DIG__.
21791         * c-opts.c (set_std_c1x): New.
21792         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
21793         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
21794         * c.opt (-std=c1x, -std=gnu1x): New options.
21795         * doc/cpp.texi: Mention -std=c1x.
21796         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
21797         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
21798         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
21799         * doc/standards.texi: Mention C1X.
21800         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
21801         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
21802         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
21803         Define for C1X.
21804
21805 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
21806
21807         * config/i386/gmon-sol2.c (_mcleanup): Change format string
21808         placeholder from 0x%x to %#x.
21809         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
21810         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
21811         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
21812         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
21813         * config/i386/i386.c (ix86_target_string): Ditto.
21814         (output_pic_addr_const): Ditto.
21815         (print_operand): Ditto.
21816
21817 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
21818
21819         * combine.c (find_split_point): Add third argument.  Use it
21820         to find nested multiply-accumulate instructions.  Adjust calls.
21821         (try_combine): Adjust call to find_split_point.
21822
21823 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
21824
21825         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
21826
21827 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
21828
21829         PR tree-optimization/41442
21830         * fold-const.c (merge_truthop_with_opposite_arm): New function.
21831         (fold_binary_loc): Call it.
21832
21833 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21834
21835         * toplev.c (general_init): Set default for fdiagnostics-show-option.
21836         * opts.c (common_handle_option): Allow disabling it.
21837         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
21838
21839 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
21840
21841         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
21842         between modes if both types are integral.
21843
21844 2010-04-23  Richard Guenther  <rguenther@suse.de>
21845
21846         PR tree-optimization/43572
21847         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
21848
21849 2010-04-23  Richard Guenther  <rguenther@suse.de>
21850
21851         PR lto/43455
21852         * tree-inline.c (tree_can_inline_p): Also check compatibility
21853         of return types.
21854
21855 2010-04-23  Martin Jambor  <mjambor@suse.cz>
21856
21857         PR tree-optimization/43846
21858         * tree-sra.c (struct access): New flag grp_assignment_read.
21859         (build_accesses_from_assign): Set grp_assignment_read.
21860         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
21861         (enum mark_read_status): New type.
21862         (analyze_access_subtree): Propagate grp_assignment_read, create
21863         accesses also if both direct_read and root->grp_assignment_read.
21864
21865 2010-04-23  Martin Jambor  <mjambor@suse.cz>
21866
21867         PR middle-end/43835
21868         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
21869         function does not have type attributes.
21870
21871 2010-04-23  Richard Guenther  <rguenther@suse.de>
21872
21873         PR lto/42653
21874         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
21875         of FUNCTION_DECLs.
21876
21877 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
21878
21879         * sese.h (create_if_region_on_edge): Remove.
21880
21881         * sese.c (create_if_region_on_edge): Make static.
21882
21883         * tree-inline.c: Do not include ggc.h.
21884
21885         * expr.c: Do not include ggc.h.
21886
21887         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
21888         dependencies.
21889
21890 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
21891
21892         PR target/43744
21893         * config/sh/sh.c (find_barrier): Don't emit a constant pool
21894         in the middle of insns for casesi_worker_2.
21895
21896 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
21897
21898         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
21899
21900 2010-04-22  Ira Rosen  <irar@il.ibm.com>
21901
21902         PR tree-optimization/43842
21903         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
21904         loop unrolling in update of exit phis. Fix comment.
21905         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
21906         least two reduction statements in the loop before starting SLP
21907         analysis.
21908
21909 2010-04-22  Nick Clifton  <nickc@redhat.com>
21910
21911         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
21912
21913 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
21914
21915         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
21916         to simplify a + ~a.
21917
21918 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
21919
21920         * tree-parloops.c (loop_parallel_p): New argument
21921         parloop_obstack.  Pass it down.
21922         (parallelize_loops): New variable parloop_obstack.  Initialize it,
21923         pass it down, free it.
21924
21925         * tree-loop-linear.c (linear_transform_loops): Pass down
21926         lambda_obstack.
21927
21928         * tree-data-ref.h (lambda_compute_access_matrices): New argument
21929         of type struct obstack *.
21930
21931         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
21932         scratch_obstack.  Initialize it, pass down, free it.
21933
21934         * lambda.h (lambda_loop_new): Remove.
21935         (lambda_matrix_new, lambda_matrix_inverse)
21936         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
21937         argument of type struct obstack *.
21938
21939         * lambda-trans.c (lambda_trans_matrix_new): New argument
21940         lambda_obstack.  Pass it down, use obstack allocation for ret.
21941         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
21942         it down.
21943
21944         * lambda-mat.c (lambda_matrix_get_column)
21945         (lambda_matrix_project_to_null): Remove.
21946         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
21947         allocation for mat.
21948         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
21949         lambda_obstack.
21950
21951         * lambda-code.c (lambda_loop_new): New function.
21952         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
21953         (lambda_compute_auxillary_space, lambda_compute_target_space)
21954         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
21955         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
21956         (build_access_matrix): New argument lambda_obstack.  Use obstack
21957         allocation for am.
21958         (lambda_compute_step_signs, lambda_compute_access_matrices): New
21959         argument lambda_obstack.  Pass it down.
21960
21961 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
21962
21963         * optabs.h (expand_widening_mult): Declare.
21964
21965 2010-04-22  Richard Guenther  <rguenther@suse.de>
21966
21967         PR tree-optimization/43845
21968         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
21969         lookup the CALL_EXPR function and arguments.
21970
21971 2010-04-22  Nick Clifton  <nickc@redhat.com>
21972
21973         * config/stormy16/stormy16.c
21974         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
21975         * config/stormy16/stormy16.h: Tidy up formatting.
21976         (DONT_USE_BUILTIN_SETJMP): Remove definition.
21977         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
21978         (ineqbranchsi): Delete pattern.
21979         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
21980         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
21981         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
21982         stormy16-lib2-ucmpsi2.c.
21983
21984 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
21985
21986         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
21987         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
21988         extra set merge_set_noclobber, and use it to relax the final test
21989         slightly.
21990         * df.h (df_simulate_find_noclobber_defs): Declare.
21991         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
21992         conditional defs.
21993         (df_simulate_find_noclobber_defs): New function.
21994
21995 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
21996
21997         * config/i386/i386.md: Use {} around multi-line preparation statements.
21998
21999 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22000
22001         * c-tree.h (push_init_level, pop_init_level, set_init_index)
22002         (process_init_element): New argument of type struct obstack *.
22003
22004         * c-typeck.c (push_init_level, pop_init_level, set_designator)
22005         (set_init_index, set_init_label, set_nonincremental_init)
22006         (set_nonincremental_init_from_string, find_init_member)
22007         (output_init_element, output_pending_init_elements)
22008         (process_init_element): New argument braced_init_obstack.  Pass it
22009         down.
22010         (push_range_stack, add_pending_init): New argument
22011         braced_init_obstack.  Use obstack allocation.
22012
22013         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
22014         braced_init_obstack.  Pass it down.
22015         (c_parser_braced_init): New variables ret, braced_init_obstack.
22016         Initialize obstack, pass it down and finally free it.
22017
22018 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
22019
22020         PR middle-end/29274
22021         * tree-pass.h (pass_optimize_widening_mul): Declare.
22022         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
22023         gate_optimize_widening_mul): New static functions.
22024         (pass_optimize_widening_mul): New.
22025         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
22026         <case MULT_EXPR>: Remove support for widening multiplies.
22027         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
22028         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
22029         simplify_gen_unary rather than directly building extensions.
22030         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
22031         WIDEN_MULT_EXPR.
22032         * expmed.c (expand_widening_mult): New function.
22033         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
22034
22035 2010-04-21  Jan Hubicka  <jh@suse.cz>
22036
22037         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
22038         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
22039         * lto-wpa-fixup.c: Remove.
22040         * Makefile.in (lto-wpa-fixup.o): Remove.
22041         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
22042         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
22043         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
22044
22045 2010-04-21  Jan Hubicka  <jh@suse.cz>
22046
22047         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
22048         add write_optimization_summary, read_optimization_summary.
22049         (ipa_write_summaries_of_cgraph_node_set): Remove.
22050         (ipa_write_optimization_summaries): Declare.
22051         (ipa_read_optimization_summaries): Declare.
22052         * ipa-cp.c (pass_ipa_cp): Update.
22053         * ipa-reference.c (pass_ipa_reference): Update.
22054         * ipa-pure-const.c (pass_ipa_pure_const): Update.
22055         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
22056         Update.
22057         * ipa-inline.c (pass_ipa_inline): Update.
22058         * ipa.c (pass_ipa_whole_program): Update.
22059         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
22060         * passes.c (ipa_write_summaries_1): Do not test wpa.
22061         (ipa_write_optimization_summaries_1): New.
22062         (ipa_write_optimization_summaries): New.
22063         (ipa_read_summaries): Do not test ltrans.
22064         (ipa_read_optimization_summaries_1): New.
22065         (ipa_read_optimization_summaries): New.
22066
22067 2010-04-21  Jan Hubicka  <jh@suse.cz>
22068
22069         * lto-cgraph.c (lto_output_node): Do not output comdat groups
22070         for boundary nodes.
22071         (output_cgraph): Do not arrange comdat groups for boundary nodes.
22072
22073 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
22074
22075         PR debug/40040
22076         * dwarf2out.c (add_name_and_src_coords_attributes): Add
22077         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
22078
22079 2010-04-21  Jan Hubicka  <jh@suse.cz>
22080
22081         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
22082
22083 2010-04-21  Jan Hubicka  <jh@suse.cz>
22084
22085         * varpool.c (decide_is_variable_needed): Variable is always needed
22086         during ltrans.
22087
22088 2010-04-21  Jan Hubicka  <jh@suse.cz>
22089
22090         * opts.c (decode_options): Enable pure-const pass for whopr.
22091
22092 2010-04-21  Jan Hubicka  <jh@suse.cz>
22093
22094         * cgraph.c (dump_cgraph_node): Dump also assembler name.
22095         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
22096         at WPA dumping.
22097         (cgraph_decide_inlining): Do not expect callee to be removed in all
22098         cases.
22099
22100 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
22101
22102         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
22103
22104 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
22105
22106         * config/i386/i386.md (x86_shrd): Add athlon_decode and
22107         amdfam10_decode attributes.
22108
22109 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
22110
22111         PR middle-end/43570
22112         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
22113         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
22114         (lower_copyprivate_clauses): Use private var in outer
22115         context instead of original var.  Make sure the types
22116         are correct for VLAs.
22117
22118 2010-04-21  Richard Guenther  <rguenther@suse.de>
22119
22120         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
22121         to non-pointer objects.
22122
22123 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
22124
22125         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
22126         last chain entry if it starts with the still current label.
22127         (add_location_or_const_value_attribute): Check that
22128         loc_list->first->next is NULL instead of comparing ->first with ->last.
22129         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
22130         to add_var_loc_to_decl.
22131
22132         * dwarf2out.c (output_call_frame_info): For dw_cie_version
22133         >= 4 add also address size and segment size fields into CIE header.
22134
22135         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
22136         long as address size is the same as sizeof (void *) and
22137         segment size is 0.
22138         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
22139         address size or segment size is unexpected, return DW_EH_PE_omit.
22140         (classify_object_over_fdes): If get_cie_encoding returned
22141         DW_EH_PE_omit, return -1.
22142         (init_object): If classify_object_over_fdes returned -1,
22143         pretend there were no FDEs at all.
22144
22145 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
22146
22147         * config/i386/i386.md (bswap<mode>2): Macroize expander from
22148         bswap{si,di}2 using SWI48 mode iterator.
22149         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
22150         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
22151         set modrm attribute of bswap insn to 0 and remove length attribute.
22152         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
22153         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
22154         set mode attribute to <MODE> and remove length attribute.
22155
22156 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
22157
22158         PR rtl-optimization/43520
22159         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
22160         zero available registers.
22161
22162 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22163
22164         * builtins.c (fold_builtin_cproj): Fold more cases.
22165
22166 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22167
22168         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
22169         (fold_builtin_1): Fold builtin cproj.
22170         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
22171         Use ATTR_CONST_NOTHROW_LIST.
22172
22173 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
22174
22175         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
22176         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
22177         ffsi2_no_cmove for !TARGET_CMOVE.
22178         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
22179         (ffssi2): Remove expander.
22180         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
22181         mode iterator.
22182         (ctz<mode>2): Ditto from ctz{si,di}2.
22183         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
22184         mode iterator.
22185         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
22186         mode iterator.
22187
22188 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
22189
22190         * dwarf2out.c (AT_linkage_name): Define.
22191         (clone_as_declaration): Handle DW_AT_linkage_name.
22192         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
22193         of DW_AT_MIPS_linkage_name.
22194         (move_linkage_attr): Likewise.
22195         (dwarf2out_finish): Likewise.
22196
22197 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
22198
22199         PR middle-end/41952
22200         * fold-const.c (fold_comparison): New folding rule.
22201
22202 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
22203
22204         * double-int.h (double_int_setbit): Declare.
22205         * double-int.c (double_int_setbit): New function.
22206         * rtl.h (immed_double_int_const): Declare.
22207         * emit-rtl.c (immed_double_int_const): New function.
22208         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
22209         and immed_double_int_const functions.
22210         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
22211         expand_copysign_bit): (Ditto.).
22212         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
22213         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
22214         * dojump.c (prefer_and_bit_test): (Ditto.).
22215         * expr.c (convert_modes, reduce_to_bit_field_precision,
22216         const_vector_from_tree): (Ditto.).
22217         * expmed.c (mask_rtx, lshift_value): (Ditto.).
22218
22219 2010-04-20  Jan Hubicka  <jh@suse.cz>
22220
22221         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
22222         (dump_cgraph_node): Dump new flags.
22223         * cgraph.h (struct cgraph_node): Add flags
22224         reachable_from_other_partition and in_other_partition.
22225         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
22226         other partition can not be removed.
22227         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
22228         the other partition must be output; silence sanity checking on
22229         leaking functions bodies from other paritition.
22230         * lto-cgraph.c (reachable_from_other_partition_p): New function.
22231         (lto_output_node): Output new flags; do not sanity check that inline
22232         clones are output; drop lto_forced_extern_inline_p code; do not mock
22233         visibility flags at partition boundaries.
22234         (add_node_to): New function.
22235         (output_cgraph): Use it to sort functions so masters appear before
22236         clones.
22237         (input_overwrite_node): Input new flags.
22238         * passes.c (ipa_write_summaries): Do not call
22239         lto_new_extern_inline_states.
22240         * lto-section-out.c (forced_extern_inline,
22241         lto_new_extern_inline_states lto_delete_extern_inline_states,
22242         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
22243         * lto-streamer.h (lto_new_extern_inline_states,
22244         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
22245         lto_forced_extern_inline_p): Kill.
22246
22247 2010-04-20  Richard Guenther  <rguenther@suse.de>
22248
22249         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
22250         from vars that can have pointers.
22251         (process_constraint): Dump useless constraints.
22252
22253 2010-04-20  Richard Guenther  <rguenther@suse.de>
22254
22255         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
22256         (dump_sa_points_to_info): Remove asserts.
22257         (init_base_vars): nothing_id isn't an escape point nor does it
22258         have pointers.
22259
22260 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
22261
22262         * tree.h (TYPE_REF_IS_RVALUE): Define.
22263         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
22264         should_move_die_to_comdat, prune_unused_types_walk): Handle
22265         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
22266         (modified_type_die, gen_reference_type_die): Emit
22267         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
22268         if TYPE_REF_IS_RVALUE and -gdwarf-4.
22269
22270 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22271
22272         PR target/43635
22273         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
22274         calls for -fpic -m31 if they have been sibcall optimized.
22275
22276 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
22277
22278         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
22279         ar.lc fixed and call-used.
22280
22281         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
22282
22283 2010-04-19  Jan Hubicka  <jh@suse.cz>
22284
22285         * opts.c (decode_options): Disable whpr incompatible passes.
22286         * lto/lto.c (lto_1_to_1_map): Skip clones.
22287         (read_cgraph_and_symbols): Do not mark everything as needed.
22288         (do_whole_program_analysis): Do map only after optimizing;
22289         set proper cgraph_state; use passmanager.
22290
22291 2010-04-19  DJ Delorie  <dj@redhat.com>
22292
22293         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
22294         POINTER_PLUS_EXPR and fix them.
22295
22296 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
22297
22298         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
22299         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
22300         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
22301         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
22302         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
22303         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
22304         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
22305         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
22306         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
22307         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
22308         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
22309
22310 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
22311
22312         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
22313         (check_cond_move_block): Likewise.
22314         (cond_move_process_if_block): Likewise.
22315         (noce_find_if_block): Improve formatting.
22316         (find_if_header): Pass 0 to memset and tweak conditions.
22317         (cond_exec_find_if_block): Fix long lines and tweak conditions.
22318
22319 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
22320
22321         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
22322         for -gdwarf-4.
22323
22324         PR middle-end/43337
22325         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
22326         with non-local decl doesn't need chain.
22327
22328 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
22329
22330         * ira-color.c (allocno_reload_assign): Avoid accumulating
22331         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
22332
22333 2010-04-19  Martin Jambor  <mjambor@suse.cz>
22334
22335         * gimple.h (create_tmp_reg): Declare.
22336         * gimplify.c (create_tmp_reg): New function.
22337         (gimplify_return_expr): Use create_tmp_reg.
22338         (gimplify_omp_atomic): Likewise.
22339         (gimple_regimplify_operands): Likewise.
22340         * tree-dfa.c (make_rename_temp): Likewise.
22341         * tree-predcom.c (predcom_tmp_var): Likewise.
22342         (reassociate_to_the_same_stmt): Likewise.
22343         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
22344         (get_replaced_param_substitute): Likewise.
22345         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
22346         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
22347         * tree-ssa-pre.c (get_representative_for): Likewise.
22348         (create_expression_by_pieces): Likewise.
22349         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
22350         (create_tailcall_accumulator): Likewise.
22351
22352 2010-04-19  Martin Jambor  <mjambor@suse.cz>
22353
22354         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
22355         new_stmt.
22356         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
22357
22358 2010-04-19  Richard Guenther  <rguenther@suse.de>
22359
22360         PR tree-optimization/43796
22361         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
22362         from SCEV in the lattice.
22363         (vrp_visit_phi_node): Dump change.
22364
22365 2010-04-19  Richard Guenther  <rguenther@suse.de>
22366
22367         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
22368         * configure: Re-generated.
22369
22370 2010-04-19  Richard Guenther  <rguenther@suse.de>
22371
22372         PR tree-optimization/43783
22373         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
22374         constant ARRAY_REF operands two and three if possible.
22375
22376 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
22377
22378         PR target/43766
22379         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
22380
22381 2010-04-19  Jie Zhang  <jie@codesourcery.com>
22382
22383         PR target/43662
22384         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
22385
22386 2010-04-19  Ira Rosen  <irar@il.ibm.com>
22387
22388         PR tree-optimization/37027
22389         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
22390         and macro to access it.
22391         (vectorizable_reduction): Add argument.
22392         (vect_get_slp_defs): Likewise.
22393         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
22394         statements for possible use in SLP.
22395         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
22396         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
22397         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
22398         add new argument.
22399         (vectorizable_reduction): Likewise.
22400         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
22401         vect_get_slp_defs.
22402         (vectorizable_type_demotion, vectorizable_type_promotion,
22403         vectorizable_store): Likewise.
22404         (vect_analyze_stmt): Update call to vectorizable_reduction.
22405         (vect_transform_stmt): Likewise.
22406         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
22407         (vect_build_slp_tree): Fix indentation. Check that there are no loads
22408         from different interleaving chains in same node.
22409         (vect_slp_rearrange_stmts): New function.
22410         (vect_supported_load_permutation_p): Allow load permutations for
22411         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
22412         inside SLP nodes if necessary.
22413         (vect_analyze_slp_instance): Handle reductions.
22414         (vect_analyze_slp): Try to build SLP instances originating from groups
22415         of reductions.
22416         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
22417         (vect_get_constant_vectors): Create initial vectors for reductions
22418         according to reduction code. Add new argument.
22419         (vect_get_slp_defs): Add new argument, pass it to
22420         vect_get_constant_vectors.
22421         (vect_schedule_slp_instance): Remove SLP tree root statements.
22422
22423 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
22424
22425         * tree.h (ENUM_IS_SCOPED): Define.
22426         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
22427         for ENUM_IS_SCOPED enums.
22428
22429 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
22430
22431         * fold-const.c (fold_comparison): Use ssizetype.
22432         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
22433         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
22434         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
22435         * tree-object-size.c (compute_object_sizes): Use size_type_node.
22436
22437         * tree.h (initialize_sizetypes): Remove parameter.
22438         (build_common_tree_nodes): Remove second parameter.
22439         * stor-layout.c (initialize_sizetypes): Remove parameter.
22440         Always create an unsigned type.
22441         (set_sizetype): Assert that the passed type is unsigned and simplify.
22442         * tree.c (build_common_tree_nodes): Remove second parameter.
22443         Adjust call to initialize_sizetypes.
22444         * c-decl.c (c_init_decl_processing): Remove second argument in call to
22445         build_common_tree_nodes.
22446
22447 2010-04-18  Matthias Klose  <doko@ubuntu.com>
22448
22449         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
22450
22451 2010-04-18  Ira Rosen  <irar@il.ibm.com>
22452
22453         PR tree-optimization/43771
22454         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
22455         load permutation doesn't have gaps.
22456
22457 2010-04-18  Jan Hubicka  <jh@suse.cz>
22458
22459         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
22460         (sse_prologue_save_insn expander): Use new pattern.
22461         (sse_prologue_save_insn1): New pattern and splitter.
22462         (sse_prologue_save_insn): Update to deal also with 64bit aligned
22463         blocks.
22464         * i386.c (setup_incoming_varargs_64): Do not compute jump
22465         destination here.
22466         (ix86_gimplify_va_arg): Update alignment needed.
22467         (ix86_local_alignment): Do not align all local arrays to 128bit.
22468
22469 2010-04-17  Jan Hubicka  <jh@suse.cz>
22470
22471         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
22472
22473 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
22474
22475         * arm.md (negdi2): Remove redundant code to force values into a
22476         register.
22477
22478 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
22479
22480         * arm/bpabi.S: Add EABI alignment attributes to objects.
22481         * arm/bpabi-v6m.S: Likewise.
22482         * arm/crti.asm: Likewise.
22483         * arm/crtn.asm: Likewise.
22484         * arm/lib1funcs.asm: Likewise.
22485         * arm/libunwind.S: Likewise.
22486
22487 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
22488
22489         * arm-protos.h (tune_params): New structure.
22490         * arm.c (current_tune): New variable.
22491         (arm_constant_limit): Delete.
22492         (struct processors): Add pointer to the tune parameters.
22493         (arm_slowmul_tune): New tuning option.
22494         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
22495         (all_cores): Adjust to pick up the tuning model.
22496         (arm_constant_limit): New function.
22497         (arm_override_options): Select the appropriate tuning model.  Delete
22498         initialization of arm_const_limit.
22499         (arm_split_constant): Use the new constant-limit model.
22500         (arm_rtx_costs): Pick up the current tuning model.
22501         * arm.md (is_strongarm, is_xscale): Delete.
22502         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
22503         for Xscale variant architectures.
22504         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
22505
22506 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22507
22508         * config/arm/arm.c (arm_gen_constant): Remove unused variable
22509         can_shift.
22510         (arm_rtx_costs_1): Remove unused variable extra_cost.
22511         (arm_unwind_emit_set): Use variable offset.
22512         (thumb1_output_casesi): Remove unused variable flags.
22513
22514 2010-04-16  Jeff Law  <law@redhat.com>
22515
22516         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
22517         needing assignment rather than doing a two-phase assignment.  Remove
22518         unused variable 'm'.
22519
22520 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
22521
22522         PR bootstrap/43767
22523         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
22524
22525 2010-04-16  Doug Kwan  <dougkwan@google.com>
22526
22527         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
22528         (next_operand_entry_id): New static variable.
22529         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
22530         (add_to_ops_vec): Assigned unique ID to operand entry.
22531         (struct oecount_s): New field ID.
22532         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
22533         (undistribute_ops_list): Assign unique IDs to oecounts.
22534         (init_reassoc): reset next_operand_entry_id.
22535
22536 2010-04-16  Doug Kwan  <dougkwan@google.com>
22537
22538         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
22539         missing left parenthesis.
22540
22541 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
22542
22543         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
22544         *btdi_rex64 using SWI48 mode iterator.
22545         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
22546         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
22547         *jcc_btdi_mask_rex64.
22548
22549 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
22550
22551         * double-int.h (tree_to_double_int): Convert to macro.
22552         * double-int.c (tree_to_double_int): Remove.
22553
22554 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
22555
22556         PR debug/43762
22557         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
22558         with want_address 2 and in case a single element list might be
22559         possible, call it again with want_address 0.
22560
22561 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
22562
22563         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
22564         case 'W' print operands for HI mode.
22565         * config/h8300/h8300.h (Y0, Y2) : New constraints.
22566         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
22567         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
22568         * config/h8300/predicate.md (bit_register_indirect_operand): New.
22569
22570         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
22571
22572         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
22573         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
22574         #xx:3 and #xx:4 mode.
22575
22576         * config/h8300/h8300.md (inverted load with HImode dest): Add
22577         support for H8300SX.
22578
22579         * config/h8300/predicate.md (bit_operand): Allow immediate values that
22580         satisfy 'U' constraint.
22581
22582 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22583
22584         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
22585         * configure: Regenerate.
22586         * config.in: Regenerate.
22587         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
22588         works.
22589
22590 2010-04-16  Richard Guenther  <rguenther@suse.de>
22591
22592         * tree.h (struct tree_decl_minimal): Move pt_uid ...
22593         (struct tree_decl_common): ... here.
22594         (DECL_PT_UID): Adjust.
22595         (SET_DECL_PT_UID): Likewise.
22596         (DECL_PT_UID_SET_P): Likewise.
22597
22598 2010-04-16  Richard Guenther  <rguenther@suse.de>
22599
22600         PR tree-optimization/43572
22601         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
22602         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
22603         * tree-flow.h (is_call_clobbered): Remove.
22604         * tree-flow-inline.h (is_call_clobbered): Likewise.
22605         * tree-dfa.c (dump_variable): Do not dump call clobber state.
22606         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
22607         (execute_return_slot_opt): Adjust.
22608         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
22609         check for call clobbered vars here.
22610         (find_tail_calls): Move tailcall verification to the
22611         proper place.
22612
22613 2010-04-16  Diego Novillo  <dnovillo@google.com>
22614
22615         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
22616
22617 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
22618
22619         PR target/40603
22620         * config/arm/arm.md (cbranchqi4): New pattern.
22621         * config/arm/predicates.md (const0_operand,
22622         cbranchqi4_comparison_operator): New predicates.
22623
22624 2010-04-16  Richard Guenther  <rguenther@suse.de>
22625
22626         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
22627         (dump_gimple_stmt): Likewise.
22628
22629 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
22630
22631         * recog.h (struct recog_data): New field is_operator.
22632         (struct insn_operand_data): New field is_operator.
22633         * recog.c (extract_insn): Set recog_data.is_operator.
22634         * genoutput.c (output_operand_data): Emit code to set the
22635         is_operator field.
22636         * reload.c (find_reloads): Use it rather than testing for an
22637         empty constraint string.
22638
22639         PR target/41514
22640         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
22641         If the previous insn is a cbranchsi4_insn with the same arguments,
22642         omit the compare instruction.
22643
22644         * config/arm/arm.md (addsi3_cbranch): If destination is a high
22645         register, inputs must be low registers and we need a low register
22646         scratch.  Handle alternative 2 like alternative 3.
22647
22648 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
22649
22650         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
22651         don't call get_addr on both.  If one expression is a VALUE and
22652         the other a REG, check VALUE's locs if the REG isn't among them.
22653
22654 2010-04-16  Christian Bruel  <christian.bruel@st.com>
22655
22656         * config/sh/sh.h (sh_frame_pointer_required): New function.
22657         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
22658         (flag_omit_frame_pointer) Set.
22659         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
22660         (rounded_frame_size): Adjust size with outgoing_args_size.
22661         (sh_set_return_address): Must return from stack pointer.
22662         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
22663         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
22664         (ACCUMULATE_OUTGOING_ARGS): Define.
22665         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
22666         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
22667
22668 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
22669
22670         PR target/43471
22671         * config/sh/sh.c (sh_legitimize_reload_address): Use
22672         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
22673         Remove a unneeded check for offset_base.
22674
22675 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
22676
22677         * configure: Regenerated.
22678
22679 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22680
22681         * config/s390/s390.c (s390_call_save_register_used): Switch back
22682         to HARD_REGNO_NREGS.
22683
22684 2010-04-15  Richard Guenther  <rguenther@suse.de>
22685
22686         * alias.c (alias_set_subset_of): Handle alias-set zero
22687         child properly.
22688
22689 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
22690             Julian Brown  <julian@codesourcery.com>
22691
22692         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
22693         alternatives according to use of high and low regs.
22694         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
22695         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
22696         optimizing for size on Thumb-2.
22697
22698 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
22699
22700         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
22701
22702 2010-04-15  Richard Guenther  <rguenther@suse.de>
22703
22704         * tree-ssa-structalias.c (struct variable_info): Add
22705         is_fn_info flag.
22706         (new_var_info): Initialize it.
22707         (dump_constraints): Support printing last added constraints.
22708         (debug_constraints): Adjust.
22709         (dump_constraint_graph): Likewise.
22710         (make_heapvar_for): Check for NULL cfun.
22711         (get_function_part_constraint): New function.
22712         (get_fi_for_callee): Likewise.
22713         (find_func_aliases): Properly implement IPA PTA constraints.
22714         (process_ipa_clobber): New function.
22715         (find_func_clobbers): Likewise.
22716         (insert_into_field_list_sorted): Remove.
22717         (create_function_info_for): Properly allocate vars for IPA mode.
22718         Do not use insert_into_field_list_sorted.
22719         (create_variable_info_for): Properly generate constraints for
22720         global vars in IPA mode.
22721         (dump_solution_for_var): Always dump the solution.
22722         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
22723         (find_what_var_points_to): Adjust.
22724         (pt_solution_set): Change.
22725         (pt_solution_ior_into): New function.
22726         (pt_solution_empty_p): Export.
22727         (pt_solution_includes_global): Adjust.
22728         (pt_solution_includes_1): Likewise.
22729         (pt_solutions_intersect_1): Likewise.
22730         (dump_sa_points_to_info): Check some invariants.
22731         (solve_constraints): Move constraint dumping ...
22732         (compute_points_to_sets): ... here.
22733         (ipa_pta_execute): ... and here.
22734         (compute_may_aliases): Do not re-compute points-to info
22735         locally if IPA info is available.
22736         (ipa_escaped_pt): New global var.
22737         (ipa_pta_execute): Properly implement IPA PTA.
22738         * tree-into-ssa.c (dump_decl_set): Support dumping
22739         decls not in referenced-vars.
22740         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
22741         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
22742         (dump_points_to_solution): Likewise.
22743         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
22744         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
22745         (remap_gimple_stmt): Reset call clobber/use information if necessary.
22746         (copy_decl_to_var): Copy DECL_PT_UID.
22747         (copy_result_decl_to_var): Likewise.
22748         * tree.c (make_node_stat): Initialize DECL_PT_UID.
22749         (copy_node_stat): Copy it.
22750         * tree.h (DECL_PT_UID): New macro.
22751         (SET_DECL_PT_UID): Likewise.
22752         (DECL_PT_UID_SET_P): Likewise.
22753         (struct tree_decl_minimal): Add pt_uid member.
22754         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
22755         (pt_solution_empty_p): Declare.
22756         (pt_solution_set): Adjust.
22757         (ipa_escaped_pt): Declare.
22758         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
22759         * gimple-pretty-print.c (pp_points_to_solution): New function.
22760         (dump_gimple_call): Dump call clobber/use information.
22761         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
22762         * tree-pass.h (TDF_ALIAS): New dump option.
22763         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
22764         * doc/invoke.texi (-fipa-pta): Update documentation.
22765
22766 2010-04-15  Richard Guenther  <rguenther@suse.de>
22767
22768         * Makefile.in (OBJS-common): Add gimple-fold.o.
22769         (gimple-fold.o): New rule.
22770         * tree.h (maybe_fold_offset_to_reference,
22771         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
22772         prototypes ...
22773         * gimple.h: ... here.
22774         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
22775         may_propagate_address_into_dereference): Move prototypes ...
22776         * gimple.h: ... here.
22777         * tree-ssa-ccp.c (get_symbol_constant_value,
22778         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
22779         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
22780         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
22781         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
22782         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
22783         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
22784         gimplify_and_update_call_from_tree): Move ...
22785         * gimple-fold.c: ... here.  New file.
22786         (ccp_fold_builtin): Rename to ...
22787         (gimple_fold_builtin): ... this.
22788         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
22789
22790 2010-04-15  Richard Guenther  <rguenther@suse.de>
22791
22792         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
22793         fit_double_type, force_fit_type_double, add_double_with_sign,
22794         neg_double, mul_double_with_sign, lshift_double, rshift_double,
22795         lrotate_double, rrotate_double, div_and_round_double): Move ...
22796         * double-int.c: ... here.
22797         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
22798         add_double, neg_double, mul_double_with_sign, mul_double,
22799         lshift_double, rshift_double, lrotate_double, rrotate_double,
22800         div_and_round_double): Move prototypes ...
22801         * double-int.h: ... here.
22802
22803 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
22804
22805         PR target/43742
22806         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
22807         matching constraints to ensure inputs match the output.
22808
22809 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
22810
22811         PR target/43742
22812         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
22813         in an input-only operand.
22814
22815 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
22816
22817         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
22818         (double_int_not, double_int_lshift, double_int_rshift): Declare.
22819         (double_int_negative_p): Convert to static inline function.
22820         * double-int.c (double_int_lshift, double_int_lshift): New functions.
22821         (double_int_negative_p): Remove.
22822         * tree.h (lshift_double, rshift_double):
22823         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
22824         * fold-const.c (fold_convert_const_int_from_real,
22825         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
22826         (lshift_double): Change type of arith argument to bool.
22827         (rshift_double): Change type of arith argument to bool. Correct
22828         comment.
22829         * expmed.c (mask_rtx, lshift_value): (Ditto.).
22830
22831 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
22832
22833         PR target/21803
22834         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
22835         at the start and end of the then/else blocks, and omit them from the
22836         conversion.
22837         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
22838         argument; all callers changed.  Pass zero to old_insns_match_p instead.
22839         (flow_find_head_matching_sequence): New function.
22840         (old_insns_match_p): Check REG_EH_REGION notes for calls.
22841         * basic-block.h (flow_find_cross_jump,
22842         flow_find_head_matching_sequence): Declare functions.
22843
22844 2010-04-14  Jason Merrill  <jason@redhat.com>
22845
22846         PR c++/36625
22847         * c-common.c (attribute_takes_identifier_p): New fn.
22848         * c-common.h: Declare it.
22849
22850 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
22851
22852         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
22853         splitter condition.
22854         (*udivmod<mode>4): Ditto.
22855
22856 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
22857
22858         * config/i386/i386.md (maxmin_int): Rename code attribute from
22859         maxminiprefix and update all users.
22860         (maxmin_float): Ditto from maxminfprefix.
22861         (logic): Ditto from logicprefix.
22862         (absneg_mnemonic): Ditto from absnegprefix.
22863         * config/i386/mmx.md: Update all users of maxminiprefix,
22864         maxminfprefix and logicprefix for rename.
22865         * config/i386/sse.md: Ditto.
22866         * config/i386/sync.md (sync_<code><mode>): Update for
22867         logicprefix rename.
22868
22869 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22870
22871         PR 42966
22872         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
22873         warnings converted to errors.
22874
22875 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
22876
22877         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
22878         used insn_type variable.
22879         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
22880         to avoid set-but-not-used warning.
22881
22882 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
22883
22884         * df-core.c (df_ref_debug): Change format string placeholder
22885         from 0x%x to %#x.
22886         * dwarf2asm.c (dw2_asm_output_data_raw,
22887         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
22888         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
22889         * dwarf2out.c (output_cfi, output_cfi_directive,
22890         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
22891         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
22892         Ditto.
22893         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
22894         * print-rtl.c (print_rtx): Ditto.
22895
22896 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
22897
22898         PR middle-end/42694
22899         * builtins.c (expand_builtin_pow_root): New function to expand pow
22900         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
22901         series of sqrt and cbrt calls under -ffast-math.
22902         (expand_builtin_pow): Call it.
22903
22904 2010-04-14  Michael Matz  <matz@suse.de>
22905
22906         PR tree-optimization/42963
22907         * tree-cfg.c (touched_switch_bbs): New static variable.
22908         (group_case_labels_stmt): New function broken out from ...
22909         (group_case_labels): ... here, use the above.
22910         (start_recording_case_labels): Allocate touched_switch_bbs.
22911         (end_recording_case_labels): Deallocate it, call
22912         group_case_labels_stmt.
22913         (gimple_redirect_edge_and_branch): Remember index of affected BB.
22914
22915 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
22916
22917         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
22918         from insn template.
22919
22920 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
22921
22922         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
22923
22924 2010-04-13  Jan Hubicka  <jh@suse.cz>
22925
22926         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
22927         of optimized out static functions.
22928         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
22929         cost computation.  Also sanity check for overflows.
22930         (update_caller_keys): Update cgraph_edge_badness call; properly
22931         update fibheap and sanity check that it is up to date.
22932         (add_new_edges_to_heap): Update cgraph_edge_badness.
22933         (cgraph_decide_inlining_of_small_function): Likewise;
22934         add sanity checking that badness in heap is up to date;
22935         improve dumping of reason; Update badness of calls to the
22936         offline copy of function currently inlined; dump badness
22937         of functions not inlined because of unit growth limits.
22938
22939 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
22940
22941         PR middle-end/32628
22942         * c-common.c (pointer_int_sum): Disregard overflow that occured only
22943         because of sign-extension change when converting to sizetype here...
22944         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
22945
22946         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
22947         the folding to constants.  Remove redundant final conversion.
22948         (fold_binary) <associate>: Do not associate if the re-association of
22949         constants alone overflows.
22950         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
22951         to the end of the list.
22952         (multiple_of_p) <COND_EXPR>: New case.
22953
22954 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22955
22956         * opt-functions.awk (opt_sanitized_name): New.
22957         (opt_enum): New.
22958         * optc-gen.awk: Use it
22959         * opth-gen.awk: Use it.
22960
22961 2010-04-13  Martin Jambor  <mjambor@suse.cz>
22962
22963         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
22964         (sra_modify_assign): Delete stmts loading dead data even if racc has no
22965         children.  Call replace_uses_with_default_def_ssa_name to handle
22966         SSA_NAES on lhs.
22967
22968 2010-04-13  Michael Matz  <matz@suse.de>
22969
22970         PR middle-end/43730
22971         * builtins.c (expand_builtin_interclass_mathfn): Also create
22972         a register if the predicate doesn't match.
22973
22974 2010-04-13  Diego Novillo  <dnovillo@google.com>
22975
22976         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
22977         * c-pch.c: Include timevar.h.
22978         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
22979         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
22980         * ggc-common.c: Include timevar.h.
22981         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
22982         * timevar.def (TV_PCH_SAVE): Define.
22983         (TV_PCH_CPP_SAVE): Define.
22984         (TV_PCH_PTR_REALLOC): Define.
22985         (TV_PCH_PTR_SORT): Define.
22986         (TV_PCH_RESTORE): Define.
22987         (TV_PCH_CPP_RESTORE): Define.
22988
22989 2010-04-13  Michael Matz  <matz@suse.de>
22990
22991         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
22992         into MINUS_EXPRs.
22993         (can_reassociate_p): New function.
22994         (break_up_subtract_bb, reassociate_bb): Use it.
22995
22996 2010-04-13  Richard Guenther  <rguenther@suse.de>
22997
22998         PR bootstrap/43737
22999         * builtins.c (c_readstr): Fix assert.
23000
23001 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
23002
23003         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
23004         when generating cltd insn.
23005
23006         (*ashl<mode>3_1): Remove special handling for register operand 2.
23007         (*ashlsi3_1_zext): Ditto.
23008         (*ashlhi3_1): Ditto.
23009         (*ashlhi3_1_lea): Ditto.
23010         (*ashlqi3_1): Ditto.
23011         (*ashlqi3_1_lea): Ditto.
23012         (*<shiftrt_insn><mode>3_1): Ditto.
23013         (*<shiftrt_insn>si3_1_zext): Ditto.
23014         (*<shiftrt_insn>qi3_1_slp): Ditto.
23015         (*<rotate_insn><mode>3_1): Ditto.
23016         (*<rotate_insn>si3_1_zext): Ditto.
23017         (*<rotate_insn>qi3_1_slp): Ditto.
23018
23019 2010-04-13  Richard Guenther  <rguenther@suse.de>
23020
23021         * tree-ssa-structalias.c (callused_id): Remove.
23022         (call_stmt_vars): New.
23023         (get_call_vi): Likewise.
23024         (lookup_call_use_vi): Likewise.
23025         (lookup_call_clobber_vi): Likewise.
23026         (get_call_use_vi): Likewise.
23027         (get_call_clobber_vi): Likewise.
23028         (make_transitive_closure_constraints): Likewise.
23029         (handle_const_call): Adjust to do per-call call-used handling.
23030         (handle_pure_call): Likewise.
23031         (find_what_var_points_to): Remove general callused handling.
23032         (init_base_vars): Likewise.
23033         (init_alias_vars): Initialize call_stmt_vars.
23034         (compute_points_to_sets): Process call-used and call-clobbered
23035         vars for call statements.
23036         (delete_points_to_sets): Free call_stmt_vars.
23037
23038 2010-04-13  Richard Guenther  <rguenther@suse.de>
23039
23040         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
23041         Only add RW dependence for dependence distance zero.
23042         Adjust maximal vectorization factor according to dependences.
23043         Move alignment handling ...
23044         (vect_find_same_alignment_drs): ... here.  New function.
23045         (vect_analyze_data_ref_dependences): Adjust.
23046         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
23047         (vect_analyze_data_refs): Adjust minimal vectorization factor
23048         according to data references.
23049         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
23050         dependences before determining the vectorization factor.
23051         Analyze alignment after determining the vectorization factor.
23052         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
23053         dependences before alignment.
23054         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
23055         Adjust prototype.
23056         (vect_analyze_data_refs): Likewise.
23057         (MAX_VECTORIZATION_FACTOR): New define.
23058
23059 2010-04-13  Duncan Sands  <baldrick@free.fr>
23060
23061         * except.h (lang_eh_type_covers): Remove.
23062         * except.c (lang_eh_type_covers): Likewise.
23063
23064 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23065             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23066
23067         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
23068         * config/s390/s390.c: Replace UNTIS_PER_WORD with
23069         UNITS_PER_LONG where it is ABI relevant.
23070         (s390_return_addr_rtx): Likewise.
23071         (s390_back_chain_rtx): Likewise.
23072         (s390_frame_area): Likewise.
23073         (s390_frame_info): Likewise.
23074         (s390_initial_elimination_offset): Likewise.
23075         (save_gprs): Likewise.
23076         (s390_emit_prologue): Likewise.
23077         (s390_emit_epilogue): Likewise.
23078         (s390_function_arg_advance): Likewise.
23079         (s390_function_arg): Likewise.
23080         (s390_va_start): Likewise.
23081         (s390_gimplify_va_arg): Likewise.
23082         (s390_function_profiler): Likewise.
23083         (s390_optimize_prologue): Likewise.
23084         (s390_rtx_costs): Likewise.
23085         (s390_secondary_reload): Likewise.
23086         (s390_promote_function_mode): Likewise.
23087         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
23088         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
23089         registers available.
23090         (s390_unwind_word_mode): New function.
23091         (s390_function_value): Split 64 bit values into register pair if
23092         used as return value.
23093         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
23094         function call parameters.  Handle parallels.
23095         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
23096         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
23097         (DWARF_CIE_DATA_ALIGNMENT): New macro.
23098         (s390_expand_setmem): Remove unused variable src_addr.
23099         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
23100         deal with 64 bit registers.
23101         * config/s390/s390.h: Define __zarch__ predefined macro.
23102         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
23103         (UNITS_PER_LONG): New macro.
23104         * libjava/include/s390-signal.h: Define extended ucontext
23105         structure containing the upper halfs of the 64 bit registers.
23106
23107 2010-04-13  Simon Baldwin  <simonb@google.com>
23108
23109         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
23110
23111 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
23112
23113         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
23114         rvalue on the RHS if the LHS is of a non-renamable type.
23115         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
23116
23117 2010-04-13  Matthias Klose  <doko@ubuntu.com>
23118
23119         * gcc.c (cc1_options): Handle -iplugindir before processing
23120         the cc1 spec. Only add -iplugindir once.
23121         (cpp_unique_options): Add -iplugindir option if -fplugin* options
23122         found.
23123         * common.opt (iplugindir): Remove `Separate' property, initialize.
23124         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
23125         option.
23126         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
23127         (distclean): Remove plugin dir.
23128         * doc/invoke.texi: Document -iplugindir.
23129
23130 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
23131
23132         * doc/plugins.texi (Loading Plugins): Document short
23133         -fplugin=foo option.
23134         (Plugin API): Mention default_plugin_dir_name function.
23135
23136         * gcc.c (find_file_spec_function): Add new declaration.
23137         (static_spec_func): Use it for "find-file".
23138         (find_file_spec_function): Add new function.
23139         (cc1_options): Add -iplugindir option if -fplugin* options found.
23140
23141         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
23142
23143         * plugin.c (add_new_plugin): Updated comment, and handle short
23144         plugin name.
23145         (default_plugin_dir_name): Added new function.
23146
23147         * common.opt (iplugindir): New option to set the plugin directory.
23148
23149 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
23150
23151         * config/i386/i386.md (any_rotate): New code iterator.
23152         (rotate_insn): New code attribute.
23153         (rotate): Ditto.
23154         (SWIM124): New mode iterator.
23155         (<rotate_insn>ti3): New expander.
23156         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
23157         any_rotate code iterator.
23158         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
23159         using any_rotate code iterator and SWIM124 mode iterator.
23160         (ix86_rotlti3): New insn_and_split pattern.
23161         (ix86_rotrti3): Ditto.
23162         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
23163         ix86_rotl{di,ti}3 patterns.
23164         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
23165         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
23166         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
23167         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
23168         code iterator and SWI mode iterator.
23169         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
23170         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
23171         code iterator.
23172         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
23173         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
23174         (bswap rotatert splitter): Add splitter.
23175         (bswap splitter): Macroize splitter using any_rotate code iterator.
23176         Add insn predicate to split only for TARGET_USE_XCHGB or when
23177         optimizing function for size.
23178
23179 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23180
23181         * config/pa/pa.c (emit_move_sequence): Remove use of
23182         deleted variable flag_argument_noalias.
23183
23184 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23185
23186         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
23187         configurations.
23188         Add to unsupported targets list.
23189         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
23190         sparc*-sun-solaris2.[567]* from target lists.
23191         * configure: Regenerate.
23192         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
23193         removal.
23194         Remove Solaris 7 patch references.
23195         (Specific, sparc-sun-solaris2.7): Removed.
23196         (sparc-sun-solaris2*): Update Solaris 7 example.
23197         (sparc64-*-solaris2*): Likewise.
23198
23199 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23200
23201         * config.build (alpha*-dec-osf4*): Remove.
23202         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
23203         of obsolete configurations.
23204         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
23205         support.
23206         * config/alpha/t-osf4: Renamed to ...
23207         * config/alpha/t-osf5: ... this.
23208         * config/alpha/osf.h: Renamed to ...
23209         * config/alpha/osf5.h: ... this.
23210         Merged old osf5.h contents.
23211         Update comments.
23212         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
23213         (EXTRA_SPECS): Removed.
23214         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
23215         reflect removal of Tru64 UNIX V4.0/V5.0 support.
23216         Document that.
23217
23218 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23219
23220         * doc/contrib.texi (Contributors, Rainer Orth): Update.
23221
23222 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
23223
23224         PR/43702
23225         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
23226         __thiscall convention.
23227
23228 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23229
23230         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
23231         orig_base.
23232         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
23233
23234 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23235
23236         * function.c (assign_parms_initialize_all): Add unused attribute
23237         to fntype.
23238
23239 2010-04-12  Richard Guenther  <rguenther@suse.de>
23240
23241         * gsstruct.def (GSS_CALL): New.
23242         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
23243         * gimple.h: Include tree-ssa-alias.h.
23244         (struct gimple_statement_call): New.
23245         (union gimple_statement_struct_d): Add gimple_call member.
23246         (gimple_call_reset_alias_info): Declare.
23247         (gimple_call_use_set): New function.
23248         (gimple_call_clobber_set): Likewise.
23249         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
23250         * gimple.c (gimple_call_reset_alias_info): New function.
23251         (gimple_build_call_1): Call it.
23252         * lto-streamer-in.c (input_gimple_stmt): Likewise.
23253         * tree-inline.c (remap_gimple_stmt): Likewise.
23254         (expand_call_inline): Remove callused handling.
23255         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
23256         * tree-dfa.c (dump_variable): Likewise.
23257         * tree-parloops.c (parallelize_loops): Likewise.
23258         * tree-ssa.c (init_tree_ssa): Likewise.
23259         (delete_tree_ssa): Likewise.
23260         * tree-flow-inline.h (is_call_used): Remove.
23261         * tree-flow.h (struct gimple_df): Remove callused member.
23262         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
23263         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
23264         (ref_maybe_used_by_call_p_1): Simplify.
23265         (call_may_clobber_ref_p_1): Likewise.
23266         * tree-ssa-structalias.c (compute_points_to_sets): Set
23267         the call stmt used and clobbered sets.
23268         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
23269         (find_tail_calls): Verify the tail call.
23270
23271 2010-04-12  Richard Guenther  <rguenther@suse.de>
23272
23273         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
23274         single-iteration always-inline inlining.
23275         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
23276         (cgraph_decide_inlining): Do not handle always-inline specially.
23277         (try_inline): Remove always-inline cycle detection special case.
23278         Do not recurse on always-inlines.
23279         (cgraph_early_inlining): Do not iterate if not optimizing.
23280         (cgraph_gate_early_inlining): remove.
23281         (pass_early_inline): Run unconditionally.
23282         (gate_cgraph_decide_inlining): New function.
23283         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
23284         not inlining or optimizing.
23285         (cgraph_decide_inlining_of_small_functions): Also consider
23286         always-inline functions.
23287         (cgraph_default_inline_p): Return true for nodes which should
23288         disregard inline limits.
23289         (estimate_function_body_sizes): Assume zero size and time for
23290         nodes which are marked as disregarding inline limits.
23291         (cgraph_decide_recursive_inlining): Do not perform recursive
23292         inlining on always-inline nodes.
23293
23294 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
23295
23296         PR bootstrap/43699
23297         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
23298         for exprs satisfying handled_component_p.
23299
23300 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
23301
23302         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
23303         non-constant aggregate elements.
23304
23305         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
23306         is a real initialization.
23307
23308 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
23309
23310         PR c/36774
23311         * c-decl.c (start_function): Move forward check for nested function.
23312
23313 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
23314
23315         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
23316         * config/sh/sh.c: Include reload.h.
23317         (sh_legitimize_reload_address): New.
23318         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
23319         sh_legitimize_reload_address.
23320
23321 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
23322
23323         * config/sh/sh.md (*movqi_pop): New insn pattern.
23324         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
23325
23326 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
23327
23328         * config/i386/i386.md (any_shiftrt): New code iterator.
23329         (shiftrt_insn): New code attribute.
23330         (shiftrt): Ditto.
23331         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
23332         using any_shiftrt code iterator.
23333         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
23334         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
23335         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
23336         pattern from corresponding peephole2 patterns.
23337         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
23338         using any_shiftrt code iterator.
23339         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
23340         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
23341         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
23342         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
23343         *{ashr,lshr}<mode>3_cmp_zext.
23344         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
23345
23346 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
23347
23348         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
23349         scratch register.
23350         (*lshr<mode>3_cconly): Ditto.
23351
23352 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
23353
23354         * config/i386/i386.md (lshr<mode>3): Macroize expander from
23355         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
23356         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
23357         pattern from *lshr{di,ti}3_1 and corresponding splitters using
23358         DWI mode iterator.
23359         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
23360         from corresponding peephole2 patterns.
23361         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
23362         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
23363         and *lshrdi3_1_rex64 using SWI mode iterator.
23364         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
23365         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
23366         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
23367         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
23368         and *lshrdi3_cmp_rex64 using SWI mode iterator.
23369         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
23370         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
23371         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
23372         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
23373         SWI mode iterator.
23374
23375 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
23376
23377         * config/i386/i386.md (ashr<mode>3): Macroize expander from
23378         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
23379         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
23380         pattern from *ashr{di,ti}3_1 and corresponding splitters using
23381         DWI mode iterator.
23382         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
23383         from corresponding peephole2 patterns.
23384         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
23385         (ashrsi3_cvt): Rename from ashrsi3_31.
23386         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
23387         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
23388         and x86_64_shift_adj_3 using SWI48 mode iterator.
23389         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
23390         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
23391         and *ashrdi3_1_rex64 using SWI mode iterator.
23392         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
23393         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
23394         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
23395         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
23396         and *ashrdi3_cmp_rex64 using SWI mode iterator.
23397         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
23398         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
23399         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
23400         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
23401         SWI mode iterator.
23402         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
23403         * config/i386/i386.c (ix86_split_ashr): Update for renamed
23404         x86_shift<mode>_adj_3 expanders.
23405
23406 2010-04-10  Wei Guozhi  <carrot@google.com>
23407
23408         PR target/42601
23409         * config/arm/arm.c (arm_pic_static_addr): New function.
23410         (legitimize_pic_address): Call arm_pic_static_addr when it detects
23411         a static symbol.
23412         (arm_output_addr_const_extra): Output expression for new pattern.
23413         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
23414
23415 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
23416
23417         * ira-costs.c (record_reg_classes): Ignore alternatives that are
23418         not enabled.
23419
23420         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
23421         * web.c: Include "insn-config.h" and "recog.h".
23422         (union_match_dups): New function.
23423         (web_main): Call it.
23424         (union_defs): Don't try to recognize match_dups.
23425
23426         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
23427         if doing so would replace the entire pattern.
23428
23429 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
23430
23431         PR target/43707
23432         PR target/43709
23433         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
23434         and splitter pattern.  Change splitter operand 1 predicate to
23435         nonmemory_operand.
23436
23437 2010-04-09  Martin Jambor  <mjambor@suse.cz>
23438
23439         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
23440         lattices are addresses of CONST_DECLs with the same initial value.
23441         (ipcp_print_all_lattices): Print values of CONST_DECLs.
23442         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
23443
23444 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
23445             Bernd Schmidt  <bernds@codesourcery.com>
23446
23447         * loop-invariant.c (replace_uses): New static function.
23448         (move_invariant_reg): Use it to ensure we can replace the uses.
23449
23450 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
23451
23452         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
23453         function template.
23454         (picochip_override_options): Enable section anchors only above -O1.
23455         (picochip_reorg): Fixed a couple of build warnings.
23456
23457 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23458
23459         * configure.ac (plugin -rdynamic test): Log result.
23460         * configure: Regenerate.
23461         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
23462         (RDYNAMIC_SPEC): Define.
23463         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
23464
23465 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23466
23467         * configure.ac: Determine Sun ld version numbers.
23468         (comdat_group): Restrict GNU ld version checks to gld.
23469         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
23470         (enable_comdat): Support --enable-comdat.
23471         * configure: Regenerate.
23472         * doc/install.texi (Configuration): Document --enable-comdat.
23473
23474 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23475
23476         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
23477         * config/sol2-gld.h: ... here.
23478         * config.gcc (sparc*-*-solaris2*): Reflect this.
23479         (i[34567]86-*-solaris2*): Use it.
23480
23481 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
23482
23483         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
23484         setup_clocks_p.
23485         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
23486
23487 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23488
23489         PR 42965
23490         * diagnostic.c (diagnostic_initialize): Initialize
23491         some_warnings_are_errors.
23492         (diagnostic_finish): New.
23493         (diagnostic_action_after_output): Call it before exiting.
23494         (diagnostic_report_diagnostic): Do not print message here. Set
23495         some_warnings_are_errors.
23496         * diagnostic.h (diagnostic_context): Delete
23497         issue_warnings_are_errors_message. Add some_warnings_are_errors.
23498         (diagnostic_finish): Declare.
23499         * toplev.c (toplev_main): Call it before exit.
23500
23501 2010-04-09  Jason Merrill  <jason@redhat.com>
23502
23503         PR c++/42623
23504         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
23505         for incomplete type.
23506
23507         PR c++/41788
23508         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
23509         based on a warning flag.
23510
23511 2010-04-09  Richard Guenther  <rguenther@suse.de>
23512
23513         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
23514
23515 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
23516
23517         PR bootstrap/43684
23518         * varasm.c (default_assemble_visibility): Wrap vars that are
23519         set, but unused, by targets without GAS.
23520         * config/rs6000/rs6000.c (paired_emit_vector_compare):
23521         Remove set, but unused, vars.
23522         (rs6000_legitimize_tls_address): Likewise.
23523         (altivec_expand_dst_builtin): Likewise.
23524         * config/darwin.c (machopic_classify_symbol): Likewise.
23525         (machopic_indirection_name): Likewise.
23526
23527 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
23528
23529         * config/i386/i386.md (DWI): New mode iterator.
23530         (S): New mode attribute.
23531         (shift_operand): Ditto.
23532         (shift_immediate_operand): Ditto.
23533         (ashl_input_operand): Ditto.
23534         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
23535         using SDWIM mode iterator.
23536         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
23537         pattern from *ashl{di,ti}3_1 and corresponding splitters using
23538         DWI mode iterator.
23539         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
23540         from corresponding peephole2 patterns.
23541         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
23542         and x86_64_shift_adj_1 using SWI48 mode iterator.
23543         (x86_shift<mode>_adj_2): Ditto.
23544         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
23545         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
23546         using SWI48 mode iterator.
23547         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
23548         *ashldi3_cmp_rex64 using SWI mode iterator.
23549         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
23550         *ashldi3_cconly_rex64 using SWI mode iterator.
23551         * config/i386/i386.c (ix86_split_ashl): Update for renamed
23552         x86_shift<mode>_adj_{1,2}.
23553         (ix86_split_ashr): Ditto.
23554         (ix86_split_lshr): Ditto.
23555
23556 2010-04-09  Richard Guenther  <rguenther@suse.de>
23557
23558         * target.h (builtin_conversion): Pass in input and output types.
23559         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
23560         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
23561         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
23562         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
23563
23564         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
23565         Handle AVX modes.
23566         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
23567
23568 2010-04-09  Richard Guenther  <rguenther@suse.de>
23569
23570         PR target/43152
23571         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
23572
23573 2010-04-09  Richard Guenther  <rguenther@suse.de>
23574
23575         * tree-vectorizer.h (struct _stmt_vec_info): Document
23576         that vectype is the type of the LHS.
23577         (supportable_widening_operation, supportable_narrowing_operation):
23578         Get both input and output vector types as arguments.
23579         (vect_is_simple_use_1): Declare.
23580         (get_same_sized_vectype): Likewise.
23581         * tree-vect-loop.c (vect_determine_vectorization_factor):
23582         Set STMT_VINFO_VECTYPE to the vector type of the def.
23583         (vectorizable_reduction): Adjust.
23584         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
23585         Adjust.  Specify the output vector type.
23586         (vect_pattern_recog_1): Adjust.
23587         * tree-vect-stmts.c (get_same_sized_vectype): New function.
23588         (vectorizable_call): Adjust.
23589         (vectorizable_conversion): Likewise.
23590         (vectorizable_operation): Likewise.
23591         (vectorizable_type_demotion): Likewise.
23592         (vectorizable_type_promotion): Likewise.
23593         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
23594         the def.
23595         (vect_is_simple_use_1): New function.
23596         (supportable_widening_operation): Get both input and output
23597         vector types.
23598         (supportable_narrowing_operation): Likewise.
23599         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
23600
23601 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
23602
23603         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
23604         __thiscall and _thiscall as predefined macros.
23605         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
23606         thiscall attribute handling.
23607         (ix86_comp_type_attributes): Likewise.
23608         (ix86_function_regparm): Likewise.
23609         (ix86_return_pops_args): Likewise.
23610         (init_cumulative_args): Likewise.
23611         (find_drap_reg): Likewise.
23612         (ix86_static_chain): Likewise.
23613         (x86_this_parameter): Likewise.
23614         (x86_output_mi_thunk): Likewise.
23615         (ix86_attribute_table): Add description for thiscall attribute.
23616         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
23617         * doc/extend.texi: Add documentation for thiscall.
23618
23619 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23620
23621         PR c++/28584
23622         * c.opt (Wint-to-pointer-cast): Available in C++.
23623         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
23624
23625 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
23626
23627         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
23628         * calls.c (expand_call): Pass the function type to aggregate_value_p.
23629         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
23630         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
23631         function type instead.  Reorder and simplify checks.
23632
23633         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
23634
23635 2010-04-08  Jing Yu  <jingyu@google.com>
23636             Zdenek Dvorak  <ook@ucw.cz>
23637
23638         PR tree-optimization/42720
23639         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
23640         loop unswitch conditions here from ...
23641         (tree_unswitch_single_loop): ... here.
23642
23643 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
23644
23645         * tree-if-conv.c: Fix comments and simplify logic.
23646
23647 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
23648
23649         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
23650         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
23651         (main_tree_if_conversion): Update call to tree_if_conversion.
23652
23653 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23654
23655         PR 42485
23656         * doc/invoke.texi (-b,-V): Delete.
23657         * doc/tm.texi: Do not mention -b.
23658         * gcc.c (display_help): Delete -b and -V.
23659         (process_command): Delete -b and -V.
23660         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
23661
23662 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
23663             Wolfgang Gellerich  <gellerich@de.ibm.com>
23664
23665         Implement target hook for loop unrolling
23666         * target.h (loop_unroll_adjust): Add a new target hook function.
23667         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
23668         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
23669         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
23670         (s390_loop_unroll_adjust): Implement the new target hook for s390.
23671         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
23672         target hook.
23673         (decide_unroll_stupid): Likewise.
23674
23675 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23676
23677         PR target/43643
23678         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
23679
23680 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23681
23682         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
23683         (Specific, *-*-solaris2*): Likewise.
23684         Don't prefer Sun as over GNU as.
23685
23686 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
23687
23688         * config/s390/s390.c (override_options): Adjust the z10 defaults
23689         for max-unroll-times, max-completely-peeled-insns
23690         and max-completely-peel-times.
23691
23692 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23693
23694         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
23695         instructions for z10.
23696         (s390_expand_setmem): Likewise.
23697         (s390_expand_cmpmem): Likewise.
23698
23699 2010-04-08  Richard Guenther  <rguenther@suse.de>
23700
23701         PR tree-optimization/43679
23702         * tree-ssa-pre.c (eliminate): Only propagate copies.
23703
23704 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
23705
23706         PR bootstrap/43681
23707         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
23708         set but not used variable warning.
23709
23710 2010-04-08  Wei Guozhi  <carrot@google.com>
23711
23712         PR target/41653
23713         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
23714         (arm_size_rtx_costs): Call the new function when optimized for size.
23715
23716 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
23717
23718         PR debug/43670
23719         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
23720         op0 is not a MEM, just return NULL instead of assertion
23721         failure.
23722         (discover_nonconstant_array_refs): Don't walk debug stmts.
23723
23724 2010-04-08  Doug Kwan  <dougkwan@google.com>
23725
23726         * configure.ac: Recognize gold and do not use its version number
23727         to test ld features.
23728         * configure: Regenerate.
23729
23730 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
23731
23732         PR middle-end/40815
23733         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
23734         (negate_value): Move code to push elements to broken_up_substracts ...
23735         (eliminate_plus_minus_pair): ... here.  Push operands that have no
23736         negative pair to plus_negates.
23737         (repropagate_negates, init_reassoc, fini_reassoc): Update.
23738
23739 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23740
23741         * doc/install.texi (Configuration): Move description of
23742         --enable-lto, --with-libelf*, --enable-gold from Java section to
23743         general section.
23744
23745         * doc/generic.texi (Working with declarations)
23746         (Function Properties, C and C++ Trees): Fix typos.
23747         * doc/sourcebuild.texi (Top Level): Likewise.
23748
23749 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
23750
23751         PR c/18624
23752         * tree.h (DECL_READ_P): Define.
23753         (struct tree_decl_common): Add decl_read_flag.
23754         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
23755         a set but not used warning.
23756         (merge_decls): Merge DECL_READ_P flag.
23757         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
23758         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
23759         * c-common.c (handle_used_attribute, handle_unused_attribute):
23760         Likewise.
23761         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
23762         New prototypes.
23763         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
23764         New functions.
23765         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
23766         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
23767         c_parser_binary_expression, c_parser_cast_expression,
23768         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
23769         Call default_function_array_read_conversion instead of
23770         default_function_array_conversion where needed.
23771         (c_parser_unary_expression, c_parser_conditional_expression,
23772         c_parser_postfix_expression_after_primary, c_parser_initelt):
23773         Likewise.  Call mark_exp_read where needed.
23774         (c_parser_statement_after_labels, c_parser_asm_operands,
23775         c_parser_typeof_specifier, c_parser_sizeof_expression,
23776         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
23777         where needed.
23778         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
23779         New.
23780         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
23781         (warn_unused_but_set_parameter): Default to warn_unused
23782         && extra_warnings.
23783         * doc/invoke.texi: Document -Wunused-but-set-variable and
23784         -Wunused-but-set-parameter.
23785
23786         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
23787         used count variable.
23788         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
23789         when operandN variables aren't used in the body of the expander
23790         or splitter.
23791         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
23792         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
23793         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
23794         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
23795         FOR_EACH_IMM_USE_ON_STMT): Likewise.
23796         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
23797         * tree.c (PROCESS_ARG): Likewise.
23798
23799 2010-04-07  Simon Baldwin  <simonb@google.com>
23800
23801         * diagnostic.h (diagnostic_override_option_index): New macro to
23802         set a diagnostic's option_index.
23803         * c-tree.h (c_cpp_error): Add warning reason argument.
23804         * opts.c (_warning_as_error_callback): New.
23805         (register_warning_as_error_callback): Store callback for
23806         warnings enabled via enable_warning_as_error.
23807         (enable_warning_as_error): Call callback, minor code tidy.
23808         * opts.h (register_warning_as_error_callback): Declare.
23809         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
23810         response to -Werror=.
23811         (c_common_init_options): Register warning_as_error_callback in opts.c.
23812         * common.opt: Add -Wno-cpp option.
23813         * c-common.c (struct reason_option_codes_t): Map cpp warning
23814         reason codes to gcc option indexes.
23815         * (c_option_controlling_cpp_error): New function, lookup the gcc
23816         option index for a cpp warning reason code.
23817         * (c_cpp_error): Add warning reason argument, call
23818         c_option_controlling_cpp_error for diagnostic_override_option_index.
23819         * doc/invoke.texi: Document -Wno-cpp.
23820
23821 2010-04-07  Richard Guenther  <rguenther@suse.de>
23822
23823         * ipa-reference.c (mark_load): Use get_base_address.
23824         (mark_store): Likewise.
23825
23826         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
23827         inserting GIMPLE_NOPs into the IL.
23828         * tree-ssa-structalias.c (get_constraint_for_component_ref):
23829         Explicitly strip handled components and indirect references.
23830
23831         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
23832         folding address expressions.
23833         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
23834         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
23835         operand_equal_p to compare decls.
23836         (ptr_deref_may_alias_decl_p): Likewise.
23837         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
23838         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
23839         Handle reversed comparison ops.
23840         * tree-sra.c (asm_visit_addr): Use get_base_address.
23841         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
23842         * ipa-reference.c (mark_address): Use get_base_address.
23843
23844 2010-04-07  Richard Guenther  <rguenther@suse.de>
23845
23846         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
23847         Propagate constants everywhere.
23848
23849 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
23850
23851         PR debug/43516
23852         * tree.c (MAX_INT_CACHED_PREC): Define.
23853         (nonstandard_integer_type_cache): New array.
23854         (build_nonstandard_integer_type): Cache results for precision
23855         <= MAX_INT_CACHED_PREC.
23856
23857 2010-04-07  Richard Guenther  <rguenther@suse.de>
23858
23859         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
23860         -fargument-noalias-global, -fargument-noalias-anything): Remove.
23861         * common.opt: Likewise.
23862         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
23863         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
23864         (nonoverlapping_memrefs_p): Likewise.
23865         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
23866         * opts.c (common_handle_option): Handle OPT_fargument_alias,
23867         OPT_fargument_noalias, OPT_fargument_noalias_anything and
23868         OPT_fargument_noalias_global for backward compatibility.
23869
23870 2010-04-07  Richard Guenther  <rguenther@suse.de>
23871
23872         PR tree-optimization/43270
23873         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
23874         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
23875         * tree-ssa-pre.c (phi_translate_1): Adjust.
23876         (fully_constant_expression): Split out vn_reference handling to ...
23877         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
23878         Fold reads from constant strings.
23879         (vn_reference_lookup): Handle fully constant references.
23880         (vn_reference_lookup_pieces): Likewise.
23881         * Makefile.in (expmed.o-warn): Add -Wno-error.
23882
23883 2010-04-07  Martin Jambor  <mjambor@suse.cz>
23884
23885         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
23886
23887 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
23888
23889         PR driver/41594
23890         * gcc.c: Add -static-libstdc++ to list of recognized options.
23891
23892 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23893
23894         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
23895
23896 2010-04-07  Richard Guenther  <rguenther@suse.de>
23897
23898         PR middle-end/42617
23899         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
23900         bases build simple mem attributes to retain points-to information.
23901
23902 2010-04-07  Richard Guenther  <rguenther@suse.de>
23903
23904         PR middle-end/42617
23905         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
23906         preserve points-to related information.
23907
23908 2010-04-07  Richard Guenther  <rguenther@suse.de>
23909
23910         PR middle-end/42617
23911         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
23912         discard plain indirect references.
23913         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
23914         * tree.c (tree_nop_conversion): Likewise.
23915
23916 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
23917
23918         PR debug/43628
23919         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
23920
23921 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
23922
23923         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
23924         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
23925
23926 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
23927
23928         * tree-if-conv.c: Fix indentation and comments.
23929
23930 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
23931
23932         * tree-if-conv.c: Sort static functions in topological order.
23933
23934 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
23935
23936         * tree-if-conv.c: Fix indentation and comments.
23937
23938 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
23939
23940         PR middle-end/43519
23941         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
23942         lang_hooks.types.type_for_size instead of
23943         build_nonstandard_integer_type.
23944         When converting an unsigned type to signed, double its precision.
23945         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
23946         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
23947         (graphite_create_new_loop_guard): When ub + 1 wraps around,
23948         use lb <= ub.
23949
23950 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
23951
23952         PR middle-end/43519
23953         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
23954         POINTER_PLUS_EXPR for pointer types.
23955
23956 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
23957
23958         PR middle-end/43519
23959         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
23960         * graphite-clast-to-gimple.c: Include langhooks.h.
23961         (max_signed_precision_type): New.
23962         (max_precision_type): Takes two types as arguments.
23963         (precision_for_value): New.
23964         (precision_for_interval): New.
23965         (gcc_type_for_interval): New.
23966         (gcc_type_for_value): New.
23967         (gcc_type_for_clast_term): New.
23968         (gcc_type_for_clast_red): New.
23969         (gcc_type_for_clast_bin): New.
23970         (gcc_type_for_clast_expr): Split up into several functions.
23971         (gcc_type_for_clast_eq): Rewritten.
23972         (compute_bounds_for_level): New.
23973         (compute_type_for_level_1): New.
23974         (compute_type_for_level): New.
23975         (gcc_type_for_cloog_iv): Removed.
23976         (gcc_type_for_iv_of_clast_loop): Rewritten.
23977         (graphite_create_new_loop): Compute the lower and upper bound types
23978         with gcc_type_for_clast_expr.
23979         (graphite_create_new_loop_guard): Same.
23980         (find_cloog_iv_in_expr): Removed.
23981         (compute_cloog_iv_types_1): Removed.
23982         (compute_cloog_iv_types): Removed.
23983         (gloog): Do not call compute_cloog_iv_types.
23984         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
23985         GBB_CLOOG_IV_TYPES.
23986         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
23987         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
23988         (GBB_CLOOG_IV_TYPES): Removed.
23989
23990 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
23991
23992         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
23993         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
23994         (detect_commutative_reduction): Same.
23995
23996 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
23997
23998         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
23999         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
24000         argument.
24001         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
24002         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
24003         (rewrite_commutative_reductions_out_of_ssa): Same.
24004         * passes.c (execute_function_todo): Call verify_ssa for every pass
24005         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
24006         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
24007         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
24008         with an extra argument.
24009         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
24010         verify_ssa only when the extra argument is true.
24011         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
24012         with an extra argument.
24013         (tree_transform_and_unroll_loop): Same.
24014
24015 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24016
24017         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
24018         for all the passes of the LNO having LOOP_CLOSED_SSA.
24019         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
24020         * tree-loop-distribution.c (pass_loop_distribution): Same.
24021         * tree-pass.h (TODO_verify_loops): Removed.
24022         * tree-ssa-loop.c (pass_tree_loop_init): Same.
24023         (pass_lim): Same.
24024         (pass_tree_unswitch): Same.
24025         (pass_predcom): Same.
24026         (pass_vectorize): Same.
24027         (pass_linear_transform): Same.
24028         (pass_graphite_transforms): Same.
24029         (pass_iv_canon): Same.
24030         (pass_complete_unroll): Same.
24031         (pass_complete_unrolli): Same.
24032         (pass_parallelize_loops): Same.
24033         (pass_loop_prefetch): Same.
24034         (pass_iv_optimize): Same.
24035
24036 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
24037
24038         PR middle-end/32824
24039         * passes.c (init_optimization_passes): Move pass_lim before
24040         pass_copy_prop and pass_dce_loop.
24041
24042 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
24043
24044         PR target/43667
24045         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
24046         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
24047         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
24048         MULTI_* defines for 4 argument vpermil2p* builtins.
24049
24050 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
24051
24052         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
24053         * config/i386/i386.c (x86_maybe_negate_const_int): New.
24054         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
24055         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
24056         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
24057         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
24058         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
24059         Use x86_maybe_negate_const_int to output insn mnemonic.
24060         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
24061         check from instruction predicate.  Update comments.
24062         * config/i386/sync.md (sync_add<mode>): Use
24063         x86_maybe_negate_const_int to output insn mnemonic.
24064
24065 2010-04-06  Jan Hubicka  <jh@suse.cz>
24066
24067         PR tree-optimization/42906
24068         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
24069         IGNORE_SELF argument.  Set visited_control_parents for fully
24070         processed BBs.
24071         (find_obviously_necessary_stmts): Update call of
24072         mark_control_dependent_edges_necessary.
24073         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
24074
24075 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
24076
24077         * config/i386/i386.md: Remove comment about 'e' and 'E'
24078         operand modifier.
24079
24080 2010-04-06  Richard Guenther  <rguenther@suse.de>
24081
24082         PR tree-optimization/43627
24083         * tree-vrp.c (extract_range_from_unary_expr): Widenings
24084         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
24085         not varying.
24086
24087 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
24088
24089         * BASE-VER: Change to 4.6.0.
24090
24091         PR target/43638
24092         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
24093         handling.
24094
24095 2010-04-06  Richard Guenther  <rguenther@suse.de>
24096
24097         PR middle-end/43661
24098         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
24099
24100 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24101
24102         * doc/invoke.texi (Optimize Options): Document that LTO
24103         won't remove object access purely due to incompatible
24104         declarations.
24105
24106 2010-04-04  Matthias Klose  <doko@ubuntu.com>
24107
24108         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
24109         Initialize variable.
24110
24111 2010-04-03  Richard Guenther  <rguenther@suse.de>
24112
24113         PR middle-end/42509
24114         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
24115         require a non-NULL MEM_OFFSET.
24116
24117 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
24118
24119         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
24120         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
24121         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
24122         config/alpha/predicates.md, config/arm/arm.md,
24123         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
24124         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
24125         config/darwin9.h, config/darwin.c, config/darwin.h,
24126         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
24127         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
24128         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
24129         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
24130         config/mips/mips.md, config/mn10300/mn10300.c,
24131         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
24132         config/rs6000/aix.h, config/rs6000/dfp.md,
24133         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
24134         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
24135         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
24136         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
24137         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
24138         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
24139         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
24140         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
24141         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
24142         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
24143         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
24144         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
24145         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
24146         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
24147         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
24148         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
24149         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
24150         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
24151         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
24152         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
24153         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
24154         opt-functions.awk, opth-gen.awk, params.def, passes.c,
24155         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
24156         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
24157         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
24158         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
24159         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
24160         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
24161         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
24162         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
24163         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
24164         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
24165         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
24166         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
24167         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
24168         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
24169
24170 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24171
24172         PR other/43620
24173         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
24174         * aclocal.m4: Regenerate.
24175
24176 2010-04-02  Richard Guenther  <rguenther@suse.de>
24177
24178         PR tree-optimization/43629
24179         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
24180         if we have seen a constant value.
24181
24182 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
24183
24184         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
24185
24186 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
24187
24188         PR target/43469
24189         * arm.c (legitimize_tls_address): Adjust call to
24190         gen_tls_load_dot_plus_four.
24191         (arm_note_pic_base): New function.
24192         (arm_cannot_copy_insn_p): Use it.
24193         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
24194         constraint.
24195
24196 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24197
24198         PR bootstrap/43531
24199
24200         Revert:
24201         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24202
24203         * Makefile.in ($(out_object_file)): Depend on
24204         gt-$(basename $(notdir $(out_file))).h.
24205
24206 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
24207
24208         * config.gcc (lm32-*-rtems*): Add t-lm32.
24209
24210 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
24211
24212         * config.gcc: Add lm32-*-rtems*.
24213         * config/lm32/rtems.h: New file.
24214
24215 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
24216
24217         PR target/42609
24218         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
24219
24220 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
24221
24222         * dwarf2out.c (output_compilation_unit_header): For
24223         -gdwarf-4 use version 4 instead of version 3.
24224         (output_line_info): For version 4 and above emit additional
24225         maximum ops per insn header field.
24226         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
24227
24228         * dwarf2out.c (is_c_family, is_java): Remove.
24229         (lower_bound_default): New function.
24230         (add_bound_info, gen_descr_array_type_die): Use it.
24231
24232 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
24233
24234         PR debug/43325
24235         * dwarf2out.c (gen_variable_die): Allow debug info for variable
24236         re-declaration when it happens in a function.
24237
24238 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
24239
24240         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
24241         (cgraph_remove_function_insertion_hook): Same.
24242         (cgraph_call_function_insertion_hooks): Same.
24243
24244 2010-04-01  Richard Guenther  <rguenther@suse.de>
24245
24246         PR middle-end/43614
24247         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
24248         and TREE_THIS_VOLATILE.
24249         (copy_ref_info): Likewise.
24250         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
24251         * tree.c (build6_stat): Ignore side-effects of all but arg5
24252         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
24253         TARGET_MEM_REF.
24254
24255 2010-04-01  Richard Guenther  <rguenther@suse.de>
24256
24257         PR tree-optimization/43607
24258         * ipa-type-escape.c (check_call): Do not access non-existing
24259         arguments.
24260
24261 2010-04-01  Richard Guenther  <rguenther@suse.de>
24262
24263         PR middle-end/43602
24264         Revert
24265         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
24266                     Jack Howarth  <howarth@bromo.med.uc.edu>
24267
24268         * tree-profile.c (tree_init_ic_make_global_vars): Make static
24269         variables TLS.
24270
24271 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24272
24273         * doc/install.texi (Prerequisites): Document libelf usability on
24274         IRIX 5/6 and Solaris 2.
24275         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
24276         Update GNU as, GNU ld requirements.
24277         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
24278         Document Sun Studio compiler download.
24279         Update and simplify as, ld recommendations.
24280         (Specific, *-*-solaris2.7): Note obsoletion, removal.
24281
24282 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24283
24284         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
24285         with_tune_32 to pentium4.
24286
24287 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
24288
24289         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
24290
24291 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24292
24293         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
24294         obsoletion, removal.
24295         Update IDO URL.
24296         Document GNU as requirement.
24297         Update configure requirements.
24298         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
24299         Recomment IRIX 6.5.18+.
24300         Document IDF/IDL requirement.
24301         Document GNU as requirement.
24302         Document GNU ld bootstrap failure.
24303         Remove freeware.sgi.com reference.
24304
24305 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24306
24307         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
24308         UNIX V4.0, V5.0 obsoletion, removal.
24309         Remove --with-gc=simple reference.
24310         Update VM requirements during bootstrap.
24311         Remove -oldas bootstrap description.
24312         Update binutils reference.
24313         Remove comparison failure note.
24314
24315 2010-03-31  Richard Guenther  <rguenther@suse.de>
24316             Zdenek Dvorak  <ook@ucw.cz>
24317             Sebastian Pop  <sebastian.pop@amd.com>
24318
24319         PR middle-end/43464
24320         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
24321         with multiple arguments.
24322         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
24323
24324 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
24325
24326         * graphite-dependences.c (print_pddr): Call print_pdr with an
24327         extra argument.
24328         * graphite-poly.c (debug_pdr): Add an extra argument for the
24329         verbosity level.
24330         (print_pdr): Same.
24331         (print_pbb_domain): Same.
24332         (print_pbb): Same.
24333         (print_scop_context): Same.
24334         (print_scop): Same.
24335         (print_cloog): Same.
24336         (debug_pbb_domain): Same.
24337         (debug_pbb): Same.
24338         (print_pdrs): Same.
24339         (debug_pdrs): Same.
24340         (debug_scop_context): Same.
24341         (debug_scop): Same.
24342         (debug_cloog): Same.
24343         (print_scop_params): Same.
24344         (debug_scop_params): Same.
24345         (print_iteration_domain): Same.
24346         (print_iteration_domains): Same.
24347         (debug_iteration_domain): Same.
24348         (debug_iteration_domains): Same.
24349         (print_scattering_function): Same.
24350         (print_scattering_functions): Same.
24351         (debug_scattering_function): Same.
24352         (debug_scattering_functions): Same.
24353         * graphite-poly.h (debug_pdr): Update declaration.
24354         (print_pdr): Same.
24355         (print_pbb_domain): Same.
24356         (print_pbb): Same.
24357         (print_scop_context): Same.
24358         (print_scop): Same.
24359         (print_cloog): Same.
24360         (debug_pbb_domain): Same.
24361         (debug_pbb): Same.
24362         (print_pdrs): Same.
24363         (debug_pdrs): Same.
24364         (debug_scop_context): Same.
24365         (debug_scop): Same.
24366         (debug_cloog): Same.
24367         (print_scop_params): Same.
24368         (debug_scop_params): Same.
24369         (print_iteration_domain): Same.
24370         (print_iteration_domains): Same.
24371         (debug_iteration_domain): Same.
24372         (debug_iteration_domains): Same.
24373         (print_scattering_function): Same.
24374         (print_scattering_functions): Same.
24375         (debug_scattering_function): Same.
24376         (debug_scattering_functions): Same.
24377
24378 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
24379
24380         * graphite-poly.c (print_scattering_function_1): New.
24381         (print_scattering_function): Call it.
24382         (print_scop_params): Remove spaces at the end of lines.
24383         (print_cloog): New.
24384         (debug_cloog): New.
24385         * graphite-poly.h (print_cloog): Declared.
24386         (debug_cloog): Declared.
24387
24388 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
24389
24390         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
24391         in loop->header.
24392         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
24393         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
24394         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
24395         to switch between adding the IV bump in loop->latch or in loop->header.
24396
24397 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
24398
24399         * graphite-poly.c (print_scattering_function): Pretty print following
24400         the scoplib format.
24401         (print_pdr): Same.
24402         (print_pbb_domain): Same.
24403         (dump_gbb_cases): Same.
24404         (dump_gbb_conditions): Same.
24405         (print_pdrs): Same.
24406         (print_pbb): Same.
24407         (print_scop_params): Same.
24408         (print_scop_context): Same.
24409         (print_scop): Same.
24410         (print_pbb_body): New.
24411         (lst_indent_to): New.
24412         (print_lst): Start new lines with a #.
24413         * graphite-poly.h (pbb_bb): New.
24414         (pbb_index): Use pbb_bb.
24415         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
24416         disjuncts.
24417         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
24418
24419 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
24420
24421         * dwarf2out.c (size_of_die): For -gdwarf-4 use
24422         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
24423         and 0 instead of 1 for dw_val_class_flag.
24424         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
24425         dw_val_class_range_list, dw_val_class_loc_list,
24426         dw_val_class_lineptr and dw_val_class_macptr, use
24427         DW_FORM_flag_present for dw_val_class_flag and
24428         DW_FORM_exprloc for dw_val_class_loc.
24429         (output_die): For -gdwarf-4 print dw_val_class_loc
24430         size as uleb128 instead of 1 or 2 bytes and don't print
24431         anything for dw_val_class_flag.
24432
24433         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
24434         instead of cselib_lookup following by tweaking locs->setting_insn.
24435
24436         PR bootstrap/43596
24437         * cselib.c (cselib_process_insn): Clear cselib_current_insn
24438         even before returning from label, setjmp call or volatile asm
24439         handling.
24440
24441 2010-03-31  Richard Guenther  <rguenther@suse.de>
24442
24443         PR middle-end/43600
24444         * cgraphunit.c (cgraph_output_in_order): Do not allocate
24445         temporary data on stack.
24446
24447 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24448
24449         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
24450         (PUSHSECTION_ASM_OP): Remove.
24451         (POPSECTION_ASM_OP): Remove.
24452         (PUSHSECTION_FORMAT): Remove.
24453         * config/sol2.h (PUSHSECTION_FORMAT): Define.
24454         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
24455         * config/sol2.c (solaris_output_init_fini): Use it.
24456
24457 2010-03-31  Jie Zhang  <jie@codesourcery.com>
24458
24459         PR 43574
24460         * opt-functions.awk (var_type_struct): Use signed char type
24461         for simple variables.
24462
24463 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24464
24465         * config/sol2.c: Include output.h.
24466         (solaris_assemble_visibility): New function.
24467         * config/t-sol2 (sol2.o): Add output.h dependency.
24468         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
24469         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
24470         Redefine.
24471
24472 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
24473
24474         PR target/43580
24475         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
24476         V2SImode or XFmode on PRE_DEC.
24477
24478         PR debug/43557
24479         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
24480         BLKmode.
24481
24482 2010-03-31  Jie Zhang  <jie@codesourcery.com>
24483
24484         PR 43562
24485         * reload.h (caller_save_initialized_p): Declare.
24486         * toplev.c (backend_init_target): Don't call
24487         init_caller_save but set caller_save_initialized_p to false.
24488         * caller-save.c (caller_save_initialized_p): Define.
24489         (init_caller_save): Check caller_save_initialized_p.
24490         * ira.c (ira): Call init_caller_save if flag_caller_saves.
24491
24492 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24493
24494         PR target/39048
24495         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
24496         and soft-fp/t-softfp to tmake_file.
24497         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
24498         (LIBGCC2_TF_CEXT): Define.
24499         (TF_SIZE): Define.
24500
24501 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
24502
24503         PR debug/42977
24504         * cselib.c (n_useless_values): Document handling of debug locs.
24505         (n_useless_debug_values, n_debug_values): New variables.
24506         (new_elt_loc_list): Don't add to debug values, keep count.
24507         (promote_debug_loc): New.
24508         (cselib_reset_table): Zero new variables.
24509         (entry_and_rtx_equal_p): Promote debug locs.
24510         (discard_useless_locs): Increment n_useless_debug_values for
24511         debug values.
24512         (remove_useless_values): Adjust n_useless_values and n_debug_values
24513         with n_useless_debug_values.
24514         (add_mem_for_addr): Promote debug locs.
24515         (cselib_lookup_mem): Likewise.
24516         (cselib_lookup_addr): Renamed to...
24517         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
24518         (cselib_log_lookup): ... this.  Turn into...
24519         (cselib_lookup_addr): ... new wrapper.
24520         (cselib_lookup_from_insn): New.
24521         (cselib_invalidate_regno): Increment n_useless_debug_values for
24522         debug values.
24523         (cselib_invalidate_mem): Likewise.
24524         (cselib_process_insn): Take n_deleted and n_debug_values into
24525         account to guard remove_useless_value call.
24526         (cselib_finish): Zero n_useless_debug_values.
24527         * cselib.h (cselib_lookup_from_insn): Declare.
24528         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
24529         (sched_analyze_2): Likewise.
24530
24531 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
24532
24533         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
24534         functions.
24535         (adjust_mems): Replace narrowing SUBREG of expression containing
24536         just PLUS, MINUS, MULT and ASHIFT of registers and constants
24537         with operations in the narrower mode.
24538
24539         PR debug/43593
24540         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
24541         regs_invalidated_by_call instead all call_used_reg_set registers.
24542
24543 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
24544
24545         PR middle-end/43430
24546         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
24547         pointer comparisons with types_compatible_p.
24548         * tree-vect-stmts.c (vectorizable_call): Same.
24549         (vectorizable_condition): Same.
24550
24551 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24552
24553         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
24554         stack check if the mask would be zero.
24555
24556 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
24557             Jack Howarth  <howarth@bromo.med.uc.edu>
24558
24559         * tree-profile.c (tree_init_ic_make_global_vars): Make static
24560         variables TLS.
24561
24562 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
24563
24564         PR other/25232
24565         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
24566         and __unordtf2.
24567         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
24568         Include ___unordxf2 and ___unordtf2.
24569         * config/i386/libgcc-glibc.ver: Do not define inheritance from
24570         GCC_4.4.0 here.
24571
24572 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
24573
24574         * config/lm32/t-lm32: New file.
24575         * config.gcc: Use the above file when targetting lm32.
24576
24577 2010-03-28  Duncan Sands  <baldrick@free.fr>
24578
24579         * Makefile.in (PLUGIN_HEADERS): Add except.h.
24580
24581 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
24582
24583         PR middle-end/43431
24584         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
24585         Improve vectorization cost model diagnostic.
24586
24587 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
24588
24589         PR middle-end/43436
24590         * tree-vect-data-refs.c (vect_analyze_data_refs): When
24591         compute_data_dependences_for_loop returns false, early exit
24592         and output an extra diagnostic for the failed data reference
24593         analysis.
24594
24595 2010-03-29  Richard Guenther  <rguenther@suse.de>
24596
24597         PR tree-optimization/43560
24598         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
24599         (can_sm_ref_p): Treat stores to readonly locations as trapping.
24600
24601 2010-03-29  Jie Zhang  <jie@codesourcery.com>
24602
24603         PR 43564
24604         * toplev.c (process_options): Set optimization_default_node
24605         and optimization_current_node.
24606         * opts.c (decode_options): Don't set optimization_default_node
24607         and optimization_current_node.
24608
24609 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
24610
24611         * config/rtems.h: Abandon -qrtems_debug.
24612
24613 2010-03-28  Jan Hubicka  <jh@suse.cz>
24614
24615         PR tree-optimization/43505
24616         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
24617         map should not be copied.
24618
24619 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24620
24621         PR middle-end/41674
24622         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
24623         cdtors, set DECL_PRESERVE_P.
24624         * ipa.c (cgraph_externally_visible_p): Return true if declaration
24625         should be preseved.
24626
24627 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
24628
24629         PR tree-optimization/43528
24630         * stor-layout.c (place_field): Check that constant fits into
24631         unsigned HWI when skipping calculation of MS bitfield layout.
24632
24633 2010-03-27  Jan Hubicka  <jh@suse.cz>
24634
24635         PR middle-end/43391
24636         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
24637         notice_global_symbol work.
24638
24639 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
24640
24641         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
24642         instead of dwarf2out_decl.
24643         (struct var_loc_node): Remove section_label field.
24644         (dwarf2out_function_decl): New function.
24645         (dwarf2out_var_location): Don't set section_label field.
24646         (dwarf2out_begin_function): Don't empty decl_loc_table here.
24647
24648 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
24649
24650         PR tree-optimization/43544
24651         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
24652         First argument for builtin vectorized function hook is now a
24653         tree to be able to distinguish between machine specific and
24654         standard builtins.
24655         * targhooks.c (default_builtin_vectorized_function): Ditto.
24656         * targhooks.h (default_builtin_vectorized_function): Ditto.
24657         * target.h (struct gcc_target): Ditto.
24658         * tree-vect-stmts.c (vectorizable_function): Ditto.
24659         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
24660         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
24661         Ditto.
24662
24663 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
24664
24665         PR c/43381
24666         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
24667         nested binding iff it is a FUNCTION_DECL.
24668         (store_parm_decls_newstyle): Pass nested=true to bind for
24669         FUNCTION_DECLs amongst parameters.
24670
24671 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
24672
24673         * var-tracking.c (vt_expand_loc_callback): Don't run
24674         cselib_expand_value_rtx_cb in dummy mode if
24675         cselib_dummy_expand_value_rtx_cb returned false.
24676
24677         * var-tracking.c (emit_note_insn_var_location): For one part
24678         notes with offset 0, don't add EXPR_LIST around the location.
24679         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
24680         add_location_or_const_value_attribute): Adjust for that change.
24681
24682         PR debug/43540
24683         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
24684         into first operand and location into second.
24685         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
24686         dw_cfi_oprnd_loc for DW_CFA_expression.
24687         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
24688         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
24689         assume first argument is regnum and second argument is location.
24690
24691 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
24692
24693         PR target/42113
24694         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
24695         of scratch register to DImode.  Split to DImode comparison operator.
24696         Use SImode subreg of scratch register in the multiplication.
24697         (*cmp_sadd_sidi): Ditto.
24698         (*cmp_ssub_si): Ditto.
24699         (*cmp_ssub_sidi): Ditto.
24700
24701 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
24702
24703         PR target/43524
24704         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
24705         Remove invalid assert and wrong comment.
24706
24707 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
24708
24709         PR debug/43516
24710         * flags.h (final_insns_dump_p): New extern.
24711         * final.c (final_insns_dump_p): New variable.
24712         (rest_of_clean_state): Set it before -fdump-final-insns=
24713         dumping, clear afterwards.
24714         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
24715         MEM_ALIAS_SET on MEMs.
24716
24717 2010-03-26  David S. Miller  <davem@davemloft.net>
24718
24719         * configure.ac: Fix sparc GOTDATA_OP bug check.
24720         * configure: Rebuild.
24721
24722 2010-03-26  Alan Modra  <amodra@gmail.com>
24723
24724         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
24725
24726 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24727
24728         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
24729         TLS_SECTION_ASM_FLAG.
24730
24731 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
24732
24733         PR bootstrap/43511
24734         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
24735         Clear first_function_block_is_cold.
24736
24737         PR c/43385
24738         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
24739         argument if the argument is truth_value_p.
24740
24741 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
24742
24743         * config/rs6000/constraints.md: Update copyright year for my changes.
24744
24745         PR target/43484
24746         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
24747         used in reg+reg addressing, swap registers.
24748
24749 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
24750
24751         PR debug/43293
24752         * target.h (struct gcc_target): Add code_end hook.
24753         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
24754         if not yet defined.
24755         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
24756         * toplev.c (compile_file): Call targetm.asm_out.code_end
24757         hook before unwind info/debug info output.
24758         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
24759         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
24760         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
24761         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
24762         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
24763         * config/i386/i386.c (ix86_file_end): Renamed to...
24764         (ix86_code_end): ... this.  Make static.  Don't call
24765         file_end_indicate_exec_stack.  Emit unwind info using
24766         final_start_function/final_end_function.
24767         (darwin_x86_file_end): Remove.
24768         (TARGET_ASM_CODE_END): Define.
24769         * config/i386/i386.h (TARGET_ASM_FILE_END,
24770         NEED_INDICATE_EXEC_STACK): Don't define.
24771         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
24772         (TARGET_ASM_FILE_END): Define to darwin_file_end.
24773         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
24774         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
24775
24776         PR target/43498
24777         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
24778         at the beginning and final_end_function at the end.
24779         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
24780
24781 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24782
24783         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
24784         and Sun as TLS syntax.
24785         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
24786         * configure: Regenerate.
24787         * config.in: Regenerate.
24788         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
24789         (default_elf_asm_named_section): Use it.
24790         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
24791         (i386_output_dwarf_dtprel): Likewise.
24792         (output_addr_const_extra): Likewise.
24793         (output_pic_addr_const): Lowercase @GOTTPOFF.
24794         (output_addr_const_extra): Likewise.
24795         (output_pic_addr_const): Lowercase @GOTNTPOFF.
24796         (output_addr_const_extra): Likewise.
24797         (output_pic_addr_const): Lowercase @INDNTPOFF.
24798         (output_addr_const_extra): Likewise.
24799         (output_pic_addr_const): Lowercase @NTPOFF.
24800         (output_addr_const_extra): Likewise.
24801         (output_pic_addr_const): Lowercase @TPOFF.
24802         (output_addr_const_extra): Likewise.
24803         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
24804         (*tls_global_dynamic_64): Likewise.
24805         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
24806         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
24807
24808         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
24809         (ASM_OUTPUT_TLS_COMMON): Use it.
24810         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
24811
24812         PR target/38118
24813         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
24814         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
24815         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
24816         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
24817         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
24818         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
24819
24820 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24821
24822         * config/i386/i386.c (override_options): Don't accept
24823         -mtls-dialect=sun any longer.
24824         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
24825         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
24826         (*tls_local_dynamic_base_32_sun): Likewise.
24827         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
24828
24829 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
24830
24831         PR debug/43508
24832         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
24833         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
24834
24835         PR debug/43479
24836         * ira.c (adjust_cleared_regs): New function.
24837         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
24838
24839         PR debug/19192
24840         PR debug/43479
24841         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
24842         from gimple_block.
24843         * expr.c (expand_expr_real): Restore previous
24844         curr_insn_source_location and curr_insn_block after
24845         expand_expr_real_1 call.
24846         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
24847         instead of expand_expr_real_1.
24848
24849 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
24850
24851         PR rtl-optimization/43413
24852         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
24853         hard regs too.
24854
24855 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
24856
24857         PR target/43348
24858         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
24859         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
24860
24861 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
24862
24863         * config/i386/i386.c (ix86_target_string): Add -mfma.
24864         Fix a typo in comment.
24865
24866 2010-03-22  Mike Stump  <mikestump@comcast.net>
24867
24868         PR target/23071
24869         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
24870         Don't overly align based upon packed packed fields.
24871
24872 2010-03-22  Jason Merrill  <jason@redhat.com>
24873
24874         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
24875         Use () rather than [], and move before the element type.
24876
24877 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24878
24879         * doc/configfiles.texi (Configuration Files): Removed
24880         fixinc/Makefile*, intl/Makefile.*.
24881         * doc/makefile.texi: Fixed markup. Abstract from version
24882         control system used.
24883         (Makefile): Removed obsolete java/parse.y example.
24884         * doc/sourcebuild.texi: Likewise.
24885         (Top Level): Added config, gnattools, libdecnumber, libgcc,
24886         libgomp, libssp.  Removed fastjar.
24887         (Miscellaneous Docs): Clarify location.
24888         Added COPYING3, COPYING3.LIB.
24889         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
24890
24891 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24892
24893         PR target/38085
24894         * config/i386/i386.c (x86_function_profiler)
24895         [!NO_PROFILE_COUNTERS]: Fix typo.
24896         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
24897         instead of callq.
24898
24899 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
24900             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24901
24902         * doc/sourcebuild.texi (Test Directives): Split into six
24903         subsections, with most of the current text in new subsections
24904         Directives, Selectors, and Final Actions.
24905         (Directives): Split list of test directives into multiple
24906         subsubsections.
24907         (Selectors): Describe use and syntax of selectors.
24908         (Effective-Target Keywords): Describe all existing keywords.
24909         (Add Options): Describe features for dg-add-options.
24910         (Require Support): Describe variants of dg-require-support.
24911         (Final Actions): Describe commands to use in dg-final.
24912
24913 2010-03-22  Michael Matz  <matz@suse.de>
24914
24915         PR middle-end/43475
24916         * recog.c (validate_replace_rtx_group): Replace also in
24917         REG_EQUAL and REG_EQUIV notes.
24918
24919 2010-03-22  Richard Guenther  <rguenther@suse.de>
24920
24921         PR tree-optimization/43390
24922         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
24923         sure vector extracts are type correct.
24924
24925 2010-03-22  Richard Guenther  <rguenther@suse.de>
24926
24927         PR middle-end/40106
24928         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
24929         x * sqrt (x) even when optimizing for size if the target
24930         has native support for sqrt.
24931
24932 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
24933
24934         * varasm.c (make_decl_rtl_for_debug): Also clear
24935         flag_mudflap for the duration of make_decl_rtl call.
24936
24937         PR debug/43443
24938         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
24939         locs from preserved VALUEs.
24940
24941 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24942
24943         PR middle-end/42718
24944         * pa.md (movmemsi): Set align to one if zero.
24945         (movmemdi): Likewise.
24946
24947 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
24948
24949         PR target/42321
24950         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
24951         with their corresponding prologue pushes.
24952
24953 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
24954
24955         PR target/43156
24956         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
24957         at the begining or end.
24958         (spu_expand_epilogue): Likewise.
24959
24960 2010-03-20  Richard Guenther  <rguenther@suse.de>
24961
24962         PR rtl-optimization/43438
24963         * combine.c (make_extraction): Properly zero-/sign-extend an
24964         extraction of the low part of a CONST_INT.  Also handle
24965         CONST_DOUBLE.
24966
24967 2010-03-19  Mike Stump  <mikestump@comcast.net>
24968
24969         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
24970         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
24971         (override_options): Use SUBTARGET32_DEFAULT_CPU.
24972
24973 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
24974
24975         PR c/43211
24976         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
24977         an error.
24978
24979 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
24980
24981         PR rtl-optimization/42258
24982         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
24983         use that may match DEF.
24984
24985         PR target/40697
24986         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
24987         the cost of loading the constant rather than assuming
24988         COSTS_N_INSNS (1).
24989         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
24990         outer code is AND, do the same tests as the andsi3 expander and
24991         return COSTS_N_INSNS (1) if and is cheap.
24992
24993         * optabs.c (avoid_expensive_constant): Fix formatting.
24994
24995 2010-03-19  Michael Matz  <matz@suse.de>
24996
24997         PR c++/43116
24998         * attribs.c (decl_attributes): When rebuilding a function pointer
24999         type use the same qualifiers as the original pointer type.
25000
25001 2010-03-19  Martin Jambor  <mjambor@suse.cz>
25002
25003         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
25004         and is_gimple_ip_invariant_address.
25005
25006 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25007
25008         Revert
25009         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25010
25011         * config/arm/arm.c (arm_override_options): Turn off
25012         flag_dwarf2_cfi_asm for AAPCS variants.
25013
25014 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25015
25016         PR target/43399
25017         * config/arm/arm.c (emit_multi_reg_push): Update comments.
25018         Use PRE_MODIFY instead of PRE_DEC.
25019         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
25020         (vfp_emit_fstmd): Likewise.
25021
25022 2010-03-19  Michael Matz  <matz@suse.de>
25023
25024         PR target/43305
25025         * builtins.c (expand_builtin_interclass_mathfn,
25026         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
25027         if that fails.
25028
25029 2010-03-19  Richard Guenther  <rguenther@suse.de>
25030
25031         PR tree-optimization/43415
25032         * tree-ssa-pre.c (phi_translate): Split out worker to ...
25033         (phi_translate_1): ... this.
25034         (phi_translate): Move all caching here.  Cache all NARY
25035         and REFERENCE translations.
25036
25037 2010-03-19  David S. Miller  <davem@davemloft.net>
25038
25039         With help from Eric Botcazou.
25040         * config/sparc/sparc.c: Include dwarf2out.h.
25041         (emit_pic_helper): Delete.
25042         (pic_helper_symbol_name): Delete.
25043         (pic_helper_emitted_p): Delete.
25044         (pic_helper_needed): New.
25045         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
25046         (get_pc_thunk_name): New.
25047         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
25048         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
25049         Set pic_helper_needed to true.  Don't call emit_pic_helper.
25050         (sparc_expand_prologue): Update load_pic_register call.
25051         (sparc_output_mi_thunk): Likewise.
25052         (sparc_file_end): Emit a hidden comdat symbol for the PIC
25053         thunk if possible.  Output CFI information as needed.
25054
25055 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
25056             Jack Howarth  <howarth@bromo.med.uc.edu>
25057
25058         PR target/36399
25059         * config/i386/i386.h: Fix ABI on darwin x86-32.
25060
25061 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
25062
25063         * tree.h: Declare make_decl_rtl_for_debug.
25064         * varasm.c (make_decl_rtl_for_debug): New.
25065         * dwarf2out.c (rtl_for_decl_location): Call it.
25066         * cfgexpand.c (expand_debug_expr): Call it.
25067
25068 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
25069
25070         PR bootstrap/43399
25071         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
25072         mem_mode.
25073
25074         PR bootstrap/43403
25075         * var-tracking.c (vt_init_cfa_base): Do nothing if
25076         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
25077
25078 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
25079
25080         PR debug/42873
25081         * var-tracking.c (canonicalize_vars_star): New.
25082         (dataflow_post_merge_adjust): Use it.
25083
25084 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
25085
25086         PR debug/43058
25087         * var-tracking.c (non_suitable_const): New function.
25088         (add_uses): For DEBUG_INSNs with constants, don't record any
25089         value, instead just the constant value itself.
25090         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
25091         is not VAR_LOC_UNKNOWN_P, set var to the constant.
25092         (emit_notes_in_bb): Likewise.
25093         (emit_note_insn_var_location): For onepart variables if
25094         cur_loc is a VOIDmode constant, use DECL_MODE.
25095
25096 2010-03-18  Martin Jambor  <mjambor@suse.cz>
25097
25098         PR middle-end/42450
25099         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
25100         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
25101         all non-clones.  Moved call redirection...
25102         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
25103         (cgraph_materialize_all_clones): Dispose of all
25104         combined_args_to_skip bitmaps.
25105         (verify_cgraph_node): Do not check for edges pointing to wrong
25106         nodes in inline clones.
25107         * tree-inline.c (copy_bb): Call
25108         cgraph_redirect_edge_call_stmt_to_callee.
25109         * ipa.c (cgraph_remove_unreachable_nodes): Call
25110         cgraph_node_remove_callees even when there are used clones.
25111
25112 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
25113
25114         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
25115
25116 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
25117
25118         PR target/43383
25119         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
25120         for 32bit.
25121
25122 2010-03-18  Michael Matz  <matz@suse.de>
25123
25124         PR middle-end/43419
25125         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
25126         into sqrt(x) if we need to preserve signed zeros.
25127
25128 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
25129             Eric Botcazou  <ebotcazou@adacore.com>
25130
25131         PR rtl-optimization/43360
25132         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
25133         note if we don't know its invariant status.
25134
25135 2010-03-18  Michael Matz  <matz@suse.de>
25136
25137         PR tree-optimization/43402
25138         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
25139         PHI chains of ssa names registered for update.
25140
25141 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
25142
25143         PR target/42427
25144         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
25145         non-offsettable and pre_modify update addressing.
25146         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
25147         and "2" alternatives "#".
25148         (*movdd_softfloat32): Make all alternatives "#";
25149         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
25150         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
25151         (*movdf_softfloat32): Make all alternatives "#";
25152         (movdi): Use the new DIFD mode iterator to create a common splitter
25153         for movdi, movdf and movdd patterns.
25154
25155 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
25156
25157         * common.opt (dumpdir): Remove redundant tab.
25158
25159 2010-03-17  Martin Jambor  <mjambor@suse.cz>
25160
25161         PR tree-optimization/43347
25162         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
25163         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
25164
25165 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
25166
25167         PR rtl-optimization/42216
25168         * regrename.c (create_new_chain): New function, broken out from...
25169         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
25170         appending a use to an empty chain.
25171         (build_def_use): Remove previous changes that convert OP_INOUT to
25172         OP_OUT operands; instead detect the case where an OP_INOUT operand
25173         uses a previously untracked register and create an empty chain for it.
25174
25175 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25176
25177         * doc/extend.texi (Function Attributes): Rewrite unfinished
25178         sentence in ms_abi documentation.
25179
25180 2010-03-17  Alan Modra  <amodra@gmail.com>
25181
25182         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
25183         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
25184         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
25185         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
25186
25187 2010-03-16  Richard Henderson  <rth@redhat.com>
25188
25189         PR middle-end/43365
25190         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
25191         (lower_try_finally): Save and restore eh_seq around the expansion
25192         of the try-finally.
25193
25194 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
25195
25196         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
25197         statements before splitting block.
25198
25199 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25200
25201         * doc/sourcebuild.texi (Testsuites): Fix markup.
25202         Use pathnames relative to gcc/testsuite.
25203         (Test Directives): Move description of how timeout is determined.
25204         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
25205         (C Tests): Correct gcc.misc-tests directory.
25206         Framework tests now live in gcc.test-framework.
25207
25208 2010-03-16  Richard Guenther  <rguenther@suse.de>
25209
25210         PR middle-end/43379
25211         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
25212         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
25213
25214 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
25215             Alexandre Oliva  <aoliva@redhat.com>
25216
25217         PR tree-optimization/42917
25218         * lambda-code.c (remove_iv): Skip debug statements.
25219         (lambda_loopnest_to_gcc_loopnest): Likewise.
25220         (not_interesting_stmt): Debug statements are not interesting.
25221
25222 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
25223
25224         PR debug/43051
25225         PR debug/43092
25226         * cselib.c (cselib_preserve_constants,
25227         cfa_base_preserved_val): New static variables.
25228         (preserve_only_constants): New function.
25229         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
25230         clear its REG_VALUES.  If cselib_preserve_constants, don't
25231         empty the whole hash table, but preserve there VALUEs with constants,
25232         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
25233         (cselib_preserve_cfa_base_value): New function.
25234         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
25235         (cselib_init): Change argument to int bitfield.  Set
25236         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
25237         is in it.
25238         (cselib_finish): Clear cselib_preserve_constants and
25239         cfa_base_preserved_val.
25240         * cselib.h (enum cselib_record_what): New enum.
25241         (cselib_init): Change argument to int.
25242         (cselib_preserve_cfa_base_value): New prototype.
25243         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
25244         * dse.c (dse_step1): Likewise.
25245         * cfgcleanup.c (thread_jump): Likewise.
25246         * sched-deps.c (sched_analyze): Likewise.
25247         * gcse.c (local_cprop_pass): Likewise.
25248         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
25249         If FN is non-NULL, call the callback always and whenever it returns
25250         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
25251         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
25252         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
25253         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
25254         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
25255         * var-tracking.c: Include recog.h.
25256         (bb_stack_adjust_offset): Remove.
25257         (vt_stack_adjustments): Don't call it, instead just gather the
25258         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
25259         (adjust_stack_reference): Remove.
25260         (compute_cfa_pointer): New function.
25261         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
25262         (struct adjust_mem_data): New type.
25263         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
25264         functions.
25265         (get_address_mode): New function.
25266         (replace_expr_with_values): Use it.
25267         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
25268         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
25269         (adjust_sets): Remove.
25270         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
25271         Use get_address_mode.
25272         (get_adjusted_src): Remove.
25273         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
25274         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
25275         (add_with_sets): Don't call adjust_sets.
25276         (fp_setter, vt_init_cfa_base): New functions.
25277         (vt_initialize): Change return type to bool.  Move most of pool etc.
25278         initialization to the beginning of the function from end.  Pass
25279         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
25280         If !frame_pointer_needed, call vt_stack_adjustment before mos
25281         vector is filled, call vt_init_cfa_base if argp/framep has been
25282         eliminated to sp.  If frame_pointer_needed and argp/framep has
25283         been eliminated to hard frame pointer, set
25284         hard_frame_pointer_adjustment and call vt_init_cfa_base after
25285         encountering fp setter in the prologue.  For MO_ADJUST, call
25286         log_op_type before pusing the op into mos vector, not afterwards.
25287         Call adjust_insn before cselib_process_insn/add_with_sets,
25288         call cancel_changes (0) afterwards.
25289         (variable_tracking_main_1): Adjust for vt_initialize calling
25290         vt_stack_adjustments and returning whether it succeeded or not.
25291
25292 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
25293
25294         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
25295         debug statements.
25296
25297 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
25298
25299         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
25300         has been set.
25301         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
25302         drap_reg has not been set.
25303
25304 2010-03-15  Michael Matz  <matz@suse.de>
25305
25306         PR middle-end/43300
25307         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
25308         use it to expand block copies.
25309         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
25310         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
25311         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
25312
25313 2010-03-15  Richard Guenther  <rguenther@suse.de>
25314
25315         PR tree-optimization/43367
25316         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
25317         elimination check.
25318
25319 2010-03-15  Richard Guenther  <rguenther@suse.de>
25320
25321         PR tree-optimization/43317
25322         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
25323
25324 2010-03-15  Martin Jambor  <mjambor@suse.cz>
25325
25326         PR tree-optimization/43141
25327         * tree-sra.c (create_abstract_origin): New function.
25328         (modify_function): Call create_abstract_origin.
25329
25330 2010-03-15  Chris Demetriou  <cgd@google.com>
25331
25332         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
25333         wasn't copied.
25334
25335 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25336
25337         PR middle-end/43354
25338         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
25339         call insert_out_of_ssa_copy for default definitions.
25340
25341 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25342
25343         * graphite-clast-to-gimple.c (my_long_long): Defined.
25344         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
25345         * graphite-sese-to-poly.c (my_long_long): Defined.
25346         (scop_ivs_can_be_represented): Use it.
25347
25348 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25349
25350         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
25351         graphite-max-bbs-per-function, and loop-block-tile-size.
25352         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
25353         with "maximum".
25354         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
25355
25356 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25357
25358         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
25359         forward declaration.
25360         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
25361         (add_upper_bounds_from_estimated_nit): New.
25362         (build_loop_iteration_domains): Use it.
25363
25364 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25365
25366         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
25367
25368 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25369
25370         PR middle-end/43306
25371         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
25372         should be an INTEGER_CST.  Also handle CASE_CONVERT.
25373
25374 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25375
25376         * graphite.c (graphite_initialize): To bound the number of bbs per
25377         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
25378         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
25379         * doc/invoke.texi: Document it.
25380
25381 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25382
25383         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
25384         * graphite-sese-to-poly.h (build_poly_scop): Same.
25385
25386 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25387
25388         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
25389         the number of parameters in the scop.  Use as an upper bound
25390         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
25391         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
25392         * doc/invoke.texi: Document it.
25393
25394 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
25395
25396         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
25397         * doc/c-tree.texi: Remove.
25398         * doc/generic.texi: Merge c-tree.texi here.
25399         * doc/gccint.texi (Trees): Remove menu entry.
25400         (c-tree.texi): Remove @include.
25401         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
25402         * doc/languages.texi (Reading RTL): Ditto.
25403
25404 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
25405
25406         PR target/42869
25407         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
25408
25409 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
25410
25411         PR middle-end/42431
25412         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
25413         code added to work around reload clobbering CONST insns.
25414
25415 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
25416
25417         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
25418         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
25419         (cselib_preserve_only_values): Remove retain argument, don't
25420         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
25421         * cselib.h (cselib_preserve_only_values): Remove retain argument.
25422         * var-tracking.c (micro_operation): Move insn field before union.
25423         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
25424         (struct variable_tracking_info_def): Remove n_mos field, change
25425         mos into a vector of micro_operations.
25426         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
25427         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
25428         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
25429         changing into a vector.
25430         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
25431         come before all other uops generated by add_stores.
25432         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
25433         argument removal.
25434         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
25435         a vector.  Run just one pass over the bbs instead of separate counting
25436         and computation phase.
25437         (vt_finalize): Free VTI (bb)->mos vector instead of array.
25438
25439         PR debug/43329
25440         * tree-inline.c (remap_decls): Put old_var rather than origin_var
25441         into *nonlocalized_list vector.
25442         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
25443         even if origin is non-NULL.
25444         (gen_variable_die): Likewise.
25445         (process_scope_var): Don't change origin.
25446         (gen_decl_die): Likewise.
25447         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
25448         before adding new edges instead of after it, fix moving over
25449         debug stmts.
25450
25451 2010-03-11  David S. Miller  <davem@davemloft.net>
25452
25453         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
25454         of four.
25455         * configure: Rebuild.
25456
25457 2010-03-11  Martin Jambor  <mjambor@suse.cz>
25458
25459         PR tree-optimization/43257
25460         * tree.c (assign_assembler_name_if_neeeded): New function.
25461         (free_lang_data_in_cgraph): Assembler name assignment moved to the
25462         above new function.
25463         * tree.h (assign_assembler_name_if_neeeded): Declare.
25464         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
25465         the function if needed.
25466
25467 2010-03-11  Chris Demetriou  <cgd@google.com>
25468
25469         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
25470         include/stdint-gcc.h, and include/stdint.h world-readable.
25471
25472 2010-03-11  Richard Guenther  <rguenther@suse.de>
25473
25474         PR tree-optimization/43255
25475         * tree-vrp.c (process_assert_insertions_for): Do not insert
25476         asserts for trivial conditions.
25477
25478 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25479
25480         PR tree-optimization/43280
25481         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
25482         generation.  Move calculation of size out of the if branch.
25483         (find_bswap): Modify compare number generation.
25484
25485 2010-03-11  Richard Guenther  <rguenther@suse.de>
25486
25487         PR lto/43200
25488         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
25489         (input_gimple_stmt): Fixup handled component types during
25490         operand read.  Also fix up decls in ADDR_EXPRs.
25491
25492 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
25493
25494         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
25495         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
25496
25497 2010-03-10  Jan Hubicka  <jh@suse.cz>
25498
25499         PR c/43288
25500         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
25501         * varasm.c (get_variable_section): Don't do that here...
25502         (make_decl_rtl): ... and here.
25503         (do_assemble_alias): Produce decl RTL.
25504         (assemble_alias): Likewise.
25505
25506 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
25507
25508         PR debug/43290
25509         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
25510         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
25511         of fde->vdrap_reg.
25512         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
25513         (based_loc_descr): Only express drap or vdrap regno based expressions
25514         using DW_OP_fbreg when not optimizing.
25515         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
25516         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
25517         REG_CFA_SET_VDRAP note.
25518
25519 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
25520
25521         PR tree-optimization/43236
25522         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
25523         error in calculation of base address in reverse iteration case.
25524         (generate_builtin): Take number of latch executions if the statement
25525         is in the latch.
25526
25527 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
25528
25529         PR middle-end/42859
25530         * tree-eh.c: Include pointer-set.h.
25531         (lower_eh_dispatch): Filter out duplicate case labels and
25532         remove the unneeded edge when the label is unused.  Return
25533         true when some edges are removed.
25534         (execute_lower_eh_dispatch): When any lowering resulted in
25535         removing an edge, also delete unreachable blocks.
25536
25537 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
25538
25539         PR bootstrap/43287
25540         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
25541         UNSPEC_MACHOPIC_OFFSET.
25542
25543 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
25544
25545         PR target/43294
25546         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
25547         (m68k_delegitimize_address): New function.
25548
25549 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
25550
25551         PR debug/43299
25552         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
25553
25554         PR debug/43299
25555         * var-tracking.c (adjust_sets): New function.
25556         (count_with_sets, add_with_sets): Use it.
25557         (get_adjusted_src): New inline function.
25558         (add_stores): Use it.
25559
25560         PR debug/43304
25561         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
25562         call cselib_dummy_expand_value_rtx_cb instead of
25563         cselib_expand_value_rtx_cb.
25564
25565         PR debug/43293
25566         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
25567         * config/i386/i386.c: Include debug.h and dwarf2out.h.
25568         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
25569         and .cfi_endproc around the pic thunks.
25570         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
25571         all queued unwind info register saves are saved before the call.
25572         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
25573         considered as sp-=4 for unwind info and the pop as sp+=4 which
25574         also clobbers dest, but doesn't actually restore it.
25575
25576         PR debug/43290
25577         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
25578         RTX_FRAME_RELATED_P.
25579
25580 2010-03-09  Jie Zhang  <jie@codesourcery.com>
25581
25582         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
25583         whitespaces in output template.
25584
25585 2010-03-09  Jie Zhang  <jie@codesourcery.com>
25586
25587         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
25588         out array boundary.
25589
25590 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
25591
25592         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
25593         builtins.exp in a separate job.
25594
25595 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25596
25597         * graphite-sese-to-poly.c (add_param_constraints): Use
25598         lower_bound_in_type and upper_bound_in_type.
25599
25600 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25601
25602         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
25603         instead of unsigned_type_node.
25604
25605 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25606             Reza Yazdani  <reza.yazdani@amd.com>
25607
25608         PR middle-end/43065
25609         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
25610         on pointer type parameters.
25611
25612 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
25613
25614         PR middle-end/42644
25615         PR middle-end/42130
25616         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
25617         handle conversions from pointer to integers.
25618         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
25619         induction variable, to be able to work with code generated by CLooG.
25620         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
25621         (build_poly_scop): Bail out if we cannot codegen a loop.
25622
25623 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
25624
25625         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
25626         code generation with gloog_error.
25627
25628 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25629
25630         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
25631         Call fold_convert on all the returned values.
25632         (expand_scalar_variables_expr): Pass to
25633         expand_scalar_variables_ssa_name the type of the resulting expression.
25634
25635 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25636
25637         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
25638         ppl_min_for_le_pointset.
25639         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
25640         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
25641
25642 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25643
25644         * graphite-dependences.c (map_into_dep_poly): Removed.
25645         (dependence_polyhedron_1): Use combine_context_id_scat.
25646
25647 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25648
25649         * graphite-poly.h (struct poly_scattering): Add layout documentation.
25650         (struct poly_bb): Same.
25651         (combine_context_id_scat): New.
25652
25653 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25654
25655         PR middle-end/42326
25656         * sese.c (name_defined_in_loop_p): Return false for default
25657         definitions.
25658
25659 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25660
25661         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
25662         and clean up the logic.
25663
25664 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25665
25666         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
25667         early return.
25668
25669 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
25670
25671         * var-tracking.c (remove_cselib_value_chains): Define only for
25672         ENABLE_CHECKING.
25673         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
25674         delete_slot_part, emit_notes_for_differences_1): Don't call
25675         remove_cselib_value_chains here.
25676         (set_slot_part, emit_notes_for_differences_2): Don't call
25677         add_cselib_value_chains here.
25678         (preserved_values): New vector.
25679         (preserve_value): New function.
25680         (add_uses, add_stores, vt_add_function_parameters): Use it
25681         instead of cselib_preserve_value.
25682         (changed_values_stack): New vector.
25683         (check_changed_vars_0): New function.
25684         (check_changed_vars_1, check_changed_vars_2): Use it.
25685         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
25686         changed_values_stack VALUEs.
25687         (vt_emit_notes): For all preserved_values call
25688         add_cselib_value_chains.  If ENABLE_CHECKING call
25689         remove_cselib_value_chains before verifying value_chains is empty.
25690         Initialize and free changed_values_stack.
25691         (vt_initialize): Initialize preserved_values.
25692         (vt_finalize): Free preserved_values.
25693
25694 2010-03-08  Richard Guenther  <rguenther@suse.de>
25695
25696         PR tree-optimization/43269
25697         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
25698         region detection.
25699
25700 2010-03-08  Martin Jambor  <mjambor@suse.cz>
25701
25702         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
25703         (ipa_is_param_called): Removed.
25704         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
25705         (ipa_print_node_params): Do not print the called flag.
25706         (ipa_write_node_info): Do not stream the called flag.
25707         (ipa_read_node_info): Likewise.
25708
25709 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
25710
25711         PR debug/43176
25712         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
25713         * cselib.c (struct expand_value_data): Add dummy field.
25714         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
25715         dummy to false.
25716         (cselib_dummy_expand_value_rtx_cb): New function.
25717         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
25718         any rtl.
25719         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
25720         * var-tracking.c: Include pointer-set.h.
25721         (variable): Change n_var_parts to char from int.  Add
25722         cur_loc_changed and in_changed_variables fields.
25723         (variable_canonicalize): Remove.
25724         (shared_var_p): New inline function.
25725         (unshare_variable): Maintain cur_loc_changed and
25726         in_changed_variables fields.  If var was in changed_variables,
25727         replace it there with new_var.  Just copy cur_loc instead of
25728         resetting it to something else.
25729         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
25730         (dataflow_set_union): Don't call variable_canonicalize.
25731         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
25732         of their DEBUG_EXPR_TREE_DECLs.
25733         (canonicalize_loc_order_check): Verify that cur_loc is NULL
25734         and in_changed_variables and cur_loc_changed is false.
25735         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
25736         and cur_loc_changed.  Don't update cur_loc here.
25737         (variable_merge_over_src): Don't call variable_canonicalize.
25738         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
25739         removing loc that is equal to cur_loc, clear cur_loc,
25740         set cur_loc_changed and ensure variable_was_changed is called.
25741         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
25742         compare pointers in cur_loc check, if it is equal to loc,
25743         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
25744         (variable_different_p): Remove compare_current_location argument,
25745         don't compare cur_loc.
25746         (dataflow_set_different_1): Adjust variable_different_p caller.
25747         (variable_was_changed): If dv had some var in changed_variables
25748         already, reset in_changed_variables flag for it and propagate
25749         cur_loc_changed over to the new variable.  On empty var
25750         always set cur_loc_changed.  Set in_changed_variables on whatever
25751         var is added to changed_variables.
25752         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
25753         Use shared_var_p.  When removing loc that is equal to cur_loc,
25754         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
25755         end, don't set it to something else, just call variable_was_changed.
25756         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
25757         loc being removed, clear cur_loc and set cur_loc_changed.
25758         Set cur_loc_changed if all locations have been removed.
25759         (struct expand_loc_callback_data): New type.
25760         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
25761         allocated.  Always create SUBREGs if simplify_subreg failed.
25762         Prefer to use cur_loc, when that fails and still in
25763         changed_variables (and seen first time) recompute it.  Set
25764         cur_loc_changed of variables which had to change cur_loc and
25765         compute elcd->cur_loc_changed if any of the subexpressions used
25766         had to change cur_loc.
25767         (vt_expand_loc): Adjust to pass arguments in
25768         expand_loc_callback_data structure.
25769         (vt_expand_loc_dummy): New function.
25770         (emitted_notes): New variable.
25771         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
25772         that weren't used for any other decl in current
25773         emit_notes_for_changes call call vt_expand_loc_dummy to update
25774         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
25775         first loc_chain location if NULL before.  Always use just
25776         cur_loc instead of first loc_chain location.  When cur_loc_changed
25777         is false, when not --enable-checking=rtl just don't emit any note.
25778         When rtl checking, compute the note and assert it is the same
25779         as previous note.  Clear cur_loc_changed and in_changed_variables
25780         at the end before removing from changed_variables.
25781         (check_changed_vars_3): New function.
25782         (emit_notes_for_changes): Traverse changed_vars to call
25783         check_changed_vars_3 on each changed var.
25784         (emit_notes_for_differences_1): Clear cur_loc_changed and
25785         in_changed_variables.  Recompute cur_loc of new_var.
25786         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
25787         (vt_emit_notes): Initialize and destroy emitted_notes.
25788
25789 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
25790
25791         PR rtl-optimization/42220
25792         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
25793         Use verify_reg_tracked to determine if we should use OP_OUT rather
25794         than OP_INOUT.
25795         (build_def_use): If we see an in-out operand for a register that we
25796         know nothing about, treat is an output if possible, fail the block if
25797         not.
25798
25799 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
25800
25801         PR debug/42897
25802         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
25803         permanently.
25804
25805 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
25806
25807         PR debug/42897
25808         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
25809         uses of relevant DEFs that are dead outside the loop too.
25810
25811 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
25812
25813         * var-tracking.c (dataflow_set_merge): Swap src and src2.
25814         Reverted:
25815         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
25816         PR debug/41371
25817         * var-tracking.c (values_to_unmark): New variable.
25818         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
25819         values_to_unmark vector.  Moved body to...
25820         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
25821         instead queue it into values_to_unmark vector.
25822         (vt_find_locations): Free values_to_unmark vector.
25823
25824 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
25825
25826         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
25827         (site.exp): Export them when plugins are enabled.
25828
25829 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
25830
25831         PR middle-end/42326
25832         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
25833         that contain scevs.
25834         (chrec_fold_multiply): Same.
25835
25836 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
25837
25838         PR c/43248
25839         * c-decl.c (build_compound_literal): Return early if init is
25840         an error_mark_node.
25841
25842 2010-03-04  Martin Jambor  <mjambor@suse.cz>
25843
25844         PR tree-optimization/43164
25845         PR tree-optimization/43191
25846         * tree-sra.c (type_consists_of_records_p): Reject records with
25847         zero-size bit-fields at the end.
25848
25849 2010-03-04  Mike Stump  <mikestump@comcast.net>
25850
25851         * Makefile.in (TAGS): Remove *.y.
25852
25853 2010-03-04  Richard Guenther  <rguenther@suse.de>
25854
25855         PR tree-optimization/40761
25856         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
25857         in reverse order.
25858         (my_rev_post_order_compute): New function.
25859         (init_pre): Call it.
25860
25861 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
25862
25863         PR middle-end/43209
25864         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
25865         decrease the cost of an IV candidate when the cost is infinite.
25866
25867 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25868
25869         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
25870         Use '3DNow!' for the extension of that name, ensure normal space
25871         after the string.
25872         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
25873
25874 2010-03-03  Jeff Law  <law@redhat.com>
25875
25876         * PR middle-end/32693
25877         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
25878         than gen_rtx_SUBREG.
25879         (extract_bit_field_1): Likewise.
25880
25881 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
25882
25883         * doc/sourcebuild.texi (Test directives): Document that arguments
25884         include-opts and exclude-opts are now optional for dg-skip-if,
25885         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
25886
25887 2010-03-03  Jason Merrill  <jason@redhat.com>
25888
25889         PR c++/12909
25890         * cgraph.h (varpool_node): Add extra_name field.
25891         * varpool.c (varpool_extra_name_alias): New.
25892         (varpool_assemble_decl): Emit extra name aliases.
25893         (varpool_mark_needed_node): Look past an extra name alias.
25894         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
25895         * lto-streamer-in.c (lto_input_tree): Read it.
25896         * lto-streamer-out.c (output_unreferenced_globals): Write it.
25897
25898 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
25899
25900         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
25901         (sparc*-*-solaris2*): ...this.
25902
25903 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
25904
25905         PR debug/43229
25906         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
25907         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
25908         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
25909         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
25910
25911         PR debug/43237
25912         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
25913         fallthrough to default handling, just with want_address 0 instead of 2.
25914         For single element lists, add_AT_loc directly, otherwise create an
25915         artificial variable DIE and stick location list to it.
25916
25917         PR debug/43177
25918         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
25919         (VAL_EXPR_HAS_REVERSE): Define.
25920         (reverse_op): New function.
25921         (add_stores): For reversible operations add an extra MO_VAL_USE.
25922
25923 2010-03-02  Jason Merrill  <jason@redhat.com>
25924
25925         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
25926
25927 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
25928
25929         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
25930         (sparc64-*-linux*): Likewise.
25931         (sparc64-*-solaris2*): Include assembler files before linker ones.
25932         (sparc-*-solaris2*): Simplify and reorder to match previous case.
25933         * config/sparc/gas.h: Delete.
25934         * config/sparc/sol2-64.h: Add copyright notice.
25935         * config/sparc/sol2-gas-bi.h: Likewise.
25936         * config/sparc/sol2-gld.h: Likewise.
25937         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
25938         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
25939         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
25940         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
25941         (sparc_elf_asm_named_section): Rename into...
25942         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
25943
25944 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
25945
25946         * config/alpha/alpha.c (override_options): Fix -mtune error message.
25947
25948 2010-03-02  Jeff Law  <law@redhat.com>
25949
25950         PR middle-end/42431
25951         * reload1.c (rtx_p, substitute_stack): Declare.
25952         (substitute): Record addresses of changed rtxs.
25953         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
25954         Restore the original rtx when complete.
25955         (reload): Free subsitute_stack when complete.
25956
25957 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
25958
25959         * doc/gccint.texi (menu): Add Testsuites as a chapter.
25960         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
25961         new chapter.
25962         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
25963         LTO Testing, gcov Testing, profopt Testing, compat Testing,
25964         Torture Tests): Change from subsection to section.
25965
25966 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
25967             Steven Bosscher  <steven@gcc.gnu.org>
25968
25969         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
25970         instead of bb.
25971
25972 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
25973
25974         PR middle-end/42640
25975         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
25976         the assignment from the new induction variable to the assignment
25977         of the value from the original loop PHI function.
25978
25979 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
25980             Daniel Jacobowitz  <dan@codesourcery.com>
25981
25982         * doc/sourcebuild.texi (Test directives): Clarify options to
25983         dg-skip-if.
25984
25985 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25986
25987         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
25988         Disable cfi directives unless GCC and gas agree on using read-only
25989         .eh_frame sections for 64-bit.
25990         * configure: Regenerate.
25991
25992 2010-03-01  Richard Guenther  <rguenther@suse.de>
25993
25994         PR tree-optimization/43220
25995         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
25996         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
25997
25998 2010-03-01  Richard Guenther  <rguenther@suse.de>
25999             Martin Jambor  <mjambor@suse.cz>
26000
26001         PR middle-end/41250
26002         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
26003         gimplified parameters.
26004
26005 2010-03-01  Christian Bruel  <christian.bruel@st.com>
26006
26007         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
26008
26009 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
26010
26011         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
26012
26013 2010-03-01  Richard Guenther  <rguenther@suse.de>
26014
26015         PR middle-end/43213
26016         * expr.c (expand_assignment): Use the alias-oracle to tell
26017         if the rhs aliases the result decl.
26018
26019 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26020
26021         PR pch/14940
26022         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
26023         to sol_gt_pch_get_address.
26024         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
26025         64-bit, SPARC and x86.
26026         (sol_gt_pch_get_address): New function.
26027
26028 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
26029
26030         * toplev.h (inform_n, error_n): Declare.
26031         * diagnostic.c (inform_n, error_n): New function.
26032
26033 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
26034
26035         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
26036         has no rtl yet when processing local_decls, queue it and recheck
26037         if deferred stack allocation hasn't assigned it rtl.
26038
26039 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
26040
26041         * config/sh/sh.c (unspec_bbr_uid): New.
26042         (gen_block_redirect): Use it instead of INSN_UID.
26043         (gen_far_branch): Likewise.
26044
26045 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
26046
26047         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
26048         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
26049
26050 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26051
26052         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
26053         (Warning Options): -Wno-conversion-null is valid for
26054         Objective-C++ as well.
26055         * doc/tm.texi (Named Address Spaces): Likewise.
26056         * doc/plugins.texi (Plugins): Replace TABs with spaces.
26057         * doc/tree-ssa.texi (Tree SSA): Likewise.
26058
26059 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26060
26061         PR bootstrap/43202
26062         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
26063         by default.  Don't set the default arch for
26064         i[34567]86-*-darwin*|x86_64-*-darwin*.
26065
26066 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26067
26068         PR bootstrap/43202
26069         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
26070         default.  Set the default 32bit/64bit archs with $with_arch
26071         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
26072
26073 2010-02-27  Richard Guenther  <rguenther@suse.de>
26074
26075         PR tree-optimization/43186
26076         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
26077         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
26078         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
26079         unroller iterations.
26080
26081 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26082
26083         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
26084         required and i[34567]86-*-* targets don't support 64bit ISA.
26085
26086 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
26087
26088         PR ada/43096
26089         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
26090         the same alias set.
26091
26092 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
26093
26094         * config.gcc: Set the default arch at least to Prescott for
26095         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
26096         if SSE math is enabled.
26097
26098 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26099
26100         * diagnostic.c (diagnostic_initialize): Update.
26101         (diagnostic_report_diagnostic): Test inhibit_notes_p for
26102         informative notes.
26103         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
26104         (diagnostic_inhibit_notes): New.
26105         * toplev.c (process_options): inhibit notes with -fcompare-debug.
26106
26107 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26108
26109         PR c/20631
26110         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
26111         * doc/standards.texi: Likewise.
26112         * doc/extend.texi: Likewise.
26113         * doc/trouble.texi: Likewise.
26114         * doc/cppopts.texi: Likewise.
26115         * doc/install.texi: Likewise.
26116         * c.opt (std=c90,std=gnu90): New options.
26117         * c-opts.c (c_common_handle_option): Handle them.
26118
26119 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26120
26121         PR c/24577
26122         * c-decl.c (undeclared_variable): Use an informative note.
26123
26124 2010-02-26  Richard Guenther  <rguenther@suse.de>
26125
26126         PR tree-optimization/43186
26127         * gimple.h (gimple_fold): Remove.
26128         * gimple.c (gimple_fold): Remove.  Inline into single user ...
26129         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
26130         Try harder for conditions.
26131
26132 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
26133
26134         PR debug/43190
26135         * function.c (used_types_insert): Don't skip through named pointer
26136         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
26137         and it is different from the main variant's type.
26138
26139 2010-02-26  Nick Clifton  <nickc@redhat.com>
26140
26141         * config/rx/rx.md (sminsi3): Remove bogus alternative.
26142
26143 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
26144
26145         * config.gcc: Support --with-fpmath=sse for x86.
26146
26147         * config/i386/ssemath.h: New.
26148
26149         * doc/install.texi (--with-fpmath=sse): Documented.
26150
26151 2010-02-26  Richard Guenther  <rguenther@suse.de>
26152
26153         PR tree-optimization/43188
26154         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
26155         vector types of over-aligned element type.
26156
26157 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
26158
26159         PR target/43175
26160         * config/i386/i386.c (expand_vec_perm_blend): Use correct
26161         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
26162
26163 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
26164
26165         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
26166
26167 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
26168
26169         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
26170         * var-tracking.c: Include diagnostic.h.
26171         (debug_dv): New function.
26172         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
26173
26174         PR debug/43160
26175         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
26176         (add_value_chain, add_value_chains, remove_value_chain,
26177         remove_value_chains): Handle DEBUG_EXPRs.
26178         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
26179
26180         PR debug/43161
26181         * regcprop.c (struct queued_debug_insn_change): New type.
26182         (struct value_data_entry): Add debug_insn_changes field.
26183         (struct value_data): Add n_debug_insn_changes field.
26184         (debug_insn_changes_pool): New variable.
26185         (free_debug_insn_changes, apply_debug_insn_changes,
26186         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
26187         (kill_value_one_regno): Call free_debug_insn_changes if needed.
26188         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
26189         fields.
26190         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
26191         changes for them.
26192         (copyprop_hardreg_forward_1): Don't call apply_change_group for
26193         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
26194         changes, call cprop_find_used_regs via note_stores.
26195         (copyprop_hardreg_forward): When copying vd from predecessor
26196         which has any queued DEBUG_INSN changes, make sure the pointers are
26197         cleared.  At the end call df_analyze and then if there are any
26198         DEBUG_INSN changes queued at the end of some basic block for still
26199         live registers, apply them.
26200         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
26201
26202 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
26203
26204         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
26205         (arm*-*-*): Ditto.
26206
26207 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
26208
26209         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
26210         targets.  Set the default with_cpu/with_arch from arch/cpu.
26211         Allow x86-64 and native for with_cpu/with_arch.
26212
26213 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
26214
26215         * ebitmap.c: Change calls to verify_popcount with calls to
26216         sbitmap_verify_popcount.
26217         (ebitmap_clear_bit): Fixed map->cacheindex test and
26218         map>cache update when bit clearing results in an empty
26219         element.
26220
26221 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
26222
26223         PR target/43154
26224         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
26225         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
26226         and support both V2DF and V2DI modes.
26227         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
26228         support both V2DF and V2DI modes.
26229         (general): Delete trailing whitespace from a few patterns.
26230
26231         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26232         V2DF/V2DI interleave high/low builtins.
26233
26234         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
26235         new VSX builtins.
26236
26237         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
26238         interleave high/low functions.
26239
26240 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
26241
26242         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
26243         #pragma extern_prefix.
26244
26245 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
26246
26247         PR debug/43166
26248         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
26249         BLKmode, assert op0 is a MEM and just adjust its mode.
26250
26251         PR debug/43165
26252         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
26253         if bitpos isn't multiple of mode's bitsize.
26254
26255 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26256
26257         * c.opt (-ftemplate-depth=): New.
26258         (-ftemplate-depth-): Deprecate.
26259         * optc-gen.awk: Handle -ftemplate-depth=.
26260         * opth-gen.awk: Likewise.
26261         * c-opts.c (c_common_handle_option): Likewise.
26262         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
26263
26264 2010-02-24  Jason Merrill  <jason@redhat.com>
26265
26266         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
26267
26268 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26269
26270         * cfg.c (alloc_aux_for_block): Remove inline.
26271         (alloc_aux_for_edge): Likewise.
26272
26273 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26274
26275         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
26276
26277 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26278
26279         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
26280         * config/i386/sol2-gas.h: New file.
26281         * config.gcc (i[34567]86-*-solaris2*): Use it.
26282
26283 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26284
26285         PR c/43128
26286         * c-typeck.c (ep_convert_and_check): New.
26287         (build_conditional_expr): Use it.
26288         (build_binary_op): Likewise.
26289
26290 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
26291
26292         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
26293
26294         PR debug/43150
26295         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
26296         bounds even for -O+.
26297         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
26298         expr needs to have DECL_NAME set.
26299
26300 2010-02-24  Nick Clifton  <nickc@redhat.com>
26301
26302         * config/mep/mep.c: Include gimple.h.
26303         (mep_function_uses_sp): Delete unused function.
26304         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
26305         parameters.  Use unsigned integers to count args.  Return a
26306         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
26307
26308 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
26309
26310         PR target/43107
26311         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
26312         greater or equal to nelt instead of 2 * nelt.
26313         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
26314         with nelt - 1.
26315
26316 2010-02-23  Jason Merrill  <jason@redhat.com>
26317
26318         PR debug/42800
26319         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
26320         in cfun->local_decls even if they have register types.
26321
26322         PR c++/42837
26323         * stor-layout.c (place_field): Don't warn about unnecessary
26324         DECL_PACKED if the type is packed.
26325
26326 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
26327
26328         PR target/43139
26329         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
26330         GOTOFF relocs, even when the base reg isn't pic pointer.
26331
26332 2010-02-23  Michael Matz  <matz@suse.de>
26333
26334         PR debug/43077
26335         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
26336         (expand_gimple_basic_block): Generate and use debug temps if there
26337         are debug uses left after the last real use of TERed ssa names.
26338         Unlink debug immediate uses when they are expanded.
26339
26340 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26341
26342         PR 43123
26343         * config/i386/i386.c (override_options): Reorganise to provide
26344         better error messages.
26345
26346 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
26347
26348         PR middle-end/43083
26349         * graphite-scop-detection.c (create_single_exit_edge): Move
26350         the call to find_single_exit_edge to....
26351         (create_sese_edges): ...here.  Don't handle multiple edges
26352         exiting the function.
26353         (build_graphite_scops): Don't handle multiple edges
26354         exiting the function.
26355
26356 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
26357
26358         PR middle-end/43097
26359         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
26360         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
26361
26362 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
26363
26364         PR middle-end/43026
26365         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
26366
26367 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26368
26369         PR c++/43126
26370         * c-typeck.c (convert_arguments): Print declaration location.
26371         * c-common.c (validate_nargs): Rename as
26372         builtin_function_validate_nargs.
26373         (check_builtin_function_arguments): Update.
26374
26375 2010-02-22  Richard Guenther  <rguenther@suse.de>
26376
26377         PR lto/43045
26378         * tree-inline.c (declare_return_variable): Use the type of
26379         the call stmt lhs if available.
26380
26381 2010-02-22  Duncan Sands  <baldrick@free.fr>
26382
26383         * passes.c (register_pass): Always consider all pass lists when
26384         ref_pass_instance_number is zero.
26385
26386 2010-02-22  Richard Guenther  <rguenther@suse.de>
26387
26388         PR tree-optimization/42749
26389         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
26390         parameter.  Do arithmetic in the original type.
26391         (update_accumulator_with_ops): Likewise.
26392         (adjust_accumulator_values): Adjust.
26393
26394 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26395
26396         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
26397         (QI to BLKmode splitter): New splitter.
26398
26399 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
26400
26401         * config/i386/i386.c (initial_ix86_tune_features): Turn on
26402         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
26403
26404 2010-02-22  Richard Guenther  <rguenther@suse.de>
26405
26406         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
26407
26408 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
26409
26410         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
26411         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
26412         ($(T)crti.o, $(T)crtn.o): Remove rules.
26413
26414 2010-02-21  Tobias Burnus  <burnus@net-b.de>
26415
26416         PR fortran/35259
26417         * doc/invoke.texi (-fassociative-math): Document that this
26418         option is automatically enabled for Fortran.
26419
26420 2010-02-20  David S. Miller  <davem@davemloft.net>
26421
26422         * configure.ac: Test if linker and assembler properly support
26423         GOTDATA_OP relocations.
26424         * configure: Rebuild.
26425         * config.in: Likewise.
26426         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
26427         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
26428         (movsi_high_pic): Likewise.
26429         (movdi_lo_sum_pic): Likewise.
26430         (movdi_high_pic): Likewise.
26431         (movsi_pic_gotdata_op): New pattern.
26432         (movdi_pic_gotdata_op): Likewise.
26433         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
26434         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
26435
26436 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
26437
26438         PR target/43067
26439         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
26440         attribute to ssemul.
26441         (xop_mulv2div2di3_high): Ditto.
26442
26443 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26444
26445         PR c++/35669
26446         * c.opt (Wconversion-null): New option.
26447         * doc/invoke.texi (Wconversion-null): Document.
26448
26449 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26450
26451         * common.opt (Wlarger-than-): Add Undocumented.
26452
26453 2010-02-19  Mike Stump  <mikestump@comcast.net>
26454
26455         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
26456
26457 2010-02-19  Jason Merrill  <jason@redhat.com>
26458
26459         PR target/40332
26460         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
26461         * configure: Likewise.
26462
26463 2010-02-20  Alan Modra  <amodra@gmail.com>
26464
26465         PR middle-end/42344
26466         * cgraph.h (cgraph_make_decl_local): Declare.
26467         * cgraph.c (cgraph_make_decl_local): New function.
26468         (cgraph_make_node_local): Use it.
26469         * cgraphunit.c (cgraph_function_versioning): Likewise.
26470         * ipa.c (function_and_variable_visibility): Likewise.
26471
26472 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
26473
26474         PR bootstrap/43121
26475         * except.c (sjlj_emit_function_enter): Don't call
26476         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
26477         directly.
26478         * rtl.h (add_reg_br_prob_note): Remove prototype.
26479
26480 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26481
26482         PR 41779
26483         * c-common.c (conversion_warning): Remove widening conversions
26484         before checking the conversion of integers to reals.
26485
26486 2010-02-19  Mike Stump  <mikestump@comcast.net>
26487
26488         PR middle-end/43125
26489         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
26490
26491         PR objc/43061
26492         * cgraphunit.c (process_function_and_variable_attributes): Check
26493         DECL_PRESERVE_P instead of looking up attribute "used".
26494         * ipa-pure-const.c (check_decl): Likewise.
26495         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
26496         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
26497         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
26498         instead of attribute "used".
26499         * config/sol2-c.c (solaris_pragma_init): Likewise.
26500         (solaris_pragma_fini): Likewise.
26501
26502 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
26503
26504         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
26505         Use XCNEW instead of xcalloc.
26506         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
26507         XNEW instead of xmalloc.
26508         (get_fields): Use XNEWVEC instead of xmalloc.
26509
26510         PR debug/43084
26511         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
26512         populate vars array.
26513         (create_new_general_access): For debug stmts just reset value.
26514         (get_stmt_accesses): For accesses within debug stmts just record them
26515         using add_access_to_acc_sites instead of preventing the peeling or
26516         counting them as accesses.
26517
26518         PR middle-end/42233
26519         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
26520
26521 2010-02-19  Richard Guenther  <rguenther@suse.de>
26522
26523         PR tree-optimization/42916
26524         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
26525         instructions.
26526
26527 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
26528
26529         * configure.ac: Replace all uses of changequote in macro arguments
26530         with proper quoting.
26531
26532 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
26533
26534         PR middle-end/42233
26535         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
26536
26537 2010-02-19  Richard Guenther  <rguenther@suse.de>
26538
26539         PR tree-optimization/42944
26540         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
26541         test for aliasing with errno.
26542
26543 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
26544
26545         PR middle-end/42233
26546         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
26547         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
26548         * dojump.c: Include output.h.
26549         (inv): New inline function.
26550         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
26551         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
26552         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
26553         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
26554         argument, pass it down to other calls.
26555         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
26556         add REG_BR_PROB note to the conditional jump.
26557         * cfgexpand.c (add_reg_br_prob_note): Removed.
26558         (expand_gimple_cond): Don't call it, add the probability
26559         as last argument to jumpif_1/jumpifnot_1.
26560         * Makefile.in (dojump.o): Depend on output.h.
26561         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
26562         callers.
26563         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
26564         * stmt.c (do_jump_if_equal): Likewise.
26565         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
26566         * loop-unswitch.c (compare_and_jump_seq): Likewise.
26567         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
26568         Likewise.
26569         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
26570         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
26571         jumpifnot_1 callers.
26572         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
26573         callers.
26574         (store_expr): Adjust jumpifnot caller.
26575         (store_constructor): Adjust jumpif caller.
26576
26577         PR middle-end/42233
26578         * gimplify.c (gimple_boolify): For __builtin_expect call
26579         gimple_boolify also on its first argument.
26580
26581 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
26582
26583         * configure.ac (gnu-unique-object): Wrap regexps using [] in
26584         changequote block.
26585         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
26586         * configure: Regenerated.
26587
26588 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26589
26590         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
26591         lang_hooks.types_compatible_p instead of comptypes.
26592
26593 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26594
26595         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
26596         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
26597         if __prefer_thumb__ is defined.
26598
26599 2010-02-18  Martin Jambor  <mjambor@suse.cz>
26600
26601         PR tree-optimization/43066
26602         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
26603         array with zero-sized element type.
26604
26605 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
26606
26607         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
26608         rtx, allocate struct var_loc_node here and return it to the
26609         caller, and only if it is actually needed.
26610         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
26611         move it earlier and return immediately if it returns NULL.
26612
26613 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
26614
26615         * config/sparc/gas.h: New file.  Restore
26616         TARGET_ASM_NAMED_SECTION to its ELF default.
26617         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
26618         check !HAVE_GNU_AS.
26619         * config/sparc/sparc.c (sparc_elf_asm_named_section):
26620         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
26621         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
26622         after sparc/sysv4.h.
26623
26624 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
26625
26626         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
26627
26628 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
26629
26630         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
26631         patterns from predicated pattern.
26632
26633 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
26634
26635         PR target/43103
26636         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
26637         for insn mnemonic suffix.
26638
26639 2010-02-17  Richard Guenther  <rguenther@suse.de>
26640
26641         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
26642         to loop PHI nodes.
26643
26644 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
26645
26646         PR debug/42918
26647         * caller-save.c (save_call_clobbered_regs): If BB ends with
26648         a DEBUG_INSN, move any notes in between last real insn and the last
26649         DEBUG_INSN after the last DEBUG_INSN.
26650
26651 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
26652
26653         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
26654         Fix return type.  Fix argument type.  Explain meaning of return value.
26655
26656 2010-02-16  Richard Guenther  <rguenther@suse.de>
26657
26658         PR tree-optimization/41043
26659         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
26660         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
26661         statements ...
26662         (vrp_visit_phi_node): ... but only for loop PHI nodes.
26663
26664 2010-02-16  Ira Rosen  <irar@il.ibm.com>
26665
26666         PR tree-optimization/43074
26667         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
26668         * tree-vect-loop.c (vect_analyze_loop_operations): Add
26669         vectorizable cycles in hybrid SLP check.
26670         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
26671
26672 2010-02-16  Richard Guenther  <rguenther@suse.de>
26673
26674         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
26675         (true_dependence): If memrefs_conflict_p computes must-alias
26676         trust it.  Move TBAA check after offset-based disambiguation.
26677         (canon_true_dependence): Likewise.
26678
26679 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
26680
26681         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
26682         * doc/invoke.texi: Document it.
26683         * var-tracking.c: Include toplev.h and params.h.
26684         (vt_find_locations): Return bool indicating success.  Compute
26685         hash sizes unconditionally.  Check new parameter, report.
26686         (variable_tracking_main_1): Check vt_find_locations results and
26687         retry.  Renamed from...
26688         (variable_tracking_main): ... this.  New wrapper to preserve
26689         flag_var_tracking_assignments.
26690         * Makefile.in (var-tracking.o): Adjust dependencies.
26691
26692 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
26693             Jakub Jelinek  <jakub@redhat.com>
26694
26695         PR target/42854
26696         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
26697         if weak_import attribute is present.
26698         * config/darwin.c (machopic_select_section): Likewise.
26699
26700 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
26701
26702         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
26703         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
26704         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
26705         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
26706
26707         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
26708         types.
26709
26710         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
26711         Fix argument types.
26712
26713         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
26714         Rewrite text to refer to the names.
26715
26716 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
26717
26718         * config/i386/i386-builtin-types.def
26719         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
26720         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
26721         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
26722         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
26723         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
26724         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
26725         IX86_BUILTIN_VPERMIL2PS256.
26726         (MULTI_ARG_4_DF2_DI_I): Defined.
26727         (MULTI_ARG_4_DF2_DI_I1): Defined.
26728         (MULTI_ARG_4_SF2_SI_I): Defined.
26729         (MULTI_ARG_4_SF2_SI_I1): Defined.
26730         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
26731         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
26732         __builtin_ia32_vpermil2ps256.
26733         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
26734         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
26735         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
26736         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
26737         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
26738         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
26739         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
26740         CODE_FOR_xop_vpermil2v8sf3.
26741         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
26742         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
26743         * config/i386/xopintrin.h (_mm_permute2_pd): New.
26744         (_mm256_permute2_pd): New.
26745         (_mm_permute2_ps): New.
26746         (_mm256_permute2_ps): New.
26747
26748 2010-02-15  Nick Clifton  <nickc@redhat.com>
26749
26750         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
26751         boolean parameters.  Use emit_jump_insn when emitting a pop
26752         instruction containing a return insn.
26753         (push): Use 'true' rather than '1' as second parameter to F.
26754         (h8300_expand_prologue): Likewise.
26755         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
26756         (h8300_expand_epilogue): Likewise.
26757
26758 2010-02-15  Richard Guenther  <rguenther@suse.de>
26759
26760         PR middle-end/43068
26761         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
26762         if that is zero.
26763
26764 2010-02-15  Nick Clifton  <nickc@redhat.com>
26765
26766         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
26767         delta.
26768
26769 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
26770
26771         * intl.c (fake_ngettext): New function.
26772         * intl.h (fake_ngettext): Declare.
26773         (ngettext): Define macro.
26774         * collect2.c (notice_translated): New function.
26775         (main): Use notice_translated and ngettext.
26776         * collect2.h (notice_translated): Declare.
26777
26778 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
26779
26780         * reorg.c (delete_computation): Comment fixes.
26781         * caller-save.c (setup_save_areas): Idem.
26782         * sel-sched-dump.c (dump_lv_set): Idem.
26783         * rtl.def: Idem.
26784
26785 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26786
26787         * config/s390/s390.c (s390_sched_init): New function.
26788         (TARGET_SCHED_INIT): Target hook defined.
26789
26790 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
26791             Jack Howarth  <howarth@bromo.med.uc.edu>
26792             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
26793
26794         PR target/42982
26795         Partial revert of unintended change in fix for PR41605.
26796         * config/darwin.h: Fix typo.
26797         * config/darwin9.h: Same.
26798
26799 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
26800
26801         * c-pch.c (pch_init): Clear v.
26802
26803 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
26804
26805         PR middle-end/42930
26806         * graphite-scop-detection.c (graphite_can_represent_scev): Call
26807         graphite_can_represent_init for MULT_EXPR.
26808
26809 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
26810
26811         PR middle-end/42914
26812         PR middle-end/42530
26813         * graphite-sese-to-poly.c (remove_phi): New.
26814         (translate_scalar_reduction_to_array): Call remove_phi.
26815
26816 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
26817
26818         PR middle-end/42771
26819         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
26820         * graphite-clast-to-gimple.h (gloog): Update declaration.
26821         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
26822         * graphite-poly.h (struct poly_bb): Add missing comments.
26823         (struct scop): Add poly_scop_p field.
26824         (POLY_SCOP_P): New.
26825         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
26826         * graphite.c (graphite_transform_loops): Build the polyhedral
26827         representation for each scop before code generation.
26828         * sese.c (rename_variables_in_operand): Removed.
26829         (rename_variables_in_expr): Return the renamed expression.
26830         (rename_sese_parameters): New.
26831         * sese.h (rename_sese_parameters): Declared.
26832
26833 2010-02-11  Richard Guenther  <rguenther@suse.de>
26834
26835         PR tree-optimization/42998
26836         * tree-ssa-pre.c (create_expression_by_pieces): Treat
26837         POINTER_PLUS_EXPR properly.
26838
26839 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
26840             Changpeng Fang  <changpeng.fang@amd.com>
26841
26842         PR middle-end/40886
26843         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
26844         the cost of an IV candidate when the IV is used in a test against zero.
26845
26846         * gcc.dg/tree-ssa/ivopts-3.c: New.
26847
26848 2010-02-11  Richard Guenther  <rguenther@suse.de>
26849
26850         PR lto/41664
26851         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
26852         pointer-vs-decl case by swapping refs.  Handle some cases
26853         of pointer-vs-decl disambiguations more conservatively.
26854         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
26855         to false after expanding.
26856
26857 2010-02-11  Richard Guenther  <rguenther@suse.de>
26858
26859         PR driver/43021
26860         * gcc.c (process_command): Handle LTO file@offset case more
26861         appropriately.
26862
26863 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
26864
26865         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
26866         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
26867         of DEBUG_INSNs.
26868         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
26869
26870         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
26871         if MEM's mode size isn't DWARF2_ADDR_SIZE.
26872         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
26873         Optimize eq/ne comparisons when both arguments are known to be
26874         zero-extended.
26875         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
26876         Don't mask operands unnecessarily if they are known to be already
26877         zero-extended.
26878
26879 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
26880
26881         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
26882         instead of loop.
26883
26884 2010-02-10  Richard Guenther  <rguenther@suse.de>
26885
26886         PR tree-optimization/43017
26887         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
26888         for wrapping signed arithmetic.
26889
26890 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
26891
26892         PR debug/43010
26893         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
26894         if no debug info should be emitted for it.
26895
26896 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
26897
26898         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
26899         note when flag_exceptions is set.
26900
26901 2010-02-10  Duncan Sands  <baldrick@free.fr>
26902
26903         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
26904
26905 2010-02-10  Richard Guenther  <rguenther@suse.de>
26906
26907         PR c/43007
26908         * tree.c (get_unwidened): Handle constants.
26909         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
26910
26911 2010-02-10  Martin Jambor  <mjambor@suse.cz>
26912
26913         PR lto/42985
26914         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
26915         check for variable argument counts independently.
26916
26917 2010-02-10  Christian Bruel  <christian.bruel@st.com>
26918
26919         PR target/42841
26920         * config/sh/sh.c (find_barrier): Increase length for non delayed
26921         conditional branches.
26922
26923 2010-02-10  Christian Bruel  <christian.bruel@st.com>
26924
26925         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
26926
26927 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
26928
26929         * builtins.c (set_builtin_user_assembler_name): Also handle
26930         ffs if int is smaller than word.
26931
26932 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
26933
26934         PR middle-end/42973
26935         * ira-conflicts.c (get_dup): Remove.
26936         (process_reg_shuffles): Add new parameter.  Use it as an
26937         additional guard for copy generation.
26938         (add_insn_allocno_copies): Rewrite.
26939
26940 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
26941
26942         * common.opt (fsched2-use-traces): Preserved for backward
26943         compatibility.
26944         * doc/invoke.texi: Remove the documentation about option
26945         -fsched2-use-traces.
26946         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
26947         flag_sched2_use_traces.
26948         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
26949         the backward compatibility flag section.
26950
26951 2010-02-09  Richard Guenther  <rguenther@suse.de>
26952
26953         PR tree-optimization/43008
26954         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
26955         make HEAP variables initialized from global memory if they
26956         are not known builtin functions.
26957         (find_func_aliases): Adjust.
26958
26959 2010-02-09  Richard Guenther  <rguenther@suse.de>
26960
26961         PR tree-optimization/43000
26962         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
26963         arithmetic manually.
26964
26965 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
26966
26967         PR tree-optimization/42931
26968         * tree-loop-linear.c (try_interchange_loops): Don't call
26969         double_int_mul if estimated_loop_iterations failed.
26970
26971 2010-02-08  Martin Jambor  <mjambor@suse.cz>
26972
26973         PR middle-end/42898
26974         * tree-sra.c (build_accesses_from_assign): Do not mark in
26975         should_scalarize_away_bitmap if stmt has volatile ops.
26976         (sra_modify_assign): Do not process assigns piecemeal if if stmt
26977         has volatile ops.
26978
26979 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
26980
26981         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
26982
26983 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
26984
26985         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
26986         before the pattern.
26987
26988 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
26989
26990         PR middle-end/42946
26991         * df-core.c (df_finish_pass): Change type of saved_flags to int.
26992
26993 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
26994
26995         PR middle-end/42988
26996         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
26997         to unknown_dependence.
26998         (graphite_legal_transform_dr): Handle the unknown_dependence.
26999         (graphite_carried_dependence_level_k): Same.
27000
27001 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
27002
27003         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
27004
27005 2010-02-07  Richard Guenther  <rguenther@suse.de>
27006
27007         PR middle-end/42991
27008         * expr.c (get_inner_reference): Always initialize *pbitsize.
27009
27010 2010-02-07  Richard Guenther  <rguenther@suse.de>
27011
27012         PR middle-end/42956
27013         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
27014         new ARRAY_REFs on variable size element or minimal index arrays.
27015         Complete.
27016         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
27017         gimple_fold_indirect_ref.
27018
27019 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
27020
27021         PR target/42957
27022         * arm.c (arm_override_options): Just return if the user has specified
27023         an invalid fpu name.
27024
27025 2010-02-03  Jason Merrill  <jason@redhat.com>
27026
27027         PR c++/42870
27028         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
27029         i386_pe_maybe_record_exported_symbol.
27030
27031 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
27032
27033         PR target/42924
27034         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
27035         (pa_delegitimize_address): New function.
27036
27037 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
27038
27039         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
27040         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
27041
27042 2010-02-05  Richard Guenther  <rguenther@suse.de>
27043
27044         PR lto/42762
27045         * lto-streamer-in.c (get_resolution): Deal with references
27046         to undefined functions.
27047
27048 2010-02-05  Richard Guenther  <rguenther@suse.de>
27049
27050         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
27051         (fold_const_aggregate_ref): Likewise.
27052         (ccp_fold_stmt): Substitute loads.
27053         (maybe_fold_reference): Verify types before substituting.
27054         Unshare properly.
27055         (fold_gimple_assign): Unshare properly.
27056         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
27057
27058 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
27059
27060         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
27061         for rs6000_gen_cell_microcode.
27062
27063 2010-02-04  Richard Guenther  <rguenther@suse.de>
27064
27065         PR rtl-optimization/42952
27066         * dse.c (const_or_frame_p): Remove MEM handling.
27067
27068 2010-02-04  Nick Clifton  <nickc@redhat.com>
27069
27070         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
27071         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
27072         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
27073         (mn10300_asm_output_mi_thunk): New function.
27074         (mn10300_can_output_mu_thunk): New function.
27075         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
27076         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
27077         (FUNCTION_ARG): Delete incorrect comment.
27078
27079 2010-02-03  Jason Merrill  <jason@redhat.com>
27080
27081         PR c++/40138
27082         * fold-const.c (operand_equal_p): Handle erroneous types.
27083
27084 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
27085
27086         * config/h8300/h8300.md (can_delay): Fix attibute condition.
27087
27088 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
27089
27090         PR rtl-optimization/42941
27091         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
27092         of xmalloc.
27093
27094 2010-02-03  Jason Merrill  <jason@redhat.com>
27095
27096         PR c++/35652
27097         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
27098
27099 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
27100
27101         PR debug/42896
27102         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
27103         (cselib_reset_table): Renamed from...
27104         (cselib_reset_table_with_next_value): ... this.
27105         (cselib_get_next_uid): Renamed from...
27106         (cselib_get_next_unknown_value): ... this.
27107         * cselib.c (next_uid): Renamed from...
27108         (next_unknown_value): ... this.
27109         (cselib_clear_table): Adjust.
27110         (cselib_reset_table): Adjust.  Renamed from...
27111         (cselib_reset_table_with_next_value): ... this.
27112         (cselib_get_next_uid): Adjust.  Renamed from...
27113         (cselib_get_next_unknown_value): ... this.
27114         (get_value_hash): Use hash.
27115         (cselib_hash_rtx): Likewise.
27116         (new_cselib_val): Adjust.  Set and dump uid.
27117         (cselib_lookup_mem): Pass next_uid as hash.
27118         (cselib_subst_to_values): Likewise.
27119         (cselib_log_lookup): Dump uid.
27120         (cselib_lookup): Pass next_uid as hash.  Adjust.
27121         (cselib_process_insn): Adjust.
27122         (cselib_init): Initialize next_uid.
27123         (cselib_finish): Adjust.
27124         (dump_cselib_table): Likewise.
27125         * dse.c (canon_address): Dump value uid.
27126         * print-rtl.c (print_rtx): Print value uid.
27127         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
27128         (dvuid): New type.
27129         (dv_uid): New function, sort of renamed from...
27130         (dv_htab_hash): ... this, reimplemented in terms of it and...
27131         (dv_uid2hash): ... this.  New.
27132         (variable_htab_eq): Drop excess assertions.
27133         (tie_break_pointers): Removed.
27134         (canon_value_cmp): Compare uids.
27135         (variable_post_merge_New_vals): Print uids.
27136         (vt_add_function_parameters): Adjust.
27137         (vt_initialize): Reset table.  Adjust.
27138
27139 2010-02-03  Richard Guenther  <rguenther@suse.de>
27140
27141         PR tree-optimization/42944
27142         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
27143         (call_may_clobber_ref_p_1): Likewise.  Properly handle
27144         malloc and calloc clobbering errno.
27145
27146 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
27147
27148         * doc/invoke.texi: Fix name of sched1 dump.
27149
27150         * opts.c (decode_options): Set flag_tree_switch_conversion
27151         only conditionally on optimize >= 2.
27152
27153         * gcse.c: Assorted comment fixes in pass description.
27154
27155 2010-02-03  Anthony Green  <green@moxielogic.com>
27156
27157         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
27158         nop padding in order to maintain alignment of storage location of
27159         target function address.
27160         (moxie_trampoline_init): Store target function address at newly
27161         aligned location.
27162         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
27163         to 32.
27164         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
27165
27166 2010-02-03  Richard Guenther  <rguenther@suse.de>
27167
27168         PR middle-end/42927
27169         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
27170
27171 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27172
27173         * config.gcc: Reenable check for obsolete targets.
27174         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
27175         mips-sgi-irix6.[0-4]*.
27176
27177 2010-02-02  Nick Clifton  <nickc@redhat.com>
27178
27179         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
27180         constant size of 4 as being the same as 0.
27181         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
27182         can take values in the range 0..4.
27183
27184 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
27185
27186         PR java/41991
27187         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
27188         as _darwin10_Unwind_FindEnclosingFunction().
27189         * libgcc-libsystem.ver: New.
27190
27191 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
27192
27193         PR target/41399
27194         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
27195         implicitly set registers.
27196
27197 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
27198
27199         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
27200         (arm_override_options): Allow automatic selection of the thread
27201         pointer register if thumb2.
27202         (legitimize_pic_address): Improve code sequences for Thumb2.
27203         (arm_call_tls_get_addr): Likewise.
27204         (legitimize_tls_address): Likewise.
27205         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
27206         (pic_load_addr_32bit): ... this.  New named pattern.
27207         * thumb2.md (pic_load_addr_thumb2): Delete.
27208         (pic_load_dot_plus_four): Delete.
27209         (tls_load_dot_plus_four): New named pattern.
27210
27211 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27212
27213         PR libgomp/29986
27214         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
27215         Document fix for TLS bug.
27216
27217 2010-01-31  Richard Guenther  <rguenther@suse.de>
27218
27219         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
27220         conservatively correct.
27221
27222 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27223
27224         PR target/42850
27225         Revert:
27226         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27227
27228         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
27229
27230 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27231
27232         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
27233
27234 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
27235
27236         * config.gcc: Adjust order of makefile fragments for mingw targets.
27237
27238 2010-01-31  Richard Guenther  <rguenther@suse.de>
27239
27240         PR middle-end/42898
27241         * gimplify.c (gimplify_init_constructor): For volatile LHS
27242         initialize a temporary.
27243
27244 2010-01-31  Matthias Klose  <doko@ubuntu.com>
27245
27246         * configure.ac: Fix __stack_chk_fail check for cross builds configured
27247         --with-headers
27248         * configure: Regenerate.
27249
27250 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
27251
27252         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
27253         the same alias set and their sizes different constantness.
27254         (aliasing_component_refs_p): Revert 2009-10-24 change.
27255
27256 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27257
27258         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
27259         unused.
27260
27261 2010-01-29  Richard Guenther  <rguenther@suse.de>
27262
27263         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
27264         Assert we successfully updated the call.
27265
27266 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
27267
27268         PR rtl-optimization/42889
27269         * df.h (df_set_bb_dirty_nonlr): New prototype.
27270         * df-core.c (df_set_bb_dirty_nonlr): New function.
27271         * df-scan.c (df_insn_rescan): Call it instead of
27272         df_set_bb_dirty for DEBUG_INSNs.
27273
27274 2010-01-29  Richard Guenther  <rguenther@suse.de>
27275
27276         PR middle-end/37448
27277         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
27278         quadratic behavior in most cases.
27279
27280 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
27281
27282         PR target/42891
27283         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
27284         in the call to gen_x86_movsicc_0_m1.
27285
27286 2010-01-28  Richard Guenther  <rguenther@suse.de>
27287
27288         PR tree-optimization/42871
27289         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
27290
27291 2010-01-28  Richard Guenther  <rguenther@suse.de>
27292
27293         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
27294         into call arguments.
27295
27296 2010-01-28  Richard Guenther  <rguenther@suse.de>
27297
27298         PR middle-end/42883
27299         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
27300         the forwarder if the destination is an EH landing pad.
27301
27302 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
27303
27304         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
27305         block list passed to gimple_duplicate_sese_tail.
27306         (parallelize_loops): Avoid parallelization when the function
27307         has_nonlocal_label.
27308         Avoid parallelization when the preheader is IRREDUCIBLE.
27309         Try to optimize when estimated_loop_iterations_int is unresolved.
27310         Add the loop's location to the dump file.
27311         * tree-cfg.c (add_phi_args_after_redirect): Remove.
27312         (gimple_duplicate_sese_tail): Remove the check for the latch.
27313         Redirect nexits to the exit block.
27314         Remove handling of the incoming edges to the latch.
27315         Redirect the backedge from the copied latch to the exit bb.
27316
27317 2010-01-28  Michael Matz  <matz@suse.de>
27318
27319         PR target/42881
27320         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
27321         Wrap force_reg into a sequence, emit it before user.
27322
27323 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
27324
27325         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
27326         (arm_rev): New.
27327         (arm_legacy_rev): Likewise.
27328         (thumb_legacy_rev): Likewise.
27329
27330 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
27331
27332         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
27333         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
27334         on MEM's address failed, try avoid_constant_pool_reference and
27335         recurse if it returned something different.
27336         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
27337         address, try avoid_constant_pool_reference and recurse if it
27338         returned something different.
27339         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
27340         address and avoid_constant_pool_reference returned something
27341         different, don't set have_address.
27342
27343 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
27344
27345         PR debug/42861
27346         * var-tracking.c (val_store): Add modified argument, obey it.
27347         Adjust callers.
27348         (count_uses): Move down logging of main.
27349         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
27350         don't need resolution.
27351         (emit_notes_in_bb): Likewise.
27352
27353 2010-01-27  Richard Guenther  <rguenther@suse.de>
27354
27355         PR middle-end/42878
27356         * tree-inline.c (remap_decl): Delay remapping of SSA name
27357         default definitions until we need them.
27358
27359 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
27360
27361         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
27362         (rs6000_delegitimize_address): New function.
27363
27364         * config/s390/s390.c (s390_delegitimize_address): Call
27365         delegitimize_mem_from_attrs.
27366
27367         PR middle-end/42874
27368         * tree-inline.c (cannot_copy_type_1): Removed.
27369         (copy_forbidden): Don't forbid copying of functions containing
27370         records/unions with variable length fields.
27371
27372 2010-01-27  Christian Bruel  <christian.bruel@st.com>
27373
27374         Revert:
27375         PR target/42841
27376         * config/sh/sh.c (find_barrier): Increase length for non delayed
27377         conditional branches.
27378
27379 2010-01-27  Matthias Klose  <doko@ubuntu.com>
27380
27381         * configure.ac (gnu-unique-object): Fix ldd version check.
27382         * configure: Regenerate.
27383
27384 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27385
27386         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
27387         HAVE_GNU_AS value.
27388         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
27389         Test for HAVE_GNU_AS value.
27390
27391 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27392
27393         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
27394         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
27395         INT64_TYPE): Define.
27396         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
27397         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
27398         INT_LEAST64_TYPE): Define.
27399         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
27400         UINT_LEAST64_TYPE): Define.
27401         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
27402         INT_FAST64_TYPE): Define.
27403         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
27404         UINT_FAST64_TYPE): Define.
27405         (INTMAX_TYPE, UINTMAX_TYPE): Define.
27406         (INTPTR_TYPE, UINTPTR_TYPE): Define.
27407         (SIG_ATOMIC_TYPE): Define.
27408
27409 2010-01-26  Richard Guenther  <rguenther@suse.de>
27410
27411         * df-scan.c (df_scan_set_bb_info): Remove assert.
27412         (df_insn_rescan_debug_internal): Merge asserts.
27413         (df_install_ref): Likewise.
27414         (df_mark_reg): Use bitmap_set_range.
27415         (df_hard_reg_used_p): Remove assert.
27416         (df_hard_reg_used_count): Likewise.
27417
27418 2010-01-26  Richard Guenther  <rguenther@suse.de>
27419
27420         PR rtl-optimization/42685
27421         * web.c (web_main): Ignore DEBUG_INSNs.
27422
27423 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
27424
27425         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
27426
27427         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
27428         Fix types of fndecl and arglist parameters.
27429
27430 2010-01-26  Richard Guenther  <rguenther@suse.de>
27431
27432         PR middle-end/42806
27433         * tree-eh.c (unsplit_eh): Skip debug insns.
27434
27435 2010-01-26  Richard Guenther  <rguenther@suse.de>
27436
27437         PR tree-optimization/42250
27438         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
27439
27440 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
27441
27442         PR fortran/42866
27443         * omp-low.c (expand_omp_sections): Only use single_pred if
27444         l2_bb is single_pred_p.
27445
27446 2010-01-25  Christian Bruel  <christian.bruel@st.com>
27447
27448         PR target/42841
27449         * config/sh/sh.c (find_barrier): Increase length for non delayed
27450         conditional branches.
27451         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
27452
27453 2010-01-24  David S. Miller  <davem@davemloft.net>
27454
27455         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
27456         define if not using GAS.
27457         * config/sparc/sparc.c (sparc_elf_asm_named_section):
27458         Likewise.  Delete SECTION_MERGE code, which is only applicable
27459         when using GAS.
27460
27461 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
27462
27463         PR c++/42748
27464         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
27465         mangling of va_list in system headers.
27466
27467 2010-01-23  Toon Moene  <toon@moene.org>
27468
27469         * tree-predcom.c (combine_chains): Return NULL, not false.
27470
27471 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
27472
27473         * tree-loop-distribution.c (distribute_loop): Fix declaration and
27474         initialization of variable res to agree with return type.
27475
27476 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
27477
27478         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
27479         * tree-sra.c: Add include of expr.h.
27480
27481 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
27482
27483         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
27484         insert the debug stmt on the single non-EH edge from the stmt.
27485
27486 2010-01-22  Richard Henderson  <rth@redhat.com>
27487
27488         PR tree-opt/42833
27489         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
27490         the RHS until after generate_subtree_copies has insertted its
27491         code before the current statement.
27492
27493 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
27494
27495         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
27496
27497         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
27498
27499 2010-01-21  Martin Jambor  <mjambor@suse.cz>
27500
27501         PR tree-optimization/42585
27502         * tree-sra.c (struct access): New field grp_total_scalarization.
27503         (dump_access): Dump the new field.
27504         (should_scalarize_away_bitmap): New variable.
27505         (cannot_scalarize_away_bitmap): Likewise.
27506         (sra_initialize): Allocate new bitmaps.
27507         (sra_deinitialize): Free new bitmaps.
27508         (create_access_1): New function.
27509         (create_access): Parts moved to create_access_1.
27510         (type_consists_of_records_p): New function.
27511         (completely_scalarize_record): Likewise.
27512         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
27513         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
27514         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
27515         access.
27516         (analyze_all_variable_accesses): Completely scalarize small eligible
27517         records.
27518
27519 2010-01-21  Martin Jambor  <mjambor@suse.cz>
27520
27521         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
27522
27523 2010-01-21  Andrew Haley  <aph@redhat.com>
27524
27525         * gcc.c (process_command): Move lang_specific_driver before
27526         setting cc_libexec_prefix.
27527
27528 2010-01-21  Richard Guenther  <rguenther@suse.de>
27529
27530         PR middle-end/19988
27531         * fold-const.c (negate_expr_p): Pretend only negative
27532         real constants are easily negatable.
27533
27534 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
27535             Jason Merrill  <jason@redhat.com>
27536
27537         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
27538         (TYPE_TRANSPARENT_AGGR): this, for union and record.
27539         * calls.c (initialize argument_information): Handle it.
27540         * c-common.c (handle_transparent_union_attribute): Use new name.
27541         * c-decl.c (finish_struct): Ditto.
27542         * c-typeck.c (type_lists_compatible_p): Ditto.
27543         (convert_for_assignment): Use new name and also handle record.
27544         * function.c (aggregate_value_p): Handle it.
27545         (pass_by_reference): Ditto.
27546         (assign_parm_data_types): Ditto.
27547         * print-tree.c (print_node): Ditto.
27548         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
27549         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
27550         * tree.c (first_field): New fn.
27551
27552 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
27553
27554         PR target/42818
27555         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
27556         even when linking statically, for now.
27557
27558 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
27559
27560         PR debug/42715
27561         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
27562         without a cselib val.
27563         (count_uses): Accept MO_VAL_SET with no val on stores.
27564         (add_stores): Likewise.
27565
27566 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
27567
27568         * var-tracking.c (check_value_val): Add a compile time assertion.
27569         (dv_is_decl_p): Simplify.
27570         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
27571         gcc_assert if ENABLE_CHECKING.
27572
27573 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
27574
27575         PR debug/42782
27576         * var-tracking.c: Include tree-flow.h.
27577         (mem_dies_at_call): New.
27578         (dataflow_set_preserve_mem_locs): Use it.
27579         (dataflow_set_remove_mem_locs): Likewise.
27580         (dump_var): Renamed from dump_variable.  Adjust all callers.
27581         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
27582         * Makefile.in (var-tracking.o): Adjust deps.
27583
27584 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
27585
27586         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
27587
27588 2010-01-20  Richard Guenther  <rguenther@suse.de>
27589
27590         PR tree-optimization/42717
27591         * tree-ssa-dce.c (get_live_post_dom): Remove.
27592         (forward_edge_to_pdom): Take an arbitrary edge to copy
27593         degenerate PHI args from.
27594         (remove_dead_stmt): Use the first post-dominator even if it
27595         does not contain live statements as redirection destination.
27596
27597 2010-01-20  Richard Guenther  <rguenther@suse.de>
27598
27599         * tree-inline.c (estimate_num_insns): Handle EH builtins.
27600
27601 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
27602
27603         * sel-sched.c (create_speculation_check): Remove set but not used
27604         variable twin.
27605         (try_transformation_cache): Remove set but not used variable ds.
27606         (calculate_privileged_insns): Remove set but not used variables
27607         cur_insn and min_spec_insn.
27608         (find_best_expr): Remove set but not used variable avail_n.
27609         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
27610         variable e.
27611         * cgraphunit.c (assemble_thunk): Remove set but not used variable
27612         false_label.
27613         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
27614         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
27615         new_scop_exit_edge.
27616
27617 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
27618
27619         PR bootstrap/42786
27620         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
27621         cpu types.  Add support for *-sse3 cpu types.
27622         (x86_64-*-*): Ditto.
27623
27624 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
27625
27626         PR middle-end/42803
27627         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
27628         argument, call initializer_constant_valid_p_1 instead of
27629         initializer_constant_valid_p, pass CACHE to it, return NULL
27630         immediately if first call returns NULL.
27631         (initializer_constant_valid_p_1): New function.
27632         (initializer_constant_valid_p): Use it.
27633
27634 2010-01-20  Thomas Quinot  <quinot@adacore.com>
27635
27636         * tree.def (PLACEHOLDER_EXPR): Fix comment.
27637
27638 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
27639
27640         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
27641         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
27642         (loc_list_from_tree): Don't handle unsigned division.  Handle
27643         signed modulo using DW_OP_{over,over,div,mul,minus}.
27644         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
27645         modulo instead of signed.
27646
27647 2010-01-20  DJ Delorie  <dj@redhat.com>
27648
27649         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
27650         (Fpa): Pass it
27651         (h8300_emit_stack_adjustment): Propogate it.
27652         (push): Pass it.
27653         (h8300_expand_prologue): Likewise.
27654         (h8300_expand_epilogue): Likewise.
27655
27656 2010-01-19  Michael Matz  <matz@suse.de>
27657
27658         PR tree-optimization/41783
27659         * tree-data-ref.c (toplevel): Include flags.h.
27660         (dump_data_dependence_relation):  Also dump the inputs if the
27661         result will be unknown.
27662         (split_constant_offset_1): Look through some conversions.
27663         * tree-predcom.c (determine_roots_comp): Restart a new chain if
27664         the offset from last element is too large.
27665         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
27666         (reassociate_to_the_same_stmt): Handle vector registers.
27667         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
27668         (e.g. conversions).
27669         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
27670         wide_prolog_niters argument, emit widening instructions.
27671         (vect_do_peeling_for_alignment): Adjust caller, use widened
27672         variant of the iteration cound.
27673         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
27674
27675 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27676
27677         PR target/38697
27678         * config/arm/neon-testgen.m (emit_automatics): New parameter
27679         features. Adjust for Fixed_return_reg feature.
27680         (test_intrinsic): Call emit_automatics with new feature.
27681         * config/arm/neon.ml: Update copyright years.
27682         (features): New Fixed_return_reg feature.
27683         (ops): Update feature for Vget_low.
27684
27685 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
27686
27687         PR tree-optimization/42719
27688         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
27689         stmt uses.
27690
27691         PR debug/42728
27692         * fwprop.c (all_uses_available_at): Return false if def_set dest
27693         is a REG that is used in def_insn.
27694
27695 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
27696
27697         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
27698
27699         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
27700         Add argument names.
27701
27702         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
27703
27704         * target.h (struct gcc_target) <secondary_reload>: Change type
27705         of last argument to secondary_reload_info *.
27706
27707 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
27708
27709         PR target/42774
27710         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
27711         memory references with unaligned offsets.  Remove CQImode handling.
27712         (unaligned_memory_operand): Return 1 for memory references with
27713         unaligned offsets.  Remove CQImode handling.
27714
27715 2010-01-18  Richard Guenther  <rguenther@suse.de>
27716
27717         PR middle-end/39954
27718         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
27719         builtin calls.
27720
27721 2010-01-18  Richard Guenther  <rguenther@suse.de>
27722
27723         PR tree-optimization/42781
27724         * tree-ssa-structalias.c (find_what_var_points_to): Skip
27725         restrict processing only if the original variable was artificial.
27726
27727 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
27728
27729         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
27730         find number of popped argument bytes.
27731
27732         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
27733         Fix the text that describes the return value for invalid insns.
27734
27735         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
27736
27737         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
27738         Clarify what 'cost of the -dependence' is.  Fix quoting.
27739
27740         * toplev.c (default_get_pch_validity): Rename argument to "sz".
27741         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
27742
27743 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
27744
27745         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
27746         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
27747
27748 2010-01-17  Richard Guenther  <rguenther@suse.de>
27749
27750         PR middle-end/42248
27751         * function.c (split_complex_args): Take a VEC to modify.
27752         (assign_parms_augmented_arg_list): Build a VEC instead of
27753         a chain of PARM_DECLs.
27754         (assign_parms_unsplit_complex): Take a VEC of arguments.
27755         Do not fixup unmodified parms.
27756         (assign_parms): Deal with the VEC.
27757         (gimplify_parameters): Likewise.
27758
27759 2010-01-17  Richard Guenther  <rguenther@suse.de>
27760
27761         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
27762         node existence check.
27763         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
27764         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
27765         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
27766         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
27767         (gimple_execute_on_growing_pred): Likewise.
27768
27769 2010-01-17  Richard Guenther  <rguenther@suse.de>
27770
27771         PR tree-optimization/42773
27772         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
27773         (compute_antic_aux): Likewise.
27774         (compute_partial_antic_aux): Likewise.
27775
27776 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
27777
27778         PR debug/42767
27779         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
27780         and US_TRUNCATE.
27781
27782 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
27783
27784         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
27785         appearance.
27786
27787         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
27788         Fix markup for strict argument.
27789
27790         (TARGET_SCHED_REORDER2): Fix argument types.
27791
27792         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
27793         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
27794
27795         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
27796         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
27797
27798         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
27799         Add argument name.
27800
27801         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
27802         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
27803         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
27804         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
27805         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
27806
27807         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
27808
27809         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
27810
27811         (TARGET_ASM_RELOC_RW_MASK): Add return type.
27812         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
27813
27814         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
27815
27816         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
27817         Use prototype.
27818
27819         (TARGET_ASM_NAMED_SECTION): Fix argument list.
27820
27821         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
27822         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
27823
27824         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
27825
27826         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
27827
27828         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
27829         referring to it.  Fix language.
27830
27831         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
27832
27833         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
27834
27835         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
27836
27837         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
27838
27839         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
27840         '@var{stream}.  Remove stray 'and'.
27841
27842         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
27843
27844         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
27845
27846         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
27847
27848         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
27849         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
27850
27851         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
27852         Fix description of return value.
27853         Rename argument "sz" to "len."
27854
27855         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
27856         Clarify meaning of 'true' return value.
27857
27858         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
27859
27860         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
27861         rep_mode versus mode_rep.
27862
27863         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
27864
27865         (TARGET_BUILTIN_DECL): Fix name.
27866
27867         (TARGET_COMMUTATIVE_P): Fix type of first argument.
27868
27869         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
27870
27871         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
27872
27873         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
27874
27875         (TARGET_RELAXED_ORDERING): Use @deftypevr.
27876
27877         (TARGET_GET_DRAP_RTX): Note that this is a hook.
27878         Clarify language.
27879
27880         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
27881         Rename argument tm_fn to md_fn.
27882
27883         (TARGET_OPTION_PRINT): Fix argument list.
27884
27885 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
27886
27887         PR target/42664
27888         * config/i386/i386.c (ix86_fixup_binary_operands):
27889         Revert FMA4 fixup of operands.
27890
27891 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27892
27893         PR gcc/42525
27894         * Makefile.in (write_entries_to_file, install-plugin):
27895         Use \012 instead of \n with tr.
27896
27897 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
27898
27899         * configure.ac (HAVE_AS_REF): New C macro.
27900         * configure: Regenerate.
27901         * config.in: Likewise.
27902         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
27903         if HAVE_AS_REF.
27904         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
27905         if HAVE_AS_REF.
27906
27907 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
27908
27909         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
27910
27911         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
27912
27913         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
27914
27915         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
27916
27917         (TARGET_IN_SMALL_DATA_P): Fix argument type.
27918
27919         (TARGET_BINDS_LOCAL_P): Fix argument type.
27920
27921         (TARGET_ASM_FILE_END): Use prototype.
27922
27923         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
27924
27925         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
27926
27927         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
27928
27929         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
27930
27931         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
27932         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
27933
27934         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
27935         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
27936
27937         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
27938         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
27939         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
27940         (TARGET_ADDR_SPACE_CONVERT): Likewise.
27941
27942         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
27943
27944         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
27945
27946         (TARGET_INIT_BUILTINS): Use prototype.
27947
27948         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
27949         Put 'const char *' in braces.  Fix parameter types.
27950         (TARGET_INVALID_CONVERSION): Fix parameter types.
27951         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
27952         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
27953
27954         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
27955         Fix argument type.
27956
27957         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
27958
27959         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
27960
27961 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
27962
27963         * doc/tm.texi (TARGET_HELP): Fix return type.
27964
27965         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
27966         in braces.  Fix argument types.
27967
27968         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
27969
27970         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
27971
27972         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
27973
27974         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
27975         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
27976
27977         (TARGET_MANGLE_TYPE): Fix argument types.
27978
27979         (TARGET_IRA_COVER_CLASSES): Use prototype.
27980
27981         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
27982
27983         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
27984
27985         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
27986
27987         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
27988
27989         (TARGET_CALLEE_COPIES): Fix argument types.
27990
27991         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
27992
27993         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
27994
27995         (TARGET_FUNCTION_VALUE): Fix argument types.
27996
27997         (TARGET_RETURN_IN_MSB): Fix argument type.
27998
27999         (TARGET_RETURN_IN_MEMORY): Fix argument types.
28000
28001         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
28002
28003         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
28004
28005         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
28006         agree with return type.
28007
28008         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
28009
28010 2010-01-15  Jing Yu  <jingyu@google.com>
28011
28012         PR rtl-optimization/42691
28013         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
28014         a pseudo to a constant and are merged, and adjust comments.
28015
28016 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
28017
28018         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
28019
28020 2010-01-15  Richard Guenther  <rguenther@suse.de>
28021
28022         PR middle-end/42739
28023         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
28024         labels of computed or non-local gotos to the destination.
28025         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
28026         landing pad label is the first label.
28027
28028 2010-01-15  Richard Guenther  <rguenther@suse.de>
28029
28030         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
28031
28032 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
28033
28034         PR target/42747
28035         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
28036         to allow generation of the xssqrtdp instruction on power7.
28037         (sqrtdf2_fpr): Ditto.
28038
28039 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
28040
28041         PR middle-end/42674
28042         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
28043         functions with noreturn attribute.
28044
28045         PR c++/42608
28046         * varasm.c (declare_weak): Add weak attribute to decl if it
28047         doesn't have one already.
28048         (assemble_external): Only add decls to weak_decls if they also
28049         have weak attribute.
28050
28051 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
28052
28053         * var-tracking.c (var_reg_delete): Don't delete the association
28054         between REGs and values or one-part variables if the register
28055         isn't clobbered.
28056
28057 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
28058
28059         PR debug/42657
28060         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
28061         because its first operand is a non-localized variable.
28062
28063 2010-01-14  Martin Jambor  <mjambor@suse.cz>
28064
28065         PR tree-optimization/42706
28066         * tree-sra.c (encountered_recursive_call): New variable.
28067         (encountered_unchangable_recursive_call): Likewise.
28068         (sra_initialize): Initialize both new variables.
28069         (callsite_has_enough_arguments_p): New function.
28070         (scan_function): Call decl and flags check only for IPA-SRA, check
28071         whether there is a recursive call and whether it has enough arguments.
28072         (all_callers_have_enough_arguments_p): New function.
28073         (convert_callers): Look for recursive calls only when
28074         encountered_recursive_call is set.
28075         (ipa_early_sra): Bail out either if
28076         !all_callers_have_enough_arguments_p or
28077         encountered_unchangable_recursive_call.
28078
28079 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28080
28081         * sel-sched.c: Add 2010 to copyright years.
28082         * sel-sched-ir.c: Likewise.
28083         * sel-sched-ir.h: Likewise.
28084
28085 2010-01-14  Martin Jambor  <mjambor@suse.cz>
28086
28087         PR tree-optimization/42714
28088         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
28089         constructors specially.
28090
28091 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28092
28093         * config/i386/drivers-i386.c (detect_caches_intel):
28094         Add l2sizekb parameter and fill in.
28095         (host_detect_local_cpu): Add l2sizekb, fill in.
28096         Add Atom small cache heuristic.
28097
28098 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28099
28100         * config/i386/drivers-i386.c (detect_caches_cpuid4):
28101         Add level3 parameter and fill in.
28102         (detect_caches_intel): Handle level3 cache.
28103
28104 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28105
28106         * config/i386/drivers-i386.c (host_detect_local_cpu):
28107         Fix core duo detection.
28108
28109 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28110
28111         * config/i386/drivers-i386.c (host_detect_local_cpu):
28112         Fix Atom detection.
28113
28114 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28115
28116         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
28117         (rs6000_variable_issue_1): this.  Use...
28118         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
28119
28120 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28121
28122         * sel-sched-ir.c (sel_restore_other_notes): Rename to
28123         sel_restore_notes.  Update all callers.  Call reemit_notes
28124         for all insns.
28125
28126 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28127
28128         PR rtl-optimization/42246
28129         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
28130         loops.
28131
28132 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28133
28134         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
28135         all successors is the same as number of successors in current region.
28136
28137 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28138
28139         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
28140         to rename is not separable.  Otherwise check that its LHS is not NULL.
28141
28142 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28143
28144         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
28145
28146 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28147
28148         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
28149         available registers when failed to discover LHS register class.
28150         Fix indentation.  Update comment.
28151
28152 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28153             Alexander Monakov  <amonakov@ispras.ru>
28154
28155         PR rtl-optimization/42389
28156         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
28157         to can_issue_more.
28158         (advance_state_on_fence): Likewise.
28159         (sel_target_adjust_priority): Print debug output only when
28160         sched_verbose >= 4, not 2.
28161         (get_expr_cost): Do not issue all unique insns on the next cycle.
28162         (fill_insns): Initialize can_issue_more from the value saved
28163         with the fence.
28164         * sel-sched-ir.c (flist_add): New parameter issue_more.
28165         Init FENCE_ISSUE_MORE with it.
28166         (merge_fences): Likewise.
28167         (init_fences): Update call to flist_add.
28168         (add_to_fences, add_clean_fence_to_fences)
28169         (add_dirty_fence_to_fences): Likewise.
28170         (move_fence_to_fences): Update call to merge_fences.
28171         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
28172         sched groups.
28173         * sel-sched-ir.h (struct _fence): New field issue_more.
28174         (FENCE_ISSUE_MORE): New accessor macro.
28175
28176 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28177
28178         PR rtl-optimization/42388
28179         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
28180         that have no predecessors nor successors.  Do not call move_bb_info
28181         for empty blocks outside of current region.
28182
28183 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28184
28185         PR rtl-optimization/42294
28186         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
28187         * sel-sched.c (move_exprs_to_boundary): Transitively add all
28188         originators' originators.
28189
28190 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28191
28192         PR rtl-optimization/39453
28193         PR rtl-optimization/42246
28194         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
28195         for pipelining_p.
28196         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
28197
28198 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28199             Alexander Monakov  <amonakov@ispras.ru>
28200
28201         PR middle-end/42245
28202         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
28203         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
28204         argument.  Update all callers.
28205         (tidy_control_flow): ... and here.  Recompute topological order
28206         of basic blocks in region if necessary.
28207         (sel_redirect_edge_and_branch): Change return type.  Return true
28208         if topological order might have been invalidated.
28209         (purge_empty_blocks): Export and move from...
28210         * sel-sched.c (purge_empty_blocks): ... here.
28211         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
28212         (maybe_tidy_empty_bb): Delete prototype.
28213         (purge_empty_blocks): Declare.
28214
28215 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28216
28217         PR rtl-optimization/42249
28218         * sel-sched.c (try_replace_dest_reg): When chosen register
28219         and original register is the same, do not bail out early, but
28220         still check all original insns for validity of replacing destination
28221         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
28222         in this case.
28223
28224 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
28225
28226         PR c/42721
28227         Port from no-undefined-overflow branch:
28228         2009-03-09  Richard Guenther  <rguenther@suse.de>
28229
28230         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
28231
28232 2010-01-14  Richard Guenther  <rguenther@suse.de>
28233
28234         PR lto/42665
28235         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
28236
28237 2010-01-14  Ira Rosen  <irar@il.ibm.com>
28238
28239         PR tree-optimization/42709
28240         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
28241         as scalar type in creation of constant vector operand.
28242
28243 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28244
28245         PR testsuite/42414
28246         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
28247         (check-parallel-%): Match `testsuite' directory component only
28248         at the end.
28249
28250 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
28251
28252         PR translation/39521
28253         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
28254         strings with _().
28255
28256 2010-01-13  Richard Guenther  <rguenther@suse.de>
28257
28258         PR tree-optimization/42730
28259         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
28260         offset zero.
28261
28262 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
28263
28264         PR target/pr42542
28265         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
28266         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
28267         them signed.
28268
28269 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
28270
28271         * config/bfin/libgcc-bfin.ver: Regenerate based on current
28272         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
28273         ___umulsi3_highpart.
28274
28275         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
28276         rather than schedule_insns if the pass is enabled.
28277
28278 2010-01-13  Martin Jambor  <mjambor@suse.cz>
28279
28280         PR tree-optimization/42704
28281         * tree-sra.c (sra_modify_assign): Do not delete assignments to
28282         SSA_NAMEs.
28283
28284 2010-01-13  Martin Jambor  <mjambor@suse.cz>
28285
28286         PR tree-optimization/42703
28287         * tree-sra.c (analyze_access_subtree): Check that we can build a
28288         reference to the original data within the aggregate.
28289
28290 2010-01-13  Richard Guenther  <rguenther@suse.de>
28291
28292         PR tree-optimization/42705
28293         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
28294
28295 2010-01-13  Richard Guenther  <rguenther@suse.de>
28296
28297         PR middle-end/42716
28298         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
28299
28300 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
28301
28302         PR debug/41371
28303         * var-tracking.c (values_to_unmark): New variable.
28304         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
28305         values_to_unmark vector.  Moved body to...
28306         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
28307         instead queue it into values_to_unmark vector.
28308         (vt_find_locations): Free values_to_unmark vector.
28309
28310 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
28311
28312         * config/s390/s390.c (override_options): Set
28313         default of max-pending-list-length to 256
28314
28315 2010-01-13  Richard Guenther  <rguenther@suse.de>
28316
28317         PR lto/42678
28318         * tree-pass.h (PROP_gimple_lcx): New.
28319         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
28320         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
28321         before the final cleanup_eh.
28322         (dump_properties): Dump PROP_gimple_lcx.
28323         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
28324         (tree_lower_complex_O0): Remove.
28325         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
28326         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
28327         tree_lower_complex, schedule TODO_update_ssa.
28328         * lto-streamer-out.c (output_function): Stream the functions
28329         properties.
28330         * lto-streamer-in.c (input_function): Likewise.
28331         (lto_read_body): Do not override them here.
28332
28333 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
28334
28335         PR c/42708
28336         * c-typeck.c (build_c_cast): Fold value cast to union type before
28337         wrapping it in a CONSTRUCTOR.
28338
28339 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
28340
28341         PR rtl-optimization/42699
28342         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
28343         involved.
28344
28345 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28346
28347         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
28348         SUBTARGET_WARN_UNUSED_SPEC): Move ...
28349         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
28350         SUBTARGET_WARN_UNUSED_SPEC): ... here
28351         * config/mips/iris5.h (LIBGCC_SPEC): Define.
28352
28353 2010-01-12  Julian Brown  <julian@codesourcery.com>
28354
28355         * config/arm/neon-schedgen.ml (Utils): Don't try to
28356         open missing module.
28357         (find_with_result): New.
28358
28359 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
28360
28361         PR debug/42662
28362         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
28363         sharing when canonicalizing ({lt,ge}u (plus a b) b).
28364
28365         PR tree-optimization/42645
28366         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
28367         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
28368         decl_map, set processing_debug_stmt to -1 and return name without
28369         any remapping.
28370
28371 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
28372
28373         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
28374         binutils version, and reword target configuration description.
28375
28376 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
28377
28378         * config/avr/avr.h (LINKER_NAME): Remove.
28379
28380 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
28381
28382         PR target/42416
28383         * config/rs6000/rs6000.c (rs6000_override_options): On targets
28384         that support VSX, warn for -mno-altivec if vsx is not disabled,
28385         and disable vsx.
28386
28387 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
28388             Shujing Zhao  <pearly.zhao@oracle.com>
28389
28390         PR translation/42469
28391         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
28392         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
28393         character between option name and help text.
28394         * c.opt (imultilib): Likewise.
28395
28396 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
28397
28398         * lto-streamer-out.c (output_unreferenced_globals): Output static
28399         variables.
28400
28401 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
28402
28403         PR rtl-optimization/42621
28404         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
28405         optimizing for size.
28406         (duplicate_computed_gotos): Remove now-redundant check.
28407
28408 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
28409
28410         PR target/37454
28411         * configure.ac: Save and restore LDFLAGS and LIBS
28412         * configure: Regenerate.
28413
28414 2010-01-10  Richard Guenther  <rguenther@suse.de>
28415
28416         PR middle-end/42667
28417         * builtins.c (fold_builtin_strlen): Add type argument and
28418         convert the resulting length to it.
28419         (fold_builtin_1): Adjust.
28420
28421 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
28422
28423         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
28424         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
28425         1 insn.
28426         (num_insns_constant_wide): Adjust for that change.
28427
28428 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28429
28430         PR debug/42631
28431         * web.c (union_defs): Add used argument, to combine uses of
28432         uninitialized regs.
28433         (entry_register): Adjust type and tests of used argument.
28434         (web_main): Widen used for new use.  Pass it to union_defs.
28435         * df.h (union_defs): Adjust prototype.
28436
28437 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28438
28439         PR debug/42630
28440         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
28441         uses in new incoming argument.  Free body.
28442         (reset_debug_uses_in_loop): New.
28443         (analyze_insn_to_expand_var): Call the latter if the former found
28444         anything.  Fix whitespace.  Reject invalid dest overlaps before
28445         going through all insns in the loop.
28446
28447 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28448
28449         PR debug/42629
28450         * haifa-sched.c (dying_use_p): Debug insns don't count.
28451
28452 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28453
28454         PR middle-end/42363
28455         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
28456         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
28457         (verify_gimple_call): Reject LHS in noreturn calls.
28458
28459 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28460
28461         PR debug/42604
28462         PR debug/42395
28463         * tree-vect-loop-manip.c (adjust_info): New type.
28464         (adjust_vec): New pointer to vector.
28465         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
28466         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
28467         (slpeel_update_phis_for_duplicate_loop): Use them.
28468         (slpeel_update_phi_nodes_for_guard1): Likewise.
28469         (slpeel_update_phi_nodes_for_guard2): Likewise.
28470         (slpeel_tree_peel_loop_to_edge): Likewise.
28471         (vect_update_ivs_after_vectorizer): Likewise.
28472
28473 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28474
28475         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
28476         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
28477
28478 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28479
28480         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
28481         bogus uninitialized warning.
28482
28483 2010-01-09  Richard Guenther  <rguenther@suse.de>
28484
28485         PR middle-end/42512
28486         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
28487         the evolution is compatible with the initial condition.
28488
28489 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
28490
28491         * gcc.c (process_command): Update copyright notice dates.
28492         * gcov.c (print_version): Likewise.
28493         * gcov-dump.c (print_version): Likewise.
28494         * mips-tfile.c (main): Likewise.
28495         * mips-tdump.c (main): Likewise.
28496
28497 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
28498
28499         PR target/41885
28500         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
28501         (rotlhi3): Delete.
28502         (rotlhi3_8): Delete.
28503         (rotlsi3): Delete.
28504         (rotlsi3_8): Delete.
28505         (rotlsi3_16): Delete.
28506         (rotlsi3_24): Delete.
28507         (rotl<mode>3): New.
28508         (*rotw<mode>3): New.
28509         (*rotb<mode>3): New.
28510         * config/avr/avr.c (avr_rotate_bytes): New function.
28511         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
28512
28513 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
28514
28515         PR target/37454
28516         * configure.ac: Modify -rdynamic check.
28517         * configure: Regenerate.
28518
28519 2010-01-08  DJ Delorie  <dj@redhat.com>
28520
28521         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
28522         register popping order.
28523
28524 2010-01-08  Richard Guenther  <rguenther@suse.de>
28525
28526         PR lto/42528
28527         * c.opt (fsigned-char): Also let LTO handle this option.
28528         (funsigned-char): Likewise.
28529
28530 2010-01-07  Richard Guenther  <rguenther@suse.de>
28531
28532         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
28533         (gimple_op): Likewise.
28534         (gimple_op_ptr): Likewise.
28535         (gimple_assign_set_lhs): Remove gcc_assert.
28536         (gimple_assign_set_rhs1): Likewise.
28537         (gimple_assign_set_rhs2): Likewise.
28538         (gimple_call_set_lhs): Likewise.
28539         (gimple_call_set_fn): Likewise.
28540         (gimple_call_set_fndecl): Likewise.
28541         (gimple_call_fndecl): Likewise.
28542         (gimple_call_return_type): Likewise.
28543         (gimple_call_set_chain): Likewise.
28544         (gimple_call_num_args): Likewise.
28545         (gimple_call_set_arg): Likewise.
28546         (gimple_cond_set_code): Likewise.
28547         (gimple_cond_set_lhs): Likewise.
28548         (gimple_cond_set_rhs): Likewise.
28549         (gimple_cond_set_true_label): Likewise.
28550         (gimple_cond_set_false_label): Likewise.
28551         (gimple_label_set_label): Likewise.
28552         (gimple_goto_set_dest): Likewise.
28553         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
28554         (gimple_debug_bind_get_value): Likewise.
28555         (gimple_debug_bind_get_value_ptr): Likewise.
28556         (gimple_debug_bind_set_var): Likewise.
28557         (gimple_debug_bind_set_value): Likewise.
28558         (gimple_debug_bind_reset_value): Likewise.
28559         (gimple_debug_bind_has_value_p): Likewise.
28560         (gimple_return_retval_ptr): Remove gcc_assert.
28561         (gimple_return_retval): Likewise.
28562         (gimple_return_set_retval): Likewise.
28563         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
28564         (safe_referenced_var_iterator): Remove.
28565         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
28566         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
28567         (fill_referenced_var_vec): Remove.
28568         (first_readonly_imm_use): Remove redundant gcc_assert.
28569         (phi_arg_index_from_use): Combine gcc_asserts.
28570         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
28571         (first_imm_use_stmt): Remove redundant gcc_assert.
28572         * tree-cfg.c (verify_gimple_call): Verify function and chain
28573         operands.  Verify arguments.
28574         (verify_types_in_gimple_stmt): Verify condition code and labels.
28575
28576 2010-01-07  Richard Guenther  <rguenther@suse.de>
28577
28578         PR tree-optimization/42641
28579         * sese.c (rename_map_elt_info): Use the SSA name version, do
28580         not hash pointers.
28581
28582 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
28583
28584         PR tree-optimization/42625
28585         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
28586         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
28587
28588 2010-01-07  Duncan Sands  <baldrick@free.fr>
28589
28590         * Makefile.in (PLUGIN_HEADERS): Add version.h.
28591
28592 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
28593
28594         PR target/42511
28595         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
28596         note itself is not function_invariant_p.
28597
28598 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
28599
28600         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
28601         Do not add the DF_NOTE problem.
28602         * store-motion.c (execute_rtl_store_motion): Likewise.
28603
28604 2010-01-07  Martin Jambor  <mjambor@suse.cz>
28605
28606         PR tree-optimization/42157
28607         * tree-sra.c (compare_access_positions): Stabilize sort if both
28608         accesses have integer types, return zero immediately if they are the
28609         same.
28610
28611 2010-01-06  Richard Henderson  <rth@redhat.com>
28612
28613         PR middle-end/41883
28614         * haifa-sched.c (add_to_note_list): Merge into ...
28615         (concat_note_lists): ... here, and ...
28616         (unlink_other_notes, rm_other_notes): Merge into...
28617         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
28618         NOTE_INSN_EPILOGUE_BEG.
28619
28620 2010-01-06  Richard Guenther  <rguenther@suse.de>
28621
28622         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
28623         not inline regular functions into always-inline functions.
28624
28625 2010-01-06  Nick Clifton  <nickc@redhat.com>
28626
28627         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
28628         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
28629         used together.
28630         (OVERRIDE_OPTIONS): Delete.
28631         (OPTIMIZATION_OPTIONS): Define.
28632         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
28633         * config/rx/rx.c (rx_handle_option): Issue an error message if
28634         -mcpu=rx200 and -fpu are used together.
28635         (rx_set_optimization_options): New function.  Issue an error
28636         message if an optimization attribute attempts to reset the FPU/
28637         math optimization pairing.
28638         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
28639         * config/rx/rx.opt: Set the default to 32-bit doubles.
28640         * config/rx/t-rx: Add multilibs for -nofpu option.
28641         * doc/invoke.texi: Update documentation of RX options.
28642
28643 2010-01-06  Richard Guenther  <rguenther@suse.de>
28644
28645         * tree-ssa-pre.c (name_to_id): New global.
28646         (alloc_expression_id): Simplify SSA name handling.
28647         (lookup_expression_id): Likewise.
28648         (init_pre): Zero name_to_id.
28649         (fini_pre): Free it.
28650
28651 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
28652
28653         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
28654
28655 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
28656
28657         PR target/42542
28658         * config/i386/sse.md (smaxv2di3): New.
28659         (umaxv2di3): Likewise.
28660         (sminv2di3): Likewise.
28661         (uminv2di3): Likewise.
28662
28663 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
28664
28665         PR target/42564
28666         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
28667         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
28668         (legitimize_tls_address): Likewise.
28669         (sparc_tls_referenced_p): Likewise.
28670         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
28671         and adjust calls to legitimize_pic_address.
28672         (legitimate_constant_p) Use sparc_tls_referenced_p.
28673         (legitimate_pic_operand_p): Likewise.
28674         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
28675         (sparc_tls_symbol_ref_1): Delete.
28676         (sparc_tls_referenced_p): Make static, recognize specific patterns.
28677         (legitimize_tls_address): Make static, handle CONST patterns.
28678         (legitimize_pic_address): Make static, remove unused parameter and
28679         adjust recursive calls.
28680         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
28681         and adjust call to legitimize_pic_address.
28682         (sparc_output_mi_thunk): Likewise.
28683
28684 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
28685             H.J. Lu  <hongjiu.lu@intel.com>
28686
28687         PR target/42542
28688         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
28689         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
28690         operands to make them signed.
28691
28692         Revert:
28693         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
28694
28695         PR target/42542
28696         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
28697         GTU to GT for V4SI and V2DI.
28698
28699         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
28700         (umin<mode>3): Removed.
28701         (uminv8hi3): New.
28702         (uminv4si3): Likewise.
28703
28704 2010-01-05  Martin Jambor  <mjambor@suse.cz>
28705
28706         PR tree-optimization/42462
28707         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
28708         current_function_decl to helper functions and macros.
28709
28710 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28711
28712         PR bootstrap/41771
28713         * flags.h: Don't include real.h.
28714         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
28715         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
28716         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
28717         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
28718         * dominance.c: Update copyright.
28719         * gimple.c (walk_gimple_op): Remove inline.
28720         * tree-ssa-reassoc.c: Include real.h.
28721         * Makefile.in (FLAGS_H): Remove $(REAL_H).
28722         (tree-ssa-reassoc.o): Depend on $(REAL_H).
28723
28724 2010-01-05  Nick Clifton  <nickc@redhat.com>
28725
28726         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
28727         register to push into the stack frame when the accumulator has to
28728         be saved during interrupts.
28729
28730 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
28731
28732         * doc/invoke.texi: Remove the documentation about option
28733         -Wunreachable-code.
28734         * common.opt (Wunreachable-code):  Preserved for backward
28735         compatibility.
28736         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
28737         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
28738         the backward compatibility flag section.
28739
28740 2010-01-05  Richard Guenther  <rguenther@suse.de>
28741
28742         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
28743
28744 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
28745
28746         PR other/42611
28747         * cfgexpand.c (expand_one_var): Diagnose too large variables.
28748
28749         PR tree-optimization/42508
28750         * tree-sra.c (convert_callers): Check for recursive call
28751         by comparing cgraph nodes instead of decls.
28752         (modify_function): Call ipa_modify_formal_parameters also
28753         on all same_body aliases.
28754
28755         * cgraphunit.c (cgraph_materialize_all_clones): Compare
28756         cgraph nodes when checking for same_body aliases.
28757
28758 2010-01-05  Richard Guenther  <rguenther@suse.de>
28759
28760         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
28761         allocation and lookup.
28762         (get_or_alloc_expr_for_constant): Likewise.
28763         (phi_translate): Sink allocation.
28764
28765 2010-01-04  Richard Guenther  <rguenther@suse.de>
28766
28767         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
28768         a new entry only if needed.
28769         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
28770         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
28771         hashtable lookup.
28772         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
28773         the result array.
28774         (phi_translate): Handle CONSTANTs early.
28775
28776 2010-01-04  Martin Jambor  <mjambor@suse.cz>
28777
28778         PR tree-optimization/42398
28779         * tree-sra.c (struct access): Removed flag grp_different_types.
28780         (dump_access): Do not dump the removed flag.
28781         (sort_and_splice_var_accesses): Do not set the removed flag.
28782         (sra_modify_expr): Check for type compatibility directly.
28783
28784 2010-01-04  Martin Jambor  <mjambor@suse.cz>
28785
28786         PR tree-optimization/42366
28787         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
28788         edges with variable number of parameters.
28789         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
28790         flag instead of asserting it.
28791         (ipa_read_node_info): Read uses_analysis_done flag.
28792
28793 2010-01-04  Richard Guenther  <rguenther@suse.de>
28794
28795         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
28796         iterative_hash_* as intended.
28797         (vn_reference_compute_hash): Likewise.  Simplify hashing
28798         SSA names.
28799         (vn_reference_lookup_2): Likewise.
28800         (vn_nary_op_compute_hash): Likewise.
28801         (vn_phi_compute_hash): Likewise.
28802         (expressions_equal_p): Remove strange code.
28803         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
28804         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
28805         (bitmap_insert_into_set_1): Take value-id as parameter.
28806         (add_to_value): Pass it.
28807         (bitmap_insert_into_set): Likewise.
28808         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
28809
28810 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
28811
28812         PR driver/42442
28813         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
28814         (do_self_spec): For switches with SWITCH_IGNORE set set also
28815         SWITCH_IGNORE_PERMANENTLY.
28816         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
28817         of SWITCH_IGNORE.
28818
28819 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
28820
28821         * lto-streamer-out.c (output_unreferenced_globals): Output the full
28822         tree of an unreferenced global var.
28823
28824 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
28825
28826         PR target/42542
28827         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
28828         GTU to GT for V4SI and V2DI.
28829
28830         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
28831         (umin<mode>3): Removed.
28832         (uminv8hi3): New.
28833         (uminv4si3): Likewise.
28834
28835 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
28836
28837         PR lto/42581
28838         * collect2.c (main): Turn on trace in collect2 if -v is passed
28839         to gcc with LTO.
28840
28841 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
28842
28843         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
28844         description of expression operand.
28845
28846 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
28847
28848         * configure.ac: Add install-html to target_list for Make-hooks.
28849         * configure: Regenerate.
28850         * fortran/Make-lang.in (F95_HTMLFILES): New.
28851         (fortran.html): Use it.
28852         (fortran.install-html): New.
28853         * Makefile.in (install-html): Add lang.install-html.
28854         * java/Make-lang.in (JAVA_HTMLFILES): New.
28855         (java.html): Use it.
28856         (java.install-html): New.
28857         * objc/Make-lang.in (objc.install-html): New.
28858         * objcp/Make-lang.in (obj-c++.install-html): New.
28859         * cp/Make-lang.in (c++.install-html): New.
28860         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
28861         * lto/Make-lang.in (lto.install-html): New.
28862
28863 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
28864
28865         PR lto/42520
28866         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
28867
28868 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
28869
28870         PR rtl-optimization/41862
28871         * store-motion.c (store_killed_in_insn, compute_store_table,
28872         remove_reachable_equiv_notes, replace_store_insn,
28873         build_store_vectors): Ignore all DEBUG_INSNs.
28874
28875 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
28876
28877         PR lto/41564
28878         * common.opt: Add dumpdir.
28879
28880         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
28881         isn't specified.
28882         (option_map): Add --dumpdir.
28883
28884         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
28885
28886         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
28887
28888         * opts.c (decode_options): Try dump_dir_name first if
28889         dump_base_name isn't an absolute path.
28890         (common_handle_option): Handle OPT_dumpdir.
28891
28892         * toplev.c (dump_dir_name): New.
28893         (print_switch_values): Also ignore -dumpdir.
28894
28895         * toplev.h (dump_dir_name): New.
28896
28897 2010-01-03  Richard Guenther  <rguenther@suse.de>
28898
28899         PR tree-optimization/42589
28900         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
28901         double-word expansion of bswap32.
28902
28903 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
28904
28905         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
28906         with BLOCK_FOR_INSN.
28907         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
28908         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
28909         noce_process_if_block): Likewise.
28910         * gcse.c (compute_local_properties, insert_expr_in_table,
28911         insert_set_in_table, canon_list_insert, find_avail_set,
28912         pre_insert_copy_insn): Likewise.
28913
28914         * basic-block.h (BLOCK_NUM): Move from here...
28915         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
28916
28917 2010-01-03  Richard Guenther  <rguenther@suse.de>
28918
28919         PR tree-optimization/42438
28920         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
28921         contains_may_not_return_call flag.
28922         (BB_MAY_NOTRETURN): New.
28923         (valid_in_sets): Trapping nary operations are not valid
28924         in blocks that may not return.
28925         (insert_into_preds_of_block): Remove check for trapping expressions.
28926         (compute_avail): Compute also BB_MAY_NOTRETURN.
28927
28928 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
28929
28930         * doc/invoke.texi: Add 2010 to copyright years.
28931
28932 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
28933
28934         * config/sparc/sparc.c: Fix formatting nits.
28935
28936 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
28937             Alexander Monakov  <amonakov@ispras.ru>
28938
28939         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
28940
28941 2010-01-02  Richard Guenther  <rguenther@suse.de>
28942
28943         PR middle-end/42577
28944         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
28945         (simplify_switch_using_ranges): Mark to be removed edges
28946         as non-executable.
28947
28948 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28949
28950         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
28951
28952         * collect2.c (scan_libraries): Add missing argument in call to
28953         scan_prog_file.
28954
28955 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
28956
28957         PR target/42448
28958         * config/alpha/predicates.md (aligned_memory_operand): Return false
28959         for CQImode.
28960         (unaligned_memory_operand): Return true for CQImode.
28961         * config/alpha/alpha.c (get_aligned_mem): Assert that location
28962         doesn not cross aligned SImode word boundary.
28963
28964 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
28965
28966         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
28967         Remove.
28968         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
28969         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
28970
28971 2010-01-02  Richard Guenther  <rguenther@suse.de>
28972
28973         PR lto/41597
28974         * toplev.c (compile_file): Emit LTO marker properly.  Change
28975         it to __gnu_lto_v1.
28976         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
28977
28978 2010-01-01  Richard Guenther  <rguenther@suse.de>
28979
28980         PR debug/42455
28981         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
28982
28983 2010-01-01  Richard Guenther  <rguenther@suse.de>
28984
28985         PR c/42570
28986         * c-decl.c (grokdeclarator): For zero-size arrays force
28987         structural equality checks as layout_type does.
28988
28989 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
28990
28991         * builtins.c: Update copyright to 2010.
28992
28993 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
28994
28995         PR lto/42531
28996         * lto-streamer-out.c (produce_asm): Revert the last change.
28997         (copy_function): Likewise.
28998
28999         * lto-streamer.c (lto_get_section_name): Skip any leading
29000         asterisk in name.
29001
29002 2010-01-01  Richard Guenther  <rguenther@suse.de>
29003
29004         PR middle-end/42559
29005         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
29006         for LABEL_DECLs.
29007
29008 \f
29009 Copyright (C) 2010 Free Software Foundation, Inc.
29010
29011 Copying and distribution of this file, with or without modification,
29012 are permitted in any medium without royalty provided the copyright
29013 notice and this notice are preserved.